OSDN Git Service

Give ICC its preferred, documented form of the no-strict-aliasing
[pg-rex/syncrep.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for PostgreSQL 8.3devel.
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.3devel'
275 PACKAGE_STRING='PostgreSQL 8.3devel'
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.3devel 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.3devel:";;
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.3devel
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.3devel, 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   # ICC prefers to spell the no-strict-aliasing switch like this
3124   echo "$as_me:$LINENO: checking if $CC supports -fno-alias" >&5
3125 echo $ECHO_N "checking if $CC supports -fno-alias... $ECHO_C" >&6
3126 pgac_save_CFLAGS=$CFLAGS
3127 CFLAGS="$pgac_save_CFLAGS -fno-alias"
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"
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 fi
11043
11044 if test "$with_pam" = yes ; then
11045
11046 for ac_header in security/pam_appl.h
11047 do
11048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11050   echo "$as_me:$LINENO: checking for $ac_header" >&5
11051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11053   echo $ECHO_N "(cached) $ECHO_C" >&6
11054 fi
11055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11057 else
11058   # Is the header compilable?
11059 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11061 cat >conftest.$ac_ext <<_ACEOF
11062 /* confdefs.h.  */
11063 _ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h.  */
11067 $ac_includes_default
11068 #include <$ac_header>
11069 _ACEOF
11070 rm -f conftest.$ac_objext
11071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11072   (eval $ac_compile) 2>conftest.er1
11073   ac_status=$?
11074   grep -v '^ *+' conftest.er1 >conftest.err
11075   rm -f conftest.er1
11076   cat conftest.err >&5
11077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078   (exit $ac_status); } &&
11079          { ac_try='test -z "$ac_c_werror_flag"
11080                          || test ! -s conftest.err'
11081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11082   (eval $ac_try) 2>&5
11083   ac_status=$?
11084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085   (exit $ac_status); }; } &&
11086          { ac_try='test -s conftest.$ac_objext'
11087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11088   (eval $ac_try) 2>&5
11089   ac_status=$?
11090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091   (exit $ac_status); }; }; then
11092   ac_header_compiler=yes
11093 else
11094   echo "$as_me: failed program was:" >&5
11095 sed 's/^/| /' conftest.$ac_ext >&5
11096
11097 ac_header_compiler=no
11098 fi
11099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11100 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11101 echo "${ECHO_T}$ac_header_compiler" >&6
11102
11103 # Is the header present?
11104 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11105 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11106 cat >conftest.$ac_ext <<_ACEOF
11107 /* confdefs.h.  */
11108 _ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h.  */
11112 #include <$ac_header>
11113 _ACEOF
11114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11115   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11116   ac_status=$?
11117   grep -v '^ *+' conftest.er1 >conftest.err
11118   rm -f conftest.er1
11119   cat conftest.err >&5
11120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121   (exit $ac_status); } >/dev/null; then
11122   if test -s conftest.err; then
11123     ac_cpp_err=$ac_c_preproc_warn_flag
11124     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11125   else
11126     ac_cpp_err=
11127   fi
11128 else
11129   ac_cpp_err=yes
11130 fi
11131 if test -z "$ac_cpp_err"; then
11132   ac_header_preproc=yes
11133 else
11134   echo "$as_me: failed program was:" >&5
11135 sed 's/^/| /' conftest.$ac_ext >&5
11136
11137   ac_header_preproc=no
11138 fi
11139 rm -f conftest.err conftest.$ac_ext
11140 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11141 echo "${ECHO_T}$ac_header_preproc" >&6
11142
11143 # So?  What about this header?
11144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11145   yes:no: )
11146     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11148     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11149 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11150     ac_header_preproc=yes
11151     ;;
11152   no:yes:* )
11153     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11155     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11156 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11157     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11158 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11159     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11160 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11161     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11163     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11164 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11165     (
11166       cat <<\_ASBOX
11167 ## ---------------------------------------- ##
11168 ## Report this to pgsql-bugs@postgresql.org ##
11169 ## ---------------------------------------- ##
11170 _ASBOX
11171     ) |
11172       sed "s/^/$as_me: WARNING:     /" >&2
11173     ;;
11174 esac
11175 echo "$as_me:$LINENO: checking for $ac_header" >&5
11176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11178   echo $ECHO_N "(cached) $ECHO_C" >&6
11179 else
11180   eval "$as_ac_Header=\$ac_header_preproc"
11181 fi
11182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11184
11185 fi
11186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11187   cat >>confdefs.h <<_ACEOF
11188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11189 _ACEOF
11190
11191 else
11192
11193 for ac_header in pam/pam_appl.h
11194 do
11195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11197   echo "$as_me:$LINENO: checking for $ac_header" >&5
11198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11200   echo $ECHO_N "(cached) $ECHO_C" >&6
11201 fi
11202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11204 else
11205   # Is the header compilable?
11206 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11207 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
11215 #include <$ac_header>
11216 _ACEOF
11217 rm -f conftest.$ac_objext
11218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11219   (eval $ac_compile) 2>conftest.er1
11220   ac_status=$?
11221   grep -v '^ *+' conftest.er1 >conftest.err
11222   rm -f conftest.er1
11223   cat conftest.err >&5
11224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225   (exit $ac_status); } &&
11226          { ac_try='test -z "$ac_c_werror_flag"
11227                          || test ! -s conftest.err'
11228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229   (eval $ac_try) 2>&5
11230   ac_status=$?
11231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232   (exit $ac_status); }; } &&
11233          { ac_try='test -s conftest.$ac_objext'
11234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235   (eval $ac_try) 2>&5
11236   ac_status=$?
11237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238   (exit $ac_status); }; }; then
11239   ac_header_compiler=yes
11240 else
11241   echo "$as_me: failed program was:" >&5
11242 sed 's/^/| /' conftest.$ac_ext >&5
11243
11244 ac_header_compiler=no
11245 fi
11246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11248 echo "${ECHO_T}$ac_header_compiler" >&6
11249
11250 # Is the header present?
11251 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11253 cat >conftest.$ac_ext <<_ACEOF
11254 /* confdefs.h.  */
11255 _ACEOF
11256 cat confdefs.h >>conftest.$ac_ext
11257 cat >>conftest.$ac_ext <<_ACEOF
11258 /* end confdefs.h.  */
11259 #include <$ac_header>
11260 _ACEOF
11261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11262   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11263   ac_status=$?
11264   grep -v '^ *+' conftest.er1 >conftest.err
11265   rm -f conftest.er1
11266   cat conftest.err >&5
11267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268   (exit $ac_status); } >/dev/null; then
11269   if test -s conftest.err; then
11270     ac_cpp_err=$ac_c_preproc_warn_flag
11271     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11272   else
11273     ac_cpp_err=
11274   fi
11275 else
11276   ac_cpp_err=yes
11277 fi
11278 if test -z "$ac_cpp_err"; then
11279   ac_header_preproc=yes
11280 else
11281   echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11283
11284   ac_header_preproc=no
11285 fi
11286 rm -f conftest.err conftest.$ac_ext
11287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11288 echo "${ECHO_T}$ac_header_preproc" >&6
11289
11290 # So?  What about this header?
11291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11292   yes:no: )
11293     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11297     ac_header_preproc=yes
11298     ;;
11299   no:yes:* )
11300     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11302     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11303 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11304     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11306     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11307 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11308     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11310     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11312     (
11313       cat <<\_ASBOX
11314 ## ---------------------------------------- ##
11315 ## Report this to pgsql-bugs@postgresql.org ##
11316 ## ---------------------------------------- ##
11317 _ASBOX
11318     ) |
11319       sed "s/^/$as_me: WARNING:     /" >&2
11320     ;;
11321 esac
11322 echo "$as_me:$LINENO: checking for $ac_header" >&5
11323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11325   echo $ECHO_N "(cached) $ECHO_C" >&6
11326 else
11327   eval "$as_ac_Header=\$ac_header_preproc"
11328 fi
11329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11331
11332 fi
11333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11334   cat >>confdefs.h <<_ACEOF
11335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11336 _ACEOF
11337
11338 else
11339   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
11340 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
11341    { (exit 1); exit 1; }; }
11342 fi
11343
11344 done
11345
11346 fi
11347
11348 done
11349
11350 fi
11351
11352 if test "$with_libxml" = yes ; then
11353   if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11354   echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
11355 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6
11356 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11357   echo $ECHO_N "(cached) $ECHO_C" >&6
11358 fi
11359 echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
11360 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6
11361 else
11362   # Is the header compilable?
11363 echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
11364 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6
11365 cat >conftest.$ac_ext <<_ACEOF
11366 /* confdefs.h.  */
11367 _ACEOF
11368 cat confdefs.h >>conftest.$ac_ext
11369 cat >>conftest.$ac_ext <<_ACEOF
11370 /* end confdefs.h.  */
11371 $ac_includes_default
11372 #include <libxml/parser.h>
11373 _ACEOF
11374 rm -f conftest.$ac_objext
11375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11376   (eval $ac_compile) 2>conftest.er1
11377   ac_status=$?
11378   grep -v '^ *+' conftest.er1 >conftest.err
11379   rm -f conftest.er1
11380   cat conftest.err >&5
11381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382   (exit $ac_status); } &&
11383          { ac_try='test -z "$ac_c_werror_flag"
11384                          || test ! -s conftest.err'
11385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11386   (eval $ac_try) 2>&5
11387   ac_status=$?
11388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389   (exit $ac_status); }; } &&
11390          { ac_try='test -s conftest.$ac_objext'
11391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392   (eval $ac_try) 2>&5
11393   ac_status=$?
11394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395   (exit $ac_status); }; }; then
11396   ac_header_compiler=yes
11397 else
11398   echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.$ac_ext >&5
11400
11401 ac_header_compiler=no
11402 fi
11403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11404 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11405 echo "${ECHO_T}$ac_header_compiler" >&6
11406
11407 # Is the header present?
11408 echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
11409 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6
11410 cat >conftest.$ac_ext <<_ACEOF
11411 /* confdefs.h.  */
11412 _ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h.  */
11416 #include <libxml/parser.h>
11417 _ACEOF
11418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11419   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11420   ac_status=$?
11421   grep -v '^ *+' conftest.er1 >conftest.err
11422   rm -f conftest.er1
11423   cat conftest.err >&5
11424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425   (exit $ac_status); } >/dev/null; then
11426   if test -s conftest.err; then
11427     ac_cpp_err=$ac_c_preproc_warn_flag
11428     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11429   else
11430     ac_cpp_err=
11431   fi
11432 else
11433   ac_cpp_err=yes
11434 fi
11435 if test -z "$ac_cpp_err"; then
11436   ac_header_preproc=yes
11437 else
11438   echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11440
11441   ac_header_preproc=no
11442 fi
11443 rm -f conftest.err conftest.$ac_ext
11444 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11445 echo "${ECHO_T}$ac_header_preproc" >&6
11446
11447 # So?  What about this header?
11448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11449   yes:no: )
11450     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
11451 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11452     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
11453 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
11454     ac_header_preproc=yes
11455     ;;
11456   no:yes:* )
11457     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
11458 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
11459     { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
11460 echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
11461     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
11462 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
11463     { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
11464 echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11465     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
11466 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
11467     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
11468 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
11469     (
11470       cat <<\_ASBOX
11471 ## ---------------------------------------- ##
11472 ## Report this to pgsql-bugs@postgresql.org ##
11473 ## ---------------------------------------- ##
11474 _ASBOX
11475     ) |
11476       sed "s/^/$as_me: WARNING:     /" >&2
11477     ;;
11478 esac
11479 echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
11480 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6
11481 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11482   echo $ECHO_N "(cached) $ECHO_C" >&6
11483 else
11484   ac_cv_header_libxml_parser_h=$ac_header_preproc
11485 fi
11486 echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
11487 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6
11488
11489 fi
11490 if test $ac_cv_header_libxml_parser_h = yes; then
11491   :
11492 else
11493   { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
11494 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
11495    { (exit 1); exit 1; }; }
11496 fi
11497
11498
11499 fi
11500
11501 if test "$with_libxslt" = yes ; then
11502   if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11503   echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
11504 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6
11505 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11506   echo $ECHO_N "(cached) $ECHO_C" >&6
11507 fi
11508 echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
11509 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6
11510 else
11511   # Is the header compilable?
11512 echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
11513 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6
11514 cat >conftest.$ac_ext <<_ACEOF
11515 /* confdefs.h.  */
11516 _ACEOF
11517 cat confdefs.h >>conftest.$ac_ext
11518 cat >>conftest.$ac_ext <<_ACEOF
11519 /* end confdefs.h.  */
11520 $ac_includes_default
11521 #include <libxslt/xslt.h>
11522 _ACEOF
11523 rm -f conftest.$ac_objext
11524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11525   (eval $ac_compile) 2>conftest.er1
11526   ac_status=$?
11527   grep -v '^ *+' conftest.er1 >conftest.err
11528   rm -f conftest.er1
11529   cat conftest.err >&5
11530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531   (exit $ac_status); } &&
11532          { ac_try='test -z "$ac_c_werror_flag"
11533                          || test ! -s conftest.err'
11534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11535   (eval $ac_try) 2>&5
11536   ac_status=$?
11537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538   (exit $ac_status); }; } &&
11539          { ac_try='test -s conftest.$ac_objext'
11540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541   (eval $ac_try) 2>&5
11542   ac_status=$?
11543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544   (exit $ac_status); }; }; then
11545   ac_header_compiler=yes
11546 else
11547   echo "$as_me: failed program was:" >&5
11548 sed 's/^/| /' conftest.$ac_ext >&5
11549
11550 ac_header_compiler=no
11551 fi
11552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11554 echo "${ECHO_T}$ac_header_compiler" >&6
11555
11556 # Is the header present?
11557 echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
11558 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6
11559 cat >conftest.$ac_ext <<_ACEOF
11560 /* confdefs.h.  */
11561 _ACEOF
11562 cat confdefs.h >>conftest.$ac_ext
11563 cat >>conftest.$ac_ext <<_ACEOF
11564 /* end confdefs.h.  */
11565 #include <libxslt/xslt.h>
11566 _ACEOF
11567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11568   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11569   ac_status=$?
11570   grep -v '^ *+' conftest.er1 >conftest.err
11571   rm -f conftest.er1
11572   cat conftest.err >&5
11573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574   (exit $ac_status); } >/dev/null; then
11575   if test -s conftest.err; then
11576     ac_cpp_err=$ac_c_preproc_warn_flag
11577     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11578   else
11579     ac_cpp_err=
11580   fi
11581 else
11582   ac_cpp_err=yes
11583 fi
11584 if test -z "$ac_cpp_err"; then
11585   ac_header_preproc=yes
11586 else
11587   echo "$as_me: failed program was:" >&5
11588 sed 's/^/| /' conftest.$ac_ext >&5
11589
11590   ac_header_preproc=no
11591 fi
11592 rm -f conftest.err conftest.$ac_ext
11593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11594 echo "${ECHO_T}$ac_header_preproc" >&6
11595
11596 # So?  What about this header?
11597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11598   yes:no: )
11599     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
11600 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11601     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
11602 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
11603     ac_header_preproc=yes
11604     ;;
11605   no:yes:* )
11606     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
11607 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
11608     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
11609 echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
11610     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
11611 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
11612     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
11613 echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11614     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
11615 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
11616     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
11617 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
11618     (
11619       cat <<\_ASBOX
11620 ## ---------------------------------------- ##
11621 ## Report this to pgsql-bugs@postgresql.org ##
11622 ## ---------------------------------------- ##
11623 _ASBOX
11624     ) |
11625       sed "s/^/$as_me: WARNING:     /" >&2
11626     ;;
11627 esac
11628 echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
11629 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6
11630 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11631   echo $ECHO_N "(cached) $ECHO_C" >&6
11632 else
11633   ac_cv_header_libxslt_xslt_h=$ac_header_preproc
11634 fi
11635 echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
11636 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6
11637
11638 fi
11639 if test $ac_cv_header_libxslt_xslt_h = yes; then
11640   :
11641 else
11642   { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
11643 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
11644    { (exit 1); exit 1; }; }
11645 fi
11646
11647
11648 fi
11649
11650 if test "$with_ldap" = yes ; then
11651   if test "$PORTNAME" != "win32"; then
11652
11653 for ac_header in ldap.h
11654 do
11655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11657   echo "$as_me:$LINENO: checking for $ac_header" >&5
11658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11660   echo $ECHO_N "(cached) $ECHO_C" >&6
11661 fi
11662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11664 else
11665   # Is the header compilable?
11666 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11668 cat >conftest.$ac_ext <<_ACEOF
11669 /* confdefs.h.  */
11670 _ACEOF
11671 cat confdefs.h >>conftest.$ac_ext
11672 cat >>conftest.$ac_ext <<_ACEOF
11673 /* end confdefs.h.  */
11674 $ac_includes_default
11675 #include <$ac_header>
11676 _ACEOF
11677 rm -f conftest.$ac_objext
11678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11679   (eval $ac_compile) 2>conftest.er1
11680   ac_status=$?
11681   grep -v '^ *+' conftest.er1 >conftest.err
11682   rm -f conftest.er1
11683   cat conftest.err >&5
11684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685   (exit $ac_status); } &&
11686          { ac_try='test -z "$ac_c_werror_flag"
11687                          || test ! -s conftest.err'
11688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11689   (eval $ac_try) 2>&5
11690   ac_status=$?
11691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692   (exit $ac_status); }; } &&
11693          { ac_try='test -s conftest.$ac_objext'
11694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11695   (eval $ac_try) 2>&5
11696   ac_status=$?
11697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698   (exit $ac_status); }; }; then
11699   ac_header_compiler=yes
11700 else
11701   echo "$as_me: failed program was:" >&5
11702 sed 's/^/| /' conftest.$ac_ext >&5
11703
11704 ac_header_compiler=no
11705 fi
11706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11708 echo "${ECHO_T}$ac_header_compiler" >&6
11709
11710 # Is the header present?
11711 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11713 cat >conftest.$ac_ext <<_ACEOF
11714 /* confdefs.h.  */
11715 _ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h.  */
11719 #include <$ac_header>
11720 _ACEOF
11721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11722   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11723   ac_status=$?
11724   grep -v '^ *+' conftest.er1 >conftest.err
11725   rm -f conftest.er1
11726   cat conftest.err >&5
11727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728   (exit $ac_status); } >/dev/null; then
11729   if test -s conftest.err; then
11730     ac_cpp_err=$ac_c_preproc_warn_flag
11731     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11732   else
11733     ac_cpp_err=
11734   fi
11735 else
11736   ac_cpp_err=yes
11737 fi
11738 if test -z "$ac_cpp_err"; then
11739   ac_header_preproc=yes
11740 else
11741   echo "$as_me: failed program was:" >&5
11742 sed 's/^/| /' conftest.$ac_ext >&5
11743
11744   ac_header_preproc=no
11745 fi
11746 rm -f conftest.err conftest.$ac_ext
11747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11748 echo "${ECHO_T}$ac_header_preproc" >&6
11749
11750 # So?  What about this header?
11751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11752   yes:no: )
11753     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11754 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11755     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11756 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11757     ac_header_preproc=yes
11758     ;;
11759   no:yes:* )
11760     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11761 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11762     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11763 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11764     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11765 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11766     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11767 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11768     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11770     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11771 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11772     (
11773       cat <<\_ASBOX
11774 ## ---------------------------------------- ##
11775 ## Report this to pgsql-bugs@postgresql.org ##
11776 ## ---------------------------------------- ##
11777 _ASBOX
11778     ) |
11779       sed "s/^/$as_me: WARNING:     /" >&2
11780     ;;
11781 esac
11782 echo "$as_me:$LINENO: checking for $ac_header" >&5
11783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11785   echo $ECHO_N "(cached) $ECHO_C" >&6
11786 else
11787   eval "$as_ac_Header=\$ac_header_preproc"
11788 fi
11789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11791
11792 fi
11793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11794   cat >>confdefs.h <<_ACEOF
11795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11796 _ACEOF
11797
11798 else
11799   { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
11800 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
11801    { (exit 1); exit 1; }; }
11802 fi
11803
11804 done
11805
11806   else
11807
11808 for ac_header in winldap.h
11809 do
11810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11811 echo "$as_me:$LINENO: checking for $ac_header" >&5
11812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11814   echo $ECHO_N "(cached) $ECHO_C" >&6
11815 else
11816   cat >conftest.$ac_ext <<_ACEOF
11817 /* confdefs.h.  */
11818 _ACEOF
11819 cat confdefs.h >>conftest.$ac_ext
11820 cat >>conftest.$ac_ext <<_ACEOF
11821 /* end confdefs.h.  */
11822 $ac_includes_default
11823 #include <windows.h>
11824
11825
11826 #include <$ac_header>
11827 _ACEOF
11828 rm -f conftest.$ac_objext
11829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11830   (eval $ac_compile) 2>conftest.er1
11831   ac_status=$?
11832   grep -v '^ *+' conftest.er1 >conftest.err
11833   rm -f conftest.er1
11834   cat conftest.err >&5
11835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836   (exit $ac_status); } &&
11837          { ac_try='test -z "$ac_c_werror_flag"
11838                          || test ! -s conftest.err'
11839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11840   (eval $ac_try) 2>&5
11841   ac_status=$?
11842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843   (exit $ac_status); }; } &&
11844          { ac_try='test -s conftest.$ac_objext'
11845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11846   (eval $ac_try) 2>&5
11847   ac_status=$?
11848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849   (exit $ac_status); }; }; then
11850   eval "$as_ac_Header=yes"
11851 else
11852   echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.$ac_ext >&5
11854
11855 eval "$as_ac_Header=no"
11856 fi
11857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11858 fi
11859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11862   cat >>confdefs.h <<_ACEOF
11863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11864 _ACEOF
11865
11866 else
11867   { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
11868 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
11869    { (exit 1); exit 1; }; }
11870 fi
11871
11872 done
11873
11874   fi
11875 fi
11876
11877 if test "$with_bonjour" = yes ; then
11878   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
11879   echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
11880 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
11881 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
11882   echo $ECHO_N "(cached) $ECHO_C" >&6
11883 fi
11884 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
11885 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
11886 else
11887   # Is the header compilable?
11888 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
11889 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
11890 cat >conftest.$ac_ext <<_ACEOF
11891 /* confdefs.h.  */
11892 _ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h.  */
11896 $ac_includes_default
11897 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
11898 _ACEOF
11899 rm -f conftest.$ac_objext
11900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11901   (eval $ac_compile) 2>conftest.er1
11902   ac_status=$?
11903   grep -v '^ *+' conftest.er1 >conftest.err
11904   rm -f conftest.er1
11905   cat conftest.err >&5
11906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907   (exit $ac_status); } &&
11908          { ac_try='test -z "$ac_c_werror_flag"
11909                          || test ! -s conftest.err'
11910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911   (eval $ac_try) 2>&5
11912   ac_status=$?
11913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914   (exit $ac_status); }; } &&
11915          { ac_try='test -s conftest.$ac_objext'
11916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917   (eval $ac_try) 2>&5
11918   ac_status=$?
11919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920   (exit $ac_status); }; }; then
11921   ac_header_compiler=yes
11922 else
11923   echo "$as_me: failed program was:" >&5
11924 sed 's/^/| /' conftest.$ac_ext >&5
11925
11926 ac_header_compiler=no
11927 fi
11928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11929 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11930 echo "${ECHO_T}$ac_header_compiler" >&6
11931
11932 # Is the header present?
11933 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
11934 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
11935 cat >conftest.$ac_ext <<_ACEOF
11936 /* confdefs.h.  */
11937 _ACEOF
11938 cat confdefs.h >>conftest.$ac_ext
11939 cat >>conftest.$ac_ext <<_ACEOF
11940 /* end confdefs.h.  */
11941 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
11942 _ACEOF
11943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11944   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11945   ac_status=$?
11946   grep -v '^ *+' conftest.er1 >conftest.err
11947   rm -f conftest.er1
11948   cat conftest.err >&5
11949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950   (exit $ac_status); } >/dev/null; then
11951   if test -s conftest.err; then
11952     ac_cpp_err=$ac_c_preproc_warn_flag
11953     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11954   else
11955     ac_cpp_err=
11956   fi
11957 else
11958   ac_cpp_err=yes
11959 fi
11960 if test -z "$ac_cpp_err"; then
11961   ac_header_preproc=yes
11962 else
11963   echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11965
11966   ac_header_preproc=no
11967 fi
11968 rm -f conftest.err conftest.$ac_ext
11969 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11970 echo "${ECHO_T}$ac_header_preproc" >&6
11971
11972 # So?  What about this header?
11973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11974   yes:no: )
11975     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
11976 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11977     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
11978 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
11979     ac_header_preproc=yes
11980     ;;
11981   no:yes:* )
11982     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
11983 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
11984     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&5
11985 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&2;}
11986     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
11987 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
11988     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&5
11989 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11990     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
11991 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
11992     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
11993 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
11994     (
11995       cat <<\_ASBOX
11996 ## ---------------------------------------- ##
11997 ## Report this to pgsql-bugs@postgresql.org ##
11998 ## ---------------------------------------- ##
11999 _ASBOX
12000     ) |
12001       sed "s/^/$as_me: WARNING:     /" >&2
12002     ;;
12003 esac
12004 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12005 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
12006 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12007   echo $ECHO_N "(cached) $ECHO_C" >&6
12008 else
12009   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
12010 fi
12011 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12012 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
12013
12014 fi
12015 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
12016   :
12017 else
12018   { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
12019 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
12020    { (exit 1); exit 1; }; }
12021 fi
12022
12023
12024 fi
12025
12026
12027 ##
12028 ## Types, structures, compiler characteristics
12029 ##
12030
12031  echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12032 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
12033 if test "${ac_cv_c_bigendian+set}" = set; then
12034   echo $ECHO_N "(cached) $ECHO_C" >&6
12035 else
12036   # See if sys/param.h defines the BYTE_ORDER macro.
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 <sys/types.h>
12044 #include <sys/param.h>
12045
12046 int
12047 main ()
12048 {
12049 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12050  bogus endian macros
12051 #endif
12052
12053   ;
12054   return 0;
12055 }
12056 _ACEOF
12057 rm -f conftest.$ac_objext
12058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12059   (eval $ac_compile) 2>conftest.er1
12060   ac_status=$?
12061   grep -v '^ *+' conftest.er1 >conftest.err
12062   rm -f conftest.er1
12063   cat conftest.err >&5
12064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065   (exit $ac_status); } &&
12066          { ac_try='test -z "$ac_c_werror_flag"
12067                          || test ! -s conftest.err'
12068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069   (eval $ac_try) 2>&5
12070   ac_status=$?
12071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072   (exit $ac_status); }; } &&
12073          { ac_try='test -s conftest.$ac_objext'
12074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12075   (eval $ac_try) 2>&5
12076   ac_status=$?
12077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078   (exit $ac_status); }; }; then
12079   # It does; now see whether it defined to BIG_ENDIAN or not.
12080 cat >conftest.$ac_ext <<_ACEOF
12081 /* confdefs.h.  */
12082 _ACEOF
12083 cat confdefs.h >>conftest.$ac_ext
12084 cat >>conftest.$ac_ext <<_ACEOF
12085 /* end confdefs.h.  */
12086 #include <sys/types.h>
12087 #include <sys/param.h>
12088
12089 int
12090 main ()
12091 {
12092 #if BYTE_ORDER != BIG_ENDIAN
12093  not big endian
12094 #endif
12095
12096   ;
12097   return 0;
12098 }
12099 _ACEOF
12100 rm -f conftest.$ac_objext
12101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12102   (eval $ac_compile) 2>conftest.er1
12103   ac_status=$?
12104   grep -v '^ *+' conftest.er1 >conftest.err
12105   rm -f conftest.er1
12106   cat conftest.err >&5
12107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108   (exit $ac_status); } &&
12109          { ac_try='test -z "$ac_c_werror_flag"
12110                          || test ! -s conftest.err'
12111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112   (eval $ac_try) 2>&5
12113   ac_status=$?
12114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115   (exit $ac_status); }; } &&
12116          { ac_try='test -s conftest.$ac_objext'
12117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118   (eval $ac_try) 2>&5
12119   ac_status=$?
12120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121   (exit $ac_status); }; }; then
12122   ac_cv_c_bigendian=yes
12123 else
12124   echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12126
12127 ac_cv_c_bigendian=no
12128 fi
12129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12130 else
12131   echo "$as_me: failed program was:" >&5
12132 sed 's/^/| /' conftest.$ac_ext >&5
12133
12134 # It does not; compile a test program.
12135 if test "$cross_compiling" = yes; then
12136   # try to guess the endianness by grepping values into an object file
12137   ac_cv_c_bigendian=unknown
12138   cat >conftest.$ac_ext <<_ACEOF
12139 /* confdefs.h.  */
12140 _ACEOF
12141 cat confdefs.h >>conftest.$ac_ext
12142 cat >>conftest.$ac_ext <<_ACEOF
12143 /* end confdefs.h.  */
12144 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12145 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12146 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12147 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12148 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12149 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12150 int
12151 main ()
12152 {
12153  _ascii (); _ebcdic ();
12154   ;
12155   return 0;
12156 }
12157 _ACEOF
12158 rm -f conftest.$ac_objext
12159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12160   (eval $ac_compile) 2>conftest.er1
12161   ac_status=$?
12162   grep -v '^ *+' conftest.er1 >conftest.err
12163   rm -f conftest.er1
12164   cat conftest.err >&5
12165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166   (exit $ac_status); } &&
12167          { ac_try='test -z "$ac_c_werror_flag"
12168                          || test ! -s conftest.err'
12169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170   (eval $ac_try) 2>&5
12171   ac_status=$?
12172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173   (exit $ac_status); }; } &&
12174          { ac_try='test -s conftest.$ac_objext'
12175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12176   (eval $ac_try) 2>&5
12177   ac_status=$?
12178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179   (exit $ac_status); }; }; then
12180   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
12181   ac_cv_c_bigendian=yes
12182 fi
12183 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12184   if test "$ac_cv_c_bigendian" = unknown; then
12185     ac_cv_c_bigendian=no
12186   else
12187     # finding both strings is unlikely to happen, but who knows?
12188     ac_cv_c_bigendian=unknown
12189   fi
12190 fi
12191 else
12192   echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.$ac_ext >&5
12194
12195 fi
12196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12197 else
12198   cat >conftest.$ac_ext <<_ACEOF
12199 /* confdefs.h.  */
12200 _ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h.  */
12204 int
12205 main ()
12206 {
12207   /* Are we little or big endian?  From Harbison&Steele.  */
12208   union
12209   {
12210     long l;
12211     char c[sizeof (long)];
12212   } u;
12213   u.l = 1;
12214   exit (u.c[sizeof (long) - 1] == 1);
12215 }
12216 _ACEOF
12217 rm -f conftest$ac_exeext
12218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12219   (eval $ac_link) 2>&5
12220   ac_status=$?
12221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224   (eval $ac_try) 2>&5
12225   ac_status=$?
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); }; }; then
12228   ac_cv_c_bigendian=no
12229 else
12230   echo "$as_me: program exited with status $ac_status" >&5
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12233
12234 ( exit $ac_status )
12235 ac_cv_c_bigendian=yes
12236 fi
12237 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12238 fi
12239 fi
12240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12241 fi
12242 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12243 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
12244 case $ac_cv_c_bigendian in
12245   yes)
12246
12247 cat >>confdefs.h <<\_ACEOF
12248 #define WORDS_BIGENDIAN 1
12249 _ACEOF
12250  ;;
12251   no)
12252      ;;
12253   *)
12254     { { echo "$as_me:$LINENO: error: unknown endianness
12255 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12256 echo "$as_me: error: unknown endianness
12257 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12258    { (exit 1); exit 1; }; } ;;
12259 esac
12260
12261 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12262 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12263 if test "${ac_cv_c_const+set}" = set; then
12264   echo $ECHO_N "(cached) $ECHO_C" >&6
12265 else
12266   cat >conftest.$ac_ext <<_ACEOF
12267 /* confdefs.h.  */
12268 _ACEOF
12269 cat confdefs.h >>conftest.$ac_ext
12270 cat >>conftest.$ac_ext <<_ACEOF
12271 /* end confdefs.h.  */
12272
12273 int
12274 main ()
12275 {
12276 /* FIXME: Include the comments suggested by Paul. */
12277 #ifndef __cplusplus
12278   /* Ultrix mips cc rejects this.  */
12279   typedef int charset[2];
12280   const charset x;
12281   /* SunOS 4.1.1 cc rejects this.  */
12282   char const *const *ccp;
12283   char **p;
12284   /* NEC SVR4.0.2 mips cc rejects this.  */
12285   struct point {int x, y;};
12286   static struct point const zero = {0,0};
12287   /* AIX XL C 1.02.0.0 rejects this.
12288      It does not let you subtract one const X* pointer from another in
12289      an arm of an if-expression whose if-part is not a constant
12290      expression */
12291   const char *g = "string";
12292   ccp = &g + (g ? g-g : 0);
12293   /* HPUX 7.0 cc rejects these. */
12294   ++ccp;
12295   p = (char**) ccp;
12296   ccp = (char const *const *) p;
12297   { /* SCO 3.2v4 cc rejects this.  */
12298     char *t;
12299     char const *s = 0 ? (char *) 0 : (char const *) 0;
12300
12301     *t++ = 0;
12302   }
12303   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12304     int x[] = {25, 17};
12305     const int *foo = &x[0];
12306     ++foo;
12307   }
12308   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12309     typedef const int *iptr;
12310     iptr p = 0;
12311     ++p;
12312   }
12313   { /* AIX XL C 1.02.0.0 rejects this saying
12314        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12315     struct s { int j; const int *ap[3]; };
12316     struct s *b; b->j = 5;
12317   }
12318   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12319     const int foo = 10;
12320   }
12321 #endif
12322
12323   ;
12324   return 0;
12325 }
12326 _ACEOF
12327 rm -f conftest.$ac_objext
12328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12329   (eval $ac_compile) 2>conftest.er1
12330   ac_status=$?
12331   grep -v '^ *+' conftest.er1 >conftest.err
12332   rm -f conftest.er1
12333   cat conftest.err >&5
12334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335   (exit $ac_status); } &&
12336          { ac_try='test -z "$ac_c_werror_flag"
12337                          || test ! -s conftest.err'
12338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339   (eval $ac_try) 2>&5
12340   ac_status=$?
12341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342   (exit $ac_status); }; } &&
12343          { ac_try='test -s conftest.$ac_objext'
12344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345   (eval $ac_try) 2>&5
12346   ac_status=$?
12347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348   (exit $ac_status); }; }; then
12349   ac_cv_c_const=yes
12350 else
12351   echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.$ac_ext >&5
12353
12354 ac_cv_c_const=no
12355 fi
12356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12357 fi
12358 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12359 echo "${ECHO_T}$ac_cv_c_const" >&6
12360 if test $ac_cv_c_const = no; then
12361
12362 cat >>confdefs.h <<\_ACEOF
12363 #define const
12364 _ACEOF
12365
12366 fi
12367
12368
12369 echo "$as_me:$LINENO: checking for inline" >&5
12370 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12371 if test "${ac_cv_c_inline+set}" = set; then
12372   echo $ECHO_N "(cached) $ECHO_C" >&6
12373 else
12374   ac_cv_c_inline=no
12375 for ac_kw in inline __inline__ __inline; do
12376   cat >conftest.$ac_ext <<_ACEOF
12377 /* confdefs.h.  */
12378 _ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h.  */
12382 #ifndef __cplusplus
12383 typedef int foo_t;
12384 static $ac_kw foo_t static_foo () {return 0; }
12385 $ac_kw int foo () {return 0; }
12386 #endif
12387
12388 _ACEOF
12389 rm -f conftest.$ac_objext
12390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12391   (eval $ac_compile) 2>conftest.er1
12392   ac_status=$?
12393   grep -v '^ *+' conftest.er1 >conftest.err
12394   rm -f conftest.er1
12395   cat conftest.err >&5
12396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397   (exit $ac_status); } &&
12398          { ac_try='test -z "$ac_c_werror_flag"
12399                          || test ! -s conftest.err'
12400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12401   (eval $ac_try) 2>&5
12402   ac_status=$?
12403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404   (exit $ac_status); }; } &&
12405          { ac_try='test -s conftest.$ac_objext'
12406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407   (eval $ac_try) 2>&5
12408   ac_status=$?
12409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410   (exit $ac_status); }; }; then
12411   ac_cv_c_inline=$ac_kw; break
12412 else
12413   echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.$ac_ext >&5
12415
12416 fi
12417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12418 done
12419
12420 fi
12421 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12422 echo "${ECHO_T}$ac_cv_c_inline" >&6
12423 case $ac_cv_c_inline in
12424   inline | yes) ;;
12425   no)
12426 cat >>confdefs.h <<\_ACEOF
12427 #define inline
12428 _ACEOF
12429  ;;
12430   *)  cat >>confdefs.h <<_ACEOF
12431 #define inline $ac_cv_c_inline
12432 _ACEOF
12433  ;;
12434 esac
12435
12436 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
12437 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
12438 if test "${ac_cv_c_stringize+set}" = set; then
12439   echo $ECHO_N "(cached) $ECHO_C" >&6
12440 else
12441   cat >conftest.$ac_ext <<_ACEOF
12442 /* confdefs.h.  */
12443 _ACEOF
12444 cat confdefs.h >>conftest.$ac_ext
12445 cat >>conftest.$ac_ext <<_ACEOF
12446 /* end confdefs.h.  */
12447 #define x(y) #y
12448
12449 char *s = x(teststring);
12450 _ACEOF
12451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12452   $EGREP "#teststring" >/dev/null 2>&1; then
12453   ac_cv_c_stringize=no
12454 else
12455   ac_cv_c_stringize=yes
12456 fi
12457 rm -f conftest*
12458
12459 fi
12460 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
12461 echo "${ECHO_T}$ac_cv_c_stringize" >&6
12462 if test $ac_cv_c_stringize = yes; then
12463
12464 cat >>confdefs.h <<\_ACEOF
12465 #define HAVE_STRINGIZE 1
12466 _ACEOF
12467
12468 fi
12469
12470 echo "$as_me:$LINENO: checking for signed types" >&5
12471 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
12472 if test "${pgac_cv_c_signed+set}" = set; then
12473   echo $ECHO_N "(cached) $ECHO_C" >&6
12474 else
12475   cat >conftest.$ac_ext <<_ACEOF
12476 /* confdefs.h.  */
12477 _ACEOF
12478 cat confdefs.h >>conftest.$ac_ext
12479 cat >>conftest.$ac_ext <<_ACEOF
12480 /* end confdefs.h.  */
12481
12482 int
12483 main ()
12484 {
12485 signed char c; signed short s; signed int i;
12486   ;
12487   return 0;
12488 }
12489 _ACEOF
12490 rm -f conftest.$ac_objext
12491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12492   (eval $ac_compile) 2>conftest.er1
12493   ac_status=$?
12494   grep -v '^ *+' conftest.er1 >conftest.err
12495   rm -f conftest.er1
12496   cat conftest.err >&5
12497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498   (exit $ac_status); } &&
12499          { ac_try='test -z "$ac_c_werror_flag"
12500                          || test ! -s conftest.err'
12501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12502   (eval $ac_try) 2>&5
12503   ac_status=$?
12504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505   (exit $ac_status); }; } &&
12506          { ac_try='test -s conftest.$ac_objext'
12507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12508   (eval $ac_try) 2>&5
12509   ac_status=$?
12510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511   (exit $ac_status); }; }; then
12512   pgac_cv_c_signed=yes
12513 else
12514   echo "$as_me: failed program was:" >&5
12515 sed 's/^/| /' conftest.$ac_ext >&5
12516
12517 pgac_cv_c_signed=no
12518 fi
12519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12520 fi
12521 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
12522 echo "${ECHO_T}$pgac_cv_c_signed" >&6
12523 if test x"$pgac_cv_c_signed" = xno ; then
12524
12525 cat >>confdefs.h <<\_ACEOF
12526 #define signed
12527 _ACEOF
12528
12529 fi
12530 echo "$as_me:$LINENO: checking for working volatile" >&5
12531 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
12532 if test "${ac_cv_c_volatile+set}" = set; then
12533   echo $ECHO_N "(cached) $ECHO_C" >&6
12534 else
12535   cat >conftest.$ac_ext <<_ACEOF
12536 /* confdefs.h.  */
12537 _ACEOF
12538 cat confdefs.h >>conftest.$ac_ext
12539 cat >>conftest.$ac_ext <<_ACEOF
12540 /* end confdefs.h.  */
12541
12542 int
12543 main ()
12544 {
12545
12546 volatile int x;
12547 int * volatile y;
12548   ;
12549   return 0;
12550 }
12551 _ACEOF
12552 rm -f conftest.$ac_objext
12553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12554   (eval $ac_compile) 2>conftest.er1
12555   ac_status=$?
12556   grep -v '^ *+' conftest.er1 >conftest.err
12557   rm -f conftest.er1
12558   cat conftest.err >&5
12559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560   (exit $ac_status); } &&
12561          { ac_try='test -z "$ac_c_werror_flag"
12562                          || test ! -s conftest.err'
12563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12564   (eval $ac_try) 2>&5
12565   ac_status=$?
12566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567   (exit $ac_status); }; } &&
12568          { ac_try='test -s conftest.$ac_objext'
12569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12570   (eval $ac_try) 2>&5
12571   ac_status=$?
12572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573   (exit $ac_status); }; }; then
12574   ac_cv_c_volatile=yes
12575 else
12576   echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.$ac_ext >&5
12578
12579 ac_cv_c_volatile=no
12580 fi
12581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12582 fi
12583 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
12584 echo "${ECHO_T}$ac_cv_c_volatile" >&6
12585 if test $ac_cv_c_volatile = no; then
12586
12587 cat >>confdefs.h <<\_ACEOF
12588 #define volatile
12589 _ACEOF
12590
12591 fi
12592
12593 echo "$as_me:$LINENO: checking for __func__" >&5
12594 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
12595 if test "${pgac_cv_funcname_func_support+set}" = set; then
12596   echo $ECHO_N "(cached) $ECHO_C" >&6
12597 else
12598   cat >conftest.$ac_ext <<_ACEOF
12599 /* confdefs.h.  */
12600 _ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h.  */
12604 #include <stdio.h>
12605 int
12606 main ()
12607 {
12608 printf("%s\n", __func__);
12609   ;
12610   return 0;
12611 }
12612 _ACEOF
12613 rm -f conftest.$ac_objext
12614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12615   (eval $ac_compile) 2>conftest.er1
12616   ac_status=$?
12617   grep -v '^ *+' conftest.er1 >conftest.err
12618   rm -f conftest.er1
12619   cat conftest.err >&5
12620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621   (exit $ac_status); } &&
12622          { ac_try='test -z "$ac_c_werror_flag"
12623                          || test ! -s conftest.err'
12624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12625   (eval $ac_try) 2>&5
12626   ac_status=$?
12627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628   (exit $ac_status); }; } &&
12629          { ac_try='test -s conftest.$ac_objext'
12630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12631   (eval $ac_try) 2>&5
12632   ac_status=$?
12633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634   (exit $ac_status); }; }; then
12635   pgac_cv_funcname_func_support=yes
12636 else
12637   echo "$as_me: failed program was:" >&5
12638 sed 's/^/| /' conftest.$ac_ext >&5
12639
12640 pgac_cv_funcname_func_support=no
12641 fi
12642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12643 fi
12644 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
12645 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
12646 if test x"$pgac_cv_funcname_func_support" = xyes ; then
12647
12648 cat >>confdefs.h <<\_ACEOF
12649 #define HAVE_FUNCNAME__FUNC 1
12650 _ACEOF
12651
12652 else
12653 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
12654 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
12655 if test "${pgac_cv_funcname_function_support+set}" = set; then
12656   echo $ECHO_N "(cached) $ECHO_C" >&6
12657 else
12658   cat >conftest.$ac_ext <<_ACEOF
12659 /* confdefs.h.  */
12660 _ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h.  */
12664 #include <stdio.h>
12665 int
12666 main ()
12667 {
12668 printf("%s\n", __FUNCTION__);
12669   ;
12670   return 0;
12671 }
12672 _ACEOF
12673 rm -f conftest.$ac_objext
12674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12675   (eval $ac_compile) 2>conftest.er1
12676   ac_status=$?
12677   grep -v '^ *+' conftest.er1 >conftest.err
12678   rm -f conftest.er1
12679   cat conftest.err >&5
12680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681   (exit $ac_status); } &&
12682          { ac_try='test -z "$ac_c_werror_flag"
12683                          || test ! -s conftest.err'
12684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685   (eval $ac_try) 2>&5
12686   ac_status=$?
12687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688   (exit $ac_status); }; } &&
12689          { ac_try='test -s conftest.$ac_objext'
12690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691   (eval $ac_try) 2>&5
12692   ac_status=$?
12693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694   (exit $ac_status); }; }; then
12695   pgac_cv_funcname_function_support=yes
12696 else
12697   echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.$ac_ext >&5
12699
12700 pgac_cv_funcname_function_support=no
12701 fi
12702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12703 fi
12704 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
12705 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
12706 if test x"$pgac_cv_funcname_function_support" = xyes ; then
12707
12708 cat >>confdefs.h <<\_ACEOF
12709 #define HAVE_FUNCNAME__FUNCTION 1
12710 _ACEOF
12711
12712 fi
12713 fi
12714 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12715 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12716 if test "${ac_cv_struct_tm+set}" = set; then
12717   echo $ECHO_N "(cached) $ECHO_C" >&6
12718 else
12719   cat >conftest.$ac_ext <<_ACEOF
12720 /* confdefs.h.  */
12721 _ACEOF
12722 cat confdefs.h >>conftest.$ac_ext
12723 cat >>conftest.$ac_ext <<_ACEOF
12724 /* end confdefs.h.  */
12725 #include <sys/types.h>
12726 #include <time.h>
12727
12728 int
12729 main ()
12730 {
12731 struct tm *tp; tp->tm_sec;
12732   ;
12733   return 0;
12734 }
12735 _ACEOF
12736 rm -f conftest.$ac_objext
12737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12738   (eval $ac_compile) 2>conftest.er1
12739   ac_status=$?
12740   grep -v '^ *+' conftest.er1 >conftest.err
12741   rm -f conftest.er1
12742   cat conftest.err >&5
12743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744   (exit $ac_status); } &&
12745          { ac_try='test -z "$ac_c_werror_flag"
12746                          || test ! -s conftest.err'
12747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748   (eval $ac_try) 2>&5
12749   ac_status=$?
12750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751   (exit $ac_status); }; } &&
12752          { ac_try='test -s conftest.$ac_objext'
12753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754   (eval $ac_try) 2>&5
12755   ac_status=$?
12756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757   (exit $ac_status); }; }; then
12758   ac_cv_struct_tm=time.h
12759 else
12760   echo "$as_me: failed program was:" >&5
12761 sed 's/^/| /' conftest.$ac_ext >&5
12762
12763 ac_cv_struct_tm=sys/time.h
12764 fi
12765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12766 fi
12767 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12768 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12769 if test $ac_cv_struct_tm = sys/time.h; then
12770
12771 cat >>confdefs.h <<\_ACEOF
12772 #define TM_IN_SYS_TIME 1
12773 _ACEOF
12774
12775 fi
12776
12777 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12778 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12779 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12780   echo $ECHO_N "(cached) $ECHO_C" >&6
12781 else
12782   cat >conftest.$ac_ext <<_ACEOF
12783 /* confdefs.h.  */
12784 _ACEOF
12785 cat confdefs.h >>conftest.$ac_ext
12786 cat >>conftest.$ac_ext <<_ACEOF
12787 /* end confdefs.h.  */
12788 #include <sys/types.h>
12789 #include <$ac_cv_struct_tm>
12790
12791
12792 int
12793 main ()
12794 {
12795 static struct tm ac_aggr;
12796 if (ac_aggr.tm_zone)
12797 return 0;
12798   ;
12799   return 0;
12800 }
12801 _ACEOF
12802 rm -f conftest.$ac_objext
12803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12804   (eval $ac_compile) 2>conftest.er1
12805   ac_status=$?
12806   grep -v '^ *+' conftest.er1 >conftest.err
12807   rm -f conftest.er1
12808   cat conftest.err >&5
12809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810   (exit $ac_status); } &&
12811          { ac_try='test -z "$ac_c_werror_flag"
12812                          || test ! -s conftest.err'
12813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814   (eval $ac_try) 2>&5
12815   ac_status=$?
12816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817   (exit $ac_status); }; } &&
12818          { ac_try='test -s conftest.$ac_objext'
12819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12820   (eval $ac_try) 2>&5
12821   ac_status=$?
12822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823   (exit $ac_status); }; }; then
12824   ac_cv_member_struct_tm_tm_zone=yes
12825 else
12826   echo "$as_me: failed program was:" >&5
12827 sed 's/^/| /' conftest.$ac_ext >&5
12828
12829 cat >conftest.$ac_ext <<_ACEOF
12830 /* confdefs.h.  */
12831 _ACEOF
12832 cat confdefs.h >>conftest.$ac_ext
12833 cat >>conftest.$ac_ext <<_ACEOF
12834 /* end confdefs.h.  */
12835 #include <sys/types.h>
12836 #include <$ac_cv_struct_tm>
12837
12838
12839 int
12840 main ()
12841 {
12842 static struct tm ac_aggr;
12843 if (sizeof ac_aggr.tm_zone)
12844 return 0;
12845   ;
12846   return 0;
12847 }
12848 _ACEOF
12849 rm -f conftest.$ac_objext
12850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12851   (eval $ac_compile) 2>conftest.er1
12852   ac_status=$?
12853   grep -v '^ *+' conftest.er1 >conftest.err
12854   rm -f conftest.er1
12855   cat conftest.err >&5
12856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857   (exit $ac_status); } &&
12858          { ac_try='test -z "$ac_c_werror_flag"
12859                          || test ! -s conftest.err'
12860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861   (eval $ac_try) 2>&5
12862   ac_status=$?
12863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864   (exit $ac_status); }; } &&
12865          { ac_try='test -s conftest.$ac_objext'
12866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867   (eval $ac_try) 2>&5
12868   ac_status=$?
12869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870   (exit $ac_status); }; }; then
12871   ac_cv_member_struct_tm_tm_zone=yes
12872 else
12873   echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12875
12876 ac_cv_member_struct_tm_tm_zone=no
12877 fi
12878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12879 fi
12880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12881 fi
12882 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12883 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12884 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12885
12886 cat >>confdefs.h <<_ACEOF
12887 #define HAVE_STRUCT_TM_TM_ZONE 1
12888 _ACEOF
12889
12890
12891 fi
12892
12893 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12894
12895 cat >>confdefs.h <<\_ACEOF
12896 #define HAVE_TM_ZONE 1
12897 _ACEOF
12898
12899 fi
12900 echo "$as_me:$LINENO: checking for tzname" >&5
12901 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12902 if test "${ac_cv_var_tzname+set}" = set; then
12903   echo $ECHO_N "(cached) $ECHO_C" >&6
12904 else
12905   cat >conftest.$ac_ext <<_ACEOF
12906 /* confdefs.h.  */
12907 _ACEOF
12908 cat confdefs.h >>conftest.$ac_ext
12909 cat >>conftest.$ac_ext <<_ACEOF
12910 /* end confdefs.h.  */
12911 #include <time.h>
12912 #ifndef tzname /* For SGI.  */
12913 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
12914 #endif
12915
12916 int
12917 main ()
12918 {
12919 atoi(*tzname);
12920   ;
12921   return 0;
12922 }
12923 _ACEOF
12924 rm -f conftest.$ac_objext conftest$ac_exeext
12925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12926   (eval $ac_link) 2>conftest.er1
12927   ac_status=$?
12928   grep -v '^ *+' conftest.er1 >conftest.err
12929   rm -f conftest.er1
12930   cat conftest.err >&5
12931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932   (exit $ac_status); } &&
12933          { ac_try='test -z "$ac_c_werror_flag"
12934                          || test ! -s conftest.err'
12935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12936   (eval $ac_try) 2>&5
12937   ac_status=$?
12938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939   (exit $ac_status); }; } &&
12940          { ac_try='test -s conftest$ac_exeext'
12941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12942   (eval $ac_try) 2>&5
12943   ac_status=$?
12944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945   (exit $ac_status); }; }; then
12946   ac_cv_var_tzname=yes
12947 else
12948   echo "$as_me: failed program was:" >&5
12949 sed 's/^/| /' conftest.$ac_ext >&5
12950
12951 ac_cv_var_tzname=no
12952 fi
12953 rm -f conftest.err conftest.$ac_objext \
12954       conftest$ac_exeext conftest.$ac_ext
12955 fi
12956 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12957 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12958 if test $ac_cv_var_tzname = yes; then
12959
12960 cat >>confdefs.h <<\_ACEOF
12961 #define HAVE_TZNAME 1
12962 _ACEOF
12963
12964 fi
12965
12966 echo "$as_me:$LINENO: checking for union semun" >&5
12967 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
12968 if test "${ac_cv_type_union_semun+set}" = set; then
12969   echo $ECHO_N "(cached) $ECHO_C" >&6
12970 else
12971   cat >conftest.$ac_ext <<_ACEOF
12972 /* confdefs.h.  */
12973 _ACEOF
12974 cat confdefs.h >>conftest.$ac_ext
12975 cat >>conftest.$ac_ext <<_ACEOF
12976 /* end confdefs.h.  */
12977 #include <sys/types.h>
12978 #include <sys/ipc.h>
12979 #include <sys/sem.h>
12980
12981 int
12982 main ()
12983 {
12984 if ((union semun *) 0)
12985   return 0;
12986 if (sizeof (union semun))
12987   return 0;
12988   ;
12989   return 0;
12990 }
12991 _ACEOF
12992 rm -f conftest.$ac_objext
12993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12994   (eval $ac_compile) 2>conftest.er1
12995   ac_status=$?
12996   grep -v '^ *+' conftest.er1 >conftest.err
12997   rm -f conftest.er1
12998   cat conftest.err >&5
12999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000   (exit $ac_status); } &&
13001          { ac_try='test -z "$ac_c_werror_flag"
13002                          || test ! -s conftest.err'
13003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13004   (eval $ac_try) 2>&5
13005   ac_status=$?
13006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007   (exit $ac_status); }; } &&
13008          { ac_try='test -s conftest.$ac_objext'
13009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13010   (eval $ac_try) 2>&5
13011   ac_status=$?
13012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013   (exit $ac_status); }; }; then
13014   ac_cv_type_union_semun=yes
13015 else
13016   echo "$as_me: failed program was:" >&5
13017 sed 's/^/| /' conftest.$ac_ext >&5
13018
13019 ac_cv_type_union_semun=no
13020 fi
13021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13022 fi
13023 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
13024 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
13025 if test $ac_cv_type_union_semun = yes; then
13026
13027 cat >>confdefs.h <<_ACEOF
13028 #define HAVE_UNION_SEMUN 1
13029 _ACEOF
13030
13031
13032 fi
13033
13034 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
13035 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
13036 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
13037   echo $ECHO_N "(cached) $ECHO_C" >&6
13038 else
13039   cat >conftest.$ac_ext <<_ACEOF
13040 /* confdefs.h.  */
13041 _ACEOF
13042 cat confdefs.h >>conftest.$ac_ext
13043 cat >>conftest.$ac_ext <<_ACEOF
13044 /* end confdefs.h.  */
13045 #include <sys/types.h>
13046 #ifdef HAVE_SYS_UN_H
13047 #include <sys/un.h>
13048 #endif
13049
13050
13051 int
13052 main ()
13053 {
13054 if ((struct sockaddr_un *) 0)
13055   return 0;
13056 if (sizeof (struct sockaddr_un))
13057   return 0;
13058   ;
13059   return 0;
13060 }
13061 _ACEOF
13062 rm -f conftest.$ac_objext
13063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13064   (eval $ac_compile) 2>conftest.er1
13065   ac_status=$?
13066   grep -v '^ *+' conftest.er1 >conftest.err
13067   rm -f conftest.er1
13068   cat conftest.err >&5
13069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070   (exit $ac_status); } &&
13071          { ac_try='test -z "$ac_c_werror_flag"
13072                          || test ! -s conftest.err'
13073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13074   (eval $ac_try) 2>&5
13075   ac_status=$?
13076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077   (exit $ac_status); }; } &&
13078          { ac_try='test -s conftest.$ac_objext'
13079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13080   (eval $ac_try) 2>&5
13081   ac_status=$?
13082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083   (exit $ac_status); }; }; then
13084   ac_cv_type_struct_sockaddr_un=yes
13085 else
13086   echo "$as_me: failed program was:" >&5
13087 sed 's/^/| /' conftest.$ac_ext >&5
13088
13089 ac_cv_type_struct_sockaddr_un=no
13090 fi
13091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13092 fi
13093 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
13094 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
13095 if test $ac_cv_type_struct_sockaddr_un = yes; then
13096
13097 cat >>confdefs.h <<_ACEOF
13098 #define HAVE_STRUCT_SOCKADDR_UN 1
13099 _ACEOF
13100
13101
13102 cat >>confdefs.h <<\_ACEOF
13103 #define HAVE_UNIX_SOCKETS 1
13104 _ACEOF
13105
13106 fi
13107
13108 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
13109 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
13110 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
13111   echo $ECHO_N "(cached) $ECHO_C" >&6
13112 else
13113   cat >conftest.$ac_ext <<_ACEOF
13114 /* confdefs.h.  */
13115 _ACEOF
13116 cat confdefs.h >>conftest.$ac_ext
13117 cat >>conftest.$ac_ext <<_ACEOF
13118 /* end confdefs.h.  */
13119 #include <sys/types.h>
13120 #ifdef HAVE_SYS_SOCKET_H
13121 #include <sys/socket.h>
13122 #endif
13123
13124
13125 int
13126 main ()
13127 {
13128 if ((struct sockaddr_storage *) 0)
13129   return 0;
13130 if (sizeof (struct sockaddr_storage))
13131   return 0;
13132   ;
13133   return 0;
13134 }
13135 _ACEOF
13136 rm -f conftest.$ac_objext
13137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13138   (eval $ac_compile) 2>conftest.er1
13139   ac_status=$?
13140   grep -v '^ *+' conftest.er1 >conftest.err
13141   rm -f conftest.er1
13142   cat conftest.err >&5
13143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144   (exit $ac_status); } &&
13145          { ac_try='test -z "$ac_c_werror_flag"
13146                          || test ! -s conftest.err'
13147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148   (eval $ac_try) 2>&5
13149   ac_status=$?
13150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151   (exit $ac_status); }; } &&
13152          { ac_try='test -s conftest.$ac_objext'
13153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154   (eval $ac_try) 2>&5
13155   ac_status=$?
13156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157   (exit $ac_status); }; }; then
13158   ac_cv_type_struct_sockaddr_storage=yes
13159 else
13160   echo "$as_me: failed program was:" >&5
13161 sed 's/^/| /' conftest.$ac_ext >&5
13162
13163 ac_cv_type_struct_sockaddr_storage=no
13164 fi
13165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13166 fi
13167 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
13168 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
13169 if test $ac_cv_type_struct_sockaddr_storage = yes; then
13170
13171 cat >>confdefs.h <<_ACEOF
13172 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13173 _ACEOF
13174
13175
13176 fi
13177
13178 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
13179 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
13180 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
13181   echo $ECHO_N "(cached) $ECHO_C" >&6
13182 else
13183   cat >conftest.$ac_ext <<_ACEOF
13184 /* confdefs.h.  */
13185 _ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h.  */
13189 #include <sys/types.h>
13190 #ifdef HAVE_SYS_SOCKET_H
13191 #include <sys/socket.h>
13192 #endif
13193
13194
13195 int
13196 main ()
13197 {
13198 static struct sockaddr_storage ac_aggr;
13199 if (ac_aggr.ss_family)
13200 return 0;
13201   ;
13202   return 0;
13203 }
13204 _ACEOF
13205 rm -f conftest.$ac_objext
13206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13207   (eval $ac_compile) 2>conftest.er1
13208   ac_status=$?
13209   grep -v '^ *+' conftest.er1 >conftest.err
13210   rm -f conftest.er1
13211   cat conftest.err >&5
13212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213   (exit $ac_status); } &&
13214          { ac_try='test -z "$ac_c_werror_flag"
13215                          || test ! -s conftest.err'
13216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13217   (eval $ac_try) 2>&5
13218   ac_status=$?
13219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220   (exit $ac_status); }; } &&
13221          { ac_try='test -s conftest.$ac_objext'
13222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13223   (eval $ac_try) 2>&5
13224   ac_status=$?
13225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226   (exit $ac_status); }; }; then
13227   ac_cv_member_struct_sockaddr_storage_ss_family=yes
13228 else
13229   echo "$as_me: failed program was:" >&5
13230 sed 's/^/| /' conftest.$ac_ext >&5
13231
13232 cat >conftest.$ac_ext <<_ACEOF
13233 /* confdefs.h.  */
13234 _ACEOF
13235 cat confdefs.h >>conftest.$ac_ext
13236 cat >>conftest.$ac_ext <<_ACEOF
13237 /* end confdefs.h.  */
13238 #include <sys/types.h>
13239 #ifdef HAVE_SYS_SOCKET_H
13240 #include <sys/socket.h>
13241 #endif
13242
13243
13244 int
13245 main ()
13246 {
13247 static struct sockaddr_storage ac_aggr;
13248 if (sizeof ac_aggr.ss_family)
13249 return 0;
13250   ;
13251   return 0;
13252 }
13253 _ACEOF
13254 rm -f conftest.$ac_objext
13255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13256   (eval $ac_compile) 2>conftest.er1
13257   ac_status=$?
13258   grep -v '^ *+' conftest.er1 >conftest.err
13259   rm -f conftest.er1
13260   cat conftest.err >&5
13261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262   (exit $ac_status); } &&
13263          { ac_try='test -z "$ac_c_werror_flag"
13264                          || test ! -s conftest.err'
13265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266   (eval $ac_try) 2>&5
13267   ac_status=$?
13268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269   (exit $ac_status); }; } &&
13270          { ac_try='test -s conftest.$ac_objext'
13271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13272   (eval $ac_try) 2>&5
13273   ac_status=$?
13274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275   (exit $ac_status); }; }; then
13276   ac_cv_member_struct_sockaddr_storage_ss_family=yes
13277 else
13278   echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.$ac_ext >&5
13280
13281 ac_cv_member_struct_sockaddr_storage_ss_family=no
13282 fi
13283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13284 fi
13285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13286 fi
13287 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
13288 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
13289 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
13290
13291 cat >>confdefs.h <<_ACEOF
13292 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
13293 _ACEOF
13294
13295
13296 fi
13297 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
13298 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
13299 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
13300   echo $ECHO_N "(cached) $ECHO_C" >&6
13301 else
13302   cat >conftest.$ac_ext <<_ACEOF
13303 /* confdefs.h.  */
13304 _ACEOF
13305 cat confdefs.h >>conftest.$ac_ext
13306 cat >>conftest.$ac_ext <<_ACEOF
13307 /* end confdefs.h.  */
13308 #include <sys/types.h>
13309 #ifdef HAVE_SYS_SOCKET_H
13310 #include <sys/socket.h>
13311 #endif
13312
13313
13314 int
13315 main ()
13316 {
13317 static struct sockaddr_storage ac_aggr;
13318 if (ac_aggr.__ss_family)
13319 return 0;
13320   ;
13321   return 0;
13322 }
13323 _ACEOF
13324 rm -f conftest.$ac_objext
13325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13326   (eval $ac_compile) 2>conftest.er1
13327   ac_status=$?
13328   grep -v '^ *+' conftest.er1 >conftest.err
13329   rm -f conftest.er1
13330   cat conftest.err >&5
13331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332   (exit $ac_status); } &&
13333          { ac_try='test -z "$ac_c_werror_flag"
13334                          || test ! -s conftest.err'
13335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13336   (eval $ac_try) 2>&5
13337   ac_status=$?
13338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339   (exit $ac_status); }; } &&
13340          { ac_try='test -s conftest.$ac_objext'
13341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342   (eval $ac_try) 2>&5
13343   ac_status=$?
13344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345   (exit $ac_status); }; }; then
13346   ac_cv_member_struct_sockaddr_storage___ss_family=yes
13347 else
13348   echo "$as_me: failed program was:" >&5
13349 sed 's/^/| /' conftest.$ac_ext >&5
13350
13351 cat >conftest.$ac_ext <<_ACEOF
13352 /* confdefs.h.  */
13353 _ACEOF
13354 cat confdefs.h >>conftest.$ac_ext
13355 cat >>conftest.$ac_ext <<_ACEOF
13356 /* end confdefs.h.  */
13357 #include <sys/types.h>
13358 #ifdef HAVE_SYS_SOCKET_H
13359 #include <sys/socket.h>
13360 #endif
13361
13362
13363 int
13364 main ()
13365 {
13366 static struct sockaddr_storage ac_aggr;
13367 if (sizeof ac_aggr.__ss_family)
13368 return 0;
13369   ;
13370   return 0;
13371 }
13372 _ACEOF
13373 rm -f conftest.$ac_objext
13374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13375   (eval $ac_compile) 2>conftest.er1
13376   ac_status=$?
13377   grep -v '^ *+' conftest.er1 >conftest.err
13378   rm -f conftest.er1
13379   cat conftest.err >&5
13380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381   (exit $ac_status); } &&
13382          { ac_try='test -z "$ac_c_werror_flag"
13383                          || test ! -s conftest.err'
13384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385   (eval $ac_try) 2>&5
13386   ac_status=$?
13387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388   (exit $ac_status); }; } &&
13389          { ac_try='test -s conftest.$ac_objext'
13390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13391   (eval $ac_try) 2>&5
13392   ac_status=$?
13393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394   (exit $ac_status); }; }; then
13395   ac_cv_member_struct_sockaddr_storage___ss_family=yes
13396 else
13397   echo "$as_me: failed program was:" >&5
13398 sed 's/^/| /' conftest.$ac_ext >&5
13399
13400 ac_cv_member_struct_sockaddr_storage___ss_family=no
13401 fi
13402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13403 fi
13404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13405 fi
13406 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
13407 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
13408 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
13409
13410 cat >>confdefs.h <<_ACEOF
13411 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
13412 _ACEOF
13413
13414
13415 fi
13416 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
13417 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
13418 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
13419   echo $ECHO_N "(cached) $ECHO_C" >&6
13420 else
13421   cat >conftest.$ac_ext <<_ACEOF
13422 /* confdefs.h.  */
13423 _ACEOF
13424 cat confdefs.h >>conftest.$ac_ext
13425 cat >>conftest.$ac_ext <<_ACEOF
13426 /* end confdefs.h.  */
13427 #include <sys/types.h>
13428 #ifdef HAVE_SYS_SOCKET_H
13429 #include <sys/socket.h>
13430 #endif
13431
13432
13433 int
13434 main ()
13435 {
13436 static struct sockaddr_storage ac_aggr;
13437 if (ac_aggr.ss_len)
13438 return 0;
13439   ;
13440   return 0;
13441 }
13442 _ACEOF
13443 rm -f conftest.$ac_objext
13444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13445   (eval $ac_compile) 2>conftest.er1
13446   ac_status=$?
13447   grep -v '^ *+' conftest.er1 >conftest.err
13448   rm -f conftest.er1
13449   cat conftest.err >&5
13450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451   (exit $ac_status); } &&
13452          { ac_try='test -z "$ac_c_werror_flag"
13453                          || test ! -s conftest.err'
13454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455   (eval $ac_try) 2>&5
13456   ac_status=$?
13457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458   (exit $ac_status); }; } &&
13459          { ac_try='test -s conftest.$ac_objext'
13460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13461   (eval $ac_try) 2>&5
13462   ac_status=$?
13463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464   (exit $ac_status); }; }; then
13465   ac_cv_member_struct_sockaddr_storage_ss_len=yes
13466 else
13467   echo "$as_me: failed program was:" >&5
13468 sed 's/^/| /' conftest.$ac_ext >&5
13469
13470 cat >conftest.$ac_ext <<_ACEOF
13471 /* confdefs.h.  */
13472 _ACEOF
13473 cat confdefs.h >>conftest.$ac_ext
13474 cat >>conftest.$ac_ext <<_ACEOF
13475 /* end confdefs.h.  */
13476 #include <sys/types.h>
13477 #ifdef HAVE_SYS_SOCKET_H
13478 #include <sys/socket.h>
13479 #endif
13480
13481
13482 int
13483 main ()
13484 {
13485 static struct sockaddr_storage ac_aggr;
13486 if (sizeof ac_aggr.ss_len)
13487 return 0;
13488   ;
13489   return 0;
13490 }
13491 _ACEOF
13492 rm -f conftest.$ac_objext
13493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13494   (eval $ac_compile) 2>conftest.er1
13495   ac_status=$?
13496   grep -v '^ *+' conftest.er1 >conftest.err
13497   rm -f conftest.er1
13498   cat conftest.err >&5
13499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500   (exit $ac_status); } &&
13501          { ac_try='test -z "$ac_c_werror_flag"
13502                          || test ! -s conftest.err'
13503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13504   (eval $ac_try) 2>&5
13505   ac_status=$?
13506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507   (exit $ac_status); }; } &&
13508          { ac_try='test -s conftest.$ac_objext'
13509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13510   (eval $ac_try) 2>&5
13511   ac_status=$?
13512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513   (exit $ac_status); }; }; then
13514   ac_cv_member_struct_sockaddr_storage_ss_len=yes
13515 else
13516   echo "$as_me: failed program was:" >&5
13517 sed 's/^/| /' conftest.$ac_ext >&5
13518
13519 ac_cv_member_struct_sockaddr_storage_ss_len=no
13520 fi
13521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13522 fi
13523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13524 fi
13525 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
13526 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
13527 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
13528
13529 cat >>confdefs.h <<_ACEOF
13530 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
13531 _ACEOF
13532
13533
13534 fi
13535 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
13536 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
13537 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
13538   echo $ECHO_N "(cached) $ECHO_C" >&6
13539 else
13540   cat >conftest.$ac_ext <<_ACEOF
13541 /* confdefs.h.  */
13542 _ACEOF
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h.  */
13546 #include <sys/types.h>
13547 #ifdef HAVE_SYS_SOCKET_H
13548 #include <sys/socket.h>
13549 #endif
13550
13551
13552 int
13553 main ()
13554 {
13555 static struct sockaddr_storage ac_aggr;
13556 if (ac_aggr.__ss_len)
13557 return 0;
13558   ;
13559   return 0;
13560 }
13561 _ACEOF
13562 rm -f conftest.$ac_objext
13563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13564   (eval $ac_compile) 2>conftest.er1
13565   ac_status=$?
13566   grep -v '^ *+' conftest.er1 >conftest.err
13567   rm -f conftest.er1
13568   cat conftest.err >&5
13569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570   (exit $ac_status); } &&
13571          { ac_try='test -z "$ac_c_werror_flag"
13572                          || test ! -s conftest.err'
13573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574   (eval $ac_try) 2>&5
13575   ac_status=$?
13576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577   (exit $ac_status); }; } &&
13578          { ac_try='test -s conftest.$ac_objext'
13579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580   (eval $ac_try) 2>&5
13581   ac_status=$?
13582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583   (exit $ac_status); }; }; then
13584   ac_cv_member_struct_sockaddr_storage___ss_len=yes
13585 else
13586   echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13588
13589 cat >conftest.$ac_ext <<_ACEOF
13590 /* confdefs.h.  */
13591 _ACEOF
13592 cat confdefs.h >>conftest.$ac_ext
13593 cat >>conftest.$ac_ext <<_ACEOF
13594 /* end confdefs.h.  */
13595 #include <sys/types.h>
13596 #ifdef HAVE_SYS_SOCKET_H
13597 #include <sys/socket.h>
13598 #endif
13599
13600
13601 int
13602 main ()
13603 {
13604 static struct sockaddr_storage ac_aggr;
13605 if (sizeof ac_aggr.__ss_len)
13606 return 0;
13607   ;
13608   return 0;
13609 }
13610 _ACEOF
13611 rm -f conftest.$ac_objext
13612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13613   (eval $ac_compile) 2>conftest.er1
13614   ac_status=$?
13615   grep -v '^ *+' conftest.er1 >conftest.err
13616   rm -f conftest.er1
13617   cat conftest.err >&5
13618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619   (exit $ac_status); } &&
13620          { ac_try='test -z "$ac_c_werror_flag"
13621                          || test ! -s conftest.err'
13622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623   (eval $ac_try) 2>&5
13624   ac_status=$?
13625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626   (exit $ac_status); }; } &&
13627          { ac_try='test -s conftest.$ac_objext'
13628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629   (eval $ac_try) 2>&5
13630   ac_status=$?
13631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632   (exit $ac_status); }; }; then
13633   ac_cv_member_struct_sockaddr_storage___ss_len=yes
13634 else
13635   echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13637
13638 ac_cv_member_struct_sockaddr_storage___ss_len=no
13639 fi
13640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13641 fi
13642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13643 fi
13644 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
13645 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
13646 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
13647
13648 cat >>confdefs.h <<_ACEOF
13649 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
13650 _ACEOF
13651
13652
13653 fi
13654 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
13655 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
13656 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
13657   echo $ECHO_N "(cached) $ECHO_C" >&6
13658 else
13659   cat >conftest.$ac_ext <<_ACEOF
13660 /* confdefs.h.  */
13661 _ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h.  */
13665 #include <sys/types.h>
13666 #ifdef HAVE_SYS_SOCKET_H
13667 #include <sys/socket.h>
13668 #endif
13669
13670
13671 int
13672 main ()
13673 {
13674 static struct sockaddr ac_aggr;
13675 if (ac_aggr.sa_len)
13676 return 0;
13677   ;
13678   return 0;
13679 }
13680 _ACEOF
13681 rm -f conftest.$ac_objext
13682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13683   (eval $ac_compile) 2>conftest.er1
13684   ac_status=$?
13685   grep -v '^ *+' conftest.er1 >conftest.err
13686   rm -f conftest.er1
13687   cat conftest.err >&5
13688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689   (exit $ac_status); } &&
13690          { ac_try='test -z "$ac_c_werror_flag"
13691                          || test ! -s conftest.err'
13692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13693   (eval $ac_try) 2>&5
13694   ac_status=$?
13695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696   (exit $ac_status); }; } &&
13697          { ac_try='test -s conftest.$ac_objext'
13698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699   (eval $ac_try) 2>&5
13700   ac_status=$?
13701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); }; }; then
13703   ac_cv_member_struct_sockaddr_sa_len=yes
13704 else
13705   echo "$as_me: failed program was:" >&5
13706 sed 's/^/| /' conftest.$ac_ext >&5
13707
13708 cat >conftest.$ac_ext <<_ACEOF
13709 /* confdefs.h.  */
13710 _ACEOF
13711 cat confdefs.h >>conftest.$ac_ext
13712 cat >>conftest.$ac_ext <<_ACEOF
13713 /* end confdefs.h.  */
13714 #include <sys/types.h>
13715 #ifdef HAVE_SYS_SOCKET_H
13716 #include <sys/socket.h>
13717 #endif
13718
13719
13720 int
13721 main ()
13722 {
13723 static struct sockaddr ac_aggr;
13724 if (sizeof ac_aggr.sa_len)
13725 return 0;
13726   ;
13727   return 0;
13728 }
13729 _ACEOF
13730 rm -f conftest.$ac_objext
13731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13732   (eval $ac_compile) 2>conftest.er1
13733   ac_status=$?
13734   grep -v '^ *+' conftest.er1 >conftest.err
13735   rm -f conftest.er1
13736   cat conftest.err >&5
13737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738   (exit $ac_status); } &&
13739          { ac_try='test -z "$ac_c_werror_flag"
13740                          || test ! -s conftest.err'
13741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742   (eval $ac_try) 2>&5
13743   ac_status=$?
13744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745   (exit $ac_status); }; } &&
13746          { ac_try='test -s conftest.$ac_objext'
13747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748   (eval $ac_try) 2>&5
13749   ac_status=$?
13750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751   (exit $ac_status); }; }; then
13752   ac_cv_member_struct_sockaddr_sa_len=yes
13753 else
13754   echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.$ac_ext >&5
13756
13757 ac_cv_member_struct_sockaddr_sa_len=no
13758 fi
13759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13760 fi
13761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13762 fi
13763 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
13764 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
13765 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
13766
13767 cat >>confdefs.h <<_ACEOF
13768 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13769 _ACEOF
13770
13771
13772 fi
13773
13774 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
13775 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
13776 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
13777   echo $ECHO_N "(cached) $ECHO_C" >&6
13778 else
13779   cat >conftest.$ac_ext <<_ACEOF
13780 /* confdefs.h.  */
13781 _ACEOF
13782 cat confdefs.h >>conftest.$ac_ext
13783 cat >>conftest.$ac_ext <<_ACEOF
13784 /* end confdefs.h.  */
13785 #include <sys/types.h>
13786 #include <sys/socket.h>
13787 #include <netdb.h>
13788
13789
13790 int
13791 main ()
13792 {
13793 if ((struct addrinfo *) 0)
13794   return 0;
13795 if (sizeof (struct addrinfo))
13796   return 0;
13797   ;
13798   return 0;
13799 }
13800 _ACEOF
13801 rm -f conftest.$ac_objext
13802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13803   (eval $ac_compile) 2>conftest.er1
13804   ac_status=$?
13805   grep -v '^ *+' conftest.er1 >conftest.err
13806   rm -f conftest.er1
13807   cat conftest.err >&5
13808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809   (exit $ac_status); } &&
13810          { ac_try='test -z "$ac_c_werror_flag"
13811                          || test ! -s conftest.err'
13812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813   (eval $ac_try) 2>&5
13814   ac_status=$?
13815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816   (exit $ac_status); }; } &&
13817          { ac_try='test -s conftest.$ac_objext'
13818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13819   (eval $ac_try) 2>&5
13820   ac_status=$?
13821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822   (exit $ac_status); }; }; then
13823   ac_cv_type_struct_addrinfo=yes
13824 else
13825   echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13827
13828 ac_cv_type_struct_addrinfo=no
13829 fi
13830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13831 fi
13832 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
13833 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
13834 if test $ac_cv_type_struct_addrinfo = yes; then
13835
13836 cat >>confdefs.h <<_ACEOF
13837 #define HAVE_STRUCT_ADDRINFO 1
13838 _ACEOF
13839
13840
13841 fi
13842
13843
13844 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
13845 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
13846 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
13847   echo $ECHO_N "(cached) $ECHO_C" >&6
13848 else
13849   cat >conftest.$ac_ext <<_ACEOF
13850 /* confdefs.h.  */
13851 _ACEOF
13852 cat confdefs.h >>conftest.$ac_ext
13853 cat >>conftest.$ac_ext <<_ACEOF
13854 /* end confdefs.h.  */
13855 #include <sys/param.h>
13856 #include <sys/types.h>
13857 #include <sys/socket.h>
13858 #include <sys/ucred.h>
13859
13860 int
13861 main ()
13862 {
13863 if ((struct cmsgcred *) 0)
13864   return 0;
13865 if (sizeof (struct cmsgcred))
13866   return 0;
13867   ;
13868   return 0;
13869 }
13870 _ACEOF
13871 rm -f conftest.$ac_objext
13872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13873   (eval $ac_compile) 2>conftest.er1
13874   ac_status=$?
13875   grep -v '^ *+' conftest.er1 >conftest.err
13876   rm -f conftest.er1
13877   cat conftest.err >&5
13878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879   (exit $ac_status); } &&
13880          { ac_try='test -z "$ac_c_werror_flag"
13881                          || test ! -s conftest.err'
13882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883   (eval $ac_try) 2>&5
13884   ac_status=$?
13885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886   (exit $ac_status); }; } &&
13887          { ac_try='test -s conftest.$ac_objext'
13888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889   (eval $ac_try) 2>&5
13890   ac_status=$?
13891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892   (exit $ac_status); }; }; then
13893   ac_cv_type_struct_cmsgcred=yes
13894 else
13895   echo "$as_me: failed program was:" >&5
13896 sed 's/^/| /' conftest.$ac_ext >&5
13897
13898 ac_cv_type_struct_cmsgcred=no
13899 fi
13900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13901 fi
13902 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
13903 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
13904 if test $ac_cv_type_struct_cmsgcred = yes; then
13905
13906 cat >>confdefs.h <<_ACEOF
13907 #define HAVE_STRUCT_CMSGCRED 1
13908 _ACEOF
13909
13910
13911 fi
13912 echo "$as_me:$LINENO: checking for struct fcred" >&5
13913 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
13914 if test "${ac_cv_type_struct_fcred+set}" = set; then
13915   echo $ECHO_N "(cached) $ECHO_C" >&6
13916 else
13917   cat >conftest.$ac_ext <<_ACEOF
13918 /* confdefs.h.  */
13919 _ACEOF
13920 cat confdefs.h >>conftest.$ac_ext
13921 cat >>conftest.$ac_ext <<_ACEOF
13922 /* end confdefs.h.  */
13923 #include <sys/param.h>
13924 #include <sys/types.h>
13925 #include <sys/socket.h>
13926 #include <sys/ucred.h>
13927
13928 int
13929 main ()
13930 {
13931 if ((struct fcred *) 0)
13932   return 0;
13933 if (sizeof (struct fcred))
13934   return 0;
13935   ;
13936   return 0;
13937 }
13938 _ACEOF
13939 rm -f conftest.$ac_objext
13940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13941   (eval $ac_compile) 2>conftest.er1
13942   ac_status=$?
13943   grep -v '^ *+' conftest.er1 >conftest.err
13944   rm -f conftest.er1
13945   cat conftest.err >&5
13946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947   (exit $ac_status); } &&
13948          { ac_try='test -z "$ac_c_werror_flag"
13949                          || test ! -s conftest.err'
13950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13951   (eval $ac_try) 2>&5
13952   ac_status=$?
13953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954   (exit $ac_status); }; } &&
13955          { ac_try='test -s conftest.$ac_objext'
13956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13957   (eval $ac_try) 2>&5
13958   ac_status=$?
13959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960   (exit $ac_status); }; }; then
13961   ac_cv_type_struct_fcred=yes
13962 else
13963   echo "$as_me: failed program was:" >&5
13964 sed 's/^/| /' conftest.$ac_ext >&5
13965
13966 ac_cv_type_struct_fcred=no
13967 fi
13968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13969 fi
13970 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
13971 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
13972 if test $ac_cv_type_struct_fcred = yes; then
13973
13974 cat >>confdefs.h <<_ACEOF
13975 #define HAVE_STRUCT_FCRED 1
13976 _ACEOF
13977
13978
13979 fi
13980 echo "$as_me:$LINENO: checking for struct sockcred" >&5
13981 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
13982 if test "${ac_cv_type_struct_sockcred+set}" = set; then
13983   echo $ECHO_N "(cached) $ECHO_C" >&6
13984 else
13985   cat >conftest.$ac_ext <<_ACEOF
13986 /* confdefs.h.  */
13987 _ACEOF
13988 cat confdefs.h >>conftest.$ac_ext
13989 cat >>conftest.$ac_ext <<_ACEOF
13990 /* end confdefs.h.  */
13991 #include <sys/param.h>
13992 #include <sys/types.h>
13993 #include <sys/socket.h>
13994 #include <sys/ucred.h>
13995
13996 int
13997 main ()
13998 {
13999 if ((struct sockcred *) 0)
14000   return 0;
14001 if (sizeof (struct sockcred))
14002   return 0;
14003   ;
14004   return 0;
14005 }
14006 _ACEOF
14007 rm -f conftest.$ac_objext
14008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14009   (eval $ac_compile) 2>conftest.er1
14010   ac_status=$?
14011   grep -v '^ *+' conftest.er1 >conftest.err
14012   rm -f conftest.er1
14013   cat conftest.err >&5
14014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015   (exit $ac_status); } &&
14016          { ac_try='test -z "$ac_c_werror_flag"
14017                          || test ! -s conftest.err'
14018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14019   (eval $ac_try) 2>&5
14020   ac_status=$?
14021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022   (exit $ac_status); }; } &&
14023          { ac_try='test -s conftest.$ac_objext'
14024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14025   (eval $ac_try) 2>&5
14026   ac_status=$?
14027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028   (exit $ac_status); }; }; then
14029   ac_cv_type_struct_sockcred=yes
14030 else
14031   echo "$as_me: failed program was:" >&5
14032 sed 's/^/| /' conftest.$ac_ext >&5
14033
14034 ac_cv_type_struct_sockcred=no
14035 fi
14036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14037 fi
14038 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
14039 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
14040 if test $ac_cv_type_struct_sockcred = yes; then
14041
14042 cat >>confdefs.h <<_ACEOF
14043 #define HAVE_STRUCT_SOCKCRED 1
14044 _ACEOF
14045
14046
14047 fi
14048
14049
14050 echo "$as_me:$LINENO: checking for struct option" >&5
14051 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
14052 if test "${ac_cv_type_struct_option+set}" = set; then
14053   echo $ECHO_N "(cached) $ECHO_C" >&6
14054 else
14055   cat >conftest.$ac_ext <<_ACEOF
14056 /* confdefs.h.  */
14057 _ACEOF
14058 cat confdefs.h >>conftest.$ac_ext
14059 cat >>conftest.$ac_ext <<_ACEOF
14060 /* end confdefs.h.  */
14061 #ifdef HAVE_GETOPT_H
14062 #include <getopt.h>
14063 #endif
14064
14065 int
14066 main ()
14067 {
14068 if ((struct option *) 0)
14069   return 0;
14070 if (sizeof (struct option))
14071   return 0;
14072   ;
14073   return 0;
14074 }
14075 _ACEOF
14076 rm -f conftest.$ac_objext
14077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14078   (eval $ac_compile) 2>conftest.er1
14079   ac_status=$?
14080   grep -v '^ *+' conftest.er1 >conftest.err
14081   rm -f conftest.er1
14082   cat conftest.err >&5
14083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084   (exit $ac_status); } &&
14085          { ac_try='test -z "$ac_c_werror_flag"
14086                          || test ! -s conftest.err'
14087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088   (eval $ac_try) 2>&5
14089   ac_status=$?
14090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091   (exit $ac_status); }; } &&
14092          { ac_try='test -s conftest.$ac_objext'
14093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14094   (eval $ac_try) 2>&5
14095   ac_status=$?
14096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097   (exit $ac_status); }; }; then
14098   ac_cv_type_struct_option=yes
14099 else
14100   echo "$as_me: failed program was:" >&5
14101 sed 's/^/| /' conftest.$ac_ext >&5
14102
14103 ac_cv_type_struct_option=no
14104 fi
14105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14106 fi
14107 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
14108 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
14109 if test $ac_cv_type_struct_option = yes; then
14110
14111 cat >>confdefs.h <<_ACEOF
14112 #define HAVE_STRUCT_OPTION 1
14113 _ACEOF
14114
14115
14116 fi
14117
14118
14119 if test "$with_zlib" = yes; then
14120   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
14121   # did not).  While we could work around the lack of z_streamp, it
14122   # seems unwise to encourage people to use such old zlib versions...
14123   echo "$as_me:$LINENO: checking for z_streamp" >&5
14124 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
14125 if test "${ac_cv_type_z_streamp+set}" = set; then
14126   echo $ECHO_N "(cached) $ECHO_C" >&6
14127 else
14128   cat >conftest.$ac_ext <<_ACEOF
14129 /* confdefs.h.  */
14130 _ACEOF
14131 cat confdefs.h >>conftest.$ac_ext
14132 cat >>conftest.$ac_ext <<_ACEOF
14133 /* end confdefs.h.  */
14134 #include <zlib.h>
14135
14136 int
14137 main ()
14138 {
14139 if ((z_streamp *) 0)
14140   return 0;
14141 if (sizeof (z_streamp))
14142   return 0;
14143   ;
14144   return 0;
14145 }
14146 _ACEOF
14147 rm -f conftest.$ac_objext
14148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14149   (eval $ac_compile) 2>conftest.er1
14150   ac_status=$?
14151   grep -v '^ *+' conftest.er1 >conftest.err
14152   rm -f conftest.er1
14153   cat conftest.err >&5
14154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155   (exit $ac_status); } &&
14156          { ac_try='test -z "$ac_c_werror_flag"
14157                          || test ! -s conftest.err'
14158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14159   (eval $ac_try) 2>&5
14160   ac_status=$?
14161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162   (exit $ac_status); }; } &&
14163          { ac_try='test -s conftest.$ac_objext'
14164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14165   (eval $ac_try) 2>&5
14166   ac_status=$?
14167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168   (exit $ac_status); }; }; then
14169   ac_cv_type_z_streamp=yes
14170 else
14171   echo "$as_me: failed program was:" >&5
14172 sed 's/^/| /' conftest.$ac_ext >&5
14173
14174 ac_cv_type_z_streamp=no
14175 fi
14176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14177 fi
14178 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
14179 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
14180 if test $ac_cv_type_z_streamp = yes; then
14181   :
14182 else
14183   { { echo "$as_me:$LINENO: error: zlib version is too old
14184 Use --without-zlib to disable zlib support." >&5
14185 echo "$as_me: error: zlib version is too old
14186 Use --without-zlib to disable zlib support." >&2;}
14187    { (exit 1); exit 1; }; }
14188 fi
14189
14190 fi
14191
14192 if test "$with_krb5" = yes; then
14193 # Check for differences between MIT and Heimdal (KTH) releases
14194   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
14195 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
14196 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
14197   echo $ECHO_N "(cached) $ECHO_C" >&6
14198 else
14199   cat >conftest.$ac_ext <<_ACEOF
14200 /* confdefs.h.  */
14201 _ACEOF
14202 cat confdefs.h >>conftest.$ac_ext
14203 cat >>conftest.$ac_ext <<_ACEOF
14204 /* end confdefs.h.  */
14205 #include <krb5.h>
14206
14207 int
14208 main ()
14209 {
14210 static krb5_ticket ac_aggr;
14211 if (ac_aggr.enc_part2)
14212 return 0;
14213   ;
14214   return 0;
14215 }
14216 _ACEOF
14217 rm -f conftest.$ac_objext
14218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14219   (eval $ac_compile) 2>conftest.er1
14220   ac_status=$?
14221   grep -v '^ *+' conftest.er1 >conftest.err
14222   rm -f conftest.er1
14223   cat conftest.err >&5
14224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225   (exit $ac_status); } &&
14226          { ac_try='test -z "$ac_c_werror_flag"
14227                          || test ! -s conftest.err'
14228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14229   (eval $ac_try) 2>&5
14230   ac_status=$?
14231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232   (exit $ac_status); }; } &&
14233          { ac_try='test -s conftest.$ac_objext'
14234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14235   (eval $ac_try) 2>&5
14236   ac_status=$?
14237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238   (exit $ac_status); }; }; then
14239   ac_cv_member_krb5_ticket_enc_part2=yes
14240 else
14241   echo "$as_me: failed program was:" >&5
14242 sed 's/^/| /' conftest.$ac_ext >&5
14243
14244 cat >conftest.$ac_ext <<_ACEOF
14245 /* confdefs.h.  */
14246 _ACEOF
14247 cat confdefs.h >>conftest.$ac_ext
14248 cat >>conftest.$ac_ext <<_ACEOF
14249 /* end confdefs.h.  */
14250 #include <krb5.h>
14251
14252 int
14253 main ()
14254 {
14255 static krb5_ticket ac_aggr;
14256 if (sizeof ac_aggr.enc_part2)
14257 return 0;
14258   ;
14259   return 0;
14260 }
14261 _ACEOF
14262 rm -f conftest.$ac_objext
14263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14264   (eval $ac_compile) 2>conftest.er1
14265   ac_status=$?
14266   grep -v '^ *+' conftest.er1 >conftest.err
14267   rm -f conftest.er1
14268   cat conftest.err >&5
14269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270   (exit $ac_status); } &&
14271          { ac_try='test -z "$ac_c_werror_flag"
14272                          || test ! -s conftest.err'
14273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274   (eval $ac_try) 2>&5
14275   ac_status=$?
14276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277   (exit $ac_status); }; } &&
14278          { ac_try='test -s conftest.$ac_objext'
14279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14280   (eval $ac_try) 2>&5
14281   ac_status=$?
14282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283   (exit $ac_status); }; }; then
14284   ac_cv_member_krb5_ticket_enc_part2=yes
14285 else
14286   echo "$as_me: failed program was:" >&5
14287 sed 's/^/| /' conftest.$ac_ext >&5
14288
14289 ac_cv_member_krb5_ticket_enc_part2=no
14290 fi
14291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14292 fi
14293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14294 fi
14295 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
14296 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
14297 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
14298
14299 cat >>confdefs.h <<_ACEOF
14300 #define HAVE_KRB5_TICKET_ENC_PART2 1
14301 _ACEOF
14302
14303
14304 else
14305   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
14306 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
14307 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
14308   echo $ECHO_N "(cached) $ECHO_C" >&6
14309 else
14310   cat >conftest.$ac_ext <<_ACEOF
14311 /* confdefs.h.  */
14312 _ACEOF
14313 cat confdefs.h >>conftest.$ac_ext
14314 cat >>conftest.$ac_ext <<_ACEOF
14315 /* end confdefs.h.  */
14316 #include <krb5.h>
14317
14318 int
14319 main ()
14320 {
14321 static krb5_ticket ac_aggr;
14322 if (ac_aggr.client)
14323 return 0;
14324   ;
14325   return 0;
14326 }
14327 _ACEOF
14328 rm -f conftest.$ac_objext
14329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14330   (eval $ac_compile) 2>conftest.er1
14331   ac_status=$?
14332   grep -v '^ *+' conftest.er1 >conftest.err
14333   rm -f conftest.er1
14334   cat conftest.err >&5
14335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336   (exit $ac_status); } &&
14337          { ac_try='test -z "$ac_c_werror_flag"
14338                          || test ! -s conftest.err'
14339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340   (eval $ac_try) 2>&5
14341   ac_status=$?
14342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343   (exit $ac_status); }; } &&
14344          { ac_try='test -s conftest.$ac_objext'
14345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346   (eval $ac_try) 2>&5
14347   ac_status=$?
14348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349   (exit $ac_status); }; }; then
14350   ac_cv_member_krb5_ticket_client=yes
14351 else
14352   echo "$as_me: failed program was:" >&5
14353 sed 's/^/| /' conftest.$ac_ext >&5
14354
14355 cat >conftest.$ac_ext <<_ACEOF
14356 /* confdefs.h.  */
14357 _ACEOF
14358 cat confdefs.h >>conftest.$ac_ext
14359 cat >>conftest.$ac_ext <<_ACEOF
14360 /* end confdefs.h.  */
14361 #include <krb5.h>
14362
14363 int
14364 main ()
14365 {
14366 static krb5_ticket ac_aggr;
14367 if (sizeof ac_aggr.client)
14368 return 0;
14369   ;
14370   return 0;
14371 }
14372 _ACEOF
14373 rm -f conftest.$ac_objext
14374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14375   (eval $ac_compile) 2>conftest.er1
14376   ac_status=$?
14377   grep -v '^ *+' conftest.er1 >conftest.err
14378   rm -f conftest.er1
14379   cat conftest.err >&5
14380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381   (exit $ac_status); } &&
14382          { ac_try='test -z "$ac_c_werror_flag"
14383                          || test ! -s conftest.err'
14384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14385   (eval $ac_try) 2>&5
14386   ac_status=$?
14387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388   (exit $ac_status); }; } &&
14389          { ac_try='test -s conftest.$ac_objext'
14390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14391   (eval $ac_try) 2>&5
14392   ac_status=$?
14393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394   (exit $ac_status); }; }; then
14395   ac_cv_member_krb5_ticket_client=yes
14396 else
14397   echo "$as_me: failed program was:" >&5
14398 sed 's/^/| /' conftest.$ac_ext >&5
14399
14400 ac_cv_member_krb5_ticket_client=no
14401 fi
14402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14403 fi
14404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14405 fi
14406 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
14407 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
14408 if test $ac_cv_member_krb5_ticket_client = yes; then
14409
14410 cat >>confdefs.h <<_ACEOF
14411 #define HAVE_KRB5_TICKET_CLIENT 1
14412 _ACEOF
14413
14414
14415 else
14416   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
14417 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
14418    { (exit 1); exit 1; }; }
14419 fi
14420
14421 fi
14422
14423   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
14424 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
14425 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
14426   echo $ECHO_N "(cached) $ECHO_C" >&6
14427 else
14428   cat >conftest.$ac_ext <<_ACEOF
14429 /* confdefs.h.  */
14430 _ACEOF
14431 cat confdefs.h >>conftest.$ac_ext
14432 cat >>conftest.$ac_ext <<_ACEOF
14433 /* end confdefs.h.  */
14434 #include <krb5.h>
14435
14436 int
14437 main ()
14438 {
14439 static krb5_error ac_aggr;
14440 if (ac_aggr.text.data)
14441 return 0;
14442   ;
14443   return 0;
14444 }
14445 _ACEOF
14446 rm -f conftest.$ac_objext
14447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14448   (eval $ac_compile) 2>conftest.er1
14449   ac_status=$?
14450   grep -v '^ *+' conftest.er1 >conftest.err
14451   rm -f conftest.er1
14452   cat conftest.err >&5
14453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454   (exit $ac_status); } &&
14455          { ac_try='test -z "$ac_c_werror_flag"
14456                          || test ! -s conftest.err'
14457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14458   (eval $ac_try) 2>&5
14459   ac_status=$?
14460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461   (exit $ac_status); }; } &&
14462          { ac_try='test -s conftest.$ac_objext'
14463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464   (eval $ac_try) 2>&5
14465   ac_status=$?
14466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467   (exit $ac_status); }; }; then
14468   ac_cv_member_krb5_error_text_data=yes
14469 else
14470   echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14472
14473 cat >conftest.$ac_ext <<_ACEOF
14474 /* confdefs.h.  */
14475 _ACEOF
14476 cat confdefs.h >>conftest.$ac_ext
14477 cat >>conftest.$ac_ext <<_ACEOF
14478 /* end confdefs.h.  */
14479 #include <krb5.h>
14480
14481 int
14482 main ()
14483 {
14484 static krb5_error ac_aggr;
14485 if (sizeof ac_aggr.text.data)
14486 return 0;
14487   ;
14488   return 0;
14489 }
14490 _ACEOF
14491 rm -f conftest.$ac_objext
14492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14493   (eval $ac_compile) 2>conftest.er1
14494   ac_status=$?
14495   grep -v '^ *+' conftest.er1 >conftest.err
14496   rm -f conftest.er1
14497   cat conftest.err >&5
14498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499   (exit $ac_status); } &&
14500          { ac_try='test -z "$ac_c_werror_flag"
14501                          || test ! -s conftest.err'
14502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503   (eval $ac_try) 2>&5
14504   ac_status=$?
14505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506   (exit $ac_status); }; } &&
14507          { ac_try='test -s conftest.$ac_objext'
14508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509   (eval $ac_try) 2>&5
14510   ac_status=$?
14511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512   (exit $ac_status); }; }; then
14513   ac_cv_member_krb5_error_text_data=yes
14514 else
14515   echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.$ac_ext >&5
14517
14518 ac_cv_member_krb5_error_text_data=no
14519 fi
14520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14521 fi
14522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14523 fi
14524 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
14525 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
14526 if test $ac_cv_member_krb5_error_text_data = yes; then
14527
14528 cat >>confdefs.h <<_ACEOF
14529 #define HAVE_KRB5_ERROR_TEXT_DATA 1
14530 _ACEOF
14531
14532
14533 else
14534   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
14535 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
14536 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
14537   echo $ECHO_N "(cached) $ECHO_C" >&6
14538 else
14539   cat >conftest.$ac_ext <<_ACEOF
14540 /* confdefs.h.  */
14541 _ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h.  */
14545 #include <krb5.h>
14546
14547 int
14548 main ()
14549 {
14550 static krb5_error ac_aggr;
14551 if (ac_aggr.e_data)
14552 return 0;
14553   ;
14554   return 0;
14555 }
14556 _ACEOF
14557 rm -f conftest.$ac_objext
14558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14559   (eval $ac_compile) 2>conftest.er1
14560   ac_status=$?
14561   grep -v '^ *+' conftest.er1 >conftest.err
14562   rm -f conftest.er1
14563   cat conftest.err >&5
14564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565   (exit $ac_status); } &&
14566          { ac_try='test -z "$ac_c_werror_flag"
14567                          || test ! -s conftest.err'
14568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569   (eval $ac_try) 2>&5
14570   ac_status=$?
14571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572   (exit $ac_status); }; } &&
14573          { ac_try='test -s conftest.$ac_objext'
14574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14575   (eval $ac_try) 2>&5
14576   ac_status=$?
14577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578   (exit $ac_status); }; }; then
14579   ac_cv_member_krb5_error_e_data=yes
14580 else
14581   echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.$ac_ext >&5
14583
14584 cat >conftest.$ac_ext <<_ACEOF
14585 /* confdefs.h.  */
14586 _ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h.  */
14590 #include <krb5.h>
14591
14592 int
14593 main ()
14594 {
14595 static krb5_error ac_aggr;
14596 if (sizeof ac_aggr.e_data)
14597 return 0;
14598   ;
14599   return 0;
14600 }
14601 _ACEOF
14602 rm -f conftest.$ac_objext
14603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14604   (eval $ac_compile) 2>conftest.er1
14605   ac_status=$?
14606   grep -v '^ *+' conftest.er1 >conftest.err
14607   rm -f conftest.er1
14608   cat conftest.err >&5
14609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610   (exit $ac_status); } &&
14611          { ac_try='test -z "$ac_c_werror_flag"
14612                          || test ! -s conftest.err'
14613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14614   (eval $ac_try) 2>&5
14615   ac_status=$?
14616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617   (exit $ac_status); }; } &&
14618          { ac_try='test -s conftest.$ac_objext'
14619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14620   (eval $ac_try) 2>&5
14621   ac_status=$?
14622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623   (exit $ac_status); }; }; then
14624   ac_cv_member_krb5_error_e_data=yes
14625 else
14626   echo "$as_me: failed program was:" >&5
14627 sed 's/^/| /' conftest.$ac_ext >&5
14628
14629 ac_cv_member_krb5_error_e_data=no
14630 fi
14631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14632 fi
14633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14634 fi
14635 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
14636 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
14637 if test $ac_cv_member_krb5_error_e_data = yes; then
14638
14639 cat >>confdefs.h <<_ACEOF
14640 #define HAVE_KRB5_ERROR_E_DATA 1
14641 _ACEOF
14642
14643
14644 else
14645   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
14646 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
14647    { (exit 1); exit 1; }; }
14648 fi
14649
14650 fi
14651
14652
14653 # Win32 requires headers to be loaded for __stdcall, so can't use
14654 # AC_CHECK_FUNCS here.
14655   echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
14656 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6
14657   cat >conftest.$ac_ext <<_ACEOF
14658 /* confdefs.h.  */
14659 _ACEOF
14660 cat confdefs.h >>conftest.$ac_ext
14661 cat >>conftest.$ac_ext <<_ACEOF
14662 /* end confdefs.h.  */
14663 #include <krb5.h>
14664 int
14665 main ()
14666 {
14667 krb5_free_unparsed_name(NULL,NULL);
14668   ;
14669   return 0;
14670 }
14671 _ACEOF
14672 rm -f conftest.$ac_objext conftest$ac_exeext
14673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14674   (eval $ac_link) 2>conftest.er1
14675   ac_status=$?
14676   grep -v '^ *+' conftest.er1 >conftest.err
14677   rm -f conftest.er1
14678   cat conftest.err >&5
14679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); } &&
14681          { ac_try='test -z "$ac_c_werror_flag"
14682                          || test ! -s conftest.err'
14683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14684   (eval $ac_try) 2>&5
14685   ac_status=$?
14686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687   (exit $ac_status); }; } &&
14688          { ac_try='test -s conftest$ac_exeext'
14689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14690   (eval $ac_try) 2>&5
14691   ac_status=$?
14692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693   (exit $ac_status); }; }; then
14694
14695 cat >>confdefs.h <<\_ACEOF
14696 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
14697 _ACEOF
14698
14699 echo "$as_me:$LINENO: result: yes" >&5
14700 echo "${ECHO_T}yes" >&6
14701 else
14702   echo "$as_me: failed program was:" >&5
14703 sed 's/^/| /' conftest.$ac_ext >&5
14704
14705 echo "$as_me:$LINENO: result: no" >&5
14706 echo "${ECHO_T}no" >&6
14707 fi
14708 rm -f conftest.err conftest.$ac_objext \
14709       conftest$ac_exeext conftest.$ac_ext
14710 fi
14711
14712
14713 ##
14714 ## Functions, global variables
14715 ##
14716
14717 echo "$as_me:$LINENO: checking for int timezone" >&5
14718 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
14719 if test "${pgac_cv_var_int_timezone+set}" = set; then
14720   echo $ECHO_N "(cached) $ECHO_C" >&6
14721 else
14722   cat >conftest.$ac_ext <<_ACEOF
14723 /* confdefs.h.  */
14724 _ACEOF
14725 cat confdefs.h >>conftest.$ac_ext
14726 cat >>conftest.$ac_ext <<_ACEOF
14727 /* end confdefs.h.  */
14728 #include <time.h>
14729 int res;
14730 int
14731 main ()
14732 {
14733 #ifndef __CYGWIN__
14734 res = timezone / 60;
14735 #else
14736 res = _timezone / 60;
14737 #endif
14738   ;
14739   return 0;
14740 }
14741 _ACEOF
14742 rm -f conftest.$ac_objext conftest$ac_exeext
14743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14744   (eval $ac_link) 2>conftest.er1
14745   ac_status=$?
14746   grep -v '^ *+' conftest.er1 >conftest.err
14747   rm -f conftest.er1
14748   cat conftest.err >&5
14749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750   (exit $ac_status); } &&
14751          { ac_try='test -z "$ac_c_werror_flag"
14752                          || test ! -s conftest.err'
14753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754   (eval $ac_try) 2>&5
14755   ac_status=$?
14756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757   (exit $ac_status); }; } &&
14758          { ac_try='test -s conftest$ac_exeext'
14759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760   (eval $ac_try) 2>&5
14761   ac_status=$?
14762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763   (exit $ac_status); }; }; then
14764   pgac_cv_var_int_timezone=yes
14765 else
14766   echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14768
14769 pgac_cv_var_int_timezone=no
14770 fi
14771 rm -f conftest.err conftest.$ac_objext \
14772       conftest$ac_exeext conftest.$ac_ext
14773 fi
14774 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
14775 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
14776 if test x"$pgac_cv_var_int_timezone" = xyes ; then
14777
14778 cat >>confdefs.h <<\_ACEOF
14779 #define HAVE_INT_TIMEZONE
14780 _ACEOF
14781
14782 fi
14783 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
14784 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
14785  if test "${ac_cv_func_accept_return+set}" = set; then
14786   echo $ECHO_N "(cached) $ECHO_C" >&6
14787 else
14788    if test "${ac_cv_func_accept_arg1+set}" = set; then
14789   echo $ECHO_N "(cached) $ECHO_C" >&6
14790 else
14791     if test "${ac_cv_func_accept_arg2+set}" = set; then
14792   echo $ECHO_N "(cached) $ECHO_C" >&6
14793 else
14794      if test "${ac_cv_func_accept_arg3+set}" = set; then
14795   echo $ECHO_N "(cached) $ECHO_C" >&6
14796 else
14797       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
14798       for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
14799        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
14800         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
14801          cat >conftest.$ac_ext <<_ACEOF
14802 /* confdefs.h.  */
14803 _ACEOF
14804 cat confdefs.h >>conftest.$ac_ext
14805 cat >>conftest.$ac_ext <<_ACEOF
14806 /* end confdefs.h.  */
14807 #ifdef HAVE_SYS_TYPES_H
14808 #include <sys/types.h>
14809 #endif
14810 #ifdef HAVE_SYS_SOCKET_H
14811 #include <sys/socket.h>
14812 #endif
14813 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
14814 int
14815 main ()
14816 {
14817
14818   ;
14819   return 0;
14820 }
14821 _ACEOF
14822 rm -f conftest.$ac_objext
14823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14824   (eval $ac_compile) 2>conftest.er1
14825   ac_status=$?
14826   grep -v '^ *+' conftest.er1 >conftest.err
14827   rm -f conftest.er1
14828   cat conftest.err >&5
14829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830   (exit $ac_status); } &&
14831          { ac_try='test -z "$ac_c_werror_flag"
14832                          || test ! -s conftest.err'
14833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14834   (eval $ac_try) 2>&5
14835   ac_status=$?
14836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837   (exit $ac_status); }; } &&
14838          { ac_try='test -s conftest.$ac_objext'
14839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14840   (eval $ac_try) 2>&5
14841   ac_status=$?
14842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843   (exit $ac_status); }; }; then
14844   ac_not_found=no; break 4
14845 else
14846   echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14848
14849 ac_not_found=yes
14850 fi
14851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14852        done
14853       done
14854      done
14855     done
14856     if test "$ac_not_found" = yes; then
14857       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
14858 echo "$as_me: error: could not determine argument types" >&2;}
14859    { (exit 1); exit 1; }; }
14860     fi
14861     if test "$ac_cv_func_accept_arg3" = "void"; then
14862       ac_cv_func_accept_arg3=int
14863     fi
14864
14865 fi
14866
14867 fi
14868
14869 fi
14870
14871 fi
14872  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
14873 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
14874
14875 cat >>confdefs.h <<_ACEOF
14876 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
14877 _ACEOF
14878
14879
14880 cat >>confdefs.h <<_ACEOF
14881 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
14882 _ACEOF
14883
14884
14885 cat >>confdefs.h <<_ACEOF
14886 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
14887 _ACEOF
14888
14889
14890 cat >>confdefs.h <<_ACEOF
14891 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
14892 _ACEOF
14893
14894
14895 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
14896 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
14897 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
14898   echo $ECHO_N "(cached) $ECHO_C" >&6
14899 else
14900   cat >conftest.$ac_ext <<_ACEOF
14901 /* confdefs.h.  */
14902 _ACEOF
14903 cat confdefs.h >>conftest.$ac_ext
14904 cat >>conftest.$ac_ext <<_ACEOF
14905 /* end confdefs.h.  */
14906 #include <sys/time.h>
14907 int
14908 main ()
14909 {
14910 struct timeval *tp;
14911 struct timezone *tzp;
14912 gettimeofday(tp,tzp);
14913   ;
14914   return 0;
14915 }
14916 _ACEOF
14917 rm -f conftest.$ac_objext
14918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14919   (eval $ac_compile) 2>conftest.er1
14920   ac_status=$?
14921   grep -v '^ *+' conftest.er1 >conftest.err
14922   rm -f conftest.er1
14923   cat conftest.err >&5
14924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925   (exit $ac_status); } &&
14926          { ac_try='test -z "$ac_c_werror_flag"
14927                          || test ! -s conftest.err'
14928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14929   (eval $ac_try) 2>&5
14930   ac_status=$?
14931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932   (exit $ac_status); }; } &&
14933          { ac_try='test -s conftest.$ac_objext'
14934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935   (eval $ac_try) 2>&5
14936   ac_status=$?
14937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938   (exit $ac_status); }; }; then
14939   pgac_cv_func_gettimeofday_1arg=no
14940 else
14941   echo "$as_me: failed program was:" >&5
14942 sed 's/^/| /' conftest.$ac_ext >&5
14943
14944 pgac_cv_func_gettimeofday_1arg=yes
14945 fi
14946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14947 fi
14948 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
14949 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
14950 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
14951
14952 cat >>confdefs.h <<\_ACEOF
14953 #define GETTIMEOFDAY_1ARG
14954 _ACEOF
14955
14956 fi
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
14981 do
14982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14983 echo "$as_me:$LINENO: checking for $ac_func" >&5
14984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14985 if eval "test \"\${$as_ac_var+set}\" = set"; then
14986   echo $ECHO_N "(cached) $ECHO_C" >&6
14987 else
14988   cat >conftest.$ac_ext <<_ACEOF
14989 /* confdefs.h.  */
14990 _ACEOF
14991 cat confdefs.h >>conftest.$ac_ext
14992 cat >>conftest.$ac_ext <<_ACEOF
14993 /* end confdefs.h.  */
14994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14995    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14996 #define $ac_func innocuous_$ac_func
14997
14998 /* System header to define __stub macros and hopefully few prototypes,
14999     which can conflict with char $ac_func (); below.
15000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15001     <limits.h> exists even on freestanding compilers.  */
15002
15003 #ifdef __STDC__
15004 # include <limits.h>
15005 #else
15006 # include <assert.h>
15007 #endif
15008
15009 #undef $ac_func
15010
15011 /* Override any gcc2 internal prototype to avoid an error.  */
15012 #ifdef __cplusplus
15013 extern "C"
15014 {
15015 #endif
15016 /* We use char because int might match the return type of a gcc2
15017    builtin and then its argument prototype would still apply.  */
15018 char $ac_func ();
15019 /* The GNU C library defines this for functions which it implements
15020     to always fail with ENOSYS.  Some functions are actually named
15021     something starting with __ and the normal name is an alias.  */
15022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15023 choke me
15024 #else
15025 char (*f) () = $ac_func;
15026 #endif
15027 #ifdef __cplusplus
15028 }
15029 #endif
15030
15031 int
15032 main ()
15033 {
15034 return f != $ac_func;
15035   ;
15036   return 0;
15037 }
15038 _ACEOF
15039 rm -f conftest.$ac_objext conftest$ac_exeext
15040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15041   (eval $ac_link) 2>conftest.er1
15042   ac_status=$?
15043   grep -v '^ *+' conftest.er1 >conftest.err
15044   rm -f conftest.er1
15045   cat conftest.err >&5
15046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047   (exit $ac_status); } &&
15048          { ac_try='test -z "$ac_c_werror_flag"
15049                          || test ! -s conftest.err'
15050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15051   (eval $ac_try) 2>&5
15052   ac_status=$?
15053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054   (exit $ac_status); }; } &&
15055          { ac_try='test -s conftest$ac_exeext'
15056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057   (eval $ac_try) 2>&5
15058   ac_status=$?
15059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060   (exit $ac_status); }; }; then
15061   eval "$as_ac_var=yes"
15062 else
15063   echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15065
15066 eval "$as_ac_var=no"
15067 fi
15068 rm -f conftest.err conftest.$ac_objext \
15069       conftest$ac_exeext conftest.$ac_ext
15070 fi
15071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15073 if test `eval echo '${'$as_ac_var'}'` = yes; then
15074   cat >>confdefs.h <<_ACEOF
15075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15076 _ACEOF
15077
15078 fi
15079 done
15080
15081
15082 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
15083 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
15084 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
15085   echo $ECHO_N "(cached) $ECHO_C" >&6
15086 else
15087   cat >conftest.$ac_ext <<_ACEOF
15088 /* confdefs.h.  */
15089 _ACEOF
15090 cat confdefs.h >>conftest.$ac_ext
15091 cat >>conftest.$ac_ext <<_ACEOF
15092 /* end confdefs.h.  */
15093 #include <unistd.h>
15094
15095 int
15096 main ()
15097 {
15098 #ifndef fdatasync
15099   char *p = (char *) fdatasync;
15100 #endif
15101
15102   ;
15103   return 0;
15104 }
15105 _ACEOF
15106 rm -f conftest.$ac_objext
15107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15108   (eval $ac_compile) 2>conftest.er1
15109   ac_status=$?
15110   grep -v '^ *+' conftest.er1 >conftest.err
15111   rm -f conftest.er1
15112   cat conftest.err >&5
15113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114   (exit $ac_status); } &&
15115          { ac_try='test -z "$ac_c_werror_flag"
15116                          || test ! -s conftest.err'
15117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118   (eval $ac_try) 2>&5
15119   ac_status=$?
15120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121   (exit $ac_status); }; } &&
15122          { ac_try='test -s conftest.$ac_objext'
15123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124   (eval $ac_try) 2>&5
15125   ac_status=$?
15126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127   (exit $ac_status); }; }; then
15128   ac_cv_have_decl_fdatasync=yes
15129 else
15130   echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15132
15133 ac_cv_have_decl_fdatasync=no
15134 fi
15135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15136 fi
15137 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
15138 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
15139 if test $ac_cv_have_decl_fdatasync = yes; then
15140
15141 cat >>confdefs.h <<_ACEOF
15142 #define HAVE_DECL_FDATASYNC 1
15143 _ACEOF
15144
15145
15146 else
15147   cat >>confdefs.h <<_ACEOF
15148 #define HAVE_DECL_FDATASYNC 0
15149 _ACEOF
15150
15151
15152 fi
15153
15154
15155 echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
15156 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6
15157 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
15158   echo $ECHO_N "(cached) $ECHO_C" >&6
15159 else
15160   cat >conftest.$ac_ext <<_ACEOF
15161 /* confdefs.h.  */
15162 _ACEOF
15163 cat confdefs.h >>conftest.$ac_ext
15164 cat >>conftest.$ac_ext <<_ACEOF
15165 /* end confdefs.h.  */
15166 #include <fcntl.h>
15167
15168 int
15169 main ()
15170 {
15171 #ifndef posix_fadvise
15172   char *p = (char *) posix_fadvise;
15173 #endif
15174
15175   ;
15176   return 0;
15177 }
15178 _ACEOF
15179 rm -f conftest.$ac_objext
15180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15181   (eval $ac_compile) 2>conftest.er1
15182   ac_status=$?
15183   grep -v '^ *+' conftest.er1 >conftest.err
15184   rm -f conftest.er1
15185   cat conftest.err >&5
15186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187   (exit $ac_status); } &&
15188          { ac_try='test -z "$ac_c_werror_flag"
15189                          || test ! -s conftest.err'
15190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191   (eval $ac_try) 2>&5
15192   ac_status=$?
15193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194   (exit $ac_status); }; } &&
15195          { ac_try='test -s conftest.$ac_objext'
15196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197   (eval $ac_try) 2>&5
15198   ac_status=$?
15199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200   (exit $ac_status); }; }; then
15201   ac_cv_have_decl_posix_fadvise=yes
15202 else
15203   echo "$as_me: failed program was:" >&5
15204 sed 's/^/| /' conftest.$ac_ext >&5
15205
15206 ac_cv_have_decl_posix_fadvise=no
15207 fi
15208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15209 fi
15210 echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
15211 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6
15212 if test $ac_cv_have_decl_posix_fadvise = yes; then
15213
15214 cat >>confdefs.h <<_ACEOF
15215 #define HAVE_DECL_POSIX_FADVISE 1
15216 _ACEOF
15217
15218
15219 else
15220   cat >>confdefs.h <<_ACEOF
15221 #define HAVE_DECL_POSIX_FADVISE 0
15222 _ACEOF
15223
15224
15225 fi
15226
15227
15228 echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
15229 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6
15230 if test "${ac_cv_have_decl_strlcat+set}" = set; then
15231   echo $ECHO_N "(cached) $ECHO_C" >&6
15232 else
15233   cat >conftest.$ac_ext <<_ACEOF
15234 /* confdefs.h.  */
15235 _ACEOF
15236 cat confdefs.h >>conftest.$ac_ext
15237 cat >>conftest.$ac_ext <<_ACEOF
15238 /* end confdefs.h.  */
15239 $ac_includes_default
15240 int
15241 main ()
15242 {
15243 #ifndef strlcat
15244   char *p = (char *) strlcat;
15245 #endif
15246
15247   ;
15248   return 0;
15249 }
15250 _ACEOF
15251 rm -f conftest.$ac_objext
15252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15253   (eval $ac_compile) 2>conftest.er1
15254   ac_status=$?
15255   grep -v '^ *+' conftest.er1 >conftest.err
15256   rm -f conftest.er1
15257   cat conftest.err >&5
15258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259   (exit $ac_status); } &&
15260          { ac_try='test -z "$ac_c_werror_flag"
15261                          || test ! -s conftest.err'
15262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15263   (eval $ac_try) 2>&5
15264   ac_status=$?
15265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266   (exit $ac_status); }; } &&
15267          { ac_try='test -s conftest.$ac_objext'
15268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15269   (eval $ac_try) 2>&5
15270   ac_status=$?
15271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272   (exit $ac_status); }; }; then
15273   ac_cv_have_decl_strlcat=yes
15274 else
15275   echo "$as_me: failed program was:" >&5
15276 sed 's/^/| /' conftest.$ac_ext >&5
15277
15278 ac_cv_have_decl_strlcat=no
15279 fi
15280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15281 fi
15282 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
15283 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6
15284 if test $ac_cv_have_decl_strlcat = yes; then
15285
15286 cat >>confdefs.h <<_ACEOF
15287 #define HAVE_DECL_STRLCAT 1
15288 _ACEOF
15289
15290
15291 else
15292   cat >>confdefs.h <<_ACEOF
15293 #define HAVE_DECL_STRLCAT 0
15294 _ACEOF
15295
15296
15297 fi
15298 echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
15299 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6
15300 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
15301   echo $ECHO_N "(cached) $ECHO_C" >&6
15302 else
15303   cat >conftest.$ac_ext <<_ACEOF
15304 /* confdefs.h.  */
15305 _ACEOF
15306 cat confdefs.h >>conftest.$ac_ext
15307 cat >>conftest.$ac_ext <<_ACEOF
15308 /* end confdefs.h.  */
15309 $ac_includes_default
15310 int
15311 main ()
15312 {
15313 #ifndef strlcpy
15314   char *p = (char *) strlcpy;
15315 #endif
15316
15317   ;
15318   return 0;
15319 }
15320 _ACEOF
15321 rm -f conftest.$ac_objext
15322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15323   (eval $ac_compile) 2>conftest.er1
15324   ac_status=$?
15325   grep -v '^ *+' conftest.er1 >conftest.err
15326   rm -f conftest.er1
15327   cat conftest.err >&5
15328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329   (exit $ac_status); } &&
15330          { ac_try='test -z "$ac_c_werror_flag"
15331                          || test ! -s conftest.err'
15332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15333   (eval $ac_try) 2>&5
15334   ac_status=$?
15335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336   (exit $ac_status); }; } &&
15337          { ac_try='test -s conftest.$ac_objext'
15338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339   (eval $ac_try) 2>&5
15340   ac_status=$?
15341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342   (exit $ac_status); }; }; then
15343   ac_cv_have_decl_strlcpy=yes
15344 else
15345   echo "$as_me: failed program was:" >&5
15346 sed 's/^/| /' conftest.$ac_ext >&5
15347
15348 ac_cv_have_decl_strlcpy=no
15349 fi
15350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15351 fi
15352 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
15353 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6
15354 if test $ac_cv_have_decl_strlcpy = yes; then
15355
15356 cat >>confdefs.h <<_ACEOF
15357 #define HAVE_DECL_STRLCPY 1
15358 _ACEOF
15359
15360
15361 else
15362   cat >>confdefs.h <<_ACEOF
15363 #define HAVE_DECL_STRLCPY 0
15364 _ACEOF
15365
15366
15367 fi
15368
15369
15370 # This is probably only present on Darwin, but may as well check always
15371 echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
15372 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6
15373 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
15374   echo $ECHO_N "(cached) $ECHO_C" >&6
15375 else
15376   cat >conftest.$ac_ext <<_ACEOF
15377 /* confdefs.h.  */
15378 _ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h.  */
15382 #include <fcntl.h>
15383
15384 int
15385 main ()
15386 {
15387 #ifndef F_FULLFSYNC
15388   char *p = (char *) F_FULLFSYNC;
15389 #endif
15390
15391   ;
15392   return 0;
15393 }
15394 _ACEOF
15395 rm -f conftest.$ac_objext
15396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15397   (eval $ac_compile) 2>conftest.er1
15398   ac_status=$?
15399   grep -v '^ *+' conftest.er1 >conftest.err
15400   rm -f conftest.er1
15401   cat conftest.err >&5
15402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403   (exit $ac_status); } &&
15404          { ac_try='test -z "$ac_c_werror_flag"
15405                          || test ! -s conftest.err'
15406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15407   (eval $ac_try) 2>&5
15408   ac_status=$?
15409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410   (exit $ac_status); }; } &&
15411          { ac_try='test -s conftest.$ac_objext'
15412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15413   (eval $ac_try) 2>&5
15414   ac_status=$?
15415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416   (exit $ac_status); }; }; then
15417   ac_cv_have_decl_F_FULLFSYNC=yes
15418 else
15419   echo "$as_me: failed program was:" >&5
15420 sed 's/^/| /' conftest.$ac_ext >&5
15421
15422 ac_cv_have_decl_F_FULLFSYNC=no
15423 fi
15424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15425 fi
15426 echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
15427 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6
15428 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
15429
15430 cat >>confdefs.h <<_ACEOF
15431 #define HAVE_DECL_F_FULLFSYNC 1
15432 _ACEOF
15433
15434
15435 else
15436   cat >>confdefs.h <<_ACEOF
15437 #define HAVE_DECL_F_FULLFSYNC 0
15438 _ACEOF
15439
15440
15441 fi
15442
15443
15444
15445 HAVE_IPV6=no
15446 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
15447 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
15448 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
15449   echo $ECHO_N "(cached) $ECHO_C" >&6
15450 else
15451   cat >conftest.$ac_ext <<_ACEOF
15452 /* confdefs.h.  */
15453 _ACEOF
15454 cat confdefs.h >>conftest.$ac_ext
15455 cat >>conftest.$ac_ext <<_ACEOF
15456 /* end confdefs.h.  */
15457 $ac_includes_default
15458 #include <netinet/in.h>
15459
15460 int
15461 main ()
15462 {
15463 if ((struct sockaddr_in6 *) 0)
15464   return 0;
15465 if (sizeof (struct sockaddr_in6))
15466   return 0;
15467   ;
15468   return 0;
15469 }
15470 _ACEOF
15471 rm -f conftest.$ac_objext
15472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15473   (eval $ac_compile) 2>conftest.er1
15474   ac_status=$?
15475   grep -v '^ *+' conftest.er1 >conftest.err
15476   rm -f conftest.er1
15477   cat conftest.err >&5
15478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479   (exit $ac_status); } &&
15480          { ac_try='test -z "$ac_c_werror_flag"
15481                          || test ! -s conftest.err'
15482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15483   (eval $ac_try) 2>&5
15484   ac_status=$?
15485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486   (exit $ac_status); }; } &&
15487          { ac_try='test -s conftest.$ac_objext'
15488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15489   (eval $ac_try) 2>&5
15490   ac_status=$?
15491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492   (exit $ac_status); }; }; then
15493   ac_cv_type_struct_sockaddr_in6=yes
15494 else
15495   echo "$as_me: failed program was:" >&5
15496 sed 's/^/| /' conftest.$ac_ext >&5
15497
15498 ac_cv_type_struct_sockaddr_in6=no
15499 fi
15500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15501 fi
15502 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
15503 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
15504 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
15505
15506 cat >>confdefs.h <<\_ACEOF
15507 #define HAVE_IPV6 1
15508 _ACEOF
15509
15510          HAVE_IPV6=yes
15511 fi
15512
15513
15514
15515 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
15516 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
15517 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
15518   echo $ECHO_N "(cached) $ECHO_C" >&6
15519 else
15520   cat >conftest.$ac_ext <<_ACEOF
15521 /* confdefs.h.  */
15522 _ACEOF
15523 cat confdefs.h >>conftest.$ac_ext
15524 cat >>conftest.$ac_ext <<_ACEOF
15525 /* end confdefs.h.  */
15526 #include <machine/vmparam.h>
15527 #include <sys/exec.h>
15528
15529 int
15530 main ()
15531 {
15532 PS_STRINGS->ps_nargvstr = 1;
15533 PS_STRINGS->ps_argvstr = "foo";
15534   ;
15535   return 0;
15536 }
15537 _ACEOF
15538 rm -f conftest.$ac_objext conftest$ac_exeext
15539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15540   (eval $ac_link) 2>conftest.er1
15541   ac_status=$?
15542   grep -v '^ *+' conftest.er1 >conftest.err
15543   rm -f conftest.er1
15544   cat conftest.err >&5
15545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546   (exit $ac_status); } &&
15547          { ac_try='test -z "$ac_c_werror_flag"
15548                          || test ! -s conftest.err'
15549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15550   (eval $ac_try) 2>&5
15551   ac_status=$?
15552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553   (exit $ac_status); }; } &&
15554          { ac_try='test -s conftest$ac_exeext'
15555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15556   (eval $ac_try) 2>&5
15557   ac_status=$?
15558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559   (exit $ac_status); }; }; then
15560   pgac_cv_var_PS_STRINGS=yes
15561 else
15562   echo "$as_me: failed program was:" >&5
15563 sed 's/^/| /' conftest.$ac_ext >&5
15564
15565 pgac_cv_var_PS_STRINGS=no
15566 fi
15567 rm -f conftest.err conftest.$ac_objext \
15568       conftest$ac_exeext conftest.$ac_ext
15569 fi
15570 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
15571 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
15572 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
15573
15574 cat >>confdefs.h <<\_ACEOF
15575 #define HAVE_PS_STRINGS
15576 _ACEOF
15577
15578 fi
15579
15580
15581 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
15582 # is missing.  Yes, there are machines that have only one.  We may
15583 # also decide to use snprintf.c if snprintf() is present but does not
15584 # have all the features we need --- see below.
15585
15586 if test "$PORTNAME" = "win32"; then
15587   # Win32 gets snprintf.c built unconditionally.
15588   #
15589   # To properly translate all NLS languages strings, we must support the
15590   # *printf() %$ format, which allows *printf() arguments to be selected
15591   # by position in the translated string.
15592   #
15593   # libintl versions < 0.13 use the native *printf() functions, and Win32
15594   # *printf() doesn't understand %$, so we must use our /port versions,
15595   # which do understand %$. libintl versions >= 0.13 include their own
15596   # *printf versions on Win32.  The libintl 0.13 release note text is:
15597   #
15598   #   C format strings with positions, as they arise when a translator
15599   #   needs to reorder a sentence, are now supported on all platforms.
15600   #   On those few platforms (NetBSD and Woe32) for which the native
15601   #   printf()/fprintf()/... functions don't support such format
15602   #   strings, replacements are provided through <libintl.h>.
15603   #
15604   # We could use libintl >= 0.13's *printf() if we were sure that we had
15605   # a litint >= 0.13 at runtime, but seeing that there is no clean way
15606   # to guarantee that, it is best to just use our own, so we are sure to
15607   # get %$ support. In include/port.h we disable the *printf() macros
15608   # that might have been defined by libintl.
15609   #
15610   # We do this unconditionally whether NLS is used or not so we are sure
15611   # that all Win32 libraries and binaries behave the same.
15612   pgac_need_repl_snprintf=yes
15613 else
15614   pgac_need_repl_snprintf=no
15615
15616 for ac_func in snprintf
15617 do
15618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15619 echo "$as_me:$LINENO: checking for $ac_func" >&5
15620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15621 if eval "test \"\${$as_ac_var+set}\" = set"; then
15622   echo $ECHO_N "(cached) $ECHO_C" >&6
15623 else
15624   cat >conftest.$ac_ext <<_ACEOF
15625 /* confdefs.h.  */
15626 _ACEOF
15627 cat confdefs.h >>conftest.$ac_ext
15628 cat >>conftest.$ac_ext <<_ACEOF
15629 /* end confdefs.h.  */
15630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15631    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15632 #define $ac_func innocuous_$ac_func
15633
15634 /* System header to define __stub macros and hopefully few prototypes,
15635     which can conflict with char $ac_func (); below.
15636     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15637     <limits.h> exists even on freestanding compilers.  */
15638
15639 #ifdef __STDC__
15640 # include <limits.h>
15641 #else
15642 # include <assert.h>
15643 #endif
15644
15645 #undef $ac_func
15646
15647 /* Override any gcc2 internal prototype to avoid an error.  */
15648 #ifdef __cplusplus
15649 extern "C"
15650 {
15651 #endif
15652 /* We use char because int might match the return type of a gcc2
15653    builtin and then its argument prototype would still apply.  */
15654 char $ac_func ();
15655 /* The GNU C library defines this for functions which it implements
15656     to always fail with ENOSYS.  Some functions are actually named
15657     something starting with __ and the normal name is an alias.  */
15658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15659 choke me
15660 #else
15661 char (*f) () = $ac_func;
15662 #endif
15663 #ifdef __cplusplus
15664 }
15665 #endif
15666
15667 int
15668 main ()
15669 {
15670 return f != $ac_func;
15671   ;
15672   return 0;
15673 }
15674 _ACEOF
15675 rm -f conftest.$ac_objext conftest$ac_exeext
15676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15677   (eval $ac_link) 2>conftest.er1
15678   ac_status=$?
15679   grep -v '^ *+' conftest.er1 >conftest.err
15680   rm -f conftest.er1
15681   cat conftest.err >&5
15682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683   (exit $ac_status); } &&
15684          { ac_try='test -z "$ac_c_werror_flag"
15685                          || test ! -s conftest.err'
15686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15687   (eval $ac_try) 2>&5
15688   ac_status=$?
15689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690   (exit $ac_status); }; } &&
15691          { ac_try='test -s conftest$ac_exeext'
15692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15693   (eval $ac_try) 2>&5
15694   ac_status=$?
15695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696   (exit $ac_status); }; }; then
15697   eval "$as_ac_var=yes"
15698 else
15699   echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.$ac_ext >&5
15701
15702 eval "$as_ac_var=no"
15703 fi
15704 rm -f conftest.err conftest.$ac_objext \
15705       conftest$ac_exeext conftest.$ac_ext
15706 fi
15707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15708 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15709 if test `eval echo '${'$as_ac_var'}'` = yes; then
15710   cat >>confdefs.h <<_ACEOF
15711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15712 _ACEOF
15713
15714 else
15715   pgac_need_repl_snprintf=yes
15716 fi
15717 done
15718
15719
15720 for ac_func in vsnprintf
15721 do
15722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15723 echo "$as_me:$LINENO: checking for $ac_func" >&5
15724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15725 if eval "test \"\${$as_ac_var+set}\" = set"; then
15726   echo $ECHO_N "(cached) $ECHO_C" >&6
15727 else
15728   cat >conftest.$ac_ext <<_ACEOF
15729 /* confdefs.h.  */
15730 _ACEOF
15731 cat confdefs.h >>conftest.$ac_ext
15732 cat >>conftest.$ac_ext <<_ACEOF
15733 /* end confdefs.h.  */
15734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15735    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15736 #define $ac_func innocuous_$ac_func
15737
15738 /* System header to define __stub macros and hopefully few prototypes,
15739     which can conflict with char $ac_func (); below.
15740     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15741     <limits.h> exists even on freestanding compilers.  */
15742
15743 #ifdef __STDC__
15744 # include <limits.h>
15745 #else
15746 # include <assert.h>
15747 #endif
15748
15749 #undef $ac_func
15750
15751 /* Override any gcc2 internal prototype to avoid an error.  */
15752 #ifdef __cplusplus
15753 extern "C"
15754 {
15755 #endif
15756 /* We use char because int might match the return type of a gcc2
15757    builtin and then its argument prototype would still apply.  */
15758 char $ac_func ();
15759 /* The GNU C library defines this for functions which it implements
15760     to always fail with ENOSYS.  Some functions are actually named
15761     something starting with __ and the normal name is an alias.  */
15762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15763 choke me
15764 #else
15765 char (*f) () = $ac_func;
15766 #endif
15767 #ifdef __cplusplus
15768 }
15769 #endif
15770
15771 int
15772 main ()
15773 {
15774 return f != $ac_func;
15775   ;
15776   return 0;
15777 }
15778 _ACEOF
15779 rm -f conftest.$ac_objext conftest$ac_exeext
15780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15781   (eval $ac_link) 2>conftest.er1
15782   ac_status=$?
15783   grep -v '^ *+' conftest.er1 >conftest.err
15784   rm -f conftest.er1
15785   cat conftest.err >&5
15786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787   (exit $ac_status); } &&
15788          { ac_try='test -z "$ac_c_werror_flag"
15789                          || test ! -s conftest.err'
15790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791   (eval $ac_try) 2>&5
15792   ac_status=$?
15793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794   (exit $ac_status); }; } &&
15795          { ac_try='test -s conftest$ac_exeext'
15796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15797   (eval $ac_try) 2>&5
15798   ac_status=$?
15799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800   (exit $ac_status); }; }; then
15801   eval "$as_ac_var=yes"
15802 else
15803   echo "$as_me: failed program was:" >&5
15804 sed 's/^/| /' conftest.$ac_ext >&5
15805
15806 eval "$as_ac_var=no"
15807 fi
15808 rm -f conftest.err conftest.$ac_objext \
15809       conftest$ac_exeext conftest.$ac_ext
15810 fi
15811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15813 if test `eval echo '${'$as_ac_var'}'` = yes; then
15814   cat >>confdefs.h <<_ACEOF
15815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15816 _ACEOF
15817
15818 else
15819   pgac_need_repl_snprintf=yes
15820 fi
15821 done
15822
15823 fi
15824
15825
15826 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
15827 # include/c.h will provide declarations.  Note this is a separate test
15828 # from whether the functions exist in the C library --- there are
15829 # systems that have the functions but don't bother to declare them :-(
15830
15831 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
15832 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
15833 if test "${ac_cv_have_decl_snprintf+set}" = set; then
15834   echo $ECHO_N "(cached) $ECHO_C" >&6
15835 else
15836   cat >conftest.$ac_ext <<_ACEOF
15837 /* confdefs.h.  */
15838 _ACEOF
15839 cat confdefs.h >>conftest.$ac_ext
15840 cat >>conftest.$ac_ext <<_ACEOF
15841 /* end confdefs.h.  */
15842 $ac_includes_default
15843 int
15844 main ()
15845 {
15846 #ifndef snprintf
15847   char *p = (char *) snprintf;
15848 #endif
15849
15850   ;
15851   return 0;
15852 }
15853 _ACEOF
15854 rm -f conftest.$ac_objext
15855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15856   (eval $ac_compile) 2>conftest.er1
15857   ac_status=$?
15858   grep -v '^ *+' conftest.er1 >conftest.err
15859   rm -f conftest.er1
15860   cat conftest.err >&5
15861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862   (exit $ac_status); } &&
15863          { ac_try='test -z "$ac_c_werror_flag"
15864                          || test ! -s conftest.err'
15865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15866   (eval $ac_try) 2>&5
15867   ac_status=$?
15868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869   (exit $ac_status); }; } &&
15870          { ac_try='test -s conftest.$ac_objext'
15871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15872   (eval $ac_try) 2>&5
15873   ac_status=$?
15874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875   (exit $ac_status); }; }; then
15876   ac_cv_have_decl_snprintf=yes
15877 else
15878   echo "$as_me: failed program was:" >&5
15879 sed 's/^/| /' conftest.$ac_ext >&5
15880
15881 ac_cv_have_decl_snprintf=no
15882 fi
15883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15884 fi
15885 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
15886 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
15887 if test $ac_cv_have_decl_snprintf = yes; then
15888
15889 cat >>confdefs.h <<_ACEOF
15890 #define HAVE_DECL_SNPRINTF 1
15891 _ACEOF
15892
15893
15894 else
15895   cat >>confdefs.h <<_ACEOF
15896 #define HAVE_DECL_SNPRINTF 0
15897 _ACEOF
15898
15899
15900 fi
15901 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
15902 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
15903 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
15904   echo $ECHO_N "(cached) $ECHO_C" >&6
15905 else
15906   cat >conftest.$ac_ext <<_ACEOF
15907 /* confdefs.h.  */
15908 _ACEOF
15909 cat confdefs.h >>conftest.$ac_ext
15910 cat >>conftest.$ac_ext <<_ACEOF
15911 /* end confdefs.h.  */
15912 $ac_includes_default
15913 int
15914 main ()
15915 {
15916 #ifndef vsnprintf
15917   char *p = (char *) vsnprintf;
15918 #endif
15919
15920   ;
15921   return 0;
15922 }
15923 _ACEOF
15924 rm -f conftest.$ac_objext
15925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15926   (eval $ac_compile) 2>conftest.er1
15927   ac_status=$?
15928   grep -v '^ *+' conftest.er1 >conftest.err
15929   rm -f conftest.er1
15930   cat conftest.err >&5
15931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932   (exit $ac_status); } &&
15933          { ac_try='test -z "$ac_c_werror_flag"
15934                          || test ! -s conftest.err'
15935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936   (eval $ac_try) 2>&5
15937   ac_status=$?
15938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939   (exit $ac_status); }; } &&
15940          { ac_try='test -s conftest.$ac_objext'
15941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15942   (eval $ac_try) 2>&5
15943   ac_status=$?
15944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945   (exit $ac_status); }; }; then
15946   ac_cv_have_decl_vsnprintf=yes
15947 else
15948   echo "$as_me: failed program was:" >&5
15949 sed 's/^/| /' conftest.$ac_ext >&5
15950
15951 ac_cv_have_decl_vsnprintf=no
15952 fi
15953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15954 fi
15955 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
15956 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
15957 if test $ac_cv_have_decl_vsnprintf = yes; then
15958
15959 cat >>confdefs.h <<_ACEOF
15960 #define HAVE_DECL_VSNPRINTF 1
15961 _ACEOF
15962
15963
15964 else
15965   cat >>confdefs.h <<_ACEOF
15966 #define HAVE_DECL_VSNPRINTF 0
15967 _ACEOF
15968
15969
15970 fi
15971
15972
15973
15974
15975 echo "$as_me:$LINENO: checking for isinf" >&5
15976 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
15977 if test "${ac_cv_func_isinf+set}" = set; then
15978   echo $ECHO_N "(cached) $ECHO_C" >&6
15979 else
15980   cat >conftest.$ac_ext <<_ACEOF
15981 /* confdefs.h.  */
15982 _ACEOF
15983 cat confdefs.h >>conftest.$ac_ext
15984 cat >>conftest.$ac_ext <<_ACEOF
15985 /* end confdefs.h.  */
15986
15987 #include <math.h>
15988 double glob_double;
15989
15990 int
15991 main ()
15992 {
15993 return isinf(glob_double) ? 0 : 1;
15994   ;
15995   return 0;
15996 }
15997 _ACEOF
15998 rm -f conftest.$ac_objext conftest$ac_exeext
15999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16000   (eval $ac_link) 2>conftest.er1
16001   ac_status=$?
16002   grep -v '^ *+' conftest.er1 >conftest.err
16003   rm -f conftest.er1
16004   cat conftest.err >&5
16005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006   (exit $ac_status); } &&
16007          { ac_try='test -z "$ac_c_werror_flag"
16008                          || test ! -s conftest.err'
16009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16010   (eval $ac_try) 2>&5
16011   ac_status=$?
16012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013   (exit $ac_status); }; } &&
16014          { ac_try='test -s conftest$ac_exeext'
16015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016   (eval $ac_try) 2>&5
16017   ac_status=$?
16018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019   (exit $ac_status); }; }; then
16020   ac_cv_func_isinf=yes
16021 else
16022   echo "$as_me: failed program was:" >&5
16023 sed 's/^/| /' conftest.$ac_ext >&5
16024
16025 ac_cv_func_isinf=no
16026 fi
16027 rm -f conftest.err conftest.$ac_objext \
16028       conftest$ac_exeext conftest.$ac_ext
16029 fi
16030 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
16031 echo "${ECHO_T}$ac_cv_func_isinf" >&6
16032
16033 if test $ac_cv_func_isinf = yes ; then
16034
16035 cat >>confdefs.h <<\_ACEOF
16036 #define HAVE_ISINF 1
16037 _ACEOF
16038
16039 else
16040   case $LIBOBJS in
16041     "isinf.$ac_objext"   | \
16042   *" isinf.$ac_objext"   | \
16043     "isinf.$ac_objext "* | \
16044   *" isinf.$ac_objext "* ) ;;
16045   *) LIBOBJS="$LIBOBJS isinf.$ac_objext" ;;
16046 esac
16047
16048   # Look for a way to implement a substitute for isinf()
16049
16050
16051
16052
16053 for ac_func in fpclass fp_class fp_class_d class
16054 do
16055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16056 echo "$as_me:$LINENO: checking for $ac_func" >&5
16057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16058 if eval "test \"\${$as_ac_var+set}\" = set"; then
16059   echo $ECHO_N "(cached) $ECHO_C" >&6
16060 else
16061   cat >conftest.$ac_ext <<_ACEOF
16062 /* confdefs.h.  */
16063 _ACEOF
16064 cat confdefs.h >>conftest.$ac_ext
16065 cat >>conftest.$ac_ext <<_ACEOF
16066 /* end confdefs.h.  */
16067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16068    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16069 #define $ac_func innocuous_$ac_func
16070
16071 /* System header to define __stub macros and hopefully few prototypes,
16072     which can conflict with char $ac_func (); below.
16073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16074     <limits.h> exists even on freestanding compilers.  */
16075
16076 #ifdef __STDC__
16077 # include <limits.h>
16078 #else
16079 # include <assert.h>
16080 #endif
16081
16082 #undef $ac_func
16083
16084 /* Override any gcc2 internal prototype to avoid an error.  */
16085 #ifdef __cplusplus
16086 extern "C"
16087 {
16088 #endif
16089 /* We use char because int might match the return type of a gcc2
16090    builtin and then its argument prototype would still apply.  */
16091 char $ac_func ();
16092 /* The GNU C library defines this for functions which it implements
16093     to always fail with ENOSYS.  Some functions are actually named
16094     something starting with __ and the normal name is an alias.  */
16095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16096 choke me
16097 #else
16098 char (*f) () = $ac_func;
16099 #endif
16100 #ifdef __cplusplus
16101 }
16102 #endif
16103
16104 int
16105 main ()
16106 {
16107 return f != $ac_func;
16108   ;
16109   return 0;
16110 }
16111 _ACEOF
16112 rm -f conftest.$ac_objext conftest$ac_exeext
16113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16114   (eval $ac_link) 2>conftest.er1
16115   ac_status=$?
16116   grep -v '^ *+' conftest.er1 >conftest.err
16117   rm -f conftest.er1
16118   cat conftest.err >&5
16119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120   (exit $ac_status); } &&
16121          { ac_try='test -z "$ac_c_werror_flag"
16122                          || test ! -s conftest.err'
16123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124   (eval $ac_try) 2>&5
16125   ac_status=$?
16126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127   (exit $ac_status); }; } &&
16128          { ac_try='test -s conftest$ac_exeext'
16129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130   (eval $ac_try) 2>&5
16131   ac_status=$?
16132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133   (exit $ac_status); }; }; then
16134   eval "$as_ac_var=yes"
16135 else
16136   echo "$as_me: failed program was:" >&5
16137 sed 's/^/| /' conftest.$ac_ext >&5
16138
16139 eval "$as_ac_var=no"
16140 fi
16141 rm -f conftest.err conftest.$ac_objext \
16142       conftest$ac_exeext conftest.$ac_ext
16143 fi
16144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16146 if test `eval echo '${'$as_ac_var'}'` = yes; then
16147   cat >>confdefs.h <<_ACEOF
16148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16149 _ACEOF
16150  break
16151 fi
16152 done
16153
16154 fi
16155
16156 # Some versions of libedit contain strlcpy(); so disregard that library while
16157 # checking for these standard libc functions.
16158 pgac_save_LIBS="$LIBS"
16159 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
16177 do
16178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16179 echo "$as_me:$LINENO: checking for $ac_func" >&5
16180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16181 if eval "test \"\${$as_ac_var+set}\" = set"; then
16182   echo $ECHO_N "(cached) $ECHO_C" >&6
16183 else
16184   cat >conftest.$ac_ext <<_ACEOF
16185 /* confdefs.h.  */
16186 _ACEOF
16187 cat confdefs.h >>conftest.$ac_ext
16188 cat >>conftest.$ac_ext <<_ACEOF
16189 /* end confdefs.h.  */
16190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16192 #define $ac_func innocuous_$ac_func
16193
16194 /* System header to define __stub macros and hopefully few prototypes,
16195     which can conflict with char $ac_func (); below.
16196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16197     <limits.h> exists even on freestanding compilers.  */
16198
16199 #ifdef __STDC__
16200 # include <limits.h>
16201 #else
16202 # include <assert.h>
16203 #endif
16204
16205 #undef $ac_func
16206
16207 /* Override any gcc2 internal prototype to avoid an error.  */
16208 #ifdef __cplusplus
16209 extern "C"
16210 {
16211 #endif
16212 /* We use char because int might match the return type of a gcc2
16213    builtin and then its argument prototype would still apply.  */
16214 char $ac_func ();
16215 /* The GNU C library defines this for functions which it implements
16216     to always fail with ENOSYS.  Some functions are actually named
16217     something starting with __ and the normal name is an alias.  */
16218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16219 choke me
16220 #else
16221 char (*f) () = $ac_func;
16222 #endif
16223 #ifdef __cplusplus
16224 }
16225 #endif
16226
16227 int
16228 main ()
16229 {
16230 return f != $ac_func;
16231   ;
16232   return 0;
16233 }
16234 _ACEOF
16235 rm -f conftest.$ac_objext conftest$ac_exeext
16236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16237   (eval $ac_link) 2>conftest.er1
16238   ac_status=$?
16239   grep -v '^ *+' conftest.er1 >conftest.err
16240   rm -f conftest.er1
16241   cat conftest.err >&5
16242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243   (exit $ac_status); } &&
16244          { ac_try='test -z "$ac_c_werror_flag"
16245                          || test ! -s conftest.err'
16246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16247   (eval $ac_try) 2>&5
16248   ac_status=$?
16249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250   (exit $ac_status); }; } &&
16251          { ac_try='test -s conftest$ac_exeext'
16252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16253   (eval $ac_try) 2>&5
16254   ac_status=$?
16255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256   (exit $ac_status); }; }; then
16257   eval "$as_ac_var=yes"
16258 else
16259   echo "$as_me: failed program was:" >&5
16260 sed 's/^/| /' conftest.$ac_ext >&5
16261
16262 eval "$as_ac_var=no"
16263 fi
16264 rm -f conftest.err conftest.$ac_objext \
16265       conftest$ac_exeext conftest.$ac_ext
16266 fi
16267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16269 if test `eval echo '${'$as_ac_var'}'` = yes; then
16270   cat >>confdefs.h <<_ACEOF
16271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16272 _ACEOF
16273
16274 else
16275   case $LIBOBJS in
16276     "$ac_func.$ac_objext"   | \
16277   *" $ac_func.$ac_objext"   | \
16278     "$ac_func.$ac_objext "* | \
16279   *" $ac_func.$ac_objext "* ) ;;
16280   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16281 esac
16282
16283 fi
16284 done
16285
16286
16287
16288 LIBS="$pgac_save_LIBS"
16289
16290 # System's version of getaddrinfo(), if any, may be used only if we found
16291 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
16292 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
16293 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
16294 # because we want to use our own getaddrinfo.c on Windows anyway.)
16295 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
16296
16297 for ac_func in getaddrinfo
16298 do
16299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16300 echo "$as_me:$LINENO: checking for $ac_func" >&5
16301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16302 if eval "test \"\${$as_ac_var+set}\" = set"; then
16303   echo $ECHO_N "(cached) $ECHO_C" >&6
16304 else
16305   cat >conftest.$ac_ext <<_ACEOF
16306 /* confdefs.h.  */
16307 _ACEOF
16308 cat confdefs.h >>conftest.$ac_ext
16309 cat >>conftest.$ac_ext <<_ACEOF
16310 /* end confdefs.h.  */
16311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16313 #define $ac_func innocuous_$ac_func
16314
16315 /* System header to define __stub macros and hopefully few prototypes,
16316     which can conflict with char $ac_func (); below.
16317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16318     <limits.h> exists even on freestanding compilers.  */
16319
16320 #ifdef __STDC__
16321 # include <limits.h>
16322 #else
16323 # include <assert.h>
16324 #endif
16325
16326 #undef $ac_func
16327
16328 /* Override any gcc2 internal prototype to avoid an error.  */
16329 #ifdef __cplusplus
16330 extern "C"
16331 {
16332 #endif
16333 /* We use char because int might match the return type of a gcc2
16334    builtin and then its argument prototype would still apply.  */
16335 char $ac_func ();
16336 /* The GNU C library defines this for functions which it implements
16337     to always fail with ENOSYS.  Some functions are actually named
16338     something starting with __ and the normal name is an alias.  */
16339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16340 choke me
16341 #else
16342 char (*f) () = $ac_func;
16343 #endif
16344 #ifdef __cplusplus
16345 }
16346 #endif
16347
16348 int
16349 main ()
16350 {
16351 return f != $ac_func;
16352   ;
16353   return 0;
16354 }
16355 _ACEOF
16356 rm -f conftest.$ac_objext conftest$ac_exeext
16357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16358   (eval $ac_link) 2>conftest.er1
16359   ac_status=$?
16360   grep -v '^ *+' conftest.er1 >conftest.err
16361   rm -f conftest.er1
16362   cat conftest.err >&5
16363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364   (exit $ac_status); } &&
16365          { ac_try='test -z "$ac_c_werror_flag"
16366                          || test ! -s conftest.err'
16367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16368   (eval $ac_try) 2>&5
16369   ac_status=$?
16370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371   (exit $ac_status); }; } &&
16372          { ac_try='test -s conftest$ac_exeext'
16373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16374   (eval $ac_try) 2>&5
16375   ac_status=$?
16376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377   (exit $ac_status); }; }; then
16378   eval "$as_ac_var=yes"
16379 else
16380   echo "$as_me: failed program was:" >&5
16381 sed 's/^/| /' conftest.$ac_ext >&5
16382
16383 eval "$as_ac_var=no"
16384 fi
16385 rm -f conftest.err conftest.$ac_objext \
16386       conftest$ac_exeext conftest.$ac_ext
16387 fi
16388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16389 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16390 if test `eval echo '${'$as_ac_var'}'` = yes; then
16391   cat >>confdefs.h <<_ACEOF
16392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16393 _ACEOF
16394
16395 else
16396   case $LIBOBJS in
16397     "$ac_func.$ac_objext"   | \
16398   *" $ac_func.$ac_objext"   | \
16399     "$ac_func.$ac_objext "* | \
16400   *" $ac_func.$ac_objext "* ) ;;
16401   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16402 esac
16403
16404 fi
16405 done
16406
16407
16408 else
16409   case $LIBOBJS in
16410     "getaddrinfo.$ac_objext"   | \
16411   *" getaddrinfo.$ac_objext"   | \
16412     "getaddrinfo.$ac_objext "* | \
16413   *" getaddrinfo.$ac_objext "* ) ;;
16414   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
16415 esac
16416
16417 fi
16418
16419 # similarly, use system's getopt_long() only if system provides struct option.
16420 if test x"$ac_cv_type_struct_option" = xyes ; then
16421
16422 for ac_func in getopt_long
16423 do
16424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16425 echo "$as_me:$LINENO: checking for $ac_func" >&5
16426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16427 if eval "test \"\${$as_ac_var+set}\" = set"; then
16428   echo $ECHO_N "(cached) $ECHO_C" >&6
16429 else
16430   cat >conftest.$ac_ext <<_ACEOF
16431 /* confdefs.h.  */
16432 _ACEOF
16433 cat confdefs.h >>conftest.$ac_ext
16434 cat >>conftest.$ac_ext <<_ACEOF
16435 /* end confdefs.h.  */
16436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16437    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16438 #define $ac_func innocuous_$ac_func
16439
16440 /* System header to define __stub macros and hopefully few prototypes,
16441     which can conflict with char $ac_func (); below.
16442     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16443     <limits.h> exists even on freestanding compilers.  */
16444
16445 #ifdef __STDC__
16446 # include <limits.h>
16447 #else
16448 # include <assert.h>
16449 #endif
16450
16451 #undef $ac_func
16452
16453 /* Override any gcc2 internal prototype to avoid an error.  */
16454 #ifdef __cplusplus
16455 extern "C"
16456 {
16457 #endif
16458 /* We use char because int might match the return type of a gcc2
16459    builtin and then its argument prototype would still apply.  */
16460 char $ac_func ();
16461 /* The GNU C library defines this for functions which it implements
16462     to always fail with ENOSYS.  Some functions are actually named
16463     something starting with __ and the normal name is an alias.  */
16464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16465 choke me
16466 #else
16467 char (*f) () = $ac_func;
16468 #endif
16469 #ifdef __cplusplus
16470 }
16471 #endif
16472
16473 int
16474 main ()
16475 {
16476 return f != $ac_func;
16477   ;
16478   return 0;
16479 }
16480 _ACEOF
16481 rm -f conftest.$ac_objext conftest$ac_exeext
16482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16483   (eval $ac_link) 2>conftest.er1
16484   ac_status=$?
16485   grep -v '^ *+' conftest.er1 >conftest.err
16486   rm -f conftest.er1
16487   cat conftest.err >&5
16488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489   (exit $ac_status); } &&
16490          { ac_try='test -z "$ac_c_werror_flag"
16491                          || test ! -s conftest.err'
16492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16493   (eval $ac_try) 2>&5
16494   ac_status=$?
16495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496   (exit $ac_status); }; } &&
16497          { ac_try='test -s conftest$ac_exeext'
16498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16499   (eval $ac_try) 2>&5
16500   ac_status=$?
16501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502   (exit $ac_status); }; }; then
16503   eval "$as_ac_var=yes"
16504 else
16505   echo "$as_me: failed program was:" >&5
16506 sed 's/^/| /' conftest.$ac_ext >&5
16507
16508 eval "$as_ac_var=no"
16509 fi
16510 rm -f conftest.err conftest.$ac_objext \
16511       conftest$ac_exeext conftest.$ac_ext
16512 fi
16513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16514 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16515 if test `eval echo '${'$as_ac_var'}'` = yes; then
16516   cat >>confdefs.h <<_ACEOF
16517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16518 _ACEOF
16519
16520 else
16521   case $LIBOBJS in
16522     "$ac_func.$ac_objext"   | \
16523   *" $ac_func.$ac_objext"   | \
16524     "$ac_func.$ac_objext "* | \
16525   *" $ac_func.$ac_objext "* ) ;;
16526   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16527 esac
16528
16529 fi
16530 done
16531
16532
16533 else
16534   case $LIBOBJS in
16535     "getopt_long.$ac_objext"   | \
16536   *" getopt_long.$ac_objext"   | \
16537     "getopt_long.$ac_objext "* | \
16538   *" getopt_long.$ac_objext "* ) ;;
16539   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" ;;
16540 esac
16541
16542 fi
16543
16544 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
16545 # We override the previous test that said fseeko/ftello didn't exist
16546 # OS tests are also done in include/c.h and port/fseeko.c
16547 case $host_os in bsdi*|netbsd*)
16548 ac_cv_func_fseeko=yes
16549 esac
16550
16551 # Win32 support
16552 if test "$PORTNAME" = "win32"; then
16553 case $LIBOBJS in
16554     "gettimeofday.$ac_objext"   | \
16555   *" gettimeofday.$ac_objext"   | \
16556     "gettimeofday.$ac_objext "* | \
16557   *" gettimeofday.$ac_objext "* ) ;;
16558   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
16559 esac
16560
16561 case $LIBOBJS in
16562     "kill.$ac_objext"   | \
16563   *" kill.$ac_objext"   | \
16564     "kill.$ac_objext "* | \
16565   *" kill.$ac_objext "* ) ;;
16566   *) LIBOBJS="$LIBOBJS kill.$ac_objext" ;;
16567 esac
16568
16569 case $LIBOBJS in
16570     "open.$ac_objext"   | \
16571   *" open.$ac_objext"   | \
16572     "open.$ac_objext "* | \
16573   *" open.$ac_objext "* ) ;;
16574   *) LIBOBJS="$LIBOBJS open.$ac_objext" ;;
16575 esac
16576
16577 case $LIBOBJS in
16578     "rand.$ac_objext"   | \
16579   *" rand.$ac_objext"   | \
16580     "rand.$ac_objext "* | \
16581   *" rand.$ac_objext "* ) ;;
16582   *) LIBOBJS="$LIBOBJS rand.$ac_objext" ;;
16583 esac
16584
16585 case $LIBOBJS in
16586     "win32error.$ac_objext"   | \
16587   *" win32error.$ac_objext"   | \
16588     "win32error.$ac_objext "* | \
16589   *" win32error.$ac_objext "* ) ;;
16590   *) LIBOBJS="$LIBOBJS win32error.$ac_objext" ;;
16591 esac
16592
16593
16594 cat >>confdefs.h <<\_ACEOF
16595 #define HAVE_SYMLINK 1
16596 _ACEOF
16597
16598 fi
16599
16600 if test "$with_readline" = yes; then
16601   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
16602 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
16603 cat >conftest.$ac_ext <<_ACEOF
16604 /* confdefs.h.  */
16605 _ACEOF
16606 cat confdefs.h >>conftest.$ac_ext
16607 cat >>conftest.$ac_ext <<_ACEOF
16608 /* end confdefs.h.  */
16609 #include <stdio.h>
16610 #ifdef HAVE_READLINE_READLINE_H
16611 # include <readline/readline.h>
16612 #elif defined(HAVE_READLINE_H)
16613 # include <readline.h>
16614 #endif
16615
16616 int
16617 main ()
16618 {
16619 rl_completion_append_character = 'x';
16620   ;
16621   return 0;
16622 }
16623 _ACEOF
16624 rm -f conftest.$ac_objext conftest$ac_exeext
16625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16626   (eval $ac_link) 2>conftest.er1
16627   ac_status=$?
16628   grep -v '^ *+' conftest.er1 >conftest.err
16629   rm -f conftest.er1
16630   cat conftest.err >&5
16631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632   (exit $ac_status); } &&
16633          { ac_try='test -z "$ac_c_werror_flag"
16634                          || test ! -s conftest.err'
16635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16636   (eval $ac_try) 2>&5
16637   ac_status=$?
16638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639   (exit $ac_status); }; } &&
16640          { ac_try='test -s conftest$ac_exeext'
16641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16642   (eval $ac_try) 2>&5
16643   ac_status=$?
16644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645   (exit $ac_status); }; }; then
16646   echo "$as_me:$LINENO: result: yes" >&5
16647 echo "${ECHO_T}yes" >&6
16648
16649 cat >>confdefs.h <<\_ACEOF
16650 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
16651 _ACEOF
16652
16653 else
16654   echo "$as_me: failed program was:" >&5
16655 sed 's/^/| /' conftest.$ac_ext >&5
16656
16657 echo "$as_me:$LINENO: result: no" >&5
16658 echo "${ECHO_T}no" >&6
16659 fi
16660 rm -f conftest.err conftest.$ac_objext \
16661       conftest$ac_exeext conftest.$ac_ext
16662
16663
16664 for ac_func in rl_completion_matches rl_filename_completion_function
16665 do
16666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16667 echo "$as_me:$LINENO: checking for $ac_func" >&5
16668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16669 if eval "test \"\${$as_ac_var+set}\" = set"; then
16670   echo $ECHO_N "(cached) $ECHO_C" >&6
16671 else
16672   cat >conftest.$ac_ext <<_ACEOF
16673 /* confdefs.h.  */
16674 _ACEOF
16675 cat confdefs.h >>conftest.$ac_ext
16676 cat >>conftest.$ac_ext <<_ACEOF
16677 /* end confdefs.h.  */
16678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16679    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16680 #define $ac_func innocuous_$ac_func
16681
16682 /* System header to define __stub macros and hopefully few prototypes,
16683     which can conflict with char $ac_func (); below.
16684     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16685     <limits.h> exists even on freestanding compilers.  */
16686
16687 #ifdef __STDC__
16688 # include <limits.h>
16689 #else
16690 # include <assert.h>
16691 #endif
16692
16693 #undef $ac_func
16694
16695 /* Override any gcc2 internal prototype to avoid an error.  */
16696 #ifdef __cplusplus
16697 extern "C"
16698 {
16699 #endif
16700 /* We use char because int might match the return type of a gcc2
16701    builtin and then its argument prototype would still apply.  */
16702 char $ac_func ();
16703 /* The GNU C library defines this for functions which it implements
16704     to always fail with ENOSYS.  Some functions are actually named
16705     something starting with __ and the normal name is an alias.  */
16706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16707 choke me
16708 #else
16709 char (*f) () = $ac_func;
16710 #endif
16711 #ifdef __cplusplus
16712 }
16713 #endif
16714
16715 int
16716 main ()
16717 {
16718 return f != $ac_func;
16719   ;
16720   return 0;
16721 }
16722 _ACEOF
16723 rm -f conftest.$ac_objext conftest$ac_exeext
16724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16725   (eval $ac_link) 2>conftest.er1
16726   ac_status=$?
16727   grep -v '^ *+' conftest.er1 >conftest.err
16728   rm -f conftest.er1
16729   cat conftest.err >&5
16730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731   (exit $ac_status); } &&
16732          { ac_try='test -z "$ac_c_werror_flag"
16733                          || test ! -s conftest.err'
16734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735   (eval $ac_try) 2>&5
16736   ac_status=$?
16737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738   (exit $ac_status); }; } &&
16739          { ac_try='test -s conftest$ac_exeext'
16740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16741   (eval $ac_try) 2>&5
16742   ac_status=$?
16743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744   (exit $ac_status); }; }; then
16745   eval "$as_ac_var=yes"
16746 else
16747   echo "$as_me: failed program was:" >&5
16748 sed 's/^/| /' conftest.$ac_ext >&5
16749
16750 eval "$as_ac_var=no"
16751 fi
16752 rm -f conftest.err conftest.$ac_objext \
16753       conftest$ac_exeext conftest.$ac_ext
16754 fi
16755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16756 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16757 if test `eval echo '${'$as_ac_var'}'` = yes; then
16758   cat >>confdefs.h <<_ACEOF
16759 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16760 _ACEOF
16761
16762 fi
16763 done
16764
16765
16766 for ac_func in replace_history_entry
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 fi
16868
16869
16870 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16871 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16872 cat >conftest.$ac_ext <<_ACEOF
16873 /* confdefs.h.  */
16874 _ACEOF
16875 cat confdefs.h >>conftest.$ac_ext
16876 cat >>conftest.$ac_ext <<_ACEOF
16877 /* end confdefs.h.  */
16878 #include <setjmp.h>
16879 int
16880 main ()
16881 {
16882 sigjmp_buf x; sigsetjmp(x, 1);
16883   ;
16884   return 0;
16885 }
16886 _ACEOF
16887 rm -f conftest.$ac_objext conftest$ac_exeext
16888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16889   (eval $ac_link) 2>conftest.er1
16890   ac_status=$?
16891   grep -v '^ *+' conftest.er1 >conftest.err
16892   rm -f conftest.er1
16893   cat conftest.err >&5
16894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895   (exit $ac_status); } &&
16896          { ac_try='test -z "$ac_c_werror_flag"
16897                          || test ! -s conftest.err'
16898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16899   (eval $ac_try) 2>&5
16900   ac_status=$?
16901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902   (exit $ac_status); }; } &&
16903          { ac_try='test -s conftest$ac_exeext'
16904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16905   (eval $ac_try) 2>&5
16906   ac_status=$?
16907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908   (exit $ac_status); }; }; then
16909
16910 cat >>confdefs.h <<\_ACEOF
16911 #define HAVE_SIGSETJMP 1
16912 _ACEOF
16913
16914 echo "$as_me:$LINENO: result: yes" >&5
16915 echo "${ECHO_T}yes" >&6
16916 else
16917   echo "$as_me: failed program was:" >&5
16918 sed 's/^/| /' conftest.$ac_ext >&5
16919
16920 echo "$as_me:$LINENO: result: no" >&5
16921 echo "${ECHO_T}no" >&6
16922 fi
16923 rm -f conftest.err conftest.$ac_objext \
16924       conftest$ac_exeext conftest.$ac_ext
16925
16926 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
16927 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
16928 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
16929   echo $ECHO_N "(cached) $ECHO_C" >&6
16930 else
16931   cat >conftest.$ac_ext <<_ACEOF
16932 /* confdefs.h.  */
16933 _ACEOF
16934 cat confdefs.h >>conftest.$ac_ext
16935 cat >>conftest.$ac_ext <<_ACEOF
16936 /* end confdefs.h.  */
16937 #include <signal.h>
16938 /* NetBSD declares sys_siglist in unistd.h.  */
16939 #if HAVE_UNISTD_H
16940 # include <unistd.h>
16941 #endif
16942
16943
16944 int
16945 main ()
16946 {
16947 #ifndef sys_siglist
16948   char *p = (char *) sys_siglist;
16949 #endif
16950
16951   ;
16952   return 0;
16953 }
16954 _ACEOF
16955 rm -f conftest.$ac_objext
16956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16957   (eval $ac_compile) 2>conftest.er1
16958   ac_status=$?
16959   grep -v '^ *+' conftest.er1 >conftest.err
16960   rm -f conftest.er1
16961   cat conftest.err >&5
16962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963   (exit $ac_status); } &&
16964          { ac_try='test -z "$ac_c_werror_flag"
16965                          || test ! -s conftest.err'
16966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16967   (eval $ac_try) 2>&5
16968   ac_status=$?
16969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970   (exit $ac_status); }; } &&
16971          { ac_try='test -s conftest.$ac_objext'
16972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16973   (eval $ac_try) 2>&5
16974   ac_status=$?
16975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976   (exit $ac_status); }; }; then
16977   ac_cv_have_decl_sys_siglist=yes
16978 else
16979   echo "$as_me: failed program was:" >&5
16980 sed 's/^/| /' conftest.$ac_ext >&5
16981
16982 ac_cv_have_decl_sys_siglist=no
16983 fi
16984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16985 fi
16986 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
16987 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
16988 if test $ac_cv_have_decl_sys_siglist = yes; then
16989
16990 cat >>confdefs.h <<_ACEOF
16991 #define HAVE_DECL_SYS_SIGLIST 1
16992 _ACEOF
16993
16994
16995 else
16996   cat >>confdefs.h <<_ACEOF
16997 #define HAVE_DECL_SYS_SIGLIST 0
16998 _ACEOF
16999
17000
17001 fi
17002
17003
17004
17005
17006 echo "$as_me:$LINENO: checking for syslog" >&5
17007 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
17008 if test "${ac_cv_func_syslog+set}" = set; then
17009   echo $ECHO_N "(cached) $ECHO_C" >&6
17010 else
17011   cat >conftest.$ac_ext <<_ACEOF
17012 /* confdefs.h.  */
17013 _ACEOF
17014 cat confdefs.h >>conftest.$ac_ext
17015 cat >>conftest.$ac_ext <<_ACEOF
17016 /* end confdefs.h.  */
17017 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
17018    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17019 #define syslog innocuous_syslog
17020
17021 /* System header to define __stub macros and hopefully few prototypes,
17022     which can conflict with char syslog (); below.
17023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17024     <limits.h> exists even on freestanding compilers.  */
17025
17026 #ifdef __STDC__
17027 # include <limits.h>
17028 #else
17029 # include <assert.h>
17030 #endif
17031
17032 #undef syslog
17033
17034 /* Override any gcc2 internal prototype to avoid an error.  */
17035 #ifdef __cplusplus
17036 extern "C"
17037 {
17038 #endif
17039 /* We use char because int might match the return type of a gcc2
17040    builtin and then its argument prototype would still apply.  */
17041 char syslog ();
17042 /* The GNU C library defines this for functions which it implements
17043     to always fail with ENOSYS.  Some functions are actually named
17044     something starting with __ and the normal name is an alias.  */
17045 #if defined (__stub_syslog) || defined (__stub___syslog)
17046 choke me
17047 #else
17048 char (*f) () = syslog;
17049 #endif
17050 #ifdef __cplusplus
17051 }
17052 #endif
17053
17054 int
17055 main ()
17056 {
17057 return f != syslog;
17058   ;
17059   return 0;
17060 }
17061 _ACEOF
17062 rm -f conftest.$ac_objext conftest$ac_exeext
17063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17064   (eval $ac_link) 2>conftest.er1
17065   ac_status=$?
17066   grep -v '^ *+' conftest.er1 >conftest.err
17067   rm -f conftest.er1
17068   cat conftest.err >&5
17069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070   (exit $ac_status); } &&
17071          { ac_try='test -z "$ac_c_werror_flag"
17072                          || test ! -s conftest.err'
17073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17074   (eval $ac_try) 2>&5
17075   ac_status=$?
17076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077   (exit $ac_status); }; } &&
17078          { ac_try='test -s conftest$ac_exeext'
17079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17080   (eval $ac_try) 2>&5
17081   ac_status=$?
17082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083   (exit $ac_status); }; }; then
17084   ac_cv_func_syslog=yes
17085 else
17086   echo "$as_me: failed program was:" >&5
17087 sed 's/^/| /' conftest.$ac_ext >&5
17088
17089 ac_cv_func_syslog=no
17090 fi
17091 rm -f conftest.err conftest.$ac_objext \
17092       conftest$ac_exeext conftest.$ac_ext
17093 fi
17094 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
17095 echo "${ECHO_T}$ac_cv_func_syslog" >&6
17096 if test $ac_cv_func_syslog = yes; then
17097   if test "${ac_cv_header_syslog_h+set}" = set; then
17098   echo "$as_me:$LINENO: checking for syslog.h" >&5
17099 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
17100 if test "${ac_cv_header_syslog_h+set}" = set; then
17101   echo $ECHO_N "(cached) $ECHO_C" >&6
17102 fi
17103 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17104 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
17105 else
17106   # Is the header compilable?
17107 echo "$as_me:$LINENO: checking syslog.h usability" >&5
17108 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
17109 cat >conftest.$ac_ext <<_ACEOF
17110 /* confdefs.h.  */
17111 _ACEOF
17112 cat confdefs.h >>conftest.$ac_ext
17113 cat >>conftest.$ac_ext <<_ACEOF
17114 /* end confdefs.h.  */
17115 $ac_includes_default
17116 #include <syslog.h>
17117 _ACEOF
17118 rm -f conftest.$ac_objext
17119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17120   (eval $ac_compile) 2>conftest.er1
17121   ac_status=$?
17122   grep -v '^ *+' conftest.er1 >conftest.err
17123   rm -f conftest.er1
17124   cat conftest.err >&5
17125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126   (exit $ac_status); } &&
17127          { ac_try='test -z "$ac_c_werror_flag"
17128                          || test ! -s conftest.err'
17129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130   (eval $ac_try) 2>&5
17131   ac_status=$?
17132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133   (exit $ac_status); }; } &&
17134          { ac_try='test -s conftest.$ac_objext'
17135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17136   (eval $ac_try) 2>&5
17137   ac_status=$?
17138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139   (exit $ac_status); }; }; then
17140   ac_header_compiler=yes
17141 else
17142   echo "$as_me: failed program was:" >&5
17143 sed 's/^/| /' conftest.$ac_ext >&5
17144
17145 ac_header_compiler=no
17146 fi
17147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17148 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17149 echo "${ECHO_T}$ac_header_compiler" >&6
17150
17151 # Is the header present?
17152 echo "$as_me:$LINENO: checking syslog.h presence" >&5
17153 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
17154 cat >conftest.$ac_ext <<_ACEOF
17155 /* confdefs.h.  */
17156 _ACEOF
17157 cat confdefs.h >>conftest.$ac_ext
17158 cat >>conftest.$ac_ext <<_ACEOF
17159 /* end confdefs.h.  */
17160 #include <syslog.h>
17161 _ACEOF
17162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17163   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17164   ac_status=$?
17165   grep -v '^ *+' conftest.er1 >conftest.err
17166   rm -f conftest.er1
17167   cat conftest.err >&5
17168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169   (exit $ac_status); } >/dev/null; then
17170   if test -s conftest.err; then
17171     ac_cpp_err=$ac_c_preproc_warn_flag
17172     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17173   else
17174     ac_cpp_err=
17175   fi
17176 else
17177   ac_cpp_err=yes
17178 fi
17179 if test -z "$ac_cpp_err"; then
17180   ac_header_preproc=yes
17181 else
17182   echo "$as_me: failed program was:" >&5
17183 sed 's/^/| /' conftest.$ac_ext >&5
17184
17185   ac_header_preproc=no
17186 fi
17187 rm -f conftest.err conftest.$ac_ext
17188 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17189 echo "${ECHO_T}$ac_header_preproc" >&6
17190
17191 # So?  What about this header?
17192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17193   yes:no: )
17194     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
17195 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17196     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
17197 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
17198     ac_header_preproc=yes
17199     ;;
17200   no:yes:* )
17201     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
17202 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
17203     { echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
17204 echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
17205     { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
17206 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
17207     { echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
17208 echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17209     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
17210 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
17211     { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
17212 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
17213     (
17214       cat <<\_ASBOX
17215 ## ---------------------------------------- ##
17216 ## Report this to pgsql-bugs@postgresql.org ##
17217 ## ---------------------------------------- ##
17218 _ASBOX
17219     ) |
17220       sed "s/^/$as_me: WARNING:     /" >&2
17221     ;;
17222 esac
17223 echo "$as_me:$LINENO: checking for syslog.h" >&5
17224 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
17225 if test "${ac_cv_header_syslog_h+set}" = set; then
17226   echo $ECHO_N "(cached) $ECHO_C" >&6
17227 else
17228   ac_cv_header_syslog_h=$ac_header_preproc
17229 fi
17230 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17231 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
17232
17233 fi
17234 if test $ac_cv_header_syslog_h = yes; then
17235
17236 cat >>confdefs.h <<\_ACEOF
17237 #define HAVE_SYSLOG 1
17238 _ACEOF
17239
17240 fi
17241
17242
17243 fi
17244
17245
17246 echo "$as_me:$LINENO: checking for optreset" >&5
17247 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
17248 if test "${pgac_cv_var_int_optreset+set}" = set; then
17249   echo $ECHO_N "(cached) $ECHO_C" >&6
17250 else
17251   cat >conftest.$ac_ext <<_ACEOF
17252 /* confdefs.h.  */
17253 _ACEOF
17254 cat confdefs.h >>conftest.$ac_ext
17255 cat >>conftest.$ac_ext <<_ACEOF
17256 /* end confdefs.h.  */
17257 #include <unistd.h>
17258 int
17259 main ()
17260 {
17261 extern int optreset; optreset = 1;
17262   ;
17263   return 0;
17264 }
17265 _ACEOF
17266 rm -f conftest.$ac_objext conftest$ac_exeext
17267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17268   (eval $ac_link) 2>conftest.er1
17269   ac_status=$?
17270   grep -v '^ *+' conftest.er1 >conftest.err
17271   rm -f conftest.er1
17272   cat conftest.err >&5
17273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274   (exit $ac_status); } &&
17275          { ac_try='test -z "$ac_c_werror_flag"
17276                          || test ! -s conftest.err'
17277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17278   (eval $ac_try) 2>&5
17279   ac_status=$?
17280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281   (exit $ac_status); }; } &&
17282          { ac_try='test -s conftest$ac_exeext'
17283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17284   (eval $ac_try) 2>&5
17285   ac_status=$?
17286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287   (exit $ac_status); }; }; then
17288   pgac_cv_var_int_optreset=yes
17289 else
17290   echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17292
17293 pgac_cv_var_int_optreset=no
17294 fi
17295 rm -f conftest.err conftest.$ac_objext \
17296       conftest$ac_exeext conftest.$ac_ext
17297 fi
17298 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
17299 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
17300 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
17301
17302 cat >>confdefs.h <<\_ACEOF
17303 #define HAVE_INT_OPTRESET 1
17304 _ACEOF
17305
17306 fi
17307
17308
17309
17310 for ac_func in strtoll strtoq
17311 do
17312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17313 echo "$as_me:$LINENO: checking for $ac_func" >&5
17314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17315 if eval "test \"\${$as_ac_var+set}\" = set"; then
17316   echo $ECHO_N "(cached) $ECHO_C" >&6
17317 else
17318   cat >conftest.$ac_ext <<_ACEOF
17319 /* confdefs.h.  */
17320 _ACEOF
17321 cat confdefs.h >>conftest.$ac_ext
17322 cat >>conftest.$ac_ext <<_ACEOF
17323 /* end confdefs.h.  */
17324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17325    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17326 #define $ac_func innocuous_$ac_func
17327
17328 /* System header to define __stub macros and hopefully few prototypes,
17329     which can conflict with char $ac_func (); below.
17330     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17331     <limits.h> exists even on freestanding compilers.  */
17332
17333 #ifdef __STDC__
17334 # include <limits.h>
17335 #else
17336 # include <assert.h>
17337 #endif
17338
17339 #undef $ac_func
17340
17341 /* Override any gcc2 internal prototype to avoid an error.  */
17342 #ifdef __cplusplus
17343 extern "C"
17344 {
17345 #endif
17346 /* We use char because int might match the return type of a gcc2
17347    builtin and then its argument prototype would still apply.  */
17348 char $ac_func ();
17349 /* The GNU C library defines this for functions which it implements
17350     to always fail with ENOSYS.  Some functions are actually named
17351     something starting with __ and the normal name is an alias.  */
17352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17353 choke me
17354 #else
17355 char (*f) () = $ac_func;
17356 #endif
17357 #ifdef __cplusplus
17358 }
17359 #endif
17360
17361 int
17362 main ()
17363 {
17364 return f != $ac_func;
17365   ;
17366   return 0;
17367 }
17368 _ACEOF
17369 rm -f conftest.$ac_objext conftest$ac_exeext
17370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17371   (eval $ac_link) 2>conftest.er1
17372   ac_status=$?
17373   grep -v '^ *+' conftest.er1 >conftest.err
17374   rm -f conftest.er1
17375   cat conftest.err >&5
17376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377   (exit $ac_status); } &&
17378          { ac_try='test -z "$ac_c_werror_flag"
17379                          || test ! -s conftest.err'
17380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17381   (eval $ac_try) 2>&5
17382   ac_status=$?
17383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384   (exit $ac_status); }; } &&
17385          { ac_try='test -s conftest$ac_exeext'
17386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17387   (eval $ac_try) 2>&5
17388   ac_status=$?
17389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390   (exit $ac_status); }; }; then
17391   eval "$as_ac_var=yes"
17392 else
17393   echo "$as_me: failed program was:" >&5
17394 sed 's/^/| /' conftest.$ac_ext >&5
17395
17396 eval "$as_ac_var=no"
17397 fi
17398 rm -f conftest.err conftest.$ac_objext \
17399       conftest$ac_exeext conftest.$ac_ext
17400 fi
17401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17402 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17403 if test `eval echo '${'$as_ac_var'}'` = yes; then
17404   cat >>confdefs.h <<_ACEOF
17405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17406 _ACEOF
17407  break
17408 fi
17409 done
17410
17411
17412
17413 for ac_func in strtoull strtouq
17414 do
17415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17416 echo "$as_me:$LINENO: checking for $ac_func" >&5
17417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17418 if eval "test \"\${$as_ac_var+set}\" = set"; then
17419   echo $ECHO_N "(cached) $ECHO_C" >&6
17420 else
17421   cat >conftest.$ac_ext <<_ACEOF
17422 /* confdefs.h.  */
17423 _ACEOF
17424 cat confdefs.h >>conftest.$ac_ext
17425 cat >>conftest.$ac_ext <<_ACEOF
17426 /* end confdefs.h.  */
17427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17428    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17429 #define $ac_func innocuous_$ac_func
17430
17431 /* System header to define __stub macros and hopefully few prototypes,
17432     which can conflict with char $ac_func (); below.
17433     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17434     <limits.h> exists even on freestanding compilers.  */
17435
17436 #ifdef __STDC__
17437 # include <limits.h>
17438 #else
17439 # include <assert.h>
17440 #endif
17441
17442 #undef $ac_func
17443
17444 /* Override any gcc2 internal prototype to avoid an error.  */
17445 #ifdef __cplusplus
17446 extern "C"
17447 {
17448 #endif
17449 /* We use char because int might match the return type of a gcc2
17450    builtin and then its argument prototype would still apply.  */
17451 char $ac_func ();
17452 /* The GNU C library defines this for functions which it implements
17453     to always fail with ENOSYS.  Some functions are actually named
17454     something starting with __ and the normal name is an alias.  */
17455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17456 choke me
17457 #else
17458 char (*f) () = $ac_func;
17459 #endif
17460 #ifdef __cplusplus
17461 }
17462 #endif
17463
17464 int
17465 main ()
17466 {
17467 return f != $ac_func;
17468   ;
17469   return 0;
17470 }
17471 _ACEOF
17472 rm -f conftest.$ac_objext conftest$ac_exeext
17473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17474   (eval $ac_link) 2>conftest.er1
17475   ac_status=$?
17476   grep -v '^ *+' conftest.er1 >conftest.err
17477   rm -f conftest.er1
17478   cat conftest.err >&5
17479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480   (exit $ac_status); } &&
17481          { ac_try='test -z "$ac_c_werror_flag"
17482                          || test ! -s conftest.err'
17483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17484   (eval $ac_try) 2>&5
17485   ac_status=$?
17486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487   (exit $ac_status); }; } &&
17488          { ac_try='test -s conftest$ac_exeext'
17489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17490   (eval $ac_try) 2>&5
17491   ac_status=$?
17492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493   (exit $ac_status); }; }; then
17494   eval "$as_ac_var=yes"
17495 else
17496   echo "$as_me: failed program was:" >&5
17497 sed 's/^/| /' conftest.$ac_ext >&5
17498
17499 eval "$as_ac_var=no"
17500 fi
17501 rm -f conftest.err conftest.$ac_objext \
17502       conftest$ac_exeext conftest.$ac_ext
17503 fi
17504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17505 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17506 if test `eval echo '${'$as_ac_var'}'` = yes; then
17507   cat >>confdefs.h <<_ACEOF
17508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17509 _ACEOF
17510  break
17511 fi
17512 done
17513
17514
17515 # Check for one of atexit() or on_exit()
17516
17517 for ac_func in atexit
17518 do
17519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17520 echo "$as_me:$LINENO: checking for $ac_func" >&5
17521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17522 if eval "test \"\${$as_ac_var+set}\" = set"; then
17523   echo $ECHO_N "(cached) $ECHO_C" >&6
17524 else
17525   cat >conftest.$ac_ext <<_ACEOF
17526 /* confdefs.h.  */
17527 _ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h.  */
17531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17532    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17533 #define $ac_func innocuous_$ac_func
17534
17535 /* System header to define __stub macros and hopefully few prototypes,
17536     which can conflict with char $ac_func (); below.
17537     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17538     <limits.h> exists even on freestanding compilers.  */
17539
17540 #ifdef __STDC__
17541 # include <limits.h>
17542 #else
17543 # include <assert.h>
17544 #endif
17545
17546 #undef $ac_func
17547
17548 /* Override any gcc2 internal prototype to avoid an error.  */
17549 #ifdef __cplusplus
17550 extern "C"
17551 {
17552 #endif
17553 /* We use char because int might match the return type of a gcc2
17554    builtin and then its argument prototype would still apply.  */
17555 char $ac_func ();
17556 /* The GNU C library defines this for functions which it implements
17557     to always fail with ENOSYS.  Some functions are actually named
17558     something starting with __ and the normal name is an alias.  */
17559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17560 choke me
17561 #else
17562 char (*f) () = $ac_func;
17563 #endif
17564 #ifdef __cplusplus
17565 }
17566 #endif
17567
17568 int
17569 main ()
17570 {
17571 return f != $ac_func;
17572   ;
17573   return 0;
17574 }
17575 _ACEOF
17576 rm -f conftest.$ac_objext conftest$ac_exeext
17577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17578   (eval $ac_link) 2>conftest.er1
17579   ac_status=$?
17580   grep -v '^ *+' conftest.er1 >conftest.err
17581   rm -f conftest.er1
17582   cat conftest.err >&5
17583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584   (exit $ac_status); } &&
17585          { ac_try='test -z "$ac_c_werror_flag"
17586                          || test ! -s conftest.err'
17587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588   (eval $ac_try) 2>&5
17589   ac_status=$?
17590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591   (exit $ac_status); }; } &&
17592          { ac_try='test -s conftest$ac_exeext'
17593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594   (eval $ac_try) 2>&5
17595   ac_status=$?
17596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597   (exit $ac_status); }; }; then
17598   eval "$as_ac_var=yes"
17599 else
17600   echo "$as_me: failed program was:" >&5
17601 sed 's/^/| /' conftest.$ac_ext >&5
17602
17603 eval "$as_ac_var=no"
17604 fi
17605 rm -f conftest.err conftest.$ac_objext \
17606       conftest$ac_exeext conftest.$ac_ext
17607 fi
17608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17609 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17610 if test `eval echo '${'$as_ac_var'}'` = yes; then
17611   cat >>confdefs.h <<_ACEOF
17612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17613 _ACEOF
17614
17615 else
17616
17617 for ac_func in on_exit
17618 do
17619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17620 echo "$as_me:$LINENO: checking for $ac_func" >&5
17621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17622 if eval "test \"\${$as_ac_var+set}\" = set"; then
17623   echo $ECHO_N "(cached) $ECHO_C" >&6
17624 else
17625   cat >conftest.$ac_ext <<_ACEOF
17626 /* confdefs.h.  */
17627 _ACEOF
17628 cat confdefs.h >>conftest.$ac_ext
17629 cat >>conftest.$ac_ext <<_ACEOF
17630 /* end confdefs.h.  */
17631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17632    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17633 #define $ac_func innocuous_$ac_func
17634
17635 /* System header to define __stub macros and hopefully few prototypes,
17636     which can conflict with char $ac_func (); below.
17637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17638     <limits.h> exists even on freestanding compilers.  */
17639
17640 #ifdef __STDC__
17641 # include <limits.h>
17642 #else
17643 # include <assert.h>
17644 #endif
17645
17646 #undef $ac_func
17647
17648 /* Override any gcc2 internal prototype to avoid an error.  */
17649 #ifdef __cplusplus
17650 extern "C"
17651 {
17652 #endif
17653 /* We use char because int might match the return type of a gcc2
17654    builtin and then its argument prototype would still apply.  */
17655 char $ac_func ();
17656 /* The GNU C library defines this for functions which it implements
17657     to always fail with ENOSYS.  Some functions are actually named
17658     something starting with __ and the normal name is an alias.  */
17659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17660 choke me
17661 #else
17662 char (*f) () = $ac_func;
17663 #endif
17664 #ifdef __cplusplus
17665 }
17666 #endif
17667
17668 int
17669 main ()
17670 {
17671 return f != $ac_func;
17672   ;
17673   return 0;
17674 }
17675 _ACEOF
17676 rm -f conftest.$ac_objext conftest$ac_exeext
17677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17678   (eval $ac_link) 2>conftest.er1
17679   ac_status=$?
17680   grep -v '^ *+' conftest.er1 >conftest.err
17681   rm -f conftest.er1
17682   cat conftest.err >&5
17683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684   (exit $ac_status); } &&
17685          { ac_try='test -z "$ac_c_werror_flag"
17686                          || test ! -s conftest.err'
17687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17688   (eval $ac_try) 2>&5
17689   ac_status=$?
17690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691   (exit $ac_status); }; } &&
17692          { ac_try='test -s conftest$ac_exeext'
17693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17694   (eval $ac_try) 2>&5
17695   ac_status=$?
17696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697   (exit $ac_status); }; }; then
17698   eval "$as_ac_var=yes"
17699 else
17700   echo "$as_me: failed program was:" >&5
17701 sed 's/^/| /' conftest.$ac_ext >&5
17702
17703 eval "$as_ac_var=no"
17704 fi
17705 rm -f conftest.err conftest.$ac_objext \
17706       conftest$ac_exeext conftest.$ac_ext
17707 fi
17708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17710 if test `eval echo '${'$as_ac_var'}'` = yes; then
17711   cat >>confdefs.h <<_ACEOF
17712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17713 _ACEOF
17714
17715 else
17716   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
17717 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
17718    { (exit 1); exit 1; }; }
17719 fi
17720 done
17721
17722 fi
17723 done
17724
17725
17726 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17727 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17728 if test "${ac_cv_sys_largefile_source+set}" = set; then
17729   echo $ECHO_N "(cached) $ECHO_C" >&6
17730 else
17731   while :; do
17732   ac_cv_sys_largefile_source=no
17733   cat >conftest.$ac_ext <<_ACEOF
17734 /* confdefs.h.  */
17735 _ACEOF
17736 cat confdefs.h >>conftest.$ac_ext
17737 cat >>conftest.$ac_ext <<_ACEOF
17738 /* end confdefs.h.  */
17739 #include <stdio.h>
17740 int
17741 main ()
17742 {
17743 return !fseeko;
17744   ;
17745   return 0;
17746 }
17747 _ACEOF
17748 rm -f conftest.$ac_objext
17749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17750   (eval $ac_compile) 2>conftest.er1
17751   ac_status=$?
17752   grep -v '^ *+' conftest.er1 >conftest.err
17753   rm -f conftest.er1
17754   cat conftest.err >&5
17755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756   (exit $ac_status); } &&
17757          { ac_try='test -z "$ac_c_werror_flag"
17758                          || test ! -s conftest.err'
17759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760   (eval $ac_try) 2>&5
17761   ac_status=$?
17762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763   (exit $ac_status); }; } &&
17764          { ac_try='test -s conftest.$ac_objext'
17765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766   (eval $ac_try) 2>&5
17767   ac_status=$?
17768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769   (exit $ac_status); }; }; then
17770   break
17771 else
17772   echo "$as_me: failed program was:" >&5
17773 sed 's/^/| /' conftest.$ac_ext >&5
17774
17775 fi
17776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17777   cat >conftest.$ac_ext <<_ACEOF
17778 /* confdefs.h.  */
17779 _ACEOF
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h.  */
17783 #define _LARGEFILE_SOURCE 1
17784 #include <stdio.h>
17785 int
17786 main ()
17787 {
17788 return !fseeko;
17789   ;
17790   return 0;
17791 }
17792 _ACEOF
17793 rm -f conftest.$ac_objext
17794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17795   (eval $ac_compile) 2>conftest.er1
17796   ac_status=$?
17797   grep -v '^ *+' conftest.er1 >conftest.err
17798   rm -f conftest.er1
17799   cat conftest.err >&5
17800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801   (exit $ac_status); } &&
17802          { ac_try='test -z "$ac_c_werror_flag"
17803                          || test ! -s conftest.err'
17804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17805   (eval $ac_try) 2>&5
17806   ac_status=$?
17807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808   (exit $ac_status); }; } &&
17809          { ac_try='test -s conftest.$ac_objext'
17810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17811   (eval $ac_try) 2>&5
17812   ac_status=$?
17813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814   (exit $ac_status); }; }; then
17815   ac_cv_sys_largefile_source=1; break
17816 else
17817   echo "$as_me: failed program was:" >&5
17818 sed 's/^/| /' conftest.$ac_ext >&5
17819
17820 fi
17821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17822   break
17823 done
17824 fi
17825 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17826 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17827 if test "$ac_cv_sys_largefile_source" != no; then
17828
17829 cat >>confdefs.h <<_ACEOF
17830 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17831 _ACEOF
17832
17833 fi
17834 rm -f conftest*
17835
17836 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17837 # in glibc 2.1.3, but that breaks too many other things.
17838 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17839 echo "$as_me:$LINENO: checking for fseeko" >&5
17840 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17841 if test "${ac_cv_func_fseeko+set}" = set; then
17842   echo $ECHO_N "(cached) $ECHO_C" >&6
17843 else
17844   cat >conftest.$ac_ext <<_ACEOF
17845 /* confdefs.h.  */
17846 _ACEOF
17847 cat confdefs.h >>conftest.$ac_ext
17848 cat >>conftest.$ac_ext <<_ACEOF
17849 /* end confdefs.h.  */
17850 #include <stdio.h>
17851 int
17852 main ()
17853 {
17854 return fseeko && fseeko (stdin, 0, 0);
17855   ;
17856   return 0;
17857 }
17858 _ACEOF
17859 rm -f conftest.$ac_objext conftest$ac_exeext
17860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17861   (eval $ac_link) 2>conftest.er1
17862   ac_status=$?
17863   grep -v '^ *+' conftest.er1 >conftest.err
17864   rm -f conftest.er1
17865   cat conftest.err >&5
17866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867   (exit $ac_status); } &&
17868          { ac_try='test -z "$ac_c_werror_flag"
17869                          || test ! -s conftest.err'
17870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871   (eval $ac_try) 2>&5
17872   ac_status=$?
17873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874   (exit $ac_status); }; } &&
17875          { ac_try='test -s conftest$ac_exeext'
17876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877   (eval $ac_try) 2>&5
17878   ac_status=$?
17879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880   (exit $ac_status); }; }; then
17881   ac_cv_func_fseeko=yes
17882 else
17883   echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.$ac_ext >&5
17885
17886 ac_cv_func_fseeko=no
17887 fi
17888 rm -f conftest.err conftest.$ac_objext \
17889       conftest$ac_exeext conftest.$ac_ext
17890 fi
17891 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17892 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17893 if test $ac_cv_func_fseeko = yes; then
17894
17895 cat >>confdefs.h <<\_ACEOF
17896 #define HAVE_FSEEKO 1
17897 _ACEOF
17898
17899 fi
17900
17901
17902 #
17903 # Pthreads
17904 #
17905 # For each platform, we need to know about any special compile and link
17906 # libraries, and whether the normal C function names are thread-safe.
17907 # See the comment at the top of src/port/thread.c for more information.
17908 # WIN32 doesn't need the pthread tests;  it always uses threads
17909 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
17910
17911
17912
17913
17914 ac_ext=c
17915 ac_cpp='$CPP $CPPFLAGS'
17916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17919
17920 acx_pthread_ok=no
17921
17922 # We used to check for pthread.h first, but this fails if pthread.h
17923 # requires special compiler flags (e.g. on True64 or Sequent).
17924 # It gets checked for in the link test anyway.
17925
17926 # First of all, check if the user has set any of the PTHREAD_LIBS,
17927 # etcetera environment variables, and if threads linking works using
17928 # them:
17929 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
17930         save_CFLAGS="$CFLAGS"
17931         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17932         save_LIBS="$LIBS"
17933         LIBS="$PTHREAD_LIBS $LIBS"
17934         echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
17935 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
17936         cat >conftest.$ac_ext <<_ACEOF
17937 /* confdefs.h.  */
17938 _ACEOF
17939 cat confdefs.h >>conftest.$ac_ext
17940 cat >>conftest.$ac_ext <<_ACEOF
17941 /* end confdefs.h.  */
17942
17943 /* Override any gcc2 internal prototype to avoid an error.  */
17944 #ifdef __cplusplus
17945 extern "C"
17946 #endif
17947 /* We use char because int might match the return type of a gcc2
17948    builtin and then its argument prototype would still apply.  */
17949 char pthread_join ();
17950 int
17951 main ()
17952 {
17953 pthread_join ();
17954   ;
17955   return 0;
17956 }
17957 _ACEOF
17958 rm -f conftest.$ac_objext conftest$ac_exeext
17959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17960   (eval $ac_link) 2>conftest.er1
17961   ac_status=$?
17962   grep -v '^ *+' conftest.er1 >conftest.err
17963   rm -f conftest.er1
17964   cat conftest.err >&5
17965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966   (exit $ac_status); } &&
17967          { ac_try='test -z "$ac_c_werror_flag"
17968                          || test ! -s conftest.err'
17969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17970   (eval $ac_try) 2>&5
17971   ac_status=$?
17972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973   (exit $ac_status); }; } &&
17974          { ac_try='test -s conftest$ac_exeext'
17975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17976   (eval $ac_try) 2>&5
17977   ac_status=$?
17978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979   (exit $ac_status); }; }; then
17980   acx_pthread_ok=yes
17981 else
17982   echo "$as_me: failed program was:" >&5
17983 sed 's/^/| /' conftest.$ac_ext >&5
17984
17985 fi
17986 rm -f conftest.err conftest.$ac_objext \
17987       conftest$ac_exeext conftest.$ac_ext
17988         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
17989 echo "${ECHO_T}$acx_pthread_ok" >&6
17990         if test x"$acx_pthread_ok" = xno; then
17991                 PTHREAD_LIBS=""
17992                 PTHREAD_CFLAGS=""
17993         fi
17994         LIBS="$save_LIBS"
17995         CFLAGS="$save_CFLAGS"
17996 fi
17997
17998 # We must check for the threads library under a number of different
17999 # names; the ordering is very important because some systems
18000 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18001 # libraries is broken (non-POSIX).
18002
18003 # Create a list of thread flags to try.  Items starting with a "-" are
18004 # C compiler flags, and other items are library names, except for "none"
18005 # which indicates that we try without any flags at all, and "pthread-config"
18006 # which is a program returning the flags for the Pth emulation library.
18007
18008 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
18009
18010 # The ordering *is* (sometimes) important.  Some notes on the
18011 # individual items follow:
18012
18013 # pthreads: AIX (must check this before -lpthread)
18014 # none: in case threads are in libc; should be tried before -Kthread and
18015 #       other compiler flags to prevent continual compiler warnings
18016 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18017 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18018 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18019 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18020 # -pthreads: Solaris/gcc
18021 # -mthreads: Mingw32/gcc, Lynx/gcc
18022 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18023 #      doesn't hurt to check since this sometimes defines pthreads too;
18024 #      also defines -D_REENTRANT)
18025 # pthread: Linux, etcetera
18026 # --thread-safe: KAI C++
18027 # pthread-config: use pthread-config program (for GNU Pth library)
18028
18029 case "${host_cpu}-${host_os}" in
18030         *solaris*)
18031
18032         # On Solaris (at least, for some versions), libc contains stubbed
18033         # (non-functional) versions of the pthreads routines, so link-based
18034         # tests will erroneously succeed.  (We need to link with -pthread or
18035         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
18036         # a function called by this macro, so we could check for that, but
18037         # who knows whether they'll stub that too in a future libc.)  So,
18038         # we'll just look for -pthreads and -lpthread first:
18039
18040         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
18041         ;;
18042 esac
18043
18044 if test x"$acx_pthread_ok" = xno; then
18045 for flag in $acx_pthread_flags; do
18046
18047         tryPTHREAD_CFLAGS=""
18048         tryPTHREAD_LIBS=""
18049         case $flag in
18050                 none)
18051                 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
18052 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
18053                 ;;
18054
18055                 -*)
18056                 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
18057 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
18058                 tryPTHREAD_CFLAGS="$flag"
18059                 ;;
18060
18061                 pthread-config)
18062                 # skip this if we already have flags defined, for PostgreSQL
18063                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
18064                 # Extract the first word of "pthread-config", so it can be a program name with args.
18065 set dummy pthread-config; ac_word=$2
18066 echo "$as_me:$LINENO: checking for $ac_word" >&5
18067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18068 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
18069   echo $ECHO_N "(cached) $ECHO_C" >&6
18070 else
18071   if test -n "$acx_pthread_config"; then
18072   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
18073 else
18074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18075 for as_dir in $PATH
18076 do
18077   IFS=$as_save_IFS
18078   test -z "$as_dir" && as_dir=.
18079   for ac_exec_ext in '' $ac_executable_extensions; do
18080   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18081     ac_cv_prog_acx_pthread_config="yes"
18082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18083     break 2
18084   fi
18085 done
18086 done
18087
18088   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
18089 fi
18090 fi
18091 acx_pthread_config=$ac_cv_prog_acx_pthread_config
18092 if test -n "$acx_pthread_config"; then
18093   echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
18094 echo "${ECHO_T}$acx_pthread_config" >&6
18095 else
18096   echo "$as_me:$LINENO: result: no" >&5
18097 echo "${ECHO_T}no" >&6
18098 fi
18099
18100                 if test x"$acx_pthread_config" = xno; then continue; fi
18101                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
18102                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18103                 ;;
18104
18105                 *)
18106                 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
18107 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
18108                 tryPTHREAD_LIBS="-l$flag"
18109                 ;;
18110         esac
18111
18112         save_LIBS="$LIBS"
18113         save_CFLAGS="$CFLAGS"
18114         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
18115         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18116
18117         # Check for various functions.  We must include pthread.h,
18118         # since some functions may be macros.  (On the Sequent, we
18119         # need a special flag -Kthread to make this header compile.)
18120         # We check for pthread_join because it is in -lpthread on IRIX
18121         # while pthread_create is in libc.  We check for pthread_attr_init
18122         # due to DEC craziness with -lpthreads.  We check for
18123         # pthread_cleanup_push because it is one of the few pthread
18124         # functions on Solaris that doesn't have a non-functional libc stub.
18125         # We try pthread_create on general principles.
18126         cat >conftest.$ac_ext <<_ACEOF
18127 /* confdefs.h.  */
18128 _ACEOF
18129 cat confdefs.h >>conftest.$ac_ext
18130 cat >>conftest.$ac_ext <<_ACEOF
18131 /* end confdefs.h.  */
18132 #include <pthread.h>
18133 int
18134 main ()
18135 {
18136 pthread_t th; pthread_join(th, 0);
18137                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
18138                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18139   ;
18140   return 0;
18141 }
18142 _ACEOF
18143 rm -f conftest.$ac_objext conftest$ac_exeext
18144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18145   (eval $ac_link) 2>conftest.er1
18146   ac_status=$?
18147   grep -v '^ *+' conftest.er1 >conftest.err
18148   rm -f conftest.er1
18149   cat conftest.err >&5
18150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151   (exit $ac_status); } &&
18152          { ac_try='test -z "$ac_c_werror_flag"
18153                          || test ! -s conftest.err'
18154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18155   (eval $ac_try) 2>&5
18156   ac_status=$?
18157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158   (exit $ac_status); }; } &&
18159          { ac_try='test -s conftest$ac_exeext'
18160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18161   (eval $ac_try) 2>&5
18162   ac_status=$?
18163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164   (exit $ac_status); }; }; then
18165   acx_pthread_ok=yes
18166 else
18167   echo "$as_me: failed program was:" >&5
18168 sed 's/^/| /' conftest.$ac_ext >&5
18169
18170 acx_pthread_ok=no
18171 fi
18172 rm -f conftest.err conftest.$ac_objext \
18173       conftest$ac_exeext conftest.$ac_ext
18174
18175         if test "x$acx_pthread_ok" = xyes; then
18176             # Don't use options that are ignored by the compiler.
18177             # We find them by checking stderror.
18178             cat >conftest.$ac_ext <<_ACEOF
18179 int
18180 main (int argc, char **argv)
18181 {
18182   (void) argc;
18183   (void) argv;
18184   return 0;
18185 }
18186 _ACEOF
18187             rm -f conftest.$ac_objext conftest$ac_exeext
18188             if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
18189                 # we continue with more flags because Linux needs -lpthread
18190                 # for libpq builds on PostgreSQL.  The test above only
18191                 # tests for building binaries, not shared libraries.
18192                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
18193                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18194             else   acx_pthread_ok=no
18195             fi
18196         fi
18197
18198         LIBS="$save_LIBS"
18199         CFLAGS="$save_CFLAGS"
18200
18201         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18202 echo "${ECHO_T}$acx_pthread_ok" >&6
18203 done
18204 fi
18205
18206 # Various other checks:
18207 if test "x$acx_pthread_ok" = xyes; then
18208         save_LIBS="$LIBS"
18209         LIBS="$PTHREAD_LIBS $LIBS"
18210         save_CFLAGS="$CFLAGS"
18211         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18212
18213         # Detect AIX lossage: threads are created detached by default
18214         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
18215         echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
18216 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
18217         cat >conftest.$ac_ext <<_ACEOF
18218 /* confdefs.h.  */
18219 _ACEOF
18220 cat confdefs.h >>conftest.$ac_ext
18221 cat >>conftest.$ac_ext <<_ACEOF
18222 /* end confdefs.h.  */
18223 #include <pthread.h>
18224 int
18225 main ()
18226 {
18227 int attr=PTHREAD_CREATE_JOINABLE;
18228   ;
18229   return 0;
18230 }
18231 _ACEOF
18232 rm -f conftest.$ac_objext conftest$ac_exeext
18233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18234   (eval $ac_link) 2>conftest.er1
18235   ac_status=$?
18236   grep -v '^ *+' conftest.er1 >conftest.err
18237   rm -f conftest.er1
18238   cat conftest.err >&5
18239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240   (exit $ac_status); } &&
18241          { ac_try='test -z "$ac_c_werror_flag"
18242                          || test ! -s conftest.err'
18243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18244   (eval $ac_try) 2>&5
18245   ac_status=$?
18246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247   (exit $ac_status); }; } &&
18248          { ac_try='test -s conftest$ac_exeext'
18249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18250   (eval $ac_try) 2>&5
18251   ac_status=$?
18252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253   (exit $ac_status); }; }; then
18254   ok=PTHREAD_CREATE_JOINABLE
18255 else
18256   echo "$as_me: failed program was:" >&5
18257 sed 's/^/| /' conftest.$ac_ext >&5
18258
18259 ok=unknown
18260 fi
18261 rm -f conftest.err conftest.$ac_objext \
18262       conftest$ac_exeext conftest.$ac_ext
18263         if test x"$ok" = xunknown; then
18264                 cat >conftest.$ac_ext <<_ACEOF
18265 /* confdefs.h.  */
18266 _ACEOF
18267 cat confdefs.h >>conftest.$ac_ext
18268 cat >>conftest.$ac_ext <<_ACEOF
18269 /* end confdefs.h.  */
18270 #include <pthread.h>
18271 int
18272 main ()
18273 {
18274 int attr=PTHREAD_CREATE_UNDETACHED;
18275   ;
18276   return 0;
18277 }
18278 _ACEOF
18279 rm -f conftest.$ac_objext conftest$ac_exeext
18280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18281   (eval $ac_link) 2>conftest.er1
18282   ac_status=$?
18283   grep -v '^ *+' conftest.er1 >conftest.err
18284   rm -f conftest.er1
18285   cat conftest.err >&5
18286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287   (exit $ac_status); } &&
18288          { ac_try='test -z "$ac_c_werror_flag"
18289                          || test ! -s conftest.err'
18290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18291   (eval $ac_try) 2>&5
18292   ac_status=$?
18293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294   (exit $ac_status); }; } &&
18295          { ac_try='test -s conftest$ac_exeext'
18296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18297   (eval $ac_try) 2>&5
18298   ac_status=$?
18299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300   (exit $ac_status); }; }; then
18301   ok=PTHREAD_CREATE_UNDETACHED
18302 else
18303   echo "$as_me: failed program was:" >&5
18304 sed 's/^/| /' conftest.$ac_ext >&5
18305
18306 ok=unknown
18307 fi
18308 rm -f conftest.err conftest.$ac_objext \
18309       conftest$ac_exeext conftest.$ac_ext
18310         fi
18311         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
18312
18313 cat >>confdefs.h <<\_ACEOF
18314 #define PTHREAD_CREATE_JOINABLE $ok
18315 _ACEOF
18316
18317         fi
18318         echo "$as_me:$LINENO: result: ${ok}" >&5
18319 echo "${ECHO_T}${ok}" >&6
18320         if test x"$ok" = xunknown; then
18321                 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
18322 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
18323         fi
18324
18325         echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
18326 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
18327         flag=no
18328 # We always add these in PostgreSQL
18329 #       case "${host_cpu}-${host_os}" in
18330 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
18331 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
18332 #       esac
18333         echo "$as_me:$LINENO: result: ${flag}" >&5
18334 echo "${ECHO_T}${flag}" >&6
18335         if test "x$flag" != xno; then
18336                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18337         fi
18338
18339         LIBS="$save_LIBS"
18340         CFLAGS="$save_CFLAGS"
18341
18342 # Supporting cc_r would require a special CC in all places that
18343 # use libpq, and that is ugly, so we don't do it.  Users can still
18344 # define their compiler as cc_r to do thread builds of everything.
18345         # More AIX lossage: must compile with cc_r
18346         # Extract the first word of "cc_r", so it can be a program name with args.
18347 set dummy cc_r; ac_word=$2
18348 echo "$as_me:$LINENO: checking for $ac_word" >&5
18349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18350 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
18351   echo $ECHO_N "(cached) $ECHO_C" >&6
18352 else
18353   if test -n "$PTHREAD_CC"; then
18354   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18355 else
18356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18357 for as_dir in $PATH
18358 do
18359   IFS=$as_save_IFS
18360   test -z "$as_dir" && as_dir=.
18361   for ac_exec_ext in '' $ac_executable_extensions; do
18362   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18363     ac_cv_prog_PTHREAD_CC="cc_r"
18364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18365     break 2
18366   fi
18367 done
18368 done
18369
18370   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
18371 fi
18372 fi
18373 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18374 if test -n "$PTHREAD_CC"; then
18375   echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
18376 echo "${ECHO_T}$PTHREAD_CC" >&6
18377 else
18378   echo "$as_me:$LINENO: result: no" >&5
18379 echo "${ECHO_T}no" >&6
18380 fi
18381
18382 else
18383         PTHREAD_CC="$CC"
18384 fi
18385
18386
18387
18388
18389
18390 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18391 if test x"$acx_pthread_ok" = xyes; then
18392
18393 cat >>confdefs.h <<\_ACEOF
18394 #define HAVE_PTHREAD 1
18395 _ACEOF
18396
18397         :
18398 else
18399         acx_pthread_ok=no
18400
18401 fi
18402 ac_ext=c
18403 ac_cpp='$CPP $CPPFLAGS'
18404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18407
18408         # set thread flags
18409
18410 # Some platforms use these, so just defineed them.  They can't hurt if they
18411 # are not supported.
18412 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
18413
18414
18415 # At this point, we don't want to muck with the compiler name for threading.
18416 # Let's see who fails, perhaps AIX.  2004-04-23
18417 if test "$PTHREAD_CC" != "$CC"; then
18418 { { echo "$as_me:$LINENO: error:
18419 PostgreSQL does not support platforms that require a special compiler
18420 for thread safety." >&5
18421 echo "$as_me: error:
18422 PostgreSQL does not support platforms that require a special compiler
18423 for thread safety." >&2;}
18424    { (exit 1); exit 1; }; }
18425 fi
18426
18427 if test "$THREAD_SUPPORT" = no; then
18428 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
18429 This platform is known to not support thread-safe programs.  For details,
18430 compile and run src/bin/pg_thread_test." >&5
18431 echo "$as_me: error: cannot enable threads on this platform
18432 This platform is known to not support thread-safe programs.  For details,
18433 compile and run src/bin/pg_thread_test." >&2;}
18434    { (exit 1); exit 1; }; }
18435 fi
18436
18437 # Check for *_r functions
18438 _CFLAGS="$CFLAGS"
18439 _LIBS="$LIBS"
18440 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18441 LIBS="$LIBS $PTHREAD_LIBS"
18442
18443 if test "$PORTNAME" != "win32"; then
18444 if test "${ac_cv_header_pthread_h+set}" = set; then
18445   echo "$as_me:$LINENO: checking for pthread.h" >&5
18446 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
18447 if test "${ac_cv_header_pthread_h+set}" = set; then
18448   echo $ECHO_N "(cached) $ECHO_C" >&6
18449 fi
18450 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
18451 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
18452 else
18453   # Is the header compilable?
18454 echo "$as_me:$LINENO: checking pthread.h usability" >&5
18455 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
18456 cat >conftest.$ac_ext <<_ACEOF
18457 /* confdefs.h.  */
18458 _ACEOF
18459 cat confdefs.h >>conftest.$ac_ext
18460 cat >>conftest.$ac_ext <<_ACEOF
18461 /* end confdefs.h.  */
18462 $ac_includes_default
18463 #include <pthread.h>
18464 _ACEOF
18465 rm -f conftest.$ac_objext
18466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18467   (eval $ac_compile) 2>conftest.er1
18468   ac_status=$?
18469   grep -v '^ *+' conftest.er1 >conftest.err
18470   rm -f conftest.er1
18471   cat conftest.err >&5
18472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473   (exit $ac_status); } &&
18474          { ac_try='test -z "$ac_c_werror_flag"
18475                          || test ! -s conftest.err'
18476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477   (eval $ac_try) 2>&5
18478   ac_status=$?
18479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480   (exit $ac_status); }; } &&
18481          { ac_try='test -s conftest.$ac_objext'
18482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18483   (eval $ac_try) 2>&5
18484   ac_status=$?
18485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486   (exit $ac_status); }; }; then
18487   ac_header_compiler=yes
18488 else
18489   echo "$as_me: failed program was:" >&5
18490 sed 's/^/| /' conftest.$ac_ext >&5
18491
18492 ac_header_compiler=no
18493 fi
18494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18495 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18496 echo "${ECHO_T}$ac_header_compiler" >&6
18497
18498 # Is the header present?
18499 echo "$as_me:$LINENO: checking pthread.h presence" >&5
18500 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
18501 cat >conftest.$ac_ext <<_ACEOF
18502 /* confdefs.h.  */
18503 _ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h.  */
18507 #include <pthread.h>
18508 _ACEOF
18509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18510   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18511   ac_status=$?
18512   grep -v '^ *+' conftest.er1 >conftest.err
18513   rm -f conftest.er1
18514   cat conftest.err >&5
18515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516   (exit $ac_status); } >/dev/null; then
18517   if test -s conftest.err; then
18518     ac_cpp_err=$ac_c_preproc_warn_flag
18519     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18520   else
18521     ac_cpp_err=
18522   fi
18523 else
18524   ac_cpp_err=yes
18525 fi
18526 if test -z "$ac_cpp_err"; then
18527   ac_header_preproc=yes
18528 else
18529   echo "$as_me: failed program was:" >&5
18530 sed 's/^/| /' conftest.$ac_ext >&5
18531
18532   ac_header_preproc=no
18533 fi
18534 rm -f conftest.err conftest.$ac_ext
18535 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18536 echo "${ECHO_T}$ac_header_preproc" >&6
18537
18538 # So?  What about this header?
18539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18540   yes:no: )
18541     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
18542 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18543     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
18544 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
18545     ac_header_preproc=yes
18546     ;;
18547   no:yes:* )
18548     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
18549 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
18550     { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
18551 echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
18552     { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
18553 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
18554     { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
18555 echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18556     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
18557 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
18558     { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
18559 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
18560     (
18561       cat <<\_ASBOX
18562 ## ---------------------------------------- ##
18563 ## Report this to pgsql-bugs@postgresql.org ##
18564 ## ---------------------------------------- ##
18565 _ASBOX
18566     ) |
18567       sed "s/^/$as_me: WARNING:     /" >&2
18568     ;;
18569 esac
18570 echo "$as_me:$LINENO: checking for pthread.h" >&5
18571 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
18572 if test "${ac_cv_header_pthread_h+set}" = set; then
18573   echo $ECHO_N "(cached) $ECHO_C" >&6
18574 else
18575   ac_cv_header_pthread_h=$ac_header_preproc
18576 fi
18577 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
18578 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
18579
18580 fi
18581 if test $ac_cv_header_pthread_h = yes; then
18582   :
18583 else
18584   { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
18585 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
18586    { (exit 1); exit 1; }; }
18587 fi
18588
18589
18590 fi
18591
18592
18593
18594
18595 for ac_func in strerror_r getpwuid_r gethostbyname_r
18596 do
18597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18598 echo "$as_me:$LINENO: checking for $ac_func" >&5
18599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18600 if eval "test \"\${$as_ac_var+set}\" = set"; then
18601   echo $ECHO_N "(cached) $ECHO_C" >&6
18602 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18610    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18611 #define $ac_func innocuous_$ac_func
18612
18613 /* System header to define __stub macros and hopefully few prototypes,
18614     which can conflict with char $ac_func (); below.
18615     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18616     <limits.h> exists even on freestanding compilers.  */
18617
18618 #ifdef __STDC__
18619 # include <limits.h>
18620 #else
18621 # include <assert.h>
18622 #endif
18623
18624 #undef $ac_func
18625
18626 /* Override any gcc2 internal prototype to avoid an error.  */
18627 #ifdef __cplusplus
18628 extern "C"
18629 {
18630 #endif
18631 /* We use char because int might match the return type of a gcc2
18632    builtin and then its argument prototype would still apply.  */
18633 char $ac_func ();
18634 /* The GNU C library defines this for functions which it implements
18635     to always fail with ENOSYS.  Some functions are actually named
18636     something starting with __ and the normal name is an alias.  */
18637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18638 choke me
18639 #else
18640 char (*f) () = $ac_func;
18641 #endif
18642 #ifdef __cplusplus
18643 }
18644 #endif
18645
18646 int
18647 main ()
18648 {
18649 return f != $ac_func;
18650   ;
18651   return 0;
18652 }
18653 _ACEOF
18654 rm -f conftest.$ac_objext conftest$ac_exeext
18655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18656   (eval $ac_link) 2>conftest.er1
18657   ac_status=$?
18658   grep -v '^ *+' conftest.er1 >conftest.err
18659   rm -f conftest.er1
18660   cat conftest.err >&5
18661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662   (exit $ac_status); } &&
18663          { ac_try='test -z "$ac_c_werror_flag"
18664                          || test ! -s conftest.err'
18665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666   (eval $ac_try) 2>&5
18667   ac_status=$?
18668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669   (exit $ac_status); }; } &&
18670          { ac_try='test -s conftest$ac_exeext'
18671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18672   (eval $ac_try) 2>&5
18673   ac_status=$?
18674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675   (exit $ac_status); }; }; then
18676   eval "$as_ac_var=yes"
18677 else
18678   echo "$as_me: failed program was:" >&5
18679 sed 's/^/| /' conftest.$ac_ext >&5
18680
18681 eval "$as_ac_var=no"
18682 fi
18683 rm -f conftest.err conftest.$ac_objext \
18684       conftest$ac_exeext conftest.$ac_ext
18685 fi
18686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18688 if test `eval echo '${'$as_ac_var'}'` = yes; then
18689   cat >>confdefs.h <<_ACEOF
18690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18691 _ACEOF
18692
18693 fi
18694 done
18695
18696
18697 # Do test here with the proper thread flags
18698 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
18699 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
18700 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
18701   echo $ECHO_N "(cached) $ECHO_C" >&6
18702 else
18703   cat >conftest.$ac_ext <<_ACEOF
18704 /* confdefs.h.  */
18705 _ACEOF
18706 cat confdefs.h >>conftest.$ac_ext
18707 cat >>conftest.$ac_ext <<_ACEOF
18708 /* end confdefs.h.  */
18709 #include <sys/types.h>
18710 #include <pwd.h>
18711 int
18712 main ()
18713 {
18714 uid_t uid;
18715 struct passwd *space;
18716 char *buf;
18717 size_t bufsize;
18718 struct passwd **result;
18719 getpwuid_r(uid, space, buf, bufsize, result);
18720   ;
18721   return 0;
18722 }
18723 _ACEOF
18724 rm -f conftest.$ac_objext
18725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18726   (eval $ac_compile) 2>conftest.er1
18727   ac_status=$?
18728   grep -v '^ *+' conftest.er1 >conftest.err
18729   rm -f conftest.er1
18730   cat conftest.err >&5
18731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732   (exit $ac_status); } &&
18733          { ac_try='test -z "$ac_c_werror_flag"
18734                          || test ! -s conftest.err'
18735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18736   (eval $ac_try) 2>&5
18737   ac_status=$?
18738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739   (exit $ac_status); }; } &&
18740          { ac_try='test -s conftest.$ac_objext'
18741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18742   (eval $ac_try) 2>&5
18743   ac_status=$?
18744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745   (exit $ac_status); }; }; then
18746   pgac_func_getpwuid_r_5arg=yes
18747 else
18748   echo "$as_me: failed program was:" >&5
18749 sed 's/^/| /' conftest.$ac_ext >&5
18750
18751 pgac_func_getpwuid_r_5arg=no
18752 fi
18753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18754 fi
18755 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
18756 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
18757 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
18758
18759 cat >>confdefs.h <<\_ACEOF
18760 #define GETPWUID_R_5ARG
18761 _ACEOF
18762
18763 fi
18764
18765 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
18766 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
18767 if test "${pgac_func_strerror_r_int+set}" = set; then
18768   echo $ECHO_N "(cached) $ECHO_C" >&6
18769 else
18770   cat >conftest.$ac_ext <<_ACEOF
18771 /* confdefs.h.  */
18772 _ACEOF
18773 cat confdefs.h >>conftest.$ac_ext
18774 cat >>conftest.$ac_ext <<_ACEOF
18775 /* end confdefs.h.  */
18776 #include <string.h>
18777 int
18778 main ()
18779 {
18780 #ifndef _AIX
18781 int strerror_r(int, char *, size_t);
18782 #else
18783 /* Older AIX has 'int' for the third argument so we don't test the args. */
18784 int strerror_r();
18785 #endif
18786   ;
18787   return 0;
18788 }
18789 _ACEOF
18790 rm -f conftest.$ac_objext
18791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18792   (eval $ac_compile) 2>conftest.er1
18793   ac_status=$?
18794   grep -v '^ *+' conftest.er1 >conftest.err
18795   rm -f conftest.er1
18796   cat conftest.err >&5
18797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798   (exit $ac_status); } &&
18799          { ac_try='test -z "$ac_c_werror_flag"
18800                          || test ! -s conftest.err'
18801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18802   (eval $ac_try) 2>&5
18803   ac_status=$?
18804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805   (exit $ac_status); }; } &&
18806          { ac_try='test -s conftest.$ac_objext'
18807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18808   (eval $ac_try) 2>&5
18809   ac_status=$?
18810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811   (exit $ac_status); }; }; then
18812   pgac_func_strerror_r_int=yes
18813 else
18814   echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18816
18817 pgac_func_strerror_r_int=no
18818 fi
18819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18820 fi
18821 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
18822 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
18823 if test x"$pgac_func_strerror_r_int" = xyes ; then
18824
18825 cat >>confdefs.h <<\_ACEOF
18826 #define STRERROR_R_INT
18827 _ACEOF
18828
18829 fi
18830
18831
18832 CFLAGS="$_CFLAGS"
18833 LIBS="$_LIBS"
18834
18835 else
18836 # do not use values from template file
18837 PTHREAD_CFLAGS=
18838 PTHREAD_LIBS=
18839 fi
18840
18841
18842
18843
18844
18845 # We can test for libldap_r only after we know PTHREAD_LIBS
18846 if test "$with_ldap" = yes ; then
18847   _LIBS="$LIBS"
18848   if test "$PORTNAME" != "win32"; then
18849
18850 echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
18851 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6
18852 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
18853   echo $ECHO_N "(cached) $ECHO_C" >&6
18854 else
18855   ac_check_lib_save_LIBS=$LIBS
18856 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
18857 cat >conftest.$ac_ext <<_ACEOF
18858 /* confdefs.h.  */
18859 _ACEOF
18860 cat confdefs.h >>conftest.$ac_ext
18861 cat >>conftest.$ac_ext <<_ACEOF
18862 /* end confdefs.h.  */
18863
18864 /* Override any gcc2 internal prototype to avoid an error.  */
18865 #ifdef __cplusplus
18866 extern "C"
18867 #endif
18868 /* We use char because int might match the return type of a gcc2
18869    builtin and then its argument prototype would still apply.  */
18870 char ldap_bind ();
18871 int
18872 main ()
18873 {
18874 ldap_bind ();
18875   ;
18876   return 0;
18877 }
18878 _ACEOF
18879 rm -f conftest.$ac_objext conftest$ac_exeext
18880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18881   (eval $ac_link) 2>conftest.er1
18882   ac_status=$?
18883   grep -v '^ *+' conftest.er1 >conftest.err
18884   rm -f conftest.er1
18885   cat conftest.err >&5
18886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887   (exit $ac_status); } &&
18888          { ac_try='test -z "$ac_c_werror_flag"
18889                          || test ! -s conftest.err'
18890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18891   (eval $ac_try) 2>&5
18892   ac_status=$?
18893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894   (exit $ac_status); }; } &&
18895          { ac_try='test -s conftest$ac_exeext'
18896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18897   (eval $ac_try) 2>&5
18898   ac_status=$?
18899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900   (exit $ac_status); }; }; then
18901   ac_cv_lib_ldap_ldap_bind=yes
18902 else
18903   echo "$as_me: failed program was:" >&5
18904 sed 's/^/| /' conftest.$ac_ext >&5
18905
18906 ac_cv_lib_ldap_ldap_bind=no
18907 fi
18908 rm -f conftest.err conftest.$ac_objext \
18909       conftest$ac_exeext conftest.$ac_ext
18910 LIBS=$ac_check_lib_save_LIBS
18911 fi
18912 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
18913 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6
18914 if test $ac_cv_lib_ldap_ldap_bind = yes; then
18915   cat >>confdefs.h <<_ACEOF
18916 #define HAVE_LIBLDAP 1
18917 _ACEOF
18918
18919   LIBS="-lldap $LIBS"
18920
18921 else
18922   { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
18923 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
18924    { (exit 1); exit 1; }; }
18925 fi
18926
18927     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
18928     if test "$enable_thread_safety" = yes; then
18929       # on some platforms ldap_r fails to link without PTHREAD_LIBS
18930
18931 echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
18932 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6
18933 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
18934   echo $ECHO_N "(cached) $ECHO_C" >&6
18935 else
18936   ac_check_lib_save_LIBS=$LIBS
18937 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
18938 cat >conftest.$ac_ext <<_ACEOF
18939 /* confdefs.h.  */
18940 _ACEOF
18941 cat confdefs.h >>conftest.$ac_ext
18942 cat >>conftest.$ac_ext <<_ACEOF
18943 /* end confdefs.h.  */
18944
18945 /* Override any gcc2 internal prototype to avoid an error.  */
18946 #ifdef __cplusplus
18947 extern "C"
18948 #endif
18949 /* We use char because int might match the return type of a gcc2
18950    builtin and then its argument prototype would still apply.  */
18951 char ldap_simple_bind ();
18952 int
18953 main ()
18954 {
18955 ldap_simple_bind ();
18956   ;
18957   return 0;
18958 }
18959 _ACEOF
18960 rm -f conftest.$ac_objext conftest$ac_exeext
18961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18962   (eval $ac_link) 2>conftest.er1
18963   ac_status=$?
18964   grep -v '^ *+' conftest.er1 >conftest.err
18965   rm -f conftest.er1
18966   cat conftest.err >&5
18967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968   (exit $ac_status); } &&
18969          { ac_try='test -z "$ac_c_werror_flag"
18970                          || test ! -s conftest.err'
18971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18972   (eval $ac_try) 2>&5
18973   ac_status=$?
18974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975   (exit $ac_status); }; } &&
18976          { ac_try='test -s conftest$ac_exeext'
18977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18978   (eval $ac_try) 2>&5
18979   ac_status=$?
18980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981   (exit $ac_status); }; }; then
18982   ac_cv_lib_ldap_r_ldap_simple_bind=yes
18983 else
18984   echo "$as_me: failed program was:" >&5
18985 sed 's/^/| /' conftest.$ac_ext >&5
18986
18987 ac_cv_lib_ldap_r_ldap_simple_bind=no
18988 fi
18989 rm -f conftest.err conftest.$ac_objext \
18990       conftest$ac_exeext conftest.$ac_ext
18991 LIBS=$ac_check_lib_save_LIBS
18992 fi
18993 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
18994 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6
18995 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
18996   cat >>confdefs.h <<_ACEOF
18997 #define HAVE_LIBLDAP_R 1
18998 _ACEOF
18999
19000   LIBS="-lldap_r $LIBS"
19001
19002 else
19003   { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
19004 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
19005    { (exit 1); exit 1; }; }
19006 fi
19007
19008       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
19009     else
19010       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
19011     fi
19012   else
19013
19014 echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
19015 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6
19016 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
19017   echo $ECHO_N "(cached) $ECHO_C" >&6
19018 else
19019   ac_check_lib_save_LIBS=$LIBS
19020 LIBS="-lwldap32  $LIBS"
19021 cat >conftest.$ac_ext <<_ACEOF
19022 /* confdefs.h.  */
19023 _ACEOF
19024 cat confdefs.h >>conftest.$ac_ext
19025 cat >>conftest.$ac_ext <<_ACEOF
19026 /* end confdefs.h.  */
19027
19028 /* Override any gcc2 internal prototype to avoid an error.  */
19029 #ifdef __cplusplus
19030 extern "C"
19031 #endif
19032 /* We use char because int might match the return type of a gcc2
19033    builtin and then its argument prototype would still apply.  */
19034 char ldap_bind ();
19035 int
19036 main ()
19037 {
19038 ldap_bind ();
19039   ;
19040   return 0;
19041 }
19042 _ACEOF
19043 rm -f conftest.$ac_objext conftest$ac_exeext
19044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19045   (eval $ac_link) 2>conftest.er1
19046   ac_status=$?
19047   grep -v '^ *+' conftest.er1 >conftest.err
19048   rm -f conftest.er1
19049   cat conftest.err >&5
19050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051   (exit $ac_status); } &&
19052          { ac_try='test -z "$ac_c_werror_flag"
19053                          || test ! -s conftest.err'
19054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19055   (eval $ac_try) 2>&5
19056   ac_status=$?
19057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058   (exit $ac_status); }; } &&
19059          { ac_try='test -s conftest$ac_exeext'
19060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19061   (eval $ac_try) 2>&5
19062   ac_status=$?
19063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064   (exit $ac_status); }; }; then
19065   ac_cv_lib_wldap32_ldap_bind=yes
19066 else
19067   echo "$as_me: failed program was:" >&5
19068 sed 's/^/| /' conftest.$ac_ext >&5
19069
19070 ac_cv_lib_wldap32_ldap_bind=no
19071 fi
19072 rm -f conftest.err conftest.$ac_objext \
19073       conftest$ac_exeext conftest.$ac_ext
19074 LIBS=$ac_check_lib_save_LIBS
19075 fi
19076 echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
19077 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6
19078 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
19079   cat >>confdefs.h <<_ACEOF
19080 #define HAVE_LIBWLDAP32 1
19081 _ACEOF
19082
19083   LIBS="-lwldap32 $LIBS"
19084
19085 else
19086   { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
19087 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
19088    { (exit 1); exit 1; }; }
19089 fi
19090
19091     LDAP_LIBS_FE="-lwldap32"
19092     LDAP_LIBS_BE="-lwldap32"
19093   fi
19094   LIBS="$_LIBS"
19095 fi
19096
19097
19098
19099
19100 # This test makes sure that run tests work at all.  Sometimes a shared
19101 # library is found by the linker, but the runtime linker can't find it.
19102 # This check should come after all modifications of compiler or linker
19103 # variables, and before any other run tests.
19104 echo "$as_me:$LINENO: checking test program" >&5
19105 echo $ECHO_N "checking test program... $ECHO_C" >&6
19106 if test "$cross_compiling" = yes; then
19107   echo "$as_me:$LINENO: result: cross-compiling" >&5
19108 echo "${ECHO_T}cross-compiling" >&6
19109 else
19110   cat >conftest.$ac_ext <<_ACEOF
19111 /* confdefs.h.  */
19112 _ACEOF
19113 cat confdefs.h >>conftest.$ac_ext
19114 cat >>conftest.$ac_ext <<_ACEOF
19115 /* end confdefs.h.  */
19116 int main() { return 0; }
19117 _ACEOF
19118 rm -f conftest$ac_exeext
19119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19120   (eval $ac_link) 2>&5
19121   ac_status=$?
19122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19125   (eval $ac_try) 2>&5
19126   ac_status=$?
19127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128   (exit $ac_status); }; }; then
19129   echo "$as_me:$LINENO: result: ok" >&5
19130 echo "${ECHO_T}ok" >&6
19131 else
19132   echo "$as_me: program exited with status $ac_status" >&5
19133 echo "$as_me: failed program was:" >&5
19134 sed 's/^/| /' conftest.$ac_ext >&5
19135
19136 ( exit $ac_status )
19137 echo "$as_me:$LINENO: result: failed" >&5
19138 echo "${ECHO_T}failed" >&6
19139 { { echo "$as_me:$LINENO: error:
19140 Could not execute a simple test program.  This may be a problem
19141 related to locating shared libraries.  Check the file 'config.log'
19142 for the exact reason." >&5
19143 echo "$as_me: error:
19144 Could not execute a simple test program.  This may be a problem
19145 related to locating shared libraries.  Check the file 'config.log'
19146 for the exact reason." >&2;}
19147    { (exit 1); exit 1; }; }
19148 fi
19149 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19150 fi
19151
19152 # --------------------
19153 # Run tests below here
19154 # --------------------
19155
19156 # Force use of our snprintf if system's doesn't do arg control
19157 # See comment above at snprintf test for details.
19158 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
19159   echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
19160 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6
19161 if test "${pgac_cv_printf_arg_control+set}" = set; then
19162   echo $ECHO_N "(cached) $ECHO_C" >&6
19163 else
19164   if test "$cross_compiling" = yes; then
19165   pgac_cv_printf_arg_control=cross
19166 else
19167   cat >conftest.$ac_ext <<_ACEOF
19168 /* confdefs.h.  */
19169 _ACEOF
19170 cat confdefs.h >>conftest.$ac_ext
19171 cat >>conftest.$ac_ext <<_ACEOF
19172 /* end confdefs.h.  */
19173 #include <stdio.h>
19174 #include <string.h>
19175
19176 int main()
19177 {
19178   char buf[100];
19179
19180   /* can it swap arguments? */
19181   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
19182   if (strcmp(buf, "4 3") != 0)
19183     return 1;
19184   return 0;
19185 }
19186 _ACEOF
19187 rm -f conftest$ac_exeext
19188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19189   (eval $ac_link) 2>&5
19190   ac_status=$?
19191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19194   (eval $ac_try) 2>&5
19195   ac_status=$?
19196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197   (exit $ac_status); }; }; then
19198   pgac_cv_printf_arg_control=yes
19199 else
19200   echo "$as_me: program exited with status $ac_status" >&5
19201 echo "$as_me: failed program was:" >&5
19202 sed 's/^/| /' conftest.$ac_ext >&5
19203
19204 ( exit $ac_status )
19205 pgac_cv_printf_arg_control=no
19206 fi
19207 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19208 fi
19209
19210 fi
19211 echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
19212 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6
19213
19214   if test $pgac_cv_printf_arg_control != yes ; then
19215     pgac_need_repl_snprintf=yes
19216   fi
19217 fi
19218
19219
19220
19221 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
19222 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
19223 if test "${pgac_cv_type_long_int_64+set}" = set; then
19224   echo $ECHO_N "(cached) $ECHO_C" >&6
19225 else
19226   if test "$cross_compiling" = yes; then
19227   # If cross-compiling, check the size reported by the compiler and
19228 # trust that the arithmetic works.
19229 cat >conftest.$ac_ext <<_ACEOF
19230 /* confdefs.h.  */
19231 _ACEOF
19232 cat confdefs.h >>conftest.$ac_ext
19233 cat >>conftest.$ac_ext <<_ACEOF
19234 /* end confdefs.h.  */
19235
19236 int
19237 main ()
19238 {
19239 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
19240 test_array [0] = 0
19241
19242   ;
19243   return 0;
19244 }
19245 _ACEOF
19246 rm -f conftest.$ac_objext
19247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19248   (eval $ac_compile) 2>conftest.er1
19249   ac_status=$?
19250   grep -v '^ *+' conftest.er1 >conftest.err
19251   rm -f conftest.er1
19252   cat conftest.err >&5
19253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254   (exit $ac_status); } &&
19255          { ac_try='test -z "$ac_c_werror_flag"
19256                          || test ! -s conftest.err'
19257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19258   (eval $ac_try) 2>&5
19259   ac_status=$?
19260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261   (exit $ac_status); }; } &&
19262          { ac_try='test -s conftest.$ac_objext'
19263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19264   (eval $ac_try) 2>&5
19265   ac_status=$?
19266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267   (exit $ac_status); }; }; then
19268   pgac_cv_type_long_int_64=yes
19269 else
19270   echo "$as_me: failed program was:" >&5
19271 sed 's/^/| /' conftest.$ac_ext >&5
19272
19273 pgac_cv_type_long_int_64=no
19274 fi
19275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19276 else
19277   cat >conftest.$ac_ext <<_ACEOF
19278 /* confdefs.h.  */
19279 _ACEOF
19280 cat confdefs.h >>conftest.$ac_ext
19281 cat >>conftest.$ac_ext <<_ACEOF
19282 /* end confdefs.h.  */
19283 typedef long int ac_int64;
19284
19285 /*
19286  * These are globals to discourage the compiler from folding all the
19287  * arithmetic tests down to compile-time constants.
19288  */
19289 ac_int64 a = 20000001;
19290 ac_int64 b = 40000005;
19291
19292 int does_int64_work()
19293 {
19294   ac_int64 c,d;
19295
19296   if (sizeof(ac_int64) != 8)
19297     return 0;                   /* definitely not the right size */
19298
19299   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
19300   c = a * b;
19301   d = (c + b) / b;
19302   if (d != a+1)
19303     return 0;
19304   return 1;
19305 }
19306 main() {
19307   exit(! does_int64_work());
19308 }
19309 _ACEOF
19310 rm -f conftest$ac_exeext
19311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19312   (eval $ac_link) 2>&5
19313   ac_status=$?
19314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19317   (eval $ac_try) 2>&5
19318   ac_status=$?
19319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320   (exit $ac_status); }; }; then
19321   pgac_cv_type_long_int_64=yes
19322 else
19323   echo "$as_me: program exited with status $ac_status" >&5
19324 echo "$as_me: failed program was:" >&5
19325 sed 's/^/| /' conftest.$ac_ext >&5
19326
19327 ( exit $ac_status )
19328 pgac_cv_type_long_int_64=no
19329 fi
19330 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19331 fi
19332 fi
19333 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
19334 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
19335
19336 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
19337 if test x"$pgac_cv_type_long_int_64" = xyes ; then
19338
19339 cat >>confdefs.h <<\_ACEOF
19340 #define HAVE_LONG_INT_64
19341 _ACEOF
19342
19343 fi
19344
19345
19346 if test x"$HAVE_LONG_INT_64" = x"no" ; then
19347   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
19348 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
19349 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
19350   echo $ECHO_N "(cached) $ECHO_C" >&6
19351 else
19352   if test "$cross_compiling" = yes; then
19353   # If cross-compiling, check the size reported by the compiler and
19354 # trust that the arithmetic works.
19355 cat >conftest.$ac_ext <<_ACEOF
19356 /* confdefs.h.  */
19357 _ACEOF
19358 cat confdefs.h >>conftest.$ac_ext
19359 cat >>conftest.$ac_ext <<_ACEOF
19360 /* end confdefs.h.  */
19361
19362 int
19363 main ()
19364 {
19365 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
19366 test_array [0] = 0
19367
19368   ;
19369   return 0;
19370 }
19371 _ACEOF
19372 rm -f conftest.$ac_objext
19373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19374   (eval $ac_compile) 2>conftest.er1
19375   ac_status=$?
19376   grep -v '^ *+' conftest.er1 >conftest.err
19377   rm -f conftest.er1
19378   cat conftest.err >&5
19379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380   (exit $ac_status); } &&
19381          { ac_try='test -z "$ac_c_werror_flag"
19382                          || test ! -s conftest.err'
19383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19384   (eval $ac_try) 2>&5
19385   ac_status=$?
19386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387   (exit $ac_status); }; } &&
19388          { ac_try='test -s conftest.$ac_objext'
19389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19390   (eval $ac_try) 2>&5
19391   ac_status=$?
19392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393   (exit $ac_status); }; }; then
19394   pgac_cv_type_long_long_int_64=yes
19395 else
19396   echo "$as_me: failed program was:" >&5
19397 sed 's/^/| /' conftest.$ac_ext >&5
19398
19399 pgac_cv_type_long_long_int_64=no
19400 fi
19401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19402 else
19403   cat >conftest.$ac_ext <<_ACEOF
19404 /* confdefs.h.  */
19405 _ACEOF
19406 cat confdefs.h >>conftest.$ac_ext
19407 cat >>conftest.$ac_ext <<_ACEOF
19408 /* end confdefs.h.  */
19409 typedef long long int ac_int64;
19410
19411 /*
19412  * These are globals to discourage the compiler from folding all the
19413  * arithmetic tests down to compile-time constants.
19414  */
19415 ac_int64 a = 20000001;
19416 ac_int64 b = 40000005;
19417
19418 int does_int64_work()
19419 {
19420   ac_int64 c,d;
19421
19422   if (sizeof(ac_int64) != 8)
19423     return 0;                   /* definitely not the right size */
19424
19425   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
19426   c = a * b;
19427   d = (c + b) / b;
19428   if (d != a+1)
19429     return 0;
19430   return 1;
19431 }
19432 main() {
19433   exit(! does_int64_work());
19434 }
19435 _ACEOF
19436 rm -f conftest$ac_exeext
19437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19438   (eval $ac_link) 2>&5
19439   ac_status=$?
19440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19443   (eval $ac_try) 2>&5
19444   ac_status=$?
19445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446   (exit $ac_status); }; }; then
19447   pgac_cv_type_long_long_int_64=yes
19448 else
19449   echo "$as_me: program exited with status $ac_status" >&5
19450 echo "$as_me: failed program was:" >&5
19451 sed 's/^/| /' conftest.$ac_ext >&5
19452
19453 ( exit $ac_status )
19454 pgac_cv_type_long_long_int_64=no
19455 fi
19456 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19457 fi
19458 fi
19459 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
19460 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
19461
19462 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
19463 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
19464
19465 cat >>confdefs.h <<\_ACEOF
19466 #define HAVE_LONG_LONG_INT_64
19467 _ACEOF
19468
19469 fi
19470
19471 fi
19472
19473
19474
19475 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
19476   cat >conftest.$ac_ext <<_ACEOF
19477 /* confdefs.h.  */
19478 _ACEOF
19479 cat confdefs.h >>conftest.$ac_ext
19480 cat >>conftest.$ac_ext <<_ACEOF
19481 /* end confdefs.h.  */
19482
19483 #define INT64CONST(x)  x##LL
19484 long long int foo = INT64CONST(0x1234567890123456);
19485
19486 int
19487 main ()
19488 {
19489
19490   ;
19491   return 0;
19492 }
19493 _ACEOF
19494 rm -f conftest.$ac_objext
19495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19496   (eval $ac_compile) 2>conftest.er1
19497   ac_status=$?
19498   grep -v '^ *+' conftest.er1 >conftest.err
19499   rm -f conftest.er1
19500   cat conftest.err >&5
19501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502   (exit $ac_status); } &&
19503          { ac_try='test -z "$ac_c_werror_flag"
19504                          || test ! -s conftest.err'
19505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19506   (eval $ac_try) 2>&5
19507   ac_status=$?
19508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509   (exit $ac_status); }; } &&
19510          { ac_try='test -s conftest.$ac_objext'
19511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19512   (eval $ac_try) 2>&5
19513   ac_status=$?
19514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515   (exit $ac_status); }; }; then
19516
19517 cat >>confdefs.h <<\_ACEOF
19518 #define HAVE_LL_CONSTANTS 1
19519 _ACEOF
19520
19521 else
19522   echo "$as_me: failed program was:" >&5
19523 sed 's/^/| /' conftest.$ac_ext >&5
19524
19525 fi
19526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19527 fi
19528
19529
19530 # If we found "long int" is 64 bits, assume snprintf handles it.  If
19531 # we found we need to use "long long int", better check.  We cope with
19532 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
19533 # work, fall back to our own snprintf emulation (which we know uses %lld).
19534
19535 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
19536   if test $pgac_need_repl_snprintf = no; then
19537     echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
19538 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
19539 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
19540   echo $ECHO_N "(cached) $ECHO_C" >&6
19541 else
19542   for pgac_format in '%lld' '%qd' '%I64d'; do
19543 if test "$cross_compiling" = yes; then
19544   pgac_cv_snprintf_long_long_int_format=cross; break
19545 else
19546   cat >conftest.$ac_ext <<_ACEOF
19547 /* confdefs.h.  */
19548 _ACEOF
19549 cat confdefs.h >>conftest.$ac_ext
19550 cat >>conftest.$ac_ext <<_ACEOF
19551 /* end confdefs.h.  */
19552 #include <stdio.h>
19553 typedef long long int ac_int64;
19554 #define INT64_FORMAT "$pgac_format"
19555
19556 ac_int64 a = 20000001;
19557 ac_int64 b = 40000005;
19558
19559 int does_int64_snprintf_work()
19560 {
19561   ac_int64 c;
19562   char buf[100];
19563
19564   if (sizeof(ac_int64) != 8)
19565     return 0;                   /* doesn't look like the right size */
19566
19567   c = a * b;
19568   snprintf(buf, 100, INT64_FORMAT, c);
19569   if (strcmp(buf, "800000140000005") != 0)
19570     return 0;                   /* either multiply or snprintf is busted */
19571   return 1;
19572 }
19573 main() {
19574   exit(! does_int64_snprintf_work());
19575 }
19576 _ACEOF
19577 rm -f conftest$ac_exeext
19578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19579   (eval $ac_link) 2>&5
19580   ac_status=$?
19581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584   (eval $ac_try) 2>&5
19585   ac_status=$?
19586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587   (exit $ac_status); }; }; then
19588   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
19589 else
19590   echo "$as_me: program exited with status $ac_status" >&5
19591 echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.$ac_ext >&5
19593
19594 fi
19595 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19596 fi
19597 done
19598 fi
19599
19600 LONG_LONG_INT_FORMAT=''
19601
19602 case $pgac_cv_snprintf_long_long_int_format in
19603   cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
19604 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
19605   ?*)    echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
19606 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
19607          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
19608   *)     echo "$as_me:$LINENO: result: none" >&5
19609 echo "${ECHO_T}none" >&6;;
19610 esac
19611     if test "$LONG_LONG_INT_FORMAT" = ""; then
19612       # Force usage of our own snprintf, since system snprintf is broken
19613       pgac_need_repl_snprintf=yes
19614       LONG_LONG_INT_FORMAT='%lld'
19615     fi
19616   else
19617     # Here if we previously decided we needed to use our own snprintf
19618     LONG_LONG_INT_FORMAT='%lld'
19619   fi
19620   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
19621   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
19622   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
19623 else
19624   # Here if we are not using 'long long int' at all
19625   INT64_FORMAT='"%ld"'
19626   UINT64_FORMAT='"%lu"'
19627 fi
19628
19629
19630 cat >>confdefs.h <<_ACEOF
19631 #define INT64_FORMAT $INT64_FORMAT
19632 _ACEOF
19633
19634
19635
19636 cat >>confdefs.h <<_ACEOF
19637 #define UINT64_FORMAT $UINT64_FORMAT
19638 _ACEOF
19639
19640
19641 # Now we have checked all the reasons to replace snprintf
19642 if test $pgac_need_repl_snprintf = yes; then
19643
19644 cat >>confdefs.h <<\_ACEOF
19645 #define USE_REPL_SNPRINTF 1
19646 _ACEOF
19647
19648   case $LIBOBJS in
19649     "snprintf.$ac_objext"   | \
19650   *" snprintf.$ac_objext"   | \
19651     "snprintf.$ac_objext "* | \
19652   *" snprintf.$ac_objext "* ) ;;
19653   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
19654 esac
19655
19656 fi
19657
19658 # Need a #define for the size of Datum (unsigned long)
19659 echo "$as_me:$LINENO: checking for unsigned long" >&5
19660 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
19661 if test "${ac_cv_type_unsigned_long+set}" = set; then
19662   echo $ECHO_N "(cached) $ECHO_C" >&6
19663 else
19664   cat >conftest.$ac_ext <<_ACEOF
19665 /* confdefs.h.  */
19666 _ACEOF
19667 cat confdefs.h >>conftest.$ac_ext
19668 cat >>conftest.$ac_ext <<_ACEOF
19669 /* end confdefs.h.  */
19670 $ac_includes_default
19671 int
19672 main ()
19673 {
19674 if ((unsigned long *) 0)
19675   return 0;
19676 if (sizeof (unsigned long))
19677   return 0;
19678   ;
19679   return 0;
19680 }
19681 _ACEOF
19682 rm -f conftest.$ac_objext
19683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19684   (eval $ac_compile) 2>conftest.er1
19685   ac_status=$?
19686   grep -v '^ *+' conftest.er1 >conftest.err
19687   rm -f conftest.er1
19688   cat conftest.err >&5
19689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690   (exit $ac_status); } &&
19691          { ac_try='test -z "$ac_c_werror_flag"
19692                          || test ! -s conftest.err'
19693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694   (eval $ac_try) 2>&5
19695   ac_status=$?
19696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697   (exit $ac_status); }; } &&
19698          { ac_try='test -s conftest.$ac_objext'
19699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19700   (eval $ac_try) 2>&5
19701   ac_status=$?
19702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703   (exit $ac_status); }; }; then
19704   ac_cv_type_unsigned_long=yes
19705 else
19706   echo "$as_me: failed program was:" >&5
19707 sed 's/^/| /' conftest.$ac_ext >&5
19708
19709 ac_cv_type_unsigned_long=no
19710 fi
19711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19712 fi
19713 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
19714 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
19715
19716 echo "$as_me:$LINENO: checking size of unsigned long" >&5
19717 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
19718 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
19719   echo $ECHO_N "(cached) $ECHO_C" >&6
19720 else
19721   if test "$ac_cv_type_unsigned_long" = yes; then
19722   # The cast to unsigned long works around a bug in the HP C Compiler
19723   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19724   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19725   # This bug is HP SR number 8606223364.
19726   if test "$cross_compiling" = yes; then
19727   # Depending upon the size, compute the lo and hi bounds.
19728 cat >conftest.$ac_ext <<_ACEOF
19729 /* confdefs.h.  */
19730 _ACEOF
19731 cat confdefs.h >>conftest.$ac_ext
19732 cat >>conftest.$ac_ext <<_ACEOF
19733 /* end confdefs.h.  */
19734 $ac_includes_default
19735 int
19736 main ()
19737 {
19738 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
19739 test_array [0] = 0
19740
19741   ;
19742   return 0;
19743 }
19744 _ACEOF
19745 rm -f conftest.$ac_objext
19746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19747   (eval $ac_compile) 2>conftest.er1
19748   ac_status=$?
19749   grep -v '^ *+' conftest.er1 >conftest.err
19750   rm -f conftest.er1
19751   cat conftest.err >&5
19752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753   (exit $ac_status); } &&
19754          { ac_try='test -z "$ac_c_werror_flag"
19755                          || test ! -s conftest.err'
19756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19757   (eval $ac_try) 2>&5
19758   ac_status=$?
19759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760   (exit $ac_status); }; } &&
19761          { ac_try='test -s conftest.$ac_objext'
19762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19763   (eval $ac_try) 2>&5
19764   ac_status=$?
19765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766   (exit $ac_status); }; }; then
19767   ac_lo=0 ac_mid=0
19768   while :; do
19769     cat >conftest.$ac_ext <<_ACEOF
19770 /* confdefs.h.  */
19771 _ACEOF
19772 cat confdefs.h >>conftest.$ac_ext
19773 cat >>conftest.$ac_ext <<_ACEOF
19774 /* end confdefs.h.  */
19775 $ac_includes_default
19776 int
19777 main ()
19778 {
19779 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
19780 test_array [0] = 0
19781
19782   ;
19783   return 0;
19784 }
19785 _ACEOF
19786 rm -f conftest.$ac_objext
19787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19788   (eval $ac_compile) 2>conftest.er1
19789   ac_status=$?
19790   grep -v '^ *+' conftest.er1 >conftest.err
19791   rm -f conftest.er1
19792   cat conftest.err >&5
19793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794   (exit $ac_status); } &&
19795          { ac_try='test -z "$ac_c_werror_flag"
19796                          || test ! -s conftest.err'
19797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798   (eval $ac_try) 2>&5
19799   ac_status=$?
19800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801   (exit $ac_status); }; } &&
19802          { ac_try='test -s conftest.$ac_objext'
19803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19804   (eval $ac_try) 2>&5
19805   ac_status=$?
19806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807   (exit $ac_status); }; }; then
19808   ac_hi=$ac_mid; break
19809 else
19810   echo "$as_me: failed program was:" >&5
19811 sed 's/^/| /' conftest.$ac_ext >&5
19812
19813 ac_lo=`expr $ac_mid + 1`
19814                     if test $ac_lo -le $ac_mid; then
19815                       ac_lo= ac_hi=
19816                       break
19817                     fi
19818                     ac_mid=`expr 2 '*' $ac_mid + 1`
19819 fi
19820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19821   done
19822 else
19823   echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.$ac_ext >&5
19825
19826 cat >conftest.$ac_ext <<_ACEOF
19827 /* confdefs.h.  */
19828 _ACEOF
19829 cat confdefs.h >>conftest.$ac_ext
19830 cat >>conftest.$ac_ext <<_ACEOF
19831 /* end confdefs.h.  */
19832 $ac_includes_default
19833 int
19834 main ()
19835 {
19836 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
19837 test_array [0] = 0
19838
19839   ;
19840   return 0;
19841 }
19842 _ACEOF
19843 rm -f conftest.$ac_objext
19844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19845   (eval $ac_compile) 2>conftest.er1
19846   ac_status=$?
19847   grep -v '^ *+' conftest.er1 >conftest.err
19848   rm -f conftest.er1
19849   cat conftest.err >&5
19850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851   (exit $ac_status); } &&
19852          { ac_try='test -z "$ac_c_werror_flag"
19853                          || test ! -s conftest.err'
19854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19855   (eval $ac_try) 2>&5
19856   ac_status=$?
19857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858   (exit $ac_status); }; } &&
19859          { ac_try='test -s conftest.$ac_objext'
19860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19861   (eval $ac_try) 2>&5
19862   ac_status=$?
19863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864   (exit $ac_status); }; }; then
19865   ac_hi=-1 ac_mid=-1
19866   while :; do
19867     cat >conftest.$ac_ext <<_ACEOF
19868 /* confdefs.h.  */
19869 _ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h.  */
19873 $ac_includes_default
19874 int
19875 main ()
19876 {
19877 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
19878 test_array [0] = 0
19879
19880   ;
19881   return 0;
19882 }
19883 _ACEOF
19884 rm -f conftest.$ac_objext
19885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19886   (eval $ac_compile) 2>conftest.er1
19887   ac_status=$?
19888   grep -v '^ *+' conftest.er1 >conftest.err
19889   rm -f conftest.er1
19890   cat conftest.err >&5
19891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892   (exit $ac_status); } &&
19893          { ac_try='test -z "$ac_c_werror_flag"
19894                          || test ! -s conftest.err'
19895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19896   (eval $ac_try) 2>&5
19897   ac_status=$?
19898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899   (exit $ac_status); }; } &&
19900          { ac_try='test -s conftest.$ac_objext'
19901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19902   (eval $ac_try) 2>&5
19903   ac_status=$?
19904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905   (exit $ac_status); }; }; then
19906   ac_lo=$ac_mid; break
19907 else
19908   echo "$as_me: failed program was:" >&5
19909 sed 's/^/| /' conftest.$ac_ext >&5
19910
19911 ac_hi=`expr '(' $ac_mid ')' - 1`
19912                        if test $ac_mid -le $ac_hi; then
19913                          ac_lo= ac_hi=
19914                          break
19915                        fi
19916                        ac_mid=`expr 2 '*' $ac_mid`
19917 fi
19918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19919   done
19920 else
19921   echo "$as_me: failed program was:" >&5
19922 sed 's/^/| /' conftest.$ac_ext >&5
19923
19924 ac_lo= ac_hi=
19925 fi
19926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19927 fi
19928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19929 # Binary search between lo and hi bounds.
19930 while test "x$ac_lo" != "x$ac_hi"; do
19931   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19932   cat >conftest.$ac_ext <<_ACEOF
19933 /* confdefs.h.  */
19934 _ACEOF
19935 cat confdefs.h >>conftest.$ac_ext
19936 cat >>conftest.$ac_ext <<_ACEOF
19937 /* end confdefs.h.  */
19938 $ac_includes_default
19939 int
19940 main ()
19941 {
19942 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
19943 test_array [0] = 0
19944
19945   ;
19946   return 0;
19947 }
19948 _ACEOF
19949 rm -f conftest.$ac_objext
19950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19951   (eval $ac_compile) 2>conftest.er1
19952   ac_status=$?
19953   grep -v '^ *+' conftest.er1 >conftest.err
19954   rm -f conftest.er1
19955   cat conftest.err >&5
19956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957   (exit $ac_status); } &&
19958          { ac_try='test -z "$ac_c_werror_flag"
19959                          || test ! -s conftest.err'
19960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19961   (eval $ac_try) 2>&5
19962   ac_status=$?
19963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964   (exit $ac_status); }; } &&
19965          { ac_try='test -s conftest.$ac_objext'
19966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19967   (eval $ac_try) 2>&5
19968   ac_status=$?
19969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970   (exit $ac_status); }; }; then
19971   ac_hi=$ac_mid
19972 else
19973   echo "$as_me: failed program was:" >&5
19974 sed 's/^/| /' conftest.$ac_ext >&5
19975
19976 ac_lo=`expr '(' $ac_mid ')' + 1`
19977 fi
19978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19979 done
19980 case $ac_lo in
19981 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
19982 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
19983 See \`config.log' for more details." >&5
19984 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
19985 See \`config.log' for more details." >&2;}
19986    { (exit 1); exit 1; }; } ;;
19987 esac
19988 else
19989   if test "$cross_compiling" = yes; then
19990   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19991 See \`config.log' for more details." >&5
19992 echo "$as_me: error: cannot run test program while cross compiling
19993 See \`config.log' for more details." >&2;}
19994    { (exit 1); exit 1; }; }
19995 else
19996   cat >conftest.$ac_ext <<_ACEOF
19997 /* confdefs.h.  */
19998 _ACEOF
19999 cat confdefs.h >>conftest.$ac_ext
20000 cat >>conftest.$ac_ext <<_ACEOF
20001 /* end confdefs.h.  */
20002 $ac_includes_default
20003 long longval () { return (long) (sizeof (unsigned long)); }
20004 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
20005 #include <stdio.h>
20006 #include <stdlib.h>
20007 int
20008 main ()
20009 {
20010
20011   FILE *f = fopen ("conftest.val", "w");
20012   if (! f)
20013     exit (1);
20014   if (((long) (sizeof (unsigned long))) < 0)
20015     {
20016       long i = longval ();
20017       if (i != ((long) (sizeof (unsigned long))))
20018         exit (1);
20019       fprintf (f, "%ld\n", i);
20020     }
20021   else
20022     {
20023       unsigned long i = ulongval ();
20024       if (i != ((long) (sizeof (unsigned long))))
20025         exit (1);
20026       fprintf (f, "%lu\n", i);
20027     }
20028   exit (ferror (f) || fclose (f) != 0);
20029
20030   ;
20031   return 0;
20032 }
20033 _ACEOF
20034 rm -f conftest$ac_exeext
20035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20036   (eval $ac_link) 2>&5
20037   ac_status=$?
20038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20041   (eval $ac_try) 2>&5
20042   ac_status=$?
20043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044   (exit $ac_status); }; }; then
20045   ac_cv_sizeof_unsigned_long=`cat conftest.val`
20046 else
20047   echo "$as_me: program exited with status $ac_status" >&5
20048 echo "$as_me: failed program was:" >&5
20049 sed 's/^/| /' conftest.$ac_ext >&5
20050
20051 ( exit $ac_status )
20052 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
20053 See \`config.log' for more details." >&5
20054 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
20055 See \`config.log' for more details." >&2;}
20056    { (exit 1); exit 1; }; }
20057 fi
20058 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20059 fi
20060 fi
20061 rm -f conftest.val
20062 else
20063   ac_cv_sizeof_unsigned_long=0
20064 fi
20065 fi
20066 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
20067 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
20068 cat >>confdefs.h <<_ACEOF
20069 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20070 _ACEOF
20071
20072
20073
20074 # And one for the size of size_t (enables tweaks for > 32bit address space)
20075 echo "$as_me:$LINENO: checking for size_t" >&5
20076 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20077 if test "${ac_cv_type_size_t+set}" = set; then
20078   echo $ECHO_N "(cached) $ECHO_C" >&6
20079 else
20080   cat >conftest.$ac_ext <<_ACEOF
20081 /* confdefs.h.  */
20082 _ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h.  */
20086 $ac_includes_default
20087 int
20088 main ()
20089 {
20090 if ((size_t *) 0)
20091   return 0;
20092 if (sizeof (size_t))
20093   return 0;
20094   ;
20095   return 0;
20096 }
20097 _ACEOF
20098 rm -f conftest.$ac_objext
20099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20100   (eval $ac_compile) 2>conftest.er1
20101   ac_status=$?
20102   grep -v '^ *+' conftest.er1 >conftest.err
20103   rm -f conftest.er1
20104   cat conftest.err >&5
20105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106   (exit $ac_status); } &&
20107          { ac_try='test -z "$ac_c_werror_flag"
20108                          || test ! -s conftest.err'
20109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20110   (eval $ac_try) 2>&5
20111   ac_status=$?
20112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113   (exit $ac_status); }; } &&
20114          { ac_try='test -s conftest.$ac_objext'
20115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20116   (eval $ac_try) 2>&5
20117   ac_status=$?
20118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119   (exit $ac_status); }; }; then
20120   ac_cv_type_size_t=yes
20121 else
20122   echo "$as_me: failed program was:" >&5
20123 sed 's/^/| /' conftest.$ac_ext >&5
20124
20125 ac_cv_type_size_t=no
20126 fi
20127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20128 fi
20129 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20130 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20131
20132 echo "$as_me:$LINENO: checking size of size_t" >&5
20133 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
20134 if test "${ac_cv_sizeof_size_t+set}" = set; then
20135   echo $ECHO_N "(cached) $ECHO_C" >&6
20136 else
20137   if test "$ac_cv_type_size_t" = yes; then
20138   # The cast to unsigned long works around a bug in the HP C Compiler
20139   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20140   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20141   # This bug is HP SR number 8606223364.
20142   if test "$cross_compiling" = yes; then
20143   # Depending upon the size, compute the lo and hi bounds.
20144 cat >conftest.$ac_ext <<_ACEOF
20145 /* confdefs.h.  */
20146 _ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h.  */
20150 $ac_includes_default
20151 int
20152 main ()
20153 {
20154 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
20155 test_array [0] = 0
20156
20157   ;
20158   return 0;
20159 }
20160 _ACEOF
20161 rm -f conftest.$ac_objext
20162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20163   (eval $ac_compile) 2>conftest.er1
20164   ac_status=$?
20165   grep -v '^ *+' conftest.er1 >conftest.err
20166   rm -f conftest.er1
20167   cat conftest.err >&5
20168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169   (exit $ac_status); } &&
20170          { ac_try='test -z "$ac_c_werror_flag"
20171                          || test ! -s conftest.err'
20172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20173   (eval $ac_try) 2>&5
20174   ac_status=$?
20175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176   (exit $ac_status); }; } &&
20177          { ac_try='test -s conftest.$ac_objext'
20178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20179   (eval $ac_try) 2>&5
20180   ac_status=$?
20181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182   (exit $ac_status); }; }; then
20183   ac_lo=0 ac_mid=0
20184   while :; do
20185     cat >conftest.$ac_ext <<_ACEOF
20186 /* confdefs.h.  */
20187 _ACEOF
20188 cat confdefs.h >>conftest.$ac_ext
20189 cat >>conftest.$ac_ext <<_ACEOF
20190 /* end confdefs.h.  */
20191 $ac_includes_default
20192 int
20193 main ()
20194 {
20195 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20196 test_array [0] = 0
20197
20198   ;
20199   return 0;
20200 }
20201 _ACEOF
20202 rm -f conftest.$ac_objext
20203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20204   (eval $ac_compile) 2>conftest.er1
20205   ac_status=$?
20206   grep -v '^ *+' conftest.er1 >conftest.err
20207   rm -f conftest.er1
20208   cat conftest.err >&5
20209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210   (exit $ac_status); } &&
20211          { ac_try='test -z "$ac_c_werror_flag"
20212                          || test ! -s conftest.err'
20213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20214   (eval $ac_try) 2>&5
20215   ac_status=$?
20216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217   (exit $ac_status); }; } &&
20218          { ac_try='test -s conftest.$ac_objext'
20219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20220   (eval $ac_try) 2>&5
20221   ac_status=$?
20222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223   (exit $ac_status); }; }; then
20224   ac_hi=$ac_mid; break
20225 else
20226   echo "$as_me: failed program was:" >&5
20227 sed 's/^/| /' conftest.$ac_ext >&5
20228
20229 ac_lo=`expr $ac_mid + 1`
20230                     if test $ac_lo -le $ac_mid; then
20231                       ac_lo= ac_hi=
20232                       break
20233                     fi
20234                     ac_mid=`expr 2 '*' $ac_mid + 1`
20235 fi
20236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20237   done
20238 else
20239   echo "$as_me: failed program was:" >&5
20240 sed 's/^/| /' conftest.$ac_ext >&5
20241
20242 cat >conftest.$ac_ext <<_ACEOF
20243 /* confdefs.h.  */
20244 _ACEOF
20245 cat confdefs.h >>conftest.$ac_ext
20246 cat >>conftest.$ac_ext <<_ACEOF
20247 /* end confdefs.h.  */
20248 $ac_includes_default
20249 int
20250 main ()
20251 {
20252 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
20253 test_array [0] = 0
20254
20255   ;
20256   return 0;
20257 }
20258 _ACEOF
20259 rm -f conftest.$ac_objext
20260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20261   (eval $ac_compile) 2>conftest.er1
20262   ac_status=$?
20263   grep -v '^ *+' conftest.er1 >conftest.err
20264   rm -f conftest.er1
20265   cat conftest.err >&5
20266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267   (exit $ac_status); } &&
20268          { ac_try='test -z "$ac_c_werror_flag"
20269                          || test ! -s conftest.err'
20270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20271   (eval $ac_try) 2>&5
20272   ac_status=$?
20273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274   (exit $ac_status); }; } &&
20275          { ac_try='test -s conftest.$ac_objext'
20276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20277   (eval $ac_try) 2>&5
20278   ac_status=$?
20279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280   (exit $ac_status); }; }; then
20281   ac_hi=-1 ac_mid=-1
20282   while :; do
20283     cat >conftest.$ac_ext <<_ACEOF
20284 /* confdefs.h.  */
20285 _ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h.  */
20289 $ac_includes_default
20290 int
20291 main ()
20292 {
20293 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
20294 test_array [0] = 0
20295
20296   ;
20297   return 0;
20298 }
20299 _ACEOF
20300 rm -f conftest.$ac_objext
20301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20302   (eval $ac_compile) 2>conftest.er1
20303   ac_status=$?
20304   grep -v '^ *+' conftest.er1 >conftest.err
20305   rm -f conftest.er1
20306   cat conftest.err >&5
20307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308   (exit $ac_status); } &&
20309          { ac_try='test -z "$ac_c_werror_flag"
20310                          || test ! -s conftest.err'
20311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20312   (eval $ac_try) 2>&5
20313   ac_status=$?
20314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315   (exit $ac_status); }; } &&
20316          { ac_try='test -s conftest.$ac_objext'
20317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20318   (eval $ac_try) 2>&5
20319   ac_status=$?
20320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321   (exit $ac_status); }; }; then
20322   ac_lo=$ac_mid; break
20323 else
20324   echo "$as_me: failed program was:" >&5
20325 sed 's/^/| /' conftest.$ac_ext >&5
20326
20327 ac_hi=`expr '(' $ac_mid ')' - 1`
20328                        if test $ac_mid -le $ac_hi; then
20329                          ac_lo= ac_hi=
20330                          break
20331                        fi
20332                        ac_mid=`expr 2 '*' $ac_mid`
20333 fi
20334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20335   done
20336 else
20337   echo "$as_me: failed program was:" >&5
20338 sed 's/^/| /' conftest.$ac_ext >&5
20339
20340 ac_lo= ac_hi=
20341 fi
20342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20343 fi
20344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20345 # Binary search between lo and hi bounds.
20346 while test "x$ac_lo" != "x$ac_hi"; do
20347   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20348   cat >conftest.$ac_ext <<_ACEOF
20349 /* confdefs.h.  */
20350 _ACEOF
20351 cat confdefs.h >>conftest.$ac_ext
20352 cat >>conftest.$ac_ext <<_ACEOF
20353 /* end confdefs.h.  */
20354 $ac_includes_default
20355 int
20356 main ()
20357 {
20358 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20359 test_array [0] = 0
20360
20361   ;
20362   return 0;
20363 }
20364 _ACEOF
20365 rm -f conftest.$ac_objext
20366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20367   (eval $ac_compile) 2>conftest.er1
20368   ac_status=$?
20369   grep -v '^ *+' conftest.er1 >conftest.err
20370   rm -f conftest.er1
20371   cat conftest.err >&5
20372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373   (exit $ac_status); } &&
20374          { ac_try='test -z "$ac_c_werror_flag"
20375                          || test ! -s conftest.err'
20376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20377   (eval $ac_try) 2>&5
20378   ac_status=$?
20379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380   (exit $ac_status); }; } &&
20381          { ac_try='test -s conftest.$ac_objext'
20382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20383   (eval $ac_try) 2>&5
20384   ac_status=$?
20385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386   (exit $ac_status); }; }; then
20387   ac_hi=$ac_mid
20388 else
20389   echo "$as_me: failed program was:" >&5
20390 sed 's/^/| /' conftest.$ac_ext >&5
20391
20392 ac_lo=`expr '(' $ac_mid ')' + 1`
20393 fi
20394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20395 done
20396 case $ac_lo in
20397 ?*) ac_cv_sizeof_size_t=$ac_lo;;
20398 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20399 See \`config.log' for more details." >&5
20400 echo "$as_me: error: cannot compute sizeof (size_t), 77
20401 See \`config.log' for more details." >&2;}
20402    { (exit 1); exit 1; }; } ;;
20403 esac
20404 else
20405   if test "$cross_compiling" = yes; then
20406   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20407 See \`config.log' for more details." >&5
20408 echo "$as_me: error: cannot run test program while cross compiling
20409 See \`config.log' for more details." >&2;}
20410    { (exit 1); exit 1; }; }
20411 else
20412   cat >conftest.$ac_ext <<_ACEOF
20413 /* confdefs.h.  */
20414 _ACEOF
20415 cat confdefs.h >>conftest.$ac_ext
20416 cat >>conftest.$ac_ext <<_ACEOF
20417 /* end confdefs.h.  */
20418 $ac_includes_default
20419 long longval () { return (long) (sizeof (size_t)); }
20420 unsigned long ulongval () { return (long) (sizeof (size_t)); }
20421 #include <stdio.h>
20422 #include <stdlib.h>
20423 int
20424 main ()
20425 {
20426
20427   FILE *f = fopen ("conftest.val", "w");
20428   if (! f)
20429     exit (1);
20430   if (((long) (sizeof (size_t))) < 0)
20431     {
20432       long i = longval ();
20433       if (i != ((long) (sizeof (size_t))))
20434         exit (1);
20435       fprintf (f, "%ld\n", i);
20436     }
20437   else
20438     {
20439       unsigned long i = ulongval ();
20440       if (i != ((long) (sizeof (size_t))))
20441         exit (1);
20442       fprintf (f, "%lu\n", i);
20443     }
20444   exit (ferror (f) || fclose (f) != 0);
20445
20446   ;
20447   return 0;
20448 }
20449 _ACEOF
20450 rm -f conftest$ac_exeext
20451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20452   (eval $ac_link) 2>&5
20453   ac_status=$?
20454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20457   (eval $ac_try) 2>&5
20458   ac_status=$?
20459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460   (exit $ac_status); }; }; then
20461   ac_cv_sizeof_size_t=`cat conftest.val`
20462 else
20463   echo "$as_me: program exited with status $ac_status" >&5
20464 echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20466
20467 ( exit $ac_status )
20468 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20469 See \`config.log' for more details." >&5
20470 echo "$as_me: error: cannot compute sizeof (size_t), 77
20471 See \`config.log' for more details." >&2;}
20472    { (exit 1); exit 1; }; }
20473 fi
20474 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20475 fi
20476 fi
20477 rm -f conftest.val
20478 else
20479   ac_cv_sizeof_size_t=0
20480 fi
20481 fi
20482 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20483 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20484 cat >>confdefs.h <<_ACEOF
20485 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20486 _ACEOF
20487
20488
20489
20490 # Determine memory alignment requirements for the basic C data types.
20491
20492 echo "$as_me:$LINENO: checking for short" >&5
20493 echo $ECHO_N "checking for short... $ECHO_C" >&6
20494 if test "${ac_cv_type_short+set}" = set; then
20495   echo $ECHO_N "(cached) $ECHO_C" >&6
20496 else
20497   cat >conftest.$ac_ext <<_ACEOF
20498 /* confdefs.h.  */
20499 _ACEOF
20500 cat confdefs.h >>conftest.$ac_ext
20501 cat >>conftest.$ac_ext <<_ACEOF
20502 /* end confdefs.h.  */
20503 $ac_includes_default
20504 int
20505 main ()
20506 {
20507 if ((short *) 0)
20508   return 0;
20509 if (sizeof (short))
20510   return 0;
20511   ;
20512   return 0;
20513 }
20514 _ACEOF
20515 rm -f conftest.$ac_objext
20516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20517   (eval $ac_compile) 2>conftest.er1
20518   ac_status=$?
20519   grep -v '^ *+' conftest.er1 >conftest.err
20520   rm -f conftest.er1
20521   cat conftest.err >&5
20522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523   (exit $ac_status); } &&
20524          { ac_try='test -z "$ac_c_werror_flag"
20525                          || test ! -s conftest.err'
20526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20527   (eval $ac_try) 2>&5
20528   ac_status=$?
20529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530   (exit $ac_status); }; } &&
20531          { ac_try='test -s conftest.$ac_objext'
20532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20533   (eval $ac_try) 2>&5
20534   ac_status=$?
20535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536   (exit $ac_status); }; }; then
20537   ac_cv_type_short=yes
20538 else
20539   echo "$as_me: failed program was:" >&5
20540 sed 's/^/| /' conftest.$ac_ext >&5
20541
20542 ac_cv_type_short=no
20543 fi
20544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20545 fi
20546 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20547 echo "${ECHO_T}$ac_cv_type_short" >&6
20548
20549 echo "$as_me:$LINENO: checking alignment of short" >&5
20550 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
20551 if test "${pgac_cv_alignof_short+set}" = set; then
20552   echo $ECHO_N "(cached) $ECHO_C" >&6
20553 else
20554   if test "$ac_cv_type_short" = yes; then
20555   if test "$cross_compiling" = yes; then
20556   # Depending upon the size, compute the lo and hi bounds.
20557 cat >conftest.$ac_ext <<_ACEOF
20558 /* confdefs.h.  */
20559 _ACEOF
20560 cat confdefs.h >>conftest.$ac_ext
20561 cat >>conftest.$ac_ext <<_ACEOF
20562 /* end confdefs.h.  */
20563 $ac_includes_default
20564 struct { char filler; short field; } pgac_struct;
20565 int
20566 main ()
20567 {
20568 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
20569 test_array [0] = 0
20570
20571   ;
20572   return 0;
20573 }
20574 _ACEOF
20575 rm -f conftest.$ac_objext
20576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20577   (eval $ac_compile) 2>conftest.er1
20578   ac_status=$?
20579   grep -v '^ *+' conftest.er1 >conftest.err
20580   rm -f conftest.er1
20581   cat conftest.err >&5
20582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583   (exit $ac_status); } &&
20584          { ac_try='test -z "$ac_c_werror_flag"
20585                          || test ! -s conftest.err'
20586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20587   (eval $ac_try) 2>&5
20588   ac_status=$?
20589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590   (exit $ac_status); }; } &&
20591          { ac_try='test -s conftest.$ac_objext'
20592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20593   (eval $ac_try) 2>&5
20594   ac_status=$?
20595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596   (exit $ac_status); }; }; then
20597   ac_lo=0 ac_mid=0
20598   while :; do
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 struct { char filler; short field; } pgac_struct;
20607 int
20608 main ()
20609 {
20610 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20611 test_array [0] = 0
20612
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_hi=$ac_mid; break
20640 else
20641   echo "$as_me: failed program was:" >&5
20642 sed 's/^/| /' conftest.$ac_ext >&5
20643
20644 ac_lo=`expr $ac_mid + 1`
20645                     if test $ac_lo -le $ac_mid; then
20646                       ac_lo= ac_hi=
20647                       break
20648                     fi
20649                     ac_mid=`expr 2 '*' $ac_mid + 1`
20650 fi
20651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20652   done
20653 else
20654   echo "$as_me: failed program was:" >&5
20655 sed 's/^/| /' conftest.$ac_ext >&5
20656
20657 cat >conftest.$ac_ext <<_ACEOF
20658 /* confdefs.h.  */
20659 _ACEOF
20660 cat confdefs.h >>conftest.$ac_ext
20661 cat >>conftest.$ac_ext <<_ACEOF
20662 /* end confdefs.h.  */
20663 $ac_includes_default
20664 struct { char filler; short field; } pgac_struct;
20665 int
20666 main ()
20667 {
20668 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
20669 test_array [0] = 0
20670
20671   ;
20672   return 0;
20673 }
20674 _ACEOF
20675 rm -f conftest.$ac_objext
20676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20677   (eval $ac_compile) 2>conftest.er1
20678   ac_status=$?
20679   grep -v '^ *+' conftest.er1 >conftest.err
20680   rm -f conftest.er1
20681   cat conftest.err >&5
20682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683   (exit $ac_status); } &&
20684          { ac_try='test -z "$ac_c_werror_flag"
20685                          || test ! -s conftest.err'
20686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20687   (eval $ac_try) 2>&5
20688   ac_status=$?
20689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690   (exit $ac_status); }; } &&
20691          { ac_try='test -s conftest.$ac_objext'
20692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20693   (eval $ac_try) 2>&5
20694   ac_status=$?
20695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696   (exit $ac_status); }; }; then
20697   ac_hi=-1 ac_mid=-1
20698   while :; do
20699     cat >conftest.$ac_ext <<_ACEOF
20700 /* confdefs.h.  */
20701 _ACEOF
20702 cat confdefs.h >>conftest.$ac_ext
20703 cat >>conftest.$ac_ext <<_ACEOF
20704 /* end confdefs.h.  */
20705 $ac_includes_default
20706 struct { char filler; short field; } pgac_struct;
20707 int
20708 main ()
20709 {
20710 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20711 test_array [0] = 0
20712
20713   ;
20714   return 0;
20715 }
20716 _ACEOF
20717 rm -f conftest.$ac_objext
20718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20719   (eval $ac_compile) 2>conftest.er1
20720   ac_status=$?
20721   grep -v '^ *+' conftest.er1 >conftest.err
20722   rm -f conftest.er1
20723   cat conftest.err >&5
20724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725   (exit $ac_status); } &&
20726          { ac_try='test -z "$ac_c_werror_flag"
20727                          || test ! -s conftest.err'
20728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20729   (eval $ac_try) 2>&5
20730   ac_status=$?
20731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732   (exit $ac_status); }; } &&
20733          { ac_try='test -s conftest.$ac_objext'
20734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20735   (eval $ac_try) 2>&5
20736   ac_status=$?
20737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738   (exit $ac_status); }; }; then
20739   ac_lo=$ac_mid; break
20740 else
20741   echo "$as_me: failed program was:" >&5
20742 sed 's/^/| /' conftest.$ac_ext >&5
20743
20744 ac_hi=`expr '(' $ac_mid ')' - 1`
20745                        if test $ac_mid -le $ac_hi; then
20746                          ac_lo= ac_hi=
20747                          break
20748                        fi
20749                        ac_mid=`expr 2 '*' $ac_mid`
20750 fi
20751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20752   done
20753 else
20754   echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20756
20757 ac_lo= ac_hi=
20758 fi
20759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20760 fi
20761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20762 # Binary search between lo and hi bounds.
20763 while test "x$ac_lo" != "x$ac_hi"; do
20764   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20765   cat >conftest.$ac_ext <<_ACEOF
20766 /* confdefs.h.  */
20767 _ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h.  */
20771 $ac_includes_default
20772 struct { char filler; short field; } pgac_struct;
20773 int
20774 main ()
20775 {
20776 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20777 test_array [0] = 0
20778
20779   ;
20780   return 0;
20781 }
20782 _ACEOF
20783 rm -f conftest.$ac_objext
20784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20785   (eval $ac_compile) 2>conftest.er1
20786   ac_status=$?
20787   grep -v '^ *+' conftest.er1 >conftest.err
20788   rm -f conftest.er1
20789   cat conftest.err >&5
20790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791   (exit $ac_status); } &&
20792          { ac_try='test -z "$ac_c_werror_flag"
20793                          || test ! -s conftest.err'
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); }; } &&
20799          { ac_try='test -s conftest.$ac_objext'
20800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20801   (eval $ac_try) 2>&5
20802   ac_status=$?
20803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804   (exit $ac_status); }; }; then
20805   ac_hi=$ac_mid
20806 else
20807   echo "$as_me: failed program was:" >&5
20808 sed 's/^/| /' conftest.$ac_ext >&5
20809
20810 ac_lo=`expr '(' $ac_mid ')' + 1`
20811 fi
20812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20813 done
20814 case $ac_lo in
20815 ?*) pgac_cv_alignof_short=$ac_lo;;
20816 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
20817 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
20818    { (exit 1); exit 1; }; } ;;
20819 esac
20820 else
20821   if test "$cross_compiling" = yes; then
20822   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20823 See \`config.log' for more details." >&5
20824 echo "$as_me: error: cannot run test program while cross compiling
20825 See \`config.log' for more details." >&2;}
20826    { (exit 1); exit 1; }; }
20827 else
20828   cat >conftest.$ac_ext <<_ACEOF
20829 /* confdefs.h.  */
20830 _ACEOF
20831 cat confdefs.h >>conftest.$ac_ext
20832 cat >>conftest.$ac_ext <<_ACEOF
20833 /* end confdefs.h.  */
20834 $ac_includes_default
20835 struct { char filler; short field; } pgac_struct;
20836 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20837 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20838 #include <stdio.h>
20839 #include <stdlib.h>
20840 int
20841 main ()
20842 {
20843
20844   FILE *f = fopen ("conftest.val", "w");
20845   if (! f)
20846     exit (1);
20847   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20848     {
20849       long i = longval ();
20850       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20851         exit (1);
20852       fprintf (f, "%ld\n", i);
20853     }
20854   else
20855     {
20856       unsigned long i = ulongval ();
20857       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20858         exit (1);
20859       fprintf (f, "%lu\n", i);
20860     }
20861   exit (ferror (f) || fclose (f) != 0);
20862
20863   ;
20864   return 0;
20865 }
20866 _ACEOF
20867 rm -f conftest$ac_exeext
20868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20869   (eval $ac_link) 2>&5
20870   ac_status=$?
20871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20874   (eval $ac_try) 2>&5
20875   ac_status=$?
20876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877   (exit $ac_status); }; }; then
20878   pgac_cv_alignof_short=`cat conftest.val`
20879 else
20880   echo "$as_me: program exited with status $ac_status" >&5
20881 echo "$as_me: failed program was:" >&5
20882 sed 's/^/| /' conftest.$ac_ext >&5
20883
20884 ( exit $ac_status )
20885 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
20886 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
20887    { (exit 1); exit 1; }; }
20888 fi
20889 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20890 fi
20891 fi
20892 rm -f conftest.val
20893 else
20894   pgac_cv_alignof_short=0
20895 fi
20896 fi
20897 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
20898 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
20899 cat >>confdefs.h <<_ACEOF
20900 #define ALIGNOF_SHORT $pgac_cv_alignof_short
20901 _ACEOF
20902
20903
20904 echo "$as_me:$LINENO: checking for int" >&5
20905 echo $ECHO_N "checking for int... $ECHO_C" >&6
20906 if test "${ac_cv_type_int+set}" = set; then
20907   echo $ECHO_N "(cached) $ECHO_C" >&6
20908 else
20909   cat >conftest.$ac_ext <<_ACEOF
20910 /* confdefs.h.  */
20911 _ACEOF
20912 cat confdefs.h >>conftest.$ac_ext
20913 cat >>conftest.$ac_ext <<_ACEOF
20914 /* end confdefs.h.  */
20915 $ac_includes_default
20916 int
20917 main ()
20918 {
20919 if ((int *) 0)
20920   return 0;
20921 if (sizeof (int))
20922   return 0;
20923   ;
20924   return 0;
20925 }
20926 _ACEOF
20927 rm -f conftest.$ac_objext
20928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20929   (eval $ac_compile) 2>conftest.er1
20930   ac_status=$?
20931   grep -v '^ *+' conftest.er1 >conftest.err
20932   rm -f conftest.er1
20933   cat conftest.err >&5
20934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935   (exit $ac_status); } &&
20936          { ac_try='test -z "$ac_c_werror_flag"
20937                          || test ! -s conftest.err'
20938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20939   (eval $ac_try) 2>&5
20940   ac_status=$?
20941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942   (exit $ac_status); }; } &&
20943          { ac_try='test -s conftest.$ac_objext'
20944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20945   (eval $ac_try) 2>&5
20946   ac_status=$?
20947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948   (exit $ac_status); }; }; then
20949   ac_cv_type_int=yes
20950 else
20951   echo "$as_me: failed program was:" >&5
20952 sed 's/^/| /' conftest.$ac_ext >&5
20953
20954 ac_cv_type_int=no
20955 fi
20956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20957 fi
20958 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20959 echo "${ECHO_T}$ac_cv_type_int" >&6
20960
20961 echo "$as_me:$LINENO: checking alignment of int" >&5
20962 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
20963 if test "${pgac_cv_alignof_int+set}" = set; then
20964   echo $ECHO_N "(cached) $ECHO_C" >&6
20965 else
20966   if test "$ac_cv_type_int" = yes; then
20967   if test "$cross_compiling" = yes; then
20968   # Depending upon the size, compute the lo and hi bounds.
20969 cat >conftest.$ac_ext <<_ACEOF
20970 /* confdefs.h.  */
20971 _ACEOF
20972 cat confdefs.h >>conftest.$ac_ext
20973 cat >>conftest.$ac_ext <<_ACEOF
20974 /* end confdefs.h.  */
20975 $ac_includes_default
20976 struct { char filler; int field; } pgac_struct;
20977 int
20978 main ()
20979 {
20980 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
20981 test_array [0] = 0
20982
20983   ;
20984   return 0;
20985 }
20986 _ACEOF
20987 rm -f conftest.$ac_objext
20988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20989   (eval $ac_compile) 2>conftest.er1
20990   ac_status=$?
20991   grep -v '^ *+' conftest.er1 >conftest.err
20992   rm -f conftest.er1
20993   cat conftest.err >&5
20994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995   (exit $ac_status); } &&
20996          { ac_try='test -z "$ac_c_werror_flag"
20997                          || test ! -s conftest.err'
20998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20999   (eval $ac_try) 2>&5
21000   ac_status=$?
21001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002   (exit $ac_status); }; } &&
21003          { ac_try='test -s conftest.$ac_objext'
21004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21005   (eval $ac_try) 2>&5
21006   ac_status=$?
21007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008   (exit $ac_status); }; }; then
21009   ac_lo=0 ac_mid=0
21010   while :; do
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 struct { char filler; int field; } pgac_struct;
21019 int
21020 main ()
21021 {
21022 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21023 test_array [0] = 0
21024
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_hi=$ac_mid; break
21052 else
21053   echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21055
21056 ac_lo=`expr $ac_mid + 1`
21057                     if test $ac_lo -le $ac_mid; then
21058                       ac_lo= ac_hi=
21059                       break
21060                     fi
21061                     ac_mid=`expr 2 '*' $ac_mid + 1`
21062 fi
21063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21064   done
21065 else
21066   echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21068
21069 cat >conftest.$ac_ext <<_ACEOF
21070 /* confdefs.h.  */
21071 _ACEOF
21072 cat confdefs.h >>conftest.$ac_ext
21073 cat >>conftest.$ac_ext <<_ACEOF
21074 /* end confdefs.h.  */
21075 $ac_includes_default
21076 struct { char filler; int field; } pgac_struct;
21077 int
21078 main ()
21079 {
21080 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
21081 test_array [0] = 0
21082
21083   ;
21084   return 0;
21085 }
21086 _ACEOF
21087 rm -f conftest.$ac_objext
21088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21089   (eval $ac_compile) 2>conftest.er1
21090   ac_status=$?
21091   grep -v '^ *+' conftest.er1 >conftest.err
21092   rm -f conftest.er1
21093   cat conftest.err >&5
21094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095   (exit $ac_status); } &&
21096          { ac_try='test -z "$ac_c_werror_flag"
21097                          || test ! -s conftest.err'
21098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21099   (eval $ac_try) 2>&5
21100   ac_status=$?
21101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102   (exit $ac_status); }; } &&
21103          { ac_try='test -s conftest.$ac_objext'
21104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21105   (eval $ac_try) 2>&5
21106   ac_status=$?
21107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108   (exit $ac_status); }; }; then
21109   ac_hi=-1 ac_mid=-1
21110   while :; do
21111     cat >conftest.$ac_ext <<_ACEOF
21112 /* confdefs.h.  */
21113 _ACEOF
21114 cat confdefs.h >>conftest.$ac_ext
21115 cat >>conftest.$ac_ext <<_ACEOF
21116 /* end confdefs.h.  */
21117 $ac_includes_default
21118 struct { char filler; int field; } pgac_struct;
21119 int
21120 main ()
21121 {
21122 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
21123 test_array [0] = 0
21124
21125   ;
21126   return 0;
21127 }
21128 _ACEOF
21129 rm -f conftest.$ac_objext
21130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21131   (eval $ac_compile) 2>conftest.er1
21132   ac_status=$?
21133   grep -v '^ *+' conftest.er1 >conftest.err
21134   rm -f conftest.er1
21135   cat conftest.err >&5
21136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137   (exit $ac_status); } &&
21138          { ac_try='test -z "$ac_c_werror_flag"
21139                          || test ! -s conftest.err'
21140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21141   (eval $ac_try) 2>&5
21142   ac_status=$?
21143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144   (exit $ac_status); }; } &&
21145          { ac_try='test -s conftest.$ac_objext'
21146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21147   (eval $ac_try) 2>&5
21148   ac_status=$?
21149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150   (exit $ac_status); }; }; then
21151   ac_lo=$ac_mid; break
21152 else
21153   echo "$as_me: failed program was:" >&5
21154 sed 's/^/| /' conftest.$ac_ext >&5
21155
21156 ac_hi=`expr '(' $ac_mid ')' - 1`
21157                        if test $ac_mid -le $ac_hi; then
21158                          ac_lo= ac_hi=
21159                          break
21160                        fi
21161                        ac_mid=`expr 2 '*' $ac_mid`
21162 fi
21163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21164   done
21165 else
21166   echo "$as_me: failed program was:" >&5
21167 sed 's/^/| /' conftest.$ac_ext >&5
21168
21169 ac_lo= ac_hi=
21170 fi
21171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21172 fi
21173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21174 # Binary search between lo and hi bounds.
21175 while test "x$ac_lo" != "x$ac_hi"; do
21176   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21177   cat >conftest.$ac_ext <<_ACEOF
21178 /* confdefs.h.  */
21179 _ACEOF
21180 cat confdefs.h >>conftest.$ac_ext
21181 cat >>conftest.$ac_ext <<_ACEOF
21182 /* end confdefs.h.  */
21183 $ac_includes_default
21184 struct { char filler; int field; } pgac_struct;
21185 int
21186 main ()
21187 {
21188 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21189 test_array [0] = 0
21190
21191   ;
21192   return 0;
21193 }
21194 _ACEOF
21195 rm -f conftest.$ac_objext
21196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21197   (eval $ac_compile) 2>conftest.er1
21198   ac_status=$?
21199   grep -v '^ *+' conftest.er1 >conftest.err
21200   rm -f conftest.er1
21201   cat conftest.err >&5
21202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203   (exit $ac_status); } &&
21204          { ac_try='test -z "$ac_c_werror_flag"
21205                          || test ! -s conftest.err'
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); }; } &&
21211          { ac_try='test -s conftest.$ac_objext'
21212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21213   (eval $ac_try) 2>&5
21214   ac_status=$?
21215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216   (exit $ac_status); }; }; then
21217   ac_hi=$ac_mid
21218 else
21219   echo "$as_me: failed program was:" >&5
21220 sed 's/^/| /' conftest.$ac_ext >&5
21221
21222 ac_lo=`expr '(' $ac_mid ')' + 1`
21223 fi
21224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21225 done
21226 case $ac_lo in
21227 ?*) pgac_cv_alignof_int=$ac_lo;;
21228 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
21229 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
21230    { (exit 1); exit 1; }; } ;;
21231 esac
21232 else
21233   if test "$cross_compiling" = yes; then
21234   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21235 See \`config.log' for more details." >&5
21236 echo "$as_me: error: cannot run test program while cross compiling
21237 See \`config.log' for more details." >&2;}
21238    { (exit 1); exit 1; }; }
21239 else
21240   cat >conftest.$ac_ext <<_ACEOF
21241 /* confdefs.h.  */
21242 _ACEOF
21243 cat confdefs.h >>conftest.$ac_ext
21244 cat >>conftest.$ac_ext <<_ACEOF
21245 /* end confdefs.h.  */
21246 $ac_includes_default
21247 struct { char filler; int field; } pgac_struct;
21248 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21249 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21250 #include <stdio.h>
21251 #include <stdlib.h>
21252 int
21253 main ()
21254 {
21255
21256   FILE *f = fopen ("conftest.val", "w");
21257   if (! f)
21258     exit (1);
21259   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
21260     {
21261       long i = longval ();
21262       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21263         exit (1);
21264       fprintf (f, "%ld\n", i);
21265     }
21266   else
21267     {
21268       unsigned long i = ulongval ();
21269       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21270         exit (1);
21271       fprintf (f, "%lu\n", i);
21272     }
21273   exit (ferror (f) || fclose (f) != 0);
21274
21275   ;
21276   return 0;
21277 }
21278 _ACEOF
21279 rm -f conftest$ac_exeext
21280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21281   (eval $ac_link) 2>&5
21282   ac_status=$?
21283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21286   (eval $ac_try) 2>&5
21287   ac_status=$?
21288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289   (exit $ac_status); }; }; then
21290   pgac_cv_alignof_int=`cat conftest.val`
21291 else
21292   echo "$as_me: program exited with status $ac_status" >&5
21293 echo "$as_me: failed program was:" >&5
21294 sed 's/^/| /' conftest.$ac_ext >&5
21295
21296 ( exit $ac_status )
21297 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
21298 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
21299    { (exit 1); exit 1; }; }
21300 fi
21301 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21302 fi
21303 fi
21304 rm -f conftest.val
21305 else
21306   pgac_cv_alignof_int=0
21307 fi
21308 fi
21309 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
21310 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
21311 cat >>confdefs.h <<_ACEOF
21312 #define ALIGNOF_INT $pgac_cv_alignof_int
21313 _ACEOF
21314
21315
21316 echo "$as_me:$LINENO: checking for long" >&5
21317 echo $ECHO_N "checking for long... $ECHO_C" >&6
21318 if test "${ac_cv_type_long+set}" = set; then
21319   echo $ECHO_N "(cached) $ECHO_C" >&6
21320 else
21321   cat >conftest.$ac_ext <<_ACEOF
21322 /* confdefs.h.  */
21323 _ACEOF
21324 cat confdefs.h >>conftest.$ac_ext
21325 cat >>conftest.$ac_ext <<_ACEOF
21326 /* end confdefs.h.  */
21327 $ac_includes_default
21328 int
21329 main ()
21330 {
21331 if ((long *) 0)
21332   return 0;
21333 if (sizeof (long))
21334   return 0;
21335   ;
21336   return 0;
21337 }
21338 _ACEOF
21339 rm -f conftest.$ac_objext
21340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21341   (eval $ac_compile) 2>conftest.er1
21342   ac_status=$?
21343   grep -v '^ *+' conftest.er1 >conftest.err
21344   rm -f conftest.er1
21345   cat conftest.err >&5
21346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347   (exit $ac_status); } &&
21348          { ac_try='test -z "$ac_c_werror_flag"
21349                          || test ! -s conftest.err'
21350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21351   (eval $ac_try) 2>&5
21352   ac_status=$?
21353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354   (exit $ac_status); }; } &&
21355          { ac_try='test -s conftest.$ac_objext'
21356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21357   (eval $ac_try) 2>&5
21358   ac_status=$?
21359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360   (exit $ac_status); }; }; then
21361   ac_cv_type_long=yes
21362 else
21363   echo "$as_me: failed program was:" >&5
21364 sed 's/^/| /' conftest.$ac_ext >&5
21365
21366 ac_cv_type_long=no
21367 fi
21368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21369 fi
21370 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21371 echo "${ECHO_T}$ac_cv_type_long" >&6
21372
21373 echo "$as_me:$LINENO: checking alignment of long" >&5
21374 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
21375 if test "${pgac_cv_alignof_long+set}" = set; then
21376   echo $ECHO_N "(cached) $ECHO_C" >&6
21377 else
21378   if test "$ac_cv_type_long" = yes; then
21379   if test "$cross_compiling" = yes; then
21380   # Depending upon the size, compute the lo and hi bounds.
21381 cat >conftest.$ac_ext <<_ACEOF
21382 /* confdefs.h.  */
21383 _ACEOF
21384 cat confdefs.h >>conftest.$ac_ext
21385 cat >>conftest.$ac_ext <<_ACEOF
21386 /* end confdefs.h.  */
21387 $ac_includes_default
21388 struct { char filler; long field; } pgac_struct;
21389 int
21390 main ()
21391 {
21392 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
21393 test_array [0] = 0
21394
21395   ;
21396   return 0;
21397 }
21398 _ACEOF
21399 rm -f conftest.$ac_objext
21400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21401   (eval $ac_compile) 2>conftest.er1
21402   ac_status=$?
21403   grep -v '^ *+' conftest.er1 >conftest.err
21404   rm -f conftest.er1
21405   cat conftest.err >&5
21406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407   (exit $ac_status); } &&
21408          { ac_try='test -z "$ac_c_werror_flag"
21409                          || test ! -s conftest.err'
21410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21411   (eval $ac_try) 2>&5
21412   ac_status=$?
21413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414   (exit $ac_status); }; } &&
21415          { ac_try='test -s conftest.$ac_objext'
21416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21417   (eval $ac_try) 2>&5
21418   ac_status=$?
21419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420   (exit $ac_status); }; }; then
21421   ac_lo=0 ac_mid=0
21422   while :; do
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 struct { char filler; long field; } pgac_struct;
21431 int
21432 main ()
21433 {
21434 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21435 test_array [0] = 0
21436
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_hi=$ac_mid; break
21464 else
21465   echo "$as_me: failed program was:" >&5
21466 sed 's/^/| /' conftest.$ac_ext >&5
21467
21468 ac_lo=`expr $ac_mid + 1`
21469                     if test $ac_lo -le $ac_mid; then
21470                       ac_lo= ac_hi=
21471                       break
21472                     fi
21473                     ac_mid=`expr 2 '*' $ac_mid + 1`
21474 fi
21475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21476   done
21477 else
21478   echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21480
21481 cat >conftest.$ac_ext <<_ACEOF
21482 /* confdefs.h.  */
21483 _ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h.  */
21487 $ac_includes_default
21488 struct { char filler; long field; } pgac_struct;
21489 int
21490 main ()
21491 {
21492 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
21493 test_array [0] = 0
21494
21495   ;
21496   return 0;
21497 }
21498 _ACEOF
21499 rm -f conftest.$ac_objext
21500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21501   (eval $ac_compile) 2>conftest.er1
21502   ac_status=$?
21503   grep -v '^ *+' conftest.er1 >conftest.err
21504   rm -f conftest.er1
21505   cat conftest.err >&5
21506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507   (exit $ac_status); } &&
21508          { ac_try='test -z "$ac_c_werror_flag"
21509                          || test ! -s conftest.err'
21510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21511   (eval $ac_try) 2>&5
21512   ac_status=$?
21513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514   (exit $ac_status); }; } &&
21515          { ac_try='test -s conftest.$ac_objext'
21516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21517   (eval $ac_try) 2>&5
21518   ac_status=$?
21519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520   (exit $ac_status); }; }; then
21521   ac_hi=-1 ac_mid=-1
21522   while :; do
21523     cat >conftest.$ac_ext <<_ACEOF
21524 /* confdefs.h.  */
21525 _ACEOF
21526 cat confdefs.h >>conftest.$ac_ext
21527 cat >>conftest.$ac_ext <<_ACEOF
21528 /* end confdefs.h.  */
21529 $ac_includes_default
21530 struct { char filler; long field; } pgac_struct;
21531 int
21532 main ()
21533 {
21534 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
21535 test_array [0] = 0
21536
21537   ;
21538   return 0;
21539 }
21540 _ACEOF
21541 rm -f conftest.$ac_objext
21542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21543   (eval $ac_compile) 2>conftest.er1
21544   ac_status=$?
21545   grep -v '^ *+' conftest.er1 >conftest.err
21546   rm -f conftest.er1
21547   cat conftest.err >&5
21548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549   (exit $ac_status); } &&
21550          { ac_try='test -z "$ac_c_werror_flag"
21551                          || test ! -s conftest.err'
21552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21553   (eval $ac_try) 2>&5
21554   ac_status=$?
21555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556   (exit $ac_status); }; } &&
21557          { ac_try='test -s conftest.$ac_objext'
21558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21559   (eval $ac_try) 2>&5
21560   ac_status=$?
21561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562   (exit $ac_status); }; }; then
21563   ac_lo=$ac_mid; break
21564 else
21565   echo "$as_me: failed program was:" >&5
21566 sed 's/^/| /' conftest.$ac_ext >&5
21567
21568 ac_hi=`expr '(' $ac_mid ')' - 1`
21569                        if test $ac_mid -le $ac_hi; then
21570                          ac_lo= ac_hi=
21571                          break
21572                        fi
21573                        ac_mid=`expr 2 '*' $ac_mid`
21574 fi
21575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21576   done
21577 else
21578   echo "$as_me: failed program was:" >&5
21579 sed 's/^/| /' conftest.$ac_ext >&5
21580
21581 ac_lo= ac_hi=
21582 fi
21583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21584 fi
21585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21586 # Binary search between lo and hi bounds.
21587 while test "x$ac_lo" != "x$ac_hi"; do
21588   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21589   cat >conftest.$ac_ext <<_ACEOF
21590 /* confdefs.h.  */
21591 _ACEOF
21592 cat confdefs.h >>conftest.$ac_ext
21593 cat >>conftest.$ac_ext <<_ACEOF
21594 /* end confdefs.h.  */
21595 $ac_includes_default
21596 struct { char filler; long field; } pgac_struct;
21597 int
21598 main ()
21599 {
21600 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21601 test_array [0] = 0
21602
21603   ;
21604   return 0;
21605 }
21606 _ACEOF
21607 rm -f conftest.$ac_objext
21608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21609   (eval $ac_compile) 2>conftest.er1
21610   ac_status=$?
21611   grep -v '^ *+' conftest.er1 >conftest.err
21612   rm -f conftest.er1
21613   cat conftest.err >&5
21614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615   (exit $ac_status); } &&
21616          { ac_try='test -z "$ac_c_werror_flag"
21617                          || test ! -s conftest.err'
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); }; } &&
21623          { ac_try='test -s conftest.$ac_objext'
21624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21625   (eval $ac_try) 2>&5
21626   ac_status=$?
21627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628   (exit $ac_status); }; }; then
21629   ac_hi=$ac_mid
21630 else
21631   echo "$as_me: failed program was:" >&5
21632 sed 's/^/| /' conftest.$ac_ext >&5
21633
21634 ac_lo=`expr '(' $ac_mid ')' + 1`
21635 fi
21636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21637 done
21638 case $ac_lo in
21639 ?*) pgac_cv_alignof_long=$ac_lo;;
21640 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
21641 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
21642    { (exit 1); exit 1; }; } ;;
21643 esac
21644 else
21645   if test "$cross_compiling" = yes; then
21646   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21647 See \`config.log' for more details." >&5
21648 echo "$as_me: error: cannot run test program while cross compiling
21649 See \`config.log' for more details." >&2;}
21650    { (exit 1); exit 1; }; }
21651 else
21652   cat >conftest.$ac_ext <<_ACEOF
21653 /* confdefs.h.  */
21654 _ACEOF
21655 cat confdefs.h >>conftest.$ac_ext
21656 cat >>conftest.$ac_ext <<_ACEOF
21657 /* end confdefs.h.  */
21658 $ac_includes_default
21659 struct { char filler; long field; } pgac_struct;
21660 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21661 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21662 #include <stdio.h>
21663 #include <stdlib.h>
21664 int
21665 main ()
21666 {
21667
21668   FILE *f = fopen ("conftest.val", "w");
21669   if (! f)
21670     exit (1);
21671   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
21672     {
21673       long i = longval ();
21674       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21675         exit (1);
21676       fprintf (f, "%ld\n", i);
21677     }
21678   else
21679     {
21680       unsigned long i = ulongval ();
21681       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21682         exit (1);
21683       fprintf (f, "%lu\n", i);
21684     }
21685   exit (ferror (f) || fclose (f) != 0);
21686
21687   ;
21688   return 0;
21689 }
21690 _ACEOF
21691 rm -f conftest$ac_exeext
21692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21693   (eval $ac_link) 2>&5
21694   ac_status=$?
21695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21698   (eval $ac_try) 2>&5
21699   ac_status=$?
21700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701   (exit $ac_status); }; }; then
21702   pgac_cv_alignof_long=`cat conftest.val`
21703 else
21704   echo "$as_me: program exited with status $ac_status" >&5
21705 echo "$as_me: failed program was:" >&5
21706 sed 's/^/| /' conftest.$ac_ext >&5
21707
21708 ( exit $ac_status )
21709 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
21710 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
21711    { (exit 1); exit 1; }; }
21712 fi
21713 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21714 fi
21715 fi
21716 rm -f conftest.val
21717 else
21718   pgac_cv_alignof_long=0
21719 fi
21720 fi
21721 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
21722 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
21723 cat >>confdefs.h <<_ACEOF
21724 #define ALIGNOF_LONG $pgac_cv_alignof_long
21725 _ACEOF
21726
21727
21728 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
21729   echo "$as_me:$LINENO: checking for long long int" >&5
21730 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
21731 if test "${ac_cv_type_long_long_int+set}" = set; then
21732   echo $ECHO_N "(cached) $ECHO_C" >&6
21733 else
21734   cat >conftest.$ac_ext <<_ACEOF
21735 /* confdefs.h.  */
21736 _ACEOF
21737 cat confdefs.h >>conftest.$ac_ext
21738 cat >>conftest.$ac_ext <<_ACEOF
21739 /* end confdefs.h.  */
21740 $ac_includes_default
21741 int
21742 main ()
21743 {
21744 if ((long long int *) 0)
21745   return 0;
21746 if (sizeof (long long int))
21747   return 0;
21748   ;
21749   return 0;
21750 }
21751 _ACEOF
21752 rm -f conftest.$ac_objext
21753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21754   (eval $ac_compile) 2>conftest.er1
21755   ac_status=$?
21756   grep -v '^ *+' conftest.er1 >conftest.err
21757   rm -f conftest.er1
21758   cat conftest.err >&5
21759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760   (exit $ac_status); } &&
21761          { ac_try='test -z "$ac_c_werror_flag"
21762                          || test ! -s conftest.err'
21763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21764   (eval $ac_try) 2>&5
21765   ac_status=$?
21766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767   (exit $ac_status); }; } &&
21768          { ac_try='test -s conftest.$ac_objext'
21769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21770   (eval $ac_try) 2>&5
21771   ac_status=$?
21772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773   (exit $ac_status); }; }; then
21774   ac_cv_type_long_long_int=yes
21775 else
21776   echo "$as_me: failed program was:" >&5
21777 sed 's/^/| /' conftest.$ac_ext >&5
21778
21779 ac_cv_type_long_long_int=no
21780 fi
21781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21782 fi
21783 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
21784 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
21785
21786 echo "$as_me:$LINENO: checking alignment of long long int" >&5
21787 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
21788 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
21789   echo $ECHO_N "(cached) $ECHO_C" >&6
21790 else
21791   if test "$ac_cv_type_long_long_int" = yes; then
21792   if test "$cross_compiling" = yes; then
21793   # Depending upon the size, compute the lo and hi bounds.
21794 cat >conftest.$ac_ext <<_ACEOF
21795 /* confdefs.h.  */
21796 _ACEOF
21797 cat confdefs.h >>conftest.$ac_ext
21798 cat >>conftest.$ac_ext <<_ACEOF
21799 /* end confdefs.h.  */
21800 $ac_includes_default
21801 struct { char filler; long long int field; } pgac_struct;
21802 int
21803 main ()
21804 {
21805 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
21806 test_array [0] = 0
21807
21808   ;
21809   return 0;
21810 }
21811 _ACEOF
21812 rm -f conftest.$ac_objext
21813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21814   (eval $ac_compile) 2>conftest.er1
21815   ac_status=$?
21816   grep -v '^ *+' conftest.er1 >conftest.err
21817   rm -f conftest.er1
21818   cat conftest.err >&5
21819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820   (exit $ac_status); } &&
21821          { ac_try='test -z "$ac_c_werror_flag"
21822                          || test ! -s conftest.err'
21823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21824   (eval $ac_try) 2>&5
21825   ac_status=$?
21826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827   (exit $ac_status); }; } &&
21828          { ac_try='test -s conftest.$ac_objext'
21829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21830   (eval $ac_try) 2>&5
21831   ac_status=$?
21832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833   (exit $ac_status); }; }; then
21834   ac_lo=0 ac_mid=0
21835   while :; do
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 struct { char filler; long long int field; } pgac_struct;
21844 int
21845 main ()
21846 {
21847 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21848 test_array [0] = 0
21849
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_hi=$ac_mid; break
21877 else
21878   echo "$as_me: failed program was:" >&5
21879 sed 's/^/| /' conftest.$ac_ext >&5
21880
21881 ac_lo=`expr $ac_mid + 1`
21882                     if test $ac_lo -le $ac_mid; then
21883                       ac_lo= ac_hi=
21884                       break
21885                     fi
21886                     ac_mid=`expr 2 '*' $ac_mid + 1`
21887 fi
21888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21889   done
21890 else
21891   echo "$as_me: failed program was:" >&5
21892 sed 's/^/| /' conftest.$ac_ext >&5
21893
21894 cat >conftest.$ac_ext <<_ACEOF
21895 /* confdefs.h.  */
21896 _ACEOF
21897 cat confdefs.h >>conftest.$ac_ext
21898 cat >>conftest.$ac_ext <<_ACEOF
21899 /* end confdefs.h.  */
21900 $ac_includes_default
21901 struct { char filler; long long int field; } pgac_struct;
21902 int
21903 main ()
21904 {
21905 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
21906 test_array [0] = 0
21907
21908   ;
21909   return 0;
21910 }
21911 _ACEOF
21912 rm -f conftest.$ac_objext
21913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21914   (eval $ac_compile) 2>conftest.er1
21915   ac_status=$?
21916   grep -v '^ *+' conftest.er1 >conftest.err
21917   rm -f conftest.er1
21918   cat conftest.err >&5
21919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920   (exit $ac_status); } &&
21921          { ac_try='test -z "$ac_c_werror_flag"
21922                          || test ! -s conftest.err'
21923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21924   (eval $ac_try) 2>&5
21925   ac_status=$?
21926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927   (exit $ac_status); }; } &&
21928          { ac_try='test -s conftest.$ac_objext'
21929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21930   (eval $ac_try) 2>&5
21931   ac_status=$?
21932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933   (exit $ac_status); }; }; then
21934   ac_hi=-1 ac_mid=-1
21935   while :; do
21936     cat >conftest.$ac_ext <<_ACEOF
21937 /* confdefs.h.  */
21938 _ACEOF
21939 cat confdefs.h >>conftest.$ac_ext
21940 cat >>conftest.$ac_ext <<_ACEOF
21941 /* end confdefs.h.  */
21942 $ac_includes_default
21943 struct { char filler; long long int field; } pgac_struct;
21944 int
21945 main ()
21946 {
21947 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
21948 test_array [0] = 0
21949
21950   ;
21951   return 0;
21952 }
21953 _ACEOF
21954 rm -f conftest.$ac_objext
21955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21956   (eval $ac_compile) 2>conftest.er1
21957   ac_status=$?
21958   grep -v '^ *+' conftest.er1 >conftest.err
21959   rm -f conftest.er1
21960   cat conftest.err >&5
21961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962   (exit $ac_status); } &&
21963          { ac_try='test -z "$ac_c_werror_flag"
21964                          || test ! -s conftest.err'
21965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21966   (eval $ac_try) 2>&5
21967   ac_status=$?
21968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969   (exit $ac_status); }; } &&
21970          { ac_try='test -s conftest.$ac_objext'
21971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21972   (eval $ac_try) 2>&5
21973   ac_status=$?
21974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975   (exit $ac_status); }; }; then
21976   ac_lo=$ac_mid; break
21977 else
21978   echo "$as_me: failed program was:" >&5
21979 sed 's/^/| /' conftest.$ac_ext >&5
21980
21981 ac_hi=`expr '(' $ac_mid ')' - 1`
21982                        if test $ac_mid -le $ac_hi; then
21983                          ac_lo= ac_hi=
21984                          break
21985                        fi
21986                        ac_mid=`expr 2 '*' $ac_mid`
21987 fi
21988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21989   done
21990 else
21991   echo "$as_me: failed program was:" >&5
21992 sed 's/^/| /' conftest.$ac_ext >&5
21993
21994 ac_lo= ac_hi=
21995 fi
21996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21997 fi
21998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21999 # Binary search between lo and hi bounds.
22000 while test "x$ac_lo" != "x$ac_hi"; do
22001   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22002   cat >conftest.$ac_ext <<_ACEOF
22003 /* confdefs.h.  */
22004 _ACEOF
22005 cat confdefs.h >>conftest.$ac_ext
22006 cat >>conftest.$ac_ext <<_ACEOF
22007 /* end confdefs.h.  */
22008 $ac_includes_default
22009 struct { char filler; long long int field; } pgac_struct;
22010 int
22011 main ()
22012 {
22013 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
22014 test_array [0] = 0
22015
22016   ;
22017   return 0;
22018 }
22019 _ACEOF
22020 rm -f conftest.$ac_objext
22021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22022   (eval $ac_compile) 2>conftest.er1
22023   ac_status=$?
22024   grep -v '^ *+' conftest.er1 >conftest.err
22025   rm -f conftest.er1
22026   cat conftest.err >&5
22027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028   (exit $ac_status); } &&
22029          { ac_try='test -z "$ac_c_werror_flag"
22030                          || test ! -s conftest.err'
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); }; } &&
22036          { ac_try='test -s conftest.$ac_objext'
22037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22038   (eval $ac_try) 2>&5
22039   ac_status=$?
22040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041   (exit $ac_status); }; }; then
22042   ac_hi=$ac_mid
22043 else
22044   echo "$as_me: failed program was:" >&5
22045 sed 's/^/| /' conftest.$ac_ext >&5
22046
22047 ac_lo=`expr '(' $ac_mid ')' + 1`
22048 fi
22049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22050 done
22051 case $ac_lo in
22052 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
22053 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
22054 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
22055    { (exit 1); exit 1; }; } ;;
22056 esac
22057 else
22058   if test "$cross_compiling" = yes; then
22059   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22060 See \`config.log' for more details." >&5
22061 echo "$as_me: error: cannot run test program while cross compiling
22062 See \`config.log' for more details." >&2;}
22063    { (exit 1); exit 1; }; }
22064 else
22065   cat >conftest.$ac_ext <<_ACEOF
22066 /* confdefs.h.  */
22067 _ACEOF
22068 cat confdefs.h >>conftest.$ac_ext
22069 cat >>conftest.$ac_ext <<_ACEOF
22070 /* end confdefs.h.  */
22071 $ac_includes_default
22072 struct { char filler; long long int field; } pgac_struct;
22073 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
22074 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
22075 #include <stdio.h>
22076 #include <stdlib.h>
22077 int
22078 main ()
22079 {
22080
22081   FILE *f = fopen ("conftest.val", "w");
22082   if (! f)
22083     exit (1);
22084   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
22085     {
22086       long i = longval ();
22087       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
22088         exit (1);
22089       fprintf (f, "%ld\n", i);
22090     }
22091   else
22092     {
22093       unsigned long i = ulongval ();
22094       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
22095         exit (1);
22096       fprintf (f, "%lu\n", i);
22097     }
22098   exit (ferror (f) || fclose (f) != 0);
22099
22100   ;
22101   return 0;
22102 }
22103 _ACEOF
22104 rm -f conftest$ac_exeext
22105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22106   (eval $ac_link) 2>&5
22107   ac_status=$?
22108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22111   (eval $ac_try) 2>&5
22112   ac_status=$?
22113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114   (exit $ac_status); }; }; then
22115   pgac_cv_alignof_long_long_int=`cat conftest.val`
22116 else
22117   echo "$as_me: program exited with status $ac_status" >&5
22118 echo "$as_me: failed program was:" >&5
22119 sed 's/^/| /' conftest.$ac_ext >&5
22120
22121 ( exit $ac_status )
22122 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
22123 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
22124    { (exit 1); exit 1; }; }
22125 fi
22126 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22127 fi
22128 fi
22129 rm -f conftest.val
22130 else
22131   pgac_cv_alignof_long_long_int=0
22132 fi
22133 fi
22134 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
22135 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
22136 cat >>confdefs.h <<_ACEOF
22137 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
22138 _ACEOF
22139
22140
22141 fi
22142 echo "$as_me:$LINENO: checking for double" >&5
22143 echo $ECHO_N "checking for double... $ECHO_C" >&6
22144 if test "${ac_cv_type_double+set}" = set; then
22145   echo $ECHO_N "(cached) $ECHO_C" >&6
22146 else
22147   cat >conftest.$ac_ext <<_ACEOF
22148 /* confdefs.h.  */
22149 _ACEOF
22150 cat confdefs.h >>conftest.$ac_ext
22151 cat >>conftest.$ac_ext <<_ACEOF
22152 /* end confdefs.h.  */
22153 $ac_includes_default
22154 int
22155 main ()
22156 {
22157 if ((double *) 0)
22158   return 0;
22159 if (sizeof (double))
22160   return 0;
22161   ;
22162   return 0;
22163 }
22164 _ACEOF
22165 rm -f conftest.$ac_objext
22166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22167   (eval $ac_compile) 2>conftest.er1
22168   ac_status=$?
22169   grep -v '^ *+' conftest.er1 >conftest.err
22170   rm -f conftest.er1
22171   cat conftest.err >&5
22172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173   (exit $ac_status); } &&
22174          { ac_try='test -z "$ac_c_werror_flag"
22175                          || test ! -s conftest.err'
22176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22177   (eval $ac_try) 2>&5
22178   ac_status=$?
22179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180   (exit $ac_status); }; } &&
22181          { ac_try='test -s conftest.$ac_objext'
22182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22183   (eval $ac_try) 2>&5
22184   ac_status=$?
22185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186   (exit $ac_status); }; }; then
22187   ac_cv_type_double=yes
22188 else
22189   echo "$as_me: failed program was:" >&5
22190 sed 's/^/| /' conftest.$ac_ext >&5
22191
22192 ac_cv_type_double=no
22193 fi
22194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22195 fi
22196 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
22197 echo "${ECHO_T}$ac_cv_type_double" >&6
22198
22199 echo "$as_me:$LINENO: checking alignment of double" >&5
22200 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
22201 if test "${pgac_cv_alignof_double+set}" = set; then
22202   echo $ECHO_N "(cached) $ECHO_C" >&6
22203 else
22204   if test "$ac_cv_type_double" = yes; then
22205   if test "$cross_compiling" = yes; then
22206   # Depending upon the size, compute the lo and hi bounds.
22207 cat >conftest.$ac_ext <<_ACEOF
22208 /* confdefs.h.  */
22209 _ACEOF
22210 cat confdefs.h >>conftest.$ac_ext
22211 cat >>conftest.$ac_ext <<_ACEOF
22212 /* end confdefs.h.  */
22213 $ac_includes_default
22214 struct { char filler; double field; } pgac_struct;
22215 int
22216 main ()
22217 {
22218 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
22219 test_array [0] = 0
22220
22221   ;
22222   return 0;
22223 }
22224 _ACEOF
22225 rm -f conftest.$ac_objext
22226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22227   (eval $ac_compile) 2>conftest.er1
22228   ac_status=$?
22229   grep -v '^ *+' conftest.er1 >conftest.err
22230   rm -f conftest.er1
22231   cat conftest.err >&5
22232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233   (exit $ac_status); } &&
22234          { ac_try='test -z "$ac_c_werror_flag"
22235                          || test ! -s conftest.err'
22236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22237   (eval $ac_try) 2>&5
22238   ac_status=$?
22239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240   (exit $ac_status); }; } &&
22241          { ac_try='test -s conftest.$ac_objext'
22242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22243   (eval $ac_try) 2>&5
22244   ac_status=$?
22245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246   (exit $ac_status); }; }; then
22247   ac_lo=0 ac_mid=0
22248   while :; do
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 struct { char filler; double field; } pgac_struct;
22257 int
22258 main ()
22259 {
22260 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
22261 test_array [0] = 0
22262
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_hi=$ac_mid; break
22290 else
22291   echo "$as_me: failed program was:" >&5
22292 sed 's/^/| /' conftest.$ac_ext >&5
22293
22294 ac_lo=`expr $ac_mid + 1`
22295                     if test $ac_lo -le $ac_mid; then
22296                       ac_lo= ac_hi=
22297                       break
22298                     fi
22299                     ac_mid=`expr 2 '*' $ac_mid + 1`
22300 fi
22301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22302   done
22303 else
22304   echo "$as_me: failed program was:" >&5
22305 sed 's/^/| /' conftest.$ac_ext >&5
22306
22307 cat >conftest.$ac_ext <<_ACEOF
22308 /* confdefs.h.  */
22309 _ACEOF
22310 cat confdefs.h >>conftest.$ac_ext
22311 cat >>conftest.$ac_ext <<_ACEOF
22312 /* end confdefs.h.  */
22313 $ac_includes_default
22314 struct { char filler; double field; } pgac_struct;
22315 int
22316 main ()
22317 {
22318 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
22319 test_array [0] = 0
22320
22321   ;
22322   return 0;
22323 }
22324 _ACEOF
22325 rm -f conftest.$ac_objext
22326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22327   (eval $ac_compile) 2>conftest.er1
22328   ac_status=$?
22329   grep -v '^ *+' conftest.er1 >conftest.err
22330   rm -f conftest.er1
22331   cat conftest.err >&5
22332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333   (exit $ac_status); } &&
22334          { ac_try='test -z "$ac_c_werror_flag"
22335                          || test ! -s conftest.err'
22336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22337   (eval $ac_try) 2>&5
22338   ac_status=$?
22339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340   (exit $ac_status); }; } &&
22341          { ac_try='test -s conftest.$ac_objext'
22342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22343   (eval $ac_try) 2>&5
22344   ac_status=$?
22345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346   (exit $ac_status); }; }; then
22347   ac_hi=-1 ac_mid=-1
22348   while :; do
22349     cat >conftest.$ac_ext <<_ACEOF
22350 /* confdefs.h.  */
22351 _ACEOF
22352 cat confdefs.h >>conftest.$ac_ext
22353 cat >>conftest.$ac_ext <<_ACEOF
22354 /* end confdefs.h.  */
22355 $ac_includes_default
22356 struct { char filler; double field; } pgac_struct;
22357 int
22358 main ()
22359 {
22360 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
22361 test_array [0] = 0
22362
22363   ;
22364   return 0;
22365 }
22366 _ACEOF
22367 rm -f conftest.$ac_objext
22368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22369   (eval $ac_compile) 2>conftest.er1
22370   ac_status=$?
22371   grep -v '^ *+' conftest.er1 >conftest.err
22372   rm -f conftest.er1
22373   cat conftest.err >&5
22374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375   (exit $ac_status); } &&
22376          { ac_try='test -z "$ac_c_werror_flag"
22377                          || test ! -s conftest.err'
22378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22379   (eval $ac_try) 2>&5
22380   ac_status=$?
22381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382   (exit $ac_status); }; } &&
22383          { ac_try='test -s conftest.$ac_objext'
22384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22385   (eval $ac_try) 2>&5
22386   ac_status=$?
22387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388   (exit $ac_status); }; }; then
22389   ac_lo=$ac_mid; break
22390 else
22391   echo "$as_me: failed program was:" >&5
22392 sed 's/^/| /' conftest.$ac_ext >&5
22393
22394 ac_hi=`expr '(' $ac_mid ')' - 1`
22395                        if test $ac_mid -le $ac_hi; then
22396                          ac_lo= ac_hi=
22397                          break
22398                        fi
22399                        ac_mid=`expr 2 '*' $ac_mid`
22400 fi
22401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22402   done
22403 else
22404   echo "$as_me: failed program was:" >&5
22405 sed 's/^/| /' conftest.$ac_ext >&5
22406
22407 ac_lo= ac_hi=
22408 fi
22409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22410 fi
22411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22412 # Binary search between lo and hi bounds.
22413 while test "x$ac_lo" != "x$ac_hi"; do
22414   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22415   cat >conftest.$ac_ext <<_ACEOF
22416 /* confdefs.h.  */
22417 _ACEOF
22418 cat confdefs.h >>conftest.$ac_ext
22419 cat >>conftest.$ac_ext <<_ACEOF
22420 /* end confdefs.h.  */
22421 $ac_includes_default
22422 struct { char filler; double field; } pgac_struct;
22423 int
22424 main ()
22425 {
22426 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
22427 test_array [0] = 0
22428
22429   ;
22430   return 0;
22431 }
22432 _ACEOF
22433 rm -f conftest.$ac_objext
22434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22435   (eval $ac_compile) 2>conftest.er1
22436   ac_status=$?
22437   grep -v '^ *+' conftest.er1 >conftest.err
22438   rm -f conftest.er1
22439   cat conftest.err >&5
22440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441   (exit $ac_status); } &&
22442          { ac_try='test -z "$ac_c_werror_flag"
22443                          || test ! -s conftest.err'
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); }; } &&
22449          { ac_try='test -s conftest.$ac_objext'
22450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22451   (eval $ac_try) 2>&5
22452   ac_status=$?
22453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454   (exit $ac_status); }; }; then
22455   ac_hi=$ac_mid
22456 else
22457   echo "$as_me: failed program was:" >&5
22458 sed 's/^/| /' conftest.$ac_ext >&5
22459
22460 ac_lo=`expr '(' $ac_mid ')' + 1`
22461 fi
22462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22463 done
22464 case $ac_lo in
22465 ?*) pgac_cv_alignof_double=$ac_lo;;
22466 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
22467 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
22468    { (exit 1); exit 1; }; } ;;
22469 esac
22470 else
22471   if test "$cross_compiling" = yes; then
22472   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22473 See \`config.log' for more details." >&5
22474 echo "$as_me: error: cannot run test program while cross compiling
22475 See \`config.log' for more details." >&2;}
22476    { (exit 1); exit 1; }; }
22477 else
22478   cat >conftest.$ac_ext <<_ACEOF
22479 /* confdefs.h.  */
22480 _ACEOF
22481 cat confdefs.h >>conftest.$ac_ext
22482 cat >>conftest.$ac_ext <<_ACEOF
22483 /* end confdefs.h.  */
22484 $ac_includes_default
22485 struct { char filler; double field; } pgac_struct;
22486 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
22487 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
22488 #include <stdio.h>
22489 #include <stdlib.h>
22490 int
22491 main ()
22492 {
22493
22494   FILE *f = fopen ("conftest.val", "w");
22495   if (! f)
22496     exit (1);
22497   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
22498     {
22499       long i = longval ();
22500       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
22501         exit (1);
22502       fprintf (f, "%ld\n", i);
22503     }
22504   else
22505     {
22506       unsigned long i = ulongval ();
22507       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
22508         exit (1);
22509       fprintf (f, "%lu\n", i);
22510     }
22511   exit (ferror (f) || fclose (f) != 0);
22512
22513   ;
22514   return 0;
22515 }
22516 _ACEOF
22517 rm -f conftest$ac_exeext
22518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22519   (eval $ac_link) 2>&5
22520   ac_status=$?
22521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22524   (eval $ac_try) 2>&5
22525   ac_status=$?
22526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527   (exit $ac_status); }; }; then
22528   pgac_cv_alignof_double=`cat conftest.val`
22529 else
22530   echo "$as_me: program exited with status $ac_status" >&5
22531 echo "$as_me: failed program was:" >&5
22532 sed 's/^/| /' conftest.$ac_ext >&5
22533
22534 ( exit $ac_status )
22535 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
22536 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
22537    { (exit 1); exit 1; }; }
22538 fi
22539 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22540 fi
22541 fi
22542 rm -f conftest.val
22543 else
22544   pgac_cv_alignof_double=0
22545 fi
22546 fi
22547 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
22548 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
22549 cat >>confdefs.h <<_ACEOF
22550 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
22551 _ACEOF
22552
22553
22554
22555 # Compute maximum alignment of any basic type.
22556 # We assume long's alignment is at least as strong as char, short, or int;
22557 # but we must check long long (if it exists) and double.
22558
22559 MAX_ALIGNOF=$pgac_cv_alignof_long
22560 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
22561   MAX_ALIGNOF=$pgac_cv_alignof_double
22562 fi
22563 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
22564   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
22565 fi
22566
22567 cat >>confdefs.h <<_ACEOF
22568 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
22569 _ACEOF
22570
22571
22572
22573 # Some platforms predefine the types int8, int16, etc.  Only check
22574 # a (hopefully) representative subset.
22575 echo "$as_me:$LINENO: checking for int8" >&5
22576 echo $ECHO_N "checking for int8... $ECHO_C" >&6
22577 if test "${ac_cv_type_int8+set}" = set; then
22578   echo $ECHO_N "(cached) $ECHO_C" >&6
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 #include <stdio.h>
22587 #ifdef HAVE_SUPPORTDEFS_H
22588 #include <SupportDefs.h>
22589 #endif
22590
22591 int
22592 main ()
22593 {
22594 if ((int8 *) 0)
22595   return 0;
22596 if (sizeof (int8))
22597   return 0;
22598   ;
22599   return 0;
22600 }
22601 _ACEOF
22602 rm -f conftest.$ac_objext
22603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22604   (eval $ac_compile) 2>conftest.er1
22605   ac_status=$?
22606   grep -v '^ *+' conftest.er1 >conftest.err
22607   rm -f conftest.er1
22608   cat conftest.err >&5
22609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610   (exit $ac_status); } &&
22611          { ac_try='test -z "$ac_c_werror_flag"
22612                          || test ! -s conftest.err'
22613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22614   (eval $ac_try) 2>&5
22615   ac_status=$?
22616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617   (exit $ac_status); }; } &&
22618          { ac_try='test -s conftest.$ac_objext'
22619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22620   (eval $ac_try) 2>&5
22621   ac_status=$?
22622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623   (exit $ac_status); }; }; then
22624   ac_cv_type_int8=yes
22625 else
22626   echo "$as_me: failed program was:" >&5
22627 sed 's/^/| /' conftest.$ac_ext >&5
22628
22629 ac_cv_type_int8=no
22630 fi
22631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22632 fi
22633 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
22634 echo "${ECHO_T}$ac_cv_type_int8" >&6
22635 if test $ac_cv_type_int8 = yes; then
22636
22637 cat >>confdefs.h <<_ACEOF
22638 #define HAVE_INT8 1
22639 _ACEOF
22640
22641
22642 fi
22643 echo "$as_me:$LINENO: checking for uint8" >&5
22644 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
22645 if test "${ac_cv_type_uint8+set}" = set; then
22646   echo $ECHO_N "(cached) $ECHO_C" >&6
22647 else
22648   cat >conftest.$ac_ext <<_ACEOF
22649 /* confdefs.h.  */
22650 _ACEOF
22651 cat confdefs.h >>conftest.$ac_ext
22652 cat >>conftest.$ac_ext <<_ACEOF
22653 /* end confdefs.h.  */
22654 #include <stdio.h>
22655 #ifdef HAVE_SUPPORTDEFS_H
22656 #include <SupportDefs.h>
22657 #endif
22658
22659 int
22660 main ()
22661 {
22662 if ((uint8 *) 0)
22663   return 0;
22664 if (sizeof (uint8))
22665   return 0;
22666   ;
22667   return 0;
22668 }
22669 _ACEOF
22670 rm -f conftest.$ac_objext
22671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22672   (eval $ac_compile) 2>conftest.er1
22673   ac_status=$?
22674   grep -v '^ *+' conftest.er1 >conftest.err
22675   rm -f conftest.er1
22676   cat conftest.err >&5
22677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678   (exit $ac_status); } &&
22679          { ac_try='test -z "$ac_c_werror_flag"
22680                          || test ! -s conftest.err'
22681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22682   (eval $ac_try) 2>&5
22683   ac_status=$?
22684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685   (exit $ac_status); }; } &&
22686          { ac_try='test -s conftest.$ac_objext'
22687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22688   (eval $ac_try) 2>&5
22689   ac_status=$?
22690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691   (exit $ac_status); }; }; then
22692   ac_cv_type_uint8=yes
22693 else
22694   echo "$as_me: failed program was:" >&5
22695 sed 's/^/| /' conftest.$ac_ext >&5
22696
22697 ac_cv_type_uint8=no
22698 fi
22699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22700 fi
22701 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
22702 echo "${ECHO_T}$ac_cv_type_uint8" >&6
22703 if test $ac_cv_type_uint8 = yes; then
22704
22705 cat >>confdefs.h <<_ACEOF
22706 #define HAVE_UINT8 1
22707 _ACEOF
22708
22709
22710 fi
22711 echo "$as_me:$LINENO: checking for int64" >&5
22712 echo $ECHO_N "checking for int64... $ECHO_C" >&6
22713 if test "${ac_cv_type_int64+set}" = set; then
22714   echo $ECHO_N "(cached) $ECHO_C" >&6
22715 else
22716   cat >conftest.$ac_ext <<_ACEOF
22717 /* confdefs.h.  */
22718 _ACEOF
22719 cat confdefs.h >>conftest.$ac_ext
22720 cat >>conftest.$ac_ext <<_ACEOF
22721 /* end confdefs.h.  */
22722 #include <stdio.h>
22723 #ifdef HAVE_SUPPORTDEFS_H
22724 #include <SupportDefs.h>
22725 #endif
22726
22727 int
22728 main ()
22729 {
22730 if ((int64 *) 0)
22731   return 0;
22732 if (sizeof (int64))
22733   return 0;
22734   ;
22735   return 0;
22736 }
22737 _ACEOF
22738 rm -f conftest.$ac_objext
22739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22740   (eval $ac_compile) 2>conftest.er1
22741   ac_status=$?
22742   grep -v '^ *+' conftest.er1 >conftest.err
22743   rm -f conftest.er1
22744   cat conftest.err >&5
22745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746   (exit $ac_status); } &&
22747          { ac_try='test -z "$ac_c_werror_flag"
22748                          || test ! -s conftest.err'
22749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22750   (eval $ac_try) 2>&5
22751   ac_status=$?
22752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753   (exit $ac_status); }; } &&
22754          { ac_try='test -s conftest.$ac_objext'
22755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22756   (eval $ac_try) 2>&5
22757   ac_status=$?
22758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759   (exit $ac_status); }; }; then
22760   ac_cv_type_int64=yes
22761 else
22762   echo "$as_me: failed program was:" >&5
22763 sed 's/^/| /' conftest.$ac_ext >&5
22764
22765 ac_cv_type_int64=no
22766 fi
22767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22768 fi
22769 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
22770 echo "${ECHO_T}$ac_cv_type_int64" >&6
22771 if test $ac_cv_type_int64 = yes; then
22772
22773 cat >>confdefs.h <<_ACEOF
22774 #define HAVE_INT64 1
22775 _ACEOF
22776
22777
22778 fi
22779 echo "$as_me:$LINENO: checking for uint64" >&5
22780 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
22781 if test "${ac_cv_type_uint64+set}" = set; then
22782   echo $ECHO_N "(cached) $ECHO_C" >&6
22783 else
22784   cat >conftest.$ac_ext <<_ACEOF
22785 /* confdefs.h.  */
22786 _ACEOF
22787 cat confdefs.h >>conftest.$ac_ext
22788 cat >>conftest.$ac_ext <<_ACEOF
22789 /* end confdefs.h.  */
22790 #include <stdio.h>
22791 #ifdef HAVE_SUPPORTDEFS_H
22792 #include <SupportDefs.h>
22793 #endif
22794
22795 int
22796 main ()
22797 {
22798 if ((uint64 *) 0)
22799   return 0;
22800 if (sizeof (uint64))
22801   return 0;
22802   ;
22803   return 0;
22804 }
22805 _ACEOF
22806 rm -f conftest.$ac_objext
22807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22808   (eval $ac_compile) 2>conftest.er1
22809   ac_status=$?
22810   grep -v '^ *+' conftest.er1 >conftest.err
22811   rm -f conftest.er1
22812   cat conftest.err >&5
22813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814   (exit $ac_status); } &&
22815          { ac_try='test -z "$ac_c_werror_flag"
22816                          || test ! -s conftest.err'
22817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22818   (eval $ac_try) 2>&5
22819   ac_status=$?
22820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821   (exit $ac_status); }; } &&
22822          { ac_try='test -s conftest.$ac_objext'
22823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22824   (eval $ac_try) 2>&5
22825   ac_status=$?
22826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827   (exit $ac_status); }; }; then
22828   ac_cv_type_uint64=yes
22829 else
22830   echo "$as_me: failed program was:" >&5
22831 sed 's/^/| /' conftest.$ac_ext >&5
22832
22833 ac_cv_type_uint64=no
22834 fi
22835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22836 fi
22837 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
22838 echo "${ECHO_T}$ac_cv_type_uint64" >&6
22839 if test $ac_cv_type_uint64 = yes; then
22840
22841 cat >>confdefs.h <<_ACEOF
22842 #define HAVE_UINT64 1
22843 _ACEOF
22844
22845
22846 fi
22847
22848
22849 # We also check for sig_atomic_t, which *should* be defined per ANSI
22850 # C, but is missing on some old platforms.
22851 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
22852 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
22853 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
22854   echo $ECHO_N "(cached) $ECHO_C" >&6
22855 else
22856   cat >conftest.$ac_ext <<_ACEOF
22857 /* confdefs.h.  */
22858 _ACEOF
22859 cat confdefs.h >>conftest.$ac_ext
22860 cat >>conftest.$ac_ext <<_ACEOF
22861 /* end confdefs.h.  */
22862 #include <signal.h>
22863
22864 int
22865 main ()
22866 {
22867 if ((sig_atomic_t *) 0)
22868   return 0;
22869 if (sizeof (sig_atomic_t))
22870   return 0;
22871   ;
22872   return 0;
22873 }
22874 _ACEOF
22875 rm -f conftest.$ac_objext
22876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22877   (eval $ac_compile) 2>conftest.er1
22878   ac_status=$?
22879   grep -v '^ *+' conftest.er1 >conftest.err
22880   rm -f conftest.er1
22881   cat conftest.err >&5
22882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883   (exit $ac_status); } &&
22884          { ac_try='test -z "$ac_c_werror_flag"
22885                          || test ! -s conftest.err'
22886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22887   (eval $ac_try) 2>&5
22888   ac_status=$?
22889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890   (exit $ac_status); }; } &&
22891          { ac_try='test -s conftest.$ac_objext'
22892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22893   (eval $ac_try) 2>&5
22894   ac_status=$?
22895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896   (exit $ac_status); }; }; then
22897   ac_cv_type_sig_atomic_t=yes
22898 else
22899   echo "$as_me: failed program was:" >&5
22900 sed 's/^/| /' conftest.$ac_ext >&5
22901
22902 ac_cv_type_sig_atomic_t=no
22903 fi
22904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22905 fi
22906 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
22907 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
22908 if test $ac_cv_type_sig_atomic_t = yes; then
22909
22910 cat >>confdefs.h <<_ACEOF
22911 #define HAVE_SIG_ATOMIC_T 1
22912 _ACEOF
22913
22914
22915 fi
22916
22917
22918
22919 if test "$PORTNAME" != "win32"
22920 then
22921 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
22922 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
22923 if test "${pgac_cv_func_posix_signals+set}" = set; then
22924   echo $ECHO_N "(cached) $ECHO_C" >&6
22925 else
22926   cat >conftest.$ac_ext <<_ACEOF
22927 /* confdefs.h.  */
22928 _ACEOF
22929 cat confdefs.h >>conftest.$ac_ext
22930 cat >>conftest.$ac_ext <<_ACEOF
22931 /* end confdefs.h.  */
22932 #include <signal.h>
22933
22934 int
22935 main ()
22936 {
22937 struct sigaction act, oact;
22938 sigemptyset(&act.sa_mask);
22939 act.sa_flags = SA_RESTART;
22940 sigaction(0, &act, &oact);
22941   ;
22942   return 0;
22943 }
22944 _ACEOF
22945 rm -f conftest.$ac_objext conftest$ac_exeext
22946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22947   (eval $ac_link) 2>conftest.er1
22948   ac_status=$?
22949   grep -v '^ *+' conftest.er1 >conftest.err
22950   rm -f conftest.er1
22951   cat conftest.err >&5
22952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953   (exit $ac_status); } &&
22954          { ac_try='test -z "$ac_c_werror_flag"
22955                          || test ! -s conftest.err'
22956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22957   (eval $ac_try) 2>&5
22958   ac_status=$?
22959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960   (exit $ac_status); }; } &&
22961          { ac_try='test -s conftest$ac_exeext'
22962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22963   (eval $ac_try) 2>&5
22964   ac_status=$?
22965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22966   (exit $ac_status); }; }; then
22967   pgac_cv_func_posix_signals=yes
22968 else
22969   echo "$as_me: failed program was:" >&5
22970 sed 's/^/| /' conftest.$ac_ext >&5
22971
22972 pgac_cv_func_posix_signals=no
22973 fi
22974 rm -f conftest.err conftest.$ac_objext \
22975       conftest$ac_exeext conftest.$ac_ext
22976 fi
22977 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
22978 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
22979 if test x"$pgac_cv_func_posix_signals" = xyes ; then
22980
22981 cat >>confdefs.h <<\_ACEOF
22982 #define HAVE_POSIX_SIGNALS
22983 _ACEOF
22984
22985 fi
22986 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
22987
22988 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
22989   { { echo "$as_me:$LINENO: error:
22990 Thread-safety requires POSIX signals, which are not supported by this
22991 operating system." >&5
22992 echo "$as_me: error:
22993 Thread-safety requires POSIX signals, which are not supported by this
22994 operating system." >&2;}
22995    { (exit 1); exit 1; }; }
22996 fi
22997 fi
22998
22999 if test $ac_cv_func_fseeko = yes; then
23000 # Check whether --enable-largefile or --disable-largefile was given.
23001 if test "${enable_largefile+set}" = set; then
23002   enableval="$enable_largefile"
23003
23004 fi;
23005 if test "$enable_largefile" != no; then
23006
23007   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
23008 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
23009 if test "${ac_cv_sys_largefile_CC+set}" = set; then
23010   echo $ECHO_N "(cached) $ECHO_C" >&6
23011 else
23012   ac_cv_sys_largefile_CC=no
23013      if test "$GCC" != yes; then
23014        ac_save_CC=$CC
23015        while :; do
23016          # IRIX 6.2 and later do not support large files by default,
23017          # so use the C compiler's -n32 option if that helps.
23018          cat >conftest.$ac_ext <<_ACEOF
23019 /* confdefs.h.  */
23020 _ACEOF
23021 cat confdefs.h >>conftest.$ac_ext
23022 cat >>conftest.$ac_ext <<_ACEOF
23023 /* end confdefs.h.  */
23024 #include <sys/types.h>
23025  /* Check that off_t can represent 2**63 - 1 correctly.
23026     We can't simply define LARGE_OFF_T to be 9223372036854775807,
23027     since some C++ compilers masquerading as C compilers
23028     incorrectly reject 9223372036854775807.  */
23029 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23030   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23031                        && LARGE_OFF_T % 2147483647 == 1)
23032                       ? 1 : -1];
23033 int
23034 main ()
23035 {
23036
23037   ;
23038   return 0;
23039 }
23040 _ACEOF
23041          rm -f conftest.$ac_objext
23042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23043   (eval $ac_compile) 2>conftest.er1
23044   ac_status=$?
23045   grep -v '^ *+' conftest.er1 >conftest.err
23046   rm -f conftest.er1
23047   cat conftest.err >&5
23048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23049   (exit $ac_status); } &&
23050          { ac_try='test -z "$ac_c_werror_flag"
23051                          || test ! -s conftest.err'
23052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23053   (eval $ac_try) 2>&5
23054   ac_status=$?
23055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056   (exit $ac_status); }; } &&
23057          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
23063   break
23064 else
23065   echo "$as_me: failed program was:" >&5
23066 sed 's/^/| /' conftest.$ac_ext >&5
23067
23068 fi
23069 rm -f conftest.err conftest.$ac_objext
23070          CC="$CC -n32"
23071          rm -f conftest.$ac_objext
23072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23073   (eval $ac_compile) 2>conftest.er1
23074   ac_status=$?
23075   grep -v '^ *+' conftest.er1 >conftest.err
23076   rm -f conftest.er1
23077   cat conftest.err >&5
23078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079   (exit $ac_status); } &&
23080          { ac_try='test -z "$ac_c_werror_flag"
23081                          || test ! -s conftest.err'
23082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23083   (eval $ac_try) 2>&5
23084   ac_status=$?
23085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086   (exit $ac_status); }; } &&
23087          { ac_try='test -s conftest.$ac_objext'
23088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23089   (eval $ac_try) 2>&5
23090   ac_status=$?
23091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092   (exit $ac_status); }; }; then
23093   ac_cv_sys_largefile_CC=' -n32'; break
23094 else
23095   echo "$as_me: failed program was:" >&5
23096 sed 's/^/| /' conftest.$ac_ext >&5
23097
23098 fi
23099 rm -f conftest.err conftest.$ac_objext
23100          break
23101        done
23102        CC=$ac_save_CC
23103        rm -f conftest.$ac_ext
23104     fi
23105 fi
23106 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
23107 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
23108   if test "$ac_cv_sys_largefile_CC" != no; then
23109     CC=$CC$ac_cv_sys_largefile_CC
23110   fi
23111
23112   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23113 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
23114 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23115   echo $ECHO_N "(cached) $ECHO_C" >&6
23116 else
23117   while :; do
23118   ac_cv_sys_file_offset_bits=no
23119   cat >conftest.$ac_ext <<_ACEOF
23120 /* confdefs.h.  */
23121 _ACEOF
23122 cat confdefs.h >>conftest.$ac_ext
23123 cat >>conftest.$ac_ext <<_ACEOF
23124 /* end confdefs.h.  */
23125 #include <sys/types.h>
23126  /* Check that off_t can represent 2**63 - 1 correctly.
23127     We can't simply define LARGE_OFF_T to be 9223372036854775807,
23128     since some C++ compilers masquerading as C compilers
23129     incorrectly reject 9223372036854775807.  */
23130 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23131   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23132                        && LARGE_OFF_T % 2147483647 == 1)
23133                       ? 1 : -1];
23134 int
23135 main ()
23136 {
23137
23138   ;
23139   return 0;
23140 }
23141 _ACEOF
23142 rm -f conftest.$ac_objext
23143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23144   (eval $ac_compile) 2>conftest.er1
23145   ac_status=$?
23146   grep -v '^ *+' conftest.er1 >conftest.err
23147   rm -f conftest.er1
23148   cat conftest.err >&5
23149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150   (exit $ac_status); } &&
23151          { ac_try='test -z "$ac_c_werror_flag"
23152                          || test ! -s conftest.err'
23153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23154   (eval $ac_try) 2>&5
23155   ac_status=$?
23156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157   (exit $ac_status); }; } &&
23158          { ac_try='test -s conftest.$ac_objext'
23159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23160   (eval $ac_try) 2>&5
23161   ac_status=$?
23162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163   (exit $ac_status); }; }; then
23164   break
23165 else
23166   echo "$as_me: failed program was:" >&5
23167 sed 's/^/| /' conftest.$ac_ext >&5
23168
23169 fi
23170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23171   cat >conftest.$ac_ext <<_ACEOF
23172 /* confdefs.h.  */
23173 _ACEOF
23174 cat confdefs.h >>conftest.$ac_ext
23175 cat >>conftest.$ac_ext <<_ACEOF
23176 /* end confdefs.h.  */
23177 #define _FILE_OFFSET_BITS 64
23178 #include <sys/types.h>
23179  /* Check that off_t can represent 2**63 - 1 correctly.
23180     We can't simply define LARGE_OFF_T to be 9223372036854775807,
23181     since some C++ compilers masquerading as C compilers
23182     incorrectly reject 9223372036854775807.  */
23183 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23184   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23185                        && LARGE_OFF_T % 2147483647 == 1)
23186                       ? 1 : -1];
23187 int
23188 main ()
23189 {
23190
23191   ;
23192   return 0;
23193 }
23194 _ACEOF
23195 rm -f conftest.$ac_objext
23196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23197   (eval $ac_compile) 2>conftest.er1
23198   ac_status=$?
23199   grep -v '^ *+' conftest.er1 >conftest.err
23200   rm -f conftest.er1
23201   cat conftest.err >&5
23202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203   (exit $ac_status); } &&
23204          { ac_try='test -z "$ac_c_werror_flag"
23205                          || test ! -s conftest.err'
23206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23207   (eval $ac_try) 2>&5
23208   ac_status=$?
23209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210   (exit $ac_status); }; } &&
23211          { ac_try='test -s conftest.$ac_objext'
23212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23213   (eval $ac_try) 2>&5
23214   ac_status=$?
23215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216   (exit $ac_status); }; }; then
23217   ac_cv_sys_file_offset_bits=64; break
23218 else
23219   echo "$as_me: failed program was:" >&5
23220 sed 's/^/| /' conftest.$ac_ext >&5
23221
23222 fi
23223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23224   break
23225 done
23226 fi
23227 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
23228 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
23229 if test "$ac_cv_sys_file_offset_bits" != no; then
23230
23231 cat >>confdefs.h <<_ACEOF
23232 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23233 _ACEOF
23234
23235 fi
23236 rm -f conftest*
23237   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
23238 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
23239 if test "${ac_cv_sys_large_files+set}" = set; then
23240   echo $ECHO_N "(cached) $ECHO_C" >&6
23241 else
23242   while :; do
23243   ac_cv_sys_large_files=no
23244   cat >conftest.$ac_ext <<_ACEOF
23245 /* confdefs.h.  */
23246 _ACEOF
23247 cat confdefs.h >>conftest.$ac_ext
23248 cat >>conftest.$ac_ext <<_ACEOF
23249 /* end confdefs.h.  */
23250 #include <sys/types.h>
23251  /* Check that off_t can represent 2**63 - 1 correctly.
23252     We can't simply define LARGE_OFF_T to be 9223372036854775807,
23253     since some C++ compilers masquerading as C compilers
23254     incorrectly reject 9223372036854775807.  */
23255 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23256   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23257                        && LARGE_OFF_T % 2147483647 == 1)
23258                       ? 1 : -1];
23259 int
23260 main ()
23261 {
23262
23263   ;
23264   return 0;
23265 }
23266 _ACEOF
23267 rm -f conftest.$ac_objext
23268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23269   (eval $ac_compile) 2>conftest.er1
23270   ac_status=$?
23271   grep -v '^ *+' conftest.er1 >conftest.err
23272   rm -f conftest.er1
23273   cat conftest.err >&5
23274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275   (exit $ac_status); } &&
23276          { ac_try='test -z "$ac_c_werror_flag"
23277                          || test ! -s conftest.err'
23278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23279   (eval $ac_try) 2>&5
23280   ac_status=$?
23281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23282   (exit $ac_status); }; } &&
23283          { ac_try='test -s conftest.$ac_objext'
23284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23285   (eval $ac_try) 2>&5
23286   ac_status=$?
23287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288   (exit $ac_status); }; }; then
23289   break
23290 else
23291   echo "$as_me: failed program was:" >&5
23292 sed 's/^/| /' conftest.$ac_ext >&5
23293
23294 fi
23295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23296   cat >conftest.$ac_ext <<_ACEOF
23297 /* confdefs.h.  */
23298 _ACEOF
23299 cat confdefs.h >>conftest.$ac_ext
23300 cat >>conftest.$ac_ext <<_ACEOF
23301 /* end confdefs.h.  */
23302 #define _LARGE_FILES 1
23303 #include <sys/types.h>
23304  /* Check that off_t can represent 2**63 - 1 correctly.
23305     We can't simply define LARGE_OFF_T to be 9223372036854775807,
23306     since some C++ compilers masquerading as C compilers
23307     incorrectly reject 9223372036854775807.  */
23308 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23309   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23310                        && LARGE_OFF_T % 2147483647 == 1)
23311                       ? 1 : -1];
23312 int
23313 main ()
23314 {
23315
23316   ;
23317   return 0;
23318 }
23319 _ACEOF
23320 rm -f conftest.$ac_objext
23321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23322   (eval $ac_compile) 2>conftest.er1
23323   ac_status=$?
23324   grep -v '^ *+' conftest.er1 >conftest.err
23325   rm -f conftest.er1
23326   cat conftest.err >&5
23327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328   (exit $ac_status); } &&
23329          { ac_try='test -z "$ac_c_werror_flag"
23330                          || test ! -s conftest.err'
23331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23332   (eval $ac_try) 2>&5
23333   ac_status=$?
23334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335   (exit $ac_status); }; } &&
23336          { ac_try='test -s conftest.$ac_objext'
23337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23338   (eval $ac_try) 2>&5
23339   ac_status=$?
23340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23341   (exit $ac_status); }; }; then
23342   ac_cv_sys_large_files=1; break
23343 else
23344   echo "$as_me: failed program was:" >&5
23345 sed 's/^/| /' conftest.$ac_ext >&5
23346
23347 fi
23348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23349   break
23350 done
23351 fi
23352 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
23353 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
23354 if test "$ac_cv_sys_large_files" != no; then
23355
23356 cat >>confdefs.h <<_ACEOF
23357 #define _LARGE_FILES $ac_cv_sys_large_files
23358 _ACEOF
23359
23360 fi
23361 rm -f conftest*
23362 fi
23363
23364 fi
23365
23366 # SunOS doesn't handle negative byte comparisons properly with +/- return
23367 echo "$as_me:$LINENO: checking for working memcmp" >&5
23368 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
23369 if test "${ac_cv_func_memcmp_working+set}" = set; then
23370   echo $ECHO_N "(cached) $ECHO_C" >&6
23371 else
23372   if test "$cross_compiling" = yes; then
23373   ac_cv_func_memcmp_working=no
23374 else
23375   cat >conftest.$ac_ext <<_ACEOF
23376 /* confdefs.h.  */
23377 _ACEOF
23378 cat confdefs.h >>conftest.$ac_ext
23379 cat >>conftest.$ac_ext <<_ACEOF
23380 /* end confdefs.h.  */
23381 $ac_includes_default
23382 int
23383 main ()
23384 {
23385
23386   /* Some versions of memcmp are not 8-bit clean.  */
23387   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
23388   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23389     exit (1);
23390
23391   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23392      or more and with at least one buffer not starting on a 4-byte boundary.
23393      William Lewis provided this test program.   */
23394   {
23395     char foo[21];
23396     char bar[21];
23397     int i;
23398     for (i = 0; i < 4; i++)
23399       {
23400         char *a = foo + i;
23401         char *b = bar + i;
23402         strcpy (a, "--------01111111");
23403         strcpy (b, "--------10000000");
23404         if (memcmp (a, b, 16) >= 0)
23405           exit (1);
23406       }
23407     exit (0);
23408   }
23409
23410   ;
23411   return 0;
23412 }
23413 _ACEOF
23414 rm -f conftest$ac_exeext
23415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23416   (eval $ac_link) 2>&5
23417   ac_status=$?
23418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23421   (eval $ac_try) 2>&5
23422   ac_status=$?
23423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424   (exit $ac_status); }; }; then
23425   ac_cv_func_memcmp_working=yes
23426 else
23427   echo "$as_me: program exited with status $ac_status" >&5
23428 echo "$as_me: failed program was:" >&5
23429 sed 's/^/| /' conftest.$ac_ext >&5
23430
23431 ( exit $ac_status )
23432 ac_cv_func_memcmp_working=no
23433 fi
23434 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23435 fi
23436 fi
23437 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
23438 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
23439 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
23440     "memcmp.$ac_objext"   | \
23441   *" memcmp.$ac_objext"   | \
23442     "memcmp.$ac_objext "* | \
23443   *" memcmp.$ac_objext "* ) ;;
23444   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
23445 esac
23446
23447
23448
23449
23450 # Select semaphore implementation type.
23451 if test "$PORTNAME" != "win32"; then
23452   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
23453
23454 cat >>confdefs.h <<\_ACEOF
23455 #define USE_NAMED_POSIX_SEMAPHORES 1
23456 _ACEOF
23457
23458     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
23459   else
23460     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
23461
23462 cat >>confdefs.h <<\_ACEOF
23463 #define USE_UNNAMED_POSIX_SEMAPHORES 1
23464 _ACEOF
23465
23466       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
23467     else
23468
23469 cat >>confdefs.h <<\_ACEOF
23470 #define USE_SYSV_SEMAPHORES 1
23471 _ACEOF
23472
23473       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
23474     fi
23475   fi
23476 else
23477
23478 cat >>confdefs.h <<\_ACEOF
23479 #define USE_WIN32_SEMAPHORES 1
23480 _ACEOF
23481
23482   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
23483 fi
23484
23485
23486 # Select shared-memory implementation type.
23487 if test "$PORTNAME" != "win32"; then
23488
23489 cat >>confdefs.h <<\_ACEOF
23490 #define USE_SYSV_SHARED_MEMORY 1
23491 _ACEOF
23492
23493   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
23494 else
23495
23496 cat >>confdefs.h <<\_ACEOF
23497 #define USE_WIN32_SHARED_MEMORY 1
23498 _ACEOF
23499
23500   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
23501 fi
23502
23503 # If not set in template file, set bytes to use libc memset()
23504 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
23505   MEMSET_LOOP_LIMIT=1024
23506 fi
23507
23508 cat >>confdefs.h <<_ACEOF
23509 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
23510 _ACEOF
23511
23512
23513
23514 if test "$enable_nls" = yes ; then
23515
23516   echo "$as_me:$LINENO: checking for library containing gettext" >&5
23517 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
23518 if test "${ac_cv_search_gettext+set}" = set; then
23519   echo $ECHO_N "(cached) $ECHO_C" >&6
23520 else
23521   ac_func_search_save_LIBS=$LIBS
23522 ac_cv_search_gettext=no
23523 cat >conftest.$ac_ext <<_ACEOF
23524 /* confdefs.h.  */
23525 _ACEOF
23526 cat confdefs.h >>conftest.$ac_ext
23527 cat >>conftest.$ac_ext <<_ACEOF
23528 /* end confdefs.h.  */
23529
23530 /* Override any gcc2 internal prototype to avoid an error.  */
23531 #ifdef __cplusplus
23532 extern "C"
23533 #endif
23534 /* We use char because int might match the return type of a gcc2
23535    builtin and then its argument prototype would still apply.  */
23536 char gettext ();
23537 int
23538 main ()
23539 {
23540 gettext ();
23541   ;
23542   return 0;
23543 }
23544 _ACEOF
23545 rm -f conftest.$ac_objext conftest$ac_exeext
23546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23547   (eval $ac_link) 2>conftest.er1
23548   ac_status=$?
23549   grep -v '^ *+' conftest.er1 >conftest.err
23550   rm -f conftest.er1
23551   cat conftest.err >&5
23552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23553   (exit $ac_status); } &&
23554          { ac_try='test -z "$ac_c_werror_flag"
23555                          || test ! -s conftest.err'
23556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23557   (eval $ac_try) 2>&5
23558   ac_status=$?
23559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560   (exit $ac_status); }; } &&
23561          { ac_try='test -s conftest$ac_exeext'
23562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23563   (eval $ac_try) 2>&5
23564   ac_status=$?
23565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566   (exit $ac_status); }; }; then
23567   ac_cv_search_gettext="none required"
23568 else
23569   echo "$as_me: failed program was:" >&5
23570 sed 's/^/| /' conftest.$ac_ext >&5
23571
23572 fi
23573 rm -f conftest.err conftest.$ac_objext \
23574       conftest$ac_exeext conftest.$ac_ext
23575 if test "$ac_cv_search_gettext" = no; then
23576   for ac_lib in intl; do
23577     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23578     cat >conftest.$ac_ext <<_ACEOF
23579 /* confdefs.h.  */
23580 _ACEOF
23581 cat confdefs.h >>conftest.$ac_ext
23582 cat >>conftest.$ac_ext <<_ACEOF
23583 /* end confdefs.h.  */
23584
23585 /* Override any gcc2 internal prototype to avoid an error.  */
23586 #ifdef __cplusplus
23587 extern "C"
23588 #endif
23589 /* We use char because int might match the return type of a gcc2
23590    builtin and then its argument prototype would still apply.  */
23591 char gettext ();
23592 int
23593 main ()
23594 {
23595 gettext ();
23596   ;
23597   return 0;
23598 }
23599 _ACEOF
23600 rm -f conftest.$ac_objext conftest$ac_exeext
23601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23602   (eval $ac_link) 2>conftest.er1
23603   ac_status=$?
23604   grep -v '^ *+' conftest.er1 >conftest.err
23605   rm -f conftest.er1
23606   cat conftest.err >&5
23607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608   (exit $ac_status); } &&
23609          { ac_try='test -z "$ac_c_werror_flag"
23610                          || test ! -s conftest.err'
23611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23612   (eval $ac_try) 2>&5
23613   ac_status=$?
23614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615   (exit $ac_status); }; } &&
23616          { ac_try='test -s conftest$ac_exeext'
23617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23618   (eval $ac_try) 2>&5
23619   ac_status=$?
23620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621   (exit $ac_status); }; }; then
23622   ac_cv_search_gettext="-l$ac_lib"
23623 break
23624 else
23625   echo "$as_me: failed program was:" >&5
23626 sed 's/^/| /' conftest.$ac_ext >&5
23627
23628 fi
23629 rm -f conftest.err conftest.$ac_objext \
23630       conftest$ac_exeext conftest.$ac_ext
23631   done
23632 fi
23633 LIBS=$ac_func_search_save_LIBS
23634 fi
23635 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
23636 echo "${ECHO_T}$ac_cv_search_gettext" >&6
23637 if test "$ac_cv_search_gettext" != no; then
23638   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
23639
23640 else
23641   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
23642 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
23643    { (exit 1); exit 1; }; }
23644 fi
23645
23646   if test "${ac_cv_header_libintl_h+set}" = set; then
23647   echo "$as_me:$LINENO: checking for libintl.h" >&5
23648 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
23649 if test "${ac_cv_header_libintl_h+set}" = set; then
23650   echo $ECHO_N "(cached) $ECHO_C" >&6
23651 fi
23652 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
23653 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
23654 else
23655   # Is the header compilable?
23656 echo "$as_me:$LINENO: checking libintl.h usability" >&5
23657 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
23658 cat >conftest.$ac_ext <<_ACEOF
23659 /* confdefs.h.  */
23660 _ACEOF
23661 cat confdefs.h >>conftest.$ac_ext
23662 cat >>conftest.$ac_ext <<_ACEOF
23663 /* end confdefs.h.  */
23664 $ac_includes_default
23665 #include <libintl.h>
23666 _ACEOF
23667 rm -f conftest.$ac_objext
23668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23669   (eval $ac_compile) 2>conftest.er1
23670   ac_status=$?
23671   grep -v '^ *+' conftest.er1 >conftest.err
23672   rm -f conftest.er1
23673   cat conftest.err >&5
23674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675   (exit $ac_status); } &&
23676          { ac_try='test -z "$ac_c_werror_flag"
23677                          || test ! -s conftest.err'
23678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23679   (eval $ac_try) 2>&5
23680   ac_status=$?
23681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682   (exit $ac_status); }; } &&
23683          { ac_try='test -s conftest.$ac_objext'
23684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23685   (eval $ac_try) 2>&5
23686   ac_status=$?
23687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688   (exit $ac_status); }; }; then
23689   ac_header_compiler=yes
23690 else
23691   echo "$as_me: failed program was:" >&5
23692 sed 's/^/| /' conftest.$ac_ext >&5
23693
23694 ac_header_compiler=no
23695 fi
23696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23697 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23698 echo "${ECHO_T}$ac_header_compiler" >&6
23699
23700 # Is the header present?
23701 echo "$as_me:$LINENO: checking libintl.h presence" >&5
23702 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
23703 cat >conftest.$ac_ext <<_ACEOF
23704 /* confdefs.h.  */
23705 _ACEOF
23706 cat confdefs.h >>conftest.$ac_ext
23707 cat >>conftest.$ac_ext <<_ACEOF
23708 /* end confdefs.h.  */
23709 #include <libintl.h>
23710 _ACEOF
23711 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23712   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23713   ac_status=$?
23714   grep -v '^ *+' conftest.er1 >conftest.err
23715   rm -f conftest.er1
23716   cat conftest.err >&5
23717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718   (exit $ac_status); } >/dev/null; then
23719   if test -s conftest.err; then
23720     ac_cpp_err=$ac_c_preproc_warn_flag
23721     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23722   else
23723     ac_cpp_err=
23724   fi
23725 else
23726   ac_cpp_err=yes
23727 fi
23728 if test -z "$ac_cpp_err"; then
23729   ac_header_preproc=yes
23730 else
23731   echo "$as_me: failed program was:" >&5
23732 sed 's/^/| /' conftest.$ac_ext >&5
23733
23734   ac_header_preproc=no
23735 fi
23736 rm -f conftest.err conftest.$ac_ext
23737 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23738 echo "${ECHO_T}$ac_header_preproc" >&6
23739
23740 # So?  What about this header?
23741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23742   yes:no: )
23743     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
23744 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23745     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
23746 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
23747     ac_header_preproc=yes
23748     ;;
23749   no:yes:* )
23750     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
23751 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
23752     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
23753 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
23754     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
23755 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
23756     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
23757 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23758     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
23759 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
23760     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
23761 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
23762     (
23763       cat <<\_ASBOX
23764 ## ---------------------------------------- ##
23765 ## Report this to pgsql-bugs@postgresql.org ##
23766 ## ---------------------------------------- ##
23767 _ASBOX
23768     ) |
23769       sed "s/^/$as_me: WARNING:     /" >&2
23770     ;;
23771 esac
23772 echo "$as_me:$LINENO: checking for libintl.h" >&5
23773 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
23774 if test "${ac_cv_header_libintl_h+set}" = set; then
23775   echo $ECHO_N "(cached) $ECHO_C" >&6
23776 else
23777   ac_cv_header_libintl_h=$ac_header_preproc
23778 fi
23779 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
23780 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
23781
23782 fi
23783 if test $ac_cv_header_libintl_h = yes; then
23784   :
23785 else
23786   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
23787 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
23788    { (exit 1); exit 1; }; }
23789 fi
23790
23791
23792   for ac_prog in msgfmt
23793 do
23794   # Extract the first word of "$ac_prog", so it can be a program name with args.
23795 set dummy $ac_prog; ac_word=$2
23796 echo "$as_me:$LINENO: checking for $ac_word" >&5
23797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23798 if test "${ac_cv_prog_MSGFMT+set}" = set; then
23799   echo $ECHO_N "(cached) $ECHO_C" >&6
23800 else
23801   if test -n "$MSGFMT"; then
23802   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
23803 else
23804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23805 for as_dir in $PATH
23806 do
23807   IFS=$as_save_IFS
23808   test -z "$as_dir" && as_dir=.
23809   for ac_exec_ext in '' $ac_executable_extensions; do
23810   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23811     ac_cv_prog_MSGFMT="$ac_prog"
23812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23813     break 2
23814   fi
23815 done
23816 done
23817
23818 fi
23819 fi
23820 MSGFMT=$ac_cv_prog_MSGFMT
23821 if test -n "$MSGFMT"; then
23822   echo "$as_me:$LINENO: result: $MSGFMT" >&5
23823 echo "${ECHO_T}$MSGFMT" >&6
23824 else
23825   echo "$as_me:$LINENO: result: no" >&5
23826 echo "${ECHO_T}no" >&6
23827 fi
23828
23829   test -n "$MSGFMT" && break
23830 done
23831
23832   if test -z "$MSGFMT"; then
23833     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
23834 echo "$as_me: error: msgfmt is required for NLS" >&2;}
23835    { (exit 1); exit 1; }; }
23836   fi
23837   for ac_prog in msgmerge
23838 do
23839   # Extract the first word of "$ac_prog", so it can be a program name with args.
23840 set dummy $ac_prog; ac_word=$2
23841 echo "$as_me:$LINENO: checking for $ac_word" >&5
23842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23843 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
23844   echo $ECHO_N "(cached) $ECHO_C" >&6
23845 else
23846   if test -n "$MSGMERGE"; then
23847   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
23848 else
23849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23850 for as_dir in $PATH
23851 do
23852   IFS=$as_save_IFS
23853   test -z "$as_dir" && as_dir=.
23854   for ac_exec_ext in '' $ac_executable_extensions; do
23855   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23856     ac_cv_prog_MSGMERGE="$ac_prog"
23857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23858     break 2
23859   fi
23860 done
23861 done
23862
23863 fi
23864 fi
23865 MSGMERGE=$ac_cv_prog_MSGMERGE
23866 if test -n "$MSGMERGE"; then
23867   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
23868 echo "${ECHO_T}$MSGMERGE" >&6
23869 else
23870   echo "$as_me:$LINENO: result: no" >&5
23871 echo "${ECHO_T}no" >&6
23872 fi
23873
23874   test -n "$MSGMERGE" && break
23875 done
23876
23877   for ac_prog in xgettext
23878 do
23879   # Extract the first word of "$ac_prog", so it can be a program name with args.
23880 set dummy $ac_prog; ac_word=$2
23881 echo "$as_me:$LINENO: checking for $ac_word" >&5
23882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23883 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
23884   echo $ECHO_N "(cached) $ECHO_C" >&6
23885 else
23886   if test -n "$XGETTEXT"; then
23887   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
23888 else
23889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23890 for as_dir in $PATH
23891 do
23892   IFS=$as_save_IFS
23893   test -z "$as_dir" && as_dir=.
23894   for ac_exec_ext in '' $ac_executable_extensions; do
23895   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23896     ac_cv_prog_XGETTEXT="$ac_prog"
23897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23898     break 2
23899   fi
23900 done
23901 done
23902
23903 fi
23904 fi
23905 XGETTEXT=$ac_cv_prog_XGETTEXT
23906 if test -n "$XGETTEXT"; then
23907   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
23908 echo "${ECHO_T}$XGETTEXT" >&6
23909 else
23910   echo "$as_me:$LINENO: result: no" >&5
23911 echo "${ECHO_T}no" >&6
23912 fi
23913
23914   test -n "$XGETTEXT" && break
23915 done
23916
23917
23918   # Note: share/locale is always the default, independent of $datadir
23919   localedir='${prefix}/share/locale'
23920
23921
23922 fi
23923
23924 # Check for Tcl configuration script tclConfig.sh
23925 if test "$with_tcl" = yes; then
23926     for ac_prog in tclsh tcl
23927 do
23928   # Extract the first word of "$ac_prog", so it can be a program name with args.
23929 set dummy $ac_prog; ac_word=$2
23930 echo "$as_me:$LINENO: checking for $ac_word" >&5
23931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23932 if test "${ac_cv_path_TCLSH+set}" = set; then
23933   echo $ECHO_N "(cached) $ECHO_C" >&6
23934 else
23935   case $TCLSH in
23936   [\\/]* | ?:[\\/]*)
23937   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
23938   ;;
23939   *)
23940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23941 for as_dir in $PATH
23942 do
23943   IFS=$as_save_IFS
23944   test -z "$as_dir" && as_dir=.
23945   for ac_exec_ext in '' $ac_executable_extensions; do
23946   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23947     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
23948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23949     break 2
23950   fi
23951 done
23952 done
23953
23954   ;;
23955 esac
23956 fi
23957 TCLSH=$ac_cv_path_TCLSH
23958
23959 if test -n "$TCLSH"; then
23960   echo "$as_me:$LINENO: result: $TCLSH" >&5
23961 echo "${ECHO_T}$TCLSH" >&6
23962 else
23963   echo "$as_me:$LINENO: result: no" >&5
23964 echo "${ECHO_T}no" >&6
23965 fi
23966
23967   test -n "$TCLSH" && break
23968 done
23969
23970 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
23971 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
23972 # Let user override test
23973 if test -z "$TCL_CONFIG_SH"; then
23974     pgac_test_dirs="$with_tclconfig"
23975
23976     set X $pgac_test_dirs; shift
23977     if test $# -eq 0; then
23978         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
23979 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
23980    { (exit 1); exit 1; }; }
23981         set X `echo 'puts $auto_path' | $TCLSH`; shift
23982     fi
23983
23984     for pgac_dir do
23985         if test -r "$pgac_dir/tclConfig.sh"; then
23986             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
23987             break
23988         fi
23989     done
23990 fi
23991
23992 if test -z "$TCL_CONFIG_SH"; then
23993     echo "$as_me:$LINENO: result: no" >&5
23994 echo "${ECHO_T}no" >&6
23995     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
23996 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
23997    { (exit 1); exit 1; }; }
23998 else
23999     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
24000 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
24001 fi
24002
24003
24004
24005     . "$TCL_CONFIG_SH"
24006 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
24007 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
24008 eval TCL_LIBS=\"$TCL_LIBS\"
24009 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
24010 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
24011
24012         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
24013     ac_save_CPPFLAGS=$CPPFLAGS
24014     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
24015     if test "${ac_cv_header_tcl_h+set}" = set; then
24016   echo "$as_me:$LINENO: checking for tcl.h" >&5
24017 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
24018 if test "${ac_cv_header_tcl_h+set}" = set; then
24019   echo $ECHO_N "(cached) $ECHO_C" >&6
24020 fi
24021 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
24022 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
24023 else
24024   # Is the header compilable?
24025 echo "$as_me:$LINENO: checking tcl.h usability" >&5
24026 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
24027 cat >conftest.$ac_ext <<_ACEOF
24028 /* confdefs.h.  */
24029 _ACEOF
24030 cat confdefs.h >>conftest.$ac_ext
24031 cat >>conftest.$ac_ext <<_ACEOF
24032 /* end confdefs.h.  */
24033 $ac_includes_default
24034 #include <tcl.h>
24035 _ACEOF
24036 rm -f conftest.$ac_objext
24037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24038   (eval $ac_compile) 2>conftest.er1
24039   ac_status=$?
24040   grep -v '^ *+' conftest.er1 >conftest.err
24041   rm -f conftest.er1
24042   cat conftest.err >&5
24043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044   (exit $ac_status); } &&
24045          { ac_try='test -z "$ac_c_werror_flag"
24046                          || test ! -s conftest.err'
24047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24048   (eval $ac_try) 2>&5
24049   ac_status=$?
24050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24051   (exit $ac_status); }; } &&
24052          { ac_try='test -s conftest.$ac_objext'
24053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24054   (eval $ac_try) 2>&5
24055   ac_status=$?
24056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24057   (exit $ac_status); }; }; then
24058   ac_header_compiler=yes
24059 else
24060   echo "$as_me: failed program was:" >&5
24061 sed 's/^/| /' conftest.$ac_ext >&5
24062
24063 ac_header_compiler=no
24064 fi
24065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24066 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24067 echo "${ECHO_T}$ac_header_compiler" >&6
24068
24069 # Is the header present?
24070 echo "$as_me:$LINENO: checking tcl.h presence" >&5
24071 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
24072 cat >conftest.$ac_ext <<_ACEOF
24073 /* confdefs.h.  */
24074 _ACEOF
24075 cat confdefs.h >>conftest.$ac_ext
24076 cat >>conftest.$ac_ext <<_ACEOF
24077 /* end confdefs.h.  */
24078 #include <tcl.h>
24079 _ACEOF
24080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24081   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24082   ac_status=$?
24083   grep -v '^ *+' conftest.er1 >conftest.err
24084   rm -f conftest.er1
24085   cat conftest.err >&5
24086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087   (exit $ac_status); } >/dev/null; then
24088   if test -s conftest.err; then
24089     ac_cpp_err=$ac_c_preproc_warn_flag
24090     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24091   else
24092     ac_cpp_err=
24093   fi
24094 else
24095   ac_cpp_err=yes
24096 fi
24097 if test -z "$ac_cpp_err"; then
24098   ac_header_preproc=yes
24099 else
24100   echo "$as_me: failed program was:" >&5
24101 sed 's/^/| /' conftest.$ac_ext >&5
24102
24103   ac_header_preproc=no
24104 fi
24105 rm -f conftest.err conftest.$ac_ext
24106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24107 echo "${ECHO_T}$ac_header_preproc" >&6
24108
24109 # So?  What about this header?
24110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24111   yes:no: )
24112     { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24113 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24114     { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
24115 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
24116     ac_header_preproc=yes
24117     ;;
24118   no:yes:* )
24119     { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
24120 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
24121     { echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
24122 echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
24123     { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
24124 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
24125     { echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
24126 echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24127     { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
24128 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
24129     { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
24130 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
24131     (
24132       cat <<\_ASBOX
24133 ## ---------------------------------------- ##
24134 ## Report this to pgsql-bugs@postgresql.org ##
24135 ## ---------------------------------------- ##
24136 _ASBOX
24137     ) |
24138       sed "s/^/$as_me: WARNING:     /" >&2
24139     ;;
24140 esac
24141 echo "$as_me:$LINENO: checking for tcl.h" >&5
24142 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
24143 if test "${ac_cv_header_tcl_h+set}" = set; then
24144   echo $ECHO_N "(cached) $ECHO_C" >&6
24145 else
24146   ac_cv_header_tcl_h=$ac_header_preproc
24147 fi
24148 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
24149 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
24150
24151 fi
24152 if test $ac_cv_header_tcl_h = yes; then
24153   :
24154 else
24155   { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
24156 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
24157    { (exit 1); exit 1; }; }
24158 fi
24159
24160
24161     CPPFLAGS=$ac_save_CPPFLAGS
24162 fi
24163
24164 #
24165 # Check for DocBook and tools
24166 #
24167 for ac_prog in onsgmls nsgmls
24168 do
24169   # Extract the first word of "$ac_prog", so it can be a program name with args.
24170 set dummy $ac_prog; ac_word=$2
24171 echo "$as_me:$LINENO: checking for $ac_word" >&5
24172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24173 if test "${ac_cv_prog_NSGMLS+set}" = set; then
24174   echo $ECHO_N "(cached) $ECHO_C" >&6
24175 else
24176   if test -n "$NSGMLS"; then
24177   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
24178 else
24179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24180 for as_dir in $PATH
24181 do
24182   IFS=$as_save_IFS
24183   test -z "$as_dir" && as_dir=.
24184   for ac_exec_ext in '' $ac_executable_extensions; do
24185   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24186     ac_cv_prog_NSGMLS="$ac_prog"
24187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24188     break 2
24189   fi
24190 done
24191 done
24192
24193 fi
24194 fi
24195 NSGMLS=$ac_cv_prog_NSGMLS
24196 if test -n "$NSGMLS"; then
24197   echo "$as_me:$LINENO: result: $NSGMLS" >&5
24198 echo "${ECHO_T}$NSGMLS" >&6
24199 else
24200   echo "$as_me:$LINENO: result: no" >&5
24201 echo "${ECHO_T}no" >&6
24202 fi
24203
24204   test -n "$NSGMLS" && break
24205 done
24206
24207 for ac_prog in openjade jade
24208 do
24209   # Extract the first word of "$ac_prog", so it can be a program name with args.
24210 set dummy $ac_prog; ac_word=$2
24211 echo "$as_me:$LINENO: checking for $ac_word" >&5
24212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24213 if test "${ac_cv_prog_JADE+set}" = set; then
24214   echo $ECHO_N "(cached) $ECHO_C" >&6
24215 else
24216   if test -n "$JADE"; then
24217   ac_cv_prog_JADE="$JADE" # Let the user override the test.
24218 else
24219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24220 for as_dir in $PATH
24221 do
24222   IFS=$as_save_IFS
24223   test -z "$as_dir" && as_dir=.
24224   for ac_exec_ext in '' $ac_executable_extensions; do
24225   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24226     ac_cv_prog_JADE="$ac_prog"
24227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24228     break 2
24229   fi
24230 done
24231 done
24232
24233 fi
24234 fi
24235 JADE=$ac_cv_prog_JADE
24236 if test -n "$JADE"; then
24237   echo "$as_me:$LINENO: result: $JADE" >&5
24238 echo "${ECHO_T}$JADE" >&6
24239 else
24240   echo "$as_me:$LINENO: result: no" >&5
24241 echo "${ECHO_T}no" >&6
24242 fi
24243
24244   test -n "$JADE" && break
24245 done
24246
24247
24248 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
24249 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
24250 if test "${pgac_cv_check_docbook+set}" = set; then
24251   echo $ECHO_N "(cached) $ECHO_C" >&6
24252 else
24253   cat >conftest.sgml <<EOF
24254 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
24255 <book>
24256  <title>test</title>
24257  <chapter>
24258   <title>random</title>
24259    <sect1>
24260     <title>testsect</title>
24261     <para>text</para>
24262   </sect1>
24263  </chapter>
24264 </book>
24265 EOF
24266
24267 pgac_cv_check_docbook=no
24268
24269 if test -n "$NSGMLS"; then
24270   $NSGMLS -s conftest.sgml 1>&5 2>&1
24271   if test $? -eq 0; then
24272     pgac_cv_check_docbook=yes
24273   fi
24274 fi
24275 rm -f conftest.sgml
24276 fi
24277 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
24278 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
24279
24280 have_docbook=$pgac_cv_check_docbook
24281
24282
24283 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
24284 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
24285 if test "${pgac_cv_path_stylesheets+set}" = set; then
24286   echo $ECHO_N "(cached) $ECHO_C" >&6
24287 else
24288   if test -n "$DOCBOOKSTYLE"; then
24289   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
24290 else
24291   for pgac_prefix in /usr /usr/local /opt; do
24292     for pgac_infix in share lib; do
24293       for pgac_postfix in \
24294         sgml/stylesheets/nwalsh-modular \
24295         sgml/stylesheets/docbook \
24296         sgml/stylesheets/dsssl/docbook \
24297         sgml/docbook-dsssl \
24298         sgml/docbook/dsssl/modular \
24299         sgml/docbook/stylesheet/dsssl/modular \
24300         sgml/docbook/dsssl-stylesheets
24301       do
24302         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
24303         if test -r "$pgac_candidate/html/docbook.dsl" \
24304            && test -r "$pgac_candidate/print/docbook.dsl"
24305         then
24306           pgac_cv_path_stylesheets=$pgac_candidate
24307           break 3
24308         fi
24309       done
24310     done
24311   done
24312 fi
24313 fi
24314
24315 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
24316
24317 if test -n "$DOCBOOKSTYLE"; then
24318   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
24319 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
24320 else
24321   echo "$as_me:$LINENO: result: no" >&5
24322 echo "${ECHO_T}no" >&6
24323 fi
24324 if test -n "$DOCBOOKSTYLE"; then
24325   for ac_prog in collateindex.pl
24326 do
24327   # Extract the first word of "$ac_prog", so it can be a program name with args.
24328 set dummy $ac_prog; ac_word=$2
24329 echo "$as_me:$LINENO: checking for $ac_word" >&5
24330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24331 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
24332   echo $ECHO_N "(cached) $ECHO_C" >&6
24333 else
24334   case $COLLATEINDEX in
24335   [\\/]* | ?:[\\/]*)
24336   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
24337   ;;
24338   *)
24339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24340 for as_dir in $DOCBOOKSTYLE/bin $PATH
24341 do
24342   IFS=$as_save_IFS
24343   test -z "$as_dir" && as_dir=.
24344   for ac_exec_ext in '' $ac_executable_extensions; do
24345   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24346     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
24347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24348     break 2
24349   fi
24350 done
24351 done
24352
24353   ;;
24354 esac
24355 fi
24356 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
24357
24358 if test -n "$COLLATEINDEX"; then
24359   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
24360 echo "${ECHO_T}$COLLATEINDEX" >&6
24361 else
24362   echo "$as_me:$LINENO: result: no" >&5
24363 echo "${ECHO_T}no" >&6
24364 fi
24365
24366   test -n "$COLLATEINDEX" && break
24367 done
24368
24369 else
24370   for ac_prog in collateindex.pl
24371 do
24372   # Extract the first word of "$ac_prog", so it can be a program name with args.
24373 set dummy $ac_prog; ac_word=$2
24374 echo "$as_me:$LINENO: checking for $ac_word" >&5
24375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24376 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
24377   echo $ECHO_N "(cached) $ECHO_C" >&6
24378 else
24379   case $COLLATEINDEX in
24380   [\\/]* | ?:[\\/]*)
24381   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
24382   ;;
24383   *)
24384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24385 for as_dir in $PATH
24386 do
24387   IFS=$as_save_IFS
24388   test -z "$as_dir" && as_dir=.
24389   for ac_exec_ext in '' $ac_executable_extensions; do
24390   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24391     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
24392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24393     break 2
24394   fi
24395 done
24396 done
24397
24398   ;;
24399 esac
24400 fi
24401 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
24402
24403 if test -n "$COLLATEINDEX"; then
24404   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
24405 echo "${ECHO_T}$COLLATEINDEX" >&6
24406 else
24407   echo "$as_me:$LINENO: result: no" >&5
24408 echo "${ECHO_T}no" >&6
24409 fi
24410
24411   test -n "$COLLATEINDEX" && break
24412 done
24413
24414 fi
24415 for ac_prog in sgmlspl
24416 do
24417   # Extract the first word of "$ac_prog", so it can be a program name with args.
24418 set dummy $ac_prog; ac_word=$2
24419 echo "$as_me:$LINENO: checking for $ac_word" >&5
24420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24421 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
24422   echo $ECHO_N "(cached) $ECHO_C" >&6
24423 else
24424   if test -n "$SGMLSPL"; then
24425   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
24426 else
24427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24428 for as_dir in $PATH
24429 do
24430   IFS=$as_save_IFS
24431   test -z "$as_dir" && as_dir=.
24432   for ac_exec_ext in '' $ac_executable_extensions; do
24433   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24434     ac_cv_prog_SGMLSPL="$ac_prog"
24435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24436     break 2
24437   fi
24438 done
24439 done
24440
24441 fi
24442 fi
24443 SGMLSPL=$ac_cv_prog_SGMLSPL
24444 if test -n "$SGMLSPL"; then
24445   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
24446 echo "${ECHO_T}$SGMLSPL" >&6
24447 else
24448   echo "$as_me:$LINENO: result: no" >&5
24449 echo "${ECHO_T}no" >&6
24450 fi
24451
24452   test -n "$SGMLSPL" && break
24453 done
24454
24455
24456 # Thread testing
24457
24458 # We have to run the thread test near the end so we have all our symbols
24459 # defined.  Cross compiling throws a warning.
24460 #
24461 if test "$enable_thread_safety_force" = yes; then
24462 if test "$PORTNAME" != "win32"
24463 then
24464   { echo "$as_me:$LINENO: WARNING:
24465 *** Skipping thread test program.  --enable-thread-safety-force was used.
24466 *** Run the program in src/test/thread on the your machine and add proper
24467 *** locking function calls to your applications to guarantee thread safety.
24468 " >&5
24469 echo "$as_me: WARNING:
24470 *** Skipping thread test program.  --enable-thread-safety-force was used.
24471 *** Run the program in src/test/thread on the your machine and add proper
24472 *** locking function calls to your applications to guarantee thread safety.
24473 " >&2;}
24474 else
24475 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
24476 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
24477 fi
24478 elif test "$enable_thread_safety" = yes; then
24479 if test "$PORTNAME" != "win32"
24480 then
24481 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
24482 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
24483
24484 _CFLAGS="$CFLAGS"
24485 _LIBS="$LIBS"
24486 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
24487 LIBS="$LIBS $PTHREAD_LIBS"
24488 if test "$cross_compiling" = yes; then
24489   echo "$as_me:$LINENO: result: maybe" >&5
24490 echo "${ECHO_T}maybe" >&6
24491   { echo "$as_me:$LINENO: WARNING:
24492 *** Skipping thread test program because of cross-compile build.
24493 *** Run the program in src/test/thread on the target machine.
24494 " >&5
24495 echo "$as_me: WARNING:
24496 *** Skipping thread test program because of cross-compile build.
24497 *** Run the program in src/test/thread on the target machine.
24498 " >&2;}
24499 else
24500   cat >conftest.$ac_ext <<_ACEOF
24501 /* confdefs.h.  */
24502 _ACEOF
24503 cat confdefs.h >>conftest.$ac_ext
24504 cat >>conftest.$ac_ext <<_ACEOF
24505 /* end confdefs.h.  */
24506 #include "$srcdir/src/test/thread/thread_test.c"
24507 _ACEOF
24508 rm -f conftest$ac_exeext
24509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24510   (eval $ac_link) 2>&5
24511   ac_status=$?
24512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24515   (eval $ac_try) 2>&5
24516   ac_status=$?
24517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24518   (exit $ac_status); }; }; then
24519   echo "$as_me:$LINENO: result: yes" >&5
24520 echo "${ECHO_T}yes" >&6
24521 else
24522   echo "$as_me: program exited with status $ac_status" >&5
24523 echo "$as_me: failed program was:" >&5
24524 sed 's/^/| /' conftest.$ac_ext >&5
24525
24526 ( exit $ac_status )
24527 echo "$as_me:$LINENO: result: no" >&5
24528 echo "${ECHO_T}no" >&6
24529   { { echo "$as_me:$LINENO: error: thread test program failed
24530 This platform is not thread-safe.  Check the file 'config.log'for the
24531 exact reason.
24532
24533 You can use the configure option --enable-thread-safety-force to force
24534 threads to be enabled.  But you must then run the program in
24535 src/test/thread and add locking function calls to your applications to
24536 guarantee thread safety." >&5
24537 echo "$as_me: error: thread test program failed
24538 This platform is not thread-safe.  Check the file 'config.log'for the
24539 exact reason.
24540
24541 You can use the configure option --enable-thread-safety-force to force
24542 threads to be enabled.  But you must then run the program in
24543 src/test/thread and add locking function calls to your applications to
24544 guarantee thread safety." >&2;}
24545    { (exit 1); exit 1; }; }
24546 fi
24547 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24548 fi
24549 CFLAGS="$_CFLAGS"
24550 LIBS="$_LIBS"
24551 else
24552 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
24553 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
24554 fi
24555 fi
24556
24557 # prepare build tree if outside source tree
24558 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
24559 # Note 2: /bin/pwd might be better than shell's built-in at getting
24560 #         a symlink-free name.
24561 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
24562   vpath_build=no
24563 else
24564   vpath_build=yes
24565   if test "$no_create" != yes; then
24566     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
24567     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
24568     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
24569       || { { echo "$as_me:$LINENO: error: failed" >&5
24570 echo "$as_me: error: failed" >&2;}
24571    { (exit 1); exit 1; }; }
24572     echo "$as_me:$LINENO: result: done" >&5
24573 echo "${ECHO_T}done" >&6
24574   fi
24575 fi
24576
24577
24578
24579                     ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
24580
24581
24582                                                             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}"
24583
24584
24585 if test "$PORTNAME" = "win32"; then
24586           ac_config_commands="$ac_config_commands check_win32_symlinks"
24587
24588 fi
24589
24590           ac_config_headers="$ac_config_headers src/include/pg_config.h"
24591
24592
24593           ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
24594
24595
24596 cat >confcache <<\_ACEOF
24597 # This file is a shell script that caches the results of configure
24598 # tests run on this system so they can be shared between configure
24599 # scripts and configure runs, see configure's option --config-cache.
24600 # It is not useful on other systems.  If it contains results you don't
24601 # want to keep, you may remove or edit it.
24602 #
24603 # config.status only pays attention to the cache file if you give it
24604 # the --recheck option to rerun configure.
24605 #
24606 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24607 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24608 # following values.
24609
24610 _ACEOF
24611
24612 # The following way of writing the cache mishandles newlines in values,
24613 # but we know of no workaround that is simple, portable, and efficient.
24614 # So, don't put newlines in cache variables' values.
24615 # Ultrix sh set writes to stderr and can't be redirected directly,
24616 # and sets the high bit in the cache file unless we assign to the vars.
24617 {
24618   (set) 2>&1 |
24619     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24620     *ac_space=\ *)
24621       # `set' does not quote correctly, so add quotes (double-quote
24622       # substitution turns \\\\ into \\, and sed turns \\ into \).
24623       sed -n \
24624         "s/'/'\\\\''/g;
24625           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24626       ;;
24627     *)
24628       # `set' quotes correctly as required by POSIX, so do not add quotes.
24629       sed -n \
24630         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24631       ;;
24632     esac;
24633 } |
24634   sed '
24635      t clear
24636      : clear
24637      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24638      t end
24639      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24640      : end' >>confcache
24641 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24642   if test -w $cache_file; then
24643     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24644     cat confcache >$cache_file
24645   else
24646     echo "not updating unwritable cache $cache_file"
24647   fi
24648 fi
24649 rm -f confcache
24650
24651 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24652 # Let make expand exec_prefix.
24653 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24654
24655 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24656 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24657 # trailing colons and then remove the whole line if VPATH becomes empty
24658 # (actually we leave an empty line to preserve line numbers).
24659 if test "x$srcdir" = x.; then
24660   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24661 s/:*\$(srcdir):*/:/;
24662 s/:*\${srcdir}:*/:/;
24663 s/:*@srcdir@:*/:/;
24664 s/^\([^=]*=[     ]*\):*/\1/;
24665 s/:*$//;
24666 s/^[^=]*=[       ]*$//;
24667 }'
24668 fi
24669
24670 DEFS=-DHAVE_CONFIG_H
24671
24672 ac_libobjs=
24673 ac_ltlibobjs=
24674 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24675   # 1. Remove the extension, and $U if already installed.
24676   ac_i=`echo "$ac_i" |
24677          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24678   # 2. Add them.
24679   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24680   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24681 done
24682 LIBOBJS=$ac_libobjs
24683
24684 LTLIBOBJS=$ac_ltlibobjs
24685
24686
24687
24688 : ${CONFIG_STATUS=./config.status}
24689 ac_clean_files_save=$ac_clean_files
24690 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24691 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24692 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24693 cat >$CONFIG_STATUS <<_ACEOF
24694 #! $SHELL
24695 # Generated by $as_me.
24696 # Run this file to recreate the current configuration.
24697 # Compiler output produced by configure, useful for debugging
24698 # configure, is in config.log if it exists.
24699
24700 debug=false
24701 ac_cs_recheck=false
24702 ac_cs_silent=false
24703 SHELL=\${CONFIG_SHELL-$SHELL}
24704 _ACEOF
24705
24706 cat >>$CONFIG_STATUS <<\_ACEOF
24707 ## --------------------- ##
24708 ## M4sh Initialization.  ##
24709 ## --------------------- ##
24710
24711 # Be Bourne compatible
24712 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24713   emulate sh
24714   NULLCMD=:
24715   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24716   # is contrary to our usage.  Disable this feature.
24717   alias -g '${1+"$@"}'='"$@"'
24718 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24719   set -o posix
24720 fi
24721 DUALCASE=1; export DUALCASE # for MKS sh
24722
24723 # Support unset when possible.
24724 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24725   as_unset=unset
24726 else
24727   as_unset=false
24728 fi
24729
24730
24731 # Work around bugs in pre-3.0 UWIN ksh.
24732 $as_unset ENV MAIL MAILPATH
24733 PS1='$ '
24734 PS2='> '
24735 PS4='+ '
24736
24737 # NLS nuisances.
24738 for as_var in \
24739   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24740   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24741   LC_TELEPHONE LC_TIME
24742 do
24743   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24744     eval $as_var=C; export $as_var
24745   else
24746     $as_unset $as_var
24747   fi
24748 done
24749
24750 # Required to use basename.
24751 if expr a : '\(a\)' >/dev/null 2>&1; then
24752   as_expr=expr
24753 else
24754   as_expr=false
24755 fi
24756
24757 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24758   as_basename=basename
24759 else
24760   as_basename=false
24761 fi
24762
24763
24764 # Name of the executable.
24765 as_me=`$as_basename "$0" ||
24766 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24767          X"$0" : 'X\(//\)$' \| \
24768          X"$0" : 'X\(/\)$' \| \
24769          .     : '\(.\)' 2>/dev/null ||
24770 echo X/"$0" |
24771     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24772           /^X\/\(\/\/\)$/{ s//\1/; q; }
24773           /^X\/\(\/\).*/{ s//\1/; q; }
24774           s/.*/./; q'`
24775
24776
24777 # PATH needs CR, and LINENO needs CR and PATH.
24778 # Avoid depending upon Character Ranges.
24779 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24780 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24781 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24782 as_cr_digits='0123456789'
24783 as_cr_alnum=$as_cr_Letters$as_cr_digits
24784
24785 # The user is always right.
24786 if test "${PATH_SEPARATOR+set}" != set; then
24787   echo "#! /bin/sh" >conf$$.sh
24788   echo  "exit 0"   >>conf$$.sh
24789   chmod +x conf$$.sh
24790   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24791     PATH_SEPARATOR=';'
24792   else
24793     PATH_SEPARATOR=:
24794   fi
24795   rm -f conf$$.sh
24796 fi
24797
24798
24799   as_lineno_1=$LINENO
24800   as_lineno_2=$LINENO
24801   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24802   test "x$as_lineno_1" != "x$as_lineno_2" &&
24803   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24804   # Find who we are.  Look in the path if we contain no path at all
24805   # relative or not.
24806   case $0 in
24807     *[\\/]* ) as_myself=$0 ;;
24808     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24809 for as_dir in $PATH
24810 do
24811   IFS=$as_save_IFS
24812   test -z "$as_dir" && as_dir=.
24813   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24814 done
24815
24816        ;;
24817   esac
24818   # We did not find ourselves, most probably we were run as `sh COMMAND'
24819   # in which case we are not to be found in the path.
24820   if test "x$as_myself" = x; then
24821     as_myself=$0
24822   fi
24823   if test ! -f "$as_myself"; then
24824     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24825 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24826    { (exit 1); exit 1; }; }
24827   fi
24828   case $CONFIG_SHELL in
24829   '')
24830     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24831 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24832 do
24833   IFS=$as_save_IFS
24834   test -z "$as_dir" && as_dir=.
24835   for as_base in sh bash ksh sh5; do
24836          case $as_dir in
24837          /*)
24838            if ("$as_dir/$as_base" -c '
24839   as_lineno_1=$LINENO
24840   as_lineno_2=$LINENO
24841   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24842   test "x$as_lineno_1" != "x$as_lineno_2" &&
24843   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24844              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24845              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24846              CONFIG_SHELL=$as_dir/$as_base
24847              export CONFIG_SHELL
24848              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24849            fi;;
24850          esac
24851        done
24852 done
24853 ;;
24854   esac
24855
24856   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24857   # uniformly replaced by the line number.  The first 'sed' inserts a
24858   # line-number line before each line; the second 'sed' does the real
24859   # work.  The second script uses 'N' to pair each line-number line
24860   # with the numbered line, and appends trailing '-' during
24861   # substitution so that $LINENO is not a special case at line end.
24862   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24863   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24864   sed '=' <$as_myself |
24865     sed '
24866       N
24867       s,$,-,
24868       : loop
24869       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24870       t loop
24871       s,-$,,
24872       s,^['$as_cr_digits']*\n,,
24873     ' >$as_me.lineno &&
24874   chmod +x $as_me.lineno ||
24875     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24876 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24877    { (exit 1); exit 1; }; }
24878
24879   # Don't try to exec as it changes $[0], causing all sort of problems
24880   # (the dirname of $[0] is not the place where we might find the
24881   # original and so on.  Autoconf is especially sensible to this).
24882   . ./$as_me.lineno
24883   # Exit status is that of the last command.
24884   exit
24885 }
24886
24887
24888 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24889   *c*,-n*) ECHO_N= ECHO_C='
24890 ' ECHO_T='      ' ;;
24891   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24892   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24893 esac
24894
24895 if expr a : '\(a\)' >/dev/null 2>&1; then
24896   as_expr=expr
24897 else
24898   as_expr=false
24899 fi
24900
24901 rm -f conf$$ conf$$.exe conf$$.file
24902 echo >conf$$.file
24903 if ln -s conf$$.file conf$$ 2>/dev/null; then
24904   # We could just check for DJGPP; but this test a) works b) is more generic
24905   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24906   if test -f conf$$.exe; then
24907     # Don't use ln at all; we don't have any links
24908     as_ln_s='cp -p'
24909   else
24910     as_ln_s='ln -s'
24911   fi
24912 elif ln conf$$.file conf$$ 2>/dev/null; then
24913   as_ln_s=ln
24914 else
24915   as_ln_s='cp -p'
24916 fi
24917 rm -f conf$$ conf$$.exe conf$$.file
24918
24919 if mkdir -p . 2>/dev/null; then
24920   as_mkdir_p=:
24921 else
24922   test -d ./-p && rmdir ./-p
24923   as_mkdir_p=false
24924 fi
24925
24926 as_executable_p="test -f"
24927
24928 # Sed expression to map a string onto a valid CPP name.
24929 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24930
24931 # Sed expression to map a string onto a valid variable name.
24932 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24933
24934
24935 # IFS
24936 # We need space, tab and new line, in precisely that order.
24937 as_nl='
24938 '
24939 IFS="   $as_nl"
24940
24941 # CDPATH.
24942 $as_unset CDPATH
24943
24944 exec 6>&1
24945
24946 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24947 # report actual input values of CONFIG_FILES etc. instead of their
24948 # values after options handling.  Logging --version etc. is OK.
24949 exec 5>>config.log
24950 {
24951   echo
24952   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24953 ## Running $as_me. ##
24954 _ASBOX
24955 } >&5
24956 cat >&5 <<_CSEOF
24957
24958 This file was extended by PostgreSQL $as_me 8.3devel, which was
24959 generated by GNU Autoconf 2.59.  Invocation command line was
24960
24961   CONFIG_FILES    = $CONFIG_FILES
24962   CONFIG_HEADERS  = $CONFIG_HEADERS
24963   CONFIG_LINKS    = $CONFIG_LINKS
24964   CONFIG_COMMANDS = $CONFIG_COMMANDS
24965   $ $0 $@
24966
24967 _CSEOF
24968 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24969 echo >&5
24970 _ACEOF
24971
24972 # Files that config.status was made for.
24973 if test -n "$ac_config_files"; then
24974   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24975 fi
24976
24977 if test -n "$ac_config_headers"; then
24978   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24979 fi
24980
24981 if test -n "$ac_config_links"; then
24982   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24983 fi
24984
24985 if test -n "$ac_config_commands"; then
24986   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24987 fi
24988
24989 cat >>$CONFIG_STATUS <<\_ACEOF
24990
24991 ac_cs_usage="\
24992 \`$as_me' instantiates files from templates according to the
24993 current configuration.
24994
24995 Usage: $0 [OPTIONS] [FILE]...
24996
24997   -h, --help       print this help, then exit
24998   -V, --version    print version number, then exit
24999   -q, --quiet      do not print progress messages
25000   -d, --debug      don't remove temporary files
25001       --recheck    update $as_me by reconfiguring in the same conditions
25002   --file=FILE[:TEMPLATE]
25003                    instantiate the configuration file FILE
25004   --header=FILE[:TEMPLATE]
25005                    instantiate the configuration header FILE
25006
25007 Configuration files:
25008 $config_files
25009
25010 Configuration headers:
25011 $config_headers
25012
25013 Configuration links:
25014 $config_links
25015
25016 Configuration commands:
25017 $config_commands
25018
25019 Report bugs to <bug-autoconf@gnu.org>."
25020 _ACEOF
25021
25022 cat >>$CONFIG_STATUS <<_ACEOF
25023 ac_cs_version="\\
25024 PostgreSQL config.status 8.3devel
25025 configured by $0, generated by GNU Autoconf 2.59,
25026   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25027
25028 Copyright (C) 2003 Free Software Foundation, Inc.
25029 This config.status script is free software; the Free Software Foundation
25030 gives unlimited permission to copy, distribute and modify it."
25031 srcdir=$srcdir
25032 _ACEOF
25033
25034 cat >>$CONFIG_STATUS <<\_ACEOF
25035 # If no file are specified by the user, then we need to provide default
25036 # value.  By we need to know if files were specified by the user.
25037 ac_need_defaults=:
25038 while test $# != 0
25039 do
25040   case $1 in
25041   --*=*)
25042     ac_option=`expr "x$1" : 'x\([^=]*\)='`
25043     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25044     ac_shift=:
25045     ;;
25046   -*)
25047     ac_option=$1
25048     ac_optarg=$2
25049     ac_shift=shift
25050     ;;
25051   *) # This is not an option, so the user has probably given explicit
25052      # arguments.
25053      ac_option=$1
25054      ac_need_defaults=false;;
25055   esac
25056
25057   case $ac_option in
25058   # Handling of the options.
25059 _ACEOF
25060 cat >>$CONFIG_STATUS <<\_ACEOF
25061   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25062     ac_cs_recheck=: ;;
25063   --version | --vers* | -V )
25064     echo "$ac_cs_version"; exit 0 ;;
25065   --he | --h)
25066     # Conflict between --help and --header
25067     { { echo "$as_me:$LINENO: error: ambiguous option: $1
25068 Try \`$0 --help' for more information." >&5
25069 echo "$as_me: error: ambiguous option: $1
25070 Try \`$0 --help' for more information." >&2;}
25071    { (exit 1); exit 1; }; };;
25072   --help | --hel | -h )
25073     echo "$ac_cs_usage"; exit 0 ;;
25074   --debug | --d* | -d )
25075     debug=: ;;
25076   --file | --fil | --fi | --f )
25077     $ac_shift
25078     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25079     ac_need_defaults=false;;
25080   --header | --heade | --head | --hea )
25081     $ac_shift
25082     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25083     ac_need_defaults=false;;
25084   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25085   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25086     ac_cs_silent=: ;;
25087
25088   # This is an error.
25089   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25090 Try \`$0 --help' for more information." >&5
25091 echo "$as_me: error: unrecognized option: $1
25092 Try \`$0 --help' for more information." >&2;}
25093    { (exit 1); exit 1; }; } ;;
25094
25095   *) ac_config_targets="$ac_config_targets $1" ;;
25096
25097   esac
25098   shift
25099 done
25100
25101 ac_configure_extra_args=
25102
25103 if $ac_cs_silent; then
25104   exec 6>/dev/null
25105   ac_configure_extra_args="$ac_configure_extra_args --silent"
25106 fi
25107
25108 _ACEOF
25109 cat >>$CONFIG_STATUS <<_ACEOF
25110 if \$ac_cs_recheck; then
25111   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25112   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25113 fi
25114
25115 _ACEOF
25116
25117
25118
25119
25120
25121 cat >>$CONFIG_STATUS <<\_ACEOF
25122 for ac_config_target in $ac_config_targets
25123 do
25124   case "$ac_config_target" in
25125   # Handling of arguments.
25126   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
25127   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
25128   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
25129   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
25130   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
25131   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
25132   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
25133   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
25134   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
25135   "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
25136   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
25137   "src/interfaces/ecpg/include/ecpg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
25138   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25139 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25140    { (exit 1); exit 1; }; };;
25141   esac
25142 done
25143
25144 # If the user did not use the arguments to specify the items to instantiate,
25145 # then the envvar interface is used.  Set only those that are not.
25146 # We use the long form for the default assignment because of an extremely
25147 # bizarre bug on SunOS 4.1.3.
25148 if $ac_need_defaults; then
25149   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25150   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25151   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25152   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25153 fi
25154
25155 # Have a temporary directory for convenience.  Make it in the build tree
25156 # simply because there is no reason to put it here, and in addition,
25157 # creating and moving files from /tmp can sometimes cause problems.
25158 # Create a temporary directory, and hook for its removal unless debugging.
25159 $debug ||
25160 {
25161   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25162   trap '{ (exit 1); exit 1; }' 1 2 13 15
25163 }
25164
25165 # Create a (secure) tmp directory for tmp files.
25166
25167 {
25168   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25169   test -n "$tmp" && test -d "$tmp"
25170 }  ||
25171 {
25172   tmp=./confstat$$-$RANDOM
25173   (umask 077 && mkdir $tmp)
25174 } ||
25175 {
25176    echo "$me: cannot create a temporary directory in ." >&2
25177    { (exit 1); exit 1; }
25178 }
25179
25180 _ACEOF
25181
25182 cat >>$CONFIG_STATUS <<_ACEOF
25183
25184 #
25185 # CONFIG_FILES section.
25186 #
25187
25188 # No need to generate the scripts if there are no CONFIG_FILES.
25189 # This happens for instance when ./config.status config.h
25190 if test -n "\$CONFIG_FILES"; then
25191   # Protect against being on the right side of a sed subst in config.status.
25192   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25193    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25194 s,@SHELL@,$SHELL,;t t
25195 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25196 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25197 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25198 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25199 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25200 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25201 s,@exec_prefix@,$exec_prefix,;t t
25202 s,@prefix@,$prefix,;t t
25203 s,@program_transform_name@,$program_transform_name,;t t
25204 s,@bindir@,$bindir,;t t
25205 s,@sbindir@,$sbindir,;t t
25206 s,@libexecdir@,$libexecdir,;t t
25207 s,@datadir@,$datadir,;t t
25208 s,@sysconfdir@,$sysconfdir,;t t
25209 s,@sharedstatedir@,$sharedstatedir,;t t
25210 s,@localstatedir@,$localstatedir,;t t
25211 s,@libdir@,$libdir,;t t
25212 s,@includedir@,$includedir,;t t
25213 s,@oldincludedir@,$oldincludedir,;t t
25214 s,@infodir@,$infodir,;t t
25215 s,@mandir@,$mandir,;t t
25216 s,@build_alias@,$build_alias,;t t
25217 s,@host_alias@,$host_alias,;t t
25218 s,@target_alias@,$target_alias,;t t
25219 s,@DEFS@,$DEFS,;t t
25220 s,@ECHO_C@,$ECHO_C,;t t
25221 s,@ECHO_N@,$ECHO_N,;t t
25222 s,@ECHO_T@,$ECHO_T,;t t
25223 s,@LIBS@,$LIBS,;t t
25224 s,@configure_args@,$configure_args,;t t
25225 s,@build@,$build,;t t
25226 s,@build_cpu@,$build_cpu,;t t
25227 s,@build_vendor@,$build_vendor,;t t
25228 s,@build_os@,$build_os,;t t
25229 s,@host@,$host,;t t
25230 s,@host_cpu@,$host_cpu,;t t
25231 s,@host_vendor@,$host_vendor,;t t
25232 s,@host_os@,$host_os,;t t
25233 s,@PORTNAME@,$PORTNAME,;t t
25234 s,@docdir@,$docdir,;t t
25235 s,@enable_nls@,$enable_nls,;t t
25236 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
25237 s,@default_port@,$default_port,;t t
25238 s,@enable_shared@,$enable_shared,;t t
25239 s,@enable_rpath@,$enable_rpath,;t t
25240 s,@enable_debug@,$enable_debug,;t t
25241 s,@enable_profiling@,$enable_profiling,;t t
25242 s,@DTRACE@,$DTRACE,;t t
25243 s,@DTRACEFLAGS@,$DTRACEFLAGS,;t t
25244 s,@enable_dtrace@,$enable_dtrace,;t t
25245 s,@CC@,$CC,;t t
25246 s,@CFLAGS@,$CFLAGS,;t t
25247 s,@LDFLAGS@,$LDFLAGS,;t t
25248 s,@CPPFLAGS@,$CPPFLAGS,;t t
25249 s,@ac_ct_CC@,$ac_ct_CC,;t t
25250 s,@EXEEXT@,$EXEEXT,;t t
25251 s,@OBJEXT@,$OBJEXT,;t t
25252 s,@CPP@,$CPP,;t t
25253 s,@GCC@,$GCC,;t t
25254 s,@TAS@,$TAS,;t t
25255 s,@autodepend@,$autodepend,;t t
25256 s,@INCLUDES@,$INCLUDES,;t t
25257 s,@enable_thread_safety@,$enable_thread_safety,;t t
25258 s,@with_tcl@,$with_tcl,;t t
25259 s,@with_perl@,$with_perl,;t t
25260 s,@with_python@,$with_python,;t t
25261 s,@with_gssapi@,$with_gssapi,;t t
25262 s,@with_krb5@,$with_krb5,;t t
25263 s,@krb_srvtab@,$krb_srvtab,;t t
25264 s,@with_pam@,$with_pam,;t t
25265 s,@with_ldap@,$with_ldap,;t t
25266 s,@with_bonjour@,$with_bonjour,;t t
25267 s,@with_openssl@,$with_openssl,;t t
25268 s,@with_ossp_uuid@,$with_ossp_uuid,;t t
25269 s,@XML2_CONFIG@,$XML2_CONFIG,;t t
25270 s,@with_libxml@,$with_libxml,;t t
25271 s,@with_libxslt@,$with_libxslt,;t t
25272 s,@with_system_tzdata@,$with_system_tzdata,;t t
25273 s,@with_zlib@,$with_zlib,;t t
25274 s,@EGREP@,$EGREP,;t t
25275 s,@ELF_SYS@,$ELF_SYS,;t t
25276 s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
25277 s,@LD@,$LD,;t t
25278 s,@with_gnu_ld@,$with_gnu_ld,;t t
25279 s,@ld_R_works@,$ld_R_works,;t t
25280 s,@RANLIB@,$RANLIB,;t t
25281 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25282 s,@STRIP@,$STRIP,;t t
25283 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25284 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
25285 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
25286 s,@TAR@,$TAR,;t t
25287 s,@LN_S@,$LN_S,;t t
25288 s,@AWK@,$AWK,;t t
25289 s,@YACC@,$YACC,;t t
25290 s,@YFLAGS@,$YFLAGS,;t t
25291 s,@FLEX@,$FLEX,;t t
25292 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
25293 s,@PERL@,$PERL,;t t
25294 s,@perl_archlibexp@,$perl_archlibexp,;t t
25295 s,@perl_privlibexp@,$perl_privlibexp,;t t
25296 s,@perl_useshrplib@,$perl_useshrplib,;t t
25297 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
25298 s,@PYTHON@,$PYTHON,;t t
25299 s,@python_version@,$python_version,;t t
25300 s,@python_configdir@,$python_configdir,;t t
25301 s,@python_includespec@,$python_includespec,;t t
25302 s,@python_libdir@,$python_libdir,;t t
25303 s,@python_libspec@,$python_libspec,;t t
25304 s,@python_additional_libs@,$python_additional_libs,;t t
25305 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
25306 s,@LIBOBJS@,$LIBOBJS,;t t
25307 s,@acx_pthread_config@,$acx_pthread_config,;t t
25308 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
25309 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
25310 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
25311 s,@LDAP_LIBS_FE@,$LDAP_LIBS_FE,;t t
25312 s,@LDAP_LIBS_BE@,$LDAP_LIBS_BE,;t t
25313 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
25314 s,@MSGFMT@,$MSGFMT,;t t
25315 s,@MSGMERGE@,$MSGMERGE,;t t
25316 s,@XGETTEXT@,$XGETTEXT,;t t
25317 s,@localedir@,$localedir,;t t
25318 s,@TCLSH@,$TCLSH,;t t
25319 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
25320 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
25321 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
25322 s,@TCL_LIBS@,$TCL_LIBS,;t t
25323 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
25324 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
25325 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
25326 s,@NSGMLS@,$NSGMLS,;t t
25327 s,@JADE@,$JADE,;t t
25328 s,@have_docbook@,$have_docbook,;t t
25329 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
25330 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
25331 s,@SGMLSPL@,$SGMLSPL,;t t
25332 s,@vpath_build@,$vpath_build,;t t
25333 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25334 CEOF
25335
25336 _ACEOF
25337
25338   cat >>$CONFIG_STATUS <<\_ACEOF
25339   # Split the substitutions into bite-sized pieces for seds with
25340   # small command number limits, like on Digital OSF/1 and HP-UX.
25341   ac_max_sed_lines=48
25342   ac_sed_frag=1 # Number of current file.
25343   ac_beg=1 # First line for current file.
25344   ac_end=$ac_max_sed_lines # Line after last line for current file.
25345   ac_more_lines=:
25346   ac_sed_cmds=
25347   while $ac_more_lines; do
25348     if test $ac_beg -gt 1; then
25349       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25350     else
25351       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25352     fi
25353     if test ! -s $tmp/subs.frag; then
25354       ac_more_lines=false
25355     else
25356       # The purpose of the label and of the branching condition is to
25357       # speed up the sed processing (if there are no `@' at all, there
25358       # is no need to browse any of the substitutions).
25359       # These are the two extra sed commands mentioned above.
25360       (echo ':t
25361   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25362       if test -z "$ac_sed_cmds"; then
25363         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25364       else
25365         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25366       fi
25367       ac_sed_frag=`expr $ac_sed_frag + 1`
25368       ac_beg=$ac_end
25369       ac_end=`expr $ac_end + $ac_max_sed_lines`
25370     fi
25371   done
25372   if test -z "$ac_sed_cmds"; then
25373     ac_sed_cmds=cat
25374   fi
25375 fi # test -n "$CONFIG_FILES"
25376
25377 _ACEOF
25378 cat >>$CONFIG_STATUS <<\_ACEOF
25379 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25380   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25381   case $ac_file in
25382   - | *:- | *:-:* ) # input from stdin
25383         cat >$tmp/stdin
25384         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25385         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25386   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25387         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25388   * )   ac_file_in=$ac_file.in ;;
25389   esac
25390
25391   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25392   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25393 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25394          X"$ac_file" : 'X\(//\)[^/]' \| \
25395          X"$ac_file" : 'X\(//\)$' \| \
25396          X"$ac_file" : 'X\(/\)' \| \
25397          .     : '\(.\)' 2>/dev/null ||
25398 echo X"$ac_file" |
25399     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25400           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25401           /^X\(\/\/\)$/{ s//\1/; q; }
25402           /^X\(\/\).*/{ s//\1/; q; }
25403           s/.*/./; q'`
25404   { if $as_mkdir_p; then
25405     mkdir -p "$ac_dir"
25406   else
25407     as_dir="$ac_dir"
25408     as_dirs=
25409     while test ! -d "$as_dir"; do
25410       as_dirs="$as_dir $as_dirs"
25411       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25412 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25413          X"$as_dir" : 'X\(//\)[^/]' \| \
25414          X"$as_dir" : 'X\(//\)$' \| \
25415          X"$as_dir" : 'X\(/\)' \| \
25416          .     : '\(.\)' 2>/dev/null ||
25417 echo X"$as_dir" |
25418     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25419           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25420           /^X\(\/\/\)$/{ s//\1/; q; }
25421           /^X\(\/\).*/{ s//\1/; q; }
25422           s/.*/./; q'`
25423     done
25424     test ! -n "$as_dirs" || mkdir $as_dirs
25425   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25426 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25427    { (exit 1); exit 1; }; }; }
25428
25429   ac_builddir=.
25430
25431 if test "$ac_dir" != .; then
25432   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25433   # A "../" for each directory in $ac_dir_suffix.
25434   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25435 else
25436   ac_dir_suffix= ac_top_builddir=
25437 fi
25438
25439 case $srcdir in
25440   .)  # No --srcdir option.  We are building in place.
25441     ac_srcdir=.
25442     if test -z "$ac_top_builddir"; then
25443        ac_top_srcdir=.
25444     else
25445        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25446     fi ;;
25447   [\\/]* | ?:[\\/]* )  # Absolute path.
25448     ac_srcdir=$srcdir$ac_dir_suffix;
25449     ac_top_srcdir=$srcdir ;;
25450   *) # Relative path.
25451     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25452     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25453 esac
25454
25455 # Do not use `cd foo && pwd` to compute absolute paths, because
25456 # the directories may not exist.
25457 case `pwd` in
25458 .) ac_abs_builddir="$ac_dir";;
25459 *)
25460   case "$ac_dir" in
25461   .) ac_abs_builddir=`pwd`;;
25462   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25463   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25464   esac;;
25465 esac
25466 case $ac_abs_builddir in
25467 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25468 *)
25469   case ${ac_top_builddir}. in
25470   .) ac_abs_top_builddir=$ac_abs_builddir;;
25471   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25472   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25473   esac;;
25474 esac
25475 case $ac_abs_builddir in
25476 .) ac_abs_srcdir=$ac_srcdir;;
25477 *)
25478   case $ac_srcdir in
25479   .) ac_abs_srcdir=$ac_abs_builddir;;
25480   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25481   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25482   esac;;
25483 esac
25484 case $ac_abs_builddir in
25485 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25486 *)
25487   case $ac_top_srcdir in
25488   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25489   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25490   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25491   esac;;
25492 esac
25493
25494
25495
25496   if test x"$ac_file" != x-; then
25497     { echo "$as_me:$LINENO: creating $ac_file" >&5
25498 echo "$as_me: creating $ac_file" >&6;}
25499     rm -f "$ac_file"
25500   fi
25501   # Let's still pretend it is `configure' which instantiates (i.e., don't
25502   # use $as_me), people would be surprised to read:
25503   #    /* config.h.  Generated by config.status.  */
25504   if test x"$ac_file" = x-; then
25505     configure_input=
25506   else
25507     configure_input="$ac_file.  "
25508   fi
25509   configure_input=$configure_input"Generated from `echo $ac_file_in |
25510                                      sed 's,.*/,,'` by configure."
25511
25512   # First look for the input files in the build tree, otherwise in the
25513   # src tree.
25514   ac_file_inputs=`IFS=:
25515     for f in $ac_file_in; do
25516       case $f in
25517       -) echo $tmp/stdin ;;
25518       [\\/$]*)
25519          # Absolute (can't be DOS-style, as IFS=:)
25520          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25521 echo "$as_me: error: cannot find input file: $f" >&2;}
25522    { (exit 1); exit 1; }; }
25523          echo "$f";;
25524       *) # Relative
25525          if test -f "$f"; then
25526            # Build tree
25527            echo "$f"
25528          elif test -f "$srcdir/$f"; then
25529            # Source tree
25530            echo "$srcdir/$f"
25531          else
25532            # /dev/null tree
25533            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25534 echo "$as_me: error: cannot find input file: $f" >&2;}
25535    { (exit 1); exit 1; }; }
25536          fi;;
25537       esac
25538     done` || { (exit 1); exit 1; }
25539 _ACEOF
25540 cat >>$CONFIG_STATUS <<_ACEOF
25541   sed "$ac_vpsub
25542 $extrasub
25543 _ACEOF
25544 cat >>$CONFIG_STATUS <<\_ACEOF
25545 :t
25546 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25547 s,@configure_input@,$configure_input,;t t
25548 s,@srcdir@,$ac_srcdir,;t t
25549 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25550 s,@top_srcdir@,$ac_top_srcdir,;t t
25551 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25552 s,@builddir@,$ac_builddir,;t t
25553 s,@abs_builddir@,$ac_abs_builddir,;t t
25554 s,@top_builddir@,$ac_top_builddir,;t t
25555 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25556 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25557   rm -f $tmp/stdin
25558   if test x"$ac_file" != x-; then
25559     mv $tmp/out $ac_file
25560   else
25561     cat $tmp/out
25562     rm -f $tmp/out
25563   fi
25564
25565 done
25566 _ACEOF
25567 cat >>$CONFIG_STATUS <<\_ACEOF
25568
25569 #
25570 # CONFIG_HEADER section.
25571 #
25572
25573 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25574 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25575 #
25576 # ac_d sets the value in "#define NAME VALUE" lines.
25577 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
25578 ac_dB='[         ].*$,\1#\2'
25579 ac_dC=' '
25580 ac_dD=',;t'
25581 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25582 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
25583 ac_uB='$,\1#\2define\3'
25584 ac_uC=' '
25585 ac_uD=',;t'
25586
25587 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25588   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25589   case $ac_file in
25590   - | *:- | *:-:* ) # input from stdin
25591         cat >$tmp/stdin
25592         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25593         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25594   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25595         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25596   * )   ac_file_in=$ac_file.in ;;
25597   esac
25598
25599   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25600 echo "$as_me: creating $ac_file" >&6;}
25601
25602   # First look for the input files in the build tree, otherwise in the
25603   # src tree.
25604   ac_file_inputs=`IFS=:
25605     for f in $ac_file_in; do
25606       case $f in
25607       -) echo $tmp/stdin ;;
25608       [\\/$]*)
25609          # Absolute (can't be DOS-style, as IFS=:)
25610          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25611 echo "$as_me: error: cannot find input file: $f" >&2;}
25612    { (exit 1); exit 1; }; }
25613          # Do quote $f, to prevent DOS paths from being IFS'd.
25614          echo "$f";;
25615       *) # Relative
25616          if test -f "$f"; then
25617            # Build tree
25618            echo "$f"
25619          elif test -f "$srcdir/$f"; then
25620            # Source tree
25621            echo "$srcdir/$f"
25622          else
25623            # /dev/null tree
25624            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25625 echo "$as_me: error: cannot find input file: $f" >&2;}
25626    { (exit 1); exit 1; }; }
25627          fi;;
25628       esac
25629     done` || { (exit 1); exit 1; }
25630   # Remove the trailing spaces.
25631   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
25632
25633 _ACEOF
25634
25635 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25636 # `conftest.undefs', that substitutes the proper values into
25637 # config.h.in to produce config.h.  The first handles `#define'
25638 # templates, and the second `#undef' templates.
25639 # And first: Protect against being on the right side of a sed subst in
25640 # config.status.  Protect against being in an unquoted here document
25641 # in config.status.
25642 rm -f conftest.defines conftest.undefs
25643 # Using a here document instead of a string reduces the quoting nightmare.
25644 # Putting comments in sed scripts is not portable.
25645 #
25646 # `end' is used to avoid that the second main sed command (meant for
25647 # 0-ary CPP macros) applies to n-ary macro definitions.
25648 # See the Autoconf documentation for `clear'.
25649 cat >confdef2sed.sed <<\_ACEOF
25650 s/[\\&,]/\\&/g
25651 s,[\\$`],\\&,g
25652 t clear
25653 : clear
25654 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25655 t end
25656 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25657 : end
25658 _ACEOF
25659 # If some macros were called several times there might be several times
25660 # the same #defines, which is useless.  Nevertheless, we may not want to
25661 # sort them, since we want the *last* AC-DEFINE to be honored.
25662 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25663 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25664 rm -f confdef2sed.sed
25665
25666 # This sed command replaces #undef with comments.  This is necessary, for
25667 # example, in the case of _POSIX_SOURCE, which is predefined and required
25668 # on some systems where configure will not decide to define it.
25669 cat >>conftest.undefs <<\_ACEOF
25670 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25671 _ACEOF
25672
25673 # Break up conftest.defines because some shells have a limit on the size
25674 # of here documents, and old seds have small limits too (100 cmds).
25675 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25676 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25677 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25678 echo '  :' >>$CONFIG_STATUS
25679 rm -f conftest.tail
25680 while grep . conftest.defines >/dev/null
25681 do
25682   # Write a limited-size here document to $tmp/defines.sed.
25683   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25684   # Speed up: don't consider the non `#define' lines.
25685   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
25686   # Work around the forget-to-reset-the-flag bug.
25687   echo 't clr' >>$CONFIG_STATUS
25688   echo ': clr' >>$CONFIG_STATUS
25689   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25690   echo 'CEOF
25691   sed -f $tmp/defines.sed $tmp/in >$tmp/out
25692   rm -f $tmp/in
25693   mv $tmp/out $tmp/in
25694 ' >>$CONFIG_STATUS
25695   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25696   rm -f conftest.defines
25697   mv conftest.tail conftest.defines
25698 done
25699 rm -f conftest.defines
25700 echo '  fi # grep' >>$CONFIG_STATUS
25701 echo >>$CONFIG_STATUS
25702
25703 # Break up conftest.undefs because some shells have a limit on the size
25704 # of here documents, and old seds have small limits too (100 cmds).
25705 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25706 rm -f conftest.tail
25707 while grep . conftest.undefs >/dev/null
25708 do
25709   # Write a limited-size here document to $tmp/undefs.sed.
25710   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25711   # Speed up: don't consider the non `#undef'
25712   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25713   # Work around the forget-to-reset-the-flag bug.
25714   echo 't clr' >>$CONFIG_STATUS
25715   echo ': clr' >>$CONFIG_STATUS
25716   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25717   echo 'CEOF
25718   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25719   rm -f $tmp/in
25720   mv $tmp/out $tmp/in
25721 ' >>$CONFIG_STATUS
25722   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25723   rm -f conftest.undefs
25724   mv conftest.tail conftest.undefs
25725 done
25726 rm -f conftest.undefs
25727
25728 cat >>$CONFIG_STATUS <<\_ACEOF
25729   # Let's still pretend it is `configure' which instantiates (i.e., don't
25730   # use $as_me), people would be surprised to read:
25731   #    /* config.h.  Generated by config.status.  */
25732   if test x"$ac_file" = x-; then
25733     echo "/* Generated by configure.  */" >$tmp/config.h
25734   else
25735     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25736   fi
25737   cat $tmp/in >>$tmp/config.h
25738   rm -f $tmp/in
25739   if test x"$ac_file" != x-; then
25740     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25741       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25742 echo "$as_me: $ac_file is unchanged" >&6;}
25743     else
25744       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25745 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25746          X"$ac_file" : 'X\(//\)[^/]' \| \
25747          X"$ac_file" : 'X\(//\)$' \| \
25748          X"$ac_file" : 'X\(/\)' \| \
25749          .     : '\(.\)' 2>/dev/null ||
25750 echo X"$ac_file" |
25751     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25752           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25753           /^X\(\/\/\)$/{ s//\1/; q; }
25754           /^X\(\/\).*/{ s//\1/; q; }
25755           s/.*/./; q'`
25756       { if $as_mkdir_p; then
25757     mkdir -p "$ac_dir"
25758   else
25759     as_dir="$ac_dir"
25760     as_dirs=
25761     while test ! -d "$as_dir"; do
25762       as_dirs="$as_dir $as_dirs"
25763       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25764 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25765          X"$as_dir" : 'X\(//\)[^/]' \| \
25766          X"$as_dir" : 'X\(//\)$' \| \
25767          X"$as_dir" : 'X\(/\)' \| \
25768          .     : '\(.\)' 2>/dev/null ||
25769 echo X"$as_dir" |
25770     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25771           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25772           /^X\(\/\/\)$/{ s//\1/; q; }
25773           /^X\(\/\).*/{ s//\1/; q; }
25774           s/.*/./; q'`
25775     done
25776     test ! -n "$as_dirs" || mkdir $as_dirs
25777   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25778 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25779    { (exit 1); exit 1; }; }; }
25780
25781       rm -f $ac_file
25782       mv $tmp/config.h $ac_file
25783     fi
25784   else
25785     cat $tmp/config.h
25786     rm -f $tmp/config.h
25787   fi
25788   # Run the commands associated with the file.
25789   case $ac_file in
25790     src/include/pg_config.h )
25791 # Update timestamp for pg_config.h (see Makefile.global)
25792 echo >src/include/stamp-h
25793  ;;
25794   esac
25795 done
25796 _ACEOF
25797 cat >>$CONFIG_STATUS <<\_ACEOF
25798
25799 #
25800 # CONFIG_LINKS section.
25801 #
25802
25803 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25804   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25805   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25806
25807   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25808 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25809
25810   if test ! -r $srcdir/$ac_source; then
25811     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25812 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25813    { (exit 1); exit 1; }; }
25814   fi
25815   rm -f $ac_dest
25816
25817   # Make relative symlinks.
25818   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25819 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25820          X"$ac_dest" : 'X\(//\)[^/]' \| \
25821          X"$ac_dest" : 'X\(//\)$' \| \
25822          X"$ac_dest" : 'X\(/\)' \| \
25823          .     : '\(.\)' 2>/dev/null ||
25824 echo X"$ac_dest" |
25825     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25826           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25827           /^X\(\/\/\)$/{ s//\1/; q; }
25828           /^X\(\/\).*/{ s//\1/; q; }
25829           s/.*/./; q'`
25830   { if $as_mkdir_p; then
25831     mkdir -p "$ac_dest_dir"
25832   else
25833     as_dir="$ac_dest_dir"
25834     as_dirs=
25835     while test ! -d "$as_dir"; do
25836       as_dirs="$as_dir $as_dirs"
25837       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25838 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25839          X"$as_dir" : 'X\(//\)[^/]' \| \
25840          X"$as_dir" : 'X\(//\)$' \| \
25841          X"$as_dir" : 'X\(/\)' \| \
25842          .     : '\(.\)' 2>/dev/null ||
25843 echo X"$as_dir" |
25844     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25845           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25846           /^X\(\/\/\)$/{ s//\1/; q; }
25847           /^X\(\/\).*/{ s//\1/; q; }
25848           s/.*/./; q'`
25849     done
25850     test ! -n "$as_dirs" || mkdir $as_dirs
25851   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25852 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25853    { (exit 1); exit 1; }; }; }
25854
25855   ac_builddir=.
25856
25857 if test "$ac_dest_dir" != .; then
25858   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25859   # A "../" for each directory in $ac_dir_suffix.
25860   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25861 else
25862   ac_dir_suffix= ac_top_builddir=
25863 fi
25864
25865 case $srcdir in
25866   .)  # No --srcdir option.  We are building in place.
25867     ac_srcdir=.
25868     if test -z "$ac_top_builddir"; then
25869        ac_top_srcdir=.
25870     else
25871        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25872     fi ;;
25873   [\\/]* | ?:[\\/]* )  # Absolute path.
25874     ac_srcdir=$srcdir$ac_dir_suffix;
25875     ac_top_srcdir=$srcdir ;;
25876   *) # Relative path.
25877     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25878     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25879 esac
25880
25881 # Do not use `cd foo && pwd` to compute absolute paths, because
25882 # the directories may not exist.
25883 case `pwd` in
25884 .) ac_abs_builddir="$ac_dest_dir";;
25885 *)
25886   case "$ac_dest_dir" in
25887   .) ac_abs_builddir=`pwd`;;
25888   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25889   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25890   esac;;
25891 esac
25892 case $ac_abs_builddir in
25893 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25894 *)
25895   case ${ac_top_builddir}. in
25896   .) ac_abs_top_builddir=$ac_abs_builddir;;
25897   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25898   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25899   esac;;
25900 esac
25901 case $ac_abs_builddir in
25902 .) ac_abs_srcdir=$ac_srcdir;;
25903 *)
25904   case $ac_srcdir in
25905   .) ac_abs_srcdir=$ac_abs_builddir;;
25906   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25907   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25908   esac;;
25909 esac
25910 case $ac_abs_builddir in
25911 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25912 *)
25913   case $ac_top_srcdir in
25914   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25915   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25916   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25917   esac;;
25918 esac
25919
25920
25921   case $srcdir in
25922   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25923       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25924   esac
25925
25926   # Try a symlink, then a hard link, then a copy.
25927   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25928     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25929     cp -p $srcdir/$ac_source $ac_dest ||
25930     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25931 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25932    { (exit 1); exit 1; }; }
25933 done
25934 _ACEOF
25935 cat >>$CONFIG_STATUS <<\_ACEOF
25936
25937 #
25938 # CONFIG_COMMANDS section.
25939 #
25940 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25941   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25942   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25943   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25944 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25945          X"$ac_dest" : 'X\(//\)[^/]' \| \
25946          X"$ac_dest" : 'X\(//\)$' \| \
25947          X"$ac_dest" : 'X\(/\)' \| \
25948          .     : '\(.\)' 2>/dev/null ||
25949 echo X"$ac_dest" |
25950     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25951           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25952           /^X\(\/\/\)$/{ s//\1/; q; }
25953           /^X\(\/\).*/{ s//\1/; q; }
25954           s/.*/./; q'`
25955   { if $as_mkdir_p; then
25956     mkdir -p "$ac_dir"
25957   else
25958     as_dir="$ac_dir"
25959     as_dirs=
25960     while test ! -d "$as_dir"; do
25961       as_dirs="$as_dir $as_dirs"
25962       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25963 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25964          X"$as_dir" : 'X\(//\)[^/]' \| \
25965          X"$as_dir" : 'X\(//\)$' \| \
25966          X"$as_dir" : 'X\(/\)' \| \
25967          .     : '\(.\)' 2>/dev/null ||
25968 echo X"$as_dir" |
25969     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25970           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25971           /^X\(\/\/\)$/{ s//\1/; q; }
25972           /^X\(\/\).*/{ s//\1/; q; }
25973           s/.*/./; q'`
25974     done
25975     test ! -n "$as_dirs" || mkdir $as_dirs
25976   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25977 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25978    { (exit 1); exit 1; }; }; }
25979
25980   ac_builddir=.
25981
25982 if test "$ac_dir" != .; then
25983   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25984   # A "../" for each directory in $ac_dir_suffix.
25985   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25986 else
25987   ac_dir_suffix= ac_top_builddir=
25988 fi
25989
25990 case $srcdir in
25991   .)  # No --srcdir option.  We are building in place.
25992     ac_srcdir=.
25993     if test -z "$ac_top_builddir"; then
25994        ac_top_srcdir=.
25995     else
25996        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25997     fi ;;
25998   [\\/]* | ?:[\\/]* )  # Absolute path.
25999     ac_srcdir=$srcdir$ac_dir_suffix;
26000     ac_top_srcdir=$srcdir ;;
26001   *) # Relative path.
26002     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26003     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26004 esac
26005
26006 # Do not use `cd foo && pwd` to compute absolute paths, because
26007 # the directories may not exist.
26008 case `pwd` in
26009 .) ac_abs_builddir="$ac_dir";;
26010 *)
26011   case "$ac_dir" in
26012   .) ac_abs_builddir=`pwd`;;
26013   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26014   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26015   esac;;
26016 esac
26017 case $ac_abs_builddir in
26018 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26019 *)
26020   case ${ac_top_builddir}. in
26021   .) ac_abs_top_builddir=$ac_abs_builddir;;
26022   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26023   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26024   esac;;
26025 esac
26026 case $ac_abs_builddir in
26027 .) ac_abs_srcdir=$ac_srcdir;;
26028 *)
26029   case $ac_srcdir in
26030   .) ac_abs_srcdir=$ac_abs_builddir;;
26031   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26032   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26033   esac;;
26034 esac
26035 case $ac_abs_builddir in
26036 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26037 *)
26038   case $ac_top_srcdir in
26039   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26040   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26041   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26042   esac;;
26043 esac
26044
26045
26046   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26047 echo "$as_me: executing $ac_dest commands" >&6;}
26048   case $ac_dest in
26049     check_win32_symlinks )
26050 # Links sometimes fail undetected on Mingw -
26051 # so here we detect it and warn the user
26052 for FILE in $CONFIG_LINKS
26053  do
26054         # test -e works for symlinks in the MinGW console
26055         test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
26056 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
26057  done
26058  ;;
26059   esac
26060 done
26061 _ACEOF
26062
26063 cat >>$CONFIG_STATUS <<\_ACEOF
26064
26065 { (exit 0); exit 0; }
26066 _ACEOF
26067 chmod +x $CONFIG_STATUS
26068 ac_clean_files=$ac_clean_files_save
26069
26070
26071 # configure is writing to config.log, and then calls config.status.
26072 # config.status does its own redirection, appending to config.log.
26073 # Unfortunately, on DOS this fails, as config.log is still kept open
26074 # by configure, so config.status won't be able to write to it; its
26075 # output is simply discarded.  So we exec the FD to /dev/null,
26076 # effectively closing config.log, so it can be properly (re)opened and
26077 # appended to by config.status.  When coming back to configure, we
26078 # need to make the FD available again.
26079 if test "$no_create" != yes; then
26080   ac_cs_success=:
26081   ac_config_status_args=
26082   test "$silent" = yes &&
26083     ac_config_status_args="$ac_config_status_args --quiet"
26084   exec 5>/dev/null
26085   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26086   exec 5>>config.log
26087   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26088   # would make configure fail if this is the last instruction.
26089   $ac_cs_success || { (exit 1); exit 1; }
26090 fi
26091
26092
26093 # Warn about unknown options
26094 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
26095   for pgac_arg in $pgac_args with_gnu_ld; do
26096     if test "$pgac_var" = "$pgac_arg"; then
26097       continue 2
26098     fi
26099   done
26100   pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
26101   { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
26102 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}
26103 done