]> granicus.if.org Git - postgresql/blob - configure
Fix typo in comment.
[postgresql] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for PostgreSQL 8.2devel.
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-2005, 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.2devel'
275 PACKAGE_STRING='PostgreSQL 8.2devel'
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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP GCC TAS autodepend INCLUDES enable_thread_safety with_tcl with_perl with_python with_krb5 krb_srvtab with_pam with_bonjour with_openssl with_zlib EGREP ELF_SYS LDFLAGS_SL AWK FLEX FLEXFLAGS LN_S LD with_gnu_ld ld_R_works RANLIB ac_ct_RANLIB LORDER TAR STRIP ac_ct_STRIP STRIP_STATIC_LIB STRIP_SHARED_LIB YACC YFLAGS 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 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.2devel 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.2devel:";;
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-depend         turn on automatic dependency tracking
869   --enable-cassert        enable assertion checks (for debugging)
870   --enable-thread-safety  make client libraries thread-safe
871   --enable-thread-safety-force  force thread-safety in spite of thread test failure
872   --disable-largefile     omit support for large files
873
874 Optional Packages:
875   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
876   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
877
878   --with-docdir=DIR       install the documentation in DIR [PREFIX/doc]
879   --without-docdir        do not install the documentation
880   --with-includes=DIRS    look for additional header files in DIRS
881   --with-libraries=DIRS   look for additional libraries in DIRS
882   --with-libs=DIRS        alternative spelling of --with-libraries
883   --with-pgport=PORTNUM   change default port number [5432]
884   --with-tcl              build Tcl modules (PL/Tcl)
885   --with-tclconfig=DIR    tclConfig.sh is in DIR
886   --with-perl             build Perl modules (PL/Perl)
887   --with-python           build Python modules (PL/Python)
888   --with-krb5             build with Kerberos 5 support
889   --with-krb-srvnam=NAME  name of the default service principal in Kerberos [postgres]
890   --with-pam              build with PAM support
891   --with-bonjour          build with Bonjour support
892   --with-openssl          build with OpenSSL support
893   --with-libedit-preferred  prefer BSD Libedit over GNU Readline
894   --without-readline      do not use GNU Readline / BSD Libedit line editing
895   --without-zlib          do not use Zlib
896   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
897
898 Some influential environment variables:
899   CC          C compiler command
900   CFLAGS      C compiler flags
901   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
902               nonstandard directory <lib dir>
903   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
904               headers in a nonstandard directory <include dir>
905   CPP         C preprocessor
906   LDFLAGS_SL
907   DOCBOOKSTYLE
908               location of DocBook stylesheets
909
910 Use these variables to override the choices made by `configure' or to help
911 it to find libraries and programs with nonstandard names/locations.
912
913 Report bugs to <pgsql-bugs@postgresql.org>.
914 _ACEOF
915 fi
916
917 if test "$ac_init_help" = "recursive"; then
918   # If there are subdirs, report their specific --help.
919   ac_popdir=`pwd`
920   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
921     test -d $ac_dir || continue
922     ac_builddir=.
923
924 if test "$ac_dir" != .; then
925   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
926   # A "../" for each directory in $ac_dir_suffix.
927   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
928 else
929   ac_dir_suffix= ac_top_builddir=
930 fi
931
932 case $srcdir in
933   .)  # No --srcdir option.  We are building in place.
934     ac_srcdir=.
935     if test -z "$ac_top_builddir"; then
936        ac_top_srcdir=.
937     else
938        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
939     fi ;;
940   [\\/]* | ?:[\\/]* )  # Absolute path.
941     ac_srcdir=$srcdir$ac_dir_suffix;
942     ac_top_srcdir=$srcdir ;;
943   *) # Relative path.
944     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
945     ac_top_srcdir=$ac_top_builddir$srcdir ;;
946 esac
947
948 # Do not use `cd foo && pwd` to compute absolute paths, because
949 # the directories may not exist.
950 case `pwd` in
951 .) ac_abs_builddir="$ac_dir";;
952 *)
953   case "$ac_dir" in
954   .) ac_abs_builddir=`pwd`;;
955   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
956   *) ac_abs_builddir=`pwd`/"$ac_dir";;
957   esac;;
958 esac
959 case $ac_abs_builddir in
960 .) ac_abs_top_builddir=${ac_top_builddir}.;;
961 *)
962   case ${ac_top_builddir}. in
963   .) ac_abs_top_builddir=$ac_abs_builddir;;
964   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
965   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
966   esac;;
967 esac
968 case $ac_abs_builddir in
969 .) ac_abs_srcdir=$ac_srcdir;;
970 *)
971   case $ac_srcdir in
972   .) ac_abs_srcdir=$ac_abs_builddir;;
973   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
974   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
975   esac;;
976 esac
977 case $ac_abs_builddir in
978 .) ac_abs_top_srcdir=$ac_top_srcdir;;
979 *)
980   case $ac_top_srcdir in
981   .) ac_abs_top_srcdir=$ac_abs_builddir;;
982   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
983   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
984   esac;;
985 esac
986
987     cd $ac_dir
988     # Check for guested configure; otherwise get Cygnus style configure.
989     if test -f $ac_srcdir/configure.gnu; then
990       echo
991       $SHELL $ac_srcdir/configure.gnu  --help=recursive
992     elif test -f $ac_srcdir/configure; then
993       echo
994       $SHELL $ac_srcdir/configure  --help=recursive
995     elif test -f $ac_srcdir/configure.ac ||
996            test -f $ac_srcdir/configure.in; then
997       echo
998       $ac_configure --help
999     else
1000       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1001     fi
1002     cd $ac_popdir
1003   done
1004 fi
1005
1006 test -n "$ac_init_help" && exit 0
1007 if $ac_init_version; then
1008   cat <<\_ACEOF
1009 PostgreSQL configure 8.2devel
1010 generated by GNU Autoconf 2.59
1011
1012 Copyright (C) 2003 Free Software Foundation, Inc.
1013 This configure script is free software; the Free Software Foundation
1014 gives unlimited permission to copy, distribute and modify it.
1015
1016 Copyright (c) 1996-2005, PostgreSQL Global Development Group
1017 _ACEOF
1018   exit 0
1019 fi
1020 exec 5>config.log
1021 cat >&5 <<_ACEOF
1022 This file contains any messages produced by compilers while
1023 running configure, to aid debugging if configure makes a mistake.
1024
1025 It was created by PostgreSQL $as_me 8.2devel, which was
1026 generated by GNU Autoconf 2.59.  Invocation command line was
1027
1028   $ $0 $@
1029
1030 _ACEOF
1031 {
1032 cat <<_ASUNAME
1033 ## --------- ##
1034 ## Platform. ##
1035 ## --------- ##
1036
1037 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1038 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1039 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1040 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1041 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1042
1043 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1044 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1045
1046 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1047 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1048 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1049 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1050 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1051 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1052 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1053
1054 _ASUNAME
1055
1056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1057 for as_dir in $PATH
1058 do
1059   IFS=$as_save_IFS
1060   test -z "$as_dir" && as_dir=.
1061   echo "PATH: $as_dir"
1062 done
1063
1064 } >&5
1065
1066 cat >&5 <<_ACEOF
1067
1068
1069 ## ----------- ##
1070 ## Core tests. ##
1071 ## ----------- ##
1072
1073 _ACEOF
1074
1075
1076 # Keep a trace of the command line.
1077 # Strip out --no-create and --no-recursion so they do not pile up.
1078 # Strip out --silent because we don't want to record it for future runs.
1079 # Also quote any args containing shell meta-characters.
1080 # Make two passes to allow for proper duplicate-argument suppression.
1081 ac_configure_args=
1082 ac_configure_args0=
1083 ac_configure_args1=
1084 ac_sep=
1085 ac_must_keep_next=false
1086 for ac_pass in 1 2
1087 do
1088   for ac_arg
1089   do
1090     case $ac_arg in
1091     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1092     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093     | -silent | --silent | --silen | --sile | --sil)
1094       continue ;;
1095     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1096       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1097     esac
1098     case $ac_pass in
1099     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1100     2)
1101       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1102       if test $ac_must_keep_next = true; then
1103         ac_must_keep_next=false # Got value, back to normal.
1104       else
1105         case $ac_arg in
1106           *=* | --config-cache | -C | -disable-* | --disable-* \
1107           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1108           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1109           | -with-* | --with-* | -without-* | --without-* | --x)
1110             case "$ac_configure_args0 " in
1111               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1112             esac
1113             ;;
1114           -* ) ac_must_keep_next=true ;;
1115         esac
1116       fi
1117       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1118       # Get rid of the leading space.
1119       ac_sep=" "
1120       ;;
1121     esac
1122   done
1123 done
1124 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1125 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1126
1127 # When interrupted or exit'd, cleanup temporary files, and complete
1128 # config.log.  We remove comments because anyway the quotes in there
1129 # would cause problems or look ugly.
1130 # WARNING: Be sure not to use single quotes in there, as some shells,
1131 # such as our DU 5.0 friend, will then `close' the trap.
1132 trap 'exit_status=$?
1133   # Save into config.log some information that might help in debugging.
1134   {
1135     echo
1136
1137     cat <<\_ASBOX
1138 ## ---------------- ##
1139 ## Cache variables. ##
1140 ## ---------------- ##
1141 _ASBOX
1142     echo
1143     # The following way of writing the cache mishandles newlines in values,
1144 {
1145   (set) 2>&1 |
1146     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1147     *ac_space=\ *)
1148       sed -n \
1149         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1150           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1151       ;;
1152     *)
1153       sed -n \
1154         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1155       ;;
1156     esac;
1157 }
1158     echo
1159
1160     cat <<\_ASBOX
1161 ## ----------------- ##
1162 ## Output variables. ##
1163 ## ----------------- ##
1164 _ASBOX
1165     echo
1166     for ac_var in $ac_subst_vars
1167     do
1168       eval ac_val=$`echo $ac_var`
1169       echo "$ac_var='"'"'$ac_val'"'"'"
1170     done | sort
1171     echo
1172
1173     if test -n "$ac_subst_files"; then
1174       cat <<\_ASBOX
1175 ## ------------- ##
1176 ## Output files. ##
1177 ## ------------- ##
1178 _ASBOX
1179       echo
1180       for ac_var in $ac_subst_files
1181       do
1182         eval ac_val=$`echo $ac_var`
1183         echo "$ac_var='"'"'$ac_val'"'"'"
1184       done | sort
1185       echo
1186     fi
1187
1188     if test -s confdefs.h; then
1189       cat <<\_ASBOX
1190 ## ----------- ##
1191 ## confdefs.h. ##
1192 ## ----------- ##
1193 _ASBOX
1194       echo
1195       sed "/^$/d" confdefs.h | sort
1196       echo
1197     fi
1198     test "$ac_signal" != 0 &&
1199       echo "$as_me: caught signal $ac_signal"
1200     echo "$as_me: exit $exit_status"
1201   } >&5
1202   rm -f core *.core &&
1203   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1204     exit $exit_status
1205      ' 0
1206 for ac_signal in 1 2 13 15; do
1207   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1208 done
1209 ac_signal=0
1210
1211 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1212 rm -rf conftest* confdefs.h
1213 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1214 echo >confdefs.h
1215
1216 # Predefined preprocessor variables.
1217
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_NAME "$PACKAGE_NAME"
1220 _ACEOF
1221
1222
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1225 _ACEOF
1226
1227
1228 cat >>confdefs.h <<_ACEOF
1229 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1230 _ACEOF
1231
1232
1233 cat >>confdefs.h <<_ACEOF
1234 #define PACKAGE_STRING "$PACKAGE_STRING"
1235 _ACEOF
1236
1237
1238 cat >>confdefs.h <<_ACEOF
1239 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1240 _ACEOF
1241
1242
1243 # Let the site file select an alternate cache file if it wants to.
1244 # Prefer explicitly selected file to automatically selected ones.
1245 if test -z "$CONFIG_SITE"; then
1246   if test "x$prefix" != xNONE; then
1247     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1248   else
1249     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1250   fi
1251 fi
1252 for ac_site_file in $CONFIG_SITE; do
1253   if test -r "$ac_site_file"; then
1254     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1255 echo "$as_me: loading site script $ac_site_file" >&6;}
1256     sed 's/^/| /' "$ac_site_file" >&5
1257     . "$ac_site_file"
1258   fi
1259 done
1260
1261 if test -r "$cache_file"; then
1262   # Some versions of bash will fail to source /dev/null (special
1263   # files actually), so we avoid doing that.
1264   if test -f "$cache_file"; then
1265     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1266 echo "$as_me: loading cache $cache_file" >&6;}
1267     case $cache_file in
1268       [\\/]* | ?:[\\/]* ) . $cache_file;;
1269       *)                      . ./$cache_file;;
1270     esac
1271   fi
1272 else
1273   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1274 echo "$as_me: creating cache $cache_file" >&6;}
1275   >$cache_file
1276 fi
1277
1278 # Check that the precious variables saved in the cache have kept the same
1279 # value.
1280 ac_cache_corrupted=false
1281 for ac_var in `(set) 2>&1 |
1282                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1283   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1284   eval ac_new_set=\$ac_env_${ac_var}_set
1285   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1286   eval ac_new_val="\$ac_env_${ac_var}_value"
1287   case $ac_old_set,$ac_new_set in
1288     set,)
1289       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1290 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1291       ac_cache_corrupted=: ;;
1292     ,set)
1293       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1294 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1295       ac_cache_corrupted=: ;;
1296     ,);;
1297     *)
1298       if test "x$ac_old_val" != "x$ac_new_val"; then
1299         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1300 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1301         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1302 echo "$as_me:   former value:  $ac_old_val" >&2;}
1303         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1304 echo "$as_me:   current value: $ac_new_val" >&2;}
1305         ac_cache_corrupted=:
1306       fi;;
1307   esac
1308   # Pass precious variables to config.status.
1309   if test "$ac_new_set" = set; then
1310     case $ac_new_val in
1311     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1312       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1313     *) ac_arg=$ac_var=$ac_new_val ;;
1314     esac
1315     case " $ac_configure_args " in
1316       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1317       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1318     esac
1319   fi
1320 done
1321 if $ac_cache_corrupted; then
1322   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1323 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1324   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1325 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1326    { (exit 1); exit 1; }; }
1327 fi
1328
1329 ac_ext=c
1330 ac_cpp='$CPP $CPPFLAGS'
1331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365 ac_aux_dir=
1366 for ac_dir in config $srcdir/config; do
1367   if test -f $ac_dir/install-sh; then
1368     ac_aux_dir=$ac_dir
1369     ac_install_sh="$ac_aux_dir/install-sh -c"
1370     break
1371   elif test -f $ac_dir/install.sh; then
1372     ac_aux_dir=$ac_dir
1373     ac_install_sh="$ac_aux_dir/install.sh -c"
1374     break
1375   elif test -f $ac_dir/shtool; then
1376     ac_aux_dir=$ac_dir
1377     ac_install_sh="$ac_aux_dir/shtool install -c"
1378     break
1379   fi
1380 done
1381 if test -z "$ac_aux_dir"; then
1382   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1383 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1384    { (exit 1); exit 1; }; }
1385 fi
1386 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1387 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1388 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1389
1390
1391 configure_args=$ac_configure_args
1392
1393
1394
1395 cat >>confdefs.h <<_ACEOF
1396 #define PG_VERSION "$PACKAGE_VERSION"
1397 _ACEOF
1398
1399
1400 # Make sure we can run config.sub.
1401 $ac_config_sub sun4 >/dev/null 2>&1 ||
1402   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1403 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1404    { (exit 1); exit 1; }; }
1405
1406 echo "$as_me:$LINENO: checking build system type" >&5
1407 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1408 if test "${ac_cv_build+set}" = set; then
1409   echo $ECHO_N "(cached) $ECHO_C" >&6
1410 else
1411   ac_cv_build_alias=$build_alias
1412 test -z "$ac_cv_build_alias" &&
1413   ac_cv_build_alias=`$ac_config_guess`
1414 test -z "$ac_cv_build_alias" &&
1415   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1416 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1417    { (exit 1); exit 1; }; }
1418 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1419   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1420 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1421    { (exit 1); exit 1; }; }
1422
1423 fi
1424 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1425 echo "${ECHO_T}$ac_cv_build" >&6
1426 build=$ac_cv_build
1427 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1428 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1429 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1430
1431
1432 echo "$as_me:$LINENO: checking host system type" >&5
1433 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1434 if test "${ac_cv_host+set}" = set; then
1435   echo $ECHO_N "(cached) $ECHO_C" >&6
1436 else
1437   ac_cv_host_alias=$host_alias
1438 test -z "$ac_cv_host_alias" &&
1439   ac_cv_host_alias=$ac_cv_build_alias
1440 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1441   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1442 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1443    { (exit 1); exit 1; }; }
1444
1445 fi
1446 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1447 echo "${ECHO_T}$ac_cv_host" >&6
1448 host=$ac_cv_host
1449 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1450 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1451 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1452
1453
1454
1455 template=
1456 echo "$as_me:$LINENO: checking which template to use" >&5
1457 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1458
1459
1460
1461
1462 # Check whether --with-template or --without-template was given.
1463 if test "${with_template+set}" = set; then
1464   withval="$with_template"
1465
1466   case $withval in
1467     yes)
1468       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1469 echo "$as_me: error: argument required for --with-template option" >&2;}
1470    { (exit 1); exit 1; }; }
1471       ;;
1472     no)
1473       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1474 echo "$as_me: error: argument required for --with-template option" >&2;}
1475    { (exit 1); exit 1; }; }
1476       ;;
1477     *)
1478
1479   case $withval in
1480     list)   echo; ls "$srcdir/src/template"; exit;;
1481     *)      if test -f "$srcdir/src/template/$with_template" ; then
1482               template=$withval
1483             else
1484               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1485 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1486    { (exit 1); exit 1; }; }
1487             fi;;
1488   esac
1489
1490       ;;
1491   esac
1492
1493 else
1494
1495 # --with-template not given
1496
1497 case $host_os in
1498      aix*) template=aix ;;
1499     bsdi*) template=bsdi ;;
1500   cygwin*) template=cygwin ;;
1501   darwin*) template=darwin ;;
1502     dgux*) template=dgux ;;
1503  freebsd*) template=freebsd ;;
1504     hpux*) template=hpux ;;
1505     irix*) template=irix ;;
1506  linux*|gnu*|k*bsd*-gnu)
1507            template=linux ;;
1508    mingw*) template=win32 ;;
1509   netbsd*) template=netbsd ;;
1510 nextstep*) template=nextstep ;;
1511  openbsd*) template=openbsd ;;
1512      osf*) template=osf ;;
1513      sco*) template=sco ;;
1514  solaris*) template=solaris ;;
1515    sunos*) template=sunos4 ;;
1516  sysv4.2*)
1517         case $host_vendor in
1518           univel) template=univel ;;
1519         esac ;;
1520    sysv4*) template=svr4 ;;
1521    sysv5*) template=unixware ;;
1522   ultrix*) template=ultrix4 ;;
1523 esac
1524
1525   if test x"$template" = x"" ; then
1526     { { echo "$as_me:$LINENO: error:
1527 *******************************************************************
1528 PostgreSQL has apparently not been ported to your platform yet.
1529 To try a manual configuration, look into the src/template directory
1530 for a similar platform and use the '--with-template=' option.
1531
1532 Please also contact <pgsql-ports@postgresql.org> to see about
1533 rectifying this.  Include the above 'checking host system type...'
1534 line.
1535 *******************************************************************
1536 " >&5
1537 echo "$as_me: error:
1538 *******************************************************************
1539 PostgreSQL has apparently not been ported to your platform yet.
1540 To try a manual configuration, look into the src/template directory
1541 for a similar platform and use the '--with-template=' option.
1542
1543 Please also contact <pgsql-ports@postgresql.org> to see about
1544 rectifying this.  Include the above 'checking host system type...'
1545 line.
1546 *******************************************************************
1547 " >&2;}
1548    { (exit 1); exit 1; }; }
1549   fi
1550
1551
1552 fi;
1553
1554
1555 echo "$as_me:$LINENO: result: $template" >&5
1556 echo "${ECHO_T}$template" >&6
1557
1558 PORTNAME=$template
1559
1560
1561 # Initialize default assumption that we do not need separate assembly code
1562 # for TAS (test-and-set).  This can be overridden by the template file
1563 # when it's executed.
1564 need_tas=no
1565 tas_file=dummy.s
1566
1567
1568
1569 ##
1570 ## Command line options
1571 ##
1572
1573 #
1574 # Installation directory for documentation
1575 #
1576
1577
1578
1579 # Check whether --with-docdir or --without-docdir was given.
1580 if test "${with_docdir+set}" = set; then
1581   withval="$with_docdir"
1582
1583   case $withval in
1584     yes)
1585       { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1586 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1587    { (exit 1); exit 1; }; }
1588       ;;
1589     no)
1590       docdir=
1591       ;;
1592     *)
1593       docdir=$withval
1594       ;;
1595   esac
1596
1597 else
1598   docdir='${prefix}/doc'
1599 fi;
1600
1601
1602
1603
1604 #
1605 # Add non-standard directories to the include path
1606 #
1607
1608
1609
1610 # Check whether --with-includes or --without-includes was given.
1611 if test "${with_includes+set}" = set; then
1612   withval="$with_includes"
1613
1614   case $withval in
1615     yes)
1616       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1617 echo "$as_me: error: argument required for --with-includes option" >&2;}
1618    { (exit 1); exit 1; }; }
1619       ;;
1620     no)
1621       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1622 echo "$as_me: error: argument required for --with-includes option" >&2;}
1623    { (exit 1); exit 1; }; }
1624       ;;
1625     *)
1626
1627       ;;
1628   esac
1629
1630 fi;
1631
1632
1633
1634 #
1635 # Add non-standard directories to the library search path
1636 #
1637
1638
1639
1640 # Check whether --with-libraries or --without-libraries was given.
1641 if test "${with_libraries+set}" = set; then
1642   withval="$with_libraries"
1643
1644   case $withval in
1645     yes)
1646       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1647 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1648    { (exit 1); exit 1; }; }
1649       ;;
1650     no)
1651       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1652 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1653    { (exit 1); exit 1; }; }
1654       ;;
1655     *)
1656       LIBRARY_DIRS=$withval
1657       ;;
1658   esac
1659
1660 fi;
1661
1662
1663
1664
1665
1666 # Check whether --with-libs or --without-libs was given.
1667 if test "${with_libs+set}" = set; then
1668   withval="$with_libs"
1669
1670   case $withval in
1671     yes)
1672       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1673 echo "$as_me: error: argument required for --with-libs option" >&2;}
1674    { (exit 1); exit 1; }; }
1675       ;;
1676     no)
1677       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1678 echo "$as_me: error: argument required for --with-libs option" >&2;}
1679    { (exit 1); exit 1; }; }
1680       ;;
1681     *)
1682       LIBRARY_DIRS=$withval
1683       ;;
1684   esac
1685
1686 fi;
1687
1688
1689
1690 #
1691 # 64-bit integer date/time storage (--enable-integer-datetimes)
1692 #
1693 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1694 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1695
1696
1697 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1698 if test "${enable_integer_datetimes+set}" = set; then
1699   enableval="$enable_integer_datetimes"
1700
1701   case $enableval in
1702     yes)
1703
1704 cat >>confdefs.h <<\_ACEOF
1705 #define USE_INTEGER_DATETIMES 1
1706 _ACEOF
1707
1708       ;;
1709     no)
1710       :
1711       ;;
1712     *)
1713       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1714 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1715    { (exit 1); exit 1; }; }
1716       ;;
1717   esac
1718
1719 else
1720   enable_integer_datetimes=no
1721
1722 fi;
1723
1724 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1725 echo "${ECHO_T}$enable_integer_datetimes" >&6
1726
1727
1728 #
1729 # NLS
1730 #
1731 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1732 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1733
1734
1735 # Check whether --enable-nls or --disable-nls was given.
1736 if test "${enable_nls+set}" = set; then
1737   enableval="$enable_nls"
1738
1739   case $enableval in
1740     yes)
1741       :
1742       ;;
1743     no)
1744       :
1745       ;;
1746     *)
1747       enable_nls=yes
1748 WANTED_LANGUAGES=$enableval
1749       ;;
1750   esac
1751
1752 else
1753   enable_nls=no
1754 fi;
1755
1756
1757 if test "$enable_nls" = yes; then
1758
1759 cat >>confdefs.h <<\_ACEOF
1760 #define ENABLE_NLS 1
1761 _ACEOF
1762
1763 fi
1764
1765 echo "$as_me:$LINENO: result: $enable_nls" >&5
1766 echo "${ECHO_T}$enable_nls" >&6
1767
1768
1769
1770 #
1771 # Default port number (--with-pgport), default 5432
1772 #
1773 echo "$as_me:$LINENO: checking for default port number" >&5
1774 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1775
1776
1777
1778 # Check whether --with-pgport or --without-pgport was given.
1779 if test "${with_pgport+set}" = set; then
1780   withval="$with_pgport"
1781
1782   case $withval in
1783     yes)
1784       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1785 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1786    { (exit 1); exit 1; }; }
1787       ;;
1788     no)
1789       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1790 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1791    { (exit 1); exit 1; }; }
1792       ;;
1793     *)
1794       default_port=$withval
1795       ;;
1796   esac
1797
1798 else
1799   default_port=5432
1800 fi;
1801
1802 echo "$as_me:$LINENO: result: $default_port" >&5
1803 echo "${ECHO_T}$default_port" >&6
1804 # Need both of these because some places want an integer and some a string
1805
1806 cat >>confdefs.h <<_ACEOF
1807 #define DEF_PGPORT ${default_port}
1808 _ACEOF
1809
1810
1811 cat >>confdefs.h <<_ACEOF
1812 #define DEF_PGPORT_STR "${default_port}"
1813 _ACEOF
1814
1815
1816
1817 #
1818 # Option to disable shared libraries
1819 #
1820
1821
1822 # Check whether --enable-shared or --disable-shared was given.
1823 if test "${enable_shared+set}" = set; then
1824   enableval="$enable_shared"
1825
1826   case $enableval in
1827     yes)
1828       :
1829       ;;
1830     no)
1831       :
1832       ;;
1833     *)
1834       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1835 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1836    { (exit 1); exit 1; }; }
1837       ;;
1838   esac
1839
1840 else
1841   enable_shared=yes
1842
1843 fi;
1844
1845
1846
1847 #
1848 # '-rpath'-like feature can be disabled
1849 #
1850
1851
1852 # Check whether --enable-rpath or --disable-rpath was given.
1853 if test "${enable_rpath+set}" = set; then
1854   enableval="$enable_rpath"
1855
1856   case $enableval in
1857     yes)
1858       :
1859       ;;
1860     no)
1861       :
1862       ;;
1863     *)
1864       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1865 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1866    { (exit 1); exit 1; }; }
1867       ;;
1868   esac
1869
1870 else
1871   enable_rpath=yes
1872
1873 fi;
1874
1875
1876
1877 #
1878 # Spinlocks
1879 #
1880
1881
1882 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1883 if test "${enable_spinlocks+set}" = set; then
1884   enableval="$enable_spinlocks"
1885
1886   case $enableval in
1887     yes)
1888       :
1889       ;;
1890     no)
1891       :
1892       ;;
1893     *)
1894       { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1895 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1896    { (exit 1); exit 1; }; }
1897       ;;
1898   esac
1899
1900 else
1901   enable_spinlocks=yes
1902
1903 fi;
1904
1905
1906 #
1907 # --enable-debug adds -g to compiler flags
1908 #
1909
1910
1911 # Check whether --enable-debug or --disable-debug was given.
1912 if test "${enable_debug+set}" = set; then
1913   enableval="$enable_debug"
1914
1915   case $enableval in
1916     yes)
1917       :
1918       ;;
1919     no)
1920       :
1921       ;;
1922     *)
1923       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1924 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1925    { (exit 1); exit 1; }; }
1926       ;;
1927   esac
1928
1929 else
1930   enable_debug=no
1931
1932 fi;
1933
1934
1935
1936 #
1937 # C compiler
1938 #
1939
1940 # For historical reasons you can also use --with-CC to specify the C compiler
1941 # to use, although the standard way to do this is to set the CC environment
1942 # variable.
1943
1944
1945
1946 # Check whether --with-CC or --without-CC was given.
1947 if test "${with_CC+set}" = set; then
1948   withval="$with_CC"
1949
1950   case $withval in
1951     yes)
1952       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1953 echo "$as_me: error: argument required for --with-CC option" >&2;}
1954    { (exit 1); exit 1; }; }
1955       ;;
1956     no)
1957       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1958 echo "$as_me: error: argument required for --with-CC option" >&2;}
1959    { (exit 1); exit 1; }; }
1960       ;;
1961     *)
1962       CC=$with_CC
1963       ;;
1964   esac
1965
1966 fi;
1967
1968
1969 case $template in
1970   aix) pgac_cc_list="gcc xlc";;
1971  irix) pgac_cc_list="cc";; # no gcc
1972     *) pgac_cc_list="gcc cc";;
1973 esac
1974
1975 ac_ext=c
1976 ac_cpp='$CPP $CPPFLAGS'
1977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1980 if test -n "$ac_tool_prefix"; then
1981   for ac_prog in $pgac_cc_list
1982   do
1983     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1984 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1985 echo "$as_me:$LINENO: checking for $ac_word" >&5
1986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987 if test "${ac_cv_prog_CC+set}" = set; then
1988   echo $ECHO_N "(cached) $ECHO_C" >&6
1989 else
1990   if test -n "$CC"; then
1991   ac_cv_prog_CC="$CC" # Let the user override the test.
1992 else
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 for as_dir in $PATH
1995 do
1996   IFS=$as_save_IFS
1997   test -z "$as_dir" && as_dir=.
1998   for ac_exec_ext in '' $ac_executable_extensions; do
1999   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002     break 2
2003   fi
2004 done
2005 done
2006
2007 fi
2008 fi
2009 CC=$ac_cv_prog_CC
2010 if test -n "$CC"; then
2011   echo "$as_me:$LINENO: result: $CC" >&5
2012 echo "${ECHO_T}$CC" >&6
2013 else
2014   echo "$as_me:$LINENO: result: no" >&5
2015 echo "${ECHO_T}no" >&6
2016 fi
2017
2018     test -n "$CC" && break
2019   done
2020 fi
2021 if test -z "$CC"; then
2022   ac_ct_CC=$CC
2023   for ac_prog in $pgac_cc_list
2024 do
2025   # Extract the first word of "$ac_prog", so it can be a program name with args.
2026 set dummy $ac_prog; ac_word=$2
2027 echo "$as_me:$LINENO: checking for $ac_word" >&5
2028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2029 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2030   echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032   if test -n "$ac_ct_CC"; then
2033   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2034 else
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 for as_dir in $PATH
2037 do
2038   IFS=$as_save_IFS
2039   test -z "$as_dir" && as_dir=.
2040   for ac_exec_ext in '' $ac_executable_extensions; do
2041   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2042     ac_cv_prog_ac_ct_CC="$ac_prog"
2043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044     break 2
2045   fi
2046 done
2047 done
2048
2049 fi
2050 fi
2051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2052 if test -n "$ac_ct_CC"; then
2053   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2054 echo "${ECHO_T}$ac_ct_CC" >&6
2055 else
2056   echo "$as_me:$LINENO: result: no" >&5
2057 echo "${ECHO_T}no" >&6
2058 fi
2059
2060   test -n "$ac_ct_CC" && break
2061 done
2062
2063   CC=$ac_ct_CC
2064 fi
2065
2066
2067 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2068 See \`config.log' for more details." >&5
2069 echo "$as_me: error: no acceptable C compiler found in \$PATH
2070 See \`config.log' for more details." >&2;}
2071    { (exit 1); exit 1; }; }
2072
2073 # Provide some information about the compiler.
2074 echo "$as_me:$LINENO:" \
2075      "checking for C compiler version" >&5
2076 ac_compiler=`set X $ac_compile; echo $2`
2077 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2078   (eval $ac_compiler --version </dev/null >&5) 2>&5
2079   ac_status=$?
2080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081   (exit $ac_status); }
2082 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2083   (eval $ac_compiler -v </dev/null >&5) 2>&5
2084   ac_status=$?
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); }
2087 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2088   (eval $ac_compiler -V </dev/null >&5) 2>&5
2089   ac_status=$?
2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091   (exit $ac_status); }
2092
2093 cat >conftest.$ac_ext <<_ACEOF
2094 /* confdefs.h.  */
2095 _ACEOF
2096 cat confdefs.h >>conftest.$ac_ext
2097 cat >>conftest.$ac_ext <<_ACEOF
2098 /* end confdefs.h.  */
2099
2100 int
2101 main ()
2102 {
2103
2104   ;
2105   return 0;
2106 }
2107 _ACEOF
2108 ac_clean_files_save=$ac_clean_files
2109 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2110 # Try to create an executable without -o first, disregard a.out.
2111 # It will help us diagnose broken compilers, and finding out an intuition
2112 # of exeext.
2113 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2114 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2115 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2116 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2117   (eval $ac_link_default) 2>&5
2118   ac_status=$?
2119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120   (exit $ac_status); }; then
2121   # Find the output, starting from the most likely.  This scheme is
2122 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2123 # resort.
2124
2125 # Be careful to initialize this variable, since it used to be cached.
2126 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2127 ac_cv_exeext=
2128 # b.out is created by i960 compilers.
2129 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2130 do
2131   test -f "$ac_file" || continue
2132   case $ac_file in
2133     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2134         ;;
2135     conftest.$ac_ext )
2136         # This is the source file.
2137         ;;
2138     [ab].out )
2139         # We found the default executable, but exeext='' is most
2140         # certainly right.
2141         break;;
2142     *.* )
2143         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2144         # FIXME: I believe we export ac_cv_exeext for Libtool,
2145         # but it would be cool to find out if it's true.  Does anybody
2146         # maintain Libtool? --akim.
2147         export ac_cv_exeext
2148         break;;
2149     * )
2150         break;;
2151   esac
2152 done
2153 else
2154   echo "$as_me: failed program was:" >&5
2155 sed 's/^/| /' conftest.$ac_ext >&5
2156
2157 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2158 See \`config.log' for more details." >&5
2159 echo "$as_me: error: C compiler cannot create executables
2160 See \`config.log' for more details." >&2;}
2161    { (exit 77); exit 77; }; }
2162 fi
2163
2164 ac_exeext=$ac_cv_exeext
2165 echo "$as_me:$LINENO: result: $ac_file" >&5
2166 echo "${ECHO_T}$ac_file" >&6
2167
2168 # Check the compiler produces executables we can run.  If not, either
2169 # the compiler is broken, or we cross compile.
2170 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2171 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2172 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2173 # If not cross compiling, check that we can run a simple program.
2174 if test "$cross_compiling" != yes; then
2175   if { ac_try='./$ac_file'
2176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177   (eval $ac_try) 2>&5
2178   ac_status=$?
2179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180   (exit $ac_status); }; }; then
2181     cross_compiling=no
2182   else
2183     if test "$cross_compiling" = maybe; then
2184         cross_compiling=yes
2185     else
2186         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2187 If you meant to cross compile, use \`--host'.
2188 See \`config.log' for more details." >&5
2189 echo "$as_me: error: cannot run C compiled programs.
2190 If you meant to cross compile, use \`--host'.
2191 See \`config.log' for more details." >&2;}
2192    { (exit 1); exit 1; }; }
2193     fi
2194   fi
2195 fi
2196 echo "$as_me:$LINENO: result: yes" >&5
2197 echo "${ECHO_T}yes" >&6
2198
2199 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2200 ac_clean_files=$ac_clean_files_save
2201 # Check the compiler produces executables we can run.  If not, either
2202 # the compiler is broken, or we cross compile.
2203 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2204 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2205 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2206 echo "${ECHO_T}$cross_compiling" >&6
2207
2208 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2209 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2211   (eval $ac_link) 2>&5
2212   ac_status=$?
2213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214   (exit $ac_status); }; then
2215   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2216 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2217 # work properly (i.e., refer to `conftest.exe'), while it won't with
2218 # `rm'.
2219 for ac_file in conftest.exe conftest conftest.*; do
2220   test -f "$ac_file" || continue
2221   case $ac_file in
2222     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2223     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2224           export ac_cv_exeext
2225           break;;
2226     * ) break;;
2227   esac
2228 done
2229 else
2230   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2231 See \`config.log' for more details." >&5
2232 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2233 See \`config.log' for more details." >&2;}
2234    { (exit 1); exit 1; }; }
2235 fi
2236
2237 rm -f conftest$ac_cv_exeext
2238 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2239 echo "${ECHO_T}$ac_cv_exeext" >&6
2240
2241 rm -f conftest.$ac_ext
2242 EXEEXT=$ac_cv_exeext
2243 ac_exeext=$EXEEXT
2244 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2245 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2246 if test "${ac_cv_objext+set}" = set; then
2247   echo $ECHO_N "(cached) $ECHO_C" >&6
2248 else
2249   cat >conftest.$ac_ext <<_ACEOF
2250 /* confdefs.h.  */
2251 _ACEOF
2252 cat confdefs.h >>conftest.$ac_ext
2253 cat >>conftest.$ac_ext <<_ACEOF
2254 /* end confdefs.h.  */
2255
2256 int
2257 main ()
2258 {
2259
2260   ;
2261   return 0;
2262 }
2263 _ACEOF
2264 rm -f conftest.o conftest.obj
2265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2266   (eval $ac_compile) 2>&5
2267   ac_status=$?
2268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269   (exit $ac_status); }; then
2270   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2271   case $ac_file in
2272     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2273     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2274        break;;
2275   esac
2276 done
2277 else
2278   echo "$as_me: failed program was:" >&5
2279 sed 's/^/| /' conftest.$ac_ext >&5
2280
2281 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2282 See \`config.log' for more details." >&5
2283 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2284 See \`config.log' for more details." >&2;}
2285    { (exit 1); exit 1; }; }
2286 fi
2287
2288 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2289 fi
2290 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2291 echo "${ECHO_T}$ac_cv_objext" >&6
2292 OBJEXT=$ac_cv_objext
2293 ac_objext=$OBJEXT
2294 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2295 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2296 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2297   echo $ECHO_N "(cached) $ECHO_C" >&6
2298 else
2299   cat >conftest.$ac_ext <<_ACEOF
2300 /* confdefs.h.  */
2301 _ACEOF
2302 cat confdefs.h >>conftest.$ac_ext
2303 cat >>conftest.$ac_ext <<_ACEOF
2304 /* end confdefs.h.  */
2305
2306 int
2307 main ()
2308 {
2309 #ifndef __GNUC__
2310        choke me
2311 #endif
2312
2313   ;
2314   return 0;
2315 }
2316 _ACEOF
2317 rm -f conftest.$ac_objext
2318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319   (eval $ac_compile) 2>conftest.er1
2320   ac_status=$?
2321   grep -v '^ *+' conftest.er1 >conftest.err
2322   rm -f conftest.er1
2323   cat conftest.err >&5
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); } &&
2326          { ac_try='test -z "$ac_c_werror_flag"
2327                          || test ! -s conftest.err'
2328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329   (eval $ac_try) 2>&5
2330   ac_status=$?
2331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332   (exit $ac_status); }; } &&
2333          { ac_try='test -s conftest.$ac_objext'
2334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335   (eval $ac_try) 2>&5
2336   ac_status=$?
2337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338   (exit $ac_status); }; }; then
2339   ac_compiler_gnu=yes
2340 else
2341   echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2343
2344 ac_compiler_gnu=no
2345 fi
2346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2347 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2348
2349 fi
2350 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2351 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2352 GCC=`test $ac_compiler_gnu = yes && echo yes`
2353 ac_test_CFLAGS=${CFLAGS+set}
2354 ac_save_CFLAGS=$CFLAGS
2355 CFLAGS="-g"
2356 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2357 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2358 if test "${ac_cv_prog_cc_g+set}" = set; then
2359   echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361   cat >conftest.$ac_ext <<_ACEOF
2362 /* confdefs.h.  */
2363 _ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h.  */
2367
2368 int
2369 main ()
2370 {
2371
2372   ;
2373   return 0;
2374 }
2375 _ACEOF
2376 rm -f conftest.$ac_objext
2377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378   (eval $ac_compile) 2>conftest.er1
2379   ac_status=$?
2380   grep -v '^ *+' conftest.er1 >conftest.err
2381   rm -f conftest.er1
2382   cat conftest.err >&5
2383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384   (exit $ac_status); } &&
2385          { ac_try='test -z "$ac_c_werror_flag"
2386                          || test ! -s conftest.err'
2387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388   (eval $ac_try) 2>&5
2389   ac_status=$?
2390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391   (exit $ac_status); }; } &&
2392          { ac_try='test -s conftest.$ac_objext'
2393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394   (eval $ac_try) 2>&5
2395   ac_status=$?
2396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397   (exit $ac_status); }; }; then
2398   ac_cv_prog_cc_g=yes
2399 else
2400   echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2402
2403 ac_cv_prog_cc_g=no
2404 fi
2405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2406 fi
2407 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2408 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2409 if test "$ac_test_CFLAGS" = set; then
2410   CFLAGS=$ac_save_CFLAGS
2411 elif test $ac_cv_prog_cc_g = yes; then
2412   if test "$GCC" = yes; then
2413     CFLAGS="-g -O2"
2414   else
2415     CFLAGS="-g"
2416   fi
2417 else
2418   if test "$GCC" = yes; then
2419     CFLAGS="-O2"
2420   else
2421     CFLAGS=
2422   fi
2423 fi
2424 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2425 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2426 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2427   echo $ECHO_N "(cached) $ECHO_C" >&6
2428 else
2429   ac_cv_prog_cc_stdc=no
2430 ac_save_CC=$CC
2431 cat >conftest.$ac_ext <<_ACEOF
2432 /* confdefs.h.  */
2433 _ACEOF
2434 cat confdefs.h >>conftest.$ac_ext
2435 cat >>conftest.$ac_ext <<_ACEOF
2436 /* end confdefs.h.  */
2437 #include <stdarg.h>
2438 #include <stdio.h>
2439 #include <sys/types.h>
2440 #include <sys/stat.h>
2441 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2442 struct buf { int x; };
2443 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2444 static char *e (p, i)
2445      char **p;
2446      int i;
2447 {
2448   return p[i];
2449 }
2450 static char *f (char * (*g) (char **, int), char **p, ...)
2451 {
2452   char *s;
2453   va_list v;
2454   va_start (v,p);
2455   s = g (p, va_arg (v,int));
2456   va_end (v);
2457   return s;
2458 }
2459
2460 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2461    function prototypes and stuff, but not '\xHH' hex character constants.
2462    These don't provoke an error unfortunately, instead are silently treated
2463    as 'x'.  The following induces an error, until -std1 is added to get
2464    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2465    array size at least.  It's necessary to write '\x00'==0 to get something
2466    that's true only with -std1.  */
2467 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2468
2469 int test (int i, double x);
2470 struct s1 {int (*f) (int a);};
2471 struct s2 {int (*f) (double a);};
2472 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2473 int argc;
2474 char **argv;
2475 int
2476 main ()
2477 {
2478 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2479   ;
2480   return 0;
2481 }
2482 _ACEOF
2483 # Don't try gcc -ansi; that turns off useful extensions and
2484 # breaks some systems' header files.
2485 # AIX                   -qlanglvl=ansi
2486 # Ultrix and OSF/1      -std1
2487 # HP-UX 10.20 and later -Ae
2488 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2489 # SVR4                  -Xc -D__EXTENSIONS__
2490 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2491 do
2492   CC="$ac_save_CC $ac_arg"
2493   rm -f conftest.$ac_objext
2494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495   (eval $ac_compile) 2>conftest.er1
2496   ac_status=$?
2497   grep -v '^ *+' conftest.er1 >conftest.err
2498   rm -f conftest.er1
2499   cat conftest.err >&5
2500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501   (exit $ac_status); } &&
2502          { ac_try='test -z "$ac_c_werror_flag"
2503                          || test ! -s conftest.err'
2504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505   (eval $ac_try) 2>&5
2506   ac_status=$?
2507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508   (exit $ac_status); }; } &&
2509          { ac_try='test -s conftest.$ac_objext'
2510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511   (eval $ac_try) 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }; }; then
2515   ac_cv_prog_cc_stdc=$ac_arg
2516 break
2517 else
2518   echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2520
2521 fi
2522 rm -f conftest.err conftest.$ac_objext
2523 done
2524 rm -f conftest.$ac_ext conftest.$ac_objext
2525 CC=$ac_save_CC
2526
2527 fi
2528
2529 case "x$ac_cv_prog_cc_stdc" in
2530   x|xno)
2531     echo "$as_me:$LINENO: result: none needed" >&5
2532 echo "${ECHO_T}none needed" >&6 ;;
2533   *)
2534     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2535 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2536     CC="$CC $ac_cv_prog_cc_stdc" ;;
2537 esac
2538
2539 # Some people use a C++ compiler to compile C.  Since we use `exit',
2540 # in C++ we need to declare it.  In case someone uses the same compiler
2541 # for both compiling C and C++ we need to have the C++ compiler decide
2542 # the declaration of exit, since it's the most demanding environment.
2543 cat >conftest.$ac_ext <<_ACEOF
2544 #ifndef __cplusplus
2545   choke me
2546 #endif
2547 _ACEOF
2548 rm -f conftest.$ac_objext
2549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2550   (eval $ac_compile) 2>conftest.er1
2551   ac_status=$?
2552   grep -v '^ *+' conftest.er1 >conftest.err
2553   rm -f conftest.er1
2554   cat conftest.err >&5
2555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556   (exit $ac_status); } &&
2557          { ac_try='test -z "$ac_c_werror_flag"
2558                          || test ! -s conftest.err'
2559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560   (eval $ac_try) 2>&5
2561   ac_status=$?
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); }; } &&
2564          { ac_try='test -s conftest.$ac_objext'
2565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566   (eval $ac_try) 2>&5
2567   ac_status=$?
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); }; }; then
2570   for ac_declaration in \
2571    '' \
2572    'extern "C" void std::exit (int) throw (); using std::exit;' \
2573    'extern "C" void std::exit (int); using std::exit;' \
2574    'extern "C" void exit (int) throw ();' \
2575    'extern "C" void exit (int);' \
2576    'void exit (int);'
2577 do
2578   cat >conftest.$ac_ext <<_ACEOF
2579 /* confdefs.h.  */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h.  */
2584 $ac_declaration
2585 #include <stdlib.h>
2586 int
2587 main ()
2588 {
2589 exit (42);
2590   ;
2591   return 0;
2592 }
2593 _ACEOF
2594 rm -f conftest.$ac_objext
2595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596   (eval $ac_compile) 2>conftest.er1
2597   ac_status=$?
2598   grep -v '^ *+' conftest.er1 >conftest.err
2599   rm -f conftest.er1
2600   cat conftest.err >&5
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); } &&
2603          { ac_try='test -z "$ac_c_werror_flag"
2604                          || test ! -s conftest.err'
2605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606   (eval $ac_try) 2>&5
2607   ac_status=$?
2608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609   (exit $ac_status); }; } &&
2610          { ac_try='test -s conftest.$ac_objext'
2611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612   (eval $ac_try) 2>&5
2613   ac_status=$?
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); }; }; then
2616   :
2617 else
2618   echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2620
2621 continue
2622 fi
2623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2624   cat >conftest.$ac_ext <<_ACEOF
2625 /* confdefs.h.  */
2626 _ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h.  */
2630 $ac_declaration
2631 int
2632 main ()
2633 {
2634 exit (42);
2635   ;
2636   return 0;
2637 }
2638 _ACEOF
2639 rm -f conftest.$ac_objext
2640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641   (eval $ac_compile) 2>conftest.er1
2642   ac_status=$?
2643   grep -v '^ *+' conftest.er1 >conftest.err
2644   rm -f conftest.er1
2645   cat conftest.err >&5
2646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647   (exit $ac_status); } &&
2648          { ac_try='test -z "$ac_c_werror_flag"
2649                          || test ! -s conftest.err'
2650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651   (eval $ac_try) 2>&5
2652   ac_status=$?
2653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654   (exit $ac_status); }; } &&
2655          { ac_try='test -s conftest.$ac_objext'
2656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657   (eval $ac_try) 2>&5
2658   ac_status=$?
2659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660   (exit $ac_status); }; }; then
2661   break
2662 else
2663   echo "$as_me: failed program was:" >&5
2664 sed 's/^/| /' conftest.$ac_ext >&5
2665
2666 fi
2667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2668 done
2669 rm -f conftest*
2670 if test -n "$ac_declaration"; then
2671   echo '#ifdef __cplusplus' >>confdefs.h
2672   echo $ac_declaration      >>confdefs.h
2673   echo '#endif'             >>confdefs.h
2674 fi
2675
2676 else
2677   echo "$as_me: failed program was:" >&5
2678 sed 's/^/| /' conftest.$ac_ext >&5
2679
2680 fi
2681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2682 ac_ext=c
2683 ac_cpp='$CPP $CPPFLAGS'
2684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2687
2688
2689 unset CFLAGS
2690
2691 #
2692 # Read the template
2693 #
2694 . "$srcdir/src/template/$template" || exit
2695
2696 # CFLAGS are selected so:
2697 # If the user specifies something in the environment, that is used.
2698 # else:  If the template file set something, that is used.
2699 # else:  If the compiler is GCC, then we use -O2.
2700 # else:  If the compiler is something else, then we use -0.
2701
2702 if test "$ac_env_CFLAGS_set" = set; then
2703   CFLAGS=$ac_env_CFLAGS_value
2704 elif test "${CFLAGS+set}" = set; then
2705   : # (keep what template set)
2706 elif test "$GCC" = yes; then
2707   CFLAGS="-O2"
2708 else
2709   # if the user selected debug mode, don't use -O
2710   if test "$enable_debug" != yes; then
2711     CFLAGS="-O"
2712   fi
2713 fi
2714
2715 if test "$GCC" = yes; then
2716   CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline"
2717
2718   # Some versions of GCC support some additional useful warning flags.
2719   # Check whether they are supported, and add them to CFLAGS if so.
2720   echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
2721 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6
2722 pgac_save_CFLAGS=$CFLAGS
2723 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
2724 cat >conftest.$ac_ext <<_ACEOF
2725 /* confdefs.h.  */
2726 _ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h.  */
2730
2731 int
2732 main ()
2733 {
2734
2735   ;
2736   return 0;
2737 }
2738 _ACEOF
2739 rm -f conftest.$ac_objext
2740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2741   (eval $ac_compile) 2>conftest.er1
2742   ac_status=$?
2743   grep -v '^ *+' conftest.er1 >conftest.err
2744   rm -f conftest.er1
2745   cat conftest.err >&5
2746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747   (exit $ac_status); } &&
2748          { ac_try='test -z "$ac_c_werror_flag"
2749                          || test ! -s conftest.err'
2750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751   (eval $ac_try) 2>&5
2752   ac_status=$?
2753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754   (exit $ac_status); }; } &&
2755          { ac_try='test -s conftest.$ac_objext'
2756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757   (eval $ac_try) 2>&5
2758   ac_status=$?
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); }; }; then
2761   echo "$as_me:$LINENO: result: yes" >&5
2762 echo "${ECHO_T}yes" >&6
2763 else
2764   echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2766
2767 CFLAGS="$pgac_save_CFLAGS"
2768                     echo "$as_me:$LINENO: result: no" >&5
2769 echo "${ECHO_T}no" >&6
2770 fi
2771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2772
2773   echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
2774 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6
2775 pgac_save_CFLAGS=$CFLAGS
2776 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
2777 cat >conftest.$ac_ext <<_ACEOF
2778 /* confdefs.h.  */
2779 _ACEOF
2780 cat confdefs.h >>conftest.$ac_ext
2781 cat >>conftest.$ac_ext <<_ACEOF
2782 /* end confdefs.h.  */
2783
2784 int
2785 main ()
2786 {
2787
2788   ;
2789   return 0;
2790 }
2791 _ACEOF
2792 rm -f conftest.$ac_objext
2793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2794   (eval $ac_compile) 2>conftest.er1
2795   ac_status=$?
2796   grep -v '^ *+' conftest.er1 >conftest.err
2797   rm -f conftest.er1
2798   cat conftest.err >&5
2799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800   (exit $ac_status); } &&
2801          { ac_try='test -z "$ac_c_werror_flag"
2802                          || test ! -s conftest.err'
2803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804   (eval $ac_try) 2>&5
2805   ac_status=$?
2806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807   (exit $ac_status); }; } &&
2808          { ac_try='test -s conftest.$ac_objext'
2809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810   (eval $ac_try) 2>&5
2811   ac_status=$?
2812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813   (exit $ac_status); }; }; then
2814   echo "$as_me:$LINENO: result: yes" >&5
2815 echo "${ECHO_T}yes" >&6
2816 else
2817   echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2819
2820 CFLAGS="$pgac_save_CFLAGS"
2821                     echo "$as_me:$LINENO: result: no" >&5
2822 echo "${ECHO_T}no" >&6
2823 fi
2824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2825
2826
2827   # Disable strict-aliasing rules; needed for gcc 3.3+
2828   echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
2829 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
2830 pgac_save_CFLAGS=$CFLAGS
2831 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
2832 cat >conftest.$ac_ext <<_ACEOF
2833 /* confdefs.h.  */
2834 _ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h.  */
2838
2839 int
2840 main ()
2841 {
2842
2843   ;
2844   return 0;
2845 }
2846 _ACEOF
2847 rm -f conftest.$ac_objext
2848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2849   (eval $ac_compile) 2>conftest.er1
2850   ac_status=$?
2851   grep -v '^ *+' conftest.er1 >conftest.err
2852   rm -f conftest.er1
2853   cat conftest.err >&5
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); } &&
2856          { ac_try='test -z "$ac_c_werror_flag"
2857                          || test ! -s conftest.err'
2858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859   (eval $ac_try) 2>&5
2860   ac_status=$?
2861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862   (exit $ac_status); }; } &&
2863          { ac_try='test -s conftest.$ac_objext'
2864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865   (eval $ac_try) 2>&5
2866   ac_status=$?
2867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868   (exit $ac_status); }; }; then
2869   echo "$as_me:$LINENO: result: yes" >&5
2870 echo "${ECHO_T}yes" >&6
2871 else
2872   echo "$as_me: failed program was:" >&5
2873 sed 's/^/| /' conftest.$ac_ext >&5
2874
2875 CFLAGS="$pgac_save_CFLAGS"
2876                     echo "$as_me:$LINENO: result: no" >&5
2877 echo "${ECHO_T}no" >&6
2878 fi
2879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2880
2881 fi
2882
2883 # supply -g if --enable-debug
2884 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2885   CFLAGS="$CFLAGS -g"
2886 fi
2887
2888 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2889 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2890
2891 # We already have this in Makefile.win32, but configure needs it too
2892 if test "$PORTNAME" = "win32"; then
2893   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
2894 fi
2895
2896 # Check if the compiler still works with the template settings
2897 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2898 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2899
2900 cat >conftest.$ac_ext <<_ACEOF
2901 /* confdefs.h.  */
2902 _ACEOF
2903 cat confdefs.h >>conftest.$ac_ext
2904 cat >>conftest.$ac_ext <<_ACEOF
2905 /* end confdefs.h.  */
2906
2907 int
2908 main ()
2909 {
2910 return 0;
2911   ;
2912   return 0;
2913 }
2914 _ACEOF
2915 rm -f conftest.$ac_objext conftest$ac_exeext
2916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2917   (eval $ac_link) 2>conftest.er1
2918   ac_status=$?
2919   grep -v '^ *+' conftest.er1 >conftest.err
2920   rm -f conftest.er1
2921   cat conftest.err >&5
2922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923   (exit $ac_status); } &&
2924          { ac_try='test -z "$ac_c_werror_flag"
2925                          || test ! -s conftest.err'
2926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927   (eval $ac_try) 2>&5
2928   ac_status=$?
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); }; } &&
2931          { ac_try='test -s conftest$ac_exeext'
2932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933   (eval $ac_try) 2>&5
2934   ac_status=$?
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); }; }; then
2937   echo "$as_me:$LINENO: result: yes" >&5
2938 echo "${ECHO_T}yes" >&6
2939 else
2940   echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2942
2943 echo "$as_me:$LINENO: result: no" >&5
2944 echo "${ECHO_T}no" >&6
2945    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2946 echo "$as_me: error: cannot proceed" >&2;}
2947    { (exit 1); exit 1; }; }
2948 fi
2949 rm -f conftest.err conftest.$ac_objext \
2950       conftest$ac_exeext conftest.$ac_ext
2951
2952 # Defend against gcc -ffast-math
2953 if test "$GCC" = yes; then
2954 cat >conftest.$ac_ext <<_ACEOF
2955 /* confdefs.h.  */
2956 _ACEOF
2957 cat confdefs.h >>conftest.$ac_ext
2958 cat >>conftest.$ac_ext <<_ACEOF
2959 /* end confdefs.h.  */
2960
2961 int
2962 main ()
2963 {
2964 #ifdef __FAST_MATH__
2965 choke me
2966 #endif
2967   ;
2968   return 0;
2969 }
2970 _ACEOF
2971 rm -f conftest.$ac_objext
2972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2973   (eval $ac_compile) 2>conftest.er1
2974   ac_status=$?
2975   grep -v '^ *+' conftest.er1 >conftest.err
2976   rm -f conftest.er1
2977   cat conftest.err >&5
2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979   (exit $ac_status); } &&
2980          { ac_try='test -z "$ac_c_werror_flag"
2981                          || test ! -s conftest.err'
2982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983   (eval $ac_try) 2>&5
2984   ac_status=$?
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); }; } &&
2987          { ac_try='test -s conftest.$ac_objext'
2988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989   (eval $ac_try) 2>&5
2990   ac_status=$?
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); }; }; then
2993   :
2994 else
2995   echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2997
2998 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2999 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
3000    { (exit 1); exit 1; }; }
3001 fi
3002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3003 fi
3004
3005 ac_ext=c
3006 ac_cpp='$CPP $CPPFLAGS'
3007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3010 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3011 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3012 # On Suns, sometimes $CPP names a directory.
3013 if test -n "$CPP" && test -d "$CPP"; then
3014   CPP=
3015 fi
3016 if test -z "$CPP"; then
3017   if test "${ac_cv_prog_CPP+set}" = set; then
3018   echo $ECHO_N "(cached) $ECHO_C" >&6
3019 else
3020       # Double quotes because CPP needs to be expanded
3021     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3022     do
3023       ac_preproc_ok=false
3024 for ac_c_preproc_warn_flag in '' yes
3025 do
3026   # Use a header file that comes with gcc, so configuring glibc
3027   # with a fresh cross-compiler works.
3028   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3029   # <limits.h> exists even on freestanding compilers.
3030   # On the NeXT, cc -E runs the code through the compiler's parser,
3031   # not just through cpp. "Syntax error" is here to catch this case.
3032   cat >conftest.$ac_ext <<_ACEOF
3033 /* confdefs.h.  */
3034 _ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h.  */
3038 #ifdef __STDC__
3039 # include <limits.h>
3040 #else
3041 # include <assert.h>
3042 #endif
3043                      Syntax error
3044 _ACEOF
3045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3046   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3047   ac_status=$?
3048   grep -v '^ *+' conftest.er1 >conftest.err
3049   rm -f conftest.er1
3050   cat conftest.err >&5
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); } >/dev/null; then
3053   if test -s conftest.err; then
3054     ac_cpp_err=$ac_c_preproc_warn_flag
3055     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3056   else
3057     ac_cpp_err=
3058   fi
3059 else
3060   ac_cpp_err=yes
3061 fi
3062 if test -z "$ac_cpp_err"; then
3063   :
3064 else
3065   echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3067
3068   # Broken: fails on valid input.
3069 continue
3070 fi
3071 rm -f conftest.err conftest.$ac_ext
3072
3073   # OK, works on sane cases.  Now check whether non-existent headers
3074   # can be detected and how.
3075   cat >conftest.$ac_ext <<_ACEOF
3076 /* confdefs.h.  */
3077 _ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h.  */
3081 #include <ac_nonexistent.h>
3082 _ACEOF
3083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3084   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3085   ac_status=$?
3086   grep -v '^ *+' conftest.er1 >conftest.err
3087   rm -f conftest.er1
3088   cat conftest.err >&5
3089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090   (exit $ac_status); } >/dev/null; then
3091   if test -s conftest.err; then
3092     ac_cpp_err=$ac_c_preproc_warn_flag
3093     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3094   else
3095     ac_cpp_err=
3096   fi
3097 else
3098   ac_cpp_err=yes
3099 fi
3100 if test -z "$ac_cpp_err"; then
3101   # Broken: success on invalid input.
3102 continue
3103 else
3104   echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3106
3107   # Passes both tests.
3108 ac_preproc_ok=:
3109 break
3110 fi
3111 rm -f conftest.err conftest.$ac_ext
3112
3113 done
3114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3115 rm -f conftest.err conftest.$ac_ext
3116 if $ac_preproc_ok; then
3117   break
3118 fi
3119
3120     done
3121     ac_cv_prog_CPP=$CPP
3122
3123 fi
3124   CPP=$ac_cv_prog_CPP
3125 else
3126   ac_cv_prog_CPP=$CPP
3127 fi
3128 echo "$as_me:$LINENO: result: $CPP" >&5
3129 echo "${ECHO_T}$CPP" >&6
3130 ac_preproc_ok=false
3131 for ac_c_preproc_warn_flag in '' yes
3132 do
3133   # Use a header file that comes with gcc, so configuring glibc
3134   # with a fresh cross-compiler works.
3135   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3136   # <limits.h> exists even on freestanding compilers.
3137   # On the NeXT, cc -E runs the code through the compiler's parser,
3138   # not just through cpp. "Syntax error" is here to catch this case.
3139   cat >conftest.$ac_ext <<_ACEOF
3140 /* confdefs.h.  */
3141 _ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h.  */
3145 #ifdef __STDC__
3146 # include <limits.h>
3147 #else
3148 # include <assert.h>
3149 #endif
3150                      Syntax error
3151 _ACEOF
3152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3153   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3154   ac_status=$?
3155   grep -v '^ *+' conftest.er1 >conftest.err
3156   rm -f conftest.er1
3157   cat conftest.err >&5
3158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159   (exit $ac_status); } >/dev/null; then
3160   if test -s conftest.err; then
3161     ac_cpp_err=$ac_c_preproc_warn_flag
3162     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3163   else
3164     ac_cpp_err=
3165   fi
3166 else
3167   ac_cpp_err=yes
3168 fi
3169 if test -z "$ac_cpp_err"; then
3170   :
3171 else
3172   echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3174
3175   # Broken: fails on valid input.
3176 continue
3177 fi
3178 rm -f conftest.err conftest.$ac_ext
3179
3180   # OK, works on sane cases.  Now check whether non-existent headers
3181   # can be detected and how.
3182   cat >conftest.$ac_ext <<_ACEOF
3183 /* confdefs.h.  */
3184 _ACEOF
3185 cat confdefs.h >>conftest.$ac_ext
3186 cat >>conftest.$ac_ext <<_ACEOF
3187 /* end confdefs.h.  */
3188 #include <ac_nonexistent.h>
3189 _ACEOF
3190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3191   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3192   ac_status=$?
3193   grep -v '^ *+' conftest.er1 >conftest.err
3194   rm -f conftest.er1
3195   cat conftest.err >&5
3196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197   (exit $ac_status); } >/dev/null; then
3198   if test -s conftest.err; then
3199     ac_cpp_err=$ac_c_preproc_warn_flag
3200     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3201   else
3202     ac_cpp_err=
3203   fi
3204 else
3205   ac_cpp_err=yes
3206 fi
3207 if test -z "$ac_cpp_err"; then
3208   # Broken: success on invalid input.
3209 continue
3210 else
3211   echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3213
3214   # Passes both tests.
3215 ac_preproc_ok=:
3216 break
3217 fi
3218 rm -f conftest.err conftest.$ac_ext
3219
3220 done
3221 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3222 rm -f conftest.err conftest.$ac_ext
3223 if $ac_preproc_ok; then
3224   :
3225 else
3226   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3227 See \`config.log' for more details." >&5
3228 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3229 See \`config.log' for more details." >&2;}
3230    { (exit 1); exit 1; }; }
3231 fi
3232
3233 ac_ext=c
3234 ac_cpp='$CPP $CPPFLAGS'
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238
3239
3240
3241 # Create compiler version string
3242 if test x"$GCC" = x"yes" ; then
3243   cc_string="GCC `${CC} --version | sed q`"
3244 else
3245   cc_string=$CC
3246 fi
3247
3248 cat >>confdefs.h <<_ACEOF
3249 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
3250 _ACEOF
3251
3252
3253
3254 #
3255 # Set up TAS assembly code if needed; the template file has now had its
3256 # chance to request this.
3257 #
3258           ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
3259
3260
3261 if test "$need_tas" = yes ; then
3262   TAS=tas.o
3263 else
3264   TAS=""
3265 fi
3266
3267
3268
3269 #
3270 # Automatic dependency tracking
3271 #
3272
3273
3274 # Check whether --enable-depend or --disable-depend was given.
3275 if test "${enable_depend+set}" = set; then
3276   enableval="$enable_depend"
3277
3278   case $enableval in
3279     yes)
3280       autodepend=yes
3281       ;;
3282     no)
3283       :
3284       ;;
3285     *)
3286       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
3287 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
3288    { (exit 1); exit 1; }; }
3289       ;;
3290   esac
3291
3292 else
3293   enable_depend=no
3294
3295 fi;
3296
3297
3298
3299
3300 #
3301 # Enable assert checks
3302 #
3303
3304
3305 # Check whether --enable-cassert or --disable-cassert was given.
3306 if test "${enable_cassert+set}" = set; then
3307   enableval="$enable_cassert"
3308
3309   case $enableval in
3310     yes)
3311
3312 cat >>confdefs.h <<\_ACEOF
3313 #define USE_ASSERT_CHECKING 1
3314 _ACEOF
3315
3316       ;;
3317     no)
3318       :
3319       ;;
3320     *)
3321       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
3322 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
3323    { (exit 1); exit 1; }; }
3324       ;;
3325   esac
3326
3327 else
3328   enable_cassert=no
3329
3330 fi;
3331
3332
3333
3334 #
3335 # Include directories
3336 #
3337 ac_save_IFS=$IFS
3338 IFS="${IFS}${PATH_SEPARATOR}"
3339 # SRCH_INC comes from the template file
3340 for dir in $with_includes $SRCH_INC; do
3341   if test -d "$dir"; then
3342     INCLUDES="$INCLUDES -I$dir"
3343   else
3344     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3345 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3346   fi
3347 done
3348 IFS=$ac_save_IFS
3349
3350
3351
3352 #
3353 # Library directories
3354 #
3355 ac_save_IFS=$IFS
3356 IFS="${IFS}${PATH_SEPARATOR}"
3357 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
3358 for dir in $LIBRARY_DIRS $SRCH_LIB; do
3359   if test -d "$dir"; then
3360     LIBDIRS="$LIBDIRS -L$dir"
3361   else
3362     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3363 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3364   fi
3365 done
3366 IFS=$ac_save_IFS
3367
3368 #
3369 # Enable thread-safe client libraries
3370 #
3371 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
3372 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
3373
3374
3375 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3376 if test "${enable_thread_safety+set}" = set; then
3377   enableval="$enable_thread_safety"
3378
3379   case $enableval in
3380     yes)
3381       :
3382       ;;
3383     no)
3384       :
3385       ;;
3386     *)
3387       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3388 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3389    { (exit 1); exit 1; }; }
3390       ;;
3391   esac
3392
3393 else
3394   enable_thread_safety=no
3395
3396 fi;
3397
3398
3399
3400 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
3401 if test "${enable_thread_safety_force+set}" = set; then
3402   enableval="$enable_thread_safety_force"
3403
3404   case $enableval in
3405     yes)
3406       :
3407       ;;
3408     no)
3409       :
3410       ;;
3411     *)
3412       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
3413 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
3414    { (exit 1); exit 1; }; }
3415       ;;
3416   esac
3417
3418 else
3419   enable_thread_safety_force=no
3420
3421 fi;
3422
3423 if test "$enable_thread_safety" = yes -o \
3424         "$enable_thread_safety_force" = yes; then
3425   enable_thread_safety="yes"    # for 'force'
3426
3427 cat >>confdefs.h <<\_ACEOF
3428 #define ENABLE_THREAD_SAFETY 1
3429 _ACEOF
3430
3431 fi
3432 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
3433 echo "${ECHO_T}$enable_thread_safety" >&6
3434
3435
3436 #
3437 # Optionally build Tcl modules (PL/Tcl)
3438 #
3439 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3440 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3441
3442
3443
3444 # Check whether --with-tcl or --without-tcl was given.
3445 if test "${with_tcl+set}" = set; then
3446   withval="$with_tcl"
3447
3448   case $withval in
3449     yes)
3450       :
3451       ;;
3452     no)
3453       :
3454       ;;
3455     *)
3456       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3457 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3458    { (exit 1); exit 1; }; }
3459       ;;
3460   esac
3461
3462 else
3463   with_tcl=no
3464
3465 fi;
3466
3467 echo "$as_me:$LINENO: result: $with_tcl" >&5
3468 echo "${ECHO_T}$with_tcl" >&6
3469
3470
3471 # We see if the path to the Tcl/Tk configuration scripts is specified.
3472 # This will override the use of tclsh to find the paths to search.
3473
3474
3475
3476
3477 # Check whether --with-tclconfig or --without-tclconfig was given.
3478 if test "${with_tclconfig+set}" = set; then
3479   withval="$with_tclconfig"
3480
3481   case $withval in
3482     yes)
3483       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3484 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3485    { (exit 1); exit 1; }; }
3486       ;;
3487     no)
3488       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3489 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3490    { (exit 1); exit 1; }; }
3491       ;;
3492     *)
3493
3494       ;;
3495   esac
3496
3497 fi;
3498
3499
3500 #
3501 # Optionally build Perl modules (PL/Perl)
3502 #
3503 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3504 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3505
3506
3507
3508 # Check whether --with-perl or --without-perl was given.
3509 if test "${with_perl+set}" = set; then
3510   withval="$with_perl"
3511
3512   case $withval in
3513     yes)
3514       :
3515       ;;
3516     no)
3517       :
3518       ;;
3519     *)
3520       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3521 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3522    { (exit 1); exit 1; }; }
3523       ;;
3524   esac
3525
3526 else
3527   with_perl=no
3528
3529 fi;
3530
3531 echo "$as_me:$LINENO: result: $with_perl" >&5
3532 echo "${ECHO_T}$with_perl" >&6
3533
3534
3535 #
3536 # Optionally build Python modules (PL/Python)
3537 #
3538 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3539 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3540
3541
3542
3543 # Check whether --with-python or --without-python was given.
3544 if test "${with_python+set}" = set; then
3545   withval="$with_python"
3546
3547   case $withval in
3548     yes)
3549       :
3550       ;;
3551     no)
3552       :
3553       ;;
3554     *)
3555       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3556 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3557    { (exit 1); exit 1; }; }
3558       ;;
3559   esac
3560
3561 else
3562   with_python=no
3563
3564 fi;
3565
3566 echo "$as_me:$LINENO: result: $with_python" >&5
3567 echo "${ECHO_T}$with_python" >&6
3568
3569
3570 #
3571 # Kerberos 5
3572 #
3573 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3574 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3575
3576
3577
3578 # Check whether --with-krb5 or --without-krb5 was given.
3579 if test "${with_krb5+set}" = set; then
3580   withval="$with_krb5"
3581
3582   case $withval in
3583     yes)
3584
3585
3586 cat >>confdefs.h <<\_ACEOF
3587 #define KRB5 1
3588 _ACEOF
3589
3590   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3591
3592       ;;
3593     no)
3594       :
3595       ;;
3596     *)
3597       { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3598 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3599    { (exit 1); exit 1; }; }
3600       ;;
3601   esac
3602
3603 else
3604   with_krb5=no
3605
3606 fi;
3607
3608 echo "$as_me:$LINENO: result: $with_krb5" >&5
3609 echo "${ECHO_T}$with_krb5" >&6
3610
3611
3612
3613
3614
3615
3616 #
3617 # Kerberos configuration parameters
3618 #
3619
3620
3621
3622 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3623 if test "${with_krb_srvnam+set}" = set; then
3624   withval="$with_krb_srvnam"
3625
3626   case $withval in
3627     yes)
3628       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3629 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3630    { (exit 1); exit 1; }; }
3631       ;;
3632     no)
3633       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3634 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3635    { (exit 1); exit 1; }; }
3636       ;;
3637     *)
3638
3639       ;;
3640   esac
3641
3642 else
3643   with_krb_srvnam="postgres"
3644 fi;
3645
3646
3647 cat >>confdefs.h <<_ACEOF
3648 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3649 _ACEOF
3650
3651
3652
3653 #
3654 # PAM
3655 #
3656 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3657 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3658
3659
3660
3661 # Check whether --with-pam or --without-pam was given.
3662 if test "${with_pam+set}" = set; then
3663   withval="$with_pam"
3664
3665   case $withval in
3666     yes)
3667
3668 cat >>confdefs.h <<\_ACEOF
3669 #define USE_PAM 1
3670 _ACEOF
3671
3672       ;;
3673     no)
3674       :
3675       ;;
3676     *)
3677       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3678 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3679    { (exit 1); exit 1; }; }
3680       ;;
3681   esac
3682
3683 else
3684   with_pam=no
3685
3686 fi;
3687
3688 echo "$as_me:$LINENO: result: $with_pam" >&5
3689 echo "${ECHO_T}$with_pam" >&6
3690
3691
3692
3693 #
3694 # Bonjour
3695 #
3696 echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
3697 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6
3698
3699
3700
3701 # Check whether --with-bonjour or --without-bonjour was given.
3702 if test "${with_bonjour+set}" = set; then
3703   withval="$with_bonjour"
3704
3705   case $withval in
3706     yes)
3707
3708 cat >>confdefs.h <<\_ACEOF
3709 #define USE_BONJOUR 1
3710 _ACEOF
3711
3712       ;;
3713     no)
3714       :
3715       ;;
3716     *)
3717       { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
3718 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
3719    { (exit 1); exit 1; }; }
3720       ;;
3721   esac
3722
3723 else
3724   with_bonjour=no
3725
3726 fi;
3727
3728 echo "$as_me:$LINENO: result: $with_bonjour" >&5
3729 echo "${ECHO_T}$with_bonjour" >&6
3730
3731
3732
3733 #
3734 # OpenSSL
3735 #
3736 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
3737 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
3738
3739
3740
3741 # Check whether --with-openssl or --without-openssl was given.
3742 if test "${with_openssl+set}" = set; then
3743   withval="$with_openssl"
3744
3745   case $withval in
3746     yes)
3747
3748 cat >>confdefs.h <<\_ACEOF
3749 #define USE_SSL 1
3750 _ACEOF
3751
3752       ;;
3753     no)
3754       :
3755       ;;
3756     *)
3757       { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
3758 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
3759    { (exit 1); exit 1; }; }
3760       ;;
3761   esac
3762
3763 else
3764   with_openssl=no
3765
3766 fi;
3767
3768 echo "$as_me:$LINENO: result: $with_openssl" >&5
3769 echo "${ECHO_T}$with_openssl" >&6
3770
3771
3772
3773 #
3774 # Prefer libedit
3775 #
3776
3777
3778
3779 # Check whether --with-libedit-preferred or --without-libedit-preferred was given.
3780 if test "${with_libedit_preferred+set}" = set; then
3781   withval="$with_libedit_preferred"
3782
3783   case $withval in
3784     yes)
3785       :
3786       ;;
3787     no)
3788       :
3789       ;;
3790     *)
3791       { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
3792 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
3793    { (exit 1); exit 1; }; }
3794       ;;
3795   esac
3796
3797 else
3798   with_libedit_preferred=no
3799
3800 fi;
3801
3802
3803
3804 #
3805 # Readline
3806 #
3807
3808
3809
3810 # Check whether --with-readline or --without-readline was given.
3811 if test "${with_readline+set}" = set; then
3812   withval="$with_readline"
3813
3814   case $withval in
3815     yes)
3816       :
3817       ;;
3818     no)
3819       :
3820       ;;
3821     *)
3822       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3823 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3824    { (exit 1); exit 1; }; }
3825       ;;
3826   esac
3827
3828 else
3829   with_readline=yes
3830
3831 fi;
3832
3833 # readline on MinGW has problems with backslashes in psql and other bugs.
3834 # This is particularly a problem with non-US code pages.
3835 # Therefore disable its use until we understand the cause. 2004-07-20
3836 if test "$PORTNAME" = "win32"; then
3837   if test "$with_readline" = yes; then
3838     { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
3839 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
3840     with_readline=no
3841   fi
3842 fi
3843
3844
3845 #
3846 # Zlib
3847 #
3848
3849
3850
3851 # Check whether --with-zlib or --without-zlib was given.
3852 if test "${with_zlib+set}" = set; then
3853   withval="$with_zlib"
3854
3855   case $withval in
3856     yes)
3857       :
3858       ;;
3859     no)
3860       :
3861       ;;
3862     *)
3863       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3864 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3865    { (exit 1); exit 1; }; }
3866       ;;
3867   esac
3868
3869 else
3870   with_zlib=yes
3871
3872 fi;
3873
3874
3875
3876 #
3877 # Elf
3878 #
3879
3880 # Assume system is ELF if it predefines __ELF__ as 1,
3881 # otherwise believe host_os based default.
3882 case $host_os in
3883     freebsd1*|freebsd2*) elf=no;;
3884     freebsd3*|freebsd4*) elf=yes;;
3885 esac
3886
3887
3888 echo "$as_me:$LINENO: checking for egrep" >&5
3889 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3890 if test "${ac_cv_prog_egrep+set}" = set; then
3891   echo $ECHO_N "(cached) $ECHO_C" >&6
3892 else
3893   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3894     then ac_cv_prog_egrep='grep -E'
3895     else ac_cv_prog_egrep='egrep'
3896     fi
3897 fi
3898 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3899 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3900  EGREP=$ac_cv_prog_egrep
3901
3902
3903 cat >conftest.$ac_ext <<_ACEOF
3904 /* confdefs.h.  */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h.  */
3909 #if __ELF__
3910   yes
3911 #endif
3912
3913 _ACEOF
3914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3915   $EGREP "yes" >/dev/null 2>&1; then
3916   ELF_SYS=true
3917 else
3918   if test "X$elf" = "Xyes" ; then
3919   ELF_SYS=true
3920 else
3921   ELF_SYS=
3922 fi
3923 fi
3924 rm -f conftest*
3925
3926
3927
3928 #
3929 # Assignments
3930 #
3931
3932 CPPFLAGS="$CPPFLAGS $INCLUDES"
3933 LDFLAGS="$LDFLAGS $LIBDIRS"
3934
3935 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3936 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3937 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3938 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3939
3940
3941
3942 for ac_prog in gawk mawk nawk awk
3943 do
3944   # Extract the first word of "$ac_prog", so it can be a program name with args.
3945 set dummy $ac_prog; ac_word=$2
3946 echo "$as_me:$LINENO: checking for $ac_word" >&5
3947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3948 if test "${ac_cv_prog_AWK+set}" = set; then
3949   echo $ECHO_N "(cached) $ECHO_C" >&6
3950 else
3951   if test -n "$AWK"; then
3952   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3953 else
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 for as_dir in $PATH
3956 do
3957   IFS=$as_save_IFS
3958   test -z "$as_dir" && as_dir=.
3959   for ac_exec_ext in '' $ac_executable_extensions; do
3960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3961     ac_cv_prog_AWK="$ac_prog"
3962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3963     break 2
3964   fi
3965 done
3966 done
3967
3968 fi
3969 fi
3970 AWK=$ac_cv_prog_AWK
3971 if test -n "$AWK"; then
3972   echo "$as_me:$LINENO: result: $AWK" >&5
3973 echo "${ECHO_T}$AWK" >&6
3974 else
3975   echo "$as_me:$LINENO: result: no" >&5
3976 echo "${ECHO_T}no" >&6
3977 fi
3978
3979   test -n "$AWK" && break
3980 done
3981
3982 echo "$as_me:$LINENO: checking for flex" >&5
3983 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3984 if test "${pgac_cv_path_flex+set}" = set; then
3985   echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987   # Let the user override the test
3988 if test -n "$FLEX"; then
3989   pgac_cv_path_flex=$FLEX
3990 else
3991   pgac_save_IFS=$IFS
3992   IFS=$PATH_SEPARATOR
3993   for pgac_dir in $PATH; do
3994     IFS=$pgac_save_IFS
3995     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3996       pgac_dir=`pwd`
3997     fi
3998     for pgac_prog in flex lex; do
3999       pgac_candidate="$pgac_dir/$pgac_prog"
4000       if test -f "$pgac_candidate" \
4001         && $pgac_candidate --version </dev/null >/dev/null 2>&1
4002       then
4003         echo '%%'  > conftest.l
4004         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4005           if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
4006             pgac_broken_flex=$pgac_candidate
4007             continue
4008           fi
4009
4010           pgac_cv_path_flex=$pgac_candidate
4011           break 2
4012         fi
4013       fi
4014     done
4015   done
4016   rm -f conftest.l lex.yy.c
4017   : ${pgac_cv_path_flex=no}
4018 fi
4019
4020 fi
4021 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4022 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4023 if test x"$pgac_cv_path_flex" = x"no"; then
4024   if test -n "$pgac_broken_flex"; then
4025     { echo "$as_me:$LINENO: WARNING:
4026 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4027 *** should get version 2.5.4 or later." >&5
4028 echo "$as_me: WARNING:
4029 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4030 *** should get version 2.5.4 or later." >&2;}
4031   fi
4032
4033   { echo "$as_me:$LINENO: WARNING:
4034 *** Without Flex you will not be able to build PostgreSQL from CVS or
4035 *** change any of the scanner definition files.  You can obtain Flex from
4036 *** a GNU mirror site.  (If you are using the official distribution of
4037 *** PostgreSQL then you do not need to worry about this because the Flex
4038 *** output is pre-generated.)" >&5
4039 echo "$as_me: WARNING:
4040 *** Without Flex you will not be able to build PostgreSQL from CVS or
4041 *** change any of the scanner definition files.  You can obtain Flex from
4042 *** a GNU mirror site.  (If you are using the official distribution of
4043 *** PostgreSQL then you do not need to worry about this because the Flex
4044 *** output is pre-generated.)" >&2;}
4045 fi
4046
4047 if test x"$pgac_cv_path_flex" = x"no"; then
4048   FLEX=
4049 else
4050   FLEX=$pgac_cv_path_flex
4051 fi
4052
4053
4054
4055
4056 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4057 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4058 LN_S=$as_ln_s
4059 if test "$LN_S" = "ln -s"; then
4060   echo "$as_me:$LINENO: result: yes" >&5
4061 echo "${ECHO_T}yes" >&6
4062 else
4063   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4064 echo "${ECHO_T}no, using $LN_S" >&6
4065 fi
4066
4067
4068 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4069 if test "${with_gnu_ld+set}" = set; then
4070   withval="$with_gnu_ld"
4071   test "$withval" = no || with_gnu_ld=yes
4072 else
4073   with_gnu_ld=no
4074 fi;
4075 ac_prog=ld
4076 if test "$GCC" = yes; then
4077   # Check if gcc -print-prog-name=ld gives a path.
4078   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4079 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4080   case $host in
4081   *-*-mingw*)
4082     # gcc leaves a trailing carriage return which upsets mingw
4083     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4084   *)
4085     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4086   esac
4087   case "$ac_prog" in
4088     # Accept absolute paths.
4089     [\\/]* | [A-Za-z]:[\\/]*)
4090       re_direlt='/[^/][^/]*/\.\./'
4091       # Canonicalize the path of ld
4092       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4093       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4094         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4095       done
4096       test -z "$LD" && LD="$ac_prog"
4097       ;;
4098   "")
4099     # If it fails, then pretend we aren't using GCC.
4100     ac_prog=ld
4101     ;;
4102   *)
4103     # If it is relative, then search for the first ld in PATH.
4104     with_gnu_ld=unknown
4105     ;;
4106   esac
4107 elif test "$with_gnu_ld" = yes; then
4108   echo "$as_me:$LINENO: checking for GNU ld" >&5
4109 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4110 else
4111   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4112 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4113 fi
4114 if test "${ac_cv_path_LD+set}" = set; then
4115   echo $ECHO_N "(cached) $ECHO_C" >&6
4116 else
4117   if test -z "$LD"; then
4118   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4119   for ac_dir in $PATH; do
4120     test -z "$ac_dir" && ac_dir=.
4121     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4122       ac_cv_path_LD="$ac_dir/$ac_prog"
4123       # Check to see if the program is GNU ld.  I'd rather use --version,
4124       # but apparently some GNU ld's only accept -v.
4125       # Break only if it was the GNU/non-GNU ld that we prefer.
4126       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4127         test "$with_gnu_ld" != no && break
4128       else
4129         test "$with_gnu_ld" != yes && break
4130       fi
4131     fi
4132   done
4133   IFS="$ac_save_ifs"
4134 else
4135   ac_cv_path_LD="$LD" # Let the user override the test with a path.
4136 fi
4137 fi
4138
4139 LD="$ac_cv_path_LD"
4140 if test -n "$LD"; then
4141   echo "$as_me:$LINENO: result: $LD" >&5
4142 echo "${ECHO_T}$LD" >&6
4143 else
4144   echo "$as_me:$LINENO: result: no" >&5
4145 echo "${ECHO_T}no" >&6
4146 fi
4147 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4148 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4149    { (exit 1); exit 1; }; }
4150 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4151 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4152 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4153   echo $ECHO_N "(cached) $ECHO_C" >&6
4154 else
4155   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4156 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4157   ac_cv_prog_gnu_ld=yes
4158 else
4159   ac_cv_prog_gnu_ld=no
4160 fi
4161 fi
4162 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4163 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4164 with_gnu_ld=$ac_cv_prog_gnu_ld
4165
4166
4167
4168
4169 case $host_os in sysv5*)
4170   echo "$as_me:$LINENO: checking whether ld -R works" >&5
4171 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4172 if test "${pgac_cv_prog_ld_R+set}" = set; then
4173   echo $ECHO_N "(cached) $ECHO_C" >&6
4174 else
4175
4176     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4177     cat >conftest.$ac_ext <<_ACEOF
4178 /* confdefs.h.  */
4179 _ACEOF
4180 cat confdefs.h >>conftest.$ac_ext
4181 cat >>conftest.$ac_ext <<_ACEOF
4182 /* end confdefs.h.  */
4183
4184 int
4185 main ()
4186 {
4187
4188   ;
4189   return 0;
4190 }
4191 _ACEOF
4192 rm -f conftest.$ac_objext conftest$ac_exeext
4193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4194   (eval $ac_link) 2>conftest.er1
4195   ac_status=$?
4196   grep -v '^ *+' conftest.er1 >conftest.err
4197   rm -f conftest.er1
4198   cat conftest.err >&5
4199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200   (exit $ac_status); } &&
4201          { ac_try='test -z "$ac_c_werror_flag"
4202                          || test ! -s conftest.err'
4203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204   (eval $ac_try) 2>&5
4205   ac_status=$?
4206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207   (exit $ac_status); }; } &&
4208          { ac_try='test -s conftest$ac_exeext'
4209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210   (eval $ac_try) 2>&5
4211   ac_status=$?
4212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213   (exit $ac_status); }; }; then
4214   pgac_cv_prog_ld_R=yes
4215 else
4216   echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4218
4219 pgac_cv_prog_ld_R=no
4220 fi
4221 rm -f conftest.err conftest.$ac_objext \
4222       conftest$ac_exeext conftest.$ac_ext
4223     LDFLAGS=$pgac_save_LDFLAGS
4224
4225 fi
4226 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4227 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4228   ld_R_works=$pgac_cv_prog_ld_R
4229
4230 esac
4231 if test -n "$ac_tool_prefix"; then
4232   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4233 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4234 echo "$as_me:$LINENO: checking for $ac_word" >&5
4235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4236 if test "${ac_cv_prog_RANLIB+set}" = set; then
4237   echo $ECHO_N "(cached) $ECHO_C" >&6
4238 else
4239   if test -n "$RANLIB"; then
4240   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4241 else
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 for as_dir in $PATH
4244 do
4245   IFS=$as_save_IFS
4246   test -z "$as_dir" && as_dir=.
4247   for ac_exec_ext in '' $ac_executable_extensions; do
4248   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4249     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4251     break 2
4252   fi
4253 done
4254 done
4255
4256 fi
4257 fi
4258 RANLIB=$ac_cv_prog_RANLIB
4259 if test -n "$RANLIB"; then
4260   echo "$as_me:$LINENO: result: $RANLIB" >&5
4261 echo "${ECHO_T}$RANLIB" >&6
4262 else
4263   echo "$as_me:$LINENO: result: no" >&5
4264 echo "${ECHO_T}no" >&6
4265 fi
4266
4267 fi
4268 if test -z "$ac_cv_prog_RANLIB"; then
4269   ac_ct_RANLIB=$RANLIB
4270   # Extract the first word of "ranlib", so it can be a program name with args.
4271 set dummy ranlib; ac_word=$2
4272 echo "$as_me:$LINENO: checking for $ac_word" >&5
4273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4274 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4275   echo $ECHO_N "(cached) $ECHO_C" >&6
4276 else
4277   if test -n "$ac_ct_RANLIB"; then
4278   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4279 else
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH
4282 do
4283   IFS=$as_save_IFS
4284   test -z "$as_dir" && as_dir=.
4285   for ac_exec_ext in '' $ac_executable_extensions; do
4286   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4287     ac_cv_prog_ac_ct_RANLIB="ranlib"
4288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4289     break 2
4290   fi
4291 done
4292 done
4293
4294   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4295 fi
4296 fi
4297 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4298 if test -n "$ac_ct_RANLIB"; then
4299   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4300 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4301 else
4302   echo "$as_me:$LINENO: result: no" >&5
4303 echo "${ECHO_T}no" >&6
4304 fi
4305
4306   RANLIB=$ac_ct_RANLIB
4307 else
4308   RANLIB="$ac_cv_prog_RANLIB"
4309 fi
4310
4311 for ac_prog in lorder
4312 do
4313   # Extract the first word of "$ac_prog", so it can be a program name with args.
4314 set dummy $ac_prog; ac_word=$2
4315 echo "$as_me:$LINENO: checking for $ac_word" >&5
4316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4317 if test "${ac_cv_prog_LORDER+set}" = set; then
4318   echo $ECHO_N "(cached) $ECHO_C" >&6
4319 else
4320   if test -n "$LORDER"; then
4321   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4322 else
4323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324 for as_dir in $PATH
4325 do
4326   IFS=$as_save_IFS
4327   test -z "$as_dir" && as_dir=.
4328   for ac_exec_ext in '' $ac_executable_extensions; do
4329   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4330     ac_cv_prog_LORDER="$ac_prog"
4331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4332     break 2
4333   fi
4334 done
4335 done
4336
4337 fi
4338 fi
4339 LORDER=$ac_cv_prog_LORDER
4340 if test -n "$LORDER"; then
4341   echo "$as_me:$LINENO: result: $LORDER" >&5
4342 echo "${ECHO_T}$LORDER" >&6
4343 else
4344   echo "$as_me:$LINENO: result: no" >&5
4345 echo "${ECHO_T}no" >&6
4346 fi
4347
4348   test -n "$LORDER" && break
4349 done
4350
4351 # Extract the first word of "tar", so it can be a program name with args.
4352 set dummy tar; ac_word=$2
4353 echo "$as_me:$LINENO: checking for $ac_word" >&5
4354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4355 if test "${ac_cv_path_TAR+set}" = set; then
4356   echo $ECHO_N "(cached) $ECHO_C" >&6
4357 else
4358   case $TAR in
4359   [\\/]* | ?:[\\/]*)
4360   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4361   ;;
4362   *)
4363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4365 do
4366   IFS=$as_save_IFS
4367   test -z "$as_dir" && as_dir=.
4368   for ac_exec_ext in '' $ac_executable_extensions; do
4369   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4370     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4372     break 2
4373   fi
4374 done
4375 done
4376
4377   ;;
4378 esac
4379 fi
4380 TAR=$ac_cv_path_TAR
4381
4382 if test -n "$TAR"; then
4383   echo "$as_me:$LINENO: result: $TAR" >&5
4384 echo "${ECHO_T}$TAR" >&6
4385 else
4386   echo "$as_me:$LINENO: result: no" >&5
4387 echo "${ECHO_T}no" >&6
4388 fi
4389
4390
4391   if test -n "$ac_tool_prefix"; then
4392   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4393 set dummy ${ac_tool_prefix}strip; ac_word=$2
4394 echo "$as_me:$LINENO: checking for $ac_word" >&5
4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4396 if test "${ac_cv_prog_STRIP+set}" = set; then
4397   echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399   if test -n "$STRIP"; then
4400   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4401 else
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH
4404 do
4405   IFS=$as_save_IFS
4406   test -z "$as_dir" && as_dir=.
4407   for ac_exec_ext in '' $ac_executable_extensions; do
4408   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4409     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411     break 2
4412   fi
4413 done
4414 done
4415
4416 fi
4417 fi
4418 STRIP=$ac_cv_prog_STRIP
4419 if test -n "$STRIP"; then
4420   echo "$as_me:$LINENO: result: $STRIP" >&5
4421 echo "${ECHO_T}$STRIP" >&6
4422 else
4423   echo "$as_me:$LINENO: result: no" >&5
4424 echo "${ECHO_T}no" >&6
4425 fi
4426
4427 fi
4428 if test -z "$ac_cv_prog_STRIP"; then
4429   ac_ct_STRIP=$STRIP
4430   # Extract the first word of "strip", so it can be a program name with args.
4431 set dummy strip; ac_word=$2
4432 echo "$as_me:$LINENO: checking for $ac_word" >&5
4433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4434 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4435   echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437   if test -n "$ac_ct_STRIP"; then
4438   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4439 else
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH
4442 do
4443   IFS=$as_save_IFS
4444   test -z "$as_dir" && as_dir=.
4445   for ac_exec_ext in '' $ac_executable_extensions; do
4446   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4447     ac_cv_prog_ac_ct_STRIP="strip"
4448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449     break 2
4450   fi
4451 done
4452 done
4453
4454   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4455 fi
4456 fi
4457 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4458 if test -n "$ac_ct_STRIP"; then
4459   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4460 echo "${ECHO_T}$ac_ct_STRIP" >&6
4461 else
4462   echo "$as_me:$LINENO: result: no" >&5
4463 echo "${ECHO_T}no" >&6
4464 fi
4465
4466   STRIP=$ac_ct_STRIP
4467 else
4468   STRIP="$ac_cv_prog_STRIP"
4469 fi
4470
4471
4472   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4473 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4474   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4475     STRIP_STATIC_LIB="$STRIP -x"
4476     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4477     echo "$as_me:$LINENO: result: yes" >&5
4478 echo "${ECHO_T}yes" >&6
4479   else
4480     STRIP_STATIC_LIB=:
4481     STRIP_SHARED_LIB=:
4482     echo "$as_me:$LINENO: result: no" >&5
4483 echo "${ECHO_T}no" >&6
4484   fi
4485
4486
4487
4488
4489 for ac_prog in 'bison -y'
4490 do
4491   # Extract the first word of "$ac_prog", so it can be a program name with args.
4492 set dummy $ac_prog; ac_word=$2
4493 echo "$as_me:$LINENO: checking for $ac_word" >&5
4494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4495 if test "${ac_cv_prog_YACC+set}" = set; then
4496   echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498   if test -n "$YACC"; then
4499   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4500 else
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 for as_dir in $PATH
4503 do
4504   IFS=$as_save_IFS
4505   test -z "$as_dir" && as_dir=.
4506   for ac_exec_ext in '' $ac_executable_extensions; do
4507   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4508     ac_cv_prog_YACC="$ac_prog"
4509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4510     break 2
4511   fi
4512 done
4513 done
4514
4515 fi
4516 fi
4517 YACC=$ac_cv_prog_YACC
4518 if test -n "$YACC"; then
4519   echo "$as_me:$LINENO: result: $YACC" >&5
4520 echo "${ECHO_T}$YACC" >&6
4521 else
4522   echo "$as_me:$LINENO: result: no" >&5
4523 echo "${ECHO_T}no" >&6
4524 fi
4525
4526   test -n "$YACC" && break
4527 done
4528
4529
4530 if test "$YACC"; then
4531   if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4532     { echo "$as_me:$LINENO: WARNING:
4533 *** If you are going to modify the grammar files or build from CVS, the installed
4534 *** version of Bison is too old.  Bison version 1.875 or later is required." >&5
4535 echo "$as_me: WARNING:
4536 *** If you are going to modify the grammar files or build from CVS, the installed
4537 *** version of Bison is too old.  Bison version 1.875 or later is required." >&2;}
4538   fi
4539 fi
4540
4541 if test -z "$YACC"; then
4542   { echo "$as_me:$LINENO: WARNING:
4543 *** Without Bison you will not be able to build PostgreSQL from CVS or
4544 *** change any of the parser definition files.  You can obtain Bison from
4545 *** a GNU mirror site.  (If you are using the official distribution of
4546 *** PostgreSQL then you do not need to worry about this because the Bison
4547 *** output is pre-generated.)  To use a different yacc program (possible,
4548 *** but not recommended), set the environment variable YACC before running
4549 *** 'configure'." >&5
4550 echo "$as_me: WARNING:
4551 *** Without Bison you will not be able to build PostgreSQL from CVS or
4552 *** change any of the parser definition files.  You can obtain Bison from
4553 *** a GNU mirror site.  (If you are using the official distribution of
4554 *** PostgreSQL then you do not need to worry about this because the Bison
4555 *** output is pre-generated.)  To use a different yacc program (possible,
4556 *** but not recommended), set the environment variable YACC before running
4557 *** 'configure'." >&2;}
4558 fi
4559
4560
4561 # Extract the first word of "perl", so it can be a program name with args.
4562 set dummy perl; ac_word=$2
4563 echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4565 if test "${ac_cv_path_PERL+set}" = set; then
4566   echo $ECHO_N "(cached) $ECHO_C" >&6
4567 else
4568   case $PERL in
4569   [\\/]* | ?:[\\/]*)
4570   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4571   ;;
4572   *)
4573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 for as_dir in $PATH
4575 do
4576   IFS=$as_save_IFS
4577   test -z "$as_dir" && as_dir=.
4578   for ac_exec_ext in '' $ac_executable_extensions; do
4579   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4580     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4582     break 2
4583   fi
4584 done
4585 done
4586
4587   ;;
4588 esac
4589 fi
4590 PERL=$ac_cv_path_PERL
4591
4592 if test -n "$PERL"; then
4593   echo "$as_me:$LINENO: result: $PERL" >&5
4594 echo "${ECHO_T}$PERL" >&6
4595 else
4596   echo "$as_me:$LINENO: result: no" >&5
4597 echo "${ECHO_T}no" >&6
4598 fi
4599
4600 if test "$with_perl" = yes; then
4601
4602 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4603 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4604 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4605 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4606 echo "${ECHO_T}$perl_archlibexp" >&6
4607 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4608 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4609 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4610 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4611 echo "${ECHO_T}$perl_privlibexp" >&6
4612 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4613 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4614 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4615 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4616 echo "${ECHO_T}$perl_useshrplib" >&6
4617
4618 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4619 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4620 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4621 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4622 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4623 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4624 echo "${ECHO_T}$perl_embed_ldflags" >&6
4625 fi
4626
4627 if test "$with_python" = yes; then
4628   # Extract the first word of "python", so it can be a program name with args.
4629 set dummy python; ac_word=$2
4630 echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4632 if test "${ac_cv_path_PYTHON+set}" = set; then
4633   echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635   case $PYTHON in
4636   [\\/]* | ?:[\\/]*)
4637   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4638   ;;
4639   *)
4640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH
4642 do
4643   IFS=$as_save_IFS
4644   test -z "$as_dir" && as_dir=.
4645   for ac_exec_ext in '' $ac_executable_extensions; do
4646   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4647     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4649     break 2
4650   fi
4651 done
4652 done
4653
4654   ;;
4655 esac
4656 fi
4657 PYTHON=$ac_cv_path_PYTHON
4658
4659 if test -n "$PYTHON"; then
4660   echo "$as_me:$LINENO: result: $PYTHON" >&5
4661 echo "${ECHO_T}$PYTHON" >&6
4662 else
4663   echo "$as_me:$LINENO: result: no" >&5
4664 echo "${ECHO_T}no" >&6
4665 fi
4666
4667 if test x"$PYTHON" = x""; then
4668   { { echo "$as_me:$LINENO: error: Python not found" >&5
4669 echo "$as_me: error: Python not found" >&2;}
4670    { (exit 1); exit 1; }; }
4671 fi
4672
4673
4674 echo "$as_me:$LINENO: checking for Python distutils module" >&5
4675 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6
4676 if "${PYTHON}" 2>&- -c 'import distutils'
4677 then
4678     echo "$as_me:$LINENO: result: yes" >&5
4679 echo "${ECHO_T}yes" >&6
4680 else
4681     echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6
4683     { { echo "$as_me:$LINENO: error: distutils module not found" >&5
4684 echo "$as_me: error: distutils module not found" >&2;}
4685    { (exit 1); exit 1; }; }
4686 fi
4687 echo "$as_me:$LINENO: checking Python configuration directory" >&5
4688 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6
4689 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4690 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')"`
4691 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
4692
4693 # This should be enough of a message.
4694 echo "$as_me:$LINENO: result: $python_configdir" >&5
4695 echo "${ECHO_T}$python_configdir" >&6
4696
4697
4698 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4699 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4700
4701 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
4702 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
4703 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
4704 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
4705
4706 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
4707 then
4708         # New way: use the official shared library
4709         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
4710         python_libspec="-L${python_libdir} -l${ldlibrary}"
4711 else
4712         # Old way: use libpython from python_configdir
4713         python_libdir="${python_configdir}"
4714         python_libspec="-L${python_libdir} -lpython${python_version}"
4715 fi
4716
4717 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
4718
4719 echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
4720 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6
4721
4722
4723 # threaded python is not supported on bsd's
4724 echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
4725 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6
4726 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
4727 if test "$pythreads" = "1"; then
4728   echo "$as_me:$LINENO: result: yes" >&5
4729 echo "${ECHO_T}yes" >&6
4730   case $host_os in
4731   openbsd*|freebsd4*)
4732     { { echo "$as_me:$LINENO: error: *** Threaded Python not supported on this platform ***" >&5
4733 echo "$as_me: error: *** Threaded Python not supported on this platform ***" >&2;}
4734    { (exit 1); exit 1; }; }
4735     ;;
4736   esac
4737 else
4738   echo "$as_me:$LINENO: result: no" >&5
4739 echo "${ECHO_T}no" >&6
4740 fi
4741
4742
4743 fi
4744
4745 # Supply a numeric version string for use by 3rd party add-ons
4746 # awk -F is a regex on some platforms, and not on others, so make "." a tab
4747 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/A-Za-z.*$//' |
4748 tr '.' '        ' |
4749 $AWK '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
4750
4751 cat >>confdefs.h <<_ACEOF
4752 #define PG_VERSION_NUM $PG_VERSION_NUM
4753 _ACEOF
4754
4755
4756 ##
4757 ## Libraries
4758 ##
4759
4760 echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
4761 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6
4762 if test "${ac_cv_search_setproctitle+set}" = set; then
4763   echo $ECHO_N "(cached) $ECHO_C" >&6
4764 else
4765   ac_func_search_save_LIBS=$LIBS
4766 ac_cv_search_setproctitle=no
4767 cat >conftest.$ac_ext <<_ACEOF
4768 /* confdefs.h.  */
4769 _ACEOF
4770 cat confdefs.h >>conftest.$ac_ext
4771 cat >>conftest.$ac_ext <<_ACEOF
4772 /* end confdefs.h.  */
4773
4774 /* Override any gcc2 internal prototype to avoid an error.  */
4775 #ifdef __cplusplus
4776 extern "C"
4777 #endif
4778 /* We use char because int might match the return type of a gcc2
4779    builtin and then its argument prototype would still apply.  */
4780 char setproctitle ();
4781 int
4782 main ()
4783 {
4784 setproctitle ();
4785   ;
4786   return 0;
4787 }
4788 _ACEOF
4789 rm -f conftest.$ac_objext conftest$ac_exeext
4790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4791   (eval $ac_link) 2>conftest.er1
4792   ac_status=$?
4793   grep -v '^ *+' conftest.er1 >conftest.err
4794   rm -f conftest.er1
4795   cat conftest.err >&5
4796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797   (exit $ac_status); } &&
4798          { ac_try='test -z "$ac_c_werror_flag"
4799                          || test ! -s conftest.err'
4800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801   (eval $ac_try) 2>&5
4802   ac_status=$?
4803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804   (exit $ac_status); }; } &&
4805          { ac_try='test -s conftest$ac_exeext'
4806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807   (eval $ac_try) 2>&5
4808   ac_status=$?
4809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810   (exit $ac_status); }; }; then
4811   ac_cv_search_setproctitle="none required"
4812 else
4813   echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4815
4816 fi
4817 rm -f conftest.err conftest.$ac_objext \
4818       conftest$ac_exeext conftest.$ac_ext
4819 if test "$ac_cv_search_setproctitle" = no; then
4820   for ac_lib in util; do
4821     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4822     cat >conftest.$ac_ext <<_ACEOF
4823 /* confdefs.h.  */
4824 _ACEOF
4825 cat confdefs.h >>conftest.$ac_ext
4826 cat >>conftest.$ac_ext <<_ACEOF
4827 /* end confdefs.h.  */
4828
4829 /* Override any gcc2 internal prototype to avoid an error.  */
4830 #ifdef __cplusplus
4831 extern "C"
4832 #endif
4833 /* We use char because int might match the return type of a gcc2
4834    builtin and then its argument prototype would still apply.  */
4835 char setproctitle ();
4836 int
4837 main ()
4838 {
4839 setproctitle ();
4840   ;
4841   return 0;
4842 }
4843 _ACEOF
4844 rm -f conftest.$ac_objext conftest$ac_exeext
4845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4846   (eval $ac_link) 2>conftest.er1
4847   ac_status=$?
4848   grep -v '^ *+' conftest.er1 >conftest.err
4849   rm -f conftest.er1
4850   cat conftest.err >&5
4851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852   (exit $ac_status); } &&
4853          { ac_try='test -z "$ac_c_werror_flag"
4854                          || test ! -s conftest.err'
4855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856   (eval $ac_try) 2>&5
4857   ac_status=$?
4858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859   (exit $ac_status); }; } &&
4860          { ac_try='test -s conftest$ac_exeext'
4861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862   (eval $ac_try) 2>&5
4863   ac_status=$?
4864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865   (exit $ac_status); }; }; then
4866   ac_cv_search_setproctitle="-l$ac_lib"
4867 break
4868 else
4869   echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4871
4872 fi
4873 rm -f conftest.err conftest.$ac_objext \
4874       conftest$ac_exeext conftest.$ac_ext
4875   done
4876 fi
4877 LIBS=$ac_func_search_save_LIBS
4878 fi
4879 echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
4880 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6
4881 if test "$ac_cv_search_setproctitle" != no; then
4882   test "$ac_cv_search_setproctitle" = "none required" || LIBS="$ac_cv_search_setproctitle $LIBS"
4883
4884 fi
4885
4886 echo "$as_me:$LINENO: checking for library containing pow" >&5
4887 echo $ECHO_N "checking for library containing pow... $ECHO_C" >&6
4888 if test "${ac_cv_search_pow+set}" = set; then
4889   echo $ECHO_N "(cached) $ECHO_C" >&6
4890 else
4891   ac_func_search_save_LIBS=$LIBS
4892 ac_cv_search_pow=no
4893 cat >conftest.$ac_ext <<_ACEOF
4894 /* confdefs.h.  */
4895 _ACEOF
4896 cat confdefs.h >>conftest.$ac_ext
4897 cat >>conftest.$ac_ext <<_ACEOF
4898 /* end confdefs.h.  */
4899
4900 /* Override any gcc2 internal prototype to avoid an error.  */
4901 #ifdef __cplusplus
4902 extern "C"
4903 #endif
4904 /* We use char because int might match the return type of a gcc2
4905    builtin and then its argument prototype would still apply.  */
4906 char pow ();
4907 int
4908 main ()
4909 {
4910 pow ();
4911   ;
4912   return 0;
4913 }
4914 _ACEOF
4915 rm -f conftest.$ac_objext conftest$ac_exeext
4916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4917   (eval $ac_link) 2>conftest.er1
4918   ac_status=$?
4919   grep -v '^ *+' conftest.er1 >conftest.err
4920   rm -f conftest.er1
4921   cat conftest.err >&5
4922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923   (exit $ac_status); } &&
4924          { ac_try='test -z "$ac_c_werror_flag"
4925                          || test ! -s conftest.err'
4926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927   (eval $ac_try) 2>&5
4928   ac_status=$?
4929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930   (exit $ac_status); }; } &&
4931          { ac_try='test -s conftest$ac_exeext'
4932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933   (eval $ac_try) 2>&5
4934   ac_status=$?
4935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936   (exit $ac_status); }; }; then
4937   ac_cv_search_pow="none required"
4938 else
4939   echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4941
4942 fi
4943 rm -f conftest.err conftest.$ac_objext \
4944       conftest$ac_exeext conftest.$ac_ext
4945 if test "$ac_cv_search_pow" = no; then
4946   for ac_lib in m; do
4947     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4948     cat >conftest.$ac_ext <<_ACEOF
4949 /* confdefs.h.  */
4950 _ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h.  */
4954
4955 /* Override any gcc2 internal prototype to avoid an error.  */
4956 #ifdef __cplusplus
4957 extern "C"
4958 #endif
4959 /* We use char because int might match the return type of a gcc2
4960    builtin and then its argument prototype would still apply.  */
4961 char pow ();
4962 int
4963 main ()
4964 {
4965 pow ();
4966   ;
4967   return 0;
4968 }
4969 _ACEOF
4970 rm -f conftest.$ac_objext conftest$ac_exeext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4972   (eval $ac_link) 2>conftest.er1
4973   ac_status=$?
4974   grep -v '^ *+' conftest.er1 >conftest.err
4975   rm -f conftest.er1
4976   cat conftest.err >&5
4977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978   (exit $ac_status); } &&
4979          { ac_try='test -z "$ac_c_werror_flag"
4980                          || test ! -s conftest.err'
4981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982   (eval $ac_try) 2>&5
4983   ac_status=$?
4984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985   (exit $ac_status); }; } &&
4986          { ac_try='test -s conftest$ac_exeext'
4987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988   (eval $ac_try) 2>&5
4989   ac_status=$?
4990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991   (exit $ac_status); }; }; then
4992   ac_cv_search_pow="-l$ac_lib"
4993 break
4994 else
4995   echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
4997
4998 fi
4999 rm -f conftest.err conftest.$ac_objext \
5000       conftest$ac_exeext conftest.$ac_ext
5001   done
5002 fi
5003 LIBS=$ac_func_search_save_LIBS
5004 fi
5005 echo "$as_me:$LINENO: result: $ac_cv_search_pow" >&5
5006 echo "${ECHO_T}$ac_cv_search_pow" >&6
5007 if test "$ac_cv_search_pow" != no; then
5008   test "$ac_cv_search_pow" = "none required" || LIBS="$ac_cv_search_pow $LIBS"
5009
5010 fi
5011
5012 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
5013 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
5014 if test "${ac_cv_search_dlopen+set}" = set; then
5015   echo $ECHO_N "(cached) $ECHO_C" >&6
5016 else
5017   ac_func_search_save_LIBS=$LIBS
5018 ac_cv_search_dlopen=no
5019 cat >conftest.$ac_ext <<_ACEOF
5020 /* confdefs.h.  */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h.  */
5025
5026 /* Override any gcc2 internal prototype to avoid an error.  */
5027 #ifdef __cplusplus
5028 extern "C"
5029 #endif
5030 /* We use char because int might match the return type of a gcc2
5031    builtin and then its argument prototype would still apply.  */
5032 char dlopen ();
5033 int
5034 main ()
5035 {
5036 dlopen ();
5037   ;
5038   return 0;
5039 }
5040 _ACEOF
5041 rm -f conftest.$ac_objext conftest$ac_exeext
5042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5043   (eval $ac_link) 2>conftest.er1
5044   ac_status=$?
5045   grep -v '^ *+' conftest.er1 >conftest.err
5046   rm -f conftest.er1
5047   cat conftest.err >&5
5048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049   (exit $ac_status); } &&
5050          { ac_try='test -z "$ac_c_werror_flag"
5051                          || test ! -s conftest.err'
5052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053   (eval $ac_try) 2>&5
5054   ac_status=$?
5055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056   (exit $ac_status); }; } &&
5057          { ac_try='test -s conftest$ac_exeext'
5058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059   (eval $ac_try) 2>&5
5060   ac_status=$?
5061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062   (exit $ac_status); }; }; then
5063   ac_cv_search_dlopen="none required"
5064 else
5065   echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5067
5068 fi
5069 rm -f conftest.err conftest.$ac_objext \
5070       conftest$ac_exeext conftest.$ac_ext
5071 if test "$ac_cv_search_dlopen" = no; then
5072   for ac_lib in dl; do
5073     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5074     cat >conftest.$ac_ext <<_ACEOF
5075 /* confdefs.h.  */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h.  */
5080
5081 /* Override any gcc2 internal prototype to avoid an error.  */
5082 #ifdef __cplusplus
5083 extern "C"
5084 #endif
5085 /* We use char because int might match the return type of a gcc2
5086    builtin and then its argument prototype would still apply.  */
5087 char dlopen ();
5088 int
5089 main ()
5090 {
5091 dlopen ();
5092   ;
5093   return 0;
5094 }
5095 _ACEOF
5096 rm -f conftest.$ac_objext conftest$ac_exeext
5097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5098   (eval $ac_link) 2>conftest.er1
5099   ac_status=$?
5100   grep -v '^ *+' conftest.er1 >conftest.err
5101   rm -f conftest.er1
5102   cat conftest.err >&5
5103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104   (exit $ac_status); } &&
5105          { ac_try='test -z "$ac_c_werror_flag"
5106                          || test ! -s conftest.err'
5107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108   (eval $ac_try) 2>&5
5109   ac_status=$?
5110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111   (exit $ac_status); }; } &&
5112          { ac_try='test -s conftest$ac_exeext'
5113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114   (eval $ac_try) 2>&5
5115   ac_status=$?
5116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117   (exit $ac_status); }; }; then
5118   ac_cv_search_dlopen="-l$ac_lib"
5119 break
5120 else
5121   echo "$as_me: failed program was:" >&5
5122 sed 's/^/| /' conftest.$ac_ext >&5
5123
5124 fi
5125 rm -f conftest.err conftest.$ac_objext \
5126       conftest$ac_exeext conftest.$ac_ext
5127   done
5128 fi
5129 LIBS=$ac_func_search_save_LIBS
5130 fi
5131 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
5132 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
5133 if test "$ac_cv_search_dlopen" != no; then
5134   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
5135
5136 fi
5137
5138 echo "$as_me:$LINENO: checking for library containing socket" >&5
5139 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
5140 if test "${ac_cv_search_socket+set}" = set; then
5141   echo $ECHO_N "(cached) $ECHO_C" >&6
5142 else
5143   ac_func_search_save_LIBS=$LIBS
5144 ac_cv_search_socket=no
5145 cat >conftest.$ac_ext <<_ACEOF
5146 /* confdefs.h.  */
5147 _ACEOF
5148 cat confdefs.h >>conftest.$ac_ext
5149 cat >>conftest.$ac_ext <<_ACEOF
5150 /* end confdefs.h.  */
5151
5152 /* Override any gcc2 internal prototype to avoid an error.  */
5153 #ifdef __cplusplus
5154 extern "C"
5155 #endif
5156 /* We use char because int might match the return type of a gcc2
5157    builtin and then its argument prototype would still apply.  */
5158 char socket ();
5159 int
5160 main ()
5161 {
5162 socket ();
5163   ;
5164   return 0;
5165 }
5166 _ACEOF
5167 rm -f conftest.$ac_objext conftest$ac_exeext
5168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5169   (eval $ac_link) 2>conftest.er1
5170   ac_status=$?
5171   grep -v '^ *+' conftest.er1 >conftest.err
5172   rm -f conftest.er1
5173   cat conftest.err >&5
5174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175   (exit $ac_status); } &&
5176          { ac_try='test -z "$ac_c_werror_flag"
5177                          || test ! -s conftest.err'
5178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179   (eval $ac_try) 2>&5
5180   ac_status=$?
5181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182   (exit $ac_status); }; } &&
5183          { ac_try='test -s conftest$ac_exeext'
5184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185   (eval $ac_try) 2>&5
5186   ac_status=$?
5187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188   (exit $ac_status); }; }; then
5189   ac_cv_search_socket="none required"
5190 else
5191   echo "$as_me: failed program was:" >&5
5192 sed 's/^/| /' conftest.$ac_ext >&5
5193
5194 fi
5195 rm -f conftest.err conftest.$ac_objext \
5196       conftest$ac_exeext conftest.$ac_ext
5197 if test "$ac_cv_search_socket" = no; then
5198   for ac_lib in socket wsock32; do
5199     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5200     cat >conftest.$ac_ext <<_ACEOF
5201 /* confdefs.h.  */
5202 _ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h.  */
5206
5207 /* Override any gcc2 internal prototype to avoid an error.  */
5208 #ifdef __cplusplus
5209 extern "C"
5210 #endif
5211 /* We use char because int might match the return type of a gcc2
5212    builtin and then its argument prototype would still apply.  */
5213 char socket ();
5214 int
5215 main ()
5216 {
5217 socket ();
5218   ;
5219   return 0;
5220 }
5221 _ACEOF
5222 rm -f conftest.$ac_objext conftest$ac_exeext
5223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5224   (eval $ac_link) 2>conftest.er1
5225   ac_status=$?
5226   grep -v '^ *+' conftest.er1 >conftest.err
5227   rm -f conftest.er1
5228   cat conftest.err >&5
5229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230   (exit $ac_status); } &&
5231          { ac_try='test -z "$ac_c_werror_flag"
5232                          || test ! -s conftest.err'
5233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234   (eval $ac_try) 2>&5
5235   ac_status=$?
5236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237   (exit $ac_status); }; } &&
5238          { ac_try='test -s conftest$ac_exeext'
5239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240   (eval $ac_try) 2>&5
5241   ac_status=$?
5242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243   (exit $ac_status); }; }; then
5244   ac_cv_search_socket="-l$ac_lib"
5245 break
5246 else
5247   echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5249
5250 fi
5251 rm -f conftest.err conftest.$ac_objext \
5252       conftest$ac_exeext conftest.$ac_ext
5253   done
5254 fi
5255 LIBS=$ac_func_search_save_LIBS
5256 fi
5257 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5258 echo "${ECHO_T}$ac_cv_search_socket" >&6
5259 if test "$ac_cv_search_socket" != no; then
5260   test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
5261
5262 fi
5263
5264 echo "$as_me:$LINENO: checking for library containing shl_load" >&5
5265 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6
5266 if test "${ac_cv_search_shl_load+set}" = set; then
5267   echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269   ac_func_search_save_LIBS=$LIBS
5270 ac_cv_search_shl_load=no
5271 cat >conftest.$ac_ext <<_ACEOF
5272 /* confdefs.h.  */
5273 _ACEOF
5274 cat confdefs.h >>conftest.$ac_ext
5275 cat >>conftest.$ac_ext <<_ACEOF
5276 /* end confdefs.h.  */
5277
5278 /* Override any gcc2 internal prototype to avoid an error.  */
5279 #ifdef __cplusplus
5280 extern "C"
5281 #endif
5282 /* We use char because int might match the return type of a gcc2
5283    builtin and then its argument prototype would still apply.  */
5284 char shl_load ();
5285 int
5286 main ()
5287 {
5288 shl_load ();
5289   ;
5290   return 0;
5291 }
5292 _ACEOF
5293 rm -f conftest.$ac_objext conftest$ac_exeext
5294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5295   (eval $ac_link) 2>conftest.er1
5296   ac_status=$?
5297   grep -v '^ *+' conftest.er1 >conftest.err
5298   rm -f conftest.er1
5299   cat conftest.err >&5
5300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301   (exit $ac_status); } &&
5302          { ac_try='test -z "$ac_c_werror_flag"
5303                          || test ! -s conftest.err'
5304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305   (eval $ac_try) 2>&5
5306   ac_status=$?
5307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308   (exit $ac_status); }; } &&
5309          { ac_try='test -s conftest$ac_exeext'
5310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311   (eval $ac_try) 2>&5
5312   ac_status=$?
5313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314   (exit $ac_status); }; }; then
5315   ac_cv_search_shl_load="none required"
5316 else
5317   echo "$as_me: failed program was:" >&5
5318 sed 's/^/| /' conftest.$ac_ext >&5
5319
5320 fi
5321 rm -f conftest.err conftest.$ac_objext \
5322       conftest$ac_exeext conftest.$ac_ext
5323 if test "$ac_cv_search_shl_load" = no; then
5324   for ac_lib in dld; do
5325     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5326     cat >conftest.$ac_ext <<_ACEOF
5327 /* confdefs.h.  */
5328 _ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h.  */
5332
5333 /* Override any gcc2 internal prototype to avoid an error.  */
5334 #ifdef __cplusplus
5335 extern "C"
5336 #endif
5337 /* We use char because int might match the return type of a gcc2
5338    builtin and then its argument prototype would still apply.  */
5339 char shl_load ();
5340 int
5341 main ()
5342 {
5343 shl_load ();
5344   ;
5345   return 0;
5346 }
5347 _ACEOF
5348 rm -f conftest.$ac_objext conftest$ac_exeext
5349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5350   (eval $ac_link) 2>conftest.er1
5351   ac_status=$?
5352   grep -v '^ *+' conftest.er1 >conftest.err
5353   rm -f conftest.er1
5354   cat conftest.err >&5
5355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356   (exit $ac_status); } &&
5357          { ac_try='test -z "$ac_c_werror_flag"
5358                          || test ! -s conftest.err'
5359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360   (eval $ac_try) 2>&5
5361   ac_status=$?
5362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363   (exit $ac_status); }; } &&
5364          { ac_try='test -s conftest$ac_exeext'
5365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366   (eval $ac_try) 2>&5
5367   ac_status=$?
5368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369   (exit $ac_status); }; }; then
5370   ac_cv_search_shl_load="-l$ac_lib"
5371 break
5372 else
5373   echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5375
5376 fi
5377 rm -f conftest.err conftest.$ac_objext \
5378       conftest$ac_exeext conftest.$ac_ext
5379   done
5380 fi
5381 LIBS=$ac_func_search_save_LIBS
5382 fi
5383 echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
5384 echo "${ECHO_T}$ac_cv_search_shl_load" >&6
5385 if test "$ac_cv_search_shl_load" != no; then
5386   test "$ac_cv_search_shl_load" = "none required" || LIBS="$ac_cv_search_shl_load $LIBS"
5387
5388 fi
5389
5390 # We only use libld in port/dynloader/aix.c
5391 case $host_os in
5392      aix*)
5393         echo "$as_me:$LINENO: checking for library containing ldopen" >&5
5394 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6
5395 if test "${ac_cv_search_ldopen+set}" = set; then
5396   echo $ECHO_N "(cached) $ECHO_C" >&6
5397 else
5398   ac_func_search_save_LIBS=$LIBS
5399 ac_cv_search_ldopen=no
5400 cat >conftest.$ac_ext <<_ACEOF
5401 /* confdefs.h.  */
5402 _ACEOF
5403 cat confdefs.h >>conftest.$ac_ext
5404 cat >>conftest.$ac_ext <<_ACEOF
5405 /* end confdefs.h.  */
5406
5407 /* Override any gcc2 internal prototype to avoid an error.  */
5408 #ifdef __cplusplus
5409 extern "C"
5410 #endif
5411 /* We use char because int might match the return type of a gcc2
5412    builtin and then its argument prototype would still apply.  */
5413 char ldopen ();
5414 int
5415 main ()
5416 {
5417 ldopen ();
5418   ;
5419   return 0;
5420 }
5421 _ACEOF
5422 rm -f conftest.$ac_objext conftest$ac_exeext
5423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5424   (eval $ac_link) 2>conftest.er1
5425   ac_status=$?
5426   grep -v '^ *+' conftest.er1 >conftest.err
5427   rm -f conftest.er1
5428   cat conftest.err >&5
5429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430   (exit $ac_status); } &&
5431          { ac_try='test -z "$ac_c_werror_flag"
5432                          || test ! -s conftest.err'
5433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434   (eval $ac_try) 2>&5
5435   ac_status=$?
5436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437   (exit $ac_status); }; } &&
5438          { ac_try='test -s conftest$ac_exeext'
5439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440   (eval $ac_try) 2>&5
5441   ac_status=$?
5442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443   (exit $ac_status); }; }; then
5444   ac_cv_search_ldopen="none required"
5445 else
5446   echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5448
5449 fi
5450 rm -f conftest.err conftest.$ac_objext \
5451       conftest$ac_exeext conftest.$ac_ext
5452 if test "$ac_cv_search_ldopen" = no; then
5453   for ac_lib in ld; do
5454     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5455     cat >conftest.$ac_ext <<_ACEOF
5456 /* confdefs.h.  */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h.  */
5461
5462 /* Override any gcc2 internal prototype to avoid an error.  */
5463 #ifdef __cplusplus
5464 extern "C"
5465 #endif
5466 /* We use char because int might match the return type of a gcc2
5467    builtin and then its argument prototype would still apply.  */
5468 char ldopen ();
5469 int
5470 main ()
5471 {
5472 ldopen ();
5473   ;
5474   return 0;
5475 }
5476 _ACEOF
5477 rm -f conftest.$ac_objext conftest$ac_exeext
5478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5479   (eval $ac_link) 2>conftest.er1
5480   ac_status=$?
5481   grep -v '^ *+' conftest.er1 >conftest.err
5482   rm -f conftest.er1
5483   cat conftest.err >&5
5484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485   (exit $ac_status); } &&
5486          { ac_try='test -z "$ac_c_werror_flag"
5487                          || test ! -s conftest.err'
5488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489   (eval $ac_try) 2>&5
5490   ac_status=$?
5491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492   (exit $ac_status); }; } &&
5493          { ac_try='test -s conftest$ac_exeext'
5494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495   (eval $ac_try) 2>&5
5496   ac_status=$?
5497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498   (exit $ac_status); }; }; then
5499   ac_cv_search_ldopen="-l$ac_lib"
5500 break
5501 else
5502   echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5504
5505 fi
5506 rm -f conftest.err conftest.$ac_objext \
5507       conftest$ac_exeext conftest.$ac_ext
5508   done
5509 fi
5510 LIBS=$ac_func_search_save_LIBS
5511 fi
5512 echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
5513 echo "${ECHO_T}$ac_cv_search_ldopen" >&6
5514 if test "$ac_cv_search_ldopen" != no; then
5515   test "$ac_cv_search_ldopen" = "none required" || LIBS="$ac_cv_search_ldopen $LIBS"
5516
5517 fi
5518
5519         ;;
5520 esac
5521 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5522 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5523 if test "${ac_cv_search_getopt_long+set}" = set; then
5524   echo $ECHO_N "(cached) $ECHO_C" >&6
5525 else
5526   ac_func_search_save_LIBS=$LIBS
5527 ac_cv_search_getopt_long=no
5528 cat >conftest.$ac_ext <<_ACEOF
5529 /* confdefs.h.  */
5530 _ACEOF
5531 cat confdefs.h >>conftest.$ac_ext
5532 cat >>conftest.$ac_ext <<_ACEOF
5533 /* end confdefs.h.  */
5534
5535 /* Override any gcc2 internal prototype to avoid an error.  */
5536 #ifdef __cplusplus
5537 extern "C"
5538 #endif
5539 /* We use char because int might match the return type of a gcc2
5540    builtin and then its argument prototype would still apply.  */
5541 char getopt_long ();
5542 int
5543 main ()
5544 {
5545 getopt_long ();
5546   ;
5547   return 0;
5548 }
5549 _ACEOF
5550 rm -f conftest.$ac_objext conftest$ac_exeext
5551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5552   (eval $ac_link) 2>conftest.er1
5553   ac_status=$?
5554   grep -v '^ *+' conftest.er1 >conftest.err
5555   rm -f conftest.er1
5556   cat conftest.err >&5
5557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558   (exit $ac_status); } &&
5559          { ac_try='test -z "$ac_c_werror_flag"
5560                          || test ! -s conftest.err'
5561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562   (eval $ac_try) 2>&5
5563   ac_status=$?
5564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565   (exit $ac_status); }; } &&
5566          { ac_try='test -s conftest$ac_exeext'
5567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568   (eval $ac_try) 2>&5
5569   ac_status=$?
5570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571   (exit $ac_status); }; }; then
5572   ac_cv_search_getopt_long="none required"
5573 else
5574   echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5576
5577 fi
5578 rm -f conftest.err conftest.$ac_objext \
5579       conftest$ac_exeext conftest.$ac_ext
5580 if test "$ac_cv_search_getopt_long" = no; then
5581   for ac_lib in getopt gnugetopt; do
5582     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5583     cat >conftest.$ac_ext <<_ACEOF
5584 /* confdefs.h.  */
5585 _ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h.  */
5589
5590 /* Override any gcc2 internal prototype to avoid an error.  */
5591 #ifdef __cplusplus
5592 extern "C"
5593 #endif
5594 /* We use char because int might match the return type of a gcc2
5595    builtin and then its argument prototype would still apply.  */
5596 char getopt_long ();
5597 int
5598 main ()
5599 {
5600 getopt_long ();
5601   ;
5602   return 0;
5603 }
5604 _ACEOF
5605 rm -f conftest.$ac_objext conftest$ac_exeext
5606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5607   (eval $ac_link) 2>conftest.er1
5608   ac_status=$?
5609   grep -v '^ *+' conftest.er1 >conftest.err
5610   rm -f conftest.er1
5611   cat conftest.err >&5
5612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613   (exit $ac_status); } &&
5614          { ac_try='test -z "$ac_c_werror_flag"
5615                          || test ! -s conftest.err'
5616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617   (eval $ac_try) 2>&5
5618   ac_status=$?
5619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620   (exit $ac_status); }; } &&
5621          { ac_try='test -s conftest$ac_exeext'
5622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623   (eval $ac_try) 2>&5
5624   ac_status=$?
5625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626   (exit $ac_status); }; }; then
5627   ac_cv_search_getopt_long="-l$ac_lib"
5628 break
5629 else
5630   echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.$ac_ext >&5
5632
5633 fi
5634 rm -f conftest.err conftest.$ac_objext \
5635       conftest$ac_exeext conftest.$ac_ext
5636   done
5637 fi
5638 LIBS=$ac_func_search_save_LIBS
5639 fi
5640 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5641 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5642 if test "$ac_cv_search_getopt_long" != no; then
5643   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5644
5645 fi
5646
5647 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5648 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5649 if test "${ac_cv_search_crypt+set}" = set; then
5650   echo $ECHO_N "(cached) $ECHO_C" >&6
5651 else
5652   ac_func_search_save_LIBS=$LIBS
5653 ac_cv_search_crypt=no
5654 cat >conftest.$ac_ext <<_ACEOF
5655 /* confdefs.h.  */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h.  */
5660
5661 /* Override any gcc2 internal prototype to avoid an error.  */
5662 #ifdef __cplusplus
5663 extern "C"
5664 #endif
5665 /* We use char because int might match the return type of a gcc2
5666    builtin and then its argument prototype would still apply.  */
5667 char crypt ();
5668 int
5669 main ()
5670 {
5671 crypt ();
5672   ;
5673   return 0;
5674 }
5675 _ACEOF
5676 rm -f conftest.$ac_objext conftest$ac_exeext
5677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5678   (eval $ac_link) 2>conftest.er1
5679   ac_status=$?
5680   grep -v '^ *+' conftest.er1 >conftest.err
5681   rm -f conftest.er1
5682   cat conftest.err >&5
5683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684   (exit $ac_status); } &&
5685          { ac_try='test -z "$ac_c_werror_flag"
5686                          || test ! -s conftest.err'
5687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688   (eval $ac_try) 2>&5
5689   ac_status=$?
5690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691   (exit $ac_status); }; } &&
5692          { ac_try='test -s conftest$ac_exeext'
5693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694   (eval $ac_try) 2>&5
5695   ac_status=$?
5696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697   (exit $ac_status); }; }; then
5698   ac_cv_search_crypt="none required"
5699 else
5700   echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5702
5703 fi
5704 rm -f conftest.err conftest.$ac_objext \
5705       conftest$ac_exeext conftest.$ac_ext
5706 if test "$ac_cv_search_crypt" = no; then
5707   for ac_lib in crypt; do
5708     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5709     cat >conftest.$ac_ext <<_ACEOF
5710 /* confdefs.h.  */
5711 _ACEOF
5712 cat confdefs.h >>conftest.$ac_ext
5713 cat >>conftest.$ac_ext <<_ACEOF
5714 /* end confdefs.h.  */
5715
5716 /* Override any gcc2 internal prototype to avoid an error.  */
5717 #ifdef __cplusplus
5718 extern "C"
5719 #endif
5720 /* We use char because int might match the return type of a gcc2
5721    builtin and then its argument prototype would still apply.  */
5722 char crypt ();
5723 int
5724 main ()
5725 {
5726 crypt ();
5727   ;
5728   return 0;
5729 }
5730 _ACEOF
5731 rm -f conftest.$ac_objext conftest$ac_exeext
5732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5733   (eval $ac_link) 2>conftest.er1
5734   ac_status=$?
5735   grep -v '^ *+' conftest.er1 >conftest.err
5736   rm -f conftest.er1
5737   cat conftest.err >&5
5738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739   (exit $ac_status); } &&
5740          { ac_try='test -z "$ac_c_werror_flag"
5741                          || test ! -s conftest.err'
5742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743   (eval $ac_try) 2>&5
5744   ac_status=$?
5745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746   (exit $ac_status); }; } &&
5747          { ac_try='test -s conftest$ac_exeext'
5748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749   (eval $ac_try) 2>&5
5750   ac_status=$?
5751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752   (exit $ac_status); }; }; then
5753   ac_cv_search_crypt="-l$ac_lib"
5754 break
5755 else
5756   echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5758
5759 fi
5760 rm -f conftest.err conftest.$ac_objext \
5761       conftest$ac_exeext conftest.$ac_ext
5762   done
5763 fi
5764 LIBS=$ac_func_search_save_LIBS
5765 fi
5766 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5767 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5768 if test "$ac_cv_search_crypt" != no; then
5769   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5770
5771 fi
5772
5773 # Solaris:
5774 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5775 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5776 if test "${ac_cv_search_fdatasync+set}" = set; then
5777   echo $ECHO_N "(cached) $ECHO_C" >&6
5778 else
5779   ac_func_search_save_LIBS=$LIBS
5780 ac_cv_search_fdatasync=no
5781 cat >conftest.$ac_ext <<_ACEOF
5782 /* confdefs.h.  */
5783 _ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h.  */
5787
5788 /* Override any gcc2 internal prototype to avoid an error.  */
5789 #ifdef __cplusplus
5790 extern "C"
5791 #endif
5792 /* We use char because int might match the return type of a gcc2
5793    builtin and then its argument prototype would still apply.  */
5794 char fdatasync ();
5795 int
5796 main ()
5797 {
5798 fdatasync ();
5799   ;
5800   return 0;
5801 }
5802 _ACEOF
5803 rm -f conftest.$ac_objext conftest$ac_exeext
5804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5805   (eval $ac_link) 2>conftest.er1
5806   ac_status=$?
5807   grep -v '^ *+' conftest.er1 >conftest.err
5808   rm -f conftest.er1
5809   cat conftest.err >&5
5810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811   (exit $ac_status); } &&
5812          { ac_try='test -z "$ac_c_werror_flag"
5813                          || test ! -s conftest.err'
5814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815   (eval $ac_try) 2>&5
5816   ac_status=$?
5817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818   (exit $ac_status); }; } &&
5819          { ac_try='test -s conftest$ac_exeext'
5820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821   (eval $ac_try) 2>&5
5822   ac_status=$?
5823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824   (exit $ac_status); }; }; then
5825   ac_cv_search_fdatasync="none required"
5826 else
5827   echo "$as_me: failed program was:" >&5
5828 sed 's/^/| /' conftest.$ac_ext >&5
5829
5830 fi
5831 rm -f conftest.err conftest.$ac_objext \
5832       conftest$ac_exeext conftest.$ac_ext
5833 if test "$ac_cv_search_fdatasync" = no; then
5834   for ac_lib in rt posix4; do
5835     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5836     cat >conftest.$ac_ext <<_ACEOF
5837 /* confdefs.h.  */
5838 _ACEOF
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h.  */
5842
5843 /* Override any gcc2 internal prototype to avoid an error.  */
5844 #ifdef __cplusplus
5845 extern "C"
5846 #endif
5847 /* We use char because int might match the return type of a gcc2
5848    builtin and then its argument prototype would still apply.  */
5849 char fdatasync ();
5850 int
5851 main ()
5852 {
5853 fdatasync ();
5854   ;
5855   return 0;
5856 }
5857 _ACEOF
5858 rm -f conftest.$ac_objext conftest$ac_exeext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5860   (eval $ac_link) 2>conftest.er1
5861   ac_status=$?
5862   grep -v '^ *+' conftest.er1 >conftest.err
5863   rm -f conftest.er1
5864   cat conftest.err >&5
5865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866   (exit $ac_status); } &&
5867          { ac_try='test -z "$ac_c_werror_flag"
5868                          || test ! -s conftest.err'
5869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870   (eval $ac_try) 2>&5
5871   ac_status=$?
5872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873   (exit $ac_status); }; } &&
5874          { ac_try='test -s conftest$ac_exeext'
5875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876   (eval $ac_try) 2>&5
5877   ac_status=$?
5878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879   (exit $ac_status); }; }; then
5880   ac_cv_search_fdatasync="-l$ac_lib"
5881 break
5882 else
5883   echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5885
5886 fi
5887 rm -f conftest.err conftest.$ac_objext \
5888       conftest$ac_exeext conftest.$ac_ext
5889   done
5890 fi
5891 LIBS=$ac_func_search_save_LIBS
5892 fi
5893 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5894 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5895 if test "$ac_cv_search_fdatasync" != no; then
5896   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5897
5898 fi
5899
5900 # Cygwin:
5901 echo "$as_me:$LINENO: checking for library containing shmget" >&5
5902 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6
5903 if test "${ac_cv_search_shmget+set}" = set; then
5904   echo $ECHO_N "(cached) $ECHO_C" >&6
5905 else
5906   ac_func_search_save_LIBS=$LIBS
5907 ac_cv_search_shmget=no
5908 cat >conftest.$ac_ext <<_ACEOF
5909 /* confdefs.h.  */
5910 _ACEOF
5911 cat confdefs.h >>conftest.$ac_ext
5912 cat >>conftest.$ac_ext <<_ACEOF
5913 /* end confdefs.h.  */
5914
5915 /* Override any gcc2 internal prototype to avoid an error.  */
5916 #ifdef __cplusplus
5917 extern "C"
5918 #endif
5919 /* We use char because int might match the return type of a gcc2
5920    builtin and then its argument prototype would still apply.  */
5921 char shmget ();
5922 int
5923 main ()
5924 {
5925 shmget ();
5926   ;
5927   return 0;
5928 }
5929 _ACEOF
5930 rm -f conftest.$ac_objext conftest$ac_exeext
5931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5932   (eval $ac_link) 2>conftest.er1
5933   ac_status=$?
5934   grep -v '^ *+' conftest.er1 >conftest.err
5935   rm -f conftest.er1
5936   cat conftest.err >&5
5937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938   (exit $ac_status); } &&
5939          { ac_try='test -z "$ac_c_werror_flag"
5940                          || test ! -s conftest.err'
5941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942   (eval $ac_try) 2>&5
5943   ac_status=$?
5944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945   (exit $ac_status); }; } &&
5946          { ac_try='test -s conftest$ac_exeext'
5947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948   (eval $ac_try) 2>&5
5949   ac_status=$?
5950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951   (exit $ac_status); }; }; then
5952   ac_cv_search_shmget="none required"
5953 else
5954   echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.$ac_ext >&5
5956
5957 fi
5958 rm -f conftest.err conftest.$ac_objext \
5959       conftest$ac_exeext conftest.$ac_ext
5960 if test "$ac_cv_search_shmget" = no; then
5961   for ac_lib in cygipc; do
5962     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5963     cat >conftest.$ac_ext <<_ACEOF
5964 /* confdefs.h.  */
5965 _ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h.  */
5969
5970 /* Override any gcc2 internal prototype to avoid an error.  */
5971 #ifdef __cplusplus
5972 extern "C"
5973 #endif
5974 /* We use char because int might match the return type of a gcc2
5975    builtin and then its argument prototype would still apply.  */
5976 char shmget ();
5977 int
5978 main ()
5979 {
5980 shmget ();
5981   ;
5982   return 0;
5983 }
5984 _ACEOF
5985 rm -f conftest.$ac_objext conftest$ac_exeext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5987   (eval $ac_link) 2>conftest.er1
5988   ac_status=$?
5989   grep -v '^ *+' conftest.er1 >conftest.err
5990   rm -f conftest.er1
5991   cat conftest.err >&5
5992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993   (exit $ac_status); } &&
5994          { ac_try='test -z "$ac_c_werror_flag"
5995                          || test ! -s conftest.err'
5996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997   (eval $ac_try) 2>&5
5998   ac_status=$?
5999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000   (exit $ac_status); }; } &&
6001          { ac_try='test -s conftest$ac_exeext'
6002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003   (eval $ac_try) 2>&5
6004   ac_status=$?
6005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006   (exit $ac_status); }; }; then
6007   ac_cv_search_shmget="-l$ac_lib"
6008 break
6009 else
6010   echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6012
6013 fi
6014 rm -f conftest.err conftest.$ac_objext \
6015       conftest$ac_exeext conftest.$ac_ext
6016   done
6017 fi
6018 LIBS=$ac_func_search_save_LIBS
6019 fi
6020 echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
6021 echo "${ECHO_T}$ac_cv_search_shmget" >&6
6022 if test "$ac_cv_search_shmget" != no; then
6023   test "$ac_cv_search_shmget" = "none required" || LIBS="$ac_cv_search_shmget $LIBS"
6024
6025 fi
6026
6027
6028 if test "$with_readline" = yes; then
6029
6030
6031 if test "${pgac_cv_check_readline+set}" = set; then
6032   echo $ECHO_N "(cached) $ECHO_C" >&6
6033 else
6034   pgac_cv_check_readline=no
6035 pgac_save_LIBS=$LIBS
6036 if test x"$with_libedit_preferred" != x"yes"
6037 then    READLINE_ORDER="-lreadline -ledit"
6038 else    READLINE_ORDER="-ledit -lreadline"
6039 fi
6040 for pgac_rllib in $READLINE_ORDER ; do
6041   echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
6042 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6
6043   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6044     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
6045     cat >conftest.$ac_ext <<_ACEOF
6046 /* confdefs.h.  */
6047 _ACEOF
6048 cat confdefs.h >>conftest.$ac_ext
6049 cat >>conftest.$ac_ext <<_ACEOF
6050 /* end confdefs.h.  */
6051
6052 /* Override any gcc2 internal prototype to avoid an error.  */
6053 #ifdef __cplusplus
6054 extern "C"
6055 #endif
6056 /* We use char because int might match the return type of a gcc2
6057    builtin and then its argument prototype would still apply.  */
6058 char readline ();
6059 int
6060 main ()
6061 {
6062 readline ();
6063   ;
6064   return 0;
6065 }
6066 _ACEOF
6067 rm -f conftest.$ac_objext conftest$ac_exeext
6068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6069   (eval $ac_link) 2>conftest.er1
6070   ac_status=$?
6071   grep -v '^ *+' conftest.er1 >conftest.err
6072   rm -f conftest.er1
6073   cat conftest.err >&5
6074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075   (exit $ac_status); } &&
6076          { ac_try='test -z "$ac_c_werror_flag"
6077                          || test ! -s conftest.err'
6078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079   (eval $ac_try) 2>&5
6080   ac_status=$?
6081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082   (exit $ac_status); }; } &&
6083          { ac_try='test -s conftest$ac_exeext'
6084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085   (eval $ac_try) 2>&5
6086   ac_status=$?
6087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088   (exit $ac_status); }; }; then
6089
6090       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
6091       # recognize dependent libraries; assume curses is needed if we didn't
6092       # find any dependency.
6093       case $host_os in
6094         netbsd* | openbsd* | irix*)
6095           if test x"$pgac_lib" = x"" ; then
6096             pgac_lib=" -lcurses"
6097           fi ;;
6098       esac
6099
6100       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6101       break
6102
6103 else
6104   echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.$ac_ext >&5
6106
6107 fi
6108 rm -f conftest.err conftest.$ac_objext \
6109       conftest$ac_exeext conftest.$ac_ext
6110   done
6111   if test "$pgac_cv_check_readline" != no ; then
6112     echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6113 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6114     break
6115   else
6116     echo "$as_me:$LINENO: result: no" >&5
6117 echo "${ECHO_T}no" >&6
6118   fi
6119 done
6120 LIBS=$pgac_save_LIBS
6121
6122 fi
6123
6124 if test "$pgac_cv_check_readline" != no ; then
6125   LIBS="$pgac_cv_check_readline $LIBS"
6126
6127 cat >>confdefs.h <<\_ACEOF
6128 #define HAVE_LIBREADLINE 1
6129 _ACEOF
6130
6131 fi
6132
6133
6134   if test x"$pgac_cv_check_readline" = x"no"; then
6135     { { echo "$as_me:$LINENO: error: readline library not found
6136 If you have readline already installed, see config.log for details on the
6137 failure.  It is possible the compiler isn't looking in the proper directory.
6138 Use --without-readline to disable readline support." >&5
6139 echo "$as_me: error: readline library not found
6140 If you have readline already installed, see config.log for details on the
6141 failure.  It is possible the compiler isn't looking in the proper directory.
6142 Use --without-readline to disable readline support." >&2;}
6143    { (exit 1); exit 1; }; }
6144   fi
6145 fi
6146
6147 if test "$with_zlib" = yes; then
6148
6149 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6150 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6151 if test "${ac_cv_lib_z_inflate+set}" = set; then
6152   echo $ECHO_N "(cached) $ECHO_C" >&6
6153 else
6154   ac_check_lib_save_LIBS=$LIBS
6155 LIBS="-lz  $LIBS"
6156 cat >conftest.$ac_ext <<_ACEOF
6157 /* confdefs.h.  */
6158 _ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h.  */
6162
6163 /* Override any gcc2 internal prototype to avoid an error.  */
6164 #ifdef __cplusplus
6165 extern "C"
6166 #endif
6167 /* We use char because int might match the return type of a gcc2
6168    builtin and then its argument prototype would still apply.  */
6169 char inflate ();
6170 int
6171 main ()
6172 {
6173 inflate ();
6174   ;
6175   return 0;
6176 }
6177 _ACEOF
6178 rm -f conftest.$ac_objext conftest$ac_exeext
6179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6180   (eval $ac_link) 2>conftest.er1
6181   ac_status=$?
6182   grep -v '^ *+' conftest.er1 >conftest.err
6183   rm -f conftest.er1
6184   cat conftest.err >&5
6185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186   (exit $ac_status); } &&
6187          { ac_try='test -z "$ac_c_werror_flag"
6188                          || test ! -s conftest.err'
6189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190   (eval $ac_try) 2>&5
6191   ac_status=$?
6192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193   (exit $ac_status); }; } &&
6194          { ac_try='test -s conftest$ac_exeext'
6195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196   (eval $ac_try) 2>&5
6197   ac_status=$?
6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); }; }; then
6200   ac_cv_lib_z_inflate=yes
6201 else
6202   echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.$ac_ext >&5
6204
6205 ac_cv_lib_z_inflate=no
6206 fi
6207 rm -f conftest.err conftest.$ac_objext \
6208       conftest$ac_exeext conftest.$ac_ext
6209 LIBS=$ac_check_lib_save_LIBS
6210 fi
6211 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6212 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6213 if test $ac_cv_lib_z_inflate = yes; then
6214   cat >>confdefs.h <<_ACEOF
6215 #define HAVE_LIBZ 1
6216 _ACEOF
6217
6218   LIBS="-lz $LIBS"
6219
6220 else
6221   { { echo "$as_me:$LINENO: error: zlib library not found
6222 If you have zlib already installed, see config.log for details on the
6223 failure.  It is possible the compiler isn't looking in the proper directory.
6224 Use --without-zlib to disable zlib support." >&5
6225 echo "$as_me: error: zlib library not found
6226 If you have zlib already installed, see config.log for details on the
6227 failure.  It is possible the compiler isn't looking in the proper directory.
6228 Use --without-zlib to disable zlib support." >&2;}
6229    { (exit 1); exit 1; }; }
6230 fi
6231
6232 fi
6233
6234 if test "$enable_spinlocks" = yes; then
6235
6236 cat >>confdefs.h <<\_ACEOF
6237 #define HAVE_SPINLOCKS 1
6238 _ACEOF
6239
6240 else
6241   { echo "$as_me:$LINENO: WARNING:
6242 *** Not using spinlocks will cause poor performance." >&5
6243 echo "$as_me: WARNING:
6244 *** Not using spinlocks will cause poor performance." >&2;}
6245 fi
6246
6247 if test "$with_krb5" = yes ; then
6248   if test "$PORTNAME" != "win32"; then
6249      echo "$as_me:$LINENO: checking for library containing com_err" >&5
6250 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6251 if test "${ac_cv_search_com_err+set}" = set; then
6252   echo $ECHO_N "(cached) $ECHO_C" >&6
6253 else
6254   ac_func_search_save_LIBS=$LIBS
6255 ac_cv_search_com_err=no
6256 cat >conftest.$ac_ext <<_ACEOF
6257 /* confdefs.h.  */
6258 _ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h.  */
6262
6263 /* Override any gcc2 internal prototype to avoid an error.  */
6264 #ifdef __cplusplus
6265 extern "C"
6266 #endif
6267 /* We use char because int might match the return type of a gcc2
6268    builtin and then its argument prototype would still apply.  */
6269 char com_err ();
6270 int
6271 main ()
6272 {
6273 com_err ();
6274   ;
6275   return 0;
6276 }
6277 _ACEOF
6278 rm -f conftest.$ac_objext conftest$ac_exeext
6279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6280   (eval $ac_link) 2>conftest.er1
6281   ac_status=$?
6282   grep -v '^ *+' conftest.er1 >conftest.err
6283   rm -f conftest.er1
6284   cat conftest.err >&5
6285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); } &&
6287          { ac_try='test -z "$ac_c_werror_flag"
6288                          || test ! -s conftest.err'
6289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290   (eval $ac_try) 2>&5
6291   ac_status=$?
6292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293   (exit $ac_status); }; } &&
6294          { ac_try='test -s conftest$ac_exeext'
6295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296   (eval $ac_try) 2>&5
6297   ac_status=$?
6298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299   (exit $ac_status); }; }; then
6300   ac_cv_search_com_err="none required"
6301 else
6302   echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.$ac_ext >&5
6304
6305 fi
6306 rm -f conftest.err conftest.$ac_objext \
6307       conftest$ac_exeext conftest.$ac_ext
6308 if test "$ac_cv_search_com_err" = no; then
6309   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6310     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6311     cat >conftest.$ac_ext <<_ACEOF
6312 /* confdefs.h.  */
6313 _ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h.  */
6317
6318 /* Override any gcc2 internal prototype to avoid an error.  */
6319 #ifdef __cplusplus
6320 extern "C"
6321 #endif
6322 /* We use char because int might match the return type of a gcc2
6323    builtin and then its argument prototype would still apply.  */
6324 char com_err ();
6325 int
6326 main ()
6327 {
6328 com_err ();
6329   ;
6330   return 0;
6331 }
6332 _ACEOF
6333 rm -f conftest.$ac_objext conftest$ac_exeext
6334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6335   (eval $ac_link) 2>conftest.er1
6336   ac_status=$?
6337   grep -v '^ *+' conftest.er1 >conftest.err
6338   rm -f conftest.er1
6339   cat conftest.err >&5
6340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341   (exit $ac_status); } &&
6342          { ac_try='test -z "$ac_c_werror_flag"
6343                          || test ! -s conftest.err'
6344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345   (eval $ac_try) 2>&5
6346   ac_status=$?
6347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348   (exit $ac_status); }; } &&
6349          { ac_try='test -s conftest$ac_exeext'
6350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351   (eval $ac_try) 2>&5
6352   ac_status=$?
6353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354   (exit $ac_status); }; }; then
6355   ac_cv_search_com_err="-l$ac_lib"
6356 break
6357 else
6358   echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6360
6361 fi
6362 rm -f conftest.err conftest.$ac_objext \
6363       conftest$ac_exeext conftest.$ac_ext
6364   done
6365 fi
6366 LIBS=$ac_func_search_save_LIBS
6367 fi
6368 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6369 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6370 if test "$ac_cv_search_com_err" != no; then
6371   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6372
6373 else
6374   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6375 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6376    { (exit 1); exit 1; }; }
6377 fi
6378
6379      echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6380 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6381 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6382   echo $ECHO_N "(cached) $ECHO_C" >&6
6383 else
6384   ac_func_search_save_LIBS=$LIBS
6385 ac_cv_search_krb5_encrypt=no
6386 cat >conftest.$ac_ext <<_ACEOF
6387 /* confdefs.h.  */
6388 _ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h.  */
6392
6393 /* Override any gcc2 internal prototype to avoid an error.  */
6394 #ifdef __cplusplus
6395 extern "C"
6396 #endif
6397 /* We use char because int might match the return type of a gcc2
6398    builtin and then its argument prototype would still apply.  */
6399 char krb5_encrypt ();
6400 int
6401 main ()
6402 {
6403 krb5_encrypt ();
6404   ;
6405   return 0;
6406 }
6407 _ACEOF
6408 rm -f conftest.$ac_objext conftest$ac_exeext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6410   (eval $ac_link) 2>conftest.er1
6411   ac_status=$?
6412   grep -v '^ *+' conftest.er1 >conftest.err
6413   rm -f conftest.er1
6414   cat conftest.err >&5
6415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416   (exit $ac_status); } &&
6417          { ac_try='test -z "$ac_c_werror_flag"
6418                          || test ! -s conftest.err'
6419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420   (eval $ac_try) 2>&5
6421   ac_status=$?
6422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423   (exit $ac_status); }; } &&
6424          { ac_try='test -s conftest$ac_exeext'
6425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426   (eval $ac_try) 2>&5
6427   ac_status=$?
6428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429   (exit $ac_status); }; }; then
6430   ac_cv_search_krb5_encrypt="none required"
6431 else
6432   echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6434
6435 fi
6436 rm -f conftest.err conftest.$ac_objext \
6437       conftest$ac_exeext conftest.$ac_ext
6438 if test "$ac_cv_search_krb5_encrypt" = no; then
6439   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6440     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6441     cat >conftest.$ac_ext <<_ACEOF
6442 /* confdefs.h.  */
6443 _ACEOF
6444 cat confdefs.h >>conftest.$ac_ext
6445 cat >>conftest.$ac_ext <<_ACEOF
6446 /* end confdefs.h.  */
6447
6448 /* Override any gcc2 internal prototype to avoid an error.  */
6449 #ifdef __cplusplus
6450 extern "C"
6451 #endif
6452 /* We use char because int might match the return type of a gcc2
6453    builtin and then its argument prototype would still apply.  */
6454 char krb5_encrypt ();
6455 int
6456 main ()
6457 {
6458 krb5_encrypt ();
6459   ;
6460   return 0;
6461 }
6462 _ACEOF
6463 rm -f conftest.$ac_objext conftest$ac_exeext
6464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6465   (eval $ac_link) 2>conftest.er1
6466   ac_status=$?
6467   grep -v '^ *+' conftest.er1 >conftest.err
6468   rm -f conftest.er1
6469   cat conftest.err >&5
6470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471   (exit $ac_status); } &&
6472          { ac_try='test -z "$ac_c_werror_flag"
6473                          || test ! -s conftest.err'
6474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475   (eval $ac_try) 2>&5
6476   ac_status=$?
6477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478   (exit $ac_status); }; } &&
6479          { ac_try='test -s conftest$ac_exeext'
6480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481   (eval $ac_try) 2>&5
6482   ac_status=$?
6483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484   (exit $ac_status); }; }; then
6485   ac_cv_search_krb5_encrypt="-l$ac_lib"
6486 break
6487 else
6488   echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.$ac_ext >&5
6490
6491 fi
6492 rm -f conftest.err conftest.$ac_objext \
6493       conftest$ac_exeext conftest.$ac_ext
6494   done
6495 fi
6496 LIBS=$ac_func_search_save_LIBS
6497 fi
6498 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6499 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6500 if test "$ac_cv_search_krb5_encrypt" != no; then
6501   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6502
6503 else
6504   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6505 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6506    { (exit 1); exit 1; }; }
6507 fi
6508
6509      echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6510 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6511 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6512   echo $ECHO_N "(cached) $ECHO_C" >&6
6513 else
6514   ac_func_search_save_LIBS=$LIBS
6515 ac_cv_search_krb5_sendauth=no
6516 cat >conftest.$ac_ext <<_ACEOF
6517 /* confdefs.h.  */
6518 _ACEOF
6519 cat confdefs.h >>conftest.$ac_ext
6520 cat >>conftest.$ac_ext <<_ACEOF
6521 /* end confdefs.h.  */
6522
6523 /* Override any gcc2 internal prototype to avoid an error.  */
6524 #ifdef __cplusplus
6525 extern "C"
6526 #endif
6527 /* We use char because int might match the return type of a gcc2
6528    builtin and then its argument prototype would still apply.  */
6529 char krb5_sendauth ();
6530 int
6531 main ()
6532 {
6533 krb5_sendauth ();
6534   ;
6535   return 0;
6536 }
6537 _ACEOF
6538 rm -f conftest.$ac_objext conftest$ac_exeext
6539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6540   (eval $ac_link) 2>conftest.er1
6541   ac_status=$?
6542   grep -v '^ *+' conftest.er1 >conftest.err
6543   rm -f conftest.er1
6544   cat conftest.err >&5
6545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546   (exit $ac_status); } &&
6547          { ac_try='test -z "$ac_c_werror_flag"
6548                          || test ! -s conftest.err'
6549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6550   (eval $ac_try) 2>&5
6551   ac_status=$?
6552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553   (exit $ac_status); }; } &&
6554          { ac_try='test -s conftest$ac_exeext'
6555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556   (eval $ac_try) 2>&5
6557   ac_status=$?
6558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559   (exit $ac_status); }; }; then
6560   ac_cv_search_krb5_sendauth="none required"
6561 else
6562   echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.$ac_ext >&5
6564
6565 fi
6566 rm -f conftest.err conftest.$ac_objext \
6567       conftest$ac_exeext conftest.$ac_ext
6568 if test "$ac_cv_search_krb5_sendauth" = no; then
6569   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6570     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6571     cat >conftest.$ac_ext <<_ACEOF
6572 /* confdefs.h.  */
6573 _ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h.  */
6577
6578 /* Override any gcc2 internal prototype to avoid an error.  */
6579 #ifdef __cplusplus
6580 extern "C"
6581 #endif
6582 /* We use char because int might match the return type of a gcc2
6583    builtin and then its argument prototype would still apply.  */
6584 char krb5_sendauth ();
6585 int
6586 main ()
6587 {
6588 krb5_sendauth ();
6589   ;
6590   return 0;
6591 }
6592 _ACEOF
6593 rm -f conftest.$ac_objext conftest$ac_exeext
6594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6595   (eval $ac_link) 2>conftest.er1
6596   ac_status=$?
6597   grep -v '^ *+' conftest.er1 >conftest.err
6598   rm -f conftest.er1
6599   cat conftest.err >&5
6600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601   (exit $ac_status); } &&
6602          { ac_try='test -z "$ac_c_werror_flag"
6603                          || test ! -s conftest.err'
6604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605   (eval $ac_try) 2>&5
6606   ac_status=$?
6607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608   (exit $ac_status); }; } &&
6609          { ac_try='test -s conftest$ac_exeext'
6610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611   (eval $ac_try) 2>&5
6612   ac_status=$?
6613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614   (exit $ac_status); }; }; then
6615   ac_cv_search_krb5_sendauth="-l$ac_lib"
6616 break
6617 else
6618   echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6620
6621 fi
6622 rm -f conftest.err conftest.$ac_objext \
6623       conftest$ac_exeext conftest.$ac_ext
6624   done
6625 fi
6626 LIBS=$ac_func_search_save_LIBS
6627 fi
6628 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6629 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6630 if test "$ac_cv_search_krb5_sendauth" != no; then
6631   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6632
6633 else
6634   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6635 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6636    { (exit 1); exit 1; }; }
6637 fi
6638
6639   else
6640      echo "$as_me:$LINENO: checking for library containing com_err" >&5
6641 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6642 if test "${ac_cv_search_com_err+set}" = set; then
6643   echo $ECHO_N "(cached) $ECHO_C" >&6
6644 else
6645   ac_func_search_save_LIBS=$LIBS
6646 ac_cv_search_com_err=no
6647 cat >conftest.$ac_ext <<_ACEOF
6648 /* confdefs.h.  */
6649 _ACEOF
6650 cat confdefs.h >>conftest.$ac_ext
6651 cat >>conftest.$ac_ext <<_ACEOF
6652 /* end confdefs.h.  */
6653
6654 /* Override any gcc2 internal prototype to avoid an error.  */
6655 #ifdef __cplusplus
6656 extern "C"
6657 #endif
6658 /* We use char because int might match the return type of a gcc2
6659    builtin and then its argument prototype would still apply.  */
6660 char com_err ();
6661 int
6662 main ()
6663 {
6664 com_err ();
6665   ;
6666   return 0;
6667 }
6668 _ACEOF
6669 rm -f conftest.$ac_objext conftest$ac_exeext
6670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6671   (eval $ac_link) 2>conftest.er1
6672   ac_status=$?
6673   grep -v '^ *+' conftest.er1 >conftest.err
6674   rm -f conftest.er1
6675   cat conftest.err >&5
6676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677   (exit $ac_status); } &&
6678          { ac_try='test -z "$ac_c_werror_flag"
6679                          || test ! -s conftest.err'
6680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681   (eval $ac_try) 2>&5
6682   ac_status=$?
6683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684   (exit $ac_status); }; } &&
6685          { ac_try='test -s conftest$ac_exeext'
6686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687   (eval $ac_try) 2>&5
6688   ac_status=$?
6689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690   (exit $ac_status); }; }; then
6691   ac_cv_search_com_err="none required"
6692 else
6693   echo "$as_me: failed program was:" >&5
6694 sed 's/^/| /' conftest.$ac_ext >&5
6695
6696 fi
6697 rm -f conftest.err conftest.$ac_objext \
6698       conftest$ac_exeext conftest.$ac_ext
6699 if test "$ac_cv_search_com_err" = no; then
6700   for ac_lib in 'comerr32 -lkrb5_32'; do
6701     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6702     cat >conftest.$ac_ext <<_ACEOF
6703 /* confdefs.h.  */
6704 _ACEOF
6705 cat confdefs.h >>conftest.$ac_ext
6706 cat >>conftest.$ac_ext <<_ACEOF
6707 /* end confdefs.h.  */
6708
6709 /* Override any gcc2 internal prototype to avoid an error.  */
6710 #ifdef __cplusplus
6711 extern "C"
6712 #endif
6713 /* We use char because int might match the return type of a gcc2
6714    builtin and then its argument prototype would still apply.  */
6715 char com_err ();
6716 int
6717 main ()
6718 {
6719 com_err ();
6720   ;
6721   return 0;
6722 }
6723 _ACEOF
6724 rm -f conftest.$ac_objext conftest$ac_exeext
6725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6726   (eval $ac_link) 2>conftest.er1
6727   ac_status=$?
6728   grep -v '^ *+' conftest.er1 >conftest.err
6729   rm -f conftest.er1
6730   cat conftest.err >&5
6731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732   (exit $ac_status); } &&
6733          { ac_try='test -z "$ac_c_werror_flag"
6734                          || test ! -s conftest.err'
6735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6736   (eval $ac_try) 2>&5
6737   ac_status=$?
6738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739   (exit $ac_status); }; } &&
6740          { ac_try='test -s conftest$ac_exeext'
6741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6742   (eval $ac_try) 2>&5
6743   ac_status=$?
6744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745   (exit $ac_status); }; }; then
6746   ac_cv_search_com_err="-l$ac_lib"
6747 break
6748 else
6749   echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6751
6752 fi
6753 rm -f conftest.err conftest.$ac_objext \
6754       conftest$ac_exeext conftest.$ac_ext
6755   done
6756 fi
6757 LIBS=$ac_func_search_save_LIBS
6758 fi
6759 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6760 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6761 if test "$ac_cv_search_com_err" != no; then
6762   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6763
6764 else
6765   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6766 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6767    { (exit 1); exit 1; }; }
6768 fi
6769
6770   fi
6771 fi
6772
6773 if test "$with_openssl" = yes ; then
6774     if test "$PORTNAME" != "win32"; then
6775
6776 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6777 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6778 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6779   echo $ECHO_N "(cached) $ECHO_C" >&6
6780 else
6781   ac_check_lib_save_LIBS=$LIBS
6782 LIBS="-lcrypto  $LIBS"
6783 cat >conftest.$ac_ext <<_ACEOF
6784 /* confdefs.h.  */
6785 _ACEOF
6786 cat confdefs.h >>conftest.$ac_ext
6787 cat >>conftest.$ac_ext <<_ACEOF
6788 /* end confdefs.h.  */
6789
6790 /* Override any gcc2 internal prototype to avoid an error.  */
6791 #ifdef __cplusplus
6792 extern "C"
6793 #endif
6794 /* We use char because int might match the return type of a gcc2
6795    builtin and then its argument prototype would still apply.  */
6796 char CRYPTO_new_ex_data ();
6797 int
6798 main ()
6799 {
6800 CRYPTO_new_ex_data ();
6801   ;
6802   return 0;
6803 }
6804 _ACEOF
6805 rm -f conftest.$ac_objext conftest$ac_exeext
6806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6807   (eval $ac_link) 2>conftest.er1
6808   ac_status=$?
6809   grep -v '^ *+' conftest.er1 >conftest.err
6810   rm -f conftest.er1
6811   cat conftest.err >&5
6812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813   (exit $ac_status); } &&
6814          { ac_try='test -z "$ac_c_werror_flag"
6815                          || test ! -s conftest.err'
6816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817   (eval $ac_try) 2>&5
6818   ac_status=$?
6819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820   (exit $ac_status); }; } &&
6821          { ac_try='test -s conftest$ac_exeext'
6822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823   (eval $ac_try) 2>&5
6824   ac_status=$?
6825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826   (exit $ac_status); }; }; then
6827   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6828 else
6829   echo "$as_me: failed program was:" >&5
6830 sed 's/^/| /' conftest.$ac_ext >&5
6831
6832 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6833 fi
6834 rm -f conftest.err conftest.$ac_objext \
6835       conftest$ac_exeext conftest.$ac_ext
6836 LIBS=$ac_check_lib_save_LIBS
6837 fi
6838 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6839 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6840 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6841   cat >>confdefs.h <<_ACEOF
6842 #define HAVE_LIBCRYPTO 1
6843 _ACEOF
6844
6845   LIBS="-lcrypto $LIBS"
6846
6847 else
6848   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6849 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6850    { (exit 1); exit 1; }; }
6851 fi
6852
6853
6854 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6855 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6856 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6857   echo $ECHO_N "(cached) $ECHO_C" >&6
6858 else
6859   ac_check_lib_save_LIBS=$LIBS
6860 LIBS="-lssl  $LIBS"
6861 cat >conftest.$ac_ext <<_ACEOF
6862 /* confdefs.h.  */
6863 _ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>conftest.$ac_ext <<_ACEOF
6866 /* end confdefs.h.  */
6867
6868 /* Override any gcc2 internal prototype to avoid an error.  */
6869 #ifdef __cplusplus
6870 extern "C"
6871 #endif
6872 /* We use char because int might match the return type of a gcc2
6873    builtin and then its argument prototype would still apply.  */
6874 char SSL_library_init ();
6875 int
6876 main ()
6877 {
6878 SSL_library_init ();
6879   ;
6880   return 0;
6881 }
6882 _ACEOF
6883 rm -f conftest.$ac_objext conftest$ac_exeext
6884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6885   (eval $ac_link) 2>conftest.er1
6886   ac_status=$?
6887   grep -v '^ *+' conftest.er1 >conftest.err
6888   rm -f conftest.er1
6889   cat conftest.err >&5
6890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891   (exit $ac_status); } &&
6892          { ac_try='test -z "$ac_c_werror_flag"
6893                          || test ! -s conftest.err'
6894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895   (eval $ac_try) 2>&5
6896   ac_status=$?
6897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898   (exit $ac_status); }; } &&
6899          { ac_try='test -s conftest$ac_exeext'
6900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901   (eval $ac_try) 2>&5
6902   ac_status=$?
6903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904   (exit $ac_status); }; }; then
6905   ac_cv_lib_ssl_SSL_library_init=yes
6906 else
6907   echo "$as_me: failed program was:" >&5
6908 sed 's/^/| /' conftest.$ac_ext >&5
6909
6910 ac_cv_lib_ssl_SSL_library_init=no
6911 fi
6912 rm -f conftest.err conftest.$ac_objext \
6913       conftest$ac_exeext conftest.$ac_ext
6914 LIBS=$ac_check_lib_save_LIBS
6915 fi
6916 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6917 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6918 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6919   cat >>confdefs.h <<_ACEOF
6920 #define HAVE_LIBSSL 1
6921 _ACEOF
6922
6923   LIBS="-lssl $LIBS"
6924
6925 else
6926   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6927 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6928    { (exit 1); exit 1; }; }
6929 fi
6930
6931   else
6932
6933 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
6934 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6
6935 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
6936   echo $ECHO_N "(cached) $ECHO_C" >&6
6937 else
6938   ac_check_lib_save_LIBS=$LIBS
6939 LIBS="-leay32  $LIBS"
6940 cat >conftest.$ac_ext <<_ACEOF
6941 /* confdefs.h.  */
6942 _ACEOF
6943 cat confdefs.h >>conftest.$ac_ext
6944 cat >>conftest.$ac_ext <<_ACEOF
6945 /* end confdefs.h.  */
6946
6947 /* Override any gcc2 internal prototype to avoid an error.  */
6948 #ifdef __cplusplus
6949 extern "C"
6950 #endif
6951 /* We use char because int might match the return type of a gcc2
6952    builtin and then its argument prototype would still apply.  */
6953 char CRYPTO_new_ex_data ();
6954 int
6955 main ()
6956 {
6957 CRYPTO_new_ex_data ();
6958   ;
6959   return 0;
6960 }
6961 _ACEOF
6962 rm -f conftest.$ac_objext conftest$ac_exeext
6963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6964   (eval $ac_link) 2>conftest.er1
6965   ac_status=$?
6966   grep -v '^ *+' conftest.er1 >conftest.err
6967   rm -f conftest.er1
6968   cat conftest.err >&5
6969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970   (exit $ac_status); } &&
6971          { ac_try='test -z "$ac_c_werror_flag"
6972                          || test ! -s conftest.err'
6973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974   (eval $ac_try) 2>&5
6975   ac_status=$?
6976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977   (exit $ac_status); }; } &&
6978          { ac_try='test -s conftest$ac_exeext'
6979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980   (eval $ac_try) 2>&5
6981   ac_status=$?
6982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983   (exit $ac_status); }; }; then
6984   ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
6985 else
6986   echo "$as_me: failed program was:" >&5
6987 sed 's/^/| /' conftest.$ac_ext >&5
6988
6989 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
6990 fi
6991 rm -f conftest.err conftest.$ac_objext \
6992       conftest$ac_exeext conftest.$ac_ext
6993 LIBS=$ac_check_lib_save_LIBS
6994 fi
6995 echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
6996 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6
6997 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
6998   cat >>confdefs.h <<_ACEOF
6999 #define HAVE_LIBEAY32 1
7000 _ACEOF
7001
7002   LIBS="-leay32 $LIBS"
7003
7004 else
7005   { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7006 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7007    { (exit 1); exit 1; }; }
7008 fi
7009
7010
7011 echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7012 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6
7013 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7014   echo $ECHO_N "(cached) $ECHO_C" >&6
7015 else
7016   ac_check_lib_save_LIBS=$LIBS
7017 LIBS="-lssleay32  $LIBS"
7018 cat >conftest.$ac_ext <<_ACEOF
7019 /* confdefs.h.  */
7020 _ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h.  */
7024
7025 /* Override any gcc2 internal prototype to avoid an error.  */
7026 #ifdef __cplusplus
7027 extern "C"
7028 #endif
7029 /* We use char because int might match the return type of a gcc2
7030    builtin and then its argument prototype would still apply.  */
7031 char SSL_library_init ();
7032 int
7033 main ()
7034 {
7035 SSL_library_init ();
7036   ;
7037   return 0;
7038 }
7039 _ACEOF
7040 rm -f conftest.$ac_objext conftest$ac_exeext
7041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7042   (eval $ac_link) 2>conftest.er1
7043   ac_status=$?
7044   grep -v '^ *+' conftest.er1 >conftest.err
7045   rm -f conftest.er1
7046   cat conftest.err >&5
7047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048   (exit $ac_status); } &&
7049          { ac_try='test -z "$ac_c_werror_flag"
7050                          || test ! -s conftest.err'
7051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052   (eval $ac_try) 2>&5
7053   ac_status=$?
7054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055   (exit $ac_status); }; } &&
7056          { ac_try='test -s conftest$ac_exeext'
7057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058   (eval $ac_try) 2>&5
7059   ac_status=$?
7060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061   (exit $ac_status); }; }; then
7062   ac_cv_lib_ssleay32_SSL_library_init=yes
7063 else
7064   echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7066
7067 ac_cv_lib_ssleay32_SSL_library_init=no
7068 fi
7069 rm -f conftest.err conftest.$ac_objext \
7070       conftest$ac_exeext conftest.$ac_ext
7071 LIBS=$ac_check_lib_save_LIBS
7072 fi
7073 echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
7074 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6
7075 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
7076   cat >>confdefs.h <<_ACEOF
7077 #define HAVE_LIBSSLEAY32 1
7078 _ACEOF
7079
7080   LIBS="-lssleay32 $LIBS"
7081
7082 else
7083   { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
7084 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
7085    { (exit 1); exit 1; }; }
7086 fi
7087
7088   fi
7089 fi
7090
7091 if test "$with_pam" = yes ; then
7092
7093 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7094 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7095 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7096   echo $ECHO_N "(cached) $ECHO_C" >&6
7097 else
7098   ac_check_lib_save_LIBS=$LIBS
7099 LIBS="-lpam  $LIBS"
7100 cat >conftest.$ac_ext <<_ACEOF
7101 /* confdefs.h.  */
7102 _ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h.  */
7106
7107 /* Override any gcc2 internal prototype to avoid an error.  */
7108 #ifdef __cplusplus
7109 extern "C"
7110 #endif
7111 /* We use char because int might match the return type of a gcc2
7112    builtin and then its argument prototype would still apply.  */
7113 char pam_start ();
7114 int
7115 main ()
7116 {
7117 pam_start ();
7118   ;
7119   return 0;
7120 }
7121 _ACEOF
7122 rm -f conftest.$ac_objext conftest$ac_exeext
7123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7124   (eval $ac_link) 2>conftest.er1
7125   ac_status=$?
7126   grep -v '^ *+' conftest.er1 >conftest.err
7127   rm -f conftest.er1
7128   cat conftest.err >&5
7129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130   (exit $ac_status); } &&
7131          { ac_try='test -z "$ac_c_werror_flag"
7132                          || test ! -s conftest.err'
7133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134   (eval $ac_try) 2>&5
7135   ac_status=$?
7136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137   (exit $ac_status); }; } &&
7138          { ac_try='test -s conftest$ac_exeext'
7139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140   (eval $ac_try) 2>&5
7141   ac_status=$?
7142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143   (exit $ac_status); }; }; then
7144   ac_cv_lib_pam_pam_start=yes
7145 else
7146   echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.$ac_ext >&5
7148
7149 ac_cv_lib_pam_pam_start=no
7150 fi
7151 rm -f conftest.err conftest.$ac_objext \
7152       conftest$ac_exeext conftest.$ac_ext
7153 LIBS=$ac_check_lib_save_LIBS
7154 fi
7155 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7156 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7157 if test $ac_cv_lib_pam_pam_start = yes; then
7158   cat >>confdefs.h <<_ACEOF
7159 #define HAVE_LIBPAM 1
7160 _ACEOF
7161
7162   LIBS="-lpam $LIBS"
7163
7164 else
7165   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7166 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7167    { (exit 1); exit 1; }; }
7168 fi
7169
7170 fi
7171
7172
7173 ##
7174 ## Header files
7175 ##
7176
7177 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7178 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7179 if test "${ac_cv_header_stdc+set}" = set; then
7180   echo $ECHO_N "(cached) $ECHO_C" >&6
7181 else
7182   cat >conftest.$ac_ext <<_ACEOF
7183 /* confdefs.h.  */
7184 _ACEOF
7185 cat confdefs.h >>conftest.$ac_ext
7186 cat >>conftest.$ac_ext <<_ACEOF
7187 /* end confdefs.h.  */
7188 #include <stdlib.h>
7189 #include <stdarg.h>
7190 #include <string.h>
7191 #include <float.h>
7192
7193 int
7194 main ()
7195 {
7196
7197   ;
7198   return 0;
7199 }
7200 _ACEOF
7201 rm -f conftest.$ac_objext
7202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7203   (eval $ac_compile) 2>conftest.er1
7204   ac_status=$?
7205   grep -v '^ *+' conftest.er1 >conftest.err
7206   rm -f conftest.er1
7207   cat conftest.err >&5
7208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209   (exit $ac_status); } &&
7210          { ac_try='test -z "$ac_c_werror_flag"
7211                          || test ! -s conftest.err'
7212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213   (eval $ac_try) 2>&5
7214   ac_status=$?
7215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216   (exit $ac_status); }; } &&
7217          { ac_try='test -s conftest.$ac_objext'
7218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7219   (eval $ac_try) 2>&5
7220   ac_status=$?
7221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222   (exit $ac_status); }; }; then
7223   ac_cv_header_stdc=yes
7224 else
7225   echo "$as_me: failed program was:" >&5
7226 sed 's/^/| /' conftest.$ac_ext >&5
7227
7228 ac_cv_header_stdc=no
7229 fi
7230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7231
7232 if test $ac_cv_header_stdc = yes; then
7233   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7234   cat >conftest.$ac_ext <<_ACEOF
7235 /* confdefs.h.  */
7236 _ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h.  */
7240 #include <string.h>
7241
7242 _ACEOF
7243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7244   $EGREP "memchr" >/dev/null 2>&1; then
7245   :
7246 else
7247   ac_cv_header_stdc=no
7248 fi
7249 rm -f conftest*
7250
7251 fi
7252
7253 if test $ac_cv_header_stdc = yes; then
7254   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7255   cat >conftest.$ac_ext <<_ACEOF
7256 /* confdefs.h.  */
7257 _ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h.  */
7261 #include <stdlib.h>
7262
7263 _ACEOF
7264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7265   $EGREP "free" >/dev/null 2>&1; then
7266   :
7267 else
7268   ac_cv_header_stdc=no
7269 fi
7270 rm -f conftest*
7271
7272 fi
7273
7274 if test $ac_cv_header_stdc = yes; then
7275   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7276   if test "$cross_compiling" = yes; then
7277   :
7278 else
7279   cat >conftest.$ac_ext <<_ACEOF
7280 /* confdefs.h.  */
7281 _ACEOF
7282 cat confdefs.h >>conftest.$ac_ext
7283 cat >>conftest.$ac_ext <<_ACEOF
7284 /* end confdefs.h.  */
7285 #include <ctype.h>
7286 #if ((' ' & 0x0FF) == 0x020)
7287 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7288 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7289 #else
7290 # define ISLOWER(c) \
7291                    (('a' <= (c) && (c) <= 'i') \
7292                      || ('j' <= (c) && (c) <= 'r') \
7293                      || ('s' <= (c) && (c) <= 'z'))
7294 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7295 #endif
7296
7297 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7298 int
7299 main ()
7300 {
7301   int i;
7302   for (i = 0; i < 256; i++)
7303     if (XOR (islower (i), ISLOWER (i))
7304         || toupper (i) != TOUPPER (i))
7305       exit(2);
7306   exit (0);
7307 }
7308 _ACEOF
7309 rm -f conftest$ac_exeext
7310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7311   (eval $ac_link) 2>&5
7312   ac_status=$?
7313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316   (eval $ac_try) 2>&5
7317   ac_status=$?
7318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319   (exit $ac_status); }; }; then
7320   :
7321 else
7322   echo "$as_me: program exited with status $ac_status" >&5
7323 echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.$ac_ext >&5
7325
7326 ( exit $ac_status )
7327 ac_cv_header_stdc=no
7328 fi
7329 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7330 fi
7331 fi
7332 fi
7333 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7334 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7335 if test $ac_cv_header_stdc = yes; then
7336
7337 cat >>confdefs.h <<\_ACEOF
7338 #define STDC_HEADERS 1
7339 _ACEOF
7340
7341 fi
7342
7343 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7354                   inttypes.h stdint.h unistd.h
7355 do
7356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7357 echo "$as_me:$LINENO: checking for $ac_header" >&5
7358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7360   echo $ECHO_N "(cached) $ECHO_C" >&6
7361 else
7362   cat >conftest.$ac_ext <<_ACEOF
7363 /* confdefs.h.  */
7364 _ACEOF
7365 cat confdefs.h >>conftest.$ac_ext
7366 cat >>conftest.$ac_ext <<_ACEOF
7367 /* end confdefs.h.  */
7368 $ac_includes_default
7369
7370 #include <$ac_header>
7371 _ACEOF
7372 rm -f conftest.$ac_objext
7373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7374   (eval $ac_compile) 2>conftest.er1
7375   ac_status=$?
7376   grep -v '^ *+' conftest.er1 >conftest.err
7377   rm -f conftest.er1
7378   cat conftest.err >&5
7379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380   (exit $ac_status); } &&
7381          { ac_try='test -z "$ac_c_werror_flag"
7382                          || test ! -s conftest.err'
7383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7384   (eval $ac_try) 2>&5
7385   ac_status=$?
7386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387   (exit $ac_status); }; } &&
7388          { ac_try='test -s conftest.$ac_objext'
7389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7390   (eval $ac_try) 2>&5
7391   ac_status=$?
7392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393   (exit $ac_status); }; }; then
7394   eval "$as_ac_Header=yes"
7395 else
7396   echo "$as_me: failed program was:" >&5
7397 sed 's/^/| /' conftest.$ac_ext >&5
7398
7399 eval "$as_ac_Header=no"
7400 fi
7401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7402 fi
7403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7406   cat >>confdefs.h <<_ACEOF
7407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7408 _ACEOF
7409
7410 fi
7411
7412 done
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
7441 do
7442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7444   echo "$as_me:$LINENO: checking for $ac_header" >&5
7445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7447   echo $ECHO_N "(cached) $ECHO_C" >&6
7448 fi
7449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7451 else
7452   # Is the header compilable?
7453 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7455 cat >conftest.$ac_ext <<_ACEOF
7456 /* confdefs.h.  */
7457 _ACEOF
7458 cat confdefs.h >>conftest.$ac_ext
7459 cat >>conftest.$ac_ext <<_ACEOF
7460 /* end confdefs.h.  */
7461 $ac_includes_default
7462 #include <$ac_header>
7463 _ACEOF
7464 rm -f conftest.$ac_objext
7465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7466   (eval $ac_compile) 2>conftest.er1
7467   ac_status=$?
7468   grep -v '^ *+' conftest.er1 >conftest.err
7469   rm -f conftest.er1
7470   cat conftest.err >&5
7471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472   (exit $ac_status); } &&
7473          { ac_try='test -z "$ac_c_werror_flag"
7474                          || test ! -s conftest.err'
7475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7476   (eval $ac_try) 2>&5
7477   ac_status=$?
7478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479   (exit $ac_status); }; } &&
7480          { ac_try='test -s conftest.$ac_objext'
7481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7482   (eval $ac_try) 2>&5
7483   ac_status=$?
7484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485   (exit $ac_status); }; }; then
7486   ac_header_compiler=yes
7487 else
7488   echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.$ac_ext >&5
7490
7491 ac_header_compiler=no
7492 fi
7493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7495 echo "${ECHO_T}$ac_header_compiler" >&6
7496
7497 # Is the header present?
7498 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7500 cat >conftest.$ac_ext <<_ACEOF
7501 /* confdefs.h.  */
7502 _ACEOF
7503 cat confdefs.h >>conftest.$ac_ext
7504 cat >>conftest.$ac_ext <<_ACEOF
7505 /* end confdefs.h.  */
7506 #include <$ac_header>
7507 _ACEOF
7508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7509   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7510   ac_status=$?
7511   grep -v '^ *+' conftest.er1 >conftest.err
7512   rm -f conftest.er1
7513   cat conftest.err >&5
7514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515   (exit $ac_status); } >/dev/null; then
7516   if test -s conftest.err; then
7517     ac_cpp_err=$ac_c_preproc_warn_flag
7518     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7519   else
7520     ac_cpp_err=
7521   fi
7522 else
7523   ac_cpp_err=yes
7524 fi
7525 if test -z "$ac_cpp_err"; then
7526   ac_header_preproc=yes
7527 else
7528   echo "$as_me: failed program was:" >&5
7529 sed 's/^/| /' conftest.$ac_ext >&5
7530
7531   ac_header_preproc=no
7532 fi
7533 rm -f conftest.err conftest.$ac_ext
7534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7535 echo "${ECHO_T}$ac_header_preproc" >&6
7536
7537 # So?  What about this header?
7538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7539   yes:no: )
7540     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7542     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7543 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7544     ac_header_preproc=yes
7545     ;;
7546   no:yes:* )
7547     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7548 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7549     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7550 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7551     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7552 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7553     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7554 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7555     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7557     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7558 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7559     (
7560       cat <<\_ASBOX
7561 ## ---------------------------------------- ##
7562 ## Report this to pgsql-bugs@postgresql.org ##
7563 ## ---------------------------------------- ##
7564 _ASBOX
7565     ) |
7566       sed "s/^/$as_me: WARNING:     /" >&2
7567     ;;
7568 esac
7569 echo "$as_me:$LINENO: checking for $ac_header" >&5
7570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7572   echo $ECHO_N "(cached) $ECHO_C" >&6
7573 else
7574   eval "$as_ac_Header=\$ac_header_preproc"
7575 fi
7576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7578
7579 fi
7580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7581   cat >>confdefs.h <<_ACEOF
7582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7583 _ACEOF
7584
7585 fi
7586
7587 done
7588
7589
7590 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7591 # netinet/in.h is included first.
7592
7593 for ac_header in netinet/in.h
7594 do
7595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7597   echo "$as_me:$LINENO: checking for $ac_header" >&5
7598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7600   echo $ECHO_N "(cached) $ECHO_C" >&6
7601 fi
7602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7604 else
7605   # Is the header compilable?
7606 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7608 cat >conftest.$ac_ext <<_ACEOF
7609 /* confdefs.h.  */
7610 _ACEOF
7611 cat confdefs.h >>conftest.$ac_ext
7612 cat >>conftest.$ac_ext <<_ACEOF
7613 /* end confdefs.h.  */
7614 $ac_includes_default
7615 #include <$ac_header>
7616 _ACEOF
7617 rm -f conftest.$ac_objext
7618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7619   (eval $ac_compile) 2>conftest.er1
7620   ac_status=$?
7621   grep -v '^ *+' conftest.er1 >conftest.err
7622   rm -f conftest.er1
7623   cat conftest.err >&5
7624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625   (exit $ac_status); } &&
7626          { ac_try='test -z "$ac_c_werror_flag"
7627                          || test ! -s conftest.err'
7628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629   (eval $ac_try) 2>&5
7630   ac_status=$?
7631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632   (exit $ac_status); }; } &&
7633          { ac_try='test -s conftest.$ac_objext'
7634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635   (eval $ac_try) 2>&5
7636   ac_status=$?
7637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638   (exit $ac_status); }; }; then
7639   ac_header_compiler=yes
7640 else
7641   echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.$ac_ext >&5
7643
7644 ac_header_compiler=no
7645 fi
7646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7648 echo "${ECHO_T}$ac_header_compiler" >&6
7649
7650 # Is the header present?
7651 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7653 cat >conftest.$ac_ext <<_ACEOF
7654 /* confdefs.h.  */
7655 _ACEOF
7656 cat confdefs.h >>conftest.$ac_ext
7657 cat >>conftest.$ac_ext <<_ACEOF
7658 /* end confdefs.h.  */
7659 #include <$ac_header>
7660 _ACEOF
7661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7662   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7663   ac_status=$?
7664   grep -v '^ *+' conftest.er1 >conftest.err
7665   rm -f conftest.er1
7666   cat conftest.err >&5
7667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668   (exit $ac_status); } >/dev/null; then
7669   if test -s conftest.err; then
7670     ac_cpp_err=$ac_c_preproc_warn_flag
7671     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7672   else
7673     ac_cpp_err=
7674   fi
7675 else
7676   ac_cpp_err=yes
7677 fi
7678 if test -z "$ac_cpp_err"; then
7679   ac_header_preproc=yes
7680 else
7681   echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7683
7684   ac_header_preproc=no
7685 fi
7686 rm -f conftest.err conftest.$ac_ext
7687 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7688 echo "${ECHO_T}$ac_header_preproc" >&6
7689
7690 # So?  What about this header?
7691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7692   yes:no: )
7693     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7695     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7696 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7697     ac_header_preproc=yes
7698     ;;
7699   no:yes:* )
7700     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7702     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7703 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7704     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7705 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7706     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7707 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7708     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7710     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7711 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7712     (
7713       cat <<\_ASBOX
7714 ## ---------------------------------------- ##
7715 ## Report this to pgsql-bugs@postgresql.org ##
7716 ## ---------------------------------------- ##
7717 _ASBOX
7718     ) |
7719       sed "s/^/$as_me: WARNING:     /" >&2
7720     ;;
7721 esac
7722 echo "$as_me:$LINENO: checking for $ac_header" >&5
7723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7725   echo $ECHO_N "(cached) $ECHO_C" >&6
7726 else
7727   eval "$as_ac_Header=\$ac_header_preproc"
7728 fi
7729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7731
7732 fi
7733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7734   cat >>confdefs.h <<_ACEOF
7735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7736 _ACEOF
7737
7738 fi
7739
7740 done
7741
7742
7743 for ac_header in netinet/tcp.h
7744 do
7745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7746 echo "$as_me:$LINENO: checking for $ac_header" >&5
7747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7749   echo $ECHO_N "(cached) $ECHO_C" >&6
7750 else
7751   cat >conftest.$ac_ext <<_ACEOF
7752 /* confdefs.h.  */
7753 _ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h.  */
7757 $ac_includes_default
7758 #ifdef HAVE_NETINET_IN_H
7759 #include <netinet/in.h>
7760 #endif
7761
7762
7763 #include <$ac_header>
7764 _ACEOF
7765 rm -f conftest.$ac_objext
7766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7767   (eval $ac_compile) 2>conftest.er1
7768   ac_status=$?
7769   grep -v '^ *+' conftest.er1 >conftest.err
7770   rm -f conftest.er1
7771   cat conftest.err >&5
7772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773   (exit $ac_status); } &&
7774          { ac_try='test -z "$ac_c_werror_flag"
7775                          || test ! -s conftest.err'
7776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777   (eval $ac_try) 2>&5
7778   ac_status=$?
7779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780   (exit $ac_status); }; } &&
7781          { ac_try='test -s conftest.$ac_objext'
7782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783   (eval $ac_try) 2>&5
7784   ac_status=$?
7785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786   (exit $ac_status); }; }; then
7787   eval "$as_ac_Header=yes"
7788 else
7789   echo "$as_me: failed program was:" >&5
7790 sed 's/^/| /' conftest.$ac_ext >&5
7791
7792 eval "$as_ac_Header=no"
7793 fi
7794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7795 fi
7796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7799   cat >>confdefs.h <<_ACEOF
7800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7801 _ACEOF
7802
7803 fi
7804
7805 done
7806
7807
7808 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
7809
7810 for ac_header in readline/readline.h
7811 do
7812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7814   echo "$as_me:$LINENO: checking for $ac_header" >&5
7815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7817   echo $ECHO_N "(cached) $ECHO_C" >&6
7818 fi
7819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7821 else
7822   # Is the header compilable?
7823 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7825 cat >conftest.$ac_ext <<_ACEOF
7826 /* confdefs.h.  */
7827 _ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h.  */
7831 $ac_includes_default
7832 #include <$ac_header>
7833 _ACEOF
7834 rm -f conftest.$ac_objext
7835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7836   (eval $ac_compile) 2>conftest.er1
7837   ac_status=$?
7838   grep -v '^ *+' conftest.er1 >conftest.err
7839   rm -f conftest.er1
7840   cat conftest.err >&5
7841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842   (exit $ac_status); } &&
7843          { ac_try='test -z "$ac_c_werror_flag"
7844                          || test ! -s conftest.err'
7845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846   (eval $ac_try) 2>&5
7847   ac_status=$?
7848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849   (exit $ac_status); }; } &&
7850          { ac_try='test -s conftest.$ac_objext'
7851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7852   (eval $ac_try) 2>&5
7853   ac_status=$?
7854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855   (exit $ac_status); }; }; then
7856   ac_header_compiler=yes
7857 else
7858   echo "$as_me: failed program was:" >&5
7859 sed 's/^/| /' conftest.$ac_ext >&5
7860
7861 ac_header_compiler=no
7862 fi
7863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7864 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7865 echo "${ECHO_T}$ac_header_compiler" >&6
7866
7867 # Is the header present?
7868 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7870 cat >conftest.$ac_ext <<_ACEOF
7871 /* confdefs.h.  */
7872 _ACEOF
7873 cat confdefs.h >>conftest.$ac_ext
7874 cat >>conftest.$ac_ext <<_ACEOF
7875 /* end confdefs.h.  */
7876 #include <$ac_header>
7877 _ACEOF
7878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7879   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7880   ac_status=$?
7881   grep -v '^ *+' conftest.er1 >conftest.err
7882   rm -f conftest.er1
7883   cat conftest.err >&5
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); } >/dev/null; then
7886   if test -s conftest.err; then
7887     ac_cpp_err=$ac_c_preproc_warn_flag
7888     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7889   else
7890     ac_cpp_err=
7891   fi
7892 else
7893   ac_cpp_err=yes
7894 fi
7895 if test -z "$ac_cpp_err"; then
7896   ac_header_preproc=yes
7897 else
7898   echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7900
7901   ac_header_preproc=no
7902 fi
7903 rm -f conftest.err conftest.$ac_ext
7904 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7905 echo "${ECHO_T}$ac_header_preproc" >&6
7906
7907 # So?  What about this header?
7908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7909   yes:no: )
7910     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7912     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7914     ac_header_preproc=yes
7915     ;;
7916   no:yes:* )
7917     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7919     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7920 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7921     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7923     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7924 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7925     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7927     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7929     (
7930       cat <<\_ASBOX
7931 ## ---------------------------------------- ##
7932 ## Report this to pgsql-bugs@postgresql.org ##
7933 ## ---------------------------------------- ##
7934 _ASBOX
7935     ) |
7936       sed "s/^/$as_me: WARNING:     /" >&2
7937     ;;
7938 esac
7939 echo "$as_me:$LINENO: checking for $ac_header" >&5
7940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7942   echo $ECHO_N "(cached) $ECHO_C" >&6
7943 else
7944   eval "$as_ac_Header=\$ac_header_preproc"
7945 fi
7946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7948
7949 fi
7950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7951   cat >>confdefs.h <<_ACEOF
7952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7953 _ACEOF
7954
7955 else
7956
7957 for ac_header in readline.h
7958 do
7959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7961   echo "$as_me:$LINENO: checking for $ac_header" >&5
7962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7964   echo $ECHO_N "(cached) $ECHO_C" >&6
7965 fi
7966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7968 else
7969   # Is the header compilable?
7970 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7972 cat >conftest.$ac_ext <<_ACEOF
7973 /* confdefs.h.  */
7974 _ACEOF
7975 cat confdefs.h >>conftest.$ac_ext
7976 cat >>conftest.$ac_ext <<_ACEOF
7977 /* end confdefs.h.  */
7978 $ac_includes_default
7979 #include <$ac_header>
7980 _ACEOF
7981 rm -f conftest.$ac_objext
7982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7983   (eval $ac_compile) 2>conftest.er1
7984   ac_status=$?
7985   grep -v '^ *+' conftest.er1 >conftest.err
7986   rm -f conftest.er1
7987   cat conftest.err >&5
7988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989   (exit $ac_status); } &&
7990          { ac_try='test -z "$ac_c_werror_flag"
7991                          || test ! -s conftest.err'
7992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993   (eval $ac_try) 2>&5
7994   ac_status=$?
7995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996   (exit $ac_status); }; } &&
7997          { ac_try='test -s conftest.$ac_objext'
7998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999   (eval $ac_try) 2>&5
8000   ac_status=$?
8001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002   (exit $ac_status); }; }; then
8003   ac_header_compiler=yes
8004 else
8005   echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8007
8008 ac_header_compiler=no
8009 fi
8010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8011 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8012 echo "${ECHO_T}$ac_header_compiler" >&6
8013
8014 # Is the header present?
8015 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8017 cat >conftest.$ac_ext <<_ACEOF
8018 /* confdefs.h.  */
8019 _ACEOF
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h.  */
8023 #include <$ac_header>
8024 _ACEOF
8025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8026   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8027   ac_status=$?
8028   grep -v '^ *+' conftest.er1 >conftest.err
8029   rm -f conftest.er1
8030   cat conftest.err >&5
8031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032   (exit $ac_status); } >/dev/null; then
8033   if test -s conftest.err; then
8034     ac_cpp_err=$ac_c_preproc_warn_flag
8035     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8036   else
8037     ac_cpp_err=
8038   fi
8039 else
8040   ac_cpp_err=yes
8041 fi
8042 if test -z "$ac_cpp_err"; then
8043   ac_header_preproc=yes
8044 else
8045   echo "$as_me: failed program was:" >&5
8046 sed 's/^/| /' conftest.$ac_ext >&5
8047
8048   ac_header_preproc=no
8049 fi
8050 rm -f conftest.err conftest.$ac_ext
8051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8052 echo "${ECHO_T}$ac_header_preproc" >&6
8053
8054 # So?  What about this header?
8055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8056   yes:no: )
8057     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8059     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8061     ac_header_preproc=yes
8062     ;;
8063   no:yes:* )
8064     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8066     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8067 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8068     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8070     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8071 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8074     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8076     (
8077       cat <<\_ASBOX
8078 ## ---------------------------------------- ##
8079 ## Report this to pgsql-bugs@postgresql.org ##
8080 ## ---------------------------------------- ##
8081 _ASBOX
8082     ) |
8083       sed "s/^/$as_me: WARNING:     /" >&2
8084     ;;
8085 esac
8086 echo "$as_me:$LINENO: checking for $ac_header" >&5
8087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8089   echo $ECHO_N "(cached) $ECHO_C" >&6
8090 else
8091   eval "$as_ac_Header=\$ac_header_preproc"
8092 fi
8093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8095
8096 fi
8097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8098   cat >>confdefs.h <<_ACEOF
8099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8100 _ACEOF
8101
8102 else
8103   { { echo "$as_me:$LINENO: error: readline header not found
8104 If you have readline already installed, see config.log for details on the
8105 failure.  It is possible the compiler isn't looking in the proper directory.
8106 Use --without-readline to disable readline support." >&5
8107 echo "$as_me: error: readline header not found
8108 If you have readline already installed, see config.log for details on the
8109 failure.  It is possible the compiler isn't looking in the proper directory.
8110 Use --without-readline to disable readline support." >&2;}
8111    { (exit 1); exit 1; }; }
8112 fi
8113
8114 done
8115
8116 fi
8117
8118 done
8119
8120
8121 for ac_header in readline/history.h
8122 do
8123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8125   echo "$as_me:$LINENO: checking for $ac_header" >&5
8126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8128   echo $ECHO_N "(cached) $ECHO_C" >&6
8129 fi
8130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8132 else
8133   # Is the header compilable?
8134 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8136 cat >conftest.$ac_ext <<_ACEOF
8137 /* confdefs.h.  */
8138 _ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h.  */
8142 $ac_includes_default
8143 #include <$ac_header>
8144 _ACEOF
8145 rm -f conftest.$ac_objext
8146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8147   (eval $ac_compile) 2>conftest.er1
8148   ac_status=$?
8149   grep -v '^ *+' conftest.er1 >conftest.err
8150   rm -f conftest.er1
8151   cat conftest.err >&5
8152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153   (exit $ac_status); } &&
8154          { ac_try='test -z "$ac_c_werror_flag"
8155                          || test ! -s conftest.err'
8156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8157   (eval $ac_try) 2>&5
8158   ac_status=$?
8159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160   (exit $ac_status); }; } &&
8161          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8167   ac_header_compiler=yes
8168 else
8169   echo "$as_me: failed program was:" >&5
8170 sed 's/^/| /' conftest.$ac_ext >&5
8171
8172 ac_header_compiler=no
8173 fi
8174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8175 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8176 echo "${ECHO_T}$ac_header_compiler" >&6
8177
8178 # Is the header present?
8179 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8181 cat >conftest.$ac_ext <<_ACEOF
8182 /* confdefs.h.  */
8183 _ACEOF
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h.  */
8187 #include <$ac_header>
8188 _ACEOF
8189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8190   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8191   ac_status=$?
8192   grep -v '^ *+' conftest.er1 >conftest.err
8193   rm -f conftest.er1
8194   cat conftest.err >&5
8195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   (exit $ac_status); } >/dev/null; then
8197   if test -s conftest.err; then
8198     ac_cpp_err=$ac_c_preproc_warn_flag
8199     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8200   else
8201     ac_cpp_err=
8202   fi
8203 else
8204   ac_cpp_err=yes
8205 fi
8206 if test -z "$ac_cpp_err"; then
8207   ac_header_preproc=yes
8208 else
8209   echo "$as_me: failed program was:" >&5
8210 sed 's/^/| /' conftest.$ac_ext >&5
8211
8212   ac_header_preproc=no
8213 fi
8214 rm -f conftest.err conftest.$ac_ext
8215 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8216 echo "${ECHO_T}$ac_header_preproc" >&6
8217
8218 # So?  What about this header?
8219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8220   yes:no: )
8221     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8223     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8224 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8225     ac_header_preproc=yes
8226     ;;
8227   no:yes:* )
8228     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8229 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8230     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8231 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8232     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8233 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8234     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8235 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8236     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8238     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8239 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8240     (
8241       cat <<\_ASBOX
8242 ## ---------------------------------------- ##
8243 ## Report this to pgsql-bugs@postgresql.org ##
8244 ## ---------------------------------------- ##
8245 _ASBOX
8246     ) |
8247       sed "s/^/$as_me: WARNING:     /" >&2
8248     ;;
8249 esac
8250 echo "$as_me:$LINENO: checking for $ac_header" >&5
8251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8253   echo $ECHO_N "(cached) $ECHO_C" >&6
8254 else
8255   eval "$as_ac_Header=\$ac_header_preproc"
8256 fi
8257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8259
8260 fi
8261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8262   cat >>confdefs.h <<_ACEOF
8263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8264 _ACEOF
8265
8266 else
8267
8268 for ac_header in history.h
8269 do
8270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8272   echo "$as_me:$LINENO: checking for $ac_header" >&5
8273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8275   echo $ECHO_N "(cached) $ECHO_C" >&6
8276 fi
8277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8279 else
8280   # Is the header compilable?
8281 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8283 cat >conftest.$ac_ext <<_ACEOF
8284 /* confdefs.h.  */
8285 _ACEOF
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h.  */
8289 $ac_includes_default
8290 #include <$ac_header>
8291 _ACEOF
8292 rm -f conftest.$ac_objext
8293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8294   (eval $ac_compile) 2>conftest.er1
8295   ac_status=$?
8296   grep -v '^ *+' conftest.er1 >conftest.err
8297   rm -f conftest.er1
8298   cat conftest.err >&5
8299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300   (exit $ac_status); } &&
8301          { ac_try='test -z "$ac_c_werror_flag"
8302                          || test ! -s conftest.err'
8303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8304   (eval $ac_try) 2>&5
8305   ac_status=$?
8306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307   (exit $ac_status); }; } &&
8308          { ac_try='test -s conftest.$ac_objext'
8309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310   (eval $ac_try) 2>&5
8311   ac_status=$?
8312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313   (exit $ac_status); }; }; then
8314   ac_header_compiler=yes
8315 else
8316   echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8318
8319 ac_header_compiler=no
8320 fi
8321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8322 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8323 echo "${ECHO_T}$ac_header_compiler" >&6
8324
8325 # Is the header present?
8326 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8328 cat >conftest.$ac_ext <<_ACEOF
8329 /* confdefs.h.  */
8330 _ACEOF
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h.  */
8334 #include <$ac_header>
8335 _ACEOF
8336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8337   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8338   ac_status=$?
8339   grep -v '^ *+' conftest.er1 >conftest.err
8340   rm -f conftest.er1
8341   cat conftest.err >&5
8342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343   (exit $ac_status); } >/dev/null; then
8344   if test -s conftest.err; then
8345     ac_cpp_err=$ac_c_preproc_warn_flag
8346     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8347   else
8348     ac_cpp_err=
8349   fi
8350 else
8351   ac_cpp_err=yes
8352 fi
8353 if test -z "$ac_cpp_err"; then
8354   ac_header_preproc=yes
8355 else
8356   echo "$as_me: failed program was:" >&5
8357 sed 's/^/| /' conftest.$ac_ext >&5
8358
8359   ac_header_preproc=no
8360 fi
8361 rm -f conftest.err conftest.$ac_ext
8362 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8363 echo "${ECHO_T}$ac_header_preproc" >&6
8364
8365 # So?  What about this header?
8366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8367   yes:no: )
8368     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8370     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8371 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8372     ac_header_preproc=yes
8373     ;;
8374   no:yes:* )
8375     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8377     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8378 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8379     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8380 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8381     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8382 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8383     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8385     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8386 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8387     (
8388       cat <<\_ASBOX
8389 ## ---------------------------------------- ##
8390 ## Report this to pgsql-bugs@postgresql.org ##
8391 ## ---------------------------------------- ##
8392 _ASBOX
8393     ) |
8394       sed "s/^/$as_me: WARNING:     /" >&2
8395     ;;
8396 esac
8397 echo "$as_me:$LINENO: checking for $ac_header" >&5
8398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8400   echo $ECHO_N "(cached) $ECHO_C" >&6
8401 else
8402   eval "$as_ac_Header=\$ac_header_preproc"
8403 fi
8404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8406
8407 fi
8408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8409   cat >>confdefs.h <<_ACEOF
8410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8411 _ACEOF
8412
8413 else
8414   { { echo "$as_me:$LINENO: error: history header not found
8415 If you have readline already installed, see config.log for details on the
8416 failure.  It is possible the compiler isn't looking in the proper directory.
8417 Use --without-readline to disable readline support." >&5
8418 echo "$as_me: error: history header not found
8419 If you have readline already installed, see config.log for details on the
8420 failure.  It is possible the compiler isn't looking in the proper directory.
8421 Use --without-readline to disable readline support." >&2;}
8422    { (exit 1); exit 1; }; }
8423 fi
8424
8425 done
8426
8427 fi
8428
8429 done
8430
8431 fi
8432
8433 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
8434 # Some installations of libedit usurp /usr/include/readline/, which seems
8435 # bad practice, since in combined installations readline will have its headers
8436 # there.  We might have to resort to AC_EGREP checks to make sure we found
8437 # the proper header...
8438
8439 for ac_header in editline/readline.h
8440 do
8441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8443   echo "$as_me:$LINENO: checking for $ac_header" >&5
8444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8446   echo $ECHO_N "(cached) $ECHO_C" >&6
8447 fi
8448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8450 else
8451   # Is the header compilable?
8452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8454 cat >conftest.$ac_ext <<_ACEOF
8455 /* confdefs.h.  */
8456 _ACEOF
8457 cat confdefs.h >>conftest.$ac_ext
8458 cat >>conftest.$ac_ext <<_ACEOF
8459 /* end confdefs.h.  */
8460 $ac_includes_default
8461 #include <$ac_header>
8462 _ACEOF
8463 rm -f conftest.$ac_objext
8464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8465   (eval $ac_compile) 2>conftest.er1
8466   ac_status=$?
8467   grep -v '^ *+' conftest.er1 >conftest.err
8468   rm -f conftest.er1
8469   cat conftest.err >&5
8470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471   (exit $ac_status); } &&
8472          { ac_try='test -z "$ac_c_werror_flag"
8473                          || test ! -s conftest.err'
8474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475   (eval $ac_try) 2>&5
8476   ac_status=$?
8477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478   (exit $ac_status); }; } &&
8479          { ac_try='test -s conftest.$ac_objext'
8480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481   (eval $ac_try) 2>&5
8482   ac_status=$?
8483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484   (exit $ac_status); }; }; then
8485   ac_header_compiler=yes
8486 else
8487   echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.$ac_ext >&5
8489
8490 ac_header_compiler=no
8491 fi
8492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8494 echo "${ECHO_T}$ac_header_compiler" >&6
8495
8496 # Is the header present?
8497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8499 cat >conftest.$ac_ext <<_ACEOF
8500 /* confdefs.h.  */
8501 _ACEOF
8502 cat confdefs.h >>conftest.$ac_ext
8503 cat >>conftest.$ac_ext <<_ACEOF
8504 /* end confdefs.h.  */
8505 #include <$ac_header>
8506 _ACEOF
8507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8508   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8509   ac_status=$?
8510   grep -v '^ *+' conftest.er1 >conftest.err
8511   rm -f conftest.er1
8512   cat conftest.err >&5
8513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514   (exit $ac_status); } >/dev/null; then
8515   if test -s conftest.err; then
8516     ac_cpp_err=$ac_c_preproc_warn_flag
8517     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8518   else
8519     ac_cpp_err=
8520   fi
8521 else
8522   ac_cpp_err=yes
8523 fi
8524 if test -z "$ac_cpp_err"; then
8525   ac_header_preproc=yes
8526 else
8527   echo "$as_me: failed program was:" >&5
8528 sed 's/^/| /' conftest.$ac_ext >&5
8529
8530   ac_header_preproc=no
8531 fi
8532 rm -f conftest.err conftest.$ac_ext
8533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8534 echo "${ECHO_T}$ac_header_preproc" >&6
8535
8536 # So?  What about this header?
8537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8538   yes:no: )
8539     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8541     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8543     ac_header_preproc=yes
8544     ;;
8545   no:yes:* )
8546     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8548     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8549 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8550     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8552     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8553 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8554     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8556     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8558     (
8559       cat <<\_ASBOX
8560 ## ---------------------------------------- ##
8561 ## Report this to pgsql-bugs@postgresql.org ##
8562 ## ---------------------------------------- ##
8563 _ASBOX
8564     ) |
8565       sed "s/^/$as_me: WARNING:     /" >&2
8566     ;;
8567 esac
8568 echo "$as_me:$LINENO: checking for $ac_header" >&5
8569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8571   echo $ECHO_N "(cached) $ECHO_C" >&6
8572 else
8573   eval "$as_ac_Header=\$ac_header_preproc"
8574 fi
8575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8577
8578 fi
8579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8580   cat >>confdefs.h <<_ACEOF
8581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8582 _ACEOF
8583
8584 else
8585
8586 for ac_header in readline.h
8587 do
8588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8590   echo "$as_me:$LINENO: checking for $ac_header" >&5
8591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8593   echo $ECHO_N "(cached) $ECHO_C" >&6
8594 fi
8595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8597 else
8598   # Is the header compilable?
8599 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8600 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8601 cat >conftest.$ac_ext <<_ACEOF
8602 /* confdefs.h.  */
8603 _ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h.  */
8607 $ac_includes_default
8608 #include <$ac_header>
8609 _ACEOF
8610 rm -f conftest.$ac_objext
8611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8612   (eval $ac_compile) 2>conftest.er1
8613   ac_status=$?
8614   grep -v '^ *+' conftest.er1 >conftest.err
8615   rm -f conftest.er1
8616   cat conftest.err >&5
8617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); } &&
8619          { ac_try='test -z "$ac_c_werror_flag"
8620                          || test ! -s conftest.err'
8621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622   (eval $ac_try) 2>&5
8623   ac_status=$?
8624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625   (exit $ac_status); }; } &&
8626          { ac_try='test -s conftest.$ac_objext'
8627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628   (eval $ac_try) 2>&5
8629   ac_status=$?
8630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631   (exit $ac_status); }; }; then
8632   ac_header_compiler=yes
8633 else
8634   echo "$as_me: failed program was:" >&5
8635 sed 's/^/| /' conftest.$ac_ext >&5
8636
8637 ac_header_compiler=no
8638 fi
8639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8640 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8641 echo "${ECHO_T}$ac_header_compiler" >&6
8642
8643 # Is the header present?
8644 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8646 cat >conftest.$ac_ext <<_ACEOF
8647 /* confdefs.h.  */
8648 _ACEOF
8649 cat confdefs.h >>conftest.$ac_ext
8650 cat >>conftest.$ac_ext <<_ACEOF
8651 /* end confdefs.h.  */
8652 #include <$ac_header>
8653 _ACEOF
8654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8655   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8656   ac_status=$?
8657   grep -v '^ *+' conftest.er1 >conftest.err
8658   rm -f conftest.er1
8659   cat conftest.err >&5
8660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661   (exit $ac_status); } >/dev/null; then
8662   if test -s conftest.err; then
8663     ac_cpp_err=$ac_c_preproc_warn_flag
8664     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8665   else
8666     ac_cpp_err=
8667   fi
8668 else
8669   ac_cpp_err=yes
8670 fi
8671 if test -z "$ac_cpp_err"; then
8672   ac_header_preproc=yes
8673 else
8674   echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8676
8677   ac_header_preproc=no
8678 fi
8679 rm -f conftest.err conftest.$ac_ext
8680 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8681 echo "${ECHO_T}$ac_header_preproc" >&6
8682
8683 # So?  What about this header?
8684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8685   yes:no: )
8686     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8688     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8690     ac_header_preproc=yes
8691     ;;
8692   no:yes:* )
8693     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8695     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8696 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8697     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8699     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8700 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8701     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8703     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8705     (
8706       cat <<\_ASBOX
8707 ## ---------------------------------------- ##
8708 ## Report this to pgsql-bugs@postgresql.org ##
8709 ## ---------------------------------------- ##
8710 _ASBOX
8711     ) |
8712       sed "s/^/$as_me: WARNING:     /" >&2
8713     ;;
8714 esac
8715 echo "$as_me:$LINENO: checking for $ac_header" >&5
8716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8718   echo $ECHO_N "(cached) $ECHO_C" >&6
8719 else
8720   eval "$as_ac_Header=\$ac_header_preproc"
8721 fi
8722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8724
8725 fi
8726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8727   cat >>confdefs.h <<_ACEOF
8728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8729 _ACEOF
8730
8731 else
8732
8733 for ac_header in readline/readline.h
8734 do
8735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8737   echo "$as_me:$LINENO: checking for $ac_header" >&5
8738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8740   echo $ECHO_N "(cached) $ECHO_C" >&6
8741 fi
8742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8744 else
8745   # Is the header compilable?
8746 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8748 cat >conftest.$ac_ext <<_ACEOF
8749 /* confdefs.h.  */
8750 _ACEOF
8751 cat confdefs.h >>conftest.$ac_ext
8752 cat >>conftest.$ac_ext <<_ACEOF
8753 /* end confdefs.h.  */
8754 $ac_includes_default
8755 #include <$ac_header>
8756 _ACEOF
8757 rm -f conftest.$ac_objext
8758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8759   (eval $ac_compile) 2>conftest.er1
8760   ac_status=$?
8761   grep -v '^ *+' conftest.er1 >conftest.err
8762   rm -f conftest.er1
8763   cat conftest.err >&5
8764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765   (exit $ac_status); } &&
8766          { ac_try='test -z "$ac_c_werror_flag"
8767                          || test ! -s conftest.err'
8768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769   (eval $ac_try) 2>&5
8770   ac_status=$?
8771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772   (exit $ac_status); }; } &&
8773          { ac_try='test -s conftest.$ac_objext'
8774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775   (eval $ac_try) 2>&5
8776   ac_status=$?
8777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778   (exit $ac_status); }; }; then
8779   ac_header_compiler=yes
8780 else
8781   echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8783
8784 ac_header_compiler=no
8785 fi
8786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8787 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8788 echo "${ECHO_T}$ac_header_compiler" >&6
8789
8790 # Is the header present?
8791 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8792 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8793 cat >conftest.$ac_ext <<_ACEOF
8794 /* confdefs.h.  */
8795 _ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h.  */
8799 #include <$ac_header>
8800 _ACEOF
8801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8802   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8803   ac_status=$?
8804   grep -v '^ *+' conftest.er1 >conftest.err
8805   rm -f conftest.er1
8806   cat conftest.err >&5
8807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808   (exit $ac_status); } >/dev/null; then
8809   if test -s conftest.err; then
8810     ac_cpp_err=$ac_c_preproc_warn_flag
8811     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8812   else
8813     ac_cpp_err=
8814   fi
8815 else
8816   ac_cpp_err=yes
8817 fi
8818 if test -z "$ac_cpp_err"; then
8819   ac_header_preproc=yes
8820 else
8821   echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8823
8824   ac_header_preproc=no
8825 fi
8826 rm -f conftest.err conftest.$ac_ext
8827 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8828 echo "${ECHO_T}$ac_header_preproc" >&6
8829
8830 # So?  What about this header?
8831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8832   yes:no: )
8833     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8834 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8835     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8836 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8837     ac_header_preproc=yes
8838     ;;
8839   no:yes:* )
8840     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8842     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8843 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8844     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8845 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8846     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8847 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8848     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8850     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8851 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8852     (
8853       cat <<\_ASBOX
8854 ## ---------------------------------------- ##
8855 ## Report this to pgsql-bugs@postgresql.org ##
8856 ## ---------------------------------------- ##
8857 _ASBOX
8858     ) |
8859       sed "s/^/$as_me: WARNING:     /" >&2
8860     ;;
8861 esac
8862 echo "$as_me:$LINENO: checking for $ac_header" >&5
8863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8865   echo $ECHO_N "(cached) $ECHO_C" >&6
8866 else
8867   eval "$as_ac_Header=\$ac_header_preproc"
8868 fi
8869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8871
8872 fi
8873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8874   cat >>confdefs.h <<_ACEOF
8875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8876 _ACEOF
8877
8878 else
8879   { { echo "$as_me:$LINENO: error: readline header not found
8880 If you have libedit already installed, see config.log for details on the
8881 failure.  It is possible the compiler isn't looking in the proper directory.
8882 Use --without-readline to disable libedit support." >&5
8883 echo "$as_me: error: readline header not found
8884 If you have libedit 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 libedit support." >&2;}
8887    { (exit 1); exit 1; }; }
8888 fi
8889
8890 done
8891
8892 fi
8893
8894 done
8895
8896 fi
8897
8898 done
8899
8900
8901 for ac_header in editline/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
9195 for ac_header in readline/history.h
9196 do
9197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9199   echo "$as_me:$LINENO: checking for $ac_header" >&5
9200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9202   echo $ECHO_N "(cached) $ECHO_C" >&6
9203 fi
9204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9206 else
9207   # Is the header compilable?
9208 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9209 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9210 cat >conftest.$ac_ext <<_ACEOF
9211 /* confdefs.h.  */
9212 _ACEOF
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h.  */
9216 $ac_includes_default
9217 #include <$ac_header>
9218 _ACEOF
9219 rm -f conftest.$ac_objext
9220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9221   (eval $ac_compile) 2>conftest.er1
9222   ac_status=$?
9223   grep -v '^ *+' conftest.er1 >conftest.err
9224   rm -f conftest.er1
9225   cat conftest.err >&5
9226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227   (exit $ac_status); } &&
9228          { ac_try='test -z "$ac_c_werror_flag"
9229                          || test ! -s conftest.err'
9230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231   (eval $ac_try) 2>&5
9232   ac_status=$?
9233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234   (exit $ac_status); }; } &&
9235          { ac_try='test -s conftest.$ac_objext'
9236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237   (eval $ac_try) 2>&5
9238   ac_status=$?
9239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240   (exit $ac_status); }; }; then
9241   ac_header_compiler=yes
9242 else
9243   echo "$as_me: failed program was:" >&5
9244 sed 's/^/| /' conftest.$ac_ext >&5
9245
9246 ac_header_compiler=no
9247 fi
9248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9249 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9250 echo "${ECHO_T}$ac_header_compiler" >&6
9251
9252 # Is the header present?
9253 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9255 cat >conftest.$ac_ext <<_ACEOF
9256 /* confdefs.h.  */
9257 _ACEOF
9258 cat confdefs.h >>conftest.$ac_ext
9259 cat >>conftest.$ac_ext <<_ACEOF
9260 /* end confdefs.h.  */
9261 #include <$ac_header>
9262 _ACEOF
9263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9264   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9265   ac_status=$?
9266   grep -v '^ *+' conftest.er1 >conftest.err
9267   rm -f conftest.er1
9268   cat conftest.err >&5
9269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270   (exit $ac_status); } >/dev/null; then
9271   if test -s conftest.err; then
9272     ac_cpp_err=$ac_c_preproc_warn_flag
9273     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9274   else
9275     ac_cpp_err=
9276   fi
9277 else
9278   ac_cpp_err=yes
9279 fi
9280 if test -z "$ac_cpp_err"; then
9281   ac_header_preproc=yes
9282 else
9283   echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.$ac_ext >&5
9285
9286   ac_header_preproc=no
9287 fi
9288 rm -f conftest.err conftest.$ac_ext
9289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9290 echo "${ECHO_T}$ac_header_preproc" >&6
9291
9292 # So?  What about this header?
9293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9294   yes:no: )
9295     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9299     ac_header_preproc=yes
9300     ;;
9301   no:yes:* )
9302     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9304     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9305 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9306     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9308     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9309 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9310     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9312     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9314     (
9315       cat <<\_ASBOX
9316 ## ---------------------------------------- ##
9317 ## Report this to pgsql-bugs@postgresql.org ##
9318 ## ---------------------------------------- ##
9319 _ASBOX
9320     ) |
9321       sed "s/^/$as_me: WARNING:     /" >&2
9322     ;;
9323 esac
9324 echo "$as_me:$LINENO: checking for $ac_header" >&5
9325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9327   echo $ECHO_N "(cached) $ECHO_C" >&6
9328 else
9329   eval "$as_ac_Header=\$ac_header_preproc"
9330 fi
9331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9333
9334 fi
9335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9336   cat >>confdefs.h <<_ACEOF
9337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9338 _ACEOF
9339
9340 else
9341   { { echo "$as_me:$LINENO: error: history header not found
9342 If you have libedit already installed, see config.log for details on the
9343 failure.  It is possible the compiler isn't looking in the proper directory.
9344 Use --without-readline to disable libedit support." >&5
9345 echo "$as_me: error: history header not found
9346 If you have libedit already installed, see config.log for details on the
9347 failure.  It is possible the compiler isn't looking in the proper directory.
9348 Use --without-readline to disable libedit support." >&2;}
9349    { (exit 1); exit 1; }; }
9350 fi
9351
9352 done
9353
9354 fi
9355
9356 done
9357
9358 fi
9359
9360 done
9361
9362 fi
9363
9364 if test "$with_zlib" = yes; then
9365   if test "${ac_cv_header_zlib_h+set}" = set; then
9366   echo "$as_me:$LINENO: checking for zlib.h" >&5
9367 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9368 if test "${ac_cv_header_zlib_h+set}" = set; then
9369   echo $ECHO_N "(cached) $ECHO_C" >&6
9370 fi
9371 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9372 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9373 else
9374   # Is the header compilable?
9375 echo "$as_me:$LINENO: checking zlib.h usability" >&5
9376 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
9377 cat >conftest.$ac_ext <<_ACEOF
9378 /* confdefs.h.  */
9379 _ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h.  */
9383 $ac_includes_default
9384 #include <zlib.h>
9385 _ACEOF
9386 rm -f conftest.$ac_objext
9387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9388   (eval $ac_compile) 2>conftest.er1
9389   ac_status=$?
9390   grep -v '^ *+' conftest.er1 >conftest.err
9391   rm -f conftest.er1
9392   cat conftest.err >&5
9393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394   (exit $ac_status); } &&
9395          { ac_try='test -z "$ac_c_werror_flag"
9396                          || test ! -s conftest.err'
9397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398   (eval $ac_try) 2>&5
9399   ac_status=$?
9400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401   (exit $ac_status); }; } &&
9402          { ac_try='test -s conftest.$ac_objext'
9403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404   (eval $ac_try) 2>&5
9405   ac_status=$?
9406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407   (exit $ac_status); }; }; then
9408   ac_header_compiler=yes
9409 else
9410   echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9412
9413 ac_header_compiler=no
9414 fi
9415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9417 echo "${ECHO_T}$ac_header_compiler" >&6
9418
9419 # Is the header present?
9420 echo "$as_me:$LINENO: checking zlib.h presence" >&5
9421 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
9422 cat >conftest.$ac_ext <<_ACEOF
9423 /* confdefs.h.  */
9424 _ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h.  */
9428 #include <zlib.h>
9429 _ACEOF
9430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9431   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9432   ac_status=$?
9433   grep -v '^ *+' conftest.er1 >conftest.err
9434   rm -f conftest.er1
9435   cat conftest.err >&5
9436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437   (exit $ac_status); } >/dev/null; then
9438   if test -s conftest.err; then
9439     ac_cpp_err=$ac_c_preproc_warn_flag
9440     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9441   else
9442     ac_cpp_err=
9443   fi
9444 else
9445   ac_cpp_err=yes
9446 fi
9447 if test -z "$ac_cpp_err"; then
9448   ac_header_preproc=yes
9449 else
9450   echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.$ac_ext >&5
9452
9453   ac_header_preproc=no
9454 fi
9455 rm -f conftest.err conftest.$ac_ext
9456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9457 echo "${ECHO_T}$ac_header_preproc" >&6
9458
9459 # So?  What about this header?
9460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9461   yes:no: )
9462     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9463 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9464     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9465 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9466     ac_header_preproc=yes
9467     ;;
9468   no:yes:* )
9469     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9470 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9471     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
9472 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
9473     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9474 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9475     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
9476 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9477     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9478 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9479     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9480 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
9481     (
9482       cat <<\_ASBOX
9483 ## ---------------------------------------- ##
9484 ## Report this to pgsql-bugs@postgresql.org ##
9485 ## ---------------------------------------- ##
9486 _ASBOX
9487     ) |
9488       sed "s/^/$as_me: WARNING:     /" >&2
9489     ;;
9490 esac
9491 echo "$as_me:$LINENO: checking for zlib.h" >&5
9492 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9493 if test "${ac_cv_header_zlib_h+set}" = set; then
9494   echo $ECHO_N "(cached) $ECHO_C" >&6
9495 else
9496   ac_cv_header_zlib_h=$ac_header_preproc
9497 fi
9498 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9499 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9500
9501 fi
9502 if test $ac_cv_header_zlib_h = yes; then
9503   :
9504 else
9505   { { echo "$as_me:$LINENO: error: zlib header not found
9506 If you have zlib already installed, see config.log for details on the
9507 failure.  It is possible the compiler isn't looking in the proper directory.
9508 Use --without-zlib to disable zlib support." >&5
9509 echo "$as_me: error: zlib header not found
9510 If you have zlib already installed, see config.log for details on the
9511 failure.  It is possible the compiler isn't looking in the proper directory.
9512 Use --without-zlib to disable zlib support." >&2;}
9513    { (exit 1); exit 1; }; }
9514 fi
9515
9516
9517 fi
9518
9519 if test "$with_krb5" = yes ; then
9520   if test "${ac_cv_header_krb5_h+set}" = set; then
9521   echo "$as_me:$LINENO: checking for krb5.h" >&5
9522 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9523 if test "${ac_cv_header_krb5_h+set}" = set; then
9524   echo $ECHO_N "(cached) $ECHO_C" >&6
9525 fi
9526 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9527 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9528 else
9529   # Is the header compilable?
9530 echo "$as_me:$LINENO: checking krb5.h usability" >&5
9531 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
9532 cat >conftest.$ac_ext <<_ACEOF
9533 /* confdefs.h.  */
9534 _ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h.  */
9538 $ac_includes_default
9539 #include <krb5.h>
9540 _ACEOF
9541 rm -f conftest.$ac_objext
9542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9543   (eval $ac_compile) 2>conftest.er1
9544   ac_status=$?
9545   grep -v '^ *+' conftest.er1 >conftest.err
9546   rm -f conftest.er1
9547   cat conftest.err >&5
9548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549   (exit $ac_status); } &&
9550          { ac_try='test -z "$ac_c_werror_flag"
9551                          || test ! -s conftest.err'
9552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553   (eval $ac_try) 2>&5
9554   ac_status=$?
9555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556   (exit $ac_status); }; } &&
9557          { ac_try='test -s conftest.$ac_objext'
9558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559   (eval $ac_try) 2>&5
9560   ac_status=$?
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); }; }; then
9563   ac_header_compiler=yes
9564 else
9565   echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.$ac_ext >&5
9567
9568 ac_header_compiler=no
9569 fi
9570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9572 echo "${ECHO_T}$ac_header_compiler" >&6
9573
9574 # Is the header present?
9575 echo "$as_me:$LINENO: checking krb5.h presence" >&5
9576 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
9577 cat >conftest.$ac_ext <<_ACEOF
9578 /* confdefs.h.  */
9579 _ACEOF
9580 cat confdefs.h >>conftest.$ac_ext
9581 cat >>conftest.$ac_ext <<_ACEOF
9582 /* end confdefs.h.  */
9583 #include <krb5.h>
9584 _ACEOF
9585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9586   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9587   ac_status=$?
9588   grep -v '^ *+' conftest.er1 >conftest.err
9589   rm -f conftest.er1
9590   cat conftest.err >&5
9591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592   (exit $ac_status); } >/dev/null; then
9593   if test -s conftest.err; then
9594     ac_cpp_err=$ac_c_preproc_warn_flag
9595     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9596   else
9597     ac_cpp_err=
9598   fi
9599 else
9600   ac_cpp_err=yes
9601 fi
9602 if test -z "$ac_cpp_err"; then
9603   ac_header_preproc=yes
9604 else
9605   echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9607
9608   ac_header_preproc=no
9609 fi
9610 rm -f conftest.err conftest.$ac_ext
9611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9612 echo "${ECHO_T}$ac_header_preproc" >&6
9613
9614 # So?  What about this header?
9615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9616   yes:no: )
9617     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
9618 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9619     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
9620 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
9621     ac_header_preproc=yes
9622     ;;
9623   no:yes:* )
9624     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
9625 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
9626     { echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
9627 echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
9628     { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
9629 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
9630     { echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
9631 echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9632     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
9633 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
9634     { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
9635 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
9636     (
9637       cat <<\_ASBOX
9638 ## ---------------------------------------- ##
9639 ## Report this to pgsql-bugs@postgresql.org ##
9640 ## ---------------------------------------- ##
9641 _ASBOX
9642     ) |
9643       sed "s/^/$as_me: WARNING:     /" >&2
9644     ;;
9645 esac
9646 echo "$as_me:$LINENO: checking for krb5.h" >&5
9647 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9648 if test "${ac_cv_header_krb5_h+set}" = set; then
9649   echo $ECHO_N "(cached) $ECHO_C" >&6
9650 else
9651   ac_cv_header_krb5_h=$ac_header_preproc
9652 fi
9653 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9654 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9655
9656 fi
9657 if test $ac_cv_header_krb5_h = yes; then
9658   :
9659 else
9660   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
9661 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
9662    { (exit 1); exit 1; }; }
9663 fi
9664
9665
9666 fi
9667
9668 if test "$with_openssl" = yes ; then
9669   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9670   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9671 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9672 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9673   echo $ECHO_N "(cached) $ECHO_C" >&6
9674 fi
9675 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9676 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9677 else
9678   # Is the header compilable?
9679 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
9680 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
9681 cat >conftest.$ac_ext <<_ACEOF
9682 /* confdefs.h.  */
9683 _ACEOF
9684 cat confdefs.h >>conftest.$ac_ext
9685 cat >>conftest.$ac_ext <<_ACEOF
9686 /* end confdefs.h.  */
9687 $ac_includes_default
9688 #include <openssl/ssl.h>
9689 _ACEOF
9690 rm -f conftest.$ac_objext
9691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9692   (eval $ac_compile) 2>conftest.er1
9693   ac_status=$?
9694   grep -v '^ *+' conftest.er1 >conftest.err
9695   rm -f conftest.er1
9696   cat conftest.err >&5
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); } &&
9699          { ac_try='test -z "$ac_c_werror_flag"
9700                          || test ! -s conftest.err'
9701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702   (eval $ac_try) 2>&5
9703   ac_status=$?
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); }; } &&
9706          { ac_try='test -s conftest.$ac_objext'
9707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708   (eval $ac_try) 2>&5
9709   ac_status=$?
9710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711   (exit $ac_status); }; }; then
9712   ac_header_compiler=yes
9713 else
9714   echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9716
9717 ac_header_compiler=no
9718 fi
9719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9720 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9721 echo "${ECHO_T}$ac_header_compiler" >&6
9722
9723 # Is the header present?
9724 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
9725 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
9726 cat >conftest.$ac_ext <<_ACEOF
9727 /* confdefs.h.  */
9728 _ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h.  */
9732 #include <openssl/ssl.h>
9733 _ACEOF
9734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9735   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9736   ac_status=$?
9737   grep -v '^ *+' conftest.er1 >conftest.err
9738   rm -f conftest.er1
9739   cat conftest.err >&5
9740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741   (exit $ac_status); } >/dev/null; then
9742   if test -s conftest.err; then
9743     ac_cpp_err=$ac_c_preproc_warn_flag
9744     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9745   else
9746     ac_cpp_err=
9747   fi
9748 else
9749   ac_cpp_err=yes
9750 fi
9751 if test -z "$ac_cpp_err"; then
9752   ac_header_preproc=yes
9753 else
9754   echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9756
9757   ac_header_preproc=no
9758 fi
9759 rm -f conftest.err conftest.$ac_ext
9760 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9761 echo "${ECHO_T}$ac_header_preproc" >&6
9762
9763 # So?  What about this header?
9764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9765   yes:no: )
9766     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9767 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9768     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
9769 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
9770     ac_header_preproc=yes
9771     ;;
9772   no:yes:* )
9773     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
9774 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
9775     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
9776 echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
9777     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
9778 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
9779     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
9780 echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9781     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
9782 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
9783     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
9784 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
9785     (
9786       cat <<\_ASBOX
9787 ## ---------------------------------------- ##
9788 ## Report this to pgsql-bugs@postgresql.org ##
9789 ## ---------------------------------------- ##
9790 _ASBOX
9791     ) |
9792       sed "s/^/$as_me: WARNING:     /" >&2
9793     ;;
9794 esac
9795 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9796 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9797 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9798   echo $ECHO_N "(cached) $ECHO_C" >&6
9799 else
9800   ac_cv_header_openssl_ssl_h=$ac_header_preproc
9801 fi
9802 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9803 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9804
9805 fi
9806 if test $ac_cv_header_openssl_ssl_h = yes; then
9807   :
9808 else
9809   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
9810 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
9811    { (exit 1); exit 1; }; }
9812 fi
9813
9814
9815   if test "${ac_cv_header_openssl_err_h+set}" = set; then
9816   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
9817 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
9818 if test "${ac_cv_header_openssl_err_h+set}" = set; then
9819   echo $ECHO_N "(cached) $ECHO_C" >&6
9820 fi
9821 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
9822 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
9823 else
9824   # Is the header compilable?
9825 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
9826 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
9827 cat >conftest.$ac_ext <<_ACEOF
9828 /* confdefs.h.  */
9829 _ACEOF
9830 cat confdefs.h >>conftest.$ac_ext
9831 cat >>conftest.$ac_ext <<_ACEOF
9832 /* end confdefs.h.  */
9833 $ac_includes_default
9834 #include <openssl/err.h>
9835 _ACEOF
9836 rm -f conftest.$ac_objext
9837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9838   (eval $ac_compile) 2>conftest.er1
9839   ac_status=$?
9840   grep -v '^ *+' conftest.er1 >conftest.err
9841   rm -f conftest.er1
9842   cat conftest.err >&5
9843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844   (exit $ac_status); } &&
9845          { ac_try='test -z "$ac_c_werror_flag"
9846                          || test ! -s conftest.err'
9847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848   (eval $ac_try) 2>&5
9849   ac_status=$?
9850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851   (exit $ac_status); }; } &&
9852          { ac_try='test -s conftest.$ac_objext'
9853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854   (eval $ac_try) 2>&5
9855   ac_status=$?
9856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); }; }; then
9858   ac_header_compiler=yes
9859 else
9860   echo "$as_me: failed program was:" >&5
9861 sed 's/^/| /' conftest.$ac_ext >&5
9862
9863 ac_header_compiler=no
9864 fi
9865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9866 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9867 echo "${ECHO_T}$ac_header_compiler" >&6
9868
9869 # Is the header present?
9870 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
9871 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
9872 cat >conftest.$ac_ext <<_ACEOF
9873 /* confdefs.h.  */
9874 _ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h.  */
9878 #include <openssl/err.h>
9879 _ACEOF
9880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9881   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9882   ac_status=$?
9883   grep -v '^ *+' conftest.er1 >conftest.err
9884   rm -f conftest.er1
9885   cat conftest.err >&5
9886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887   (exit $ac_status); } >/dev/null; then
9888   if test -s conftest.err; then
9889     ac_cpp_err=$ac_c_preproc_warn_flag
9890     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9891   else
9892     ac_cpp_err=
9893   fi
9894 else
9895   ac_cpp_err=yes
9896 fi
9897 if test -z "$ac_cpp_err"; then
9898   ac_header_preproc=yes
9899 else
9900   echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9902
9903   ac_header_preproc=no
9904 fi
9905 rm -f conftest.err conftest.$ac_ext
9906 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9907 echo "${ECHO_T}$ac_header_preproc" >&6
9908
9909 # So?  What about this header?
9910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9911   yes:no: )
9912     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
9913 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9914     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
9915 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
9916     ac_header_preproc=yes
9917     ;;
9918   no:yes:* )
9919     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
9920 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
9921     { echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
9922 echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
9923     { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
9924 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
9925     { echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
9926 echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9927     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
9928 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
9929     { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
9930 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
9931     (
9932       cat <<\_ASBOX
9933 ## ---------------------------------------- ##
9934 ## Report this to pgsql-bugs@postgresql.org ##
9935 ## ---------------------------------------- ##
9936 _ASBOX
9937     ) |
9938       sed "s/^/$as_me: WARNING:     /" >&2
9939     ;;
9940 esac
9941 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
9942 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
9943 if test "${ac_cv_header_openssl_err_h+set}" = set; then
9944   echo $ECHO_N "(cached) $ECHO_C" >&6
9945 else
9946   ac_cv_header_openssl_err_h=$ac_header_preproc
9947 fi
9948 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
9949 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
9950
9951 fi
9952 if test $ac_cv_header_openssl_err_h = yes; then
9953   :
9954 else
9955   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
9956 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
9957    { (exit 1); exit 1; }; }
9958 fi
9959
9960
9961 fi
9962
9963 if test "$with_pam" = yes ; then
9964
9965 for ac_header in security/pam_appl.h
9966 do
9967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9969   echo "$as_me:$LINENO: checking for $ac_header" >&5
9970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9972   echo $ECHO_N "(cached) $ECHO_C" >&6
9973 fi
9974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9976 else
9977   # Is the header compilable?
9978 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9980 cat >conftest.$ac_ext <<_ACEOF
9981 /* confdefs.h.  */
9982 _ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h.  */
9986 $ac_includes_default
9987 #include <$ac_header>
9988 _ACEOF
9989 rm -f conftest.$ac_objext
9990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9991   (eval $ac_compile) 2>conftest.er1
9992   ac_status=$?
9993   grep -v '^ *+' conftest.er1 >conftest.err
9994   rm -f conftest.er1
9995   cat conftest.err >&5
9996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997   (exit $ac_status); } &&
9998          { ac_try='test -z "$ac_c_werror_flag"
9999                          || test ! -s conftest.err'
10000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001   (eval $ac_try) 2>&5
10002   ac_status=$?
10003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004   (exit $ac_status); }; } &&
10005          { ac_try='test -s conftest.$ac_objext'
10006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007   (eval $ac_try) 2>&5
10008   ac_status=$?
10009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010   (exit $ac_status); }; }; then
10011   ac_header_compiler=yes
10012 else
10013   echo "$as_me: failed program was:" >&5
10014 sed 's/^/| /' conftest.$ac_ext >&5
10015
10016 ac_header_compiler=no
10017 fi
10018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10019 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10020 echo "${ECHO_T}$ac_header_compiler" >&6
10021
10022 # Is the header present?
10023 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10025 cat >conftest.$ac_ext <<_ACEOF
10026 /* confdefs.h.  */
10027 _ACEOF
10028 cat confdefs.h >>conftest.$ac_ext
10029 cat >>conftest.$ac_ext <<_ACEOF
10030 /* end confdefs.h.  */
10031 #include <$ac_header>
10032 _ACEOF
10033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10034   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10035   ac_status=$?
10036   grep -v '^ *+' conftest.er1 >conftest.err
10037   rm -f conftest.er1
10038   cat conftest.err >&5
10039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040   (exit $ac_status); } >/dev/null; then
10041   if test -s conftest.err; then
10042     ac_cpp_err=$ac_c_preproc_warn_flag
10043     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10044   else
10045     ac_cpp_err=
10046   fi
10047 else
10048   ac_cpp_err=yes
10049 fi
10050 if test -z "$ac_cpp_err"; then
10051   ac_header_preproc=yes
10052 else
10053   echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10055
10056   ac_header_preproc=no
10057 fi
10058 rm -f conftest.err conftest.$ac_ext
10059 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10060 echo "${ECHO_T}$ac_header_preproc" >&6
10061
10062 # So?  What about this header?
10063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10064   yes:no: )
10065     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10067     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10068 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10069     ac_header_preproc=yes
10070     ;;
10071   no:yes:* )
10072     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10074     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10075 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10076     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10077 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10078     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10079 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10080     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10081 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10082     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10083 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10084     (
10085       cat <<\_ASBOX
10086 ## ---------------------------------------- ##
10087 ## Report this to pgsql-bugs@postgresql.org ##
10088 ## ---------------------------------------- ##
10089 _ASBOX
10090     ) |
10091       sed "s/^/$as_me: WARNING:     /" >&2
10092     ;;
10093 esac
10094 echo "$as_me:$LINENO: checking for $ac_header" >&5
10095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10097   echo $ECHO_N "(cached) $ECHO_C" >&6
10098 else
10099   eval "$as_ac_Header=\$ac_header_preproc"
10100 fi
10101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10103
10104 fi
10105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10106   cat >>confdefs.h <<_ACEOF
10107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10108 _ACEOF
10109
10110 else
10111
10112 for ac_header in pam/pam_appl.h
10113 do
10114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10116   echo "$as_me:$LINENO: checking for $ac_header" >&5
10117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10119   echo $ECHO_N "(cached) $ECHO_C" >&6
10120 fi
10121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10123 else
10124   # Is the header compilable?
10125 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10127 cat >conftest.$ac_ext <<_ACEOF
10128 /* confdefs.h.  */
10129 _ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h.  */
10133 $ac_includes_default
10134 #include <$ac_header>
10135 _ACEOF
10136 rm -f conftest.$ac_objext
10137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10138   (eval $ac_compile) 2>conftest.er1
10139   ac_status=$?
10140   grep -v '^ *+' conftest.er1 >conftest.err
10141   rm -f conftest.er1
10142   cat conftest.err >&5
10143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144   (exit $ac_status); } &&
10145          { ac_try='test -z "$ac_c_werror_flag"
10146                          || test ! -s conftest.err'
10147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148   (eval $ac_try) 2>&5
10149   ac_status=$?
10150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151   (exit $ac_status); }; } &&
10152          { ac_try='test -s conftest.$ac_objext'
10153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154   (eval $ac_try) 2>&5
10155   ac_status=$?
10156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157   (exit $ac_status); }; }; then
10158   ac_header_compiler=yes
10159 else
10160   echo "$as_me: failed program was:" >&5
10161 sed 's/^/| /' conftest.$ac_ext >&5
10162
10163 ac_header_compiler=no
10164 fi
10165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10166 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10167 echo "${ECHO_T}$ac_header_compiler" >&6
10168
10169 # Is the header present?
10170 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10172 cat >conftest.$ac_ext <<_ACEOF
10173 /* confdefs.h.  */
10174 _ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h.  */
10178 #include <$ac_header>
10179 _ACEOF
10180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10181   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10182   ac_status=$?
10183   grep -v '^ *+' conftest.er1 >conftest.err
10184   rm -f conftest.er1
10185   cat conftest.err >&5
10186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187   (exit $ac_status); } >/dev/null; then
10188   if test -s conftest.err; then
10189     ac_cpp_err=$ac_c_preproc_warn_flag
10190     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10191   else
10192     ac_cpp_err=
10193   fi
10194 else
10195   ac_cpp_err=yes
10196 fi
10197 if test -z "$ac_cpp_err"; then
10198   ac_header_preproc=yes
10199 else
10200   echo "$as_me: failed program was:" >&5
10201 sed 's/^/| /' conftest.$ac_ext >&5
10202
10203   ac_header_preproc=no
10204 fi
10205 rm -f conftest.err conftest.$ac_ext
10206 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10207 echo "${ECHO_T}$ac_header_preproc" >&6
10208
10209 # So?  What about this header?
10210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10211   yes:no: )
10212     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10216     ac_header_preproc=yes
10217     ;;
10218   no:yes:* )
10219     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10221     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10222 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10223     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10225     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10226 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10229     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10231     (
10232       cat <<\_ASBOX
10233 ## ---------------------------------------- ##
10234 ## Report this to pgsql-bugs@postgresql.org ##
10235 ## ---------------------------------------- ##
10236 _ASBOX
10237     ) |
10238       sed "s/^/$as_me: WARNING:     /" >&2
10239     ;;
10240 esac
10241 echo "$as_me:$LINENO: checking for $ac_header" >&5
10242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10244   echo $ECHO_N "(cached) $ECHO_C" >&6
10245 else
10246   eval "$as_ac_Header=\$ac_header_preproc"
10247 fi
10248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10250
10251 fi
10252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10253   cat >>confdefs.h <<_ACEOF
10254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10255 _ACEOF
10256
10257 else
10258   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
10259 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
10260    { (exit 1); exit 1; }; }
10261 fi
10262
10263 done
10264
10265 fi
10266
10267 done
10268
10269 fi
10270
10271 if test "$with_bonjour" = yes ; then
10272   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10273   echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10274 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10275 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10276   echo $ECHO_N "(cached) $ECHO_C" >&6
10277 fi
10278 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10279 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10280 else
10281   # Is the header compilable?
10282 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
10283 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
10284 cat >conftest.$ac_ext <<_ACEOF
10285 /* confdefs.h.  */
10286 _ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h.  */
10290 $ac_includes_default
10291 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10292 _ACEOF
10293 rm -f conftest.$ac_objext
10294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10295   (eval $ac_compile) 2>conftest.er1
10296   ac_status=$?
10297   grep -v '^ *+' conftest.er1 >conftest.err
10298   rm -f conftest.er1
10299   cat conftest.err >&5
10300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301   (exit $ac_status); } &&
10302          { ac_try='test -z "$ac_c_werror_flag"
10303                          || test ! -s conftest.err'
10304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305   (eval $ac_try) 2>&5
10306   ac_status=$?
10307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308   (exit $ac_status); }; } &&
10309          { ac_try='test -s conftest.$ac_objext'
10310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10311   (eval $ac_try) 2>&5
10312   ac_status=$?
10313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314   (exit $ac_status); }; }; then
10315   ac_header_compiler=yes
10316 else
10317   echo "$as_me: failed program was:" >&5
10318 sed 's/^/| /' conftest.$ac_ext >&5
10319
10320 ac_header_compiler=no
10321 fi
10322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10323 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10324 echo "${ECHO_T}$ac_header_compiler" >&6
10325
10326 # Is the header present?
10327 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
10328 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
10329 cat >conftest.$ac_ext <<_ACEOF
10330 /* confdefs.h.  */
10331 _ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h.  */
10335 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10336 _ACEOF
10337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10338   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10339   ac_status=$?
10340   grep -v '^ *+' conftest.er1 >conftest.err
10341   rm -f conftest.er1
10342   cat conftest.err >&5
10343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344   (exit $ac_status); } >/dev/null; then
10345   if test -s conftest.err; then
10346     ac_cpp_err=$ac_c_preproc_warn_flag
10347     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10348   else
10349     ac_cpp_err=
10350   fi
10351 else
10352   ac_cpp_err=yes
10353 fi
10354 if test -z "$ac_cpp_err"; then
10355   ac_header_preproc=yes
10356 else
10357   echo "$as_me: failed program was:" >&5
10358 sed 's/^/| /' conftest.$ac_ext >&5
10359
10360   ac_header_preproc=no
10361 fi
10362 rm -f conftest.err conftest.$ac_ext
10363 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10364 echo "${ECHO_T}$ac_header_preproc" >&6
10365
10366 # So?  What about this header?
10367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10368   yes:no: )
10369     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
10370 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10371     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
10372 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
10373     ac_header_preproc=yes
10374     ;;
10375   no:yes:* )
10376     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
10377 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
10378     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&5
10379 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&2;}
10380     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
10381 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
10382     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&5
10383 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10384     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
10385 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
10386     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
10387 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
10388     (
10389       cat <<\_ASBOX
10390 ## ---------------------------------------- ##
10391 ## Report this to pgsql-bugs@postgresql.org ##
10392 ## ---------------------------------------- ##
10393 _ASBOX
10394     ) |
10395       sed "s/^/$as_me: WARNING:     /" >&2
10396     ;;
10397 esac
10398 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10399 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10400 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10401   echo $ECHO_N "(cached) $ECHO_C" >&6
10402 else
10403   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
10404 fi
10405 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10406 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10407
10408 fi
10409 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
10410   :
10411 else
10412   { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
10413 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
10414    { (exit 1); exit 1; }; }
10415 fi
10416
10417
10418 fi
10419
10420
10421 ##
10422 ## Types, structures, compiler characteristics
10423 ##
10424
10425  echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10426 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10427 if test "${ac_cv_c_const+set}" = set; then
10428   echo $ECHO_N "(cached) $ECHO_C" >&6
10429 else
10430   cat >conftest.$ac_ext <<_ACEOF
10431 /* confdefs.h.  */
10432 _ACEOF
10433 cat confdefs.h >>conftest.$ac_ext
10434 cat >>conftest.$ac_ext <<_ACEOF
10435 /* end confdefs.h.  */
10436
10437 int
10438 main ()
10439 {
10440 /* FIXME: Include the comments suggested by Paul. */
10441 #ifndef __cplusplus
10442   /* Ultrix mips cc rejects this.  */
10443   typedef int charset[2];
10444   const charset x;
10445   /* SunOS 4.1.1 cc rejects this.  */
10446   char const *const *ccp;
10447   char **p;
10448   /* NEC SVR4.0.2 mips cc rejects this.  */
10449   struct point {int x, y;};
10450   static struct point const zero = {0,0};
10451   /* AIX XL C 1.02.0.0 rejects this.
10452      It does not let you subtract one const X* pointer from another in
10453      an arm of an if-expression whose if-part is not a constant
10454      expression */
10455   const char *g = "string";
10456   ccp = &g + (g ? g-g : 0);
10457   /* HPUX 7.0 cc rejects these. */
10458   ++ccp;
10459   p = (char**) ccp;
10460   ccp = (char const *const *) p;
10461   { /* SCO 3.2v4 cc rejects this.  */
10462     char *t;
10463     char const *s = 0 ? (char *) 0 : (char const *) 0;
10464
10465     *t++ = 0;
10466   }
10467   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10468     int x[] = {25, 17};
10469     const int *foo = &x[0];
10470     ++foo;
10471   }
10472   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10473     typedef const int *iptr;
10474     iptr p = 0;
10475     ++p;
10476   }
10477   { /* AIX XL C 1.02.0.0 rejects this saying
10478        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10479     struct s { int j; const int *ap[3]; };
10480     struct s *b; b->j = 5;
10481   }
10482   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10483     const int foo = 10;
10484   }
10485 #endif
10486
10487   ;
10488   return 0;
10489 }
10490 _ACEOF
10491 rm -f conftest.$ac_objext
10492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10493   (eval $ac_compile) 2>conftest.er1
10494   ac_status=$?
10495   grep -v '^ *+' conftest.er1 >conftest.err
10496   rm -f conftest.er1
10497   cat conftest.err >&5
10498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499   (exit $ac_status); } &&
10500          { ac_try='test -z "$ac_c_werror_flag"
10501                          || test ! -s conftest.err'
10502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503   (eval $ac_try) 2>&5
10504   ac_status=$?
10505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506   (exit $ac_status); }; } &&
10507          { ac_try='test -s conftest.$ac_objext'
10508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509   (eval $ac_try) 2>&5
10510   ac_status=$?
10511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512   (exit $ac_status); }; }; then
10513   ac_cv_c_const=yes
10514 else
10515   echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.$ac_ext >&5
10517
10518 ac_cv_c_const=no
10519 fi
10520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10521 fi
10522 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10523 echo "${ECHO_T}$ac_cv_c_const" >&6
10524 if test $ac_cv_c_const = no; then
10525
10526 cat >>confdefs.h <<\_ACEOF
10527 #define const
10528 _ACEOF
10529
10530 fi
10531
10532
10533 echo "$as_me:$LINENO: checking for inline" >&5
10534 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10535 if test "${ac_cv_c_inline+set}" = set; then
10536   echo $ECHO_N "(cached) $ECHO_C" >&6
10537 else
10538   ac_cv_c_inline=no
10539 for ac_kw in inline __inline__ __inline; do
10540   cat >conftest.$ac_ext <<_ACEOF
10541 /* confdefs.h.  */
10542 _ACEOF
10543 cat confdefs.h >>conftest.$ac_ext
10544 cat >>conftest.$ac_ext <<_ACEOF
10545 /* end confdefs.h.  */
10546 #ifndef __cplusplus
10547 typedef int foo_t;
10548 static $ac_kw foo_t static_foo () {return 0; }
10549 $ac_kw int foo () {return 0; }
10550 #endif
10551
10552 _ACEOF
10553 rm -f conftest.$ac_objext
10554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10555   (eval $ac_compile) 2>conftest.er1
10556   ac_status=$?
10557   grep -v '^ *+' conftest.er1 >conftest.err
10558   rm -f conftest.er1
10559   cat conftest.err >&5
10560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561   (exit $ac_status); } &&
10562          { ac_try='test -z "$ac_c_werror_flag"
10563                          || test ! -s conftest.err'
10564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10565   (eval $ac_try) 2>&5
10566   ac_status=$?
10567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568   (exit $ac_status); }; } &&
10569          { ac_try='test -s conftest.$ac_objext'
10570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571   (eval $ac_try) 2>&5
10572   ac_status=$?
10573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574   (exit $ac_status); }; }; then
10575   ac_cv_c_inline=$ac_kw; break
10576 else
10577   echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10579
10580 fi
10581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10582 done
10583
10584 fi
10585 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10586 echo "${ECHO_T}$ac_cv_c_inline" >&6
10587 case $ac_cv_c_inline in
10588   inline | yes) ;;
10589   no)
10590 cat >>confdefs.h <<\_ACEOF
10591 #define inline
10592 _ACEOF
10593  ;;
10594   *)  cat >>confdefs.h <<_ACEOF
10595 #define inline $ac_cv_c_inline
10596 _ACEOF
10597  ;;
10598 esac
10599
10600 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
10601 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
10602 if test "${ac_cv_c_stringize+set}" = set; then
10603   echo $ECHO_N "(cached) $ECHO_C" >&6
10604 else
10605   cat >conftest.$ac_ext <<_ACEOF
10606 /* confdefs.h.  */
10607 _ACEOF
10608 cat confdefs.h >>conftest.$ac_ext
10609 cat >>conftest.$ac_ext <<_ACEOF
10610 /* end confdefs.h.  */
10611 #define x(y) #y
10612
10613 char *s = x(teststring);
10614 _ACEOF
10615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10616   $EGREP "#teststring" >/dev/null 2>&1; then
10617   ac_cv_c_stringize=no
10618 else
10619   ac_cv_c_stringize=yes
10620 fi
10621 rm -f conftest*
10622
10623 fi
10624 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
10625 echo "${ECHO_T}$ac_cv_c_stringize" >&6
10626 if test $ac_cv_c_stringize = yes; then
10627
10628 cat >>confdefs.h <<\_ACEOF
10629 #define HAVE_STRINGIZE 1
10630 _ACEOF
10631
10632 fi
10633
10634 echo "$as_me:$LINENO: checking for signed types" >&5
10635 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
10636 if test "${pgac_cv_c_signed+set}" = set; then
10637   echo $ECHO_N "(cached) $ECHO_C" >&6
10638 else
10639   cat >conftest.$ac_ext <<_ACEOF
10640 /* confdefs.h.  */
10641 _ACEOF
10642 cat confdefs.h >>conftest.$ac_ext
10643 cat >>conftest.$ac_ext <<_ACEOF
10644 /* end confdefs.h.  */
10645
10646 int
10647 main ()
10648 {
10649 signed char c; signed short s; signed int i;
10650   ;
10651   return 0;
10652 }
10653 _ACEOF
10654 rm -f conftest.$ac_objext
10655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10656   (eval $ac_compile) 2>conftest.er1
10657   ac_status=$?
10658   grep -v '^ *+' conftest.er1 >conftest.err
10659   rm -f conftest.er1
10660   cat conftest.err >&5
10661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662   (exit $ac_status); } &&
10663          { ac_try='test -z "$ac_c_werror_flag"
10664                          || test ! -s conftest.err'
10665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666   (eval $ac_try) 2>&5
10667   ac_status=$?
10668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669   (exit $ac_status); }; } &&
10670          { ac_try='test -s conftest.$ac_objext'
10671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672   (eval $ac_try) 2>&5
10673   ac_status=$?
10674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675   (exit $ac_status); }; }; then
10676   pgac_cv_c_signed=yes
10677 else
10678   echo "$as_me: failed program was:" >&5
10679 sed 's/^/| /' conftest.$ac_ext >&5
10680
10681 pgac_cv_c_signed=no
10682 fi
10683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10684 fi
10685 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
10686 echo "${ECHO_T}$pgac_cv_c_signed" >&6
10687 if test x"$pgac_cv_c_signed" = xno ; then
10688
10689 cat >>confdefs.h <<\_ACEOF
10690 #define signed
10691 _ACEOF
10692
10693 fi
10694 echo "$as_me:$LINENO: checking for working volatile" >&5
10695 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10696 if test "${ac_cv_c_volatile+set}" = set; then
10697   echo $ECHO_N "(cached) $ECHO_C" >&6
10698 else
10699   cat >conftest.$ac_ext <<_ACEOF
10700 /* confdefs.h.  */
10701 _ACEOF
10702 cat confdefs.h >>conftest.$ac_ext
10703 cat >>conftest.$ac_ext <<_ACEOF
10704 /* end confdefs.h.  */
10705
10706 int
10707 main ()
10708 {
10709
10710 volatile int x;
10711 int * volatile y;
10712   ;
10713   return 0;
10714 }
10715 _ACEOF
10716 rm -f conftest.$ac_objext
10717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10718   (eval $ac_compile) 2>conftest.er1
10719   ac_status=$?
10720   grep -v '^ *+' conftest.er1 >conftest.err
10721   rm -f conftest.er1
10722   cat conftest.err >&5
10723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724   (exit $ac_status); } &&
10725          { ac_try='test -z "$ac_c_werror_flag"
10726                          || test ! -s conftest.err'
10727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728   (eval $ac_try) 2>&5
10729   ac_status=$?
10730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731   (exit $ac_status); }; } &&
10732          { ac_try='test -s conftest.$ac_objext'
10733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10734   (eval $ac_try) 2>&5
10735   ac_status=$?
10736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737   (exit $ac_status); }; }; then
10738   ac_cv_c_volatile=yes
10739 else
10740   echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.$ac_ext >&5
10742
10743 ac_cv_c_volatile=no
10744 fi
10745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10746 fi
10747 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10748 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10749 if test $ac_cv_c_volatile = no; then
10750
10751 cat >>confdefs.h <<\_ACEOF
10752 #define volatile
10753 _ACEOF
10754
10755 fi
10756
10757 echo "$as_me:$LINENO: checking for __func__" >&5
10758 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
10759 if test "${pgac_cv_funcname_func_support+set}" = set; then
10760   echo $ECHO_N "(cached) $ECHO_C" >&6
10761 else
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 #include <stdio.h>
10769 int
10770 main ()
10771 {
10772 printf("%s\n", __func__);
10773   ;
10774   return 0;
10775 }
10776 _ACEOF
10777 rm -f conftest.$ac_objext
10778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10779   (eval $ac_compile) 2>conftest.er1
10780   ac_status=$?
10781   grep -v '^ *+' conftest.er1 >conftest.err
10782   rm -f conftest.er1
10783   cat conftest.err >&5
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); } &&
10786          { ac_try='test -z "$ac_c_werror_flag"
10787                          || test ! -s conftest.err'
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); }; } &&
10793          { ac_try='test -s conftest.$ac_objext'
10794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795   (eval $ac_try) 2>&5
10796   ac_status=$?
10797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798   (exit $ac_status); }; }; then
10799   pgac_cv_funcname_func_support=yes
10800 else
10801   echo "$as_me: failed program was:" >&5
10802 sed 's/^/| /' conftest.$ac_ext >&5
10803
10804 pgac_cv_funcname_func_support=no
10805 fi
10806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10807 fi
10808 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
10809 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
10810 if test x"$pgac_cv_funcname_func_support" = xyes ; then
10811
10812 cat >>confdefs.h <<\_ACEOF
10813 #define HAVE_FUNCNAME__FUNC 1
10814 _ACEOF
10815
10816 else
10817 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
10818 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
10819 if test "${pgac_cv_funcname_function_support+set}" = set; then
10820   echo $ECHO_N "(cached) $ECHO_C" >&6
10821 else
10822   cat >conftest.$ac_ext <<_ACEOF
10823 /* confdefs.h.  */
10824 _ACEOF
10825 cat confdefs.h >>conftest.$ac_ext
10826 cat >>conftest.$ac_ext <<_ACEOF
10827 /* end confdefs.h.  */
10828 #include <stdio.h>
10829 int
10830 main ()
10831 {
10832 printf("%s\n", __FUNCTION__);
10833   ;
10834   return 0;
10835 }
10836 _ACEOF
10837 rm -f conftest.$ac_objext
10838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10839   (eval $ac_compile) 2>conftest.er1
10840   ac_status=$?
10841   grep -v '^ *+' conftest.er1 >conftest.err
10842   rm -f conftest.er1
10843   cat conftest.err >&5
10844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845   (exit $ac_status); } &&
10846          { ac_try='test -z "$ac_c_werror_flag"
10847                          || test ! -s conftest.err'
10848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10849   (eval $ac_try) 2>&5
10850   ac_status=$?
10851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852   (exit $ac_status); }; } &&
10853          { ac_try='test -s conftest.$ac_objext'
10854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10855   (eval $ac_try) 2>&5
10856   ac_status=$?
10857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858   (exit $ac_status); }; }; then
10859   pgac_cv_funcname_function_support=yes
10860 else
10861   echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10863
10864 pgac_cv_funcname_function_support=no
10865 fi
10866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10867 fi
10868 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
10869 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
10870 if test x"$pgac_cv_funcname_function_support" = xyes ; then
10871
10872 cat >>confdefs.h <<\_ACEOF
10873 #define HAVE_FUNCNAME__FUNCTION 1
10874 _ACEOF
10875
10876 fi
10877 fi
10878 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10879 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10880 if test "${ac_cv_struct_tm+set}" = set; then
10881   echo $ECHO_N "(cached) $ECHO_C" >&6
10882 else
10883   cat >conftest.$ac_ext <<_ACEOF
10884 /* confdefs.h.  */
10885 _ACEOF
10886 cat confdefs.h >>conftest.$ac_ext
10887 cat >>conftest.$ac_ext <<_ACEOF
10888 /* end confdefs.h.  */
10889 #include <sys/types.h>
10890 #include <time.h>
10891
10892 int
10893 main ()
10894 {
10895 struct tm *tp; tp->tm_sec;
10896   ;
10897   return 0;
10898 }
10899 _ACEOF
10900 rm -f conftest.$ac_objext
10901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10902   (eval $ac_compile) 2>conftest.er1
10903   ac_status=$?
10904   grep -v '^ *+' conftest.er1 >conftest.err
10905   rm -f conftest.er1
10906   cat conftest.err >&5
10907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908   (exit $ac_status); } &&
10909          { ac_try='test -z "$ac_c_werror_flag"
10910                          || test ! -s conftest.err'
10911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912   (eval $ac_try) 2>&5
10913   ac_status=$?
10914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915   (exit $ac_status); }; } &&
10916          { ac_try='test -s conftest.$ac_objext'
10917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10918   (eval $ac_try) 2>&5
10919   ac_status=$?
10920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921   (exit $ac_status); }; }; then
10922   ac_cv_struct_tm=time.h
10923 else
10924   echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10926
10927 ac_cv_struct_tm=sys/time.h
10928 fi
10929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10930 fi
10931 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10932 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10933 if test $ac_cv_struct_tm = sys/time.h; then
10934
10935 cat >>confdefs.h <<\_ACEOF
10936 #define TM_IN_SYS_TIME 1
10937 _ACEOF
10938
10939 fi
10940
10941 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10942 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10943 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10944   echo $ECHO_N "(cached) $ECHO_C" >&6
10945 else
10946   cat >conftest.$ac_ext <<_ACEOF
10947 /* confdefs.h.  */
10948 _ACEOF
10949 cat confdefs.h >>conftest.$ac_ext
10950 cat >>conftest.$ac_ext <<_ACEOF
10951 /* end confdefs.h.  */
10952 #include <sys/types.h>
10953 #include <$ac_cv_struct_tm>
10954
10955
10956 int
10957 main ()
10958 {
10959 static struct tm ac_aggr;
10960 if (ac_aggr.tm_zone)
10961 return 0;
10962   ;
10963   return 0;
10964 }
10965 _ACEOF
10966 rm -f conftest.$ac_objext
10967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10968   (eval $ac_compile) 2>conftest.er1
10969   ac_status=$?
10970   grep -v '^ *+' conftest.er1 >conftest.err
10971   rm -f conftest.er1
10972   cat conftest.err >&5
10973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974   (exit $ac_status); } &&
10975          { ac_try='test -z "$ac_c_werror_flag"
10976                          || test ! -s conftest.err'
10977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10978   (eval $ac_try) 2>&5
10979   ac_status=$?
10980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981   (exit $ac_status); }; } &&
10982          { ac_try='test -s conftest.$ac_objext'
10983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10984   (eval $ac_try) 2>&5
10985   ac_status=$?
10986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987   (exit $ac_status); }; }; then
10988   ac_cv_member_struct_tm_tm_zone=yes
10989 else
10990   echo "$as_me: failed program was:" >&5
10991 sed 's/^/| /' conftest.$ac_ext >&5
10992
10993 cat >conftest.$ac_ext <<_ACEOF
10994 /* confdefs.h.  */
10995 _ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h.  */
10999 #include <sys/types.h>
11000 #include <$ac_cv_struct_tm>
11001
11002
11003 int
11004 main ()
11005 {
11006 static struct tm ac_aggr;
11007 if (sizeof ac_aggr.tm_zone)
11008 return 0;
11009   ;
11010   return 0;
11011 }
11012 _ACEOF
11013 rm -f conftest.$ac_objext
11014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11015   (eval $ac_compile) 2>conftest.er1
11016   ac_status=$?
11017   grep -v '^ *+' conftest.er1 >conftest.err
11018   rm -f conftest.er1
11019   cat conftest.err >&5
11020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021   (exit $ac_status); } &&
11022          { ac_try='test -z "$ac_c_werror_flag"
11023                          || test ! -s conftest.err'
11024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025   (eval $ac_try) 2>&5
11026   ac_status=$?
11027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028   (exit $ac_status); }; } &&
11029          { ac_try='test -s conftest.$ac_objext'
11030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11031   (eval $ac_try) 2>&5
11032   ac_status=$?
11033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034   (exit $ac_status); }; }; then
11035   ac_cv_member_struct_tm_tm_zone=yes
11036 else
11037   echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11039
11040 ac_cv_member_struct_tm_tm_zone=no
11041 fi
11042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11043 fi
11044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11045 fi
11046 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11047 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11048 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11049
11050 cat >>confdefs.h <<_ACEOF
11051 #define HAVE_STRUCT_TM_TM_ZONE 1
11052 _ACEOF
11053
11054
11055 fi
11056
11057 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11058
11059 cat >>confdefs.h <<\_ACEOF
11060 #define HAVE_TM_ZONE 1
11061 _ACEOF
11062
11063 fi
11064 echo "$as_me:$LINENO: checking for tzname" >&5
11065 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11066 if test "${ac_cv_var_tzname+set}" = set; then
11067   echo $ECHO_N "(cached) $ECHO_C" >&6
11068 else
11069   cat >conftest.$ac_ext <<_ACEOF
11070 /* confdefs.h.  */
11071 _ACEOF
11072 cat confdefs.h >>conftest.$ac_ext
11073 cat >>conftest.$ac_ext <<_ACEOF
11074 /* end confdefs.h.  */
11075 #include <time.h>
11076 #ifndef tzname /* For SGI.  */
11077 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
11078 #endif
11079
11080 int
11081 main ()
11082 {
11083 atoi(*tzname);
11084   ;
11085   return 0;
11086 }
11087 _ACEOF
11088 rm -f conftest.$ac_objext conftest$ac_exeext
11089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11090   (eval $ac_link) 2>conftest.er1
11091   ac_status=$?
11092   grep -v '^ *+' conftest.er1 >conftest.err
11093   rm -f conftest.er1
11094   cat conftest.err >&5
11095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096   (exit $ac_status); } &&
11097          { ac_try='test -z "$ac_c_werror_flag"
11098                          || test ! -s conftest.err'
11099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100   (eval $ac_try) 2>&5
11101   ac_status=$?
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); }; } &&
11104          { ac_try='test -s conftest$ac_exeext'
11105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106   (eval $ac_try) 2>&5
11107   ac_status=$?
11108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109   (exit $ac_status); }; }; then
11110   ac_cv_var_tzname=yes
11111 else
11112   echo "$as_me: failed program was:" >&5
11113 sed 's/^/| /' conftest.$ac_ext >&5
11114
11115 ac_cv_var_tzname=no
11116 fi
11117 rm -f conftest.err conftest.$ac_objext \
11118       conftest$ac_exeext conftest.$ac_ext
11119 fi
11120 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11121 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11122 if test $ac_cv_var_tzname = yes; then
11123
11124 cat >>confdefs.h <<\_ACEOF
11125 #define HAVE_TZNAME 1
11126 _ACEOF
11127
11128 fi
11129
11130 echo "$as_me:$LINENO: checking for union semun" >&5
11131 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
11132 if test "${ac_cv_type_union_semun+set}" = set; then
11133   echo $ECHO_N "(cached) $ECHO_C" >&6
11134 else
11135   cat >conftest.$ac_ext <<_ACEOF
11136 /* confdefs.h.  */
11137 _ACEOF
11138 cat confdefs.h >>conftest.$ac_ext
11139 cat >>conftest.$ac_ext <<_ACEOF
11140 /* end confdefs.h.  */
11141 #include <sys/types.h>
11142 #include <sys/ipc.h>
11143 #include <sys/sem.h>
11144
11145 int
11146 main ()
11147 {
11148 if ((union semun *) 0)
11149   return 0;
11150 if (sizeof (union semun))
11151   return 0;
11152   ;
11153   return 0;
11154 }
11155 _ACEOF
11156 rm -f conftest.$ac_objext
11157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11158   (eval $ac_compile) 2>conftest.er1
11159   ac_status=$?
11160   grep -v '^ *+' conftest.er1 >conftest.err
11161   rm -f conftest.er1
11162   cat conftest.err >&5
11163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164   (exit $ac_status); } &&
11165          { ac_try='test -z "$ac_c_werror_flag"
11166                          || test ! -s conftest.err'
11167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11168   (eval $ac_try) 2>&5
11169   ac_status=$?
11170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171   (exit $ac_status); }; } &&
11172          { ac_try='test -s conftest.$ac_objext'
11173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174   (eval $ac_try) 2>&5
11175   ac_status=$?
11176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177   (exit $ac_status); }; }; then
11178   ac_cv_type_union_semun=yes
11179 else
11180   echo "$as_me: failed program was:" >&5
11181 sed 's/^/| /' conftest.$ac_ext >&5
11182
11183 ac_cv_type_union_semun=no
11184 fi
11185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11186 fi
11187 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
11188 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
11189 if test $ac_cv_type_union_semun = yes; then
11190
11191 cat >>confdefs.h <<_ACEOF
11192 #define HAVE_UNION_SEMUN 1
11193 _ACEOF
11194
11195
11196 fi
11197
11198 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
11199 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
11200 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
11201   echo $ECHO_N "(cached) $ECHO_C" >&6
11202 else
11203   cat >conftest.$ac_ext <<_ACEOF
11204 /* confdefs.h.  */
11205 _ACEOF
11206 cat confdefs.h >>conftest.$ac_ext
11207 cat >>conftest.$ac_ext <<_ACEOF
11208 /* end confdefs.h.  */
11209 #include <sys/types.h>
11210 #ifdef HAVE_SYS_UN_H
11211 #include <sys/un.h>
11212 #endif
11213
11214
11215 int
11216 main ()
11217 {
11218 if ((struct sockaddr_un *) 0)
11219   return 0;
11220 if (sizeof (struct sockaddr_un))
11221   return 0;
11222   ;
11223   return 0;
11224 }
11225 _ACEOF
11226 rm -f conftest.$ac_objext
11227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11228   (eval $ac_compile) 2>conftest.er1
11229   ac_status=$?
11230   grep -v '^ *+' conftest.er1 >conftest.err
11231   rm -f conftest.er1
11232   cat conftest.err >&5
11233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234   (exit $ac_status); } &&
11235          { ac_try='test -z "$ac_c_werror_flag"
11236                          || test ! -s conftest.err'
11237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238   (eval $ac_try) 2>&5
11239   ac_status=$?
11240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241   (exit $ac_status); }; } &&
11242          { ac_try='test -s conftest.$ac_objext'
11243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244   (eval $ac_try) 2>&5
11245   ac_status=$?
11246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247   (exit $ac_status); }; }; then
11248   ac_cv_type_struct_sockaddr_un=yes
11249 else
11250   echo "$as_me: failed program was:" >&5
11251 sed 's/^/| /' conftest.$ac_ext >&5
11252
11253 ac_cv_type_struct_sockaddr_un=no
11254 fi
11255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11256 fi
11257 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
11258 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
11259 if test $ac_cv_type_struct_sockaddr_un = yes; then
11260
11261 cat >>confdefs.h <<_ACEOF
11262 #define HAVE_STRUCT_SOCKADDR_UN 1
11263 _ACEOF
11264
11265
11266 cat >>confdefs.h <<\_ACEOF
11267 #define HAVE_UNIX_SOCKETS 1
11268 _ACEOF
11269
11270 fi
11271
11272 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
11273 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
11274 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
11275   echo $ECHO_N "(cached) $ECHO_C" >&6
11276 else
11277   cat >conftest.$ac_ext <<_ACEOF
11278 /* confdefs.h.  */
11279 _ACEOF
11280 cat confdefs.h >>conftest.$ac_ext
11281 cat >>conftest.$ac_ext <<_ACEOF
11282 /* end confdefs.h.  */
11283 #include <sys/types.h>
11284 #ifdef HAVE_SYS_SOCKET_H
11285 #include <sys/socket.h>
11286 #endif
11287
11288
11289 int
11290 main ()
11291 {
11292 if ((struct sockaddr_storage *) 0)
11293   return 0;
11294 if (sizeof (struct sockaddr_storage))
11295   return 0;
11296   ;
11297   return 0;
11298 }
11299 _ACEOF
11300 rm -f conftest.$ac_objext
11301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11302   (eval $ac_compile) 2>conftest.er1
11303   ac_status=$?
11304   grep -v '^ *+' conftest.er1 >conftest.err
11305   rm -f conftest.er1
11306   cat conftest.err >&5
11307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308   (exit $ac_status); } &&
11309          { ac_try='test -z "$ac_c_werror_flag"
11310                          || test ! -s conftest.err'
11311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11312   (eval $ac_try) 2>&5
11313   ac_status=$?
11314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315   (exit $ac_status); }; } &&
11316          { ac_try='test -s conftest.$ac_objext'
11317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318   (eval $ac_try) 2>&5
11319   ac_status=$?
11320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321   (exit $ac_status); }; }; then
11322   ac_cv_type_struct_sockaddr_storage=yes
11323 else
11324   echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11326
11327 ac_cv_type_struct_sockaddr_storage=no
11328 fi
11329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11330 fi
11331 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
11332 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
11333 if test $ac_cv_type_struct_sockaddr_storage = yes; then
11334
11335 cat >>confdefs.h <<_ACEOF
11336 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11337 _ACEOF
11338
11339
11340 fi
11341
11342 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
11343 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
11344 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
11345   echo $ECHO_N "(cached) $ECHO_C" >&6
11346 else
11347   cat >conftest.$ac_ext <<_ACEOF
11348 /* confdefs.h.  */
11349 _ACEOF
11350 cat confdefs.h >>conftest.$ac_ext
11351 cat >>conftest.$ac_ext <<_ACEOF
11352 /* end confdefs.h.  */
11353 #include <sys/types.h>
11354 #ifdef HAVE_SYS_SOCKET_H
11355 #include <sys/socket.h>
11356 #endif
11357
11358
11359 int
11360 main ()
11361 {
11362 static struct sockaddr_storage ac_aggr;
11363 if (ac_aggr.ss_family)
11364 return 0;
11365   ;
11366   return 0;
11367 }
11368 _ACEOF
11369 rm -f conftest.$ac_objext
11370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11371   (eval $ac_compile) 2>conftest.er1
11372   ac_status=$?
11373   grep -v '^ *+' conftest.er1 >conftest.err
11374   rm -f conftest.er1
11375   cat conftest.err >&5
11376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377   (exit $ac_status); } &&
11378          { ac_try='test -z "$ac_c_werror_flag"
11379                          || test ! -s conftest.err'
11380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11381   (eval $ac_try) 2>&5
11382   ac_status=$?
11383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384   (exit $ac_status); }; } &&
11385          { ac_try='test -s conftest.$ac_objext'
11386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11387   (eval $ac_try) 2>&5
11388   ac_status=$?
11389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390   (exit $ac_status); }; }; then
11391   ac_cv_member_struct_sockaddr_storage_ss_family=yes
11392 else
11393   echo "$as_me: failed program was:" >&5
11394 sed 's/^/| /' conftest.$ac_ext >&5
11395
11396 cat >conftest.$ac_ext <<_ACEOF
11397 /* confdefs.h.  */
11398 _ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h.  */
11402 #include <sys/types.h>
11403 #ifdef HAVE_SYS_SOCKET_H
11404 #include <sys/socket.h>
11405 #endif
11406
11407
11408 int
11409 main ()
11410 {
11411 static struct sockaddr_storage ac_aggr;
11412 if (sizeof ac_aggr.ss_family)
11413 return 0;
11414   ;
11415   return 0;
11416 }
11417 _ACEOF
11418 rm -f conftest.$ac_objext
11419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11420   (eval $ac_compile) 2>conftest.er1
11421   ac_status=$?
11422   grep -v '^ *+' conftest.er1 >conftest.err
11423   rm -f conftest.er1
11424   cat conftest.err >&5
11425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426   (exit $ac_status); } &&
11427          { ac_try='test -z "$ac_c_werror_flag"
11428                          || test ! -s conftest.err'
11429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430   (eval $ac_try) 2>&5
11431   ac_status=$?
11432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433   (exit $ac_status); }; } &&
11434          { ac_try='test -s conftest.$ac_objext'
11435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436   (eval $ac_try) 2>&5
11437   ac_status=$?
11438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439   (exit $ac_status); }; }; then
11440   ac_cv_member_struct_sockaddr_storage_ss_family=yes
11441 else
11442   echo "$as_me: failed program was:" >&5
11443 sed 's/^/| /' conftest.$ac_ext >&5
11444
11445 ac_cv_member_struct_sockaddr_storage_ss_family=no
11446 fi
11447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11448 fi
11449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11450 fi
11451 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
11452 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
11453 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
11454
11455 cat >>confdefs.h <<_ACEOF
11456 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
11457 _ACEOF
11458
11459
11460 fi
11461 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
11462 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
11463 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
11464   echo $ECHO_N "(cached) $ECHO_C" >&6
11465 else
11466   cat >conftest.$ac_ext <<_ACEOF
11467 /* confdefs.h.  */
11468 _ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h.  */
11472 #include <sys/types.h>
11473 #ifdef HAVE_SYS_SOCKET_H
11474 #include <sys/socket.h>
11475 #endif
11476
11477
11478 int
11479 main ()
11480 {
11481 static struct sockaddr_storage ac_aggr;
11482 if (ac_aggr.__ss_family)
11483 return 0;
11484   ;
11485   return 0;
11486 }
11487 _ACEOF
11488 rm -f conftest.$ac_objext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11490   (eval $ac_compile) 2>conftest.er1
11491   ac_status=$?
11492   grep -v '^ *+' conftest.er1 >conftest.err
11493   rm -f conftest.er1
11494   cat conftest.err >&5
11495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496   (exit $ac_status); } &&
11497          { ac_try='test -z "$ac_c_werror_flag"
11498                          || test ! -s conftest.err'
11499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500   (eval $ac_try) 2>&5
11501   ac_status=$?
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); }; } &&
11504          { ac_try='test -s conftest.$ac_objext'
11505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506   (eval $ac_try) 2>&5
11507   ac_status=$?
11508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509   (exit $ac_status); }; }; then
11510   ac_cv_member_struct_sockaddr_storage___ss_family=yes
11511 else
11512   echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11514
11515 cat >conftest.$ac_ext <<_ACEOF
11516 /* confdefs.h.  */
11517 _ACEOF
11518 cat confdefs.h >>conftest.$ac_ext
11519 cat >>conftest.$ac_ext <<_ACEOF
11520 /* end confdefs.h.  */
11521 #include <sys/types.h>
11522 #ifdef HAVE_SYS_SOCKET_H
11523 #include <sys/socket.h>
11524 #endif
11525
11526
11527 int
11528 main ()
11529 {
11530 static struct sockaddr_storage ac_aggr;
11531 if (sizeof ac_aggr.__ss_family)
11532 return 0;
11533   ;
11534   return 0;
11535 }
11536 _ACEOF
11537 rm -f conftest.$ac_objext
11538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11539   (eval $ac_compile) 2>conftest.er1
11540   ac_status=$?
11541   grep -v '^ *+' conftest.er1 >conftest.err
11542   rm -f conftest.er1
11543   cat conftest.err >&5
11544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545   (exit $ac_status); } &&
11546          { ac_try='test -z "$ac_c_werror_flag"
11547                          || test ! -s conftest.err'
11548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549   (eval $ac_try) 2>&5
11550   ac_status=$?
11551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552   (exit $ac_status); }; } &&
11553          { ac_try='test -s conftest.$ac_objext'
11554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11555   (eval $ac_try) 2>&5
11556   ac_status=$?
11557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558   (exit $ac_status); }; }; then
11559   ac_cv_member_struct_sockaddr_storage___ss_family=yes
11560 else
11561   echo "$as_me: failed program was:" >&5
11562 sed 's/^/| /' conftest.$ac_ext >&5
11563
11564 ac_cv_member_struct_sockaddr_storage___ss_family=no
11565 fi
11566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11567 fi
11568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11569 fi
11570 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
11571 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
11572 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
11573
11574 cat >>confdefs.h <<_ACEOF
11575 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
11576 _ACEOF
11577
11578
11579 fi
11580 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
11581 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
11582 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
11583   echo $ECHO_N "(cached) $ECHO_C" >&6
11584 else
11585   cat >conftest.$ac_ext <<_ACEOF
11586 /* confdefs.h.  */
11587 _ACEOF
11588 cat confdefs.h >>conftest.$ac_ext
11589 cat >>conftest.$ac_ext <<_ACEOF
11590 /* end confdefs.h.  */
11591 #include <sys/types.h>
11592 #ifdef HAVE_SYS_SOCKET_H
11593 #include <sys/socket.h>
11594 #endif
11595
11596
11597 int
11598 main ()
11599 {
11600 static struct sockaddr_storage ac_aggr;
11601 if (ac_aggr.ss_len)
11602 return 0;
11603   ;
11604   return 0;
11605 }
11606 _ACEOF
11607 rm -f conftest.$ac_objext
11608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11609   (eval $ac_compile) 2>conftest.er1
11610   ac_status=$?
11611   grep -v '^ *+' conftest.er1 >conftest.err
11612   rm -f conftest.er1
11613   cat conftest.err >&5
11614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615   (exit $ac_status); } &&
11616          { ac_try='test -z "$ac_c_werror_flag"
11617                          || test ! -s conftest.err'
11618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11619   (eval $ac_try) 2>&5
11620   ac_status=$?
11621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622   (exit $ac_status); }; } &&
11623          { ac_try='test -s conftest.$ac_objext'
11624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11625   (eval $ac_try) 2>&5
11626   ac_status=$?
11627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628   (exit $ac_status); }; }; then
11629   ac_cv_member_struct_sockaddr_storage_ss_len=yes
11630 else
11631   echo "$as_me: failed program was:" >&5
11632 sed 's/^/| /' conftest.$ac_ext >&5
11633
11634 cat >conftest.$ac_ext <<_ACEOF
11635 /* confdefs.h.  */
11636 _ACEOF
11637 cat confdefs.h >>conftest.$ac_ext
11638 cat >>conftest.$ac_ext <<_ACEOF
11639 /* end confdefs.h.  */
11640 #include <sys/types.h>
11641 #ifdef HAVE_SYS_SOCKET_H
11642 #include <sys/socket.h>
11643 #endif
11644
11645
11646 int
11647 main ()
11648 {
11649 static struct sockaddr_storage ac_aggr;
11650 if (sizeof ac_aggr.ss_len)
11651 return 0;
11652   ;
11653   return 0;
11654 }
11655 _ACEOF
11656 rm -f conftest.$ac_objext
11657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11658   (eval $ac_compile) 2>conftest.er1
11659   ac_status=$?
11660   grep -v '^ *+' conftest.er1 >conftest.err
11661   rm -f conftest.er1
11662   cat conftest.err >&5
11663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664   (exit $ac_status); } &&
11665          { ac_try='test -z "$ac_c_werror_flag"
11666                          || test ! -s conftest.err'
11667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668   (eval $ac_try) 2>&5
11669   ac_status=$?
11670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671   (exit $ac_status); }; } &&
11672          { ac_try='test -s conftest.$ac_objext'
11673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674   (eval $ac_try) 2>&5
11675   ac_status=$?
11676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677   (exit $ac_status); }; }; then
11678   ac_cv_member_struct_sockaddr_storage_ss_len=yes
11679 else
11680   echo "$as_me: failed program was:" >&5
11681 sed 's/^/| /' conftest.$ac_ext >&5
11682
11683 ac_cv_member_struct_sockaddr_storage_ss_len=no
11684 fi
11685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11686 fi
11687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11688 fi
11689 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
11690 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
11691 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
11692
11693 cat >>confdefs.h <<_ACEOF
11694 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
11695 _ACEOF
11696
11697
11698 fi
11699 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
11700 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
11701 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
11702   echo $ECHO_N "(cached) $ECHO_C" >&6
11703 else
11704   cat >conftest.$ac_ext <<_ACEOF
11705 /* confdefs.h.  */
11706 _ACEOF
11707 cat confdefs.h >>conftest.$ac_ext
11708 cat >>conftest.$ac_ext <<_ACEOF
11709 /* end confdefs.h.  */
11710 #include <sys/types.h>
11711 #ifdef HAVE_SYS_SOCKET_H
11712 #include <sys/socket.h>
11713 #endif
11714
11715
11716 int
11717 main ()
11718 {
11719 static struct sockaddr_storage ac_aggr;
11720 if (ac_aggr.__ss_len)
11721 return 0;
11722   ;
11723   return 0;
11724 }
11725 _ACEOF
11726 rm -f conftest.$ac_objext
11727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11728   (eval $ac_compile) 2>conftest.er1
11729   ac_status=$?
11730   grep -v '^ *+' conftest.er1 >conftest.err
11731   rm -f conftest.er1
11732   cat conftest.err >&5
11733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734   (exit $ac_status); } &&
11735          { ac_try='test -z "$ac_c_werror_flag"
11736                          || test ! -s conftest.err'
11737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738   (eval $ac_try) 2>&5
11739   ac_status=$?
11740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741   (exit $ac_status); }; } &&
11742          { ac_try='test -s conftest.$ac_objext'
11743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11744   (eval $ac_try) 2>&5
11745   ac_status=$?
11746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747   (exit $ac_status); }; }; then
11748   ac_cv_member_struct_sockaddr_storage___ss_len=yes
11749 else
11750   echo "$as_me: failed program was:" >&5
11751 sed 's/^/| /' conftest.$ac_ext >&5
11752
11753 cat >conftest.$ac_ext <<_ACEOF
11754 /* confdefs.h.  */
11755 _ACEOF
11756 cat confdefs.h >>conftest.$ac_ext
11757 cat >>conftest.$ac_ext <<_ACEOF
11758 /* end confdefs.h.  */
11759 #include <sys/types.h>
11760 #ifdef HAVE_SYS_SOCKET_H
11761 #include <sys/socket.h>
11762 #endif
11763
11764
11765 int
11766 main ()
11767 {
11768 static struct sockaddr_storage ac_aggr;
11769 if (sizeof ac_aggr.__ss_len)
11770 return 0;
11771   ;
11772   return 0;
11773 }
11774 _ACEOF
11775 rm -f conftest.$ac_objext
11776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11777   (eval $ac_compile) 2>conftest.er1
11778   ac_status=$?
11779   grep -v '^ *+' conftest.er1 >conftest.err
11780   rm -f conftest.er1
11781   cat conftest.err >&5
11782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783   (exit $ac_status); } &&
11784          { ac_try='test -z "$ac_c_werror_flag"
11785                          || test ! -s conftest.err'
11786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787   (eval $ac_try) 2>&5
11788   ac_status=$?
11789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790   (exit $ac_status); }; } &&
11791          { ac_try='test -s conftest.$ac_objext'
11792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793   (eval $ac_try) 2>&5
11794   ac_status=$?
11795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796   (exit $ac_status); }; }; then
11797   ac_cv_member_struct_sockaddr_storage___ss_len=yes
11798 else
11799   echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11801
11802 ac_cv_member_struct_sockaddr_storage___ss_len=no
11803 fi
11804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11805 fi
11806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11807 fi
11808 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
11809 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
11810 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
11811
11812 cat >>confdefs.h <<_ACEOF
11813 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
11814 _ACEOF
11815
11816
11817 fi
11818 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
11819 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
11820 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
11821   echo $ECHO_N "(cached) $ECHO_C" >&6
11822 else
11823   cat >conftest.$ac_ext <<_ACEOF
11824 /* confdefs.h.  */
11825 _ACEOF
11826 cat confdefs.h >>conftest.$ac_ext
11827 cat >>conftest.$ac_ext <<_ACEOF
11828 /* end confdefs.h.  */
11829 #include <sys/types.h>
11830 #ifdef HAVE_SYS_SOCKET_H
11831 #include <sys/socket.h>
11832 #endif
11833
11834
11835 int
11836 main ()
11837 {
11838 static struct sockaddr ac_aggr;
11839 if (ac_aggr.sa_len)
11840 return 0;
11841   ;
11842   return 0;
11843 }
11844 _ACEOF
11845 rm -f conftest.$ac_objext
11846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11847   (eval $ac_compile) 2>conftest.er1
11848   ac_status=$?
11849   grep -v '^ *+' conftest.er1 >conftest.err
11850   rm -f conftest.er1
11851   cat conftest.err >&5
11852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853   (exit $ac_status); } &&
11854          { ac_try='test -z "$ac_c_werror_flag"
11855                          || test ! -s conftest.err'
11856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11857   (eval $ac_try) 2>&5
11858   ac_status=$?
11859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860   (exit $ac_status); }; } &&
11861          { ac_try='test -s conftest.$ac_objext'
11862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863   (eval $ac_try) 2>&5
11864   ac_status=$?
11865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866   (exit $ac_status); }; }; then
11867   ac_cv_member_struct_sockaddr_sa_len=yes
11868 else
11869   echo "$as_me: failed program was:" >&5
11870 sed 's/^/| /' conftest.$ac_ext >&5
11871
11872 cat >conftest.$ac_ext <<_ACEOF
11873 /* confdefs.h.  */
11874 _ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h.  */
11878 #include <sys/types.h>
11879 #ifdef HAVE_SYS_SOCKET_H
11880 #include <sys/socket.h>
11881 #endif
11882
11883
11884 int
11885 main ()
11886 {
11887 static struct sockaddr ac_aggr;
11888 if (sizeof ac_aggr.sa_len)
11889 return 0;
11890   ;
11891   return 0;
11892 }
11893 _ACEOF
11894 rm -f conftest.$ac_objext
11895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11896   (eval $ac_compile) 2>conftest.er1
11897   ac_status=$?
11898   grep -v '^ *+' conftest.er1 >conftest.err
11899   rm -f conftest.er1
11900   cat conftest.err >&5
11901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902   (exit $ac_status); } &&
11903          { ac_try='test -z "$ac_c_werror_flag"
11904                          || test ! -s conftest.err'
11905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906   (eval $ac_try) 2>&5
11907   ac_status=$?
11908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909   (exit $ac_status); }; } &&
11910          { ac_try='test -s conftest.$ac_objext'
11911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912   (eval $ac_try) 2>&5
11913   ac_status=$?
11914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); }; }; then
11916   ac_cv_member_struct_sockaddr_sa_len=yes
11917 else
11918   echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11920
11921 ac_cv_member_struct_sockaddr_sa_len=no
11922 fi
11923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11924 fi
11925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11926 fi
11927 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
11928 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
11929 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
11930
11931 cat >>confdefs.h <<_ACEOF
11932 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
11933 _ACEOF
11934
11935
11936 fi
11937
11938 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
11939 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
11940 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
11941   echo $ECHO_N "(cached) $ECHO_C" >&6
11942 else
11943   cat >conftest.$ac_ext <<_ACEOF
11944 /* confdefs.h.  */
11945 _ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h.  */
11949 #include <sys/types.h>
11950 #include <sys/socket.h>
11951 #include <netdb.h>
11952
11953
11954 int
11955 main ()
11956 {
11957 if ((struct addrinfo *) 0)
11958   return 0;
11959 if (sizeof (struct addrinfo))
11960   return 0;
11961   ;
11962   return 0;
11963 }
11964 _ACEOF
11965 rm -f conftest.$ac_objext
11966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11967   (eval $ac_compile) 2>conftest.er1
11968   ac_status=$?
11969   grep -v '^ *+' conftest.er1 >conftest.err
11970   rm -f conftest.er1
11971   cat conftest.err >&5
11972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973   (exit $ac_status); } &&
11974          { ac_try='test -z "$ac_c_werror_flag"
11975                          || test ! -s conftest.err'
11976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977   (eval $ac_try) 2>&5
11978   ac_status=$?
11979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980   (exit $ac_status); }; } &&
11981          { ac_try='test -s conftest.$ac_objext'
11982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983   (eval $ac_try) 2>&5
11984   ac_status=$?
11985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986   (exit $ac_status); }; }; then
11987   ac_cv_type_struct_addrinfo=yes
11988 else
11989   echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.$ac_ext >&5
11991
11992 ac_cv_type_struct_addrinfo=no
11993 fi
11994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11995 fi
11996 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
11997 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
11998 if test $ac_cv_type_struct_addrinfo = yes; then
11999
12000 cat >>confdefs.h <<_ACEOF
12001 #define HAVE_STRUCT_ADDRINFO 1
12002 _ACEOF
12003
12004
12005 fi
12006
12007
12008 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
12009 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
12010 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
12011   echo $ECHO_N "(cached) $ECHO_C" >&6
12012 else
12013   cat >conftest.$ac_ext <<_ACEOF
12014 /* confdefs.h.  */
12015 _ACEOF
12016 cat confdefs.h >>conftest.$ac_ext
12017 cat >>conftest.$ac_ext <<_ACEOF
12018 /* end confdefs.h.  */
12019 #include <sys/param.h>
12020 #include <sys/types.h>
12021 #include <sys/socket.h>
12022 #include <sys/ucred.h>
12023
12024 int
12025 main ()
12026 {
12027 if ((struct cmsgcred *) 0)
12028   return 0;
12029 if (sizeof (struct cmsgcred))
12030   return 0;
12031   ;
12032   return 0;
12033 }
12034 _ACEOF
12035 rm -f conftest.$ac_objext
12036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12037   (eval $ac_compile) 2>conftest.er1
12038   ac_status=$?
12039   grep -v '^ *+' conftest.er1 >conftest.err
12040   rm -f conftest.er1
12041   cat conftest.err >&5
12042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043   (exit $ac_status); } &&
12044          { ac_try='test -z "$ac_c_werror_flag"
12045                          || test ! -s conftest.err'
12046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047   (eval $ac_try) 2>&5
12048   ac_status=$?
12049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050   (exit $ac_status); }; } &&
12051          { ac_try='test -s conftest.$ac_objext'
12052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053   (eval $ac_try) 2>&5
12054   ac_status=$?
12055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056   (exit $ac_status); }; }; then
12057   ac_cv_type_struct_cmsgcred=yes
12058 else
12059   echo "$as_me: failed program was:" >&5
12060 sed 's/^/| /' conftest.$ac_ext >&5
12061
12062 ac_cv_type_struct_cmsgcred=no
12063 fi
12064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12065 fi
12066 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
12067 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
12068 if test $ac_cv_type_struct_cmsgcred = yes; then
12069
12070 cat >>confdefs.h <<_ACEOF
12071 #define HAVE_STRUCT_CMSGCRED 1
12072 _ACEOF
12073
12074
12075 fi
12076 echo "$as_me:$LINENO: checking for struct fcred" >&5
12077 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
12078 if test "${ac_cv_type_struct_fcred+set}" = set; then
12079   echo $ECHO_N "(cached) $ECHO_C" >&6
12080 else
12081   cat >conftest.$ac_ext <<_ACEOF
12082 /* confdefs.h.  */
12083 _ACEOF
12084 cat confdefs.h >>conftest.$ac_ext
12085 cat >>conftest.$ac_ext <<_ACEOF
12086 /* end confdefs.h.  */
12087 #include <sys/param.h>
12088 #include <sys/types.h>
12089 #include <sys/socket.h>
12090 #include <sys/ucred.h>
12091
12092 int
12093 main ()
12094 {
12095 if ((struct fcred *) 0)
12096   return 0;
12097 if (sizeof (struct fcred))
12098   return 0;
12099   ;
12100   return 0;
12101 }
12102 _ACEOF
12103 rm -f conftest.$ac_objext
12104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12105   (eval $ac_compile) 2>conftest.er1
12106   ac_status=$?
12107   grep -v '^ *+' conftest.er1 >conftest.err
12108   rm -f conftest.er1
12109   cat conftest.err >&5
12110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111   (exit $ac_status); } &&
12112          { ac_try='test -z "$ac_c_werror_flag"
12113                          || test ! -s conftest.err'
12114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115   (eval $ac_try) 2>&5
12116   ac_status=$?
12117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118   (exit $ac_status); }; } &&
12119          { ac_try='test -s conftest.$ac_objext'
12120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121   (eval $ac_try) 2>&5
12122   ac_status=$?
12123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124   (exit $ac_status); }; }; then
12125   ac_cv_type_struct_fcred=yes
12126 else
12127   echo "$as_me: failed program was:" >&5
12128 sed 's/^/| /' conftest.$ac_ext >&5
12129
12130 ac_cv_type_struct_fcred=no
12131 fi
12132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12133 fi
12134 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
12135 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
12136 if test $ac_cv_type_struct_fcred = yes; then
12137
12138 cat >>confdefs.h <<_ACEOF
12139 #define HAVE_STRUCT_FCRED 1
12140 _ACEOF
12141
12142
12143 fi
12144 echo "$as_me:$LINENO: checking for struct sockcred" >&5
12145 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
12146 if test "${ac_cv_type_struct_sockcred+set}" = set; then
12147   echo $ECHO_N "(cached) $ECHO_C" >&6
12148 else
12149   cat >conftest.$ac_ext <<_ACEOF
12150 /* confdefs.h.  */
12151 _ACEOF
12152 cat confdefs.h >>conftest.$ac_ext
12153 cat >>conftest.$ac_ext <<_ACEOF
12154 /* end confdefs.h.  */
12155 #include <sys/param.h>
12156 #include <sys/types.h>
12157 #include <sys/socket.h>
12158 #include <sys/ucred.h>
12159
12160 int
12161 main ()
12162 {
12163 if ((struct sockcred *) 0)
12164   return 0;
12165 if (sizeof (struct sockcred))
12166   return 0;
12167   ;
12168   return 0;
12169 }
12170 _ACEOF
12171 rm -f conftest.$ac_objext
12172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12173   (eval $ac_compile) 2>conftest.er1
12174   ac_status=$?
12175   grep -v '^ *+' conftest.er1 >conftest.err
12176   rm -f conftest.er1
12177   cat conftest.err >&5
12178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179   (exit $ac_status); } &&
12180          { ac_try='test -z "$ac_c_werror_flag"
12181                          || test ! -s conftest.err'
12182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12183   (eval $ac_try) 2>&5
12184   ac_status=$?
12185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186   (exit $ac_status); }; } &&
12187          { ac_try='test -s conftest.$ac_objext'
12188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12189   (eval $ac_try) 2>&5
12190   ac_status=$?
12191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192   (exit $ac_status); }; }; then
12193   ac_cv_type_struct_sockcred=yes
12194 else
12195   echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12197
12198 ac_cv_type_struct_sockcred=no
12199 fi
12200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12201 fi
12202 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
12203 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
12204 if test $ac_cv_type_struct_sockcred = yes; then
12205
12206 cat >>confdefs.h <<_ACEOF
12207 #define HAVE_STRUCT_SOCKCRED 1
12208 _ACEOF
12209
12210
12211 fi
12212
12213
12214 echo "$as_me:$LINENO: checking for struct option" >&5
12215 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
12216 if test "${ac_cv_type_struct_option+set}" = set; then
12217   echo $ECHO_N "(cached) $ECHO_C" >&6
12218 else
12219   cat >conftest.$ac_ext <<_ACEOF
12220 /* confdefs.h.  */
12221 _ACEOF
12222 cat confdefs.h >>conftest.$ac_ext
12223 cat >>conftest.$ac_ext <<_ACEOF
12224 /* end confdefs.h.  */
12225 #ifdef HAVE_GETOPT_H
12226 #include <getopt.h>
12227 #endif
12228
12229 int
12230 main ()
12231 {
12232 if ((struct option *) 0)
12233   return 0;
12234 if (sizeof (struct option))
12235   return 0;
12236   ;
12237   return 0;
12238 }
12239 _ACEOF
12240 rm -f conftest.$ac_objext
12241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12242   (eval $ac_compile) 2>conftest.er1
12243   ac_status=$?
12244   grep -v '^ *+' conftest.er1 >conftest.err
12245   rm -f conftest.er1
12246   cat conftest.err >&5
12247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248   (exit $ac_status); } &&
12249          { ac_try='test -z "$ac_c_werror_flag"
12250                          || test ! -s conftest.err'
12251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12252   (eval $ac_try) 2>&5
12253   ac_status=$?
12254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255   (exit $ac_status); }; } &&
12256          { ac_try='test -s conftest.$ac_objext'
12257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12258   (eval $ac_try) 2>&5
12259   ac_status=$?
12260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261   (exit $ac_status); }; }; then
12262   ac_cv_type_struct_option=yes
12263 else
12264   echo "$as_me: failed program was:" >&5
12265 sed 's/^/| /' conftest.$ac_ext >&5
12266
12267 ac_cv_type_struct_option=no
12268 fi
12269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12270 fi
12271 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
12272 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
12273 if test $ac_cv_type_struct_option = yes; then
12274
12275 cat >>confdefs.h <<_ACEOF
12276 #define HAVE_STRUCT_OPTION 1
12277 _ACEOF
12278
12279
12280 fi
12281
12282
12283 if test "$with_zlib" = yes; then
12284   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
12285   # did not).  While we could work around the lack of z_streamp, it
12286   # seems unwise to encourage people to use such old zlib versions...
12287   echo "$as_me:$LINENO: checking for z_streamp" >&5
12288 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
12289 if test "${ac_cv_type_z_streamp+set}" = set; then
12290   echo $ECHO_N "(cached) $ECHO_C" >&6
12291 else
12292   cat >conftest.$ac_ext <<_ACEOF
12293 /* confdefs.h.  */
12294 _ACEOF
12295 cat confdefs.h >>conftest.$ac_ext
12296 cat >>conftest.$ac_ext <<_ACEOF
12297 /* end confdefs.h.  */
12298 #include <zlib.h>
12299
12300 int
12301 main ()
12302 {
12303 if ((z_streamp *) 0)
12304   return 0;
12305 if (sizeof (z_streamp))
12306   return 0;
12307   ;
12308   return 0;
12309 }
12310 _ACEOF
12311 rm -f conftest.$ac_objext
12312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12313   (eval $ac_compile) 2>conftest.er1
12314   ac_status=$?
12315   grep -v '^ *+' conftest.er1 >conftest.err
12316   rm -f conftest.er1
12317   cat conftest.err >&5
12318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319   (exit $ac_status); } &&
12320          { ac_try='test -z "$ac_c_werror_flag"
12321                          || test ! -s conftest.err'
12322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12323   (eval $ac_try) 2>&5
12324   ac_status=$?
12325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326   (exit $ac_status); }; } &&
12327          { ac_try='test -s conftest.$ac_objext'
12328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329   (eval $ac_try) 2>&5
12330   ac_status=$?
12331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332   (exit $ac_status); }; }; then
12333   ac_cv_type_z_streamp=yes
12334 else
12335   echo "$as_me: failed program was:" >&5
12336 sed 's/^/| /' conftest.$ac_ext >&5
12337
12338 ac_cv_type_z_streamp=no
12339 fi
12340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12341 fi
12342 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
12343 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
12344 if test $ac_cv_type_z_streamp = yes; then
12345   :
12346 else
12347   { { echo "$as_me:$LINENO: error: zlib version is too old
12348 Use --without-zlib to disable zlib support." >&5
12349 echo "$as_me: error: zlib version is too old
12350 Use --without-zlib to disable zlib support." >&2;}
12351    { (exit 1); exit 1; }; }
12352 fi
12353
12354 fi
12355
12356 if test "$with_krb5" = yes; then
12357 # Check for differences between MIT and Heimdal (KTH) releases
12358   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
12359 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
12360 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
12361   echo $ECHO_N "(cached) $ECHO_C" >&6
12362 else
12363   cat >conftest.$ac_ext <<_ACEOF
12364 /* confdefs.h.  */
12365 _ACEOF
12366 cat confdefs.h >>conftest.$ac_ext
12367 cat >>conftest.$ac_ext <<_ACEOF
12368 /* end confdefs.h.  */
12369 #include <krb5.h>
12370
12371 int
12372 main ()
12373 {
12374 static krb5_ticket ac_aggr;
12375 if (ac_aggr.enc_part2)
12376 return 0;
12377   ;
12378   return 0;
12379 }
12380 _ACEOF
12381 rm -f conftest.$ac_objext
12382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12383   (eval $ac_compile) 2>conftest.er1
12384   ac_status=$?
12385   grep -v '^ *+' conftest.er1 >conftest.err
12386   rm -f conftest.er1
12387   cat conftest.err >&5
12388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389   (exit $ac_status); } &&
12390          { ac_try='test -z "$ac_c_werror_flag"
12391                          || test ! -s conftest.err'
12392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393   (eval $ac_try) 2>&5
12394   ac_status=$?
12395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396   (exit $ac_status); }; } &&
12397          { ac_try='test -s conftest.$ac_objext'
12398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399   (eval $ac_try) 2>&5
12400   ac_status=$?
12401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402   (exit $ac_status); }; }; then
12403   ac_cv_member_krb5_ticket_enc_part2=yes
12404 else
12405   echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.$ac_ext >&5
12407
12408 cat >conftest.$ac_ext <<_ACEOF
12409 /* confdefs.h.  */
12410 _ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h.  */
12414 #include <krb5.h>
12415
12416 int
12417 main ()
12418 {
12419 static krb5_ticket ac_aggr;
12420 if (sizeof ac_aggr.enc_part2)
12421 return 0;
12422   ;
12423   return 0;
12424 }
12425 _ACEOF
12426 rm -f conftest.$ac_objext
12427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12428   (eval $ac_compile) 2>conftest.er1
12429   ac_status=$?
12430   grep -v '^ *+' conftest.er1 >conftest.err
12431   rm -f conftest.er1
12432   cat conftest.err >&5
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); } &&
12435          { ac_try='test -z "$ac_c_werror_flag"
12436                          || test ! -s conftest.err'
12437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438   (eval $ac_try) 2>&5
12439   ac_status=$?
12440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441   (exit $ac_status); }; } &&
12442          { ac_try='test -s conftest.$ac_objext'
12443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12444   (eval $ac_try) 2>&5
12445   ac_status=$?
12446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447   (exit $ac_status); }; }; then
12448   ac_cv_member_krb5_ticket_enc_part2=yes
12449 else
12450   echo "$as_me: failed program was:" >&5
12451 sed 's/^/| /' conftest.$ac_ext >&5
12452
12453 ac_cv_member_krb5_ticket_enc_part2=no
12454 fi
12455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12456 fi
12457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12458 fi
12459 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
12460 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
12461 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
12462
12463 cat >>confdefs.h <<_ACEOF
12464 #define HAVE_KRB5_TICKET_ENC_PART2 1
12465 _ACEOF
12466
12467
12468 else
12469   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
12470 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
12471 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
12472   echo $ECHO_N "(cached) $ECHO_C" >&6
12473 else
12474   cat >conftest.$ac_ext <<_ACEOF
12475 /* confdefs.h.  */
12476 _ACEOF
12477 cat confdefs.h >>conftest.$ac_ext
12478 cat >>conftest.$ac_ext <<_ACEOF
12479 /* end confdefs.h.  */
12480 #include <krb5.h>
12481
12482 int
12483 main ()
12484 {
12485 static krb5_ticket ac_aggr;
12486 if (ac_aggr.client)
12487 return 0;
12488   ;
12489   return 0;
12490 }
12491 _ACEOF
12492 rm -f conftest.$ac_objext
12493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12494   (eval $ac_compile) 2>conftest.er1
12495   ac_status=$?
12496   grep -v '^ *+' conftest.er1 >conftest.err
12497   rm -f conftest.er1
12498   cat conftest.err >&5
12499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500   (exit $ac_status); } &&
12501          { ac_try='test -z "$ac_c_werror_flag"
12502                          || test ! -s conftest.err'
12503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504   (eval $ac_try) 2>&5
12505   ac_status=$?
12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); }; } &&
12508          { ac_try='test -s conftest.$ac_objext'
12509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510   (eval $ac_try) 2>&5
12511   ac_status=$?
12512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513   (exit $ac_status); }; }; then
12514   ac_cv_member_krb5_ticket_client=yes
12515 else
12516   echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.$ac_ext >&5
12518
12519 cat >conftest.$ac_ext <<_ACEOF
12520 /* confdefs.h.  */
12521 _ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h.  */
12525 #include <krb5.h>
12526
12527 int
12528 main ()
12529 {
12530 static krb5_ticket ac_aggr;
12531 if (sizeof ac_aggr.client)
12532 return 0;
12533   ;
12534   return 0;
12535 }
12536 _ACEOF
12537 rm -f conftest.$ac_objext
12538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12539   (eval $ac_compile) 2>conftest.er1
12540   ac_status=$?
12541   grep -v '^ *+' conftest.er1 >conftest.err
12542   rm -f conftest.er1
12543   cat conftest.err >&5
12544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); } &&
12546          { ac_try='test -z "$ac_c_werror_flag"
12547                          || test ! -s conftest.err'
12548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549   (eval $ac_try) 2>&5
12550   ac_status=$?
12551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552   (exit $ac_status); }; } &&
12553          { ac_try='test -s conftest.$ac_objext'
12554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555   (eval $ac_try) 2>&5
12556   ac_status=$?
12557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558   (exit $ac_status); }; }; then
12559   ac_cv_member_krb5_ticket_client=yes
12560 else
12561   echo "$as_me: failed program was:" >&5
12562 sed 's/^/| /' conftest.$ac_ext >&5
12563
12564 ac_cv_member_krb5_ticket_client=no
12565 fi
12566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12567 fi
12568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12569 fi
12570 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
12571 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
12572 if test $ac_cv_member_krb5_ticket_client = yes; then
12573
12574 cat >>confdefs.h <<_ACEOF
12575 #define HAVE_KRB5_TICKET_CLIENT 1
12576 _ACEOF
12577
12578
12579 else
12580   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
12581 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
12582    { (exit 1); exit 1; }; }
12583 fi
12584
12585 fi
12586
12587   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
12588 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
12589 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
12590   echo $ECHO_N "(cached) $ECHO_C" >&6
12591 else
12592   cat >conftest.$ac_ext <<_ACEOF
12593 /* confdefs.h.  */
12594 _ACEOF
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h.  */
12598 #include <krb5.h>
12599
12600 int
12601 main ()
12602 {
12603 static krb5_error ac_aggr;
12604 if (ac_aggr.text.data)
12605 return 0;
12606   ;
12607   return 0;
12608 }
12609 _ACEOF
12610 rm -f conftest.$ac_objext
12611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12612   (eval $ac_compile) 2>conftest.er1
12613   ac_status=$?
12614   grep -v '^ *+' conftest.er1 >conftest.err
12615   rm -f conftest.er1
12616   cat conftest.err >&5
12617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618   (exit $ac_status); } &&
12619          { ac_try='test -z "$ac_c_werror_flag"
12620                          || test ! -s conftest.err'
12621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622   (eval $ac_try) 2>&5
12623   ac_status=$?
12624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625   (exit $ac_status); }; } &&
12626          { ac_try='test -s conftest.$ac_objext'
12627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628   (eval $ac_try) 2>&5
12629   ac_status=$?
12630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631   (exit $ac_status); }; }; then
12632   ac_cv_member_krb5_error_text_data=yes
12633 else
12634   echo "$as_me: failed program was:" >&5
12635 sed 's/^/| /' conftest.$ac_ext >&5
12636
12637 cat >conftest.$ac_ext <<_ACEOF
12638 /* confdefs.h.  */
12639 _ACEOF
12640 cat confdefs.h >>conftest.$ac_ext
12641 cat >>conftest.$ac_ext <<_ACEOF
12642 /* end confdefs.h.  */
12643 #include <krb5.h>
12644
12645 int
12646 main ()
12647 {
12648 static krb5_error ac_aggr;
12649 if (sizeof ac_aggr.text.data)
12650 return 0;
12651   ;
12652   return 0;
12653 }
12654 _ACEOF
12655 rm -f conftest.$ac_objext
12656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12657   (eval $ac_compile) 2>conftest.er1
12658   ac_status=$?
12659   grep -v '^ *+' conftest.er1 >conftest.err
12660   rm -f conftest.er1
12661   cat conftest.err >&5
12662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663   (exit $ac_status); } &&
12664          { ac_try='test -z "$ac_c_werror_flag"
12665                          || test ! -s conftest.err'
12666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12667   (eval $ac_try) 2>&5
12668   ac_status=$?
12669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670   (exit $ac_status); }; } &&
12671          { ac_try='test -s conftest.$ac_objext'
12672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12673   (eval $ac_try) 2>&5
12674   ac_status=$?
12675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676   (exit $ac_status); }; }; then
12677   ac_cv_member_krb5_error_text_data=yes
12678 else
12679   echo "$as_me: failed program was:" >&5
12680 sed 's/^/| /' conftest.$ac_ext >&5
12681
12682 ac_cv_member_krb5_error_text_data=no
12683 fi
12684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12685 fi
12686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12687 fi
12688 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
12689 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
12690 if test $ac_cv_member_krb5_error_text_data = yes; then
12691
12692 cat >>confdefs.h <<_ACEOF
12693 #define HAVE_KRB5_ERROR_TEXT_DATA 1
12694 _ACEOF
12695
12696
12697 else
12698   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
12699 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
12700 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
12701   echo $ECHO_N "(cached) $ECHO_C" >&6
12702 else
12703   cat >conftest.$ac_ext <<_ACEOF
12704 /* confdefs.h.  */
12705 _ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h.  */
12709 #include <krb5.h>
12710
12711 int
12712 main ()
12713 {
12714 static krb5_error ac_aggr;
12715 if (ac_aggr.e_data)
12716 return 0;
12717   ;
12718   return 0;
12719 }
12720 _ACEOF
12721 rm -f conftest.$ac_objext
12722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12723   (eval $ac_compile) 2>conftest.er1
12724   ac_status=$?
12725   grep -v '^ *+' conftest.er1 >conftest.err
12726   rm -f conftest.er1
12727   cat conftest.err >&5
12728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729   (exit $ac_status); } &&
12730          { ac_try='test -z "$ac_c_werror_flag"
12731                          || test ! -s conftest.err'
12732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12733   (eval $ac_try) 2>&5
12734   ac_status=$?
12735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736   (exit $ac_status); }; } &&
12737          { ac_try='test -s conftest.$ac_objext'
12738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739   (eval $ac_try) 2>&5
12740   ac_status=$?
12741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742   (exit $ac_status); }; }; then
12743   ac_cv_member_krb5_error_e_data=yes
12744 else
12745   echo "$as_me: failed program was:" >&5
12746 sed 's/^/| /' conftest.$ac_ext >&5
12747
12748 cat >conftest.$ac_ext <<_ACEOF
12749 /* confdefs.h.  */
12750 _ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h.  */
12754 #include <krb5.h>
12755
12756 int
12757 main ()
12758 {
12759 static krb5_error ac_aggr;
12760 if (sizeof ac_aggr.e_data)
12761 return 0;
12762   ;
12763   return 0;
12764 }
12765 _ACEOF
12766 rm -f conftest.$ac_objext
12767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12768   (eval $ac_compile) 2>conftest.er1
12769   ac_status=$?
12770   grep -v '^ *+' conftest.er1 >conftest.err
12771   rm -f conftest.er1
12772   cat conftest.err >&5
12773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774   (exit $ac_status); } &&
12775          { ac_try='test -z "$ac_c_werror_flag"
12776                          || test ! -s conftest.err'
12777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12778   (eval $ac_try) 2>&5
12779   ac_status=$?
12780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781   (exit $ac_status); }; } &&
12782          { ac_try='test -s conftest.$ac_objext'
12783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12784   (eval $ac_try) 2>&5
12785   ac_status=$?
12786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787   (exit $ac_status); }; }; then
12788   ac_cv_member_krb5_error_e_data=yes
12789 else
12790   echo "$as_me: failed program was:" >&5
12791 sed 's/^/| /' conftest.$ac_ext >&5
12792
12793 ac_cv_member_krb5_error_e_data=no
12794 fi
12795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12796 fi
12797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12798 fi
12799 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
12800 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
12801 if test $ac_cv_member_krb5_error_e_data = yes; then
12802
12803 cat >>confdefs.h <<_ACEOF
12804 #define HAVE_KRB5_ERROR_E_DATA 1
12805 _ACEOF
12806
12807
12808 else
12809   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
12810 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
12811    { (exit 1); exit 1; }; }
12812 fi
12813
12814 fi
12815
12816 fi
12817
12818 # This is probably only present on Darwin, but may as well check always
12819 echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
12820 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6
12821 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
12822   echo $ECHO_N "(cached) $ECHO_C" >&6
12823 else
12824   cat >conftest.$ac_ext <<_ACEOF
12825 /* confdefs.h.  */
12826 _ACEOF
12827 cat confdefs.h >>conftest.$ac_ext
12828 cat >>conftest.$ac_ext <<_ACEOF
12829 /* end confdefs.h.  */
12830 #include <fcntl.h>
12831
12832 int
12833 main ()
12834 {
12835 #ifndef F_FULLFSYNC
12836   char *p = (char *) F_FULLFSYNC;
12837 #endif
12838
12839   ;
12840   return 0;
12841 }
12842 _ACEOF
12843 rm -f conftest.$ac_objext
12844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12845   (eval $ac_compile) 2>conftest.er1
12846   ac_status=$?
12847   grep -v '^ *+' conftest.er1 >conftest.err
12848   rm -f conftest.er1
12849   cat conftest.err >&5
12850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851   (exit $ac_status); } &&
12852          { ac_try='test -z "$ac_c_werror_flag"
12853                          || test ! -s conftest.err'
12854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12855   (eval $ac_try) 2>&5
12856   ac_status=$?
12857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858   (exit $ac_status); }; } &&
12859          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12865   ac_cv_have_decl_F_FULLFSYNC=yes
12866 else
12867   echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12869
12870 ac_cv_have_decl_F_FULLFSYNC=no
12871 fi
12872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12873 fi
12874 echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
12875 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6
12876 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
12877
12878 cat >>confdefs.h <<_ACEOF
12879 #define HAVE_DECL_F_FULLFSYNC 1
12880 _ACEOF
12881
12882
12883 else
12884   cat >>confdefs.h <<_ACEOF
12885 #define HAVE_DECL_F_FULLFSYNC 0
12886 _ACEOF
12887
12888
12889 fi
12890
12891
12892
12893 ##
12894 ## Functions, global variables
12895 ##
12896
12897 echo "$as_me:$LINENO: checking for int timezone" >&5
12898 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
12899 if test "${pgac_cv_var_int_timezone+set}" = set; then
12900   echo $ECHO_N "(cached) $ECHO_C" >&6
12901 else
12902   cat >conftest.$ac_ext <<_ACEOF
12903 /* confdefs.h.  */
12904 _ACEOF
12905 cat confdefs.h >>conftest.$ac_ext
12906 cat >>conftest.$ac_ext <<_ACEOF
12907 /* end confdefs.h.  */
12908 #include <time.h>
12909 int res;
12910 int
12911 main ()
12912 {
12913 #ifndef __CYGWIN__
12914 res = timezone / 60;
12915 #else
12916 res = _timezone / 60;
12917 #endif
12918   ;
12919   return 0;
12920 }
12921 _ACEOF
12922 rm -f conftest.$ac_objext conftest$ac_exeext
12923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12924   (eval $ac_link) 2>conftest.er1
12925   ac_status=$?
12926   grep -v '^ *+' conftest.er1 >conftest.err
12927   rm -f conftest.er1
12928   cat conftest.err >&5
12929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930   (exit $ac_status); } &&
12931          { ac_try='test -z "$ac_c_werror_flag"
12932                          || test ! -s conftest.err'
12933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934   (eval $ac_try) 2>&5
12935   ac_status=$?
12936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937   (exit $ac_status); }; } &&
12938          { ac_try='test -s conftest$ac_exeext'
12939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940   (eval $ac_try) 2>&5
12941   ac_status=$?
12942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943   (exit $ac_status); }; }; then
12944   pgac_cv_var_int_timezone=yes
12945 else
12946   echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12948
12949 pgac_cv_var_int_timezone=no
12950 fi
12951 rm -f conftest.err conftest.$ac_objext \
12952       conftest$ac_exeext conftest.$ac_ext
12953 fi
12954 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
12955 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
12956 if test x"$pgac_cv_var_int_timezone" = xyes ; then
12957
12958 cat >>confdefs.h <<\_ACEOF
12959 #define HAVE_INT_TIMEZONE
12960 _ACEOF
12961
12962 fi
12963 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
12964 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
12965  if test "${ac_cv_func_accept_return+set}" = set; then
12966   echo $ECHO_N "(cached) $ECHO_C" >&6
12967 else
12968    if test "${ac_cv_func_accept_arg1+set}" = set; then
12969   echo $ECHO_N "(cached) $ECHO_C" >&6
12970 else
12971     if test "${ac_cv_func_accept_arg2+set}" = set; then
12972   echo $ECHO_N "(cached) $ECHO_C" >&6
12973 else
12974      if test "${ac_cv_func_accept_arg3+set}" = set; then
12975   echo $ECHO_N "(cached) $ECHO_C" >&6
12976 else
12977       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
12978       for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
12979        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
12980         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
12981          cat >conftest.$ac_ext <<_ACEOF
12982 /* confdefs.h.  */
12983 _ACEOF
12984 cat confdefs.h >>conftest.$ac_ext
12985 cat >>conftest.$ac_ext <<_ACEOF
12986 /* end confdefs.h.  */
12987 #ifdef HAVE_SYS_TYPES_H
12988 #include <sys/types.h>
12989 #endif
12990 #ifdef HAVE_SYS_SOCKET_H
12991 #include <sys/socket.h>
12992 #endif
12993 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
12994 int
12995 main ()
12996 {
12997
12998   ;
12999   return 0;
13000 }
13001 _ACEOF
13002 rm -f conftest.$ac_objext
13003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13004   (eval $ac_compile) 2>conftest.er1
13005   ac_status=$?
13006   grep -v '^ *+' conftest.er1 >conftest.err
13007   rm -f conftest.er1
13008   cat conftest.err >&5
13009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010   (exit $ac_status); } &&
13011          { ac_try='test -z "$ac_c_werror_flag"
13012                          || test ! -s conftest.err'
13013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13014   (eval $ac_try) 2>&5
13015   ac_status=$?
13016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017   (exit $ac_status); }; } &&
13018          { ac_try='test -s conftest.$ac_objext'
13019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13020   (eval $ac_try) 2>&5
13021   ac_status=$?
13022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023   (exit $ac_status); }; }; then
13024   ac_not_found=no; break 4
13025 else
13026   echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.$ac_ext >&5
13028
13029 ac_not_found=yes
13030 fi
13031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13032        done
13033       done
13034      done
13035     done
13036     if test "$ac_not_found" = yes; then
13037       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
13038 echo "$as_me: error: could not determine argument types" >&2;}
13039    { (exit 1); exit 1; }; }
13040     fi
13041     if test "$ac_cv_func_accept_arg3" = "void"; then
13042       ac_cv_func_accept_arg3=int
13043     fi
13044
13045 fi
13046
13047 fi
13048
13049 fi
13050
13051 fi
13052  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
13053 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
13054
13055 cat >>confdefs.h <<_ACEOF
13056 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
13057 _ACEOF
13058
13059
13060 cat >>confdefs.h <<_ACEOF
13061 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
13062 _ACEOF
13063
13064
13065 cat >>confdefs.h <<_ACEOF
13066 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
13067 _ACEOF
13068
13069
13070 cat >>confdefs.h <<_ACEOF
13071 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
13072 _ACEOF
13073
13074
13075 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
13076 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
13077 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
13078   echo $ECHO_N "(cached) $ECHO_C" >&6
13079 else
13080   cat >conftest.$ac_ext <<_ACEOF
13081 /* confdefs.h.  */
13082 _ACEOF
13083 cat confdefs.h >>conftest.$ac_ext
13084 cat >>conftest.$ac_ext <<_ACEOF
13085 /* end confdefs.h.  */
13086 #include <sys/time.h>
13087 int
13088 main ()
13089 {
13090 struct timeval *tp;
13091 struct timezone *tzp;
13092 gettimeofday(tp,tzp);
13093   ;
13094   return 0;
13095 }
13096 _ACEOF
13097 rm -f conftest.$ac_objext
13098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13099   (eval $ac_compile) 2>conftest.er1
13100   ac_status=$?
13101   grep -v '^ *+' conftest.er1 >conftest.err
13102   rm -f conftest.er1
13103   cat conftest.err >&5
13104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105   (exit $ac_status); } &&
13106          { ac_try='test -z "$ac_c_werror_flag"
13107                          || test ! -s conftest.err'
13108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109   (eval $ac_try) 2>&5
13110   ac_status=$?
13111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112   (exit $ac_status); }; } &&
13113          { ac_try='test -s conftest.$ac_objext'
13114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115   (eval $ac_try) 2>&5
13116   ac_status=$?
13117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118   (exit $ac_status); }; }; then
13119   pgac_cv_func_gettimeofday_1arg=no
13120 else
13121   echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.$ac_ext >&5
13123
13124 pgac_cv_func_gettimeofday_1arg=yes
13125 fi
13126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13127 fi
13128 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
13129 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
13130 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
13131
13132 cat >>confdefs.h <<\_ACEOF
13133 #define GETTIMEOFDAY_1ARG
13134 _ACEOF
13135
13136 fi
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
13160 do
13161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13162 echo "$as_me:$LINENO: checking for $ac_func" >&5
13163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13164 if eval "test \"\${$as_ac_var+set}\" = set"; then
13165   echo $ECHO_N "(cached) $ECHO_C" >&6
13166 else
13167   cat >conftest.$ac_ext <<_ACEOF
13168 /* confdefs.h.  */
13169 _ACEOF
13170 cat confdefs.h >>conftest.$ac_ext
13171 cat >>conftest.$ac_ext <<_ACEOF
13172 /* end confdefs.h.  */
13173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13174    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13175 #define $ac_func innocuous_$ac_func
13176
13177 /* System header to define __stub macros and hopefully few prototypes,
13178     which can conflict with char $ac_func (); below.
13179     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13180     <limits.h> exists even on freestanding compilers.  */
13181
13182 #ifdef __STDC__
13183 # include <limits.h>
13184 #else
13185 # include <assert.h>
13186 #endif
13187
13188 #undef $ac_func
13189
13190 /* Override any gcc2 internal prototype to avoid an error.  */
13191 #ifdef __cplusplus
13192 extern "C"
13193 {
13194 #endif
13195 /* We use char because int might match the return type of a gcc2
13196    builtin and then its argument prototype would still apply.  */
13197 char $ac_func ();
13198 /* The GNU C library defines this for functions which it implements
13199     to always fail with ENOSYS.  Some functions are actually named
13200     something starting with __ and the normal name is an alias.  */
13201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13202 choke me
13203 #else
13204 char (*f) () = $ac_func;
13205 #endif
13206 #ifdef __cplusplus
13207 }
13208 #endif
13209
13210 int
13211 main ()
13212 {
13213 return f != $ac_func;
13214   ;
13215   return 0;
13216 }
13217 _ACEOF
13218 rm -f conftest.$ac_objext conftest$ac_exeext
13219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13220   (eval $ac_link) 2>conftest.er1
13221   ac_status=$?
13222   grep -v '^ *+' conftest.er1 >conftest.err
13223   rm -f conftest.er1
13224   cat conftest.err >&5
13225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226   (exit $ac_status); } &&
13227          { ac_try='test -z "$ac_c_werror_flag"
13228                          || test ! -s conftest.err'
13229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13230   (eval $ac_try) 2>&5
13231   ac_status=$?
13232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233   (exit $ac_status); }; } &&
13234          { ac_try='test -s conftest$ac_exeext'
13235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13236   (eval $ac_try) 2>&5
13237   ac_status=$?
13238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239   (exit $ac_status); }; }; then
13240   eval "$as_ac_var=yes"
13241 else
13242   echo "$as_me: failed program was:" >&5
13243 sed 's/^/| /' conftest.$ac_ext >&5
13244
13245 eval "$as_ac_var=no"
13246 fi
13247 rm -f conftest.err conftest.$ac_objext \
13248       conftest$ac_exeext conftest.$ac_ext
13249 fi
13250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13251 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13252 if test `eval echo '${'$as_ac_var'}'` = yes; then
13253   cat >>confdefs.h <<_ACEOF
13254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13255 _ACEOF
13256
13257 fi
13258 done
13259
13260
13261 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
13262 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
13263 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
13264   echo $ECHO_N "(cached) $ECHO_C" >&6
13265 else
13266   cat >conftest.$ac_ext <<_ACEOF
13267 /* confdefs.h.  */
13268 _ACEOF
13269 cat confdefs.h >>conftest.$ac_ext
13270 cat >>conftest.$ac_ext <<_ACEOF
13271 /* end confdefs.h.  */
13272 #include <unistd.h>
13273
13274 int
13275 main ()
13276 {
13277 #ifndef fdatasync
13278   char *p = (char *) fdatasync;
13279 #endif
13280
13281   ;
13282   return 0;
13283 }
13284 _ACEOF
13285 rm -f conftest.$ac_objext
13286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13287   (eval $ac_compile) 2>conftest.er1
13288   ac_status=$?
13289   grep -v '^ *+' conftest.er1 >conftest.err
13290   rm -f conftest.er1
13291   cat conftest.err >&5
13292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293   (exit $ac_status); } &&
13294          { ac_try='test -z "$ac_c_werror_flag"
13295                          || test ! -s conftest.err'
13296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297   (eval $ac_try) 2>&5
13298   ac_status=$?
13299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300   (exit $ac_status); }; } &&
13301          { ac_try='test -s conftest.$ac_objext'
13302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303   (eval $ac_try) 2>&5
13304   ac_status=$?
13305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306   (exit $ac_status); }; }; then
13307   ac_cv_have_decl_fdatasync=yes
13308 else
13309   echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13311
13312 ac_cv_have_decl_fdatasync=no
13313 fi
13314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13315 fi
13316 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
13317 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
13318 if test $ac_cv_have_decl_fdatasync = yes; then
13319
13320 cat >>confdefs.h <<_ACEOF
13321 #define HAVE_DECL_FDATASYNC 1
13322 _ACEOF
13323
13324
13325 else
13326   cat >>confdefs.h <<_ACEOF
13327 #define HAVE_DECL_FDATASYNC 0
13328 _ACEOF
13329
13330
13331 fi
13332
13333
13334
13335 HAVE_IPV6=no
13336 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
13337 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
13338 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
13339   echo $ECHO_N "(cached) $ECHO_C" >&6
13340 else
13341   cat >conftest.$ac_ext <<_ACEOF
13342 /* confdefs.h.  */
13343 _ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h.  */
13347 $ac_includes_default
13348 #include <netinet/in.h>
13349
13350 int
13351 main ()
13352 {
13353 if ((struct sockaddr_in6 *) 0)
13354   return 0;
13355 if (sizeof (struct sockaddr_in6))
13356   return 0;
13357   ;
13358   return 0;
13359 }
13360 _ACEOF
13361 rm -f conftest.$ac_objext
13362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13363   (eval $ac_compile) 2>conftest.er1
13364   ac_status=$?
13365   grep -v '^ *+' conftest.er1 >conftest.err
13366   rm -f conftest.er1
13367   cat conftest.err >&5
13368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369   (exit $ac_status); } &&
13370          { ac_try='test -z "$ac_c_werror_flag"
13371                          || test ! -s conftest.err'
13372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13373   (eval $ac_try) 2>&5
13374   ac_status=$?
13375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376   (exit $ac_status); }; } &&
13377          { ac_try='test -s conftest.$ac_objext'
13378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379   (eval $ac_try) 2>&5
13380   ac_status=$?
13381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382   (exit $ac_status); }; }; then
13383   ac_cv_type_struct_sockaddr_in6=yes
13384 else
13385   echo "$as_me: failed program was:" >&5
13386 sed 's/^/| /' conftest.$ac_ext >&5
13387
13388 ac_cv_type_struct_sockaddr_in6=no
13389 fi
13390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13391 fi
13392 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
13393 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
13394 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
13395
13396 cat >>confdefs.h <<\_ACEOF
13397 #define HAVE_IPV6 1
13398 _ACEOF
13399
13400          HAVE_IPV6=yes
13401 fi
13402
13403
13404
13405 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
13406 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
13407 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
13408   echo $ECHO_N "(cached) $ECHO_C" >&6
13409 else
13410   cat >conftest.$ac_ext <<_ACEOF
13411 /* confdefs.h.  */
13412 _ACEOF
13413 cat confdefs.h >>conftest.$ac_ext
13414 cat >>conftest.$ac_ext <<_ACEOF
13415 /* end confdefs.h.  */
13416 #include <machine/vmparam.h>
13417 #include <sys/exec.h>
13418
13419 int
13420 main ()
13421 {
13422 PS_STRINGS->ps_nargvstr = 1;
13423 PS_STRINGS->ps_argvstr = "foo";
13424   ;
13425   return 0;
13426 }
13427 _ACEOF
13428 rm -f conftest.$ac_objext conftest$ac_exeext
13429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13430   (eval $ac_link) 2>conftest.er1
13431   ac_status=$?
13432   grep -v '^ *+' conftest.er1 >conftest.err
13433   rm -f conftest.er1
13434   cat conftest.err >&5
13435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436   (exit $ac_status); } &&
13437          { ac_try='test -z "$ac_c_werror_flag"
13438                          || test ! -s conftest.err'
13439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440   (eval $ac_try) 2>&5
13441   ac_status=$?
13442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443   (exit $ac_status); }; } &&
13444          { ac_try='test -s conftest$ac_exeext'
13445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446   (eval $ac_try) 2>&5
13447   ac_status=$?
13448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449   (exit $ac_status); }; }; then
13450   pgac_cv_var_PS_STRINGS=yes
13451 else
13452   echo "$as_me: failed program was:" >&5
13453 sed 's/^/| /' conftest.$ac_ext >&5
13454
13455 pgac_cv_var_PS_STRINGS=no
13456 fi
13457 rm -f conftest.err conftest.$ac_objext \
13458       conftest$ac_exeext conftest.$ac_ext
13459 fi
13460 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
13461 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
13462 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
13463
13464 cat >>confdefs.h <<\_ACEOF
13465 #define HAVE_PS_STRINGS
13466 _ACEOF
13467
13468 fi
13469
13470
13471 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
13472 # is missing.  Yes, there are machines that have only one.  We may
13473 # also decide to use snprintf.c if snprintf() is present but does not
13474 # have all the features we need --- see below.
13475
13476 if test "$PORTNAME" = "win32"; then
13477   # Win32 gets snprintf.c built unconditionally.
13478   #
13479   # To properly translate all NLS languages strings, we must support the
13480   # *printf() %$ format, which allows *printf() arguments to be selected
13481   # by position in the translated string.
13482   #
13483   # libintl versions < 0.13 use the native *printf() functions, and Win32
13484   # *printf() doesn't understand %$, so we must use our /port versions,
13485   # which do understand %$. libintl versions >= 0.13 include their own
13486   # *printf versions on Win32.  The libintl 0.13 release note text is:
13487   #
13488   #   C format strings with positions, as they arise when a translator
13489   #   needs to reorder a sentence, are now supported on all platforms.
13490   #   On those few platforms (NetBSD and Woe32) for which the native
13491   #   printf()/fprintf()/... functions don't support such format
13492   #   strings, replacements are provided through <libintl.h>.
13493   #
13494   # We could use libintl >= 0.13's *printf() if we were sure that we had
13495   # a litint >= 0.13 at runtime, but seeing that there is no clean way
13496   # to guarantee that, it is best to just use our own, so we are sure to
13497   # get %$ support. In include/port.h we disable the *printf() macros
13498   # that might have been defined by libintl.
13499   #
13500   # We do this unconditionally whether NLS is used or not so we are sure
13501   # that all Win32 libraries and binaries behave the same.
13502   pgac_need_repl_snprintf=yes
13503 else
13504   pgac_need_repl_snprintf=no
13505
13506 for ac_func in snprintf
13507 do
13508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13509 echo "$as_me:$LINENO: checking for $ac_func" >&5
13510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13511 if eval "test \"\${$as_ac_var+set}\" = set"; then
13512   echo $ECHO_N "(cached) $ECHO_C" >&6
13513 else
13514   cat >conftest.$ac_ext <<_ACEOF
13515 /* confdefs.h.  */
13516 _ACEOF
13517 cat confdefs.h >>conftest.$ac_ext
13518 cat >>conftest.$ac_ext <<_ACEOF
13519 /* end confdefs.h.  */
13520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13522 #define $ac_func innocuous_$ac_func
13523
13524 /* System header to define __stub macros and hopefully few prototypes,
13525     which can conflict with char $ac_func (); below.
13526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13527     <limits.h> exists even on freestanding compilers.  */
13528
13529 #ifdef __STDC__
13530 # include <limits.h>
13531 #else
13532 # include <assert.h>
13533 #endif
13534
13535 #undef $ac_func
13536
13537 /* Override any gcc2 internal prototype to avoid an error.  */
13538 #ifdef __cplusplus
13539 extern "C"
13540 {
13541 #endif
13542 /* We use char because int might match the return type of a gcc2
13543    builtin and then its argument prototype would still apply.  */
13544 char $ac_func ();
13545 /* The GNU C library defines this for functions which it implements
13546     to always fail with ENOSYS.  Some functions are actually named
13547     something starting with __ and the normal name is an alias.  */
13548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13549 choke me
13550 #else
13551 char (*f) () = $ac_func;
13552 #endif
13553 #ifdef __cplusplus
13554 }
13555 #endif
13556
13557 int
13558 main ()
13559 {
13560 return f != $ac_func;
13561   ;
13562   return 0;
13563 }
13564 _ACEOF
13565 rm -f conftest.$ac_objext conftest$ac_exeext
13566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13567   (eval $ac_link) 2>conftest.er1
13568   ac_status=$?
13569   grep -v '^ *+' conftest.er1 >conftest.err
13570   rm -f conftest.er1
13571   cat conftest.err >&5
13572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573   (exit $ac_status); } &&
13574          { ac_try='test -z "$ac_c_werror_flag"
13575                          || test ! -s conftest.err'
13576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577   (eval $ac_try) 2>&5
13578   ac_status=$?
13579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580   (exit $ac_status); }; } &&
13581          { ac_try='test -s conftest$ac_exeext'
13582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583   (eval $ac_try) 2>&5
13584   ac_status=$?
13585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586   (exit $ac_status); }; }; then
13587   eval "$as_ac_var=yes"
13588 else
13589   echo "$as_me: failed program was:" >&5
13590 sed 's/^/| /' conftest.$ac_ext >&5
13591
13592 eval "$as_ac_var=no"
13593 fi
13594 rm -f conftest.err conftest.$ac_objext \
13595       conftest$ac_exeext conftest.$ac_ext
13596 fi
13597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13599 if test `eval echo '${'$as_ac_var'}'` = yes; then
13600   cat >>confdefs.h <<_ACEOF
13601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13602 _ACEOF
13603
13604 else
13605   pgac_need_repl_snprintf=yes
13606 fi
13607 done
13608
13609
13610 for ac_func in vsnprintf
13611 do
13612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13613 echo "$as_me:$LINENO: checking for $ac_func" >&5
13614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13615 if eval "test \"\${$as_ac_var+set}\" = set"; then
13616   echo $ECHO_N "(cached) $ECHO_C" >&6
13617 else
13618   cat >conftest.$ac_ext <<_ACEOF
13619 /* confdefs.h.  */
13620 _ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h.  */
13624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13625    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13626 #define $ac_func innocuous_$ac_func
13627
13628 /* System header to define __stub macros and hopefully few prototypes,
13629     which can conflict with char $ac_func (); below.
13630     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13631     <limits.h> exists even on freestanding compilers.  */
13632
13633 #ifdef __STDC__
13634 # include <limits.h>
13635 #else
13636 # include <assert.h>
13637 #endif
13638
13639 #undef $ac_func
13640
13641 /* Override any gcc2 internal prototype to avoid an error.  */
13642 #ifdef __cplusplus
13643 extern "C"
13644 {
13645 #endif
13646 /* We use char because int might match the return type of a gcc2
13647    builtin and then its argument prototype would still apply.  */
13648 char $ac_func ();
13649 /* The GNU C library defines this for functions which it implements
13650     to always fail with ENOSYS.  Some functions are actually named
13651     something starting with __ and the normal name is an alias.  */
13652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13653 choke me
13654 #else
13655 char (*f) () = $ac_func;
13656 #endif
13657 #ifdef __cplusplus
13658 }
13659 #endif
13660
13661 int
13662 main ()
13663 {
13664 return f != $ac_func;
13665   ;
13666   return 0;
13667 }
13668 _ACEOF
13669 rm -f conftest.$ac_objext conftest$ac_exeext
13670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13671   (eval $ac_link) 2>conftest.er1
13672   ac_status=$?
13673   grep -v '^ *+' conftest.er1 >conftest.err
13674   rm -f conftest.er1
13675   cat conftest.err >&5
13676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677   (exit $ac_status); } &&
13678          { ac_try='test -z "$ac_c_werror_flag"
13679                          || test ! -s conftest.err'
13680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681   (eval $ac_try) 2>&5
13682   ac_status=$?
13683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684   (exit $ac_status); }; } &&
13685          { ac_try='test -s conftest$ac_exeext'
13686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13687   (eval $ac_try) 2>&5
13688   ac_status=$?
13689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690   (exit $ac_status); }; }; then
13691   eval "$as_ac_var=yes"
13692 else
13693   echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13695
13696 eval "$as_ac_var=no"
13697 fi
13698 rm -f conftest.err conftest.$ac_objext \
13699       conftest$ac_exeext conftest.$ac_ext
13700 fi
13701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13703 if test `eval echo '${'$as_ac_var'}'` = yes; then
13704   cat >>confdefs.h <<_ACEOF
13705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13706 _ACEOF
13707
13708 else
13709   pgac_need_repl_snprintf=yes
13710 fi
13711 done
13712
13713 fi
13714
13715
13716 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
13717 # include/c.h will provide declarations.  Note this is a separate test
13718 # from whether the functions exist in the C library --- there are
13719 # systems that have the functions but don't bother to declare them :-(
13720
13721 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13722 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13723 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13724   echo $ECHO_N "(cached) $ECHO_C" >&6
13725 else
13726   cat >conftest.$ac_ext <<_ACEOF
13727 /* confdefs.h.  */
13728 _ACEOF
13729 cat confdefs.h >>conftest.$ac_ext
13730 cat >>conftest.$ac_ext <<_ACEOF
13731 /* end confdefs.h.  */
13732 $ac_includes_default
13733 int
13734 main ()
13735 {
13736 #ifndef snprintf
13737   char *p = (char *) snprintf;
13738 #endif
13739
13740   ;
13741   return 0;
13742 }
13743 _ACEOF
13744 rm -f conftest.$ac_objext
13745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13746   (eval $ac_compile) 2>conftest.er1
13747   ac_status=$?
13748   grep -v '^ *+' conftest.er1 >conftest.err
13749   rm -f conftest.er1
13750   cat conftest.err >&5
13751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752   (exit $ac_status); } &&
13753          { ac_try='test -z "$ac_c_werror_flag"
13754                          || test ! -s conftest.err'
13755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756   (eval $ac_try) 2>&5
13757   ac_status=$?
13758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759   (exit $ac_status); }; } &&
13760          { ac_try='test -s conftest.$ac_objext'
13761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13762   (eval $ac_try) 2>&5
13763   ac_status=$?
13764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765   (exit $ac_status); }; }; then
13766   ac_cv_have_decl_snprintf=yes
13767 else
13768   echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13770
13771 ac_cv_have_decl_snprintf=no
13772 fi
13773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13774 fi
13775 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13776 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13777 if test $ac_cv_have_decl_snprintf = yes; then
13778
13779 cat >>confdefs.h <<_ACEOF
13780 #define HAVE_DECL_SNPRINTF 1
13781 _ACEOF
13782
13783
13784 else
13785   cat >>confdefs.h <<_ACEOF
13786 #define HAVE_DECL_SNPRINTF 0
13787 _ACEOF
13788
13789
13790 fi
13791 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13792 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13793 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13794   echo $ECHO_N "(cached) $ECHO_C" >&6
13795 else
13796   cat >conftest.$ac_ext <<_ACEOF
13797 /* confdefs.h.  */
13798 _ACEOF
13799 cat confdefs.h >>conftest.$ac_ext
13800 cat >>conftest.$ac_ext <<_ACEOF
13801 /* end confdefs.h.  */
13802 $ac_includes_default
13803 int
13804 main ()
13805 {
13806 #ifndef vsnprintf
13807   char *p = (char *) vsnprintf;
13808 #endif
13809
13810   ;
13811   return 0;
13812 }
13813 _ACEOF
13814 rm -f conftest.$ac_objext
13815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13816   (eval $ac_compile) 2>conftest.er1
13817   ac_status=$?
13818   grep -v '^ *+' conftest.er1 >conftest.err
13819   rm -f conftest.er1
13820   cat conftest.err >&5
13821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822   (exit $ac_status); } &&
13823          { ac_try='test -z "$ac_c_werror_flag"
13824                          || test ! -s conftest.err'
13825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826   (eval $ac_try) 2>&5
13827   ac_status=$?
13828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829   (exit $ac_status); }; } &&
13830          { ac_try='test -s conftest.$ac_objext'
13831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832   (eval $ac_try) 2>&5
13833   ac_status=$?
13834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835   (exit $ac_status); }; }; then
13836   ac_cv_have_decl_vsnprintf=yes
13837 else
13838   echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13840
13841 ac_cv_have_decl_vsnprintf=no
13842 fi
13843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13844 fi
13845 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13846 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13847 if test $ac_cv_have_decl_vsnprintf = yes; then
13848
13849 cat >>confdefs.h <<_ACEOF
13850 #define HAVE_DECL_VSNPRINTF 1
13851 _ACEOF
13852
13853
13854 else
13855   cat >>confdefs.h <<_ACEOF
13856 #define HAVE_DECL_VSNPRINTF 0
13857 _ACEOF
13858
13859
13860 fi
13861
13862
13863
13864
13865 echo "$as_me:$LINENO: checking for isinf" >&5
13866 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
13867 if test "${ac_cv_func_isinf+set}" = set; then
13868   echo $ECHO_N "(cached) $ECHO_C" >&6
13869 else
13870   cat >conftest.$ac_ext <<_ACEOF
13871 /* confdefs.h.  */
13872 _ACEOF
13873 cat confdefs.h >>conftest.$ac_ext
13874 cat >>conftest.$ac_ext <<_ACEOF
13875 /* end confdefs.h.  */
13876
13877 #include <math.h>
13878 double glob_double;
13879
13880 int
13881 main ()
13882 {
13883 return isinf(glob_double) ? 0 : 1;
13884   ;
13885   return 0;
13886 }
13887 _ACEOF
13888 rm -f conftest.$ac_objext conftest$ac_exeext
13889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13890   (eval $ac_link) 2>conftest.er1
13891   ac_status=$?
13892   grep -v '^ *+' conftest.er1 >conftest.err
13893   rm -f conftest.er1
13894   cat conftest.err >&5
13895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896   (exit $ac_status); } &&
13897          { ac_try='test -z "$ac_c_werror_flag"
13898                          || test ! -s conftest.err'
13899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13900   (eval $ac_try) 2>&5
13901   ac_status=$?
13902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903   (exit $ac_status); }; } &&
13904          { ac_try='test -s conftest$ac_exeext'
13905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13906   (eval $ac_try) 2>&5
13907   ac_status=$?
13908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909   (exit $ac_status); }; }; then
13910   ac_cv_func_isinf=yes
13911 else
13912   echo "$as_me: failed program was:" >&5
13913 sed 's/^/| /' conftest.$ac_ext >&5
13914
13915 ac_cv_func_isinf=no
13916 fi
13917 rm -f conftest.err conftest.$ac_objext \
13918       conftest$ac_exeext conftest.$ac_ext
13919 fi
13920 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
13921 echo "${ECHO_T}$ac_cv_func_isinf" >&6
13922
13923 if test $ac_cv_func_isinf = yes ; then
13924
13925 cat >>confdefs.h <<\_ACEOF
13926 #define HAVE_ISINF 1
13927 _ACEOF
13928
13929 else
13930   case $LIBOBJS in
13931     "isinf.$ac_objext"   | \
13932   *" isinf.$ac_objext"   | \
13933     "isinf.$ac_objext "* | \
13934   *" isinf.$ac_objext "* ) ;;
13935   *) LIBOBJS="$LIBOBJS isinf.$ac_objext" ;;
13936 esac
13937
13938   # Look for a way to implement a substitute for isinf()
13939
13940
13941
13942
13943 for ac_func in fpclass fp_class fp_class_d class
13944 do
13945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13946 echo "$as_me:$LINENO: checking for $ac_func" >&5
13947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13948 if eval "test \"\${$as_ac_var+set}\" = set"; then
13949   echo $ECHO_N "(cached) $ECHO_C" >&6
13950 else
13951   cat >conftest.$ac_ext <<_ACEOF
13952 /* confdefs.h.  */
13953 _ACEOF
13954 cat confdefs.h >>conftest.$ac_ext
13955 cat >>conftest.$ac_ext <<_ACEOF
13956 /* end confdefs.h.  */
13957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13958    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13959 #define $ac_func innocuous_$ac_func
13960
13961 /* System header to define __stub macros and hopefully few prototypes,
13962     which can conflict with char $ac_func (); below.
13963     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13964     <limits.h> exists even on freestanding compilers.  */
13965
13966 #ifdef __STDC__
13967 # include <limits.h>
13968 #else
13969 # include <assert.h>
13970 #endif
13971
13972 #undef $ac_func
13973
13974 /* Override any gcc2 internal prototype to avoid an error.  */
13975 #ifdef __cplusplus
13976 extern "C"
13977 {
13978 #endif
13979 /* We use char because int might match the return type of a gcc2
13980    builtin and then its argument prototype would still apply.  */
13981 char $ac_func ();
13982 /* The GNU C library defines this for functions which it implements
13983     to always fail with ENOSYS.  Some functions are actually named
13984     something starting with __ and the normal name is an alias.  */
13985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13986 choke me
13987 #else
13988 char (*f) () = $ac_func;
13989 #endif
13990 #ifdef __cplusplus
13991 }
13992 #endif
13993
13994 int
13995 main ()
13996 {
13997 return f != $ac_func;
13998   ;
13999   return 0;
14000 }
14001 _ACEOF
14002 rm -f conftest.$ac_objext conftest$ac_exeext
14003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14004   (eval $ac_link) 2>conftest.er1
14005   ac_status=$?
14006   grep -v '^ *+' conftest.er1 >conftest.err
14007   rm -f conftest.er1
14008   cat conftest.err >&5
14009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010   (exit $ac_status); } &&
14011          { ac_try='test -z "$ac_c_werror_flag"
14012                          || test ! -s conftest.err'
14013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14014   (eval $ac_try) 2>&5
14015   ac_status=$?
14016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017   (exit $ac_status); }; } &&
14018          { ac_try='test -s conftest$ac_exeext'
14019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14020   (eval $ac_try) 2>&5
14021   ac_status=$?
14022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023   (exit $ac_status); }; }; then
14024   eval "$as_ac_var=yes"
14025 else
14026   echo "$as_me: failed program was:" >&5
14027 sed 's/^/| /' conftest.$ac_ext >&5
14028
14029 eval "$as_ac_var=no"
14030 fi
14031 rm -f conftest.err conftest.$ac_objext \
14032       conftest$ac_exeext conftest.$ac_ext
14033 fi
14034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14035 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14036 if test `eval echo '${'$as_ac_var'}'` = yes; then
14037   cat >>confdefs.h <<_ACEOF
14038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14039 _ACEOF
14040  break
14041 fi
14042 done
14043
14044 fi
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strtol strtoul unsetenv
14060 do
14061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14062 echo "$as_me:$LINENO: checking for $ac_func" >&5
14063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14064 if eval "test \"\${$as_ac_var+set}\" = set"; then
14065   echo $ECHO_N "(cached) $ECHO_C" >&6
14066 else
14067   cat >conftest.$ac_ext <<_ACEOF
14068 /* confdefs.h.  */
14069 _ACEOF
14070 cat confdefs.h >>conftest.$ac_ext
14071 cat >>conftest.$ac_ext <<_ACEOF
14072 /* end confdefs.h.  */
14073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14074    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14075 #define $ac_func innocuous_$ac_func
14076
14077 /* System header to define __stub macros and hopefully few prototypes,
14078     which can conflict with char $ac_func (); below.
14079     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14080     <limits.h> exists even on freestanding compilers.  */
14081
14082 #ifdef __STDC__
14083 # include <limits.h>
14084 #else
14085 # include <assert.h>
14086 #endif
14087
14088 #undef $ac_func
14089
14090 /* Override any gcc2 internal prototype to avoid an error.  */
14091 #ifdef __cplusplus
14092 extern "C"
14093 {
14094 #endif
14095 /* We use char because int might match the return type of a gcc2
14096    builtin and then its argument prototype would still apply.  */
14097 char $ac_func ();
14098 /* The GNU C library defines this for functions which it implements
14099     to always fail with ENOSYS.  Some functions are actually named
14100     something starting with __ and the normal name is an alias.  */
14101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14102 choke me
14103 #else
14104 char (*f) () = $ac_func;
14105 #endif
14106 #ifdef __cplusplus
14107 }
14108 #endif
14109
14110 int
14111 main ()
14112 {
14113 return f != $ac_func;
14114   ;
14115   return 0;
14116 }
14117 _ACEOF
14118 rm -f conftest.$ac_objext conftest$ac_exeext
14119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14120   (eval $ac_link) 2>conftest.er1
14121   ac_status=$?
14122   grep -v '^ *+' conftest.er1 >conftest.err
14123   rm -f conftest.er1
14124   cat conftest.err >&5
14125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126   (exit $ac_status); } &&
14127          { ac_try='test -z "$ac_c_werror_flag"
14128                          || test ! -s conftest.err'
14129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130   (eval $ac_try) 2>&5
14131   ac_status=$?
14132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133   (exit $ac_status); }; } &&
14134          { ac_try='test -s conftest$ac_exeext'
14135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14136   (eval $ac_try) 2>&5
14137   ac_status=$?
14138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139   (exit $ac_status); }; }; then
14140   eval "$as_ac_var=yes"
14141 else
14142   echo "$as_me: failed program was:" >&5
14143 sed 's/^/| /' conftest.$ac_ext >&5
14144
14145 eval "$as_ac_var=no"
14146 fi
14147 rm -f conftest.err conftest.$ac_objext \
14148       conftest$ac_exeext conftest.$ac_ext
14149 fi
14150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14151 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14152 if test `eval echo '${'$as_ac_var'}'` = yes; then
14153   cat >>confdefs.h <<_ACEOF
14154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14155 _ACEOF
14156
14157 else
14158   case $LIBOBJS in
14159     "$ac_func.$ac_objext"   | \
14160   *" $ac_func.$ac_objext"   | \
14161     "$ac_func.$ac_objext "* | \
14162   *" $ac_func.$ac_objext "* ) ;;
14163   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14164 esac
14165
14166 fi
14167 done
14168
14169
14170
14171 # System's version of getaddrinfo(), if any, may be used only if we found
14172 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
14173 # (Note: the AC_TRY_LINK probe fails on Windows, where the available
14174 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
14175 # because we want to use our own getaddrinfo.c on Windows anyway.)
14176 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
14177     echo "$as_me:$LINENO: checking for getaddrinfo" >&5
14178 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
14179   cat >conftest.$ac_ext <<_ACEOF
14180 /* confdefs.h.  */
14181 _ACEOF
14182 cat confdefs.h >>conftest.$ac_ext
14183 cat >>conftest.$ac_ext <<_ACEOF
14184 /* end confdefs.h.  */
14185
14186 #include <sys/socket.h>
14187 #include <netdb.h>
14188
14189 int
14190 main ()
14191 {
14192 return getaddrinfo("", "", NULL, NULL) ? 0 : 1;
14193   ;
14194   return 0;
14195 }
14196 _ACEOF
14197 rm -f conftest.$ac_objext conftest$ac_exeext
14198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14199   (eval $ac_link) 2>conftest.er1
14200   ac_status=$?
14201   grep -v '^ *+' conftest.er1 >conftest.err
14202   rm -f conftest.er1
14203   cat conftest.err >&5
14204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205   (exit $ac_status); } &&
14206          { ac_try='test -z "$ac_c_werror_flag"
14207                          || test ! -s conftest.err'
14208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14209   (eval $ac_try) 2>&5
14210   ac_status=$?
14211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212   (exit $ac_status); }; } &&
14213          { ac_try='test -s conftest$ac_exeext'
14214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14215   (eval $ac_try) 2>&5
14216   ac_status=$?
14217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218   (exit $ac_status); }; }; then
14219
14220 cat >>confdefs.h <<\_ACEOF
14221 #define HAVE_GETADDRINFO 1
14222 _ACEOF
14223
14224   echo "$as_me:$LINENO: result: yes" >&5
14225 echo "${ECHO_T}yes" >&6
14226 else
14227   echo "$as_me: failed program was:" >&5
14228 sed 's/^/| /' conftest.$ac_ext >&5
14229
14230 echo "$as_me:$LINENO: result: no" >&5
14231 echo "${ECHO_T}no" >&6
14232              case $LIBOBJS in
14233     "getaddrinfo.$ac_objext"   | \
14234   *" getaddrinfo.$ac_objext"   | \
14235     "getaddrinfo.$ac_objext "* | \
14236   *" getaddrinfo.$ac_objext "* ) ;;
14237   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
14238 esac
14239
14240 fi
14241 rm -f conftest.err conftest.$ac_objext \
14242       conftest$ac_exeext conftest.$ac_ext
14243 else
14244   case $LIBOBJS in
14245     "getaddrinfo.$ac_objext"   | \
14246   *" getaddrinfo.$ac_objext"   | \
14247     "getaddrinfo.$ac_objext "* | \
14248   *" getaddrinfo.$ac_objext "* ) ;;
14249   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
14250 esac
14251
14252 fi
14253
14254 # similarly, use system's getopt_long() only if system provides struct option.
14255 if test x"$ac_cv_type_struct_option" = xyes ; then
14256
14257 for ac_func in getopt_long
14258 do
14259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14260 echo "$as_me:$LINENO: checking for $ac_func" >&5
14261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14262 if eval "test \"\${$as_ac_var+set}\" = set"; then
14263   echo $ECHO_N "(cached) $ECHO_C" >&6
14264 else
14265   cat >conftest.$ac_ext <<_ACEOF
14266 /* confdefs.h.  */
14267 _ACEOF
14268 cat confdefs.h >>conftest.$ac_ext
14269 cat >>conftest.$ac_ext <<_ACEOF
14270 /* end confdefs.h.  */
14271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14272    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14273 #define $ac_func innocuous_$ac_func
14274
14275 /* System header to define __stub macros and hopefully few prototypes,
14276     which can conflict with char $ac_func (); below.
14277     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14278     <limits.h> exists even on freestanding compilers.  */
14279
14280 #ifdef __STDC__
14281 # include <limits.h>
14282 #else
14283 # include <assert.h>
14284 #endif
14285
14286 #undef $ac_func
14287
14288 /* Override any gcc2 internal prototype to avoid an error.  */
14289 #ifdef __cplusplus
14290 extern "C"
14291 {
14292 #endif
14293 /* We use char because int might match the return type of a gcc2
14294    builtin and then its argument prototype would still apply.  */
14295 char $ac_func ();
14296 /* The GNU C library defines this for functions which it implements
14297     to always fail with ENOSYS.  Some functions are actually named
14298     something starting with __ and the normal name is an alias.  */
14299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14300 choke me
14301 #else
14302 char (*f) () = $ac_func;
14303 #endif
14304 #ifdef __cplusplus
14305 }
14306 #endif
14307
14308 int
14309 main ()
14310 {
14311 return f != $ac_func;
14312   ;
14313   return 0;
14314 }
14315 _ACEOF
14316 rm -f conftest.$ac_objext conftest$ac_exeext
14317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14318   (eval $ac_link) 2>conftest.er1
14319   ac_status=$?
14320   grep -v '^ *+' conftest.er1 >conftest.err
14321   rm -f conftest.er1
14322   cat conftest.err >&5
14323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324   (exit $ac_status); } &&
14325          { ac_try='test -z "$ac_c_werror_flag"
14326                          || test ! -s conftest.err'
14327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328   (eval $ac_try) 2>&5
14329   ac_status=$?
14330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331   (exit $ac_status); }; } &&
14332          { ac_try='test -s conftest$ac_exeext'
14333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14334   (eval $ac_try) 2>&5
14335   ac_status=$?
14336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337   (exit $ac_status); }; }; then
14338   eval "$as_ac_var=yes"
14339 else
14340   echo "$as_me: failed program was:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14342
14343 eval "$as_ac_var=no"
14344 fi
14345 rm -f conftest.err conftest.$ac_objext \
14346       conftest$ac_exeext conftest.$ac_ext
14347 fi
14348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14349 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14350 if test `eval echo '${'$as_ac_var'}'` = yes; then
14351   cat >>confdefs.h <<_ACEOF
14352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14353 _ACEOF
14354
14355 else
14356   case $LIBOBJS in
14357     "$ac_func.$ac_objext"   | \
14358   *" $ac_func.$ac_objext"   | \
14359     "$ac_func.$ac_objext "* | \
14360   *" $ac_func.$ac_objext "* ) ;;
14361   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14362 esac
14363
14364 fi
14365 done
14366
14367
14368 else
14369   case $LIBOBJS in
14370     "getopt_long.$ac_objext"   | \
14371   *" getopt_long.$ac_objext"   | \
14372     "getopt_long.$ac_objext "* | \
14373   *" getopt_long.$ac_objext "* ) ;;
14374   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" ;;
14375 esac
14376
14377 fi
14378
14379 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
14380 # We override the previous test that said fseeko/ftello didn't exist
14381 # OS tests are also done in include/c.h and port/fseeko.c
14382 case $host_os in bsdi*|netbsd*)
14383 ac_cv_func_fseeko=yes
14384 esac
14385
14386 # Solaris has a very slow qsort in certain cases, so we replace it:
14387 #   http://forum.sun.com/thread.jspa?forumID=4&threadID=7231
14388 # Supposedly it is fixed in Solaris, but not sure which version, and
14389 # no confirmed testing.  2005-12-16
14390 if test "$PORTNAME" = "solaris"; then
14391 case $LIBOBJS in
14392     "qsort.$ac_objext"   | \
14393   *" qsort.$ac_objext"   | \
14394     "qsort.$ac_objext "* | \
14395   *" qsort.$ac_objext "* ) ;;
14396   *) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
14397 esac
14398
14399 fi
14400
14401 # Win32 support
14402 if test "$PORTNAME" = "win32"; then
14403 case $LIBOBJS in
14404     "gettimeofday.$ac_objext"   | \
14405   *" gettimeofday.$ac_objext"   | \
14406     "gettimeofday.$ac_objext "* | \
14407   *" gettimeofday.$ac_objext "* ) ;;
14408   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
14409 esac
14410
14411 case $LIBOBJS in
14412     "kill.$ac_objext"   | \
14413   *" kill.$ac_objext"   | \
14414     "kill.$ac_objext "* | \
14415   *" kill.$ac_objext "* ) ;;
14416   *) LIBOBJS="$LIBOBJS kill.$ac_objext" ;;
14417 esac
14418
14419 case $LIBOBJS in
14420     "open.$ac_objext"   | \
14421   *" open.$ac_objext"   | \
14422     "open.$ac_objext "* | \
14423   *" open.$ac_objext "* ) ;;
14424   *) LIBOBJS="$LIBOBJS open.$ac_objext" ;;
14425 esac
14426
14427 case $LIBOBJS in
14428     "rand.$ac_objext"   | \
14429   *" rand.$ac_objext"   | \
14430     "rand.$ac_objext "* | \
14431   *" rand.$ac_objext "* ) ;;
14432   *) LIBOBJS="$LIBOBJS rand.$ac_objext" ;;
14433 esac
14434
14435
14436 cat >>confdefs.h <<\_ACEOF
14437 #define HAVE_SYMLINK 1
14438 _ACEOF
14439
14440 fi
14441
14442 if test "$with_readline" = yes; then
14443   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
14444 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
14445 cat >conftest.$ac_ext <<_ACEOF
14446 /* confdefs.h.  */
14447 _ACEOF
14448 cat confdefs.h >>conftest.$ac_ext
14449 cat >>conftest.$ac_ext <<_ACEOF
14450 /* end confdefs.h.  */
14451 #include <stdio.h>
14452 #ifdef HAVE_READLINE_READLINE_H
14453 # include <readline/readline.h>
14454 #elif defined(HAVE_READLINE_H)
14455 # include <readline.h>
14456 #endif
14457
14458 int
14459 main ()
14460 {
14461 rl_completion_append_character = 'x';
14462   ;
14463   return 0;
14464 }
14465 _ACEOF
14466 rm -f conftest.$ac_objext conftest$ac_exeext
14467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14468   (eval $ac_link) 2>conftest.er1
14469   ac_status=$?
14470   grep -v '^ *+' conftest.er1 >conftest.err
14471   rm -f conftest.er1
14472   cat conftest.err >&5
14473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474   (exit $ac_status); } &&
14475          { ac_try='test -z "$ac_c_werror_flag"
14476                          || test ! -s conftest.err'
14477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478   (eval $ac_try) 2>&5
14479   ac_status=$?
14480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481   (exit $ac_status); }; } &&
14482          { ac_try='test -s conftest$ac_exeext'
14483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14484   (eval $ac_try) 2>&5
14485   ac_status=$?
14486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487   (exit $ac_status); }; }; then
14488   echo "$as_me:$LINENO: result: yes" >&5
14489 echo "${ECHO_T}yes" >&6
14490
14491 cat >>confdefs.h <<\_ACEOF
14492 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
14493 _ACEOF
14494
14495 else
14496   echo "$as_me: failed program was:" >&5
14497 sed 's/^/| /' conftest.$ac_ext >&5
14498
14499 echo "$as_me:$LINENO: result: no" >&5
14500 echo "${ECHO_T}no" >&6
14501 fi
14502 rm -f conftest.err conftest.$ac_objext \
14503       conftest$ac_exeext conftest.$ac_ext
14504
14505
14506 for ac_func in rl_completion_matches rl_filename_completion_function
14507 do
14508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14509 echo "$as_me:$LINENO: checking for $ac_func" >&5
14510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14511 if eval "test \"\${$as_ac_var+set}\" = set"; then
14512   echo $ECHO_N "(cached) $ECHO_C" >&6
14513 else
14514   cat >conftest.$ac_ext <<_ACEOF
14515 /* confdefs.h.  */
14516 _ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h.  */
14520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14522 #define $ac_func innocuous_$ac_func
14523
14524 /* System header to define __stub macros and hopefully few prototypes,
14525     which can conflict with char $ac_func (); below.
14526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14527     <limits.h> exists even on freestanding compilers.  */
14528
14529 #ifdef __STDC__
14530 # include <limits.h>
14531 #else
14532 # include <assert.h>
14533 #endif
14534
14535 #undef $ac_func
14536
14537 /* Override any gcc2 internal prototype to avoid an error.  */
14538 #ifdef __cplusplus
14539 extern "C"
14540 {
14541 #endif
14542 /* We use char because int might match the return type of a gcc2
14543    builtin and then its argument prototype would still apply.  */
14544 char $ac_func ();
14545 /* The GNU C library defines this for functions which it implements
14546     to always fail with ENOSYS.  Some functions are actually named
14547     something starting with __ and the normal name is an alias.  */
14548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14549 choke me
14550 #else
14551 char (*f) () = $ac_func;
14552 #endif
14553 #ifdef __cplusplus
14554 }
14555 #endif
14556
14557 int
14558 main ()
14559 {
14560 return f != $ac_func;
14561   ;
14562   return 0;
14563 }
14564 _ACEOF
14565 rm -f conftest.$ac_objext conftest$ac_exeext
14566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14567   (eval $ac_link) 2>conftest.er1
14568   ac_status=$?
14569   grep -v '^ *+' conftest.er1 >conftest.err
14570   rm -f conftest.er1
14571   cat conftest.err >&5
14572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573   (exit $ac_status); } &&
14574          { ac_try='test -z "$ac_c_werror_flag"
14575                          || test ! -s conftest.err'
14576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577   (eval $ac_try) 2>&5
14578   ac_status=$?
14579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580   (exit $ac_status); }; } &&
14581          { ac_try='test -s conftest$ac_exeext'
14582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14583   (eval $ac_try) 2>&5
14584   ac_status=$?
14585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586   (exit $ac_status); }; }; then
14587   eval "$as_ac_var=yes"
14588 else
14589   echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.$ac_ext >&5
14591
14592 eval "$as_ac_var=no"
14593 fi
14594 rm -f conftest.err conftest.$ac_objext \
14595       conftest$ac_exeext conftest.$ac_ext
14596 fi
14597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14599 if test `eval echo '${'$as_ac_var'}'` = yes; then
14600   cat >>confdefs.h <<_ACEOF
14601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14602 _ACEOF
14603
14604 fi
14605 done
14606
14607
14608 for ac_func in replace_history_entry
14609 do
14610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14611 echo "$as_me:$LINENO: checking for $ac_func" >&5
14612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14613 if eval "test \"\${$as_ac_var+set}\" = set"; then
14614   echo $ECHO_N "(cached) $ECHO_C" >&6
14615 else
14616   cat >conftest.$ac_ext <<_ACEOF
14617 /* confdefs.h.  */
14618 _ACEOF
14619 cat confdefs.h >>conftest.$ac_ext
14620 cat >>conftest.$ac_ext <<_ACEOF
14621 /* end confdefs.h.  */
14622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14623    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14624 #define $ac_func innocuous_$ac_func
14625
14626 /* System header to define __stub macros and hopefully few prototypes,
14627     which can conflict with char $ac_func (); below.
14628     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14629     <limits.h> exists even on freestanding compilers.  */
14630
14631 #ifdef __STDC__
14632 # include <limits.h>
14633 #else
14634 # include <assert.h>
14635 #endif
14636
14637 #undef $ac_func
14638
14639 /* Override any gcc2 internal prototype to avoid an error.  */
14640 #ifdef __cplusplus
14641 extern "C"
14642 {
14643 #endif
14644 /* We use char because int might match the return type of a gcc2
14645    builtin and then its argument prototype would still apply.  */
14646 char $ac_func ();
14647 /* The GNU C library defines this for functions which it implements
14648     to always fail with ENOSYS.  Some functions are actually named
14649     something starting with __ and the normal name is an alias.  */
14650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14651 choke me
14652 #else
14653 char (*f) () = $ac_func;
14654 #endif
14655 #ifdef __cplusplus
14656 }
14657 #endif
14658
14659 int
14660 main ()
14661 {
14662 return f != $ac_func;
14663   ;
14664   return 0;
14665 }
14666 _ACEOF
14667 rm -f conftest.$ac_objext conftest$ac_exeext
14668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14669   (eval $ac_link) 2>conftest.er1
14670   ac_status=$?
14671   grep -v '^ *+' conftest.er1 >conftest.err
14672   rm -f conftest.er1
14673   cat conftest.err >&5
14674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675   (exit $ac_status); } &&
14676          { ac_try='test -z "$ac_c_werror_flag"
14677                          || test ! -s conftest.err'
14678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14679   (eval $ac_try) 2>&5
14680   ac_status=$?
14681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682   (exit $ac_status); }; } &&
14683          { ac_try='test -s conftest$ac_exeext'
14684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14685   (eval $ac_try) 2>&5
14686   ac_status=$?
14687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688   (exit $ac_status); }; }; then
14689   eval "$as_ac_var=yes"
14690 else
14691   echo "$as_me: failed program was:" >&5
14692 sed 's/^/| /' conftest.$ac_ext >&5
14693
14694 eval "$as_ac_var=no"
14695 fi
14696 rm -f conftest.err conftest.$ac_objext \
14697       conftest$ac_exeext conftest.$ac_ext
14698 fi
14699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14700 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14701 if test `eval echo '${'$as_ac_var'}'` = yes; then
14702   cat >>confdefs.h <<_ACEOF
14703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14704 _ACEOF
14705
14706 fi
14707 done
14708
14709 fi
14710
14711
14712 echo "$as_me:$LINENO: checking for finite" >&5
14713 echo $ECHO_N "checking for finite... $ECHO_C" >&6
14714 cat >conftest.$ac_ext <<_ACEOF
14715 /* confdefs.h.  */
14716 _ACEOF
14717 cat confdefs.h >>conftest.$ac_ext
14718 cat >>conftest.$ac_ext <<_ACEOF
14719 /* end confdefs.h.  */
14720
14721 #include <math.h>
14722 double glob_double;
14723
14724 int
14725 main ()
14726 {
14727 return finite(glob_double) ? 0 : 1;
14728   ;
14729   return 0;
14730 }
14731 _ACEOF
14732 rm -f conftest.$ac_objext conftest$ac_exeext
14733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14734   (eval $ac_link) 2>conftest.er1
14735   ac_status=$?
14736   grep -v '^ *+' conftest.er1 >conftest.err
14737   rm -f conftest.er1
14738   cat conftest.err >&5
14739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740   (exit $ac_status); } &&
14741          { ac_try='test -z "$ac_c_werror_flag"
14742                          || test ! -s conftest.err'
14743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14744   (eval $ac_try) 2>&5
14745   ac_status=$?
14746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747   (exit $ac_status); }; } &&
14748          { ac_try='test -s conftest$ac_exeext'
14749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14750   (eval $ac_try) 2>&5
14751   ac_status=$?
14752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753   (exit $ac_status); }; }; then
14754
14755 cat >>confdefs.h <<\_ACEOF
14756 #define HAVE_FINITE 1
14757 _ACEOF
14758
14759 echo "$as_me:$LINENO: result: yes" >&5
14760 echo "${ECHO_T}yes" >&6
14761 else
14762   echo "$as_me: failed program was:" >&5
14763 sed 's/^/| /' conftest.$ac_ext >&5
14764
14765 echo "$as_me:$LINENO: result: no" >&5
14766 echo "${ECHO_T}no" >&6
14767 fi
14768 rm -f conftest.err conftest.$ac_objext \
14769       conftest$ac_exeext conftest.$ac_ext
14770
14771 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
14772 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
14773 cat >conftest.$ac_ext <<_ACEOF
14774 /* confdefs.h.  */
14775 _ACEOF
14776 cat confdefs.h >>conftest.$ac_ext
14777 cat >>conftest.$ac_ext <<_ACEOF
14778 /* end confdefs.h.  */
14779 #include <setjmp.h>
14780 int
14781 main ()
14782 {
14783 sigjmp_buf x; sigsetjmp(x, 1);
14784   ;
14785   return 0;
14786 }
14787 _ACEOF
14788 rm -f conftest.$ac_objext conftest$ac_exeext
14789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14790   (eval $ac_link) 2>conftest.er1
14791   ac_status=$?
14792   grep -v '^ *+' conftest.er1 >conftest.err
14793   rm -f conftest.er1
14794   cat conftest.err >&5
14795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796   (exit $ac_status); } &&
14797          { ac_try='test -z "$ac_c_werror_flag"
14798                          || test ! -s conftest.err'
14799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800   (eval $ac_try) 2>&5
14801   ac_status=$?
14802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803   (exit $ac_status); }; } &&
14804          { ac_try='test -s conftest$ac_exeext'
14805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806   (eval $ac_try) 2>&5
14807   ac_status=$?
14808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809   (exit $ac_status); }; }; then
14810
14811 cat >>confdefs.h <<\_ACEOF
14812 #define HAVE_SIGSETJMP 1
14813 _ACEOF
14814
14815 echo "$as_me:$LINENO: result: yes" >&5
14816 echo "${ECHO_T}yes" >&6
14817 else
14818   echo "$as_me: failed program was:" >&5
14819 sed 's/^/| /' conftest.$ac_ext >&5
14820
14821 echo "$as_me:$LINENO: result: no" >&5
14822 echo "${ECHO_T}no" >&6
14823 fi
14824 rm -f conftest.err conftest.$ac_objext \
14825       conftest$ac_exeext conftest.$ac_ext
14826
14827 echo "$as_me:$LINENO: checking for syslog" >&5
14828 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
14829 if test "${ac_cv_func_syslog+set}" = set; then
14830   echo $ECHO_N "(cached) $ECHO_C" >&6
14831 else
14832   cat >conftest.$ac_ext <<_ACEOF
14833 /* confdefs.h.  */
14834 _ACEOF
14835 cat confdefs.h >>conftest.$ac_ext
14836 cat >>conftest.$ac_ext <<_ACEOF
14837 /* end confdefs.h.  */
14838 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
14839    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14840 #define syslog innocuous_syslog
14841
14842 /* System header to define __stub macros and hopefully few prototypes,
14843     which can conflict with char syslog (); below.
14844     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14845     <limits.h> exists even on freestanding compilers.  */
14846
14847 #ifdef __STDC__
14848 # include <limits.h>
14849 #else
14850 # include <assert.h>
14851 #endif
14852
14853 #undef syslog
14854
14855 /* Override any gcc2 internal prototype to avoid an error.  */
14856 #ifdef __cplusplus
14857 extern "C"
14858 {
14859 #endif
14860 /* We use char because int might match the return type of a gcc2
14861    builtin and then its argument prototype would still apply.  */
14862 char syslog ();
14863 /* The GNU C library defines this for functions which it implements
14864     to always fail with ENOSYS.  Some functions are actually named
14865     something starting with __ and the normal name is an alias.  */
14866 #if defined (__stub_syslog) || defined (__stub___syslog)
14867 choke me
14868 #else
14869 char (*f) () = syslog;
14870 #endif
14871 #ifdef __cplusplus
14872 }
14873 #endif
14874
14875 int
14876 main ()
14877 {
14878 return f != syslog;
14879   ;
14880   return 0;
14881 }
14882 _ACEOF
14883 rm -f conftest.$ac_objext conftest$ac_exeext
14884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14885   (eval $ac_link) 2>conftest.er1
14886   ac_status=$?
14887   grep -v '^ *+' conftest.er1 >conftest.err
14888   rm -f conftest.er1
14889   cat conftest.err >&5
14890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891   (exit $ac_status); } &&
14892          { ac_try='test -z "$ac_c_werror_flag"
14893                          || test ! -s conftest.err'
14894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14895   (eval $ac_try) 2>&5
14896   ac_status=$?
14897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898   (exit $ac_status); }; } &&
14899          { ac_try='test -s conftest$ac_exeext'
14900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901   (eval $ac_try) 2>&5
14902   ac_status=$?
14903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904   (exit $ac_status); }; }; then
14905   ac_cv_func_syslog=yes
14906 else
14907   echo "$as_me: failed program was:" >&5
14908 sed 's/^/| /' conftest.$ac_ext >&5
14909
14910 ac_cv_func_syslog=no
14911 fi
14912 rm -f conftest.err conftest.$ac_objext \
14913       conftest$ac_exeext conftest.$ac_ext
14914 fi
14915 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
14916 echo "${ECHO_T}$ac_cv_func_syslog" >&6
14917 if test $ac_cv_func_syslog = yes; then
14918   if test "${ac_cv_header_syslog_h+set}" = set; then
14919   echo "$as_me:$LINENO: checking for syslog.h" >&5
14920 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
14921 if test "${ac_cv_header_syslog_h+set}" = set; then
14922   echo $ECHO_N "(cached) $ECHO_C" >&6
14923 fi
14924 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
14925 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
14926 else
14927   # Is the header compilable?
14928 echo "$as_me:$LINENO: checking syslog.h usability" >&5
14929 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
14930 cat >conftest.$ac_ext <<_ACEOF
14931 /* confdefs.h.  */
14932 _ACEOF
14933 cat confdefs.h >>conftest.$ac_ext
14934 cat >>conftest.$ac_ext <<_ACEOF
14935 /* end confdefs.h.  */
14936 $ac_includes_default
14937 #include <syslog.h>
14938 _ACEOF
14939 rm -f conftest.$ac_objext
14940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14941   (eval $ac_compile) 2>conftest.er1
14942   ac_status=$?
14943   grep -v '^ *+' conftest.er1 >conftest.err
14944   rm -f conftest.er1
14945   cat conftest.err >&5
14946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947   (exit $ac_status); } &&
14948          { ac_try='test -z "$ac_c_werror_flag"
14949                          || test ! -s conftest.err'
14950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14951   (eval $ac_try) 2>&5
14952   ac_status=$?
14953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954   (exit $ac_status); }; } &&
14955          { ac_try='test -s conftest.$ac_objext'
14956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14957   (eval $ac_try) 2>&5
14958   ac_status=$?
14959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960   (exit $ac_status); }; }; then
14961   ac_header_compiler=yes
14962 else
14963   echo "$as_me: failed program was:" >&5
14964 sed 's/^/| /' conftest.$ac_ext >&5
14965
14966 ac_header_compiler=no
14967 fi
14968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14969 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14970 echo "${ECHO_T}$ac_header_compiler" >&6
14971
14972 # Is the header present?
14973 echo "$as_me:$LINENO: checking syslog.h presence" >&5
14974 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
14975 cat >conftest.$ac_ext <<_ACEOF
14976 /* confdefs.h.  */
14977 _ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h.  */
14981 #include <syslog.h>
14982 _ACEOF
14983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14984   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14985   ac_status=$?
14986   grep -v '^ *+' conftest.er1 >conftest.err
14987   rm -f conftest.er1
14988   cat conftest.err >&5
14989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990   (exit $ac_status); } >/dev/null; then
14991   if test -s conftest.err; then
14992     ac_cpp_err=$ac_c_preproc_warn_flag
14993     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14994   else
14995     ac_cpp_err=
14996   fi
14997 else
14998   ac_cpp_err=yes
14999 fi
15000 if test -z "$ac_cpp_err"; then
15001   ac_header_preproc=yes
15002 else
15003   echo "$as_me: failed program was:" >&5
15004 sed 's/^/| /' conftest.$ac_ext >&5
15005
15006   ac_header_preproc=no
15007 fi
15008 rm -f conftest.err conftest.$ac_ext
15009 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15010 echo "${ECHO_T}$ac_header_preproc" >&6
15011
15012 # So?  What about this header?
15013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15014   yes:no: )
15015     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
15016 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15017     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
15018 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
15019     ac_header_preproc=yes
15020     ;;
15021   no:yes:* )
15022     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
15023 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
15024     { echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
15025 echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
15026     { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
15027 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
15028     { echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
15029 echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15030     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
15031 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
15032     { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
15033 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
15034     (
15035       cat <<\_ASBOX
15036 ## ---------------------------------------- ##
15037 ## Report this to pgsql-bugs@postgresql.org ##
15038 ## ---------------------------------------- ##
15039 _ASBOX
15040     ) |
15041       sed "s/^/$as_me: WARNING:     /" >&2
15042     ;;
15043 esac
15044 echo "$as_me:$LINENO: checking for syslog.h" >&5
15045 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
15046 if test "${ac_cv_header_syslog_h+set}" = set; then
15047   echo $ECHO_N "(cached) $ECHO_C" >&6
15048 else
15049   ac_cv_header_syslog_h=$ac_header_preproc
15050 fi
15051 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
15052 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
15053
15054 fi
15055 if test $ac_cv_header_syslog_h = yes; then
15056
15057 cat >>confdefs.h <<\_ACEOF
15058 #define HAVE_SYSLOG 1
15059 _ACEOF
15060
15061 fi
15062
15063
15064 fi
15065
15066
15067 echo "$as_me:$LINENO: checking for optreset" >&5
15068 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
15069 if test "${pgac_cv_var_int_optreset+set}" = set; then
15070   echo $ECHO_N "(cached) $ECHO_C" >&6
15071 else
15072   cat >conftest.$ac_ext <<_ACEOF
15073 /* confdefs.h.  */
15074 _ACEOF
15075 cat confdefs.h >>conftest.$ac_ext
15076 cat >>conftest.$ac_ext <<_ACEOF
15077 /* end confdefs.h.  */
15078 #include <unistd.h>
15079 int
15080 main ()
15081 {
15082 extern int optreset; optreset = 1;
15083   ;
15084   return 0;
15085 }
15086 _ACEOF
15087 rm -f conftest.$ac_objext conftest$ac_exeext
15088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15089   (eval $ac_link) 2>conftest.er1
15090   ac_status=$?
15091   grep -v '^ *+' conftest.er1 >conftest.err
15092   rm -f conftest.er1
15093   cat conftest.err >&5
15094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095   (exit $ac_status); } &&
15096          { ac_try='test -z "$ac_c_werror_flag"
15097                          || test ! -s conftest.err'
15098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15099   (eval $ac_try) 2>&5
15100   ac_status=$?
15101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102   (exit $ac_status); }; } &&
15103          { ac_try='test -s conftest$ac_exeext'
15104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15105   (eval $ac_try) 2>&5
15106   ac_status=$?
15107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108   (exit $ac_status); }; }; then
15109   pgac_cv_var_int_optreset=yes
15110 else
15111   echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15113
15114 pgac_cv_var_int_optreset=no
15115 fi
15116 rm -f conftest.err conftest.$ac_objext \
15117       conftest$ac_exeext conftest.$ac_ext
15118 fi
15119 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
15120 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
15121 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
15122
15123 cat >>confdefs.h <<\_ACEOF
15124 #define HAVE_INT_OPTRESET 1
15125 _ACEOF
15126
15127 fi
15128
15129
15130
15131 for ac_func in strtoll strtoq
15132 do
15133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15134 echo "$as_me:$LINENO: checking for $ac_func" >&5
15135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15136 if eval "test \"\${$as_ac_var+set}\" = set"; then
15137   echo $ECHO_N "(cached) $ECHO_C" >&6
15138 else
15139   cat >conftest.$ac_ext <<_ACEOF
15140 /* confdefs.h.  */
15141 _ACEOF
15142 cat confdefs.h >>conftest.$ac_ext
15143 cat >>conftest.$ac_ext <<_ACEOF
15144 /* end confdefs.h.  */
15145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15146    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15147 #define $ac_func innocuous_$ac_func
15148
15149 /* System header to define __stub macros and hopefully few prototypes,
15150     which can conflict with char $ac_func (); below.
15151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15152     <limits.h> exists even on freestanding compilers.  */
15153
15154 #ifdef __STDC__
15155 # include <limits.h>
15156 #else
15157 # include <assert.h>
15158 #endif
15159
15160 #undef $ac_func
15161
15162 /* Override any gcc2 internal prototype to avoid an error.  */
15163 #ifdef __cplusplus
15164 extern "C"
15165 {
15166 #endif
15167 /* We use char because int might match the return type of a gcc2
15168    builtin and then its argument prototype would still apply.  */
15169 char $ac_func ();
15170 /* The GNU C library defines this for functions which it implements
15171     to always fail with ENOSYS.  Some functions are actually named
15172     something starting with __ and the normal name is an alias.  */
15173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15174 choke me
15175 #else
15176 char (*f) () = $ac_func;
15177 #endif
15178 #ifdef __cplusplus
15179 }
15180 #endif
15181
15182 int
15183 main ()
15184 {
15185 return f != $ac_func;
15186   ;
15187   return 0;
15188 }
15189 _ACEOF
15190 rm -f conftest.$ac_objext conftest$ac_exeext
15191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15192   (eval $ac_link) 2>conftest.er1
15193   ac_status=$?
15194   grep -v '^ *+' conftest.er1 >conftest.err
15195   rm -f conftest.er1
15196   cat conftest.err >&5
15197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198   (exit $ac_status); } &&
15199          { ac_try='test -z "$ac_c_werror_flag"
15200                          || test ! -s conftest.err'
15201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15202   (eval $ac_try) 2>&5
15203   ac_status=$?
15204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205   (exit $ac_status); }; } &&
15206          { ac_try='test -s conftest$ac_exeext'
15207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15208   (eval $ac_try) 2>&5
15209   ac_status=$?
15210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211   (exit $ac_status); }; }; then
15212   eval "$as_ac_var=yes"
15213 else
15214   echo "$as_me: failed program was:" >&5
15215 sed 's/^/| /' conftest.$ac_ext >&5
15216
15217 eval "$as_ac_var=no"
15218 fi
15219 rm -f conftest.err conftest.$ac_objext \
15220       conftest$ac_exeext conftest.$ac_ext
15221 fi
15222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15224 if test `eval echo '${'$as_ac_var'}'` = yes; then
15225   cat >>confdefs.h <<_ACEOF
15226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15227 _ACEOF
15228  break
15229 fi
15230 done
15231
15232
15233
15234 for ac_func in strtoull strtouq
15235 do
15236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15237 echo "$as_me:$LINENO: checking for $ac_func" >&5
15238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15239 if eval "test \"\${$as_ac_var+set}\" = set"; then
15240   echo $ECHO_N "(cached) $ECHO_C" >&6
15241 else
15242   cat >conftest.$ac_ext <<_ACEOF
15243 /* confdefs.h.  */
15244 _ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h.  */
15248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15249    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15250 #define $ac_func innocuous_$ac_func
15251
15252 /* System header to define __stub macros and hopefully few prototypes,
15253     which can conflict with char $ac_func (); below.
15254     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15255     <limits.h> exists even on freestanding compilers.  */
15256
15257 #ifdef __STDC__
15258 # include <limits.h>
15259 #else
15260 # include <assert.h>
15261 #endif
15262
15263 #undef $ac_func
15264
15265 /* Override any gcc2 internal prototype to avoid an error.  */
15266 #ifdef __cplusplus
15267 extern "C"
15268 {
15269 #endif
15270 /* We use char because int might match the return type of a gcc2
15271    builtin and then its argument prototype would still apply.  */
15272 char $ac_func ();
15273 /* The GNU C library defines this for functions which it implements
15274     to always fail with ENOSYS.  Some functions are actually named
15275     something starting with __ and the normal name is an alias.  */
15276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15277 choke me
15278 #else
15279 char (*f) () = $ac_func;
15280 #endif
15281 #ifdef __cplusplus
15282 }
15283 #endif
15284
15285 int
15286 main ()
15287 {
15288 return f != $ac_func;
15289   ;
15290   return 0;
15291 }
15292 _ACEOF
15293 rm -f conftest.$ac_objext conftest$ac_exeext
15294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15295   (eval $ac_link) 2>conftest.er1
15296   ac_status=$?
15297   grep -v '^ *+' conftest.er1 >conftest.err
15298   rm -f conftest.er1
15299   cat conftest.err >&5
15300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301   (exit $ac_status); } &&
15302          { ac_try='test -z "$ac_c_werror_flag"
15303                          || test ! -s conftest.err'
15304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15305   (eval $ac_try) 2>&5
15306   ac_status=$?
15307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308   (exit $ac_status); }; } &&
15309          { ac_try='test -s conftest$ac_exeext'
15310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15311   (eval $ac_try) 2>&5
15312   ac_status=$?
15313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314   (exit $ac_status); }; }; then
15315   eval "$as_ac_var=yes"
15316 else
15317   echo "$as_me: failed program was:" >&5
15318 sed 's/^/| /' conftest.$ac_ext >&5
15319
15320 eval "$as_ac_var=no"
15321 fi
15322 rm -f conftest.err conftest.$ac_objext \
15323       conftest$ac_exeext conftest.$ac_ext
15324 fi
15325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15326 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15327 if test `eval echo '${'$as_ac_var'}'` = yes; then
15328   cat >>confdefs.h <<_ACEOF
15329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15330 _ACEOF
15331  break
15332 fi
15333 done
15334
15335
15336 # Check for one of atexit() or on_exit()
15337
15338 for ac_func in atexit
15339 do
15340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15341 echo "$as_me:$LINENO: checking for $ac_func" >&5
15342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15343 if eval "test \"\${$as_ac_var+set}\" = set"; then
15344   echo $ECHO_N "(cached) $ECHO_C" >&6
15345 else
15346   cat >conftest.$ac_ext <<_ACEOF
15347 /* confdefs.h.  */
15348 _ACEOF
15349 cat confdefs.h >>conftest.$ac_ext
15350 cat >>conftest.$ac_ext <<_ACEOF
15351 /* end confdefs.h.  */
15352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15353    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15354 #define $ac_func innocuous_$ac_func
15355
15356 /* System header to define __stub macros and hopefully few prototypes,
15357     which can conflict with char $ac_func (); below.
15358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15359     <limits.h> exists even on freestanding compilers.  */
15360
15361 #ifdef __STDC__
15362 # include <limits.h>
15363 #else
15364 # include <assert.h>
15365 #endif
15366
15367 #undef $ac_func
15368
15369 /* Override any gcc2 internal prototype to avoid an error.  */
15370 #ifdef __cplusplus
15371 extern "C"
15372 {
15373 #endif
15374 /* We use char because int might match the return type of a gcc2
15375    builtin and then its argument prototype would still apply.  */
15376 char $ac_func ();
15377 /* The GNU C library defines this for functions which it implements
15378     to always fail with ENOSYS.  Some functions are actually named
15379     something starting with __ and the normal name is an alias.  */
15380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15381 choke me
15382 #else
15383 char (*f) () = $ac_func;
15384 #endif
15385 #ifdef __cplusplus
15386 }
15387 #endif
15388
15389 int
15390 main ()
15391 {
15392 return f != $ac_func;
15393   ;
15394   return 0;
15395 }
15396 _ACEOF
15397 rm -f conftest.$ac_objext conftest$ac_exeext
15398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15399   (eval $ac_link) 2>conftest.er1
15400   ac_status=$?
15401   grep -v '^ *+' conftest.er1 >conftest.err
15402   rm -f conftest.er1
15403   cat conftest.err >&5
15404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405   (exit $ac_status); } &&
15406          { ac_try='test -z "$ac_c_werror_flag"
15407                          || test ! -s conftest.err'
15408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15409   (eval $ac_try) 2>&5
15410   ac_status=$?
15411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412   (exit $ac_status); }; } &&
15413          { ac_try='test -s conftest$ac_exeext'
15414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15415   (eval $ac_try) 2>&5
15416   ac_status=$?
15417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418   (exit $ac_status); }; }; then
15419   eval "$as_ac_var=yes"
15420 else
15421   echo "$as_me: failed program was:" >&5
15422 sed 's/^/| /' conftest.$ac_ext >&5
15423
15424 eval "$as_ac_var=no"
15425 fi
15426 rm -f conftest.err conftest.$ac_objext \
15427       conftest$ac_exeext conftest.$ac_ext
15428 fi
15429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15431 if test `eval echo '${'$as_ac_var'}'` = yes; then
15432   cat >>confdefs.h <<_ACEOF
15433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15434 _ACEOF
15435
15436 else
15437
15438 for ac_func in on_exit
15439 do
15440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15441 echo "$as_me:$LINENO: checking for $ac_func" >&5
15442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15443 if eval "test \"\${$as_ac_var+set}\" = set"; then
15444   echo $ECHO_N "(cached) $ECHO_C" >&6
15445 else
15446   cat >conftest.$ac_ext <<_ACEOF
15447 /* confdefs.h.  */
15448 _ACEOF
15449 cat confdefs.h >>conftest.$ac_ext
15450 cat >>conftest.$ac_ext <<_ACEOF
15451 /* end confdefs.h.  */
15452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15453    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15454 #define $ac_func innocuous_$ac_func
15455
15456 /* System header to define __stub macros and hopefully few prototypes,
15457     which can conflict with char $ac_func (); below.
15458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15459     <limits.h> exists even on freestanding compilers.  */
15460
15461 #ifdef __STDC__
15462 # include <limits.h>
15463 #else
15464 # include <assert.h>
15465 #endif
15466
15467 #undef $ac_func
15468
15469 /* Override any gcc2 internal prototype to avoid an error.  */
15470 #ifdef __cplusplus
15471 extern "C"
15472 {
15473 #endif
15474 /* We use char because int might match the return type of a gcc2
15475    builtin and then its argument prototype would still apply.  */
15476 char $ac_func ();
15477 /* The GNU C library defines this for functions which it implements
15478     to always fail with ENOSYS.  Some functions are actually named
15479     something starting with __ and the normal name is an alias.  */
15480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15481 choke me
15482 #else
15483 char (*f) () = $ac_func;
15484 #endif
15485 #ifdef __cplusplus
15486 }
15487 #endif
15488
15489 int
15490 main ()
15491 {
15492 return f != $ac_func;
15493   ;
15494   return 0;
15495 }
15496 _ACEOF
15497 rm -f conftest.$ac_objext conftest$ac_exeext
15498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15499   (eval $ac_link) 2>conftest.er1
15500   ac_status=$?
15501   grep -v '^ *+' conftest.er1 >conftest.err
15502   rm -f conftest.er1
15503   cat conftest.err >&5
15504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505   (exit $ac_status); } &&
15506          { ac_try='test -z "$ac_c_werror_flag"
15507                          || test ! -s conftest.err'
15508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509   (eval $ac_try) 2>&5
15510   ac_status=$?
15511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512   (exit $ac_status); }; } &&
15513          { ac_try='test -s conftest$ac_exeext'
15514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15515   (eval $ac_try) 2>&5
15516   ac_status=$?
15517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518   (exit $ac_status); }; }; then
15519   eval "$as_ac_var=yes"
15520 else
15521   echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15523
15524 eval "$as_ac_var=no"
15525 fi
15526 rm -f conftest.err conftest.$ac_objext \
15527       conftest$ac_exeext conftest.$ac_ext
15528 fi
15529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15531 if test `eval echo '${'$as_ac_var'}'` = yes; then
15532   cat >>confdefs.h <<_ACEOF
15533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15534 _ACEOF
15535
15536 else
15537   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
15538 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
15539    { (exit 1); exit 1; }; }
15540 fi
15541 done
15542
15543 fi
15544 done
15545
15546
15547 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15548 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
15549 if test "${ac_cv_sys_largefile_source+set}" = set; then
15550   echo $ECHO_N "(cached) $ECHO_C" >&6
15551 else
15552   while :; do
15553   ac_cv_sys_largefile_source=no
15554   cat >conftest.$ac_ext <<_ACEOF
15555 /* confdefs.h.  */
15556 _ACEOF
15557 cat confdefs.h >>conftest.$ac_ext
15558 cat >>conftest.$ac_ext <<_ACEOF
15559 /* end confdefs.h.  */
15560 #include <stdio.h>
15561 int
15562 main ()
15563 {
15564 return !fseeko;
15565   ;
15566   return 0;
15567 }
15568 _ACEOF
15569 rm -f conftest.$ac_objext
15570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15571   (eval $ac_compile) 2>conftest.er1
15572   ac_status=$?
15573   grep -v '^ *+' conftest.er1 >conftest.err
15574   rm -f conftest.er1
15575   cat conftest.err >&5
15576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577   (exit $ac_status); } &&
15578          { ac_try='test -z "$ac_c_werror_flag"
15579                          || test ! -s conftest.err'
15580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15581   (eval $ac_try) 2>&5
15582   ac_status=$?
15583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584   (exit $ac_status); }; } &&
15585          { ac_try='test -s conftest.$ac_objext'
15586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587   (eval $ac_try) 2>&5
15588   ac_status=$?
15589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590   (exit $ac_status); }; }; then
15591   break
15592 else
15593   echo "$as_me: failed program was:" >&5
15594 sed 's/^/| /' conftest.$ac_ext >&5
15595
15596 fi
15597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15598   cat >conftest.$ac_ext <<_ACEOF
15599 /* confdefs.h.  */
15600 _ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h.  */
15604 #define _LARGEFILE_SOURCE 1
15605 #include <stdio.h>
15606 int
15607 main ()
15608 {
15609 return !fseeko;
15610   ;
15611   return 0;
15612 }
15613 _ACEOF
15614 rm -f conftest.$ac_objext
15615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15616   (eval $ac_compile) 2>conftest.er1
15617   ac_status=$?
15618   grep -v '^ *+' conftest.er1 >conftest.err
15619   rm -f conftest.er1
15620   cat conftest.err >&5
15621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622   (exit $ac_status); } &&
15623          { ac_try='test -z "$ac_c_werror_flag"
15624                          || test ! -s conftest.err'
15625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15626   (eval $ac_try) 2>&5
15627   ac_status=$?
15628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629   (exit $ac_status); }; } &&
15630          { ac_try='test -s conftest.$ac_objext'
15631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15632   (eval $ac_try) 2>&5
15633   ac_status=$?
15634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635   (exit $ac_status); }; }; then
15636   ac_cv_sys_largefile_source=1; break
15637 else
15638   echo "$as_me: failed program was:" >&5
15639 sed 's/^/| /' conftest.$ac_ext >&5
15640
15641 fi
15642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15643   break
15644 done
15645 fi
15646 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
15647 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
15648 if test "$ac_cv_sys_largefile_source" != no; then
15649
15650 cat >>confdefs.h <<_ACEOF
15651 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15652 _ACEOF
15653
15654 fi
15655 rm -f conftest*
15656
15657 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15658 # in glibc 2.1.3, but that breaks too many other things.
15659 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15660 echo "$as_me:$LINENO: checking for fseeko" >&5
15661 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
15662 if test "${ac_cv_func_fseeko+set}" = set; then
15663   echo $ECHO_N "(cached) $ECHO_C" >&6
15664 else
15665   cat >conftest.$ac_ext <<_ACEOF
15666 /* confdefs.h.  */
15667 _ACEOF
15668 cat confdefs.h >>conftest.$ac_ext
15669 cat >>conftest.$ac_ext <<_ACEOF
15670 /* end confdefs.h.  */
15671 #include <stdio.h>
15672 int
15673 main ()
15674 {
15675 return fseeko && fseeko (stdin, 0, 0);
15676   ;
15677   return 0;
15678 }
15679 _ACEOF
15680 rm -f conftest.$ac_objext conftest$ac_exeext
15681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15682   (eval $ac_link) 2>conftest.er1
15683   ac_status=$?
15684   grep -v '^ *+' conftest.er1 >conftest.err
15685   rm -f conftest.er1
15686   cat conftest.err >&5
15687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688   (exit $ac_status); } &&
15689          { ac_try='test -z "$ac_c_werror_flag"
15690                          || test ! -s conftest.err'
15691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15692   (eval $ac_try) 2>&5
15693   ac_status=$?
15694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695   (exit $ac_status); }; } &&
15696          { ac_try='test -s conftest$ac_exeext'
15697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698   (eval $ac_try) 2>&5
15699   ac_status=$?
15700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701   (exit $ac_status); }; }; then
15702   ac_cv_func_fseeko=yes
15703 else
15704   echo "$as_me: failed program was:" >&5
15705 sed 's/^/| /' conftest.$ac_ext >&5
15706
15707 ac_cv_func_fseeko=no
15708 fi
15709 rm -f conftest.err conftest.$ac_objext \
15710       conftest$ac_exeext conftest.$ac_ext
15711 fi
15712 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
15713 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
15714 if test $ac_cv_func_fseeko = yes; then
15715
15716 cat >>confdefs.h <<\_ACEOF
15717 #define HAVE_FSEEKO 1
15718 _ACEOF
15719
15720 fi
15721
15722
15723 #
15724 # Pthreads
15725 #
15726 # For each platform, we need to know about any special compile and link
15727 # libraries, and whether the normal C function names are thread-safe.
15728 # See the comment at the top of src/port/thread.c for more information.
15729 #
15730 if test "$enable_thread_safety" = yes; then
15731
15732
15733
15734
15735 ac_ext=c
15736 ac_cpp='$CPP $CPPFLAGS'
15737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15740
15741 acx_pthread_ok=no
15742
15743 # We used to check for pthread.h first, but this fails if pthread.h
15744 # requires special compiler flags (e.g. on True64 or Sequent).
15745 # It gets checked for in the link test anyway.
15746
15747 # First of all, check if the user has set any of the PTHREAD_LIBS,
15748 # etcetera environment variables, and if threads linking works using
15749 # them:
15750 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15751         save_CFLAGS="$CFLAGS"
15752         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15753         save_LIBS="$LIBS"
15754         LIBS="$PTHREAD_LIBS $LIBS"
15755         echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15756 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
15757         cat >conftest.$ac_ext <<_ACEOF
15758 /* confdefs.h.  */
15759 _ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h.  */
15763
15764 /* Override any gcc2 internal prototype to avoid an error.  */
15765 #ifdef __cplusplus
15766 extern "C"
15767 #endif
15768 /* We use char because int might match the return type of a gcc2
15769    builtin and then its argument prototype would still apply.  */
15770 char pthread_join ();
15771 int
15772 main ()
15773 {
15774 pthread_join ();
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   acx_pthread_ok=yes
15802 else
15803   echo "$as_me: failed program was:" >&5
15804 sed 's/^/| /' conftest.$ac_ext >&5
15805
15806 fi
15807 rm -f conftest.err conftest.$ac_objext \
15808       conftest$ac_exeext conftest.$ac_ext
15809         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
15810 echo "${ECHO_T}$acx_pthread_ok" >&6
15811         if test x"$acx_pthread_ok" = xno; then
15812                 PTHREAD_LIBS=""
15813                 PTHREAD_CFLAGS=""
15814         fi
15815         LIBS="$save_LIBS"
15816         CFLAGS="$save_CFLAGS"
15817 fi
15818
15819 # We must check for the threads library under a number of different
15820 # names; the ordering is very important because some systems
15821 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15822 # libraries is broken (non-POSIX).
15823
15824 # Create a list of thread flags to try.  Items starting with a "-" are
15825 # C compiler flags, and other items are library names, except for "none"
15826 # which indicates that we try without any flags at all, and "pthread-config"
15827 # which is a program returning the flags for the Pth emulation library.
15828
15829 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
15830
15831 # The ordering *is* (sometimes) important.  Some notes on the
15832 # individual items follow:
15833
15834 # pthreads: AIX (must check this before -lpthread)
15835 # none: in case threads are in libc; should be tried before -Kthread and
15836 #       other compiler flags to prevent continual compiler warnings
15837 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15838 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15839 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15840 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15841 # -pthreads: Solaris/gcc
15842 # -mthreads: Mingw32/gcc, Lynx/gcc
15843 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15844 #      doesn't hurt to check since this sometimes defines pthreads too;
15845 #      also defines -D_REENTRANT)
15846 # pthread: Linux, etcetera
15847 # --thread-safe: KAI C++
15848 # pthread-config: use pthread-config program (for GNU Pth library)
15849
15850 case "${host_cpu}-${host_os}" in
15851         *solaris*)
15852
15853         # On Solaris (at least, for some versions), libc contains stubbed
15854         # (non-functional) versions of the pthreads routines, so link-based
15855         # tests will erroneously succeed.  (We need to link with -pthread or
15856         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
15857         # a function called by this macro, so we could check for that, but
15858         # who knows whether they'll stub that too in a future libc.)  So,
15859         # we'll just look for -pthreads and -lpthread first:
15860
15861         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
15862         ;;
15863 esac
15864
15865 if test x"$acx_pthread_ok" = xno; then
15866 for flag in $acx_pthread_flags; do
15867
15868         tryPTHREAD_CFLAGS=""
15869         tryPTHREAD_LIBS=""
15870         case $flag in
15871                 none)
15872                 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
15873 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
15874                 ;;
15875
15876                 -*)
15877                 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
15878 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
15879                 tryPTHREAD_CFLAGS="$flag"
15880                 ;;
15881
15882                 pthread-config)
15883                 # skip this if we already have flags defined, for PostgreSQL
15884                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
15885                 # Extract the first word of "pthread-config", so it can be a program name with args.
15886 set dummy pthread-config; ac_word=$2
15887 echo "$as_me:$LINENO: checking for $ac_word" >&5
15888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15889 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
15890   echo $ECHO_N "(cached) $ECHO_C" >&6
15891 else
15892   if test -n "$acx_pthread_config"; then
15893   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15894 else
15895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15896 for as_dir in $PATH
15897 do
15898   IFS=$as_save_IFS
15899   test -z "$as_dir" && as_dir=.
15900   for ac_exec_ext in '' $ac_executable_extensions; do
15901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15902     ac_cv_prog_acx_pthread_config="yes"
15903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15904     break 2
15905   fi
15906 done
15907 done
15908
15909   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15910 fi
15911 fi
15912 acx_pthread_config=$ac_cv_prog_acx_pthread_config
15913 if test -n "$acx_pthread_config"; then
15914   echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
15915 echo "${ECHO_T}$acx_pthread_config" >&6
15916 else
15917   echo "$as_me:$LINENO: result: no" >&5
15918 echo "${ECHO_T}no" >&6
15919 fi
15920
15921                 if test x"$acx_pthread_config" = xno; then continue; fi
15922                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
15923                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15924                 ;;
15925
15926                 *)
15927                 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
15928 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
15929                 tryPTHREAD_LIBS="-l$flag"
15930                 ;;
15931         esac
15932
15933         save_LIBS="$LIBS"
15934         save_CFLAGS="$CFLAGS"
15935         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
15936         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
15937
15938         # Check for various functions.  We must include pthread.h,
15939         # since some functions may be macros.  (On the Sequent, we
15940         # need a special flag -Kthread to make this header compile.)
15941         # We check for pthread_join because it is in -lpthread on IRIX
15942         # while pthread_create is in libc.  We check for pthread_attr_init
15943         # due to DEC craziness with -lpthreads.  We check for
15944         # pthread_cleanup_push because it is one of the few pthread
15945         # functions on Solaris that doesn't have a non-functional libc stub.
15946         # We try pthread_create on general principles.
15947         cat >conftest.$ac_ext <<_ACEOF
15948 /* confdefs.h.  */
15949 _ACEOF
15950 cat confdefs.h >>conftest.$ac_ext
15951 cat >>conftest.$ac_ext <<_ACEOF
15952 /* end confdefs.h.  */
15953 #include <pthread.h>
15954 int
15955 main ()
15956 {
15957 pthread_t th; pthread_join(th, 0);
15958                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
15959                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15960   ;
15961   return 0;
15962 }
15963 _ACEOF
15964 rm -f conftest.$ac_objext conftest$ac_exeext
15965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15966   (eval $ac_link) 2>conftest.er1
15967   ac_status=$?
15968   grep -v '^ *+' conftest.er1 >conftest.err
15969   rm -f conftest.er1
15970   cat conftest.err >&5
15971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972   (exit $ac_status); } &&
15973          { ac_try='test -z "$ac_c_werror_flag"
15974                          || test ! -s conftest.err'
15975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15976   (eval $ac_try) 2>&5
15977   ac_status=$?
15978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979   (exit $ac_status); }; } &&
15980          { ac_try='test -s conftest$ac_exeext'
15981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15982   (eval $ac_try) 2>&5
15983   ac_status=$?
15984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985   (exit $ac_status); }; }; then
15986   acx_pthread_ok=yes
15987 else
15988   echo "$as_me: failed program was:" >&5
15989 sed 's/^/| /' conftest.$ac_ext >&5
15990
15991 acx_pthread_ok=no
15992 fi
15993 rm -f conftest.err conftest.$ac_objext \
15994       conftest$ac_exeext conftest.$ac_ext
15995
15996         if test "x$acx_pthread_ok" = xyes; then
15997             # Don't use options that are ignored by the compiler.
15998             # We find them by checking stderror.
15999             cat >conftest.$ac_ext <<_ACEOF
16000 int
16001 main (int argc, char **argv)
16002 {
16003   (void) argc;
16004   (void) argv;
16005   return 0;
16006 }
16007 _ACEOF
16008             rm -f conftest.$ac_objext conftest$ac_exeext
16009             if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
16010                 # we continue with more flags because Linux needs -lpthread
16011                 # for libpq builds on PostgreSQL.  The test above only
16012                 # tests for building binaries, not shared libraries.
16013                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
16014                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
16015             else   acx_pthread_ok=no
16016             fi
16017         fi
16018
16019         LIBS="$save_LIBS"
16020         CFLAGS="$save_CFLAGS"
16021
16022         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16023 echo "${ECHO_T}$acx_pthread_ok" >&6
16024 done
16025 fi
16026
16027 # Various other checks:
16028 if test "x$acx_pthread_ok" = xyes; then
16029         save_LIBS="$LIBS"
16030         LIBS="$PTHREAD_LIBS $LIBS"
16031         save_CFLAGS="$CFLAGS"
16032         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16033
16034         # Detect AIX lossage: threads are created detached by default
16035         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
16036         echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
16037 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
16038         cat >conftest.$ac_ext <<_ACEOF
16039 /* confdefs.h.  */
16040 _ACEOF
16041 cat confdefs.h >>conftest.$ac_ext
16042 cat >>conftest.$ac_ext <<_ACEOF
16043 /* end confdefs.h.  */
16044 #include <pthread.h>
16045 int
16046 main ()
16047 {
16048 int attr=PTHREAD_CREATE_JOINABLE;
16049   ;
16050   return 0;
16051 }
16052 _ACEOF
16053 rm -f conftest.$ac_objext conftest$ac_exeext
16054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16055   (eval $ac_link) 2>conftest.er1
16056   ac_status=$?
16057   grep -v '^ *+' conftest.er1 >conftest.err
16058   rm -f conftest.er1
16059   cat conftest.err >&5
16060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061   (exit $ac_status); } &&
16062          { ac_try='test -z "$ac_c_werror_flag"
16063                          || test ! -s conftest.err'
16064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16065   (eval $ac_try) 2>&5
16066   ac_status=$?
16067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068   (exit $ac_status); }; } &&
16069          { ac_try='test -s conftest$ac_exeext'
16070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16071   (eval $ac_try) 2>&5
16072   ac_status=$?
16073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074   (exit $ac_status); }; }; then
16075   ok=PTHREAD_CREATE_JOINABLE
16076 else
16077   echo "$as_me: failed program was:" >&5
16078 sed 's/^/| /' conftest.$ac_ext >&5
16079
16080 ok=unknown
16081 fi
16082 rm -f conftest.err conftest.$ac_objext \
16083       conftest$ac_exeext conftest.$ac_ext
16084         if test x"$ok" = xunknown; then
16085                 cat >conftest.$ac_ext <<_ACEOF
16086 /* confdefs.h.  */
16087 _ACEOF
16088 cat confdefs.h >>conftest.$ac_ext
16089 cat >>conftest.$ac_ext <<_ACEOF
16090 /* end confdefs.h.  */
16091 #include <pthread.h>
16092 int
16093 main ()
16094 {
16095 int attr=PTHREAD_CREATE_UNDETACHED;
16096   ;
16097   return 0;
16098 }
16099 _ACEOF
16100 rm -f conftest.$ac_objext conftest$ac_exeext
16101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16102   (eval $ac_link) 2>conftest.er1
16103   ac_status=$?
16104   grep -v '^ *+' conftest.er1 >conftest.err
16105   rm -f conftest.er1
16106   cat conftest.err >&5
16107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108   (exit $ac_status); } &&
16109          { ac_try='test -z "$ac_c_werror_flag"
16110                          || test ! -s conftest.err'
16111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16112   (eval $ac_try) 2>&5
16113   ac_status=$?
16114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115   (exit $ac_status); }; } &&
16116          { ac_try='test -s conftest$ac_exeext'
16117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118   (eval $ac_try) 2>&5
16119   ac_status=$?
16120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121   (exit $ac_status); }; }; then
16122   ok=PTHREAD_CREATE_UNDETACHED
16123 else
16124   echo "$as_me: failed program was:" >&5
16125 sed 's/^/| /' conftest.$ac_ext >&5
16126
16127 ok=unknown
16128 fi
16129 rm -f conftest.err conftest.$ac_objext \
16130       conftest$ac_exeext conftest.$ac_ext
16131         fi
16132         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
16133
16134 cat >>confdefs.h <<\_ACEOF
16135 #define PTHREAD_CREATE_JOINABLE $ok
16136 _ACEOF
16137
16138         fi
16139         echo "$as_me:$LINENO: result: ${ok}" >&5
16140 echo "${ECHO_T}${ok}" >&6
16141         if test x"$ok" = xunknown; then
16142                 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
16143 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
16144         fi
16145
16146         echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
16147 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
16148         flag=no
16149 # We always add these in PostgreSQL
16150 #       case "${host_cpu}-${host_os}" in
16151 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16152 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16153 #       esac
16154         echo "$as_me:$LINENO: result: ${flag}" >&5
16155 echo "${ECHO_T}${flag}" >&6
16156         if test "x$flag" != xno; then
16157                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16158         fi
16159
16160         LIBS="$save_LIBS"
16161         CFLAGS="$save_CFLAGS"
16162
16163 # Supporting cc_r would require a special CC in all places that
16164 # use libpq, and that is ugly, so we don't do it.  Users can still
16165 # define their compiler as cc_r to do thread builds of everything.
16166         # More AIX lossage: must compile with cc_r
16167         # Extract the first word of "cc_r", so it can be a program name with args.
16168 set dummy cc_r; ac_word=$2
16169 echo "$as_me:$LINENO: checking for $ac_word" >&5
16170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16171 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
16172   echo $ECHO_N "(cached) $ECHO_C" >&6
16173 else
16174   if test -n "$PTHREAD_CC"; then
16175   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16176 else
16177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16178 for as_dir in $PATH
16179 do
16180   IFS=$as_save_IFS
16181   test -z "$as_dir" && as_dir=.
16182   for ac_exec_ext in '' $ac_executable_extensions; do
16183   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16184     ac_cv_prog_PTHREAD_CC="cc_r"
16185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16186     break 2
16187   fi
16188 done
16189 done
16190
16191   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
16192 fi
16193 fi
16194 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16195 if test -n "$PTHREAD_CC"; then
16196   echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
16197 echo "${ECHO_T}$PTHREAD_CC" >&6
16198 else
16199   echo "$as_me:$LINENO: result: no" >&5
16200 echo "${ECHO_T}no" >&6
16201 fi
16202
16203 else
16204         PTHREAD_CC="$CC"
16205 fi
16206
16207
16208
16209
16210
16211 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16212 if test x"$acx_pthread_ok" = xyes; then
16213
16214 cat >>confdefs.h <<\_ACEOF
16215 #define HAVE_PTHREAD 1
16216 _ACEOF
16217
16218         :
16219 else
16220         acx_pthread_ok=no
16221
16222 fi
16223 ac_ext=c
16224 ac_cpp='$CPP $CPPFLAGS'
16225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16228
16229         # set thread flags
16230
16231 # Some platforms use these, so just defineed them.  They can't hurt if they
16232 # are not supported.
16233 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
16234
16235
16236 # At this point, we don't want to muck with the compiler name for threading.
16237 # Let's see who fails, perhaps AIX.  2004-04-23
16238 if test "$PTHREAD_CC" != "$CC"; then
16239 { { echo "$as_me:$LINENO: error:
16240 PostgreSQL does not support platforms that require a special
16241 compiler binary for thread-safety.
16242 " >&5
16243 echo "$as_me: error:
16244 PostgreSQL does not support platforms that require a special
16245 compiler binary for thread-safety.
16246 " >&2;}
16247    { (exit 1); exit 1; }; }
16248 fi
16249
16250 if test "$THREAD_SUPPORT" = no; then
16251 { { echo "$as_me:$LINENO: error:
16252 Cannot enable threads on your platform.
16253 Your platform is known to not support thread-safe programs.
16254 For details, compile and run src/bin/pg_thread_test.
16255 " >&5
16256 echo "$as_me: error:
16257 Cannot enable threads on your platform.
16258 Your platform is known to not support thread-safe programs.
16259 For details, compile and run src/bin/pg_thread_test.
16260 " >&2;}
16261    { (exit 1); exit 1; }; }
16262 fi
16263
16264 # Check for *_r functions
16265 _CFLAGS="$CFLAGS"
16266 _LIBS="$LIBS"
16267 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16268 LIBS="$LIBS $PTHREAD_LIBS"
16269
16270 if test "${ac_cv_header_pthread_h+set}" = set; then
16271   echo "$as_me:$LINENO: checking for pthread.h" >&5
16272 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
16273 if test "${ac_cv_header_pthread_h+set}" = set; then
16274   echo $ECHO_N "(cached) $ECHO_C" >&6
16275 fi
16276 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
16277 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
16278 else
16279   # Is the header compilable?
16280 echo "$as_me:$LINENO: checking pthread.h usability" >&5
16281 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
16282 cat >conftest.$ac_ext <<_ACEOF
16283 /* confdefs.h.  */
16284 _ACEOF
16285 cat confdefs.h >>conftest.$ac_ext
16286 cat >>conftest.$ac_ext <<_ACEOF
16287 /* end confdefs.h.  */
16288 $ac_includes_default
16289 #include <pthread.h>
16290 _ACEOF
16291 rm -f conftest.$ac_objext
16292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16293   (eval $ac_compile) 2>conftest.er1
16294   ac_status=$?
16295   grep -v '^ *+' conftest.er1 >conftest.err
16296   rm -f conftest.er1
16297   cat conftest.err >&5
16298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299   (exit $ac_status); } &&
16300          { ac_try='test -z "$ac_c_werror_flag"
16301                          || test ! -s conftest.err'
16302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303   (eval $ac_try) 2>&5
16304   ac_status=$?
16305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306   (exit $ac_status); }; } &&
16307          { ac_try='test -s conftest.$ac_objext'
16308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309   (eval $ac_try) 2>&5
16310   ac_status=$?
16311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312   (exit $ac_status); }; }; then
16313   ac_header_compiler=yes
16314 else
16315   echo "$as_me: failed program was:" >&5
16316 sed 's/^/| /' conftest.$ac_ext >&5
16317
16318 ac_header_compiler=no
16319 fi
16320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16322 echo "${ECHO_T}$ac_header_compiler" >&6
16323
16324 # Is the header present?
16325 echo "$as_me:$LINENO: checking pthread.h presence" >&5
16326 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
16327 cat >conftest.$ac_ext <<_ACEOF
16328 /* confdefs.h.  */
16329 _ACEOF
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h.  */
16333 #include <pthread.h>
16334 _ACEOF
16335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16336   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16337   ac_status=$?
16338   grep -v '^ *+' conftest.er1 >conftest.err
16339   rm -f conftest.er1
16340   cat conftest.err >&5
16341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342   (exit $ac_status); } >/dev/null; then
16343   if test -s conftest.err; then
16344     ac_cpp_err=$ac_c_preproc_warn_flag
16345     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16346   else
16347     ac_cpp_err=
16348   fi
16349 else
16350   ac_cpp_err=yes
16351 fi
16352 if test -z "$ac_cpp_err"; then
16353   ac_header_preproc=yes
16354 else
16355   echo "$as_me: failed program was:" >&5
16356 sed 's/^/| /' conftest.$ac_ext >&5
16357
16358   ac_header_preproc=no
16359 fi
16360 rm -f conftest.err conftest.$ac_ext
16361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16362 echo "${ECHO_T}$ac_header_preproc" >&6
16363
16364 # So?  What about this header?
16365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16366   yes:no: )
16367     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
16368 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16369     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
16370 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
16371     ac_header_preproc=yes
16372     ;;
16373   no:yes:* )
16374     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
16375 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
16376     { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
16377 echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
16378     { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
16379 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
16380     { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
16381 echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16382     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
16383 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
16384     { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
16385 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
16386     (
16387       cat <<\_ASBOX
16388 ## ---------------------------------------- ##
16389 ## Report this to pgsql-bugs@postgresql.org ##
16390 ## ---------------------------------------- ##
16391 _ASBOX
16392     ) |
16393       sed "s/^/$as_me: WARNING:     /" >&2
16394     ;;
16395 esac
16396 echo "$as_me:$LINENO: checking for pthread.h" >&5
16397 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
16398 if test "${ac_cv_header_pthread_h+set}" = set; then
16399   echo $ECHO_N "(cached) $ECHO_C" >&6
16400 else
16401   ac_cv_header_pthread_h=$ac_header_preproc
16402 fi
16403 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
16404 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
16405
16406 fi
16407 if test $ac_cv_header_pthread_h = yes; then
16408   :
16409 else
16410   { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
16411 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
16412    { (exit 1); exit 1; }; }
16413 fi
16414
16415
16416
16417
16418
16419
16420 for ac_func in strerror_r getpwuid_r gethostbyname_r
16421 do
16422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16423 echo "$as_me:$LINENO: checking for $ac_func" >&5
16424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16425 if eval "test \"\${$as_ac_var+set}\" = set"; then
16426   echo $ECHO_N "(cached) $ECHO_C" >&6
16427 else
16428   cat >conftest.$ac_ext <<_ACEOF
16429 /* confdefs.h.  */
16430 _ACEOF
16431 cat confdefs.h >>conftest.$ac_ext
16432 cat >>conftest.$ac_ext <<_ACEOF
16433 /* end confdefs.h.  */
16434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16435    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16436 #define $ac_func innocuous_$ac_func
16437
16438 /* System header to define __stub macros and hopefully few prototypes,
16439     which can conflict with char $ac_func (); below.
16440     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16441     <limits.h> exists even on freestanding compilers.  */
16442
16443 #ifdef __STDC__
16444 # include <limits.h>
16445 #else
16446 # include <assert.h>
16447 #endif
16448
16449 #undef $ac_func
16450
16451 /* Override any gcc2 internal prototype to avoid an error.  */
16452 #ifdef __cplusplus
16453 extern "C"
16454 {
16455 #endif
16456 /* We use char because int might match the return type of a gcc2
16457    builtin and then its argument prototype would still apply.  */
16458 char $ac_func ();
16459 /* The GNU C library defines this for functions which it implements
16460     to always fail with ENOSYS.  Some functions are actually named
16461     something starting with __ and the normal name is an alias.  */
16462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16463 choke me
16464 #else
16465 char (*f) () = $ac_func;
16466 #endif
16467 #ifdef __cplusplus
16468 }
16469 #endif
16470
16471 int
16472 main ()
16473 {
16474 return f != $ac_func;
16475   ;
16476   return 0;
16477 }
16478 _ACEOF
16479 rm -f conftest.$ac_objext conftest$ac_exeext
16480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16481   (eval $ac_link) 2>conftest.er1
16482   ac_status=$?
16483   grep -v '^ *+' conftest.er1 >conftest.err
16484   rm -f conftest.er1
16485   cat conftest.err >&5
16486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487   (exit $ac_status); } &&
16488          { ac_try='test -z "$ac_c_werror_flag"
16489                          || test ! -s conftest.err'
16490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491   (eval $ac_try) 2>&5
16492   ac_status=$?
16493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494   (exit $ac_status); }; } &&
16495          { ac_try='test -s conftest$ac_exeext'
16496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497   (eval $ac_try) 2>&5
16498   ac_status=$?
16499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500   (exit $ac_status); }; }; then
16501   eval "$as_ac_var=yes"
16502 else
16503   echo "$as_me: failed program was:" >&5
16504 sed 's/^/| /' conftest.$ac_ext >&5
16505
16506 eval "$as_ac_var=no"
16507 fi
16508 rm -f conftest.err conftest.$ac_objext \
16509       conftest$ac_exeext conftest.$ac_ext
16510 fi
16511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16513 if test `eval echo '${'$as_ac_var'}'` = yes; then
16514   cat >>confdefs.h <<_ACEOF
16515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16516 _ACEOF
16517
16518 fi
16519 done
16520
16521
16522 # Do test here with the proper thread flags
16523 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
16524 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
16525 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
16526   echo $ECHO_N "(cached) $ECHO_C" >&6
16527 else
16528   cat >conftest.$ac_ext <<_ACEOF
16529 /* confdefs.h.  */
16530 _ACEOF
16531 cat confdefs.h >>conftest.$ac_ext
16532 cat >>conftest.$ac_ext <<_ACEOF
16533 /* end confdefs.h.  */
16534 #include <sys/types.h>
16535 #include <pwd.h>
16536 int
16537 main ()
16538 {
16539 uid_t uid;
16540 struct passwd *space;
16541 char *buf;
16542 size_t bufsize;
16543 struct passwd **result;
16544 getpwuid_r(uid, space, buf, bufsize, result);
16545   ;
16546   return 0;
16547 }
16548 _ACEOF
16549 rm -f conftest.$ac_objext
16550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16551   (eval $ac_compile) 2>conftest.er1
16552   ac_status=$?
16553   grep -v '^ *+' conftest.er1 >conftest.err
16554   rm -f conftest.er1
16555   cat conftest.err >&5
16556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557   (exit $ac_status); } &&
16558          { ac_try='test -z "$ac_c_werror_flag"
16559                          || test ! -s conftest.err'
16560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561   (eval $ac_try) 2>&5
16562   ac_status=$?
16563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564   (exit $ac_status); }; } &&
16565          { ac_try='test -s conftest.$ac_objext'
16566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16567   (eval $ac_try) 2>&5
16568   ac_status=$?
16569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570   (exit $ac_status); }; }; then
16571   pgac_func_getpwuid_r_5arg=yes
16572 else
16573   echo "$as_me: failed program was:" >&5
16574 sed 's/^/| /' conftest.$ac_ext >&5
16575
16576 pgac_func_getpwuid_r_5arg=no
16577 fi
16578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16579 fi
16580 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
16581 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
16582 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
16583
16584 cat >>confdefs.h <<\_ACEOF
16585 #define GETPWUID_R_5ARG
16586 _ACEOF
16587
16588 fi
16589
16590 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
16591 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
16592 if test "${pgac_func_strerror_r_int+set}" = set; then
16593   echo $ECHO_N "(cached) $ECHO_C" >&6
16594 else
16595   cat >conftest.$ac_ext <<_ACEOF
16596 /* confdefs.h.  */
16597 _ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h.  */
16601 #include <string.h>
16602 int
16603 main ()
16604 {
16605 #ifndef _AIX
16606 int strerror_r(int, char *, size_t);
16607 #else
16608 /* Older AIX has 'int' for the third argument so we don't test the args. */
16609 int strerror_r();
16610 #endif
16611   ;
16612   return 0;
16613 }
16614 _ACEOF
16615 rm -f conftest.$ac_objext
16616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16617   (eval $ac_compile) 2>conftest.er1
16618   ac_status=$?
16619   grep -v '^ *+' conftest.er1 >conftest.err
16620   rm -f conftest.er1
16621   cat conftest.err >&5
16622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623   (exit $ac_status); } &&
16624          { ac_try='test -z "$ac_c_werror_flag"
16625                          || test ! -s conftest.err'
16626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16627   (eval $ac_try) 2>&5
16628   ac_status=$?
16629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630   (exit $ac_status); }; } &&
16631          { ac_try='test -s conftest.$ac_objext'
16632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16633   (eval $ac_try) 2>&5
16634   ac_status=$?
16635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636   (exit $ac_status); }; }; then
16637   pgac_func_strerror_r_int=yes
16638 else
16639   echo "$as_me: failed program was:" >&5
16640 sed 's/^/| /' conftest.$ac_ext >&5
16641
16642 pgac_func_strerror_r_int=no
16643 fi
16644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16645 fi
16646 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
16647 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
16648 if test x"$pgac_func_strerror_r_int" = xyes ; then
16649
16650 cat >>confdefs.h <<\_ACEOF
16651 #define STRERROR_R_INT
16652 _ACEOF
16653
16654 fi
16655
16656
16657 CFLAGS="$_CFLAGS"
16658 LIBS="$_LIBS"
16659
16660 else
16661 # do not use values from template file
16662 PTHREAD_CFLAGS=
16663 PTHREAD_LIBS=
16664 fi
16665
16666
16667
16668
16669
16670 # This test makes sure that run tests work at all.  Sometimes a shared
16671 # library is found by the linker, but the runtime linker can't find it.
16672 # This check should come after all modifications of compiler or linker
16673 # variables, and before any other run tests.
16674 echo "$as_me:$LINENO: checking test program" >&5
16675 echo $ECHO_N "checking test program... $ECHO_C" >&6
16676 if test "$cross_compiling" = yes; then
16677   echo "$as_me:$LINENO: result: cross-compiling" >&5
16678 echo "${ECHO_T}cross-compiling" >&6
16679 else
16680   cat >conftest.$ac_ext <<_ACEOF
16681 /* confdefs.h.  */
16682 _ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h.  */
16686 int main() { return 0; }
16687 _ACEOF
16688 rm -f conftest$ac_exeext
16689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16690   (eval $ac_link) 2>&5
16691   ac_status=$?
16692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695   (eval $ac_try) 2>&5
16696   ac_status=$?
16697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698   (exit $ac_status); }; }; then
16699   echo "$as_me:$LINENO: result: ok" >&5
16700 echo "${ECHO_T}ok" >&6
16701 else
16702   echo "$as_me: program exited with status $ac_status" >&5
16703 echo "$as_me: failed program was:" >&5
16704 sed 's/^/| /' conftest.$ac_ext >&5
16705
16706 ( exit $ac_status )
16707 echo "$as_me:$LINENO: result: failed" >&5
16708 echo "${ECHO_T}failed" >&6
16709 { { echo "$as_me:$LINENO: error:
16710 *** Could not execute a simple test program.  This may be a problem
16711 *** related to locating shared libraries.  Check the file 'config.log'
16712 *** for the exact reason." >&5
16713 echo "$as_me: error:
16714 *** Could not execute a simple test program.  This may be a problem
16715 *** related to locating shared libraries.  Check the file 'config.log'
16716 *** for the exact reason." >&2;}
16717    { (exit 1); exit 1; }; }
16718 fi
16719 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16720 fi
16721
16722 # --------------------
16723 # Run tests below here
16724 # --------------------
16725
16726 # Force use of our snprintf if system's doesn't do arg control
16727 # See comment above at snprintf test for details.
16728 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
16729   echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
16730 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6
16731 if test "${pgac_cv_printf_arg_control+set}" = set; then
16732   echo $ECHO_N "(cached) $ECHO_C" >&6
16733 else
16734   if test "$cross_compiling" = yes; then
16735   pgac_cv_printf_arg_control=cross
16736 else
16737   cat >conftest.$ac_ext <<_ACEOF
16738 /* confdefs.h.  */
16739 _ACEOF
16740 cat confdefs.h >>conftest.$ac_ext
16741 cat >>conftest.$ac_ext <<_ACEOF
16742 /* end confdefs.h.  */
16743 #include <stdio.h>
16744 #include <string.h>
16745
16746 int main()
16747 {
16748   char buf[100];
16749
16750   /* can it swap arguments? */
16751   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
16752   if (strcmp(buf, "4 3") != 0)
16753     return 1;
16754   return 0;
16755 }
16756 _ACEOF
16757 rm -f conftest$ac_exeext
16758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16759   (eval $ac_link) 2>&5
16760   ac_status=$?
16761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764   (eval $ac_try) 2>&5
16765   ac_status=$?
16766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767   (exit $ac_status); }; }; then
16768   pgac_cv_printf_arg_control=yes
16769 else
16770   echo "$as_me: program exited with status $ac_status" >&5
16771 echo "$as_me: failed program was:" >&5
16772 sed 's/^/| /' conftest.$ac_ext >&5
16773
16774 ( exit $ac_status )
16775 pgac_cv_printf_arg_control=no
16776 fi
16777 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16778 fi
16779
16780 fi
16781 echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
16782 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6
16783
16784   if test $pgac_cv_printf_arg_control != yes ; then
16785     pgac_need_repl_snprintf=yes
16786   fi
16787 fi
16788
16789
16790
16791 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
16792 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
16793 if test "${pgac_cv_type_long_int_64+set}" = set; then
16794   echo $ECHO_N "(cached) $ECHO_C" >&6
16795 else
16796   if test "$cross_compiling" = yes; then
16797   # If cross-compiling, check the size reported by the compiler and
16798 # trust that the arithmetic works.
16799 cat >conftest.$ac_ext <<_ACEOF
16800 /* confdefs.h.  */
16801 _ACEOF
16802 cat confdefs.h >>conftest.$ac_ext
16803 cat >>conftest.$ac_ext <<_ACEOF
16804 /* end confdefs.h.  */
16805
16806 int
16807 main ()
16808 {
16809 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
16810 test_array [0] = 0
16811
16812   ;
16813   return 0;
16814 }
16815 _ACEOF
16816 rm -f conftest.$ac_objext
16817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16818   (eval $ac_compile) 2>conftest.er1
16819   ac_status=$?
16820   grep -v '^ *+' conftest.er1 >conftest.err
16821   rm -f conftest.er1
16822   cat conftest.err >&5
16823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824   (exit $ac_status); } &&
16825          { ac_try='test -z "$ac_c_werror_flag"
16826                          || test ! -s conftest.err'
16827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16828   (eval $ac_try) 2>&5
16829   ac_status=$?
16830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831   (exit $ac_status); }; } &&
16832          { ac_try='test -s conftest.$ac_objext'
16833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16834   (eval $ac_try) 2>&5
16835   ac_status=$?
16836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837   (exit $ac_status); }; }; then
16838   pgac_cv_type_long_int_64=yes
16839 else
16840   echo "$as_me: failed program was:" >&5
16841 sed 's/^/| /' conftest.$ac_ext >&5
16842
16843 pgac_cv_type_long_int_64=no
16844 fi
16845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16846 else
16847   cat >conftest.$ac_ext <<_ACEOF
16848 /* confdefs.h.  */
16849 _ACEOF
16850 cat confdefs.h >>conftest.$ac_ext
16851 cat >>conftest.$ac_ext <<_ACEOF
16852 /* end confdefs.h.  */
16853 typedef long int ac_int64;
16854
16855 /*
16856  * These are globals to discourage the compiler from folding all the
16857  * arithmetic tests down to compile-time constants.
16858  */
16859 ac_int64 a = 20000001;
16860 ac_int64 b = 40000005;
16861
16862 int does_int64_work()
16863 {
16864   ac_int64 c,d;
16865
16866   if (sizeof(ac_int64) != 8)
16867     return 0;                   /* definitely not the right size */
16868
16869   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
16870   c = a * b;
16871   d = (c + b) / b;
16872   if (d != a+1)
16873     return 0;
16874   return 1;
16875 }
16876 main() {
16877   exit(! does_int64_work());
16878 }
16879 _ACEOF
16880 rm -f conftest$ac_exeext
16881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16882   (eval $ac_link) 2>&5
16883   ac_status=$?
16884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887   (eval $ac_try) 2>&5
16888   ac_status=$?
16889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890   (exit $ac_status); }; }; then
16891   pgac_cv_type_long_int_64=yes
16892 else
16893   echo "$as_me: program exited with status $ac_status" >&5
16894 echo "$as_me: failed program was:" >&5
16895 sed 's/^/| /' conftest.$ac_ext >&5
16896
16897 ( exit $ac_status )
16898 pgac_cv_type_long_int_64=no
16899 fi
16900 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16901 fi
16902 fi
16903 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
16904 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
16905
16906 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
16907 if test x"$pgac_cv_type_long_int_64" = xyes ; then
16908
16909 cat >>confdefs.h <<\_ACEOF
16910 #define HAVE_LONG_INT_64
16911 _ACEOF
16912
16913 fi
16914
16915
16916 if test x"$HAVE_LONG_INT_64" = x"no" ; then
16917   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
16918 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
16919 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
16920   echo $ECHO_N "(cached) $ECHO_C" >&6
16921 else
16922   if test "$cross_compiling" = yes; then
16923   # If cross-compiling, check the size reported by the compiler and
16924 # trust that the arithmetic works.
16925 cat >conftest.$ac_ext <<_ACEOF
16926 /* confdefs.h.  */
16927 _ACEOF
16928 cat confdefs.h >>conftest.$ac_ext
16929 cat >>conftest.$ac_ext <<_ACEOF
16930 /* end confdefs.h.  */
16931
16932 int
16933 main ()
16934 {
16935 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
16936 test_array [0] = 0
16937
16938   ;
16939   return 0;
16940 }
16941 _ACEOF
16942 rm -f conftest.$ac_objext
16943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16944   (eval $ac_compile) 2>conftest.er1
16945   ac_status=$?
16946   grep -v '^ *+' conftest.er1 >conftest.err
16947   rm -f conftest.er1
16948   cat conftest.err >&5
16949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950   (exit $ac_status); } &&
16951          { ac_try='test -z "$ac_c_werror_flag"
16952                          || test ! -s conftest.err'
16953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16954   (eval $ac_try) 2>&5
16955   ac_status=$?
16956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957   (exit $ac_status); }; } &&
16958          { ac_try='test -s conftest.$ac_objext'
16959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16960   (eval $ac_try) 2>&5
16961   ac_status=$?
16962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963   (exit $ac_status); }; }; then
16964   pgac_cv_type_long_long_int_64=yes
16965 else
16966   echo "$as_me: failed program was:" >&5
16967 sed 's/^/| /' conftest.$ac_ext >&5
16968
16969 pgac_cv_type_long_long_int_64=no
16970 fi
16971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16972 else
16973   cat >conftest.$ac_ext <<_ACEOF
16974 /* confdefs.h.  */
16975 _ACEOF
16976 cat confdefs.h >>conftest.$ac_ext
16977 cat >>conftest.$ac_ext <<_ACEOF
16978 /* end confdefs.h.  */
16979 typedef long long int ac_int64;
16980
16981 /*
16982  * These are globals to discourage the compiler from folding all the
16983  * arithmetic tests down to compile-time constants.
16984  */
16985 ac_int64 a = 20000001;
16986 ac_int64 b = 40000005;
16987
16988 int does_int64_work()
16989 {
16990   ac_int64 c,d;
16991
16992   if (sizeof(ac_int64) != 8)
16993     return 0;                   /* definitely not the right size */
16994
16995   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
16996   c = a * b;
16997   d = (c + b) / b;
16998   if (d != a+1)
16999     return 0;
17000   return 1;
17001 }
17002 main() {
17003   exit(! does_int64_work());
17004 }
17005 _ACEOF
17006 rm -f conftest$ac_exeext
17007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17008   (eval $ac_link) 2>&5
17009   ac_status=$?
17010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17013   (eval $ac_try) 2>&5
17014   ac_status=$?
17015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016   (exit $ac_status); }; }; then
17017   pgac_cv_type_long_long_int_64=yes
17018 else
17019   echo "$as_me: program exited with status $ac_status" >&5
17020 echo "$as_me: failed program was:" >&5
17021 sed 's/^/| /' conftest.$ac_ext >&5
17022
17023 ( exit $ac_status )
17024 pgac_cv_type_long_long_int_64=no
17025 fi
17026 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17027 fi
17028 fi
17029 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
17030 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
17031
17032 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
17033 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
17034
17035 cat >>confdefs.h <<\_ACEOF
17036 #define HAVE_LONG_LONG_INT_64
17037 _ACEOF
17038
17039 fi
17040
17041 fi
17042
17043
17044
17045 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
17046   cat >conftest.$ac_ext <<_ACEOF
17047 /* confdefs.h.  */
17048 _ACEOF
17049 cat confdefs.h >>conftest.$ac_ext
17050 cat >>conftest.$ac_ext <<_ACEOF
17051 /* end confdefs.h.  */
17052
17053 #define INT64CONST(x)  x##LL
17054 long long int foo = INT64CONST(0x1234567890123456);
17055
17056 int
17057 main ()
17058 {
17059
17060   ;
17061   return 0;
17062 }
17063 _ACEOF
17064 rm -f conftest.$ac_objext
17065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17066   (eval $ac_compile) 2>conftest.er1
17067   ac_status=$?
17068   grep -v '^ *+' conftest.er1 >conftest.err
17069   rm -f conftest.er1
17070   cat conftest.err >&5
17071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072   (exit $ac_status); } &&
17073          { ac_try='test -z "$ac_c_werror_flag"
17074                          || test ! -s conftest.err'
17075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17076   (eval $ac_try) 2>&5
17077   ac_status=$?
17078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079   (exit $ac_status); }; } &&
17080          { ac_try='test -s conftest.$ac_objext'
17081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17082   (eval $ac_try) 2>&5
17083   ac_status=$?
17084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085   (exit $ac_status); }; }; then
17086
17087 cat >>confdefs.h <<\_ACEOF
17088 #define HAVE_LL_CONSTANTS 1
17089 _ACEOF
17090
17091 else
17092   echo "$as_me: failed program was:" >&5
17093 sed 's/^/| /' conftest.$ac_ext >&5
17094
17095 fi
17096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17097 fi
17098
17099
17100 # If we found "long int" is 64 bits, assume snprintf handles it.  If
17101 # we found we need to use "long long int", better check.  We cope with
17102 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
17103 # work, fall back to our own snprintf emulation (which we know uses %lld).
17104
17105 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
17106   if test $pgac_need_repl_snprintf = no; then
17107     echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
17108 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
17109 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
17110   echo $ECHO_N "(cached) $ECHO_C" >&6
17111 else
17112   for pgac_format in '%lld' '%qd' '%I64d'; do
17113 if test "$cross_compiling" = yes; then
17114   pgac_cv_snprintf_long_long_int_format=cross; break
17115 else
17116   cat >conftest.$ac_ext <<_ACEOF
17117 /* confdefs.h.  */
17118 _ACEOF
17119 cat confdefs.h >>conftest.$ac_ext
17120 cat >>conftest.$ac_ext <<_ACEOF
17121 /* end confdefs.h.  */
17122 #include <stdio.h>
17123 typedef long long int ac_int64;
17124 #define INT64_FORMAT "$pgac_format"
17125
17126 ac_int64 a = 20000001;
17127 ac_int64 b = 40000005;
17128
17129 int does_int64_snprintf_work()
17130 {
17131   ac_int64 c;
17132   char buf[100];
17133
17134   if (sizeof(ac_int64) != 8)
17135     return 0;                   /* doesn't look like the right size */
17136
17137   c = a * b;
17138   snprintf(buf, 100, INT64_FORMAT, c);
17139   if (strcmp(buf, "800000140000005") != 0)
17140     return 0;                   /* either multiply or snprintf is busted */
17141   return 1;
17142 }
17143 main() {
17144   exit(! does_int64_snprintf_work());
17145 }
17146 _ACEOF
17147 rm -f conftest$ac_exeext
17148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17149   (eval $ac_link) 2>&5
17150   ac_status=$?
17151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17154   (eval $ac_try) 2>&5
17155   ac_status=$?
17156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157   (exit $ac_status); }; }; then
17158   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
17159 else
17160   echo "$as_me: program exited with status $ac_status" >&5
17161 echo "$as_me: failed program was:" >&5
17162 sed 's/^/| /' conftest.$ac_ext >&5
17163
17164 fi
17165 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17166 fi
17167 done
17168 fi
17169
17170 LONG_LONG_INT_FORMAT=''
17171
17172 case $pgac_cv_snprintf_long_long_int_format in
17173   cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
17174 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
17175   ?*)    echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
17176 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
17177          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
17178   *)     echo "$as_me:$LINENO: result: none" >&5
17179 echo "${ECHO_T}none" >&6;;
17180 esac
17181     if test "$LONG_LONG_INT_FORMAT" = ""; then
17182       # Force usage of our own snprintf, since system snprintf is broken
17183       pgac_need_repl_snprintf=yes
17184       LONG_LONG_INT_FORMAT='%lld'
17185     fi
17186   else
17187     # Here if we previously decided we needed to use our own snprintf
17188     LONG_LONG_INT_FORMAT='%lld'
17189   fi
17190   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
17191   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
17192   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
17193 else
17194   # Here if we are not using 'long long int' at all
17195   INT64_FORMAT='"%ld"'
17196   UINT64_FORMAT='"%lu"'
17197 fi
17198
17199
17200 cat >>confdefs.h <<_ACEOF
17201 #define INT64_FORMAT $INT64_FORMAT
17202 _ACEOF
17203
17204
17205
17206 cat >>confdefs.h <<_ACEOF
17207 #define UINT64_FORMAT $UINT64_FORMAT
17208 _ACEOF
17209
17210
17211 # Now we have checked all the reasons to replace snprintf
17212 if test $pgac_need_repl_snprintf = yes; then
17213
17214 cat >>confdefs.h <<\_ACEOF
17215 #define USE_REPL_SNPRINTF 1
17216 _ACEOF
17217
17218   case $LIBOBJS in
17219     "snprintf.$ac_objext"   | \
17220   *" snprintf.$ac_objext"   | \
17221     "snprintf.$ac_objext "* | \
17222   *" snprintf.$ac_objext "* ) ;;
17223   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
17224 esac
17225
17226 fi
17227
17228 # Need a #define for the size of Datum (unsigned long)
17229 echo "$as_me:$LINENO: checking for unsigned long" >&5
17230 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
17231 if test "${ac_cv_type_unsigned_long+set}" = set; then
17232   echo $ECHO_N "(cached) $ECHO_C" >&6
17233 else
17234   cat >conftest.$ac_ext <<_ACEOF
17235 /* confdefs.h.  */
17236 _ACEOF
17237 cat confdefs.h >>conftest.$ac_ext
17238 cat >>conftest.$ac_ext <<_ACEOF
17239 /* end confdefs.h.  */
17240 $ac_includes_default
17241 int
17242 main ()
17243 {
17244 if ((unsigned long *) 0)
17245   return 0;
17246 if (sizeof (unsigned long))
17247   return 0;
17248   ;
17249   return 0;
17250 }
17251 _ACEOF
17252 rm -f conftest.$ac_objext
17253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17254   (eval $ac_compile) 2>conftest.er1
17255   ac_status=$?
17256   grep -v '^ *+' conftest.er1 >conftest.err
17257   rm -f conftest.er1
17258   cat conftest.err >&5
17259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260   (exit $ac_status); } &&
17261          { ac_try='test -z "$ac_c_werror_flag"
17262                          || test ! -s conftest.err'
17263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17264   (eval $ac_try) 2>&5
17265   ac_status=$?
17266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267   (exit $ac_status); }; } &&
17268          { ac_try='test -s conftest.$ac_objext'
17269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17270   (eval $ac_try) 2>&5
17271   ac_status=$?
17272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273   (exit $ac_status); }; }; then
17274   ac_cv_type_unsigned_long=yes
17275 else
17276   echo "$as_me: failed program was:" >&5
17277 sed 's/^/| /' conftest.$ac_ext >&5
17278
17279 ac_cv_type_unsigned_long=no
17280 fi
17281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17282 fi
17283 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
17284 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
17285
17286 echo "$as_me:$LINENO: checking size of unsigned long" >&5
17287 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
17288 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
17289   echo $ECHO_N "(cached) $ECHO_C" >&6
17290 else
17291   if test "$ac_cv_type_unsigned_long" = yes; then
17292   # The cast to unsigned long works around a bug in the HP C Compiler
17293   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17294   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17295   # This bug is HP SR number 8606223364.
17296   if test "$cross_compiling" = yes; then
17297   # Depending upon the size, compute the lo and hi bounds.
17298 cat >conftest.$ac_ext <<_ACEOF
17299 /* confdefs.h.  */
17300 _ACEOF
17301 cat confdefs.h >>conftest.$ac_ext
17302 cat >>conftest.$ac_ext <<_ACEOF
17303 /* end confdefs.h.  */
17304 $ac_includes_default
17305 int
17306 main ()
17307 {
17308 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
17309 test_array [0] = 0
17310
17311   ;
17312   return 0;
17313 }
17314 _ACEOF
17315 rm -f conftest.$ac_objext
17316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17317   (eval $ac_compile) 2>conftest.er1
17318   ac_status=$?
17319   grep -v '^ *+' conftest.er1 >conftest.err
17320   rm -f conftest.er1
17321   cat conftest.err >&5
17322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323   (exit $ac_status); } &&
17324          { ac_try='test -z "$ac_c_werror_flag"
17325                          || test ! -s conftest.err'
17326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17327   (eval $ac_try) 2>&5
17328   ac_status=$?
17329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330   (exit $ac_status); }; } &&
17331          { ac_try='test -s conftest.$ac_objext'
17332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333   (eval $ac_try) 2>&5
17334   ac_status=$?
17335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336   (exit $ac_status); }; }; then
17337   ac_lo=0 ac_mid=0
17338   while :; do
17339     cat >conftest.$ac_ext <<_ACEOF
17340 /* confdefs.h.  */
17341 _ACEOF
17342 cat confdefs.h >>conftest.$ac_ext
17343 cat >>conftest.$ac_ext <<_ACEOF
17344 /* end confdefs.h.  */
17345 $ac_includes_default
17346 int
17347 main ()
17348 {
17349 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
17350 test_array [0] = 0
17351
17352   ;
17353   return 0;
17354 }
17355 _ACEOF
17356 rm -f conftest.$ac_objext
17357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17358   (eval $ac_compile) 2>conftest.er1
17359   ac_status=$?
17360   grep -v '^ *+' conftest.er1 >conftest.err
17361   rm -f conftest.er1
17362   cat conftest.err >&5
17363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364   (exit $ac_status); } &&
17365          { ac_try='test -z "$ac_c_werror_flag"
17366                          || test ! -s conftest.err'
17367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17368   (eval $ac_try) 2>&5
17369   ac_status=$?
17370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371   (exit $ac_status); }; } &&
17372          { ac_try='test -s conftest.$ac_objext'
17373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17374   (eval $ac_try) 2>&5
17375   ac_status=$?
17376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377   (exit $ac_status); }; }; then
17378   ac_hi=$ac_mid; break
17379 else
17380   echo "$as_me: failed program was:" >&5
17381 sed 's/^/| /' conftest.$ac_ext >&5
17382
17383 ac_lo=`expr $ac_mid + 1`
17384                     if test $ac_lo -le $ac_mid; then
17385                       ac_lo= ac_hi=
17386                       break
17387                     fi
17388                     ac_mid=`expr 2 '*' $ac_mid + 1`
17389 fi
17390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17391   done
17392 else
17393   echo "$as_me: failed program was:" >&5
17394 sed 's/^/| /' conftest.$ac_ext >&5
17395
17396 cat >conftest.$ac_ext <<_ACEOF
17397 /* confdefs.h.  */
17398 _ACEOF
17399 cat confdefs.h >>conftest.$ac_ext
17400 cat >>conftest.$ac_ext <<_ACEOF
17401 /* end confdefs.h.  */
17402 $ac_includes_default
17403 int
17404 main ()
17405 {
17406 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
17407 test_array [0] = 0
17408
17409   ;
17410   return 0;
17411 }
17412 _ACEOF
17413 rm -f conftest.$ac_objext
17414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17415   (eval $ac_compile) 2>conftest.er1
17416   ac_status=$?
17417   grep -v '^ *+' conftest.er1 >conftest.err
17418   rm -f conftest.er1
17419   cat conftest.err >&5
17420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421   (exit $ac_status); } &&
17422          { ac_try='test -z "$ac_c_werror_flag"
17423                          || test ! -s conftest.err'
17424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425   (eval $ac_try) 2>&5
17426   ac_status=$?
17427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428   (exit $ac_status); }; } &&
17429          { ac_try='test -s conftest.$ac_objext'
17430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431   (eval $ac_try) 2>&5
17432   ac_status=$?
17433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434   (exit $ac_status); }; }; then
17435   ac_hi=-1 ac_mid=-1
17436   while :; do
17437     cat >conftest.$ac_ext <<_ACEOF
17438 /* confdefs.h.  */
17439 _ACEOF
17440 cat confdefs.h >>conftest.$ac_ext
17441 cat >>conftest.$ac_ext <<_ACEOF
17442 /* end confdefs.h.  */
17443 $ac_includes_default
17444 int
17445 main ()
17446 {
17447 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
17448 test_array [0] = 0
17449
17450   ;
17451   return 0;
17452 }
17453 _ACEOF
17454 rm -f conftest.$ac_objext
17455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17456   (eval $ac_compile) 2>conftest.er1
17457   ac_status=$?
17458   grep -v '^ *+' conftest.er1 >conftest.err
17459   rm -f conftest.er1
17460   cat conftest.err >&5
17461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462   (exit $ac_status); } &&
17463          { ac_try='test -z "$ac_c_werror_flag"
17464                          || test ! -s conftest.err'
17465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466   (eval $ac_try) 2>&5
17467   ac_status=$?
17468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469   (exit $ac_status); }; } &&
17470          { ac_try='test -s conftest.$ac_objext'
17471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472   (eval $ac_try) 2>&5
17473   ac_status=$?
17474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475   (exit $ac_status); }; }; then
17476   ac_lo=$ac_mid; break
17477 else
17478   echo "$as_me: failed program was:" >&5
17479 sed 's/^/| /' conftest.$ac_ext >&5
17480
17481 ac_hi=`expr '(' $ac_mid ')' - 1`
17482                        if test $ac_mid -le $ac_hi; then
17483                          ac_lo= ac_hi=
17484                          break
17485                        fi
17486                        ac_mid=`expr 2 '*' $ac_mid`
17487 fi
17488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17489   done
17490 else
17491   echo "$as_me: failed program was:" >&5
17492 sed 's/^/| /' conftest.$ac_ext >&5
17493
17494 ac_lo= ac_hi=
17495 fi
17496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17497 fi
17498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17499 # Binary search between lo and hi bounds.
17500 while test "x$ac_lo" != "x$ac_hi"; do
17501   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17502   cat >conftest.$ac_ext <<_ACEOF
17503 /* confdefs.h.  */
17504 _ACEOF
17505 cat confdefs.h >>conftest.$ac_ext
17506 cat >>conftest.$ac_ext <<_ACEOF
17507 /* end confdefs.h.  */
17508 $ac_includes_default
17509 int
17510 main ()
17511 {
17512 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
17513 test_array [0] = 0
17514
17515   ;
17516   return 0;
17517 }
17518 _ACEOF
17519 rm -f conftest.$ac_objext
17520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17521   (eval $ac_compile) 2>conftest.er1
17522   ac_status=$?
17523   grep -v '^ *+' conftest.er1 >conftest.err
17524   rm -f conftest.er1
17525   cat conftest.err >&5
17526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527   (exit $ac_status); } &&
17528          { ac_try='test -z "$ac_c_werror_flag"
17529                          || test ! -s conftest.err'
17530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17531   (eval $ac_try) 2>&5
17532   ac_status=$?
17533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534   (exit $ac_status); }; } &&
17535          { ac_try='test -s conftest.$ac_objext'
17536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537   (eval $ac_try) 2>&5
17538   ac_status=$?
17539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540   (exit $ac_status); }; }; then
17541   ac_hi=$ac_mid
17542 else
17543   echo "$as_me: failed program was:" >&5
17544 sed 's/^/| /' conftest.$ac_ext >&5
17545
17546 ac_lo=`expr '(' $ac_mid ')' + 1`
17547 fi
17548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17549 done
17550 case $ac_lo in
17551 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
17552 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
17553 See \`config.log' for more details." >&5
17554 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
17555 See \`config.log' for more details." >&2;}
17556    { (exit 1); exit 1; }; } ;;
17557 esac
17558 else
17559   if test "$cross_compiling" = yes; then
17560   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17561 See \`config.log' for more details." >&5
17562 echo "$as_me: error: cannot run test program while cross compiling
17563 See \`config.log' for more details." >&2;}
17564    { (exit 1); exit 1; }; }
17565 else
17566   cat >conftest.$ac_ext <<_ACEOF
17567 /* confdefs.h.  */
17568 _ACEOF
17569 cat confdefs.h >>conftest.$ac_ext
17570 cat >>conftest.$ac_ext <<_ACEOF
17571 /* end confdefs.h.  */
17572 $ac_includes_default
17573 long longval () { return (long) (sizeof (unsigned long)); }
17574 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
17575 #include <stdio.h>
17576 #include <stdlib.h>
17577 int
17578 main ()
17579 {
17580
17581   FILE *f = fopen ("conftest.val", "w");
17582   if (! f)
17583     exit (1);
17584   if (((long) (sizeof (unsigned long))) < 0)
17585     {
17586       long i = longval ();
17587       if (i != ((long) (sizeof (unsigned long))))
17588         exit (1);
17589       fprintf (f, "%ld\n", i);
17590     }
17591   else
17592     {
17593       unsigned long i = ulongval ();
17594       if (i != ((long) (sizeof (unsigned long))))
17595         exit (1);
17596       fprintf (f, "%lu\n", i);
17597     }
17598   exit (ferror (f) || fclose (f) != 0);
17599
17600   ;
17601   return 0;
17602 }
17603 _ACEOF
17604 rm -f conftest$ac_exeext
17605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17606   (eval $ac_link) 2>&5
17607   ac_status=$?
17608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611   (eval $ac_try) 2>&5
17612   ac_status=$?
17613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614   (exit $ac_status); }; }; then
17615   ac_cv_sizeof_unsigned_long=`cat conftest.val`
17616 else
17617   echo "$as_me: program exited with status $ac_status" >&5
17618 echo "$as_me: failed program was:" >&5
17619 sed 's/^/| /' conftest.$ac_ext >&5
17620
17621 ( exit $ac_status )
17622 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
17623 See \`config.log' for more details." >&5
17624 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
17625 See \`config.log' for more details." >&2;}
17626    { (exit 1); exit 1; }; }
17627 fi
17628 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17629 fi
17630 fi
17631 rm -f conftest.val
17632 else
17633   ac_cv_sizeof_unsigned_long=0
17634 fi
17635 fi
17636 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
17637 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
17638 cat >>confdefs.h <<_ACEOF
17639 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
17640 _ACEOF
17641
17642
17643
17644 # And one for the size of size_t (enables tweaks for > 32bit address space)
17645 echo "$as_me:$LINENO: checking for size_t" >&5
17646 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17647 if test "${ac_cv_type_size_t+set}" = set; then
17648   echo $ECHO_N "(cached) $ECHO_C" >&6
17649 else
17650   cat >conftest.$ac_ext <<_ACEOF
17651 /* confdefs.h.  */
17652 _ACEOF
17653 cat confdefs.h >>conftest.$ac_ext
17654 cat >>conftest.$ac_ext <<_ACEOF
17655 /* end confdefs.h.  */
17656 $ac_includes_default
17657 int
17658 main ()
17659 {
17660 if ((size_t *) 0)
17661   return 0;
17662 if (sizeof (size_t))
17663   return 0;
17664   ;
17665   return 0;
17666 }
17667 _ACEOF
17668 rm -f conftest.$ac_objext
17669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17670   (eval $ac_compile) 2>conftest.er1
17671   ac_status=$?
17672   grep -v '^ *+' conftest.er1 >conftest.err
17673   rm -f conftest.er1
17674   cat conftest.err >&5
17675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676   (exit $ac_status); } &&
17677          { ac_try='test -z "$ac_c_werror_flag"
17678                          || test ! -s conftest.err'
17679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680   (eval $ac_try) 2>&5
17681   ac_status=$?
17682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683   (exit $ac_status); }; } &&
17684          { ac_try='test -s conftest.$ac_objext'
17685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686   (eval $ac_try) 2>&5
17687   ac_status=$?
17688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689   (exit $ac_status); }; }; then
17690   ac_cv_type_size_t=yes
17691 else
17692   echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17694
17695 ac_cv_type_size_t=no
17696 fi
17697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17698 fi
17699 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17700 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17701
17702 echo "$as_me:$LINENO: checking size of size_t" >&5
17703 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17704 if test "${ac_cv_sizeof_size_t+set}" = set; then
17705   echo $ECHO_N "(cached) $ECHO_C" >&6
17706 else
17707   if test "$ac_cv_type_size_t" = yes; then
17708   # The cast to unsigned long works around a bug in the HP C Compiler
17709   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17710   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17711   # This bug is HP SR number 8606223364.
17712   if test "$cross_compiling" = yes; then
17713   # Depending upon the size, compute the lo and hi bounds.
17714 cat >conftest.$ac_ext <<_ACEOF
17715 /* confdefs.h.  */
17716 _ACEOF
17717 cat confdefs.h >>conftest.$ac_ext
17718 cat >>conftest.$ac_ext <<_ACEOF
17719 /* end confdefs.h.  */
17720 $ac_includes_default
17721 int
17722 main ()
17723 {
17724 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17725 test_array [0] = 0
17726
17727   ;
17728   return 0;
17729 }
17730 _ACEOF
17731 rm -f conftest.$ac_objext
17732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17733   (eval $ac_compile) 2>conftest.er1
17734   ac_status=$?
17735   grep -v '^ *+' conftest.er1 >conftest.err
17736   rm -f conftest.er1
17737   cat conftest.err >&5
17738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739   (exit $ac_status); } &&
17740          { ac_try='test -z "$ac_c_werror_flag"
17741                          || test ! -s conftest.err'
17742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17743   (eval $ac_try) 2>&5
17744   ac_status=$?
17745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746   (exit $ac_status); }; } &&
17747          { ac_try='test -s conftest.$ac_objext'
17748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749   (eval $ac_try) 2>&5
17750   ac_status=$?
17751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752   (exit $ac_status); }; }; then
17753   ac_lo=0 ac_mid=0
17754   while :; do
17755     cat >conftest.$ac_ext <<_ACEOF
17756 /* confdefs.h.  */
17757 _ACEOF
17758 cat confdefs.h >>conftest.$ac_ext
17759 cat >>conftest.$ac_ext <<_ACEOF
17760 /* end confdefs.h.  */
17761 $ac_includes_default
17762 int
17763 main ()
17764 {
17765 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17766 test_array [0] = 0
17767
17768   ;
17769   return 0;
17770 }
17771 _ACEOF
17772 rm -f conftest.$ac_objext
17773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17774   (eval $ac_compile) 2>conftest.er1
17775   ac_status=$?
17776   grep -v '^ *+' conftest.er1 >conftest.err
17777   rm -f conftest.er1
17778   cat conftest.err >&5
17779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780   (exit $ac_status); } &&
17781          { ac_try='test -z "$ac_c_werror_flag"
17782                          || test ! -s conftest.err'
17783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784   (eval $ac_try) 2>&5
17785   ac_status=$?
17786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787   (exit $ac_status); }; } &&
17788          { ac_try='test -s conftest.$ac_objext'
17789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790   (eval $ac_try) 2>&5
17791   ac_status=$?
17792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793   (exit $ac_status); }; }; then
17794   ac_hi=$ac_mid; break
17795 else
17796   echo "$as_me: failed program was:" >&5
17797 sed 's/^/| /' conftest.$ac_ext >&5
17798
17799 ac_lo=`expr $ac_mid + 1`
17800                     if test $ac_lo -le $ac_mid; then
17801                       ac_lo= ac_hi=
17802                       break
17803                     fi
17804                     ac_mid=`expr 2 '*' $ac_mid + 1`
17805 fi
17806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17807   done
17808 else
17809   echo "$as_me: failed program was:" >&5
17810 sed 's/^/| /' conftest.$ac_ext >&5
17811
17812 cat >conftest.$ac_ext <<_ACEOF
17813 /* confdefs.h.  */
17814 _ACEOF
17815 cat confdefs.h >>conftest.$ac_ext
17816 cat >>conftest.$ac_ext <<_ACEOF
17817 /* end confdefs.h.  */
17818 $ac_includes_default
17819 int
17820 main ()
17821 {
17822 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17823 test_array [0] = 0
17824
17825   ;
17826   return 0;
17827 }
17828 _ACEOF
17829 rm -f conftest.$ac_objext
17830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17831   (eval $ac_compile) 2>conftest.er1
17832   ac_status=$?
17833   grep -v '^ *+' conftest.er1 >conftest.err
17834   rm -f conftest.er1
17835   cat conftest.err >&5
17836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837   (exit $ac_status); } &&
17838          { ac_try='test -z "$ac_c_werror_flag"
17839                          || test ! -s conftest.err'
17840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17841   (eval $ac_try) 2>&5
17842   ac_status=$?
17843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844   (exit $ac_status); }; } &&
17845          { ac_try='test -s conftest.$ac_objext'
17846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17847   (eval $ac_try) 2>&5
17848   ac_status=$?
17849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850   (exit $ac_status); }; }; then
17851   ac_hi=-1 ac_mid=-1
17852   while :; do
17853     cat >conftest.$ac_ext <<_ACEOF
17854 /* confdefs.h.  */
17855 _ACEOF
17856 cat confdefs.h >>conftest.$ac_ext
17857 cat >>conftest.$ac_ext <<_ACEOF
17858 /* end confdefs.h.  */
17859 $ac_includes_default
17860 int
17861 main ()
17862 {
17863 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17864 test_array [0] = 0
17865
17866   ;
17867   return 0;
17868 }
17869 _ACEOF
17870 rm -f conftest.$ac_objext
17871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17872   (eval $ac_compile) 2>conftest.er1
17873   ac_status=$?
17874   grep -v '^ *+' conftest.er1 >conftest.err
17875   rm -f conftest.er1
17876   cat conftest.err >&5
17877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878   (exit $ac_status); } &&
17879          { ac_try='test -z "$ac_c_werror_flag"
17880                          || test ! -s conftest.err'
17881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17882   (eval $ac_try) 2>&5
17883   ac_status=$?
17884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885   (exit $ac_status); }; } &&
17886          { ac_try='test -s conftest.$ac_objext'
17887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888   (eval $ac_try) 2>&5
17889   ac_status=$?
17890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891   (exit $ac_status); }; }; then
17892   ac_lo=$ac_mid; break
17893 else
17894   echo "$as_me: failed program was:" >&5
17895 sed 's/^/| /' conftest.$ac_ext >&5
17896
17897 ac_hi=`expr '(' $ac_mid ')' - 1`
17898                        if test $ac_mid -le $ac_hi; then
17899                          ac_lo= ac_hi=
17900                          break
17901                        fi
17902                        ac_mid=`expr 2 '*' $ac_mid`
17903 fi
17904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17905   done
17906 else
17907   echo "$as_me: failed program was:" >&5
17908 sed 's/^/| /' conftest.$ac_ext >&5
17909
17910 ac_lo= ac_hi=
17911 fi
17912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17913 fi
17914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17915 # Binary search between lo and hi bounds.
17916 while test "x$ac_lo" != "x$ac_hi"; do
17917   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17918   cat >conftest.$ac_ext <<_ACEOF
17919 /* confdefs.h.  */
17920 _ACEOF
17921 cat confdefs.h >>conftest.$ac_ext
17922 cat >>conftest.$ac_ext <<_ACEOF
17923 /* end confdefs.h.  */
17924 $ac_includes_default
17925 int
17926 main ()
17927 {
17928 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17929 test_array [0] = 0
17930
17931   ;
17932   return 0;
17933 }
17934 _ACEOF
17935 rm -f conftest.$ac_objext
17936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17937   (eval $ac_compile) 2>conftest.er1
17938   ac_status=$?
17939   grep -v '^ *+' conftest.er1 >conftest.err
17940   rm -f conftest.er1
17941   cat conftest.err >&5
17942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943   (exit $ac_status); } &&
17944          { ac_try='test -z "$ac_c_werror_flag"
17945                          || test ! -s conftest.err'
17946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947   (eval $ac_try) 2>&5
17948   ac_status=$?
17949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950   (exit $ac_status); }; } &&
17951          { ac_try='test -s conftest.$ac_objext'
17952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953   (eval $ac_try) 2>&5
17954   ac_status=$?
17955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956   (exit $ac_status); }; }; then
17957   ac_hi=$ac_mid
17958 else
17959   echo "$as_me: failed program was:" >&5
17960 sed 's/^/| /' conftest.$ac_ext >&5
17961
17962 ac_lo=`expr '(' $ac_mid ')' + 1`
17963 fi
17964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17965 done
17966 case $ac_lo in
17967 ?*) ac_cv_sizeof_size_t=$ac_lo;;
17968 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17969 See \`config.log' for more details." >&5
17970 echo "$as_me: error: cannot compute sizeof (size_t), 77
17971 See \`config.log' for more details." >&2;}
17972    { (exit 1); exit 1; }; } ;;
17973 esac
17974 else
17975   if test "$cross_compiling" = yes; then
17976   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17977 See \`config.log' for more details." >&5
17978 echo "$as_me: error: cannot run test program while cross compiling
17979 See \`config.log' for more details." >&2;}
17980    { (exit 1); exit 1; }; }
17981 else
17982   cat >conftest.$ac_ext <<_ACEOF
17983 /* confdefs.h.  */
17984 _ACEOF
17985 cat confdefs.h >>conftest.$ac_ext
17986 cat >>conftest.$ac_ext <<_ACEOF
17987 /* end confdefs.h.  */
17988 $ac_includes_default
17989 long longval () { return (long) (sizeof (size_t)); }
17990 unsigned long ulongval () { return (long) (sizeof (size_t)); }
17991 #include <stdio.h>
17992 #include <stdlib.h>
17993 int
17994 main ()
17995 {
17996
17997   FILE *f = fopen ("conftest.val", "w");
17998   if (! f)
17999     exit (1);
18000   if (((long) (sizeof (size_t))) < 0)
18001     {
18002       long i = longval ();
18003       if (i != ((long) (sizeof (size_t))))
18004         exit (1);
18005       fprintf (f, "%ld\n", i);
18006     }
18007   else
18008     {
18009       unsigned long i = ulongval ();
18010       if (i != ((long) (sizeof (size_t))))
18011         exit (1);
18012       fprintf (f, "%lu\n", i);
18013     }
18014   exit (ferror (f) || fclose (f) != 0);
18015
18016   ;
18017   return 0;
18018 }
18019 _ACEOF
18020 rm -f conftest$ac_exeext
18021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18022   (eval $ac_link) 2>&5
18023   ac_status=$?
18024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18027   (eval $ac_try) 2>&5
18028   ac_status=$?
18029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030   (exit $ac_status); }; }; then
18031   ac_cv_sizeof_size_t=`cat conftest.val`
18032 else
18033   echo "$as_me: program exited with status $ac_status" >&5
18034 echo "$as_me: failed program was:" >&5
18035 sed 's/^/| /' conftest.$ac_ext >&5
18036
18037 ( exit $ac_status )
18038 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18039 See \`config.log' for more details." >&5
18040 echo "$as_me: error: cannot compute sizeof (size_t), 77
18041 See \`config.log' for more details." >&2;}
18042    { (exit 1); exit 1; }; }
18043 fi
18044 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18045 fi
18046 fi
18047 rm -f conftest.val
18048 else
18049   ac_cv_sizeof_size_t=0
18050 fi
18051 fi
18052 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18053 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18054 cat >>confdefs.h <<_ACEOF
18055 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18056 _ACEOF
18057
18058
18059
18060 # Determine memory alignment requirements for the basic C data types.
18061
18062 echo "$as_me:$LINENO: checking for short" >&5
18063 echo $ECHO_N "checking for short... $ECHO_C" >&6
18064 if test "${ac_cv_type_short+set}" = set; then
18065   echo $ECHO_N "(cached) $ECHO_C" >&6
18066 else
18067   cat >conftest.$ac_ext <<_ACEOF
18068 /* confdefs.h.  */
18069 _ACEOF
18070 cat confdefs.h >>conftest.$ac_ext
18071 cat >>conftest.$ac_ext <<_ACEOF
18072 /* end confdefs.h.  */
18073 $ac_includes_default
18074 int
18075 main ()
18076 {
18077 if ((short *) 0)
18078   return 0;
18079 if (sizeof (short))
18080   return 0;
18081   ;
18082   return 0;
18083 }
18084 _ACEOF
18085 rm -f conftest.$ac_objext
18086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18087   (eval $ac_compile) 2>conftest.er1
18088   ac_status=$?
18089   grep -v '^ *+' conftest.er1 >conftest.err
18090   rm -f conftest.er1
18091   cat conftest.err >&5
18092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093   (exit $ac_status); } &&
18094          { ac_try='test -z "$ac_c_werror_flag"
18095                          || test ! -s conftest.err'
18096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18097   (eval $ac_try) 2>&5
18098   ac_status=$?
18099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100   (exit $ac_status); }; } &&
18101          { ac_try='test -s conftest.$ac_objext'
18102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18103   (eval $ac_try) 2>&5
18104   ac_status=$?
18105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106   (exit $ac_status); }; }; then
18107   ac_cv_type_short=yes
18108 else
18109   echo "$as_me: failed program was:" >&5
18110 sed 's/^/| /' conftest.$ac_ext >&5
18111
18112 ac_cv_type_short=no
18113 fi
18114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18115 fi
18116 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18117 echo "${ECHO_T}$ac_cv_type_short" >&6
18118
18119 echo "$as_me:$LINENO: checking alignment of short" >&5
18120 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
18121 if test "${pgac_cv_alignof_short+set}" = set; then
18122   echo $ECHO_N "(cached) $ECHO_C" >&6
18123 else
18124   if test "$ac_cv_type_short" = yes; then
18125   if test "$cross_compiling" = yes; then
18126   # Depending upon the size, compute the lo and hi bounds.
18127 cat >conftest.$ac_ext <<_ACEOF
18128 /* confdefs.h.  */
18129 _ACEOF
18130 cat confdefs.h >>conftest.$ac_ext
18131 cat >>conftest.$ac_ext <<_ACEOF
18132 /* end confdefs.h.  */
18133 $ac_includes_default
18134 struct { char filler; short field; } pgac_struct;
18135 int
18136 main ()
18137 {
18138 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
18139 test_array [0] = 0
18140
18141   ;
18142   return 0;
18143 }
18144 _ACEOF
18145 rm -f conftest.$ac_objext
18146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18147   (eval $ac_compile) 2>conftest.er1
18148   ac_status=$?
18149   grep -v '^ *+' conftest.er1 >conftest.err
18150   rm -f conftest.er1
18151   cat conftest.err >&5
18152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153   (exit $ac_status); } &&
18154          { ac_try='test -z "$ac_c_werror_flag"
18155                          || test ! -s conftest.err'
18156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18157   (eval $ac_try) 2>&5
18158   ac_status=$?
18159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160   (exit $ac_status); }; } &&
18161          { ac_try='test -s conftest.$ac_objext'
18162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18163   (eval $ac_try) 2>&5
18164   ac_status=$?
18165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166   (exit $ac_status); }; }; then
18167   ac_lo=0 ac_mid=0
18168   while :; do
18169     cat >conftest.$ac_ext <<_ACEOF
18170 /* confdefs.h.  */
18171 _ACEOF
18172 cat confdefs.h >>conftest.$ac_ext
18173 cat >>conftest.$ac_ext <<_ACEOF
18174 /* end confdefs.h.  */
18175 $ac_includes_default
18176 struct { char filler; short field; } pgac_struct;
18177 int
18178 main ()
18179 {
18180 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18181 test_array [0] = 0
18182
18183   ;
18184   return 0;
18185 }
18186 _ACEOF
18187 rm -f conftest.$ac_objext
18188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18189   (eval $ac_compile) 2>conftest.er1
18190   ac_status=$?
18191   grep -v '^ *+' conftest.er1 >conftest.err
18192   rm -f conftest.er1
18193   cat conftest.err >&5
18194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195   (exit $ac_status); } &&
18196          { ac_try='test -z "$ac_c_werror_flag"
18197                          || test ! -s conftest.err'
18198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18199   (eval $ac_try) 2>&5
18200   ac_status=$?
18201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202   (exit $ac_status); }; } &&
18203          { ac_try='test -s conftest.$ac_objext'
18204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18205   (eval $ac_try) 2>&5
18206   ac_status=$?
18207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208   (exit $ac_status); }; }; then
18209   ac_hi=$ac_mid; break
18210 else
18211   echo "$as_me: failed program was:" >&5
18212 sed 's/^/| /' conftest.$ac_ext >&5
18213
18214 ac_lo=`expr $ac_mid + 1`
18215                     if test $ac_lo -le $ac_mid; then
18216                       ac_lo= ac_hi=
18217                       break
18218                     fi
18219                     ac_mid=`expr 2 '*' $ac_mid + 1`
18220 fi
18221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18222   done
18223 else
18224   echo "$as_me: failed program was:" >&5
18225 sed 's/^/| /' conftest.$ac_ext >&5
18226
18227 cat >conftest.$ac_ext <<_ACEOF
18228 /* confdefs.h.  */
18229 _ACEOF
18230 cat confdefs.h >>conftest.$ac_ext
18231 cat >>conftest.$ac_ext <<_ACEOF
18232 /* end confdefs.h.  */
18233 $ac_includes_default
18234 struct { char filler; short field; } pgac_struct;
18235 int
18236 main ()
18237 {
18238 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
18239 test_array [0] = 0
18240
18241   ;
18242   return 0;
18243 }
18244 _ACEOF
18245 rm -f conftest.$ac_objext
18246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18247   (eval $ac_compile) 2>conftest.er1
18248   ac_status=$?
18249   grep -v '^ *+' conftest.er1 >conftest.err
18250   rm -f conftest.er1
18251   cat conftest.err >&5
18252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253   (exit $ac_status); } &&
18254          { ac_try='test -z "$ac_c_werror_flag"
18255                          || test ! -s conftest.err'
18256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18257   (eval $ac_try) 2>&5
18258   ac_status=$?
18259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260   (exit $ac_status); }; } &&
18261          { ac_try='test -s conftest.$ac_objext'
18262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18263   (eval $ac_try) 2>&5
18264   ac_status=$?
18265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266   (exit $ac_status); }; }; then
18267   ac_hi=-1 ac_mid=-1
18268   while :; do
18269     cat >conftest.$ac_ext <<_ACEOF
18270 /* confdefs.h.  */
18271 _ACEOF
18272 cat confdefs.h >>conftest.$ac_ext
18273 cat >>conftest.$ac_ext <<_ACEOF
18274 /* end confdefs.h.  */
18275 $ac_includes_default
18276 struct { char filler; short field; } pgac_struct;
18277 int
18278 main ()
18279 {
18280 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
18281 test_array [0] = 0
18282
18283   ;
18284   return 0;
18285 }
18286 _ACEOF
18287 rm -f conftest.$ac_objext
18288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18289   (eval $ac_compile) 2>conftest.er1
18290   ac_status=$?
18291   grep -v '^ *+' conftest.er1 >conftest.err
18292   rm -f conftest.er1
18293   cat conftest.err >&5
18294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295   (exit $ac_status); } &&
18296          { ac_try='test -z "$ac_c_werror_flag"
18297                          || test ! -s conftest.err'
18298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18299   (eval $ac_try) 2>&5
18300   ac_status=$?
18301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302   (exit $ac_status); }; } &&
18303          { ac_try='test -s conftest.$ac_objext'
18304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18305   (eval $ac_try) 2>&5
18306   ac_status=$?
18307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308   (exit $ac_status); }; }; then
18309   ac_lo=$ac_mid; break
18310 else
18311   echo "$as_me: failed program was:" >&5
18312 sed 's/^/| /' conftest.$ac_ext >&5
18313
18314 ac_hi=`expr '(' $ac_mid ')' - 1`
18315                        if test $ac_mid -le $ac_hi; then
18316                          ac_lo= ac_hi=
18317                          break
18318                        fi
18319                        ac_mid=`expr 2 '*' $ac_mid`
18320 fi
18321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18322   done
18323 else
18324   echo "$as_me: failed program was:" >&5
18325 sed 's/^/| /' conftest.$ac_ext >&5
18326
18327 ac_lo= ac_hi=
18328 fi
18329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18330 fi
18331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18332 # Binary search between lo and hi bounds.
18333 while test "x$ac_lo" != "x$ac_hi"; do
18334   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18335   cat >conftest.$ac_ext <<_ACEOF
18336 /* confdefs.h.  */
18337 _ACEOF
18338 cat confdefs.h >>conftest.$ac_ext
18339 cat >>conftest.$ac_ext <<_ACEOF
18340 /* end confdefs.h.  */
18341 $ac_includes_default
18342 struct { char filler; short field; } pgac_struct;
18343 int
18344 main ()
18345 {
18346 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18347 test_array [0] = 0
18348
18349   ;
18350   return 0;
18351 }
18352 _ACEOF
18353 rm -f conftest.$ac_objext
18354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18355   (eval $ac_compile) 2>conftest.er1
18356   ac_status=$?
18357   grep -v '^ *+' conftest.er1 >conftest.err
18358   rm -f conftest.er1
18359   cat conftest.err >&5
18360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361   (exit $ac_status); } &&
18362          { ac_try='test -z "$ac_c_werror_flag"
18363                          || test ! -s conftest.err'
18364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18365   (eval $ac_try) 2>&5
18366   ac_status=$?
18367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368   (exit $ac_status); }; } &&
18369          { ac_try='test -s conftest.$ac_objext'
18370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18371   (eval $ac_try) 2>&5
18372   ac_status=$?
18373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374   (exit $ac_status); }; }; then
18375   ac_hi=$ac_mid
18376 else
18377   echo "$as_me: failed program was:" >&5
18378 sed 's/^/| /' conftest.$ac_ext >&5
18379
18380 ac_lo=`expr '(' $ac_mid ')' + 1`
18381 fi
18382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18383 done
18384 case $ac_lo in
18385 ?*) pgac_cv_alignof_short=$ac_lo;;
18386 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
18387 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
18388    { (exit 1); exit 1; }; } ;;
18389 esac
18390 else
18391   if test "$cross_compiling" = yes; then
18392   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18393 See \`config.log' for more details." >&5
18394 echo "$as_me: error: cannot run test program while cross compiling
18395 See \`config.log' for more details." >&2;}
18396    { (exit 1); exit 1; }; }
18397 else
18398   cat >conftest.$ac_ext <<_ACEOF
18399 /* confdefs.h.  */
18400 _ACEOF
18401 cat confdefs.h >>conftest.$ac_ext
18402 cat >>conftest.$ac_ext <<_ACEOF
18403 /* end confdefs.h.  */
18404 $ac_includes_default
18405 struct { char filler; short field; } pgac_struct;
18406 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18407 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18408 #include <stdio.h>
18409 #include <stdlib.h>
18410 int
18411 main ()
18412 {
18413
18414   FILE *f = fopen ("conftest.val", "w");
18415   if (! f)
18416     exit (1);
18417   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
18418     {
18419       long i = longval ();
18420       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18421         exit (1);
18422       fprintf (f, "%ld\n", i);
18423     }
18424   else
18425     {
18426       unsigned long i = ulongval ();
18427       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18428         exit (1);
18429       fprintf (f, "%lu\n", i);
18430     }
18431   exit (ferror (f) || fclose (f) != 0);
18432
18433   ;
18434   return 0;
18435 }
18436 _ACEOF
18437 rm -f conftest$ac_exeext
18438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18439   (eval $ac_link) 2>&5
18440   ac_status=$?
18441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18444   (eval $ac_try) 2>&5
18445   ac_status=$?
18446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447   (exit $ac_status); }; }; then
18448   pgac_cv_alignof_short=`cat conftest.val`
18449 else
18450   echo "$as_me: program exited with status $ac_status" >&5
18451 echo "$as_me: failed program was:" >&5
18452 sed 's/^/| /' conftest.$ac_ext >&5
18453
18454 ( exit $ac_status )
18455 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
18456 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
18457    { (exit 1); exit 1; }; }
18458 fi
18459 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18460 fi
18461 fi
18462 rm -f conftest.val
18463 else
18464   pgac_cv_alignof_short=0
18465 fi
18466 fi
18467 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
18468 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
18469 cat >>confdefs.h <<_ACEOF
18470 #define ALIGNOF_SHORT $pgac_cv_alignof_short
18471 _ACEOF
18472
18473
18474 echo "$as_me:$LINENO: checking for int" >&5
18475 echo $ECHO_N "checking for int... $ECHO_C" >&6
18476 if test "${ac_cv_type_int+set}" = set; then
18477   echo $ECHO_N "(cached) $ECHO_C" >&6
18478 else
18479   cat >conftest.$ac_ext <<_ACEOF
18480 /* confdefs.h.  */
18481 _ACEOF
18482 cat confdefs.h >>conftest.$ac_ext
18483 cat >>conftest.$ac_ext <<_ACEOF
18484 /* end confdefs.h.  */
18485 $ac_includes_default
18486 int
18487 main ()
18488 {
18489 if ((int *) 0)
18490   return 0;
18491 if (sizeof (int))
18492   return 0;
18493   ;
18494   return 0;
18495 }
18496 _ACEOF
18497 rm -f conftest.$ac_objext
18498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18499   (eval $ac_compile) 2>conftest.er1
18500   ac_status=$?
18501   grep -v '^ *+' conftest.er1 >conftest.err
18502   rm -f conftest.er1
18503   cat conftest.err >&5
18504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505   (exit $ac_status); } &&
18506          { ac_try='test -z "$ac_c_werror_flag"
18507                          || test ! -s conftest.err'
18508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18509   (eval $ac_try) 2>&5
18510   ac_status=$?
18511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512   (exit $ac_status); }; } &&
18513          { ac_try='test -s conftest.$ac_objext'
18514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18515   (eval $ac_try) 2>&5
18516   ac_status=$?
18517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518   (exit $ac_status); }; }; then
18519   ac_cv_type_int=yes
18520 else
18521   echo "$as_me: failed program was:" >&5
18522 sed 's/^/| /' conftest.$ac_ext >&5
18523
18524 ac_cv_type_int=no
18525 fi
18526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18527 fi
18528 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18529 echo "${ECHO_T}$ac_cv_type_int" >&6
18530
18531 echo "$as_me:$LINENO: checking alignment of int" >&5
18532 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
18533 if test "${pgac_cv_alignof_int+set}" = set; then
18534   echo $ECHO_N "(cached) $ECHO_C" >&6
18535 else
18536   if test "$ac_cv_type_int" = yes; then
18537   if test "$cross_compiling" = yes; then
18538   # Depending upon the size, compute the lo and hi bounds.
18539 cat >conftest.$ac_ext <<_ACEOF
18540 /* confdefs.h.  */
18541 _ACEOF
18542 cat confdefs.h >>conftest.$ac_ext
18543 cat >>conftest.$ac_ext <<_ACEOF
18544 /* end confdefs.h.  */
18545 $ac_includes_default
18546 struct { char filler; int field; } pgac_struct;
18547 int
18548 main ()
18549 {
18550 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
18551 test_array [0] = 0
18552
18553   ;
18554   return 0;
18555 }
18556 _ACEOF
18557 rm -f conftest.$ac_objext
18558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18559   (eval $ac_compile) 2>conftest.er1
18560   ac_status=$?
18561   grep -v '^ *+' conftest.er1 >conftest.err
18562   rm -f conftest.er1
18563   cat conftest.err >&5
18564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565   (exit $ac_status); } &&
18566          { ac_try='test -z "$ac_c_werror_flag"
18567                          || test ! -s conftest.err'
18568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18569   (eval $ac_try) 2>&5
18570   ac_status=$?
18571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572   (exit $ac_status); }; } &&
18573          { ac_try='test -s conftest.$ac_objext'
18574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18575   (eval $ac_try) 2>&5
18576   ac_status=$?
18577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578   (exit $ac_status); }; }; then
18579   ac_lo=0 ac_mid=0
18580   while :; do
18581     cat >conftest.$ac_ext <<_ACEOF
18582 /* confdefs.h.  */
18583 _ACEOF
18584 cat confdefs.h >>conftest.$ac_ext
18585 cat >>conftest.$ac_ext <<_ACEOF
18586 /* end confdefs.h.  */
18587 $ac_includes_default
18588 struct { char filler; int field; } pgac_struct;
18589 int
18590 main ()
18591 {
18592 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18593 test_array [0] = 0
18594
18595   ;
18596   return 0;
18597 }
18598 _ACEOF
18599 rm -f conftest.$ac_objext
18600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18601   (eval $ac_compile) 2>conftest.er1
18602   ac_status=$?
18603   grep -v '^ *+' conftest.er1 >conftest.err
18604   rm -f conftest.er1
18605   cat conftest.err >&5
18606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607   (exit $ac_status); } &&
18608          { ac_try='test -z "$ac_c_werror_flag"
18609                          || test ! -s conftest.err'
18610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611   (eval $ac_try) 2>&5
18612   ac_status=$?
18613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614   (exit $ac_status); }; } &&
18615          { ac_try='test -s conftest.$ac_objext'
18616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18617   (eval $ac_try) 2>&5
18618   ac_status=$?
18619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620   (exit $ac_status); }; }; then
18621   ac_hi=$ac_mid; break
18622 else
18623   echo "$as_me: failed program was:" >&5
18624 sed 's/^/| /' conftest.$ac_ext >&5
18625
18626 ac_lo=`expr $ac_mid + 1`
18627                     if test $ac_lo -le $ac_mid; then
18628                       ac_lo= ac_hi=
18629                       break
18630                     fi
18631                     ac_mid=`expr 2 '*' $ac_mid + 1`
18632 fi
18633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18634   done
18635 else
18636   echo "$as_me: failed program was:" >&5
18637 sed 's/^/| /' conftest.$ac_ext >&5
18638
18639 cat >conftest.$ac_ext <<_ACEOF
18640 /* confdefs.h.  */
18641 _ACEOF
18642 cat confdefs.h >>conftest.$ac_ext
18643 cat >>conftest.$ac_ext <<_ACEOF
18644 /* end confdefs.h.  */
18645 $ac_includes_default
18646 struct { char filler; int field; } pgac_struct;
18647 int
18648 main ()
18649 {
18650 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
18651 test_array [0] = 0
18652
18653   ;
18654   return 0;
18655 }
18656 _ACEOF
18657 rm -f conftest.$ac_objext
18658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18659   (eval $ac_compile) 2>conftest.er1
18660   ac_status=$?
18661   grep -v '^ *+' conftest.er1 >conftest.err
18662   rm -f conftest.er1
18663   cat conftest.err >&5
18664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665   (exit $ac_status); } &&
18666          { ac_try='test -z "$ac_c_werror_flag"
18667                          || test ! -s conftest.err'
18668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18669   (eval $ac_try) 2>&5
18670   ac_status=$?
18671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672   (exit $ac_status); }; } &&
18673          { ac_try='test -s conftest.$ac_objext'
18674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18675   (eval $ac_try) 2>&5
18676   ac_status=$?
18677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678   (exit $ac_status); }; }; then
18679   ac_hi=-1 ac_mid=-1
18680   while :; do
18681     cat >conftest.$ac_ext <<_ACEOF
18682 /* confdefs.h.  */
18683 _ACEOF
18684 cat confdefs.h >>conftest.$ac_ext
18685 cat >>conftest.$ac_ext <<_ACEOF
18686 /* end confdefs.h.  */
18687 $ac_includes_default
18688 struct { char filler; int field; } pgac_struct;
18689 int
18690 main ()
18691 {
18692 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
18693 test_array [0] = 0
18694
18695   ;
18696   return 0;
18697 }
18698 _ACEOF
18699 rm -f conftest.$ac_objext
18700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18701   (eval $ac_compile) 2>conftest.er1
18702   ac_status=$?
18703   grep -v '^ *+' conftest.er1 >conftest.err
18704   rm -f conftest.er1
18705   cat conftest.err >&5
18706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707   (exit $ac_status); } &&
18708          { ac_try='test -z "$ac_c_werror_flag"
18709                          || test ! -s conftest.err'
18710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18711   (eval $ac_try) 2>&5
18712   ac_status=$?
18713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714   (exit $ac_status); }; } &&
18715          { ac_try='test -s conftest.$ac_objext'
18716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18717   (eval $ac_try) 2>&5
18718   ac_status=$?
18719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720   (exit $ac_status); }; }; then
18721   ac_lo=$ac_mid; break
18722 else
18723   echo "$as_me: failed program was:" >&5
18724 sed 's/^/| /' conftest.$ac_ext >&5
18725
18726 ac_hi=`expr '(' $ac_mid ')' - 1`
18727                        if test $ac_mid -le $ac_hi; then
18728                          ac_lo= ac_hi=
18729                          break
18730                        fi
18731                        ac_mid=`expr 2 '*' $ac_mid`
18732 fi
18733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18734   done
18735 else
18736   echo "$as_me: failed program was:" >&5
18737 sed 's/^/| /' conftest.$ac_ext >&5
18738
18739 ac_lo= ac_hi=
18740 fi
18741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18742 fi
18743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18744 # Binary search between lo and hi bounds.
18745 while test "x$ac_lo" != "x$ac_hi"; do
18746   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18747   cat >conftest.$ac_ext <<_ACEOF
18748 /* confdefs.h.  */
18749 _ACEOF
18750 cat confdefs.h >>conftest.$ac_ext
18751 cat >>conftest.$ac_ext <<_ACEOF
18752 /* end confdefs.h.  */
18753 $ac_includes_default
18754 struct { char filler; int field; } pgac_struct;
18755 int
18756 main ()
18757 {
18758 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18759 test_array [0] = 0
18760
18761   ;
18762   return 0;
18763 }
18764 _ACEOF
18765 rm -f conftest.$ac_objext
18766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18767   (eval $ac_compile) 2>conftest.er1
18768   ac_status=$?
18769   grep -v '^ *+' conftest.er1 >conftest.err
18770   rm -f conftest.er1
18771   cat conftest.err >&5
18772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773   (exit $ac_status); } &&
18774          { ac_try='test -z "$ac_c_werror_flag"
18775                          || test ! -s conftest.err'
18776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18777   (eval $ac_try) 2>&5
18778   ac_status=$?
18779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780   (exit $ac_status); }; } &&
18781          { ac_try='test -s conftest.$ac_objext'
18782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783   (eval $ac_try) 2>&5
18784   ac_status=$?
18785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786   (exit $ac_status); }; }; then
18787   ac_hi=$ac_mid
18788 else
18789   echo "$as_me: failed program was:" >&5
18790 sed 's/^/| /' conftest.$ac_ext >&5
18791
18792 ac_lo=`expr '(' $ac_mid ')' + 1`
18793 fi
18794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18795 done
18796 case $ac_lo in
18797 ?*) pgac_cv_alignof_int=$ac_lo;;
18798 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
18799 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
18800    { (exit 1); exit 1; }; } ;;
18801 esac
18802 else
18803   if test "$cross_compiling" = yes; then
18804   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18805 See \`config.log' for more details." >&5
18806 echo "$as_me: error: cannot run test program while cross compiling
18807 See \`config.log' for more details." >&2;}
18808    { (exit 1); exit 1; }; }
18809 else
18810   cat >conftest.$ac_ext <<_ACEOF
18811 /* confdefs.h.  */
18812 _ACEOF
18813 cat confdefs.h >>conftest.$ac_ext
18814 cat >>conftest.$ac_ext <<_ACEOF
18815 /* end confdefs.h.  */
18816 $ac_includes_default
18817 struct { char filler; int field; } pgac_struct;
18818 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18819 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18820 #include <stdio.h>
18821 #include <stdlib.h>
18822 int
18823 main ()
18824 {
18825
18826   FILE *f = fopen ("conftest.val", "w");
18827   if (! f)
18828     exit (1);
18829   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
18830     {
18831       long i = longval ();
18832       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18833         exit (1);
18834       fprintf (f, "%ld\n", i);
18835     }
18836   else
18837     {
18838       unsigned long i = ulongval ();
18839       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18840         exit (1);
18841       fprintf (f, "%lu\n", i);
18842     }
18843   exit (ferror (f) || fclose (f) != 0);
18844
18845   ;
18846   return 0;
18847 }
18848 _ACEOF
18849 rm -f conftest$ac_exeext
18850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18851   (eval $ac_link) 2>&5
18852   ac_status=$?
18853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18856   (eval $ac_try) 2>&5
18857   ac_status=$?
18858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859   (exit $ac_status); }; }; then
18860   pgac_cv_alignof_int=`cat conftest.val`
18861 else
18862   echo "$as_me: program exited with status $ac_status" >&5
18863 echo "$as_me: failed program was:" >&5
18864 sed 's/^/| /' conftest.$ac_ext >&5
18865
18866 ( exit $ac_status )
18867 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
18868 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
18869    { (exit 1); exit 1; }; }
18870 fi
18871 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18872 fi
18873 fi
18874 rm -f conftest.val
18875 else
18876   pgac_cv_alignof_int=0
18877 fi
18878 fi
18879 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
18880 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
18881 cat >>confdefs.h <<_ACEOF
18882 #define ALIGNOF_INT $pgac_cv_alignof_int
18883 _ACEOF
18884
18885
18886 echo "$as_me:$LINENO: checking for long" >&5
18887 echo $ECHO_N "checking for long... $ECHO_C" >&6
18888 if test "${ac_cv_type_long+set}" = set; then
18889   echo $ECHO_N "(cached) $ECHO_C" >&6
18890 else
18891   cat >conftest.$ac_ext <<_ACEOF
18892 /* confdefs.h.  */
18893 _ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h.  */
18897 $ac_includes_default
18898 int
18899 main ()
18900 {
18901 if ((long *) 0)
18902   return 0;
18903 if (sizeof (long))
18904   return 0;
18905   ;
18906   return 0;
18907 }
18908 _ACEOF
18909 rm -f conftest.$ac_objext
18910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18911   (eval $ac_compile) 2>conftest.er1
18912   ac_status=$?
18913   grep -v '^ *+' conftest.er1 >conftest.err
18914   rm -f conftest.er1
18915   cat conftest.err >&5
18916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917   (exit $ac_status); } &&
18918          { ac_try='test -z "$ac_c_werror_flag"
18919                          || test ! -s conftest.err'
18920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18921   (eval $ac_try) 2>&5
18922   ac_status=$?
18923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924   (exit $ac_status); }; } &&
18925          { ac_try='test -s conftest.$ac_objext'
18926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18927   (eval $ac_try) 2>&5
18928   ac_status=$?
18929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930   (exit $ac_status); }; }; then
18931   ac_cv_type_long=yes
18932 else
18933   echo "$as_me: failed program was:" >&5
18934 sed 's/^/| /' conftest.$ac_ext >&5
18935
18936 ac_cv_type_long=no
18937 fi
18938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18939 fi
18940 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18941 echo "${ECHO_T}$ac_cv_type_long" >&6
18942
18943 echo "$as_me:$LINENO: checking alignment of long" >&5
18944 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
18945 if test "${pgac_cv_alignof_long+set}" = set; then
18946   echo $ECHO_N "(cached) $ECHO_C" >&6
18947 else
18948   if test "$ac_cv_type_long" = yes; then
18949   if test "$cross_compiling" = yes; then
18950   # Depending upon the size, compute the lo and hi bounds.
18951 cat >conftest.$ac_ext <<_ACEOF
18952 /* confdefs.h.  */
18953 _ACEOF
18954 cat confdefs.h >>conftest.$ac_ext
18955 cat >>conftest.$ac_ext <<_ACEOF
18956 /* end confdefs.h.  */
18957 $ac_includes_default
18958 struct { char filler; long field; } pgac_struct;
18959 int
18960 main ()
18961 {
18962 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
18963 test_array [0] = 0
18964
18965   ;
18966   return 0;
18967 }
18968 _ACEOF
18969 rm -f conftest.$ac_objext
18970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18971   (eval $ac_compile) 2>conftest.er1
18972   ac_status=$?
18973   grep -v '^ *+' conftest.er1 >conftest.err
18974   rm -f conftest.er1
18975   cat conftest.err >&5
18976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977   (exit $ac_status); } &&
18978          { ac_try='test -z "$ac_c_werror_flag"
18979                          || test ! -s conftest.err'
18980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18981   (eval $ac_try) 2>&5
18982   ac_status=$?
18983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984   (exit $ac_status); }; } &&
18985          { ac_try='test -s conftest.$ac_objext'
18986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18987   (eval $ac_try) 2>&5
18988   ac_status=$?
18989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990   (exit $ac_status); }; }; then
18991   ac_lo=0 ac_mid=0
18992   while :; do
18993     cat >conftest.$ac_ext <<_ACEOF
18994 /* confdefs.h.  */
18995 _ACEOF
18996 cat confdefs.h >>conftest.$ac_ext
18997 cat >>conftest.$ac_ext <<_ACEOF
18998 /* end confdefs.h.  */
18999 $ac_includes_default
19000 struct { char filler; long field; } pgac_struct;
19001 int
19002 main ()
19003 {
19004 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19005 test_array [0] = 0
19006
19007   ;
19008   return 0;
19009 }
19010 _ACEOF
19011 rm -f conftest.$ac_objext
19012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19013   (eval $ac_compile) 2>conftest.er1
19014   ac_status=$?
19015   grep -v '^ *+' conftest.er1 >conftest.err
19016   rm -f conftest.er1
19017   cat conftest.err >&5
19018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019   (exit $ac_status); } &&
19020          { ac_try='test -z "$ac_c_werror_flag"
19021                          || test ! -s conftest.err'
19022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19023   (eval $ac_try) 2>&5
19024   ac_status=$?
19025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026   (exit $ac_status); }; } &&
19027          { ac_try='test -s conftest.$ac_objext'
19028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19029   (eval $ac_try) 2>&5
19030   ac_status=$?
19031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032   (exit $ac_status); }; }; then
19033   ac_hi=$ac_mid; break
19034 else
19035   echo "$as_me: failed program was:" >&5
19036 sed 's/^/| /' conftest.$ac_ext >&5
19037
19038 ac_lo=`expr $ac_mid + 1`
19039                     if test $ac_lo -le $ac_mid; then
19040                       ac_lo= ac_hi=
19041                       break
19042                     fi
19043                     ac_mid=`expr 2 '*' $ac_mid + 1`
19044 fi
19045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19046   done
19047 else
19048   echo "$as_me: failed program was:" >&5
19049 sed 's/^/| /' conftest.$ac_ext >&5
19050
19051 cat >conftest.$ac_ext <<_ACEOF
19052 /* confdefs.h.  */
19053 _ACEOF
19054 cat confdefs.h >>conftest.$ac_ext
19055 cat >>conftest.$ac_ext <<_ACEOF
19056 /* end confdefs.h.  */
19057 $ac_includes_default
19058 struct { char filler; long field; } pgac_struct;
19059 int
19060 main ()
19061 {
19062 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19063 test_array [0] = 0
19064
19065   ;
19066   return 0;
19067 }
19068 _ACEOF
19069 rm -f conftest.$ac_objext
19070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19071   (eval $ac_compile) 2>conftest.er1
19072   ac_status=$?
19073   grep -v '^ *+' conftest.er1 >conftest.err
19074   rm -f conftest.er1
19075   cat conftest.err >&5
19076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077   (exit $ac_status); } &&
19078          { ac_try='test -z "$ac_c_werror_flag"
19079                          || test ! -s conftest.err'
19080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19081   (eval $ac_try) 2>&5
19082   ac_status=$?
19083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084   (exit $ac_status); }; } &&
19085          { ac_try='test -s conftest.$ac_objext'
19086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087   (eval $ac_try) 2>&5
19088   ac_status=$?
19089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090   (exit $ac_status); }; }; then
19091   ac_hi=-1 ac_mid=-1
19092   while :; do
19093     cat >conftest.$ac_ext <<_ACEOF
19094 /* confdefs.h.  */
19095 _ACEOF
19096 cat confdefs.h >>conftest.$ac_ext
19097 cat >>conftest.$ac_ext <<_ACEOF
19098 /* end confdefs.h.  */
19099 $ac_includes_default
19100 struct { char filler; long field; } pgac_struct;
19101 int
19102 main ()
19103 {
19104 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19105 test_array [0] = 0
19106
19107   ;
19108   return 0;
19109 }
19110 _ACEOF
19111 rm -f conftest.$ac_objext
19112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19113   (eval $ac_compile) 2>conftest.er1
19114   ac_status=$?
19115   grep -v '^ *+' conftest.er1 >conftest.err
19116   rm -f conftest.er1
19117   cat conftest.err >&5
19118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119   (exit $ac_status); } &&
19120          { ac_try='test -z "$ac_c_werror_flag"
19121                          || test ! -s conftest.err'
19122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19123   (eval $ac_try) 2>&5
19124   ac_status=$?
19125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126   (exit $ac_status); }; } &&
19127          { ac_try='test -s conftest.$ac_objext'
19128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129   (eval $ac_try) 2>&5
19130   ac_status=$?
19131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132   (exit $ac_status); }; }; then
19133   ac_lo=$ac_mid; break
19134 else
19135   echo "$as_me: failed program was:" >&5
19136 sed 's/^/| /' conftest.$ac_ext >&5
19137
19138 ac_hi=`expr '(' $ac_mid ')' - 1`
19139                        if test $ac_mid -le $ac_hi; then
19140                          ac_lo= ac_hi=
19141                          break
19142                        fi
19143                        ac_mid=`expr 2 '*' $ac_mid`
19144 fi
19145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19146   done
19147 else
19148   echo "$as_me: failed program was:" >&5
19149 sed 's/^/| /' conftest.$ac_ext >&5
19150
19151 ac_lo= ac_hi=
19152 fi
19153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19154 fi
19155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19156 # Binary search between lo and hi bounds.
19157 while test "x$ac_lo" != "x$ac_hi"; do
19158   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19159   cat >conftest.$ac_ext <<_ACEOF
19160 /* confdefs.h.  */
19161 _ACEOF
19162 cat confdefs.h >>conftest.$ac_ext
19163 cat >>conftest.$ac_ext <<_ACEOF
19164 /* end confdefs.h.  */
19165 $ac_includes_default
19166 struct { char filler; long field; } pgac_struct;
19167 int
19168 main ()
19169 {
19170 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19171 test_array [0] = 0
19172
19173   ;
19174   return 0;
19175 }
19176 _ACEOF
19177 rm -f conftest.$ac_objext
19178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19179   (eval $ac_compile) 2>conftest.er1
19180   ac_status=$?
19181   grep -v '^ *+' conftest.er1 >conftest.err
19182   rm -f conftest.er1
19183   cat conftest.err >&5
19184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185   (exit $ac_status); } &&
19186          { ac_try='test -z "$ac_c_werror_flag"
19187                          || test ! -s conftest.err'
19188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19189   (eval $ac_try) 2>&5
19190   ac_status=$?
19191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192   (exit $ac_status); }; } &&
19193          { ac_try='test -s conftest.$ac_objext'
19194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195   (eval $ac_try) 2>&5
19196   ac_status=$?
19197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198   (exit $ac_status); }; }; then
19199   ac_hi=$ac_mid
19200 else
19201   echo "$as_me: failed program was:" >&5
19202 sed 's/^/| /' conftest.$ac_ext >&5
19203
19204 ac_lo=`expr '(' $ac_mid ')' + 1`
19205 fi
19206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19207 done
19208 case $ac_lo in
19209 ?*) pgac_cv_alignof_long=$ac_lo;;
19210 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
19211 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
19212    { (exit 1); exit 1; }; } ;;
19213 esac
19214 else
19215   if test "$cross_compiling" = yes; then
19216   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19217 See \`config.log' for more details." >&5
19218 echo "$as_me: error: cannot run test program while cross compiling
19219 See \`config.log' for more details." >&2;}
19220    { (exit 1); exit 1; }; }
19221 else
19222   cat >conftest.$ac_ext <<_ACEOF
19223 /* confdefs.h.  */
19224 _ACEOF
19225 cat confdefs.h >>conftest.$ac_ext
19226 cat >>conftest.$ac_ext <<_ACEOF
19227 /* end confdefs.h.  */
19228 $ac_includes_default
19229 struct { char filler; long field; } pgac_struct;
19230 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19231 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19232 #include <stdio.h>
19233 #include <stdlib.h>
19234 int
19235 main ()
19236 {
19237
19238   FILE *f = fopen ("conftest.val", "w");
19239   if (! f)
19240     exit (1);
19241   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19242     {
19243       long i = longval ();
19244       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19245         exit (1);
19246       fprintf (f, "%ld\n", i);
19247     }
19248   else
19249     {
19250       unsigned long i = ulongval ();
19251       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19252         exit (1);
19253       fprintf (f, "%lu\n", i);
19254     }
19255   exit (ferror (f) || fclose (f) != 0);
19256
19257   ;
19258   return 0;
19259 }
19260 _ACEOF
19261 rm -f conftest$ac_exeext
19262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19263   (eval $ac_link) 2>&5
19264   ac_status=$?
19265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19268   (eval $ac_try) 2>&5
19269   ac_status=$?
19270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271   (exit $ac_status); }; }; then
19272   pgac_cv_alignof_long=`cat conftest.val`
19273 else
19274   echo "$as_me: program exited with status $ac_status" >&5
19275 echo "$as_me: failed program was:" >&5
19276 sed 's/^/| /' conftest.$ac_ext >&5
19277
19278 ( exit $ac_status )
19279 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
19280 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
19281    { (exit 1); exit 1; }; }
19282 fi
19283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19284 fi
19285 fi
19286 rm -f conftest.val
19287 else
19288   pgac_cv_alignof_long=0
19289 fi
19290 fi
19291 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
19292 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
19293 cat >>confdefs.h <<_ACEOF
19294 #define ALIGNOF_LONG $pgac_cv_alignof_long
19295 _ACEOF
19296
19297
19298 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
19299   echo "$as_me:$LINENO: checking for long long int" >&5
19300 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
19301 if test "${ac_cv_type_long_long_int+set}" = set; then
19302   echo $ECHO_N "(cached) $ECHO_C" >&6
19303 else
19304   cat >conftest.$ac_ext <<_ACEOF
19305 /* confdefs.h.  */
19306 _ACEOF
19307 cat confdefs.h >>conftest.$ac_ext
19308 cat >>conftest.$ac_ext <<_ACEOF
19309 /* end confdefs.h.  */
19310 $ac_includes_default
19311 int
19312 main ()
19313 {
19314 if ((long long int *) 0)
19315   return 0;
19316 if (sizeof (long long int))
19317   return 0;
19318   ;
19319   return 0;
19320 }
19321 _ACEOF
19322 rm -f conftest.$ac_objext
19323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19324   (eval $ac_compile) 2>conftest.er1
19325   ac_status=$?
19326   grep -v '^ *+' conftest.er1 >conftest.err
19327   rm -f conftest.er1
19328   cat conftest.err >&5
19329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330   (exit $ac_status); } &&
19331          { ac_try='test -z "$ac_c_werror_flag"
19332                          || test ! -s conftest.err'
19333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334   (eval $ac_try) 2>&5
19335   ac_status=$?
19336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337   (exit $ac_status); }; } &&
19338          { ac_try='test -s conftest.$ac_objext'
19339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340   (eval $ac_try) 2>&5
19341   ac_status=$?
19342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343   (exit $ac_status); }; }; then
19344   ac_cv_type_long_long_int=yes
19345 else
19346   echo "$as_me: failed program was:" >&5
19347 sed 's/^/| /' conftest.$ac_ext >&5
19348
19349 ac_cv_type_long_long_int=no
19350 fi
19351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19352 fi
19353 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
19354 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
19355
19356 echo "$as_me:$LINENO: checking alignment of long long int" >&5
19357 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
19358 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
19359   echo $ECHO_N "(cached) $ECHO_C" >&6
19360 else
19361   if test "$ac_cv_type_long_long_int" = yes; then
19362   if test "$cross_compiling" = yes; then
19363   # Depending upon the size, compute the lo and hi bounds.
19364 cat >conftest.$ac_ext <<_ACEOF
19365 /* confdefs.h.  */
19366 _ACEOF
19367 cat confdefs.h >>conftest.$ac_ext
19368 cat >>conftest.$ac_ext <<_ACEOF
19369 /* end confdefs.h.  */
19370 $ac_includes_default
19371 struct { char filler; long long int field; } pgac_struct;
19372 int
19373 main ()
19374 {
19375 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19376 test_array [0] = 0
19377
19378   ;
19379   return 0;
19380 }
19381 _ACEOF
19382 rm -f conftest.$ac_objext
19383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19384   (eval $ac_compile) 2>conftest.er1
19385   ac_status=$?
19386   grep -v '^ *+' conftest.er1 >conftest.err
19387   rm -f conftest.er1
19388   cat conftest.err >&5
19389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390   (exit $ac_status); } &&
19391          { ac_try='test -z "$ac_c_werror_flag"
19392                          || test ! -s conftest.err'
19393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19394   (eval $ac_try) 2>&5
19395   ac_status=$?
19396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397   (exit $ac_status); }; } &&
19398          { ac_try='test -s conftest.$ac_objext'
19399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19400   (eval $ac_try) 2>&5
19401   ac_status=$?
19402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403   (exit $ac_status); }; }; then
19404   ac_lo=0 ac_mid=0
19405   while :; do
19406     cat >conftest.$ac_ext <<_ACEOF
19407 /* confdefs.h.  */
19408 _ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h.  */
19412 $ac_includes_default
19413 struct { char filler; long long int field; } pgac_struct;
19414 int
19415 main ()
19416 {
19417 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19418 test_array [0] = 0
19419
19420   ;
19421   return 0;
19422 }
19423 _ACEOF
19424 rm -f conftest.$ac_objext
19425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19426   (eval $ac_compile) 2>conftest.er1
19427   ac_status=$?
19428   grep -v '^ *+' conftest.er1 >conftest.err
19429   rm -f conftest.er1
19430   cat conftest.err >&5
19431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432   (exit $ac_status); } &&
19433          { ac_try='test -z "$ac_c_werror_flag"
19434                          || test ! -s conftest.err'
19435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19436   (eval $ac_try) 2>&5
19437   ac_status=$?
19438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439   (exit $ac_status); }; } &&
19440          { ac_try='test -s conftest.$ac_objext'
19441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442   (eval $ac_try) 2>&5
19443   ac_status=$?
19444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445   (exit $ac_status); }; }; then
19446   ac_hi=$ac_mid; break
19447 else
19448   echo "$as_me: failed program was:" >&5
19449 sed 's/^/| /' conftest.$ac_ext >&5
19450
19451 ac_lo=`expr $ac_mid + 1`
19452                     if test $ac_lo -le $ac_mid; then
19453                       ac_lo= ac_hi=
19454                       break
19455                     fi
19456                     ac_mid=`expr 2 '*' $ac_mid + 1`
19457 fi
19458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19459   done
19460 else
19461   echo "$as_me: failed program was:" >&5
19462 sed 's/^/| /' conftest.$ac_ext >&5
19463
19464 cat >conftest.$ac_ext <<_ACEOF
19465 /* confdefs.h.  */
19466 _ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h.  */
19470 $ac_includes_default
19471 struct { char filler; long long int field; } pgac_struct;
19472 int
19473 main ()
19474 {
19475 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19476 test_array [0] = 0
19477
19478   ;
19479   return 0;
19480 }
19481 _ACEOF
19482 rm -f conftest.$ac_objext
19483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19484   (eval $ac_compile) 2>conftest.er1
19485   ac_status=$?
19486   grep -v '^ *+' conftest.er1 >conftest.err
19487   rm -f conftest.er1
19488   cat conftest.err >&5
19489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490   (exit $ac_status); } &&
19491          { ac_try='test -z "$ac_c_werror_flag"
19492                          || test ! -s conftest.err'
19493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19494   (eval $ac_try) 2>&5
19495   ac_status=$?
19496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497   (exit $ac_status); }; } &&
19498          { ac_try='test -s conftest.$ac_objext'
19499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500   (eval $ac_try) 2>&5
19501   ac_status=$?
19502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503   (exit $ac_status); }; }; then
19504   ac_hi=-1 ac_mid=-1
19505   while :; do
19506     cat >conftest.$ac_ext <<_ACEOF
19507 /* confdefs.h.  */
19508 _ACEOF
19509 cat confdefs.h >>conftest.$ac_ext
19510 cat >>conftest.$ac_ext <<_ACEOF
19511 /* end confdefs.h.  */
19512 $ac_includes_default
19513 struct { char filler; long long int field; } pgac_struct;
19514 int
19515 main ()
19516 {
19517 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19518 test_array [0] = 0
19519
19520   ;
19521   return 0;
19522 }
19523 _ACEOF
19524 rm -f conftest.$ac_objext
19525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19526   (eval $ac_compile) 2>conftest.er1
19527   ac_status=$?
19528   grep -v '^ *+' conftest.er1 >conftest.err
19529   rm -f conftest.er1
19530   cat conftest.err >&5
19531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532   (exit $ac_status); } &&
19533          { ac_try='test -z "$ac_c_werror_flag"
19534                          || test ! -s conftest.err'
19535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19536   (eval $ac_try) 2>&5
19537   ac_status=$?
19538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539   (exit $ac_status); }; } &&
19540          { ac_try='test -s conftest.$ac_objext'
19541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19542   (eval $ac_try) 2>&5
19543   ac_status=$?
19544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545   (exit $ac_status); }; }; then
19546   ac_lo=$ac_mid; break
19547 else
19548   echo "$as_me: failed program was:" >&5
19549 sed 's/^/| /' conftest.$ac_ext >&5
19550
19551 ac_hi=`expr '(' $ac_mid ')' - 1`
19552                        if test $ac_mid -le $ac_hi; then
19553                          ac_lo= ac_hi=
19554                          break
19555                        fi
19556                        ac_mid=`expr 2 '*' $ac_mid`
19557 fi
19558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19559   done
19560 else
19561   echo "$as_me: failed program was:" >&5
19562 sed 's/^/| /' conftest.$ac_ext >&5
19563
19564 ac_lo= ac_hi=
19565 fi
19566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19567 fi
19568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19569 # Binary search between lo and hi bounds.
19570 while test "x$ac_lo" != "x$ac_hi"; do
19571   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19572   cat >conftest.$ac_ext <<_ACEOF
19573 /* confdefs.h.  */
19574 _ACEOF
19575 cat confdefs.h >>conftest.$ac_ext
19576 cat >>conftest.$ac_ext <<_ACEOF
19577 /* end confdefs.h.  */
19578 $ac_includes_default
19579 struct { char filler; long long int field; } pgac_struct;
19580 int
19581 main ()
19582 {
19583 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19584 test_array [0] = 0
19585
19586   ;
19587   return 0;
19588 }
19589 _ACEOF
19590 rm -f conftest.$ac_objext
19591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19592   (eval $ac_compile) 2>conftest.er1
19593   ac_status=$?
19594   grep -v '^ *+' conftest.er1 >conftest.err
19595   rm -f conftest.er1
19596   cat conftest.err >&5
19597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598   (exit $ac_status); } &&
19599          { ac_try='test -z "$ac_c_werror_flag"
19600                          || test ! -s conftest.err'
19601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19602   (eval $ac_try) 2>&5
19603   ac_status=$?
19604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605   (exit $ac_status); }; } &&
19606          { ac_try='test -s conftest.$ac_objext'
19607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19608   (eval $ac_try) 2>&5
19609   ac_status=$?
19610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611   (exit $ac_status); }; }; then
19612   ac_hi=$ac_mid
19613 else
19614   echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19616
19617 ac_lo=`expr '(' $ac_mid ')' + 1`
19618 fi
19619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19620 done
19621 case $ac_lo in
19622 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
19623 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
19624 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
19625    { (exit 1); exit 1; }; } ;;
19626 esac
19627 else
19628   if test "$cross_compiling" = yes; then
19629   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19630 See \`config.log' for more details." >&5
19631 echo "$as_me: error: cannot run test program while cross compiling
19632 See \`config.log' for more details." >&2;}
19633    { (exit 1); exit 1; }; }
19634 else
19635   cat >conftest.$ac_ext <<_ACEOF
19636 /* confdefs.h.  */
19637 _ACEOF
19638 cat confdefs.h >>conftest.$ac_ext
19639 cat >>conftest.$ac_ext <<_ACEOF
19640 /* end confdefs.h.  */
19641 $ac_includes_default
19642 struct { char filler; long long int field; } pgac_struct;
19643 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19644 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19645 #include <stdio.h>
19646 #include <stdlib.h>
19647 int
19648 main ()
19649 {
19650
19651   FILE *f = fopen ("conftest.val", "w");
19652   if (! f)
19653     exit (1);
19654   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19655     {
19656       long i = longval ();
19657       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19658         exit (1);
19659       fprintf (f, "%ld\n", i);
19660     }
19661   else
19662     {
19663       unsigned long i = ulongval ();
19664       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19665         exit (1);
19666       fprintf (f, "%lu\n", i);
19667     }
19668   exit (ferror (f) || fclose (f) != 0);
19669
19670   ;
19671   return 0;
19672 }
19673 _ACEOF
19674 rm -f conftest$ac_exeext
19675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19676   (eval $ac_link) 2>&5
19677   ac_status=$?
19678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19681   (eval $ac_try) 2>&5
19682   ac_status=$?
19683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684   (exit $ac_status); }; }; then
19685   pgac_cv_alignof_long_long_int=`cat conftest.val`
19686 else
19687   echo "$as_me: program exited with status $ac_status" >&5
19688 echo "$as_me: failed program was:" >&5
19689 sed 's/^/| /' conftest.$ac_ext >&5
19690
19691 ( exit $ac_status )
19692 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
19693 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
19694    { (exit 1); exit 1; }; }
19695 fi
19696 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19697 fi
19698 fi
19699 rm -f conftest.val
19700 else
19701   pgac_cv_alignof_long_long_int=0
19702 fi
19703 fi
19704 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
19705 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
19706 cat >>confdefs.h <<_ACEOF
19707 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
19708 _ACEOF
19709
19710
19711 fi
19712 echo "$as_me:$LINENO: checking for double" >&5
19713 echo $ECHO_N "checking for double... $ECHO_C" >&6
19714 if test "${ac_cv_type_double+set}" = set; then
19715   echo $ECHO_N "(cached) $ECHO_C" >&6
19716 else
19717   cat >conftest.$ac_ext <<_ACEOF
19718 /* confdefs.h.  */
19719 _ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h.  */
19723 $ac_includes_default
19724 int
19725 main ()
19726 {
19727 if ((double *) 0)
19728   return 0;
19729 if (sizeof (double))
19730   return 0;
19731   ;
19732   return 0;
19733 }
19734 _ACEOF
19735 rm -f conftest.$ac_objext
19736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19737   (eval $ac_compile) 2>conftest.er1
19738   ac_status=$?
19739   grep -v '^ *+' conftest.er1 >conftest.err
19740   rm -f conftest.er1
19741   cat conftest.err >&5
19742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743   (exit $ac_status); } &&
19744          { ac_try='test -z "$ac_c_werror_flag"
19745                          || test ! -s conftest.err'
19746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747   (eval $ac_try) 2>&5
19748   ac_status=$?
19749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750   (exit $ac_status); }; } &&
19751          { ac_try='test -s conftest.$ac_objext'
19752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19753   (eval $ac_try) 2>&5
19754   ac_status=$?
19755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756   (exit $ac_status); }; }; then
19757   ac_cv_type_double=yes
19758 else
19759   echo "$as_me: failed program was:" >&5
19760 sed 's/^/| /' conftest.$ac_ext >&5
19761
19762 ac_cv_type_double=no
19763 fi
19764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19765 fi
19766 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
19767 echo "${ECHO_T}$ac_cv_type_double" >&6
19768
19769 echo "$as_me:$LINENO: checking alignment of double" >&5
19770 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
19771 if test "${pgac_cv_alignof_double+set}" = set; then
19772   echo $ECHO_N "(cached) $ECHO_C" >&6
19773 else
19774   if test "$ac_cv_type_double" = yes; then
19775   if test "$cross_compiling" = yes; then
19776   # Depending upon the size, compute the lo and hi bounds.
19777 cat >conftest.$ac_ext <<_ACEOF
19778 /* confdefs.h.  */
19779 _ACEOF
19780 cat confdefs.h >>conftest.$ac_ext
19781 cat >>conftest.$ac_ext <<_ACEOF
19782 /* end confdefs.h.  */
19783 $ac_includes_default
19784 struct { char filler; double field; } pgac_struct;
19785 int
19786 main ()
19787 {
19788 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19789 test_array [0] = 0
19790
19791   ;
19792   return 0;
19793 }
19794 _ACEOF
19795 rm -f conftest.$ac_objext
19796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19797   (eval $ac_compile) 2>conftest.er1
19798   ac_status=$?
19799   grep -v '^ *+' conftest.er1 >conftest.err
19800   rm -f conftest.er1
19801   cat conftest.err >&5
19802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803   (exit $ac_status); } &&
19804          { ac_try='test -z "$ac_c_werror_flag"
19805                          || test ! -s conftest.err'
19806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807   (eval $ac_try) 2>&5
19808   ac_status=$?
19809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810   (exit $ac_status); }; } &&
19811          { ac_try='test -s conftest.$ac_objext'
19812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19813   (eval $ac_try) 2>&5
19814   ac_status=$?
19815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816   (exit $ac_status); }; }; then
19817   ac_lo=0 ac_mid=0
19818   while :; do
19819     cat >conftest.$ac_ext <<_ACEOF
19820 /* confdefs.h.  */
19821 _ACEOF
19822 cat confdefs.h >>conftest.$ac_ext
19823 cat >>conftest.$ac_ext <<_ACEOF
19824 /* end confdefs.h.  */
19825 $ac_includes_default
19826 struct { char filler; double field; } pgac_struct;
19827 int
19828 main ()
19829 {
19830 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19831 test_array [0] = 0
19832
19833   ;
19834   return 0;
19835 }
19836 _ACEOF
19837 rm -f conftest.$ac_objext
19838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19839   (eval $ac_compile) 2>conftest.er1
19840   ac_status=$?
19841   grep -v '^ *+' conftest.er1 >conftest.err
19842   rm -f conftest.er1
19843   cat conftest.err >&5
19844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845   (exit $ac_status); } &&
19846          { ac_try='test -z "$ac_c_werror_flag"
19847                          || test ! -s conftest.err'
19848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849   (eval $ac_try) 2>&5
19850   ac_status=$?
19851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852   (exit $ac_status); }; } &&
19853          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19859   ac_hi=$ac_mid; break
19860 else
19861   echo "$as_me: failed program was:" >&5
19862 sed 's/^/| /' conftest.$ac_ext >&5
19863
19864 ac_lo=`expr $ac_mid + 1`
19865                     if test $ac_lo -le $ac_mid; then
19866                       ac_lo= ac_hi=
19867                       break
19868                     fi
19869                     ac_mid=`expr 2 '*' $ac_mid + 1`
19870 fi
19871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19872   done
19873 else
19874   echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19876
19877 cat >conftest.$ac_ext <<_ACEOF
19878 /* confdefs.h.  */
19879 _ACEOF
19880 cat confdefs.h >>conftest.$ac_ext
19881 cat >>conftest.$ac_ext <<_ACEOF
19882 /* end confdefs.h.  */
19883 $ac_includes_default
19884 struct { char filler; double field; } pgac_struct;
19885 int
19886 main ()
19887 {
19888 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19889 test_array [0] = 0
19890
19891   ;
19892   return 0;
19893 }
19894 _ACEOF
19895 rm -f conftest.$ac_objext
19896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19897   (eval $ac_compile) 2>conftest.er1
19898   ac_status=$?
19899   grep -v '^ *+' conftest.er1 >conftest.err
19900   rm -f conftest.er1
19901   cat conftest.err >&5
19902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903   (exit $ac_status); } &&
19904          { ac_try='test -z "$ac_c_werror_flag"
19905                          || test ! -s conftest.err'
19906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19907   (eval $ac_try) 2>&5
19908   ac_status=$?
19909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910   (exit $ac_status); }; } &&
19911          { ac_try='test -s conftest.$ac_objext'
19912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19913   (eval $ac_try) 2>&5
19914   ac_status=$?
19915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916   (exit $ac_status); }; }; then
19917   ac_hi=-1 ac_mid=-1
19918   while :; do
19919     cat >conftest.$ac_ext <<_ACEOF
19920 /* confdefs.h.  */
19921 _ACEOF
19922 cat confdefs.h >>conftest.$ac_ext
19923 cat >>conftest.$ac_ext <<_ACEOF
19924 /* end confdefs.h.  */
19925 $ac_includes_default
19926 struct { char filler; double field; } pgac_struct;
19927 int
19928 main ()
19929 {
19930 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19931 test_array [0] = 0
19932
19933   ;
19934   return 0;
19935 }
19936 _ACEOF
19937 rm -f conftest.$ac_objext
19938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19939   (eval $ac_compile) 2>conftest.er1
19940   ac_status=$?
19941   grep -v '^ *+' conftest.er1 >conftest.err
19942   rm -f conftest.er1
19943   cat conftest.err >&5
19944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945   (exit $ac_status); } &&
19946          { ac_try='test -z "$ac_c_werror_flag"
19947                          || test ! -s conftest.err'
19948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19949   (eval $ac_try) 2>&5
19950   ac_status=$?
19951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952   (exit $ac_status); }; } &&
19953          { ac_try='test -s conftest.$ac_objext'
19954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19955   (eval $ac_try) 2>&5
19956   ac_status=$?
19957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958   (exit $ac_status); }; }; then
19959   ac_lo=$ac_mid; break
19960 else
19961   echo "$as_me: failed program was:" >&5
19962 sed 's/^/| /' conftest.$ac_ext >&5
19963
19964 ac_hi=`expr '(' $ac_mid ')' - 1`
19965                        if test $ac_mid -le $ac_hi; then
19966                          ac_lo= ac_hi=
19967                          break
19968                        fi
19969                        ac_mid=`expr 2 '*' $ac_mid`
19970 fi
19971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19972   done
19973 else
19974   echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.$ac_ext >&5
19976
19977 ac_lo= ac_hi=
19978 fi
19979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19980 fi
19981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19982 # Binary search between lo and hi bounds.
19983 while test "x$ac_lo" != "x$ac_hi"; do
19984   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19985   cat >conftest.$ac_ext <<_ACEOF
19986 /* confdefs.h.  */
19987 _ACEOF
19988 cat confdefs.h >>conftest.$ac_ext
19989 cat >>conftest.$ac_ext <<_ACEOF
19990 /* end confdefs.h.  */
19991 $ac_includes_default
19992 struct { char filler; double field; } pgac_struct;
19993 int
19994 main ()
19995 {
19996 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19997 test_array [0] = 0
19998
19999   ;
20000   return 0;
20001 }
20002 _ACEOF
20003 rm -f conftest.$ac_objext
20004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20005   (eval $ac_compile) 2>conftest.er1
20006   ac_status=$?
20007   grep -v '^ *+' conftest.er1 >conftest.err
20008   rm -f conftest.er1
20009   cat conftest.err >&5
20010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011   (exit $ac_status); } &&
20012          { ac_try='test -z "$ac_c_werror_flag"
20013                          || test ! -s conftest.err'
20014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20015   (eval $ac_try) 2>&5
20016   ac_status=$?
20017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018   (exit $ac_status); }; } &&
20019          { ac_try='test -s conftest.$ac_objext'
20020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021   (eval $ac_try) 2>&5
20022   ac_status=$?
20023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024   (exit $ac_status); }; }; then
20025   ac_hi=$ac_mid
20026 else
20027   echo "$as_me: failed program was:" >&5
20028 sed 's/^/| /' conftest.$ac_ext >&5
20029
20030 ac_lo=`expr '(' $ac_mid ')' + 1`
20031 fi
20032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20033 done
20034 case $ac_lo in
20035 ?*) pgac_cv_alignof_double=$ac_lo;;
20036 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
20037 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
20038    { (exit 1); exit 1; }; } ;;
20039 esac
20040 else
20041   if test "$cross_compiling" = yes; then
20042   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20043 See \`config.log' for more details." >&5
20044 echo "$as_me: error: cannot run test program while cross compiling
20045 See \`config.log' for more details." >&2;}
20046    { (exit 1); exit 1; }; }
20047 else
20048   cat >conftest.$ac_ext <<_ACEOF
20049 /* confdefs.h.  */
20050 _ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h.  */
20054 $ac_includes_default
20055 struct { char filler; double field; } pgac_struct;
20056 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20057 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20058 #include <stdio.h>
20059 #include <stdlib.h>
20060 int
20061 main ()
20062 {
20063
20064   FILE *f = fopen ("conftest.val", "w");
20065   if (! f)
20066     exit (1);
20067   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20068     {
20069       long i = longval ();
20070       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20071         exit (1);
20072       fprintf (f, "%ld\n", i);
20073     }
20074   else
20075     {
20076       unsigned long i = ulongval ();
20077       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20078         exit (1);
20079       fprintf (f, "%lu\n", i);
20080     }
20081   exit (ferror (f) || fclose (f) != 0);
20082
20083   ;
20084   return 0;
20085 }
20086 _ACEOF
20087 rm -f conftest$ac_exeext
20088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20089   (eval $ac_link) 2>&5
20090   ac_status=$?
20091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20094   (eval $ac_try) 2>&5
20095   ac_status=$?
20096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097   (exit $ac_status); }; }; then
20098   pgac_cv_alignof_double=`cat conftest.val`
20099 else
20100   echo "$as_me: program exited with status $ac_status" >&5
20101 echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.$ac_ext >&5
20103
20104 ( exit $ac_status )
20105 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
20106 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
20107    { (exit 1); exit 1; }; }
20108 fi
20109 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20110 fi
20111 fi
20112 rm -f conftest.val
20113 else
20114   pgac_cv_alignof_double=0
20115 fi
20116 fi
20117 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
20118 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
20119 cat >>confdefs.h <<_ACEOF
20120 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
20121 _ACEOF
20122
20123
20124
20125 # Compute maximum alignment of any basic type.
20126 # We assume long's alignment is at least as strong as char, short, or int;
20127 # but we must check long long (if it exists) and double.
20128
20129 MAX_ALIGNOF=$pgac_cv_alignof_long
20130 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
20131   MAX_ALIGNOF=$pgac_cv_alignof_double
20132 fi
20133 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
20134   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
20135 fi
20136
20137 cat >>confdefs.h <<_ACEOF
20138 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
20139 _ACEOF
20140
20141
20142
20143 # Some platforms predefine the types int8, int16, etc.  Only check
20144 # a (hopefully) representative subset.
20145 echo "$as_me:$LINENO: checking for int8" >&5
20146 echo $ECHO_N "checking for int8... $ECHO_C" >&6
20147 if test "${ac_cv_type_int8+set}" = set; then
20148   echo $ECHO_N "(cached) $ECHO_C" >&6
20149 else
20150   cat >conftest.$ac_ext <<_ACEOF
20151 /* confdefs.h.  */
20152 _ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h.  */
20156 #include <stdio.h>
20157 #ifdef HAVE_SUPPORTDEFS_H
20158 #include <SupportDefs.h>
20159 #endif
20160
20161 int
20162 main ()
20163 {
20164 if ((int8 *) 0)
20165   return 0;
20166 if (sizeof (int8))
20167   return 0;
20168   ;
20169   return 0;
20170 }
20171 _ACEOF
20172 rm -f conftest.$ac_objext
20173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20174   (eval $ac_compile) 2>conftest.er1
20175   ac_status=$?
20176   grep -v '^ *+' conftest.er1 >conftest.err
20177   rm -f conftest.er1
20178   cat conftest.err >&5
20179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180   (exit $ac_status); } &&
20181          { ac_try='test -z "$ac_c_werror_flag"
20182                          || test ! -s conftest.err'
20183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184   (eval $ac_try) 2>&5
20185   ac_status=$?
20186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187   (exit $ac_status); }; } &&
20188          { ac_try='test -s conftest.$ac_objext'
20189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190   (eval $ac_try) 2>&5
20191   ac_status=$?
20192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193   (exit $ac_status); }; }; then
20194   ac_cv_type_int8=yes
20195 else
20196   echo "$as_me: failed program was:" >&5
20197 sed 's/^/| /' conftest.$ac_ext >&5
20198
20199 ac_cv_type_int8=no
20200 fi
20201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20202 fi
20203 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
20204 echo "${ECHO_T}$ac_cv_type_int8" >&6
20205 if test $ac_cv_type_int8 = yes; then
20206
20207 cat >>confdefs.h <<_ACEOF
20208 #define HAVE_INT8 1
20209 _ACEOF
20210
20211
20212 fi
20213 echo "$as_me:$LINENO: checking for uint8" >&5
20214 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
20215 if test "${ac_cv_type_uint8+set}" = set; then
20216   echo $ECHO_N "(cached) $ECHO_C" >&6
20217 else
20218   cat >conftest.$ac_ext <<_ACEOF
20219 /* confdefs.h.  */
20220 _ACEOF
20221 cat confdefs.h >>conftest.$ac_ext
20222 cat >>conftest.$ac_ext <<_ACEOF
20223 /* end confdefs.h.  */
20224 #include <stdio.h>
20225 #ifdef HAVE_SUPPORTDEFS_H
20226 #include <SupportDefs.h>
20227 #endif
20228
20229 int
20230 main ()
20231 {
20232 if ((uint8 *) 0)
20233   return 0;
20234 if (sizeof (uint8))
20235   return 0;
20236   ;
20237   return 0;
20238 }
20239 _ACEOF
20240 rm -f conftest.$ac_objext
20241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20242   (eval $ac_compile) 2>conftest.er1
20243   ac_status=$?
20244   grep -v '^ *+' conftest.er1 >conftest.err
20245   rm -f conftest.er1
20246   cat conftest.err >&5
20247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248   (exit $ac_status); } &&
20249          { ac_try='test -z "$ac_c_werror_flag"
20250                          || test ! -s conftest.err'
20251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20252   (eval $ac_try) 2>&5
20253   ac_status=$?
20254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255   (exit $ac_status); }; } &&
20256          { ac_try='test -s conftest.$ac_objext'
20257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258   (eval $ac_try) 2>&5
20259   ac_status=$?
20260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261   (exit $ac_status); }; }; then
20262   ac_cv_type_uint8=yes
20263 else
20264   echo "$as_me: failed program was:" >&5
20265 sed 's/^/| /' conftest.$ac_ext >&5
20266
20267 ac_cv_type_uint8=no
20268 fi
20269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20270 fi
20271 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
20272 echo "${ECHO_T}$ac_cv_type_uint8" >&6
20273 if test $ac_cv_type_uint8 = yes; then
20274
20275 cat >>confdefs.h <<_ACEOF
20276 #define HAVE_UINT8 1
20277 _ACEOF
20278
20279
20280 fi
20281 echo "$as_me:$LINENO: checking for int64" >&5
20282 echo $ECHO_N "checking for int64... $ECHO_C" >&6
20283 if test "${ac_cv_type_int64+set}" = set; then
20284   echo $ECHO_N "(cached) $ECHO_C" >&6
20285 else
20286   cat >conftest.$ac_ext <<_ACEOF
20287 /* confdefs.h.  */
20288 _ACEOF
20289 cat confdefs.h >>conftest.$ac_ext
20290 cat >>conftest.$ac_ext <<_ACEOF
20291 /* end confdefs.h.  */
20292 #include <stdio.h>
20293 #ifdef HAVE_SUPPORTDEFS_H
20294 #include <SupportDefs.h>
20295 #endif
20296
20297 int
20298 main ()
20299 {
20300 if ((int64 *) 0)
20301   return 0;
20302 if (sizeof (int64))
20303   return 0;
20304   ;
20305   return 0;
20306 }
20307 _ACEOF
20308 rm -f conftest.$ac_objext
20309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20310   (eval $ac_compile) 2>conftest.er1
20311   ac_status=$?
20312   grep -v '^ *+' conftest.er1 >conftest.err
20313   rm -f conftest.er1
20314   cat conftest.err >&5
20315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316   (exit $ac_status); } &&
20317          { ac_try='test -z "$ac_c_werror_flag"
20318                          || test ! -s conftest.err'
20319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20320   (eval $ac_try) 2>&5
20321   ac_status=$?
20322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323   (exit $ac_status); }; } &&
20324          { ac_try='test -s conftest.$ac_objext'
20325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20326   (eval $ac_try) 2>&5
20327   ac_status=$?
20328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329   (exit $ac_status); }; }; then
20330   ac_cv_type_int64=yes
20331 else
20332   echo "$as_me: failed program was:" >&5
20333 sed 's/^/| /' conftest.$ac_ext >&5
20334
20335 ac_cv_type_int64=no
20336 fi
20337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20338 fi
20339 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
20340 echo "${ECHO_T}$ac_cv_type_int64" >&6
20341 if test $ac_cv_type_int64 = yes; then
20342
20343 cat >>confdefs.h <<_ACEOF
20344 #define HAVE_INT64 1
20345 _ACEOF
20346
20347
20348 fi
20349 echo "$as_me:$LINENO: checking for uint64" >&5
20350 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
20351 if test "${ac_cv_type_uint64+set}" = set; then
20352   echo $ECHO_N "(cached) $ECHO_C" >&6
20353 else
20354   cat >conftest.$ac_ext <<_ACEOF
20355 /* confdefs.h.  */
20356 _ACEOF
20357 cat confdefs.h >>conftest.$ac_ext
20358 cat >>conftest.$ac_ext <<_ACEOF
20359 /* end confdefs.h.  */
20360 #include <stdio.h>
20361 #ifdef HAVE_SUPPORTDEFS_H
20362 #include <SupportDefs.h>
20363 #endif
20364
20365 int
20366 main ()
20367 {
20368 if ((uint64 *) 0)
20369   return 0;
20370 if (sizeof (uint64))
20371   return 0;
20372   ;
20373   return 0;
20374 }
20375 _ACEOF
20376 rm -f conftest.$ac_objext
20377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20378   (eval $ac_compile) 2>conftest.er1
20379   ac_status=$?
20380   grep -v '^ *+' conftest.er1 >conftest.err
20381   rm -f conftest.er1
20382   cat conftest.err >&5
20383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384   (exit $ac_status); } &&
20385          { ac_try='test -z "$ac_c_werror_flag"
20386                          || test ! -s conftest.err'
20387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20388   (eval $ac_try) 2>&5
20389   ac_status=$?
20390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391   (exit $ac_status); }; } &&
20392          { ac_try='test -s conftest.$ac_objext'
20393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20394   (eval $ac_try) 2>&5
20395   ac_status=$?
20396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397   (exit $ac_status); }; }; then
20398   ac_cv_type_uint64=yes
20399 else
20400   echo "$as_me: failed program was:" >&5
20401 sed 's/^/| /' conftest.$ac_ext >&5
20402
20403 ac_cv_type_uint64=no
20404 fi
20405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20406 fi
20407 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
20408 echo "${ECHO_T}$ac_cv_type_uint64" >&6
20409 if test $ac_cv_type_uint64 = yes; then
20410
20411 cat >>confdefs.h <<_ACEOF
20412 #define HAVE_UINT64 1
20413 _ACEOF
20414
20415
20416 fi
20417
20418
20419 # We also check for sig_atomic_t, which *should* be defined per ANSI
20420 # C, but is missing on some old platforms.
20421 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
20422 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
20423 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
20424   echo $ECHO_N "(cached) $ECHO_C" >&6
20425 else
20426   cat >conftest.$ac_ext <<_ACEOF
20427 /* confdefs.h.  */
20428 _ACEOF
20429 cat confdefs.h >>conftest.$ac_ext
20430 cat >>conftest.$ac_ext <<_ACEOF
20431 /* end confdefs.h.  */
20432 #include <signal.h>
20433
20434 int
20435 main ()
20436 {
20437 if ((sig_atomic_t *) 0)
20438   return 0;
20439 if (sizeof (sig_atomic_t))
20440   return 0;
20441   ;
20442   return 0;
20443 }
20444 _ACEOF
20445 rm -f conftest.$ac_objext
20446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20447   (eval $ac_compile) 2>conftest.er1
20448   ac_status=$?
20449   grep -v '^ *+' conftest.er1 >conftest.err
20450   rm -f conftest.er1
20451   cat conftest.err >&5
20452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453   (exit $ac_status); } &&
20454          { ac_try='test -z "$ac_c_werror_flag"
20455                          || test ! -s conftest.err'
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); }; } &&
20461          { ac_try='test -s conftest.$ac_objext'
20462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20463   (eval $ac_try) 2>&5
20464   ac_status=$?
20465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466   (exit $ac_status); }; }; then
20467   ac_cv_type_sig_atomic_t=yes
20468 else
20469   echo "$as_me: failed program was:" >&5
20470 sed 's/^/| /' conftest.$ac_ext >&5
20471
20472 ac_cv_type_sig_atomic_t=no
20473 fi
20474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20475 fi
20476 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
20477 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
20478 if test $ac_cv_type_sig_atomic_t = yes; then
20479
20480 cat >>confdefs.h <<_ACEOF
20481 #define HAVE_SIG_ATOMIC_T 1
20482 _ACEOF
20483
20484
20485 fi
20486
20487
20488
20489 if test x"$template" != x"win32"
20490 then
20491 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
20492 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
20493 if test "${pgac_cv_func_posix_signals+set}" = set; then
20494   echo $ECHO_N "(cached) $ECHO_C" >&6
20495 else
20496   cat >conftest.$ac_ext <<_ACEOF
20497 /* confdefs.h.  */
20498 _ACEOF
20499 cat confdefs.h >>conftest.$ac_ext
20500 cat >>conftest.$ac_ext <<_ACEOF
20501 /* end confdefs.h.  */
20502 #include <signal.h>
20503
20504 int
20505 main ()
20506 {
20507 struct sigaction act, oact;
20508 sigemptyset(&act.sa_mask);
20509 act.sa_flags = SA_RESTART;
20510 sigaction(0, &act, &oact);
20511   ;
20512   return 0;
20513 }
20514 _ACEOF
20515 rm -f conftest.$ac_objext conftest$ac_exeext
20516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20517   (eval $ac_link) 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_exeext'
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   pgac_cv_func_posix_signals=yes
20538 else
20539   echo "$as_me: failed program was:" >&5
20540 sed 's/^/| /' conftest.$ac_ext >&5
20541
20542 pgac_cv_func_posix_signals=no
20543 fi
20544 rm -f conftest.err conftest.$ac_objext \
20545       conftest$ac_exeext conftest.$ac_ext
20546 fi
20547 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
20548 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
20549 if test x"$pgac_cv_func_posix_signals" = xyes ; then
20550
20551 cat >>confdefs.h <<\_ACEOF
20552 #define HAVE_POSIX_SIGNALS
20553 _ACEOF
20554
20555 fi
20556 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
20557
20558 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
20559   { { echo "$as_me:$LINENO: error:
20560 *** Thread-safety requires POSIX signals, which are not supported by your
20561 *** operating system.
20562 " >&5
20563 echo "$as_me: error:
20564 *** Thread-safety requires POSIX signals, which are not supported by your
20565 *** operating system.
20566 " >&2;}
20567    { (exit 1); exit 1; }; }
20568 fi
20569 fi
20570
20571 if test $ac_cv_func_fseeko = yes; then
20572 # Check whether --enable-largefile or --disable-largefile was given.
20573 if test "${enable_largefile+set}" = set; then
20574   enableval="$enable_largefile"
20575
20576 fi;
20577 if test "$enable_largefile" != no; then
20578
20579   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
20580 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
20581 if test "${ac_cv_sys_largefile_CC+set}" = set; then
20582   echo $ECHO_N "(cached) $ECHO_C" >&6
20583 else
20584   ac_cv_sys_largefile_CC=no
20585      if test "$GCC" != yes; then
20586        ac_save_CC=$CC
20587        while :; do
20588          # IRIX 6.2 and later do not support large files by default,
20589          # so use the C compiler's -n32 option if that helps.
20590          cat >conftest.$ac_ext <<_ACEOF
20591 /* confdefs.h.  */
20592 _ACEOF
20593 cat confdefs.h >>conftest.$ac_ext
20594 cat >>conftest.$ac_ext <<_ACEOF
20595 /* end confdefs.h.  */
20596 #include <sys/types.h>
20597  /* Check that off_t can represent 2**63 - 1 correctly.
20598     We can't simply define LARGE_OFF_T to be 9223372036854775807,
20599     since some C++ compilers masquerading as C compilers
20600     incorrectly reject 9223372036854775807.  */
20601 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20602   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20603                        && LARGE_OFF_T % 2147483647 == 1)
20604                       ? 1 : -1];
20605 int
20606 main ()
20607 {
20608
20609   ;
20610   return 0;
20611 }
20612 _ACEOF
20613          rm -f conftest.$ac_objext
20614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20615   (eval $ac_compile) 2>conftest.er1
20616   ac_status=$?
20617   grep -v '^ *+' conftest.er1 >conftest.err
20618   rm -f conftest.er1
20619   cat conftest.err >&5
20620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621   (exit $ac_status); } &&
20622          { ac_try='test -z "$ac_c_werror_flag"
20623                          || test ! -s conftest.err'
20624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20625   (eval $ac_try) 2>&5
20626   ac_status=$?
20627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628   (exit $ac_status); }; } &&
20629          { ac_try='test -s conftest.$ac_objext'
20630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20631   (eval $ac_try) 2>&5
20632   ac_status=$?
20633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634   (exit $ac_status); }; }; then
20635   break
20636 else
20637   echo "$as_me: failed program was:" >&5
20638 sed 's/^/| /' conftest.$ac_ext >&5
20639
20640 fi
20641 rm -f conftest.err conftest.$ac_objext
20642          CC="$CC -n32"
20643          rm -f conftest.$ac_objext
20644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20645   (eval $ac_compile) 2>conftest.er1
20646   ac_status=$?
20647   grep -v '^ *+' conftest.er1 >conftest.err
20648   rm -f conftest.er1
20649   cat conftest.err >&5
20650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651   (exit $ac_status); } &&
20652          { ac_try='test -z "$ac_c_werror_flag"
20653                          || test ! -s conftest.err'
20654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20655   (eval $ac_try) 2>&5
20656   ac_status=$?
20657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658   (exit $ac_status); }; } &&
20659          { ac_try='test -s conftest.$ac_objext'
20660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20661   (eval $ac_try) 2>&5
20662   ac_status=$?
20663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664   (exit $ac_status); }; }; then
20665   ac_cv_sys_largefile_CC=' -n32'; break
20666 else
20667   echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20669
20670 fi
20671 rm -f conftest.err conftest.$ac_objext
20672          break
20673        done
20674        CC=$ac_save_CC
20675        rm -f conftest.$ac_ext
20676     fi
20677 fi
20678 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
20679 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
20680   if test "$ac_cv_sys_largefile_CC" != no; then
20681     CC=$CC$ac_cv_sys_largefile_CC
20682   fi
20683
20684   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20685 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
20686 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
20687   echo $ECHO_N "(cached) $ECHO_C" >&6
20688 else
20689   while :; do
20690   ac_cv_sys_file_offset_bits=no
20691   cat >conftest.$ac_ext <<_ACEOF
20692 /* confdefs.h.  */
20693 _ACEOF
20694 cat confdefs.h >>conftest.$ac_ext
20695 cat >>conftest.$ac_ext <<_ACEOF
20696 /* end confdefs.h.  */
20697 #include <sys/types.h>
20698  /* Check that off_t can represent 2**63 - 1 correctly.
20699     We can't simply define LARGE_OFF_T to be 9223372036854775807,
20700     since some C++ compilers masquerading as C compilers
20701     incorrectly reject 9223372036854775807.  */
20702 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20703   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20704                        && LARGE_OFF_T % 2147483647 == 1)
20705                       ? 1 : -1];
20706 int
20707 main ()
20708 {
20709
20710   ;
20711   return 0;
20712 }
20713 _ACEOF
20714 rm -f conftest.$ac_objext
20715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20716   (eval $ac_compile) 2>conftest.er1
20717   ac_status=$?
20718   grep -v '^ *+' conftest.er1 >conftest.err
20719   rm -f conftest.er1
20720   cat conftest.err >&5
20721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722   (exit $ac_status); } &&
20723          { ac_try='test -z "$ac_c_werror_flag"
20724                          || test ! -s conftest.err'
20725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20726   (eval $ac_try) 2>&5
20727   ac_status=$?
20728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729   (exit $ac_status); }; } &&
20730          { ac_try='test -s conftest.$ac_objext'
20731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20732   (eval $ac_try) 2>&5
20733   ac_status=$?
20734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735   (exit $ac_status); }; }; then
20736   break
20737 else
20738   echo "$as_me: failed program was:" >&5
20739 sed 's/^/| /' conftest.$ac_ext >&5
20740
20741 fi
20742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20743   cat >conftest.$ac_ext <<_ACEOF
20744 /* confdefs.h.  */
20745 _ACEOF
20746 cat confdefs.h >>conftest.$ac_ext
20747 cat >>conftest.$ac_ext <<_ACEOF
20748 /* end confdefs.h.  */
20749 #define _FILE_OFFSET_BITS 64
20750 #include <sys/types.h>
20751  /* Check that off_t can represent 2**63 - 1 correctly.
20752     We can't simply define LARGE_OFF_T to be 9223372036854775807,
20753     since some C++ compilers masquerading as C compilers
20754     incorrectly reject 9223372036854775807.  */
20755 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20756   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20757                        && LARGE_OFF_T % 2147483647 == 1)
20758                       ? 1 : -1];
20759 int
20760 main ()
20761 {
20762
20763   ;
20764   return 0;
20765 }
20766 _ACEOF
20767 rm -f conftest.$ac_objext
20768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20769   (eval $ac_compile) 2>conftest.er1
20770   ac_status=$?
20771   grep -v '^ *+' conftest.er1 >conftest.err
20772   rm -f conftest.er1
20773   cat conftest.err >&5
20774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775   (exit $ac_status); } &&
20776          { ac_try='test -z "$ac_c_werror_flag"
20777                          || test ! -s conftest.err'
20778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20779   (eval $ac_try) 2>&5
20780   ac_status=$?
20781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782   (exit $ac_status); }; } &&
20783          { ac_try='test -s conftest.$ac_objext'
20784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20785   (eval $ac_try) 2>&5
20786   ac_status=$?
20787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788   (exit $ac_status); }; }; then
20789   ac_cv_sys_file_offset_bits=64; break
20790 else
20791   echo "$as_me: failed program was:" >&5
20792 sed 's/^/| /' conftest.$ac_ext >&5
20793
20794 fi
20795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20796   break
20797 done
20798 fi
20799 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
20800 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
20801 if test "$ac_cv_sys_file_offset_bits" != no; then
20802
20803 cat >>confdefs.h <<_ACEOF
20804 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20805 _ACEOF
20806
20807 fi
20808 rm -f conftest*
20809   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
20810 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
20811 if test "${ac_cv_sys_large_files+set}" = set; then
20812   echo $ECHO_N "(cached) $ECHO_C" >&6
20813 else
20814   while :; do
20815   ac_cv_sys_large_files=no
20816   cat >conftest.$ac_ext <<_ACEOF
20817 /* confdefs.h.  */
20818 _ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h.  */
20822 #include <sys/types.h>
20823  /* Check that off_t can represent 2**63 - 1 correctly.
20824     We can't simply define LARGE_OFF_T to be 9223372036854775807,
20825     since some C++ compilers masquerading as C compilers
20826     incorrectly reject 9223372036854775807.  */
20827 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20828   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20829                        && LARGE_OFF_T % 2147483647 == 1)
20830                       ? 1 : -1];
20831 int
20832 main ()
20833 {
20834
20835   ;
20836   return 0;
20837 }
20838 _ACEOF
20839 rm -f conftest.$ac_objext
20840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20841   (eval $ac_compile) 2>conftest.er1
20842   ac_status=$?
20843   grep -v '^ *+' conftest.er1 >conftest.err
20844   rm -f conftest.er1
20845   cat conftest.err >&5
20846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847   (exit $ac_status); } &&
20848          { ac_try='test -z "$ac_c_werror_flag"
20849                          || test ! -s conftest.err'
20850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20851   (eval $ac_try) 2>&5
20852   ac_status=$?
20853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854   (exit $ac_status); }; } &&
20855          { ac_try='test -s conftest.$ac_objext'
20856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20857   (eval $ac_try) 2>&5
20858   ac_status=$?
20859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860   (exit $ac_status); }; }; then
20861   break
20862 else
20863   echo "$as_me: failed program was:" >&5
20864 sed 's/^/| /' conftest.$ac_ext >&5
20865
20866 fi
20867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20868   cat >conftest.$ac_ext <<_ACEOF
20869 /* confdefs.h.  */
20870 _ACEOF
20871 cat confdefs.h >>conftest.$ac_ext
20872 cat >>conftest.$ac_ext <<_ACEOF
20873 /* end confdefs.h.  */
20874 #define _LARGE_FILES 1
20875 #include <sys/types.h>
20876  /* Check that off_t can represent 2**63 - 1 correctly.
20877     We can't simply define LARGE_OFF_T to be 9223372036854775807,
20878     since some C++ compilers masquerading as C compilers
20879     incorrectly reject 9223372036854775807.  */
20880 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20881   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20882                        && LARGE_OFF_T % 2147483647 == 1)
20883                       ? 1 : -1];
20884 int
20885 main ()
20886 {
20887
20888   ;
20889   return 0;
20890 }
20891 _ACEOF
20892 rm -f conftest.$ac_objext
20893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20894   (eval $ac_compile) 2>conftest.er1
20895   ac_status=$?
20896   grep -v '^ *+' conftest.er1 >conftest.err
20897   rm -f conftest.er1
20898   cat conftest.err >&5
20899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900   (exit $ac_status); } &&
20901          { ac_try='test -z "$ac_c_werror_flag"
20902                          || test ! -s conftest.err'
20903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904   (eval $ac_try) 2>&5
20905   ac_status=$?
20906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907   (exit $ac_status); }; } &&
20908          { ac_try='test -s conftest.$ac_objext'
20909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20910   (eval $ac_try) 2>&5
20911   ac_status=$?
20912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913   (exit $ac_status); }; }; then
20914   ac_cv_sys_large_files=1; break
20915 else
20916   echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20918
20919 fi
20920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20921   break
20922 done
20923 fi
20924 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20925 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
20926 if test "$ac_cv_sys_large_files" != no; then
20927
20928 cat >>confdefs.h <<_ACEOF
20929 #define _LARGE_FILES $ac_cv_sys_large_files
20930 _ACEOF
20931
20932 fi
20933 rm -f conftest*
20934 fi
20935
20936 fi
20937
20938 # SunOS doesn't handle negative byte comparisons properly with +/- return
20939 echo "$as_me:$LINENO: checking for working memcmp" >&5
20940 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
20941 if test "${ac_cv_func_memcmp_working+set}" = set; then
20942   echo $ECHO_N "(cached) $ECHO_C" >&6
20943 else
20944   if test "$cross_compiling" = yes; then
20945   ac_cv_func_memcmp_working=no
20946 else
20947   cat >conftest.$ac_ext <<_ACEOF
20948 /* confdefs.h.  */
20949 _ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h.  */
20953 $ac_includes_default
20954 int
20955 main ()
20956 {
20957
20958   /* Some versions of memcmp are not 8-bit clean.  */
20959   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20960   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20961     exit (1);
20962
20963   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20964      or more and with at least one buffer not starting on a 4-byte boundary.
20965      William Lewis provided this test program.   */
20966   {
20967     char foo[21];
20968     char bar[21];
20969     int i;
20970     for (i = 0; i < 4; i++)
20971       {
20972         char *a = foo + i;
20973         char *b = bar + i;
20974         strcpy (a, "--------01111111");
20975         strcpy (b, "--------10000000");
20976         if (memcmp (a, b, 16) >= 0)
20977           exit (1);
20978       }
20979     exit (0);
20980   }
20981
20982   ;
20983   return 0;
20984 }
20985 _ACEOF
20986 rm -f conftest$ac_exeext
20987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20988   (eval $ac_link) 2>&5
20989   ac_status=$?
20990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20993   (eval $ac_try) 2>&5
20994   ac_status=$?
20995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996   (exit $ac_status); }; }; then
20997   ac_cv_func_memcmp_working=yes
20998 else
20999   echo "$as_me: program exited with status $ac_status" >&5
21000 echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.$ac_ext >&5
21002
21003 ( exit $ac_status )
21004 ac_cv_func_memcmp_working=no
21005 fi
21006 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21007 fi
21008 fi
21009 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21010 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21011 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
21012     "memcmp.$ac_objext"   | \
21013   *" memcmp.$ac_objext"   | \
21014     "memcmp.$ac_objext "* | \
21015   *" memcmp.$ac_objext "* ) ;;
21016   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
21017 esac
21018
21019
21020
21021
21022 # Select semaphore implementation type.
21023 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
21024
21025 cat >>confdefs.h <<\_ACEOF
21026 #define USE_NAMED_POSIX_SEMAPHORES 1
21027 _ACEOF
21028
21029   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
21030 else
21031   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
21032
21033 cat >>confdefs.h <<\_ACEOF
21034 #define USE_UNNAMED_POSIX_SEMAPHORES 1
21035 _ACEOF
21036
21037     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
21038   else
21039
21040 cat >>confdefs.h <<\_ACEOF
21041 #define USE_SYSV_SEMAPHORES 1
21042 _ACEOF
21043
21044     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
21045   fi
21046 fi
21047
21048
21049 # Select shared-memory implementation type.
21050
21051 cat >>confdefs.h <<\_ACEOF
21052 #define USE_SYSV_SHARED_MEMORY 1
21053 _ACEOF
21054
21055 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
21056
21057
21058 # If not set in template file, set bytes to use libc memset()
21059 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
21060   MEMSET_LOOP_LIMIT=1024
21061 fi
21062
21063 cat >>confdefs.h <<_ACEOF
21064 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
21065 _ACEOF
21066
21067
21068
21069 if test "$enable_nls" = yes ; then
21070
21071   echo "$as_me:$LINENO: checking for library containing gettext" >&5
21072 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
21073 if test "${ac_cv_search_gettext+set}" = set; then
21074   echo $ECHO_N "(cached) $ECHO_C" >&6
21075 else
21076   ac_func_search_save_LIBS=$LIBS
21077 ac_cv_search_gettext=no
21078 cat >conftest.$ac_ext <<_ACEOF
21079 /* confdefs.h.  */
21080 _ACEOF
21081 cat confdefs.h >>conftest.$ac_ext
21082 cat >>conftest.$ac_ext <<_ACEOF
21083 /* end confdefs.h.  */
21084
21085 /* Override any gcc2 internal prototype to avoid an error.  */
21086 #ifdef __cplusplus
21087 extern "C"
21088 #endif
21089 /* We use char because int might match the return type of a gcc2
21090    builtin and then its argument prototype would still apply.  */
21091 char gettext ();
21092 int
21093 main ()
21094 {
21095 gettext ();
21096   ;
21097   return 0;
21098 }
21099 _ACEOF
21100 rm -f conftest.$ac_objext conftest$ac_exeext
21101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21102   (eval $ac_link) 2>conftest.er1
21103   ac_status=$?
21104   grep -v '^ *+' conftest.er1 >conftest.err
21105   rm -f conftest.er1
21106   cat conftest.err >&5
21107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108   (exit $ac_status); } &&
21109          { ac_try='test -z "$ac_c_werror_flag"
21110                          || test ! -s conftest.err'
21111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112   (eval $ac_try) 2>&5
21113   ac_status=$?
21114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115   (exit $ac_status); }; } &&
21116          { ac_try='test -s conftest$ac_exeext'
21117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21118   (eval $ac_try) 2>&5
21119   ac_status=$?
21120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121   (exit $ac_status); }; }; then
21122   ac_cv_search_gettext="none required"
21123 else
21124   echo "$as_me: failed program was:" >&5
21125 sed 's/^/| /' conftest.$ac_ext >&5
21126
21127 fi
21128 rm -f conftest.err conftest.$ac_objext \
21129       conftest$ac_exeext conftest.$ac_ext
21130 if test "$ac_cv_search_gettext" = no; then
21131   for ac_lib in intl; do
21132     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21133     cat >conftest.$ac_ext <<_ACEOF
21134 /* confdefs.h.  */
21135 _ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h.  */
21139
21140 /* Override any gcc2 internal prototype to avoid an error.  */
21141 #ifdef __cplusplus
21142 extern "C"
21143 #endif
21144 /* We use char because int might match the return type of a gcc2
21145    builtin and then its argument prototype would still apply.  */
21146 char gettext ();
21147 int
21148 main ()
21149 {
21150 gettext ();
21151   ;
21152   return 0;
21153 }
21154 _ACEOF
21155 rm -f conftest.$ac_objext conftest$ac_exeext
21156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21157   (eval $ac_link) 2>conftest.er1
21158   ac_status=$?
21159   grep -v '^ *+' conftest.er1 >conftest.err
21160   rm -f conftest.er1
21161   cat conftest.err >&5
21162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163   (exit $ac_status); } &&
21164          { ac_try='test -z "$ac_c_werror_flag"
21165                          || test ! -s conftest.err'
21166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21167   (eval $ac_try) 2>&5
21168   ac_status=$?
21169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170   (exit $ac_status); }; } &&
21171          { ac_try='test -s conftest$ac_exeext'
21172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21173   (eval $ac_try) 2>&5
21174   ac_status=$?
21175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176   (exit $ac_status); }; }; then
21177   ac_cv_search_gettext="-l$ac_lib"
21178 break
21179 else
21180   echo "$as_me: failed program was:" >&5
21181 sed 's/^/| /' conftest.$ac_ext >&5
21182
21183 fi
21184 rm -f conftest.err conftest.$ac_objext \
21185       conftest$ac_exeext conftest.$ac_ext
21186   done
21187 fi
21188 LIBS=$ac_func_search_save_LIBS
21189 fi
21190 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
21191 echo "${ECHO_T}$ac_cv_search_gettext" >&6
21192 if test "$ac_cv_search_gettext" != no; then
21193   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
21194
21195 else
21196   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
21197 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
21198    { (exit 1); exit 1; }; }
21199 fi
21200
21201   if test "${ac_cv_header_libintl_h+set}" = set; then
21202   echo "$as_me:$LINENO: checking for libintl.h" >&5
21203 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
21204 if test "${ac_cv_header_libintl_h+set}" = set; then
21205   echo $ECHO_N "(cached) $ECHO_C" >&6
21206 fi
21207 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21208 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
21209 else
21210   # Is the header compilable?
21211 echo "$as_me:$LINENO: checking libintl.h usability" >&5
21212 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
21213 cat >conftest.$ac_ext <<_ACEOF
21214 /* confdefs.h.  */
21215 _ACEOF
21216 cat confdefs.h >>conftest.$ac_ext
21217 cat >>conftest.$ac_ext <<_ACEOF
21218 /* end confdefs.h.  */
21219 $ac_includes_default
21220 #include <libintl.h>
21221 _ACEOF
21222 rm -f conftest.$ac_objext
21223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21224   (eval $ac_compile) 2>conftest.er1
21225   ac_status=$?
21226   grep -v '^ *+' conftest.er1 >conftest.err
21227   rm -f conftest.er1
21228   cat conftest.err >&5
21229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230   (exit $ac_status); } &&
21231          { ac_try='test -z "$ac_c_werror_flag"
21232                          || test ! -s conftest.err'
21233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21234   (eval $ac_try) 2>&5
21235   ac_status=$?
21236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237   (exit $ac_status); }; } &&
21238          { ac_try='test -s conftest.$ac_objext'
21239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21240   (eval $ac_try) 2>&5
21241   ac_status=$?
21242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243   (exit $ac_status); }; }; then
21244   ac_header_compiler=yes
21245 else
21246   echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21248
21249 ac_header_compiler=no
21250 fi
21251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21252 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21253 echo "${ECHO_T}$ac_header_compiler" >&6
21254
21255 # Is the header present?
21256 echo "$as_me:$LINENO: checking libintl.h presence" >&5
21257 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
21258 cat >conftest.$ac_ext <<_ACEOF
21259 /* confdefs.h.  */
21260 _ACEOF
21261 cat confdefs.h >>conftest.$ac_ext
21262 cat >>conftest.$ac_ext <<_ACEOF
21263 /* end confdefs.h.  */
21264 #include <libintl.h>
21265 _ACEOF
21266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21267   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21268   ac_status=$?
21269   grep -v '^ *+' conftest.er1 >conftest.err
21270   rm -f conftest.er1
21271   cat conftest.err >&5
21272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273   (exit $ac_status); } >/dev/null; then
21274   if test -s conftest.err; then
21275     ac_cpp_err=$ac_c_preproc_warn_flag
21276     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21277   else
21278     ac_cpp_err=
21279   fi
21280 else
21281   ac_cpp_err=yes
21282 fi
21283 if test -z "$ac_cpp_err"; then
21284   ac_header_preproc=yes
21285 else
21286   echo "$as_me: failed program was:" >&5
21287 sed 's/^/| /' conftest.$ac_ext >&5
21288
21289   ac_header_preproc=no
21290 fi
21291 rm -f conftest.err conftest.$ac_ext
21292 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21293 echo "${ECHO_T}$ac_header_preproc" >&6
21294
21295 # So?  What about this header?
21296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21297   yes:no: )
21298     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21299 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21300     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
21301 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
21302     ac_header_preproc=yes
21303     ;;
21304   no:yes:* )
21305     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
21306 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
21307     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
21308 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
21309     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
21310 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
21311     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
21312 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21313     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
21314 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
21315     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
21316 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
21317     (
21318       cat <<\_ASBOX
21319 ## ---------------------------------------- ##
21320 ## Report this to pgsql-bugs@postgresql.org ##
21321 ## ---------------------------------------- ##
21322 _ASBOX
21323     ) |
21324       sed "s/^/$as_me: WARNING:     /" >&2
21325     ;;
21326 esac
21327 echo "$as_me:$LINENO: checking for libintl.h" >&5
21328 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
21329 if test "${ac_cv_header_libintl_h+set}" = set; then
21330   echo $ECHO_N "(cached) $ECHO_C" >&6
21331 else
21332   ac_cv_header_libintl_h=$ac_header_preproc
21333 fi
21334 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21335 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
21336
21337 fi
21338 if test $ac_cv_header_libintl_h = yes; then
21339   :
21340 else
21341   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
21342 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
21343    { (exit 1); exit 1; }; }
21344 fi
21345
21346
21347   for ac_prog in msgfmt
21348 do
21349   # Extract the first word of "$ac_prog", so it can be a program name with args.
21350 set dummy $ac_prog; ac_word=$2
21351 echo "$as_me:$LINENO: checking for $ac_word" >&5
21352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21353 if test "${ac_cv_prog_MSGFMT+set}" = set; then
21354   echo $ECHO_N "(cached) $ECHO_C" >&6
21355 else
21356   if test -n "$MSGFMT"; then
21357   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
21358 else
21359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21360 for as_dir in $PATH
21361 do
21362   IFS=$as_save_IFS
21363   test -z "$as_dir" && as_dir=.
21364   for ac_exec_ext in '' $ac_executable_extensions; do
21365   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21366     ac_cv_prog_MSGFMT="$ac_prog"
21367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21368     break 2
21369   fi
21370 done
21371 done
21372
21373 fi
21374 fi
21375 MSGFMT=$ac_cv_prog_MSGFMT
21376 if test -n "$MSGFMT"; then
21377   echo "$as_me:$LINENO: result: $MSGFMT" >&5
21378 echo "${ECHO_T}$MSGFMT" >&6
21379 else
21380   echo "$as_me:$LINENO: result: no" >&5
21381 echo "${ECHO_T}no" >&6
21382 fi
21383
21384   test -n "$MSGFMT" && break
21385 done
21386
21387   if test -z "$MSGFMT"; then
21388     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
21389 echo "$as_me: error: msgfmt is required for NLS" >&2;}
21390    { (exit 1); exit 1; }; }
21391   fi
21392   for ac_prog in msgmerge
21393 do
21394   # Extract the first word of "$ac_prog", so it can be a program name with args.
21395 set dummy $ac_prog; ac_word=$2
21396 echo "$as_me:$LINENO: checking for $ac_word" >&5
21397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21398 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
21399   echo $ECHO_N "(cached) $ECHO_C" >&6
21400 else
21401   if test -n "$MSGMERGE"; then
21402   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
21403 else
21404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21405 for as_dir in $PATH
21406 do
21407   IFS=$as_save_IFS
21408   test -z "$as_dir" && as_dir=.
21409   for ac_exec_ext in '' $ac_executable_extensions; do
21410   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21411     ac_cv_prog_MSGMERGE="$ac_prog"
21412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21413     break 2
21414   fi
21415 done
21416 done
21417
21418 fi
21419 fi
21420 MSGMERGE=$ac_cv_prog_MSGMERGE
21421 if test -n "$MSGMERGE"; then
21422   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
21423 echo "${ECHO_T}$MSGMERGE" >&6
21424 else
21425   echo "$as_me:$LINENO: result: no" >&5
21426 echo "${ECHO_T}no" >&6
21427 fi
21428
21429   test -n "$MSGMERGE" && break
21430 done
21431
21432   for ac_prog in xgettext
21433 do
21434   # Extract the first word of "$ac_prog", so it can be a program name with args.
21435 set dummy $ac_prog; ac_word=$2
21436 echo "$as_me:$LINENO: checking for $ac_word" >&5
21437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21438 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
21439   echo $ECHO_N "(cached) $ECHO_C" >&6
21440 else
21441   if test -n "$XGETTEXT"; then
21442   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
21443 else
21444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21445 for as_dir in $PATH
21446 do
21447   IFS=$as_save_IFS
21448   test -z "$as_dir" && as_dir=.
21449   for ac_exec_ext in '' $ac_executable_extensions; do
21450   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21451     ac_cv_prog_XGETTEXT="$ac_prog"
21452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21453     break 2
21454   fi
21455 done
21456 done
21457
21458 fi
21459 fi
21460 XGETTEXT=$ac_cv_prog_XGETTEXT
21461 if test -n "$XGETTEXT"; then
21462   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21463 echo "${ECHO_T}$XGETTEXT" >&6
21464 else
21465   echo "$as_me:$LINENO: result: no" >&5
21466 echo "${ECHO_T}no" >&6
21467 fi
21468
21469   test -n "$XGETTEXT" && break
21470 done
21471
21472
21473   # Note: share/locale is always the default, independent of $datadir
21474   localedir='${prefix}/share/locale'
21475   if test x"$prefix" = x"NONE"; then
21476     exp_localedir="$ac_default_prefix/share/locale"
21477   else
21478     exp_localedir="$prefix/share/locale"
21479   fi
21480
21481
21482
21483 cat >>confdefs.h <<_ACEOF
21484 #define LOCALEDIR "$exp_localedir"
21485 _ACEOF
21486
21487
21488 fi
21489
21490 # Check for Tcl configuration script tclConfig.sh
21491 if test "$with_tcl" = yes; then
21492     for ac_prog in tclsh tcl
21493 do
21494   # Extract the first word of "$ac_prog", so it can be a program name with args.
21495 set dummy $ac_prog; ac_word=$2
21496 echo "$as_me:$LINENO: checking for $ac_word" >&5
21497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21498 if test "${ac_cv_path_TCLSH+set}" = set; then
21499   echo $ECHO_N "(cached) $ECHO_C" >&6
21500 else
21501   case $TCLSH in
21502   [\\/]* | ?:[\\/]*)
21503   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
21504   ;;
21505   *)
21506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21507 for as_dir in $PATH
21508 do
21509   IFS=$as_save_IFS
21510   test -z "$as_dir" && as_dir=.
21511   for ac_exec_ext in '' $ac_executable_extensions; do
21512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21513     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
21514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21515     break 2
21516   fi
21517 done
21518 done
21519
21520   ;;
21521 esac
21522 fi
21523 TCLSH=$ac_cv_path_TCLSH
21524
21525 if test -n "$TCLSH"; then
21526   echo "$as_me:$LINENO: result: $TCLSH" >&5
21527 echo "${ECHO_T}$TCLSH" >&6
21528 else
21529   echo "$as_me:$LINENO: result: no" >&5
21530 echo "${ECHO_T}no" >&6
21531 fi
21532
21533   test -n "$TCLSH" && break
21534 done
21535
21536 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
21537 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
21538 # Let user override test
21539 if test -z "$TCL_CONFIG_SH"; then
21540     pgac_test_dirs="$with_tclconfig"
21541
21542     set X $pgac_test_dirs; shift
21543     if test $# -eq 0; then
21544         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
21545 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
21546    { (exit 1); exit 1; }; }
21547         set X `echo 'puts $auto_path' | $TCLSH`; shift
21548     fi
21549
21550     for pgac_dir do
21551         if test -r "$pgac_dir/tclConfig.sh"; then
21552             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
21553             break
21554         fi
21555     done
21556 fi
21557
21558 if test -z "$TCL_CONFIG_SH"; then
21559     echo "$as_me:$LINENO: result: no" >&5
21560 echo "${ECHO_T}no" >&6
21561     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
21562 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
21563    { (exit 1); exit 1; }; }
21564 else
21565     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
21566 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
21567 fi
21568
21569
21570
21571     . "$TCL_CONFIG_SH"
21572 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
21573 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
21574 eval TCL_LIBS=\"$TCL_LIBS\"
21575 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
21576 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
21577
21578         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
21579     ac_save_CPPFLAGS=$CPPFLAGS
21580     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
21581     if test "${ac_cv_header_tcl_h+set}" = set; then
21582   echo "$as_me:$LINENO: checking for tcl.h" >&5
21583 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
21584 if test "${ac_cv_header_tcl_h+set}" = set; then
21585   echo $ECHO_N "(cached) $ECHO_C" >&6
21586 fi
21587 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
21588 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
21589 else
21590   # Is the header compilable?
21591 echo "$as_me:$LINENO: checking tcl.h usability" >&5
21592 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
21593 cat >conftest.$ac_ext <<_ACEOF
21594 /* confdefs.h.  */
21595 _ACEOF
21596 cat confdefs.h >>conftest.$ac_ext
21597 cat >>conftest.$ac_ext <<_ACEOF
21598 /* end confdefs.h.  */
21599 $ac_includes_default
21600 #include <tcl.h>
21601 _ACEOF
21602 rm -f conftest.$ac_objext
21603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21604   (eval $ac_compile) 2>conftest.er1
21605   ac_status=$?
21606   grep -v '^ *+' conftest.er1 >conftest.err
21607   rm -f conftest.er1
21608   cat conftest.err >&5
21609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610   (exit $ac_status); } &&
21611          { ac_try='test -z "$ac_c_werror_flag"
21612                          || test ! -s conftest.err'
21613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21614   (eval $ac_try) 2>&5
21615   ac_status=$?
21616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617   (exit $ac_status); }; } &&
21618          { ac_try='test -s conftest.$ac_objext'
21619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21620   (eval $ac_try) 2>&5
21621   ac_status=$?
21622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623   (exit $ac_status); }; }; then
21624   ac_header_compiler=yes
21625 else
21626   echo "$as_me: failed program was:" >&5
21627 sed 's/^/| /' conftest.$ac_ext >&5
21628
21629 ac_header_compiler=no
21630 fi
21631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21633 echo "${ECHO_T}$ac_header_compiler" >&6
21634
21635 # Is the header present?
21636 echo "$as_me:$LINENO: checking tcl.h presence" >&5
21637 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
21638 cat >conftest.$ac_ext <<_ACEOF
21639 /* confdefs.h.  */
21640 _ACEOF
21641 cat confdefs.h >>conftest.$ac_ext
21642 cat >>conftest.$ac_ext <<_ACEOF
21643 /* end confdefs.h.  */
21644 #include <tcl.h>
21645 _ACEOF
21646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21647   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21648   ac_status=$?
21649   grep -v '^ *+' conftest.er1 >conftest.err
21650   rm -f conftest.er1
21651   cat conftest.err >&5
21652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653   (exit $ac_status); } >/dev/null; then
21654   if test -s conftest.err; then
21655     ac_cpp_err=$ac_c_preproc_warn_flag
21656     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21657   else
21658     ac_cpp_err=
21659   fi
21660 else
21661   ac_cpp_err=yes
21662 fi
21663 if test -z "$ac_cpp_err"; then
21664   ac_header_preproc=yes
21665 else
21666   echo "$as_me: failed program was:" >&5
21667 sed 's/^/| /' conftest.$ac_ext >&5
21668
21669   ac_header_preproc=no
21670 fi
21671 rm -f conftest.err conftest.$ac_ext
21672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21673 echo "${ECHO_T}$ac_header_preproc" >&6
21674
21675 # So?  What about this header?
21676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21677   yes:no: )
21678     { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21679 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21680     { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
21681 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
21682     ac_header_preproc=yes
21683     ;;
21684   no:yes:* )
21685     { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
21686 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
21687     { echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
21688 echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
21689     { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
21690 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
21691     { echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
21692 echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21693     { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
21694 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
21695     { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
21696 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
21697     (
21698       cat <<\_ASBOX
21699 ## ---------------------------------------- ##
21700 ## Report this to pgsql-bugs@postgresql.org ##
21701 ## ---------------------------------------- ##
21702 _ASBOX
21703     ) |
21704       sed "s/^/$as_me: WARNING:     /" >&2
21705     ;;
21706 esac
21707 echo "$as_me:$LINENO: checking for tcl.h" >&5
21708 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
21709 if test "${ac_cv_header_tcl_h+set}" = set; then
21710   echo $ECHO_N "(cached) $ECHO_C" >&6
21711 else
21712   ac_cv_header_tcl_h=$ac_header_preproc
21713 fi
21714 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
21715 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
21716
21717 fi
21718 if test $ac_cv_header_tcl_h = yes; then
21719   :
21720 else
21721   { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
21722 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
21723    { (exit 1); exit 1; }; }
21724 fi
21725
21726
21727     CPPFLAGS=$ac_save_CPPFLAGS
21728 fi
21729
21730 #
21731 # Check for DocBook and tools
21732 #
21733 for ac_prog in onsgmls nsgmls
21734 do
21735   # Extract the first word of "$ac_prog", so it can be a program name with args.
21736 set dummy $ac_prog; ac_word=$2
21737 echo "$as_me:$LINENO: checking for $ac_word" >&5
21738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21739 if test "${ac_cv_prog_NSGMLS+set}" = set; then
21740   echo $ECHO_N "(cached) $ECHO_C" >&6
21741 else
21742   if test -n "$NSGMLS"; then
21743   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
21744 else
21745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21746 for as_dir in $PATH
21747 do
21748   IFS=$as_save_IFS
21749   test -z "$as_dir" && as_dir=.
21750   for ac_exec_ext in '' $ac_executable_extensions; do
21751   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21752     ac_cv_prog_NSGMLS="$ac_prog"
21753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21754     break 2
21755   fi
21756 done
21757 done
21758
21759 fi
21760 fi
21761 NSGMLS=$ac_cv_prog_NSGMLS
21762 if test -n "$NSGMLS"; then
21763   echo "$as_me:$LINENO: result: $NSGMLS" >&5
21764 echo "${ECHO_T}$NSGMLS" >&6
21765 else
21766   echo "$as_me:$LINENO: result: no" >&5
21767 echo "${ECHO_T}no" >&6
21768 fi
21769
21770   test -n "$NSGMLS" && break
21771 done
21772
21773 for ac_prog in openjade jade
21774 do
21775   # Extract the first word of "$ac_prog", so it can be a program name with args.
21776 set dummy $ac_prog; ac_word=$2
21777 echo "$as_me:$LINENO: checking for $ac_word" >&5
21778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21779 if test "${ac_cv_prog_JADE+set}" = set; then
21780   echo $ECHO_N "(cached) $ECHO_C" >&6
21781 else
21782   if test -n "$JADE"; then
21783   ac_cv_prog_JADE="$JADE" # Let the user override the test.
21784 else
21785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21786 for as_dir in $PATH
21787 do
21788   IFS=$as_save_IFS
21789   test -z "$as_dir" && as_dir=.
21790   for ac_exec_ext in '' $ac_executable_extensions; do
21791   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21792     ac_cv_prog_JADE="$ac_prog"
21793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21794     break 2
21795   fi
21796 done
21797 done
21798
21799 fi
21800 fi
21801 JADE=$ac_cv_prog_JADE
21802 if test -n "$JADE"; then
21803   echo "$as_me:$LINENO: result: $JADE" >&5
21804 echo "${ECHO_T}$JADE" >&6
21805 else
21806   echo "$as_me:$LINENO: result: no" >&5
21807 echo "${ECHO_T}no" >&6
21808 fi
21809
21810   test -n "$JADE" && break
21811 done
21812
21813
21814 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
21815 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
21816 if test "${pgac_cv_check_docbook+set}" = set; then
21817   echo $ECHO_N "(cached) $ECHO_C" >&6
21818 else
21819   cat >conftest.sgml <<EOF
21820 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
21821 <book>
21822  <title>test</title>
21823  <chapter>
21824   <title>random</title>
21825    <sect1>
21826     <title>testsect</title>
21827     <para>text</para>
21828   </sect1>
21829  </chapter>
21830 </book>
21831 EOF
21832
21833 pgac_cv_check_docbook=no
21834
21835 if test -n "$NSGMLS"; then
21836   $NSGMLS -s conftest.sgml 1>&5 2>&1
21837   if test $? -eq 0; then
21838     pgac_cv_check_docbook=yes
21839   fi
21840 fi
21841 rm -f conftest.sgml
21842 fi
21843 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
21844 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
21845
21846 have_docbook=$pgac_cv_check_docbook
21847
21848
21849 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
21850 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
21851 if test "${pgac_cv_path_stylesheets+set}" = set; then
21852   echo $ECHO_N "(cached) $ECHO_C" >&6
21853 else
21854   if test -n "$DOCBOOKSTYLE"; then
21855   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
21856 else
21857   for pgac_prefix in /usr /usr/local /opt; do
21858     for pgac_infix in share lib; do
21859       for pgac_postfix in \
21860         sgml/stylesheets/nwalsh-modular \
21861         sgml/stylesheets/docbook \
21862                 sgml/docbook-dsssl \
21863         sgml/docbook/dsssl/modular \
21864         sgml/docbook/stylesheet/dsssl/modular \
21865         sgml/docbook/dsssl-stylesheets
21866       do
21867         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
21868         if test -r "$pgac_candidate/html/docbook.dsl" \
21869            && test -r "$pgac_candidate/print/docbook.dsl"
21870         then
21871           pgac_cv_path_stylesheets=$pgac_candidate
21872           break 3
21873         fi
21874       done
21875     done
21876   done
21877 fi
21878 fi
21879
21880 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
21881
21882 if test -n "$DOCBOOKSTYLE"; then
21883   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
21884 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
21885 else
21886   echo "$as_me:$LINENO: result: no" >&5
21887 echo "${ECHO_T}no" >&6
21888 fi
21889 if test -n "$DOCBOOKSTYLE"; then
21890   for ac_prog in collateindex.pl
21891 do
21892   # Extract the first word of "$ac_prog", so it can be a program name with args.
21893 set dummy $ac_prog; ac_word=$2
21894 echo "$as_me:$LINENO: checking for $ac_word" >&5
21895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21896 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
21897   echo $ECHO_N "(cached) $ECHO_C" >&6
21898 else
21899   case $COLLATEINDEX in
21900   [\\/]* | ?:[\\/]*)
21901   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
21902   ;;
21903   *)
21904   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21905 for as_dir in $DOCBOOKSTYLE/bin $PATH
21906 do
21907   IFS=$as_save_IFS
21908   test -z "$as_dir" && as_dir=.
21909   for ac_exec_ext in '' $ac_executable_extensions; do
21910   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21911     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
21912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21913     break 2
21914   fi
21915 done
21916 done
21917
21918   ;;
21919 esac
21920 fi
21921 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
21922
21923 if test -n "$COLLATEINDEX"; then
21924   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
21925 echo "${ECHO_T}$COLLATEINDEX" >&6
21926 else
21927   echo "$as_me:$LINENO: result: no" >&5
21928 echo "${ECHO_T}no" >&6
21929 fi
21930
21931   test -n "$COLLATEINDEX" && break
21932 done
21933
21934 else
21935   for ac_prog in collateindex.pl
21936 do
21937   # Extract the first word of "$ac_prog", so it can be a program name with args.
21938 set dummy $ac_prog; ac_word=$2
21939 echo "$as_me:$LINENO: checking for $ac_word" >&5
21940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21941 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
21942   echo $ECHO_N "(cached) $ECHO_C" >&6
21943 else
21944   case $COLLATEINDEX in
21945   [\\/]* | ?:[\\/]*)
21946   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
21947   ;;
21948   *)
21949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21950 for as_dir in $PATH
21951 do
21952   IFS=$as_save_IFS
21953   test -z "$as_dir" && as_dir=.
21954   for ac_exec_ext in '' $ac_executable_extensions; do
21955   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21956     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
21957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21958     break 2
21959   fi
21960 done
21961 done
21962
21963   ;;
21964 esac
21965 fi
21966 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
21967
21968 if test -n "$COLLATEINDEX"; then
21969   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
21970 echo "${ECHO_T}$COLLATEINDEX" >&6
21971 else
21972   echo "$as_me:$LINENO: result: no" >&5
21973 echo "${ECHO_T}no" >&6
21974 fi
21975
21976   test -n "$COLLATEINDEX" && break
21977 done
21978
21979 fi
21980 for ac_prog in sgmlspl
21981 do
21982   # Extract the first word of "$ac_prog", so it can be a program name with args.
21983 set dummy $ac_prog; ac_word=$2
21984 echo "$as_me:$LINENO: checking for $ac_word" >&5
21985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21986 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
21987   echo $ECHO_N "(cached) $ECHO_C" >&6
21988 else
21989   if test -n "$SGMLSPL"; then
21990   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
21991 else
21992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21993 for as_dir in $PATH
21994 do
21995   IFS=$as_save_IFS
21996   test -z "$as_dir" && as_dir=.
21997   for ac_exec_ext in '' $ac_executable_extensions; do
21998   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21999     ac_cv_prog_SGMLSPL="$ac_prog"
22000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22001     break 2
22002   fi
22003 done
22004 done
22005
22006 fi
22007 fi
22008 SGMLSPL=$ac_cv_prog_SGMLSPL
22009 if test -n "$SGMLSPL"; then
22010   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
22011 echo "${ECHO_T}$SGMLSPL" >&6
22012 else
22013   echo "$as_me:$LINENO: result: no" >&5
22014 echo "${ECHO_T}no" >&6
22015 fi
22016
22017   test -n "$SGMLSPL" && break
22018 done
22019
22020
22021 # Thread testing
22022
22023 # We have to run the thread test near the end so we have all our symbols
22024 # defined.  Cross compiling throws a warning.
22025 #
22026 if test "$enable_thread_safety_force" = yes; then
22027 if test x"$template" != x"win32"
22028 then
22029   { echo "$as_me:$LINENO: WARNING:
22030 *** Skipping thread test program.  --enable-thread-safety-force was used.
22031 *** Run the program in src/test/thread on the your machine and add
22032 proper locking function calls to your applications to guarantee thread
22033 safety.
22034 " >&5
22035 echo "$as_me: WARNING:
22036 *** Skipping thread test program.  --enable-thread-safety-force was used.
22037 *** Run the program in src/test/thread on the your machine and add
22038 proper locking function calls to your applications to guarantee thread
22039 safety.
22040 " >&2;}
22041 else
22042 { echo "$as_me:$LINENO: WARNING: *** Skipping thread test on Win32" >&5
22043 echo "$as_me: WARNING: *** Skipping thread test on Win32" >&2;}
22044 fi
22045 elif test "$enable_thread_safety" = yes; then
22046 if test x"$template" != x"win32"
22047 then
22048 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
22049 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
22050
22051 _CFLAGS="$CFLAGS"
22052 _LIBS="$LIBS"
22053 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
22054 LIBS="$LIBS $PTHREAD_LIBS"
22055 if test "$cross_compiling" = yes; then
22056   echo "$as_me:$LINENO: result: maybe" >&5
22057 echo "${ECHO_T}maybe" >&6
22058   { echo "$as_me:$LINENO: WARNING:
22059 *** Skipping thread test program because of cross-compile build.
22060 *** Run the program in src/test/thread on the target machine.
22061 " >&5
22062 echo "$as_me: WARNING:
22063 *** Skipping thread test program because of cross-compile build.
22064 *** Run the program in src/test/thread on the target machine.
22065 " >&2;}
22066 else
22067   cat >conftest.$ac_ext <<_ACEOF
22068 /* confdefs.h.  */
22069 _ACEOF
22070 cat confdefs.h >>conftest.$ac_ext
22071 cat >>conftest.$ac_ext <<_ACEOF
22072 /* end confdefs.h.  */
22073 #include "$srcdir/src/test/thread/thread_test.c"
22074 _ACEOF
22075 rm -f conftest$ac_exeext
22076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22077   (eval $ac_link) 2>&5
22078   ac_status=$?
22079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22082   (eval $ac_try) 2>&5
22083   ac_status=$?
22084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085   (exit $ac_status); }; }; then
22086   echo "$as_me:$LINENO: result: yes" >&5
22087 echo "${ECHO_T}yes" >&6
22088 else
22089   echo "$as_me: program exited with status $ac_status" >&5
22090 echo "$as_me: failed program was:" >&5
22091 sed 's/^/| /' conftest.$ac_ext >&5
22092
22093 ( exit $ac_status )
22094 echo "$as_me:$LINENO: result: no" >&5
22095 echo "${ECHO_T}no" >&6
22096   { { echo "$as_me:$LINENO: error:
22097 *** Thread test program failed.  Your platform is not thread-safe.
22098 *** Check the file 'config.log'for the exact reason.
22099 ***
22100 *** You can use the configure option --enable-thread-safety-force
22101 *** to force threads to be enabled.  However, you must then run
22102 *** the program in src/test/thread and add locking function calls
22103 *** to your applications to guarantee thread safety.
22104 " >&5
22105 echo "$as_me: error:
22106 *** Thread test program failed.  Your platform is not thread-safe.
22107 *** Check the file 'config.log'for the exact reason.
22108 ***
22109 *** You can use the configure option --enable-thread-safety-force
22110 *** to force threads to be enabled.  However, you must then run
22111 *** the program in src/test/thread and add locking function calls
22112 *** to your applications to guarantee thread safety.
22113 " >&2;}
22114    { (exit 1); exit 1; }; }
22115 fi
22116 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22117 fi
22118 CFLAGS="$_CFLAGS"
22119 LIBS="$_LIBS"
22120 else
22121 { echo "$as_me:$LINENO: WARNING: *** Skipping thread test on Win32" >&5
22122 echo "$as_me: WARNING: *** Skipping thread test on Win32" >&2;}
22123 fi
22124 fi
22125
22126 # prepare build tree if outside source tree
22127 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
22128 # Note 2: /bin/pwd might be better than shell's built-in at getting
22129 #         a symlink-free name.
22130 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
22131   vpath_build=no
22132 else
22133   vpath_build=yes
22134   if test "$no_create" != yes; then
22135     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
22136     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
22137     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
22138       || { { echo "$as_me:$LINENO: error: failed" >&5
22139 echo "$as_me: error: failed" >&2;}
22140    { (exit 1); exit 1; }; }
22141     echo "$as_me:$LINENO: result: done" >&5
22142 echo "${ECHO_T}done" >&6
22143   fi
22144 fi
22145
22146
22147
22148                     ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
22149
22150
22151                                                             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}"
22152
22153
22154 if test "$PORTNAME" = "win32"; then
22155           ac_config_commands="$ac_config_commands check_win32_symlinks"
22156
22157 fi
22158
22159           ac_config_headers="$ac_config_headers src/include/pg_config.h"
22160
22161
22162 cat >confcache <<\_ACEOF
22163 # This file is a shell script that caches the results of configure
22164 # tests run on this system so they can be shared between configure
22165 # scripts and configure runs, see configure's option --config-cache.
22166 # It is not useful on other systems.  If it contains results you don't
22167 # want to keep, you may remove or edit it.
22168 #
22169 # config.status only pays attention to the cache file if you give it
22170 # the --recheck option to rerun configure.
22171 #
22172 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22173 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22174 # following values.
22175
22176 _ACEOF
22177
22178 # The following way of writing the cache mishandles newlines in values,
22179 # but we know of no workaround that is simple, portable, and efficient.
22180 # So, don't put newlines in cache variables' values.
22181 # Ultrix sh set writes to stderr and can't be redirected directly,
22182 # and sets the high bit in the cache file unless we assign to the vars.
22183 {
22184   (set) 2>&1 |
22185     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22186     *ac_space=\ *)
22187       # `set' does not quote correctly, so add quotes (double-quote
22188       # substitution turns \\\\ into \\, and sed turns \\ into \).
22189       sed -n \
22190         "s/'/'\\\\''/g;
22191           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22192       ;;
22193     *)
22194       # `set' quotes correctly as required by POSIX, so do not add quotes.
22195       sed -n \
22196         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22197       ;;
22198     esac;
22199 } |
22200   sed '
22201      t clear
22202      : clear
22203      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22204      t end
22205      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22206      : end' >>confcache
22207 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22208   if test -w $cache_file; then
22209     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22210     cat confcache >$cache_file
22211   else
22212     echo "not updating unwritable cache $cache_file"
22213   fi
22214 fi
22215 rm -f confcache
22216
22217 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22218 # Let make expand exec_prefix.
22219 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22220
22221 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22222 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22223 # trailing colons and then remove the whole line if VPATH becomes empty
22224 # (actually we leave an empty line to preserve line numbers).
22225 if test "x$srcdir" = x.; then
22226   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22227 s/:*\$(srcdir):*/:/;
22228 s/:*\${srcdir}:*/:/;
22229 s/:*@srcdir@:*/:/;
22230 s/^\([^=]*=[     ]*\):*/\1/;
22231 s/:*$//;
22232 s/^[^=]*=[       ]*$//;
22233 }'
22234 fi
22235
22236 DEFS=-DHAVE_CONFIG_H
22237
22238 ac_libobjs=
22239 ac_ltlibobjs=
22240 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22241   # 1. Remove the extension, and $U if already installed.
22242   ac_i=`echo "$ac_i" |
22243          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22244   # 2. Add them.
22245   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22246   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22247 done
22248 LIBOBJS=$ac_libobjs
22249
22250 LTLIBOBJS=$ac_ltlibobjs
22251
22252
22253
22254 : ${CONFIG_STATUS=./config.status}
22255 ac_clean_files_save=$ac_clean_files
22256 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22257 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22258 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22259 cat >$CONFIG_STATUS <<_ACEOF
22260 #! $SHELL
22261 # Generated by $as_me.
22262 # Run this file to recreate the current configuration.
22263 # Compiler output produced by configure, useful for debugging
22264 # configure, is in config.log if it exists.
22265
22266 debug=false
22267 ac_cs_recheck=false
22268 ac_cs_silent=false
22269 SHELL=\${CONFIG_SHELL-$SHELL}
22270 _ACEOF
22271
22272 cat >>$CONFIG_STATUS <<\_ACEOF
22273 ## --------------------- ##
22274 ## M4sh Initialization.  ##
22275 ## --------------------- ##
22276
22277 # Be Bourne compatible
22278 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22279   emulate sh
22280   NULLCMD=:
22281   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22282   # is contrary to our usage.  Disable this feature.
22283   alias -g '${1+"$@"}'='"$@"'
22284 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22285   set -o posix
22286 fi
22287 DUALCASE=1; export DUALCASE # for MKS sh
22288
22289 # Support unset when possible.
22290 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22291   as_unset=unset
22292 else
22293   as_unset=false
22294 fi
22295
22296
22297 # Work around bugs in pre-3.0 UWIN ksh.
22298 $as_unset ENV MAIL MAILPATH
22299 PS1='$ '
22300 PS2='> '
22301 PS4='+ '
22302
22303 # NLS nuisances.
22304 for as_var in \
22305   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22306   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22307   LC_TELEPHONE LC_TIME
22308 do
22309   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22310     eval $as_var=C; export $as_var
22311   else
22312     $as_unset $as_var
22313   fi
22314 done
22315
22316 # Required to use basename.
22317 if expr a : '\(a\)' >/dev/null 2>&1; then
22318   as_expr=expr
22319 else
22320   as_expr=false
22321 fi
22322
22323 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22324   as_basename=basename
22325 else
22326   as_basename=false
22327 fi
22328
22329
22330 # Name of the executable.
22331 as_me=`$as_basename "$0" ||
22332 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22333          X"$0" : 'X\(//\)$' \| \
22334          X"$0" : 'X\(/\)$' \| \
22335          .     : '\(.\)' 2>/dev/null ||
22336 echo X/"$0" |
22337     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22338           /^X\/\(\/\/\)$/{ s//\1/; q; }
22339           /^X\/\(\/\).*/{ s//\1/; q; }
22340           s/.*/./; q'`
22341
22342
22343 # PATH needs CR, and LINENO needs CR and PATH.
22344 # Avoid depending upon Character Ranges.
22345 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22346 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22347 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22348 as_cr_digits='0123456789'
22349 as_cr_alnum=$as_cr_Letters$as_cr_digits
22350
22351 # The user is always right.
22352 if test "${PATH_SEPARATOR+set}" != set; then
22353   echo "#! /bin/sh" >conf$$.sh
22354   echo  "exit 0"   >>conf$$.sh
22355   chmod +x conf$$.sh
22356   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22357     PATH_SEPARATOR=';'
22358   else
22359     PATH_SEPARATOR=:
22360   fi
22361   rm -f conf$$.sh
22362 fi
22363
22364
22365   as_lineno_1=$LINENO
22366   as_lineno_2=$LINENO
22367   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22368   test "x$as_lineno_1" != "x$as_lineno_2" &&
22369   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22370   # Find who we are.  Look in the path if we contain no path at all
22371   # relative or not.
22372   case $0 in
22373     *[\\/]* ) as_myself=$0 ;;
22374     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22375 for as_dir in $PATH
22376 do
22377   IFS=$as_save_IFS
22378   test -z "$as_dir" && as_dir=.
22379   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22380 done
22381
22382        ;;
22383   esac
22384   # We did not find ourselves, most probably we were run as `sh COMMAND'
22385   # in which case we are not to be found in the path.
22386   if test "x$as_myself" = x; then
22387     as_myself=$0
22388   fi
22389   if test ! -f "$as_myself"; then
22390     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22391 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22392    { (exit 1); exit 1; }; }
22393   fi
22394   case $CONFIG_SHELL in
22395   '')
22396     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22397 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22398 do
22399   IFS=$as_save_IFS
22400   test -z "$as_dir" && as_dir=.
22401   for as_base in sh bash ksh sh5; do
22402          case $as_dir in
22403          /*)
22404            if ("$as_dir/$as_base" -c '
22405   as_lineno_1=$LINENO
22406   as_lineno_2=$LINENO
22407   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22408   test "x$as_lineno_1" != "x$as_lineno_2" &&
22409   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22410              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22411              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22412              CONFIG_SHELL=$as_dir/$as_base
22413              export CONFIG_SHELL
22414              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22415            fi;;
22416          esac
22417        done
22418 done
22419 ;;
22420   esac
22421
22422   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22423   # uniformly replaced by the line number.  The first 'sed' inserts a
22424   # line-number line before each line; the second 'sed' does the real
22425   # work.  The second script uses 'N' to pair each line-number line
22426   # with the numbered line, and appends trailing '-' during
22427   # substitution so that $LINENO is not a special case at line end.
22428   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22429   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22430   sed '=' <$as_myself |
22431     sed '
22432       N
22433       s,$,-,
22434       : loop
22435       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22436       t loop
22437       s,-$,,
22438       s,^['$as_cr_digits']*\n,,
22439     ' >$as_me.lineno &&
22440   chmod +x $as_me.lineno ||
22441     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22442 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22443    { (exit 1); exit 1; }; }
22444
22445   # Don't try to exec as it changes $[0], causing all sort of problems
22446   # (the dirname of $[0] is not the place where we might find the
22447   # original and so on.  Autoconf is especially sensible to this).
22448   . ./$as_me.lineno
22449   # Exit status is that of the last command.
22450   exit
22451 }
22452
22453
22454 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22455   *c*,-n*) ECHO_N= ECHO_C='
22456 ' ECHO_T='      ' ;;
22457   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22458   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22459 esac
22460
22461 if expr a : '\(a\)' >/dev/null 2>&1; then
22462   as_expr=expr
22463 else
22464   as_expr=false
22465 fi
22466
22467 rm -f conf$$ conf$$.exe conf$$.file
22468 echo >conf$$.file
22469 if ln -s conf$$.file conf$$ 2>/dev/null; then
22470   # We could just check for DJGPP; but this test a) works b) is more generic
22471   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22472   if test -f conf$$.exe; then
22473     # Don't use ln at all; we don't have any links
22474     as_ln_s='cp -p'
22475   else
22476     as_ln_s='ln -s'
22477   fi
22478 elif ln conf$$.file conf$$ 2>/dev/null; then
22479   as_ln_s=ln
22480 else
22481   as_ln_s='cp -p'
22482 fi
22483 rm -f conf$$ conf$$.exe conf$$.file
22484
22485 if mkdir -p . 2>/dev/null; then
22486   as_mkdir_p=:
22487 else
22488   test -d ./-p && rmdir ./-p
22489   as_mkdir_p=false
22490 fi
22491
22492 as_executable_p="test -f"
22493
22494 # Sed expression to map a string onto a valid CPP name.
22495 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22496
22497 # Sed expression to map a string onto a valid variable name.
22498 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22499
22500
22501 # IFS
22502 # We need space, tab and new line, in precisely that order.
22503 as_nl='
22504 '
22505 IFS="   $as_nl"
22506
22507 # CDPATH.
22508 $as_unset CDPATH
22509
22510 exec 6>&1
22511
22512 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22513 # report actual input values of CONFIG_FILES etc. instead of their
22514 # values after options handling.  Logging --version etc. is OK.
22515 exec 5>>config.log
22516 {
22517   echo
22518   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22519 ## Running $as_me. ##
22520 _ASBOX
22521 } >&5
22522 cat >&5 <<_CSEOF
22523
22524 This file was extended by PostgreSQL $as_me 8.2devel, which was
22525 generated by GNU Autoconf 2.59.  Invocation command line was
22526
22527   CONFIG_FILES    = $CONFIG_FILES
22528   CONFIG_HEADERS  = $CONFIG_HEADERS
22529   CONFIG_LINKS    = $CONFIG_LINKS
22530   CONFIG_COMMANDS = $CONFIG_COMMANDS
22531   $ $0 $@
22532
22533 _CSEOF
22534 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22535 echo >&5
22536 _ACEOF
22537
22538 # Files that config.status was made for.
22539 if test -n "$ac_config_files"; then
22540   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22541 fi
22542
22543 if test -n "$ac_config_headers"; then
22544   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22545 fi
22546
22547 if test -n "$ac_config_links"; then
22548   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22549 fi
22550
22551 if test -n "$ac_config_commands"; then
22552   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22553 fi
22554
22555 cat >>$CONFIG_STATUS <<\_ACEOF
22556
22557 ac_cs_usage="\
22558 \`$as_me' instantiates files from templates according to the
22559 current configuration.
22560
22561 Usage: $0 [OPTIONS] [FILE]...
22562
22563   -h, --help       print this help, then exit
22564   -V, --version    print version number, then exit
22565   -q, --quiet      do not print progress messages
22566   -d, --debug      don't remove temporary files
22567       --recheck    update $as_me by reconfiguring in the same conditions
22568   --file=FILE[:TEMPLATE]
22569                    instantiate the configuration file FILE
22570   --header=FILE[:TEMPLATE]
22571                    instantiate the configuration header FILE
22572
22573 Configuration files:
22574 $config_files
22575
22576 Configuration headers:
22577 $config_headers
22578
22579 Configuration links:
22580 $config_links
22581
22582 Configuration commands:
22583 $config_commands
22584
22585 Report bugs to <bug-autoconf@gnu.org>."
22586 _ACEOF
22587
22588 cat >>$CONFIG_STATUS <<_ACEOF
22589 ac_cs_version="\\
22590 PostgreSQL config.status 8.2devel
22591 configured by $0, generated by GNU Autoconf 2.59,
22592   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22593
22594 Copyright (C) 2003 Free Software Foundation, Inc.
22595 This config.status script is free software; the Free Software Foundation
22596 gives unlimited permission to copy, distribute and modify it."
22597 srcdir=$srcdir
22598 _ACEOF
22599
22600 cat >>$CONFIG_STATUS <<\_ACEOF
22601 # If no file are specified by the user, then we need to provide default
22602 # value.  By we need to know if files were specified by the user.
22603 ac_need_defaults=:
22604 while test $# != 0
22605 do
22606   case $1 in
22607   --*=*)
22608     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22609     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22610     ac_shift=:
22611     ;;
22612   -*)
22613     ac_option=$1
22614     ac_optarg=$2
22615     ac_shift=shift
22616     ;;
22617   *) # This is not an option, so the user has probably given explicit
22618      # arguments.
22619      ac_option=$1
22620      ac_need_defaults=false;;
22621   esac
22622
22623   case $ac_option in
22624   # Handling of the options.
22625 _ACEOF
22626 cat >>$CONFIG_STATUS <<\_ACEOF
22627   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22628     ac_cs_recheck=: ;;
22629   --version | --vers* | -V )
22630     echo "$ac_cs_version"; exit 0 ;;
22631   --he | --h)
22632     # Conflict between --help and --header
22633     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22634 Try \`$0 --help' for more information." >&5
22635 echo "$as_me: error: ambiguous option: $1
22636 Try \`$0 --help' for more information." >&2;}
22637    { (exit 1); exit 1; }; };;
22638   --help | --hel | -h )
22639     echo "$ac_cs_usage"; exit 0 ;;
22640   --debug | --d* | -d )
22641     debug=: ;;
22642   --file | --fil | --fi | --f )
22643     $ac_shift
22644     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22645     ac_need_defaults=false;;
22646   --header | --heade | --head | --hea )
22647     $ac_shift
22648     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22649     ac_need_defaults=false;;
22650   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22651   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22652     ac_cs_silent=: ;;
22653
22654   # This is an error.
22655   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22656 Try \`$0 --help' for more information." >&5
22657 echo "$as_me: error: unrecognized option: $1
22658 Try \`$0 --help' for more information." >&2;}
22659    { (exit 1); exit 1; }; } ;;
22660
22661   *) ac_config_targets="$ac_config_targets $1" ;;
22662
22663   esac
22664   shift
22665 done
22666
22667 ac_configure_extra_args=
22668
22669 if $ac_cs_silent; then
22670   exec 6>/dev/null
22671   ac_configure_extra_args="$ac_configure_extra_args --silent"
22672 fi
22673
22674 _ACEOF
22675 cat >>$CONFIG_STATUS <<_ACEOF
22676 if \$ac_cs_recheck; then
22677   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22678   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22679 fi
22680
22681 _ACEOF
22682
22683
22684
22685
22686
22687 cat >>$CONFIG_STATUS <<\_ACEOF
22688 for ac_config_target in $ac_config_targets
22689 do
22690   case "$ac_config_target" in
22691   # Handling of arguments.
22692   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
22693   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
22694   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
22695   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
22696   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
22697   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
22698   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
22699   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
22700   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
22701   "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
22702   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
22703   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22704 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22705    { (exit 1); exit 1; }; };;
22706   esac
22707 done
22708
22709 # If the user did not use the arguments to specify the items to instantiate,
22710 # then the envvar interface is used.  Set only those that are not.
22711 # We use the long form for the default assignment because of an extremely
22712 # bizarre bug on SunOS 4.1.3.
22713 if $ac_need_defaults; then
22714   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22715   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22716   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22717   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22718 fi
22719
22720 # Have a temporary directory for convenience.  Make it in the build tree
22721 # simply because there is no reason to put it here, and in addition,
22722 # creating and moving files from /tmp can sometimes cause problems.
22723 # Create a temporary directory, and hook for its removal unless debugging.
22724 $debug ||
22725 {
22726   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22727   trap '{ (exit 1); exit 1; }' 1 2 13 15
22728 }
22729
22730 # Create a (secure) tmp directory for tmp files.
22731
22732 {
22733   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22734   test -n "$tmp" && test -d "$tmp"
22735 }  ||
22736 {
22737   tmp=./confstat$$-$RANDOM
22738   (umask 077 && mkdir $tmp)
22739 } ||
22740 {
22741    echo "$me: cannot create a temporary directory in ." >&2
22742    { (exit 1); exit 1; }
22743 }
22744
22745 _ACEOF
22746
22747 cat >>$CONFIG_STATUS <<_ACEOF
22748
22749 #
22750 # CONFIG_FILES section.
22751 #
22752
22753 # No need to generate the scripts if there are no CONFIG_FILES.
22754 # This happens for instance when ./config.status config.h
22755 if test -n "\$CONFIG_FILES"; then
22756   # Protect against being on the right side of a sed subst in config.status.
22757   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22758    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22759 s,@SHELL@,$SHELL,;t t
22760 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22761 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22762 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22763 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22764 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22765 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22766 s,@exec_prefix@,$exec_prefix,;t t
22767 s,@prefix@,$prefix,;t t
22768 s,@program_transform_name@,$program_transform_name,;t t
22769 s,@bindir@,$bindir,;t t
22770 s,@sbindir@,$sbindir,;t t
22771 s,@libexecdir@,$libexecdir,;t t
22772 s,@datadir@,$datadir,;t t
22773 s,@sysconfdir@,$sysconfdir,;t t
22774 s,@sharedstatedir@,$sharedstatedir,;t t
22775 s,@localstatedir@,$localstatedir,;t t
22776 s,@libdir@,$libdir,;t t
22777 s,@includedir@,$includedir,;t t
22778 s,@oldincludedir@,$oldincludedir,;t t
22779 s,@infodir@,$infodir,;t t
22780 s,@mandir@,$mandir,;t t
22781 s,@build_alias@,$build_alias,;t t
22782 s,@host_alias@,$host_alias,;t t
22783 s,@target_alias@,$target_alias,;t t
22784 s,@DEFS@,$DEFS,;t t
22785 s,@ECHO_C@,$ECHO_C,;t t
22786 s,@ECHO_N@,$ECHO_N,;t t
22787 s,@ECHO_T@,$ECHO_T,;t t
22788 s,@LIBS@,$LIBS,;t t
22789 s,@configure_args@,$configure_args,;t t
22790 s,@build@,$build,;t t
22791 s,@build_cpu@,$build_cpu,;t t
22792 s,@build_vendor@,$build_vendor,;t t
22793 s,@build_os@,$build_os,;t t
22794 s,@host@,$host,;t t
22795 s,@host_cpu@,$host_cpu,;t t
22796 s,@host_vendor@,$host_vendor,;t t
22797 s,@host_os@,$host_os,;t t
22798 s,@PORTNAME@,$PORTNAME,;t t
22799 s,@docdir@,$docdir,;t t
22800 s,@enable_nls@,$enable_nls,;t t
22801 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
22802 s,@default_port@,$default_port,;t t
22803 s,@enable_shared@,$enable_shared,;t t
22804 s,@enable_rpath@,$enable_rpath,;t t
22805 s,@enable_debug@,$enable_debug,;t t
22806 s,@CC@,$CC,;t t
22807 s,@CFLAGS@,$CFLAGS,;t t
22808 s,@LDFLAGS@,$LDFLAGS,;t t
22809 s,@CPPFLAGS@,$CPPFLAGS,;t t
22810 s,@ac_ct_CC@,$ac_ct_CC,;t t
22811 s,@EXEEXT@,$EXEEXT,;t t
22812 s,@OBJEXT@,$OBJEXT,;t t
22813 s,@CPP@,$CPP,;t t
22814 s,@GCC@,$GCC,;t t
22815 s,@TAS@,$TAS,;t t
22816 s,@autodepend@,$autodepend,;t t
22817 s,@INCLUDES@,$INCLUDES,;t t
22818 s,@enable_thread_safety@,$enable_thread_safety,;t t
22819 s,@with_tcl@,$with_tcl,;t t
22820 s,@with_perl@,$with_perl,;t t
22821 s,@with_python@,$with_python,;t t
22822 s,@with_krb5@,$with_krb5,;t t
22823 s,@krb_srvtab@,$krb_srvtab,;t t
22824 s,@with_pam@,$with_pam,;t t
22825 s,@with_bonjour@,$with_bonjour,;t t
22826 s,@with_openssl@,$with_openssl,;t t
22827 s,@with_zlib@,$with_zlib,;t t
22828 s,@EGREP@,$EGREP,;t t
22829 s,@ELF_SYS@,$ELF_SYS,;t t
22830 s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
22831 s,@AWK@,$AWK,;t t
22832 s,@FLEX@,$FLEX,;t t
22833 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
22834 s,@LN_S@,$LN_S,;t t
22835 s,@LD@,$LD,;t t
22836 s,@with_gnu_ld@,$with_gnu_ld,;t t
22837 s,@ld_R_works@,$ld_R_works,;t t
22838 s,@RANLIB@,$RANLIB,;t t
22839 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22840 s,@LORDER@,$LORDER,;t t
22841 s,@TAR@,$TAR,;t t
22842 s,@STRIP@,$STRIP,;t t
22843 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22844 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
22845 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
22846 s,@YACC@,$YACC,;t t
22847 s,@YFLAGS@,$YFLAGS,;t t
22848 s,@PERL@,$PERL,;t t
22849 s,@perl_archlibexp@,$perl_archlibexp,;t t
22850 s,@perl_privlibexp@,$perl_privlibexp,;t t
22851 s,@perl_useshrplib@,$perl_useshrplib,;t t
22852 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
22853 s,@PYTHON@,$PYTHON,;t t
22854 s,@python_version@,$python_version,;t t
22855 s,@python_configdir@,$python_configdir,;t t
22856 s,@python_includespec@,$python_includespec,;t t
22857 s,@python_libdir@,$python_libdir,;t t
22858 s,@python_libspec@,$python_libspec,;t t
22859 s,@python_additional_libs@,$python_additional_libs,;t t
22860 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
22861 s,@LIBOBJS@,$LIBOBJS,;t t
22862 s,@acx_pthread_config@,$acx_pthread_config,;t t
22863 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
22864 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
22865 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
22866 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
22867 s,@MSGFMT@,$MSGFMT,;t t
22868 s,@MSGMERGE@,$MSGMERGE,;t t
22869 s,@XGETTEXT@,$XGETTEXT,;t t
22870 s,@localedir@,$localedir,;t t
22871 s,@TCLSH@,$TCLSH,;t t
22872 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
22873 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
22874 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
22875 s,@TCL_LIBS@,$TCL_LIBS,;t t
22876 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22877 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
22878 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22879 s,@NSGMLS@,$NSGMLS,;t t
22880 s,@JADE@,$JADE,;t t
22881 s,@have_docbook@,$have_docbook,;t t
22882 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
22883 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
22884 s,@SGMLSPL@,$SGMLSPL,;t t
22885 s,@vpath_build@,$vpath_build,;t t
22886 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22887 CEOF
22888
22889 _ACEOF
22890
22891   cat >>$CONFIG_STATUS <<\_ACEOF
22892   # Split the substitutions into bite-sized pieces for seds with
22893   # small command number limits, like on Digital OSF/1 and HP-UX.
22894   ac_max_sed_lines=48
22895   ac_sed_frag=1 # Number of current file.
22896   ac_beg=1 # First line for current file.
22897   ac_end=$ac_max_sed_lines # Line after last line for current file.
22898   ac_more_lines=:
22899   ac_sed_cmds=
22900   while $ac_more_lines; do
22901     if test $ac_beg -gt 1; then
22902       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22903     else
22904       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22905     fi
22906     if test ! -s $tmp/subs.frag; then
22907       ac_more_lines=false
22908     else
22909       # The purpose of the label and of the branching condition is to
22910       # speed up the sed processing (if there are no `@' at all, there
22911       # is no need to browse any of the substitutions).
22912       # These are the two extra sed commands mentioned above.
22913       (echo ':t
22914   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22915       if test -z "$ac_sed_cmds"; then
22916         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22917       else
22918         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22919       fi
22920       ac_sed_frag=`expr $ac_sed_frag + 1`
22921       ac_beg=$ac_end
22922       ac_end=`expr $ac_end + $ac_max_sed_lines`
22923     fi
22924   done
22925   if test -z "$ac_sed_cmds"; then
22926     ac_sed_cmds=cat
22927   fi
22928 fi # test -n "$CONFIG_FILES"
22929
22930 _ACEOF
22931 cat >>$CONFIG_STATUS <<\_ACEOF
22932 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22933   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22934   case $ac_file in
22935   - | *:- | *:-:* ) # input from stdin
22936         cat >$tmp/stdin
22937         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22938         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22939   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22940         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22941   * )   ac_file_in=$ac_file.in ;;
22942   esac
22943
22944   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22945   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22946 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22947          X"$ac_file" : 'X\(//\)[^/]' \| \
22948          X"$ac_file" : 'X\(//\)$' \| \
22949          X"$ac_file" : 'X\(/\)' \| \
22950          .     : '\(.\)' 2>/dev/null ||
22951 echo X"$ac_file" |
22952     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22953           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22954           /^X\(\/\/\)$/{ s//\1/; q; }
22955           /^X\(\/\).*/{ s//\1/; q; }
22956           s/.*/./; q'`
22957   { if $as_mkdir_p; then
22958     mkdir -p "$ac_dir"
22959   else
22960     as_dir="$ac_dir"
22961     as_dirs=
22962     while test ! -d "$as_dir"; do
22963       as_dirs="$as_dir $as_dirs"
22964       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22965 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22966          X"$as_dir" : 'X\(//\)[^/]' \| \
22967          X"$as_dir" : 'X\(//\)$' \| \
22968          X"$as_dir" : 'X\(/\)' \| \
22969          .     : '\(.\)' 2>/dev/null ||
22970 echo X"$as_dir" |
22971     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22972           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22973           /^X\(\/\/\)$/{ s//\1/; q; }
22974           /^X\(\/\).*/{ s//\1/; q; }
22975           s/.*/./; q'`
22976     done
22977     test ! -n "$as_dirs" || mkdir $as_dirs
22978   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22979 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22980    { (exit 1); exit 1; }; }; }
22981
22982   ac_builddir=.
22983
22984 if test "$ac_dir" != .; then
22985   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22986   # A "../" for each directory in $ac_dir_suffix.
22987   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22988 else
22989   ac_dir_suffix= ac_top_builddir=
22990 fi
22991
22992 case $srcdir in
22993   .)  # No --srcdir option.  We are building in place.
22994     ac_srcdir=.
22995     if test -z "$ac_top_builddir"; then
22996        ac_top_srcdir=.
22997     else
22998        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22999     fi ;;
23000   [\\/]* | ?:[\\/]* )  # Absolute path.
23001     ac_srcdir=$srcdir$ac_dir_suffix;
23002     ac_top_srcdir=$srcdir ;;
23003   *) # Relative path.
23004     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23005     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23006 esac
23007
23008 # Do not use `cd foo && pwd` to compute absolute paths, because
23009 # the directories may not exist.
23010 case `pwd` in
23011 .) ac_abs_builddir="$ac_dir";;
23012 *)
23013   case "$ac_dir" in
23014   .) ac_abs_builddir=`pwd`;;
23015   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23016   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23017   esac;;
23018 esac
23019 case $ac_abs_builddir in
23020 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23021 *)
23022   case ${ac_top_builddir}. in
23023   .) ac_abs_top_builddir=$ac_abs_builddir;;
23024   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23025   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23026   esac;;
23027 esac
23028 case $ac_abs_builddir in
23029 .) ac_abs_srcdir=$ac_srcdir;;
23030 *)
23031   case $ac_srcdir in
23032   .) ac_abs_srcdir=$ac_abs_builddir;;
23033   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23034   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23035   esac;;
23036 esac
23037 case $ac_abs_builddir in
23038 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23039 *)
23040   case $ac_top_srcdir in
23041   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23042   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23043   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23044   esac;;
23045 esac
23046
23047
23048
23049   if test x"$ac_file" != x-; then
23050     { echo "$as_me:$LINENO: creating $ac_file" >&5
23051 echo "$as_me: creating $ac_file" >&6;}
23052     rm -f "$ac_file"
23053   fi
23054   # Let's still pretend it is `configure' which instantiates (i.e., don't
23055   # use $as_me), people would be surprised to read:
23056   #    /* config.h.  Generated by config.status.  */
23057   if test x"$ac_file" = x-; then
23058     configure_input=
23059   else
23060     configure_input="$ac_file.  "
23061   fi
23062   configure_input=$configure_input"Generated from `echo $ac_file_in |
23063                                      sed 's,.*/,,'` by configure."
23064
23065   # First look for the input files in the build tree, otherwise in the
23066   # src tree.
23067   ac_file_inputs=`IFS=:
23068     for f in $ac_file_in; do
23069       case $f in
23070       -) echo $tmp/stdin ;;
23071       [\\/$]*)
23072          # Absolute (can't be DOS-style, as IFS=:)
23073          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23074 echo "$as_me: error: cannot find input file: $f" >&2;}
23075    { (exit 1); exit 1; }; }
23076          echo "$f";;
23077       *) # Relative
23078          if test -f "$f"; then
23079            # Build tree
23080            echo "$f"
23081          elif test -f "$srcdir/$f"; then
23082            # Source tree
23083            echo "$srcdir/$f"
23084          else
23085            # /dev/null tree
23086            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23087 echo "$as_me: error: cannot find input file: $f" >&2;}
23088    { (exit 1); exit 1; }; }
23089          fi;;
23090       esac
23091     done` || { (exit 1); exit 1; }
23092 _ACEOF
23093 cat >>$CONFIG_STATUS <<_ACEOF
23094   sed "$ac_vpsub
23095 $extrasub
23096 _ACEOF
23097 cat >>$CONFIG_STATUS <<\_ACEOF
23098 :t
23099 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23100 s,@configure_input@,$configure_input,;t t
23101 s,@srcdir@,$ac_srcdir,;t t
23102 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23103 s,@top_srcdir@,$ac_top_srcdir,;t t
23104 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23105 s,@builddir@,$ac_builddir,;t t
23106 s,@abs_builddir@,$ac_abs_builddir,;t t
23107 s,@top_builddir@,$ac_top_builddir,;t t
23108 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23109 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23110   rm -f $tmp/stdin
23111   if test x"$ac_file" != x-; then
23112     mv $tmp/out $ac_file
23113   else
23114     cat $tmp/out
23115     rm -f $tmp/out
23116   fi
23117
23118 done
23119 _ACEOF
23120 cat >>$CONFIG_STATUS <<\_ACEOF
23121
23122 #
23123 # CONFIG_HEADER section.
23124 #
23125
23126 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23127 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23128 #
23129 # ac_d sets the value in "#define NAME VALUE" lines.
23130 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
23131 ac_dB='[         ].*$,\1#\2'
23132 ac_dC=' '
23133 ac_dD=',;t'
23134 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23135 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23136 ac_uB='$,\1#\2define\3'
23137 ac_uC=' '
23138 ac_uD=',;t'
23139
23140 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23141   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23142   case $ac_file in
23143   - | *:- | *:-:* ) # input from stdin
23144         cat >$tmp/stdin
23145         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23146         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23147   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23148         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23149   * )   ac_file_in=$ac_file.in ;;
23150   esac
23151
23152   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23153 echo "$as_me: creating $ac_file" >&6;}
23154
23155   # First look for the input files in the build tree, otherwise in the
23156   # src tree.
23157   ac_file_inputs=`IFS=:
23158     for f in $ac_file_in; do
23159       case $f in
23160       -) echo $tmp/stdin ;;
23161       [\\/$]*)
23162          # Absolute (can't be DOS-style, as IFS=:)
23163          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23164 echo "$as_me: error: cannot find input file: $f" >&2;}
23165    { (exit 1); exit 1; }; }
23166          # Do quote $f, to prevent DOS paths from being IFS'd.
23167          echo "$f";;
23168       *) # Relative
23169          if test -f "$f"; then
23170            # Build tree
23171            echo "$f"
23172          elif test -f "$srcdir/$f"; then
23173            # Source tree
23174            echo "$srcdir/$f"
23175          else
23176            # /dev/null tree
23177            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23178 echo "$as_me: error: cannot find input file: $f" >&2;}
23179    { (exit 1); exit 1; }; }
23180          fi;;
23181       esac
23182     done` || { (exit 1); exit 1; }
23183   # Remove the trailing spaces.
23184   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
23185
23186 _ACEOF
23187
23188 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23189 # `conftest.undefs', that substitutes the proper values into
23190 # config.h.in to produce config.h.  The first handles `#define'
23191 # templates, and the second `#undef' templates.
23192 # And first: Protect against being on the right side of a sed subst in
23193 # config.status.  Protect against being in an unquoted here document
23194 # in config.status.
23195 rm -f conftest.defines conftest.undefs
23196 # Using a here document instead of a string reduces the quoting nightmare.
23197 # Putting comments in sed scripts is not portable.
23198 #
23199 # `end' is used to avoid that the second main sed command (meant for
23200 # 0-ary CPP macros) applies to n-ary macro definitions.
23201 # See the Autoconf documentation for `clear'.
23202 cat >confdef2sed.sed <<\_ACEOF
23203 s/[\\&,]/\\&/g
23204 s,[\\$`],\\&,g
23205 t clear
23206 : clear
23207 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23208 t end
23209 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23210 : end
23211 _ACEOF
23212 # If some macros were called several times there might be several times
23213 # the same #defines, which is useless.  Nevertheless, we may not want to
23214 # sort them, since we want the *last* AC-DEFINE to be honored.
23215 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23216 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23217 rm -f confdef2sed.sed
23218
23219 # This sed command replaces #undef with comments.  This is necessary, for
23220 # example, in the case of _POSIX_SOURCE, which is predefined and required
23221 # on some systems where configure will not decide to define it.
23222 cat >>conftest.undefs <<\_ACEOF
23223 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23224 _ACEOF
23225
23226 # Break up conftest.defines because some shells have a limit on the size
23227 # of here documents, and old seds have small limits too (100 cmds).
23228 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23229 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23230 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23231 echo '  :' >>$CONFIG_STATUS
23232 rm -f conftest.tail
23233 while grep . conftest.defines >/dev/null
23234 do
23235   # Write a limited-size here document to $tmp/defines.sed.
23236   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23237   # Speed up: don't consider the non `#define' lines.
23238   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
23239   # Work around the forget-to-reset-the-flag bug.
23240   echo 't clr' >>$CONFIG_STATUS
23241   echo ': clr' >>$CONFIG_STATUS
23242   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23243   echo 'CEOF
23244   sed -f $tmp/defines.sed $tmp/in >$tmp/out
23245   rm -f $tmp/in
23246   mv $tmp/out $tmp/in
23247 ' >>$CONFIG_STATUS
23248   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23249   rm -f conftest.defines
23250   mv conftest.tail conftest.defines
23251 done
23252 rm -f conftest.defines
23253 echo '  fi # grep' >>$CONFIG_STATUS
23254 echo >>$CONFIG_STATUS
23255
23256 # Break up conftest.undefs because some shells have a limit on the size
23257 # of here documents, and old seds have small limits too (100 cmds).
23258 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23259 rm -f conftest.tail
23260 while grep . conftest.undefs >/dev/null
23261 do
23262   # Write a limited-size here document to $tmp/undefs.sed.
23263   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23264   # Speed up: don't consider the non `#undef'
23265   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
23266   # Work around the forget-to-reset-the-flag bug.
23267   echo 't clr' >>$CONFIG_STATUS
23268   echo ': clr' >>$CONFIG_STATUS
23269   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23270   echo 'CEOF
23271   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23272   rm -f $tmp/in
23273   mv $tmp/out $tmp/in
23274 ' >>$CONFIG_STATUS
23275   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23276   rm -f conftest.undefs
23277   mv conftest.tail conftest.undefs
23278 done
23279 rm -f conftest.undefs
23280
23281 cat >>$CONFIG_STATUS <<\_ACEOF
23282   # Let's still pretend it is `configure' which instantiates (i.e., don't
23283   # use $as_me), people would be surprised to read:
23284   #    /* config.h.  Generated by config.status.  */
23285   if test x"$ac_file" = x-; then
23286     echo "/* Generated by configure.  */" >$tmp/config.h
23287   else
23288     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23289   fi
23290   cat $tmp/in >>$tmp/config.h
23291   rm -f $tmp/in
23292   if test x"$ac_file" != x-; then
23293     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23294       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23295 echo "$as_me: $ac_file is unchanged" >&6;}
23296     else
23297       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23298 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23299          X"$ac_file" : 'X\(//\)[^/]' \| \
23300          X"$ac_file" : 'X\(//\)$' \| \
23301          X"$ac_file" : 'X\(/\)' \| \
23302          .     : '\(.\)' 2>/dev/null ||
23303 echo X"$ac_file" |
23304     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23305           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23306           /^X\(\/\/\)$/{ s//\1/; q; }
23307           /^X\(\/\).*/{ s//\1/; q; }
23308           s/.*/./; q'`
23309       { if $as_mkdir_p; then
23310     mkdir -p "$ac_dir"
23311   else
23312     as_dir="$ac_dir"
23313     as_dirs=
23314     while test ! -d "$as_dir"; do
23315       as_dirs="$as_dir $as_dirs"
23316       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23317 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23318          X"$as_dir" : 'X\(//\)[^/]' \| \
23319          X"$as_dir" : 'X\(//\)$' \| \
23320          X"$as_dir" : 'X\(/\)' \| \
23321          .     : '\(.\)' 2>/dev/null ||
23322 echo X"$as_dir" |
23323     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23324           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23325           /^X\(\/\/\)$/{ s//\1/; q; }
23326           /^X\(\/\).*/{ s//\1/; q; }
23327           s/.*/./; q'`
23328     done
23329     test ! -n "$as_dirs" || mkdir $as_dirs
23330   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23331 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23332    { (exit 1); exit 1; }; }; }
23333
23334       rm -f $ac_file
23335       mv $tmp/config.h $ac_file
23336     fi
23337   else
23338     cat $tmp/config.h
23339     rm -f $tmp/config.h
23340   fi
23341   # Run the commands associated with the file.
23342   case $ac_file in
23343     src/include/pg_config.h )
23344 # Update timestamp for pg_config.h (see Makefile.global)
23345 echo >src/include/stamp-h
23346  ;;
23347   esac
23348 done
23349 _ACEOF
23350 cat >>$CONFIG_STATUS <<\_ACEOF
23351
23352 #
23353 # CONFIG_LINKS section.
23354 #
23355
23356 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
23357   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23358   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23359
23360   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23361 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
23362
23363   if test ! -r $srcdir/$ac_source; then
23364     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23365 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23366    { (exit 1); exit 1; }; }
23367   fi
23368   rm -f $ac_dest
23369
23370   # Make relative symlinks.
23371   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
23372 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23373          X"$ac_dest" : 'X\(//\)[^/]' \| \
23374          X"$ac_dest" : 'X\(//\)$' \| \
23375          X"$ac_dest" : 'X\(/\)' \| \
23376          .     : '\(.\)' 2>/dev/null ||
23377 echo X"$ac_dest" |
23378     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23379           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23380           /^X\(\/\/\)$/{ s//\1/; q; }
23381           /^X\(\/\).*/{ s//\1/; q; }
23382           s/.*/./; q'`
23383   { if $as_mkdir_p; then
23384     mkdir -p "$ac_dest_dir"
23385   else
23386     as_dir="$ac_dest_dir"
23387     as_dirs=
23388     while test ! -d "$as_dir"; do
23389       as_dirs="$as_dir $as_dirs"
23390       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23391 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23392          X"$as_dir" : 'X\(//\)[^/]' \| \
23393          X"$as_dir" : 'X\(//\)$' \| \
23394          X"$as_dir" : 'X\(/\)' \| \
23395          .     : '\(.\)' 2>/dev/null ||
23396 echo X"$as_dir" |
23397     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23398           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23399           /^X\(\/\/\)$/{ s//\1/; q; }
23400           /^X\(\/\).*/{ s//\1/; q; }
23401           s/.*/./; q'`
23402     done
23403     test ! -n "$as_dirs" || mkdir $as_dirs
23404   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23405 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23406    { (exit 1); exit 1; }; }; }
23407
23408   ac_builddir=.
23409
23410 if test "$ac_dest_dir" != .; then
23411   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23412   # A "../" for each directory in $ac_dir_suffix.
23413   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23414 else
23415   ac_dir_suffix= ac_top_builddir=
23416 fi
23417
23418 case $srcdir in
23419   .)  # No --srcdir option.  We are building in place.
23420     ac_srcdir=.
23421     if test -z "$ac_top_builddir"; then
23422        ac_top_srcdir=.
23423     else
23424        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23425     fi ;;
23426   [\\/]* | ?:[\\/]* )  # Absolute path.
23427     ac_srcdir=$srcdir$ac_dir_suffix;
23428     ac_top_srcdir=$srcdir ;;
23429   *) # Relative path.
23430     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23431     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23432 esac
23433
23434 # Do not use `cd foo && pwd` to compute absolute paths, because
23435 # the directories may not exist.
23436 case `pwd` in
23437 .) ac_abs_builddir="$ac_dest_dir";;
23438 *)
23439   case "$ac_dest_dir" in
23440   .) ac_abs_builddir=`pwd`;;
23441   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23442   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23443   esac;;
23444 esac
23445 case $ac_abs_builddir in
23446 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23447 *)
23448   case ${ac_top_builddir}. in
23449   .) ac_abs_top_builddir=$ac_abs_builddir;;
23450   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23451   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23452   esac;;
23453 esac
23454 case $ac_abs_builddir in
23455 .) ac_abs_srcdir=$ac_srcdir;;
23456 *)
23457   case $ac_srcdir in
23458   .) ac_abs_srcdir=$ac_abs_builddir;;
23459   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23460   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23461   esac;;
23462 esac
23463 case $ac_abs_builddir in
23464 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23465 *)
23466   case $ac_top_srcdir in
23467   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23468   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23469   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23470   esac;;
23471 esac
23472
23473
23474   case $srcdir in
23475   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23476       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
23477   esac
23478
23479   # Try a symlink, then a hard link, then a copy.
23480   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23481     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23482     cp -p $srcdir/$ac_source $ac_dest ||
23483     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23484 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23485    { (exit 1); exit 1; }; }
23486 done
23487 _ACEOF
23488 cat >>$CONFIG_STATUS <<\_ACEOF
23489
23490 #
23491 # CONFIG_COMMANDS section.
23492 #
23493 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23494   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23495   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23496   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23497 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23498          X"$ac_dest" : 'X\(//\)[^/]' \| \
23499          X"$ac_dest" : 'X\(//\)$' \| \
23500          X"$ac_dest" : 'X\(/\)' \| \
23501          .     : '\(.\)' 2>/dev/null ||
23502 echo X"$ac_dest" |
23503     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23504           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23505           /^X\(\/\/\)$/{ s//\1/; q; }
23506           /^X\(\/\).*/{ s//\1/; q; }
23507           s/.*/./; q'`
23508   { if $as_mkdir_p; then
23509     mkdir -p "$ac_dir"
23510   else
23511     as_dir="$ac_dir"
23512     as_dirs=
23513     while test ! -d "$as_dir"; do
23514       as_dirs="$as_dir $as_dirs"
23515       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23516 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23517          X"$as_dir" : 'X\(//\)[^/]' \| \
23518          X"$as_dir" : 'X\(//\)$' \| \
23519          X"$as_dir" : 'X\(/\)' \| \
23520          .     : '\(.\)' 2>/dev/null ||
23521 echo X"$as_dir" |
23522     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23523           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23524           /^X\(\/\/\)$/{ s//\1/; q; }
23525           /^X\(\/\).*/{ s//\1/; q; }
23526           s/.*/./; q'`
23527     done
23528     test ! -n "$as_dirs" || mkdir $as_dirs
23529   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23530 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23531    { (exit 1); exit 1; }; }; }
23532
23533   ac_builddir=.
23534
23535 if test "$ac_dir" != .; then
23536   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23537   # A "../" for each directory in $ac_dir_suffix.
23538   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23539 else
23540   ac_dir_suffix= ac_top_builddir=
23541 fi
23542
23543 case $srcdir in
23544   .)  # No --srcdir option.  We are building in place.
23545     ac_srcdir=.
23546     if test -z "$ac_top_builddir"; then
23547        ac_top_srcdir=.
23548     else
23549        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23550     fi ;;
23551   [\\/]* | ?:[\\/]* )  # Absolute path.
23552     ac_srcdir=$srcdir$ac_dir_suffix;
23553     ac_top_srcdir=$srcdir ;;
23554   *) # Relative path.
23555     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23556     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23557 esac
23558
23559 # Do not use `cd foo && pwd` to compute absolute paths, because
23560 # the directories may not exist.
23561 case `pwd` in
23562 .) ac_abs_builddir="$ac_dir";;
23563 *)
23564   case "$ac_dir" in
23565   .) ac_abs_builddir=`pwd`;;
23566   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23567   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23568   esac;;
23569 esac
23570 case $ac_abs_builddir in
23571 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23572 *)
23573   case ${ac_top_builddir}. in
23574   .) ac_abs_top_builddir=$ac_abs_builddir;;
23575   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23576   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23577   esac;;
23578 esac
23579 case $ac_abs_builddir in
23580 .) ac_abs_srcdir=$ac_srcdir;;
23581 *)
23582   case $ac_srcdir in
23583   .) ac_abs_srcdir=$ac_abs_builddir;;
23584   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23585   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23586   esac;;
23587 esac
23588 case $ac_abs_builddir in
23589 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23590 *)
23591   case $ac_top_srcdir in
23592   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23593   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23594   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23595   esac;;
23596 esac
23597
23598
23599   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23600 echo "$as_me: executing $ac_dest commands" >&6;}
23601   case $ac_dest in
23602     check_win32_symlinks )
23603 # Links sometimes fail undetected on Mingw -
23604 # so here we detect it and warn the user
23605 for FILE in $CONFIG_LINKS
23606  do
23607         # test -e works for symlinks in the MinGW console
23608         test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE - please fix by hand" >&5
23609 echo "$as_me: WARNING: *** link for $FILE - please fix by hand" >&2;}
23610  done
23611  ;;
23612   esac
23613 done
23614 _ACEOF
23615
23616 cat >>$CONFIG_STATUS <<\_ACEOF
23617
23618 { (exit 0); exit 0; }
23619 _ACEOF
23620 chmod +x $CONFIG_STATUS
23621 ac_clean_files=$ac_clean_files_save
23622
23623
23624 # configure is writing to config.log, and then calls config.status.
23625 # config.status does its own redirection, appending to config.log.
23626 # Unfortunately, on DOS this fails, as config.log is still kept open
23627 # by configure, so config.status won't be able to write to it; its
23628 # output is simply discarded.  So we exec the FD to /dev/null,
23629 # effectively closing config.log, so it can be properly (re)opened and
23630 # appended to by config.status.  When coming back to configure, we
23631 # need to make the FD available again.
23632 if test "$no_create" != yes; then
23633   ac_cs_success=:
23634   ac_config_status_args=
23635   test "$silent" = yes &&
23636     ac_config_status_args="$ac_config_status_args --quiet"
23637   exec 5>/dev/null
23638   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23639   exec 5>>config.log
23640   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23641   # would make configure fail if this is the last instruction.
23642   $ac_cs_success || { (exit 1); exit 1; }
23643 fi
23644
23645