]> granicus.if.org Git - postgresql/blob - configure
DTrace support, with a small initial set of probes
[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-2006, 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 DTRACE DTRACEFLAGS enable_dtrace CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP GCC TAS autodepend INCLUDES enable_thread_safety with_tcl with_perl with_python with_krb5 krb_srvtab with_pam with_ldap 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 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-dtrace         build with DTrace support
869   --enable-depend         turn on automatic dependency tracking
870   --enable-cassert        enable assertion checks (for debugging)
871   --enable-thread-safety  make client libraries thread-safe
872   --enable-thread-safety-force  force thread-safety in spite of thread test failure
873   --disable-largefile     omit support for large files
874
875 Optional Packages:
876   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
877   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
878
879   --with-docdir=DIR       install the documentation in DIR [PREFIX/doc]
880   --without-docdir        do not install the documentation
881   --with-includes=DIRS    look for additional header files in DIRS
882   --with-libraries=DIRS   look for additional libraries in DIRS
883   --with-libs=DIRS        alternative spelling of --with-libraries
884   --with-pgport=PORTNUM   change default port number [5432]
885   --with-tcl              build Tcl modules (PL/Tcl)
886   --with-tclconfig=DIR    tclConfig.sh is in DIR
887   --with-perl             build Perl modules (PL/Perl)
888   --with-python           build Python modules (PL/Python)
889   --with-krb5             build with Kerberos 5 support
890   --with-krb-srvnam=NAME  name of the default service principal in Kerberos [postgres]
891   --with-pam              build with PAM support
892   --with-ldap             build with LDAP support
893   --with-bonjour          build with Bonjour support
894   --with-openssl          build with OpenSSL support
895   --with-libedit-preferred  prefer BSD Libedit over GNU Readline
896   --without-readline      do not use GNU Readline / BSD Libedit line editing
897   --without-zlib          do not use Zlib
898   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
899
900 Some influential environment variables:
901   CC          C compiler command
902   CFLAGS      C compiler flags
903   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
904               nonstandard directory <lib dir>
905   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
906               headers in a nonstandard directory <include dir>
907   CPP         C preprocessor
908   LDFLAGS_SL
909   DOCBOOKSTYLE
910               location of DocBook stylesheets
911
912 Use these variables to override the choices made by `configure' or to help
913 it to find libraries and programs with nonstandard names/locations.
914
915 Report bugs to <pgsql-bugs@postgresql.org>.
916 _ACEOF
917 fi
918
919 if test "$ac_init_help" = "recursive"; then
920   # If there are subdirs, report their specific --help.
921   ac_popdir=`pwd`
922   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
923     test -d $ac_dir || continue
924     ac_builddir=.
925
926 if test "$ac_dir" != .; then
927   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
928   # A "../" for each directory in $ac_dir_suffix.
929   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
930 else
931   ac_dir_suffix= ac_top_builddir=
932 fi
933
934 case $srcdir in
935   .)  # No --srcdir option.  We are building in place.
936     ac_srcdir=.
937     if test -z "$ac_top_builddir"; then
938        ac_top_srcdir=.
939     else
940        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
941     fi ;;
942   [\\/]* | ?:[\\/]* )  # Absolute path.
943     ac_srcdir=$srcdir$ac_dir_suffix;
944     ac_top_srcdir=$srcdir ;;
945   *) # Relative path.
946     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
947     ac_top_srcdir=$ac_top_builddir$srcdir ;;
948 esac
949
950 # Do not use `cd foo && pwd` to compute absolute paths, because
951 # the directories may not exist.
952 case `pwd` in
953 .) ac_abs_builddir="$ac_dir";;
954 *)
955   case "$ac_dir" in
956   .) ac_abs_builddir=`pwd`;;
957   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
958   *) ac_abs_builddir=`pwd`/"$ac_dir";;
959   esac;;
960 esac
961 case $ac_abs_builddir in
962 .) ac_abs_top_builddir=${ac_top_builddir}.;;
963 *)
964   case ${ac_top_builddir}. in
965   .) ac_abs_top_builddir=$ac_abs_builddir;;
966   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
967   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
968   esac;;
969 esac
970 case $ac_abs_builddir in
971 .) ac_abs_srcdir=$ac_srcdir;;
972 *)
973   case $ac_srcdir in
974   .) ac_abs_srcdir=$ac_abs_builddir;;
975   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
976   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
977   esac;;
978 esac
979 case $ac_abs_builddir in
980 .) ac_abs_top_srcdir=$ac_top_srcdir;;
981 *)
982   case $ac_top_srcdir in
983   .) ac_abs_top_srcdir=$ac_abs_builddir;;
984   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
985   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
986   esac;;
987 esac
988
989     cd $ac_dir
990     # Check for guested configure; otherwise get Cygnus style configure.
991     if test -f $ac_srcdir/configure.gnu; then
992       echo
993       $SHELL $ac_srcdir/configure.gnu  --help=recursive
994     elif test -f $ac_srcdir/configure; then
995       echo
996       $SHELL $ac_srcdir/configure  --help=recursive
997     elif test -f $ac_srcdir/configure.ac ||
998            test -f $ac_srcdir/configure.in; then
999       echo
1000       $ac_configure --help
1001     else
1002       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1003     fi
1004     cd $ac_popdir
1005   done
1006 fi
1007
1008 test -n "$ac_init_help" && exit 0
1009 if $ac_init_version; then
1010   cat <<\_ACEOF
1011 PostgreSQL configure 8.2devel
1012 generated by GNU Autoconf 2.59
1013
1014 Copyright (C) 2003 Free Software Foundation, Inc.
1015 This configure script is free software; the Free Software Foundation
1016 gives unlimited permission to copy, distribute and modify it.
1017
1018 Copyright (c) 1996-2006, PostgreSQL Global Development Group
1019 _ACEOF
1020   exit 0
1021 fi
1022 exec 5>config.log
1023 cat >&5 <<_ACEOF
1024 This file contains any messages produced by compilers while
1025 running configure, to aid debugging if configure makes a mistake.
1026
1027 It was created by PostgreSQL $as_me 8.2devel, which was
1028 generated by GNU Autoconf 2.59.  Invocation command line was
1029
1030   $ $0 $@
1031
1032 _ACEOF
1033 {
1034 cat <<_ASUNAME
1035 ## --------- ##
1036 ## Platform. ##
1037 ## --------- ##
1038
1039 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1040 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1041 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1042 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1043 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1044
1045 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1046 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1047
1048 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1049 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1050 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1051 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1052 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1053 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1054 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1055
1056 _ASUNAME
1057
1058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1059 for as_dir in $PATH
1060 do
1061   IFS=$as_save_IFS
1062   test -z "$as_dir" && as_dir=.
1063   echo "PATH: $as_dir"
1064 done
1065
1066 } >&5
1067
1068 cat >&5 <<_ACEOF
1069
1070
1071 ## ----------- ##
1072 ## Core tests. ##
1073 ## ----------- ##
1074
1075 _ACEOF
1076
1077
1078 # Keep a trace of the command line.
1079 # Strip out --no-create and --no-recursion so they do not pile up.
1080 # Strip out --silent because we don't want to record it for future runs.
1081 # Also quote any args containing shell meta-characters.
1082 # Make two passes to allow for proper duplicate-argument suppression.
1083 ac_configure_args=
1084 ac_configure_args0=
1085 ac_configure_args1=
1086 ac_sep=
1087 ac_must_keep_next=false
1088 for ac_pass in 1 2
1089 do
1090   for ac_arg
1091   do
1092     case $ac_arg in
1093     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1094     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095     | -silent | --silent | --silen | --sile | --sil)
1096       continue ;;
1097     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1098       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1099     esac
1100     case $ac_pass in
1101     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1102     2)
1103       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1104       if test $ac_must_keep_next = true; then
1105         ac_must_keep_next=false # Got value, back to normal.
1106       else
1107         case $ac_arg in
1108           *=* | --config-cache | -C | -disable-* | --disable-* \
1109           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1110           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1111           | -with-* | --with-* | -without-* | --without-* | --x)
1112             case "$ac_configure_args0 " in
1113               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1114             esac
1115             ;;
1116           -* ) ac_must_keep_next=true ;;
1117         esac
1118       fi
1119       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1120       # Get rid of the leading space.
1121       ac_sep=" "
1122       ;;
1123     esac
1124   done
1125 done
1126 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1127 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1128
1129 # When interrupted or exit'd, cleanup temporary files, and complete
1130 # config.log.  We remove comments because anyway the quotes in there
1131 # would cause problems or look ugly.
1132 # WARNING: Be sure not to use single quotes in there, as some shells,
1133 # such as our DU 5.0 friend, will then `close' the trap.
1134 trap 'exit_status=$?
1135   # Save into config.log some information that might help in debugging.
1136   {
1137     echo
1138
1139     cat <<\_ASBOX
1140 ## ---------------- ##
1141 ## Cache variables. ##
1142 ## ---------------- ##
1143 _ASBOX
1144     echo
1145     # The following way of writing the cache mishandles newlines in values,
1146 {
1147   (set) 2>&1 |
1148     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1149     *ac_space=\ *)
1150       sed -n \
1151         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1152           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1153       ;;
1154     *)
1155       sed -n \
1156         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1157       ;;
1158     esac;
1159 }
1160     echo
1161
1162     cat <<\_ASBOX
1163 ## ----------------- ##
1164 ## Output variables. ##
1165 ## ----------------- ##
1166 _ASBOX
1167     echo
1168     for ac_var in $ac_subst_vars
1169     do
1170       eval ac_val=$`echo $ac_var`
1171       echo "$ac_var='"'"'$ac_val'"'"'"
1172     done | sort
1173     echo
1174
1175     if test -n "$ac_subst_files"; then
1176       cat <<\_ASBOX
1177 ## ------------- ##
1178 ## Output files. ##
1179 ## ------------- ##
1180 _ASBOX
1181       echo
1182       for ac_var in $ac_subst_files
1183       do
1184         eval ac_val=$`echo $ac_var`
1185         echo "$ac_var='"'"'$ac_val'"'"'"
1186       done | sort
1187       echo
1188     fi
1189
1190     if test -s confdefs.h; then
1191       cat <<\_ASBOX
1192 ## ----------- ##
1193 ## confdefs.h. ##
1194 ## ----------- ##
1195 _ASBOX
1196       echo
1197       sed "/^$/d" confdefs.h | sort
1198       echo
1199     fi
1200     test "$ac_signal" != 0 &&
1201       echo "$as_me: caught signal $ac_signal"
1202     echo "$as_me: exit $exit_status"
1203   } >&5
1204   rm -f core *.core &&
1205   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1206     exit $exit_status
1207      ' 0
1208 for ac_signal in 1 2 13 15; do
1209   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1210 done
1211 ac_signal=0
1212
1213 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1214 rm -rf conftest* confdefs.h
1215 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1216 echo >confdefs.h
1217
1218 # Predefined preprocessor variables.
1219
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_NAME "$PACKAGE_NAME"
1222 _ACEOF
1223
1224
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1227 _ACEOF
1228
1229
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1232 _ACEOF
1233
1234
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_STRING "$PACKAGE_STRING"
1237 _ACEOF
1238
1239
1240 cat >>confdefs.h <<_ACEOF
1241 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1242 _ACEOF
1243
1244
1245 # Let the site file select an alternate cache file if it wants to.
1246 # Prefer explicitly selected file to automatically selected ones.
1247 if test -z "$CONFIG_SITE"; then
1248   if test "x$prefix" != xNONE; then
1249     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1250   else
1251     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1252   fi
1253 fi
1254 for ac_site_file in $CONFIG_SITE; do
1255   if test -r "$ac_site_file"; then
1256     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1257 echo "$as_me: loading site script $ac_site_file" >&6;}
1258     sed 's/^/| /' "$ac_site_file" >&5
1259     . "$ac_site_file"
1260   fi
1261 done
1262
1263 if test -r "$cache_file"; then
1264   # Some versions of bash will fail to source /dev/null (special
1265   # files actually), so we avoid doing that.
1266   if test -f "$cache_file"; then
1267     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1268 echo "$as_me: loading cache $cache_file" >&6;}
1269     case $cache_file in
1270       [\\/]* | ?:[\\/]* ) . $cache_file;;
1271       *)                      . ./$cache_file;;
1272     esac
1273   fi
1274 else
1275   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1276 echo "$as_me: creating cache $cache_file" >&6;}
1277   >$cache_file
1278 fi
1279
1280 # Check that the precious variables saved in the cache have kept the same
1281 # value.
1282 ac_cache_corrupted=false
1283 for ac_var in `(set) 2>&1 |
1284                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1285   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1286   eval ac_new_set=\$ac_env_${ac_var}_set
1287   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1288   eval ac_new_val="\$ac_env_${ac_var}_value"
1289   case $ac_old_set,$ac_new_set in
1290     set,)
1291       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1292 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1293       ac_cache_corrupted=: ;;
1294     ,set)
1295       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1296 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1297       ac_cache_corrupted=: ;;
1298     ,);;
1299     *)
1300       if test "x$ac_old_val" != "x$ac_new_val"; then
1301         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1302 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1303         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1304 echo "$as_me:   former value:  $ac_old_val" >&2;}
1305         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1306 echo "$as_me:   current value: $ac_new_val" >&2;}
1307         ac_cache_corrupted=:
1308       fi;;
1309   esac
1310   # Pass precious variables to config.status.
1311   if test "$ac_new_set" = set; then
1312     case $ac_new_val in
1313     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1314       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1315     *) ac_arg=$ac_var=$ac_new_val ;;
1316     esac
1317     case " $ac_configure_args " in
1318       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1319       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1320     esac
1321   fi
1322 done
1323 if $ac_cache_corrupted; then
1324   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1325 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1326   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1327 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1328    { (exit 1); exit 1; }; }
1329 fi
1330
1331 ac_ext=c
1332 ac_cpp='$CPP $CPPFLAGS'
1333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1366
1367 ac_aux_dir=
1368 for ac_dir in config $srcdir/config; do
1369   if test -f $ac_dir/install-sh; then
1370     ac_aux_dir=$ac_dir
1371     ac_install_sh="$ac_aux_dir/install-sh -c"
1372     break
1373   elif test -f $ac_dir/install.sh; then
1374     ac_aux_dir=$ac_dir
1375     ac_install_sh="$ac_aux_dir/install.sh -c"
1376     break
1377   elif test -f $ac_dir/shtool; then
1378     ac_aux_dir=$ac_dir
1379     ac_install_sh="$ac_aux_dir/shtool install -c"
1380     break
1381   fi
1382 done
1383 if test -z "$ac_aux_dir"; then
1384   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1385 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1386    { (exit 1); exit 1; }; }
1387 fi
1388 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1389 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1390 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1391
1392
1393 configure_args=$ac_configure_args
1394
1395
1396
1397 cat >>confdefs.h <<_ACEOF
1398 #define PG_VERSION "$PACKAGE_VERSION"
1399 _ACEOF
1400
1401
1402 # Make sure we can run config.sub.
1403 $ac_config_sub sun4 >/dev/null 2>&1 ||
1404   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1405 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1406    { (exit 1); exit 1; }; }
1407
1408 echo "$as_me:$LINENO: checking build system type" >&5
1409 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1410 if test "${ac_cv_build+set}" = set; then
1411   echo $ECHO_N "(cached) $ECHO_C" >&6
1412 else
1413   ac_cv_build_alias=$build_alias
1414 test -z "$ac_cv_build_alias" &&
1415   ac_cv_build_alias=`$ac_config_guess`
1416 test -z "$ac_cv_build_alias" &&
1417   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1418 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1419    { (exit 1); exit 1; }; }
1420 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1421   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1422 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1423    { (exit 1); exit 1; }; }
1424
1425 fi
1426 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1427 echo "${ECHO_T}$ac_cv_build" >&6
1428 build=$ac_cv_build
1429 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1430 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1431 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1432
1433
1434 echo "$as_me:$LINENO: checking host system type" >&5
1435 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1436 if test "${ac_cv_host+set}" = set; then
1437   echo $ECHO_N "(cached) $ECHO_C" >&6
1438 else
1439   ac_cv_host_alias=$host_alias
1440 test -z "$ac_cv_host_alias" &&
1441   ac_cv_host_alias=$ac_cv_build_alias
1442 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1443   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1444 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1445    { (exit 1); exit 1; }; }
1446
1447 fi
1448 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1449 echo "${ECHO_T}$ac_cv_host" >&6
1450 host=$ac_cv_host
1451 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1452 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1453 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1454
1455
1456
1457 template=
1458 echo "$as_me:$LINENO: checking which template to use" >&5
1459 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1460
1461
1462
1463
1464
1465 # Check whether --with-template or --without-template was given.
1466 if test "${with_template+set}" = set; then
1467   withval="$with_template"
1468
1469   case $withval in
1470     yes)
1471       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1472 echo "$as_me: error: argument required for --with-template option" >&2;}
1473    { (exit 1); exit 1; }; }
1474       ;;
1475     no)
1476       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1477 echo "$as_me: error: argument required for --with-template option" >&2;}
1478    { (exit 1); exit 1; }; }
1479       ;;
1480     *)
1481
1482   case $withval in
1483     list)   echo; ls "$srcdir/src/template"; exit;;
1484     *)      if test -f "$srcdir/src/template/$with_template" ; then
1485               template=$withval
1486             else
1487               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1488 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1489    { (exit 1); exit 1; }; }
1490             fi;;
1491   esac
1492
1493       ;;
1494   esac
1495
1496 else
1497
1498 # --with-template not given
1499
1500 case $host_os in
1501      aix*) template=aix ;;
1502     bsdi*) template=bsdi ;;
1503   cygwin*) template=cygwin ;;
1504   darwin*) template=darwin ;;
1505     dgux*) template=dgux ;;
1506  freebsd*) template=freebsd ;;
1507     hpux*) template=hpux ;;
1508     irix*) template=irix ;;
1509  linux*|gnu*|k*bsd*-gnu)
1510            template=linux ;;
1511    mingw*) template=win32 ;;
1512   netbsd*) template=netbsd ;;
1513 nextstep*) template=nextstep ;;
1514  openbsd*) template=openbsd ;;
1515      osf*) template=osf ;;
1516      sco*) template=sco ;;
1517  solaris*) template=solaris ;;
1518    sunos*) template=sunos4 ;;
1519  sysv4.2*)
1520         case $host_vendor in
1521           univel) template=univel ;;
1522         esac ;;
1523    sysv4*) template=svr4 ;;
1524    sysv5*) template=unixware ;;
1525   ultrix*) template=ultrix4 ;;
1526 esac
1527
1528   if test x"$template" = x"" ; then
1529     { { echo "$as_me:$LINENO: error:
1530 *******************************************************************
1531 PostgreSQL has apparently not been ported to your platform yet.
1532 To try a manual configuration, look into the src/template directory
1533 for a similar platform and use the '--with-template=' option.
1534
1535 Please also contact <pgsql-ports@postgresql.org> to see about
1536 rectifying this.  Include the above 'checking host system type...'
1537 line.
1538 *******************************************************************
1539 " >&5
1540 echo "$as_me: error:
1541 *******************************************************************
1542 PostgreSQL has apparently not been ported to your platform yet.
1543 To try a manual configuration, look into the src/template directory
1544 for a similar platform and use the '--with-template=' option.
1545
1546 Please also contact <pgsql-ports@postgresql.org> to see about
1547 rectifying this.  Include the above 'checking host system type...'
1548 line.
1549 *******************************************************************
1550 " >&2;}
1551    { (exit 1); exit 1; }; }
1552   fi
1553
1554
1555 fi;
1556
1557
1558 echo "$as_me:$LINENO: result: $template" >&5
1559 echo "${ECHO_T}$template" >&6
1560
1561 PORTNAME=$template
1562
1563
1564 # Initialize default assumption that we do not need separate assembly code
1565 # for TAS (test-and-set).  This can be overridden by the template file
1566 # when it's executed.
1567 need_tas=no
1568 tas_file=dummy.s
1569
1570
1571
1572 ##
1573 ## Command line options
1574 ##
1575
1576 #
1577 # Installation directory for documentation
1578 #
1579
1580
1581
1582
1583 # Check whether --with-docdir or --without-docdir was given.
1584 if test "${with_docdir+set}" = set; then
1585   withval="$with_docdir"
1586
1587   case $withval in
1588     yes)
1589       { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1590 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1591    { (exit 1); exit 1; }; }
1592       ;;
1593     no)
1594       docdir=
1595       ;;
1596     *)
1597       docdir=$withval
1598       ;;
1599   esac
1600
1601 else
1602   docdir='${prefix}/doc'
1603 fi;
1604
1605
1606
1607
1608 #
1609 # Add non-standard directories to the include path
1610 #
1611
1612
1613
1614
1615 # Check whether --with-includes or --without-includes was given.
1616 if test "${with_includes+set}" = set; then
1617   withval="$with_includes"
1618
1619   case $withval in
1620     yes)
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     no)
1626       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1627 echo "$as_me: error: argument required for --with-includes option" >&2;}
1628    { (exit 1); exit 1; }; }
1629       ;;
1630     *)
1631
1632       ;;
1633   esac
1634
1635 fi;
1636
1637
1638
1639 #
1640 # Add non-standard directories to the library search path
1641 #
1642
1643
1644
1645
1646 # Check whether --with-libraries or --without-libraries was given.
1647 if test "${with_libraries+set}" = set; then
1648   withval="$with_libraries"
1649
1650   case $withval in
1651     yes)
1652       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1653 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1654    { (exit 1); exit 1; }; }
1655       ;;
1656     no)
1657       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1658 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1659    { (exit 1); exit 1; }; }
1660       ;;
1661     *)
1662       LIBRARY_DIRS=$withval
1663       ;;
1664   esac
1665
1666 fi;
1667
1668
1669
1670
1671
1672
1673 # Check whether --with-libs or --without-libs was given.
1674 if test "${with_libs+set}" = set; then
1675   withval="$with_libs"
1676
1677   case $withval in
1678     yes)
1679       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1680 echo "$as_me: error: argument required for --with-libs option" >&2;}
1681    { (exit 1); exit 1; }; }
1682       ;;
1683     no)
1684       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1685 echo "$as_me: error: argument required for --with-libs option" >&2;}
1686    { (exit 1); exit 1; }; }
1687       ;;
1688     *)
1689       LIBRARY_DIRS=$withval
1690       ;;
1691   esac
1692
1693 fi;
1694
1695
1696
1697 #
1698 # 64-bit integer date/time storage (--enable-integer-datetimes)
1699 #
1700 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1701 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1702
1703
1704
1705 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1706 if test "${enable_integer_datetimes+set}" = set; then
1707   enableval="$enable_integer_datetimes"
1708
1709   case $enableval in
1710     yes)
1711
1712 cat >>confdefs.h <<\_ACEOF
1713 #define USE_INTEGER_DATETIMES 1
1714 _ACEOF
1715
1716       ;;
1717     no)
1718       :
1719       ;;
1720     *)
1721       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1722 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1723    { (exit 1); exit 1; }; }
1724       ;;
1725   esac
1726
1727 else
1728   enable_integer_datetimes=no
1729
1730 fi;
1731
1732 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1733 echo "${ECHO_T}$enable_integer_datetimes" >&6
1734
1735
1736 #
1737 # NLS
1738 #
1739 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1740 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1741
1742
1743
1744 # Check whether --enable-nls or --disable-nls was given.
1745 if test "${enable_nls+set}" = set; then
1746   enableval="$enable_nls"
1747
1748   case $enableval in
1749     yes)
1750       :
1751       ;;
1752     no)
1753       :
1754       ;;
1755     *)
1756       enable_nls=yes
1757 WANTED_LANGUAGES=$enableval
1758       ;;
1759   esac
1760
1761 else
1762   enable_nls=no
1763 fi;
1764
1765
1766 if test "$enable_nls" = yes; then
1767
1768 cat >>confdefs.h <<\_ACEOF
1769 #define ENABLE_NLS 1
1770 _ACEOF
1771
1772 fi
1773
1774 echo "$as_me:$LINENO: result: $enable_nls" >&5
1775 echo "${ECHO_T}$enable_nls" >&6
1776
1777
1778
1779 #
1780 # Default port number (--with-pgport), default 5432
1781 #
1782 echo "$as_me:$LINENO: checking for default port number" >&5
1783 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1784
1785
1786
1787
1788 # Check whether --with-pgport or --without-pgport was given.
1789 if test "${with_pgport+set}" = set; then
1790   withval="$with_pgport"
1791
1792   case $withval in
1793     yes)
1794       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1795 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1796    { (exit 1); exit 1; }; }
1797       ;;
1798     no)
1799       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1800 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1801    { (exit 1); exit 1; }; }
1802       ;;
1803     *)
1804       default_port=$withval
1805       ;;
1806   esac
1807
1808 else
1809   default_port=5432
1810 fi;
1811
1812 echo "$as_me:$LINENO: result: $default_port" >&5
1813 echo "${ECHO_T}$default_port" >&6
1814 # Need both of these because some places want an integer and some a string
1815
1816 cat >>confdefs.h <<_ACEOF
1817 #define DEF_PGPORT ${default_port}
1818 _ACEOF
1819
1820
1821 cat >>confdefs.h <<_ACEOF
1822 #define DEF_PGPORT_STR "${default_port}"
1823 _ACEOF
1824
1825
1826
1827 #
1828 # Option to disable shared libraries
1829 #
1830
1831
1832
1833 # Check whether --enable-shared or --disable-shared was given.
1834 if test "${enable_shared+set}" = set; then
1835   enableval="$enable_shared"
1836
1837   case $enableval in
1838     yes)
1839       :
1840       ;;
1841     no)
1842       :
1843       ;;
1844     *)
1845       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1846 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1847    { (exit 1); exit 1; }; }
1848       ;;
1849   esac
1850
1851 else
1852   enable_shared=yes
1853
1854 fi;
1855
1856
1857
1858 #
1859 # '-rpath'-like feature can be disabled
1860 #
1861
1862
1863
1864 # Check whether --enable-rpath or --disable-rpath was given.
1865 if test "${enable_rpath+set}" = set; then
1866   enableval="$enable_rpath"
1867
1868   case $enableval in
1869     yes)
1870       :
1871       ;;
1872     no)
1873       :
1874       ;;
1875     *)
1876       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1877 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1878    { (exit 1); exit 1; }; }
1879       ;;
1880   esac
1881
1882 else
1883   enable_rpath=yes
1884
1885 fi;
1886
1887
1888
1889 #
1890 # Spinlocks
1891 #
1892
1893
1894
1895 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1896 if test "${enable_spinlocks+set}" = set; then
1897   enableval="$enable_spinlocks"
1898
1899   case $enableval in
1900     yes)
1901       :
1902       ;;
1903     no)
1904       :
1905       ;;
1906     *)
1907       { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1908 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1909    { (exit 1); exit 1; }; }
1910       ;;
1911   esac
1912
1913 else
1914   enable_spinlocks=yes
1915
1916 fi;
1917
1918
1919 #
1920 # --enable-debug adds -g to compiler flags
1921 #
1922
1923
1924
1925 # Check whether --enable-debug or --disable-debug was given.
1926 if test "${enable_debug+set}" = set; then
1927   enableval="$enable_debug"
1928
1929   case $enableval in
1930     yes)
1931       :
1932       ;;
1933     no)
1934       :
1935       ;;
1936     *)
1937       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1938 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1939    { (exit 1); exit 1; }; }
1940       ;;
1941   esac
1942
1943 else
1944   enable_debug=no
1945
1946 fi;
1947
1948
1949
1950 #
1951 # DTrace
1952 #
1953
1954
1955
1956 # Check whether --enable-dtrace or --disable-dtrace was given.
1957 if test "${enable_dtrace+set}" = set; then
1958   enableval="$enable_dtrace"
1959
1960   case $enableval in
1961     yes)
1962
1963 cat >>confdefs.h <<\_ACEOF
1964 #define ENABLE_DTRACE 1
1965 _ACEOF
1966
1967 for ac_prog in dtrace
1968 do
1969   # Extract the first word of "$ac_prog", so it can be a program name with args.
1970 set dummy $ac_prog; ac_word=$2
1971 echo "$as_me:$LINENO: checking for $ac_word" >&5
1972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973 if test "${ac_cv_prog_DTRACE+set}" = set; then
1974   echo $ECHO_N "(cached) $ECHO_C" >&6
1975 else
1976   if test -n "$DTRACE"; then
1977   ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
1978 else
1979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 for as_dir in $PATH
1981 do
1982   IFS=$as_save_IFS
1983   test -z "$as_dir" && as_dir=.
1984   for ac_exec_ext in '' $ac_executable_extensions; do
1985   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1986     ac_cv_prog_DTRACE="$ac_prog"
1987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1988     break 2
1989   fi
1990 done
1991 done
1992
1993 fi
1994 fi
1995 DTRACE=$ac_cv_prog_DTRACE
1996 if test -n "$DTRACE"; then
1997   echo "$as_me:$LINENO: result: $DTRACE" >&5
1998 echo "${ECHO_T}$DTRACE" >&6
1999 else
2000   echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6
2002 fi
2003
2004   test -n "$DTRACE" && break
2005 done
2006
2007
2008       ;;
2009     no)
2010       :
2011       ;;
2012     *)
2013       { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2014 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2015    { (exit 1); exit 1; }; }
2016       ;;
2017   esac
2018
2019 else
2020   enable_dtrace=no
2021
2022 fi;
2023
2024
2025
2026 #
2027 # C compiler
2028 #
2029
2030 # For historical reasons you can also use --with-CC to specify the C compiler
2031 # to use, although the standard way to do this is to set the CC environment
2032 # variable.
2033
2034
2035
2036
2037 # Check whether --with-CC or --without-CC was given.
2038 if test "${with_CC+set}" = set; then
2039   withval="$with_CC"
2040
2041   case $withval in
2042     yes)
2043       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2044 echo "$as_me: error: argument required for --with-CC option" >&2;}
2045    { (exit 1); exit 1; }; }
2046       ;;
2047     no)
2048       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2049 echo "$as_me: error: argument required for --with-CC option" >&2;}
2050    { (exit 1); exit 1; }; }
2051       ;;
2052     *)
2053       CC=$with_CC
2054       ;;
2055   esac
2056
2057 fi;
2058
2059
2060 case $template in
2061   aix) pgac_cc_list="gcc xlc";;
2062  irix) pgac_cc_list="cc";; # no gcc
2063     *) pgac_cc_list="gcc cc";;
2064 esac
2065
2066 ac_ext=c
2067 ac_cpp='$CPP $CPPFLAGS'
2068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2071 if test -n "$ac_tool_prefix"; then
2072   for ac_prog in $pgac_cc_list
2073   do
2074     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2075 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2076 echo "$as_me:$LINENO: checking for $ac_word" >&5
2077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2078 if test "${ac_cv_prog_CC+set}" = set; then
2079   echo $ECHO_N "(cached) $ECHO_C" >&6
2080 else
2081   if test -n "$CC"; then
2082   ac_cv_prog_CC="$CC" # Let the user override the test.
2083 else
2084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085 for as_dir in $PATH
2086 do
2087   IFS=$as_save_IFS
2088   test -z "$as_dir" && as_dir=.
2089   for ac_exec_ext in '' $ac_executable_extensions; do
2090   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2091     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2093     break 2
2094   fi
2095 done
2096 done
2097
2098 fi
2099 fi
2100 CC=$ac_cv_prog_CC
2101 if test -n "$CC"; then
2102   echo "$as_me:$LINENO: result: $CC" >&5
2103 echo "${ECHO_T}$CC" >&6
2104 else
2105   echo "$as_me:$LINENO: result: no" >&5
2106 echo "${ECHO_T}no" >&6
2107 fi
2108
2109     test -n "$CC" && break
2110   done
2111 fi
2112 if test -z "$CC"; then
2113   ac_ct_CC=$CC
2114   for ac_prog in $pgac_cc_list
2115 do
2116   # Extract the first word of "$ac_prog", so it can be a program name with args.
2117 set dummy $ac_prog; ac_word=$2
2118 echo "$as_me:$LINENO: checking for $ac_word" >&5
2119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2120 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2121   echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123   if test -n "$ac_ct_CC"; then
2124   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2125 else
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 for as_dir in $PATH
2128 do
2129   IFS=$as_save_IFS
2130   test -z "$as_dir" && as_dir=.
2131   for ac_exec_ext in '' $ac_executable_extensions; do
2132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2133     ac_cv_prog_ac_ct_CC="$ac_prog"
2134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135     break 2
2136   fi
2137 done
2138 done
2139
2140 fi
2141 fi
2142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2143 if test -n "$ac_ct_CC"; then
2144   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2145 echo "${ECHO_T}$ac_ct_CC" >&6
2146 else
2147   echo "$as_me:$LINENO: result: no" >&5
2148 echo "${ECHO_T}no" >&6
2149 fi
2150
2151   test -n "$ac_ct_CC" && break
2152 done
2153
2154   CC=$ac_ct_CC
2155 fi
2156
2157
2158 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2159 See \`config.log' for more details." >&5
2160 echo "$as_me: error: no acceptable C compiler found in \$PATH
2161 See \`config.log' for more details." >&2;}
2162    { (exit 1); exit 1; }; }
2163
2164 # Provide some information about the compiler.
2165 echo "$as_me:$LINENO:" \
2166      "checking for C compiler version" >&5
2167 ac_compiler=`set X $ac_compile; echo $2`
2168 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2169   (eval $ac_compiler --version </dev/null >&5) 2>&5
2170   ac_status=$?
2171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172   (exit $ac_status); }
2173 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2174   (eval $ac_compiler -v </dev/null >&5) 2>&5
2175   ac_status=$?
2176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177   (exit $ac_status); }
2178 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2179   (eval $ac_compiler -V </dev/null >&5) 2>&5
2180   ac_status=$?
2181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182   (exit $ac_status); }
2183
2184 cat >conftest.$ac_ext <<_ACEOF
2185 /* confdefs.h.  */
2186 _ACEOF
2187 cat confdefs.h >>conftest.$ac_ext
2188 cat >>conftest.$ac_ext <<_ACEOF
2189 /* end confdefs.h.  */
2190
2191 int
2192 main ()
2193 {
2194
2195   ;
2196   return 0;
2197 }
2198 _ACEOF
2199 ac_clean_files_save=$ac_clean_files
2200 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2201 # Try to create an executable without -o first, disregard a.out.
2202 # It will help us diagnose broken compilers, and finding out an intuition
2203 # of exeext.
2204 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2205 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2206 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2207 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2208   (eval $ac_link_default) 2>&5
2209   ac_status=$?
2210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211   (exit $ac_status); }; then
2212   # Find the output, starting from the most likely.  This scheme is
2213 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2214 # resort.
2215
2216 # Be careful to initialize this variable, since it used to be cached.
2217 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2218 ac_cv_exeext=
2219 # b.out is created by i960 compilers.
2220 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2221 do
2222   test -f "$ac_file" || continue
2223   case $ac_file in
2224     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2225         ;;
2226     conftest.$ac_ext )
2227         # This is the source file.
2228         ;;
2229     [ab].out )
2230         # We found the default executable, but exeext='' is most
2231         # certainly right.
2232         break;;
2233     *.* )
2234         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2235         # FIXME: I believe we export ac_cv_exeext for Libtool,
2236         # but it would be cool to find out if it's true.  Does anybody
2237         # maintain Libtool? --akim.
2238         export ac_cv_exeext
2239         break;;
2240     * )
2241         break;;
2242   esac
2243 done
2244 else
2245   echo "$as_me: failed program was:" >&5
2246 sed 's/^/| /' conftest.$ac_ext >&5
2247
2248 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2249 See \`config.log' for more details." >&5
2250 echo "$as_me: error: C compiler cannot create executables
2251 See \`config.log' for more details." >&2;}
2252    { (exit 77); exit 77; }; }
2253 fi
2254
2255 ac_exeext=$ac_cv_exeext
2256 echo "$as_me:$LINENO: result: $ac_file" >&5
2257 echo "${ECHO_T}$ac_file" >&6
2258
2259 # Check the compiler produces executables we can run.  If not, either
2260 # the compiler is broken, or we cross compile.
2261 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2262 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2263 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2264 # If not cross compiling, check that we can run a simple program.
2265 if test "$cross_compiling" != yes; then
2266   if { ac_try='./$ac_file'
2267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268   (eval $ac_try) 2>&5
2269   ac_status=$?
2270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271   (exit $ac_status); }; }; then
2272     cross_compiling=no
2273   else
2274     if test "$cross_compiling" = maybe; then
2275         cross_compiling=yes
2276     else
2277         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2278 If you meant to cross compile, use \`--host'.
2279 See \`config.log' for more details." >&5
2280 echo "$as_me: error: cannot run C compiled programs.
2281 If you meant to cross compile, use \`--host'.
2282 See \`config.log' for more details." >&2;}
2283    { (exit 1); exit 1; }; }
2284     fi
2285   fi
2286 fi
2287 echo "$as_me:$LINENO: result: yes" >&5
2288 echo "${ECHO_T}yes" >&6
2289
2290 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2291 ac_clean_files=$ac_clean_files_save
2292 # Check the compiler produces executables we can run.  If not, either
2293 # the compiler is broken, or we cross compile.
2294 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2295 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2296 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2297 echo "${ECHO_T}$cross_compiling" >&6
2298
2299 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2300 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2302   (eval $ac_link) 2>&5
2303   ac_status=$?
2304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305   (exit $ac_status); }; then
2306   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2307 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2308 # work properly (i.e., refer to `conftest.exe'), while it won't with
2309 # `rm'.
2310 for ac_file in conftest.exe conftest conftest.*; do
2311   test -f "$ac_file" || continue
2312   case $ac_file in
2313     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2314     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2315           export ac_cv_exeext
2316           break;;
2317     * ) break;;
2318   esac
2319 done
2320 else
2321   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2322 See \`config.log' for more details." >&5
2323 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2324 See \`config.log' for more details." >&2;}
2325    { (exit 1); exit 1; }; }
2326 fi
2327
2328 rm -f conftest$ac_cv_exeext
2329 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2330 echo "${ECHO_T}$ac_cv_exeext" >&6
2331
2332 rm -f conftest.$ac_ext
2333 EXEEXT=$ac_cv_exeext
2334 ac_exeext=$EXEEXT
2335 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2336 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2337 if test "${ac_cv_objext+set}" = set; then
2338   echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340   cat >conftest.$ac_ext <<_ACEOF
2341 /* confdefs.h.  */
2342 _ACEOF
2343 cat confdefs.h >>conftest.$ac_ext
2344 cat >>conftest.$ac_ext <<_ACEOF
2345 /* end confdefs.h.  */
2346
2347 int
2348 main ()
2349 {
2350
2351   ;
2352   return 0;
2353 }
2354 _ACEOF
2355 rm -f conftest.o conftest.obj
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357   (eval $ac_compile) 2>&5
2358   ac_status=$?
2359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360   (exit $ac_status); }; then
2361   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2362   case $ac_file in
2363     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2364     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2365        break;;
2366   esac
2367 done
2368 else
2369   echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2371
2372 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2373 See \`config.log' for more details." >&5
2374 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2375 See \`config.log' for more details." >&2;}
2376    { (exit 1); exit 1; }; }
2377 fi
2378
2379 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2380 fi
2381 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2382 echo "${ECHO_T}$ac_cv_objext" >&6
2383 OBJEXT=$ac_cv_objext
2384 ac_objext=$OBJEXT
2385 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2386 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2387 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2388   echo $ECHO_N "(cached) $ECHO_C" >&6
2389 else
2390   cat >conftest.$ac_ext <<_ACEOF
2391 /* confdefs.h.  */
2392 _ACEOF
2393 cat confdefs.h >>conftest.$ac_ext
2394 cat >>conftest.$ac_ext <<_ACEOF
2395 /* end confdefs.h.  */
2396
2397 int
2398 main ()
2399 {
2400 #ifndef __GNUC__
2401        choke me
2402 #endif
2403
2404   ;
2405   return 0;
2406 }
2407 _ACEOF
2408 rm -f conftest.$ac_objext
2409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410   (eval $ac_compile) 2>conftest.er1
2411   ac_status=$?
2412   grep -v '^ *+' conftest.er1 >conftest.err
2413   rm -f conftest.er1
2414   cat conftest.err >&5
2415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416   (exit $ac_status); } &&
2417          { ac_try='test -z "$ac_c_werror_flag"
2418                          || test ! -s conftest.err'
2419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420   (eval $ac_try) 2>&5
2421   ac_status=$?
2422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); }; } &&
2424          { ac_try='test -s conftest.$ac_objext'
2425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426   (eval $ac_try) 2>&5
2427   ac_status=$?
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); }; }; then
2430   ac_compiler_gnu=yes
2431 else
2432   echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2434
2435 ac_compiler_gnu=no
2436 fi
2437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2438 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2439
2440 fi
2441 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2442 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2443 GCC=`test $ac_compiler_gnu = yes && echo yes`
2444 ac_test_CFLAGS=${CFLAGS+set}
2445 ac_save_CFLAGS=$CFLAGS
2446 CFLAGS="-g"
2447 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2448 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2449 if test "${ac_cv_prog_cc_g+set}" = set; then
2450   echo $ECHO_N "(cached) $ECHO_C" >&6
2451 else
2452   cat >conftest.$ac_ext <<_ACEOF
2453 /* confdefs.h.  */
2454 _ACEOF
2455 cat confdefs.h >>conftest.$ac_ext
2456 cat >>conftest.$ac_ext <<_ACEOF
2457 /* end confdefs.h.  */
2458
2459 int
2460 main ()
2461 {
2462
2463   ;
2464   return 0;
2465 }
2466 _ACEOF
2467 rm -f conftest.$ac_objext
2468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469   (eval $ac_compile) 2>conftest.er1
2470   ac_status=$?
2471   grep -v '^ *+' conftest.er1 >conftest.err
2472   rm -f conftest.er1
2473   cat conftest.err >&5
2474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475   (exit $ac_status); } &&
2476          { ac_try='test -z "$ac_c_werror_flag"
2477                          || test ! -s conftest.err'
2478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479   (eval $ac_try) 2>&5
2480   ac_status=$?
2481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482   (exit $ac_status); }; } &&
2483          { ac_try='test -s conftest.$ac_objext'
2484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485   (eval $ac_try) 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }; }; then
2489   ac_cv_prog_cc_g=yes
2490 else
2491   echo "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.$ac_ext >&5
2493
2494 ac_cv_prog_cc_g=no
2495 fi
2496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2497 fi
2498 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2499 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2500 if test "$ac_test_CFLAGS" = set; then
2501   CFLAGS=$ac_save_CFLAGS
2502 elif test $ac_cv_prog_cc_g = yes; then
2503   if test "$GCC" = yes; then
2504     CFLAGS="-g -O2"
2505   else
2506     CFLAGS="-g"
2507   fi
2508 else
2509   if test "$GCC" = yes; then
2510     CFLAGS="-O2"
2511   else
2512     CFLAGS=
2513   fi
2514 fi
2515 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2516 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2517 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2518   echo $ECHO_N "(cached) $ECHO_C" >&6
2519 else
2520   ac_cv_prog_cc_stdc=no
2521 ac_save_CC=$CC
2522 cat >conftest.$ac_ext <<_ACEOF
2523 /* confdefs.h.  */
2524 _ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h.  */
2528 #include <stdarg.h>
2529 #include <stdio.h>
2530 #include <sys/types.h>
2531 #include <sys/stat.h>
2532 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2533 struct buf { int x; };
2534 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2535 static char *e (p, i)
2536      char **p;
2537      int i;
2538 {
2539   return p[i];
2540 }
2541 static char *f (char * (*g) (char **, int), char **p, ...)
2542 {
2543   char *s;
2544   va_list v;
2545   va_start (v,p);
2546   s = g (p, va_arg (v,int));
2547   va_end (v);
2548   return s;
2549 }
2550
2551 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2552    function prototypes and stuff, but not '\xHH' hex character constants.
2553    These don't provoke an error unfortunately, instead are silently treated
2554    as 'x'.  The following induces an error, until -std1 is added to get
2555    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2556    array size at least.  It's necessary to write '\x00'==0 to get something
2557    that's true only with -std1.  */
2558 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2559
2560 int test (int i, double x);
2561 struct s1 {int (*f) (int a);};
2562 struct s2 {int (*f) (double a);};
2563 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2564 int argc;
2565 char **argv;
2566 int
2567 main ()
2568 {
2569 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2570   ;
2571   return 0;
2572 }
2573 _ACEOF
2574 # Don't try gcc -ansi; that turns off useful extensions and
2575 # breaks some systems' header files.
2576 # AIX                   -qlanglvl=ansi
2577 # Ultrix and OSF/1      -std1
2578 # HP-UX 10.20 and later -Ae
2579 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2580 # SVR4                  -Xc -D__EXTENSIONS__
2581 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2582 do
2583   CC="$ac_save_CC $ac_arg"
2584   rm -f conftest.$ac_objext
2585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2586   (eval $ac_compile) 2>conftest.er1
2587   ac_status=$?
2588   grep -v '^ *+' conftest.er1 >conftest.err
2589   rm -f conftest.er1
2590   cat conftest.err >&5
2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592   (exit $ac_status); } &&
2593          { ac_try='test -z "$ac_c_werror_flag"
2594                          || test ! -s conftest.err'
2595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596   (eval $ac_try) 2>&5
2597   ac_status=$?
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); }; } &&
2600          { ac_try='test -s conftest.$ac_objext'
2601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602   (eval $ac_try) 2>&5
2603   ac_status=$?
2604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605   (exit $ac_status); }; }; then
2606   ac_cv_prog_cc_stdc=$ac_arg
2607 break
2608 else
2609   echo "$as_me: failed program was:" >&5
2610 sed 's/^/| /' conftest.$ac_ext >&5
2611
2612 fi
2613 rm -f conftest.err conftest.$ac_objext
2614 done
2615 rm -f conftest.$ac_ext conftest.$ac_objext
2616 CC=$ac_save_CC
2617
2618 fi
2619
2620 case "x$ac_cv_prog_cc_stdc" in
2621   x|xno)
2622     echo "$as_me:$LINENO: result: none needed" >&5
2623 echo "${ECHO_T}none needed" >&6 ;;
2624   *)
2625     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2626 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2627     CC="$CC $ac_cv_prog_cc_stdc" ;;
2628 esac
2629
2630 # Some people use a C++ compiler to compile C.  Since we use `exit',
2631 # in C++ we need to declare it.  In case someone uses the same compiler
2632 # for both compiling C and C++ we need to have the C++ compiler decide
2633 # the declaration of exit, since it's the most demanding environment.
2634 cat >conftest.$ac_ext <<_ACEOF
2635 #ifndef __cplusplus
2636   choke me
2637 #endif
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   for ac_declaration in \
2662    '' \
2663    'extern "C" void std::exit (int) throw (); using std::exit;' \
2664    'extern "C" void std::exit (int); using std::exit;' \
2665    'extern "C" void exit (int) throw ();' \
2666    'extern "C" void exit (int);' \
2667    'void exit (int);'
2668 do
2669   cat >conftest.$ac_ext <<_ACEOF
2670 /* confdefs.h.  */
2671 _ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h.  */
2675 $ac_declaration
2676 #include <stdlib.h>
2677 int
2678 main ()
2679 {
2680 exit (42);
2681   ;
2682   return 0;
2683 }
2684 _ACEOF
2685 rm -f conftest.$ac_objext
2686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2687   (eval $ac_compile) 2>conftest.er1
2688   ac_status=$?
2689   grep -v '^ *+' conftest.er1 >conftest.err
2690   rm -f conftest.er1
2691   cat conftest.err >&5
2692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693   (exit $ac_status); } &&
2694          { ac_try='test -z "$ac_c_werror_flag"
2695                          || test ! -s conftest.err'
2696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697   (eval $ac_try) 2>&5
2698   ac_status=$?
2699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700   (exit $ac_status); }; } &&
2701          { ac_try='test -s conftest.$ac_objext'
2702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703   (eval $ac_try) 2>&5
2704   ac_status=$?
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); }; }; then
2707   :
2708 else
2709   echo "$as_me: failed program was:" >&5
2710 sed 's/^/| /' conftest.$ac_ext >&5
2711
2712 continue
2713 fi
2714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2715   cat >conftest.$ac_ext <<_ACEOF
2716 /* confdefs.h.  */
2717 _ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h.  */
2721 $ac_declaration
2722 int
2723 main ()
2724 {
2725 exit (42);
2726   ;
2727   return 0;
2728 }
2729 _ACEOF
2730 rm -f conftest.$ac_objext
2731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2732   (eval $ac_compile) 2>conftest.er1
2733   ac_status=$?
2734   grep -v '^ *+' conftest.er1 >conftest.err
2735   rm -f conftest.er1
2736   cat conftest.err >&5
2737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738   (exit $ac_status); } &&
2739          { ac_try='test -z "$ac_c_werror_flag"
2740                          || test ! -s conftest.err'
2741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742   (eval $ac_try) 2>&5
2743   ac_status=$?
2744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745   (exit $ac_status); }; } &&
2746          { ac_try='test -s conftest.$ac_objext'
2747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748   (eval $ac_try) 2>&5
2749   ac_status=$?
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); }; }; then
2752   break
2753 else
2754   echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2756
2757 fi
2758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2759 done
2760 rm -f conftest*
2761 if test -n "$ac_declaration"; then
2762   echo '#ifdef __cplusplus' >>confdefs.h
2763   echo $ac_declaration      >>confdefs.h
2764   echo '#endif'             >>confdefs.h
2765 fi
2766
2767 else
2768   echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2770
2771 fi
2772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2773 ac_ext=c
2774 ac_cpp='$CPP $CPPFLAGS'
2775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2778
2779
2780 unset CFLAGS
2781
2782 #
2783 # Read the template
2784 #
2785 . "$srcdir/src/template/$template" || exit
2786
2787 # CFLAGS are selected so:
2788 # If the user specifies something in the environment, that is used.
2789 # else:  If the template file set something, that is used.
2790 # else:  If the compiler is GCC, then we use -O2.
2791 # else:  If the compiler is something else, then we use -0.
2792
2793 if test "$ac_env_CFLAGS_set" = set; then
2794   CFLAGS=$ac_env_CFLAGS_value
2795 elif test "${CFLAGS+set}" = set; then
2796   : # (keep what template set)
2797 elif test "$GCC" = yes; then
2798   CFLAGS="-O2"
2799 else
2800   # if the user selected debug mode, don't use -O
2801   if test "$enable_debug" != yes; then
2802     CFLAGS="-O"
2803   fi
2804 fi
2805
2806 # Some versions of GCC support some additional useful warning flags.
2807 # Check whether they are supported, and add them to CFLAGS if so.
2808
2809 if test "$GCC" = yes; then
2810
2811 # ICC pretends to be GCC but it's lying; it doesn't support these options.
2812 # So we have to check if "GCC" is really ICC.
2813
2814 cat >conftest.$ac_ext <<_ACEOF
2815 /* confdefs.h.  */
2816 _ACEOF
2817 cat confdefs.h >>conftest.$ac_ext
2818 cat >>conftest.$ac_ext <<_ACEOF
2819 /* end confdefs.h.  */
2820
2821 int
2822 main ()
2823 {
2824 #ifndef __INTEL_COMPILER
2825 choke me
2826 #endif
2827   ;
2828   return 0;
2829 }
2830 _ACEOF
2831 rm -f conftest.$ac_objext
2832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2833   (eval $ac_compile) 2>conftest.er1
2834   ac_status=$?
2835   grep -v '^ *+' conftest.er1 >conftest.err
2836   rm -f conftest.er1
2837   cat conftest.err >&5
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); } &&
2840          { ac_try='test -z "$ac_c_werror_flag"
2841                          || test ! -s conftest.err'
2842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843   (eval $ac_try) 2>&5
2844   ac_status=$?
2845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846   (exit $ac_status); }; } &&
2847          { ac_try='test -s conftest.$ac_objext'
2848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849   (eval $ac_try) 2>&5
2850   ac_status=$?
2851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852   (exit $ac_status); }; }; then
2853   ICC=yes
2854 else
2855   echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2857
2858 ICC=no
2859 fi
2860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2861
2862   if test "$ICC" = no; then
2863     CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline"
2864
2865     echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
2866 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6
2867 pgac_save_CFLAGS=$CFLAGS
2868 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
2869 cat >conftest.$ac_ext <<_ACEOF
2870 /* confdefs.h.  */
2871 _ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h.  */
2875
2876 int
2877 main ()
2878 {
2879
2880   ;
2881   return 0;
2882 }
2883 _ACEOF
2884 rm -f conftest.$ac_objext
2885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2886   (eval $ac_compile) 2>conftest.er1
2887   ac_status=$?
2888   grep -v '^ *+' conftest.er1 >conftest.err
2889   rm -f conftest.er1
2890   cat conftest.err >&5
2891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); } &&
2893          { ac_try='test -z "$ac_c_werror_flag"
2894                          || test ! -s conftest.err'
2895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896   (eval $ac_try) 2>&5
2897   ac_status=$?
2898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899   (exit $ac_status); }; } &&
2900          { ac_try='test -s conftest.$ac_objext'
2901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902   (eval $ac_try) 2>&5
2903   ac_status=$?
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); }; }; then
2906   echo "$as_me:$LINENO: result: yes" >&5
2907 echo "${ECHO_T}yes" >&6
2908 else
2909   echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2911
2912 CFLAGS="$pgac_save_CFLAGS"
2913                     echo "$as_me:$LINENO: result: no" >&5
2914 echo "${ECHO_T}no" >&6
2915 fi
2916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2917
2918     echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
2919 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6
2920 pgac_save_CFLAGS=$CFLAGS
2921 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
2922 cat >conftest.$ac_ext <<_ACEOF
2923 /* confdefs.h.  */
2924 _ACEOF
2925 cat confdefs.h >>conftest.$ac_ext
2926 cat >>conftest.$ac_ext <<_ACEOF
2927 /* end confdefs.h.  */
2928
2929 int
2930 main ()
2931 {
2932
2933   ;
2934   return 0;
2935 }
2936 _ACEOF
2937 rm -f conftest.$ac_objext
2938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2939   (eval $ac_compile) 2>conftest.er1
2940   ac_status=$?
2941   grep -v '^ *+' conftest.er1 >conftest.err
2942   rm -f conftest.er1
2943   cat conftest.err >&5
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); } &&
2946          { ac_try='test -z "$ac_c_werror_flag"
2947                          || test ! -s conftest.err'
2948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2949   (eval $ac_try) 2>&5
2950   ac_status=$?
2951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952   (exit $ac_status); }; } &&
2953          { ac_try='test -s conftest.$ac_objext'
2954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955   (eval $ac_try) 2>&5
2956   ac_status=$?
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); }; }; then
2959   echo "$as_me:$LINENO: result: yes" >&5
2960 echo "${ECHO_T}yes" >&6
2961 else
2962   echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2964
2965 CFLAGS="$pgac_save_CFLAGS"
2966                     echo "$as_me:$LINENO: result: no" >&5
2967 echo "${ECHO_T}no" >&6
2968 fi
2969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2970
2971   else
2972     # Intel compiler has a bug/misoptimization in checking for
2973     # division by NAN (NaN == 0), -mp1 fixes it, so add it to the
2974     # CFLAGS.
2975     echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
2976 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6
2977 pgac_save_CFLAGS=$CFLAGS
2978 CFLAGS="$pgac_save_CFLAGS -mp1"
2979 cat >conftest.$ac_ext <<_ACEOF
2980 /* confdefs.h.  */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h.  */
2985
2986 int
2987 main ()
2988 {
2989
2990   ;
2991   return 0;
2992 }
2993 _ACEOF
2994 rm -f conftest.$ac_objext
2995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2996   (eval $ac_compile) 2>conftest.er1
2997   ac_status=$?
2998   grep -v '^ *+' conftest.er1 >conftest.err
2999   rm -f conftest.er1
3000   cat conftest.err >&5
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); } &&
3003          { ac_try='test -z "$ac_c_werror_flag"
3004                          || test ! -s conftest.err'
3005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3006   (eval $ac_try) 2>&5
3007   ac_status=$?
3008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009   (exit $ac_status); }; } &&
3010          { ac_try='test -s conftest.$ac_objext'
3011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012   (eval $ac_try) 2>&5
3013   ac_status=$?
3014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015   (exit $ac_status); }; }; then
3016   echo "$as_me:$LINENO: result: yes" >&5
3017 echo "${ECHO_T}yes" >&6
3018 else
3019   echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3021
3022 CFLAGS="$pgac_save_CFLAGS"
3023                     echo "$as_me:$LINENO: result: no" >&5
3024 echo "${ECHO_T}no" >&6
3025 fi
3026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3027
3028   fi
3029
3030   # Disable strict-aliasing rules; needed for gcc 3.3+
3031   echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3032 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
3033 pgac_save_CFLAGS=$CFLAGS
3034 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3035 cat >conftest.$ac_ext <<_ACEOF
3036 /* confdefs.h.  */
3037 _ACEOF
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h.  */
3041
3042 int
3043 main ()
3044 {
3045
3046   ;
3047   return 0;
3048 }
3049 _ACEOF
3050 rm -f conftest.$ac_objext
3051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3052   (eval $ac_compile) 2>conftest.er1
3053   ac_status=$?
3054   grep -v '^ *+' conftest.er1 >conftest.err
3055   rm -f conftest.er1
3056   cat conftest.err >&5
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); } &&
3059          { ac_try='test -z "$ac_c_werror_flag"
3060                          || test ! -s conftest.err'
3061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062   (eval $ac_try) 2>&5
3063   ac_status=$?
3064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065   (exit $ac_status); }; } &&
3066          { ac_try='test -s conftest.$ac_objext'
3067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068   (eval $ac_try) 2>&5
3069   ac_status=$?
3070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071   (exit $ac_status); }; }; then
3072   echo "$as_me:$LINENO: result: yes" >&5
3073 echo "${ECHO_T}yes" >&6
3074 else
3075   echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3077
3078 CFLAGS="$pgac_save_CFLAGS"
3079                     echo "$as_me:$LINENO: result: no" >&5
3080 echo "${ECHO_T}no" >&6
3081 fi
3082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3083
3084 elif test ${CC} = "xlc"; then
3085   # AIX xlc has to have strict aliasing turned off too
3086   echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
3087 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6
3088 pgac_save_CFLAGS=$CFLAGS
3089 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
3090 cat >conftest.$ac_ext <<_ACEOF
3091 /* confdefs.h.  */
3092 _ACEOF
3093 cat confdefs.h >>conftest.$ac_ext
3094 cat >>conftest.$ac_ext <<_ACEOF
3095 /* end confdefs.h.  */
3096
3097 int
3098 main ()
3099 {
3100
3101   ;
3102   return 0;
3103 }
3104 _ACEOF
3105 rm -f conftest.$ac_objext
3106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3107   (eval $ac_compile) 2>conftest.er1
3108   ac_status=$?
3109   grep -v '^ *+' conftest.er1 >conftest.err
3110   rm -f conftest.er1
3111   cat conftest.err >&5
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); } &&
3114          { ac_try='test -z "$ac_c_werror_flag"
3115                          || test ! -s conftest.err'
3116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3117   (eval $ac_try) 2>&5
3118   ac_status=$?
3119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); }; } &&
3121          { ac_try='test -s conftest.$ac_objext'
3122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123   (eval $ac_try) 2>&5
3124   ac_status=$?
3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); }; }; then
3127   echo "$as_me:$LINENO: result: yes" >&5
3128 echo "${ECHO_T}yes" >&6
3129 else
3130   echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3132
3133 CFLAGS="$pgac_save_CFLAGS"
3134                     echo "$as_me:$LINENO: result: no" >&5
3135 echo "${ECHO_T}no" >&6
3136 fi
3137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3138
3139 fi
3140
3141 # supply -g if --enable-debug
3142 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
3143   CFLAGS="$CFLAGS -g"
3144 fi
3145
3146 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
3147 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
3148
3149 # We already have this in Makefile.win32, but configure needs it too
3150 if test "$PORTNAME" = "win32"; then
3151   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
3152 fi
3153
3154 # Check if the compiler still works with the template settings
3155 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
3156 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
3157 cat >conftest.$ac_ext <<_ACEOF
3158 /* confdefs.h.  */
3159 _ACEOF
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h.  */
3163
3164 int
3165 main ()
3166 {
3167 return 0;
3168   ;
3169   return 0;
3170 }
3171 _ACEOF
3172 rm -f conftest.$ac_objext conftest$ac_exeext
3173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3174   (eval $ac_link) 2>conftest.er1
3175   ac_status=$?
3176   grep -v '^ *+' conftest.er1 >conftest.err
3177   rm -f conftest.er1
3178   cat conftest.err >&5
3179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); } &&
3181          { ac_try='test -z "$ac_c_werror_flag"
3182                          || test ! -s conftest.err'
3183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184   (eval $ac_try) 2>&5
3185   ac_status=$?
3186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); }; } &&
3188          { ac_try='test -s conftest$ac_exeext'
3189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190   (eval $ac_try) 2>&5
3191   ac_status=$?
3192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193   (exit $ac_status); }; }; then
3194   echo "$as_me:$LINENO: result: yes" >&5
3195 echo "${ECHO_T}yes" >&6
3196 else
3197   echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3199
3200 echo "$as_me:$LINENO: result: no" >&5
3201 echo "${ECHO_T}no" >&6
3202    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
3203 echo "$as_me: error: cannot proceed" >&2;}
3204    { (exit 1); exit 1; }; }
3205 fi
3206 rm -f conftest.err conftest.$ac_objext \
3207       conftest$ac_exeext conftest.$ac_ext
3208
3209 # Defend against gcc -ffast-math
3210 if test "$GCC" = yes; then
3211 cat >conftest.$ac_ext <<_ACEOF
3212 /* confdefs.h.  */
3213 _ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h.  */
3217
3218 int
3219 main ()
3220 {
3221 #ifdef __FAST_MATH__
3222 choke me
3223 #endif
3224   ;
3225   return 0;
3226 }
3227 _ACEOF
3228 rm -f conftest.$ac_objext
3229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3230   (eval $ac_compile) 2>conftest.er1
3231   ac_status=$?
3232   grep -v '^ *+' conftest.er1 >conftest.err
3233   rm -f conftest.er1
3234   cat conftest.err >&5
3235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236   (exit $ac_status); } &&
3237          { ac_try='test -z "$ac_c_werror_flag"
3238                          || test ! -s conftest.err'
3239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240   (eval $ac_try) 2>&5
3241   ac_status=$?
3242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243   (exit $ac_status); }; } &&
3244          { ac_try='test -s conftest.$ac_objext'
3245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246   (eval $ac_try) 2>&5
3247   ac_status=$?
3248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249   (exit $ac_status); }; }; then
3250   :
3251 else
3252   echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3254
3255 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
3256 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
3257    { (exit 1); exit 1; }; }
3258 fi
3259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3260 fi
3261
3262 ac_ext=c
3263 ac_cpp='$CPP $CPPFLAGS'
3264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3267 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3268 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3269 # On Suns, sometimes $CPP names a directory.
3270 if test -n "$CPP" && test -d "$CPP"; then
3271   CPP=
3272 fi
3273 if test -z "$CPP"; then
3274   if test "${ac_cv_prog_CPP+set}" = set; then
3275   echo $ECHO_N "(cached) $ECHO_C" >&6
3276 else
3277       # Double quotes because CPP needs to be expanded
3278     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3279     do
3280       ac_preproc_ok=false
3281 for ac_c_preproc_warn_flag in '' yes
3282 do
3283   # Use a header file that comes with gcc, so configuring glibc
3284   # with a fresh cross-compiler works.
3285   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3286   # <limits.h> exists even on freestanding compilers.
3287   # On the NeXT, cc -E runs the code through the compiler's parser,
3288   # not just through cpp. "Syntax error" is here to catch this case.
3289   cat >conftest.$ac_ext <<_ACEOF
3290 /* confdefs.h.  */
3291 _ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h.  */
3295 #ifdef __STDC__
3296 # include <limits.h>
3297 #else
3298 # include <assert.h>
3299 #endif
3300                      Syntax error
3301 _ACEOF
3302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3303   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3304   ac_status=$?
3305   grep -v '^ *+' conftest.er1 >conftest.err
3306   rm -f conftest.er1
3307   cat conftest.err >&5
3308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309   (exit $ac_status); } >/dev/null; then
3310   if test -s conftest.err; then
3311     ac_cpp_err=$ac_c_preproc_warn_flag
3312     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3313   else
3314     ac_cpp_err=
3315   fi
3316 else
3317   ac_cpp_err=yes
3318 fi
3319 if test -z "$ac_cpp_err"; then
3320   :
3321 else
3322   echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3324
3325   # Broken: fails on valid input.
3326 continue
3327 fi
3328 rm -f conftest.err conftest.$ac_ext
3329
3330   # OK, works on sane cases.  Now check whether non-existent headers
3331   # can be detected and how.
3332   cat >conftest.$ac_ext <<_ACEOF
3333 /* confdefs.h.  */
3334 _ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h.  */
3338 #include <ac_nonexistent.h>
3339 _ACEOF
3340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3341   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3342   ac_status=$?
3343   grep -v '^ *+' conftest.er1 >conftest.err
3344   rm -f conftest.er1
3345   cat conftest.err >&5
3346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347   (exit $ac_status); } >/dev/null; then
3348   if test -s conftest.err; then
3349     ac_cpp_err=$ac_c_preproc_warn_flag
3350     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3351   else
3352     ac_cpp_err=
3353   fi
3354 else
3355   ac_cpp_err=yes
3356 fi
3357 if test -z "$ac_cpp_err"; then
3358   # Broken: success on invalid input.
3359 continue
3360 else
3361   echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3363
3364   # Passes both tests.
3365 ac_preproc_ok=:
3366 break
3367 fi
3368 rm -f conftest.err conftest.$ac_ext
3369
3370 done
3371 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3372 rm -f conftest.err conftest.$ac_ext
3373 if $ac_preproc_ok; then
3374   break
3375 fi
3376
3377     done
3378     ac_cv_prog_CPP=$CPP
3379
3380 fi
3381   CPP=$ac_cv_prog_CPP
3382 else
3383   ac_cv_prog_CPP=$CPP
3384 fi
3385 echo "$as_me:$LINENO: result: $CPP" >&5
3386 echo "${ECHO_T}$CPP" >&6
3387 ac_preproc_ok=false
3388 for ac_c_preproc_warn_flag in '' yes
3389 do
3390   # Use a header file that comes with gcc, so configuring glibc
3391   # with a fresh cross-compiler works.
3392   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3393   # <limits.h> exists even on freestanding compilers.
3394   # On the NeXT, cc -E runs the code through the compiler's parser,
3395   # not just through cpp. "Syntax error" is here to catch this case.
3396   cat >conftest.$ac_ext <<_ACEOF
3397 /* confdefs.h.  */
3398 _ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h.  */
3402 #ifdef __STDC__
3403 # include <limits.h>
3404 #else
3405 # include <assert.h>
3406 #endif
3407                      Syntax error
3408 _ACEOF
3409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3410   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3411   ac_status=$?
3412   grep -v '^ *+' conftest.er1 >conftest.err
3413   rm -f conftest.er1
3414   cat conftest.err >&5
3415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416   (exit $ac_status); } >/dev/null; then
3417   if test -s conftest.err; then
3418     ac_cpp_err=$ac_c_preproc_warn_flag
3419     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3420   else
3421     ac_cpp_err=
3422   fi
3423 else
3424   ac_cpp_err=yes
3425 fi
3426 if test -z "$ac_cpp_err"; then
3427   :
3428 else
3429   echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3431
3432   # Broken: fails on valid input.
3433 continue
3434 fi
3435 rm -f conftest.err conftest.$ac_ext
3436
3437   # OK, works on sane cases.  Now check whether non-existent headers
3438   # can be detected and how.
3439   cat >conftest.$ac_ext <<_ACEOF
3440 /* confdefs.h.  */
3441 _ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h.  */
3445 #include <ac_nonexistent.h>
3446 _ACEOF
3447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3448   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3449   ac_status=$?
3450   grep -v '^ *+' conftest.er1 >conftest.err
3451   rm -f conftest.er1
3452   cat conftest.err >&5
3453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454   (exit $ac_status); } >/dev/null; then
3455   if test -s conftest.err; then
3456     ac_cpp_err=$ac_c_preproc_warn_flag
3457     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3458   else
3459     ac_cpp_err=
3460   fi
3461 else
3462   ac_cpp_err=yes
3463 fi
3464 if test -z "$ac_cpp_err"; then
3465   # Broken: success on invalid input.
3466 continue
3467 else
3468   echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3470
3471   # Passes both tests.
3472 ac_preproc_ok=:
3473 break
3474 fi
3475 rm -f conftest.err conftest.$ac_ext
3476
3477 done
3478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3479 rm -f conftest.err conftest.$ac_ext
3480 if $ac_preproc_ok; then
3481   :
3482 else
3483   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3484 See \`config.log' for more details." >&5
3485 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3486 See \`config.log' for more details." >&2;}
3487    { (exit 1); exit 1; }; }
3488 fi
3489
3490 ac_ext=c
3491 ac_cpp='$CPP $CPPFLAGS'
3492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495
3496
3497
3498 # Create compiler version string
3499 if test x"$GCC" = x"yes" ; then
3500   cc_string="GCC `${CC} --version | sed q`"
3501 else
3502   cc_string=$CC
3503 fi
3504
3505 cat >>confdefs.h <<_ACEOF
3506 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
3507 _ACEOF
3508
3509
3510
3511 #
3512 # Set up TAS assembly code if needed; the template file has now had its
3513 # chance to request this.
3514 #
3515           ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
3516
3517
3518 if test "$need_tas" = yes ; then
3519   TAS=tas.o
3520 else
3521   TAS=""
3522 fi
3523
3524
3525
3526 #
3527 # Automatic dependency tracking
3528 #
3529
3530
3531
3532 # Check whether --enable-depend or --disable-depend was given.
3533 if test "${enable_depend+set}" = set; then
3534   enableval="$enable_depend"
3535
3536   case $enableval in
3537     yes)
3538       autodepend=yes
3539       ;;
3540     no)
3541       :
3542       ;;
3543     *)
3544       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
3545 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
3546    { (exit 1); exit 1; }; }
3547       ;;
3548   esac
3549
3550 else
3551   enable_depend=no
3552
3553 fi;
3554
3555
3556
3557
3558 #
3559 # Enable assert checks
3560 #
3561
3562
3563
3564 # Check whether --enable-cassert or --disable-cassert was given.
3565 if test "${enable_cassert+set}" = set; then
3566   enableval="$enable_cassert"
3567
3568   case $enableval in
3569     yes)
3570
3571 cat >>confdefs.h <<\_ACEOF
3572 #define USE_ASSERT_CHECKING 1
3573 _ACEOF
3574
3575       ;;
3576     no)
3577       :
3578       ;;
3579     *)
3580       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
3581 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
3582    { (exit 1); exit 1; }; }
3583       ;;
3584   esac
3585
3586 else
3587   enable_cassert=no
3588
3589 fi;
3590
3591
3592
3593 #
3594 # Include directories
3595 #
3596 ac_save_IFS=$IFS
3597 IFS="${IFS}${PATH_SEPARATOR}"
3598 # SRCH_INC comes from the template file
3599 for dir in $with_includes $SRCH_INC; do
3600   if test -d "$dir"; then
3601     INCLUDES="$INCLUDES -I$dir"
3602   else
3603     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3604 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3605   fi
3606 done
3607 IFS=$ac_save_IFS
3608
3609
3610
3611 #
3612 # Library directories
3613 #
3614 ac_save_IFS=$IFS
3615 IFS="${IFS}${PATH_SEPARATOR}"
3616 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
3617 for dir in $LIBRARY_DIRS $SRCH_LIB; do
3618   if test -d "$dir"; then
3619     LIBDIRS="$LIBDIRS -L$dir"
3620   else
3621     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3622 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3623   fi
3624 done
3625 IFS=$ac_save_IFS
3626
3627 #
3628 # Enable thread-safe client libraries
3629 #
3630 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
3631 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
3632
3633
3634
3635 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3636 if test "${enable_thread_safety+set}" = set; then
3637   enableval="$enable_thread_safety"
3638
3639   case $enableval in
3640     yes)
3641       :
3642       ;;
3643     no)
3644       :
3645       ;;
3646     *)
3647       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3648 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3649    { (exit 1); exit 1; }; }
3650       ;;
3651   esac
3652
3653 else
3654   enable_thread_safety=no
3655
3656 fi;
3657
3658
3659
3660
3661 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
3662 if test "${enable_thread_safety_force+set}" = set; then
3663   enableval="$enable_thread_safety_force"
3664
3665   case $enableval in
3666     yes)
3667       :
3668       ;;
3669     no)
3670       :
3671       ;;
3672     *)
3673       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
3674 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
3675    { (exit 1); exit 1; }; }
3676       ;;
3677   esac
3678
3679 else
3680   enable_thread_safety_force=no
3681
3682 fi;
3683
3684 if test "$enable_thread_safety" = yes -o \
3685         "$enable_thread_safety_force" = yes; then
3686   enable_thread_safety="yes"    # for 'force'
3687
3688 cat >>confdefs.h <<\_ACEOF
3689 #define ENABLE_THREAD_SAFETY 1
3690 _ACEOF
3691
3692 fi
3693 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
3694 echo "${ECHO_T}$enable_thread_safety" >&6
3695
3696
3697 #
3698 # Optionally build Tcl modules (PL/Tcl)
3699 #
3700 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3701 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3702
3703
3704
3705
3706 # Check whether --with-tcl or --without-tcl was given.
3707 if test "${with_tcl+set}" = set; then
3708   withval="$with_tcl"
3709
3710   case $withval in
3711     yes)
3712       :
3713       ;;
3714     no)
3715       :
3716       ;;
3717     *)
3718       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3719 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3720    { (exit 1); exit 1; }; }
3721       ;;
3722   esac
3723
3724 else
3725   with_tcl=no
3726
3727 fi;
3728
3729 echo "$as_me:$LINENO: result: $with_tcl" >&5
3730 echo "${ECHO_T}$with_tcl" >&6
3731
3732
3733 # We see if the path to the Tcl/Tk configuration scripts is specified.
3734 # This will override the use of tclsh to find the paths to search.
3735
3736
3737
3738
3739
3740 # Check whether --with-tclconfig or --without-tclconfig was given.
3741 if test "${with_tclconfig+set}" = set; then
3742   withval="$with_tclconfig"
3743
3744   case $withval in
3745     yes)
3746       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3747 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3748    { (exit 1); exit 1; }; }
3749       ;;
3750     no)
3751       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3752 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3753    { (exit 1); exit 1; }; }
3754       ;;
3755     *)
3756
3757       ;;
3758   esac
3759
3760 fi;
3761
3762
3763 #
3764 # Optionally build Perl modules (PL/Perl)
3765 #
3766 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3767 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3768
3769
3770
3771
3772 # Check whether --with-perl or --without-perl was given.
3773 if test "${with_perl+set}" = set; then
3774   withval="$with_perl"
3775
3776   case $withval in
3777     yes)
3778       :
3779       ;;
3780     no)
3781       :
3782       ;;
3783     *)
3784       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3785 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3786    { (exit 1); exit 1; }; }
3787       ;;
3788   esac
3789
3790 else
3791   with_perl=no
3792
3793 fi;
3794
3795 echo "$as_me:$LINENO: result: $with_perl" >&5
3796 echo "${ECHO_T}$with_perl" >&6
3797
3798
3799 #
3800 # Optionally build Python modules (PL/Python)
3801 #
3802 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3803 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3804
3805
3806
3807
3808 # Check whether --with-python or --without-python was given.
3809 if test "${with_python+set}" = set; then
3810   withval="$with_python"
3811
3812   case $withval in
3813     yes)
3814       :
3815       ;;
3816     no)
3817       :
3818       ;;
3819     *)
3820       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3821 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3822    { (exit 1); exit 1; }; }
3823       ;;
3824   esac
3825
3826 else
3827   with_python=no
3828
3829 fi;
3830
3831 echo "$as_me:$LINENO: result: $with_python" >&5
3832 echo "${ECHO_T}$with_python" >&6
3833
3834
3835 #
3836 # Kerberos 5
3837 #
3838 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3839 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3840
3841
3842
3843
3844 # Check whether --with-krb5 or --without-krb5 was given.
3845 if test "${with_krb5+set}" = set; then
3846   withval="$with_krb5"
3847
3848   case $withval in
3849     yes)
3850
3851
3852 cat >>confdefs.h <<\_ACEOF
3853 #define KRB5 1
3854 _ACEOF
3855
3856   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3857
3858       ;;
3859     no)
3860       :
3861       ;;
3862     *)
3863       { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3864 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3865    { (exit 1); exit 1; }; }
3866       ;;
3867   esac
3868
3869 else
3870   with_krb5=no
3871
3872 fi;
3873
3874 echo "$as_me:$LINENO: result: $with_krb5" >&5
3875 echo "${ECHO_T}$with_krb5" >&6
3876
3877
3878
3879
3880
3881
3882 #
3883 # Kerberos configuration parameters
3884 #
3885
3886
3887
3888
3889 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3890 if test "${with_krb_srvnam+set}" = set; then
3891   withval="$with_krb_srvnam"
3892
3893   case $withval in
3894     yes)
3895       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3896 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3897    { (exit 1); exit 1; }; }
3898       ;;
3899     no)
3900       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3901 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3902    { (exit 1); exit 1; }; }
3903       ;;
3904     *)
3905
3906       ;;
3907   esac
3908
3909 else
3910   with_krb_srvnam="postgres"
3911 fi;
3912
3913
3914 cat >>confdefs.h <<_ACEOF
3915 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3916 _ACEOF
3917
3918
3919
3920 #
3921 # PAM
3922 #
3923 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3924 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3925
3926
3927
3928
3929 # Check whether --with-pam or --without-pam was given.
3930 if test "${with_pam+set}" = set; then
3931   withval="$with_pam"
3932
3933   case $withval in
3934     yes)
3935
3936 cat >>confdefs.h <<\_ACEOF
3937 #define USE_PAM 1
3938 _ACEOF
3939
3940       ;;
3941     no)
3942       :
3943       ;;
3944     *)
3945       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3946 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3947    { (exit 1); exit 1; }; }
3948       ;;
3949   esac
3950
3951 else
3952   with_pam=no
3953
3954 fi;
3955
3956 echo "$as_me:$LINENO: result: $with_pam" >&5
3957 echo "${ECHO_T}$with_pam" >&6
3958
3959
3960
3961 #
3962 # LDAP
3963 #
3964 echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
3965 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6
3966
3967
3968
3969
3970 # Check whether --with-ldap or --without-ldap was given.
3971 if test "${with_ldap+set}" = set; then
3972   withval="$with_ldap"
3973
3974   case $withval in
3975     yes)
3976
3977 cat >>confdefs.h <<\_ACEOF
3978 #define USE_LDAP 1
3979 _ACEOF
3980
3981       ;;
3982     no)
3983       :
3984       ;;
3985     *)
3986       { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
3987 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
3988    { (exit 1); exit 1; }; }
3989       ;;
3990   esac
3991
3992 else
3993   with_ldap=no
3994
3995 fi;
3996
3997 echo "$as_me:$LINENO: result: $with_ldap" >&5
3998 echo "${ECHO_T}$with_ldap" >&6
3999
4000
4001
4002 #
4003 # Bonjour
4004 #
4005 echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
4006 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6
4007
4008
4009
4010
4011 # Check whether --with-bonjour or --without-bonjour was given.
4012 if test "${with_bonjour+set}" = set; then
4013   withval="$with_bonjour"
4014
4015   case $withval in
4016     yes)
4017
4018 cat >>confdefs.h <<\_ACEOF
4019 #define USE_BONJOUR 1
4020 _ACEOF
4021
4022       ;;
4023     no)
4024       :
4025       ;;
4026     *)
4027       { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
4028 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
4029    { (exit 1); exit 1; }; }
4030       ;;
4031   esac
4032
4033 else
4034   with_bonjour=no
4035
4036 fi;
4037
4038 echo "$as_me:$LINENO: result: $with_bonjour" >&5
4039 echo "${ECHO_T}$with_bonjour" >&6
4040
4041
4042
4043 #
4044 # OpenSSL
4045 #
4046 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
4047 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
4048
4049
4050
4051
4052 # Check whether --with-openssl or --without-openssl was given.
4053 if test "${with_openssl+set}" = set; then
4054   withval="$with_openssl"
4055
4056   case $withval in
4057     yes)
4058
4059 cat >>confdefs.h <<\_ACEOF
4060 #define USE_SSL 1
4061 _ACEOF
4062
4063       ;;
4064     no)
4065       :
4066       ;;
4067     *)
4068       { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
4069 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
4070    { (exit 1); exit 1; }; }
4071       ;;
4072   esac
4073
4074 else
4075   with_openssl=no
4076
4077 fi;
4078
4079 echo "$as_me:$LINENO: result: $with_openssl" >&5
4080 echo "${ECHO_T}$with_openssl" >&6
4081
4082
4083
4084 #
4085 # Prefer libedit
4086 #
4087
4088
4089
4090
4091 # Check whether --with-libedit-preferred or --without-libedit-preferred was given.
4092 if test "${with_libedit_preferred+set}" = set; then
4093   withval="$with_libedit_preferred"
4094
4095   case $withval in
4096     yes)
4097       :
4098       ;;
4099     no)
4100       :
4101       ;;
4102     *)
4103       { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
4104 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
4105    { (exit 1); exit 1; }; }
4106       ;;
4107   esac
4108
4109 else
4110   with_libedit_preferred=no
4111
4112 fi;
4113
4114
4115
4116 #
4117 # Readline
4118 #
4119
4120
4121
4122
4123 # Check whether --with-readline or --without-readline was given.
4124 if test "${with_readline+set}" = set; then
4125   withval="$with_readline"
4126
4127   case $withval in
4128     yes)
4129       :
4130       ;;
4131     no)
4132       :
4133       ;;
4134     *)
4135       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
4136 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
4137    { (exit 1); exit 1; }; }
4138       ;;
4139   esac
4140
4141 else
4142   with_readline=yes
4143
4144 fi;
4145
4146 # readline on MinGW has problems with backslashes in psql and other bugs.
4147 # This is particularly a problem with non-US code pages.
4148 # Therefore disable its use until we understand the cause. 2004-07-20
4149 if test "$PORTNAME" = "win32"; then
4150   if test "$with_readline" = yes; then
4151     { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
4152 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
4153     with_readline=no
4154   fi
4155 fi
4156
4157
4158 #
4159 # Zlib
4160 #
4161
4162
4163
4164
4165 # Check whether --with-zlib or --without-zlib was given.
4166 if test "${with_zlib+set}" = set; then
4167   withval="$with_zlib"
4168
4169   case $withval in
4170     yes)
4171       :
4172       ;;
4173     no)
4174       :
4175       ;;
4176     *)
4177       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
4178 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
4179    { (exit 1); exit 1; }; }
4180       ;;
4181   esac
4182
4183 else
4184   with_zlib=yes
4185
4186 fi;
4187
4188
4189
4190 #
4191 # Elf
4192 #
4193
4194 # Assume system is ELF if it predefines __ELF__ as 1,
4195 # otherwise believe host_os based default.
4196 case $host_os in
4197     freebsd1*|freebsd2*) elf=no;;
4198     freebsd3*|freebsd4*) elf=yes;;
4199 esac
4200
4201
4202 echo "$as_me:$LINENO: checking for egrep" >&5
4203 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4204 if test "${ac_cv_prog_egrep+set}" = set; then
4205   echo $ECHO_N "(cached) $ECHO_C" >&6
4206 else
4207   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4208     then ac_cv_prog_egrep='grep -E'
4209     else ac_cv_prog_egrep='egrep'
4210     fi
4211 fi
4212 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4213 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4214  EGREP=$ac_cv_prog_egrep
4215
4216
4217 cat >conftest.$ac_ext <<_ACEOF
4218 /* confdefs.h.  */
4219 _ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h.  */
4223 #if __ELF__
4224   yes
4225 #endif
4226
4227 _ACEOF
4228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4229   $EGREP "yes" >/dev/null 2>&1; then
4230   ELF_SYS=true
4231 else
4232   if test "X$elf" = "Xyes" ; then
4233   ELF_SYS=true
4234 else
4235   ELF_SYS=
4236 fi
4237 fi
4238 rm -f conftest*
4239
4240
4241
4242 #
4243 # Assignments
4244 #
4245
4246 CPPFLAGS="$CPPFLAGS $INCLUDES"
4247 LDFLAGS="$LDFLAGS $LIBDIRS"
4248
4249 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4250 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4251 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4252 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4253
4254
4255
4256 for ac_prog in gawk mawk nawk awk
4257 do
4258   # Extract the first word of "$ac_prog", so it can be a program name with args.
4259 set dummy $ac_prog; ac_word=$2
4260 echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4262 if test "${ac_cv_prog_AWK+set}" = set; then
4263   echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265   if test -n "$AWK"; then
4266   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4267 else
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH
4270 do
4271   IFS=$as_save_IFS
4272   test -z "$as_dir" && as_dir=.
4273   for ac_exec_ext in '' $ac_executable_extensions; do
4274   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4275     ac_cv_prog_AWK="$ac_prog"
4276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4277     break 2
4278   fi
4279 done
4280 done
4281
4282 fi
4283 fi
4284 AWK=$ac_cv_prog_AWK
4285 if test -n "$AWK"; then
4286   echo "$as_me:$LINENO: result: $AWK" >&5
4287 echo "${ECHO_T}$AWK" >&6
4288 else
4289   echo "$as_me:$LINENO: result: no" >&5
4290 echo "${ECHO_T}no" >&6
4291 fi
4292
4293   test -n "$AWK" && break
4294 done
4295
4296 echo "$as_me:$LINENO: checking for flex" >&5
4297 echo $ECHO_N "checking for flex... $ECHO_C" >&6
4298 if test "${pgac_cv_path_flex+set}" = set; then
4299   echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301   # Let the user override the test
4302 if test -n "$FLEX"; then
4303   pgac_cv_path_flex=$FLEX
4304 else
4305   pgac_save_IFS=$IFS
4306   IFS=$PATH_SEPARATOR
4307   for pgac_dir in $PATH; do
4308     IFS=$pgac_save_IFS
4309     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4310       pgac_dir=`pwd`
4311     fi
4312     for pgac_prog in flex lex; do
4313       pgac_candidate="$pgac_dir/$pgac_prog"
4314       if test -f "$pgac_candidate" \
4315         && $pgac_candidate --version </dev/null >/dev/null 2>&1
4316       then
4317         echo '%%'  > conftest.l
4318         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4319           if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
4320             pgac_broken_flex=$pgac_candidate
4321             continue
4322           fi
4323
4324           pgac_cv_path_flex=$pgac_candidate
4325           break 2
4326         fi
4327       fi
4328     done
4329   done
4330   rm -f conftest.l lex.yy.c
4331   : ${pgac_cv_path_flex=no}
4332 fi
4333
4334 fi
4335 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4336 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4337 if test x"$pgac_cv_path_flex" = x"no"; then
4338   if test -n "$pgac_broken_flex"; then
4339     { echo "$as_me:$LINENO: WARNING:
4340 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4341 *** should get version 2.5.4 or later." >&5
4342 echo "$as_me: WARNING:
4343 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4344 *** should get version 2.5.4 or later." >&2;}
4345   fi
4346
4347   { echo "$as_me:$LINENO: WARNING:
4348 *** Without Flex you will not be able to build PostgreSQL from CVS or
4349 *** change any of the scanner definition files.  You can obtain Flex from
4350 *** a GNU mirror site.  (If you are using the official distribution of
4351 *** PostgreSQL then you do not need to worry about this because the Flex
4352 *** output is pre-generated.)" >&5
4353 echo "$as_me: WARNING:
4354 *** Without Flex you will not be able to build PostgreSQL from CVS or
4355 *** change any of the scanner definition files.  You can obtain Flex from
4356 *** a GNU mirror site.  (If you are using the official distribution of
4357 *** PostgreSQL then you do not need to worry about this because the Flex
4358 *** output is pre-generated.)" >&2;}
4359 fi
4360
4361 if test x"$pgac_cv_path_flex" = x"no"; then
4362   FLEX=
4363 else
4364   FLEX=$pgac_cv_path_flex
4365 fi
4366
4367
4368
4369
4370 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4371 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4372 LN_S=$as_ln_s
4373 if test "$LN_S" = "ln -s"; then
4374   echo "$as_me:$LINENO: result: yes" >&5
4375 echo "${ECHO_T}yes" >&6
4376 else
4377   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4378 echo "${ECHO_T}no, using $LN_S" >&6
4379 fi
4380
4381
4382 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4383 if test "${with_gnu_ld+set}" = set; then
4384   withval="$with_gnu_ld"
4385   test "$withval" = no || with_gnu_ld=yes
4386 else
4387   with_gnu_ld=no
4388 fi;
4389 ac_prog=ld
4390 if test "$GCC" = yes; then
4391   # Check if gcc -print-prog-name=ld gives a path.
4392   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4393 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4394   case $host in
4395   *-*-mingw*)
4396     # gcc leaves a trailing carriage return which upsets mingw
4397     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4398   *)
4399     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4400   esac
4401   case "$ac_prog" in
4402     # Accept absolute paths.
4403     [\\/]* | [A-Za-z]:[\\/]*)
4404       re_direlt='/[^/][^/]*/\.\./'
4405       # Canonicalize the path of ld
4406       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4407       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4408         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4409       done
4410       test -z "$LD" && LD="$ac_prog"
4411       ;;
4412   "")
4413     # If it fails, then pretend we aren't using GCC.
4414     ac_prog=ld
4415     ;;
4416   *)
4417     # If it is relative, then search for the first ld in PATH.
4418     with_gnu_ld=unknown
4419     ;;
4420   esac
4421 elif test "$with_gnu_ld" = yes; then
4422   echo "$as_me:$LINENO: checking for GNU ld" >&5
4423 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4424 else
4425   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4426 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4427 fi
4428 if test "${ac_cv_path_LD+set}" = set; then
4429   echo $ECHO_N "(cached) $ECHO_C" >&6
4430 else
4431   if test -z "$LD"; then
4432   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4433   for ac_dir in $PATH; do
4434     test -z "$ac_dir" && ac_dir=.
4435     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4436       ac_cv_path_LD="$ac_dir/$ac_prog"
4437       # Check to see if the program is GNU ld.  I'd rather use --version,
4438       # but apparently some GNU ld's only accept -v.
4439       # Break only if it was the GNU/non-GNU ld that we prefer.
4440       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4441         test "$with_gnu_ld" != no && break
4442       else
4443         test "$with_gnu_ld" != yes && break
4444       fi
4445     fi
4446   done
4447   IFS="$ac_save_ifs"
4448 else
4449   ac_cv_path_LD="$LD" # Let the user override the test with a path.
4450 fi
4451 fi
4452
4453 LD="$ac_cv_path_LD"
4454 if test -n "$LD"; then
4455   echo "$as_me:$LINENO: result: $LD" >&5
4456 echo "${ECHO_T}$LD" >&6
4457 else
4458   echo "$as_me:$LINENO: result: no" >&5
4459 echo "${ECHO_T}no" >&6
4460 fi
4461 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4462 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4463    { (exit 1); exit 1; }; }
4464 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4465 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4466 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4467   echo $ECHO_N "(cached) $ECHO_C" >&6
4468 else
4469   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4470 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4471   ac_cv_prog_gnu_ld=yes
4472 else
4473   ac_cv_prog_gnu_ld=no
4474 fi
4475 fi
4476 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4477 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4478 with_gnu_ld=$ac_cv_prog_gnu_ld
4479
4480
4481
4482
4483 case $host_os in sysv5*)
4484   echo "$as_me:$LINENO: checking whether ld -R works" >&5
4485 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4486 if test "${pgac_cv_prog_ld_R+set}" = set; then
4487   echo $ECHO_N "(cached) $ECHO_C" >&6
4488 else
4489
4490     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4491     cat >conftest.$ac_ext <<_ACEOF
4492 /* confdefs.h.  */
4493 _ACEOF
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>conftest.$ac_ext <<_ACEOF
4496 /* end confdefs.h.  */
4497
4498 int
4499 main ()
4500 {
4501
4502   ;
4503   return 0;
4504 }
4505 _ACEOF
4506 rm -f conftest.$ac_objext conftest$ac_exeext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4508   (eval $ac_link) 2>conftest.er1
4509   ac_status=$?
4510   grep -v '^ *+' conftest.er1 >conftest.err
4511   rm -f conftest.er1
4512   cat conftest.err >&5
4513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514   (exit $ac_status); } &&
4515          { ac_try='test -z "$ac_c_werror_flag"
4516                          || test ! -s conftest.err'
4517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518   (eval $ac_try) 2>&5
4519   ac_status=$?
4520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521   (exit $ac_status); }; } &&
4522          { ac_try='test -s conftest$ac_exeext'
4523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524   (eval $ac_try) 2>&5
4525   ac_status=$?
4526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527   (exit $ac_status); }; }; then
4528   pgac_cv_prog_ld_R=yes
4529 else
4530   echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4532
4533 pgac_cv_prog_ld_R=no
4534 fi
4535 rm -f conftest.err conftest.$ac_objext \
4536       conftest$ac_exeext conftest.$ac_ext
4537     LDFLAGS=$pgac_save_LDFLAGS
4538
4539 fi
4540 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4541 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4542   ld_R_works=$pgac_cv_prog_ld_R
4543
4544 esac
4545 if test -n "$ac_tool_prefix"; then
4546   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4547 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4548 echo "$as_me:$LINENO: checking for $ac_word" >&5
4549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4550 if test "${ac_cv_prog_RANLIB+set}" = set; then
4551   echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553   if test -n "$RANLIB"; then
4554   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4555 else
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4558 do
4559   IFS=$as_save_IFS
4560   test -z "$as_dir" && as_dir=.
4561   for ac_exec_ext in '' $ac_executable_extensions; do
4562   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4563     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4565     break 2
4566   fi
4567 done
4568 done
4569
4570 fi
4571 fi
4572 RANLIB=$ac_cv_prog_RANLIB
4573 if test -n "$RANLIB"; then
4574   echo "$as_me:$LINENO: result: $RANLIB" >&5
4575 echo "${ECHO_T}$RANLIB" >&6
4576 else
4577   echo "$as_me:$LINENO: result: no" >&5
4578 echo "${ECHO_T}no" >&6
4579 fi
4580
4581 fi
4582 if test -z "$ac_cv_prog_RANLIB"; then
4583   ac_ct_RANLIB=$RANLIB
4584   # Extract the first word of "ranlib", so it can be a program name with args.
4585 set dummy ranlib; ac_word=$2
4586 echo "$as_me:$LINENO: checking for $ac_word" >&5
4587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4588 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4589   echo $ECHO_N "(cached) $ECHO_C" >&6
4590 else
4591   if test -n "$ac_ct_RANLIB"; then
4592   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4593 else
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH
4596 do
4597   IFS=$as_save_IFS
4598   test -z "$as_dir" && as_dir=.
4599   for ac_exec_ext in '' $ac_executable_extensions; do
4600   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4601     ac_cv_prog_ac_ct_RANLIB="ranlib"
4602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4603     break 2
4604   fi
4605 done
4606 done
4607
4608   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4609 fi
4610 fi
4611 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4612 if test -n "$ac_ct_RANLIB"; then
4613   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4614 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4615 else
4616   echo "$as_me:$LINENO: result: no" >&5
4617 echo "${ECHO_T}no" >&6
4618 fi
4619
4620   RANLIB=$ac_ct_RANLIB
4621 else
4622   RANLIB="$ac_cv_prog_RANLIB"
4623 fi
4624
4625 # Extract the first word of "tar", so it can be a program name with args.
4626 set dummy tar; ac_word=$2
4627 echo "$as_me:$LINENO: checking for $ac_word" >&5
4628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4629 if test "${ac_cv_path_TAR+set}" = set; then
4630   echo $ECHO_N "(cached) $ECHO_C" >&6
4631 else
4632   case $TAR in
4633   [\\/]* | ?:[\\/]*)
4634   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4635   ;;
4636   *)
4637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4639 do
4640   IFS=$as_save_IFS
4641   test -z "$as_dir" && as_dir=.
4642   for ac_exec_ext in '' $ac_executable_extensions; do
4643   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4644     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646     break 2
4647   fi
4648 done
4649 done
4650
4651   ;;
4652 esac
4653 fi
4654 TAR=$ac_cv_path_TAR
4655
4656 if test -n "$TAR"; then
4657   echo "$as_me:$LINENO: result: $TAR" >&5
4658 echo "${ECHO_T}$TAR" >&6
4659 else
4660   echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6
4662 fi
4663
4664
4665   if test -n "$ac_tool_prefix"; then
4666   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4667 set dummy ${ac_tool_prefix}strip; ac_word=$2
4668 echo "$as_me:$LINENO: checking for $ac_word" >&5
4669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4670 if test "${ac_cv_prog_STRIP+set}" = set; then
4671   echo $ECHO_N "(cached) $ECHO_C" >&6
4672 else
4673   if test -n "$STRIP"; then
4674   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4675 else
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 for as_dir in $PATH
4678 do
4679   IFS=$as_save_IFS
4680   test -z "$as_dir" && as_dir=.
4681   for ac_exec_ext in '' $ac_executable_extensions; do
4682   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4683     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4685     break 2
4686   fi
4687 done
4688 done
4689
4690 fi
4691 fi
4692 STRIP=$ac_cv_prog_STRIP
4693 if test -n "$STRIP"; then
4694   echo "$as_me:$LINENO: result: $STRIP" >&5
4695 echo "${ECHO_T}$STRIP" >&6
4696 else
4697   echo "$as_me:$LINENO: result: no" >&5
4698 echo "${ECHO_T}no" >&6
4699 fi
4700
4701 fi
4702 if test -z "$ac_cv_prog_STRIP"; then
4703   ac_ct_STRIP=$STRIP
4704   # Extract the first word of "strip", so it can be a program name with args.
4705 set dummy strip; ac_word=$2
4706 echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4708 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4709   echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711   if test -n "$ac_ct_STRIP"; then
4712   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4713 else
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH
4716 do
4717   IFS=$as_save_IFS
4718   test -z "$as_dir" && as_dir=.
4719   for ac_exec_ext in '' $ac_executable_extensions; do
4720   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4721     ac_cv_prog_ac_ct_STRIP="strip"
4722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723     break 2
4724   fi
4725 done
4726 done
4727
4728   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4729 fi
4730 fi
4731 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4732 if test -n "$ac_ct_STRIP"; then
4733   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4734 echo "${ECHO_T}$ac_ct_STRIP" >&6
4735 else
4736   echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6
4738 fi
4739
4740   STRIP=$ac_ct_STRIP
4741 else
4742   STRIP="$ac_cv_prog_STRIP"
4743 fi
4744
4745
4746   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4747 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4748   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4749     STRIP_STATIC_LIB="$STRIP -x"
4750     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4751     echo "$as_me:$LINENO: result: yes" >&5
4752 echo "${ECHO_T}yes" >&6
4753   else
4754     STRIP_STATIC_LIB=:
4755     STRIP_SHARED_LIB=:
4756     echo "$as_me:$LINENO: result: no" >&5
4757 echo "${ECHO_T}no" >&6
4758   fi
4759
4760
4761
4762
4763 for ac_prog in 'bison -y'
4764 do
4765   # Extract the first word of "$ac_prog", so it can be a program name with args.
4766 set dummy $ac_prog; ac_word=$2
4767 echo "$as_me:$LINENO: checking for $ac_word" >&5
4768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4769 if test "${ac_cv_prog_YACC+set}" = set; then
4770   echo $ECHO_N "(cached) $ECHO_C" >&6
4771 else
4772   if test -n "$YACC"; then
4773   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4774 else
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 for as_dir in $PATH
4777 do
4778   IFS=$as_save_IFS
4779   test -z "$as_dir" && as_dir=.
4780   for ac_exec_ext in '' $ac_executable_extensions; do
4781   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4782     ac_cv_prog_YACC="$ac_prog"
4783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4784     break 2
4785   fi
4786 done
4787 done
4788
4789 fi
4790 fi
4791 YACC=$ac_cv_prog_YACC
4792 if test -n "$YACC"; then
4793   echo "$as_me:$LINENO: result: $YACC" >&5
4794 echo "${ECHO_T}$YACC" >&6
4795 else
4796   echo "$as_me:$LINENO: result: no" >&5
4797 echo "${ECHO_T}no" >&6
4798 fi
4799
4800   test -n "$YACC" && break
4801 done
4802
4803
4804 if test "$YACC"; then
4805   if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4806     { echo "$as_me:$LINENO: WARNING:
4807 *** If you are going to modify the grammar files or build from CVS, the installed
4808 *** version of Bison is too old.  Bison version 1.875 or later is required." >&5
4809 echo "$as_me: WARNING:
4810 *** If you are going to modify the grammar files or build from CVS, the installed
4811 *** version of Bison is too old.  Bison version 1.875 or later is required." >&2;}
4812   fi
4813 fi
4814
4815 if test -z "$YACC"; then
4816   { echo "$as_me:$LINENO: WARNING:
4817 *** Without Bison you will not be able to build PostgreSQL from CVS or
4818 *** change any of the parser definition files.  You can obtain Bison from
4819 *** a GNU mirror site.  (If you are using the official distribution of
4820 *** PostgreSQL then you do not need to worry about this because the Bison
4821 *** output is pre-generated.)  To use a different yacc program (possible,
4822 *** but not recommended), set the environment variable YACC before running
4823 *** 'configure'." >&5
4824 echo "$as_me: WARNING:
4825 *** Without Bison you will not be able to build PostgreSQL from CVS or
4826 *** change any of the parser definition files.  You can obtain Bison from
4827 *** a GNU mirror site.  (If you are using the official distribution of
4828 *** PostgreSQL then you do not need to worry about this because the Bison
4829 *** output is pre-generated.)  To use a different yacc program (possible,
4830 *** but not recommended), set the environment variable YACC before running
4831 *** 'configure'." >&2;}
4832 fi
4833
4834
4835 # Extract the first word of "perl", so it can be a program name with args.
4836 set dummy perl; ac_word=$2
4837 echo "$as_me:$LINENO: checking for $ac_word" >&5
4838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4839 if test "${ac_cv_path_PERL+set}" = set; then
4840   echo $ECHO_N "(cached) $ECHO_C" >&6
4841 else
4842   case $PERL in
4843   [\\/]* | ?:[\\/]*)
4844   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4845   ;;
4846   *)
4847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 for as_dir in $PATH
4849 do
4850   IFS=$as_save_IFS
4851   test -z "$as_dir" && as_dir=.
4852   for ac_exec_ext in '' $ac_executable_extensions; do
4853   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4854     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4856     break 2
4857   fi
4858 done
4859 done
4860
4861   ;;
4862 esac
4863 fi
4864 PERL=$ac_cv_path_PERL
4865
4866 if test -n "$PERL"; then
4867   echo "$as_me:$LINENO: result: $PERL" >&5
4868 echo "${ECHO_T}$PERL" >&6
4869 else
4870   echo "$as_me:$LINENO: result: no" >&5
4871 echo "${ECHO_T}no" >&6
4872 fi
4873
4874 if test "$with_perl" = yes; then
4875
4876 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4877 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4878 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4879 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4880 echo "${ECHO_T}$perl_archlibexp" >&6
4881 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4882 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4883 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4884 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4885 echo "${ECHO_T}$perl_privlibexp" >&6
4886 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4887 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4888 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4889 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4890 echo "${ECHO_T}$perl_useshrplib" >&6
4891
4892 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4893 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4894 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4895 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4896 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4897 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4898 echo "${ECHO_T}$perl_embed_ldflags" >&6
4899 fi
4900
4901 if test "$with_python" = yes; then
4902   # Extract the first word of "python", so it can be a program name with args.
4903 set dummy python; ac_word=$2
4904 echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4906 if test "${ac_cv_path_PYTHON+set}" = set; then
4907   echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909   case $PYTHON in
4910   [\\/]* | ?:[\\/]*)
4911   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4912   ;;
4913   *)
4914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4916 do
4917   IFS=$as_save_IFS
4918   test -z "$as_dir" && as_dir=.
4919   for ac_exec_ext in '' $ac_executable_extensions; do
4920   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4921     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4923     break 2
4924   fi
4925 done
4926 done
4927
4928   ;;
4929 esac
4930 fi
4931 PYTHON=$ac_cv_path_PYTHON
4932
4933 if test -n "$PYTHON"; then
4934   echo "$as_me:$LINENO: result: $PYTHON" >&5
4935 echo "${ECHO_T}$PYTHON" >&6
4936 else
4937   echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6
4939 fi
4940
4941 if test x"$PYTHON" = x""; then
4942   { { echo "$as_me:$LINENO: error: Python not found" >&5
4943 echo "$as_me: error: Python not found" >&2;}
4944    { (exit 1); exit 1; }; }
4945 fi
4946
4947
4948 echo "$as_me:$LINENO: checking for Python distutils module" >&5
4949 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6
4950 if "${PYTHON}" 2>&- -c 'import distutils'
4951 then
4952     echo "$as_me:$LINENO: result: yes" >&5
4953 echo "${ECHO_T}yes" >&6
4954 else
4955     echo "$as_me:$LINENO: result: no" >&5
4956 echo "${ECHO_T}no" >&6
4957     { { echo "$as_me:$LINENO: error: distutils module not found" >&5
4958 echo "$as_me: error: distutils module not found" >&2;}
4959    { (exit 1); exit 1; }; }
4960 fi
4961 echo "$as_me:$LINENO: checking Python configuration directory" >&5
4962 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6
4963 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4964 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')"`
4965 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
4966
4967 # This should be enough of a message.
4968 echo "$as_me:$LINENO: result: $python_configdir" >&5
4969 echo "${ECHO_T}$python_configdir" >&6
4970
4971
4972 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4973 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4974
4975 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
4976 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
4977 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
4978 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
4979
4980 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
4981 then
4982         # New way: use the official shared library
4983         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
4984         python_libspec="-L${python_libdir} -l${ldlibrary}"
4985 else
4986         # Old way: use libpython from python_configdir
4987         python_libdir="${python_configdir}"
4988         python_libspec="-L${python_libdir} -lpython${python_version}"
4989 fi
4990
4991 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
4992
4993 echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
4994 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6
4995
4996
4997 # threaded python is not supported on bsd's
4998 echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
4999 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6
5000 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
5001 if test "$pythreads" = "1"; then
5002   echo "$as_me:$LINENO: result: yes" >&5
5003 echo "${ECHO_T}yes" >&6
5004   case $host_os in
5005   openbsd*|freebsd4*)
5006     { { echo "$as_me:$LINENO: error: *** Threaded Python not supported on this platform ***" >&5
5007 echo "$as_me: error: *** Threaded Python not supported on this platform ***" >&2;}
5008    { (exit 1); exit 1; }; }
5009     ;;
5010   esac
5011 else
5012   echo "$as_me:$LINENO: result: no" >&5
5013 echo "${ECHO_T}no" >&6
5014 fi
5015
5016
5017 fi
5018
5019 # Supply a numeric version string for use by 3rd party add-ons
5020 # awk -F is a regex on some platforms, and not on others, so make "." a tab
5021 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/A-Za-z.*$//' |
5022 tr '.' '        ' |
5023 $AWK '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
5024
5025 cat >>confdefs.h <<_ACEOF
5026 #define PG_VERSION_NUM $PG_VERSION_NUM
5027 _ACEOF
5028
5029
5030 ##
5031 ## Libraries
5032 ##
5033
5034 echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
5035 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6
5036 if test "${ac_cv_search_setproctitle+set}" = set; then
5037   echo $ECHO_N "(cached) $ECHO_C" >&6
5038 else
5039   ac_func_search_save_LIBS=$LIBS
5040 ac_cv_search_setproctitle=no
5041 cat >conftest.$ac_ext <<_ACEOF
5042 /* confdefs.h.  */
5043 _ACEOF
5044 cat confdefs.h >>conftest.$ac_ext
5045 cat >>conftest.$ac_ext <<_ACEOF
5046 /* end confdefs.h.  */
5047
5048 /* Override any gcc2 internal prototype to avoid an error.  */
5049 #ifdef __cplusplus
5050 extern "C"
5051 #endif
5052 /* We use char because int might match the return type of a gcc2
5053    builtin and then its argument prototype would still apply.  */
5054 char setproctitle ();
5055 int
5056 main ()
5057 {
5058 setproctitle ();
5059   ;
5060   return 0;
5061 }
5062 _ACEOF
5063 rm -f conftest.$ac_objext conftest$ac_exeext
5064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5065   (eval $ac_link) 2>conftest.er1
5066   ac_status=$?
5067   grep -v '^ *+' conftest.er1 >conftest.err
5068   rm -f conftest.er1
5069   cat conftest.err >&5
5070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071   (exit $ac_status); } &&
5072          { ac_try='test -z "$ac_c_werror_flag"
5073                          || test ! -s conftest.err'
5074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075   (eval $ac_try) 2>&5
5076   ac_status=$?
5077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078   (exit $ac_status); }; } &&
5079          { ac_try='test -s conftest$ac_exeext'
5080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081   (eval $ac_try) 2>&5
5082   ac_status=$?
5083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084   (exit $ac_status); }; }; then
5085   ac_cv_search_setproctitle="none required"
5086 else
5087   echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.$ac_ext >&5
5089
5090 fi
5091 rm -f conftest.err conftest.$ac_objext \
5092       conftest$ac_exeext conftest.$ac_ext
5093 if test "$ac_cv_search_setproctitle" = no; then
5094   for ac_lib in util; do
5095     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5096     cat >conftest.$ac_ext <<_ACEOF
5097 /* confdefs.h.  */
5098 _ACEOF
5099 cat confdefs.h >>conftest.$ac_ext
5100 cat >>conftest.$ac_ext <<_ACEOF
5101 /* end confdefs.h.  */
5102
5103 /* Override any gcc2 internal prototype to avoid an error.  */
5104 #ifdef __cplusplus
5105 extern "C"
5106 #endif
5107 /* We use char because int might match the return type of a gcc2
5108    builtin and then its argument prototype would still apply.  */
5109 char setproctitle ();
5110 int
5111 main ()
5112 {
5113 setproctitle ();
5114   ;
5115   return 0;
5116 }
5117 _ACEOF
5118 rm -f conftest.$ac_objext conftest$ac_exeext
5119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5120   (eval $ac_link) 2>conftest.er1
5121   ac_status=$?
5122   grep -v '^ *+' conftest.er1 >conftest.err
5123   rm -f conftest.er1
5124   cat conftest.err >&5
5125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126   (exit $ac_status); } &&
5127          { ac_try='test -z "$ac_c_werror_flag"
5128                          || test ! -s conftest.err'
5129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5130   (eval $ac_try) 2>&5
5131   ac_status=$?
5132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133   (exit $ac_status); }; } &&
5134          { ac_try='test -s conftest$ac_exeext'
5135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5136   (eval $ac_try) 2>&5
5137   ac_status=$?
5138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139   (exit $ac_status); }; }; then
5140   ac_cv_search_setproctitle="-l$ac_lib"
5141 break
5142 else
5143   echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5145
5146 fi
5147 rm -f conftest.err conftest.$ac_objext \
5148       conftest$ac_exeext conftest.$ac_ext
5149   done
5150 fi
5151 LIBS=$ac_func_search_save_LIBS
5152 fi
5153 echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
5154 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6
5155 if test "$ac_cv_search_setproctitle" != no; then
5156   test "$ac_cv_search_setproctitle" = "none required" || LIBS="$ac_cv_search_setproctitle $LIBS"
5157
5158 fi
5159
5160 echo "$as_me:$LINENO: checking for library containing pow" >&5
5161 echo $ECHO_N "checking for library containing pow... $ECHO_C" >&6
5162 if test "${ac_cv_search_pow+set}" = set; then
5163   echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165   ac_func_search_save_LIBS=$LIBS
5166 ac_cv_search_pow=no
5167 cat >conftest.$ac_ext <<_ACEOF
5168 /* confdefs.h.  */
5169 _ACEOF
5170 cat confdefs.h >>conftest.$ac_ext
5171 cat >>conftest.$ac_ext <<_ACEOF
5172 /* end confdefs.h.  */
5173
5174 /* Override any gcc2 internal prototype to avoid an error.  */
5175 #ifdef __cplusplus
5176 extern "C"
5177 #endif
5178 /* We use char because int might match the return type of a gcc2
5179    builtin and then its argument prototype would still apply.  */
5180 char pow ();
5181 int
5182 main ()
5183 {
5184 pow ();
5185   ;
5186   return 0;
5187 }
5188 _ACEOF
5189 rm -f conftest.$ac_objext conftest$ac_exeext
5190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5191   (eval $ac_link) 2>conftest.er1
5192   ac_status=$?
5193   grep -v '^ *+' conftest.er1 >conftest.err
5194   rm -f conftest.er1
5195   cat conftest.err >&5
5196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197   (exit $ac_status); } &&
5198          { ac_try='test -z "$ac_c_werror_flag"
5199                          || test ! -s conftest.err'
5200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201   (eval $ac_try) 2>&5
5202   ac_status=$?
5203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204   (exit $ac_status); }; } &&
5205          { ac_try='test -s conftest$ac_exeext'
5206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5207   (eval $ac_try) 2>&5
5208   ac_status=$?
5209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210   (exit $ac_status); }; }; then
5211   ac_cv_search_pow="none required"
5212 else
5213   echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.$ac_ext >&5
5215
5216 fi
5217 rm -f conftest.err conftest.$ac_objext \
5218       conftest$ac_exeext conftest.$ac_ext
5219 if test "$ac_cv_search_pow" = no; then
5220   for ac_lib in m; do
5221     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5222     cat >conftest.$ac_ext <<_ACEOF
5223 /* confdefs.h.  */
5224 _ACEOF
5225 cat confdefs.h >>conftest.$ac_ext
5226 cat >>conftest.$ac_ext <<_ACEOF
5227 /* end confdefs.h.  */
5228
5229 /* Override any gcc2 internal prototype to avoid an error.  */
5230 #ifdef __cplusplus
5231 extern "C"
5232 #endif
5233 /* We use char because int might match the return type of a gcc2
5234    builtin and then its argument prototype would still apply.  */
5235 char pow ();
5236 int
5237 main ()
5238 {
5239 pow ();
5240   ;
5241   return 0;
5242 }
5243 _ACEOF
5244 rm -f conftest.$ac_objext conftest$ac_exeext
5245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5246   (eval $ac_link) 2>conftest.er1
5247   ac_status=$?
5248   grep -v '^ *+' conftest.er1 >conftest.err
5249   rm -f conftest.er1
5250   cat conftest.err >&5
5251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252   (exit $ac_status); } &&
5253          { ac_try='test -z "$ac_c_werror_flag"
5254                          || test ! -s conftest.err'
5255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256   (eval $ac_try) 2>&5
5257   ac_status=$?
5258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259   (exit $ac_status); }; } &&
5260          { ac_try='test -s conftest$ac_exeext'
5261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262   (eval $ac_try) 2>&5
5263   ac_status=$?
5264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265   (exit $ac_status); }; }; then
5266   ac_cv_search_pow="-l$ac_lib"
5267 break
5268 else
5269   echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5271
5272 fi
5273 rm -f conftest.err conftest.$ac_objext \
5274       conftest$ac_exeext conftest.$ac_ext
5275   done
5276 fi
5277 LIBS=$ac_func_search_save_LIBS
5278 fi
5279 echo "$as_me:$LINENO: result: $ac_cv_search_pow" >&5
5280 echo "${ECHO_T}$ac_cv_search_pow" >&6
5281 if test "$ac_cv_search_pow" != no; then
5282   test "$ac_cv_search_pow" = "none required" || LIBS="$ac_cv_search_pow $LIBS"
5283
5284 fi
5285
5286 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
5287 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
5288 if test "${ac_cv_search_dlopen+set}" = set; then
5289   echo $ECHO_N "(cached) $ECHO_C" >&6
5290 else
5291   ac_func_search_save_LIBS=$LIBS
5292 ac_cv_search_dlopen=no
5293 cat >conftest.$ac_ext <<_ACEOF
5294 /* confdefs.h.  */
5295 _ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h.  */
5299
5300 /* Override any gcc2 internal prototype to avoid an error.  */
5301 #ifdef __cplusplus
5302 extern "C"
5303 #endif
5304 /* We use char because int might match the return type of a gcc2
5305    builtin and then its argument prototype would still apply.  */
5306 char dlopen ();
5307 int
5308 main ()
5309 {
5310 dlopen ();
5311   ;
5312   return 0;
5313 }
5314 _ACEOF
5315 rm -f conftest.$ac_objext conftest$ac_exeext
5316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5317   (eval $ac_link) 2>conftest.er1
5318   ac_status=$?
5319   grep -v '^ *+' conftest.er1 >conftest.err
5320   rm -f conftest.er1
5321   cat conftest.err >&5
5322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323   (exit $ac_status); } &&
5324          { ac_try='test -z "$ac_c_werror_flag"
5325                          || test ! -s conftest.err'
5326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327   (eval $ac_try) 2>&5
5328   ac_status=$?
5329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330   (exit $ac_status); }; } &&
5331          { ac_try='test -s conftest$ac_exeext'
5332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333   (eval $ac_try) 2>&5
5334   ac_status=$?
5335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336   (exit $ac_status); }; }; then
5337   ac_cv_search_dlopen="none required"
5338 else
5339   echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5341
5342 fi
5343 rm -f conftest.err conftest.$ac_objext \
5344       conftest$ac_exeext conftest.$ac_ext
5345 if test "$ac_cv_search_dlopen" = no; then
5346   for ac_lib in dl; do
5347     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5348     cat >conftest.$ac_ext <<_ACEOF
5349 /* confdefs.h.  */
5350 _ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h.  */
5354
5355 /* Override any gcc2 internal prototype to avoid an error.  */
5356 #ifdef __cplusplus
5357 extern "C"
5358 #endif
5359 /* We use char because int might match the return type of a gcc2
5360    builtin and then its argument prototype would still apply.  */
5361 char dlopen ();
5362 int
5363 main ()
5364 {
5365 dlopen ();
5366   ;
5367   return 0;
5368 }
5369 _ACEOF
5370 rm -f conftest.$ac_objext conftest$ac_exeext
5371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5372   (eval $ac_link) 2>conftest.er1
5373   ac_status=$?
5374   grep -v '^ *+' conftest.er1 >conftest.err
5375   rm -f conftest.er1
5376   cat conftest.err >&5
5377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378   (exit $ac_status); } &&
5379          { ac_try='test -z "$ac_c_werror_flag"
5380                          || test ! -s conftest.err'
5381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382   (eval $ac_try) 2>&5
5383   ac_status=$?
5384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385   (exit $ac_status); }; } &&
5386          { ac_try='test -s conftest$ac_exeext'
5387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388   (eval $ac_try) 2>&5
5389   ac_status=$?
5390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391   (exit $ac_status); }; }; then
5392   ac_cv_search_dlopen="-l$ac_lib"
5393 break
5394 else
5395   echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5397
5398 fi
5399 rm -f conftest.err conftest.$ac_objext \
5400       conftest$ac_exeext conftest.$ac_ext
5401   done
5402 fi
5403 LIBS=$ac_func_search_save_LIBS
5404 fi
5405 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
5406 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
5407 if test "$ac_cv_search_dlopen" != no; then
5408   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
5409
5410 fi
5411
5412 echo "$as_me:$LINENO: checking for library containing socket" >&5
5413 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
5414 if test "${ac_cv_search_socket+set}" = set; then
5415   echo $ECHO_N "(cached) $ECHO_C" >&6
5416 else
5417   ac_func_search_save_LIBS=$LIBS
5418 ac_cv_search_socket=no
5419 cat >conftest.$ac_ext <<_ACEOF
5420 /* confdefs.h.  */
5421 _ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h.  */
5425
5426 /* Override any gcc2 internal prototype to avoid an error.  */
5427 #ifdef __cplusplus
5428 extern "C"
5429 #endif
5430 /* We use char because int might match the return type of a gcc2
5431    builtin and then its argument prototype would still apply.  */
5432 char socket ();
5433 int
5434 main ()
5435 {
5436 socket ();
5437   ;
5438   return 0;
5439 }
5440 _ACEOF
5441 rm -f conftest.$ac_objext conftest$ac_exeext
5442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5443   (eval $ac_link) 2>conftest.er1
5444   ac_status=$?
5445   grep -v '^ *+' conftest.er1 >conftest.err
5446   rm -f conftest.er1
5447   cat conftest.err >&5
5448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449   (exit $ac_status); } &&
5450          { ac_try='test -z "$ac_c_werror_flag"
5451                          || test ! -s conftest.err'
5452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453   (eval $ac_try) 2>&5
5454   ac_status=$?
5455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456   (exit $ac_status); }; } &&
5457          { ac_try='test -s conftest$ac_exeext'
5458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459   (eval $ac_try) 2>&5
5460   ac_status=$?
5461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462   (exit $ac_status); }; }; then
5463   ac_cv_search_socket="none required"
5464 else
5465   echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5467
5468 fi
5469 rm -f conftest.err conftest.$ac_objext \
5470       conftest$ac_exeext conftest.$ac_ext
5471 if test "$ac_cv_search_socket" = no; then
5472   for ac_lib in socket wsock32; do
5473     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5474     cat >conftest.$ac_ext <<_ACEOF
5475 /* confdefs.h.  */
5476 _ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h.  */
5480
5481 /* Override any gcc2 internal prototype to avoid an error.  */
5482 #ifdef __cplusplus
5483 extern "C"
5484 #endif
5485 /* We use char because int might match the return type of a gcc2
5486    builtin and then its argument prototype would still apply.  */
5487 char socket ();
5488 int
5489 main ()
5490 {
5491 socket ();
5492   ;
5493   return 0;
5494 }
5495 _ACEOF
5496 rm -f conftest.$ac_objext conftest$ac_exeext
5497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5498   (eval $ac_link) 2>conftest.er1
5499   ac_status=$?
5500   grep -v '^ *+' conftest.er1 >conftest.err
5501   rm -f conftest.er1
5502   cat conftest.err >&5
5503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504   (exit $ac_status); } &&
5505          { ac_try='test -z "$ac_c_werror_flag"
5506                          || test ! -s conftest.err'
5507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508   (eval $ac_try) 2>&5
5509   ac_status=$?
5510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511   (exit $ac_status); }; } &&
5512          { ac_try='test -s conftest$ac_exeext'
5513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514   (eval $ac_try) 2>&5
5515   ac_status=$?
5516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517   (exit $ac_status); }; }; then
5518   ac_cv_search_socket="-l$ac_lib"
5519 break
5520 else
5521   echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5523
5524 fi
5525 rm -f conftest.err conftest.$ac_objext \
5526       conftest$ac_exeext conftest.$ac_ext
5527   done
5528 fi
5529 LIBS=$ac_func_search_save_LIBS
5530 fi
5531 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5532 echo "${ECHO_T}$ac_cv_search_socket" >&6
5533 if test "$ac_cv_search_socket" != no; then
5534   test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
5535
5536 fi
5537
5538 echo "$as_me:$LINENO: checking for library containing shl_load" >&5
5539 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6
5540 if test "${ac_cv_search_shl_load+set}" = set; then
5541   echo $ECHO_N "(cached) $ECHO_C" >&6
5542 else
5543   ac_func_search_save_LIBS=$LIBS
5544 ac_cv_search_shl_load=no
5545 cat >conftest.$ac_ext <<_ACEOF
5546 /* confdefs.h.  */
5547 _ACEOF
5548 cat confdefs.h >>conftest.$ac_ext
5549 cat >>conftest.$ac_ext <<_ACEOF
5550 /* end confdefs.h.  */
5551
5552 /* Override any gcc2 internal prototype to avoid an error.  */
5553 #ifdef __cplusplus
5554 extern "C"
5555 #endif
5556 /* We use char because int might match the return type of a gcc2
5557    builtin and then its argument prototype would still apply.  */
5558 char shl_load ();
5559 int
5560 main ()
5561 {
5562 shl_load ();
5563   ;
5564   return 0;
5565 }
5566 _ACEOF
5567 rm -f conftest.$ac_objext conftest$ac_exeext
5568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5569   (eval $ac_link) 2>conftest.er1
5570   ac_status=$?
5571   grep -v '^ *+' conftest.er1 >conftest.err
5572   rm -f conftest.er1
5573   cat conftest.err >&5
5574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575   (exit $ac_status); } &&
5576          { ac_try='test -z "$ac_c_werror_flag"
5577                          || test ! -s conftest.err'
5578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579   (eval $ac_try) 2>&5
5580   ac_status=$?
5581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582   (exit $ac_status); }; } &&
5583          { ac_try='test -s conftest$ac_exeext'
5584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585   (eval $ac_try) 2>&5
5586   ac_status=$?
5587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588   (exit $ac_status); }; }; then
5589   ac_cv_search_shl_load="none required"
5590 else
5591   echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5593
5594 fi
5595 rm -f conftest.err conftest.$ac_objext \
5596       conftest$ac_exeext conftest.$ac_ext
5597 if test "$ac_cv_search_shl_load" = no; then
5598   for ac_lib in dld; do
5599     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5600     cat >conftest.$ac_ext <<_ACEOF
5601 /* confdefs.h.  */
5602 _ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h.  */
5606
5607 /* Override any gcc2 internal prototype to avoid an error.  */
5608 #ifdef __cplusplus
5609 extern "C"
5610 #endif
5611 /* We use char because int might match the return type of a gcc2
5612    builtin and then its argument prototype would still apply.  */
5613 char shl_load ();
5614 int
5615 main ()
5616 {
5617 shl_load ();
5618   ;
5619   return 0;
5620 }
5621 _ACEOF
5622 rm -f conftest.$ac_objext conftest$ac_exeext
5623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5624   (eval $ac_link) 2>conftest.er1
5625   ac_status=$?
5626   grep -v '^ *+' conftest.er1 >conftest.err
5627   rm -f conftest.er1
5628   cat conftest.err >&5
5629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630   (exit $ac_status); } &&
5631          { ac_try='test -z "$ac_c_werror_flag"
5632                          || test ! -s conftest.err'
5633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5634   (eval $ac_try) 2>&5
5635   ac_status=$?
5636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637   (exit $ac_status); }; } &&
5638          { ac_try='test -s conftest$ac_exeext'
5639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640   (eval $ac_try) 2>&5
5641   ac_status=$?
5642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643   (exit $ac_status); }; }; then
5644   ac_cv_search_shl_load="-l$ac_lib"
5645 break
5646 else
5647   echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5649
5650 fi
5651 rm -f conftest.err conftest.$ac_objext \
5652       conftest$ac_exeext conftest.$ac_ext
5653   done
5654 fi
5655 LIBS=$ac_func_search_save_LIBS
5656 fi
5657 echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
5658 echo "${ECHO_T}$ac_cv_search_shl_load" >&6
5659 if test "$ac_cv_search_shl_load" != no; then
5660   test "$ac_cv_search_shl_load" = "none required" || LIBS="$ac_cv_search_shl_load $LIBS"
5661
5662 fi
5663
5664 # We only use libld in port/dynloader/aix.c
5665 case $host_os in
5666      aix*)
5667         echo "$as_me:$LINENO: checking for library containing ldopen" >&5
5668 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6
5669 if test "${ac_cv_search_ldopen+set}" = set; then
5670   echo $ECHO_N "(cached) $ECHO_C" >&6
5671 else
5672   ac_func_search_save_LIBS=$LIBS
5673 ac_cv_search_ldopen=no
5674 cat >conftest.$ac_ext <<_ACEOF
5675 /* confdefs.h.  */
5676 _ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h.  */
5680
5681 /* Override any gcc2 internal prototype to avoid an error.  */
5682 #ifdef __cplusplus
5683 extern "C"
5684 #endif
5685 /* We use char because int might match the return type of a gcc2
5686    builtin and then its argument prototype would still apply.  */
5687 char ldopen ();
5688 int
5689 main ()
5690 {
5691 ldopen ();
5692   ;
5693   return 0;
5694 }
5695 _ACEOF
5696 rm -f conftest.$ac_objext conftest$ac_exeext
5697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5698   (eval $ac_link) 2>conftest.er1
5699   ac_status=$?
5700   grep -v '^ *+' conftest.er1 >conftest.err
5701   rm -f conftest.er1
5702   cat conftest.err >&5
5703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704   (exit $ac_status); } &&
5705          { ac_try='test -z "$ac_c_werror_flag"
5706                          || test ! -s conftest.err'
5707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708   (eval $ac_try) 2>&5
5709   ac_status=$?
5710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711   (exit $ac_status); }; } &&
5712          { ac_try='test -s conftest$ac_exeext'
5713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714   (eval $ac_try) 2>&5
5715   ac_status=$?
5716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717   (exit $ac_status); }; }; then
5718   ac_cv_search_ldopen="none required"
5719 else
5720   echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5722
5723 fi
5724 rm -f conftest.err conftest.$ac_objext \
5725       conftest$ac_exeext conftest.$ac_ext
5726 if test "$ac_cv_search_ldopen" = no; then
5727   for ac_lib in ld; do
5728     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5729     cat >conftest.$ac_ext <<_ACEOF
5730 /* confdefs.h.  */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h.  */
5735
5736 /* Override any gcc2 internal prototype to avoid an error.  */
5737 #ifdef __cplusplus
5738 extern "C"
5739 #endif
5740 /* We use char because int might match the return type of a gcc2
5741    builtin and then its argument prototype would still apply.  */
5742 char ldopen ();
5743 int
5744 main ()
5745 {
5746 ldopen ();
5747   ;
5748   return 0;
5749 }
5750 _ACEOF
5751 rm -f conftest.$ac_objext conftest$ac_exeext
5752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5753   (eval $ac_link) 2>conftest.er1
5754   ac_status=$?
5755   grep -v '^ *+' conftest.er1 >conftest.err
5756   rm -f conftest.er1
5757   cat conftest.err >&5
5758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759   (exit $ac_status); } &&
5760          { ac_try='test -z "$ac_c_werror_flag"
5761                          || test ! -s conftest.err'
5762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763   (eval $ac_try) 2>&5
5764   ac_status=$?
5765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766   (exit $ac_status); }; } &&
5767          { ac_try='test -s conftest$ac_exeext'
5768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769   (eval $ac_try) 2>&5
5770   ac_status=$?
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); }; }; then
5773   ac_cv_search_ldopen="-l$ac_lib"
5774 break
5775 else
5776   echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5778
5779 fi
5780 rm -f conftest.err conftest.$ac_objext \
5781       conftest$ac_exeext conftest.$ac_ext
5782   done
5783 fi
5784 LIBS=$ac_func_search_save_LIBS
5785 fi
5786 echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
5787 echo "${ECHO_T}$ac_cv_search_ldopen" >&6
5788 if test "$ac_cv_search_ldopen" != no; then
5789   test "$ac_cv_search_ldopen" = "none required" || LIBS="$ac_cv_search_ldopen $LIBS"
5790
5791 fi
5792
5793         ;;
5794 esac
5795 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5796 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5797 if test "${ac_cv_search_getopt_long+set}" = set; then
5798   echo $ECHO_N "(cached) $ECHO_C" >&6
5799 else
5800   ac_func_search_save_LIBS=$LIBS
5801 ac_cv_search_getopt_long=no
5802 cat >conftest.$ac_ext <<_ACEOF
5803 /* confdefs.h.  */
5804 _ACEOF
5805 cat confdefs.h >>conftest.$ac_ext
5806 cat >>conftest.$ac_ext <<_ACEOF
5807 /* end confdefs.h.  */
5808
5809 /* Override any gcc2 internal prototype to avoid an error.  */
5810 #ifdef __cplusplus
5811 extern "C"
5812 #endif
5813 /* We use char because int might match the return type of a gcc2
5814    builtin and then its argument prototype would still apply.  */
5815 char getopt_long ();
5816 int
5817 main ()
5818 {
5819 getopt_long ();
5820   ;
5821   return 0;
5822 }
5823 _ACEOF
5824 rm -f conftest.$ac_objext conftest$ac_exeext
5825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5826   (eval $ac_link) 2>conftest.er1
5827   ac_status=$?
5828   grep -v '^ *+' conftest.er1 >conftest.err
5829   rm -f conftest.er1
5830   cat conftest.err >&5
5831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832   (exit $ac_status); } &&
5833          { ac_try='test -z "$ac_c_werror_flag"
5834                          || test ! -s conftest.err'
5835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836   (eval $ac_try) 2>&5
5837   ac_status=$?
5838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839   (exit $ac_status); }; } &&
5840          { ac_try='test -s conftest$ac_exeext'
5841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5842   (eval $ac_try) 2>&5
5843   ac_status=$?
5844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845   (exit $ac_status); }; }; then
5846   ac_cv_search_getopt_long="none required"
5847 else
5848   echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5850
5851 fi
5852 rm -f conftest.err conftest.$ac_objext \
5853       conftest$ac_exeext conftest.$ac_ext
5854 if test "$ac_cv_search_getopt_long" = no; then
5855   for ac_lib in getopt gnugetopt; do
5856     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5857     cat >conftest.$ac_ext <<_ACEOF
5858 /* confdefs.h.  */
5859 _ACEOF
5860 cat confdefs.h >>conftest.$ac_ext
5861 cat >>conftest.$ac_ext <<_ACEOF
5862 /* end confdefs.h.  */
5863
5864 /* Override any gcc2 internal prototype to avoid an error.  */
5865 #ifdef __cplusplus
5866 extern "C"
5867 #endif
5868 /* We use char because int might match the return type of a gcc2
5869    builtin and then its argument prototype would still apply.  */
5870 char getopt_long ();
5871 int
5872 main ()
5873 {
5874 getopt_long ();
5875   ;
5876   return 0;
5877 }
5878 _ACEOF
5879 rm -f conftest.$ac_objext conftest$ac_exeext
5880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5881   (eval $ac_link) 2>conftest.er1
5882   ac_status=$?
5883   grep -v '^ *+' conftest.er1 >conftest.err
5884   rm -f conftest.er1
5885   cat conftest.err >&5
5886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887   (exit $ac_status); } &&
5888          { ac_try='test -z "$ac_c_werror_flag"
5889                          || test ! -s conftest.err'
5890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891   (eval $ac_try) 2>&5
5892   ac_status=$?
5893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894   (exit $ac_status); }; } &&
5895          { ac_try='test -s conftest$ac_exeext'
5896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5897   (eval $ac_try) 2>&5
5898   ac_status=$?
5899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900   (exit $ac_status); }; }; then
5901   ac_cv_search_getopt_long="-l$ac_lib"
5902 break
5903 else
5904   echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5906
5907 fi
5908 rm -f conftest.err conftest.$ac_objext \
5909       conftest$ac_exeext conftest.$ac_ext
5910   done
5911 fi
5912 LIBS=$ac_func_search_save_LIBS
5913 fi
5914 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5915 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5916 if test "$ac_cv_search_getopt_long" != no; then
5917   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5918
5919 fi
5920
5921 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5922 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5923 if test "${ac_cv_search_crypt+set}" = set; then
5924   echo $ECHO_N "(cached) $ECHO_C" >&6
5925 else
5926   ac_func_search_save_LIBS=$LIBS
5927 ac_cv_search_crypt=no
5928 cat >conftest.$ac_ext <<_ACEOF
5929 /* confdefs.h.  */
5930 _ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h.  */
5934
5935 /* Override any gcc2 internal prototype to avoid an error.  */
5936 #ifdef __cplusplus
5937 extern "C"
5938 #endif
5939 /* We use char because int might match the return type of a gcc2
5940    builtin and then its argument prototype would still apply.  */
5941 char crypt ();
5942 int
5943 main ()
5944 {
5945 crypt ();
5946   ;
5947   return 0;
5948 }
5949 _ACEOF
5950 rm -f conftest.$ac_objext conftest$ac_exeext
5951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5952   (eval $ac_link) 2>conftest.er1
5953   ac_status=$?
5954   grep -v '^ *+' conftest.er1 >conftest.err
5955   rm -f conftest.er1
5956   cat conftest.err >&5
5957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958   (exit $ac_status); } &&
5959          { ac_try='test -z "$ac_c_werror_flag"
5960                          || test ! -s conftest.err'
5961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962   (eval $ac_try) 2>&5
5963   ac_status=$?
5964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965   (exit $ac_status); }; } &&
5966          { ac_try='test -s conftest$ac_exeext'
5967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968   (eval $ac_try) 2>&5
5969   ac_status=$?
5970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971   (exit $ac_status); }; }; then
5972   ac_cv_search_crypt="none required"
5973 else
5974   echo "$as_me: failed program was:" >&5
5975 sed 's/^/| /' conftest.$ac_ext >&5
5976
5977 fi
5978 rm -f conftest.err conftest.$ac_objext \
5979       conftest$ac_exeext conftest.$ac_ext
5980 if test "$ac_cv_search_crypt" = no; then
5981   for ac_lib in crypt; do
5982     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5983     cat >conftest.$ac_ext <<_ACEOF
5984 /* confdefs.h.  */
5985 _ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h.  */
5989
5990 /* Override any gcc2 internal prototype to avoid an error.  */
5991 #ifdef __cplusplus
5992 extern "C"
5993 #endif
5994 /* We use char because int might match the return type of a gcc2
5995    builtin and then its argument prototype would still apply.  */
5996 char crypt ();
5997 int
5998 main ()
5999 {
6000 crypt ();
6001   ;
6002   return 0;
6003 }
6004 _ACEOF
6005 rm -f conftest.$ac_objext conftest$ac_exeext
6006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6007   (eval $ac_link) 2>conftest.er1
6008   ac_status=$?
6009   grep -v '^ *+' conftest.er1 >conftest.err
6010   rm -f conftest.er1
6011   cat conftest.err >&5
6012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013   (exit $ac_status); } &&
6014          { ac_try='test -z "$ac_c_werror_flag"
6015                          || test ! -s conftest.err'
6016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017   (eval $ac_try) 2>&5
6018   ac_status=$?
6019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020   (exit $ac_status); }; } &&
6021          { ac_try='test -s conftest$ac_exeext'
6022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023   (eval $ac_try) 2>&5
6024   ac_status=$?
6025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026   (exit $ac_status); }; }; then
6027   ac_cv_search_crypt="-l$ac_lib"
6028 break
6029 else
6030   echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6032
6033 fi
6034 rm -f conftest.err conftest.$ac_objext \
6035       conftest$ac_exeext conftest.$ac_ext
6036   done
6037 fi
6038 LIBS=$ac_func_search_save_LIBS
6039 fi
6040 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6041 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6042 if test "$ac_cv_search_crypt" != no; then
6043   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6044
6045 fi
6046
6047 # Solaris:
6048 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6049 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6050 if test "${ac_cv_search_fdatasync+set}" = set; then
6051   echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053   ac_func_search_save_LIBS=$LIBS
6054 ac_cv_search_fdatasync=no
6055 cat >conftest.$ac_ext <<_ACEOF
6056 /* confdefs.h.  */
6057 _ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h.  */
6061
6062 /* Override any gcc2 internal prototype to avoid an error.  */
6063 #ifdef __cplusplus
6064 extern "C"
6065 #endif
6066 /* We use char because int might match the return type of a gcc2
6067    builtin and then its argument prototype would still apply.  */
6068 char fdatasync ();
6069 int
6070 main ()
6071 {
6072 fdatasync ();
6073   ;
6074   return 0;
6075 }
6076 _ACEOF
6077 rm -f conftest.$ac_objext conftest$ac_exeext
6078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6079   (eval $ac_link) 2>conftest.er1
6080   ac_status=$?
6081   grep -v '^ *+' conftest.er1 >conftest.err
6082   rm -f conftest.er1
6083   cat conftest.err >&5
6084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085   (exit $ac_status); } &&
6086          { ac_try='test -z "$ac_c_werror_flag"
6087                          || test ! -s conftest.err'
6088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089   (eval $ac_try) 2>&5
6090   ac_status=$?
6091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092   (exit $ac_status); }; } &&
6093          { ac_try='test -s conftest$ac_exeext'
6094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095   (eval $ac_try) 2>&5
6096   ac_status=$?
6097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098   (exit $ac_status); }; }; then
6099   ac_cv_search_fdatasync="none required"
6100 else
6101   echo "$as_me: failed program was:" >&5
6102 sed 's/^/| /' conftest.$ac_ext >&5
6103
6104 fi
6105 rm -f conftest.err conftest.$ac_objext \
6106       conftest$ac_exeext conftest.$ac_ext
6107 if test "$ac_cv_search_fdatasync" = no; then
6108   for ac_lib in rt posix4; do
6109     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6110     cat >conftest.$ac_ext <<_ACEOF
6111 /* confdefs.h.  */
6112 _ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h.  */
6116
6117 /* Override any gcc2 internal prototype to avoid an error.  */
6118 #ifdef __cplusplus
6119 extern "C"
6120 #endif
6121 /* We use char because int might match the return type of a gcc2
6122    builtin and then its argument prototype would still apply.  */
6123 char fdatasync ();
6124 int
6125 main ()
6126 {
6127 fdatasync ();
6128   ;
6129   return 0;
6130 }
6131 _ACEOF
6132 rm -f conftest.$ac_objext conftest$ac_exeext
6133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6134   (eval $ac_link) 2>conftest.er1
6135   ac_status=$?
6136   grep -v '^ *+' conftest.er1 >conftest.err
6137   rm -f conftest.er1
6138   cat conftest.err >&5
6139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140   (exit $ac_status); } &&
6141          { ac_try='test -z "$ac_c_werror_flag"
6142                          || test ! -s conftest.err'
6143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144   (eval $ac_try) 2>&5
6145   ac_status=$?
6146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147   (exit $ac_status); }; } &&
6148          { ac_try='test -s conftest$ac_exeext'
6149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150   (eval $ac_try) 2>&5
6151   ac_status=$?
6152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153   (exit $ac_status); }; }; then
6154   ac_cv_search_fdatasync="-l$ac_lib"
6155 break
6156 else
6157   echo "$as_me: failed program was:" >&5
6158 sed 's/^/| /' conftest.$ac_ext >&5
6159
6160 fi
6161 rm -f conftest.err conftest.$ac_objext \
6162       conftest$ac_exeext conftest.$ac_ext
6163   done
6164 fi
6165 LIBS=$ac_func_search_save_LIBS
6166 fi
6167 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6168 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6169 if test "$ac_cv_search_fdatasync" != no; then
6170   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6171
6172 fi
6173
6174 # Cygwin:
6175 echo "$as_me:$LINENO: checking for library containing shmget" >&5
6176 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6
6177 if test "${ac_cv_search_shmget+set}" = set; then
6178   echo $ECHO_N "(cached) $ECHO_C" >&6
6179 else
6180   ac_func_search_save_LIBS=$LIBS
6181 ac_cv_search_shmget=no
6182 cat >conftest.$ac_ext <<_ACEOF
6183 /* confdefs.h.  */
6184 _ACEOF
6185 cat confdefs.h >>conftest.$ac_ext
6186 cat >>conftest.$ac_ext <<_ACEOF
6187 /* end confdefs.h.  */
6188
6189 /* Override any gcc2 internal prototype to avoid an error.  */
6190 #ifdef __cplusplus
6191 extern "C"
6192 #endif
6193 /* We use char because int might match the return type of a gcc2
6194    builtin and then its argument prototype would still apply.  */
6195 char shmget ();
6196 int
6197 main ()
6198 {
6199 shmget ();
6200   ;
6201   return 0;
6202 }
6203 _ACEOF
6204 rm -f conftest.$ac_objext conftest$ac_exeext
6205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6206   (eval $ac_link) 2>conftest.er1
6207   ac_status=$?
6208   grep -v '^ *+' conftest.er1 >conftest.err
6209   rm -f conftest.er1
6210   cat conftest.err >&5
6211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212   (exit $ac_status); } &&
6213          { ac_try='test -z "$ac_c_werror_flag"
6214                          || test ! -s conftest.err'
6215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216   (eval $ac_try) 2>&5
6217   ac_status=$?
6218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219   (exit $ac_status); }; } &&
6220          { ac_try='test -s conftest$ac_exeext'
6221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222   (eval $ac_try) 2>&5
6223   ac_status=$?
6224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225   (exit $ac_status); }; }; then
6226   ac_cv_search_shmget="none required"
6227 else
6228   echo "$as_me: failed program was:" >&5
6229 sed 's/^/| /' conftest.$ac_ext >&5
6230
6231 fi
6232 rm -f conftest.err conftest.$ac_objext \
6233       conftest$ac_exeext conftest.$ac_ext
6234 if test "$ac_cv_search_shmget" = no; then
6235   for ac_lib in cygipc; do
6236     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6237     cat >conftest.$ac_ext <<_ACEOF
6238 /* confdefs.h.  */
6239 _ACEOF
6240 cat confdefs.h >>conftest.$ac_ext
6241 cat >>conftest.$ac_ext <<_ACEOF
6242 /* end confdefs.h.  */
6243
6244 /* Override any gcc2 internal prototype to avoid an error.  */
6245 #ifdef __cplusplus
6246 extern "C"
6247 #endif
6248 /* We use char because int might match the return type of a gcc2
6249    builtin and then its argument prototype would still apply.  */
6250 char shmget ();
6251 int
6252 main ()
6253 {
6254 shmget ();
6255   ;
6256   return 0;
6257 }
6258 _ACEOF
6259 rm -f conftest.$ac_objext conftest$ac_exeext
6260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6261   (eval $ac_link) 2>conftest.er1
6262   ac_status=$?
6263   grep -v '^ *+' conftest.er1 >conftest.err
6264   rm -f conftest.er1
6265   cat conftest.err >&5
6266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267   (exit $ac_status); } &&
6268          { ac_try='test -z "$ac_c_werror_flag"
6269                          || test ! -s conftest.err'
6270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271   (eval $ac_try) 2>&5
6272   ac_status=$?
6273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274   (exit $ac_status); }; } &&
6275          { ac_try='test -s conftest$ac_exeext'
6276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277   (eval $ac_try) 2>&5
6278   ac_status=$?
6279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280   (exit $ac_status); }; }; then
6281   ac_cv_search_shmget="-l$ac_lib"
6282 break
6283 else
6284   echo "$as_me: failed program was:" >&5
6285 sed 's/^/| /' conftest.$ac_ext >&5
6286
6287 fi
6288 rm -f conftest.err conftest.$ac_objext \
6289       conftest$ac_exeext conftest.$ac_ext
6290   done
6291 fi
6292 LIBS=$ac_func_search_save_LIBS
6293 fi
6294 echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
6295 echo "${ECHO_T}$ac_cv_search_shmget" >&6
6296 if test "$ac_cv_search_shmget" != no; then
6297   test "$ac_cv_search_shmget" = "none required" || LIBS="$ac_cv_search_shmget $LIBS"
6298
6299 fi
6300
6301
6302 if test "$with_readline" = yes; then
6303
6304
6305 if test "${pgac_cv_check_readline+set}" = set; then
6306   echo $ECHO_N "(cached) $ECHO_C" >&6
6307 else
6308   pgac_cv_check_readline=no
6309 pgac_save_LIBS=$LIBS
6310 if test x"$with_libedit_preferred" != x"yes"
6311 then    READLINE_ORDER="-lreadline -ledit"
6312 else    READLINE_ORDER="-ledit -lreadline"
6313 fi
6314 for pgac_rllib in $READLINE_ORDER ; do
6315   echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
6316 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6
6317   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6318     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
6319     cat >conftest.$ac_ext <<_ACEOF
6320 /* confdefs.h.  */
6321 _ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h.  */
6325
6326 /* Override any gcc2 internal prototype to avoid an error.  */
6327 #ifdef __cplusplus
6328 extern "C"
6329 #endif
6330 /* We use char because int might match the return type of a gcc2
6331    builtin and then its argument prototype would still apply.  */
6332 char readline ();
6333 int
6334 main ()
6335 {
6336 readline ();
6337   ;
6338   return 0;
6339 }
6340 _ACEOF
6341 rm -f conftest.$ac_objext conftest$ac_exeext
6342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6343   (eval $ac_link) 2>conftest.er1
6344   ac_status=$?
6345   grep -v '^ *+' conftest.er1 >conftest.err
6346   rm -f conftest.er1
6347   cat conftest.err >&5
6348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349   (exit $ac_status); } &&
6350          { ac_try='test -z "$ac_c_werror_flag"
6351                          || test ! -s conftest.err'
6352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353   (eval $ac_try) 2>&5
6354   ac_status=$?
6355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356   (exit $ac_status); }; } &&
6357          { ac_try='test -s conftest$ac_exeext'
6358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359   (eval $ac_try) 2>&5
6360   ac_status=$?
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); }; }; then
6363
6364       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
6365       # recognize dependent libraries; assume curses is needed if we didn't
6366       # find any dependency.
6367       case $host_os in
6368         netbsd* | openbsd* | irix*)
6369           if test x"$pgac_lib" = x"" ; then
6370             pgac_lib=" -lcurses"
6371           fi ;;
6372       esac
6373
6374       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6375       break
6376
6377 else
6378   echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6380
6381 fi
6382 rm -f conftest.err conftest.$ac_objext \
6383       conftest$ac_exeext conftest.$ac_ext
6384   done
6385   if test "$pgac_cv_check_readline" != no ; then
6386     echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6387 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6388     break
6389   else
6390     echo "$as_me:$LINENO: result: no" >&5
6391 echo "${ECHO_T}no" >&6
6392   fi
6393 done
6394 LIBS=$pgac_save_LIBS
6395
6396 fi
6397
6398 if test "$pgac_cv_check_readline" != no ; then
6399   LIBS="$pgac_cv_check_readline $LIBS"
6400
6401 cat >>confdefs.h <<\_ACEOF
6402 #define HAVE_LIBREADLINE 1
6403 _ACEOF
6404
6405 fi
6406
6407
6408   if test x"$pgac_cv_check_readline" = x"no"; then
6409     { { echo "$as_me:$LINENO: error: readline library not found
6410 If you have readline already installed, see config.log for details on the
6411 failure.  It is possible the compiler isn't looking in the proper directory.
6412 Use --without-readline to disable readline support." >&5
6413 echo "$as_me: error: readline library not found
6414 If you have readline already installed, see config.log for details on the
6415 failure.  It is possible the compiler isn't looking in the proper directory.
6416 Use --without-readline to disable readline support." >&2;}
6417    { (exit 1); exit 1; }; }
6418   fi
6419 fi
6420
6421 if test "$with_zlib" = yes; then
6422
6423 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6424 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6425 if test "${ac_cv_lib_z_inflate+set}" = set; then
6426   echo $ECHO_N "(cached) $ECHO_C" >&6
6427 else
6428   ac_check_lib_save_LIBS=$LIBS
6429 LIBS="-lz  $LIBS"
6430 cat >conftest.$ac_ext <<_ACEOF
6431 /* confdefs.h.  */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h.  */
6436
6437 /* Override any gcc2 internal prototype to avoid an error.  */
6438 #ifdef __cplusplus
6439 extern "C"
6440 #endif
6441 /* We use char because int might match the return type of a gcc2
6442    builtin and then its argument prototype would still apply.  */
6443 char inflate ();
6444 int
6445 main ()
6446 {
6447 inflate ();
6448   ;
6449   return 0;
6450 }
6451 _ACEOF
6452 rm -f conftest.$ac_objext conftest$ac_exeext
6453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6454   (eval $ac_link) 2>conftest.er1
6455   ac_status=$?
6456   grep -v '^ *+' conftest.er1 >conftest.err
6457   rm -f conftest.er1
6458   cat conftest.err >&5
6459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460   (exit $ac_status); } &&
6461          { ac_try='test -z "$ac_c_werror_flag"
6462                          || test ! -s conftest.err'
6463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464   (eval $ac_try) 2>&5
6465   ac_status=$?
6466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467   (exit $ac_status); }; } &&
6468          { ac_try='test -s conftest$ac_exeext'
6469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470   (eval $ac_try) 2>&5
6471   ac_status=$?
6472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473   (exit $ac_status); }; }; then
6474   ac_cv_lib_z_inflate=yes
6475 else
6476   echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.$ac_ext >&5
6478
6479 ac_cv_lib_z_inflate=no
6480 fi
6481 rm -f conftest.err conftest.$ac_objext \
6482       conftest$ac_exeext conftest.$ac_ext
6483 LIBS=$ac_check_lib_save_LIBS
6484 fi
6485 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6486 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6487 if test $ac_cv_lib_z_inflate = yes; then
6488   cat >>confdefs.h <<_ACEOF
6489 #define HAVE_LIBZ 1
6490 _ACEOF
6491
6492   LIBS="-lz $LIBS"
6493
6494 else
6495   { { echo "$as_me:$LINENO: error: zlib library not found
6496 If you have zlib already installed, see config.log for details on the
6497 failure.  It is possible the compiler isn't looking in the proper directory.
6498 Use --without-zlib to disable zlib support." >&5
6499 echo "$as_me: error: zlib library not found
6500 If you have zlib already installed, see config.log for details on the
6501 failure.  It is possible the compiler isn't looking in the proper directory.
6502 Use --without-zlib to disable zlib support." >&2;}
6503    { (exit 1); exit 1; }; }
6504 fi
6505
6506 fi
6507
6508 if test "$enable_spinlocks" = yes; then
6509
6510 cat >>confdefs.h <<\_ACEOF
6511 #define HAVE_SPINLOCKS 1
6512 _ACEOF
6513
6514 else
6515   { echo "$as_me:$LINENO: WARNING:
6516 *** Not using spinlocks will cause poor performance." >&5
6517 echo "$as_me: WARNING:
6518 *** Not using spinlocks will cause poor performance." >&2;}
6519 fi
6520
6521 if test "$with_krb5" = yes ; then
6522   if test "$PORTNAME" != "win32"; then
6523      echo "$as_me:$LINENO: checking for library containing com_err" >&5
6524 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6525 if test "${ac_cv_search_com_err+set}" = set; then
6526   echo $ECHO_N "(cached) $ECHO_C" >&6
6527 else
6528   ac_func_search_save_LIBS=$LIBS
6529 ac_cv_search_com_err=no
6530 cat >conftest.$ac_ext <<_ACEOF
6531 /* confdefs.h.  */
6532 _ACEOF
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h.  */
6536
6537 /* Override any gcc2 internal prototype to avoid an error.  */
6538 #ifdef __cplusplus
6539 extern "C"
6540 #endif
6541 /* We use char because int might match the return type of a gcc2
6542    builtin and then its argument prototype would still apply.  */
6543 char com_err ();
6544 int
6545 main ()
6546 {
6547 com_err ();
6548   ;
6549   return 0;
6550 }
6551 _ACEOF
6552 rm -f conftest.$ac_objext conftest$ac_exeext
6553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6554   (eval $ac_link) 2>conftest.er1
6555   ac_status=$?
6556   grep -v '^ *+' conftest.er1 >conftest.err
6557   rm -f conftest.er1
6558   cat conftest.err >&5
6559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560   (exit $ac_status); } &&
6561          { ac_try='test -z "$ac_c_werror_flag"
6562                          || test ! -s conftest.err'
6563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6564   (eval $ac_try) 2>&5
6565   ac_status=$?
6566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567   (exit $ac_status); }; } &&
6568          { ac_try='test -s conftest$ac_exeext'
6569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570   (eval $ac_try) 2>&5
6571   ac_status=$?
6572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573   (exit $ac_status); }; }; then
6574   ac_cv_search_com_err="none required"
6575 else
6576   echo "$as_me: failed program was:" >&5
6577 sed 's/^/| /' conftest.$ac_ext >&5
6578
6579 fi
6580 rm -f conftest.err conftest.$ac_objext \
6581       conftest$ac_exeext conftest.$ac_ext
6582 if test "$ac_cv_search_com_err" = no; then
6583   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6584     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6585     cat >conftest.$ac_ext <<_ACEOF
6586 /* confdefs.h.  */
6587 _ACEOF
6588 cat confdefs.h >>conftest.$ac_ext
6589 cat >>conftest.$ac_ext <<_ACEOF
6590 /* end confdefs.h.  */
6591
6592 /* Override any gcc2 internal prototype to avoid an error.  */
6593 #ifdef __cplusplus
6594 extern "C"
6595 #endif
6596 /* We use char because int might match the return type of a gcc2
6597    builtin and then its argument prototype would still apply.  */
6598 char com_err ();
6599 int
6600 main ()
6601 {
6602 com_err ();
6603   ;
6604   return 0;
6605 }
6606 _ACEOF
6607 rm -f conftest.$ac_objext conftest$ac_exeext
6608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6609   (eval $ac_link) 2>conftest.er1
6610   ac_status=$?
6611   grep -v '^ *+' conftest.er1 >conftest.err
6612   rm -f conftest.er1
6613   cat conftest.err >&5
6614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615   (exit $ac_status); } &&
6616          { ac_try='test -z "$ac_c_werror_flag"
6617                          || test ! -s conftest.err'
6618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619   (eval $ac_try) 2>&5
6620   ac_status=$?
6621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622   (exit $ac_status); }; } &&
6623          { ac_try='test -s conftest$ac_exeext'
6624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6625   (eval $ac_try) 2>&5
6626   ac_status=$?
6627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628   (exit $ac_status); }; }; then
6629   ac_cv_search_com_err="-l$ac_lib"
6630 break
6631 else
6632   echo "$as_me: failed program was:" >&5
6633 sed 's/^/| /' conftest.$ac_ext >&5
6634
6635 fi
6636 rm -f conftest.err conftest.$ac_objext \
6637       conftest$ac_exeext conftest.$ac_ext
6638   done
6639 fi
6640 LIBS=$ac_func_search_save_LIBS
6641 fi
6642 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6643 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6644 if test "$ac_cv_search_com_err" != no; then
6645   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6646
6647 else
6648   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6649 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6650    { (exit 1); exit 1; }; }
6651 fi
6652
6653      echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6654 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6655 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6656   echo $ECHO_N "(cached) $ECHO_C" >&6
6657 else
6658   ac_func_search_save_LIBS=$LIBS
6659 ac_cv_search_krb5_sendauth=no
6660 cat >conftest.$ac_ext <<_ACEOF
6661 /* confdefs.h.  */
6662 _ACEOF
6663 cat confdefs.h >>conftest.$ac_ext
6664 cat >>conftest.$ac_ext <<_ACEOF
6665 /* end confdefs.h.  */
6666
6667 /* Override any gcc2 internal prototype to avoid an error.  */
6668 #ifdef __cplusplus
6669 extern "C"
6670 #endif
6671 /* We use char because int might match the return type of a gcc2
6672    builtin and then its argument prototype would still apply.  */
6673 char krb5_sendauth ();
6674 int
6675 main ()
6676 {
6677 krb5_sendauth ();
6678   ;
6679   return 0;
6680 }
6681 _ACEOF
6682 rm -f conftest.$ac_objext conftest$ac_exeext
6683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6684   (eval $ac_link) 2>conftest.er1
6685   ac_status=$?
6686   grep -v '^ *+' conftest.er1 >conftest.err
6687   rm -f conftest.er1
6688   cat conftest.err >&5
6689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690   (exit $ac_status); } &&
6691          { ac_try='test -z "$ac_c_werror_flag"
6692                          || test ! -s conftest.err'
6693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6694   (eval $ac_try) 2>&5
6695   ac_status=$?
6696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697   (exit $ac_status); }; } &&
6698          { ac_try='test -s conftest$ac_exeext'
6699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700   (eval $ac_try) 2>&5
6701   ac_status=$?
6702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703   (exit $ac_status); }; }; then
6704   ac_cv_search_krb5_sendauth="none required"
6705 else
6706   echo "$as_me: failed program was:" >&5
6707 sed 's/^/| /' conftest.$ac_ext >&5
6708
6709 fi
6710 rm -f conftest.err conftest.$ac_objext \
6711       conftest$ac_exeext conftest.$ac_ext
6712 if test "$ac_cv_search_krb5_sendauth" = no; then
6713   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6714     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6715     cat >conftest.$ac_ext <<_ACEOF
6716 /* confdefs.h.  */
6717 _ACEOF
6718 cat confdefs.h >>conftest.$ac_ext
6719 cat >>conftest.$ac_ext <<_ACEOF
6720 /* end confdefs.h.  */
6721
6722 /* Override any gcc2 internal prototype to avoid an error.  */
6723 #ifdef __cplusplus
6724 extern "C"
6725 #endif
6726 /* We use char because int might match the return type of a gcc2
6727    builtin and then its argument prototype would still apply.  */
6728 char krb5_sendauth ();
6729 int
6730 main ()
6731 {
6732 krb5_sendauth ();
6733   ;
6734   return 0;
6735 }
6736 _ACEOF
6737 rm -f conftest.$ac_objext conftest$ac_exeext
6738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6739   (eval $ac_link) 2>conftest.er1
6740   ac_status=$?
6741   grep -v '^ *+' conftest.er1 >conftest.err
6742   rm -f conftest.er1
6743   cat conftest.err >&5
6744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745   (exit $ac_status); } &&
6746          { ac_try='test -z "$ac_c_werror_flag"
6747                          || test ! -s conftest.err'
6748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749   (eval $ac_try) 2>&5
6750   ac_status=$?
6751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752   (exit $ac_status); }; } &&
6753          { ac_try='test -s conftest$ac_exeext'
6754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755   (eval $ac_try) 2>&5
6756   ac_status=$?
6757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758   (exit $ac_status); }; }; then
6759   ac_cv_search_krb5_sendauth="-l$ac_lib"
6760 break
6761 else
6762   echo "$as_me: failed program was:" >&5
6763 sed 's/^/| /' conftest.$ac_ext >&5
6764
6765 fi
6766 rm -f conftest.err conftest.$ac_objext \
6767       conftest$ac_exeext conftest.$ac_ext
6768   done
6769 fi
6770 LIBS=$ac_func_search_save_LIBS
6771 fi
6772 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6773 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6774 if test "$ac_cv_search_krb5_sendauth" != no; then
6775   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6776
6777 else
6778   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6779 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6780    { (exit 1); exit 1; }; }
6781 fi
6782
6783   else
6784      echo "$as_me:$LINENO: checking for library containing com_err" >&5
6785 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6786 if test "${ac_cv_search_com_err+set}" = set; then
6787   echo $ECHO_N "(cached) $ECHO_C" >&6
6788 else
6789   ac_func_search_save_LIBS=$LIBS
6790 ac_cv_search_com_err=no
6791 cat >conftest.$ac_ext <<_ACEOF
6792 /* confdefs.h.  */
6793 _ACEOF
6794 cat confdefs.h >>conftest.$ac_ext
6795 cat >>conftest.$ac_ext <<_ACEOF
6796 /* end confdefs.h.  */
6797
6798 /* Override any gcc2 internal prototype to avoid an error.  */
6799 #ifdef __cplusplus
6800 extern "C"
6801 #endif
6802 /* We use char because int might match the return type of a gcc2
6803    builtin and then its argument prototype would still apply.  */
6804 char com_err ();
6805 int
6806 main ()
6807 {
6808 com_err ();
6809   ;
6810   return 0;
6811 }
6812 _ACEOF
6813 rm -f conftest.$ac_objext conftest$ac_exeext
6814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6815   (eval $ac_link) 2>conftest.er1
6816   ac_status=$?
6817   grep -v '^ *+' conftest.er1 >conftest.err
6818   rm -f conftest.er1
6819   cat conftest.err >&5
6820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821   (exit $ac_status); } &&
6822          { ac_try='test -z "$ac_c_werror_flag"
6823                          || test ! -s conftest.err'
6824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825   (eval $ac_try) 2>&5
6826   ac_status=$?
6827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828   (exit $ac_status); }; } &&
6829          { ac_try='test -s conftest$ac_exeext'
6830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831   (eval $ac_try) 2>&5
6832   ac_status=$?
6833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834   (exit $ac_status); }; }; then
6835   ac_cv_search_com_err="none required"
6836 else
6837   echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.$ac_ext >&5
6839
6840 fi
6841 rm -f conftest.err conftest.$ac_objext \
6842       conftest$ac_exeext conftest.$ac_ext
6843 if test "$ac_cv_search_com_err" = no; then
6844   for ac_lib in 'comerr32 -lkrb5_32'; do
6845     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6846     cat >conftest.$ac_ext <<_ACEOF
6847 /* confdefs.h.  */
6848 _ACEOF
6849 cat confdefs.h >>conftest.$ac_ext
6850 cat >>conftest.$ac_ext <<_ACEOF
6851 /* end confdefs.h.  */
6852
6853 /* Override any gcc2 internal prototype to avoid an error.  */
6854 #ifdef __cplusplus
6855 extern "C"
6856 #endif
6857 /* We use char because int might match the return type of a gcc2
6858    builtin and then its argument prototype would still apply.  */
6859 char com_err ();
6860 int
6861 main ()
6862 {
6863 com_err ();
6864   ;
6865   return 0;
6866 }
6867 _ACEOF
6868 rm -f conftest.$ac_objext conftest$ac_exeext
6869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6870   (eval $ac_link) 2>conftest.er1
6871   ac_status=$?
6872   grep -v '^ *+' conftest.er1 >conftest.err
6873   rm -f conftest.er1
6874   cat conftest.err >&5
6875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876   (exit $ac_status); } &&
6877          { ac_try='test -z "$ac_c_werror_flag"
6878                          || test ! -s conftest.err'
6879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880   (eval $ac_try) 2>&5
6881   ac_status=$?
6882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883   (exit $ac_status); }; } &&
6884          { ac_try='test -s conftest$ac_exeext'
6885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886   (eval $ac_try) 2>&5
6887   ac_status=$?
6888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889   (exit $ac_status); }; }; then
6890   ac_cv_search_com_err="-l$ac_lib"
6891 break
6892 else
6893   echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6895
6896 fi
6897 rm -f conftest.err conftest.$ac_objext \
6898       conftest$ac_exeext conftest.$ac_ext
6899   done
6900 fi
6901 LIBS=$ac_func_search_save_LIBS
6902 fi
6903 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6904 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6905 if test "$ac_cv_search_com_err" != no; then
6906   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6907
6908 else
6909   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6910 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6911    { (exit 1); exit 1; }; }
6912 fi
6913
6914   fi
6915 fi
6916
6917 if test "$with_openssl" = yes ; then
6918     if test "$PORTNAME" != "win32"; then
6919
6920 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6921 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6922 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6923   echo $ECHO_N "(cached) $ECHO_C" >&6
6924 else
6925   ac_check_lib_save_LIBS=$LIBS
6926 LIBS="-lcrypto  $LIBS"
6927 cat >conftest.$ac_ext <<_ACEOF
6928 /* confdefs.h.  */
6929 _ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h.  */
6933
6934 /* Override any gcc2 internal prototype to avoid an error.  */
6935 #ifdef __cplusplus
6936 extern "C"
6937 #endif
6938 /* We use char because int might match the return type of a gcc2
6939    builtin and then its argument prototype would still apply.  */
6940 char CRYPTO_new_ex_data ();
6941 int
6942 main ()
6943 {
6944 CRYPTO_new_ex_data ();
6945   ;
6946   return 0;
6947 }
6948 _ACEOF
6949 rm -f conftest.$ac_objext conftest$ac_exeext
6950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6951   (eval $ac_link) 2>conftest.er1
6952   ac_status=$?
6953   grep -v '^ *+' conftest.er1 >conftest.err
6954   rm -f conftest.er1
6955   cat conftest.err >&5
6956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957   (exit $ac_status); } &&
6958          { ac_try='test -z "$ac_c_werror_flag"
6959                          || test ! -s conftest.err'
6960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961   (eval $ac_try) 2>&5
6962   ac_status=$?
6963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964   (exit $ac_status); }; } &&
6965          { ac_try='test -s conftest$ac_exeext'
6966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967   (eval $ac_try) 2>&5
6968   ac_status=$?
6969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970   (exit $ac_status); }; }; then
6971   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6972 else
6973   echo "$as_me: failed program was:" >&5
6974 sed 's/^/| /' conftest.$ac_ext >&5
6975
6976 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6977 fi
6978 rm -f conftest.err conftest.$ac_objext \
6979       conftest$ac_exeext conftest.$ac_ext
6980 LIBS=$ac_check_lib_save_LIBS
6981 fi
6982 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6983 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6984 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6985   cat >>confdefs.h <<_ACEOF
6986 #define HAVE_LIBCRYPTO 1
6987 _ACEOF
6988
6989   LIBS="-lcrypto $LIBS"
6990
6991 else
6992   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6993 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6994    { (exit 1); exit 1; }; }
6995 fi
6996
6997
6998 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6999 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7000 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7001   echo $ECHO_N "(cached) $ECHO_C" >&6
7002 else
7003   ac_check_lib_save_LIBS=$LIBS
7004 LIBS="-lssl  $LIBS"
7005 cat >conftest.$ac_ext <<_ACEOF
7006 /* confdefs.h.  */
7007 _ACEOF
7008 cat confdefs.h >>conftest.$ac_ext
7009 cat >>conftest.$ac_ext <<_ACEOF
7010 /* end confdefs.h.  */
7011
7012 /* Override any gcc2 internal prototype to avoid an error.  */
7013 #ifdef __cplusplus
7014 extern "C"
7015 #endif
7016 /* We use char because int might match the return type of a gcc2
7017    builtin and then its argument prototype would still apply.  */
7018 char SSL_library_init ();
7019 int
7020 main ()
7021 {
7022 SSL_library_init ();
7023   ;
7024   return 0;
7025 }
7026 _ACEOF
7027 rm -f conftest.$ac_objext conftest$ac_exeext
7028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7029   (eval $ac_link) 2>conftest.er1
7030   ac_status=$?
7031   grep -v '^ *+' conftest.er1 >conftest.err
7032   rm -f conftest.er1
7033   cat conftest.err >&5
7034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035   (exit $ac_status); } &&
7036          { ac_try='test -z "$ac_c_werror_flag"
7037                          || test ! -s conftest.err'
7038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039   (eval $ac_try) 2>&5
7040   ac_status=$?
7041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042   (exit $ac_status); }; } &&
7043          { ac_try='test -s conftest$ac_exeext'
7044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045   (eval $ac_try) 2>&5
7046   ac_status=$?
7047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048   (exit $ac_status); }; }; then
7049   ac_cv_lib_ssl_SSL_library_init=yes
7050 else
7051   echo "$as_me: failed program was:" >&5
7052 sed 's/^/| /' conftest.$ac_ext >&5
7053
7054 ac_cv_lib_ssl_SSL_library_init=no
7055 fi
7056 rm -f conftest.err conftest.$ac_objext \
7057       conftest$ac_exeext conftest.$ac_ext
7058 LIBS=$ac_check_lib_save_LIBS
7059 fi
7060 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7061 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7062 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7063   cat >>confdefs.h <<_ACEOF
7064 #define HAVE_LIBSSL 1
7065 _ACEOF
7066
7067   LIBS="-lssl $LIBS"
7068
7069 else
7070   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7071 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7072    { (exit 1); exit 1; }; }
7073 fi
7074
7075   else
7076
7077 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
7078 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6
7079 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
7080   echo $ECHO_N "(cached) $ECHO_C" >&6
7081 else
7082   ac_check_lib_save_LIBS=$LIBS
7083 LIBS="-leay32  $LIBS"
7084 cat >conftest.$ac_ext <<_ACEOF
7085 /* confdefs.h.  */
7086 _ACEOF
7087 cat confdefs.h >>conftest.$ac_ext
7088 cat >>conftest.$ac_ext <<_ACEOF
7089 /* end confdefs.h.  */
7090
7091 /* Override any gcc2 internal prototype to avoid an error.  */
7092 #ifdef __cplusplus
7093 extern "C"
7094 #endif
7095 /* We use char because int might match the return type of a gcc2
7096    builtin and then its argument prototype would still apply.  */
7097 char CRYPTO_new_ex_data ();
7098 int
7099 main ()
7100 {
7101 CRYPTO_new_ex_data ();
7102   ;
7103   return 0;
7104 }
7105 _ACEOF
7106 rm -f conftest.$ac_objext conftest$ac_exeext
7107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7108   (eval $ac_link) 2>conftest.er1
7109   ac_status=$?
7110   grep -v '^ *+' conftest.er1 >conftest.err
7111   rm -f conftest.er1
7112   cat conftest.err >&5
7113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114   (exit $ac_status); } &&
7115          { ac_try='test -z "$ac_c_werror_flag"
7116                          || test ! -s conftest.err'
7117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7118   (eval $ac_try) 2>&5
7119   ac_status=$?
7120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121   (exit $ac_status); }; } &&
7122          { ac_try='test -s conftest$ac_exeext'
7123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124   (eval $ac_try) 2>&5
7125   ac_status=$?
7126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127   (exit $ac_status); }; }; then
7128   ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
7129 else
7130   echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7132
7133 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
7134 fi
7135 rm -f conftest.err conftest.$ac_objext \
7136       conftest$ac_exeext conftest.$ac_ext
7137 LIBS=$ac_check_lib_save_LIBS
7138 fi
7139 echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
7140 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6
7141 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
7142   cat >>confdefs.h <<_ACEOF
7143 #define HAVE_LIBEAY32 1
7144 _ACEOF
7145
7146   LIBS="-leay32 $LIBS"
7147
7148 else
7149   { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7150 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7151    { (exit 1); exit 1; }; }
7152 fi
7153
7154
7155 echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7156 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6
7157 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7158   echo $ECHO_N "(cached) $ECHO_C" >&6
7159 else
7160   ac_check_lib_save_LIBS=$LIBS
7161 LIBS="-lssleay32  $LIBS"
7162 cat >conftest.$ac_ext <<_ACEOF
7163 /* confdefs.h.  */
7164 _ACEOF
7165 cat confdefs.h >>conftest.$ac_ext
7166 cat >>conftest.$ac_ext <<_ACEOF
7167 /* end confdefs.h.  */
7168
7169 /* Override any gcc2 internal prototype to avoid an error.  */
7170 #ifdef __cplusplus
7171 extern "C"
7172 #endif
7173 /* We use char because int might match the return type of a gcc2
7174    builtin and then its argument prototype would still apply.  */
7175 char SSL_library_init ();
7176 int
7177 main ()
7178 {
7179 SSL_library_init ();
7180   ;
7181   return 0;
7182 }
7183 _ACEOF
7184 rm -f conftest.$ac_objext conftest$ac_exeext
7185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7186   (eval $ac_link) 2>conftest.er1
7187   ac_status=$?
7188   grep -v '^ *+' conftest.er1 >conftest.err
7189   rm -f conftest.er1
7190   cat conftest.err >&5
7191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192   (exit $ac_status); } &&
7193          { ac_try='test -z "$ac_c_werror_flag"
7194                          || test ! -s conftest.err'
7195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196   (eval $ac_try) 2>&5
7197   ac_status=$?
7198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199   (exit $ac_status); }; } &&
7200          { ac_try='test -s conftest$ac_exeext'
7201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202   (eval $ac_try) 2>&5
7203   ac_status=$?
7204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205   (exit $ac_status); }; }; then
7206   ac_cv_lib_ssleay32_SSL_library_init=yes
7207 else
7208   echo "$as_me: failed program was:" >&5
7209 sed 's/^/| /' conftest.$ac_ext >&5
7210
7211 ac_cv_lib_ssleay32_SSL_library_init=no
7212 fi
7213 rm -f conftest.err conftest.$ac_objext \
7214       conftest$ac_exeext conftest.$ac_ext
7215 LIBS=$ac_check_lib_save_LIBS
7216 fi
7217 echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
7218 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6
7219 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
7220   cat >>confdefs.h <<_ACEOF
7221 #define HAVE_LIBSSLEAY32 1
7222 _ACEOF
7223
7224   LIBS="-lssleay32 $LIBS"
7225
7226 else
7227   { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
7228 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
7229    { (exit 1); exit 1; }; }
7230 fi
7231
7232   fi
7233 fi
7234
7235 if test "$with_pam" = yes ; then
7236
7237 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7238 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7239 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7240   echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242   ac_check_lib_save_LIBS=$LIBS
7243 LIBS="-lpam  $LIBS"
7244 cat >conftest.$ac_ext <<_ACEOF
7245 /* confdefs.h.  */
7246 _ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h.  */
7250
7251 /* Override any gcc2 internal prototype to avoid an error.  */
7252 #ifdef __cplusplus
7253 extern "C"
7254 #endif
7255 /* We use char because int might match the return type of a gcc2
7256    builtin and then its argument prototype would still apply.  */
7257 char pam_start ();
7258 int
7259 main ()
7260 {
7261 pam_start ();
7262   ;
7263   return 0;
7264 }
7265 _ACEOF
7266 rm -f conftest.$ac_objext conftest$ac_exeext
7267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7268   (eval $ac_link) 2>conftest.er1
7269   ac_status=$?
7270   grep -v '^ *+' conftest.er1 >conftest.err
7271   rm -f conftest.er1
7272   cat conftest.err >&5
7273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274   (exit $ac_status); } &&
7275          { ac_try='test -z "$ac_c_werror_flag"
7276                          || test ! -s conftest.err'
7277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278   (eval $ac_try) 2>&5
7279   ac_status=$?
7280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281   (exit $ac_status); }; } &&
7282          { ac_try='test -s conftest$ac_exeext'
7283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7284   (eval $ac_try) 2>&5
7285   ac_status=$?
7286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287   (exit $ac_status); }; }; then
7288   ac_cv_lib_pam_pam_start=yes
7289 else
7290   echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7292
7293 ac_cv_lib_pam_pam_start=no
7294 fi
7295 rm -f conftest.err conftest.$ac_objext \
7296       conftest$ac_exeext conftest.$ac_ext
7297 LIBS=$ac_check_lib_save_LIBS
7298 fi
7299 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7300 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7301 if test $ac_cv_lib_pam_pam_start = yes; then
7302   cat >>confdefs.h <<_ACEOF
7303 #define HAVE_LIBPAM 1
7304 _ACEOF
7305
7306   LIBS="-lpam $LIBS"
7307
7308 else
7309   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7310 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7311    { (exit 1); exit 1; }; }
7312 fi
7313
7314 fi
7315
7316
7317 if test "$with_ldap" = yes ; then
7318   if test "$PORTNAME" != "win32"; then
7319
7320 echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
7321 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6
7322 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
7323   echo $ECHO_N "(cached) $ECHO_C" >&6
7324 else
7325   ac_check_lib_save_LIBS=$LIBS
7326 LIBS="-lldap  $LIBS"
7327 cat >conftest.$ac_ext <<_ACEOF
7328 /* confdefs.h.  */
7329 _ACEOF
7330 cat confdefs.h >>conftest.$ac_ext
7331 cat >>conftest.$ac_ext <<_ACEOF
7332 /* end confdefs.h.  */
7333
7334 /* Override any gcc2 internal prototype to avoid an error.  */
7335 #ifdef __cplusplus
7336 extern "C"
7337 #endif
7338 /* We use char because int might match the return type of a gcc2
7339    builtin and then its argument prototype would still apply.  */
7340 char ldap_bind ();
7341 int
7342 main ()
7343 {
7344 ldap_bind ();
7345   ;
7346   return 0;
7347 }
7348 _ACEOF
7349 rm -f conftest.$ac_objext conftest$ac_exeext
7350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7351   (eval $ac_link) 2>conftest.er1
7352   ac_status=$?
7353   grep -v '^ *+' conftest.er1 >conftest.err
7354   rm -f conftest.er1
7355   cat conftest.err >&5
7356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357   (exit $ac_status); } &&
7358          { ac_try='test -z "$ac_c_werror_flag"
7359                          || test ! -s conftest.err'
7360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361   (eval $ac_try) 2>&5
7362   ac_status=$?
7363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364   (exit $ac_status); }; } &&
7365          { ac_try='test -s conftest$ac_exeext'
7366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367   (eval $ac_try) 2>&5
7368   ac_status=$?
7369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370   (exit $ac_status); }; }; then
7371   ac_cv_lib_ldap_ldap_bind=yes
7372 else
7373   echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.$ac_ext >&5
7375
7376 ac_cv_lib_ldap_ldap_bind=no
7377 fi
7378 rm -f conftest.err conftest.$ac_objext \
7379       conftest$ac_exeext conftest.$ac_ext
7380 LIBS=$ac_check_lib_save_LIBS
7381 fi
7382 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
7383 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6
7384 if test $ac_cv_lib_ldap_ldap_bind = yes; then
7385   cat >>confdefs.h <<_ACEOF
7386 #define HAVE_LIBLDAP 1
7387 _ACEOF
7388
7389   LIBS="-lldap $LIBS"
7390
7391 else
7392   { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
7393 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
7394    { (exit 1); exit 1; }; }
7395 fi
7396
7397   else
7398
7399 echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
7400 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6
7401 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
7402   echo $ECHO_N "(cached) $ECHO_C" >&6
7403 else
7404   ac_check_lib_save_LIBS=$LIBS
7405 LIBS="-lwldap32  $LIBS"
7406 cat >conftest.$ac_ext <<_ACEOF
7407 /* confdefs.h.  */
7408 _ACEOF
7409 cat confdefs.h >>conftest.$ac_ext
7410 cat >>conftest.$ac_ext <<_ACEOF
7411 /* end confdefs.h.  */
7412
7413 /* Override any gcc2 internal prototype to avoid an error.  */
7414 #ifdef __cplusplus
7415 extern "C"
7416 #endif
7417 /* We use char because int might match the return type of a gcc2
7418    builtin and then its argument prototype would still apply.  */
7419 char ldap_bind ();
7420 int
7421 main ()
7422 {
7423 ldap_bind ();
7424   ;
7425   return 0;
7426 }
7427 _ACEOF
7428 rm -f conftest.$ac_objext conftest$ac_exeext
7429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7430   (eval $ac_link) 2>conftest.er1
7431   ac_status=$?
7432   grep -v '^ *+' conftest.er1 >conftest.err
7433   rm -f conftest.er1
7434   cat conftest.err >&5
7435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436   (exit $ac_status); } &&
7437          { ac_try='test -z "$ac_c_werror_flag"
7438                          || test ! -s conftest.err'
7439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7440   (eval $ac_try) 2>&5
7441   ac_status=$?
7442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443   (exit $ac_status); }; } &&
7444          { ac_try='test -s conftest$ac_exeext'
7445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446   (eval $ac_try) 2>&5
7447   ac_status=$?
7448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449   (exit $ac_status); }; }; then
7450   ac_cv_lib_wldap32_ldap_bind=yes
7451 else
7452   echo "$as_me: failed program was:" >&5
7453 sed 's/^/| /' conftest.$ac_ext >&5
7454
7455 ac_cv_lib_wldap32_ldap_bind=no
7456 fi
7457 rm -f conftest.err conftest.$ac_objext \
7458       conftest$ac_exeext conftest.$ac_ext
7459 LIBS=$ac_check_lib_save_LIBS
7460 fi
7461 echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
7462 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6
7463 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
7464   cat >>confdefs.h <<_ACEOF
7465 #define HAVE_LIBWLDAP32 1
7466 _ACEOF
7467
7468   LIBS="-lwldap32 $LIBS"
7469
7470 else
7471   { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
7472 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
7473    { (exit 1); exit 1; }; }
7474 fi
7475
7476   fi
7477 fi
7478
7479 ##
7480 ## Header files
7481 ##
7482
7483 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7484 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7485 if test "${ac_cv_header_stdc+set}" = set; then
7486   echo $ECHO_N "(cached) $ECHO_C" >&6
7487 else
7488   cat >conftest.$ac_ext <<_ACEOF
7489 /* confdefs.h.  */
7490 _ACEOF
7491 cat confdefs.h >>conftest.$ac_ext
7492 cat >>conftest.$ac_ext <<_ACEOF
7493 /* end confdefs.h.  */
7494 #include <stdlib.h>
7495 #include <stdarg.h>
7496 #include <string.h>
7497 #include <float.h>
7498
7499 int
7500 main ()
7501 {
7502
7503   ;
7504   return 0;
7505 }
7506 _ACEOF
7507 rm -f conftest.$ac_objext
7508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7509   (eval $ac_compile) 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); } &&
7516          { ac_try='test -z "$ac_c_werror_flag"
7517                          || test ! -s conftest.err'
7518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519   (eval $ac_try) 2>&5
7520   ac_status=$?
7521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522   (exit $ac_status); }; } &&
7523          { ac_try='test -s conftest.$ac_objext'
7524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525   (eval $ac_try) 2>&5
7526   ac_status=$?
7527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528   (exit $ac_status); }; }; then
7529   ac_cv_header_stdc=yes
7530 else
7531   echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7533
7534 ac_cv_header_stdc=no
7535 fi
7536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7537
7538 if test $ac_cv_header_stdc = yes; then
7539   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7540   cat >conftest.$ac_ext <<_ACEOF
7541 /* confdefs.h.  */
7542 _ACEOF
7543 cat confdefs.h >>conftest.$ac_ext
7544 cat >>conftest.$ac_ext <<_ACEOF
7545 /* end confdefs.h.  */
7546 #include <string.h>
7547
7548 _ACEOF
7549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7550   $EGREP "memchr" >/dev/null 2>&1; then
7551   :
7552 else
7553   ac_cv_header_stdc=no
7554 fi
7555 rm -f conftest*
7556
7557 fi
7558
7559 if test $ac_cv_header_stdc = yes; then
7560   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7561   cat >conftest.$ac_ext <<_ACEOF
7562 /* confdefs.h.  */
7563 _ACEOF
7564 cat confdefs.h >>conftest.$ac_ext
7565 cat >>conftest.$ac_ext <<_ACEOF
7566 /* end confdefs.h.  */
7567 #include <stdlib.h>
7568
7569 _ACEOF
7570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7571   $EGREP "free" >/dev/null 2>&1; then
7572   :
7573 else
7574   ac_cv_header_stdc=no
7575 fi
7576 rm -f conftest*
7577
7578 fi
7579
7580 if test $ac_cv_header_stdc = yes; then
7581   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7582   if test "$cross_compiling" = yes; then
7583   :
7584 else
7585   cat >conftest.$ac_ext <<_ACEOF
7586 /* confdefs.h.  */
7587 _ACEOF
7588 cat confdefs.h >>conftest.$ac_ext
7589 cat >>conftest.$ac_ext <<_ACEOF
7590 /* end confdefs.h.  */
7591 #include <ctype.h>
7592 #if ((' ' & 0x0FF) == 0x020)
7593 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7594 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7595 #else
7596 # define ISLOWER(c) \
7597                    (('a' <= (c) && (c) <= 'i') \
7598                      || ('j' <= (c) && (c) <= 'r') \
7599                      || ('s' <= (c) && (c) <= 'z'))
7600 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7601 #endif
7602
7603 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7604 int
7605 main ()
7606 {
7607   int i;
7608   for (i = 0; i < 256; i++)
7609     if (XOR (islower (i), ISLOWER (i))
7610         || toupper (i) != TOUPPER (i))
7611       exit(2);
7612   exit (0);
7613 }
7614 _ACEOF
7615 rm -f conftest$ac_exeext
7616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7617   (eval $ac_link) 2>&5
7618   ac_status=$?
7619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622   (eval $ac_try) 2>&5
7623   ac_status=$?
7624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625   (exit $ac_status); }; }; then
7626   :
7627 else
7628   echo "$as_me: program exited with status $ac_status" >&5
7629 echo "$as_me: failed program was:" >&5
7630 sed 's/^/| /' conftest.$ac_ext >&5
7631
7632 ( exit $ac_status )
7633 ac_cv_header_stdc=no
7634 fi
7635 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7636 fi
7637 fi
7638 fi
7639 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7640 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7641 if test $ac_cv_header_stdc = yes; then
7642
7643 cat >>confdefs.h <<\_ACEOF
7644 #define STDC_HEADERS 1
7645 _ACEOF
7646
7647 fi
7648
7649 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7660                   inttypes.h stdint.h unistd.h
7661 do
7662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7663 echo "$as_me:$LINENO: checking for $ac_header" >&5
7664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7666   echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668   cat >conftest.$ac_ext <<_ACEOF
7669 /* confdefs.h.  */
7670 _ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h.  */
7674 $ac_includes_default
7675
7676 #include <$ac_header>
7677 _ACEOF
7678 rm -f conftest.$ac_objext
7679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7680   (eval $ac_compile) 2>conftest.er1
7681   ac_status=$?
7682   grep -v '^ *+' conftest.er1 >conftest.err
7683   rm -f conftest.er1
7684   cat conftest.err >&5
7685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686   (exit $ac_status); } &&
7687          { ac_try='test -z "$ac_c_werror_flag"
7688                          || test ! -s conftest.err'
7689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690   (eval $ac_try) 2>&5
7691   ac_status=$?
7692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693   (exit $ac_status); }; } &&
7694          { ac_try='test -s conftest.$ac_objext'
7695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696   (eval $ac_try) 2>&5
7697   ac_status=$?
7698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699   (exit $ac_status); }; }; then
7700   eval "$as_ac_Header=yes"
7701 else
7702   echo "$as_me: failed program was:" >&5
7703 sed 's/^/| /' conftest.$ac_ext >&5
7704
7705 eval "$as_ac_Header=no"
7706 fi
7707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7708 fi
7709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7712   cat >>confdefs.h <<_ACEOF
7713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7714 _ACEOF
7715
7716 fi
7717
7718 done
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746 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
7747 do
7748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7750   echo "$as_me:$LINENO: checking for $ac_header" >&5
7751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7753   echo $ECHO_N "(cached) $ECHO_C" >&6
7754 fi
7755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7757 else
7758   # Is the header compilable?
7759 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7761 cat >conftest.$ac_ext <<_ACEOF
7762 /* confdefs.h.  */
7763 _ACEOF
7764 cat confdefs.h >>conftest.$ac_ext
7765 cat >>conftest.$ac_ext <<_ACEOF
7766 /* end confdefs.h.  */
7767 $ac_includes_default
7768 #include <$ac_header>
7769 _ACEOF
7770 rm -f conftest.$ac_objext
7771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7772   (eval $ac_compile) 2>conftest.er1
7773   ac_status=$?
7774   grep -v '^ *+' conftest.er1 >conftest.err
7775   rm -f conftest.er1
7776   cat conftest.err >&5
7777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778   (exit $ac_status); } &&
7779          { ac_try='test -z "$ac_c_werror_flag"
7780                          || test ! -s conftest.err'
7781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782   (eval $ac_try) 2>&5
7783   ac_status=$?
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); }; } &&
7786          { ac_try='test -s conftest.$ac_objext'
7787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788   (eval $ac_try) 2>&5
7789   ac_status=$?
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   (exit $ac_status); }; }; then
7792   ac_header_compiler=yes
7793 else
7794   echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7796
7797 ac_header_compiler=no
7798 fi
7799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7800 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7801 echo "${ECHO_T}$ac_header_compiler" >&6
7802
7803 # Is the header present?
7804 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7806 cat >conftest.$ac_ext <<_ACEOF
7807 /* confdefs.h.  */
7808 _ACEOF
7809 cat confdefs.h >>conftest.$ac_ext
7810 cat >>conftest.$ac_ext <<_ACEOF
7811 /* end confdefs.h.  */
7812 #include <$ac_header>
7813 _ACEOF
7814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7815   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7816   ac_status=$?
7817   grep -v '^ *+' conftest.er1 >conftest.err
7818   rm -f conftest.er1
7819   cat conftest.err >&5
7820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821   (exit $ac_status); } >/dev/null; then
7822   if test -s conftest.err; then
7823     ac_cpp_err=$ac_c_preproc_warn_flag
7824     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7825   else
7826     ac_cpp_err=
7827   fi
7828 else
7829   ac_cpp_err=yes
7830 fi
7831 if test -z "$ac_cpp_err"; then
7832   ac_header_preproc=yes
7833 else
7834   echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7836
7837   ac_header_preproc=no
7838 fi
7839 rm -f conftest.err conftest.$ac_ext
7840 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7841 echo "${ECHO_T}$ac_header_preproc" >&6
7842
7843 # So?  What about this header?
7844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7845   yes:no: )
7846     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7848     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7850     ac_header_preproc=yes
7851     ;;
7852   no:yes:* )
7853     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7855     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7856 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7857     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7859     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7860 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7861     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7863     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7865     (
7866       cat <<\_ASBOX
7867 ## ---------------------------------------- ##
7868 ## Report this to pgsql-bugs@postgresql.org ##
7869 ## ---------------------------------------- ##
7870 _ASBOX
7871     ) |
7872       sed "s/^/$as_me: WARNING:     /" >&2
7873     ;;
7874 esac
7875 echo "$as_me:$LINENO: checking for $ac_header" >&5
7876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7878   echo $ECHO_N "(cached) $ECHO_C" >&6
7879 else
7880   eval "$as_ac_Header=\$ac_header_preproc"
7881 fi
7882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7884
7885 fi
7886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7887   cat >>confdefs.h <<_ACEOF
7888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7889 _ACEOF
7890
7891 fi
7892
7893 done
7894
7895
7896 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7897 # netinet/in.h is included first.
7898
7899 for ac_header in netinet/in.h
7900 do
7901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7903   echo "$as_me:$LINENO: checking for $ac_header" >&5
7904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7906   echo $ECHO_N "(cached) $ECHO_C" >&6
7907 fi
7908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7910 else
7911   # Is the header compilable?
7912 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7914 cat >conftest.$ac_ext <<_ACEOF
7915 /* confdefs.h.  */
7916 _ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h.  */
7920 $ac_includes_default
7921 #include <$ac_header>
7922 _ACEOF
7923 rm -f conftest.$ac_objext
7924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7925   (eval $ac_compile) 2>conftest.er1
7926   ac_status=$?
7927   grep -v '^ *+' conftest.er1 >conftest.err
7928   rm -f conftest.er1
7929   cat conftest.err >&5
7930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931   (exit $ac_status); } &&
7932          { ac_try='test -z "$ac_c_werror_flag"
7933                          || test ! -s conftest.err'
7934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7935   (eval $ac_try) 2>&5
7936   ac_status=$?
7937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938   (exit $ac_status); }; } &&
7939          { ac_try='test -s conftest.$ac_objext'
7940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7941   (eval $ac_try) 2>&5
7942   ac_status=$?
7943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944   (exit $ac_status); }; }; then
7945   ac_header_compiler=yes
7946 else
7947   echo "$as_me: failed program was:" >&5
7948 sed 's/^/| /' conftest.$ac_ext >&5
7949
7950 ac_header_compiler=no
7951 fi
7952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7953 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7954 echo "${ECHO_T}$ac_header_compiler" >&6
7955
7956 # Is the header present?
7957 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7958 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7959 cat >conftest.$ac_ext <<_ACEOF
7960 /* confdefs.h.  */
7961 _ACEOF
7962 cat confdefs.h >>conftest.$ac_ext
7963 cat >>conftest.$ac_ext <<_ACEOF
7964 /* end confdefs.h.  */
7965 #include <$ac_header>
7966 _ACEOF
7967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7968   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7969   ac_status=$?
7970   grep -v '^ *+' conftest.er1 >conftest.err
7971   rm -f conftest.er1
7972   cat conftest.err >&5
7973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974   (exit $ac_status); } >/dev/null; then
7975   if test -s conftest.err; then
7976     ac_cpp_err=$ac_c_preproc_warn_flag
7977     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7978   else
7979     ac_cpp_err=
7980   fi
7981 else
7982   ac_cpp_err=yes
7983 fi
7984 if test -z "$ac_cpp_err"; then
7985   ac_header_preproc=yes
7986 else
7987   echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7989
7990   ac_header_preproc=no
7991 fi
7992 rm -f conftest.err conftest.$ac_ext
7993 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7994 echo "${ECHO_T}$ac_header_preproc" >&6
7995
7996 # So?  What about this header?
7997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7998   yes:no: )
7999     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8001     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8003     ac_header_preproc=yes
8004     ;;
8005   no:yes:* )
8006     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8008     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8009 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8010     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8012     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8013 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8014     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8016     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8018     (
8019       cat <<\_ASBOX
8020 ## ---------------------------------------- ##
8021 ## Report this to pgsql-bugs@postgresql.org ##
8022 ## ---------------------------------------- ##
8023 _ASBOX
8024     ) |
8025       sed "s/^/$as_me: WARNING:     /" >&2
8026     ;;
8027 esac
8028 echo "$as_me:$LINENO: checking for $ac_header" >&5
8029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8031   echo $ECHO_N "(cached) $ECHO_C" >&6
8032 else
8033   eval "$as_ac_Header=\$ac_header_preproc"
8034 fi
8035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8037
8038 fi
8039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8040   cat >>confdefs.h <<_ACEOF
8041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8042 _ACEOF
8043
8044 fi
8045
8046 done
8047
8048
8049 for ac_header in netinet/tcp.h
8050 do
8051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8052 echo "$as_me:$LINENO: checking for $ac_header" >&5
8053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8055   echo $ECHO_N "(cached) $ECHO_C" >&6
8056 else
8057   cat >conftest.$ac_ext <<_ACEOF
8058 /* confdefs.h.  */
8059 _ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h.  */
8063 $ac_includes_default
8064 #ifdef HAVE_NETINET_IN_H
8065 #include <netinet/in.h>
8066 #endif
8067
8068
8069 #include <$ac_header>
8070 _ACEOF
8071 rm -f conftest.$ac_objext
8072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8073   (eval $ac_compile) 2>conftest.er1
8074   ac_status=$?
8075   grep -v '^ *+' conftest.er1 >conftest.err
8076   rm -f conftest.er1
8077   cat conftest.err >&5
8078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079   (exit $ac_status); } &&
8080          { ac_try='test -z "$ac_c_werror_flag"
8081                          || test ! -s conftest.err'
8082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083   (eval $ac_try) 2>&5
8084   ac_status=$?
8085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086   (exit $ac_status); }; } &&
8087          { ac_try='test -s conftest.$ac_objext'
8088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089   (eval $ac_try) 2>&5
8090   ac_status=$?
8091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092   (exit $ac_status); }; }; then
8093   eval "$as_ac_Header=yes"
8094 else
8095   echo "$as_me: failed program was:" >&5
8096 sed 's/^/| /' conftest.$ac_ext >&5
8097
8098 eval "$as_ac_Header=no"
8099 fi
8100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8101 fi
8102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8105   cat >>confdefs.h <<_ACEOF
8106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8107 _ACEOF
8108
8109 fi
8110
8111 done
8112
8113
8114 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
8115
8116 for ac_header in readline/readline.h
8117 do
8118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8120   echo "$as_me:$LINENO: checking for $ac_header" >&5
8121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8123   echo $ECHO_N "(cached) $ECHO_C" >&6
8124 fi
8125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8127 else
8128   # Is the header compilable?
8129 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8131 cat >conftest.$ac_ext <<_ACEOF
8132 /* confdefs.h.  */
8133 _ACEOF
8134 cat confdefs.h >>conftest.$ac_ext
8135 cat >>conftest.$ac_ext <<_ACEOF
8136 /* end confdefs.h.  */
8137 $ac_includes_default
8138 #include <$ac_header>
8139 _ACEOF
8140 rm -f conftest.$ac_objext
8141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8142   (eval $ac_compile) 2>conftest.er1
8143   ac_status=$?
8144   grep -v '^ *+' conftest.er1 >conftest.err
8145   rm -f conftest.er1
8146   cat conftest.err >&5
8147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148   (exit $ac_status); } &&
8149          { ac_try='test -z "$ac_c_werror_flag"
8150                          || test ! -s conftest.err'
8151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152   (eval $ac_try) 2>&5
8153   ac_status=$?
8154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155   (exit $ac_status); }; } &&
8156          { ac_try='test -s conftest.$ac_objext'
8157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158   (eval $ac_try) 2>&5
8159   ac_status=$?
8160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161   (exit $ac_status); }; }; then
8162   ac_header_compiler=yes
8163 else
8164   echo "$as_me: failed program was:" >&5
8165 sed 's/^/| /' conftest.$ac_ext >&5
8166
8167 ac_header_compiler=no
8168 fi
8169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8170 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8171 echo "${ECHO_T}$ac_header_compiler" >&6
8172
8173 # Is the header present?
8174 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8176 cat >conftest.$ac_ext <<_ACEOF
8177 /* confdefs.h.  */
8178 _ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h.  */
8182 #include <$ac_header>
8183 _ACEOF
8184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8185   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8186   ac_status=$?
8187   grep -v '^ *+' conftest.er1 >conftest.err
8188   rm -f conftest.er1
8189   cat conftest.err >&5
8190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191   (exit $ac_status); } >/dev/null; then
8192   if test -s conftest.err; then
8193     ac_cpp_err=$ac_c_preproc_warn_flag
8194     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8195   else
8196     ac_cpp_err=
8197   fi
8198 else
8199   ac_cpp_err=yes
8200 fi
8201 if test -z "$ac_cpp_err"; then
8202   ac_header_preproc=yes
8203 else
8204   echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8206
8207   ac_header_preproc=no
8208 fi
8209 rm -f conftest.err conftest.$ac_ext
8210 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8211 echo "${ECHO_T}$ac_header_preproc" >&6
8212
8213 # So?  What about this header?
8214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8215   yes:no: )
8216     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8220     ac_header_preproc=yes
8221     ;;
8222   no:yes:* )
8223     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8225     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8226 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8227     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8229     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8230 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8231     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8233     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8235     (
8236       cat <<\_ASBOX
8237 ## ---------------------------------------- ##
8238 ## Report this to pgsql-bugs@postgresql.org ##
8239 ## ---------------------------------------- ##
8240 _ASBOX
8241     ) |
8242       sed "s/^/$as_me: WARNING:     /" >&2
8243     ;;
8244 esac
8245 echo "$as_me:$LINENO: checking for $ac_header" >&5
8246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8248   echo $ECHO_N "(cached) $ECHO_C" >&6
8249 else
8250   eval "$as_ac_Header=\$ac_header_preproc"
8251 fi
8252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8254
8255 fi
8256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8257   cat >>confdefs.h <<_ACEOF
8258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8259 _ACEOF
8260
8261 else
8262
8263 for ac_header in readline.h
8264 do
8265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8267   echo "$as_me:$LINENO: checking for $ac_header" >&5
8268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8270   echo $ECHO_N "(cached) $ECHO_C" >&6
8271 fi
8272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8274 else
8275   # Is the header compilable?
8276 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8277 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8278 cat >conftest.$ac_ext <<_ACEOF
8279 /* confdefs.h.  */
8280 _ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h.  */
8284 $ac_includes_default
8285 #include <$ac_header>
8286 _ACEOF
8287 rm -f conftest.$ac_objext
8288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8289   (eval $ac_compile) 2>conftest.er1
8290   ac_status=$?
8291   grep -v '^ *+' conftest.er1 >conftest.err
8292   rm -f conftest.er1
8293   cat conftest.err >&5
8294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295   (exit $ac_status); } &&
8296          { ac_try='test -z "$ac_c_werror_flag"
8297                          || test ! -s conftest.err'
8298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8299   (eval $ac_try) 2>&5
8300   ac_status=$?
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); }; } &&
8303          { ac_try='test -s conftest.$ac_objext'
8304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305   (eval $ac_try) 2>&5
8306   ac_status=$?
8307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308   (exit $ac_status); }; }; then
8309   ac_header_compiler=yes
8310 else
8311   echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8313
8314 ac_header_compiler=no
8315 fi
8316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8317 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8318 echo "${ECHO_T}$ac_header_compiler" >&6
8319
8320 # Is the header present?
8321 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8323 cat >conftest.$ac_ext <<_ACEOF
8324 /* confdefs.h.  */
8325 _ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h.  */
8329 #include <$ac_header>
8330 _ACEOF
8331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8332   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8333   ac_status=$?
8334   grep -v '^ *+' conftest.er1 >conftest.err
8335   rm -f conftest.er1
8336   cat conftest.err >&5
8337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338   (exit $ac_status); } >/dev/null; then
8339   if test -s conftest.err; then
8340     ac_cpp_err=$ac_c_preproc_warn_flag
8341     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8342   else
8343     ac_cpp_err=
8344   fi
8345 else
8346   ac_cpp_err=yes
8347 fi
8348 if test -z "$ac_cpp_err"; then
8349   ac_header_preproc=yes
8350 else
8351   echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.$ac_ext >&5
8353
8354   ac_header_preproc=no
8355 fi
8356 rm -f conftest.err conftest.$ac_ext
8357 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8358 echo "${ECHO_T}$ac_header_preproc" >&6
8359
8360 # So?  What about this header?
8361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8362   yes:no: )
8363     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8364 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8365     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8366 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8367     ac_header_preproc=yes
8368     ;;
8369   no:yes:* )
8370     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8371 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8372     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8373 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8374     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8375 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8376     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8377 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8378     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8380     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8381 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8382     (
8383       cat <<\_ASBOX
8384 ## ---------------------------------------- ##
8385 ## Report this to pgsql-bugs@postgresql.org ##
8386 ## ---------------------------------------- ##
8387 _ASBOX
8388     ) |
8389       sed "s/^/$as_me: WARNING:     /" >&2
8390     ;;
8391 esac
8392 echo "$as_me:$LINENO: checking for $ac_header" >&5
8393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8395   echo $ECHO_N "(cached) $ECHO_C" >&6
8396 else
8397   eval "$as_ac_Header=\$ac_header_preproc"
8398 fi
8399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8401
8402 fi
8403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8404   cat >>confdefs.h <<_ACEOF
8405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8406 _ACEOF
8407
8408 else
8409   { { echo "$as_me:$LINENO: error: readline header not found
8410 If you have readline already installed, see config.log for details on the
8411 failure.  It is possible the compiler isn't looking in the proper directory.
8412 Use --without-readline to disable readline support." >&5
8413 echo "$as_me: error: readline header not found
8414 If you have readline already installed, see config.log for details on the
8415 failure.  It is possible the compiler isn't looking in the proper directory.
8416 Use --without-readline to disable readline support." >&2;}
8417    { (exit 1); exit 1; }; }
8418 fi
8419
8420 done
8421
8422 fi
8423
8424 done
8425
8426
8427 for ac_header in readline/history.h
8428 do
8429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8431   echo "$as_me:$LINENO: checking for $ac_header" >&5
8432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8434   echo $ECHO_N "(cached) $ECHO_C" >&6
8435 fi
8436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8438 else
8439   # Is the header compilable?
8440 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8441 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8442 cat >conftest.$ac_ext <<_ACEOF
8443 /* confdefs.h.  */
8444 _ACEOF
8445 cat confdefs.h >>conftest.$ac_ext
8446 cat >>conftest.$ac_ext <<_ACEOF
8447 /* end confdefs.h.  */
8448 $ac_includes_default
8449 #include <$ac_header>
8450 _ACEOF
8451 rm -f conftest.$ac_objext
8452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8453   (eval $ac_compile) 2>conftest.er1
8454   ac_status=$?
8455   grep -v '^ *+' conftest.er1 >conftest.err
8456   rm -f conftest.er1
8457   cat conftest.err >&5
8458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459   (exit $ac_status); } &&
8460          { ac_try='test -z "$ac_c_werror_flag"
8461                          || test ! -s conftest.err'
8462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463   (eval $ac_try) 2>&5
8464   ac_status=$?
8465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   (exit $ac_status); }; } &&
8467          { ac_try='test -s conftest.$ac_objext'
8468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469   (eval $ac_try) 2>&5
8470   ac_status=$?
8471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472   (exit $ac_status); }; }; then
8473   ac_header_compiler=yes
8474 else
8475   echo "$as_me: failed program was:" >&5
8476 sed 's/^/| /' conftest.$ac_ext >&5
8477
8478 ac_header_compiler=no
8479 fi
8480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8482 echo "${ECHO_T}$ac_header_compiler" >&6
8483
8484 # Is the header present?
8485 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8487 cat >conftest.$ac_ext <<_ACEOF
8488 /* confdefs.h.  */
8489 _ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h.  */
8493 #include <$ac_header>
8494 _ACEOF
8495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8496   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8497   ac_status=$?
8498   grep -v '^ *+' conftest.er1 >conftest.err
8499   rm -f conftest.er1
8500   cat conftest.err >&5
8501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502   (exit $ac_status); } >/dev/null; then
8503   if test -s conftest.err; then
8504     ac_cpp_err=$ac_c_preproc_warn_flag
8505     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8506   else
8507     ac_cpp_err=
8508   fi
8509 else
8510   ac_cpp_err=yes
8511 fi
8512 if test -z "$ac_cpp_err"; then
8513   ac_header_preproc=yes
8514 else
8515   echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8517
8518   ac_header_preproc=no
8519 fi
8520 rm -f conftest.err conftest.$ac_ext
8521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8522 echo "${ECHO_T}$ac_header_preproc" >&6
8523
8524 # So?  What about this header?
8525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8526   yes:no: )
8527     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8531     ac_header_preproc=yes
8532     ;;
8533   no:yes:* )
8534     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8536     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8537 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8538     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8540     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8541 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8542     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8544     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8546     (
8547       cat <<\_ASBOX
8548 ## ---------------------------------------- ##
8549 ## Report this to pgsql-bugs@postgresql.org ##
8550 ## ---------------------------------------- ##
8551 _ASBOX
8552     ) |
8553       sed "s/^/$as_me: WARNING:     /" >&2
8554     ;;
8555 esac
8556 echo "$as_me:$LINENO: checking for $ac_header" >&5
8557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8559   echo $ECHO_N "(cached) $ECHO_C" >&6
8560 else
8561   eval "$as_ac_Header=\$ac_header_preproc"
8562 fi
8563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8565
8566 fi
8567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8568   cat >>confdefs.h <<_ACEOF
8569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8570 _ACEOF
8571
8572 else
8573
8574 for ac_header in history.h
8575 do
8576 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8578   echo "$as_me:$LINENO: checking for $ac_header" >&5
8579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8581   echo $ECHO_N "(cached) $ECHO_C" >&6
8582 fi
8583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8585 else
8586   # Is the header compilable?
8587 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8588 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8589 cat >conftest.$ac_ext <<_ACEOF
8590 /* confdefs.h.  */
8591 _ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h.  */
8595 $ac_includes_default
8596 #include <$ac_header>
8597 _ACEOF
8598 rm -f conftest.$ac_objext
8599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8600   (eval $ac_compile) 2>conftest.er1
8601   ac_status=$?
8602   grep -v '^ *+' conftest.er1 >conftest.err
8603   rm -f conftest.er1
8604   cat conftest.err >&5
8605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606   (exit $ac_status); } &&
8607          { ac_try='test -z "$ac_c_werror_flag"
8608                          || test ! -s conftest.err'
8609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610   (eval $ac_try) 2>&5
8611   ac_status=$?
8612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613   (exit $ac_status); }; } &&
8614          { ac_try='test -s conftest.$ac_objext'
8615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616   (eval $ac_try) 2>&5
8617   ac_status=$?
8618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619   (exit $ac_status); }; }; then
8620   ac_header_compiler=yes
8621 else
8622   echo "$as_me: failed program was:" >&5
8623 sed 's/^/| /' conftest.$ac_ext >&5
8624
8625 ac_header_compiler=no
8626 fi
8627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8628 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8629 echo "${ECHO_T}$ac_header_compiler" >&6
8630
8631 # Is the header present?
8632 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8633 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8634 cat >conftest.$ac_ext <<_ACEOF
8635 /* confdefs.h.  */
8636 _ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h.  */
8640 #include <$ac_header>
8641 _ACEOF
8642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8643   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8644   ac_status=$?
8645   grep -v '^ *+' conftest.er1 >conftest.err
8646   rm -f conftest.er1
8647   cat conftest.err >&5
8648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649   (exit $ac_status); } >/dev/null; then
8650   if test -s conftest.err; then
8651     ac_cpp_err=$ac_c_preproc_warn_flag
8652     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8653   else
8654     ac_cpp_err=
8655   fi
8656 else
8657   ac_cpp_err=yes
8658 fi
8659 if test -z "$ac_cpp_err"; then
8660   ac_header_preproc=yes
8661 else
8662   echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8664
8665   ac_header_preproc=no
8666 fi
8667 rm -f conftest.err conftest.$ac_ext
8668 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8669 echo "${ECHO_T}$ac_header_preproc" >&6
8670
8671 # So?  What about this header?
8672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8673   yes:no: )
8674     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8675 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8676     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8677 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8678     ac_header_preproc=yes
8679     ;;
8680   no:yes:* )
8681     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8682 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8683     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8684 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8685     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8686 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8687     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8688 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8689     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8691     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8692 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8693     (
8694       cat <<\_ASBOX
8695 ## ---------------------------------------- ##
8696 ## Report this to pgsql-bugs@postgresql.org ##
8697 ## ---------------------------------------- ##
8698 _ASBOX
8699     ) |
8700       sed "s/^/$as_me: WARNING:     /" >&2
8701     ;;
8702 esac
8703 echo "$as_me:$LINENO: checking for $ac_header" >&5
8704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8706   echo $ECHO_N "(cached) $ECHO_C" >&6
8707 else
8708   eval "$as_ac_Header=\$ac_header_preproc"
8709 fi
8710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8712
8713 fi
8714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8715   cat >>confdefs.h <<_ACEOF
8716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8717 _ACEOF
8718
8719 else
8720   { { echo "$as_me:$LINENO: error: history header not found
8721 If you have readline already installed, see config.log for details on the
8722 failure.  It is possible the compiler isn't looking in the proper directory.
8723 Use --without-readline to disable readline support." >&5
8724 echo "$as_me: error: history header not found
8725 If you have readline already installed, see config.log for details on the
8726 failure.  It is possible the compiler isn't looking in the proper directory.
8727 Use --without-readline to disable readline support." >&2;}
8728    { (exit 1); exit 1; }; }
8729 fi
8730
8731 done
8732
8733 fi
8734
8735 done
8736
8737 fi
8738
8739 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
8740 # Some installations of libedit usurp /usr/include/readline/, which seems
8741 # bad practice, since in combined installations readline will have its headers
8742 # there.  We might have to resort to AC_EGREP checks to make sure we found
8743 # the proper header...
8744
8745 for ac_header in editline/readline.h
8746 do
8747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8749   echo "$as_me:$LINENO: checking for $ac_header" >&5
8750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8752   echo $ECHO_N "(cached) $ECHO_C" >&6
8753 fi
8754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8756 else
8757   # Is the header compilable?
8758 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8760 cat >conftest.$ac_ext <<_ACEOF
8761 /* confdefs.h.  */
8762 _ACEOF
8763 cat confdefs.h >>conftest.$ac_ext
8764 cat >>conftest.$ac_ext <<_ACEOF
8765 /* end confdefs.h.  */
8766 $ac_includes_default
8767 #include <$ac_header>
8768 _ACEOF
8769 rm -f conftest.$ac_objext
8770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8771   (eval $ac_compile) 2>conftest.er1
8772   ac_status=$?
8773   grep -v '^ *+' conftest.er1 >conftest.err
8774   rm -f conftest.er1
8775   cat conftest.err >&5
8776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777   (exit $ac_status); } &&
8778          { ac_try='test -z "$ac_c_werror_flag"
8779                          || test ! -s conftest.err'
8780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781   (eval $ac_try) 2>&5
8782   ac_status=$?
8783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784   (exit $ac_status); }; } &&
8785          { ac_try='test -s conftest.$ac_objext'
8786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8787   (eval $ac_try) 2>&5
8788   ac_status=$?
8789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790   (exit $ac_status); }; }; then
8791   ac_header_compiler=yes
8792 else
8793   echo "$as_me: failed program was:" >&5
8794 sed 's/^/| /' conftest.$ac_ext >&5
8795
8796 ac_header_compiler=no
8797 fi
8798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8799 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8800 echo "${ECHO_T}$ac_header_compiler" >&6
8801
8802 # Is the header present?
8803 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8805 cat >conftest.$ac_ext <<_ACEOF
8806 /* confdefs.h.  */
8807 _ACEOF
8808 cat confdefs.h >>conftest.$ac_ext
8809 cat >>conftest.$ac_ext <<_ACEOF
8810 /* end confdefs.h.  */
8811 #include <$ac_header>
8812 _ACEOF
8813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8814   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8815   ac_status=$?
8816   grep -v '^ *+' conftest.er1 >conftest.err
8817   rm -f conftest.er1
8818   cat conftest.err >&5
8819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820   (exit $ac_status); } >/dev/null; then
8821   if test -s conftest.err; then
8822     ac_cpp_err=$ac_c_preproc_warn_flag
8823     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8824   else
8825     ac_cpp_err=
8826   fi
8827 else
8828   ac_cpp_err=yes
8829 fi
8830 if test -z "$ac_cpp_err"; then
8831   ac_header_preproc=yes
8832 else
8833   echo "$as_me: failed program was:" >&5
8834 sed 's/^/| /' conftest.$ac_ext >&5
8835
8836   ac_header_preproc=no
8837 fi
8838 rm -f conftest.err conftest.$ac_ext
8839 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8840 echo "${ECHO_T}$ac_header_preproc" >&6
8841
8842 # So?  What about this header?
8843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8844   yes:no: )
8845     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8846 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8847     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8848 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8849     ac_header_preproc=yes
8850     ;;
8851   no:yes:* )
8852     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8854     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8855 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8856     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8857 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8858     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8859 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8860     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8862     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8863 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8864     (
8865       cat <<\_ASBOX
8866 ## ---------------------------------------- ##
8867 ## Report this to pgsql-bugs@postgresql.org ##
8868 ## ---------------------------------------- ##
8869 _ASBOX
8870     ) |
8871       sed "s/^/$as_me: WARNING:     /" >&2
8872     ;;
8873 esac
8874 echo "$as_me:$LINENO: checking for $ac_header" >&5
8875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8877   echo $ECHO_N "(cached) $ECHO_C" >&6
8878 else
8879   eval "$as_ac_Header=\$ac_header_preproc"
8880 fi
8881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8883
8884 fi
8885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8886   cat >>confdefs.h <<_ACEOF
8887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8888 _ACEOF
8889
8890 else
8891
8892 for ac_header in readline.h
8893 do
8894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8896   echo "$as_me:$LINENO: checking for $ac_header" >&5
8897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8899   echo $ECHO_N "(cached) $ECHO_C" >&6
8900 fi
8901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8903 else
8904   # Is the header compilable?
8905 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8907 cat >conftest.$ac_ext <<_ACEOF
8908 /* confdefs.h.  */
8909 _ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h.  */
8913 $ac_includes_default
8914 #include <$ac_header>
8915 _ACEOF
8916 rm -f conftest.$ac_objext
8917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8918   (eval $ac_compile) 2>conftest.er1
8919   ac_status=$?
8920   grep -v '^ *+' conftest.er1 >conftest.err
8921   rm -f conftest.er1
8922   cat conftest.err >&5
8923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924   (exit $ac_status); } &&
8925          { ac_try='test -z "$ac_c_werror_flag"
8926                          || test ! -s conftest.err'
8927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928   (eval $ac_try) 2>&5
8929   ac_status=$?
8930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931   (exit $ac_status); }; } &&
8932          { ac_try='test -s conftest.$ac_objext'
8933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934   (eval $ac_try) 2>&5
8935   ac_status=$?
8936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937   (exit $ac_status); }; }; then
8938   ac_header_compiler=yes
8939 else
8940   echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8942
8943 ac_header_compiler=no
8944 fi
8945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8947 echo "${ECHO_T}$ac_header_compiler" >&6
8948
8949 # Is the header present?
8950 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8952 cat >conftest.$ac_ext <<_ACEOF
8953 /* confdefs.h.  */
8954 _ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h.  */
8958 #include <$ac_header>
8959 _ACEOF
8960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8961   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8962   ac_status=$?
8963   grep -v '^ *+' conftest.er1 >conftest.err
8964   rm -f conftest.er1
8965   cat conftest.err >&5
8966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967   (exit $ac_status); } >/dev/null; then
8968   if test -s conftest.err; then
8969     ac_cpp_err=$ac_c_preproc_warn_flag
8970     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8971   else
8972     ac_cpp_err=
8973   fi
8974 else
8975   ac_cpp_err=yes
8976 fi
8977 if test -z "$ac_cpp_err"; then
8978   ac_header_preproc=yes
8979 else
8980   echo "$as_me: failed program was:" >&5
8981 sed 's/^/| /' conftest.$ac_ext >&5
8982
8983   ac_header_preproc=no
8984 fi
8985 rm -f conftest.err conftest.$ac_ext
8986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8987 echo "${ECHO_T}$ac_header_preproc" >&6
8988
8989 # So?  What about this header?
8990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8991   yes:no: )
8992     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8994     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8996     ac_header_preproc=yes
8997     ;;
8998   no:yes:* )
8999     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9001     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9002 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9003     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9005     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9006 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9007     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9009     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9011     (
9012       cat <<\_ASBOX
9013 ## ---------------------------------------- ##
9014 ## Report this to pgsql-bugs@postgresql.org ##
9015 ## ---------------------------------------- ##
9016 _ASBOX
9017     ) |
9018       sed "s/^/$as_me: WARNING:     /" >&2
9019     ;;
9020 esac
9021 echo "$as_me:$LINENO: checking for $ac_header" >&5
9022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9024   echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026   eval "$as_ac_Header=\$ac_header_preproc"
9027 fi
9028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9030
9031 fi
9032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9033   cat >>confdefs.h <<_ACEOF
9034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9035 _ACEOF
9036
9037 else
9038
9039 for ac_header in readline/readline.h
9040 do
9041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9043   echo "$as_me:$LINENO: checking for $ac_header" >&5
9044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9046   echo $ECHO_N "(cached) $ECHO_C" >&6
9047 fi
9048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9050 else
9051   # Is the header compilable?
9052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9054 cat >conftest.$ac_ext <<_ACEOF
9055 /* confdefs.h.  */
9056 _ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>conftest.$ac_ext <<_ACEOF
9059 /* end confdefs.h.  */
9060 $ac_includes_default
9061 #include <$ac_header>
9062 _ACEOF
9063 rm -f conftest.$ac_objext
9064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9065   (eval $ac_compile) 2>conftest.er1
9066   ac_status=$?
9067   grep -v '^ *+' conftest.er1 >conftest.err
9068   rm -f conftest.er1
9069   cat conftest.err >&5
9070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071   (exit $ac_status); } &&
9072          { ac_try='test -z "$ac_c_werror_flag"
9073                          || test ! -s conftest.err'
9074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075   (eval $ac_try) 2>&5
9076   ac_status=$?
9077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078   (exit $ac_status); }; } &&
9079          { ac_try='test -s conftest.$ac_objext'
9080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081   (eval $ac_try) 2>&5
9082   ac_status=$?
9083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084   (exit $ac_status); }; }; then
9085   ac_header_compiler=yes
9086 else
9087   echo "$as_me: failed program was:" >&5
9088 sed 's/^/| /' conftest.$ac_ext >&5
9089
9090 ac_header_compiler=no
9091 fi
9092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9094 echo "${ECHO_T}$ac_header_compiler" >&6
9095
9096 # Is the header present?
9097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9099 cat >conftest.$ac_ext <<_ACEOF
9100 /* confdefs.h.  */
9101 _ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h.  */
9105 #include <$ac_header>
9106 _ACEOF
9107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9108   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9109   ac_status=$?
9110   grep -v '^ *+' conftest.er1 >conftest.err
9111   rm -f conftest.er1
9112   cat conftest.err >&5
9113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114   (exit $ac_status); } >/dev/null; then
9115   if test -s conftest.err; then
9116     ac_cpp_err=$ac_c_preproc_warn_flag
9117     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9118   else
9119     ac_cpp_err=
9120   fi
9121 else
9122   ac_cpp_err=yes
9123 fi
9124 if test -z "$ac_cpp_err"; then
9125   ac_header_preproc=yes
9126 else
9127   echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.$ac_ext >&5
9129
9130   ac_header_preproc=no
9131 fi
9132 rm -f conftest.err conftest.$ac_ext
9133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9134 echo "${ECHO_T}$ac_header_preproc" >&6
9135
9136 # So?  What about this header?
9137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9138   yes:no: )
9139     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9141     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9143     ac_header_preproc=yes
9144     ;;
9145   no:yes:* )
9146     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9148     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9149 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9150     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9152     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9153 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9154     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9156     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9158     (
9159       cat <<\_ASBOX
9160 ## ---------------------------------------- ##
9161 ## Report this to pgsql-bugs@postgresql.org ##
9162 ## ---------------------------------------- ##
9163 _ASBOX
9164     ) |
9165       sed "s/^/$as_me: WARNING:     /" >&2
9166     ;;
9167 esac
9168 echo "$as_me:$LINENO: checking for $ac_header" >&5
9169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9171   echo $ECHO_N "(cached) $ECHO_C" >&6
9172 else
9173   eval "$as_ac_Header=\$ac_header_preproc"
9174 fi
9175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9177
9178 fi
9179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9180   cat >>confdefs.h <<_ACEOF
9181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9182 _ACEOF
9183
9184 else
9185   { { echo "$as_me:$LINENO: error: readline header not found
9186 If you have libedit already installed, see config.log for details on the
9187 failure.  It is possible the compiler isn't looking in the proper directory.
9188 Use --without-readline to disable libedit support." >&5
9189 echo "$as_me: error: readline header not found
9190 If you have libedit already installed, see config.log for details on the
9191 failure.  It is possible the compiler isn't looking in the proper directory.
9192 Use --without-readline to disable libedit support." >&2;}
9193    { (exit 1); exit 1; }; }
9194 fi
9195
9196 done
9197
9198 fi
9199
9200 done
9201
9202 fi
9203
9204 done
9205
9206
9207 for ac_header in editline/history.h
9208 do
9209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9211   echo "$as_me:$LINENO: checking for $ac_header" >&5
9212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9214   echo $ECHO_N "(cached) $ECHO_C" >&6
9215 fi
9216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9218 else
9219   # Is the header compilable?
9220 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9222 cat >conftest.$ac_ext <<_ACEOF
9223 /* confdefs.h.  */
9224 _ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h.  */
9228 $ac_includes_default
9229 #include <$ac_header>
9230 _ACEOF
9231 rm -f conftest.$ac_objext
9232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9233   (eval $ac_compile) 2>conftest.er1
9234   ac_status=$?
9235   grep -v '^ *+' conftest.er1 >conftest.err
9236   rm -f conftest.er1
9237   cat conftest.err >&5
9238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239   (exit $ac_status); } &&
9240          { ac_try='test -z "$ac_c_werror_flag"
9241                          || test ! -s conftest.err'
9242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9243   (eval $ac_try) 2>&5
9244   ac_status=$?
9245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246   (exit $ac_status); }; } &&
9247          { ac_try='test -s conftest.$ac_objext'
9248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9249   (eval $ac_try) 2>&5
9250   ac_status=$?
9251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252   (exit $ac_status); }; }; then
9253   ac_header_compiler=yes
9254 else
9255   echo "$as_me: failed program was:" >&5
9256 sed 's/^/| /' conftest.$ac_ext >&5
9257
9258 ac_header_compiler=no
9259 fi
9260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9261 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9262 echo "${ECHO_T}$ac_header_compiler" >&6
9263
9264 # Is the header present?
9265 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9267 cat >conftest.$ac_ext <<_ACEOF
9268 /* confdefs.h.  */
9269 _ACEOF
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h.  */
9273 #include <$ac_header>
9274 _ACEOF
9275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9276   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9277   ac_status=$?
9278   grep -v '^ *+' conftest.er1 >conftest.err
9279   rm -f conftest.er1
9280   cat conftest.err >&5
9281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282   (exit $ac_status); } >/dev/null; then
9283   if test -s conftest.err; then
9284     ac_cpp_err=$ac_c_preproc_warn_flag
9285     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9286   else
9287     ac_cpp_err=
9288   fi
9289 else
9290   ac_cpp_err=yes
9291 fi
9292 if test -z "$ac_cpp_err"; then
9293   ac_header_preproc=yes
9294 else
9295   echo "$as_me: failed program was:" >&5
9296 sed 's/^/| /' conftest.$ac_ext >&5
9297
9298   ac_header_preproc=no
9299 fi
9300 rm -f conftest.err conftest.$ac_ext
9301 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9302 echo "${ECHO_T}$ac_header_preproc" >&6
9303
9304 # So?  What about this header?
9305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9306   yes:no: )
9307     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9308 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9309     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9310 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9311     ac_header_preproc=yes
9312     ;;
9313   no:yes:* )
9314     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9315 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9316     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9317 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9318     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9319 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9320     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9321 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9322     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9324     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9325 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9326     (
9327       cat <<\_ASBOX
9328 ## ---------------------------------------- ##
9329 ## Report this to pgsql-bugs@postgresql.org ##
9330 ## ---------------------------------------- ##
9331 _ASBOX
9332     ) |
9333       sed "s/^/$as_me: WARNING:     /" >&2
9334     ;;
9335 esac
9336 echo "$as_me:$LINENO: checking for $ac_header" >&5
9337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9339   echo $ECHO_N "(cached) $ECHO_C" >&6
9340 else
9341   eval "$as_ac_Header=\$ac_header_preproc"
9342 fi
9343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9345
9346 fi
9347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9348   cat >>confdefs.h <<_ACEOF
9349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9350 _ACEOF
9351
9352 else
9353
9354 for ac_header in history.h
9355 do
9356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9358   echo "$as_me:$LINENO: checking for $ac_header" >&5
9359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9361   echo $ECHO_N "(cached) $ECHO_C" >&6
9362 fi
9363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9365 else
9366   # Is the header compilable?
9367 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9369 cat >conftest.$ac_ext <<_ACEOF
9370 /* confdefs.h.  */
9371 _ACEOF
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h.  */
9375 $ac_includes_default
9376 #include <$ac_header>
9377 _ACEOF
9378 rm -f conftest.$ac_objext
9379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9380   (eval $ac_compile) 2>conftest.er1
9381   ac_status=$?
9382   grep -v '^ *+' conftest.er1 >conftest.err
9383   rm -f conftest.er1
9384   cat conftest.err >&5
9385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386   (exit $ac_status); } &&
9387          { ac_try='test -z "$ac_c_werror_flag"
9388                          || test ! -s conftest.err'
9389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390   (eval $ac_try) 2>&5
9391   ac_status=$?
9392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393   (exit $ac_status); }; } &&
9394          { ac_try='test -s conftest.$ac_objext'
9395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396   (eval $ac_try) 2>&5
9397   ac_status=$?
9398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399   (exit $ac_status); }; }; then
9400   ac_header_compiler=yes
9401 else
9402   echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.$ac_ext >&5
9404
9405 ac_header_compiler=no
9406 fi
9407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9409 echo "${ECHO_T}$ac_header_compiler" >&6
9410
9411 # Is the header present?
9412 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9414 cat >conftest.$ac_ext <<_ACEOF
9415 /* confdefs.h.  */
9416 _ACEOF
9417 cat confdefs.h >>conftest.$ac_ext
9418 cat >>conftest.$ac_ext <<_ACEOF
9419 /* end confdefs.h.  */
9420 #include <$ac_header>
9421 _ACEOF
9422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9423   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9424   ac_status=$?
9425   grep -v '^ *+' conftest.er1 >conftest.err
9426   rm -f conftest.er1
9427   cat conftest.err >&5
9428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429   (exit $ac_status); } >/dev/null; then
9430   if test -s conftest.err; then
9431     ac_cpp_err=$ac_c_preproc_warn_flag
9432     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9433   else
9434     ac_cpp_err=
9435   fi
9436 else
9437   ac_cpp_err=yes
9438 fi
9439 if test -z "$ac_cpp_err"; then
9440   ac_header_preproc=yes
9441 else
9442   echo "$as_me: failed program was:" >&5
9443 sed 's/^/| /' conftest.$ac_ext >&5
9444
9445   ac_header_preproc=no
9446 fi
9447 rm -f conftest.err conftest.$ac_ext
9448 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9449 echo "${ECHO_T}$ac_header_preproc" >&6
9450
9451 # So?  What about this header?
9452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9453   yes:no: )
9454     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9456     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9457 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9458     ac_header_preproc=yes
9459     ;;
9460   no:yes:* )
9461     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9462 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9463     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9464 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9465     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9466 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9467     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9468 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9469     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9471     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9472 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9473     (
9474       cat <<\_ASBOX
9475 ## ---------------------------------------- ##
9476 ## Report this to pgsql-bugs@postgresql.org ##
9477 ## ---------------------------------------- ##
9478 _ASBOX
9479     ) |
9480       sed "s/^/$as_me: WARNING:     /" >&2
9481     ;;
9482 esac
9483 echo "$as_me:$LINENO: checking for $ac_header" >&5
9484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9486   echo $ECHO_N "(cached) $ECHO_C" >&6
9487 else
9488   eval "$as_ac_Header=\$ac_header_preproc"
9489 fi
9490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9492
9493 fi
9494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9495   cat >>confdefs.h <<_ACEOF
9496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9497 _ACEOF
9498
9499 else
9500
9501 for ac_header in readline/history.h
9502 do
9503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9505   echo "$as_me:$LINENO: checking for $ac_header" >&5
9506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9508   echo $ECHO_N "(cached) $ECHO_C" >&6
9509 fi
9510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9512 else
9513   # Is the header compilable?
9514 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9516 cat >conftest.$ac_ext <<_ACEOF
9517 /* confdefs.h.  */
9518 _ACEOF
9519 cat confdefs.h >>conftest.$ac_ext
9520 cat >>conftest.$ac_ext <<_ACEOF
9521 /* end confdefs.h.  */
9522 $ac_includes_default
9523 #include <$ac_header>
9524 _ACEOF
9525 rm -f conftest.$ac_objext
9526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9527   (eval $ac_compile) 2>conftest.er1
9528   ac_status=$?
9529   grep -v '^ *+' conftest.er1 >conftest.err
9530   rm -f conftest.er1
9531   cat conftest.err >&5
9532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533   (exit $ac_status); } &&
9534          { ac_try='test -z "$ac_c_werror_flag"
9535                          || test ! -s conftest.err'
9536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537   (eval $ac_try) 2>&5
9538   ac_status=$?
9539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540   (exit $ac_status); }; } &&
9541          { ac_try='test -s conftest.$ac_objext'
9542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9543   (eval $ac_try) 2>&5
9544   ac_status=$?
9545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546   (exit $ac_status); }; }; then
9547   ac_header_compiler=yes
9548 else
9549   echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.$ac_ext >&5
9551
9552 ac_header_compiler=no
9553 fi
9554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9555 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9556 echo "${ECHO_T}$ac_header_compiler" >&6
9557
9558 # Is the header present?
9559 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9561 cat >conftest.$ac_ext <<_ACEOF
9562 /* confdefs.h.  */
9563 _ACEOF
9564 cat confdefs.h >>conftest.$ac_ext
9565 cat >>conftest.$ac_ext <<_ACEOF
9566 /* end confdefs.h.  */
9567 #include <$ac_header>
9568 _ACEOF
9569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9570   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9571   ac_status=$?
9572   grep -v '^ *+' conftest.er1 >conftest.err
9573   rm -f conftest.er1
9574   cat conftest.err >&5
9575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576   (exit $ac_status); } >/dev/null; then
9577   if test -s conftest.err; then
9578     ac_cpp_err=$ac_c_preproc_warn_flag
9579     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9580   else
9581     ac_cpp_err=
9582   fi
9583 else
9584   ac_cpp_err=yes
9585 fi
9586 if test -z "$ac_cpp_err"; then
9587   ac_header_preproc=yes
9588 else
9589   echo "$as_me: failed program was:" >&5
9590 sed 's/^/| /' conftest.$ac_ext >&5
9591
9592   ac_header_preproc=no
9593 fi
9594 rm -f conftest.err conftest.$ac_ext
9595 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9596 echo "${ECHO_T}$ac_header_preproc" >&6
9597
9598 # So?  What about this header?
9599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9600   yes:no: )
9601     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9602 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9603     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9604 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9605     ac_header_preproc=yes
9606     ;;
9607   no:yes:* )
9608     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9609 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9610     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9611 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9612     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9613 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9614     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9615 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9616     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9618     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9619 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9620     (
9621       cat <<\_ASBOX
9622 ## ---------------------------------------- ##
9623 ## Report this to pgsql-bugs@postgresql.org ##
9624 ## ---------------------------------------- ##
9625 _ASBOX
9626     ) |
9627       sed "s/^/$as_me: WARNING:     /" >&2
9628     ;;
9629 esac
9630 echo "$as_me:$LINENO: checking for $ac_header" >&5
9631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9633   echo $ECHO_N "(cached) $ECHO_C" >&6
9634 else
9635   eval "$as_ac_Header=\$ac_header_preproc"
9636 fi
9637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9639
9640 fi
9641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9642   cat >>confdefs.h <<_ACEOF
9643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9644 _ACEOF
9645
9646 else
9647   { { echo "$as_me:$LINENO: error: history header not found
9648 If you have libedit already installed, see config.log for details on the
9649 failure.  It is possible the compiler isn't looking in the proper directory.
9650 Use --without-readline to disable libedit support." >&5
9651 echo "$as_me: error: history header not found
9652 If you have libedit already installed, see config.log for details on the
9653 failure.  It is possible the compiler isn't looking in the proper directory.
9654 Use --without-readline to disable libedit support." >&2;}
9655    { (exit 1); exit 1; }; }
9656 fi
9657
9658 done
9659
9660 fi
9661
9662 done
9663
9664 fi
9665
9666 done
9667
9668 fi
9669
9670 if test "$with_zlib" = yes; then
9671   if test "${ac_cv_header_zlib_h+set}" = set; then
9672   echo "$as_me:$LINENO: checking for zlib.h" >&5
9673 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9674 if test "${ac_cv_header_zlib_h+set}" = set; then
9675   echo $ECHO_N "(cached) $ECHO_C" >&6
9676 fi
9677 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9678 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9679 else
9680   # Is the header compilable?
9681 echo "$as_me:$LINENO: checking zlib.h usability" >&5
9682 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
9683 cat >conftest.$ac_ext <<_ACEOF
9684 /* confdefs.h.  */
9685 _ACEOF
9686 cat confdefs.h >>conftest.$ac_ext
9687 cat >>conftest.$ac_ext <<_ACEOF
9688 /* end confdefs.h.  */
9689 $ac_includes_default
9690 #include <zlib.h>
9691 _ACEOF
9692 rm -f conftest.$ac_objext
9693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9694   (eval $ac_compile) 2>conftest.er1
9695   ac_status=$?
9696   grep -v '^ *+' conftest.er1 >conftest.err
9697   rm -f conftest.er1
9698   cat conftest.err >&5
9699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700   (exit $ac_status); } &&
9701          { ac_try='test -z "$ac_c_werror_flag"
9702                          || test ! -s conftest.err'
9703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704   (eval $ac_try) 2>&5
9705   ac_status=$?
9706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707   (exit $ac_status); }; } &&
9708          { ac_try='test -s conftest.$ac_objext'
9709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710   (eval $ac_try) 2>&5
9711   ac_status=$?
9712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713   (exit $ac_status); }; }; then
9714   ac_header_compiler=yes
9715 else
9716   echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9718
9719 ac_header_compiler=no
9720 fi
9721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9722 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9723 echo "${ECHO_T}$ac_header_compiler" >&6
9724
9725 # Is the header present?
9726 echo "$as_me:$LINENO: checking zlib.h presence" >&5
9727 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
9728 cat >conftest.$ac_ext <<_ACEOF
9729 /* confdefs.h.  */
9730 _ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h.  */
9734 #include <zlib.h>
9735 _ACEOF
9736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9737   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9738   ac_status=$?
9739   grep -v '^ *+' conftest.er1 >conftest.err
9740   rm -f conftest.er1
9741   cat conftest.err >&5
9742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743   (exit $ac_status); } >/dev/null; then
9744   if test -s conftest.err; then
9745     ac_cpp_err=$ac_c_preproc_warn_flag
9746     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9747   else
9748     ac_cpp_err=
9749   fi
9750 else
9751   ac_cpp_err=yes
9752 fi
9753 if test -z "$ac_cpp_err"; then
9754   ac_header_preproc=yes
9755 else
9756   echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9758
9759   ac_header_preproc=no
9760 fi
9761 rm -f conftest.err conftest.$ac_ext
9762 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9763 echo "${ECHO_T}$ac_header_preproc" >&6
9764
9765 # So?  What about this header?
9766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9767   yes:no: )
9768     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9769 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9770     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9771 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9772     ac_header_preproc=yes
9773     ;;
9774   no:yes:* )
9775     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9776 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9777     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
9778 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
9779     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9780 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9781     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
9782 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9783     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9784 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9785     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9786 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
9787     (
9788       cat <<\_ASBOX
9789 ## ---------------------------------------- ##
9790 ## Report this to pgsql-bugs@postgresql.org ##
9791 ## ---------------------------------------- ##
9792 _ASBOX
9793     ) |
9794       sed "s/^/$as_me: WARNING:     /" >&2
9795     ;;
9796 esac
9797 echo "$as_me:$LINENO: checking for zlib.h" >&5
9798 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9799 if test "${ac_cv_header_zlib_h+set}" = set; then
9800   echo $ECHO_N "(cached) $ECHO_C" >&6
9801 else
9802   ac_cv_header_zlib_h=$ac_header_preproc
9803 fi
9804 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9805 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9806
9807 fi
9808 if test $ac_cv_header_zlib_h = yes; then
9809   :
9810 else
9811   { { echo "$as_me:$LINENO: error: zlib header not found
9812 If you have zlib already installed, see config.log for details on the
9813 failure.  It is possible the compiler isn't looking in the proper directory.
9814 Use --without-zlib to disable zlib support." >&5
9815 echo "$as_me: error: zlib header not found
9816 If you have zlib already installed, see config.log for details on the
9817 failure.  It is possible the compiler isn't looking in the proper directory.
9818 Use --without-zlib to disable zlib support." >&2;}
9819    { (exit 1); exit 1; }; }
9820 fi
9821
9822
9823 fi
9824
9825 if test "$with_krb5" = yes ; then
9826   if test "${ac_cv_header_krb5_h+set}" = set; then
9827   echo "$as_me:$LINENO: checking for krb5.h" >&5
9828 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9829 if test "${ac_cv_header_krb5_h+set}" = set; then
9830   echo $ECHO_N "(cached) $ECHO_C" >&6
9831 fi
9832 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9833 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9834 else
9835   # Is the header compilable?
9836 echo "$as_me:$LINENO: checking krb5.h usability" >&5
9837 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
9838 cat >conftest.$ac_ext <<_ACEOF
9839 /* confdefs.h.  */
9840 _ACEOF
9841 cat confdefs.h >>conftest.$ac_ext
9842 cat >>conftest.$ac_ext <<_ACEOF
9843 /* end confdefs.h.  */
9844 $ac_includes_default
9845 #include <krb5.h>
9846 _ACEOF
9847 rm -f conftest.$ac_objext
9848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9849   (eval $ac_compile) 2>conftest.er1
9850   ac_status=$?
9851   grep -v '^ *+' conftest.er1 >conftest.err
9852   rm -f conftest.er1
9853   cat conftest.err >&5
9854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855   (exit $ac_status); } &&
9856          { ac_try='test -z "$ac_c_werror_flag"
9857                          || test ! -s conftest.err'
9858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859   (eval $ac_try) 2>&5
9860   ac_status=$?
9861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862   (exit $ac_status); }; } &&
9863          { ac_try='test -s conftest.$ac_objext'
9864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865   (eval $ac_try) 2>&5
9866   ac_status=$?
9867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868   (exit $ac_status); }; }; then
9869   ac_header_compiler=yes
9870 else
9871   echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9873
9874 ac_header_compiler=no
9875 fi
9876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9877 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9878 echo "${ECHO_T}$ac_header_compiler" >&6
9879
9880 # Is the header present?
9881 echo "$as_me:$LINENO: checking krb5.h presence" >&5
9882 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
9883 cat >conftest.$ac_ext <<_ACEOF
9884 /* confdefs.h.  */
9885 _ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h.  */
9889 #include <krb5.h>
9890 _ACEOF
9891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9892   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9893   ac_status=$?
9894   grep -v '^ *+' conftest.er1 >conftest.err
9895   rm -f conftest.er1
9896   cat conftest.err >&5
9897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898   (exit $ac_status); } >/dev/null; then
9899   if test -s conftest.err; then
9900     ac_cpp_err=$ac_c_preproc_warn_flag
9901     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9902   else
9903     ac_cpp_err=
9904   fi
9905 else
9906   ac_cpp_err=yes
9907 fi
9908 if test -z "$ac_cpp_err"; then
9909   ac_header_preproc=yes
9910 else
9911   echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.$ac_ext >&5
9913
9914   ac_header_preproc=no
9915 fi
9916 rm -f conftest.err conftest.$ac_ext
9917 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9918 echo "${ECHO_T}$ac_header_preproc" >&6
9919
9920 # So?  What about this header?
9921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9922   yes:no: )
9923     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
9924 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9925     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
9926 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
9927     ac_header_preproc=yes
9928     ;;
9929   no:yes:* )
9930     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
9931 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
9932     { echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
9933 echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
9934     { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
9935 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
9936     { echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
9937 echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9938     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
9939 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
9940     { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
9941 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
9942     (
9943       cat <<\_ASBOX
9944 ## ---------------------------------------- ##
9945 ## Report this to pgsql-bugs@postgresql.org ##
9946 ## ---------------------------------------- ##
9947 _ASBOX
9948     ) |
9949       sed "s/^/$as_me: WARNING:     /" >&2
9950     ;;
9951 esac
9952 echo "$as_me:$LINENO: checking for krb5.h" >&5
9953 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9954 if test "${ac_cv_header_krb5_h+set}" = set; then
9955   echo $ECHO_N "(cached) $ECHO_C" >&6
9956 else
9957   ac_cv_header_krb5_h=$ac_header_preproc
9958 fi
9959 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9960 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9961
9962 fi
9963 if test $ac_cv_header_krb5_h = yes; then
9964   :
9965 else
9966   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
9967 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
9968    { (exit 1); exit 1; }; }
9969 fi
9970
9971
9972 fi
9973
9974 if test "$with_openssl" = yes ; then
9975   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9976   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9977 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9978 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9979   echo $ECHO_N "(cached) $ECHO_C" >&6
9980 fi
9981 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9982 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9983 else
9984   # Is the header compilable?
9985 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
9986 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
9987 cat >conftest.$ac_ext <<_ACEOF
9988 /* confdefs.h.  */
9989 _ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h.  */
9993 $ac_includes_default
9994 #include <openssl/ssl.h>
9995 _ACEOF
9996 rm -f conftest.$ac_objext
9997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9998   (eval $ac_compile) 2>conftest.er1
9999   ac_status=$?
10000   grep -v '^ *+' conftest.er1 >conftest.err
10001   rm -f conftest.er1
10002   cat conftest.err >&5
10003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004   (exit $ac_status); } &&
10005          { ac_try='test -z "$ac_c_werror_flag"
10006                          || test ! -s conftest.err'
10007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10008   (eval $ac_try) 2>&5
10009   ac_status=$?
10010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011   (exit $ac_status); }; } &&
10012          { ac_try='test -s conftest.$ac_objext'
10013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014   (eval $ac_try) 2>&5
10015   ac_status=$?
10016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017   (exit $ac_status); }; }; then
10018   ac_header_compiler=yes
10019 else
10020   echo "$as_me: failed program was:" >&5
10021 sed 's/^/| /' conftest.$ac_ext >&5
10022
10023 ac_header_compiler=no
10024 fi
10025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10026 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10027 echo "${ECHO_T}$ac_header_compiler" >&6
10028
10029 # Is the header present?
10030 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
10031 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
10032 cat >conftest.$ac_ext <<_ACEOF
10033 /* confdefs.h.  */
10034 _ACEOF
10035 cat confdefs.h >>conftest.$ac_ext
10036 cat >>conftest.$ac_ext <<_ACEOF
10037 /* end confdefs.h.  */
10038 #include <openssl/ssl.h>
10039 _ACEOF
10040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10041   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10042   ac_status=$?
10043   grep -v '^ *+' conftest.er1 >conftest.err
10044   rm -f conftest.er1
10045   cat conftest.err >&5
10046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047   (exit $ac_status); } >/dev/null; then
10048   if test -s conftest.err; then
10049     ac_cpp_err=$ac_c_preproc_warn_flag
10050     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10051   else
10052     ac_cpp_err=
10053   fi
10054 else
10055   ac_cpp_err=yes
10056 fi
10057 if test -z "$ac_cpp_err"; then
10058   ac_header_preproc=yes
10059 else
10060   echo "$as_me: failed program was:" >&5
10061 sed 's/^/| /' conftest.$ac_ext >&5
10062
10063   ac_header_preproc=no
10064 fi
10065 rm -f conftest.err conftest.$ac_ext
10066 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10067 echo "${ECHO_T}$ac_header_preproc" >&6
10068
10069 # So?  What about this header?
10070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10071   yes:no: )
10072     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10073 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10074     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
10075 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
10076     ac_header_preproc=yes
10077     ;;
10078   no:yes:* )
10079     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
10080 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
10081     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
10082 echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
10083     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
10084 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
10085     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
10086 echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10087     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
10088 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
10089     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
10090 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
10091     (
10092       cat <<\_ASBOX
10093 ## ---------------------------------------- ##
10094 ## Report this to pgsql-bugs@postgresql.org ##
10095 ## ---------------------------------------- ##
10096 _ASBOX
10097     ) |
10098       sed "s/^/$as_me: WARNING:     /" >&2
10099     ;;
10100 esac
10101 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10102 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
10103 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10104   echo $ECHO_N "(cached) $ECHO_C" >&6
10105 else
10106   ac_cv_header_openssl_ssl_h=$ac_header_preproc
10107 fi
10108 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10109 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
10110
10111 fi
10112 if test $ac_cv_header_openssl_ssl_h = yes; then
10113   :
10114 else
10115   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
10116 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
10117    { (exit 1); exit 1; }; }
10118 fi
10119
10120
10121   if test "${ac_cv_header_openssl_err_h+set}" = set; then
10122   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
10123 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
10124 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10125   echo $ECHO_N "(cached) $ECHO_C" >&6
10126 fi
10127 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
10128 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
10129 else
10130   # Is the header compilable?
10131 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
10132 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
10133 cat >conftest.$ac_ext <<_ACEOF
10134 /* confdefs.h.  */
10135 _ACEOF
10136 cat confdefs.h >>conftest.$ac_ext
10137 cat >>conftest.$ac_ext <<_ACEOF
10138 /* end confdefs.h.  */
10139 $ac_includes_default
10140 #include <openssl/err.h>
10141 _ACEOF
10142 rm -f conftest.$ac_objext
10143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10144   (eval $ac_compile) 2>conftest.er1
10145   ac_status=$?
10146   grep -v '^ *+' conftest.er1 >conftest.err
10147   rm -f conftest.er1
10148   cat conftest.err >&5
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); } &&
10151          { ac_try='test -z "$ac_c_werror_flag"
10152                          || test ! -s conftest.err'
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); }; } &&
10158          { ac_try='test -s conftest.$ac_objext'
10159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160   (eval $ac_try) 2>&5
10161   ac_status=$?
10162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163   (exit $ac_status); }; }; then
10164   ac_header_compiler=yes
10165 else
10166   echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.$ac_ext >&5
10168
10169 ac_header_compiler=no
10170 fi
10171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10172 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10173 echo "${ECHO_T}$ac_header_compiler" >&6
10174
10175 # Is the header present?
10176 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
10177 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
10178 cat >conftest.$ac_ext <<_ACEOF
10179 /* confdefs.h.  */
10180 _ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h.  */
10184 #include <openssl/err.h>
10185 _ACEOF
10186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10187   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10188   ac_status=$?
10189   grep -v '^ *+' conftest.er1 >conftest.err
10190   rm -f conftest.er1
10191   cat conftest.err >&5
10192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193   (exit $ac_status); } >/dev/null; then
10194   if test -s conftest.err; then
10195     ac_cpp_err=$ac_c_preproc_warn_flag
10196     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10197   else
10198     ac_cpp_err=
10199   fi
10200 else
10201   ac_cpp_err=yes
10202 fi
10203 if test -z "$ac_cpp_err"; then
10204   ac_header_preproc=yes
10205 else
10206   echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10208
10209   ac_header_preproc=no
10210 fi
10211 rm -f conftest.err conftest.$ac_ext
10212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10213 echo "${ECHO_T}$ac_header_preproc" >&6
10214
10215 # So?  What about this header?
10216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10217   yes:no: )
10218     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
10219 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10220     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
10221 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
10222     ac_header_preproc=yes
10223     ;;
10224   no:yes:* )
10225     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
10226 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
10227     { echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
10228 echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
10229     { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
10230 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
10231     { echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
10232 echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10233     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
10234 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
10235     { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
10236 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
10237     (
10238       cat <<\_ASBOX
10239 ## ---------------------------------------- ##
10240 ## Report this to pgsql-bugs@postgresql.org ##
10241 ## ---------------------------------------- ##
10242 _ASBOX
10243     ) |
10244       sed "s/^/$as_me: WARNING:     /" >&2
10245     ;;
10246 esac
10247 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
10248 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
10249 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10250   echo $ECHO_N "(cached) $ECHO_C" >&6
10251 else
10252   ac_cv_header_openssl_err_h=$ac_header_preproc
10253 fi
10254 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
10255 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
10256
10257 fi
10258 if test $ac_cv_header_openssl_err_h = yes; then
10259   :
10260 else
10261   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
10262 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
10263    { (exit 1); exit 1; }; }
10264 fi
10265
10266
10267 fi
10268
10269 if test "$with_pam" = yes ; then
10270
10271 for ac_header in security/pam_appl.h
10272 do
10273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10275   echo "$as_me:$LINENO: checking for $ac_header" >&5
10276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10278   echo $ECHO_N "(cached) $ECHO_C" >&6
10279 fi
10280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10282 else
10283   # Is the header compilable?
10284 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10286 cat >conftest.$ac_ext <<_ACEOF
10287 /* confdefs.h.  */
10288 _ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h.  */
10292 $ac_includes_default
10293 #include <$ac_header>
10294 _ACEOF
10295 rm -f conftest.$ac_objext
10296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10297   (eval $ac_compile) 2>conftest.er1
10298   ac_status=$?
10299   grep -v '^ *+' conftest.er1 >conftest.err
10300   rm -f conftest.er1
10301   cat conftest.err >&5
10302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303   (exit $ac_status); } &&
10304          { ac_try='test -z "$ac_c_werror_flag"
10305                          || test ! -s conftest.err'
10306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307   (eval $ac_try) 2>&5
10308   ac_status=$?
10309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); }; } &&
10311          { ac_try='test -s conftest.$ac_objext'
10312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313   (eval $ac_try) 2>&5
10314   ac_status=$?
10315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316   (exit $ac_status); }; }; then
10317   ac_header_compiler=yes
10318 else
10319   echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.$ac_ext >&5
10321
10322 ac_header_compiler=no
10323 fi
10324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10325 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10326 echo "${ECHO_T}$ac_header_compiler" >&6
10327
10328 # Is the header present?
10329 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10330 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10331 cat >conftest.$ac_ext <<_ACEOF
10332 /* confdefs.h.  */
10333 _ACEOF
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h.  */
10337 #include <$ac_header>
10338 _ACEOF
10339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10340   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10341   ac_status=$?
10342   grep -v '^ *+' conftest.er1 >conftest.err
10343   rm -f conftest.er1
10344   cat conftest.err >&5
10345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346   (exit $ac_status); } >/dev/null; then
10347   if test -s conftest.err; then
10348     ac_cpp_err=$ac_c_preproc_warn_flag
10349     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10350   else
10351     ac_cpp_err=
10352   fi
10353 else
10354   ac_cpp_err=yes
10355 fi
10356 if test -z "$ac_cpp_err"; then
10357   ac_header_preproc=yes
10358 else
10359   echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10361
10362   ac_header_preproc=no
10363 fi
10364 rm -f conftest.err conftest.$ac_ext
10365 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10366 echo "${ECHO_T}$ac_header_preproc" >&6
10367
10368 # So?  What about this header?
10369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10370   yes:no: )
10371     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10372 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10373     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10374 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10375     ac_header_preproc=yes
10376     ;;
10377   no:yes:* )
10378     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10380     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10381 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10382     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10383 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10384     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10385 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10386     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10388     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10389 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10390     (
10391       cat <<\_ASBOX
10392 ## ---------------------------------------- ##
10393 ## Report this to pgsql-bugs@postgresql.org ##
10394 ## ---------------------------------------- ##
10395 _ASBOX
10396     ) |
10397       sed "s/^/$as_me: WARNING:     /" >&2
10398     ;;
10399 esac
10400 echo "$as_me:$LINENO: checking for $ac_header" >&5
10401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10403   echo $ECHO_N "(cached) $ECHO_C" >&6
10404 else
10405   eval "$as_ac_Header=\$ac_header_preproc"
10406 fi
10407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10409
10410 fi
10411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10412   cat >>confdefs.h <<_ACEOF
10413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10414 _ACEOF
10415
10416 else
10417
10418 for ac_header in pam/pam_appl.h
10419 do
10420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10422   echo "$as_me:$LINENO: checking for $ac_header" >&5
10423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10425   echo $ECHO_N "(cached) $ECHO_C" >&6
10426 fi
10427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10429 else
10430   # Is the header compilable?
10431 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10432 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10433 cat >conftest.$ac_ext <<_ACEOF
10434 /* confdefs.h.  */
10435 _ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h.  */
10439 $ac_includes_default
10440 #include <$ac_header>
10441 _ACEOF
10442 rm -f conftest.$ac_objext
10443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10444   (eval $ac_compile) 2>conftest.er1
10445   ac_status=$?
10446   grep -v '^ *+' conftest.er1 >conftest.err
10447   rm -f conftest.er1
10448   cat conftest.err >&5
10449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450   (exit $ac_status); } &&
10451          { ac_try='test -z "$ac_c_werror_flag"
10452                          || test ! -s conftest.err'
10453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454   (eval $ac_try) 2>&5
10455   ac_status=$?
10456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457   (exit $ac_status); }; } &&
10458          { ac_try='test -s conftest.$ac_objext'
10459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460   (eval $ac_try) 2>&5
10461   ac_status=$?
10462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463   (exit $ac_status); }; }; then
10464   ac_header_compiler=yes
10465 else
10466   echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10468
10469 ac_header_compiler=no
10470 fi
10471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10472 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10473 echo "${ECHO_T}$ac_header_compiler" >&6
10474
10475 # Is the header present?
10476 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10478 cat >conftest.$ac_ext <<_ACEOF
10479 /* confdefs.h.  */
10480 _ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h.  */
10484 #include <$ac_header>
10485 _ACEOF
10486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10487   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10488   ac_status=$?
10489   grep -v '^ *+' conftest.er1 >conftest.err
10490   rm -f conftest.er1
10491   cat conftest.err >&5
10492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493   (exit $ac_status); } >/dev/null; then
10494   if test -s conftest.err; then
10495     ac_cpp_err=$ac_c_preproc_warn_flag
10496     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10497   else
10498     ac_cpp_err=
10499   fi
10500 else
10501   ac_cpp_err=yes
10502 fi
10503 if test -z "$ac_cpp_err"; then
10504   ac_header_preproc=yes
10505 else
10506   echo "$as_me: failed program was:" >&5
10507 sed 's/^/| /' conftest.$ac_ext >&5
10508
10509   ac_header_preproc=no
10510 fi
10511 rm -f conftest.err conftest.$ac_ext
10512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10513 echo "${ECHO_T}$ac_header_preproc" >&6
10514
10515 # So?  What about this header?
10516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10517   yes:no: )
10518     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10520     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10521 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10522     ac_header_preproc=yes
10523     ;;
10524   no:yes:* )
10525     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10527     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10528 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10529     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10530 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10531     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10532 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10533     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10535     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10536 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10537     (
10538       cat <<\_ASBOX
10539 ## ---------------------------------------- ##
10540 ## Report this to pgsql-bugs@postgresql.org ##
10541 ## ---------------------------------------- ##
10542 _ASBOX
10543     ) |
10544       sed "s/^/$as_me: WARNING:     /" >&2
10545     ;;
10546 esac
10547 echo "$as_me:$LINENO: checking for $ac_header" >&5
10548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10550   echo $ECHO_N "(cached) $ECHO_C" >&6
10551 else
10552   eval "$as_ac_Header=\$ac_header_preproc"
10553 fi
10554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10556
10557 fi
10558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10559   cat >>confdefs.h <<_ACEOF
10560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10561 _ACEOF
10562
10563 else
10564   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
10565 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
10566    { (exit 1); exit 1; }; }
10567 fi
10568
10569 done
10570
10571 fi
10572
10573 done
10574
10575 fi
10576
10577 if test "$with_ldap" = yes ; then
10578   if test "$PORTNAME" != "win32"; then
10579
10580 for ac_header in ldap.h
10581 do
10582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10584   echo "$as_me:$LINENO: checking for $ac_header" >&5
10585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10587   echo $ECHO_N "(cached) $ECHO_C" >&6
10588 fi
10589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10591 else
10592   # Is the header compilable?
10593 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10594 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10595 cat >conftest.$ac_ext <<_ACEOF
10596 /* confdefs.h.  */
10597 _ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h.  */
10601 $ac_includes_default
10602 #include <$ac_header>
10603 _ACEOF
10604 rm -f conftest.$ac_objext
10605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10606   (eval $ac_compile) 2>conftest.er1
10607   ac_status=$?
10608   grep -v '^ *+' conftest.er1 >conftest.err
10609   rm -f conftest.er1
10610   cat conftest.err >&5
10611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612   (exit $ac_status); } &&
10613          { ac_try='test -z "$ac_c_werror_flag"
10614                          || test ! -s conftest.err'
10615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10616   (eval $ac_try) 2>&5
10617   ac_status=$?
10618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619   (exit $ac_status); }; } &&
10620          { ac_try='test -s conftest.$ac_objext'
10621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10622   (eval $ac_try) 2>&5
10623   ac_status=$?
10624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625   (exit $ac_status); }; }; then
10626   ac_header_compiler=yes
10627 else
10628   echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.$ac_ext >&5
10630
10631 ac_header_compiler=no
10632 fi
10633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10634 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10635 echo "${ECHO_T}$ac_header_compiler" >&6
10636
10637 # Is the header present?
10638 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10639 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10640 cat >conftest.$ac_ext <<_ACEOF
10641 /* confdefs.h.  */
10642 _ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h.  */
10646 #include <$ac_header>
10647 _ACEOF
10648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10649   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10650   ac_status=$?
10651   grep -v '^ *+' conftest.er1 >conftest.err
10652   rm -f conftest.er1
10653   cat conftest.err >&5
10654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655   (exit $ac_status); } >/dev/null; then
10656   if test -s conftest.err; then
10657     ac_cpp_err=$ac_c_preproc_warn_flag
10658     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10659   else
10660     ac_cpp_err=
10661   fi
10662 else
10663   ac_cpp_err=yes
10664 fi
10665 if test -z "$ac_cpp_err"; then
10666   ac_header_preproc=yes
10667 else
10668   echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10670
10671   ac_header_preproc=no
10672 fi
10673 rm -f conftest.err conftest.$ac_ext
10674 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10675 echo "${ECHO_T}$ac_header_preproc" >&6
10676
10677 # So?  What about this header?
10678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10679   yes:no: )
10680     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10681 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10683 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10684     ac_header_preproc=yes
10685     ;;
10686   no:yes:* )
10687     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10689     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10690 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10691     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10692 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10693     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10694 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10695     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10697     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10698 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10699     (
10700       cat <<\_ASBOX
10701 ## ---------------------------------------- ##
10702 ## Report this to pgsql-bugs@postgresql.org ##
10703 ## ---------------------------------------- ##
10704 _ASBOX
10705     ) |
10706       sed "s/^/$as_me: WARNING:     /" >&2
10707     ;;
10708 esac
10709 echo "$as_me:$LINENO: checking for $ac_header" >&5
10710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10712   echo $ECHO_N "(cached) $ECHO_C" >&6
10713 else
10714   eval "$as_ac_Header=\$ac_header_preproc"
10715 fi
10716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10718
10719 fi
10720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10721   cat >>confdefs.h <<_ACEOF
10722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10723 _ACEOF
10724
10725 else
10726   { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
10727 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
10728    { (exit 1); exit 1; }; }
10729 fi
10730
10731 done
10732
10733   else
10734
10735 for ac_header in winldap.h
10736 do
10737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10738 echo "$as_me:$LINENO: checking for $ac_header" >&5
10739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10741   echo $ECHO_N "(cached) $ECHO_C" >&6
10742 else
10743   cat >conftest.$ac_ext <<_ACEOF
10744 /* confdefs.h.  */
10745 _ACEOF
10746 cat confdefs.h >>conftest.$ac_ext
10747 cat >>conftest.$ac_ext <<_ACEOF
10748 /* end confdefs.h.  */
10749 $ac_includes_default
10750 #include <windows.h>
10751
10752
10753 #include <$ac_header>
10754 _ACEOF
10755 rm -f conftest.$ac_objext
10756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10757   (eval $ac_compile) 2>conftest.er1
10758   ac_status=$?
10759   grep -v '^ *+' conftest.er1 >conftest.err
10760   rm -f conftest.er1
10761   cat conftest.err >&5
10762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763   (exit $ac_status); } &&
10764          { ac_try='test -z "$ac_c_werror_flag"
10765                          || test ! -s conftest.err'
10766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10767   (eval $ac_try) 2>&5
10768   ac_status=$?
10769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770   (exit $ac_status); }; } &&
10771          { ac_try='test -s conftest.$ac_objext'
10772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773   (eval $ac_try) 2>&5
10774   ac_status=$?
10775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776   (exit $ac_status); }; }; then
10777   eval "$as_ac_Header=yes"
10778 else
10779   echo "$as_me: failed program was:" >&5
10780 sed 's/^/| /' conftest.$ac_ext >&5
10781
10782 eval "$as_ac_Header=no"
10783 fi
10784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10785 fi
10786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10789   cat >>confdefs.h <<_ACEOF
10790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10791 _ACEOF
10792
10793 else
10794   { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
10795 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
10796    { (exit 1); exit 1; }; }
10797 fi
10798
10799 done
10800
10801   fi
10802 fi
10803
10804 if test "$with_bonjour" = yes ; then
10805   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10806   echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10807 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10808 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10809   echo $ECHO_N "(cached) $ECHO_C" >&6
10810 fi
10811 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10812 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10813 else
10814   # Is the header compilable?
10815 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
10816 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
10817 cat >conftest.$ac_ext <<_ACEOF
10818 /* confdefs.h.  */
10819 _ACEOF
10820 cat confdefs.h >>conftest.$ac_ext
10821 cat >>conftest.$ac_ext <<_ACEOF
10822 /* end confdefs.h.  */
10823 $ac_includes_default
10824 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10825 _ACEOF
10826 rm -f conftest.$ac_objext
10827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10828   (eval $ac_compile) 2>conftest.er1
10829   ac_status=$?
10830   grep -v '^ *+' conftest.er1 >conftest.err
10831   rm -f conftest.er1
10832   cat conftest.err >&5
10833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834   (exit $ac_status); } &&
10835          { ac_try='test -z "$ac_c_werror_flag"
10836                          || test ! -s conftest.err'
10837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838   (eval $ac_try) 2>&5
10839   ac_status=$?
10840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841   (exit $ac_status); }; } &&
10842          { ac_try='test -s conftest.$ac_objext'
10843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10844   (eval $ac_try) 2>&5
10845   ac_status=$?
10846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847   (exit $ac_status); }; }; then
10848   ac_header_compiler=yes
10849 else
10850   echo "$as_me: failed program was:" >&5
10851 sed 's/^/| /' conftest.$ac_ext >&5
10852
10853 ac_header_compiler=no
10854 fi
10855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10857 echo "${ECHO_T}$ac_header_compiler" >&6
10858
10859 # Is the header present?
10860 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
10861 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
10862 cat >conftest.$ac_ext <<_ACEOF
10863 /* confdefs.h.  */
10864 _ACEOF
10865 cat confdefs.h >>conftest.$ac_ext
10866 cat >>conftest.$ac_ext <<_ACEOF
10867 /* end confdefs.h.  */
10868 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10869 _ACEOF
10870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10871   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10872   ac_status=$?
10873   grep -v '^ *+' conftest.er1 >conftest.err
10874   rm -f conftest.er1
10875   cat conftest.err >&5
10876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877   (exit $ac_status); } >/dev/null; then
10878   if test -s conftest.err; then
10879     ac_cpp_err=$ac_c_preproc_warn_flag
10880     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10881   else
10882     ac_cpp_err=
10883   fi
10884 else
10885   ac_cpp_err=yes
10886 fi
10887 if test -z "$ac_cpp_err"; then
10888   ac_header_preproc=yes
10889 else
10890   echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10892
10893   ac_header_preproc=no
10894 fi
10895 rm -f conftest.err conftest.$ac_ext
10896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10897 echo "${ECHO_T}$ac_header_preproc" >&6
10898
10899 # So?  What about this header?
10900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10901   yes:no: )
10902     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
10903 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10904     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
10905 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
10906     ac_header_preproc=yes
10907     ;;
10908   no:yes:* )
10909     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
10910 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
10911     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&5
10912 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&2;}
10913     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
10914 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
10915     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&5
10916 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10917     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
10918 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
10919     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
10920 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
10921     (
10922       cat <<\_ASBOX
10923 ## ---------------------------------------- ##
10924 ## Report this to pgsql-bugs@postgresql.org ##
10925 ## ---------------------------------------- ##
10926 _ASBOX
10927     ) |
10928       sed "s/^/$as_me: WARNING:     /" >&2
10929     ;;
10930 esac
10931 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10932 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10933 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10934   echo $ECHO_N "(cached) $ECHO_C" >&6
10935 else
10936   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
10937 fi
10938 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10939 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10940
10941 fi
10942 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
10943   :
10944 else
10945   { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
10946 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
10947    { (exit 1); exit 1; }; }
10948 fi
10949
10950
10951 fi
10952
10953
10954 ##
10955 ## Types, structures, compiler characteristics
10956 ##
10957
10958  echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10959 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10960 if test "${ac_cv_c_const+set}" = set; then
10961   echo $ECHO_N "(cached) $ECHO_C" >&6
10962 else
10963   cat >conftest.$ac_ext <<_ACEOF
10964 /* confdefs.h.  */
10965 _ACEOF
10966 cat confdefs.h >>conftest.$ac_ext
10967 cat >>conftest.$ac_ext <<_ACEOF
10968 /* end confdefs.h.  */
10969
10970 int
10971 main ()
10972 {
10973 /* FIXME: Include the comments suggested by Paul. */
10974 #ifndef __cplusplus
10975   /* Ultrix mips cc rejects this.  */
10976   typedef int charset[2];
10977   const charset x;
10978   /* SunOS 4.1.1 cc rejects this.  */
10979   char const *const *ccp;
10980   char **p;
10981   /* NEC SVR4.0.2 mips cc rejects this.  */
10982   struct point {int x, y;};
10983   static struct point const zero = {0,0};
10984   /* AIX XL C 1.02.0.0 rejects this.
10985      It does not let you subtract one const X* pointer from another in
10986      an arm of an if-expression whose if-part is not a constant
10987      expression */
10988   const char *g = "string";
10989   ccp = &g + (g ? g-g : 0);
10990   /* HPUX 7.0 cc rejects these. */
10991   ++ccp;
10992   p = (char**) ccp;
10993   ccp = (char const *const *) p;
10994   { /* SCO 3.2v4 cc rejects this.  */
10995     char *t;
10996     char const *s = 0 ? (char *) 0 : (char const *) 0;
10997
10998     *t++ = 0;
10999   }
11000   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11001     int x[] = {25, 17};
11002     const int *foo = &x[0];
11003     ++foo;
11004   }
11005   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11006     typedef const int *iptr;
11007     iptr p = 0;
11008     ++p;
11009   }
11010   { /* AIX XL C 1.02.0.0 rejects this saying
11011        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11012     struct s { int j; const int *ap[3]; };
11013     struct s *b; b->j = 5;
11014   }
11015   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11016     const int foo = 10;
11017   }
11018 #endif
11019
11020   ;
11021   return 0;
11022 }
11023 _ACEOF
11024 rm -f conftest.$ac_objext
11025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11026   (eval $ac_compile) 2>conftest.er1
11027   ac_status=$?
11028   grep -v '^ *+' conftest.er1 >conftest.err
11029   rm -f conftest.er1
11030   cat conftest.err >&5
11031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032   (exit $ac_status); } &&
11033          { ac_try='test -z "$ac_c_werror_flag"
11034                          || test ! -s conftest.err'
11035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11036   (eval $ac_try) 2>&5
11037   ac_status=$?
11038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039   (exit $ac_status); }; } &&
11040          { ac_try='test -s conftest.$ac_objext'
11041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042   (eval $ac_try) 2>&5
11043   ac_status=$?
11044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045   (exit $ac_status); }; }; then
11046   ac_cv_c_const=yes
11047 else
11048   echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11050
11051 ac_cv_c_const=no
11052 fi
11053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11054 fi
11055 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11056 echo "${ECHO_T}$ac_cv_c_const" >&6
11057 if test $ac_cv_c_const = no; then
11058
11059 cat >>confdefs.h <<\_ACEOF
11060 #define const
11061 _ACEOF
11062
11063 fi
11064
11065
11066 echo "$as_me:$LINENO: checking for inline" >&5
11067 echo $ECHO_N "checking for inline... $ECHO_C" >&6
11068 if test "${ac_cv_c_inline+set}" = set; then
11069   echo $ECHO_N "(cached) $ECHO_C" >&6
11070 else
11071   ac_cv_c_inline=no
11072 for ac_kw in inline __inline__ __inline; do
11073   cat >conftest.$ac_ext <<_ACEOF
11074 /* confdefs.h.  */
11075 _ACEOF
11076 cat confdefs.h >>conftest.$ac_ext
11077 cat >>conftest.$ac_ext <<_ACEOF
11078 /* end confdefs.h.  */
11079 #ifndef __cplusplus
11080 typedef int foo_t;
11081 static $ac_kw foo_t static_foo () {return 0; }
11082 $ac_kw int foo () {return 0; }
11083 #endif
11084
11085 _ACEOF
11086 rm -f conftest.$ac_objext
11087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11088   (eval $ac_compile) 2>conftest.er1
11089   ac_status=$?
11090   grep -v '^ *+' conftest.er1 >conftest.err
11091   rm -f conftest.er1
11092   cat conftest.err >&5
11093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094   (exit $ac_status); } &&
11095          { ac_try='test -z "$ac_c_werror_flag"
11096                          || test ! -s conftest.err'
11097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098   (eval $ac_try) 2>&5
11099   ac_status=$?
11100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101   (exit $ac_status); }; } &&
11102          { ac_try='test -s conftest.$ac_objext'
11103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11104   (eval $ac_try) 2>&5
11105   ac_status=$?
11106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107   (exit $ac_status); }; }; then
11108   ac_cv_c_inline=$ac_kw; break
11109 else
11110   echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11112
11113 fi
11114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11115 done
11116
11117 fi
11118 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11119 echo "${ECHO_T}$ac_cv_c_inline" >&6
11120 case $ac_cv_c_inline in
11121   inline | yes) ;;
11122   no)
11123 cat >>confdefs.h <<\_ACEOF
11124 #define inline
11125 _ACEOF
11126  ;;
11127   *)  cat >>confdefs.h <<_ACEOF
11128 #define inline $ac_cv_c_inline
11129 _ACEOF
11130  ;;
11131 esac
11132
11133 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
11134 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
11135 if test "${ac_cv_c_stringize+set}" = set; then
11136   echo $ECHO_N "(cached) $ECHO_C" >&6
11137 else
11138   cat >conftest.$ac_ext <<_ACEOF
11139 /* confdefs.h.  */
11140 _ACEOF
11141 cat confdefs.h >>conftest.$ac_ext
11142 cat >>conftest.$ac_ext <<_ACEOF
11143 /* end confdefs.h.  */
11144 #define x(y) #y
11145
11146 char *s = x(teststring);
11147 _ACEOF
11148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11149   $EGREP "#teststring" >/dev/null 2>&1; then
11150   ac_cv_c_stringize=no
11151 else
11152   ac_cv_c_stringize=yes
11153 fi
11154 rm -f conftest*
11155
11156 fi
11157 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
11158 echo "${ECHO_T}$ac_cv_c_stringize" >&6
11159 if test $ac_cv_c_stringize = yes; then
11160
11161 cat >>confdefs.h <<\_ACEOF
11162 #define HAVE_STRINGIZE 1
11163 _ACEOF
11164
11165 fi
11166
11167 echo "$as_me:$LINENO: checking for signed types" >&5
11168 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
11169 if test "${pgac_cv_c_signed+set}" = set; then
11170   echo $ECHO_N "(cached) $ECHO_C" >&6
11171 else
11172   cat >conftest.$ac_ext <<_ACEOF
11173 /* confdefs.h.  */
11174 _ACEOF
11175 cat confdefs.h >>conftest.$ac_ext
11176 cat >>conftest.$ac_ext <<_ACEOF
11177 /* end confdefs.h.  */
11178
11179 int
11180 main ()
11181 {
11182 signed char c; signed short s; signed int i;
11183   ;
11184   return 0;
11185 }
11186 _ACEOF
11187 rm -f conftest.$ac_objext
11188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11189   (eval $ac_compile) 2>conftest.er1
11190   ac_status=$?
11191   grep -v '^ *+' conftest.er1 >conftest.err
11192   rm -f conftest.er1
11193   cat conftest.err >&5
11194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195   (exit $ac_status); } &&
11196          { ac_try='test -z "$ac_c_werror_flag"
11197                          || test ! -s conftest.err'
11198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199   (eval $ac_try) 2>&5
11200   ac_status=$?
11201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202   (exit $ac_status); }; } &&
11203          { ac_try='test -s conftest.$ac_objext'
11204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205   (eval $ac_try) 2>&5
11206   ac_status=$?
11207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208   (exit $ac_status); }; }; then
11209   pgac_cv_c_signed=yes
11210 else
11211   echo "$as_me: failed program was:" >&5
11212 sed 's/^/| /' conftest.$ac_ext >&5
11213
11214 pgac_cv_c_signed=no
11215 fi
11216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11217 fi
11218 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
11219 echo "${ECHO_T}$pgac_cv_c_signed" >&6
11220 if test x"$pgac_cv_c_signed" = xno ; then
11221
11222 cat >>confdefs.h <<\_ACEOF
11223 #define signed
11224 _ACEOF
11225
11226 fi
11227 echo "$as_me:$LINENO: checking for working volatile" >&5
11228 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
11229 if test "${ac_cv_c_volatile+set}" = set; then
11230   echo $ECHO_N "(cached) $ECHO_C" >&6
11231 else
11232   cat >conftest.$ac_ext <<_ACEOF
11233 /* confdefs.h.  */
11234 _ACEOF
11235 cat confdefs.h >>conftest.$ac_ext
11236 cat >>conftest.$ac_ext <<_ACEOF
11237 /* end confdefs.h.  */
11238
11239 int
11240 main ()
11241 {
11242
11243 volatile int x;
11244 int * volatile y;
11245   ;
11246   return 0;
11247 }
11248 _ACEOF
11249 rm -f conftest.$ac_objext
11250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11251   (eval $ac_compile) 2>conftest.er1
11252   ac_status=$?
11253   grep -v '^ *+' conftest.er1 >conftest.err
11254   rm -f conftest.er1
11255   cat conftest.err >&5
11256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257   (exit $ac_status); } &&
11258          { ac_try='test -z "$ac_c_werror_flag"
11259                          || test ! -s conftest.err'
11260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261   (eval $ac_try) 2>&5
11262   ac_status=$?
11263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); }; } &&
11265          { ac_try='test -s conftest.$ac_objext'
11266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267   (eval $ac_try) 2>&5
11268   ac_status=$?
11269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270   (exit $ac_status); }; }; then
11271   ac_cv_c_volatile=yes
11272 else
11273   echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11275
11276 ac_cv_c_volatile=no
11277 fi
11278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11279 fi
11280 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11281 echo "${ECHO_T}$ac_cv_c_volatile" >&6
11282 if test $ac_cv_c_volatile = no; then
11283
11284 cat >>confdefs.h <<\_ACEOF
11285 #define volatile
11286 _ACEOF
11287
11288 fi
11289
11290 echo "$as_me:$LINENO: checking for __func__" >&5
11291 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
11292 if test "${pgac_cv_funcname_func_support+set}" = set; then
11293   echo $ECHO_N "(cached) $ECHO_C" >&6
11294 else
11295   cat >conftest.$ac_ext <<_ACEOF
11296 /* confdefs.h.  */
11297 _ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h.  */
11301 #include <stdio.h>
11302 int
11303 main ()
11304 {
11305 printf("%s\n", __func__);
11306   ;
11307   return 0;
11308 }
11309 _ACEOF
11310 rm -f conftest.$ac_objext
11311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11312   (eval $ac_compile) 2>conftest.er1
11313   ac_status=$?
11314   grep -v '^ *+' conftest.er1 >conftest.err
11315   rm -f conftest.er1
11316   cat conftest.err >&5
11317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318   (exit $ac_status); } &&
11319          { ac_try='test -z "$ac_c_werror_flag"
11320                          || test ! -s conftest.err'
11321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322   (eval $ac_try) 2>&5
11323   ac_status=$?
11324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325   (exit $ac_status); }; } &&
11326          { ac_try='test -s conftest.$ac_objext'
11327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11328   (eval $ac_try) 2>&5
11329   ac_status=$?
11330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331   (exit $ac_status); }; }; then
11332   pgac_cv_funcname_func_support=yes
11333 else
11334   echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11336
11337 pgac_cv_funcname_func_support=no
11338 fi
11339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11340 fi
11341 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
11342 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
11343 if test x"$pgac_cv_funcname_func_support" = xyes ; then
11344
11345 cat >>confdefs.h <<\_ACEOF
11346 #define HAVE_FUNCNAME__FUNC 1
11347 _ACEOF
11348
11349 else
11350 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
11351 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
11352 if test "${pgac_cv_funcname_function_support+set}" = set; then
11353   echo $ECHO_N "(cached) $ECHO_C" >&6
11354 else
11355   cat >conftest.$ac_ext <<_ACEOF
11356 /* confdefs.h.  */
11357 _ACEOF
11358 cat confdefs.h >>conftest.$ac_ext
11359 cat >>conftest.$ac_ext <<_ACEOF
11360 /* end confdefs.h.  */
11361 #include <stdio.h>
11362 int
11363 main ()
11364 {
11365 printf("%s\n", __FUNCTION__);
11366   ;
11367   return 0;
11368 }
11369 _ACEOF
11370 rm -f conftest.$ac_objext
11371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11372   (eval $ac_compile) 2>conftest.er1
11373   ac_status=$?
11374   grep -v '^ *+' conftest.er1 >conftest.err
11375   rm -f conftest.er1
11376   cat conftest.err >&5
11377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378   (exit $ac_status); } &&
11379          { ac_try='test -z "$ac_c_werror_flag"
11380                          || test ! -s conftest.err'
11381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382   (eval $ac_try) 2>&5
11383   ac_status=$?
11384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385   (exit $ac_status); }; } &&
11386          { ac_try='test -s conftest.$ac_objext'
11387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11388   (eval $ac_try) 2>&5
11389   ac_status=$?
11390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391   (exit $ac_status); }; }; then
11392   pgac_cv_funcname_function_support=yes
11393 else
11394   echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.$ac_ext >&5
11396
11397 pgac_cv_funcname_function_support=no
11398 fi
11399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11400 fi
11401 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
11402 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
11403 if test x"$pgac_cv_funcname_function_support" = xyes ; then
11404
11405 cat >>confdefs.h <<\_ACEOF
11406 #define HAVE_FUNCNAME__FUNCTION 1
11407 _ACEOF
11408
11409 fi
11410 fi
11411 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11412 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11413 if test "${ac_cv_struct_tm+set}" = set; then
11414   echo $ECHO_N "(cached) $ECHO_C" >&6
11415 else
11416   cat >conftest.$ac_ext <<_ACEOF
11417 /* confdefs.h.  */
11418 _ACEOF
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h.  */
11422 #include <sys/types.h>
11423 #include <time.h>
11424
11425 int
11426 main ()
11427 {
11428 struct tm *tp; tp->tm_sec;
11429   ;
11430   return 0;
11431 }
11432 _ACEOF
11433 rm -f conftest.$ac_objext
11434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11435   (eval $ac_compile) 2>conftest.er1
11436   ac_status=$?
11437   grep -v '^ *+' conftest.er1 >conftest.err
11438   rm -f conftest.er1
11439   cat conftest.err >&5
11440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441   (exit $ac_status); } &&
11442          { ac_try='test -z "$ac_c_werror_flag"
11443                          || test ! -s conftest.err'
11444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11445   (eval $ac_try) 2>&5
11446   ac_status=$?
11447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448   (exit $ac_status); }; } &&
11449          { ac_try='test -s conftest.$ac_objext'
11450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11451   (eval $ac_try) 2>&5
11452   ac_status=$?
11453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454   (exit $ac_status); }; }; then
11455   ac_cv_struct_tm=time.h
11456 else
11457   echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11459
11460 ac_cv_struct_tm=sys/time.h
11461 fi
11462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11463 fi
11464 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11465 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11466 if test $ac_cv_struct_tm = sys/time.h; then
11467
11468 cat >>confdefs.h <<\_ACEOF
11469 #define TM_IN_SYS_TIME 1
11470 _ACEOF
11471
11472 fi
11473
11474 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11475 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11476 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11477   echo $ECHO_N "(cached) $ECHO_C" >&6
11478 else
11479   cat >conftest.$ac_ext <<_ACEOF
11480 /* confdefs.h.  */
11481 _ACEOF
11482 cat confdefs.h >>conftest.$ac_ext
11483 cat >>conftest.$ac_ext <<_ACEOF
11484 /* end confdefs.h.  */
11485 #include <sys/types.h>
11486 #include <$ac_cv_struct_tm>
11487
11488
11489 int
11490 main ()
11491 {
11492 static struct tm ac_aggr;
11493 if (ac_aggr.tm_zone)
11494 return 0;
11495   ;
11496   return 0;
11497 }
11498 _ACEOF
11499 rm -f conftest.$ac_objext
11500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11501   (eval $ac_compile) 2>conftest.er1
11502   ac_status=$?
11503   grep -v '^ *+' conftest.er1 >conftest.err
11504   rm -f conftest.er1
11505   cat conftest.err >&5
11506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507   (exit $ac_status); } &&
11508          { ac_try='test -z "$ac_c_werror_flag"
11509                          || test ! -s conftest.err'
11510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11511   (eval $ac_try) 2>&5
11512   ac_status=$?
11513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514   (exit $ac_status); }; } &&
11515          { ac_try='test -s conftest.$ac_objext'
11516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11517   (eval $ac_try) 2>&5
11518   ac_status=$?
11519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520   (exit $ac_status); }; }; then
11521   ac_cv_member_struct_tm_tm_zone=yes
11522 else
11523   echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.$ac_ext >&5
11525
11526 cat >conftest.$ac_ext <<_ACEOF
11527 /* confdefs.h.  */
11528 _ACEOF
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h.  */
11532 #include <sys/types.h>
11533 #include <$ac_cv_struct_tm>
11534
11535
11536 int
11537 main ()
11538 {
11539 static struct tm ac_aggr;
11540 if (sizeof ac_aggr.tm_zone)
11541 return 0;
11542   ;
11543   return 0;
11544 }
11545 _ACEOF
11546 rm -f conftest.$ac_objext
11547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11548   (eval $ac_compile) 2>conftest.er1
11549   ac_status=$?
11550   grep -v '^ *+' conftest.er1 >conftest.err
11551   rm -f conftest.er1
11552   cat conftest.err >&5
11553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554   (exit $ac_status); } &&
11555          { ac_try='test -z "$ac_c_werror_flag"
11556                          || test ! -s conftest.err'
11557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11558   (eval $ac_try) 2>&5
11559   ac_status=$?
11560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561   (exit $ac_status); }; } &&
11562          { ac_try='test -s conftest.$ac_objext'
11563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11564   (eval $ac_try) 2>&5
11565   ac_status=$?
11566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567   (exit $ac_status); }; }; then
11568   ac_cv_member_struct_tm_tm_zone=yes
11569 else
11570   echo "$as_me: failed program was:" >&5
11571 sed 's/^/| /' conftest.$ac_ext >&5
11572
11573 ac_cv_member_struct_tm_tm_zone=no
11574 fi
11575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11576 fi
11577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11578 fi
11579 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11580 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11581 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11582
11583 cat >>confdefs.h <<_ACEOF
11584 #define HAVE_STRUCT_TM_TM_ZONE 1
11585 _ACEOF
11586
11587
11588 fi
11589
11590 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11591
11592 cat >>confdefs.h <<\_ACEOF
11593 #define HAVE_TM_ZONE 1
11594 _ACEOF
11595
11596 fi
11597 echo "$as_me:$LINENO: checking for tzname" >&5
11598 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11599 if test "${ac_cv_var_tzname+set}" = set; then
11600   echo $ECHO_N "(cached) $ECHO_C" >&6
11601 else
11602   cat >conftest.$ac_ext <<_ACEOF
11603 /* confdefs.h.  */
11604 _ACEOF
11605 cat confdefs.h >>conftest.$ac_ext
11606 cat >>conftest.$ac_ext <<_ACEOF
11607 /* end confdefs.h.  */
11608 #include <time.h>
11609 #ifndef tzname /* For SGI.  */
11610 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
11611 #endif
11612
11613 int
11614 main ()
11615 {
11616 atoi(*tzname);
11617   ;
11618   return 0;
11619 }
11620 _ACEOF
11621 rm -f conftest.$ac_objext conftest$ac_exeext
11622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11623   (eval $ac_link) 2>conftest.er1
11624   ac_status=$?
11625   grep -v '^ *+' conftest.er1 >conftest.err
11626   rm -f conftest.er1
11627   cat conftest.err >&5
11628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629   (exit $ac_status); } &&
11630          { ac_try='test -z "$ac_c_werror_flag"
11631                          || test ! -s conftest.err'
11632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633   (eval $ac_try) 2>&5
11634   ac_status=$?
11635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636   (exit $ac_status); }; } &&
11637          { ac_try='test -s conftest$ac_exeext'
11638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639   (eval $ac_try) 2>&5
11640   ac_status=$?
11641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642   (exit $ac_status); }; }; then
11643   ac_cv_var_tzname=yes
11644 else
11645   echo "$as_me: failed program was:" >&5
11646 sed 's/^/| /' conftest.$ac_ext >&5
11647
11648 ac_cv_var_tzname=no
11649 fi
11650 rm -f conftest.err conftest.$ac_objext \
11651       conftest$ac_exeext conftest.$ac_ext
11652 fi
11653 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11654 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11655 if test $ac_cv_var_tzname = yes; then
11656
11657 cat >>confdefs.h <<\_ACEOF
11658 #define HAVE_TZNAME 1
11659 _ACEOF
11660
11661 fi
11662
11663 echo "$as_me:$LINENO: checking for union semun" >&5
11664 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
11665 if test "${ac_cv_type_union_semun+set}" = set; then
11666   echo $ECHO_N "(cached) $ECHO_C" >&6
11667 else
11668   cat >conftest.$ac_ext <<_ACEOF
11669 /* confdefs.h.  */
11670 _ACEOF
11671 cat confdefs.h >>conftest.$ac_ext
11672 cat >>conftest.$ac_ext <<_ACEOF
11673 /* end confdefs.h.  */
11674 #include <sys/types.h>
11675 #include <sys/ipc.h>
11676 #include <sys/sem.h>
11677
11678 int
11679 main ()
11680 {
11681 if ((union semun *) 0)
11682   return 0;
11683 if (sizeof (union semun))
11684   return 0;
11685   ;
11686   return 0;
11687 }
11688 _ACEOF
11689 rm -f conftest.$ac_objext
11690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11691   (eval $ac_compile) 2>conftest.er1
11692   ac_status=$?
11693   grep -v '^ *+' conftest.er1 >conftest.err
11694   rm -f conftest.er1
11695   cat conftest.err >&5
11696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697   (exit $ac_status); } &&
11698          { ac_try='test -z "$ac_c_werror_flag"
11699                          || test ! -s conftest.err'
11700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11701   (eval $ac_try) 2>&5
11702   ac_status=$?
11703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704   (exit $ac_status); }; } &&
11705          { ac_try='test -s conftest.$ac_objext'
11706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707   (eval $ac_try) 2>&5
11708   ac_status=$?
11709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710   (exit $ac_status); }; }; then
11711   ac_cv_type_union_semun=yes
11712 else
11713   echo "$as_me: failed program was:" >&5
11714 sed 's/^/| /' conftest.$ac_ext >&5
11715
11716 ac_cv_type_union_semun=no
11717 fi
11718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11719 fi
11720 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
11721 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
11722 if test $ac_cv_type_union_semun = yes; then
11723
11724 cat >>confdefs.h <<_ACEOF
11725 #define HAVE_UNION_SEMUN 1
11726 _ACEOF
11727
11728
11729 fi
11730
11731 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
11732 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
11733 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
11734   echo $ECHO_N "(cached) $ECHO_C" >&6
11735 else
11736   cat >conftest.$ac_ext <<_ACEOF
11737 /* confdefs.h.  */
11738 _ACEOF
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h.  */
11742 #include <sys/types.h>
11743 #ifdef HAVE_SYS_UN_H
11744 #include <sys/un.h>
11745 #endif
11746
11747
11748 int
11749 main ()
11750 {
11751 if ((struct sockaddr_un *) 0)
11752   return 0;
11753 if (sizeof (struct sockaddr_un))
11754   return 0;
11755   ;
11756   return 0;
11757 }
11758 _ACEOF
11759 rm -f conftest.$ac_objext
11760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11761   (eval $ac_compile) 2>conftest.er1
11762   ac_status=$?
11763   grep -v '^ *+' conftest.er1 >conftest.err
11764   rm -f conftest.er1
11765   cat conftest.err >&5
11766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); } &&
11768          { ac_try='test -z "$ac_c_werror_flag"
11769                          || test ! -s conftest.err'
11770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771   (eval $ac_try) 2>&5
11772   ac_status=$?
11773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774   (exit $ac_status); }; } &&
11775          { ac_try='test -s conftest.$ac_objext'
11776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777   (eval $ac_try) 2>&5
11778   ac_status=$?
11779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780   (exit $ac_status); }; }; then
11781   ac_cv_type_struct_sockaddr_un=yes
11782 else
11783   echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.$ac_ext >&5
11785
11786 ac_cv_type_struct_sockaddr_un=no
11787 fi
11788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11789 fi
11790 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
11791 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
11792 if test $ac_cv_type_struct_sockaddr_un = yes; then
11793
11794 cat >>confdefs.h <<_ACEOF
11795 #define HAVE_STRUCT_SOCKADDR_UN 1
11796 _ACEOF
11797
11798
11799 cat >>confdefs.h <<\_ACEOF
11800 #define HAVE_UNIX_SOCKETS 1
11801 _ACEOF
11802
11803 fi
11804
11805 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
11806 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
11807 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
11808   echo $ECHO_N "(cached) $ECHO_C" >&6
11809 else
11810   cat >conftest.$ac_ext <<_ACEOF
11811 /* confdefs.h.  */
11812 _ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h.  */
11816 #include <sys/types.h>
11817 #ifdef HAVE_SYS_SOCKET_H
11818 #include <sys/socket.h>
11819 #endif
11820
11821
11822 int
11823 main ()
11824 {
11825 if ((struct sockaddr_storage *) 0)
11826   return 0;
11827 if (sizeof (struct sockaddr_storage))
11828   return 0;
11829   ;
11830   return 0;
11831 }
11832 _ACEOF
11833 rm -f conftest.$ac_objext
11834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11835   (eval $ac_compile) 2>conftest.er1
11836   ac_status=$?
11837   grep -v '^ *+' conftest.er1 >conftest.err
11838   rm -f conftest.er1
11839   cat conftest.err >&5
11840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841   (exit $ac_status); } &&
11842          { ac_try='test -z "$ac_c_werror_flag"
11843                          || test ! -s conftest.err'
11844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845   (eval $ac_try) 2>&5
11846   ac_status=$?
11847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848   (exit $ac_status); }; } &&
11849          { ac_try='test -s conftest.$ac_objext'
11850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851   (eval $ac_try) 2>&5
11852   ac_status=$?
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); }; }; then
11855   ac_cv_type_struct_sockaddr_storage=yes
11856 else
11857   echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11859
11860 ac_cv_type_struct_sockaddr_storage=no
11861 fi
11862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11863 fi
11864 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
11865 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
11866 if test $ac_cv_type_struct_sockaddr_storage = yes; then
11867
11868 cat >>confdefs.h <<_ACEOF
11869 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11870 _ACEOF
11871
11872
11873 fi
11874
11875 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
11876 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
11877 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
11878   echo $ECHO_N "(cached) $ECHO_C" >&6
11879 else
11880   cat >conftest.$ac_ext <<_ACEOF
11881 /* confdefs.h.  */
11882 _ACEOF
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h.  */
11886 #include <sys/types.h>
11887 #ifdef HAVE_SYS_SOCKET_H
11888 #include <sys/socket.h>
11889 #endif
11890
11891
11892 int
11893 main ()
11894 {
11895 static struct sockaddr_storage ac_aggr;
11896 if (ac_aggr.ss_family)
11897 return 0;
11898   ;
11899   return 0;
11900 }
11901 _ACEOF
11902 rm -f conftest.$ac_objext
11903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11904   (eval $ac_compile) 2>conftest.er1
11905   ac_status=$?
11906   grep -v '^ *+' conftest.er1 >conftest.err
11907   rm -f conftest.er1
11908   cat conftest.err >&5
11909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910   (exit $ac_status); } &&
11911          { ac_try='test -z "$ac_c_werror_flag"
11912                          || test ! -s conftest.err'
11913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914   (eval $ac_try) 2>&5
11915   ac_status=$?
11916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917   (exit $ac_status); }; } &&
11918          { ac_try='test -s conftest.$ac_objext'
11919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920   (eval $ac_try) 2>&5
11921   ac_status=$?
11922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); }; }; then
11924   ac_cv_member_struct_sockaddr_storage_ss_family=yes
11925 else
11926   echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.$ac_ext >&5
11928
11929 cat >conftest.$ac_ext <<_ACEOF
11930 /* confdefs.h.  */
11931 _ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h.  */
11935 #include <sys/types.h>
11936 #ifdef HAVE_SYS_SOCKET_H
11937 #include <sys/socket.h>
11938 #endif
11939
11940
11941 int
11942 main ()
11943 {
11944 static struct sockaddr_storage ac_aggr;
11945 if (sizeof ac_aggr.ss_family)
11946 return 0;
11947   ;
11948   return 0;
11949 }
11950 _ACEOF
11951 rm -f conftest.$ac_objext
11952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11953   (eval $ac_compile) 2>conftest.er1
11954   ac_status=$?
11955   grep -v '^ *+' conftest.er1 >conftest.err
11956   rm -f conftest.er1
11957   cat conftest.err >&5
11958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959   (exit $ac_status); } &&
11960          { ac_try='test -z "$ac_c_werror_flag"
11961                          || test ! -s conftest.err'
11962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11963   (eval $ac_try) 2>&5
11964   ac_status=$?
11965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966   (exit $ac_status); }; } &&
11967          { ac_try='test -s conftest.$ac_objext'
11968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969   (eval $ac_try) 2>&5
11970   ac_status=$?
11971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972   (exit $ac_status); }; }; then
11973   ac_cv_member_struct_sockaddr_storage_ss_family=yes
11974 else
11975   echo "$as_me: failed program was:" >&5
11976 sed 's/^/| /' conftest.$ac_ext >&5
11977
11978 ac_cv_member_struct_sockaddr_storage_ss_family=no
11979 fi
11980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11981 fi
11982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11983 fi
11984 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
11985 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
11986 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
11987
11988 cat >>confdefs.h <<_ACEOF
11989 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
11990 _ACEOF
11991
11992
11993 fi
11994 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
11995 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
11996 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
11997   echo $ECHO_N "(cached) $ECHO_C" >&6
11998 else
11999   cat >conftest.$ac_ext <<_ACEOF
12000 /* confdefs.h.  */
12001 _ACEOF
12002 cat confdefs.h >>conftest.$ac_ext
12003 cat >>conftest.$ac_ext <<_ACEOF
12004 /* end confdefs.h.  */
12005 #include <sys/types.h>
12006 #ifdef HAVE_SYS_SOCKET_H
12007 #include <sys/socket.h>
12008 #endif
12009
12010
12011 int
12012 main ()
12013 {
12014 static struct sockaddr_storage ac_aggr;
12015 if (ac_aggr.__ss_family)
12016 return 0;
12017   ;
12018   return 0;
12019 }
12020 _ACEOF
12021 rm -f conftest.$ac_objext
12022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12023   (eval $ac_compile) 2>conftest.er1
12024   ac_status=$?
12025   grep -v '^ *+' conftest.er1 >conftest.err
12026   rm -f conftest.er1
12027   cat conftest.err >&5
12028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029   (exit $ac_status); } &&
12030          { ac_try='test -z "$ac_c_werror_flag"
12031                          || test ! -s conftest.err'
12032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12033   (eval $ac_try) 2>&5
12034   ac_status=$?
12035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036   (exit $ac_status); }; } &&
12037          { ac_try='test -s conftest.$ac_objext'
12038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039   (eval $ac_try) 2>&5
12040   ac_status=$?
12041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042   (exit $ac_status); }; }; then
12043   ac_cv_member_struct_sockaddr_storage___ss_family=yes
12044 else
12045   echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12047
12048 cat >conftest.$ac_ext <<_ACEOF
12049 /* confdefs.h.  */
12050 _ACEOF
12051 cat confdefs.h >>conftest.$ac_ext
12052 cat >>conftest.$ac_ext <<_ACEOF
12053 /* end confdefs.h.  */
12054 #include <sys/types.h>
12055 #ifdef HAVE_SYS_SOCKET_H
12056 #include <sys/socket.h>
12057 #endif
12058
12059
12060 int
12061 main ()
12062 {
12063 static struct sockaddr_storage ac_aggr;
12064 if (sizeof ac_aggr.__ss_family)
12065 return 0;
12066   ;
12067   return 0;
12068 }
12069 _ACEOF
12070 rm -f conftest.$ac_objext
12071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12072   (eval $ac_compile) 2>conftest.er1
12073   ac_status=$?
12074   grep -v '^ *+' conftest.er1 >conftest.err
12075   rm -f conftest.er1
12076   cat conftest.err >&5
12077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078   (exit $ac_status); } &&
12079          { ac_try='test -z "$ac_c_werror_flag"
12080                          || test ! -s conftest.err'
12081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082   (eval $ac_try) 2>&5
12083   ac_status=$?
12084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085   (exit $ac_status); }; } &&
12086          { ac_try='test -s conftest.$ac_objext'
12087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088   (eval $ac_try) 2>&5
12089   ac_status=$?
12090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091   (exit $ac_status); }; }; then
12092   ac_cv_member_struct_sockaddr_storage___ss_family=yes
12093 else
12094   echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12096
12097 ac_cv_member_struct_sockaddr_storage___ss_family=no
12098 fi
12099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12100 fi
12101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12102 fi
12103 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
12104 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
12105 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
12106
12107 cat >>confdefs.h <<_ACEOF
12108 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
12109 _ACEOF
12110
12111
12112 fi
12113 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
12114 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
12115 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
12116   echo $ECHO_N "(cached) $ECHO_C" >&6
12117 else
12118   cat >conftest.$ac_ext <<_ACEOF
12119 /* confdefs.h.  */
12120 _ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h.  */
12124 #include <sys/types.h>
12125 #ifdef HAVE_SYS_SOCKET_H
12126 #include <sys/socket.h>
12127 #endif
12128
12129
12130 int
12131 main ()
12132 {
12133 static struct sockaddr_storage ac_aggr;
12134 if (ac_aggr.ss_len)
12135 return 0;
12136   ;
12137   return 0;
12138 }
12139 _ACEOF
12140 rm -f conftest.$ac_objext
12141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12142   (eval $ac_compile) 2>conftest.er1
12143   ac_status=$?
12144   grep -v '^ *+' conftest.er1 >conftest.err
12145   rm -f conftest.er1
12146   cat conftest.err >&5
12147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148   (exit $ac_status); } &&
12149          { ac_try='test -z "$ac_c_werror_flag"
12150                          || test ! -s conftest.err'
12151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152   (eval $ac_try) 2>&5
12153   ac_status=$?
12154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155   (exit $ac_status); }; } &&
12156          { ac_try='test -s conftest.$ac_objext'
12157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158   (eval $ac_try) 2>&5
12159   ac_status=$?
12160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161   (exit $ac_status); }; }; then
12162   ac_cv_member_struct_sockaddr_storage_ss_len=yes
12163 else
12164   echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.$ac_ext >&5
12166
12167 cat >conftest.$ac_ext <<_ACEOF
12168 /* confdefs.h.  */
12169 _ACEOF
12170 cat confdefs.h >>conftest.$ac_ext
12171 cat >>conftest.$ac_ext <<_ACEOF
12172 /* end confdefs.h.  */
12173 #include <sys/types.h>
12174 #ifdef HAVE_SYS_SOCKET_H
12175 #include <sys/socket.h>
12176 #endif
12177
12178
12179 int
12180 main ()
12181 {
12182 static struct sockaddr_storage ac_aggr;
12183 if (sizeof ac_aggr.ss_len)
12184 return 0;
12185   ;
12186   return 0;
12187 }
12188 _ACEOF
12189 rm -f conftest.$ac_objext
12190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12191   (eval $ac_compile) 2>conftest.er1
12192   ac_status=$?
12193   grep -v '^ *+' conftest.er1 >conftest.err
12194   rm -f conftest.er1
12195   cat conftest.err >&5
12196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197   (exit $ac_status); } &&
12198          { ac_try='test -z "$ac_c_werror_flag"
12199                          || test ! -s conftest.err'
12200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201   (eval $ac_try) 2>&5
12202   ac_status=$?
12203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204   (exit $ac_status); }; } &&
12205          { ac_try='test -s conftest.$ac_objext'
12206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207   (eval $ac_try) 2>&5
12208   ac_status=$?
12209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210   (exit $ac_status); }; }; then
12211   ac_cv_member_struct_sockaddr_storage_ss_len=yes
12212 else
12213   echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12215
12216 ac_cv_member_struct_sockaddr_storage_ss_len=no
12217 fi
12218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12219 fi
12220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12221 fi
12222 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
12223 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
12224 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
12225
12226 cat >>confdefs.h <<_ACEOF
12227 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
12228 _ACEOF
12229
12230
12231 fi
12232 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
12233 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
12234 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
12235   echo $ECHO_N "(cached) $ECHO_C" >&6
12236 else
12237   cat >conftest.$ac_ext <<_ACEOF
12238 /* confdefs.h.  */
12239 _ACEOF
12240 cat confdefs.h >>conftest.$ac_ext
12241 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h.  */
12243 #include <sys/types.h>
12244 #ifdef HAVE_SYS_SOCKET_H
12245 #include <sys/socket.h>
12246 #endif
12247
12248
12249 int
12250 main ()
12251 {
12252 static struct sockaddr_storage ac_aggr;
12253 if (ac_aggr.__ss_len)
12254 return 0;
12255   ;
12256   return 0;
12257 }
12258 _ACEOF
12259 rm -f conftest.$ac_objext
12260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12261   (eval $ac_compile) 2>conftest.er1
12262   ac_status=$?
12263   grep -v '^ *+' conftest.er1 >conftest.err
12264   rm -f conftest.er1
12265   cat conftest.err >&5
12266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267   (exit $ac_status); } &&
12268          { ac_try='test -z "$ac_c_werror_flag"
12269                          || test ! -s conftest.err'
12270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271   (eval $ac_try) 2>&5
12272   ac_status=$?
12273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274   (exit $ac_status); }; } &&
12275          { ac_try='test -s conftest.$ac_objext'
12276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277   (eval $ac_try) 2>&5
12278   ac_status=$?
12279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280   (exit $ac_status); }; }; then
12281   ac_cv_member_struct_sockaddr_storage___ss_len=yes
12282 else
12283   echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.$ac_ext >&5
12285
12286 cat >conftest.$ac_ext <<_ACEOF
12287 /* confdefs.h.  */
12288 _ACEOF
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h.  */
12292 #include <sys/types.h>
12293 #ifdef HAVE_SYS_SOCKET_H
12294 #include <sys/socket.h>
12295 #endif
12296
12297
12298 int
12299 main ()
12300 {
12301 static struct sockaddr_storage ac_aggr;
12302 if (sizeof ac_aggr.__ss_len)
12303 return 0;
12304   ;
12305   return 0;
12306 }
12307 _ACEOF
12308 rm -f conftest.$ac_objext
12309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12310   (eval $ac_compile) 2>conftest.er1
12311   ac_status=$?
12312   grep -v '^ *+' conftest.er1 >conftest.err
12313   rm -f conftest.er1
12314   cat conftest.err >&5
12315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316   (exit $ac_status); } &&
12317          { ac_try='test -z "$ac_c_werror_flag"
12318                          || test ! -s conftest.err'
12319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320   (eval $ac_try) 2>&5
12321   ac_status=$?
12322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323   (exit $ac_status); }; } &&
12324          { ac_try='test -s conftest.$ac_objext'
12325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326   (eval $ac_try) 2>&5
12327   ac_status=$?
12328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329   (exit $ac_status); }; }; then
12330   ac_cv_member_struct_sockaddr_storage___ss_len=yes
12331 else
12332   echo "$as_me: failed program was:" >&5
12333 sed 's/^/| /' conftest.$ac_ext >&5
12334
12335 ac_cv_member_struct_sockaddr_storage___ss_len=no
12336 fi
12337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12338 fi
12339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12340 fi
12341 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
12342 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
12343 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
12344
12345 cat >>confdefs.h <<_ACEOF
12346 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
12347 _ACEOF
12348
12349
12350 fi
12351 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
12352 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
12353 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
12354   echo $ECHO_N "(cached) $ECHO_C" >&6
12355 else
12356   cat >conftest.$ac_ext <<_ACEOF
12357 /* confdefs.h.  */
12358 _ACEOF
12359 cat confdefs.h >>conftest.$ac_ext
12360 cat >>conftest.$ac_ext <<_ACEOF
12361 /* end confdefs.h.  */
12362 #include <sys/types.h>
12363 #ifdef HAVE_SYS_SOCKET_H
12364 #include <sys/socket.h>
12365 #endif
12366
12367
12368 int
12369 main ()
12370 {
12371 static struct sockaddr ac_aggr;
12372 if (ac_aggr.sa_len)
12373 return 0;
12374   ;
12375   return 0;
12376 }
12377 _ACEOF
12378 rm -f conftest.$ac_objext
12379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12380   (eval $ac_compile) 2>conftest.er1
12381   ac_status=$?
12382   grep -v '^ *+' conftest.er1 >conftest.err
12383   rm -f conftest.er1
12384   cat conftest.err >&5
12385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386   (exit $ac_status); } &&
12387          { ac_try='test -z "$ac_c_werror_flag"
12388                          || test ! -s conftest.err'
12389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390   (eval $ac_try) 2>&5
12391   ac_status=$?
12392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393   (exit $ac_status); }; } &&
12394          { ac_try='test -s conftest.$ac_objext'
12395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396   (eval $ac_try) 2>&5
12397   ac_status=$?
12398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399   (exit $ac_status); }; }; then
12400   ac_cv_member_struct_sockaddr_sa_len=yes
12401 else
12402   echo "$as_me: failed program was:" >&5
12403 sed 's/^/| /' conftest.$ac_ext >&5
12404
12405 cat >conftest.$ac_ext <<_ACEOF
12406 /* confdefs.h.  */
12407 _ACEOF
12408 cat confdefs.h >>conftest.$ac_ext
12409 cat >>conftest.$ac_ext <<_ACEOF
12410 /* end confdefs.h.  */
12411 #include <sys/types.h>
12412 #ifdef HAVE_SYS_SOCKET_H
12413 #include <sys/socket.h>
12414 #endif
12415
12416
12417 int
12418 main ()
12419 {
12420 static struct sockaddr ac_aggr;
12421 if (sizeof ac_aggr.sa_len)
12422 return 0;
12423   ;
12424   return 0;
12425 }
12426 _ACEOF
12427 rm -f conftest.$ac_objext
12428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12429   (eval $ac_compile) 2>conftest.er1
12430   ac_status=$?
12431   grep -v '^ *+' conftest.er1 >conftest.err
12432   rm -f conftest.er1
12433   cat conftest.err >&5
12434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435   (exit $ac_status); } &&
12436          { ac_try='test -z "$ac_c_werror_flag"
12437                          || test ! -s conftest.err'
12438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439   (eval $ac_try) 2>&5
12440   ac_status=$?
12441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442   (exit $ac_status); }; } &&
12443          { ac_try='test -s conftest.$ac_objext'
12444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445   (eval $ac_try) 2>&5
12446   ac_status=$?
12447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448   (exit $ac_status); }; }; then
12449   ac_cv_member_struct_sockaddr_sa_len=yes
12450 else
12451   echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12453
12454 ac_cv_member_struct_sockaddr_sa_len=no
12455 fi
12456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12457 fi
12458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12459 fi
12460 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
12461 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
12462 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
12463
12464 cat >>confdefs.h <<_ACEOF
12465 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
12466 _ACEOF
12467
12468
12469 fi
12470
12471 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
12472 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
12473 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
12474   echo $ECHO_N "(cached) $ECHO_C" >&6
12475 else
12476   cat >conftest.$ac_ext <<_ACEOF
12477 /* confdefs.h.  */
12478 _ACEOF
12479 cat confdefs.h >>conftest.$ac_ext
12480 cat >>conftest.$ac_ext <<_ACEOF
12481 /* end confdefs.h.  */
12482 #include <sys/types.h>
12483 #include <sys/socket.h>
12484 #include <netdb.h>
12485
12486
12487 int
12488 main ()
12489 {
12490 if ((struct addrinfo *) 0)
12491   return 0;
12492 if (sizeof (struct addrinfo))
12493   return 0;
12494   ;
12495   return 0;
12496 }
12497 _ACEOF
12498 rm -f conftest.$ac_objext
12499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12500   (eval $ac_compile) 2>conftest.er1
12501   ac_status=$?
12502   grep -v '^ *+' conftest.er1 >conftest.err
12503   rm -f conftest.er1
12504   cat conftest.err >&5
12505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506   (exit $ac_status); } &&
12507          { ac_try='test -z "$ac_c_werror_flag"
12508                          || test ! -s conftest.err'
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); }; } &&
12514          { ac_try='test -s conftest.$ac_objext'
12515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516   (eval $ac_try) 2>&5
12517   ac_status=$?
12518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519   (exit $ac_status); }; }; then
12520   ac_cv_type_struct_addrinfo=yes
12521 else
12522   echo "$as_me: failed program was:" >&5
12523 sed 's/^/| /' conftest.$ac_ext >&5
12524
12525 ac_cv_type_struct_addrinfo=no
12526 fi
12527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12528 fi
12529 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
12530 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
12531 if test $ac_cv_type_struct_addrinfo = yes; then
12532
12533 cat >>confdefs.h <<_ACEOF
12534 #define HAVE_STRUCT_ADDRINFO 1
12535 _ACEOF
12536
12537
12538 fi
12539
12540
12541 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
12542 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
12543 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
12544   echo $ECHO_N "(cached) $ECHO_C" >&6
12545 else
12546   cat >conftest.$ac_ext <<_ACEOF
12547 /* confdefs.h.  */
12548 _ACEOF
12549 cat confdefs.h >>conftest.$ac_ext
12550 cat >>conftest.$ac_ext <<_ACEOF
12551 /* end confdefs.h.  */
12552 #include <sys/param.h>
12553 #include <sys/types.h>
12554 #include <sys/socket.h>
12555 #include <sys/ucred.h>
12556
12557 int
12558 main ()
12559 {
12560 if ((struct cmsgcred *) 0)
12561   return 0;
12562 if (sizeof (struct cmsgcred))
12563   return 0;
12564   ;
12565   return 0;
12566 }
12567 _ACEOF
12568 rm -f conftest.$ac_objext
12569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12570   (eval $ac_compile) 2>conftest.er1
12571   ac_status=$?
12572   grep -v '^ *+' conftest.er1 >conftest.err
12573   rm -f conftest.er1
12574   cat conftest.err >&5
12575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576   (exit $ac_status); } &&
12577          { ac_try='test -z "$ac_c_werror_flag"
12578                          || test ! -s conftest.err'
12579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580   (eval $ac_try) 2>&5
12581   ac_status=$?
12582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583   (exit $ac_status); }; } &&
12584          { ac_try='test -s conftest.$ac_objext'
12585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586   (eval $ac_try) 2>&5
12587   ac_status=$?
12588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589   (exit $ac_status); }; }; then
12590   ac_cv_type_struct_cmsgcred=yes
12591 else
12592   echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12594
12595 ac_cv_type_struct_cmsgcred=no
12596 fi
12597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12598 fi
12599 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
12600 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
12601 if test $ac_cv_type_struct_cmsgcred = yes; then
12602
12603 cat >>confdefs.h <<_ACEOF
12604 #define HAVE_STRUCT_CMSGCRED 1
12605 _ACEOF
12606
12607
12608 fi
12609 echo "$as_me:$LINENO: checking for struct fcred" >&5
12610 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
12611 if test "${ac_cv_type_struct_fcred+set}" = set; then
12612   echo $ECHO_N "(cached) $ECHO_C" >&6
12613 else
12614   cat >conftest.$ac_ext <<_ACEOF
12615 /* confdefs.h.  */
12616 _ACEOF
12617 cat confdefs.h >>conftest.$ac_ext
12618 cat >>conftest.$ac_ext <<_ACEOF
12619 /* end confdefs.h.  */
12620 #include <sys/param.h>
12621 #include <sys/types.h>
12622 #include <sys/socket.h>
12623 #include <sys/ucred.h>
12624
12625 int
12626 main ()
12627 {
12628 if ((struct fcred *) 0)
12629   return 0;
12630 if (sizeof (struct fcred))
12631   return 0;
12632   ;
12633   return 0;
12634 }
12635 _ACEOF
12636 rm -f conftest.$ac_objext
12637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12638   (eval $ac_compile) 2>conftest.er1
12639   ac_status=$?
12640   grep -v '^ *+' conftest.er1 >conftest.err
12641   rm -f conftest.er1
12642   cat conftest.err >&5
12643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644   (exit $ac_status); } &&
12645          { ac_try='test -z "$ac_c_werror_flag"
12646                          || test ! -s conftest.err'
12647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648   (eval $ac_try) 2>&5
12649   ac_status=$?
12650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651   (exit $ac_status); }; } &&
12652          { ac_try='test -s conftest.$ac_objext'
12653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654   (eval $ac_try) 2>&5
12655   ac_status=$?
12656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657   (exit $ac_status); }; }; then
12658   ac_cv_type_struct_fcred=yes
12659 else
12660   echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12662
12663 ac_cv_type_struct_fcred=no
12664 fi
12665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12666 fi
12667 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
12668 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
12669 if test $ac_cv_type_struct_fcred = yes; then
12670
12671 cat >>confdefs.h <<_ACEOF
12672 #define HAVE_STRUCT_FCRED 1
12673 _ACEOF
12674
12675
12676 fi
12677 echo "$as_me:$LINENO: checking for struct sockcred" >&5
12678 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
12679 if test "${ac_cv_type_struct_sockcred+set}" = set; then
12680   echo $ECHO_N "(cached) $ECHO_C" >&6
12681 else
12682   cat >conftest.$ac_ext <<_ACEOF
12683 /* confdefs.h.  */
12684 _ACEOF
12685 cat confdefs.h >>conftest.$ac_ext
12686 cat >>conftest.$ac_ext <<_ACEOF
12687 /* end confdefs.h.  */
12688 #include <sys/param.h>
12689 #include <sys/types.h>
12690 #include <sys/socket.h>
12691 #include <sys/ucred.h>
12692
12693 int
12694 main ()
12695 {
12696 if ((struct sockcred *) 0)
12697   return 0;
12698 if (sizeof (struct sockcred))
12699   return 0;
12700   ;
12701   return 0;
12702 }
12703 _ACEOF
12704 rm -f conftest.$ac_objext
12705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12706   (eval $ac_compile) 2>conftest.er1
12707   ac_status=$?
12708   grep -v '^ *+' conftest.er1 >conftest.err
12709   rm -f conftest.er1
12710   cat conftest.err >&5
12711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712   (exit $ac_status); } &&
12713          { ac_try='test -z "$ac_c_werror_flag"
12714                          || test ! -s conftest.err'
12715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12716   (eval $ac_try) 2>&5
12717   ac_status=$?
12718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719   (exit $ac_status); }; } &&
12720          { ac_try='test -s conftest.$ac_objext'
12721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722   (eval $ac_try) 2>&5
12723   ac_status=$?
12724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725   (exit $ac_status); }; }; then
12726   ac_cv_type_struct_sockcred=yes
12727 else
12728   echo "$as_me: failed program was:" >&5
12729 sed 's/^/| /' conftest.$ac_ext >&5
12730
12731 ac_cv_type_struct_sockcred=no
12732 fi
12733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12734 fi
12735 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
12736 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
12737 if test $ac_cv_type_struct_sockcred = yes; then
12738
12739 cat >>confdefs.h <<_ACEOF
12740 #define HAVE_STRUCT_SOCKCRED 1
12741 _ACEOF
12742
12743
12744 fi
12745
12746
12747 echo "$as_me:$LINENO: checking for struct option" >&5
12748 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
12749 if test "${ac_cv_type_struct_option+set}" = set; then
12750   echo $ECHO_N "(cached) $ECHO_C" >&6
12751 else
12752   cat >conftest.$ac_ext <<_ACEOF
12753 /* confdefs.h.  */
12754 _ACEOF
12755 cat confdefs.h >>conftest.$ac_ext
12756 cat >>conftest.$ac_ext <<_ACEOF
12757 /* end confdefs.h.  */
12758 #ifdef HAVE_GETOPT_H
12759 #include <getopt.h>
12760 #endif
12761
12762 int
12763 main ()
12764 {
12765 if ((struct option *) 0)
12766   return 0;
12767 if (sizeof (struct option))
12768   return 0;
12769   ;
12770   return 0;
12771 }
12772 _ACEOF
12773 rm -f conftest.$ac_objext
12774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12775   (eval $ac_compile) 2>conftest.er1
12776   ac_status=$?
12777   grep -v '^ *+' conftest.er1 >conftest.err
12778   rm -f conftest.er1
12779   cat conftest.err >&5
12780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781   (exit $ac_status); } &&
12782          { ac_try='test -z "$ac_c_werror_flag"
12783                          || test ! -s conftest.err'
12784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12785   (eval $ac_try) 2>&5
12786   ac_status=$?
12787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788   (exit $ac_status); }; } &&
12789          { ac_try='test -s conftest.$ac_objext'
12790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12791   (eval $ac_try) 2>&5
12792   ac_status=$?
12793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794   (exit $ac_status); }; }; then
12795   ac_cv_type_struct_option=yes
12796 else
12797   echo "$as_me: failed program was:" >&5
12798 sed 's/^/| /' conftest.$ac_ext >&5
12799
12800 ac_cv_type_struct_option=no
12801 fi
12802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12803 fi
12804 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
12805 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
12806 if test $ac_cv_type_struct_option = yes; then
12807
12808 cat >>confdefs.h <<_ACEOF
12809 #define HAVE_STRUCT_OPTION 1
12810 _ACEOF
12811
12812
12813 fi
12814
12815
12816 if test "$with_zlib" = yes; then
12817   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
12818   # did not).  While we could work around the lack of z_streamp, it
12819   # seems unwise to encourage people to use such old zlib versions...
12820   echo "$as_me:$LINENO: checking for z_streamp" >&5
12821 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
12822 if test "${ac_cv_type_z_streamp+set}" = set; then
12823   echo $ECHO_N "(cached) $ECHO_C" >&6
12824 else
12825   cat >conftest.$ac_ext <<_ACEOF
12826 /* confdefs.h.  */
12827 _ACEOF
12828 cat confdefs.h >>conftest.$ac_ext
12829 cat >>conftest.$ac_ext <<_ACEOF
12830 /* end confdefs.h.  */
12831 #include <zlib.h>
12832
12833 int
12834 main ()
12835 {
12836 if ((z_streamp *) 0)
12837   return 0;
12838 if (sizeof (z_streamp))
12839   return 0;
12840   ;
12841   return 0;
12842 }
12843 _ACEOF
12844 rm -f conftest.$ac_objext
12845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12846   (eval $ac_compile) 2>conftest.er1
12847   ac_status=$?
12848   grep -v '^ *+' conftest.er1 >conftest.err
12849   rm -f conftest.er1
12850   cat conftest.err >&5
12851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852   (exit $ac_status); } &&
12853          { ac_try='test -z "$ac_c_werror_flag"
12854                          || test ! -s conftest.err'
12855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856   (eval $ac_try) 2>&5
12857   ac_status=$?
12858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859   (exit $ac_status); }; } &&
12860          { ac_try='test -s conftest.$ac_objext'
12861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862   (eval $ac_try) 2>&5
12863   ac_status=$?
12864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865   (exit $ac_status); }; }; then
12866   ac_cv_type_z_streamp=yes
12867 else
12868   echo "$as_me: failed program was:" >&5
12869 sed 's/^/| /' conftest.$ac_ext >&5
12870
12871 ac_cv_type_z_streamp=no
12872 fi
12873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12874 fi
12875 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
12876 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
12877 if test $ac_cv_type_z_streamp = yes; then
12878   :
12879 else
12880   { { echo "$as_me:$LINENO: error: zlib version is too old
12881 Use --without-zlib to disable zlib support." >&5
12882 echo "$as_me: error: zlib version is too old
12883 Use --without-zlib to disable zlib support." >&2;}
12884    { (exit 1); exit 1; }; }
12885 fi
12886
12887 fi
12888
12889 if test "$with_krb5" = yes; then
12890 # Check for differences between MIT and Heimdal (KTH) releases
12891   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
12892 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
12893 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
12894   echo $ECHO_N "(cached) $ECHO_C" >&6
12895 else
12896   cat >conftest.$ac_ext <<_ACEOF
12897 /* confdefs.h.  */
12898 _ACEOF
12899 cat confdefs.h >>conftest.$ac_ext
12900 cat >>conftest.$ac_ext <<_ACEOF
12901 /* end confdefs.h.  */
12902 #include <krb5.h>
12903
12904 int
12905 main ()
12906 {
12907 static krb5_ticket ac_aggr;
12908 if (ac_aggr.enc_part2)
12909 return 0;
12910   ;
12911   return 0;
12912 }
12913 _ACEOF
12914 rm -f conftest.$ac_objext
12915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12916   (eval $ac_compile) 2>conftest.er1
12917   ac_status=$?
12918   grep -v '^ *+' conftest.er1 >conftest.err
12919   rm -f conftest.er1
12920   cat conftest.err >&5
12921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922   (exit $ac_status); } &&
12923          { ac_try='test -z "$ac_c_werror_flag"
12924                          || test ! -s conftest.err'
12925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12926   (eval $ac_try) 2>&5
12927   ac_status=$?
12928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929   (exit $ac_status); }; } &&
12930          { ac_try='test -s conftest.$ac_objext'
12931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932   (eval $ac_try) 2>&5
12933   ac_status=$?
12934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935   (exit $ac_status); }; }; then
12936   ac_cv_member_krb5_ticket_enc_part2=yes
12937 else
12938   echo "$as_me: failed program was:" >&5
12939 sed 's/^/| /' conftest.$ac_ext >&5
12940
12941 cat >conftest.$ac_ext <<_ACEOF
12942 /* confdefs.h.  */
12943 _ACEOF
12944 cat confdefs.h >>conftest.$ac_ext
12945 cat >>conftest.$ac_ext <<_ACEOF
12946 /* end confdefs.h.  */
12947 #include <krb5.h>
12948
12949 int
12950 main ()
12951 {
12952 static krb5_ticket ac_aggr;
12953 if (sizeof ac_aggr.enc_part2)
12954 return 0;
12955   ;
12956   return 0;
12957 }
12958 _ACEOF
12959 rm -f conftest.$ac_objext
12960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12961   (eval $ac_compile) 2>conftest.er1
12962   ac_status=$?
12963   grep -v '^ *+' conftest.er1 >conftest.err
12964   rm -f conftest.er1
12965   cat conftest.err >&5
12966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967   (exit $ac_status); } &&
12968          { ac_try='test -z "$ac_c_werror_flag"
12969                          || test ! -s conftest.err'
12970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12971   (eval $ac_try) 2>&5
12972   ac_status=$?
12973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974   (exit $ac_status); }; } &&
12975          { ac_try='test -s conftest.$ac_objext'
12976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977   (eval $ac_try) 2>&5
12978   ac_status=$?
12979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980   (exit $ac_status); }; }; then
12981   ac_cv_member_krb5_ticket_enc_part2=yes
12982 else
12983   echo "$as_me: failed program was:" >&5
12984 sed 's/^/| /' conftest.$ac_ext >&5
12985
12986 ac_cv_member_krb5_ticket_enc_part2=no
12987 fi
12988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12989 fi
12990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12991 fi
12992 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
12993 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
12994 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
12995
12996 cat >>confdefs.h <<_ACEOF
12997 #define HAVE_KRB5_TICKET_ENC_PART2 1
12998 _ACEOF
12999
13000
13001 else
13002   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
13003 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
13004 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
13005   echo $ECHO_N "(cached) $ECHO_C" >&6
13006 else
13007   cat >conftest.$ac_ext <<_ACEOF
13008 /* confdefs.h.  */
13009 _ACEOF
13010 cat confdefs.h >>conftest.$ac_ext
13011 cat >>conftest.$ac_ext <<_ACEOF
13012 /* end confdefs.h.  */
13013 #include <krb5.h>
13014
13015 int
13016 main ()
13017 {
13018 static krb5_ticket ac_aggr;
13019 if (ac_aggr.client)
13020 return 0;
13021   ;
13022   return 0;
13023 }
13024 _ACEOF
13025 rm -f conftest.$ac_objext
13026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13027   (eval $ac_compile) 2>conftest.er1
13028   ac_status=$?
13029   grep -v '^ *+' conftest.er1 >conftest.err
13030   rm -f conftest.er1
13031   cat conftest.err >&5
13032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033   (exit $ac_status); } &&
13034          { ac_try='test -z "$ac_c_werror_flag"
13035                          || test ! -s conftest.err'
13036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037   (eval $ac_try) 2>&5
13038   ac_status=$?
13039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040   (exit $ac_status); }; } &&
13041          { ac_try='test -s conftest.$ac_objext'
13042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13043   (eval $ac_try) 2>&5
13044   ac_status=$?
13045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046   (exit $ac_status); }; }; then
13047   ac_cv_member_krb5_ticket_client=yes
13048 else
13049   echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.$ac_ext >&5
13051
13052 cat >conftest.$ac_ext <<_ACEOF
13053 /* confdefs.h.  */
13054 _ACEOF
13055 cat confdefs.h >>conftest.$ac_ext
13056 cat >>conftest.$ac_ext <<_ACEOF
13057 /* end confdefs.h.  */
13058 #include <krb5.h>
13059
13060 int
13061 main ()
13062 {
13063 static krb5_ticket ac_aggr;
13064 if (sizeof ac_aggr.client)
13065 return 0;
13066   ;
13067   return 0;
13068 }
13069 _ACEOF
13070 rm -f conftest.$ac_objext
13071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13072   (eval $ac_compile) 2>conftest.er1
13073   ac_status=$?
13074   grep -v '^ *+' conftest.er1 >conftest.err
13075   rm -f conftest.er1
13076   cat conftest.err >&5
13077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078   (exit $ac_status); } &&
13079          { ac_try='test -z "$ac_c_werror_flag"
13080                          || test ! -s conftest.err'
13081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13082   (eval $ac_try) 2>&5
13083   ac_status=$?
13084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085   (exit $ac_status); }; } &&
13086          { ac_try='test -s conftest.$ac_objext'
13087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13088   (eval $ac_try) 2>&5
13089   ac_status=$?
13090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091   (exit $ac_status); }; }; then
13092   ac_cv_member_krb5_ticket_client=yes
13093 else
13094   echo "$as_me: failed program was:" >&5
13095 sed 's/^/| /' conftest.$ac_ext >&5
13096
13097 ac_cv_member_krb5_ticket_client=no
13098 fi
13099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13100 fi
13101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13102 fi
13103 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
13104 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
13105 if test $ac_cv_member_krb5_ticket_client = yes; then
13106
13107 cat >>confdefs.h <<_ACEOF
13108 #define HAVE_KRB5_TICKET_CLIENT 1
13109 _ACEOF
13110
13111
13112 else
13113   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
13114 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
13115    { (exit 1); exit 1; }; }
13116 fi
13117
13118 fi
13119
13120   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
13121 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
13122 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
13123   echo $ECHO_N "(cached) $ECHO_C" >&6
13124 else
13125   cat >conftest.$ac_ext <<_ACEOF
13126 /* confdefs.h.  */
13127 _ACEOF
13128 cat confdefs.h >>conftest.$ac_ext
13129 cat >>conftest.$ac_ext <<_ACEOF
13130 /* end confdefs.h.  */
13131 #include <krb5.h>
13132
13133 int
13134 main ()
13135 {
13136 static krb5_error ac_aggr;
13137 if (ac_aggr.text.data)
13138 return 0;
13139   ;
13140   return 0;
13141 }
13142 _ACEOF
13143 rm -f conftest.$ac_objext
13144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13145   (eval $ac_compile) 2>conftest.er1
13146   ac_status=$?
13147   grep -v '^ *+' conftest.er1 >conftest.err
13148   rm -f conftest.er1
13149   cat conftest.err >&5
13150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151   (exit $ac_status); } &&
13152          { ac_try='test -z "$ac_c_werror_flag"
13153                          || test ! -s conftest.err'
13154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13155   (eval $ac_try) 2>&5
13156   ac_status=$?
13157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158   (exit $ac_status); }; } &&
13159          { ac_try='test -s conftest.$ac_objext'
13160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161   (eval $ac_try) 2>&5
13162   ac_status=$?
13163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164   (exit $ac_status); }; }; then
13165   ac_cv_member_krb5_error_text_data=yes
13166 else
13167   echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13169
13170 cat >conftest.$ac_ext <<_ACEOF
13171 /* confdefs.h.  */
13172 _ACEOF
13173 cat confdefs.h >>conftest.$ac_ext
13174 cat >>conftest.$ac_ext <<_ACEOF
13175 /* end confdefs.h.  */
13176 #include <krb5.h>
13177
13178 int
13179 main ()
13180 {
13181 static krb5_error ac_aggr;
13182 if (sizeof ac_aggr.text.data)
13183 return 0;
13184   ;
13185   return 0;
13186 }
13187 _ACEOF
13188 rm -f conftest.$ac_objext
13189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13190   (eval $ac_compile) 2>conftest.er1
13191   ac_status=$?
13192   grep -v '^ *+' conftest.er1 >conftest.err
13193   rm -f conftest.er1
13194   cat conftest.err >&5
13195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196   (exit $ac_status); } &&
13197          { ac_try='test -z "$ac_c_werror_flag"
13198                          || test ! -s conftest.err'
13199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13200   (eval $ac_try) 2>&5
13201   ac_status=$?
13202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203   (exit $ac_status); }; } &&
13204          { ac_try='test -s conftest.$ac_objext'
13205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13206   (eval $ac_try) 2>&5
13207   ac_status=$?
13208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209   (exit $ac_status); }; }; then
13210   ac_cv_member_krb5_error_text_data=yes
13211 else
13212   echo "$as_me: failed program was:" >&5
13213 sed 's/^/| /' conftest.$ac_ext >&5
13214
13215 ac_cv_member_krb5_error_text_data=no
13216 fi
13217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13218 fi
13219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13220 fi
13221 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
13222 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
13223 if test $ac_cv_member_krb5_error_text_data = yes; then
13224
13225 cat >>confdefs.h <<_ACEOF
13226 #define HAVE_KRB5_ERROR_TEXT_DATA 1
13227 _ACEOF
13228
13229
13230 else
13231   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
13232 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
13233 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
13234   echo $ECHO_N "(cached) $ECHO_C" >&6
13235 else
13236   cat >conftest.$ac_ext <<_ACEOF
13237 /* confdefs.h.  */
13238 _ACEOF
13239 cat confdefs.h >>conftest.$ac_ext
13240 cat >>conftest.$ac_ext <<_ACEOF
13241 /* end confdefs.h.  */
13242 #include <krb5.h>
13243
13244 int
13245 main ()
13246 {
13247 static krb5_error ac_aggr;
13248 if (ac_aggr.e_data)
13249 return 0;
13250   ;
13251   return 0;
13252 }
13253 _ACEOF
13254 rm -f conftest.$ac_objext
13255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13256   (eval $ac_compile) 2>conftest.er1
13257   ac_status=$?
13258   grep -v '^ *+' conftest.er1 >conftest.err
13259   rm -f conftest.er1
13260   cat conftest.err >&5
13261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262   (exit $ac_status); } &&
13263          { ac_try='test -z "$ac_c_werror_flag"
13264                          || test ! -s conftest.err'
13265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266   (eval $ac_try) 2>&5
13267   ac_status=$?
13268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269   (exit $ac_status); }; } &&
13270          { ac_try='test -s conftest.$ac_objext'
13271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13272   (eval $ac_try) 2>&5
13273   ac_status=$?
13274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275   (exit $ac_status); }; }; then
13276   ac_cv_member_krb5_error_e_data=yes
13277 else
13278   echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.$ac_ext >&5
13280
13281 cat >conftest.$ac_ext <<_ACEOF
13282 /* confdefs.h.  */
13283 _ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h.  */
13287 #include <krb5.h>
13288
13289 int
13290 main ()
13291 {
13292 static krb5_error ac_aggr;
13293 if (sizeof ac_aggr.e_data)
13294 return 0;
13295   ;
13296   return 0;
13297 }
13298 _ACEOF
13299 rm -f conftest.$ac_objext
13300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13301   (eval $ac_compile) 2>conftest.er1
13302   ac_status=$?
13303   grep -v '^ *+' conftest.er1 >conftest.err
13304   rm -f conftest.er1
13305   cat conftest.err >&5
13306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307   (exit $ac_status); } &&
13308          { ac_try='test -z "$ac_c_werror_flag"
13309                          || test ! -s conftest.err'
13310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13311   (eval $ac_try) 2>&5
13312   ac_status=$?
13313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314   (exit $ac_status); }; } &&
13315          { ac_try='test -s conftest.$ac_objext'
13316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317   (eval $ac_try) 2>&5
13318   ac_status=$?
13319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320   (exit $ac_status); }; }; then
13321   ac_cv_member_krb5_error_e_data=yes
13322 else
13323   echo "$as_me: failed program was:" >&5
13324 sed 's/^/| /' conftest.$ac_ext >&5
13325
13326 ac_cv_member_krb5_error_e_data=no
13327 fi
13328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13329 fi
13330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13331 fi
13332 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
13333 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
13334 if test $ac_cv_member_krb5_error_e_data = yes; then
13335
13336 cat >>confdefs.h <<_ACEOF
13337 #define HAVE_KRB5_ERROR_E_DATA 1
13338 _ACEOF
13339
13340
13341 else
13342   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
13343 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
13344    { (exit 1); exit 1; }; }
13345 fi
13346
13347 fi
13348
13349 fi
13350
13351 # This is probably only present on Darwin, but may as well check always
13352 echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
13353 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6
13354 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
13355   echo $ECHO_N "(cached) $ECHO_C" >&6
13356 else
13357   cat >conftest.$ac_ext <<_ACEOF
13358 /* confdefs.h.  */
13359 _ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h.  */
13363 #include <fcntl.h>
13364
13365 int
13366 main ()
13367 {
13368 #ifndef F_FULLFSYNC
13369   char *p = (char *) F_FULLFSYNC;
13370 #endif
13371
13372   ;
13373   return 0;
13374 }
13375 _ACEOF
13376 rm -f conftest.$ac_objext
13377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13378   (eval $ac_compile) 2>conftest.er1
13379   ac_status=$?
13380   grep -v '^ *+' conftest.er1 >conftest.err
13381   rm -f conftest.er1
13382   cat conftest.err >&5
13383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384   (exit $ac_status); } &&
13385          { ac_try='test -z "$ac_c_werror_flag"
13386                          || test ! -s conftest.err'
13387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13388   (eval $ac_try) 2>&5
13389   ac_status=$?
13390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391   (exit $ac_status); }; } &&
13392          { ac_try='test -s conftest.$ac_objext'
13393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13394   (eval $ac_try) 2>&5
13395   ac_status=$?
13396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397   (exit $ac_status); }; }; then
13398   ac_cv_have_decl_F_FULLFSYNC=yes
13399 else
13400   echo "$as_me: failed program was:" >&5
13401 sed 's/^/| /' conftest.$ac_ext >&5
13402
13403 ac_cv_have_decl_F_FULLFSYNC=no
13404 fi
13405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13406 fi
13407 echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
13408 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6
13409 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
13410
13411 cat >>confdefs.h <<_ACEOF
13412 #define HAVE_DECL_F_FULLFSYNC 1
13413 _ACEOF
13414
13415
13416 else
13417   cat >>confdefs.h <<_ACEOF
13418 #define HAVE_DECL_F_FULLFSYNC 0
13419 _ACEOF
13420
13421
13422 fi
13423
13424
13425
13426 ##
13427 ## Functions, global variables
13428 ##
13429
13430 echo "$as_me:$LINENO: checking for int timezone" >&5
13431 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
13432 if test "${pgac_cv_var_int_timezone+set}" = set; then
13433   echo $ECHO_N "(cached) $ECHO_C" >&6
13434 else
13435   cat >conftest.$ac_ext <<_ACEOF
13436 /* confdefs.h.  */
13437 _ACEOF
13438 cat confdefs.h >>conftest.$ac_ext
13439 cat >>conftest.$ac_ext <<_ACEOF
13440 /* end confdefs.h.  */
13441 #include <time.h>
13442 int res;
13443 int
13444 main ()
13445 {
13446 #ifndef __CYGWIN__
13447 res = timezone / 60;
13448 #else
13449 res = _timezone / 60;
13450 #endif
13451   ;
13452   return 0;
13453 }
13454 _ACEOF
13455 rm -f conftest.$ac_objext conftest$ac_exeext
13456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13457   (eval $ac_link) 2>conftest.er1
13458   ac_status=$?
13459   grep -v '^ *+' conftest.er1 >conftest.err
13460   rm -f conftest.er1
13461   cat conftest.err >&5
13462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463   (exit $ac_status); } &&
13464          { ac_try='test -z "$ac_c_werror_flag"
13465                          || test ! -s conftest.err'
13466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13467   (eval $ac_try) 2>&5
13468   ac_status=$?
13469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470   (exit $ac_status); }; } &&
13471          { ac_try='test -s conftest$ac_exeext'
13472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473   (eval $ac_try) 2>&5
13474   ac_status=$?
13475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476   (exit $ac_status); }; }; then
13477   pgac_cv_var_int_timezone=yes
13478 else
13479   echo "$as_me: failed program was:" >&5
13480 sed 's/^/| /' conftest.$ac_ext >&5
13481
13482 pgac_cv_var_int_timezone=no
13483 fi
13484 rm -f conftest.err conftest.$ac_objext \
13485       conftest$ac_exeext conftest.$ac_ext
13486 fi
13487 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
13488 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
13489 if test x"$pgac_cv_var_int_timezone" = xyes ; then
13490
13491 cat >>confdefs.h <<\_ACEOF
13492 #define HAVE_INT_TIMEZONE
13493 _ACEOF
13494
13495 fi
13496 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
13497 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
13498  if test "${ac_cv_func_accept_return+set}" = set; then
13499   echo $ECHO_N "(cached) $ECHO_C" >&6
13500 else
13501    if test "${ac_cv_func_accept_arg1+set}" = set; then
13502   echo $ECHO_N "(cached) $ECHO_C" >&6
13503 else
13504     if test "${ac_cv_func_accept_arg2+set}" = set; then
13505   echo $ECHO_N "(cached) $ECHO_C" >&6
13506 else
13507      if test "${ac_cv_func_accept_arg3+set}" = set; then
13508   echo $ECHO_N "(cached) $ECHO_C" >&6
13509 else
13510       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
13511       for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
13512        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
13513         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
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 #ifdef HAVE_SYS_TYPES_H
13521 #include <sys/types.h>
13522 #endif
13523 #ifdef HAVE_SYS_SOCKET_H
13524 #include <sys/socket.h>
13525 #endif
13526 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
13527 int
13528 main ()
13529 {
13530
13531   ;
13532   return 0;
13533 }
13534 _ACEOF
13535 rm -f conftest.$ac_objext
13536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13537   (eval $ac_compile) 2>conftest.er1
13538   ac_status=$?
13539   grep -v '^ *+' conftest.er1 >conftest.err
13540   rm -f conftest.er1
13541   cat conftest.err >&5
13542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543   (exit $ac_status); } &&
13544          { ac_try='test -z "$ac_c_werror_flag"
13545                          || test ! -s conftest.err'
13546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547   (eval $ac_try) 2>&5
13548   ac_status=$?
13549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550   (exit $ac_status); }; } &&
13551          { ac_try='test -s conftest.$ac_objext'
13552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553   (eval $ac_try) 2>&5
13554   ac_status=$?
13555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556   (exit $ac_status); }; }; then
13557   ac_not_found=no; break 4
13558 else
13559   echo "$as_me: failed program was:" >&5
13560 sed 's/^/| /' conftest.$ac_ext >&5
13561
13562 ac_not_found=yes
13563 fi
13564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13565        done
13566       done
13567      done
13568     done
13569     if test "$ac_not_found" = yes; then
13570       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
13571 echo "$as_me: error: could not determine argument types" >&2;}
13572    { (exit 1); exit 1; }; }
13573     fi
13574     if test "$ac_cv_func_accept_arg3" = "void"; then
13575       ac_cv_func_accept_arg3=int
13576     fi
13577
13578 fi
13579
13580 fi
13581
13582 fi
13583
13584 fi
13585  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
13586 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
13587
13588 cat >>confdefs.h <<_ACEOF
13589 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
13590 _ACEOF
13591
13592
13593 cat >>confdefs.h <<_ACEOF
13594 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
13595 _ACEOF
13596
13597
13598 cat >>confdefs.h <<_ACEOF
13599 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
13600 _ACEOF
13601
13602
13603 cat >>confdefs.h <<_ACEOF
13604 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
13605 _ACEOF
13606
13607
13608 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
13609 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
13610 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
13611   echo $ECHO_N "(cached) $ECHO_C" >&6
13612 else
13613   cat >conftest.$ac_ext <<_ACEOF
13614 /* confdefs.h.  */
13615 _ACEOF
13616 cat confdefs.h >>conftest.$ac_ext
13617 cat >>conftest.$ac_ext <<_ACEOF
13618 /* end confdefs.h.  */
13619 #include <sys/time.h>
13620 int
13621 main ()
13622 {
13623 struct timeval *tp;
13624 struct timezone *tzp;
13625 gettimeofday(tp,tzp);
13626   ;
13627   return 0;
13628 }
13629 _ACEOF
13630 rm -f conftest.$ac_objext
13631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13632   (eval $ac_compile) 2>conftest.er1
13633   ac_status=$?
13634   grep -v '^ *+' conftest.er1 >conftest.err
13635   rm -f conftest.er1
13636   cat conftest.err >&5
13637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638   (exit $ac_status); } &&
13639          { ac_try='test -z "$ac_c_werror_flag"
13640                          || test ! -s conftest.err'
13641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13642   (eval $ac_try) 2>&5
13643   ac_status=$?
13644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645   (exit $ac_status); }; } &&
13646          { ac_try='test -s conftest.$ac_objext'
13647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13648   (eval $ac_try) 2>&5
13649   ac_status=$?
13650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651   (exit $ac_status); }; }; then
13652   pgac_cv_func_gettimeofday_1arg=no
13653 else
13654   echo "$as_me: failed program was:" >&5
13655 sed 's/^/| /' conftest.$ac_ext >&5
13656
13657 pgac_cv_func_gettimeofday_1arg=yes
13658 fi
13659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13660 fi
13661 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
13662 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
13663 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
13664
13665 cat >>confdefs.h <<\_ACEOF
13666 #define GETTIMEOFDAY_1ARG
13667 _ACEOF
13668
13669 fi
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
13693 do
13694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13695 echo "$as_me:$LINENO: checking for $ac_func" >&5
13696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13697 if eval "test \"\${$as_ac_var+set}\" = set"; then
13698   echo $ECHO_N "(cached) $ECHO_C" >&6
13699 else
13700   cat >conftest.$ac_ext <<_ACEOF
13701 /* confdefs.h.  */
13702 _ACEOF
13703 cat confdefs.h >>conftest.$ac_ext
13704 cat >>conftest.$ac_ext <<_ACEOF
13705 /* end confdefs.h.  */
13706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13708 #define $ac_func innocuous_$ac_func
13709
13710 /* System header to define __stub macros and hopefully few prototypes,
13711     which can conflict with char $ac_func (); below.
13712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13713     <limits.h> exists even on freestanding compilers.  */
13714
13715 #ifdef __STDC__
13716 # include <limits.h>
13717 #else
13718 # include <assert.h>
13719 #endif
13720
13721 #undef $ac_func
13722
13723 /* Override any gcc2 internal prototype to avoid an error.  */
13724 #ifdef __cplusplus
13725 extern "C"
13726 {
13727 #endif
13728 /* We use char because int might match the return type of a gcc2
13729    builtin and then its argument prototype would still apply.  */
13730 char $ac_func ();
13731 /* The GNU C library defines this for functions which it implements
13732     to always fail with ENOSYS.  Some functions are actually named
13733     something starting with __ and the normal name is an alias.  */
13734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13735 choke me
13736 #else
13737 char (*f) () = $ac_func;
13738 #endif
13739 #ifdef __cplusplus
13740 }
13741 #endif
13742
13743 int
13744 main ()
13745 {
13746 return f != $ac_func;
13747   ;
13748   return 0;
13749 }
13750 _ACEOF
13751 rm -f conftest.$ac_objext conftest$ac_exeext
13752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13753   (eval $ac_link) 2>conftest.er1
13754   ac_status=$?
13755   grep -v '^ *+' conftest.er1 >conftest.err
13756   rm -f conftest.er1
13757   cat conftest.err >&5
13758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759   (exit $ac_status); } &&
13760          { ac_try='test -z "$ac_c_werror_flag"
13761                          || test ! -s conftest.err'
13762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763   (eval $ac_try) 2>&5
13764   ac_status=$?
13765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766   (exit $ac_status); }; } &&
13767          { ac_try='test -s conftest$ac_exeext'
13768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769   (eval $ac_try) 2>&5
13770   ac_status=$?
13771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772   (exit $ac_status); }; }; then
13773   eval "$as_ac_var=yes"
13774 else
13775   echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.$ac_ext >&5
13777
13778 eval "$as_ac_var=no"
13779 fi
13780 rm -f conftest.err conftest.$ac_objext \
13781       conftest$ac_exeext conftest.$ac_ext
13782 fi
13783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13785 if test `eval echo '${'$as_ac_var'}'` = yes; then
13786   cat >>confdefs.h <<_ACEOF
13787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13788 _ACEOF
13789
13790 fi
13791 done
13792
13793
13794 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
13795 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
13796 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
13797   echo $ECHO_N "(cached) $ECHO_C" >&6
13798 else
13799   cat >conftest.$ac_ext <<_ACEOF
13800 /* confdefs.h.  */
13801 _ACEOF
13802 cat confdefs.h >>conftest.$ac_ext
13803 cat >>conftest.$ac_ext <<_ACEOF
13804 /* end confdefs.h.  */
13805 #include <unistd.h>
13806
13807 int
13808 main ()
13809 {
13810 #ifndef fdatasync
13811   char *p = (char *) fdatasync;
13812 #endif
13813
13814   ;
13815   return 0;
13816 }
13817 _ACEOF
13818 rm -f conftest.$ac_objext
13819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13820   (eval $ac_compile) 2>conftest.er1
13821   ac_status=$?
13822   grep -v '^ *+' conftest.er1 >conftest.err
13823   rm -f conftest.er1
13824   cat conftest.err >&5
13825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826   (exit $ac_status); } &&
13827          { ac_try='test -z "$ac_c_werror_flag"
13828                          || test ! -s conftest.err'
13829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13830   (eval $ac_try) 2>&5
13831   ac_status=$?
13832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833   (exit $ac_status); }; } &&
13834          { ac_try='test -s conftest.$ac_objext'
13835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13836   (eval $ac_try) 2>&5
13837   ac_status=$?
13838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839   (exit $ac_status); }; }; then
13840   ac_cv_have_decl_fdatasync=yes
13841 else
13842   echo "$as_me: failed program was:" >&5
13843 sed 's/^/| /' conftest.$ac_ext >&5
13844
13845 ac_cv_have_decl_fdatasync=no
13846 fi
13847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13848 fi
13849 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
13850 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
13851 if test $ac_cv_have_decl_fdatasync = yes; then
13852
13853 cat >>confdefs.h <<_ACEOF
13854 #define HAVE_DECL_FDATASYNC 1
13855 _ACEOF
13856
13857
13858 else
13859   cat >>confdefs.h <<_ACEOF
13860 #define HAVE_DECL_FDATASYNC 0
13861 _ACEOF
13862
13863
13864 fi
13865
13866
13867 echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
13868 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6
13869 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
13870   echo $ECHO_N "(cached) $ECHO_C" >&6
13871 else
13872   cat >conftest.$ac_ext <<_ACEOF
13873 /* confdefs.h.  */
13874 _ACEOF
13875 cat confdefs.h >>conftest.$ac_ext
13876 cat >>conftest.$ac_ext <<_ACEOF
13877 /* end confdefs.h.  */
13878 #include <fcntl.h>
13879
13880 int
13881 main ()
13882 {
13883 #ifndef posix_fadvise
13884   char *p = (char *) posix_fadvise;
13885 #endif
13886
13887   ;
13888   return 0;
13889 }
13890 _ACEOF
13891 rm -f conftest.$ac_objext
13892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13893   (eval $ac_compile) 2>conftest.er1
13894   ac_status=$?
13895   grep -v '^ *+' conftest.er1 >conftest.err
13896   rm -f conftest.er1
13897   cat conftest.err >&5
13898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899   (exit $ac_status); } &&
13900          { ac_try='test -z "$ac_c_werror_flag"
13901                          || test ! -s conftest.err'
13902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903   (eval $ac_try) 2>&5
13904   ac_status=$?
13905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906   (exit $ac_status); }; } &&
13907          { ac_try='test -s conftest.$ac_objext'
13908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909   (eval $ac_try) 2>&5
13910   ac_status=$?
13911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912   (exit $ac_status); }; }; then
13913   ac_cv_have_decl_posix_fadvise=yes
13914 else
13915   echo "$as_me: failed program was:" >&5
13916 sed 's/^/| /' conftest.$ac_ext >&5
13917
13918 ac_cv_have_decl_posix_fadvise=no
13919 fi
13920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13921 fi
13922 echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
13923 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6
13924 if test $ac_cv_have_decl_posix_fadvise = yes; then
13925
13926 cat >>confdefs.h <<_ACEOF
13927 #define HAVE_DECL_POSIX_FADVISE 1
13928 _ACEOF
13929
13930
13931 else
13932   cat >>confdefs.h <<_ACEOF
13933 #define HAVE_DECL_POSIX_FADVISE 0
13934 _ACEOF
13935
13936
13937 fi
13938
13939
13940
13941 HAVE_IPV6=no
13942 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
13943 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
13944 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
13945   echo $ECHO_N "(cached) $ECHO_C" >&6
13946 else
13947   cat >conftest.$ac_ext <<_ACEOF
13948 /* confdefs.h.  */
13949 _ACEOF
13950 cat confdefs.h >>conftest.$ac_ext
13951 cat >>conftest.$ac_ext <<_ACEOF
13952 /* end confdefs.h.  */
13953 $ac_includes_default
13954 #include <netinet/in.h>
13955
13956 int
13957 main ()
13958 {
13959 if ((struct sockaddr_in6 *) 0)
13960   return 0;
13961 if (sizeof (struct sockaddr_in6))
13962   return 0;
13963   ;
13964   return 0;
13965 }
13966 _ACEOF
13967 rm -f conftest.$ac_objext
13968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13969   (eval $ac_compile) 2>conftest.er1
13970   ac_status=$?
13971   grep -v '^ *+' conftest.er1 >conftest.err
13972   rm -f conftest.er1
13973   cat conftest.err >&5
13974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975   (exit $ac_status); } &&
13976          { ac_try='test -z "$ac_c_werror_flag"
13977                          || test ! -s conftest.err'
13978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13979   (eval $ac_try) 2>&5
13980   ac_status=$?
13981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982   (exit $ac_status); }; } &&
13983          { ac_try='test -s conftest.$ac_objext'
13984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13985   (eval $ac_try) 2>&5
13986   ac_status=$?
13987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988   (exit $ac_status); }; }; then
13989   ac_cv_type_struct_sockaddr_in6=yes
13990 else
13991   echo "$as_me: failed program was:" >&5
13992 sed 's/^/| /' conftest.$ac_ext >&5
13993
13994 ac_cv_type_struct_sockaddr_in6=no
13995 fi
13996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13997 fi
13998 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
13999 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
14000 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
14001
14002 cat >>confdefs.h <<\_ACEOF
14003 #define HAVE_IPV6 1
14004 _ACEOF
14005
14006          HAVE_IPV6=yes
14007 fi
14008
14009
14010
14011 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
14012 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
14013 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
14014   echo $ECHO_N "(cached) $ECHO_C" >&6
14015 else
14016   cat >conftest.$ac_ext <<_ACEOF
14017 /* confdefs.h.  */
14018 _ACEOF
14019 cat confdefs.h >>conftest.$ac_ext
14020 cat >>conftest.$ac_ext <<_ACEOF
14021 /* end confdefs.h.  */
14022 #include <machine/vmparam.h>
14023 #include <sys/exec.h>
14024
14025 int
14026 main ()
14027 {
14028 PS_STRINGS->ps_nargvstr = 1;
14029 PS_STRINGS->ps_argvstr = "foo";
14030   ;
14031   return 0;
14032 }
14033 _ACEOF
14034 rm -f conftest.$ac_objext conftest$ac_exeext
14035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14036   (eval $ac_link) 2>conftest.er1
14037   ac_status=$?
14038   grep -v '^ *+' conftest.er1 >conftest.err
14039   rm -f conftest.er1
14040   cat conftest.err >&5
14041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042   (exit $ac_status); } &&
14043          { ac_try='test -z "$ac_c_werror_flag"
14044                          || test ! -s conftest.err'
14045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046   (eval $ac_try) 2>&5
14047   ac_status=$?
14048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049   (exit $ac_status); }; } &&
14050          { ac_try='test -s conftest$ac_exeext'
14051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052   (eval $ac_try) 2>&5
14053   ac_status=$?
14054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055   (exit $ac_status); }; }; then
14056   pgac_cv_var_PS_STRINGS=yes
14057 else
14058   echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.$ac_ext >&5
14060
14061 pgac_cv_var_PS_STRINGS=no
14062 fi
14063 rm -f conftest.err conftest.$ac_objext \
14064       conftest$ac_exeext conftest.$ac_ext
14065 fi
14066 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
14067 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
14068 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
14069
14070 cat >>confdefs.h <<\_ACEOF
14071 #define HAVE_PS_STRINGS
14072 _ACEOF
14073
14074 fi
14075
14076
14077 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
14078 # is missing.  Yes, there are machines that have only one.  We may
14079 # also decide to use snprintf.c if snprintf() is present but does not
14080 # have all the features we need --- see below.
14081
14082 if test "$PORTNAME" = "win32"; then
14083   # Win32 gets snprintf.c built unconditionally.
14084   #
14085   # To properly translate all NLS languages strings, we must support the
14086   # *printf() %$ format, which allows *printf() arguments to be selected
14087   # by position in the translated string.
14088   #
14089   # libintl versions < 0.13 use the native *printf() functions, and Win32
14090   # *printf() doesn't understand %$, so we must use our /port versions,
14091   # which do understand %$. libintl versions >= 0.13 include their own
14092   # *printf versions on Win32.  The libintl 0.13 release note text is:
14093   #
14094   #   C format strings with positions, as they arise when a translator
14095   #   needs to reorder a sentence, are now supported on all platforms.
14096   #   On those few platforms (NetBSD and Woe32) for which the native
14097   #   printf()/fprintf()/... functions don't support such format
14098   #   strings, replacements are provided through <libintl.h>.
14099   #
14100   # We could use libintl >= 0.13's *printf() if we were sure that we had
14101   # a litint >= 0.13 at runtime, but seeing that there is no clean way
14102   # to guarantee that, it is best to just use our own, so we are sure to
14103   # get %$ support. In include/port.h we disable the *printf() macros
14104   # that might have been defined by libintl.
14105   #
14106   # We do this unconditionally whether NLS is used or not so we are sure
14107   # that all Win32 libraries and binaries behave the same.
14108   pgac_need_repl_snprintf=yes
14109 else
14110   pgac_need_repl_snprintf=no
14111
14112 for ac_func in snprintf
14113 do
14114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14115 echo "$as_me:$LINENO: checking for $ac_func" >&5
14116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14117 if eval "test \"\${$as_ac_var+set}\" = set"; then
14118   echo $ECHO_N "(cached) $ECHO_C" >&6
14119 else
14120   cat >conftest.$ac_ext <<_ACEOF
14121 /* confdefs.h.  */
14122 _ACEOF
14123 cat confdefs.h >>conftest.$ac_ext
14124 cat >>conftest.$ac_ext <<_ACEOF
14125 /* end confdefs.h.  */
14126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14127    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14128 #define $ac_func innocuous_$ac_func
14129
14130 /* System header to define __stub macros and hopefully few prototypes,
14131     which can conflict with char $ac_func (); below.
14132     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14133     <limits.h> exists even on freestanding compilers.  */
14134
14135 #ifdef __STDC__
14136 # include <limits.h>
14137 #else
14138 # include <assert.h>
14139 #endif
14140
14141 #undef $ac_func
14142
14143 /* Override any gcc2 internal prototype to avoid an error.  */
14144 #ifdef __cplusplus
14145 extern "C"
14146 {
14147 #endif
14148 /* We use char because int might match the return type of a gcc2
14149    builtin and then its argument prototype would still apply.  */
14150 char $ac_func ();
14151 /* The GNU C library defines this for functions which it implements
14152     to always fail with ENOSYS.  Some functions are actually named
14153     something starting with __ and the normal name is an alias.  */
14154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14155 choke me
14156 #else
14157 char (*f) () = $ac_func;
14158 #endif
14159 #ifdef __cplusplus
14160 }
14161 #endif
14162
14163 int
14164 main ()
14165 {
14166 return f != $ac_func;
14167   ;
14168   return 0;
14169 }
14170 _ACEOF
14171 rm -f conftest.$ac_objext conftest$ac_exeext
14172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14173   (eval $ac_link) 2>conftest.er1
14174   ac_status=$?
14175   grep -v '^ *+' conftest.er1 >conftest.err
14176   rm -f conftest.er1
14177   cat conftest.err >&5
14178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179   (exit $ac_status); } &&
14180          { ac_try='test -z "$ac_c_werror_flag"
14181                          || test ! -s conftest.err'
14182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183   (eval $ac_try) 2>&5
14184   ac_status=$?
14185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186   (exit $ac_status); }; } &&
14187          { ac_try='test -s conftest$ac_exeext'
14188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14189   (eval $ac_try) 2>&5
14190   ac_status=$?
14191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192   (exit $ac_status); }; }; then
14193   eval "$as_ac_var=yes"
14194 else
14195   echo "$as_me: failed program was:" >&5
14196 sed 's/^/| /' conftest.$ac_ext >&5
14197
14198 eval "$as_ac_var=no"
14199 fi
14200 rm -f conftest.err conftest.$ac_objext \
14201       conftest$ac_exeext conftest.$ac_ext
14202 fi
14203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14205 if test `eval echo '${'$as_ac_var'}'` = yes; then
14206   cat >>confdefs.h <<_ACEOF
14207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14208 _ACEOF
14209
14210 else
14211   pgac_need_repl_snprintf=yes
14212 fi
14213 done
14214
14215
14216 for ac_func in vsnprintf
14217 do
14218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14219 echo "$as_me:$LINENO: checking for $ac_func" >&5
14220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14221 if eval "test \"\${$as_ac_var+set}\" = set"; then
14222   echo $ECHO_N "(cached) $ECHO_C" >&6
14223 else
14224   cat >conftest.$ac_ext <<_ACEOF
14225 /* confdefs.h.  */
14226 _ACEOF
14227 cat confdefs.h >>conftest.$ac_ext
14228 cat >>conftest.$ac_ext <<_ACEOF
14229 /* end confdefs.h.  */
14230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14231    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14232 #define $ac_func innocuous_$ac_func
14233
14234 /* System header to define __stub macros and hopefully few prototypes,
14235     which can conflict with char $ac_func (); below.
14236     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14237     <limits.h> exists even on freestanding compilers.  */
14238
14239 #ifdef __STDC__
14240 # include <limits.h>
14241 #else
14242 # include <assert.h>
14243 #endif
14244
14245 #undef $ac_func
14246
14247 /* Override any gcc2 internal prototype to avoid an error.  */
14248 #ifdef __cplusplus
14249 extern "C"
14250 {
14251 #endif
14252 /* We use char because int might match the return type of a gcc2
14253    builtin and then its argument prototype would still apply.  */
14254 char $ac_func ();
14255 /* The GNU C library defines this for functions which it implements
14256     to always fail with ENOSYS.  Some functions are actually named
14257     something starting with __ and the normal name is an alias.  */
14258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14259 choke me
14260 #else
14261 char (*f) () = $ac_func;
14262 #endif
14263 #ifdef __cplusplus
14264 }
14265 #endif
14266
14267 int
14268 main ()
14269 {
14270 return f != $ac_func;
14271   ;
14272   return 0;
14273 }
14274 _ACEOF
14275 rm -f conftest.$ac_objext conftest$ac_exeext
14276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14277   (eval $ac_link) 2>conftest.er1
14278   ac_status=$?
14279   grep -v '^ *+' conftest.er1 >conftest.err
14280   rm -f conftest.er1
14281   cat conftest.err >&5
14282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283   (exit $ac_status); } &&
14284          { ac_try='test -z "$ac_c_werror_flag"
14285                          || test ! -s conftest.err'
14286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287   (eval $ac_try) 2>&5
14288   ac_status=$?
14289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290   (exit $ac_status); }; } &&
14291          { ac_try='test -s conftest$ac_exeext'
14292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14293   (eval $ac_try) 2>&5
14294   ac_status=$?
14295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296   (exit $ac_status); }; }; then
14297   eval "$as_ac_var=yes"
14298 else
14299   echo "$as_me: failed program was:" >&5
14300 sed 's/^/| /' conftest.$ac_ext >&5
14301
14302 eval "$as_ac_var=no"
14303 fi
14304 rm -f conftest.err conftest.$ac_objext \
14305       conftest$ac_exeext conftest.$ac_ext
14306 fi
14307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14308 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14309 if test `eval echo '${'$as_ac_var'}'` = yes; then
14310   cat >>confdefs.h <<_ACEOF
14311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14312 _ACEOF
14313
14314 else
14315   pgac_need_repl_snprintf=yes
14316 fi
14317 done
14318
14319 fi
14320
14321
14322 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
14323 # include/c.h will provide declarations.  Note this is a separate test
14324 # from whether the functions exist in the C library --- there are
14325 # systems that have the functions but don't bother to declare them :-(
14326
14327 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14328 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
14329 if test "${ac_cv_have_decl_snprintf+set}" = set; then
14330   echo $ECHO_N "(cached) $ECHO_C" >&6
14331 else
14332   cat >conftest.$ac_ext <<_ACEOF
14333 /* confdefs.h.  */
14334 _ACEOF
14335 cat confdefs.h >>conftest.$ac_ext
14336 cat >>conftest.$ac_ext <<_ACEOF
14337 /* end confdefs.h.  */
14338 $ac_includes_default
14339 int
14340 main ()
14341 {
14342 #ifndef snprintf
14343   char *p = (char *) snprintf;
14344 #endif
14345
14346   ;
14347   return 0;
14348 }
14349 _ACEOF
14350 rm -f conftest.$ac_objext
14351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14352   (eval $ac_compile) 2>conftest.er1
14353   ac_status=$?
14354   grep -v '^ *+' conftest.er1 >conftest.err
14355   rm -f conftest.er1
14356   cat conftest.err >&5
14357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358   (exit $ac_status); } &&
14359          { ac_try='test -z "$ac_c_werror_flag"
14360                          || test ! -s conftest.err'
14361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362   (eval $ac_try) 2>&5
14363   ac_status=$?
14364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365   (exit $ac_status); }; } &&
14366          { ac_try='test -s conftest.$ac_objext'
14367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14368   (eval $ac_try) 2>&5
14369   ac_status=$?
14370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371   (exit $ac_status); }; }; then
14372   ac_cv_have_decl_snprintf=yes
14373 else
14374   echo "$as_me: failed program was:" >&5
14375 sed 's/^/| /' conftest.$ac_ext >&5
14376
14377 ac_cv_have_decl_snprintf=no
14378 fi
14379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14380 fi
14381 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14382 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
14383 if test $ac_cv_have_decl_snprintf = yes; then
14384
14385 cat >>confdefs.h <<_ACEOF
14386 #define HAVE_DECL_SNPRINTF 1
14387 _ACEOF
14388
14389
14390 else
14391   cat >>confdefs.h <<_ACEOF
14392 #define HAVE_DECL_SNPRINTF 0
14393 _ACEOF
14394
14395
14396 fi
14397 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14398 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14399 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14400   echo $ECHO_N "(cached) $ECHO_C" >&6
14401 else
14402   cat >conftest.$ac_ext <<_ACEOF
14403 /* confdefs.h.  */
14404 _ACEOF
14405 cat confdefs.h >>conftest.$ac_ext
14406 cat >>conftest.$ac_ext <<_ACEOF
14407 /* end confdefs.h.  */
14408 $ac_includes_default
14409 int
14410 main ()
14411 {
14412 #ifndef vsnprintf
14413   char *p = (char *) vsnprintf;
14414 #endif
14415
14416   ;
14417   return 0;
14418 }
14419 _ACEOF
14420 rm -f conftest.$ac_objext
14421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14422   (eval $ac_compile) 2>conftest.er1
14423   ac_status=$?
14424   grep -v '^ *+' conftest.er1 >conftest.err
14425   rm -f conftest.er1
14426   cat conftest.err >&5
14427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428   (exit $ac_status); } &&
14429          { ac_try='test -z "$ac_c_werror_flag"
14430                          || test ! -s conftest.err'
14431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432   (eval $ac_try) 2>&5
14433   ac_status=$?
14434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435   (exit $ac_status); }; } &&
14436          { ac_try='test -s conftest.$ac_objext'
14437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438   (eval $ac_try) 2>&5
14439   ac_status=$?
14440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441   (exit $ac_status); }; }; then
14442   ac_cv_have_decl_vsnprintf=yes
14443 else
14444   echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14446
14447 ac_cv_have_decl_vsnprintf=no
14448 fi
14449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14450 fi
14451 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14452 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14453 if test $ac_cv_have_decl_vsnprintf = yes; then
14454
14455 cat >>confdefs.h <<_ACEOF
14456 #define HAVE_DECL_VSNPRINTF 1
14457 _ACEOF
14458
14459
14460 else
14461   cat >>confdefs.h <<_ACEOF
14462 #define HAVE_DECL_VSNPRINTF 0
14463 _ACEOF
14464
14465
14466 fi
14467
14468
14469
14470
14471 echo "$as_me:$LINENO: checking for isinf" >&5
14472 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
14473 if test "${ac_cv_func_isinf+set}" = set; then
14474   echo $ECHO_N "(cached) $ECHO_C" >&6
14475 else
14476   cat >conftest.$ac_ext <<_ACEOF
14477 /* confdefs.h.  */
14478 _ACEOF
14479 cat confdefs.h >>conftest.$ac_ext
14480 cat >>conftest.$ac_ext <<_ACEOF
14481 /* end confdefs.h.  */
14482
14483 #include <math.h>
14484 double glob_double;
14485
14486 int
14487 main ()
14488 {
14489 return isinf(glob_double) ? 0 : 1;
14490   ;
14491   return 0;
14492 }
14493 _ACEOF
14494 rm -f conftest.$ac_objext conftest$ac_exeext
14495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14496   (eval $ac_link) 2>conftest.er1
14497   ac_status=$?
14498   grep -v '^ *+' conftest.er1 >conftest.err
14499   rm -f conftest.er1
14500   cat conftest.err >&5
14501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502   (exit $ac_status); } &&
14503          { ac_try='test -z "$ac_c_werror_flag"
14504                          || test ! -s conftest.err'
14505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506   (eval $ac_try) 2>&5
14507   ac_status=$?
14508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509   (exit $ac_status); }; } &&
14510          { ac_try='test -s conftest$ac_exeext'
14511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512   (eval $ac_try) 2>&5
14513   ac_status=$?
14514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515   (exit $ac_status); }; }; then
14516   ac_cv_func_isinf=yes
14517 else
14518   echo "$as_me: failed program was:" >&5
14519 sed 's/^/| /' conftest.$ac_ext >&5
14520
14521 ac_cv_func_isinf=no
14522 fi
14523 rm -f conftest.err conftest.$ac_objext \
14524       conftest$ac_exeext conftest.$ac_ext
14525 fi
14526 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
14527 echo "${ECHO_T}$ac_cv_func_isinf" >&6
14528
14529 if test $ac_cv_func_isinf = yes ; then
14530
14531 cat >>confdefs.h <<\_ACEOF
14532 #define HAVE_ISINF 1
14533 _ACEOF
14534
14535 else
14536   case $LIBOBJS in
14537     "isinf.$ac_objext"   | \
14538   *" isinf.$ac_objext"   | \
14539     "isinf.$ac_objext "* | \
14540   *" isinf.$ac_objext "* ) ;;
14541   *) LIBOBJS="$LIBOBJS isinf.$ac_objext" ;;
14542 esac
14543
14544   # Look for a way to implement a substitute for isinf()
14545
14546
14547
14548
14549 for ac_func in fpclass fp_class fp_class_d class
14550 do
14551 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14552 echo "$as_me:$LINENO: checking for $ac_func" >&5
14553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14554 if eval "test \"\${$as_ac_var+set}\" = set"; then
14555   echo $ECHO_N "(cached) $ECHO_C" >&6
14556 else
14557   cat >conftest.$ac_ext <<_ACEOF
14558 /* confdefs.h.  */
14559 _ACEOF
14560 cat confdefs.h >>conftest.$ac_ext
14561 cat >>conftest.$ac_ext <<_ACEOF
14562 /* end confdefs.h.  */
14563 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14564    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14565 #define $ac_func innocuous_$ac_func
14566
14567 /* System header to define __stub macros and hopefully few prototypes,
14568     which can conflict with char $ac_func (); below.
14569     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14570     <limits.h> exists even on freestanding compilers.  */
14571
14572 #ifdef __STDC__
14573 # include <limits.h>
14574 #else
14575 # include <assert.h>
14576 #endif
14577
14578 #undef $ac_func
14579
14580 /* Override any gcc2 internal prototype to avoid an error.  */
14581 #ifdef __cplusplus
14582 extern "C"
14583 {
14584 #endif
14585 /* We use char because int might match the return type of a gcc2
14586    builtin and then its argument prototype would still apply.  */
14587 char $ac_func ();
14588 /* The GNU C library defines this for functions which it implements
14589     to always fail with ENOSYS.  Some functions are actually named
14590     something starting with __ and the normal name is an alias.  */
14591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14592 choke me
14593 #else
14594 char (*f) () = $ac_func;
14595 #endif
14596 #ifdef __cplusplus
14597 }
14598 #endif
14599
14600 int
14601 main ()
14602 {
14603 return f != $ac_func;
14604   ;
14605   return 0;
14606 }
14607 _ACEOF
14608 rm -f conftest.$ac_objext conftest$ac_exeext
14609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14610   (eval $ac_link) 2>conftest.er1
14611   ac_status=$?
14612   grep -v '^ *+' conftest.er1 >conftest.err
14613   rm -f conftest.er1
14614   cat conftest.err >&5
14615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616   (exit $ac_status); } &&
14617          { ac_try='test -z "$ac_c_werror_flag"
14618                          || test ! -s conftest.err'
14619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14620   (eval $ac_try) 2>&5
14621   ac_status=$?
14622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623   (exit $ac_status); }; } &&
14624          { ac_try='test -s conftest$ac_exeext'
14625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626   (eval $ac_try) 2>&5
14627   ac_status=$?
14628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629   (exit $ac_status); }; }; then
14630   eval "$as_ac_var=yes"
14631 else
14632   echo "$as_me: failed program was:" >&5
14633 sed 's/^/| /' conftest.$ac_ext >&5
14634
14635 eval "$as_ac_var=no"
14636 fi
14637 rm -f conftest.err conftest.$ac_objext \
14638       conftest$ac_exeext conftest.$ac_ext
14639 fi
14640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14641 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14642 if test `eval echo '${'$as_ac_var'}'` = yes; then
14643   cat >>confdefs.h <<_ACEOF
14644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14645 _ACEOF
14646  break
14647 fi
14648 done
14649
14650 fi
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strtol strtoul unsetenv
14666 do
14667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14668 echo "$as_me:$LINENO: checking for $ac_func" >&5
14669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14670 if eval "test \"\${$as_ac_var+set}\" = set"; then
14671   echo $ECHO_N "(cached) $ECHO_C" >&6
14672 else
14673   cat >conftest.$ac_ext <<_ACEOF
14674 /* confdefs.h.  */
14675 _ACEOF
14676 cat confdefs.h >>conftest.$ac_ext
14677 cat >>conftest.$ac_ext <<_ACEOF
14678 /* end confdefs.h.  */
14679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14680    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14681 #define $ac_func innocuous_$ac_func
14682
14683 /* System header to define __stub macros and hopefully few prototypes,
14684     which can conflict with char $ac_func (); below.
14685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14686     <limits.h> exists even on freestanding compilers.  */
14687
14688 #ifdef __STDC__
14689 # include <limits.h>
14690 #else
14691 # include <assert.h>
14692 #endif
14693
14694 #undef $ac_func
14695
14696 /* Override any gcc2 internal prototype to avoid an error.  */
14697 #ifdef __cplusplus
14698 extern "C"
14699 {
14700 #endif
14701 /* We use char because int might match the return type of a gcc2
14702    builtin and then its argument prototype would still apply.  */
14703 char $ac_func ();
14704 /* The GNU C library defines this for functions which it implements
14705     to always fail with ENOSYS.  Some functions are actually named
14706     something starting with __ and the normal name is an alias.  */
14707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14708 choke me
14709 #else
14710 char (*f) () = $ac_func;
14711 #endif
14712 #ifdef __cplusplus
14713 }
14714 #endif
14715
14716 int
14717 main ()
14718 {
14719 return f != $ac_func;
14720   ;
14721   return 0;
14722 }
14723 _ACEOF
14724 rm -f conftest.$ac_objext conftest$ac_exeext
14725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14726   (eval $ac_link) 2>conftest.er1
14727   ac_status=$?
14728   grep -v '^ *+' conftest.er1 >conftest.err
14729   rm -f conftest.er1
14730   cat conftest.err >&5
14731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732   (exit $ac_status); } &&
14733          { ac_try='test -z "$ac_c_werror_flag"
14734                          || test ! -s conftest.err'
14735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14736   (eval $ac_try) 2>&5
14737   ac_status=$?
14738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739   (exit $ac_status); }; } &&
14740          { ac_try='test -s conftest$ac_exeext'
14741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14742   (eval $ac_try) 2>&5
14743   ac_status=$?
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   (exit $ac_status); }; }; then
14746   eval "$as_ac_var=yes"
14747 else
14748   echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.$ac_ext >&5
14750
14751 eval "$as_ac_var=no"
14752 fi
14753 rm -f conftest.err conftest.$ac_objext \
14754       conftest$ac_exeext conftest.$ac_ext
14755 fi
14756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14758 if test `eval echo '${'$as_ac_var'}'` = yes; then
14759   cat >>confdefs.h <<_ACEOF
14760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14761 _ACEOF
14762
14763 else
14764   case $LIBOBJS in
14765     "$ac_func.$ac_objext"   | \
14766   *" $ac_func.$ac_objext"   | \
14767     "$ac_func.$ac_objext "* | \
14768   *" $ac_func.$ac_objext "* ) ;;
14769   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14770 esac
14771
14772 fi
14773 done
14774
14775
14776
14777 # System's version of getaddrinfo(), if any, may be used only if we found
14778 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
14779 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
14780 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
14781 # because we want to use our own getaddrinfo.c on Windows anyway.)
14782 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
14783
14784 for ac_func in getaddrinfo
14785 do
14786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14787 echo "$as_me:$LINENO: checking for $ac_func" >&5
14788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14789 if eval "test \"\${$as_ac_var+set}\" = set"; then
14790   echo $ECHO_N "(cached) $ECHO_C" >&6
14791 else
14792   cat >conftest.$ac_ext <<_ACEOF
14793 /* confdefs.h.  */
14794 _ACEOF
14795 cat confdefs.h >>conftest.$ac_ext
14796 cat >>conftest.$ac_ext <<_ACEOF
14797 /* end confdefs.h.  */
14798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14799    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14800 #define $ac_func innocuous_$ac_func
14801
14802 /* System header to define __stub macros and hopefully few prototypes,
14803     which can conflict with char $ac_func (); below.
14804     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14805     <limits.h> exists even on freestanding compilers.  */
14806
14807 #ifdef __STDC__
14808 # include <limits.h>
14809 #else
14810 # include <assert.h>
14811 #endif
14812
14813 #undef $ac_func
14814
14815 /* Override any gcc2 internal prototype to avoid an error.  */
14816 #ifdef __cplusplus
14817 extern "C"
14818 {
14819 #endif
14820 /* We use char because int might match the return type of a gcc2
14821    builtin and then its argument prototype would still apply.  */
14822 char $ac_func ();
14823 /* The GNU C library defines this for functions which it implements
14824     to always fail with ENOSYS.  Some functions are actually named
14825     something starting with __ and the normal name is an alias.  */
14826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14827 choke me
14828 #else
14829 char (*f) () = $ac_func;
14830 #endif
14831 #ifdef __cplusplus
14832 }
14833 #endif
14834
14835 int
14836 main ()
14837 {
14838 return f != $ac_func;
14839   ;
14840   return 0;
14841 }
14842 _ACEOF
14843 rm -f conftest.$ac_objext conftest$ac_exeext
14844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14845   (eval $ac_link) 2>conftest.er1
14846   ac_status=$?
14847   grep -v '^ *+' conftest.er1 >conftest.err
14848   rm -f conftest.er1
14849   cat conftest.err >&5
14850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851   (exit $ac_status); } &&
14852          { ac_try='test -z "$ac_c_werror_flag"
14853                          || test ! -s conftest.err'
14854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855   (eval $ac_try) 2>&5
14856   ac_status=$?
14857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858   (exit $ac_status); }; } &&
14859          { ac_try='test -s conftest$ac_exeext'
14860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861   (eval $ac_try) 2>&5
14862   ac_status=$?
14863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864   (exit $ac_status); }; }; then
14865   eval "$as_ac_var=yes"
14866 else
14867   echo "$as_me: failed program was:" >&5
14868 sed 's/^/| /' conftest.$ac_ext >&5
14869
14870 eval "$as_ac_var=no"
14871 fi
14872 rm -f conftest.err conftest.$ac_objext \
14873       conftest$ac_exeext conftest.$ac_ext
14874 fi
14875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14877 if test `eval echo '${'$as_ac_var'}'` = yes; then
14878   cat >>confdefs.h <<_ACEOF
14879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14880 _ACEOF
14881
14882 else
14883   case $LIBOBJS in
14884     "$ac_func.$ac_objext"   | \
14885   *" $ac_func.$ac_objext"   | \
14886     "$ac_func.$ac_objext "* | \
14887   *" $ac_func.$ac_objext "* ) ;;
14888   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14889 esac
14890
14891 fi
14892 done
14893
14894
14895 else
14896   case $LIBOBJS in
14897     "getaddrinfo.$ac_objext"   | \
14898   *" getaddrinfo.$ac_objext"   | \
14899     "getaddrinfo.$ac_objext "* | \
14900   *" getaddrinfo.$ac_objext "* ) ;;
14901   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
14902 esac
14903
14904 fi
14905
14906 # similarly, use system's getopt_long() only if system provides struct option.
14907 if test x"$ac_cv_type_struct_option" = xyes ; then
14908
14909 for ac_func in getopt_long
14910 do
14911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14912 echo "$as_me:$LINENO: checking for $ac_func" >&5
14913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14914 if eval "test \"\${$as_ac_var+set}\" = set"; then
14915   echo $ECHO_N "(cached) $ECHO_C" >&6
14916 else
14917   cat >conftest.$ac_ext <<_ACEOF
14918 /* confdefs.h.  */
14919 _ACEOF
14920 cat confdefs.h >>conftest.$ac_ext
14921 cat >>conftest.$ac_ext <<_ACEOF
14922 /* end confdefs.h.  */
14923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14924    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14925 #define $ac_func innocuous_$ac_func
14926
14927 /* System header to define __stub macros and hopefully few prototypes,
14928     which can conflict with char $ac_func (); below.
14929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14930     <limits.h> exists even on freestanding compilers.  */
14931
14932 #ifdef __STDC__
14933 # include <limits.h>
14934 #else
14935 # include <assert.h>
14936 #endif
14937
14938 #undef $ac_func
14939
14940 /* Override any gcc2 internal prototype to avoid an error.  */
14941 #ifdef __cplusplus
14942 extern "C"
14943 {
14944 #endif
14945 /* We use char because int might match the return type of a gcc2
14946    builtin and then its argument prototype would still apply.  */
14947 char $ac_func ();
14948 /* The GNU C library defines this for functions which it implements
14949     to always fail with ENOSYS.  Some functions are actually named
14950     something starting with __ and the normal name is an alias.  */
14951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14952 choke me
14953 #else
14954 char (*f) () = $ac_func;
14955 #endif
14956 #ifdef __cplusplus
14957 }
14958 #endif
14959
14960 int
14961 main ()
14962 {
14963 return f != $ac_func;
14964   ;
14965   return 0;
14966 }
14967 _ACEOF
14968 rm -f conftest.$ac_objext conftest$ac_exeext
14969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14970   (eval $ac_link) 2>conftest.er1
14971   ac_status=$?
14972   grep -v '^ *+' conftest.er1 >conftest.err
14973   rm -f conftest.er1
14974   cat conftest.err >&5
14975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976   (exit $ac_status); } &&
14977          { ac_try='test -z "$ac_c_werror_flag"
14978                          || test ! -s conftest.err'
14979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14980   (eval $ac_try) 2>&5
14981   ac_status=$?
14982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983   (exit $ac_status); }; } &&
14984          { ac_try='test -s conftest$ac_exeext'
14985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14986   (eval $ac_try) 2>&5
14987   ac_status=$?
14988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989   (exit $ac_status); }; }; then
14990   eval "$as_ac_var=yes"
14991 else
14992   echo "$as_me: failed program was:" >&5
14993 sed 's/^/| /' conftest.$ac_ext >&5
14994
14995 eval "$as_ac_var=no"
14996 fi
14997 rm -f conftest.err conftest.$ac_objext \
14998       conftest$ac_exeext conftest.$ac_ext
14999 fi
15000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15001 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15002 if test `eval echo '${'$as_ac_var'}'` = yes; then
15003   cat >>confdefs.h <<_ACEOF
15004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15005 _ACEOF
15006
15007 else
15008   case $LIBOBJS in
15009     "$ac_func.$ac_objext"   | \
15010   *" $ac_func.$ac_objext"   | \
15011     "$ac_func.$ac_objext "* | \
15012   *" $ac_func.$ac_objext "* ) ;;
15013   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15014 esac
15015
15016 fi
15017 done
15018
15019
15020 else
15021   case $LIBOBJS in
15022     "getopt_long.$ac_objext"   | \
15023   *" getopt_long.$ac_objext"   | \
15024     "getopt_long.$ac_objext "* | \
15025   *" getopt_long.$ac_objext "* ) ;;
15026   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" ;;
15027 esac
15028
15029 fi
15030
15031 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
15032 # We override the previous test that said fseeko/ftello didn't exist
15033 # OS tests are also done in include/c.h and port/fseeko.c
15034 case $host_os in bsdi*|netbsd*)
15035 ac_cv_func_fseeko=yes
15036 esac
15037
15038 # Solaris has a very slow qsort in certain cases, so we replace it:
15039 #   http://forum.sun.com/thread.jspa?forumID=4&threadID=7231
15040 # Supposedly it is fixed in Solaris, but not sure which version, and
15041 # no confirmed testing.  2005-12-16
15042 if test "$PORTNAME" = "solaris"; then
15043 case $LIBOBJS in
15044     "qsort.$ac_objext"   | \
15045   *" qsort.$ac_objext"   | \
15046     "qsort.$ac_objext "* | \
15047   *" qsort.$ac_objext "* ) ;;
15048   *) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
15049 esac
15050
15051 fi
15052
15053 # Win32 support
15054 if test "$PORTNAME" = "win32"; then
15055 case $LIBOBJS in
15056     "gettimeofday.$ac_objext"   | \
15057   *" gettimeofday.$ac_objext"   | \
15058     "gettimeofday.$ac_objext "* | \
15059   *" gettimeofday.$ac_objext "* ) ;;
15060   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
15061 esac
15062
15063 case $LIBOBJS in
15064     "kill.$ac_objext"   | \
15065   *" kill.$ac_objext"   | \
15066     "kill.$ac_objext "* | \
15067   *" kill.$ac_objext "* ) ;;
15068   *) LIBOBJS="$LIBOBJS kill.$ac_objext" ;;
15069 esac
15070
15071 case $LIBOBJS in
15072     "open.$ac_objext"   | \
15073   *" open.$ac_objext"   | \
15074     "open.$ac_objext "* | \
15075   *" open.$ac_objext "* ) ;;
15076   *) LIBOBJS="$LIBOBJS open.$ac_objext" ;;
15077 esac
15078
15079 case $LIBOBJS in
15080     "rand.$ac_objext"   | \
15081   *" rand.$ac_objext"   | \
15082     "rand.$ac_objext "* | \
15083   *" rand.$ac_objext "* ) ;;
15084   *) LIBOBJS="$LIBOBJS rand.$ac_objext" ;;
15085 esac
15086
15087 case $LIBOBJS in
15088     "win32error.$ac_objext"   | \
15089   *" win32error.$ac_objext"   | \
15090     "win32error.$ac_objext "* | \
15091   *" win32error.$ac_objext "* ) ;;
15092   *) LIBOBJS="$LIBOBJS win32error.$ac_objext" ;;
15093 esac
15094
15095
15096 cat >>confdefs.h <<\_ACEOF
15097 #define HAVE_SYMLINK 1
15098 _ACEOF
15099
15100 fi
15101
15102 if test "$with_readline" = yes; then
15103   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
15104 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
15105 cat >conftest.$ac_ext <<_ACEOF
15106 /* confdefs.h.  */
15107 _ACEOF
15108 cat confdefs.h >>conftest.$ac_ext
15109 cat >>conftest.$ac_ext <<_ACEOF
15110 /* end confdefs.h.  */
15111 #include <stdio.h>
15112 #ifdef HAVE_READLINE_READLINE_H
15113 # include <readline/readline.h>
15114 #elif defined(HAVE_READLINE_H)
15115 # include <readline.h>
15116 #endif
15117
15118 int
15119 main ()
15120 {
15121 rl_completion_append_character = 'x';
15122   ;
15123   return 0;
15124 }
15125 _ACEOF
15126 rm -f conftest.$ac_objext conftest$ac_exeext
15127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15128   (eval $ac_link) 2>conftest.er1
15129   ac_status=$?
15130   grep -v '^ *+' conftest.er1 >conftest.err
15131   rm -f conftest.er1
15132   cat conftest.err >&5
15133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134   (exit $ac_status); } &&
15135          { ac_try='test -z "$ac_c_werror_flag"
15136                          || test ! -s conftest.err'
15137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15138   (eval $ac_try) 2>&5
15139   ac_status=$?
15140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141   (exit $ac_status); }; } &&
15142          { ac_try='test -s conftest$ac_exeext'
15143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15144   (eval $ac_try) 2>&5
15145   ac_status=$?
15146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147   (exit $ac_status); }; }; then
15148   echo "$as_me:$LINENO: result: yes" >&5
15149 echo "${ECHO_T}yes" >&6
15150
15151 cat >>confdefs.h <<\_ACEOF
15152 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
15153 _ACEOF
15154
15155 else
15156   echo "$as_me: failed program was:" >&5
15157 sed 's/^/| /' conftest.$ac_ext >&5
15158
15159 echo "$as_me:$LINENO: result: no" >&5
15160 echo "${ECHO_T}no" >&6
15161 fi
15162 rm -f conftest.err conftest.$ac_objext \
15163       conftest$ac_exeext conftest.$ac_ext
15164
15165
15166 for ac_func in rl_completion_matches rl_filename_completion_function
15167 do
15168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15169 echo "$as_me:$LINENO: checking for $ac_func" >&5
15170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15171 if eval "test \"\${$as_ac_var+set}\" = set"; then
15172   echo $ECHO_N "(cached) $ECHO_C" >&6
15173 else
15174   cat >conftest.$ac_ext <<_ACEOF
15175 /* confdefs.h.  */
15176 _ACEOF
15177 cat confdefs.h >>conftest.$ac_ext
15178 cat >>conftest.$ac_ext <<_ACEOF
15179 /* end confdefs.h.  */
15180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15181    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15182 #define $ac_func innocuous_$ac_func
15183
15184 /* System header to define __stub macros and hopefully few prototypes,
15185     which can conflict with char $ac_func (); below.
15186     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15187     <limits.h> exists even on freestanding compilers.  */
15188
15189 #ifdef __STDC__
15190 # include <limits.h>
15191 #else
15192 # include <assert.h>
15193 #endif
15194
15195 #undef $ac_func
15196
15197 /* Override any gcc2 internal prototype to avoid an error.  */
15198 #ifdef __cplusplus
15199 extern "C"
15200 {
15201 #endif
15202 /* We use char because int might match the return type of a gcc2
15203    builtin and then its argument prototype would still apply.  */
15204 char $ac_func ();
15205 /* The GNU C library defines this for functions which it implements
15206     to always fail with ENOSYS.  Some functions are actually named
15207     something starting with __ and the normal name is an alias.  */
15208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15209 choke me
15210 #else
15211 char (*f) () = $ac_func;
15212 #endif
15213 #ifdef __cplusplus
15214 }
15215 #endif
15216
15217 int
15218 main ()
15219 {
15220 return f != $ac_func;
15221   ;
15222   return 0;
15223 }
15224 _ACEOF
15225 rm -f conftest.$ac_objext conftest$ac_exeext
15226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15227   (eval $ac_link) 2>conftest.er1
15228   ac_status=$?
15229   grep -v '^ *+' conftest.er1 >conftest.err
15230   rm -f conftest.er1
15231   cat conftest.err >&5
15232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233   (exit $ac_status); } &&
15234          { ac_try='test -z "$ac_c_werror_flag"
15235                          || test ! -s conftest.err'
15236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15237   (eval $ac_try) 2>&5
15238   ac_status=$?
15239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240   (exit $ac_status); }; } &&
15241          { ac_try='test -s conftest$ac_exeext'
15242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15243   (eval $ac_try) 2>&5
15244   ac_status=$?
15245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246   (exit $ac_status); }; }; then
15247   eval "$as_ac_var=yes"
15248 else
15249   echo "$as_me: failed program was:" >&5
15250 sed 's/^/| /' conftest.$ac_ext >&5
15251
15252 eval "$as_ac_var=no"
15253 fi
15254 rm -f conftest.err conftest.$ac_objext \
15255       conftest$ac_exeext conftest.$ac_ext
15256 fi
15257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15258 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15259 if test `eval echo '${'$as_ac_var'}'` = yes; then
15260   cat >>confdefs.h <<_ACEOF
15261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15262 _ACEOF
15263
15264 fi
15265 done
15266
15267
15268 for ac_func in replace_history_entry
15269 do
15270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15271 echo "$as_me:$LINENO: checking for $ac_func" >&5
15272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15273 if eval "test \"\${$as_ac_var+set}\" = set"; then
15274   echo $ECHO_N "(cached) $ECHO_C" >&6
15275 else
15276   cat >conftest.$ac_ext <<_ACEOF
15277 /* confdefs.h.  */
15278 _ACEOF
15279 cat confdefs.h >>conftest.$ac_ext
15280 cat >>conftest.$ac_ext <<_ACEOF
15281 /* end confdefs.h.  */
15282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15283    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15284 #define $ac_func innocuous_$ac_func
15285
15286 /* System header to define __stub macros and hopefully few prototypes,
15287     which can conflict with char $ac_func (); below.
15288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15289     <limits.h> exists even on freestanding compilers.  */
15290
15291 #ifdef __STDC__
15292 # include <limits.h>
15293 #else
15294 # include <assert.h>
15295 #endif
15296
15297 #undef $ac_func
15298
15299 /* Override any gcc2 internal prototype to avoid an error.  */
15300 #ifdef __cplusplus
15301 extern "C"
15302 {
15303 #endif
15304 /* We use char because int might match the return type of a gcc2
15305    builtin and then its argument prototype would still apply.  */
15306 char $ac_func ();
15307 /* The GNU C library defines this for functions which it implements
15308     to always fail with ENOSYS.  Some functions are actually named
15309     something starting with __ and the normal name is an alias.  */
15310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15311 choke me
15312 #else
15313 char (*f) () = $ac_func;
15314 #endif
15315 #ifdef __cplusplus
15316 }
15317 #endif
15318
15319 int
15320 main ()
15321 {
15322 return f != $ac_func;
15323   ;
15324   return 0;
15325 }
15326 _ACEOF
15327 rm -f conftest.$ac_objext conftest$ac_exeext
15328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15329   (eval $ac_link) 2>conftest.er1
15330   ac_status=$?
15331   grep -v '^ *+' conftest.er1 >conftest.err
15332   rm -f conftest.er1
15333   cat conftest.err >&5
15334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335   (exit $ac_status); } &&
15336          { ac_try='test -z "$ac_c_werror_flag"
15337                          || test ! -s conftest.err'
15338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339   (eval $ac_try) 2>&5
15340   ac_status=$?
15341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342   (exit $ac_status); }; } &&
15343          { ac_try='test -s conftest$ac_exeext'
15344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345   (eval $ac_try) 2>&5
15346   ac_status=$?
15347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348   (exit $ac_status); }; }; then
15349   eval "$as_ac_var=yes"
15350 else
15351   echo "$as_me: failed program was:" >&5
15352 sed 's/^/| /' conftest.$ac_ext >&5
15353
15354 eval "$as_ac_var=no"
15355 fi
15356 rm -f conftest.err conftest.$ac_objext \
15357       conftest$ac_exeext conftest.$ac_ext
15358 fi
15359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15360 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15361 if test `eval echo '${'$as_ac_var'}'` = yes; then
15362   cat >>confdefs.h <<_ACEOF
15363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15364 _ACEOF
15365
15366 fi
15367 done
15368
15369 fi
15370
15371
15372 echo "$as_me:$LINENO: checking for finite" >&5
15373 echo $ECHO_N "checking for finite... $ECHO_C" >&6
15374 cat >conftest.$ac_ext <<_ACEOF
15375 /* confdefs.h.  */
15376 _ACEOF
15377 cat confdefs.h >>conftest.$ac_ext
15378 cat >>conftest.$ac_ext <<_ACEOF
15379 /* end confdefs.h.  */
15380
15381 #include <math.h>
15382 double glob_double;
15383
15384 int
15385 main ()
15386 {
15387 return finite(glob_double) ? 0 : 1;
15388   ;
15389   return 0;
15390 }
15391 _ACEOF
15392 rm -f conftest.$ac_objext conftest$ac_exeext
15393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15394   (eval $ac_link) 2>conftest.er1
15395   ac_status=$?
15396   grep -v '^ *+' conftest.er1 >conftest.err
15397   rm -f conftest.er1
15398   cat conftest.err >&5
15399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400   (exit $ac_status); } &&
15401          { ac_try='test -z "$ac_c_werror_flag"
15402                          || test ! -s conftest.err'
15403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404   (eval $ac_try) 2>&5
15405   ac_status=$?
15406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407   (exit $ac_status); }; } &&
15408          { ac_try='test -s conftest$ac_exeext'
15409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410   (eval $ac_try) 2>&5
15411   ac_status=$?
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); }; }; then
15414
15415 cat >>confdefs.h <<\_ACEOF
15416 #define HAVE_FINITE 1
15417 _ACEOF
15418
15419 echo "$as_me:$LINENO: result: yes" >&5
15420 echo "${ECHO_T}yes" >&6
15421 else
15422   echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15424
15425 echo "$as_me:$LINENO: result: no" >&5
15426 echo "${ECHO_T}no" >&6
15427 fi
15428 rm -f conftest.err conftest.$ac_objext \
15429       conftest$ac_exeext conftest.$ac_ext
15430
15431 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
15432 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
15433 cat >conftest.$ac_ext <<_ACEOF
15434 /* confdefs.h.  */
15435 _ACEOF
15436 cat confdefs.h >>conftest.$ac_ext
15437 cat >>conftest.$ac_ext <<_ACEOF
15438 /* end confdefs.h.  */
15439 #include <setjmp.h>
15440 int
15441 main ()
15442 {
15443 sigjmp_buf x; sigsetjmp(x, 1);
15444   ;
15445   return 0;
15446 }
15447 _ACEOF
15448 rm -f conftest.$ac_objext conftest$ac_exeext
15449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15450   (eval $ac_link) 2>conftest.er1
15451   ac_status=$?
15452   grep -v '^ *+' conftest.er1 >conftest.err
15453   rm -f conftest.er1
15454   cat conftest.err >&5
15455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456   (exit $ac_status); } &&
15457          { ac_try='test -z "$ac_c_werror_flag"
15458                          || test ! -s conftest.err'
15459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15460   (eval $ac_try) 2>&5
15461   ac_status=$?
15462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463   (exit $ac_status); }; } &&
15464          { ac_try='test -s conftest$ac_exeext'
15465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466   (eval $ac_try) 2>&5
15467   ac_status=$?
15468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469   (exit $ac_status); }; }; then
15470
15471 cat >>confdefs.h <<\_ACEOF
15472 #define HAVE_SIGSETJMP 1
15473 _ACEOF
15474
15475 echo "$as_me:$LINENO: result: yes" >&5
15476 echo "${ECHO_T}yes" >&6
15477 else
15478   echo "$as_me: failed program was:" >&5
15479 sed 's/^/| /' conftest.$ac_ext >&5
15480
15481 echo "$as_me:$LINENO: result: no" >&5
15482 echo "${ECHO_T}no" >&6
15483 fi
15484 rm -f conftest.err conftest.$ac_objext \
15485       conftest$ac_exeext conftest.$ac_ext
15486
15487 echo "$as_me:$LINENO: checking for syslog" >&5
15488 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
15489 if test "${ac_cv_func_syslog+set}" = set; then
15490   echo $ECHO_N "(cached) $ECHO_C" >&6
15491 else
15492   cat >conftest.$ac_ext <<_ACEOF
15493 /* confdefs.h.  */
15494 _ACEOF
15495 cat confdefs.h >>conftest.$ac_ext
15496 cat >>conftest.$ac_ext <<_ACEOF
15497 /* end confdefs.h.  */
15498 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
15499    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15500 #define syslog innocuous_syslog
15501
15502 /* System header to define __stub macros and hopefully few prototypes,
15503     which can conflict with char syslog (); below.
15504     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15505     <limits.h> exists even on freestanding compilers.  */
15506
15507 #ifdef __STDC__
15508 # include <limits.h>
15509 #else
15510 # include <assert.h>
15511 #endif
15512
15513 #undef syslog
15514
15515 /* Override any gcc2 internal prototype to avoid an error.  */
15516 #ifdef __cplusplus
15517 extern "C"
15518 {
15519 #endif
15520 /* We use char because int might match the return type of a gcc2
15521    builtin and then its argument prototype would still apply.  */
15522 char syslog ();
15523 /* The GNU C library defines this for functions which it implements
15524     to always fail with ENOSYS.  Some functions are actually named
15525     something starting with __ and the normal name is an alias.  */
15526 #if defined (__stub_syslog) || defined (__stub___syslog)
15527 choke me
15528 #else
15529 char (*f) () = syslog;
15530 #endif
15531 #ifdef __cplusplus
15532 }
15533 #endif
15534
15535 int
15536 main ()
15537 {
15538 return f != syslog;
15539   ;
15540   return 0;
15541 }
15542 _ACEOF
15543 rm -f conftest.$ac_objext conftest$ac_exeext
15544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15545   (eval $ac_link) 2>conftest.er1
15546   ac_status=$?
15547   grep -v '^ *+' conftest.er1 >conftest.err
15548   rm -f conftest.er1
15549   cat conftest.err >&5
15550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551   (exit $ac_status); } &&
15552          { ac_try='test -z "$ac_c_werror_flag"
15553                          || test ! -s conftest.err'
15554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555   (eval $ac_try) 2>&5
15556   ac_status=$?
15557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558   (exit $ac_status); }; } &&
15559          { ac_try='test -s conftest$ac_exeext'
15560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15561   (eval $ac_try) 2>&5
15562   ac_status=$?
15563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564   (exit $ac_status); }; }; then
15565   ac_cv_func_syslog=yes
15566 else
15567   echo "$as_me: failed program was:" >&5
15568 sed 's/^/| /' conftest.$ac_ext >&5
15569
15570 ac_cv_func_syslog=no
15571 fi
15572 rm -f conftest.err conftest.$ac_objext \
15573       conftest$ac_exeext conftest.$ac_ext
15574 fi
15575 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
15576 echo "${ECHO_T}$ac_cv_func_syslog" >&6
15577 if test $ac_cv_func_syslog = yes; then
15578   if test "${ac_cv_header_syslog_h+set}" = set; then
15579   echo "$as_me:$LINENO: checking for syslog.h" >&5
15580 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
15581 if test "${ac_cv_header_syslog_h+set}" = set; then
15582   echo $ECHO_N "(cached) $ECHO_C" >&6
15583 fi
15584 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
15585 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
15586 else
15587   # Is the header compilable?
15588 echo "$as_me:$LINENO: checking syslog.h usability" >&5
15589 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
15590 cat >conftest.$ac_ext <<_ACEOF
15591 /* confdefs.h.  */
15592 _ACEOF
15593 cat confdefs.h >>conftest.$ac_ext
15594 cat >>conftest.$ac_ext <<_ACEOF
15595 /* end confdefs.h.  */
15596 $ac_includes_default
15597 #include <syslog.h>
15598 _ACEOF
15599 rm -f conftest.$ac_objext
15600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15601   (eval $ac_compile) 2>conftest.er1
15602   ac_status=$?
15603   grep -v '^ *+' conftest.er1 >conftest.err
15604   rm -f conftest.er1
15605   cat conftest.err >&5
15606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607   (exit $ac_status); } &&
15608          { ac_try='test -z "$ac_c_werror_flag"
15609                          || test ! -s conftest.err'
15610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15611   (eval $ac_try) 2>&5
15612   ac_status=$?
15613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614   (exit $ac_status); }; } &&
15615          { ac_try='test -s conftest.$ac_objext'
15616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15617   (eval $ac_try) 2>&5
15618   ac_status=$?
15619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620   (exit $ac_status); }; }; then
15621   ac_header_compiler=yes
15622 else
15623   echo "$as_me: failed program was:" >&5
15624 sed 's/^/| /' conftest.$ac_ext >&5
15625
15626 ac_header_compiler=no
15627 fi
15628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15629 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15630 echo "${ECHO_T}$ac_header_compiler" >&6
15631
15632 # Is the header present?
15633 echo "$as_me:$LINENO: checking syslog.h presence" >&5
15634 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
15635 cat >conftest.$ac_ext <<_ACEOF
15636 /* confdefs.h.  */
15637 _ACEOF
15638 cat confdefs.h >>conftest.$ac_ext
15639 cat >>conftest.$ac_ext <<_ACEOF
15640 /* end confdefs.h.  */
15641 #include <syslog.h>
15642 _ACEOF
15643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15644   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15645   ac_status=$?
15646   grep -v '^ *+' conftest.er1 >conftest.err
15647   rm -f conftest.er1
15648   cat conftest.err >&5
15649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650   (exit $ac_status); } >/dev/null; then
15651   if test -s conftest.err; then
15652     ac_cpp_err=$ac_c_preproc_warn_flag
15653     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15654   else
15655     ac_cpp_err=
15656   fi
15657 else
15658   ac_cpp_err=yes
15659 fi
15660 if test -z "$ac_cpp_err"; then
15661   ac_header_preproc=yes
15662 else
15663   echo "$as_me: failed program was:" >&5
15664 sed 's/^/| /' conftest.$ac_ext >&5
15665
15666   ac_header_preproc=no
15667 fi
15668 rm -f conftest.err conftest.$ac_ext
15669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15670 echo "${ECHO_T}$ac_header_preproc" >&6
15671
15672 # So?  What about this header?
15673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15674   yes:no: )
15675     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
15676 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15677     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
15678 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
15679     ac_header_preproc=yes
15680     ;;
15681   no:yes:* )
15682     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
15683 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
15684     { echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
15685 echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
15686     { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
15687 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
15688     { echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
15689 echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15690     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
15691 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
15692     { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
15693 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
15694     (
15695       cat <<\_ASBOX
15696 ## ---------------------------------------- ##
15697 ## Report this to pgsql-bugs@postgresql.org ##
15698 ## ---------------------------------------- ##
15699 _ASBOX
15700     ) |
15701       sed "s/^/$as_me: WARNING:     /" >&2
15702     ;;
15703 esac
15704 echo "$as_me:$LINENO: checking for syslog.h" >&5
15705 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
15706 if test "${ac_cv_header_syslog_h+set}" = set; then
15707   echo $ECHO_N "(cached) $ECHO_C" >&6
15708 else
15709   ac_cv_header_syslog_h=$ac_header_preproc
15710 fi
15711 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
15712 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
15713
15714 fi
15715 if test $ac_cv_header_syslog_h = yes; then
15716
15717 cat >>confdefs.h <<\_ACEOF
15718 #define HAVE_SYSLOG 1
15719 _ACEOF
15720
15721 fi
15722
15723
15724 fi
15725
15726
15727 echo "$as_me:$LINENO: checking for optreset" >&5
15728 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
15729 if test "${pgac_cv_var_int_optreset+set}" = set; then
15730   echo $ECHO_N "(cached) $ECHO_C" >&6
15731 else
15732   cat >conftest.$ac_ext <<_ACEOF
15733 /* confdefs.h.  */
15734 _ACEOF
15735 cat confdefs.h >>conftest.$ac_ext
15736 cat >>conftest.$ac_ext <<_ACEOF
15737 /* end confdefs.h.  */
15738 #include <unistd.h>
15739 int
15740 main ()
15741 {
15742 extern int optreset; optreset = 1;
15743   ;
15744   return 0;
15745 }
15746 _ACEOF
15747 rm -f conftest.$ac_objext conftest$ac_exeext
15748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15749   (eval $ac_link) 2>conftest.er1
15750   ac_status=$?
15751   grep -v '^ *+' conftest.er1 >conftest.err
15752   rm -f conftest.er1
15753   cat conftest.err >&5
15754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755   (exit $ac_status); } &&
15756          { ac_try='test -z "$ac_c_werror_flag"
15757                          || test ! -s conftest.err'
15758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759   (eval $ac_try) 2>&5
15760   ac_status=$?
15761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762   (exit $ac_status); }; } &&
15763          { ac_try='test -s conftest$ac_exeext'
15764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15765   (eval $ac_try) 2>&5
15766   ac_status=$?
15767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768   (exit $ac_status); }; }; then
15769   pgac_cv_var_int_optreset=yes
15770 else
15771   echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15773
15774 pgac_cv_var_int_optreset=no
15775 fi
15776 rm -f conftest.err conftest.$ac_objext \
15777       conftest$ac_exeext conftest.$ac_ext
15778 fi
15779 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
15780 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
15781 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
15782
15783 cat >>confdefs.h <<\_ACEOF
15784 #define HAVE_INT_OPTRESET 1
15785 _ACEOF
15786
15787 fi
15788
15789
15790
15791 for ac_func in strtoll strtoq
15792 do
15793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15794 echo "$as_me:$LINENO: checking for $ac_func" >&5
15795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15796 if eval "test \"\${$as_ac_var+set}\" = set"; then
15797   echo $ECHO_N "(cached) $ECHO_C" >&6
15798 else
15799   cat >conftest.$ac_ext <<_ACEOF
15800 /* confdefs.h.  */
15801 _ACEOF
15802 cat confdefs.h >>conftest.$ac_ext
15803 cat >>conftest.$ac_ext <<_ACEOF
15804 /* end confdefs.h.  */
15805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15806    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15807 #define $ac_func innocuous_$ac_func
15808
15809 /* System header to define __stub macros and hopefully few prototypes,
15810     which can conflict with char $ac_func (); below.
15811     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15812     <limits.h> exists even on freestanding compilers.  */
15813
15814 #ifdef __STDC__
15815 # include <limits.h>
15816 #else
15817 # include <assert.h>
15818 #endif
15819
15820 #undef $ac_func
15821
15822 /* Override any gcc2 internal prototype to avoid an error.  */
15823 #ifdef __cplusplus
15824 extern "C"
15825 {
15826 #endif
15827 /* We use char because int might match the return type of a gcc2
15828    builtin and then its argument prototype would still apply.  */
15829 char $ac_func ();
15830 /* The GNU C library defines this for functions which it implements
15831     to always fail with ENOSYS.  Some functions are actually named
15832     something starting with __ and the normal name is an alias.  */
15833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15834 choke me
15835 #else
15836 char (*f) () = $ac_func;
15837 #endif
15838 #ifdef __cplusplus
15839 }
15840 #endif
15841
15842 int
15843 main ()
15844 {
15845 return f != $ac_func;
15846   ;
15847   return 0;
15848 }
15849 _ACEOF
15850 rm -f conftest.$ac_objext conftest$ac_exeext
15851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15852   (eval $ac_link) 2>conftest.er1
15853   ac_status=$?
15854   grep -v '^ *+' conftest.er1 >conftest.err
15855   rm -f conftest.er1
15856   cat conftest.err >&5
15857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858   (exit $ac_status); } &&
15859          { ac_try='test -z "$ac_c_werror_flag"
15860                          || test ! -s conftest.err'
15861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862   (eval $ac_try) 2>&5
15863   ac_status=$?
15864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865   (exit $ac_status); }; } &&
15866          { ac_try='test -s conftest$ac_exeext'
15867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15868   (eval $ac_try) 2>&5
15869   ac_status=$?
15870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871   (exit $ac_status); }; }; then
15872   eval "$as_ac_var=yes"
15873 else
15874   echo "$as_me: failed program was:" >&5
15875 sed 's/^/| /' conftest.$ac_ext >&5
15876
15877 eval "$as_ac_var=no"
15878 fi
15879 rm -f conftest.err conftest.$ac_objext \
15880       conftest$ac_exeext conftest.$ac_ext
15881 fi
15882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15883 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15884 if test `eval echo '${'$as_ac_var'}'` = yes; then
15885   cat >>confdefs.h <<_ACEOF
15886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15887 _ACEOF
15888  break
15889 fi
15890 done
15891
15892
15893
15894 for ac_func in strtoull strtouq
15895 do
15896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15897 echo "$as_me:$LINENO: checking for $ac_func" >&5
15898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15899 if eval "test \"\${$as_ac_var+set}\" = set"; then
15900   echo $ECHO_N "(cached) $ECHO_C" >&6
15901 else
15902   cat >conftest.$ac_ext <<_ACEOF
15903 /* confdefs.h.  */
15904 _ACEOF
15905 cat confdefs.h >>conftest.$ac_ext
15906 cat >>conftest.$ac_ext <<_ACEOF
15907 /* end confdefs.h.  */
15908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15910 #define $ac_func innocuous_$ac_func
15911
15912 /* System header to define __stub macros and hopefully few prototypes,
15913     which can conflict with char $ac_func (); below.
15914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15915     <limits.h> exists even on freestanding compilers.  */
15916
15917 #ifdef __STDC__
15918 # include <limits.h>
15919 #else
15920 # include <assert.h>
15921 #endif
15922
15923 #undef $ac_func
15924
15925 /* Override any gcc2 internal prototype to avoid an error.  */
15926 #ifdef __cplusplus
15927 extern "C"
15928 {
15929 #endif
15930 /* We use char because int might match the return type of a gcc2
15931    builtin and then its argument prototype would still apply.  */
15932 char $ac_func ();
15933 /* The GNU C library defines this for functions which it implements
15934     to always fail with ENOSYS.  Some functions are actually named
15935     something starting with __ and the normal name is an alias.  */
15936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15937 choke me
15938 #else
15939 char (*f) () = $ac_func;
15940 #endif
15941 #ifdef __cplusplus
15942 }
15943 #endif
15944
15945 int
15946 main ()
15947 {
15948 return f != $ac_func;
15949   ;
15950   return 0;
15951 }
15952 _ACEOF
15953 rm -f conftest.$ac_objext conftest$ac_exeext
15954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15955   (eval $ac_link) 2>conftest.er1
15956   ac_status=$?
15957   grep -v '^ *+' conftest.er1 >conftest.err
15958   rm -f conftest.er1
15959   cat conftest.err >&5
15960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961   (exit $ac_status); } &&
15962          { ac_try='test -z "$ac_c_werror_flag"
15963                          || test ! -s conftest.err'
15964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15965   (eval $ac_try) 2>&5
15966   ac_status=$?
15967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968   (exit $ac_status); }; } &&
15969          { ac_try='test -s conftest$ac_exeext'
15970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15971   (eval $ac_try) 2>&5
15972   ac_status=$?
15973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974   (exit $ac_status); }; }; then
15975   eval "$as_ac_var=yes"
15976 else
15977   echo "$as_me: failed program was:" >&5
15978 sed 's/^/| /' conftest.$ac_ext >&5
15979
15980 eval "$as_ac_var=no"
15981 fi
15982 rm -f conftest.err conftest.$ac_objext \
15983       conftest$ac_exeext conftest.$ac_ext
15984 fi
15985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15987 if test `eval echo '${'$as_ac_var'}'` = yes; then
15988   cat >>confdefs.h <<_ACEOF
15989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15990 _ACEOF
15991  break
15992 fi
15993 done
15994
15995
15996 # Check for one of atexit() or on_exit()
15997
15998 for ac_func in atexit
15999 do
16000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16001 echo "$as_me:$LINENO: checking for $ac_func" >&5
16002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16003 if eval "test \"\${$as_ac_var+set}\" = set"; then
16004   echo $ECHO_N "(cached) $ECHO_C" >&6
16005 else
16006   cat >conftest.$ac_ext <<_ACEOF
16007 /* confdefs.h.  */
16008 _ACEOF
16009 cat confdefs.h >>conftest.$ac_ext
16010 cat >>conftest.$ac_ext <<_ACEOF
16011 /* end confdefs.h.  */
16012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16013    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16014 #define $ac_func innocuous_$ac_func
16015
16016 /* System header to define __stub macros and hopefully few prototypes,
16017     which can conflict with char $ac_func (); below.
16018     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16019     <limits.h> exists even on freestanding compilers.  */
16020
16021 #ifdef __STDC__
16022 # include <limits.h>
16023 #else
16024 # include <assert.h>
16025 #endif
16026
16027 #undef $ac_func
16028
16029 /* Override any gcc2 internal prototype to avoid an error.  */
16030 #ifdef __cplusplus
16031 extern "C"
16032 {
16033 #endif
16034 /* We use char because int might match the return type of a gcc2
16035    builtin and then its argument prototype would still apply.  */
16036 char $ac_func ();
16037 /* The GNU C library defines this for functions which it implements
16038     to always fail with ENOSYS.  Some functions are actually named
16039     something starting with __ and the normal name is an alias.  */
16040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16041 choke me
16042 #else
16043 char (*f) () = $ac_func;
16044 #endif
16045 #ifdef __cplusplus
16046 }
16047 #endif
16048
16049 int
16050 main ()
16051 {
16052 return f != $ac_func;
16053   ;
16054   return 0;
16055 }
16056 _ACEOF
16057 rm -f conftest.$ac_objext conftest$ac_exeext
16058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16059   (eval $ac_link) 2>conftest.er1
16060   ac_status=$?
16061   grep -v '^ *+' conftest.er1 >conftest.err
16062   rm -f conftest.er1
16063   cat conftest.err >&5
16064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065   (exit $ac_status); } &&
16066          { ac_try='test -z "$ac_c_werror_flag"
16067                          || test ! -s conftest.err'
16068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069   (eval $ac_try) 2>&5
16070   ac_status=$?
16071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072   (exit $ac_status); }; } &&
16073          { ac_try='test -s conftest$ac_exeext'
16074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16075   (eval $ac_try) 2>&5
16076   ac_status=$?
16077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078   (exit $ac_status); }; }; then
16079   eval "$as_ac_var=yes"
16080 else
16081   echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16083
16084 eval "$as_ac_var=no"
16085 fi
16086 rm -f conftest.err conftest.$ac_objext \
16087       conftest$ac_exeext conftest.$ac_ext
16088 fi
16089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16090 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16091 if test `eval echo '${'$as_ac_var'}'` = yes; then
16092   cat >>confdefs.h <<_ACEOF
16093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16094 _ACEOF
16095
16096 else
16097
16098 for ac_func in on_exit
16099 do
16100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16101 echo "$as_me:$LINENO: checking for $ac_func" >&5
16102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16103 if eval "test \"\${$as_ac_var+set}\" = set"; then
16104   echo $ECHO_N "(cached) $ECHO_C" >&6
16105 else
16106   cat >conftest.$ac_ext <<_ACEOF
16107 /* confdefs.h.  */
16108 _ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h.  */
16112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16114 #define $ac_func innocuous_$ac_func
16115
16116 /* System header to define __stub macros and hopefully few prototypes,
16117     which can conflict with char $ac_func (); below.
16118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16119     <limits.h> exists even on freestanding compilers.  */
16120
16121 #ifdef __STDC__
16122 # include <limits.h>
16123 #else
16124 # include <assert.h>
16125 #endif
16126
16127 #undef $ac_func
16128
16129 /* Override any gcc2 internal prototype to avoid an error.  */
16130 #ifdef __cplusplus
16131 extern "C"
16132 {
16133 #endif
16134 /* We use char because int might match the return type of a gcc2
16135    builtin and then its argument prototype would still apply.  */
16136 char $ac_func ();
16137 /* The GNU C library defines this for functions which it implements
16138     to always fail with ENOSYS.  Some functions are actually named
16139     something starting with __ and the normal name is an alias.  */
16140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16141 choke me
16142 #else
16143 char (*f) () = $ac_func;
16144 #endif
16145 #ifdef __cplusplus
16146 }
16147 #endif
16148
16149 int
16150 main ()
16151 {
16152 return f != $ac_func;
16153   ;
16154   return 0;
16155 }
16156 _ACEOF
16157 rm -f conftest.$ac_objext conftest$ac_exeext
16158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16159   (eval $ac_link) 2>conftest.er1
16160   ac_status=$?
16161   grep -v '^ *+' conftest.er1 >conftest.err
16162   rm -f conftest.er1
16163   cat conftest.err >&5
16164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165   (exit $ac_status); } &&
16166          { ac_try='test -z "$ac_c_werror_flag"
16167                          || test ! -s conftest.err'
16168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16169   (eval $ac_try) 2>&5
16170   ac_status=$?
16171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172   (exit $ac_status); }; } &&
16173          { ac_try='test -s conftest$ac_exeext'
16174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16175   (eval $ac_try) 2>&5
16176   ac_status=$?
16177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178   (exit $ac_status); }; }; then
16179   eval "$as_ac_var=yes"
16180 else
16181   echo "$as_me: failed program was:" >&5
16182 sed 's/^/| /' conftest.$ac_ext >&5
16183
16184 eval "$as_ac_var=no"
16185 fi
16186 rm -f conftest.err conftest.$ac_objext \
16187       conftest$ac_exeext conftest.$ac_ext
16188 fi
16189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16190 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16191 if test `eval echo '${'$as_ac_var'}'` = yes; then
16192   cat >>confdefs.h <<_ACEOF
16193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16194 _ACEOF
16195
16196 else
16197   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
16198 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
16199    { (exit 1); exit 1; }; }
16200 fi
16201 done
16202
16203 fi
16204 done
16205
16206
16207 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16208 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16209 if test "${ac_cv_sys_largefile_source+set}" = set; then
16210   echo $ECHO_N "(cached) $ECHO_C" >&6
16211 else
16212   while :; do
16213   ac_cv_sys_largefile_source=no
16214   cat >conftest.$ac_ext <<_ACEOF
16215 /* confdefs.h.  */
16216 _ACEOF
16217 cat confdefs.h >>conftest.$ac_ext
16218 cat >>conftest.$ac_ext <<_ACEOF
16219 /* end confdefs.h.  */
16220 #include <stdio.h>
16221 int
16222 main ()
16223 {
16224 return !fseeko;
16225   ;
16226   return 0;
16227 }
16228 _ACEOF
16229 rm -f conftest.$ac_objext
16230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16231   (eval $ac_compile) 2>conftest.er1
16232   ac_status=$?
16233   grep -v '^ *+' conftest.er1 >conftest.err
16234   rm -f conftest.er1
16235   cat conftest.err >&5
16236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237   (exit $ac_status); } &&
16238          { ac_try='test -z "$ac_c_werror_flag"
16239                          || test ! -s conftest.err'
16240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241   (eval $ac_try) 2>&5
16242   ac_status=$?
16243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244   (exit $ac_status); }; } &&
16245          { ac_try='test -s conftest.$ac_objext'
16246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16247   (eval $ac_try) 2>&5
16248   ac_status=$?
16249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250   (exit $ac_status); }; }; then
16251   break
16252 else
16253   echo "$as_me: failed program was:" >&5
16254 sed 's/^/| /' conftest.$ac_ext >&5
16255
16256 fi
16257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16258   cat >conftest.$ac_ext <<_ACEOF
16259 /* confdefs.h.  */
16260 _ACEOF
16261 cat confdefs.h >>conftest.$ac_ext
16262 cat >>conftest.$ac_ext <<_ACEOF
16263 /* end confdefs.h.  */
16264 #define _LARGEFILE_SOURCE 1
16265 #include <stdio.h>
16266 int
16267 main ()
16268 {
16269 return !fseeko;
16270   ;
16271   return 0;
16272 }
16273 _ACEOF
16274 rm -f conftest.$ac_objext
16275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16276   (eval $ac_compile) 2>conftest.er1
16277   ac_status=$?
16278   grep -v '^ *+' conftest.er1 >conftest.err
16279   rm -f conftest.er1
16280   cat conftest.err >&5
16281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282   (exit $ac_status); } &&
16283          { ac_try='test -z "$ac_c_werror_flag"
16284                          || test ! -s conftest.err'
16285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16286   (eval $ac_try) 2>&5
16287   ac_status=$?
16288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289   (exit $ac_status); }; } &&
16290          { ac_try='test -s conftest.$ac_objext'
16291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16292   (eval $ac_try) 2>&5
16293   ac_status=$?
16294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295   (exit $ac_status); }; }; then
16296   ac_cv_sys_largefile_source=1; break
16297 else
16298   echo "$as_me: failed program was:" >&5
16299 sed 's/^/| /' conftest.$ac_ext >&5
16300
16301 fi
16302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16303   break
16304 done
16305 fi
16306 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16307 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16308 if test "$ac_cv_sys_largefile_source" != no; then
16309
16310 cat >>confdefs.h <<_ACEOF
16311 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16312 _ACEOF
16313
16314 fi
16315 rm -f conftest*
16316
16317 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16318 # in glibc 2.1.3, but that breaks too many other things.
16319 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16320 echo "$as_me:$LINENO: checking for fseeko" >&5
16321 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16322 if test "${ac_cv_func_fseeko+set}" = set; then
16323   echo $ECHO_N "(cached) $ECHO_C" >&6
16324 else
16325   cat >conftest.$ac_ext <<_ACEOF
16326 /* confdefs.h.  */
16327 _ACEOF
16328 cat confdefs.h >>conftest.$ac_ext
16329 cat >>conftest.$ac_ext <<_ACEOF
16330 /* end confdefs.h.  */
16331 #include <stdio.h>
16332 int
16333 main ()
16334 {
16335 return fseeko && fseeko (stdin, 0, 0);
16336   ;
16337   return 0;
16338 }
16339 _ACEOF
16340 rm -f conftest.$ac_objext conftest$ac_exeext
16341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16342   (eval $ac_link) 2>conftest.er1
16343   ac_status=$?
16344   grep -v '^ *+' conftest.er1 >conftest.err
16345   rm -f conftest.er1
16346   cat conftest.err >&5
16347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348   (exit $ac_status); } &&
16349          { ac_try='test -z "$ac_c_werror_flag"
16350                          || test ! -s conftest.err'
16351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352   (eval $ac_try) 2>&5
16353   ac_status=$?
16354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355   (exit $ac_status); }; } &&
16356          { ac_try='test -s conftest$ac_exeext'
16357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358   (eval $ac_try) 2>&5
16359   ac_status=$?
16360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361   (exit $ac_status); }; }; then
16362   ac_cv_func_fseeko=yes
16363 else
16364   echo "$as_me: failed program was:" >&5
16365 sed 's/^/| /' conftest.$ac_ext >&5
16366
16367 ac_cv_func_fseeko=no
16368 fi
16369 rm -f conftest.err conftest.$ac_objext \
16370       conftest$ac_exeext conftest.$ac_ext
16371 fi
16372 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16373 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16374 if test $ac_cv_func_fseeko = yes; then
16375
16376 cat >>confdefs.h <<\_ACEOF
16377 #define HAVE_FSEEKO 1
16378 _ACEOF
16379
16380 fi
16381
16382
16383 #
16384 # Pthreads
16385 #
16386 # For each platform, we need to know about any special compile and link
16387 # libraries, and whether the normal C function names are thread-safe.
16388 # See the comment at the top of src/port/thread.c for more information.
16389 #
16390 if test "$enable_thread_safety" = yes; then
16391
16392
16393
16394
16395 ac_ext=c
16396 ac_cpp='$CPP $CPPFLAGS'
16397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16400
16401 acx_pthread_ok=no
16402
16403 # We used to check for pthread.h first, but this fails if pthread.h
16404 # requires special compiler flags (e.g. on True64 or Sequent).
16405 # It gets checked for in the link test anyway.
16406
16407 # First of all, check if the user has set any of the PTHREAD_LIBS,
16408 # etcetera environment variables, and if threads linking works using
16409 # them:
16410 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16411         save_CFLAGS="$CFLAGS"
16412         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16413         save_LIBS="$LIBS"
16414         LIBS="$PTHREAD_LIBS $LIBS"
16415         echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16416 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
16417         cat >conftest.$ac_ext <<_ACEOF
16418 /* confdefs.h.  */
16419 _ACEOF
16420 cat confdefs.h >>conftest.$ac_ext
16421 cat >>conftest.$ac_ext <<_ACEOF
16422 /* end confdefs.h.  */
16423
16424 /* Override any gcc2 internal prototype to avoid an error.  */
16425 #ifdef __cplusplus
16426 extern "C"
16427 #endif
16428 /* We use char because int might match the return type of a gcc2
16429    builtin and then its argument prototype would still apply.  */
16430 char pthread_join ();
16431 int
16432 main ()
16433 {
16434 pthread_join ();
16435   ;
16436   return 0;
16437 }
16438 _ACEOF
16439 rm -f conftest.$ac_objext conftest$ac_exeext
16440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16441   (eval $ac_link) 2>conftest.er1
16442   ac_status=$?
16443   grep -v '^ *+' conftest.er1 >conftest.err
16444   rm -f conftest.er1
16445   cat conftest.err >&5
16446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447   (exit $ac_status); } &&
16448          { ac_try='test -z "$ac_c_werror_flag"
16449                          || test ! -s conftest.err'
16450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16451   (eval $ac_try) 2>&5
16452   ac_status=$?
16453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454   (exit $ac_status); }; } &&
16455          { ac_try='test -s conftest$ac_exeext'
16456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457   (eval $ac_try) 2>&5
16458   ac_status=$?
16459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460   (exit $ac_status); }; }; then
16461   acx_pthread_ok=yes
16462 else
16463   echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.$ac_ext >&5
16465
16466 fi
16467 rm -f conftest.err conftest.$ac_objext \
16468       conftest$ac_exeext conftest.$ac_ext
16469         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16470 echo "${ECHO_T}$acx_pthread_ok" >&6
16471         if test x"$acx_pthread_ok" = xno; then
16472                 PTHREAD_LIBS=""
16473                 PTHREAD_CFLAGS=""
16474         fi
16475         LIBS="$save_LIBS"
16476         CFLAGS="$save_CFLAGS"
16477 fi
16478
16479 # We must check for the threads library under a number of different
16480 # names; the ordering is very important because some systems
16481 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16482 # libraries is broken (non-POSIX).
16483
16484 # Create a list of thread flags to try.  Items starting with a "-" are
16485 # C compiler flags, and other items are library names, except for "none"
16486 # which indicates that we try without any flags at all, and "pthread-config"
16487 # which is a program returning the flags for the Pth emulation library.
16488
16489 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
16490
16491 # The ordering *is* (sometimes) important.  Some notes on the
16492 # individual items follow:
16493
16494 # pthreads: AIX (must check this before -lpthread)
16495 # none: in case threads are in libc; should be tried before -Kthread and
16496 #       other compiler flags to prevent continual compiler warnings
16497 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16498 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16499 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16500 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16501 # -pthreads: Solaris/gcc
16502 # -mthreads: Mingw32/gcc, Lynx/gcc
16503 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16504 #      doesn't hurt to check since this sometimes defines pthreads too;
16505 #      also defines -D_REENTRANT)
16506 # pthread: Linux, etcetera
16507 # --thread-safe: KAI C++
16508 # pthread-config: use pthread-config program (for GNU Pth library)
16509
16510 case "${host_cpu}-${host_os}" in
16511         *solaris*)
16512
16513         # On Solaris (at least, for some versions), libc contains stubbed
16514         # (non-functional) versions of the pthreads routines, so link-based
16515         # tests will erroneously succeed.  (We need to link with -pthread or
16516         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
16517         # a function called by this macro, so we could check for that, but
16518         # who knows whether they'll stub that too in a future libc.)  So,
16519         # we'll just look for -pthreads and -lpthread first:
16520
16521         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
16522         ;;
16523 esac
16524
16525 if test x"$acx_pthread_ok" = xno; then
16526 for flag in $acx_pthread_flags; do
16527
16528         tryPTHREAD_CFLAGS=""
16529         tryPTHREAD_LIBS=""
16530         case $flag in
16531                 none)
16532                 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
16533 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
16534                 ;;
16535
16536                 -*)
16537                 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
16538 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
16539                 tryPTHREAD_CFLAGS="$flag"
16540                 ;;
16541
16542                 pthread-config)
16543                 # skip this if we already have flags defined, for PostgreSQL
16544                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
16545                 # Extract the first word of "pthread-config", so it can be a program name with args.
16546 set dummy pthread-config; ac_word=$2
16547 echo "$as_me:$LINENO: checking for $ac_word" >&5
16548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16549 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
16550   echo $ECHO_N "(cached) $ECHO_C" >&6
16551 else
16552   if test -n "$acx_pthread_config"; then
16553   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16554 else
16555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16556 for as_dir in $PATH
16557 do
16558   IFS=$as_save_IFS
16559   test -z "$as_dir" && as_dir=.
16560   for ac_exec_ext in '' $ac_executable_extensions; do
16561   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16562     ac_cv_prog_acx_pthread_config="yes"
16563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16564     break 2
16565   fi
16566 done
16567 done
16568
16569   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16570 fi
16571 fi
16572 acx_pthread_config=$ac_cv_prog_acx_pthread_config
16573 if test -n "$acx_pthread_config"; then
16574   echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
16575 echo "${ECHO_T}$acx_pthread_config" >&6
16576 else
16577   echo "$as_me:$LINENO: result: no" >&5
16578 echo "${ECHO_T}no" >&6
16579 fi
16580
16581                 if test x"$acx_pthread_config" = xno; then continue; fi
16582                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
16583                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16584                 ;;
16585
16586                 *)
16587                 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
16588 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
16589                 tryPTHREAD_LIBS="-l$flag"
16590                 ;;
16591         esac
16592
16593         save_LIBS="$LIBS"
16594         save_CFLAGS="$CFLAGS"
16595         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
16596         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
16597
16598         # Check for various functions.  We must include pthread.h,
16599         # since some functions may be macros.  (On the Sequent, we
16600         # need a special flag -Kthread to make this header compile.)
16601         # We check for pthread_join because it is in -lpthread on IRIX
16602         # while pthread_create is in libc.  We check for pthread_attr_init
16603         # due to DEC craziness with -lpthreads.  We check for
16604         # pthread_cleanup_push because it is one of the few pthread
16605         # functions on Solaris that doesn't have a non-functional libc stub.
16606         # We try pthread_create on general principles.
16607         cat >conftest.$ac_ext <<_ACEOF
16608 /* confdefs.h.  */
16609 _ACEOF
16610 cat confdefs.h >>conftest.$ac_ext
16611 cat >>conftest.$ac_ext <<_ACEOF
16612 /* end confdefs.h.  */
16613 #include <pthread.h>
16614 int
16615 main ()
16616 {
16617 pthread_t th; pthread_join(th, 0);
16618                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
16619                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16620   ;
16621   return 0;
16622 }
16623 _ACEOF
16624 rm -f conftest.$ac_objext conftest$ac_exeext
16625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16626   (eval $ac_link) 2>conftest.er1
16627   ac_status=$?
16628   grep -v '^ *+' conftest.er1 >conftest.err
16629   rm -f conftest.er1
16630   cat conftest.err >&5
16631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632   (exit $ac_status); } &&
16633          { ac_try='test -z "$ac_c_werror_flag"
16634                          || test ! -s conftest.err'
16635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16636   (eval $ac_try) 2>&5
16637   ac_status=$?
16638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639   (exit $ac_status); }; } &&
16640          { ac_try='test -s conftest$ac_exeext'
16641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16642   (eval $ac_try) 2>&5
16643   ac_status=$?
16644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645   (exit $ac_status); }; }; then
16646   acx_pthread_ok=yes
16647 else
16648   echo "$as_me: failed program was:" >&5
16649 sed 's/^/| /' conftest.$ac_ext >&5
16650
16651 acx_pthread_ok=no
16652 fi
16653 rm -f conftest.err conftest.$ac_objext \
16654       conftest$ac_exeext conftest.$ac_ext
16655
16656         if test "x$acx_pthread_ok" = xyes; then
16657             # Don't use options that are ignored by the compiler.
16658             # We find them by checking stderror.
16659             cat >conftest.$ac_ext <<_ACEOF
16660 int
16661 main (int argc, char **argv)
16662 {
16663   (void) argc;
16664   (void) argv;
16665   return 0;
16666 }
16667 _ACEOF
16668             rm -f conftest.$ac_objext conftest$ac_exeext
16669             if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
16670                 # we continue with more flags because Linux needs -lpthread
16671                 # for libpq builds on PostgreSQL.  The test above only
16672                 # tests for building binaries, not shared libraries.
16673                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
16674                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
16675             else   acx_pthread_ok=no
16676             fi
16677         fi
16678
16679         LIBS="$save_LIBS"
16680         CFLAGS="$save_CFLAGS"
16681
16682         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16683 echo "${ECHO_T}$acx_pthread_ok" >&6
16684 done
16685 fi
16686
16687 # Various other checks:
16688 if test "x$acx_pthread_ok" = xyes; then
16689         save_LIBS="$LIBS"
16690         LIBS="$PTHREAD_LIBS $LIBS"
16691         save_CFLAGS="$CFLAGS"
16692         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16693
16694         # Detect AIX lossage: threads are created detached by default
16695         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
16696         echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
16697 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
16698         cat >conftest.$ac_ext <<_ACEOF
16699 /* confdefs.h.  */
16700 _ACEOF
16701 cat confdefs.h >>conftest.$ac_ext
16702 cat >>conftest.$ac_ext <<_ACEOF
16703 /* end confdefs.h.  */
16704 #include <pthread.h>
16705 int
16706 main ()
16707 {
16708 int attr=PTHREAD_CREATE_JOINABLE;
16709   ;
16710   return 0;
16711 }
16712 _ACEOF
16713 rm -f conftest.$ac_objext conftest$ac_exeext
16714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16715   (eval $ac_link) 2>conftest.er1
16716   ac_status=$?
16717   grep -v '^ *+' conftest.er1 >conftest.err
16718   rm -f conftest.er1
16719   cat conftest.err >&5
16720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721   (exit $ac_status); } &&
16722          { ac_try='test -z "$ac_c_werror_flag"
16723                          || test ! -s conftest.err'
16724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725   (eval $ac_try) 2>&5
16726   ac_status=$?
16727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728   (exit $ac_status); }; } &&
16729          { ac_try='test -s conftest$ac_exeext'
16730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16731   (eval $ac_try) 2>&5
16732   ac_status=$?
16733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734   (exit $ac_status); }; }; then
16735   ok=PTHREAD_CREATE_JOINABLE
16736 else
16737   echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16739
16740 ok=unknown
16741 fi
16742 rm -f conftest.err conftest.$ac_objext \
16743       conftest$ac_exeext conftest.$ac_ext
16744         if test x"$ok" = xunknown; then
16745                 cat >conftest.$ac_ext <<_ACEOF
16746 /* confdefs.h.  */
16747 _ACEOF
16748 cat confdefs.h >>conftest.$ac_ext
16749 cat >>conftest.$ac_ext <<_ACEOF
16750 /* end confdefs.h.  */
16751 #include <pthread.h>
16752 int
16753 main ()
16754 {
16755 int attr=PTHREAD_CREATE_UNDETACHED;
16756   ;
16757   return 0;
16758 }
16759 _ACEOF
16760 rm -f conftest.$ac_objext conftest$ac_exeext
16761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16762   (eval $ac_link) 2>conftest.er1
16763   ac_status=$?
16764   grep -v '^ *+' conftest.er1 >conftest.err
16765   rm -f conftest.er1
16766   cat conftest.err >&5
16767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768   (exit $ac_status); } &&
16769          { ac_try='test -z "$ac_c_werror_flag"
16770                          || test ! -s conftest.err'
16771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16772   (eval $ac_try) 2>&5
16773   ac_status=$?
16774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775   (exit $ac_status); }; } &&
16776          { ac_try='test -s conftest$ac_exeext'
16777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16778   (eval $ac_try) 2>&5
16779   ac_status=$?
16780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781   (exit $ac_status); }; }; then
16782   ok=PTHREAD_CREATE_UNDETACHED
16783 else
16784   echo "$as_me: failed program was:" >&5
16785 sed 's/^/| /' conftest.$ac_ext >&5
16786
16787 ok=unknown
16788 fi
16789 rm -f conftest.err conftest.$ac_objext \
16790       conftest$ac_exeext conftest.$ac_ext
16791         fi
16792         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
16793
16794 cat >>confdefs.h <<\_ACEOF
16795 #define PTHREAD_CREATE_JOINABLE $ok
16796 _ACEOF
16797
16798         fi
16799         echo "$as_me:$LINENO: result: ${ok}" >&5
16800 echo "${ECHO_T}${ok}" >&6
16801         if test x"$ok" = xunknown; then
16802                 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
16803 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
16804         fi
16805
16806         echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
16807 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
16808         flag=no
16809 # We always add these in PostgreSQL
16810 #       case "${host_cpu}-${host_os}" in
16811 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16812 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16813 #       esac
16814         echo "$as_me:$LINENO: result: ${flag}" >&5
16815 echo "${ECHO_T}${flag}" >&6
16816         if test "x$flag" != xno; then
16817                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16818         fi
16819
16820         LIBS="$save_LIBS"
16821         CFLAGS="$save_CFLAGS"
16822
16823 # Supporting cc_r would require a special CC in all places that
16824 # use libpq, and that is ugly, so we don't do it.  Users can still
16825 # define their compiler as cc_r to do thread builds of everything.
16826         # More AIX lossage: must compile with cc_r
16827         # Extract the first word of "cc_r", so it can be a program name with args.
16828 set dummy cc_r; ac_word=$2
16829 echo "$as_me:$LINENO: checking for $ac_word" >&5
16830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16831 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
16832   echo $ECHO_N "(cached) $ECHO_C" >&6
16833 else
16834   if test -n "$PTHREAD_CC"; then
16835   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16836 else
16837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16838 for as_dir in $PATH
16839 do
16840   IFS=$as_save_IFS
16841   test -z "$as_dir" && as_dir=.
16842   for ac_exec_ext in '' $ac_executable_extensions; do
16843   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16844     ac_cv_prog_PTHREAD_CC="cc_r"
16845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16846     break 2
16847   fi
16848 done
16849 done
16850
16851   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
16852 fi
16853 fi
16854 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16855 if test -n "$PTHREAD_CC"; then
16856   echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
16857 echo "${ECHO_T}$PTHREAD_CC" >&6
16858 else
16859   echo "$as_me:$LINENO: result: no" >&5
16860 echo "${ECHO_T}no" >&6
16861 fi
16862
16863 else
16864         PTHREAD_CC="$CC"
16865 fi
16866
16867
16868
16869
16870
16871 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16872 if test x"$acx_pthread_ok" = xyes; then
16873
16874 cat >>confdefs.h <<\_ACEOF
16875 #define HAVE_PTHREAD 1
16876 _ACEOF
16877
16878         :
16879 else
16880         acx_pthread_ok=no
16881
16882 fi
16883 ac_ext=c
16884 ac_cpp='$CPP $CPPFLAGS'
16885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16888
16889         # set thread flags
16890
16891 # Some platforms use these, so just defineed them.  They can't hurt if they
16892 # are not supported.
16893 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
16894
16895
16896 # At this point, we don't want to muck with the compiler name for threading.
16897 # Let's see who fails, perhaps AIX.  2004-04-23
16898 if test "$PTHREAD_CC" != "$CC"; then
16899 { { echo "$as_me:$LINENO: error:
16900 PostgreSQL does not support platforms that require a special
16901 compiler binary for thread-safety.
16902 " >&5
16903 echo "$as_me: error:
16904 PostgreSQL does not support platforms that require a special
16905 compiler binary for thread-safety.
16906 " >&2;}
16907    { (exit 1); exit 1; }; }
16908 fi
16909
16910 if test "$THREAD_SUPPORT" = no; then
16911 { { echo "$as_me:$LINENO: error:
16912 Cannot enable threads on your platform.
16913 Your platform is known to not support thread-safe programs.
16914 For details, compile and run src/bin/pg_thread_test.
16915 " >&5
16916 echo "$as_me: error:
16917 Cannot enable threads on your platform.
16918 Your platform is known to not support thread-safe programs.
16919 For details, compile and run src/bin/pg_thread_test.
16920 " >&2;}
16921    { (exit 1); exit 1; }; }
16922 fi
16923
16924 # Check for *_r functions
16925 _CFLAGS="$CFLAGS"
16926 _LIBS="$LIBS"
16927 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16928 LIBS="$LIBS $PTHREAD_LIBS"
16929
16930 if test "${ac_cv_header_pthread_h+set}" = set; then
16931   echo "$as_me:$LINENO: checking for pthread.h" >&5
16932 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
16933 if test "${ac_cv_header_pthread_h+set}" = set; then
16934   echo $ECHO_N "(cached) $ECHO_C" >&6
16935 fi
16936 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
16937 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
16938 else
16939   # Is the header compilable?
16940 echo "$as_me:$LINENO: checking pthread.h usability" >&5
16941 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
16942 cat >conftest.$ac_ext <<_ACEOF
16943 /* confdefs.h.  */
16944 _ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h.  */
16948 $ac_includes_default
16949 #include <pthread.h>
16950 _ACEOF
16951 rm -f conftest.$ac_objext
16952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16953   (eval $ac_compile) 2>conftest.er1
16954   ac_status=$?
16955   grep -v '^ *+' conftest.er1 >conftest.err
16956   rm -f conftest.er1
16957   cat conftest.err >&5
16958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959   (exit $ac_status); } &&
16960          { ac_try='test -z "$ac_c_werror_flag"
16961                          || test ! -s conftest.err'
16962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963   (eval $ac_try) 2>&5
16964   ac_status=$?
16965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966   (exit $ac_status); }; } &&
16967          { ac_try='test -s conftest.$ac_objext'
16968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969   (eval $ac_try) 2>&5
16970   ac_status=$?
16971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972   (exit $ac_status); }; }; then
16973   ac_header_compiler=yes
16974 else
16975   echo "$as_me: failed program was:" >&5
16976 sed 's/^/| /' conftest.$ac_ext >&5
16977
16978 ac_header_compiler=no
16979 fi
16980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16982 echo "${ECHO_T}$ac_header_compiler" >&6
16983
16984 # Is the header present?
16985 echo "$as_me:$LINENO: checking pthread.h presence" >&5
16986 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
16987 cat >conftest.$ac_ext <<_ACEOF
16988 /* confdefs.h.  */
16989 _ACEOF
16990 cat confdefs.h >>conftest.$ac_ext
16991 cat >>conftest.$ac_ext <<_ACEOF
16992 /* end confdefs.h.  */
16993 #include <pthread.h>
16994 _ACEOF
16995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16996   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16997   ac_status=$?
16998   grep -v '^ *+' conftest.er1 >conftest.err
16999   rm -f conftest.er1
17000   cat conftest.err >&5
17001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002   (exit $ac_status); } >/dev/null; then
17003   if test -s conftest.err; then
17004     ac_cpp_err=$ac_c_preproc_warn_flag
17005     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17006   else
17007     ac_cpp_err=
17008   fi
17009 else
17010   ac_cpp_err=yes
17011 fi
17012 if test -z "$ac_cpp_err"; then
17013   ac_header_preproc=yes
17014 else
17015   echo "$as_me: failed program was:" >&5
17016 sed 's/^/| /' conftest.$ac_ext >&5
17017
17018   ac_header_preproc=no
17019 fi
17020 rm -f conftest.err conftest.$ac_ext
17021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17022 echo "${ECHO_T}$ac_header_preproc" >&6
17023
17024 # So?  What about this header?
17025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17026   yes:no: )
17027     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
17028 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17029     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
17030 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
17031     ac_header_preproc=yes
17032     ;;
17033   no:yes:* )
17034     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
17035 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
17036     { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
17037 echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
17038     { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
17039 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
17040     { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
17041 echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17042     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
17043 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
17044     { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
17045 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
17046     (
17047       cat <<\_ASBOX
17048 ## ---------------------------------------- ##
17049 ## Report this to pgsql-bugs@postgresql.org ##
17050 ## ---------------------------------------- ##
17051 _ASBOX
17052     ) |
17053       sed "s/^/$as_me: WARNING:     /" >&2
17054     ;;
17055 esac
17056 echo "$as_me:$LINENO: checking for pthread.h" >&5
17057 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
17058 if test "${ac_cv_header_pthread_h+set}" = set; then
17059   echo $ECHO_N "(cached) $ECHO_C" >&6
17060 else
17061   ac_cv_header_pthread_h=$ac_header_preproc
17062 fi
17063 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
17064 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
17065
17066 fi
17067 if test $ac_cv_header_pthread_h = yes; then
17068   :
17069 else
17070   { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
17071 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
17072    { (exit 1); exit 1; }; }
17073 fi
17074
17075
17076
17077
17078
17079
17080 for ac_func in strerror_r getpwuid_r gethostbyname_r
17081 do
17082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17083 echo "$as_me:$LINENO: checking for $ac_func" >&5
17084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17085 if eval "test \"\${$as_ac_var+set}\" = set"; then
17086   echo $ECHO_N "(cached) $ECHO_C" >&6
17087 else
17088   cat >conftest.$ac_ext <<_ACEOF
17089 /* confdefs.h.  */
17090 _ACEOF
17091 cat confdefs.h >>conftest.$ac_ext
17092 cat >>conftest.$ac_ext <<_ACEOF
17093 /* end confdefs.h.  */
17094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17095    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17096 #define $ac_func innocuous_$ac_func
17097
17098 /* System header to define __stub macros and hopefully few prototypes,
17099     which can conflict with char $ac_func (); below.
17100     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17101     <limits.h> exists even on freestanding compilers.  */
17102
17103 #ifdef __STDC__
17104 # include <limits.h>
17105 #else
17106 # include <assert.h>
17107 #endif
17108
17109 #undef $ac_func
17110
17111 /* Override any gcc2 internal prototype to avoid an error.  */
17112 #ifdef __cplusplus
17113 extern "C"
17114 {
17115 #endif
17116 /* We use char because int might match the return type of a gcc2
17117    builtin and then its argument prototype would still apply.  */
17118 char $ac_func ();
17119 /* The GNU C library defines this for functions which it implements
17120     to always fail with ENOSYS.  Some functions are actually named
17121     something starting with __ and the normal name is an alias.  */
17122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17123 choke me
17124 #else
17125 char (*f) () = $ac_func;
17126 #endif
17127 #ifdef __cplusplus
17128 }
17129 #endif
17130
17131 int
17132 main ()
17133 {
17134 return f != $ac_func;
17135   ;
17136   return 0;
17137 }
17138 _ACEOF
17139 rm -f conftest.$ac_objext conftest$ac_exeext
17140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17141   (eval $ac_link) 2>conftest.er1
17142   ac_status=$?
17143   grep -v '^ *+' conftest.er1 >conftest.err
17144   rm -f conftest.er1
17145   cat conftest.err >&5
17146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147   (exit $ac_status); } &&
17148          { ac_try='test -z "$ac_c_werror_flag"
17149                          || test ! -s conftest.err'
17150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17151   (eval $ac_try) 2>&5
17152   ac_status=$?
17153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154   (exit $ac_status); }; } &&
17155          { ac_try='test -s conftest$ac_exeext'
17156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17157   (eval $ac_try) 2>&5
17158   ac_status=$?
17159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160   (exit $ac_status); }; }; then
17161   eval "$as_ac_var=yes"
17162 else
17163   echo "$as_me: failed program was:" >&5
17164 sed 's/^/| /' conftest.$ac_ext >&5
17165
17166 eval "$as_ac_var=no"
17167 fi
17168 rm -f conftest.err conftest.$ac_objext \
17169       conftest$ac_exeext conftest.$ac_ext
17170 fi
17171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17173 if test `eval echo '${'$as_ac_var'}'` = yes; then
17174   cat >>confdefs.h <<_ACEOF
17175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17176 _ACEOF
17177
17178 fi
17179 done
17180
17181
17182 # Do test here with the proper thread flags
17183 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
17184 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
17185 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
17186   echo $ECHO_N "(cached) $ECHO_C" >&6
17187 else
17188   cat >conftest.$ac_ext <<_ACEOF
17189 /* confdefs.h.  */
17190 _ACEOF
17191 cat confdefs.h >>conftest.$ac_ext
17192 cat >>conftest.$ac_ext <<_ACEOF
17193 /* end confdefs.h.  */
17194 #include <sys/types.h>
17195 #include <pwd.h>
17196 int
17197 main ()
17198 {
17199 uid_t uid;
17200 struct passwd *space;
17201 char *buf;
17202 size_t bufsize;
17203 struct passwd **result;
17204 getpwuid_r(uid, space, buf, bufsize, result);
17205   ;
17206   return 0;
17207 }
17208 _ACEOF
17209 rm -f conftest.$ac_objext
17210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17211   (eval $ac_compile) 2>conftest.er1
17212   ac_status=$?
17213   grep -v '^ *+' conftest.er1 >conftest.err
17214   rm -f conftest.er1
17215   cat conftest.err >&5
17216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217   (exit $ac_status); } &&
17218          { ac_try='test -z "$ac_c_werror_flag"
17219                          || test ! -s conftest.err'
17220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17221   (eval $ac_try) 2>&5
17222   ac_status=$?
17223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224   (exit $ac_status); }; } &&
17225          { ac_try='test -s conftest.$ac_objext'
17226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17227   (eval $ac_try) 2>&5
17228   ac_status=$?
17229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230   (exit $ac_status); }; }; then
17231   pgac_func_getpwuid_r_5arg=yes
17232 else
17233   echo "$as_me: failed program was:" >&5
17234 sed 's/^/| /' conftest.$ac_ext >&5
17235
17236 pgac_func_getpwuid_r_5arg=no
17237 fi
17238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17239 fi
17240 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
17241 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
17242 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
17243
17244 cat >>confdefs.h <<\_ACEOF
17245 #define GETPWUID_R_5ARG
17246 _ACEOF
17247
17248 fi
17249
17250 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
17251 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
17252 if test "${pgac_func_strerror_r_int+set}" = set; then
17253   echo $ECHO_N "(cached) $ECHO_C" >&6
17254 else
17255   cat >conftest.$ac_ext <<_ACEOF
17256 /* confdefs.h.  */
17257 _ACEOF
17258 cat confdefs.h >>conftest.$ac_ext
17259 cat >>conftest.$ac_ext <<_ACEOF
17260 /* end confdefs.h.  */
17261 #include <string.h>
17262 int
17263 main ()
17264 {
17265 #ifndef _AIX
17266 int strerror_r(int, char *, size_t);
17267 #else
17268 /* Older AIX has 'int' for the third argument so we don't test the args. */
17269 int strerror_r();
17270 #endif
17271   ;
17272   return 0;
17273 }
17274 _ACEOF
17275 rm -f conftest.$ac_objext
17276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17277   (eval $ac_compile) 2>conftest.er1
17278   ac_status=$?
17279   grep -v '^ *+' conftest.er1 >conftest.err
17280   rm -f conftest.er1
17281   cat conftest.err >&5
17282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283   (exit $ac_status); } &&
17284          { ac_try='test -z "$ac_c_werror_flag"
17285                          || test ! -s conftest.err'
17286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17287   (eval $ac_try) 2>&5
17288   ac_status=$?
17289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290   (exit $ac_status); }; } &&
17291          { ac_try='test -s conftest.$ac_objext'
17292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17293   (eval $ac_try) 2>&5
17294   ac_status=$?
17295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296   (exit $ac_status); }; }; then
17297   pgac_func_strerror_r_int=yes
17298 else
17299   echo "$as_me: failed program was:" >&5
17300 sed 's/^/| /' conftest.$ac_ext >&5
17301
17302 pgac_func_strerror_r_int=no
17303 fi
17304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17305 fi
17306 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
17307 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
17308 if test x"$pgac_func_strerror_r_int" = xyes ; then
17309
17310 cat >>confdefs.h <<\_ACEOF
17311 #define STRERROR_R_INT
17312 _ACEOF
17313
17314 fi
17315
17316
17317 CFLAGS="$_CFLAGS"
17318 LIBS="$_LIBS"
17319
17320 else
17321 # do not use values from template file
17322 PTHREAD_CFLAGS=
17323 PTHREAD_LIBS=
17324 fi
17325
17326
17327
17328
17329
17330 # This test makes sure that run tests work at all.  Sometimes a shared
17331 # library is found by the linker, but the runtime linker can't find it.
17332 # This check should come after all modifications of compiler or linker
17333 # variables, and before any other run tests.
17334 echo "$as_me:$LINENO: checking test program" >&5
17335 echo $ECHO_N "checking test program... $ECHO_C" >&6
17336 if test "$cross_compiling" = yes; then
17337   echo "$as_me:$LINENO: result: cross-compiling" >&5
17338 echo "${ECHO_T}cross-compiling" >&6
17339 else
17340   cat >conftest.$ac_ext <<_ACEOF
17341 /* confdefs.h.  */
17342 _ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h.  */
17346 int main() { return 0; }
17347 _ACEOF
17348 rm -f conftest$ac_exeext
17349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17350   (eval $ac_link) 2>&5
17351   ac_status=$?
17352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17355   (eval $ac_try) 2>&5
17356   ac_status=$?
17357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358   (exit $ac_status); }; }; then
17359   echo "$as_me:$LINENO: result: ok" >&5
17360 echo "${ECHO_T}ok" >&6
17361 else
17362   echo "$as_me: program exited with status $ac_status" >&5
17363 echo "$as_me: failed program was:" >&5
17364 sed 's/^/| /' conftest.$ac_ext >&5
17365
17366 ( exit $ac_status )
17367 echo "$as_me:$LINENO: result: failed" >&5
17368 echo "${ECHO_T}failed" >&6
17369 { { echo "$as_me:$LINENO: error:
17370 *** Could not execute a simple test program.  This may be a problem
17371 *** related to locating shared libraries.  Check the file 'config.log'
17372 *** for the exact reason." >&5
17373 echo "$as_me: error:
17374 *** Could not execute a simple test program.  This may be a problem
17375 *** related to locating shared libraries.  Check the file 'config.log'
17376 *** for the exact reason." >&2;}
17377    { (exit 1); exit 1; }; }
17378 fi
17379 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17380 fi
17381
17382 # --------------------
17383 # Run tests below here
17384 # --------------------
17385
17386 # Force use of our snprintf if system's doesn't do arg control
17387 # See comment above at snprintf test for details.
17388 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
17389   echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
17390 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6
17391 if test "${pgac_cv_printf_arg_control+set}" = set; then
17392   echo $ECHO_N "(cached) $ECHO_C" >&6
17393 else
17394   if test "$cross_compiling" = yes; then
17395   pgac_cv_printf_arg_control=cross
17396 else
17397   cat >conftest.$ac_ext <<_ACEOF
17398 /* confdefs.h.  */
17399 _ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h.  */
17403 #include <stdio.h>
17404 #include <string.h>
17405
17406 int main()
17407 {
17408   char buf[100];
17409
17410   /* can it swap arguments? */
17411   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
17412   if (strcmp(buf, "4 3") != 0)
17413     return 1;
17414   return 0;
17415 }
17416 _ACEOF
17417 rm -f conftest$ac_exeext
17418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17419   (eval $ac_link) 2>&5
17420   ac_status=$?
17421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424   (eval $ac_try) 2>&5
17425   ac_status=$?
17426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427   (exit $ac_status); }; }; then
17428   pgac_cv_printf_arg_control=yes
17429 else
17430   echo "$as_me: program exited with status $ac_status" >&5
17431 echo "$as_me: failed program was:" >&5
17432 sed 's/^/| /' conftest.$ac_ext >&5
17433
17434 ( exit $ac_status )
17435 pgac_cv_printf_arg_control=no
17436 fi
17437 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17438 fi
17439
17440 fi
17441 echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
17442 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6
17443
17444   if test $pgac_cv_printf_arg_control != yes ; then
17445     pgac_need_repl_snprintf=yes
17446   fi
17447 fi
17448
17449
17450
17451 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
17452 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
17453 if test "${pgac_cv_type_long_int_64+set}" = set; then
17454   echo $ECHO_N "(cached) $ECHO_C" >&6
17455 else
17456   if test "$cross_compiling" = yes; then
17457   # If cross-compiling, check the size reported by the compiler and
17458 # trust that the arithmetic works.
17459 cat >conftest.$ac_ext <<_ACEOF
17460 /* confdefs.h.  */
17461 _ACEOF
17462 cat confdefs.h >>conftest.$ac_ext
17463 cat >>conftest.$ac_ext <<_ACEOF
17464 /* end confdefs.h.  */
17465
17466 int
17467 main ()
17468 {
17469 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
17470 test_array [0] = 0
17471
17472   ;
17473   return 0;
17474 }
17475 _ACEOF
17476 rm -f conftest.$ac_objext
17477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17478   (eval $ac_compile) 2>conftest.er1
17479   ac_status=$?
17480   grep -v '^ *+' conftest.er1 >conftest.err
17481   rm -f conftest.er1
17482   cat conftest.err >&5
17483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484   (exit $ac_status); } &&
17485          { ac_try='test -z "$ac_c_werror_flag"
17486                          || test ! -s conftest.err'
17487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17488   (eval $ac_try) 2>&5
17489   ac_status=$?
17490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491   (exit $ac_status); }; } &&
17492          { ac_try='test -s conftest.$ac_objext'
17493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494   (eval $ac_try) 2>&5
17495   ac_status=$?
17496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497   (exit $ac_status); }; }; then
17498   pgac_cv_type_long_int_64=yes
17499 else
17500   echo "$as_me: failed program was:" >&5
17501 sed 's/^/| /' conftest.$ac_ext >&5
17502
17503 pgac_cv_type_long_int_64=no
17504 fi
17505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17506 else
17507   cat >conftest.$ac_ext <<_ACEOF
17508 /* confdefs.h.  */
17509 _ACEOF
17510 cat confdefs.h >>conftest.$ac_ext
17511 cat >>conftest.$ac_ext <<_ACEOF
17512 /* end confdefs.h.  */
17513 typedef long int ac_int64;
17514
17515 /*
17516  * These are globals to discourage the compiler from folding all the
17517  * arithmetic tests down to compile-time constants.
17518  */
17519 ac_int64 a = 20000001;
17520 ac_int64 b = 40000005;
17521
17522 int does_int64_work()
17523 {
17524   ac_int64 c,d;
17525
17526   if (sizeof(ac_int64) != 8)
17527     return 0;                   /* definitely not the right size */
17528
17529   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17530   c = a * b;
17531   d = (c + b) / b;
17532   if (d != a+1)
17533     return 0;
17534   return 1;
17535 }
17536 main() {
17537   exit(! does_int64_work());
17538 }
17539 _ACEOF
17540 rm -f conftest$ac_exeext
17541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17542   (eval $ac_link) 2>&5
17543   ac_status=$?
17544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17547   (eval $ac_try) 2>&5
17548   ac_status=$?
17549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550   (exit $ac_status); }; }; then
17551   pgac_cv_type_long_int_64=yes
17552 else
17553   echo "$as_me: program exited with status $ac_status" >&5
17554 echo "$as_me: failed program was:" >&5
17555 sed 's/^/| /' conftest.$ac_ext >&5
17556
17557 ( exit $ac_status )
17558 pgac_cv_type_long_int_64=no
17559 fi
17560 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17561 fi
17562 fi
17563 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
17564 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
17565
17566 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
17567 if test x"$pgac_cv_type_long_int_64" = xyes ; then
17568
17569 cat >>confdefs.h <<\_ACEOF
17570 #define HAVE_LONG_INT_64
17571 _ACEOF
17572
17573 fi
17574
17575
17576 if test x"$HAVE_LONG_INT_64" = x"no" ; then
17577   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
17578 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
17579 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
17580   echo $ECHO_N "(cached) $ECHO_C" >&6
17581 else
17582   if test "$cross_compiling" = yes; then
17583   # If cross-compiling, check the size reported by the compiler and
17584 # trust that the arithmetic works.
17585 cat >conftest.$ac_ext <<_ACEOF
17586 /* confdefs.h.  */
17587 _ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h.  */
17591
17592 int
17593 main ()
17594 {
17595 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
17596 test_array [0] = 0
17597
17598   ;
17599   return 0;
17600 }
17601 _ACEOF
17602 rm -f conftest.$ac_objext
17603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17604   (eval $ac_compile) 2>conftest.er1
17605   ac_status=$?
17606   grep -v '^ *+' conftest.er1 >conftest.err
17607   rm -f conftest.er1
17608   cat conftest.err >&5
17609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610   (exit $ac_status); } &&
17611          { ac_try='test -z "$ac_c_werror_flag"
17612                          || test ! -s conftest.err'
17613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17614   (eval $ac_try) 2>&5
17615   ac_status=$?
17616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617   (exit $ac_status); }; } &&
17618          { ac_try='test -s conftest.$ac_objext'
17619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17620   (eval $ac_try) 2>&5
17621   ac_status=$?
17622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623   (exit $ac_status); }; }; then
17624   pgac_cv_type_long_long_int_64=yes
17625 else
17626   echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17628
17629 pgac_cv_type_long_long_int_64=no
17630 fi
17631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17632 else
17633   cat >conftest.$ac_ext <<_ACEOF
17634 /* confdefs.h.  */
17635 _ACEOF
17636 cat confdefs.h >>conftest.$ac_ext
17637 cat >>conftest.$ac_ext <<_ACEOF
17638 /* end confdefs.h.  */
17639 typedef long long int ac_int64;
17640
17641 /*
17642  * These are globals to discourage the compiler from folding all the
17643  * arithmetic tests down to compile-time constants.
17644  */
17645 ac_int64 a = 20000001;
17646 ac_int64 b = 40000005;
17647
17648 int does_int64_work()
17649 {
17650   ac_int64 c,d;
17651
17652   if (sizeof(ac_int64) != 8)
17653     return 0;                   /* definitely not the right size */
17654
17655   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17656   c = a * b;
17657   d = (c + b) / b;
17658   if (d != a+1)
17659     return 0;
17660   return 1;
17661 }
17662 main() {
17663   exit(! does_int64_work());
17664 }
17665 _ACEOF
17666 rm -f conftest$ac_exeext
17667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17668   (eval $ac_link) 2>&5
17669   ac_status=$?
17670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17673   (eval $ac_try) 2>&5
17674   ac_status=$?
17675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676   (exit $ac_status); }; }; then
17677   pgac_cv_type_long_long_int_64=yes
17678 else
17679   echo "$as_me: program exited with status $ac_status" >&5
17680 echo "$as_me: failed program was:" >&5
17681 sed 's/^/| /' conftest.$ac_ext >&5
17682
17683 ( exit $ac_status )
17684 pgac_cv_type_long_long_int_64=no
17685 fi
17686 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17687 fi
17688 fi
17689 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
17690 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
17691
17692 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
17693 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
17694
17695 cat >>confdefs.h <<\_ACEOF
17696 #define HAVE_LONG_LONG_INT_64
17697 _ACEOF
17698
17699 fi
17700
17701 fi
17702
17703
17704
17705 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
17706   cat >conftest.$ac_ext <<_ACEOF
17707 /* confdefs.h.  */
17708 _ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h.  */
17712
17713 #define INT64CONST(x)  x##LL
17714 long long int foo = INT64CONST(0x1234567890123456);
17715
17716 int
17717 main ()
17718 {
17719
17720   ;
17721   return 0;
17722 }
17723 _ACEOF
17724 rm -f conftest.$ac_objext
17725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17726   (eval $ac_compile) 2>conftest.er1
17727   ac_status=$?
17728   grep -v '^ *+' conftest.er1 >conftest.err
17729   rm -f conftest.er1
17730   cat conftest.err >&5
17731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732   (exit $ac_status); } &&
17733          { ac_try='test -z "$ac_c_werror_flag"
17734                          || test ! -s conftest.err'
17735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736   (eval $ac_try) 2>&5
17737   ac_status=$?
17738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739   (exit $ac_status); }; } &&
17740          { ac_try='test -s conftest.$ac_objext'
17741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742   (eval $ac_try) 2>&5
17743   ac_status=$?
17744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745   (exit $ac_status); }; }; then
17746
17747 cat >>confdefs.h <<\_ACEOF
17748 #define HAVE_LL_CONSTANTS 1
17749 _ACEOF
17750
17751 else
17752   echo "$as_me: failed program was:" >&5
17753 sed 's/^/| /' conftest.$ac_ext >&5
17754
17755 fi
17756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17757 fi
17758
17759
17760 # If we found "long int" is 64 bits, assume snprintf handles it.  If
17761 # we found we need to use "long long int", better check.  We cope with
17762 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
17763 # work, fall back to our own snprintf emulation (which we know uses %lld).
17764
17765 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
17766   if test $pgac_need_repl_snprintf = no; then
17767     echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
17768 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
17769 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
17770   echo $ECHO_N "(cached) $ECHO_C" >&6
17771 else
17772   for pgac_format in '%lld' '%qd' '%I64d'; do
17773 if test "$cross_compiling" = yes; then
17774   pgac_cv_snprintf_long_long_int_format=cross; break
17775 else
17776   cat >conftest.$ac_ext <<_ACEOF
17777 /* confdefs.h.  */
17778 _ACEOF
17779 cat confdefs.h >>conftest.$ac_ext
17780 cat >>conftest.$ac_ext <<_ACEOF
17781 /* end confdefs.h.  */
17782 #include <stdio.h>
17783 typedef long long int ac_int64;
17784 #define INT64_FORMAT "$pgac_format"
17785
17786 ac_int64 a = 20000001;
17787 ac_int64 b = 40000005;
17788
17789 int does_int64_snprintf_work()
17790 {
17791   ac_int64 c;
17792   char buf[100];
17793
17794   if (sizeof(ac_int64) != 8)
17795     return 0;                   /* doesn't look like the right size */
17796
17797   c = a * b;
17798   snprintf(buf, 100, INT64_FORMAT, c);
17799   if (strcmp(buf, "800000140000005") != 0)
17800     return 0;                   /* either multiply or snprintf is busted */
17801   return 1;
17802 }
17803 main() {
17804   exit(! does_int64_snprintf_work());
17805 }
17806 _ACEOF
17807 rm -f conftest$ac_exeext
17808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17809   (eval $ac_link) 2>&5
17810   ac_status=$?
17811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814   (eval $ac_try) 2>&5
17815   ac_status=$?
17816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817   (exit $ac_status); }; }; then
17818   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
17819 else
17820   echo "$as_me: program exited with status $ac_status" >&5
17821 echo "$as_me: failed program was:" >&5
17822 sed 's/^/| /' conftest.$ac_ext >&5
17823
17824 fi
17825 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17826 fi
17827 done
17828 fi
17829
17830 LONG_LONG_INT_FORMAT=''
17831
17832 case $pgac_cv_snprintf_long_long_int_format in
17833   cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
17834 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
17835   ?*)    echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
17836 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
17837          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
17838   *)     echo "$as_me:$LINENO: result: none" >&5
17839 echo "${ECHO_T}none" >&6;;
17840 esac
17841     if test "$LONG_LONG_INT_FORMAT" = ""; then
17842       # Force usage of our own snprintf, since system snprintf is broken
17843       pgac_need_repl_snprintf=yes
17844       LONG_LONG_INT_FORMAT='%lld'
17845     fi
17846   else
17847     # Here if we previously decided we needed to use our own snprintf
17848     LONG_LONG_INT_FORMAT='%lld'
17849   fi
17850   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
17851   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
17852   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
17853 else
17854   # Here if we are not using 'long long int' at all
17855   INT64_FORMAT='"%ld"'
17856   UINT64_FORMAT='"%lu"'
17857 fi
17858
17859
17860 cat >>confdefs.h <<_ACEOF
17861 #define INT64_FORMAT $INT64_FORMAT
17862 _ACEOF
17863
17864
17865
17866 cat >>confdefs.h <<_ACEOF
17867 #define UINT64_FORMAT $UINT64_FORMAT
17868 _ACEOF
17869
17870
17871 # Now we have checked all the reasons to replace snprintf
17872 if test $pgac_need_repl_snprintf = yes; then
17873
17874 cat >>confdefs.h <<\_ACEOF
17875 #define USE_REPL_SNPRINTF 1
17876 _ACEOF
17877
17878   case $LIBOBJS in
17879     "snprintf.$ac_objext"   | \
17880   *" snprintf.$ac_objext"   | \
17881     "snprintf.$ac_objext "* | \
17882   *" snprintf.$ac_objext "* ) ;;
17883   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
17884 esac
17885
17886 fi
17887
17888 # Need a #define for the size of Datum (unsigned long)
17889 echo "$as_me:$LINENO: checking for unsigned long" >&5
17890 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
17891 if test "${ac_cv_type_unsigned_long+set}" = set; then
17892   echo $ECHO_N "(cached) $ECHO_C" >&6
17893 else
17894   cat >conftest.$ac_ext <<_ACEOF
17895 /* confdefs.h.  */
17896 _ACEOF
17897 cat confdefs.h >>conftest.$ac_ext
17898 cat >>conftest.$ac_ext <<_ACEOF
17899 /* end confdefs.h.  */
17900 $ac_includes_default
17901 int
17902 main ()
17903 {
17904 if ((unsigned long *) 0)
17905   return 0;
17906 if (sizeof (unsigned long))
17907   return 0;
17908   ;
17909   return 0;
17910 }
17911 _ACEOF
17912 rm -f conftest.$ac_objext
17913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17914   (eval $ac_compile) 2>conftest.er1
17915   ac_status=$?
17916   grep -v '^ *+' conftest.er1 >conftest.err
17917   rm -f conftest.er1
17918   cat conftest.err >&5
17919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920   (exit $ac_status); } &&
17921          { ac_try='test -z "$ac_c_werror_flag"
17922                          || test ! -s conftest.err'
17923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17924   (eval $ac_try) 2>&5
17925   ac_status=$?
17926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927   (exit $ac_status); }; } &&
17928          { ac_try='test -s conftest.$ac_objext'
17929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930   (eval $ac_try) 2>&5
17931   ac_status=$?
17932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933   (exit $ac_status); }; }; then
17934   ac_cv_type_unsigned_long=yes
17935 else
17936   echo "$as_me: failed program was:" >&5
17937 sed 's/^/| /' conftest.$ac_ext >&5
17938
17939 ac_cv_type_unsigned_long=no
17940 fi
17941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17942 fi
17943 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
17944 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
17945
17946 echo "$as_me:$LINENO: checking size of unsigned long" >&5
17947 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
17948 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
17949   echo $ECHO_N "(cached) $ECHO_C" >&6
17950 else
17951   if test "$ac_cv_type_unsigned_long" = yes; then
17952   # The cast to unsigned long works around a bug in the HP C Compiler
17953   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17954   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17955   # This bug is HP SR number 8606223364.
17956   if test "$cross_compiling" = yes; then
17957   # Depending upon the size, compute the lo and hi bounds.
17958 cat >conftest.$ac_ext <<_ACEOF
17959 /* confdefs.h.  */
17960 _ACEOF
17961 cat confdefs.h >>conftest.$ac_ext
17962 cat >>conftest.$ac_ext <<_ACEOF
17963 /* end confdefs.h.  */
17964 $ac_includes_default
17965 int
17966 main ()
17967 {
17968 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
17969 test_array [0] = 0
17970
17971   ;
17972   return 0;
17973 }
17974 _ACEOF
17975 rm -f conftest.$ac_objext
17976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17977   (eval $ac_compile) 2>conftest.er1
17978   ac_status=$?
17979   grep -v '^ *+' conftest.er1 >conftest.err
17980   rm -f conftest.er1
17981   cat conftest.err >&5
17982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983   (exit $ac_status); } &&
17984          { ac_try='test -z "$ac_c_werror_flag"
17985                          || test ! -s conftest.err'
17986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987   (eval $ac_try) 2>&5
17988   ac_status=$?
17989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990   (exit $ac_status); }; } &&
17991          { ac_try='test -s conftest.$ac_objext'
17992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17993   (eval $ac_try) 2>&5
17994   ac_status=$?
17995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996   (exit $ac_status); }; }; then
17997   ac_lo=0 ac_mid=0
17998   while :; do
17999     cat >conftest.$ac_ext <<_ACEOF
18000 /* confdefs.h.  */
18001 _ACEOF
18002 cat confdefs.h >>conftest.$ac_ext
18003 cat >>conftest.$ac_ext <<_ACEOF
18004 /* end confdefs.h.  */
18005 $ac_includes_default
18006 int
18007 main ()
18008 {
18009 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
18010 test_array [0] = 0
18011
18012   ;
18013   return 0;
18014 }
18015 _ACEOF
18016 rm -f conftest.$ac_objext
18017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18018   (eval $ac_compile) 2>conftest.er1
18019   ac_status=$?
18020   grep -v '^ *+' conftest.er1 >conftest.err
18021   rm -f conftest.er1
18022   cat conftest.err >&5
18023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024   (exit $ac_status); } &&
18025          { ac_try='test -z "$ac_c_werror_flag"
18026                          || test ! -s conftest.err'
18027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18028   (eval $ac_try) 2>&5
18029   ac_status=$?
18030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031   (exit $ac_status); }; } &&
18032          { ac_try='test -s conftest.$ac_objext'
18033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18034   (eval $ac_try) 2>&5
18035   ac_status=$?
18036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037   (exit $ac_status); }; }; then
18038   ac_hi=$ac_mid; break
18039 else
18040   echo "$as_me: failed program was:" >&5
18041 sed 's/^/| /' conftest.$ac_ext >&5
18042
18043 ac_lo=`expr $ac_mid + 1`
18044                     if test $ac_lo -le $ac_mid; then
18045                       ac_lo= ac_hi=
18046                       break
18047                     fi
18048                     ac_mid=`expr 2 '*' $ac_mid + 1`
18049 fi
18050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18051   done
18052 else
18053   echo "$as_me: failed program was:" >&5
18054 sed 's/^/| /' conftest.$ac_ext >&5
18055
18056 cat >conftest.$ac_ext <<_ACEOF
18057 /* confdefs.h.  */
18058 _ACEOF
18059 cat confdefs.h >>conftest.$ac_ext
18060 cat >>conftest.$ac_ext <<_ACEOF
18061 /* end confdefs.h.  */
18062 $ac_includes_default
18063 int
18064 main ()
18065 {
18066 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
18067 test_array [0] = 0
18068
18069   ;
18070   return 0;
18071 }
18072 _ACEOF
18073 rm -f conftest.$ac_objext
18074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18075   (eval $ac_compile) 2>conftest.er1
18076   ac_status=$?
18077   grep -v '^ *+' conftest.er1 >conftest.err
18078   rm -f conftest.er1
18079   cat conftest.err >&5
18080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081   (exit $ac_status); } &&
18082          { ac_try='test -z "$ac_c_werror_flag"
18083                          || test ! -s conftest.err'
18084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18085   (eval $ac_try) 2>&5
18086   ac_status=$?
18087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088   (exit $ac_status); }; } &&
18089          { ac_try='test -s conftest.$ac_objext'
18090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18091   (eval $ac_try) 2>&5
18092   ac_status=$?
18093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094   (exit $ac_status); }; }; then
18095   ac_hi=-1 ac_mid=-1
18096   while :; do
18097     cat >conftest.$ac_ext <<_ACEOF
18098 /* confdefs.h.  */
18099 _ACEOF
18100 cat confdefs.h >>conftest.$ac_ext
18101 cat >>conftest.$ac_ext <<_ACEOF
18102 /* end confdefs.h.  */
18103 $ac_includes_default
18104 int
18105 main ()
18106 {
18107 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
18108 test_array [0] = 0
18109
18110   ;
18111   return 0;
18112 }
18113 _ACEOF
18114 rm -f conftest.$ac_objext
18115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18116   (eval $ac_compile) 2>conftest.er1
18117   ac_status=$?
18118   grep -v '^ *+' conftest.er1 >conftest.err
18119   rm -f conftest.er1
18120   cat conftest.err >&5
18121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122   (exit $ac_status); } &&
18123          { ac_try='test -z "$ac_c_werror_flag"
18124                          || test ! -s conftest.err'
18125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18126   (eval $ac_try) 2>&5
18127   ac_status=$?
18128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129   (exit $ac_status); }; } &&
18130          { ac_try='test -s conftest.$ac_objext'
18131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18132   (eval $ac_try) 2>&5
18133   ac_status=$?
18134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135   (exit $ac_status); }; }; then
18136   ac_lo=$ac_mid; break
18137 else
18138   echo "$as_me: failed program was:" >&5
18139 sed 's/^/| /' conftest.$ac_ext >&5
18140
18141 ac_hi=`expr '(' $ac_mid ')' - 1`
18142                        if test $ac_mid -le $ac_hi; then
18143                          ac_lo= ac_hi=
18144                          break
18145                        fi
18146                        ac_mid=`expr 2 '*' $ac_mid`
18147 fi
18148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18149   done
18150 else
18151   echo "$as_me: failed program was:" >&5
18152 sed 's/^/| /' conftest.$ac_ext >&5
18153
18154 ac_lo= ac_hi=
18155 fi
18156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18157 fi
18158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18159 # Binary search between lo and hi bounds.
18160 while test "x$ac_lo" != "x$ac_hi"; do
18161   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18162   cat >conftest.$ac_ext <<_ACEOF
18163 /* confdefs.h.  */
18164 _ACEOF
18165 cat confdefs.h >>conftest.$ac_ext
18166 cat >>conftest.$ac_ext <<_ACEOF
18167 /* end confdefs.h.  */
18168 $ac_includes_default
18169 int
18170 main ()
18171 {
18172 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
18173 test_array [0] = 0
18174
18175   ;
18176   return 0;
18177 }
18178 _ACEOF
18179 rm -f conftest.$ac_objext
18180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18181   (eval $ac_compile) 2>conftest.er1
18182   ac_status=$?
18183   grep -v '^ *+' conftest.er1 >conftest.err
18184   rm -f conftest.er1
18185   cat conftest.err >&5
18186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187   (exit $ac_status); } &&
18188          { ac_try='test -z "$ac_c_werror_flag"
18189                          || test ! -s conftest.err'
18190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18191   (eval $ac_try) 2>&5
18192   ac_status=$?
18193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194   (exit $ac_status); }; } &&
18195          { ac_try='test -s conftest.$ac_objext'
18196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18197   (eval $ac_try) 2>&5
18198   ac_status=$?
18199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200   (exit $ac_status); }; }; then
18201   ac_hi=$ac_mid
18202 else
18203   echo "$as_me: failed program was:" >&5
18204 sed 's/^/| /' conftest.$ac_ext >&5
18205
18206 ac_lo=`expr '(' $ac_mid ')' + 1`
18207 fi
18208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18209 done
18210 case $ac_lo in
18211 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
18212 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
18213 See \`config.log' for more details." >&5
18214 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
18215 See \`config.log' for more details." >&2;}
18216    { (exit 1); exit 1; }; } ;;
18217 esac
18218 else
18219   if test "$cross_compiling" = yes; then
18220   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18221 See \`config.log' for more details." >&5
18222 echo "$as_me: error: cannot run test program while cross compiling
18223 See \`config.log' for more details." >&2;}
18224    { (exit 1); exit 1; }; }
18225 else
18226   cat >conftest.$ac_ext <<_ACEOF
18227 /* confdefs.h.  */
18228 _ACEOF
18229 cat confdefs.h >>conftest.$ac_ext
18230 cat >>conftest.$ac_ext <<_ACEOF
18231 /* end confdefs.h.  */
18232 $ac_includes_default
18233 long longval () { return (long) (sizeof (unsigned long)); }
18234 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
18235 #include <stdio.h>
18236 #include <stdlib.h>
18237 int
18238 main ()
18239 {
18240
18241   FILE *f = fopen ("conftest.val", "w");
18242   if (! f)
18243     exit (1);
18244   if (((long) (sizeof (unsigned long))) < 0)
18245     {
18246       long i = longval ();
18247       if (i != ((long) (sizeof (unsigned long))))
18248         exit (1);
18249       fprintf (f, "%ld\n", i);
18250     }
18251   else
18252     {
18253       unsigned long i = ulongval ();
18254       if (i != ((long) (sizeof (unsigned long))))
18255         exit (1);
18256       fprintf (f, "%lu\n", i);
18257     }
18258   exit (ferror (f) || fclose (f) != 0);
18259
18260   ;
18261   return 0;
18262 }
18263 _ACEOF
18264 rm -f conftest$ac_exeext
18265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18266   (eval $ac_link) 2>&5
18267   ac_status=$?
18268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271   (eval $ac_try) 2>&5
18272   ac_status=$?
18273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274   (exit $ac_status); }; }; then
18275   ac_cv_sizeof_unsigned_long=`cat conftest.val`
18276 else
18277   echo "$as_me: program exited with status $ac_status" >&5
18278 echo "$as_me: failed program was:" >&5
18279 sed 's/^/| /' conftest.$ac_ext >&5
18280
18281 ( exit $ac_status )
18282 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
18283 See \`config.log' for more details." >&5
18284 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
18285 See \`config.log' for more details." >&2;}
18286    { (exit 1); exit 1; }; }
18287 fi
18288 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18289 fi
18290 fi
18291 rm -f conftest.val
18292 else
18293   ac_cv_sizeof_unsigned_long=0
18294 fi
18295 fi
18296 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
18297 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
18298 cat >>confdefs.h <<_ACEOF
18299 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
18300 _ACEOF
18301
18302
18303
18304 # And one for the size of size_t (enables tweaks for > 32bit address space)
18305 echo "$as_me:$LINENO: checking for size_t" >&5
18306 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18307 if test "${ac_cv_type_size_t+set}" = set; then
18308   echo $ECHO_N "(cached) $ECHO_C" >&6
18309 else
18310   cat >conftest.$ac_ext <<_ACEOF
18311 /* confdefs.h.  */
18312 _ACEOF
18313 cat confdefs.h >>conftest.$ac_ext
18314 cat >>conftest.$ac_ext <<_ACEOF
18315 /* end confdefs.h.  */
18316 $ac_includes_default
18317 int
18318 main ()
18319 {
18320 if ((size_t *) 0)
18321   return 0;
18322 if (sizeof (size_t))
18323   return 0;
18324   ;
18325   return 0;
18326 }
18327 _ACEOF
18328 rm -f conftest.$ac_objext
18329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18330   (eval $ac_compile) 2>conftest.er1
18331   ac_status=$?
18332   grep -v '^ *+' conftest.er1 >conftest.err
18333   rm -f conftest.er1
18334   cat conftest.err >&5
18335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336   (exit $ac_status); } &&
18337          { ac_try='test -z "$ac_c_werror_flag"
18338                          || test ! -s conftest.err'
18339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340   (eval $ac_try) 2>&5
18341   ac_status=$?
18342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343   (exit $ac_status); }; } &&
18344          { ac_try='test -s conftest.$ac_objext'
18345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18346   (eval $ac_try) 2>&5
18347   ac_status=$?
18348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349   (exit $ac_status); }; }; then
18350   ac_cv_type_size_t=yes
18351 else
18352   echo "$as_me: failed program was:" >&5
18353 sed 's/^/| /' conftest.$ac_ext >&5
18354
18355 ac_cv_type_size_t=no
18356 fi
18357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18358 fi
18359 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18360 echo "${ECHO_T}$ac_cv_type_size_t" >&6
18361
18362 echo "$as_me:$LINENO: checking size of size_t" >&5
18363 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18364 if test "${ac_cv_sizeof_size_t+set}" = set; then
18365   echo $ECHO_N "(cached) $ECHO_C" >&6
18366 else
18367   if test "$ac_cv_type_size_t" = yes; then
18368   # The cast to unsigned long works around a bug in the HP C Compiler
18369   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18370   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18371   # This bug is HP SR number 8606223364.
18372   if test "$cross_compiling" = yes; then
18373   # Depending upon the size, compute the lo and hi bounds.
18374 cat >conftest.$ac_ext <<_ACEOF
18375 /* confdefs.h.  */
18376 _ACEOF
18377 cat confdefs.h >>conftest.$ac_ext
18378 cat >>conftest.$ac_ext <<_ACEOF
18379 /* end confdefs.h.  */
18380 $ac_includes_default
18381 int
18382 main ()
18383 {
18384 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18385 test_array [0] = 0
18386
18387   ;
18388   return 0;
18389 }
18390 _ACEOF
18391 rm -f conftest.$ac_objext
18392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18393   (eval $ac_compile) 2>conftest.er1
18394   ac_status=$?
18395   grep -v '^ *+' conftest.er1 >conftest.err
18396   rm -f conftest.er1
18397   cat conftest.err >&5
18398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399   (exit $ac_status); } &&
18400          { ac_try='test -z "$ac_c_werror_flag"
18401                          || test ! -s conftest.err'
18402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18403   (eval $ac_try) 2>&5
18404   ac_status=$?
18405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406   (exit $ac_status); }; } &&
18407          { ac_try='test -s conftest.$ac_objext'
18408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18409   (eval $ac_try) 2>&5
18410   ac_status=$?
18411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412   (exit $ac_status); }; }; then
18413   ac_lo=0 ac_mid=0
18414   while :; do
18415     cat >conftest.$ac_ext <<_ACEOF
18416 /* confdefs.h.  */
18417 _ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h.  */
18421 $ac_includes_default
18422 int
18423 main ()
18424 {
18425 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18426 test_array [0] = 0
18427
18428   ;
18429   return 0;
18430 }
18431 _ACEOF
18432 rm -f conftest.$ac_objext
18433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18434   (eval $ac_compile) 2>conftest.er1
18435   ac_status=$?
18436   grep -v '^ *+' conftest.er1 >conftest.err
18437   rm -f conftest.er1
18438   cat conftest.err >&5
18439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440   (exit $ac_status); } &&
18441          { ac_try='test -z "$ac_c_werror_flag"
18442                          || test ! -s conftest.err'
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); }; } &&
18448          { ac_try='test -s conftest.$ac_objext'
18449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18450   (eval $ac_try) 2>&5
18451   ac_status=$?
18452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453   (exit $ac_status); }; }; then
18454   ac_hi=$ac_mid; break
18455 else
18456   echo "$as_me: failed program was:" >&5
18457 sed 's/^/| /' conftest.$ac_ext >&5
18458
18459 ac_lo=`expr $ac_mid + 1`
18460                     if test $ac_lo -le $ac_mid; then
18461                       ac_lo= ac_hi=
18462                       break
18463                     fi
18464                     ac_mid=`expr 2 '*' $ac_mid + 1`
18465 fi
18466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18467   done
18468 else
18469   echo "$as_me: failed program was:" >&5
18470 sed 's/^/| /' conftest.$ac_ext >&5
18471
18472 cat >conftest.$ac_ext <<_ACEOF
18473 /* confdefs.h.  */
18474 _ACEOF
18475 cat confdefs.h >>conftest.$ac_ext
18476 cat >>conftest.$ac_ext <<_ACEOF
18477 /* end confdefs.h.  */
18478 $ac_includes_default
18479 int
18480 main ()
18481 {
18482 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
18483 test_array [0] = 0
18484
18485   ;
18486   return 0;
18487 }
18488 _ACEOF
18489 rm -f conftest.$ac_objext
18490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18491   (eval $ac_compile) 2>conftest.er1
18492   ac_status=$?
18493   grep -v '^ *+' conftest.er1 >conftest.err
18494   rm -f conftest.er1
18495   cat conftest.err >&5
18496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497   (exit $ac_status); } &&
18498          { ac_try='test -z "$ac_c_werror_flag"
18499                          || test ! -s conftest.err'
18500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18501   (eval $ac_try) 2>&5
18502   ac_status=$?
18503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504   (exit $ac_status); }; } &&
18505          { ac_try='test -s conftest.$ac_objext'
18506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18507   (eval $ac_try) 2>&5
18508   ac_status=$?
18509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510   (exit $ac_status); }; }; then
18511   ac_hi=-1 ac_mid=-1
18512   while :; do
18513     cat >conftest.$ac_ext <<_ACEOF
18514 /* confdefs.h.  */
18515 _ACEOF
18516 cat confdefs.h >>conftest.$ac_ext
18517 cat >>conftest.$ac_ext <<_ACEOF
18518 /* end confdefs.h.  */
18519 $ac_includes_default
18520 int
18521 main ()
18522 {
18523 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
18524 test_array [0] = 0
18525
18526   ;
18527   return 0;
18528 }
18529 _ACEOF
18530 rm -f conftest.$ac_objext
18531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18532   (eval $ac_compile) 2>conftest.er1
18533   ac_status=$?
18534   grep -v '^ *+' conftest.er1 >conftest.err
18535   rm -f conftest.er1
18536   cat conftest.err >&5
18537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538   (exit $ac_status); } &&
18539          { ac_try='test -z "$ac_c_werror_flag"
18540                          || test ! -s conftest.err'
18541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18542   (eval $ac_try) 2>&5
18543   ac_status=$?
18544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545   (exit $ac_status); }; } &&
18546          { ac_try='test -s conftest.$ac_objext'
18547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18548   (eval $ac_try) 2>&5
18549   ac_status=$?
18550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551   (exit $ac_status); }; }; then
18552   ac_lo=$ac_mid; break
18553 else
18554   echo "$as_me: failed program was:" >&5
18555 sed 's/^/| /' conftest.$ac_ext >&5
18556
18557 ac_hi=`expr '(' $ac_mid ')' - 1`
18558                        if test $ac_mid -le $ac_hi; then
18559                          ac_lo= ac_hi=
18560                          break
18561                        fi
18562                        ac_mid=`expr 2 '*' $ac_mid`
18563 fi
18564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18565   done
18566 else
18567   echo "$as_me: failed program was:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18569
18570 ac_lo= ac_hi=
18571 fi
18572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18573 fi
18574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18575 # Binary search between lo and hi bounds.
18576 while test "x$ac_lo" != "x$ac_hi"; do
18577   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18578   cat >conftest.$ac_ext <<_ACEOF
18579 /* confdefs.h.  */
18580 _ACEOF
18581 cat confdefs.h >>conftest.$ac_ext
18582 cat >>conftest.$ac_ext <<_ACEOF
18583 /* end confdefs.h.  */
18584 $ac_includes_default
18585 int
18586 main ()
18587 {
18588 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18589 test_array [0] = 0
18590
18591   ;
18592   return 0;
18593 }
18594 _ACEOF
18595 rm -f conftest.$ac_objext
18596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18597   (eval $ac_compile) 2>conftest.er1
18598   ac_status=$?
18599   grep -v '^ *+' conftest.er1 >conftest.err
18600   rm -f conftest.er1
18601   cat conftest.err >&5
18602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603   (exit $ac_status); } &&
18604          { ac_try='test -z "$ac_c_werror_flag"
18605                          || test ! -s conftest.err'
18606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18607   (eval $ac_try) 2>&5
18608   ac_status=$?
18609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610   (exit $ac_status); }; } &&
18611          { ac_try='test -s conftest.$ac_objext'
18612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18613   (eval $ac_try) 2>&5
18614   ac_status=$?
18615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616   (exit $ac_status); }; }; then
18617   ac_hi=$ac_mid
18618 else
18619   echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18621
18622 ac_lo=`expr '(' $ac_mid ')' + 1`
18623 fi
18624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18625 done
18626 case $ac_lo in
18627 ?*) ac_cv_sizeof_size_t=$ac_lo;;
18628 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18629 See \`config.log' for more details." >&5
18630 echo "$as_me: error: cannot compute sizeof (size_t), 77
18631 See \`config.log' for more details." >&2;}
18632    { (exit 1); exit 1; }; } ;;
18633 esac
18634 else
18635   if test "$cross_compiling" = yes; then
18636   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18637 See \`config.log' for more details." >&5
18638 echo "$as_me: error: cannot run test program while cross compiling
18639 See \`config.log' for more details." >&2;}
18640    { (exit 1); exit 1; }; }
18641 else
18642   cat >conftest.$ac_ext <<_ACEOF
18643 /* confdefs.h.  */
18644 _ACEOF
18645 cat confdefs.h >>conftest.$ac_ext
18646 cat >>conftest.$ac_ext <<_ACEOF
18647 /* end confdefs.h.  */
18648 $ac_includes_default
18649 long longval () { return (long) (sizeof (size_t)); }
18650 unsigned long ulongval () { return (long) (sizeof (size_t)); }
18651 #include <stdio.h>
18652 #include <stdlib.h>
18653 int
18654 main ()
18655 {
18656
18657   FILE *f = fopen ("conftest.val", "w");
18658   if (! f)
18659     exit (1);
18660   if (((long) (sizeof (size_t))) < 0)
18661     {
18662       long i = longval ();
18663       if (i != ((long) (sizeof (size_t))))
18664         exit (1);
18665       fprintf (f, "%ld\n", i);
18666     }
18667   else
18668     {
18669       unsigned long i = ulongval ();
18670       if (i != ((long) (sizeof (size_t))))
18671         exit (1);
18672       fprintf (f, "%lu\n", i);
18673     }
18674   exit (ferror (f) || fclose (f) != 0);
18675
18676   ;
18677   return 0;
18678 }
18679 _ACEOF
18680 rm -f conftest$ac_exeext
18681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18682   (eval $ac_link) 2>&5
18683   ac_status=$?
18684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18687   (eval $ac_try) 2>&5
18688   ac_status=$?
18689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690   (exit $ac_status); }; }; then
18691   ac_cv_sizeof_size_t=`cat conftest.val`
18692 else
18693   echo "$as_me: program exited with status $ac_status" >&5
18694 echo "$as_me: failed program was:" >&5
18695 sed 's/^/| /' conftest.$ac_ext >&5
18696
18697 ( exit $ac_status )
18698 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18699 See \`config.log' for more details." >&5
18700 echo "$as_me: error: cannot compute sizeof (size_t), 77
18701 See \`config.log' for more details." >&2;}
18702    { (exit 1); exit 1; }; }
18703 fi
18704 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18705 fi
18706 fi
18707 rm -f conftest.val
18708 else
18709   ac_cv_sizeof_size_t=0
18710 fi
18711 fi
18712 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18713 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18714 cat >>confdefs.h <<_ACEOF
18715 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18716 _ACEOF
18717
18718
18719
18720 # Determine memory alignment requirements for the basic C data types.
18721
18722 echo "$as_me:$LINENO: checking for short" >&5
18723 echo $ECHO_N "checking for short... $ECHO_C" >&6
18724 if test "${ac_cv_type_short+set}" = set; then
18725   echo $ECHO_N "(cached) $ECHO_C" >&6
18726 else
18727   cat >conftest.$ac_ext <<_ACEOF
18728 /* confdefs.h.  */
18729 _ACEOF
18730 cat confdefs.h >>conftest.$ac_ext
18731 cat >>conftest.$ac_ext <<_ACEOF
18732 /* end confdefs.h.  */
18733 $ac_includes_default
18734 int
18735 main ()
18736 {
18737 if ((short *) 0)
18738   return 0;
18739 if (sizeof (short))
18740   return 0;
18741   ;
18742   return 0;
18743 }
18744 _ACEOF
18745 rm -f conftest.$ac_objext
18746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18747   (eval $ac_compile) 2>conftest.er1
18748   ac_status=$?
18749   grep -v '^ *+' conftest.er1 >conftest.err
18750   rm -f conftest.er1
18751   cat conftest.err >&5
18752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753   (exit $ac_status); } &&
18754          { ac_try='test -z "$ac_c_werror_flag"
18755                          || test ! -s conftest.err'
18756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18757   (eval $ac_try) 2>&5
18758   ac_status=$?
18759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760   (exit $ac_status); }; } &&
18761          { ac_try='test -s conftest.$ac_objext'
18762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18763   (eval $ac_try) 2>&5
18764   ac_status=$?
18765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766   (exit $ac_status); }; }; then
18767   ac_cv_type_short=yes
18768 else
18769   echo "$as_me: failed program was:" >&5
18770 sed 's/^/| /' conftest.$ac_ext >&5
18771
18772 ac_cv_type_short=no
18773 fi
18774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18775 fi
18776 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18777 echo "${ECHO_T}$ac_cv_type_short" >&6
18778
18779 echo "$as_me:$LINENO: checking alignment of short" >&5
18780 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
18781 if test "${pgac_cv_alignof_short+set}" = set; then
18782   echo $ECHO_N "(cached) $ECHO_C" >&6
18783 else
18784   if test "$ac_cv_type_short" = yes; then
18785   if test "$cross_compiling" = yes; then
18786   # Depending upon the size, compute the lo and hi bounds.
18787 cat >conftest.$ac_ext <<_ACEOF
18788 /* confdefs.h.  */
18789 _ACEOF
18790 cat confdefs.h >>conftest.$ac_ext
18791 cat >>conftest.$ac_ext <<_ACEOF
18792 /* end confdefs.h.  */
18793 $ac_includes_default
18794 struct { char filler; short field; } pgac_struct;
18795 int
18796 main ()
18797 {
18798 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
18799 test_array [0] = 0
18800
18801   ;
18802   return 0;
18803 }
18804 _ACEOF
18805 rm -f conftest.$ac_objext
18806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18807   (eval $ac_compile) 2>conftest.er1
18808   ac_status=$?
18809   grep -v '^ *+' conftest.er1 >conftest.err
18810   rm -f conftest.er1
18811   cat conftest.err >&5
18812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813   (exit $ac_status); } &&
18814          { ac_try='test -z "$ac_c_werror_flag"
18815                          || test ! -s conftest.err'
18816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18817   (eval $ac_try) 2>&5
18818   ac_status=$?
18819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820   (exit $ac_status); }; } &&
18821          { ac_try='test -s conftest.$ac_objext'
18822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18823   (eval $ac_try) 2>&5
18824   ac_status=$?
18825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826   (exit $ac_status); }; }; then
18827   ac_lo=0 ac_mid=0
18828   while :; do
18829     cat >conftest.$ac_ext <<_ACEOF
18830 /* confdefs.h.  */
18831 _ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h.  */
18835 $ac_includes_default
18836 struct { char filler; short field; } pgac_struct;
18837 int
18838 main ()
18839 {
18840 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18841 test_array [0] = 0
18842
18843   ;
18844   return 0;
18845 }
18846 _ACEOF
18847 rm -f conftest.$ac_objext
18848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18849   (eval $ac_compile) 2>conftest.er1
18850   ac_status=$?
18851   grep -v '^ *+' conftest.er1 >conftest.err
18852   rm -f conftest.er1
18853   cat conftest.err >&5
18854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855   (exit $ac_status); } &&
18856          { ac_try='test -z "$ac_c_werror_flag"
18857                          || test ! -s conftest.err'
18858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18859   (eval $ac_try) 2>&5
18860   ac_status=$?
18861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862   (exit $ac_status); }; } &&
18863          { ac_try='test -s conftest.$ac_objext'
18864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18865   (eval $ac_try) 2>&5
18866   ac_status=$?
18867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868   (exit $ac_status); }; }; then
18869   ac_hi=$ac_mid; break
18870 else
18871   echo "$as_me: failed program was:" >&5
18872 sed 's/^/| /' conftest.$ac_ext >&5
18873
18874 ac_lo=`expr $ac_mid + 1`
18875                     if test $ac_lo -le $ac_mid; then
18876                       ac_lo= ac_hi=
18877                       break
18878                     fi
18879                     ac_mid=`expr 2 '*' $ac_mid + 1`
18880 fi
18881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18882   done
18883 else
18884   echo "$as_me: failed program was:" >&5
18885 sed 's/^/| /' conftest.$ac_ext >&5
18886
18887 cat >conftest.$ac_ext <<_ACEOF
18888 /* confdefs.h.  */
18889 _ACEOF
18890 cat confdefs.h >>conftest.$ac_ext
18891 cat >>conftest.$ac_ext <<_ACEOF
18892 /* end confdefs.h.  */
18893 $ac_includes_default
18894 struct { char filler; short field; } pgac_struct;
18895 int
18896 main ()
18897 {
18898 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
18899 test_array [0] = 0
18900
18901   ;
18902   return 0;
18903 }
18904 _ACEOF
18905 rm -f conftest.$ac_objext
18906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18907   (eval $ac_compile) 2>conftest.er1
18908   ac_status=$?
18909   grep -v '^ *+' conftest.er1 >conftest.err
18910   rm -f conftest.er1
18911   cat conftest.err >&5
18912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913   (exit $ac_status); } &&
18914          { ac_try='test -z "$ac_c_werror_flag"
18915                          || test ! -s conftest.err'
18916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18917   (eval $ac_try) 2>&5
18918   ac_status=$?
18919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920   (exit $ac_status); }; } &&
18921          { ac_try='test -s conftest.$ac_objext'
18922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18923   (eval $ac_try) 2>&5
18924   ac_status=$?
18925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926   (exit $ac_status); }; }; then
18927   ac_hi=-1 ac_mid=-1
18928   while :; do
18929     cat >conftest.$ac_ext <<_ACEOF
18930 /* confdefs.h.  */
18931 _ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h.  */
18935 $ac_includes_default
18936 struct { char filler; short field; } pgac_struct;
18937 int
18938 main ()
18939 {
18940 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
18941 test_array [0] = 0
18942
18943   ;
18944   return 0;
18945 }
18946 _ACEOF
18947 rm -f conftest.$ac_objext
18948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18949   (eval $ac_compile) 2>conftest.er1
18950   ac_status=$?
18951   grep -v '^ *+' conftest.er1 >conftest.err
18952   rm -f conftest.er1
18953   cat conftest.err >&5
18954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955   (exit $ac_status); } &&
18956          { ac_try='test -z "$ac_c_werror_flag"
18957                          || test ! -s conftest.err'
18958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959   (eval $ac_try) 2>&5
18960   ac_status=$?
18961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962   (exit $ac_status); }; } &&
18963          { ac_try='test -s conftest.$ac_objext'
18964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18965   (eval $ac_try) 2>&5
18966   ac_status=$?
18967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968   (exit $ac_status); }; }; then
18969   ac_lo=$ac_mid; break
18970 else
18971   echo "$as_me: failed program was:" >&5
18972 sed 's/^/| /' conftest.$ac_ext >&5
18973
18974 ac_hi=`expr '(' $ac_mid ')' - 1`
18975                        if test $ac_mid -le $ac_hi; then
18976                          ac_lo= ac_hi=
18977                          break
18978                        fi
18979                        ac_mid=`expr 2 '*' $ac_mid`
18980 fi
18981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18982   done
18983 else
18984   echo "$as_me: failed program was:" >&5
18985 sed 's/^/| /' conftest.$ac_ext >&5
18986
18987 ac_lo= ac_hi=
18988 fi
18989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18990 fi
18991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18992 # Binary search between lo and hi bounds.
18993 while test "x$ac_lo" != "x$ac_hi"; do
18994   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18995   cat >conftest.$ac_ext <<_ACEOF
18996 /* confdefs.h.  */
18997 _ACEOF
18998 cat confdefs.h >>conftest.$ac_ext
18999 cat >>conftest.$ac_ext <<_ACEOF
19000 /* end confdefs.h.  */
19001 $ac_includes_default
19002 struct { char filler; short field; } pgac_struct;
19003 int
19004 main ()
19005 {
19006 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19007 test_array [0] = 0
19008
19009   ;
19010   return 0;
19011 }
19012 _ACEOF
19013 rm -f conftest.$ac_objext
19014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19015   (eval $ac_compile) 2>conftest.er1
19016   ac_status=$?
19017   grep -v '^ *+' conftest.er1 >conftest.err
19018   rm -f conftest.er1
19019   cat conftest.err >&5
19020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021   (exit $ac_status); } &&
19022          { ac_try='test -z "$ac_c_werror_flag"
19023                          || test ! -s conftest.err'
19024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19025   (eval $ac_try) 2>&5
19026   ac_status=$?
19027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028   (exit $ac_status); }; } &&
19029          { ac_try='test -s conftest.$ac_objext'
19030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031   (eval $ac_try) 2>&5
19032   ac_status=$?
19033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034   (exit $ac_status); }; }; then
19035   ac_hi=$ac_mid
19036 else
19037   echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19039
19040 ac_lo=`expr '(' $ac_mid ')' + 1`
19041 fi
19042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19043 done
19044 case $ac_lo in
19045 ?*) pgac_cv_alignof_short=$ac_lo;;
19046 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
19047 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
19048    { (exit 1); exit 1; }; } ;;
19049 esac
19050 else
19051   if test "$cross_compiling" = yes; then
19052   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19053 See \`config.log' for more details." >&5
19054 echo "$as_me: error: cannot run test program while cross compiling
19055 See \`config.log' for more details." >&2;}
19056    { (exit 1); exit 1; }; }
19057 else
19058   cat >conftest.$ac_ext <<_ACEOF
19059 /* confdefs.h.  */
19060 _ACEOF
19061 cat confdefs.h >>conftest.$ac_ext
19062 cat >>conftest.$ac_ext <<_ACEOF
19063 /* end confdefs.h.  */
19064 $ac_includes_default
19065 struct { char filler; short field; } pgac_struct;
19066 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19067 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19068 #include <stdio.h>
19069 #include <stdlib.h>
19070 int
19071 main ()
19072 {
19073
19074   FILE *f = fopen ("conftest.val", "w");
19075   if (! f)
19076     exit (1);
19077   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19078     {
19079       long i = longval ();
19080       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19081         exit (1);
19082       fprintf (f, "%ld\n", i);
19083     }
19084   else
19085     {
19086       unsigned long i = ulongval ();
19087       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19088         exit (1);
19089       fprintf (f, "%lu\n", i);
19090     }
19091   exit (ferror (f) || fclose (f) != 0);
19092
19093   ;
19094   return 0;
19095 }
19096 _ACEOF
19097 rm -f conftest$ac_exeext
19098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19099   (eval $ac_link) 2>&5
19100   ac_status=$?
19101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19104   (eval $ac_try) 2>&5
19105   ac_status=$?
19106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107   (exit $ac_status); }; }; then
19108   pgac_cv_alignof_short=`cat conftest.val`
19109 else
19110   echo "$as_me: program exited with status $ac_status" >&5
19111 echo "$as_me: failed program was:" >&5
19112 sed 's/^/| /' conftest.$ac_ext >&5
19113
19114 ( exit $ac_status )
19115 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
19116 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
19117    { (exit 1); exit 1; }; }
19118 fi
19119 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19120 fi
19121 fi
19122 rm -f conftest.val
19123 else
19124   pgac_cv_alignof_short=0
19125 fi
19126 fi
19127 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
19128 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
19129 cat >>confdefs.h <<_ACEOF
19130 #define ALIGNOF_SHORT $pgac_cv_alignof_short
19131 _ACEOF
19132
19133
19134 echo "$as_me:$LINENO: checking for int" >&5
19135 echo $ECHO_N "checking for int... $ECHO_C" >&6
19136 if test "${ac_cv_type_int+set}" = set; then
19137   echo $ECHO_N "(cached) $ECHO_C" >&6
19138 else
19139   cat >conftest.$ac_ext <<_ACEOF
19140 /* confdefs.h.  */
19141 _ACEOF
19142 cat confdefs.h >>conftest.$ac_ext
19143 cat >>conftest.$ac_ext <<_ACEOF
19144 /* end confdefs.h.  */
19145 $ac_includes_default
19146 int
19147 main ()
19148 {
19149 if ((int *) 0)
19150   return 0;
19151 if (sizeof (int))
19152   return 0;
19153   ;
19154   return 0;
19155 }
19156 _ACEOF
19157 rm -f conftest.$ac_objext
19158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19159   (eval $ac_compile) 2>conftest.er1
19160   ac_status=$?
19161   grep -v '^ *+' conftest.er1 >conftest.err
19162   rm -f conftest.er1
19163   cat conftest.err >&5
19164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165   (exit $ac_status); } &&
19166          { ac_try='test -z "$ac_c_werror_flag"
19167                          || test ! -s conftest.err'
19168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19169   (eval $ac_try) 2>&5
19170   ac_status=$?
19171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172   (exit $ac_status); }; } &&
19173          { ac_try='test -s conftest.$ac_objext'
19174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175   (eval $ac_try) 2>&5
19176   ac_status=$?
19177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178   (exit $ac_status); }; }; then
19179   ac_cv_type_int=yes
19180 else
19181   echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.$ac_ext >&5
19183
19184 ac_cv_type_int=no
19185 fi
19186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19187 fi
19188 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19189 echo "${ECHO_T}$ac_cv_type_int" >&6
19190
19191 echo "$as_me:$LINENO: checking alignment of int" >&5
19192 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
19193 if test "${pgac_cv_alignof_int+set}" = set; then
19194   echo $ECHO_N "(cached) $ECHO_C" >&6
19195 else
19196   if test "$ac_cv_type_int" = yes; then
19197   if test "$cross_compiling" = yes; then
19198   # Depending upon the size, compute the lo and hi bounds.
19199 cat >conftest.$ac_ext <<_ACEOF
19200 /* confdefs.h.  */
19201 _ACEOF
19202 cat confdefs.h >>conftest.$ac_ext
19203 cat >>conftest.$ac_ext <<_ACEOF
19204 /* end confdefs.h.  */
19205 $ac_includes_default
19206 struct { char filler; int field; } pgac_struct;
19207 int
19208 main ()
19209 {
19210 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19211 test_array [0] = 0
19212
19213   ;
19214   return 0;
19215 }
19216 _ACEOF
19217 rm -f conftest.$ac_objext
19218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19219   (eval $ac_compile) 2>conftest.er1
19220   ac_status=$?
19221   grep -v '^ *+' conftest.er1 >conftest.err
19222   rm -f conftest.er1
19223   cat conftest.err >&5
19224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225   (exit $ac_status); } &&
19226          { ac_try='test -z "$ac_c_werror_flag"
19227                          || test ! -s conftest.err'
19228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229   (eval $ac_try) 2>&5
19230   ac_status=$?
19231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232   (exit $ac_status); }; } &&
19233          { ac_try='test -s conftest.$ac_objext'
19234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19235   (eval $ac_try) 2>&5
19236   ac_status=$?
19237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238   (exit $ac_status); }; }; then
19239   ac_lo=0 ac_mid=0
19240   while :; do
19241     cat >conftest.$ac_ext <<_ACEOF
19242 /* confdefs.h.  */
19243 _ACEOF
19244 cat confdefs.h >>conftest.$ac_ext
19245 cat >>conftest.$ac_ext <<_ACEOF
19246 /* end confdefs.h.  */
19247 $ac_includes_default
19248 struct { char filler; int field; } pgac_struct;
19249 int
19250 main ()
19251 {
19252 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19253 test_array [0] = 0
19254
19255   ;
19256   return 0;
19257 }
19258 _ACEOF
19259 rm -f conftest.$ac_objext
19260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19261   (eval $ac_compile) 2>conftest.er1
19262   ac_status=$?
19263   grep -v '^ *+' conftest.er1 >conftest.err
19264   rm -f conftest.er1
19265   cat conftest.err >&5
19266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267   (exit $ac_status); } &&
19268          { ac_try='test -z "$ac_c_werror_flag"
19269                          || test ! -s conftest.err'
19270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19271   (eval $ac_try) 2>&5
19272   ac_status=$?
19273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274   (exit $ac_status); }; } &&
19275          { ac_try='test -s conftest.$ac_objext'
19276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19277   (eval $ac_try) 2>&5
19278   ac_status=$?
19279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280   (exit $ac_status); }; }; then
19281   ac_hi=$ac_mid; break
19282 else
19283   echo "$as_me: failed program was:" >&5
19284 sed 's/^/| /' conftest.$ac_ext >&5
19285
19286 ac_lo=`expr $ac_mid + 1`
19287                     if test $ac_lo -le $ac_mid; then
19288                       ac_lo= ac_hi=
19289                       break
19290                     fi
19291                     ac_mid=`expr 2 '*' $ac_mid + 1`
19292 fi
19293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19294   done
19295 else
19296   echo "$as_me: failed program was:" >&5
19297 sed 's/^/| /' conftest.$ac_ext >&5
19298
19299 cat >conftest.$ac_ext <<_ACEOF
19300 /* confdefs.h.  */
19301 _ACEOF
19302 cat confdefs.h >>conftest.$ac_ext
19303 cat >>conftest.$ac_ext <<_ACEOF
19304 /* end confdefs.h.  */
19305 $ac_includes_default
19306 struct { char filler; int field; } pgac_struct;
19307 int
19308 main ()
19309 {
19310 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19311 test_array [0] = 0
19312
19313   ;
19314   return 0;
19315 }
19316 _ACEOF
19317 rm -f conftest.$ac_objext
19318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19319   (eval $ac_compile) 2>conftest.er1
19320   ac_status=$?
19321   grep -v '^ *+' conftest.er1 >conftest.err
19322   rm -f conftest.er1
19323   cat conftest.err >&5
19324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325   (exit $ac_status); } &&
19326          { ac_try='test -z "$ac_c_werror_flag"
19327                          || test ! -s conftest.err'
19328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19329   (eval $ac_try) 2>&5
19330   ac_status=$?
19331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332   (exit $ac_status); }; } &&
19333          { ac_try='test -s conftest.$ac_objext'
19334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19335   (eval $ac_try) 2>&5
19336   ac_status=$?
19337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338   (exit $ac_status); }; }; then
19339   ac_hi=-1 ac_mid=-1
19340   while :; do
19341     cat >conftest.$ac_ext <<_ACEOF
19342 /* confdefs.h.  */
19343 _ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h.  */
19347 $ac_includes_default
19348 struct { char filler; int field; } pgac_struct;
19349 int
19350 main ()
19351 {
19352 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19353 test_array [0] = 0
19354
19355   ;
19356   return 0;
19357 }
19358 _ACEOF
19359 rm -f conftest.$ac_objext
19360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19361   (eval $ac_compile) 2>conftest.er1
19362   ac_status=$?
19363   grep -v '^ *+' conftest.er1 >conftest.err
19364   rm -f conftest.er1
19365   cat conftest.err >&5
19366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367   (exit $ac_status); } &&
19368          { ac_try='test -z "$ac_c_werror_flag"
19369                          || test ! -s conftest.err'
19370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19371   (eval $ac_try) 2>&5
19372   ac_status=$?
19373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374   (exit $ac_status); }; } &&
19375          { ac_try='test -s conftest.$ac_objext'
19376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19377   (eval $ac_try) 2>&5
19378   ac_status=$?
19379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380   (exit $ac_status); }; }; then
19381   ac_lo=$ac_mid; break
19382 else
19383   echo "$as_me: failed program was:" >&5
19384 sed 's/^/| /' conftest.$ac_ext >&5
19385
19386 ac_hi=`expr '(' $ac_mid ')' - 1`
19387                        if test $ac_mid -le $ac_hi; then
19388                          ac_lo= ac_hi=
19389                          break
19390                        fi
19391                        ac_mid=`expr 2 '*' $ac_mid`
19392 fi
19393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19394   done
19395 else
19396   echo "$as_me: failed program was:" >&5
19397 sed 's/^/| /' conftest.$ac_ext >&5
19398
19399 ac_lo= ac_hi=
19400 fi
19401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19402 fi
19403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19404 # Binary search between lo and hi bounds.
19405 while test "x$ac_lo" != "x$ac_hi"; do
19406   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19407   cat >conftest.$ac_ext <<_ACEOF
19408 /* confdefs.h.  */
19409 _ACEOF
19410 cat confdefs.h >>conftest.$ac_ext
19411 cat >>conftest.$ac_ext <<_ACEOF
19412 /* end confdefs.h.  */
19413 $ac_includes_default
19414 struct { char filler; int field; } pgac_struct;
19415 int
19416 main ()
19417 {
19418 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19419 test_array [0] = 0
19420
19421   ;
19422   return 0;
19423 }
19424 _ACEOF
19425 rm -f conftest.$ac_objext
19426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19427   (eval $ac_compile) 2>conftest.er1
19428   ac_status=$?
19429   grep -v '^ *+' conftest.er1 >conftest.err
19430   rm -f conftest.er1
19431   cat conftest.err >&5
19432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433   (exit $ac_status); } &&
19434          { ac_try='test -z "$ac_c_werror_flag"
19435                          || test ! -s conftest.err'
19436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19437   (eval $ac_try) 2>&5
19438   ac_status=$?
19439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440   (exit $ac_status); }; } &&
19441          { ac_try='test -s conftest.$ac_objext'
19442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19443   (eval $ac_try) 2>&5
19444   ac_status=$?
19445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446   (exit $ac_status); }; }; then
19447   ac_hi=$ac_mid
19448 else
19449   echo "$as_me: failed program was:" >&5
19450 sed 's/^/| /' conftest.$ac_ext >&5
19451
19452 ac_lo=`expr '(' $ac_mid ')' + 1`
19453 fi
19454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19455 done
19456 case $ac_lo in
19457 ?*) pgac_cv_alignof_int=$ac_lo;;
19458 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
19459 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
19460    { (exit 1); exit 1; }; } ;;
19461 esac
19462 else
19463   if test "$cross_compiling" = yes; then
19464   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19465 See \`config.log' for more details." >&5
19466 echo "$as_me: error: cannot run test program while cross compiling
19467 See \`config.log' for more details." >&2;}
19468    { (exit 1); exit 1; }; }
19469 else
19470   cat >conftest.$ac_ext <<_ACEOF
19471 /* confdefs.h.  */
19472 _ACEOF
19473 cat confdefs.h >>conftest.$ac_ext
19474 cat >>conftest.$ac_ext <<_ACEOF
19475 /* end confdefs.h.  */
19476 $ac_includes_default
19477 struct { char filler; int field; } pgac_struct;
19478 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19479 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19480 #include <stdio.h>
19481 #include <stdlib.h>
19482 int
19483 main ()
19484 {
19485
19486   FILE *f = fopen ("conftest.val", "w");
19487   if (! f)
19488     exit (1);
19489   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19490     {
19491       long i = longval ();
19492       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19493         exit (1);
19494       fprintf (f, "%ld\n", i);
19495     }
19496   else
19497     {
19498       unsigned long i = ulongval ();
19499       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19500         exit (1);
19501       fprintf (f, "%lu\n", i);
19502     }
19503   exit (ferror (f) || fclose (f) != 0);
19504
19505   ;
19506   return 0;
19507 }
19508 _ACEOF
19509 rm -f conftest$ac_exeext
19510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19511   (eval $ac_link) 2>&5
19512   ac_status=$?
19513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516   (eval $ac_try) 2>&5
19517   ac_status=$?
19518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519   (exit $ac_status); }; }; then
19520   pgac_cv_alignof_int=`cat conftest.val`
19521 else
19522   echo "$as_me: program exited with status $ac_status" >&5
19523 echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19525
19526 ( exit $ac_status )
19527 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
19528 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
19529    { (exit 1); exit 1; }; }
19530 fi
19531 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19532 fi
19533 fi
19534 rm -f conftest.val
19535 else
19536   pgac_cv_alignof_int=0
19537 fi
19538 fi
19539 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
19540 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
19541 cat >>confdefs.h <<_ACEOF
19542 #define ALIGNOF_INT $pgac_cv_alignof_int
19543 _ACEOF
19544
19545
19546 echo "$as_me:$LINENO: checking for long" >&5
19547 echo $ECHO_N "checking for long... $ECHO_C" >&6
19548 if test "${ac_cv_type_long+set}" = set; then
19549   echo $ECHO_N "(cached) $ECHO_C" >&6
19550 else
19551   cat >conftest.$ac_ext <<_ACEOF
19552 /* confdefs.h.  */
19553 _ACEOF
19554 cat confdefs.h >>conftest.$ac_ext
19555 cat >>conftest.$ac_ext <<_ACEOF
19556 /* end confdefs.h.  */
19557 $ac_includes_default
19558 int
19559 main ()
19560 {
19561 if ((long *) 0)
19562   return 0;
19563 if (sizeof (long))
19564   return 0;
19565   ;
19566   return 0;
19567 }
19568 _ACEOF
19569 rm -f conftest.$ac_objext
19570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19571   (eval $ac_compile) 2>conftest.er1
19572   ac_status=$?
19573   grep -v '^ *+' conftest.er1 >conftest.err
19574   rm -f conftest.er1
19575   cat conftest.err >&5
19576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577   (exit $ac_status); } &&
19578          { ac_try='test -z "$ac_c_werror_flag"
19579                          || test ! -s conftest.err'
19580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19581   (eval $ac_try) 2>&5
19582   ac_status=$?
19583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584   (exit $ac_status); }; } &&
19585          { ac_try='test -s conftest.$ac_objext'
19586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19587   (eval $ac_try) 2>&5
19588   ac_status=$?
19589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590   (exit $ac_status); }; }; then
19591   ac_cv_type_long=yes
19592 else
19593   echo "$as_me: failed program was:" >&5
19594 sed 's/^/| /' conftest.$ac_ext >&5
19595
19596 ac_cv_type_long=no
19597 fi
19598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19599 fi
19600 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19601 echo "${ECHO_T}$ac_cv_type_long" >&6
19602
19603 echo "$as_me:$LINENO: checking alignment of long" >&5
19604 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
19605 if test "${pgac_cv_alignof_long+set}" = set; then
19606   echo $ECHO_N "(cached) $ECHO_C" >&6
19607 else
19608   if test "$ac_cv_type_long" = yes; then
19609   if test "$cross_compiling" = yes; then
19610   # Depending upon the size, compute the lo and hi bounds.
19611 cat >conftest.$ac_ext <<_ACEOF
19612 /* confdefs.h.  */
19613 _ACEOF
19614 cat confdefs.h >>conftest.$ac_ext
19615 cat >>conftest.$ac_ext <<_ACEOF
19616 /* end confdefs.h.  */
19617 $ac_includes_default
19618 struct { char filler; long field; } pgac_struct;
19619 int
19620 main ()
19621 {
19622 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19623 test_array [0] = 0
19624
19625   ;
19626   return 0;
19627 }
19628 _ACEOF
19629 rm -f conftest.$ac_objext
19630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19631   (eval $ac_compile) 2>conftest.er1
19632   ac_status=$?
19633   grep -v '^ *+' conftest.er1 >conftest.err
19634   rm -f conftest.er1
19635   cat conftest.err >&5
19636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637   (exit $ac_status); } &&
19638          { ac_try='test -z "$ac_c_werror_flag"
19639                          || test ! -s conftest.err'
19640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641   (eval $ac_try) 2>&5
19642   ac_status=$?
19643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644   (exit $ac_status); }; } &&
19645          { ac_try='test -s conftest.$ac_objext'
19646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647   (eval $ac_try) 2>&5
19648   ac_status=$?
19649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650   (exit $ac_status); }; }; then
19651   ac_lo=0 ac_mid=0
19652   while :; do
19653     cat >conftest.$ac_ext <<_ACEOF
19654 /* confdefs.h.  */
19655 _ACEOF
19656 cat confdefs.h >>conftest.$ac_ext
19657 cat >>conftest.$ac_ext <<_ACEOF
19658 /* end confdefs.h.  */
19659 $ac_includes_default
19660 struct { char filler; long field; } pgac_struct;
19661 int
19662 main ()
19663 {
19664 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19665 test_array [0] = 0
19666
19667   ;
19668   return 0;
19669 }
19670 _ACEOF
19671 rm -f conftest.$ac_objext
19672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19673   (eval $ac_compile) 2>conftest.er1
19674   ac_status=$?
19675   grep -v '^ *+' conftest.er1 >conftest.err
19676   rm -f conftest.er1
19677   cat conftest.err >&5
19678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679   (exit $ac_status); } &&
19680          { ac_try='test -z "$ac_c_werror_flag"
19681                          || test ! -s conftest.err'
19682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19683   (eval $ac_try) 2>&5
19684   ac_status=$?
19685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686   (exit $ac_status); }; } &&
19687          { ac_try='test -s conftest.$ac_objext'
19688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19689   (eval $ac_try) 2>&5
19690   ac_status=$?
19691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692   (exit $ac_status); }; }; then
19693   ac_hi=$ac_mid; break
19694 else
19695   echo "$as_me: failed program was:" >&5
19696 sed 's/^/| /' conftest.$ac_ext >&5
19697
19698 ac_lo=`expr $ac_mid + 1`
19699                     if test $ac_lo -le $ac_mid; then
19700                       ac_lo= ac_hi=
19701                       break
19702                     fi
19703                     ac_mid=`expr 2 '*' $ac_mid + 1`
19704 fi
19705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19706   done
19707 else
19708   echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19710
19711 cat >conftest.$ac_ext <<_ACEOF
19712 /* confdefs.h.  */
19713 _ACEOF
19714 cat confdefs.h >>conftest.$ac_ext
19715 cat >>conftest.$ac_ext <<_ACEOF
19716 /* end confdefs.h.  */
19717 $ac_includes_default
19718 struct { char filler; long field; } pgac_struct;
19719 int
19720 main ()
19721 {
19722 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19723 test_array [0] = 0
19724
19725   ;
19726   return 0;
19727 }
19728 _ACEOF
19729 rm -f conftest.$ac_objext
19730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19731   (eval $ac_compile) 2>conftest.er1
19732   ac_status=$?
19733   grep -v '^ *+' conftest.er1 >conftest.err
19734   rm -f conftest.er1
19735   cat conftest.err >&5
19736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737   (exit $ac_status); } &&
19738          { ac_try='test -z "$ac_c_werror_flag"
19739                          || test ! -s conftest.err'
19740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19741   (eval $ac_try) 2>&5
19742   ac_status=$?
19743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744   (exit $ac_status); }; } &&
19745          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19751   ac_hi=-1 ac_mid=-1
19752   while :; do
19753     cat >conftest.$ac_ext <<_ACEOF
19754 /* confdefs.h.  */
19755 _ACEOF
19756 cat confdefs.h >>conftest.$ac_ext
19757 cat >>conftest.$ac_ext <<_ACEOF
19758 /* end confdefs.h.  */
19759 $ac_includes_default
19760 struct { char filler; long field; } pgac_struct;
19761 int
19762 main ()
19763 {
19764 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19765 test_array [0] = 0
19766
19767   ;
19768   return 0;
19769 }
19770 _ACEOF
19771 rm -f conftest.$ac_objext
19772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19773   (eval $ac_compile) 2>conftest.er1
19774   ac_status=$?
19775   grep -v '^ *+' conftest.er1 >conftest.err
19776   rm -f conftest.er1
19777   cat conftest.err >&5
19778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779   (exit $ac_status); } &&
19780          { ac_try='test -z "$ac_c_werror_flag"
19781                          || test ! -s conftest.err'
19782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19783   (eval $ac_try) 2>&5
19784   ac_status=$?
19785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786   (exit $ac_status); }; } &&
19787          { ac_try='test -s conftest.$ac_objext'
19788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19789   (eval $ac_try) 2>&5
19790   ac_status=$?
19791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792   (exit $ac_status); }; }; then
19793   ac_lo=$ac_mid; break
19794 else
19795   echo "$as_me: failed program was:" >&5
19796 sed 's/^/| /' conftest.$ac_ext >&5
19797
19798 ac_hi=`expr '(' $ac_mid ')' - 1`
19799                        if test $ac_mid -le $ac_hi; then
19800                          ac_lo= ac_hi=
19801                          break
19802                        fi
19803                        ac_mid=`expr 2 '*' $ac_mid`
19804 fi
19805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19806   done
19807 else
19808   echo "$as_me: failed program was:" >&5
19809 sed 's/^/| /' conftest.$ac_ext >&5
19810
19811 ac_lo= ac_hi=
19812 fi
19813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19814 fi
19815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19816 # Binary search between lo and hi bounds.
19817 while test "x$ac_lo" != "x$ac_hi"; do
19818   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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; long 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
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 fi
19866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19867 done
19868 case $ac_lo in
19869 ?*) pgac_cv_alignof_long=$ac_lo;;
19870 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
19871 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
19872    { (exit 1); exit 1; }; } ;;
19873 esac
19874 else
19875   if test "$cross_compiling" = yes; then
19876   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19877 See \`config.log' for more details." >&5
19878 echo "$as_me: error: cannot run test program while cross compiling
19879 See \`config.log' for more details." >&2;}
19880    { (exit 1); exit 1; }; }
19881 else
19882   cat >conftest.$ac_ext <<_ACEOF
19883 /* confdefs.h.  */
19884 _ACEOF
19885 cat confdefs.h >>conftest.$ac_ext
19886 cat >>conftest.$ac_ext <<_ACEOF
19887 /* end confdefs.h.  */
19888 $ac_includes_default
19889 struct { char filler; long field; } pgac_struct;
19890 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19891 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19892 #include <stdio.h>
19893 #include <stdlib.h>
19894 int
19895 main ()
19896 {
19897
19898   FILE *f = fopen ("conftest.val", "w");
19899   if (! f)
19900     exit (1);
19901   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19902     {
19903       long i = longval ();
19904       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19905         exit (1);
19906       fprintf (f, "%ld\n", i);
19907     }
19908   else
19909     {
19910       unsigned long i = ulongval ();
19911       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19912         exit (1);
19913       fprintf (f, "%lu\n", i);
19914     }
19915   exit (ferror (f) || fclose (f) != 0);
19916
19917   ;
19918   return 0;
19919 }
19920 _ACEOF
19921 rm -f conftest$ac_exeext
19922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19923   (eval $ac_link) 2>&5
19924   ac_status=$?
19925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19928   (eval $ac_try) 2>&5
19929   ac_status=$?
19930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931   (exit $ac_status); }; }; then
19932   pgac_cv_alignof_long=`cat conftest.val`
19933 else
19934   echo "$as_me: program exited with status $ac_status" >&5
19935 echo "$as_me: failed program was:" >&5
19936 sed 's/^/| /' conftest.$ac_ext >&5
19937
19938 ( exit $ac_status )
19939 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
19940 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
19941    { (exit 1); exit 1; }; }
19942 fi
19943 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19944 fi
19945 fi
19946 rm -f conftest.val
19947 else
19948   pgac_cv_alignof_long=0
19949 fi
19950 fi
19951 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
19952 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
19953 cat >>confdefs.h <<_ACEOF
19954 #define ALIGNOF_LONG $pgac_cv_alignof_long
19955 _ACEOF
19956
19957
19958 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
19959   echo "$as_me:$LINENO: checking for long long int" >&5
19960 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
19961 if test "${ac_cv_type_long_long_int+set}" = set; then
19962   echo $ECHO_N "(cached) $ECHO_C" >&6
19963 else
19964   cat >conftest.$ac_ext <<_ACEOF
19965 /* confdefs.h.  */
19966 _ACEOF
19967 cat confdefs.h >>conftest.$ac_ext
19968 cat >>conftest.$ac_ext <<_ACEOF
19969 /* end confdefs.h.  */
19970 $ac_includes_default
19971 int
19972 main ()
19973 {
19974 if ((long long int *) 0)
19975   return 0;
19976 if (sizeof (long long int))
19977   return 0;
19978   ;
19979   return 0;
19980 }
19981 _ACEOF
19982 rm -f conftest.$ac_objext
19983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19984   (eval $ac_compile) 2>conftest.er1
19985   ac_status=$?
19986   grep -v '^ *+' conftest.er1 >conftest.err
19987   rm -f conftest.er1
19988   cat conftest.err >&5
19989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990   (exit $ac_status); } &&
19991          { ac_try='test -z "$ac_c_werror_flag"
19992                          || test ! -s conftest.err'
19993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994   (eval $ac_try) 2>&5
19995   ac_status=$?
19996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997   (exit $ac_status); }; } &&
19998          { ac_try='test -s conftest.$ac_objext'
19999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000   (eval $ac_try) 2>&5
20001   ac_status=$?
20002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003   (exit $ac_status); }; }; then
20004   ac_cv_type_long_long_int=yes
20005 else
20006   echo "$as_me: failed program was:" >&5
20007 sed 's/^/| /' conftest.$ac_ext >&5
20008
20009 ac_cv_type_long_long_int=no
20010 fi
20011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20012 fi
20013 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
20014 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
20015
20016 echo "$as_me:$LINENO: checking alignment of long long int" >&5
20017 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
20018 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
20019   echo $ECHO_N "(cached) $ECHO_C" >&6
20020 else
20021   if test "$ac_cv_type_long_long_int" = yes; then
20022   if test "$cross_compiling" = yes; then
20023   # Depending upon the size, compute the lo and hi bounds.
20024 cat >conftest.$ac_ext <<_ACEOF
20025 /* confdefs.h.  */
20026 _ACEOF
20027 cat confdefs.h >>conftest.$ac_ext
20028 cat >>conftest.$ac_ext <<_ACEOF
20029 /* end confdefs.h.  */
20030 $ac_includes_default
20031 struct { char filler; long long int field; } pgac_struct;
20032 int
20033 main ()
20034 {
20035 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
20036 test_array [0] = 0
20037
20038   ;
20039   return 0;
20040 }
20041 _ACEOF
20042 rm -f conftest.$ac_objext
20043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20044   (eval $ac_compile) 2>conftest.er1
20045   ac_status=$?
20046   grep -v '^ *+' conftest.er1 >conftest.err
20047   rm -f conftest.er1
20048   cat conftest.err >&5
20049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050   (exit $ac_status); } &&
20051          { ac_try='test -z "$ac_c_werror_flag"
20052                          || test ! -s conftest.err'
20053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20054   (eval $ac_try) 2>&5
20055   ac_status=$?
20056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057   (exit $ac_status); }; } &&
20058          { ac_try='test -s conftest.$ac_objext'
20059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20060   (eval $ac_try) 2>&5
20061   ac_status=$?
20062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063   (exit $ac_status); }; }; then
20064   ac_lo=0 ac_mid=0
20065   while :; do
20066     cat >conftest.$ac_ext <<_ACEOF
20067 /* confdefs.h.  */
20068 _ACEOF
20069 cat confdefs.h >>conftest.$ac_ext
20070 cat >>conftest.$ac_ext <<_ACEOF
20071 /* end confdefs.h.  */
20072 $ac_includes_default
20073 struct { char filler; long long int field; } pgac_struct;
20074 int
20075 main ()
20076 {
20077 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20078 test_array [0] = 0
20079
20080   ;
20081   return 0;
20082 }
20083 _ACEOF
20084 rm -f conftest.$ac_objext
20085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20086   (eval $ac_compile) 2>conftest.er1
20087   ac_status=$?
20088   grep -v '^ *+' conftest.er1 >conftest.err
20089   rm -f conftest.er1
20090   cat conftest.err >&5
20091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092   (exit $ac_status); } &&
20093          { ac_try='test -z "$ac_c_werror_flag"
20094                          || test ! -s conftest.err'
20095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20096   (eval $ac_try) 2>&5
20097   ac_status=$?
20098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099   (exit $ac_status); }; } &&
20100          { ac_try='test -s conftest.$ac_objext'
20101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20102   (eval $ac_try) 2>&5
20103   ac_status=$?
20104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105   (exit $ac_status); }; }; then
20106   ac_hi=$ac_mid; break
20107 else
20108   echo "$as_me: failed program was:" >&5
20109 sed 's/^/| /' conftest.$ac_ext >&5
20110
20111 ac_lo=`expr $ac_mid + 1`
20112                     if test $ac_lo -le $ac_mid; then
20113                       ac_lo= ac_hi=
20114                       break
20115                     fi
20116                     ac_mid=`expr 2 '*' $ac_mid + 1`
20117 fi
20118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20119   done
20120 else
20121   echo "$as_me: failed program was:" >&5
20122 sed 's/^/| /' conftest.$ac_ext >&5
20123
20124 cat >conftest.$ac_ext <<_ACEOF
20125 /* confdefs.h.  */
20126 _ACEOF
20127 cat confdefs.h >>conftest.$ac_ext
20128 cat >>conftest.$ac_ext <<_ACEOF
20129 /* end confdefs.h.  */
20130 $ac_includes_default
20131 struct { char filler; long long int field; } pgac_struct;
20132 int
20133 main ()
20134 {
20135 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
20136 test_array [0] = 0
20137
20138   ;
20139   return 0;
20140 }
20141 _ACEOF
20142 rm -f conftest.$ac_objext
20143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20144   (eval $ac_compile) 2>conftest.er1
20145   ac_status=$?
20146   grep -v '^ *+' conftest.er1 >conftest.err
20147   rm -f conftest.er1
20148   cat conftest.err >&5
20149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150   (exit $ac_status); } &&
20151          { ac_try='test -z "$ac_c_werror_flag"
20152                          || test ! -s conftest.err'
20153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20154   (eval $ac_try) 2>&5
20155   ac_status=$?
20156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157   (exit $ac_status); }; } &&
20158          { ac_try='test -s conftest.$ac_objext'
20159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20160   (eval $ac_try) 2>&5
20161   ac_status=$?
20162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163   (exit $ac_status); }; }; then
20164   ac_hi=-1 ac_mid=-1
20165   while :; do
20166     cat >conftest.$ac_ext <<_ACEOF
20167 /* confdefs.h.  */
20168 _ACEOF
20169 cat confdefs.h >>conftest.$ac_ext
20170 cat >>conftest.$ac_ext <<_ACEOF
20171 /* end confdefs.h.  */
20172 $ac_includes_default
20173 struct { char filler; long long int field; } pgac_struct;
20174 int
20175 main ()
20176 {
20177 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20178 test_array [0] = 0
20179
20180   ;
20181   return 0;
20182 }
20183 _ACEOF
20184 rm -f conftest.$ac_objext
20185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20186   (eval $ac_compile) 2>conftest.er1
20187   ac_status=$?
20188   grep -v '^ *+' conftest.er1 >conftest.err
20189   rm -f conftest.er1
20190   cat conftest.err >&5
20191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192   (exit $ac_status); } &&
20193          { ac_try='test -z "$ac_c_werror_flag"
20194                          || test ! -s conftest.err'
20195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196   (eval $ac_try) 2>&5
20197   ac_status=$?
20198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199   (exit $ac_status); }; } &&
20200          { ac_try='test -s conftest.$ac_objext'
20201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20202   (eval $ac_try) 2>&5
20203   ac_status=$?
20204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205   (exit $ac_status); }; }; then
20206   ac_lo=$ac_mid; break
20207 else
20208   echo "$as_me: failed program was:" >&5
20209 sed 's/^/| /' conftest.$ac_ext >&5
20210
20211 ac_hi=`expr '(' $ac_mid ')' - 1`
20212                        if test $ac_mid -le $ac_hi; then
20213                          ac_lo= ac_hi=
20214                          break
20215                        fi
20216                        ac_mid=`expr 2 '*' $ac_mid`
20217 fi
20218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20219   done
20220 else
20221   echo "$as_me: failed program was:" >&5
20222 sed 's/^/| /' conftest.$ac_ext >&5
20223
20224 ac_lo= ac_hi=
20225 fi
20226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20227 fi
20228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20229 # Binary search between lo and hi bounds.
20230 while test "x$ac_lo" != "x$ac_hi"; do
20231   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20232   cat >conftest.$ac_ext <<_ACEOF
20233 /* confdefs.h.  */
20234 _ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h.  */
20238 $ac_includes_default
20239 struct { char filler; long long int field; } pgac_struct;
20240 int
20241 main ()
20242 {
20243 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20244 test_array [0] = 0
20245
20246   ;
20247   return 0;
20248 }
20249 _ACEOF
20250 rm -f conftest.$ac_objext
20251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20252   (eval $ac_compile) 2>conftest.er1
20253   ac_status=$?
20254   grep -v '^ *+' conftest.er1 >conftest.err
20255   rm -f conftest.er1
20256   cat conftest.err >&5
20257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258   (exit $ac_status); } &&
20259          { ac_try='test -z "$ac_c_werror_flag"
20260                          || test ! -s conftest.err'
20261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20262   (eval $ac_try) 2>&5
20263   ac_status=$?
20264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265   (exit $ac_status); }; } &&
20266          { ac_try='test -s conftest.$ac_objext'
20267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268   (eval $ac_try) 2>&5
20269   ac_status=$?
20270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271   (exit $ac_status); }; }; then
20272   ac_hi=$ac_mid
20273 else
20274   echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20276
20277 ac_lo=`expr '(' $ac_mid ')' + 1`
20278 fi
20279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20280 done
20281 case $ac_lo in
20282 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
20283 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
20284 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
20285    { (exit 1); exit 1; }; } ;;
20286 esac
20287 else
20288   if test "$cross_compiling" = yes; then
20289   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20290 See \`config.log' for more details." >&5
20291 echo "$as_me: error: cannot run test program while cross compiling
20292 See \`config.log' for more details." >&2;}
20293    { (exit 1); exit 1; }; }
20294 else
20295   cat >conftest.$ac_ext <<_ACEOF
20296 /* confdefs.h.  */
20297 _ACEOF
20298 cat confdefs.h >>conftest.$ac_ext
20299 cat >>conftest.$ac_ext <<_ACEOF
20300 /* end confdefs.h.  */
20301 $ac_includes_default
20302 struct { char filler; long long int field; } pgac_struct;
20303 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20304 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20305 #include <stdio.h>
20306 #include <stdlib.h>
20307 int
20308 main ()
20309 {
20310
20311   FILE *f = fopen ("conftest.val", "w");
20312   if (! f)
20313     exit (1);
20314   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20315     {
20316       long i = longval ();
20317       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20318         exit (1);
20319       fprintf (f, "%ld\n", i);
20320     }
20321   else
20322     {
20323       unsigned long i = ulongval ();
20324       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20325         exit (1);
20326       fprintf (f, "%lu\n", i);
20327     }
20328   exit (ferror (f) || fclose (f) != 0);
20329
20330   ;
20331   return 0;
20332 }
20333 _ACEOF
20334 rm -f conftest$ac_exeext
20335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20336   (eval $ac_link) 2>&5
20337   ac_status=$?
20338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341   (eval $ac_try) 2>&5
20342   ac_status=$?
20343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344   (exit $ac_status); }; }; then
20345   pgac_cv_alignof_long_long_int=`cat conftest.val`
20346 else
20347   echo "$as_me: program exited with status $ac_status" >&5
20348 echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20350
20351 ( exit $ac_status )
20352 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
20353 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
20354    { (exit 1); exit 1; }; }
20355 fi
20356 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20357 fi
20358 fi
20359 rm -f conftest.val
20360 else
20361   pgac_cv_alignof_long_long_int=0
20362 fi
20363 fi
20364 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
20365 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
20366 cat >>confdefs.h <<_ACEOF
20367 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
20368 _ACEOF
20369
20370
20371 fi
20372 echo "$as_me:$LINENO: checking for double" >&5
20373 echo $ECHO_N "checking for double... $ECHO_C" >&6
20374 if test "${ac_cv_type_double+set}" = set; then
20375   echo $ECHO_N "(cached) $ECHO_C" >&6
20376 else
20377   cat >conftest.$ac_ext <<_ACEOF
20378 /* confdefs.h.  */
20379 _ACEOF
20380 cat confdefs.h >>conftest.$ac_ext
20381 cat >>conftest.$ac_ext <<_ACEOF
20382 /* end confdefs.h.  */
20383 $ac_includes_default
20384 int
20385 main ()
20386 {
20387 if ((double *) 0)
20388   return 0;
20389 if (sizeof (double))
20390   return 0;
20391   ;
20392   return 0;
20393 }
20394 _ACEOF
20395 rm -f conftest.$ac_objext
20396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20397   (eval $ac_compile) 2>conftest.er1
20398   ac_status=$?
20399   grep -v '^ *+' conftest.er1 >conftest.err
20400   rm -f conftest.er1
20401   cat conftest.err >&5
20402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403   (exit $ac_status); } &&
20404          { ac_try='test -z "$ac_c_werror_flag"
20405                          || test ! -s conftest.err'
20406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407   (eval $ac_try) 2>&5
20408   ac_status=$?
20409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410   (exit $ac_status); }; } &&
20411          { ac_try='test -s conftest.$ac_objext'
20412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413   (eval $ac_try) 2>&5
20414   ac_status=$?
20415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416   (exit $ac_status); }; }; then
20417   ac_cv_type_double=yes
20418 else
20419   echo "$as_me: failed program was:" >&5
20420 sed 's/^/| /' conftest.$ac_ext >&5
20421
20422 ac_cv_type_double=no
20423 fi
20424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20425 fi
20426 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
20427 echo "${ECHO_T}$ac_cv_type_double" >&6
20428
20429 echo "$as_me:$LINENO: checking alignment of double" >&5
20430 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
20431 if test "${pgac_cv_alignof_double+set}" = set; then
20432   echo $ECHO_N "(cached) $ECHO_C" >&6
20433 else
20434   if test "$ac_cv_type_double" = yes; then
20435   if test "$cross_compiling" = yes; then
20436   # Depending upon the size, compute the lo and hi bounds.
20437 cat >conftest.$ac_ext <<_ACEOF
20438 /* confdefs.h.  */
20439 _ACEOF
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h.  */
20443 $ac_includes_default
20444 struct { char filler; double field; } pgac_struct;
20445 int
20446 main ()
20447 {
20448 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
20449 test_array [0] = 0
20450
20451   ;
20452   return 0;
20453 }
20454 _ACEOF
20455 rm -f conftest.$ac_objext
20456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20457   (eval $ac_compile) 2>conftest.er1
20458   ac_status=$?
20459   grep -v '^ *+' conftest.er1 >conftest.err
20460   rm -f conftest.er1
20461   cat conftest.err >&5
20462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463   (exit $ac_status); } &&
20464          { ac_try='test -z "$ac_c_werror_flag"
20465                          || test ! -s conftest.err'
20466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467   (eval $ac_try) 2>&5
20468   ac_status=$?
20469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470   (exit $ac_status); }; } &&
20471          { ac_try='test -s conftest.$ac_objext'
20472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473   (eval $ac_try) 2>&5
20474   ac_status=$?
20475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476   (exit $ac_status); }; }; then
20477   ac_lo=0 ac_mid=0
20478   while :; do
20479     cat >conftest.$ac_ext <<_ACEOF
20480 /* confdefs.h.  */
20481 _ACEOF
20482 cat confdefs.h >>conftest.$ac_ext
20483 cat >>conftest.$ac_ext <<_ACEOF
20484 /* end confdefs.h.  */
20485 $ac_includes_default
20486 struct { char filler; double field; } pgac_struct;
20487 int
20488 main ()
20489 {
20490 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20491 test_array [0] = 0
20492
20493   ;
20494   return 0;
20495 }
20496 _ACEOF
20497 rm -f conftest.$ac_objext
20498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20499   (eval $ac_compile) 2>conftest.er1
20500   ac_status=$?
20501   grep -v '^ *+' conftest.er1 >conftest.err
20502   rm -f conftest.er1
20503   cat conftest.err >&5
20504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505   (exit $ac_status); } &&
20506          { ac_try='test -z "$ac_c_werror_flag"
20507                          || test ! -s conftest.err'
20508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20509   (eval $ac_try) 2>&5
20510   ac_status=$?
20511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512   (exit $ac_status); }; } &&
20513          { ac_try='test -s conftest.$ac_objext'
20514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515   (eval $ac_try) 2>&5
20516   ac_status=$?
20517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518   (exit $ac_status); }; }; then
20519   ac_hi=$ac_mid; break
20520 else
20521   echo "$as_me: failed program was:" >&5
20522 sed 's/^/| /' conftest.$ac_ext >&5
20523
20524 ac_lo=`expr $ac_mid + 1`
20525                     if test $ac_lo -le $ac_mid; then
20526                       ac_lo= ac_hi=
20527                       break
20528                     fi
20529                     ac_mid=`expr 2 '*' $ac_mid + 1`
20530 fi
20531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20532   done
20533 else
20534   echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20536
20537 cat >conftest.$ac_ext <<_ACEOF
20538 /* confdefs.h.  */
20539 _ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h.  */
20543 $ac_includes_default
20544 struct { char filler; double field; } pgac_struct;
20545 int
20546 main ()
20547 {
20548 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
20549 test_array [0] = 0
20550
20551   ;
20552   return 0;
20553 }
20554 _ACEOF
20555 rm -f conftest.$ac_objext
20556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20557   (eval $ac_compile) 2>conftest.er1
20558   ac_status=$?
20559   grep -v '^ *+' conftest.er1 >conftest.err
20560   rm -f conftest.er1
20561   cat conftest.err >&5
20562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563   (exit $ac_status); } &&
20564          { ac_try='test -z "$ac_c_werror_flag"
20565                          || test ! -s conftest.err'
20566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20567   (eval $ac_try) 2>&5
20568   ac_status=$?
20569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570   (exit $ac_status); }; } &&
20571          { ac_try='test -s conftest.$ac_objext'
20572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20573   (eval $ac_try) 2>&5
20574   ac_status=$?
20575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576   (exit $ac_status); }; }; then
20577   ac_hi=-1 ac_mid=-1
20578   while :; do
20579     cat >conftest.$ac_ext <<_ACEOF
20580 /* confdefs.h.  */
20581 _ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h.  */
20585 $ac_includes_default
20586 struct { char filler; double field; } pgac_struct;
20587 int
20588 main ()
20589 {
20590 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20591 test_array [0] = 0
20592
20593   ;
20594   return 0;
20595 }
20596 _ACEOF
20597 rm -f conftest.$ac_objext
20598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20599   (eval $ac_compile) 2>conftest.er1
20600   ac_status=$?
20601   grep -v '^ *+' conftest.er1 >conftest.err
20602   rm -f conftest.er1
20603   cat conftest.err >&5
20604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605   (exit $ac_status); } &&
20606          { ac_try='test -z "$ac_c_werror_flag"
20607                          || test ! -s conftest.err'
20608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20609   (eval $ac_try) 2>&5
20610   ac_status=$?
20611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612   (exit $ac_status); }; } &&
20613          { ac_try='test -s conftest.$ac_objext'
20614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20615   (eval $ac_try) 2>&5
20616   ac_status=$?
20617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618   (exit $ac_status); }; }; then
20619   ac_lo=$ac_mid; break
20620 else
20621   echo "$as_me: failed program was:" >&5
20622 sed 's/^/| /' conftest.$ac_ext >&5
20623
20624 ac_hi=`expr '(' $ac_mid ')' - 1`
20625                        if test $ac_mid -le $ac_hi; then
20626                          ac_lo= ac_hi=
20627                          break
20628                        fi
20629                        ac_mid=`expr 2 '*' $ac_mid`
20630 fi
20631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20632   done
20633 else
20634   echo "$as_me: failed program was:" >&5
20635 sed 's/^/| /' conftest.$ac_ext >&5
20636
20637 ac_lo= ac_hi=
20638 fi
20639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20640 fi
20641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20642 # Binary search between lo and hi bounds.
20643 while test "x$ac_lo" != "x$ac_hi"; do
20644   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20645   cat >conftest.$ac_ext <<_ACEOF
20646 /* confdefs.h.  */
20647 _ACEOF
20648 cat confdefs.h >>conftest.$ac_ext
20649 cat >>conftest.$ac_ext <<_ACEOF
20650 /* end confdefs.h.  */
20651 $ac_includes_default
20652 struct { char filler; double field; } pgac_struct;
20653 int
20654 main ()
20655 {
20656 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20657 test_array [0] = 0
20658
20659   ;
20660   return 0;
20661 }
20662 _ACEOF
20663 rm -f conftest.$ac_objext
20664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20665   (eval $ac_compile) 2>conftest.er1
20666   ac_status=$?
20667   grep -v '^ *+' conftest.er1 >conftest.err
20668   rm -f conftest.er1
20669   cat conftest.err >&5
20670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671   (exit $ac_status); } &&
20672          { ac_try='test -z "$ac_c_werror_flag"
20673                          || test ! -s conftest.err'
20674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20675   (eval $ac_try) 2>&5
20676   ac_status=$?
20677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678   (exit $ac_status); }; } &&
20679          { ac_try='test -s conftest.$ac_objext'
20680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20681   (eval $ac_try) 2>&5
20682   ac_status=$?
20683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684   (exit $ac_status); }; }; then
20685   ac_hi=$ac_mid
20686 else
20687   echo "$as_me: failed program was:" >&5
20688 sed 's/^/| /' conftest.$ac_ext >&5
20689
20690 ac_lo=`expr '(' $ac_mid ')' + 1`
20691 fi
20692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20693 done
20694 case $ac_lo in
20695 ?*) pgac_cv_alignof_double=$ac_lo;;
20696 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
20697 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
20698    { (exit 1); exit 1; }; } ;;
20699 esac
20700 else
20701   if test "$cross_compiling" = yes; then
20702   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20703 See \`config.log' for more details." >&5
20704 echo "$as_me: error: cannot run test program while cross compiling
20705 See \`config.log' for more details." >&2;}
20706    { (exit 1); exit 1; }; }
20707 else
20708   cat >conftest.$ac_ext <<_ACEOF
20709 /* confdefs.h.  */
20710 _ACEOF
20711 cat confdefs.h >>conftest.$ac_ext
20712 cat >>conftest.$ac_ext <<_ACEOF
20713 /* end confdefs.h.  */
20714 $ac_includes_default
20715 struct { char filler; double field; } pgac_struct;
20716 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20717 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20718 #include <stdio.h>
20719 #include <stdlib.h>
20720 int
20721 main ()
20722 {
20723
20724   FILE *f = fopen ("conftest.val", "w");
20725   if (! f)
20726     exit (1);
20727   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20728     {
20729       long i = longval ();
20730       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20731         exit (1);
20732       fprintf (f, "%ld\n", i);
20733     }
20734   else
20735     {
20736       unsigned long i = ulongval ();
20737       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20738         exit (1);
20739       fprintf (f, "%lu\n", i);
20740     }
20741   exit (ferror (f) || fclose (f) != 0);
20742
20743   ;
20744   return 0;
20745 }
20746 _ACEOF
20747 rm -f conftest$ac_exeext
20748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20749   (eval $ac_link) 2>&5
20750   ac_status=$?
20751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20754   (eval $ac_try) 2>&5
20755   ac_status=$?
20756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757   (exit $ac_status); }; }; then
20758   pgac_cv_alignof_double=`cat conftest.val`
20759 else
20760   echo "$as_me: program exited with status $ac_status" >&5
20761 echo "$as_me: failed program was:" >&5
20762 sed 's/^/| /' conftest.$ac_ext >&5
20763
20764 ( exit $ac_status )
20765 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
20766 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
20767    { (exit 1); exit 1; }; }
20768 fi
20769 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20770 fi
20771 fi
20772 rm -f conftest.val
20773 else
20774   pgac_cv_alignof_double=0
20775 fi
20776 fi
20777 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
20778 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
20779 cat >>confdefs.h <<_ACEOF
20780 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
20781 _ACEOF
20782
20783
20784
20785 # Compute maximum alignment of any basic type.
20786 # We assume long's alignment is at least as strong as char, short, or int;
20787 # but we must check long long (if it exists) and double.
20788
20789 MAX_ALIGNOF=$pgac_cv_alignof_long
20790 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
20791   MAX_ALIGNOF=$pgac_cv_alignof_double
20792 fi
20793 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
20794   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
20795 fi
20796
20797 cat >>confdefs.h <<_ACEOF
20798 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
20799 _ACEOF
20800
20801
20802
20803 # Some platforms predefine the types int8, int16, etc.  Only check
20804 # a (hopefully) representative subset.
20805 echo "$as_me:$LINENO: checking for int8" >&5
20806 echo $ECHO_N "checking for int8... $ECHO_C" >&6
20807 if test "${ac_cv_type_int8+set}" = set; then
20808   echo $ECHO_N "(cached) $ECHO_C" >&6
20809 else
20810   cat >conftest.$ac_ext <<_ACEOF
20811 /* confdefs.h.  */
20812 _ACEOF
20813 cat confdefs.h >>conftest.$ac_ext
20814 cat >>conftest.$ac_ext <<_ACEOF
20815 /* end confdefs.h.  */
20816 #include <stdio.h>
20817 #ifdef HAVE_SUPPORTDEFS_H
20818 #include <SupportDefs.h>
20819 #endif
20820
20821 int
20822 main ()
20823 {
20824 if ((int8 *) 0)
20825   return 0;
20826 if (sizeof (int8))
20827   return 0;
20828   ;
20829   return 0;
20830 }
20831 _ACEOF
20832 rm -f conftest.$ac_objext
20833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20834   (eval $ac_compile) 2>conftest.er1
20835   ac_status=$?
20836   grep -v '^ *+' conftest.er1 >conftest.err
20837   rm -f conftest.er1
20838   cat conftest.err >&5
20839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840   (exit $ac_status); } &&
20841          { ac_try='test -z "$ac_c_werror_flag"
20842                          || test ! -s conftest.err'
20843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20844   (eval $ac_try) 2>&5
20845   ac_status=$?
20846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847   (exit $ac_status); }; } &&
20848          { ac_try='test -s conftest.$ac_objext'
20849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20850   (eval $ac_try) 2>&5
20851   ac_status=$?
20852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853   (exit $ac_status); }; }; then
20854   ac_cv_type_int8=yes
20855 else
20856   echo "$as_me: failed program was:" >&5
20857 sed 's/^/| /' conftest.$ac_ext >&5
20858
20859 ac_cv_type_int8=no
20860 fi
20861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20862 fi
20863 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
20864 echo "${ECHO_T}$ac_cv_type_int8" >&6
20865 if test $ac_cv_type_int8 = yes; then
20866
20867 cat >>confdefs.h <<_ACEOF
20868 #define HAVE_INT8 1
20869 _ACEOF
20870
20871
20872 fi
20873 echo "$as_me:$LINENO: checking for uint8" >&5
20874 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
20875 if test "${ac_cv_type_uint8+set}" = set; then
20876   echo $ECHO_N "(cached) $ECHO_C" >&6
20877 else
20878   cat >conftest.$ac_ext <<_ACEOF
20879 /* confdefs.h.  */
20880 _ACEOF
20881 cat confdefs.h >>conftest.$ac_ext
20882 cat >>conftest.$ac_ext <<_ACEOF
20883 /* end confdefs.h.  */
20884 #include <stdio.h>
20885 #ifdef HAVE_SUPPORTDEFS_H
20886 #include <SupportDefs.h>
20887 #endif
20888
20889 int
20890 main ()
20891 {
20892 if ((uint8 *) 0)
20893   return 0;
20894 if (sizeof (uint8))
20895   return 0;
20896   ;
20897   return 0;
20898 }
20899 _ACEOF
20900 rm -f conftest.$ac_objext
20901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20902   (eval $ac_compile) 2>conftest.er1
20903   ac_status=$?
20904   grep -v '^ *+' conftest.er1 >conftest.err
20905   rm -f conftest.er1
20906   cat conftest.err >&5
20907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908   (exit $ac_status); } &&
20909          { ac_try='test -z "$ac_c_werror_flag"
20910                          || test ! -s conftest.err'
20911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20912   (eval $ac_try) 2>&5
20913   ac_status=$?
20914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915   (exit $ac_status); }; } &&
20916          { ac_try='test -s conftest.$ac_objext'
20917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20918   (eval $ac_try) 2>&5
20919   ac_status=$?
20920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921   (exit $ac_status); }; }; then
20922   ac_cv_type_uint8=yes
20923 else
20924   echo "$as_me: failed program was:" >&5
20925 sed 's/^/| /' conftest.$ac_ext >&5
20926
20927 ac_cv_type_uint8=no
20928 fi
20929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20930 fi
20931 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
20932 echo "${ECHO_T}$ac_cv_type_uint8" >&6
20933 if test $ac_cv_type_uint8 = yes; then
20934
20935 cat >>confdefs.h <<_ACEOF
20936 #define HAVE_UINT8 1
20937 _ACEOF
20938
20939
20940 fi
20941 echo "$as_me:$LINENO: checking for int64" >&5
20942 echo $ECHO_N "checking for int64... $ECHO_C" >&6
20943 if test "${ac_cv_type_int64+set}" = set; then
20944   echo $ECHO_N "(cached) $ECHO_C" >&6
20945 else
20946   cat >conftest.$ac_ext <<_ACEOF
20947 /* confdefs.h.  */
20948 _ACEOF
20949 cat confdefs.h >>conftest.$ac_ext
20950 cat >>conftest.$ac_ext <<_ACEOF
20951 /* end confdefs.h.  */
20952 #include <stdio.h>
20953 #ifdef HAVE_SUPPORTDEFS_H
20954 #include <SupportDefs.h>
20955 #endif
20956
20957 int
20958 main ()
20959 {
20960 if ((int64 *) 0)
20961   return 0;
20962 if (sizeof (int64))
20963   return 0;
20964   ;
20965   return 0;
20966 }
20967 _ACEOF
20968 rm -f conftest.$ac_objext
20969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20970   (eval $ac_compile) 2>conftest.er1
20971   ac_status=$?
20972   grep -v '^ *+' conftest.er1 >conftest.err
20973   rm -f conftest.er1
20974   cat conftest.err >&5
20975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976   (exit $ac_status); } &&
20977          { ac_try='test -z "$ac_c_werror_flag"
20978                          || test ! -s conftest.err'
20979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980   (eval $ac_try) 2>&5
20981   ac_status=$?
20982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983   (exit $ac_status); }; } &&
20984          { ac_try='test -s conftest.$ac_objext'
20985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20986   (eval $ac_try) 2>&5
20987   ac_status=$?
20988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989   (exit $ac_status); }; }; then
20990   ac_cv_type_int64=yes
20991 else
20992   echo "$as_me: failed program was:" >&5
20993 sed 's/^/| /' conftest.$ac_ext >&5
20994
20995 ac_cv_type_int64=no
20996 fi
20997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20998 fi
20999 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
21000 echo "${ECHO_T}$ac_cv_type_int64" >&6
21001 if test $ac_cv_type_int64 = yes; then
21002
21003 cat >>confdefs.h <<_ACEOF
21004 #define HAVE_INT64 1
21005 _ACEOF
21006
21007
21008 fi
21009 echo "$as_me:$LINENO: checking for uint64" >&5
21010 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
21011 if test "${ac_cv_type_uint64+set}" = set; then
21012   echo $ECHO_N "(cached) $ECHO_C" >&6
21013 else
21014   cat >conftest.$ac_ext <<_ACEOF
21015 /* confdefs.h.  */
21016 _ACEOF
21017 cat confdefs.h >>conftest.$ac_ext
21018 cat >>conftest.$ac_ext <<_ACEOF
21019 /* end confdefs.h.  */
21020 #include <stdio.h>
21021 #ifdef HAVE_SUPPORTDEFS_H
21022 #include <SupportDefs.h>
21023 #endif
21024
21025 int
21026 main ()
21027 {
21028 if ((uint64 *) 0)
21029   return 0;
21030 if (sizeof (uint64))
21031   return 0;
21032   ;
21033   return 0;
21034 }
21035 _ACEOF
21036 rm -f conftest.$ac_objext
21037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21038   (eval $ac_compile) 2>conftest.er1
21039   ac_status=$?
21040   grep -v '^ *+' conftest.er1 >conftest.err
21041   rm -f conftest.er1
21042   cat conftest.err >&5
21043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044   (exit $ac_status); } &&
21045          { ac_try='test -z "$ac_c_werror_flag"
21046                          || test ! -s conftest.err'
21047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21048   (eval $ac_try) 2>&5
21049   ac_status=$?
21050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051   (exit $ac_status); }; } &&
21052          { ac_try='test -s conftest.$ac_objext'
21053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21054   (eval $ac_try) 2>&5
21055   ac_status=$?
21056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057   (exit $ac_status); }; }; then
21058   ac_cv_type_uint64=yes
21059 else
21060   echo "$as_me: failed program was:" >&5
21061 sed 's/^/| /' conftest.$ac_ext >&5
21062
21063 ac_cv_type_uint64=no
21064 fi
21065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21066 fi
21067 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
21068 echo "${ECHO_T}$ac_cv_type_uint64" >&6
21069 if test $ac_cv_type_uint64 = yes; then
21070
21071 cat >>confdefs.h <<_ACEOF
21072 #define HAVE_UINT64 1
21073 _ACEOF
21074
21075
21076 fi
21077
21078
21079 # We also check for sig_atomic_t, which *should* be defined per ANSI
21080 # C, but is missing on some old platforms.
21081 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
21082 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
21083 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
21084   echo $ECHO_N "(cached) $ECHO_C" >&6
21085 else
21086   cat >conftest.$ac_ext <<_ACEOF
21087 /* confdefs.h.  */
21088 _ACEOF
21089 cat confdefs.h >>conftest.$ac_ext
21090 cat >>conftest.$ac_ext <<_ACEOF
21091 /* end confdefs.h.  */
21092 #include <signal.h>
21093
21094 int
21095 main ()
21096 {
21097 if ((sig_atomic_t *) 0)
21098   return 0;
21099 if (sizeof (sig_atomic_t))
21100   return 0;
21101   ;
21102   return 0;
21103 }
21104 _ACEOF
21105 rm -f conftest.$ac_objext
21106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21107   (eval $ac_compile) 2>conftest.er1
21108   ac_status=$?
21109   grep -v '^ *+' conftest.er1 >conftest.err
21110   rm -f conftest.er1
21111   cat conftest.err >&5
21112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113   (exit $ac_status); } &&
21114          { ac_try='test -z "$ac_c_werror_flag"
21115                          || test ! -s conftest.err'
21116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21117   (eval $ac_try) 2>&5
21118   ac_status=$?
21119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120   (exit $ac_status); }; } &&
21121          { ac_try='test -s conftest.$ac_objext'
21122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21123   (eval $ac_try) 2>&5
21124   ac_status=$?
21125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126   (exit $ac_status); }; }; then
21127   ac_cv_type_sig_atomic_t=yes
21128 else
21129   echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21131
21132 ac_cv_type_sig_atomic_t=no
21133 fi
21134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21135 fi
21136 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
21137 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
21138 if test $ac_cv_type_sig_atomic_t = yes; then
21139
21140 cat >>confdefs.h <<_ACEOF
21141 #define HAVE_SIG_ATOMIC_T 1
21142 _ACEOF
21143
21144
21145 fi
21146
21147
21148
21149 if test x"$template" != x"win32"
21150 then
21151 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
21152 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
21153 if test "${pgac_cv_func_posix_signals+set}" = set; then
21154   echo $ECHO_N "(cached) $ECHO_C" >&6
21155 else
21156   cat >conftest.$ac_ext <<_ACEOF
21157 /* confdefs.h.  */
21158 _ACEOF
21159 cat confdefs.h >>conftest.$ac_ext
21160 cat >>conftest.$ac_ext <<_ACEOF
21161 /* end confdefs.h.  */
21162 #include <signal.h>
21163
21164 int
21165 main ()
21166 {
21167 struct sigaction act, oact;
21168 sigemptyset(&act.sa_mask);
21169 act.sa_flags = SA_RESTART;
21170 sigaction(0, &act, &oact);
21171   ;
21172   return 0;
21173 }
21174 _ACEOF
21175 rm -f conftest.$ac_objext conftest$ac_exeext
21176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21177   (eval $ac_link) 2>conftest.er1
21178   ac_status=$?
21179   grep -v '^ *+' conftest.er1 >conftest.err
21180   rm -f conftest.er1
21181   cat conftest.err >&5
21182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183   (exit $ac_status); } &&
21184          { ac_try='test -z "$ac_c_werror_flag"
21185                          || test ! -s conftest.err'
21186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21187   (eval $ac_try) 2>&5
21188   ac_status=$?
21189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190   (exit $ac_status); }; } &&
21191          { ac_try='test -s conftest$ac_exeext'
21192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193   (eval $ac_try) 2>&5
21194   ac_status=$?
21195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196   (exit $ac_status); }; }; then
21197   pgac_cv_func_posix_signals=yes
21198 else
21199   echo "$as_me: failed program was:" >&5
21200 sed 's/^/| /' conftest.$ac_ext >&5
21201
21202 pgac_cv_func_posix_signals=no
21203 fi
21204 rm -f conftest.err conftest.$ac_objext \
21205       conftest$ac_exeext conftest.$ac_ext
21206 fi
21207 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
21208 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
21209 if test x"$pgac_cv_func_posix_signals" = xyes ; then
21210
21211 cat >>confdefs.h <<\_ACEOF
21212 #define HAVE_POSIX_SIGNALS
21213 _ACEOF
21214
21215 fi
21216 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
21217
21218 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
21219   { { echo "$as_me:$LINENO: error:
21220 *** Thread-safety requires POSIX signals, which are not supported by your
21221 *** operating system.
21222 " >&5
21223 echo "$as_me: error:
21224 *** Thread-safety requires POSIX signals, which are not supported by your
21225 *** operating system.
21226 " >&2;}
21227    { (exit 1); exit 1; }; }
21228 fi
21229 fi
21230
21231 if test $ac_cv_func_fseeko = yes; then
21232 # Check whether --enable-largefile or --disable-largefile was given.
21233 if test "${enable_largefile+set}" = set; then
21234   enableval="$enable_largefile"
21235
21236 fi;
21237 if test "$enable_largefile" != no; then
21238
21239   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
21240 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
21241 if test "${ac_cv_sys_largefile_CC+set}" = set; then
21242   echo $ECHO_N "(cached) $ECHO_C" >&6
21243 else
21244   ac_cv_sys_largefile_CC=no
21245      if test "$GCC" != yes; then
21246        ac_save_CC=$CC
21247        while :; do
21248          # IRIX 6.2 and later do not support large files by default,
21249          # so use the C compiler's -n32 option if that helps.
21250          cat >conftest.$ac_ext <<_ACEOF
21251 /* confdefs.h.  */
21252 _ACEOF
21253 cat confdefs.h >>conftest.$ac_ext
21254 cat >>conftest.$ac_ext <<_ACEOF
21255 /* end confdefs.h.  */
21256 #include <sys/types.h>
21257  /* Check that off_t can represent 2**63 - 1 correctly.
21258     We can't simply define LARGE_OFF_T to be 9223372036854775807,
21259     since some C++ compilers masquerading as C compilers
21260     incorrectly reject 9223372036854775807.  */
21261 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21262   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21263                        && LARGE_OFF_T % 2147483647 == 1)
21264                       ? 1 : -1];
21265 int
21266 main ()
21267 {
21268
21269   ;
21270   return 0;
21271 }
21272 _ACEOF
21273          rm -f conftest.$ac_objext
21274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21275   (eval $ac_compile) 2>conftest.er1
21276   ac_status=$?
21277   grep -v '^ *+' conftest.er1 >conftest.err
21278   rm -f conftest.er1
21279   cat conftest.err >&5
21280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281   (exit $ac_status); } &&
21282          { ac_try='test -z "$ac_c_werror_flag"
21283                          || test ! -s conftest.err'
21284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285   (eval $ac_try) 2>&5
21286   ac_status=$?
21287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288   (exit $ac_status); }; } &&
21289          { ac_try='test -s conftest.$ac_objext'
21290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21291   (eval $ac_try) 2>&5
21292   ac_status=$?
21293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294   (exit $ac_status); }; }; then
21295   break
21296 else
21297   echo "$as_me: failed program was:" >&5
21298 sed 's/^/| /' conftest.$ac_ext >&5
21299
21300 fi
21301 rm -f conftest.err conftest.$ac_objext
21302          CC="$CC -n32"
21303          rm -f conftest.$ac_objext
21304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21305   (eval $ac_compile) 2>conftest.er1
21306   ac_status=$?
21307   grep -v '^ *+' conftest.er1 >conftest.err
21308   rm -f conftest.er1
21309   cat conftest.err >&5
21310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311   (exit $ac_status); } &&
21312          { ac_try='test -z "$ac_c_werror_flag"
21313                          || test ! -s conftest.err'
21314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315   (eval $ac_try) 2>&5
21316   ac_status=$?
21317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318   (exit $ac_status); }; } &&
21319          { ac_try='test -s conftest.$ac_objext'
21320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21321   (eval $ac_try) 2>&5
21322   ac_status=$?
21323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324   (exit $ac_status); }; }; then
21325   ac_cv_sys_largefile_CC=' -n32'; break
21326 else
21327   echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21329
21330 fi
21331 rm -f conftest.err conftest.$ac_objext
21332          break
21333        done
21334        CC=$ac_save_CC
21335        rm -f conftest.$ac_ext
21336     fi
21337 fi
21338 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
21339 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
21340   if test "$ac_cv_sys_largefile_CC" != no; then
21341     CC=$CC$ac_cv_sys_largefile_CC
21342   fi
21343
21344   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21345 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21346 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21347   echo $ECHO_N "(cached) $ECHO_C" >&6
21348 else
21349   while :; do
21350   ac_cv_sys_file_offset_bits=no
21351   cat >conftest.$ac_ext <<_ACEOF
21352 /* confdefs.h.  */
21353 _ACEOF
21354 cat confdefs.h >>conftest.$ac_ext
21355 cat >>conftest.$ac_ext <<_ACEOF
21356 /* end confdefs.h.  */
21357 #include <sys/types.h>
21358  /* Check that off_t can represent 2**63 - 1 correctly.
21359     We can't simply define LARGE_OFF_T to be 9223372036854775807,
21360     since some C++ compilers masquerading as C compilers
21361     incorrectly reject 9223372036854775807.  */
21362 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21363   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21364                        && LARGE_OFF_T % 2147483647 == 1)
21365                       ? 1 : -1];
21366 int
21367 main ()
21368 {
21369
21370   ;
21371   return 0;
21372 }
21373 _ACEOF
21374 rm -f conftest.$ac_objext
21375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21376   (eval $ac_compile) 2>conftest.er1
21377   ac_status=$?
21378   grep -v '^ *+' conftest.er1 >conftest.err
21379   rm -f conftest.er1
21380   cat conftest.err >&5
21381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382   (exit $ac_status); } &&
21383          { ac_try='test -z "$ac_c_werror_flag"
21384                          || test ! -s conftest.err'
21385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21386   (eval $ac_try) 2>&5
21387   ac_status=$?
21388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389   (exit $ac_status); }; } &&
21390          { ac_try='test -s conftest.$ac_objext'
21391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21392   (eval $ac_try) 2>&5
21393   ac_status=$?
21394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395   (exit $ac_status); }; }; then
21396   break
21397 else
21398   echo "$as_me: failed program was:" >&5
21399 sed 's/^/| /' conftest.$ac_ext >&5
21400
21401 fi
21402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21403   cat >conftest.$ac_ext <<_ACEOF
21404 /* confdefs.h.  */
21405 _ACEOF
21406 cat confdefs.h >>conftest.$ac_ext
21407 cat >>conftest.$ac_ext <<_ACEOF
21408 /* end confdefs.h.  */
21409 #define _FILE_OFFSET_BITS 64
21410 #include <sys/types.h>
21411  /* Check that off_t can represent 2**63 - 1 correctly.
21412     We can't simply define LARGE_OFF_T to be 9223372036854775807,
21413     since some C++ compilers masquerading as C compilers
21414     incorrectly reject 9223372036854775807.  */
21415 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21416   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21417                        && LARGE_OFF_T % 2147483647 == 1)
21418                       ? 1 : -1];
21419 int
21420 main ()
21421 {
21422
21423   ;
21424   return 0;
21425 }
21426 _ACEOF
21427 rm -f conftest.$ac_objext
21428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21429   (eval $ac_compile) 2>conftest.er1
21430   ac_status=$?
21431   grep -v '^ *+' conftest.er1 >conftest.err
21432   rm -f conftest.er1
21433   cat conftest.err >&5
21434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435   (exit $ac_status); } &&
21436          { ac_try='test -z "$ac_c_werror_flag"
21437                          || test ! -s conftest.err'
21438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21439   (eval $ac_try) 2>&5
21440   ac_status=$?
21441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442   (exit $ac_status); }; } &&
21443          { ac_try='test -s conftest.$ac_objext'
21444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21445   (eval $ac_try) 2>&5
21446   ac_status=$?
21447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448   (exit $ac_status); }; }; then
21449   ac_cv_sys_file_offset_bits=64; break
21450 else
21451   echo "$as_me: failed program was:" >&5
21452 sed 's/^/| /' conftest.$ac_ext >&5
21453
21454 fi
21455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21456   break
21457 done
21458 fi
21459 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21460 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21461 if test "$ac_cv_sys_file_offset_bits" != no; then
21462
21463 cat >>confdefs.h <<_ACEOF
21464 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21465 _ACEOF
21466
21467 fi
21468 rm -f conftest*
21469   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21470 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21471 if test "${ac_cv_sys_large_files+set}" = set; then
21472   echo $ECHO_N "(cached) $ECHO_C" >&6
21473 else
21474   while :; do
21475   ac_cv_sys_large_files=no
21476   cat >conftest.$ac_ext <<_ACEOF
21477 /* confdefs.h.  */
21478 _ACEOF
21479 cat confdefs.h >>conftest.$ac_ext
21480 cat >>conftest.$ac_ext <<_ACEOF
21481 /* end confdefs.h.  */
21482 #include <sys/types.h>
21483  /* Check that off_t can represent 2**63 - 1 correctly.
21484     We can't simply define LARGE_OFF_T to be 9223372036854775807,
21485     since some C++ compilers masquerading as C compilers
21486     incorrectly reject 9223372036854775807.  */
21487 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21488   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21489                        && LARGE_OFF_T % 2147483647 == 1)
21490                       ? 1 : -1];
21491 int
21492 main ()
21493 {
21494
21495   ;
21496   return 0;
21497 }
21498 _ACEOF
21499 rm -f conftest.$ac_objext
21500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21501   (eval $ac_compile) 2>conftest.er1
21502   ac_status=$?
21503   grep -v '^ *+' conftest.er1 >conftest.err
21504   rm -f conftest.er1
21505   cat conftest.err >&5
21506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507   (exit $ac_status); } &&
21508          { ac_try='test -z "$ac_c_werror_flag"
21509                          || test ! -s conftest.err'
21510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21511   (eval $ac_try) 2>&5
21512   ac_status=$?
21513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514   (exit $ac_status); }; } &&
21515          { ac_try='test -s conftest.$ac_objext'
21516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21517   (eval $ac_try) 2>&5
21518   ac_status=$?
21519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520   (exit $ac_status); }; }; then
21521   break
21522 else
21523   echo "$as_me: failed program was:" >&5
21524 sed 's/^/| /' conftest.$ac_ext >&5
21525
21526 fi
21527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21528   cat >conftest.$ac_ext <<_ACEOF
21529 /* confdefs.h.  */
21530 _ACEOF
21531 cat confdefs.h >>conftest.$ac_ext
21532 cat >>conftest.$ac_ext <<_ACEOF
21533 /* end confdefs.h.  */
21534 #define _LARGE_FILES 1
21535 #include <sys/types.h>
21536  /* Check that off_t can represent 2**63 - 1 correctly.
21537     We can't simply define LARGE_OFF_T to be 9223372036854775807,
21538     since some C++ compilers masquerading as C compilers
21539     incorrectly reject 9223372036854775807.  */
21540 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21541   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21542                        && LARGE_OFF_T % 2147483647 == 1)
21543                       ? 1 : -1];
21544 int
21545 main ()
21546 {
21547
21548   ;
21549   return 0;
21550 }
21551 _ACEOF
21552 rm -f conftest.$ac_objext
21553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21554   (eval $ac_compile) 2>conftest.er1
21555   ac_status=$?
21556   grep -v '^ *+' conftest.er1 >conftest.err
21557   rm -f conftest.er1
21558   cat conftest.err >&5
21559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560   (exit $ac_status); } &&
21561          { ac_try='test -z "$ac_c_werror_flag"
21562                          || test ! -s conftest.err'
21563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21564   (eval $ac_try) 2>&5
21565   ac_status=$?
21566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567   (exit $ac_status); }; } &&
21568          { ac_try='test -s conftest.$ac_objext'
21569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21570   (eval $ac_try) 2>&5
21571   ac_status=$?
21572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573   (exit $ac_status); }; }; then
21574   ac_cv_sys_large_files=1; break
21575 else
21576   echo "$as_me: failed program was:" >&5
21577 sed 's/^/| /' conftest.$ac_ext >&5
21578
21579 fi
21580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21581   break
21582 done
21583 fi
21584 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21585 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21586 if test "$ac_cv_sys_large_files" != no; then
21587
21588 cat >>confdefs.h <<_ACEOF
21589 #define _LARGE_FILES $ac_cv_sys_large_files
21590 _ACEOF
21591
21592 fi
21593 rm -f conftest*
21594 fi
21595
21596 fi
21597
21598 # SunOS doesn't handle negative byte comparisons properly with +/- return
21599 echo "$as_me:$LINENO: checking for working memcmp" >&5
21600 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21601 if test "${ac_cv_func_memcmp_working+set}" = set; then
21602   echo $ECHO_N "(cached) $ECHO_C" >&6
21603 else
21604   if test "$cross_compiling" = yes; then
21605   ac_cv_func_memcmp_working=no
21606 else
21607   cat >conftest.$ac_ext <<_ACEOF
21608 /* confdefs.h.  */
21609 _ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h.  */
21613 $ac_includes_default
21614 int
21615 main ()
21616 {
21617
21618   /* Some versions of memcmp are not 8-bit clean.  */
21619   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21620   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21621     exit (1);
21622
21623   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21624      or more and with at least one buffer not starting on a 4-byte boundary.
21625      William Lewis provided this test program.   */
21626   {
21627     char foo[21];
21628     char bar[21];
21629     int i;
21630     for (i = 0; i < 4; i++)
21631       {
21632         char *a = foo + i;
21633         char *b = bar + i;
21634         strcpy (a, "--------01111111");
21635         strcpy (b, "--------10000000");
21636         if (memcmp (a, b, 16) >= 0)
21637           exit (1);
21638       }
21639     exit (0);
21640   }
21641
21642   ;
21643   return 0;
21644 }
21645 _ACEOF
21646 rm -f conftest$ac_exeext
21647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21648   (eval $ac_link) 2>&5
21649   ac_status=$?
21650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653   (eval $ac_try) 2>&5
21654   ac_status=$?
21655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656   (exit $ac_status); }; }; then
21657   ac_cv_func_memcmp_working=yes
21658 else
21659   echo "$as_me: program exited with status $ac_status" >&5
21660 echo "$as_me: failed program was:" >&5
21661 sed 's/^/| /' conftest.$ac_ext >&5
21662
21663 ( exit $ac_status )
21664 ac_cv_func_memcmp_working=no
21665 fi
21666 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21667 fi
21668 fi
21669 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21670 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21671 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
21672     "memcmp.$ac_objext"   | \
21673   *" memcmp.$ac_objext"   | \
21674     "memcmp.$ac_objext "* | \
21675   *" memcmp.$ac_objext "* ) ;;
21676   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
21677 esac
21678
21679
21680
21681
21682 # Select semaphore implementation type.
21683 if test "$PORTNAME" != "win32"; then
21684   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
21685
21686 cat >>confdefs.h <<\_ACEOF
21687 #define USE_NAMED_POSIX_SEMAPHORES 1
21688 _ACEOF
21689
21690     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
21691   else
21692     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
21693
21694 cat >>confdefs.h <<\_ACEOF
21695 #define USE_UNNAMED_POSIX_SEMAPHORES 1
21696 _ACEOF
21697
21698       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
21699     else
21700
21701 cat >>confdefs.h <<\_ACEOF
21702 #define USE_SYSV_SEMAPHORES 1
21703 _ACEOF
21704
21705       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
21706     fi
21707   fi
21708 else
21709
21710 cat >>confdefs.h <<\_ACEOF
21711 #define USE_WIN32_SEMAPHORES 1
21712 _ACEOF
21713
21714   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
21715 fi
21716
21717
21718 # Select shared-memory implementation type.
21719
21720 cat >>confdefs.h <<\_ACEOF
21721 #define USE_SYSV_SHARED_MEMORY 1
21722 _ACEOF
21723
21724 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
21725
21726
21727 # If not set in template file, set bytes to use libc memset()
21728 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
21729   MEMSET_LOOP_LIMIT=1024
21730 fi
21731
21732 cat >>confdefs.h <<_ACEOF
21733 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
21734 _ACEOF
21735
21736
21737
21738 if test "$enable_nls" = yes ; then
21739
21740   echo "$as_me:$LINENO: checking for library containing gettext" >&5
21741 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
21742 if test "${ac_cv_search_gettext+set}" = set; then
21743   echo $ECHO_N "(cached) $ECHO_C" >&6
21744 else
21745   ac_func_search_save_LIBS=$LIBS
21746 ac_cv_search_gettext=no
21747 cat >conftest.$ac_ext <<_ACEOF
21748 /* confdefs.h.  */
21749 _ACEOF
21750 cat confdefs.h >>conftest.$ac_ext
21751 cat >>conftest.$ac_ext <<_ACEOF
21752 /* end confdefs.h.  */
21753
21754 /* Override any gcc2 internal prototype to avoid an error.  */
21755 #ifdef __cplusplus
21756 extern "C"
21757 #endif
21758 /* We use char because int might match the return type of a gcc2
21759    builtin and then its argument prototype would still apply.  */
21760 char gettext ();
21761 int
21762 main ()
21763 {
21764 gettext ();
21765   ;
21766   return 0;
21767 }
21768 _ACEOF
21769 rm -f conftest.$ac_objext conftest$ac_exeext
21770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21771   (eval $ac_link) 2>conftest.er1
21772   ac_status=$?
21773   grep -v '^ *+' conftest.er1 >conftest.err
21774   rm -f conftest.er1
21775   cat conftest.err >&5
21776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777   (exit $ac_status); } &&
21778          { ac_try='test -z "$ac_c_werror_flag"
21779                          || test ! -s conftest.err'
21780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21781   (eval $ac_try) 2>&5
21782   ac_status=$?
21783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784   (exit $ac_status); }; } &&
21785          { ac_try='test -s conftest$ac_exeext'
21786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21787   (eval $ac_try) 2>&5
21788   ac_status=$?
21789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790   (exit $ac_status); }; }; then
21791   ac_cv_search_gettext="none required"
21792 else
21793   echo "$as_me: failed program was:" >&5
21794 sed 's/^/| /' conftest.$ac_ext >&5
21795
21796 fi
21797 rm -f conftest.err conftest.$ac_objext \
21798       conftest$ac_exeext conftest.$ac_ext
21799 if test "$ac_cv_search_gettext" = no; then
21800   for ac_lib in intl; do
21801     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21802     cat >conftest.$ac_ext <<_ACEOF
21803 /* confdefs.h.  */
21804 _ACEOF
21805 cat confdefs.h >>conftest.$ac_ext
21806 cat >>conftest.$ac_ext <<_ACEOF
21807 /* end confdefs.h.  */
21808
21809 /* Override any gcc2 internal prototype to avoid an error.  */
21810 #ifdef __cplusplus
21811 extern "C"
21812 #endif
21813 /* We use char because int might match the return type of a gcc2
21814    builtin and then its argument prototype would still apply.  */
21815 char gettext ();
21816 int
21817 main ()
21818 {
21819 gettext ();
21820   ;
21821   return 0;
21822 }
21823 _ACEOF
21824 rm -f conftest.$ac_objext conftest$ac_exeext
21825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21826   (eval $ac_link) 2>conftest.er1
21827   ac_status=$?
21828   grep -v '^ *+' conftest.er1 >conftest.err
21829   rm -f conftest.er1
21830   cat conftest.err >&5
21831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832   (exit $ac_status); } &&
21833          { ac_try='test -z "$ac_c_werror_flag"
21834                          || test ! -s conftest.err'
21835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21836   (eval $ac_try) 2>&5
21837   ac_status=$?
21838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839   (exit $ac_status); }; } &&
21840          { ac_try='test -s conftest$ac_exeext'
21841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21842   (eval $ac_try) 2>&5
21843   ac_status=$?
21844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21845   (exit $ac_status); }; }; then
21846   ac_cv_search_gettext="-l$ac_lib"
21847 break
21848 else
21849   echo "$as_me: failed program was:" >&5
21850 sed 's/^/| /' conftest.$ac_ext >&5
21851
21852 fi
21853 rm -f conftest.err conftest.$ac_objext \
21854       conftest$ac_exeext conftest.$ac_ext
21855   done
21856 fi
21857 LIBS=$ac_func_search_save_LIBS
21858 fi
21859 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
21860 echo "${ECHO_T}$ac_cv_search_gettext" >&6
21861 if test "$ac_cv_search_gettext" != no; then
21862   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
21863
21864 else
21865   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
21866 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
21867    { (exit 1); exit 1; }; }
21868 fi
21869
21870   if test "${ac_cv_header_libintl_h+set}" = set; then
21871   echo "$as_me:$LINENO: checking for libintl.h" >&5
21872 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
21873 if test "${ac_cv_header_libintl_h+set}" = set; then
21874   echo $ECHO_N "(cached) $ECHO_C" >&6
21875 fi
21876 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21877 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
21878 else
21879   # Is the header compilable?
21880 echo "$as_me:$LINENO: checking libintl.h usability" >&5
21881 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
21882 cat >conftest.$ac_ext <<_ACEOF
21883 /* confdefs.h.  */
21884 _ACEOF
21885 cat confdefs.h >>conftest.$ac_ext
21886 cat >>conftest.$ac_ext <<_ACEOF
21887 /* end confdefs.h.  */
21888 $ac_includes_default
21889 #include <libintl.h>
21890 _ACEOF
21891 rm -f conftest.$ac_objext
21892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21893   (eval $ac_compile) 2>conftest.er1
21894   ac_status=$?
21895   grep -v '^ *+' conftest.er1 >conftest.err
21896   rm -f conftest.er1
21897   cat conftest.err >&5
21898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899   (exit $ac_status); } &&
21900          { ac_try='test -z "$ac_c_werror_flag"
21901                          || test ! -s conftest.err'
21902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21903   (eval $ac_try) 2>&5
21904   ac_status=$?
21905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906   (exit $ac_status); }; } &&
21907          { ac_try='test -s conftest.$ac_objext'
21908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21909   (eval $ac_try) 2>&5
21910   ac_status=$?
21911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912   (exit $ac_status); }; }; then
21913   ac_header_compiler=yes
21914 else
21915   echo "$as_me: failed program was:" >&5
21916 sed 's/^/| /' conftest.$ac_ext >&5
21917
21918 ac_header_compiler=no
21919 fi
21920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21921 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21922 echo "${ECHO_T}$ac_header_compiler" >&6
21923
21924 # Is the header present?
21925 echo "$as_me:$LINENO: checking libintl.h presence" >&5
21926 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
21927 cat >conftest.$ac_ext <<_ACEOF
21928 /* confdefs.h.  */
21929 _ACEOF
21930 cat confdefs.h >>conftest.$ac_ext
21931 cat >>conftest.$ac_ext <<_ACEOF
21932 /* end confdefs.h.  */
21933 #include <libintl.h>
21934 _ACEOF
21935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21936   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21937   ac_status=$?
21938   grep -v '^ *+' conftest.er1 >conftest.err
21939   rm -f conftest.er1
21940   cat conftest.err >&5
21941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942   (exit $ac_status); } >/dev/null; then
21943   if test -s conftest.err; then
21944     ac_cpp_err=$ac_c_preproc_warn_flag
21945     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21946   else
21947     ac_cpp_err=
21948   fi
21949 else
21950   ac_cpp_err=yes
21951 fi
21952 if test -z "$ac_cpp_err"; then
21953   ac_header_preproc=yes
21954 else
21955   echo "$as_me: failed program was:" >&5
21956 sed 's/^/| /' conftest.$ac_ext >&5
21957
21958   ac_header_preproc=no
21959 fi
21960 rm -f conftest.err conftest.$ac_ext
21961 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21962 echo "${ECHO_T}$ac_header_preproc" >&6
21963
21964 # So?  What about this header?
21965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21966   yes:no: )
21967     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21968 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21969     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
21970 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
21971     ac_header_preproc=yes
21972     ;;
21973   no:yes:* )
21974     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
21975 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
21976     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
21977 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
21978     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
21979 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
21980     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
21981 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21982     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
21983 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
21984     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
21985 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
21986     (
21987       cat <<\_ASBOX
21988 ## ---------------------------------------- ##
21989 ## Report this to pgsql-bugs@postgresql.org ##
21990 ## ---------------------------------------- ##
21991 _ASBOX
21992     ) |
21993       sed "s/^/$as_me: WARNING:     /" >&2
21994     ;;
21995 esac
21996 echo "$as_me:$LINENO: checking for libintl.h" >&5
21997 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
21998 if test "${ac_cv_header_libintl_h+set}" = set; then
21999   echo $ECHO_N "(cached) $ECHO_C" >&6
22000 else
22001   ac_cv_header_libintl_h=$ac_header_preproc
22002 fi
22003 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
22004 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
22005
22006 fi
22007 if test $ac_cv_header_libintl_h = yes; then
22008   :
22009 else
22010   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
22011 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
22012    { (exit 1); exit 1; }; }
22013 fi
22014
22015
22016   for ac_prog in msgfmt
22017 do
22018   # Extract the first word of "$ac_prog", so it can be a program name with args.
22019 set dummy $ac_prog; ac_word=$2
22020 echo "$as_me:$LINENO: checking for $ac_word" >&5
22021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22022 if test "${ac_cv_prog_MSGFMT+set}" = set; then
22023   echo $ECHO_N "(cached) $ECHO_C" >&6
22024 else
22025   if test -n "$MSGFMT"; then
22026   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
22027 else
22028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22029 for as_dir in $PATH
22030 do
22031   IFS=$as_save_IFS
22032   test -z "$as_dir" && as_dir=.
22033   for ac_exec_ext in '' $ac_executable_extensions; do
22034   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22035     ac_cv_prog_MSGFMT="$ac_prog"
22036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22037     break 2
22038   fi
22039 done
22040 done
22041
22042 fi
22043 fi
22044 MSGFMT=$ac_cv_prog_MSGFMT
22045 if test -n "$MSGFMT"; then
22046   echo "$as_me:$LINENO: result: $MSGFMT" >&5
22047 echo "${ECHO_T}$MSGFMT" >&6
22048 else
22049   echo "$as_me:$LINENO: result: no" >&5
22050 echo "${ECHO_T}no" >&6
22051 fi
22052
22053   test -n "$MSGFMT" && break
22054 done
22055
22056   if test -z "$MSGFMT"; then
22057     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
22058 echo "$as_me: error: msgfmt is required for NLS" >&2;}
22059    { (exit 1); exit 1; }; }
22060   fi
22061   for ac_prog in msgmerge
22062 do
22063   # Extract the first word of "$ac_prog", so it can be a program name with args.
22064 set dummy $ac_prog; ac_word=$2
22065 echo "$as_me:$LINENO: checking for $ac_word" >&5
22066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22067 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
22068   echo $ECHO_N "(cached) $ECHO_C" >&6
22069 else
22070   if test -n "$MSGMERGE"; then
22071   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
22072 else
22073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22074 for as_dir in $PATH
22075 do
22076   IFS=$as_save_IFS
22077   test -z "$as_dir" && as_dir=.
22078   for ac_exec_ext in '' $ac_executable_extensions; do
22079   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22080     ac_cv_prog_MSGMERGE="$ac_prog"
22081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22082     break 2
22083   fi
22084 done
22085 done
22086
22087 fi
22088 fi
22089 MSGMERGE=$ac_cv_prog_MSGMERGE
22090 if test -n "$MSGMERGE"; then
22091   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
22092 echo "${ECHO_T}$MSGMERGE" >&6
22093 else
22094   echo "$as_me:$LINENO: result: no" >&5
22095 echo "${ECHO_T}no" >&6
22096 fi
22097
22098   test -n "$MSGMERGE" && break
22099 done
22100
22101   for ac_prog in xgettext
22102 do
22103   # Extract the first word of "$ac_prog", so it can be a program name with args.
22104 set dummy $ac_prog; ac_word=$2
22105 echo "$as_me:$LINENO: checking for $ac_word" >&5
22106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22107 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
22108   echo $ECHO_N "(cached) $ECHO_C" >&6
22109 else
22110   if test -n "$XGETTEXT"; then
22111   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
22112 else
22113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22114 for as_dir in $PATH
22115 do
22116   IFS=$as_save_IFS
22117   test -z "$as_dir" && as_dir=.
22118   for ac_exec_ext in '' $ac_executable_extensions; do
22119   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22120     ac_cv_prog_XGETTEXT="$ac_prog"
22121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22122     break 2
22123   fi
22124 done
22125 done
22126
22127 fi
22128 fi
22129 XGETTEXT=$ac_cv_prog_XGETTEXT
22130 if test -n "$XGETTEXT"; then
22131   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22132 echo "${ECHO_T}$XGETTEXT" >&6
22133 else
22134   echo "$as_me:$LINENO: result: no" >&5
22135 echo "${ECHO_T}no" >&6
22136 fi
22137
22138   test -n "$XGETTEXT" && break
22139 done
22140
22141
22142   # Note: share/locale is always the default, independent of $datadir
22143   localedir='${prefix}/share/locale'
22144
22145
22146 fi
22147
22148 # Check for Tcl configuration script tclConfig.sh
22149 if test "$with_tcl" = yes; then
22150     for ac_prog in tclsh tcl
22151 do
22152   # Extract the first word of "$ac_prog", so it can be a program name with args.
22153 set dummy $ac_prog; ac_word=$2
22154 echo "$as_me:$LINENO: checking for $ac_word" >&5
22155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22156 if test "${ac_cv_path_TCLSH+set}" = set; then
22157   echo $ECHO_N "(cached) $ECHO_C" >&6
22158 else
22159   case $TCLSH in
22160   [\\/]* | ?:[\\/]*)
22161   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
22162   ;;
22163   *)
22164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22165 for as_dir in $PATH
22166 do
22167   IFS=$as_save_IFS
22168   test -z "$as_dir" && as_dir=.
22169   for ac_exec_ext in '' $ac_executable_extensions; do
22170   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22171     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
22172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22173     break 2
22174   fi
22175 done
22176 done
22177
22178   ;;
22179 esac
22180 fi
22181 TCLSH=$ac_cv_path_TCLSH
22182
22183 if test -n "$TCLSH"; then
22184   echo "$as_me:$LINENO: result: $TCLSH" >&5
22185 echo "${ECHO_T}$TCLSH" >&6
22186 else
22187   echo "$as_me:$LINENO: result: no" >&5
22188 echo "${ECHO_T}no" >&6
22189 fi
22190
22191   test -n "$TCLSH" && break
22192 done
22193
22194 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
22195 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
22196 # Let user override test
22197 if test -z "$TCL_CONFIG_SH"; then
22198     pgac_test_dirs="$with_tclconfig"
22199
22200     set X $pgac_test_dirs; shift
22201     if test $# -eq 0; then
22202         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
22203 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
22204    { (exit 1); exit 1; }; }
22205         set X `echo 'puts $auto_path' | $TCLSH`; shift
22206     fi
22207
22208     for pgac_dir do
22209         if test -r "$pgac_dir/tclConfig.sh"; then
22210             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
22211             break
22212         fi
22213     done
22214 fi
22215
22216 if test -z "$TCL_CONFIG_SH"; then
22217     echo "$as_me:$LINENO: result: no" >&5
22218 echo "${ECHO_T}no" >&6
22219     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
22220 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
22221    { (exit 1); exit 1; }; }
22222 else
22223     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
22224 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
22225 fi
22226
22227
22228
22229     . "$TCL_CONFIG_SH"
22230 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
22231 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
22232 eval TCL_LIBS=\"$TCL_LIBS\"
22233 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
22234 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
22235
22236         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
22237     ac_save_CPPFLAGS=$CPPFLAGS
22238     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
22239     if test "${ac_cv_header_tcl_h+set}" = set; then
22240   echo "$as_me:$LINENO: checking for tcl.h" >&5
22241 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
22242 if test "${ac_cv_header_tcl_h+set}" = set; then
22243   echo $ECHO_N "(cached) $ECHO_C" >&6
22244 fi
22245 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
22246 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
22247 else
22248   # Is the header compilable?
22249 echo "$as_me:$LINENO: checking tcl.h usability" >&5
22250 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
22251 cat >conftest.$ac_ext <<_ACEOF
22252 /* confdefs.h.  */
22253 _ACEOF
22254 cat confdefs.h >>conftest.$ac_ext
22255 cat >>conftest.$ac_ext <<_ACEOF
22256 /* end confdefs.h.  */
22257 $ac_includes_default
22258 #include <tcl.h>
22259 _ACEOF
22260 rm -f conftest.$ac_objext
22261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22262   (eval $ac_compile) 2>conftest.er1
22263   ac_status=$?
22264   grep -v '^ *+' conftest.er1 >conftest.err
22265   rm -f conftest.er1
22266   cat conftest.err >&5
22267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268   (exit $ac_status); } &&
22269          { ac_try='test -z "$ac_c_werror_flag"
22270                          || test ! -s conftest.err'
22271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22272   (eval $ac_try) 2>&5
22273   ac_status=$?
22274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275   (exit $ac_status); }; } &&
22276          { ac_try='test -s conftest.$ac_objext'
22277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22278   (eval $ac_try) 2>&5
22279   ac_status=$?
22280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281   (exit $ac_status); }; }; then
22282   ac_header_compiler=yes
22283 else
22284   echo "$as_me: failed program was:" >&5
22285 sed 's/^/| /' conftest.$ac_ext >&5
22286
22287 ac_header_compiler=no
22288 fi
22289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22291 echo "${ECHO_T}$ac_header_compiler" >&6
22292
22293 # Is the header present?
22294 echo "$as_me:$LINENO: checking tcl.h presence" >&5
22295 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
22296 cat >conftest.$ac_ext <<_ACEOF
22297 /* confdefs.h.  */
22298 _ACEOF
22299 cat confdefs.h >>conftest.$ac_ext
22300 cat >>conftest.$ac_ext <<_ACEOF
22301 /* end confdefs.h.  */
22302 #include <tcl.h>
22303 _ACEOF
22304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22305   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22306   ac_status=$?
22307   grep -v '^ *+' conftest.er1 >conftest.err
22308   rm -f conftest.er1
22309   cat conftest.err >&5
22310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311   (exit $ac_status); } >/dev/null; then
22312   if test -s conftest.err; then
22313     ac_cpp_err=$ac_c_preproc_warn_flag
22314     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22315   else
22316     ac_cpp_err=
22317   fi
22318 else
22319   ac_cpp_err=yes
22320 fi
22321 if test -z "$ac_cpp_err"; then
22322   ac_header_preproc=yes
22323 else
22324   echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22326
22327   ac_header_preproc=no
22328 fi
22329 rm -f conftest.err conftest.$ac_ext
22330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22331 echo "${ECHO_T}$ac_header_preproc" >&6
22332
22333 # So?  What about this header?
22334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22335   yes:no: )
22336     { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22337 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22338     { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
22339 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
22340     ac_header_preproc=yes
22341     ;;
22342   no:yes:* )
22343     { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
22344 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
22345     { echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
22346 echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
22347     { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
22348 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
22349     { echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
22350 echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22351     { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
22352 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
22353     { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
22354 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
22355     (
22356       cat <<\_ASBOX
22357 ## ---------------------------------------- ##
22358 ## Report this to pgsql-bugs@postgresql.org ##
22359 ## ---------------------------------------- ##
22360 _ASBOX
22361     ) |
22362       sed "s/^/$as_me: WARNING:     /" >&2
22363     ;;
22364 esac
22365 echo "$as_me:$LINENO: checking for tcl.h" >&5
22366 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
22367 if test "${ac_cv_header_tcl_h+set}" = set; then
22368   echo $ECHO_N "(cached) $ECHO_C" >&6
22369 else
22370   ac_cv_header_tcl_h=$ac_header_preproc
22371 fi
22372 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
22373 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
22374
22375 fi
22376 if test $ac_cv_header_tcl_h = yes; then
22377   :
22378 else
22379   { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
22380 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
22381    { (exit 1); exit 1; }; }
22382 fi
22383
22384
22385     CPPFLAGS=$ac_save_CPPFLAGS
22386 fi
22387
22388 #
22389 # Check for DocBook and tools
22390 #
22391 for ac_prog in onsgmls nsgmls
22392 do
22393   # Extract the first word of "$ac_prog", so it can be a program name with args.
22394 set dummy $ac_prog; ac_word=$2
22395 echo "$as_me:$LINENO: checking for $ac_word" >&5
22396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22397 if test "${ac_cv_prog_NSGMLS+set}" = set; then
22398   echo $ECHO_N "(cached) $ECHO_C" >&6
22399 else
22400   if test -n "$NSGMLS"; then
22401   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
22402 else
22403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22404 for as_dir in $PATH
22405 do
22406   IFS=$as_save_IFS
22407   test -z "$as_dir" && as_dir=.
22408   for ac_exec_ext in '' $ac_executable_extensions; do
22409   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22410     ac_cv_prog_NSGMLS="$ac_prog"
22411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22412     break 2
22413   fi
22414 done
22415 done
22416
22417 fi
22418 fi
22419 NSGMLS=$ac_cv_prog_NSGMLS
22420 if test -n "$NSGMLS"; then
22421   echo "$as_me:$LINENO: result: $NSGMLS" >&5
22422 echo "${ECHO_T}$NSGMLS" >&6
22423 else
22424   echo "$as_me:$LINENO: result: no" >&5
22425 echo "${ECHO_T}no" >&6
22426 fi
22427
22428   test -n "$NSGMLS" && break
22429 done
22430
22431 for ac_prog in openjade jade
22432 do
22433   # Extract the first word of "$ac_prog", so it can be a program name with args.
22434 set dummy $ac_prog; ac_word=$2
22435 echo "$as_me:$LINENO: checking for $ac_word" >&5
22436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22437 if test "${ac_cv_prog_JADE+set}" = set; then
22438   echo $ECHO_N "(cached) $ECHO_C" >&6
22439 else
22440   if test -n "$JADE"; then
22441   ac_cv_prog_JADE="$JADE" # Let the user override the test.
22442 else
22443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22444 for as_dir in $PATH
22445 do
22446   IFS=$as_save_IFS
22447   test -z "$as_dir" && as_dir=.
22448   for ac_exec_ext in '' $ac_executable_extensions; do
22449   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22450     ac_cv_prog_JADE="$ac_prog"
22451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22452     break 2
22453   fi
22454 done
22455 done
22456
22457 fi
22458 fi
22459 JADE=$ac_cv_prog_JADE
22460 if test -n "$JADE"; then
22461   echo "$as_me:$LINENO: result: $JADE" >&5
22462 echo "${ECHO_T}$JADE" >&6
22463 else
22464   echo "$as_me:$LINENO: result: no" >&5
22465 echo "${ECHO_T}no" >&6
22466 fi
22467
22468   test -n "$JADE" && break
22469 done
22470
22471
22472 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
22473 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
22474 if test "${pgac_cv_check_docbook+set}" = set; then
22475   echo $ECHO_N "(cached) $ECHO_C" >&6
22476 else
22477   cat >conftest.sgml <<EOF
22478 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
22479 <book>
22480  <title>test</title>
22481  <chapter>
22482   <title>random</title>
22483    <sect1>
22484     <title>testsect</title>
22485     <para>text</para>
22486   </sect1>
22487  </chapter>
22488 </book>
22489 EOF
22490
22491 pgac_cv_check_docbook=no
22492
22493 if test -n "$NSGMLS"; then
22494   $NSGMLS -s conftest.sgml 1>&5 2>&1
22495   if test $? -eq 0; then
22496     pgac_cv_check_docbook=yes
22497   fi
22498 fi
22499 rm -f conftest.sgml
22500 fi
22501 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
22502 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
22503
22504 have_docbook=$pgac_cv_check_docbook
22505
22506
22507 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
22508 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
22509 if test "${pgac_cv_path_stylesheets+set}" = set; then
22510   echo $ECHO_N "(cached) $ECHO_C" >&6
22511 else
22512   if test -n "$DOCBOOKSTYLE"; then
22513   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
22514 else
22515   for pgac_prefix in /usr /usr/local /opt; do
22516     for pgac_infix in share lib; do
22517       for pgac_postfix in \
22518         sgml/stylesheets/nwalsh-modular \
22519         sgml/stylesheets/docbook \
22520                 sgml/docbook-dsssl \
22521         sgml/docbook/dsssl/modular \
22522         sgml/docbook/stylesheet/dsssl/modular \
22523         sgml/docbook/dsssl-stylesheets
22524       do
22525         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
22526         if test -r "$pgac_candidate/html/docbook.dsl" \
22527            && test -r "$pgac_candidate/print/docbook.dsl"
22528         then
22529           pgac_cv_path_stylesheets=$pgac_candidate
22530           break 3
22531         fi
22532       done
22533     done
22534   done
22535 fi
22536 fi
22537
22538 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
22539
22540 if test -n "$DOCBOOKSTYLE"; then
22541   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
22542 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
22543 else
22544   echo "$as_me:$LINENO: result: no" >&5
22545 echo "${ECHO_T}no" >&6
22546 fi
22547 if test -n "$DOCBOOKSTYLE"; then
22548   for ac_prog in collateindex.pl
22549 do
22550   # Extract the first word of "$ac_prog", so it can be a program name with args.
22551 set dummy $ac_prog; ac_word=$2
22552 echo "$as_me:$LINENO: checking for $ac_word" >&5
22553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22554 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
22555   echo $ECHO_N "(cached) $ECHO_C" >&6
22556 else
22557   case $COLLATEINDEX in
22558   [\\/]* | ?:[\\/]*)
22559   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
22560   ;;
22561   *)
22562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22563 for as_dir in $DOCBOOKSTYLE/bin $PATH
22564 do
22565   IFS=$as_save_IFS
22566   test -z "$as_dir" && as_dir=.
22567   for ac_exec_ext in '' $ac_executable_extensions; do
22568   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22569     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
22570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22571     break 2
22572   fi
22573 done
22574 done
22575
22576   ;;
22577 esac
22578 fi
22579 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
22580
22581 if test -n "$COLLATEINDEX"; then
22582   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
22583 echo "${ECHO_T}$COLLATEINDEX" >&6
22584 else
22585   echo "$as_me:$LINENO: result: no" >&5
22586 echo "${ECHO_T}no" >&6
22587 fi
22588
22589   test -n "$COLLATEINDEX" && break
22590 done
22591
22592 else
22593   for ac_prog in collateindex.pl
22594 do
22595   # Extract the first word of "$ac_prog", so it can be a program name with args.
22596 set dummy $ac_prog; ac_word=$2
22597 echo "$as_me:$LINENO: checking for $ac_word" >&5
22598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22599 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
22600   echo $ECHO_N "(cached) $ECHO_C" >&6
22601 else
22602   case $COLLATEINDEX in
22603   [\\/]* | ?:[\\/]*)
22604   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
22605   ;;
22606   *)
22607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22608 for as_dir in $PATH
22609 do
22610   IFS=$as_save_IFS
22611   test -z "$as_dir" && as_dir=.
22612   for ac_exec_ext in '' $ac_executable_extensions; do
22613   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22614     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
22615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22616     break 2
22617   fi
22618 done
22619 done
22620
22621   ;;
22622 esac
22623 fi
22624 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
22625
22626 if test -n "$COLLATEINDEX"; then
22627   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
22628 echo "${ECHO_T}$COLLATEINDEX" >&6
22629 else
22630   echo "$as_me:$LINENO: result: no" >&5
22631 echo "${ECHO_T}no" >&6
22632 fi
22633
22634   test -n "$COLLATEINDEX" && break
22635 done
22636
22637 fi
22638 for ac_prog in sgmlspl
22639 do
22640   # Extract the first word of "$ac_prog", so it can be a program name with args.
22641 set dummy $ac_prog; ac_word=$2
22642 echo "$as_me:$LINENO: checking for $ac_word" >&5
22643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22644 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
22645   echo $ECHO_N "(cached) $ECHO_C" >&6
22646 else
22647   if test -n "$SGMLSPL"; then
22648   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
22649 else
22650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22651 for as_dir in $PATH
22652 do
22653   IFS=$as_save_IFS
22654   test -z "$as_dir" && as_dir=.
22655   for ac_exec_ext in '' $ac_executable_extensions; do
22656   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22657     ac_cv_prog_SGMLSPL="$ac_prog"
22658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22659     break 2
22660   fi
22661 done
22662 done
22663
22664 fi
22665 fi
22666 SGMLSPL=$ac_cv_prog_SGMLSPL
22667 if test -n "$SGMLSPL"; then
22668   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
22669 echo "${ECHO_T}$SGMLSPL" >&6
22670 else
22671   echo "$as_me:$LINENO: result: no" >&5
22672 echo "${ECHO_T}no" >&6
22673 fi
22674
22675   test -n "$SGMLSPL" && break
22676 done
22677
22678
22679 # Thread testing
22680
22681 # We have to run the thread test near the end so we have all our symbols
22682 # defined.  Cross compiling throws a warning.
22683 #
22684 if test "$enable_thread_safety_force" = yes; then
22685 if test x"$template" != x"win32"
22686 then
22687   { echo "$as_me:$LINENO: WARNING:
22688 *** Skipping thread test program.  --enable-thread-safety-force was used.
22689 *** Run the program in src/test/thread on the your machine and add
22690 proper locking function calls to your applications to guarantee thread
22691 safety.
22692 " >&5
22693 echo "$as_me: WARNING:
22694 *** Skipping thread test program.  --enable-thread-safety-force was used.
22695 *** Run the program in src/test/thread on the your machine and add
22696 proper locking function calls to your applications to guarantee thread
22697 safety.
22698 " >&2;}
22699 else
22700 { echo "$as_me:$LINENO: WARNING: *** Skipping thread test on Win32" >&5
22701 echo "$as_me: WARNING: *** Skipping thread test on Win32" >&2;}
22702 fi
22703 elif test "$enable_thread_safety" = yes; then
22704 if test x"$template" != x"win32"
22705 then
22706 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
22707 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
22708
22709 _CFLAGS="$CFLAGS"
22710 _LIBS="$LIBS"
22711 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
22712 LIBS="$LIBS $PTHREAD_LIBS"
22713 if test "$cross_compiling" = yes; then
22714   echo "$as_me:$LINENO: result: maybe" >&5
22715 echo "${ECHO_T}maybe" >&6
22716   { echo "$as_me:$LINENO: WARNING:
22717 *** Skipping thread test program because of cross-compile build.
22718 *** Run the program in src/test/thread on the target machine.
22719 " >&5
22720 echo "$as_me: WARNING:
22721 *** Skipping thread test program because of cross-compile build.
22722 *** Run the program in src/test/thread on the target machine.
22723 " >&2;}
22724 else
22725   cat >conftest.$ac_ext <<_ACEOF
22726 /* confdefs.h.  */
22727 _ACEOF
22728 cat confdefs.h >>conftest.$ac_ext
22729 cat >>conftest.$ac_ext <<_ACEOF
22730 /* end confdefs.h.  */
22731 #include "$srcdir/src/test/thread/thread_test.c"
22732 _ACEOF
22733 rm -f conftest$ac_exeext
22734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22735   (eval $ac_link) 2>&5
22736   ac_status=$?
22737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22740   (eval $ac_try) 2>&5
22741   ac_status=$?
22742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743   (exit $ac_status); }; }; then
22744   echo "$as_me:$LINENO: result: yes" >&5
22745 echo "${ECHO_T}yes" >&6
22746 else
22747   echo "$as_me: program exited with status $ac_status" >&5
22748 echo "$as_me: failed program was:" >&5
22749 sed 's/^/| /' conftest.$ac_ext >&5
22750
22751 ( exit $ac_status )
22752 echo "$as_me:$LINENO: result: no" >&5
22753 echo "${ECHO_T}no" >&6
22754   { { echo "$as_me:$LINENO: error:
22755 *** Thread test program failed.  Your platform is not thread-safe.
22756 *** Check the file 'config.log'for the exact reason.
22757 ***
22758 *** You can use the configure option --enable-thread-safety-force
22759 *** to force threads to be enabled.  However, you must then run
22760 *** the program in src/test/thread and add locking function calls
22761 *** to your applications to guarantee thread safety.
22762 " >&5
22763 echo "$as_me: error:
22764 *** Thread test program failed.  Your platform is not thread-safe.
22765 *** Check the file 'config.log'for the exact reason.
22766 ***
22767 *** You can use the configure option --enable-thread-safety-force
22768 *** to force threads to be enabled.  However, you must then run
22769 *** the program in src/test/thread and add locking function calls
22770 *** to your applications to guarantee thread safety.
22771 " >&2;}
22772    { (exit 1); exit 1; }; }
22773 fi
22774 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22775 fi
22776 CFLAGS="$_CFLAGS"
22777 LIBS="$_LIBS"
22778 else
22779 { echo "$as_me:$LINENO: WARNING: *** Skipping thread test on Win32" >&5
22780 echo "$as_me: WARNING: *** Skipping thread test on Win32" >&2;}
22781 fi
22782 fi
22783
22784 # prepare build tree if outside source tree
22785 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
22786 # Note 2: /bin/pwd might be better than shell's built-in at getting
22787 #         a symlink-free name.
22788 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
22789   vpath_build=no
22790 else
22791   vpath_build=yes
22792   if test "$no_create" != yes; then
22793     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
22794     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
22795     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
22796       || { { echo "$as_me:$LINENO: error: failed" >&5
22797 echo "$as_me: error: failed" >&2;}
22798    { (exit 1); exit 1; }; }
22799     echo "$as_me:$LINENO: result: done" >&5
22800 echo "${ECHO_T}done" >&6
22801   fi
22802 fi
22803
22804
22805
22806                     ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
22807
22808
22809                                                             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}"
22810
22811
22812 if test "$PORTNAME" = "win32"; then
22813           ac_config_commands="$ac_config_commands check_win32_symlinks"
22814
22815 fi
22816
22817           ac_config_headers="$ac_config_headers src/include/pg_config.h"
22818
22819
22820 #
22821 # Warn about unknown options
22822 #
22823
22824
22825   for var in `set |sed -ne '/^\(with_\|enable\_\)/ s/=.*//p'` ; do
22826      case $var in
22827        with_template) ;;
22828 with_docdir) ;;
22829 with_includes) ;;
22830 with_libraries) ;;
22831 with_libs) ;;
22832 enable_integer_datetimes) ;;
22833 enable_nls) ;;
22834 with_pgport) ;;
22835 enable_shared) ;;
22836 enable_rpath) ;;
22837 enable_spinlocks) ;;
22838 enable_debug) ;;
22839 enable_dtrace) ;;
22840 with_CC) ;;
22841 enable_depend) ;;
22842 enable_cassert) ;;
22843 enable_thread_safety) ;;
22844 enable_thread_safety_force) ;;
22845 with_tcl) ;;
22846 with_tclconfig) ;;
22847 with_perl) ;;
22848 with_python) ;;
22849 with_krb5) ;;
22850 with_krb_srvnam) ;;
22851 with_pam) ;;
22852 with_ldap) ;;
22853 with_bonjour) ;;
22854 with_openssl) ;;
22855 with_libedit_preferred) ;;
22856 with_readline) ;;
22857 with_zlib) ;;
22858
22859        with_gnu_ld) ;;
22860      *)
22861        echo -n "*** Option ignored: "
22862        echo $var | sed -e 's/\(^=*\)/--\1/;s/_/-/g'
22863        ;;
22864      esac
22865   done
22866
22867
22868 cat >confcache <<\_ACEOF
22869 # This file is a shell script that caches the results of configure
22870 # tests run on this system so they can be shared between configure
22871 # scripts and configure runs, see configure's option --config-cache.
22872 # It is not useful on other systems.  If it contains results you don't
22873 # want to keep, you may remove or edit it.
22874 #
22875 # config.status only pays attention to the cache file if you give it
22876 # the --recheck option to rerun configure.
22877 #
22878 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22879 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22880 # following values.
22881
22882 _ACEOF
22883
22884 # The following way of writing the cache mishandles newlines in values,
22885 # but we know of no workaround that is simple, portable, and efficient.
22886 # So, don't put newlines in cache variables' values.
22887 # Ultrix sh set writes to stderr and can't be redirected directly,
22888 # and sets the high bit in the cache file unless we assign to the vars.
22889 {
22890   (set) 2>&1 |
22891     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22892     *ac_space=\ *)
22893       # `set' does not quote correctly, so add quotes (double-quote
22894       # substitution turns \\\\ into \\, and sed turns \\ into \).
22895       sed -n \
22896         "s/'/'\\\\''/g;
22897           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22898       ;;
22899     *)
22900       # `set' quotes correctly as required by POSIX, so do not add quotes.
22901       sed -n \
22902         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22903       ;;
22904     esac;
22905 } |
22906   sed '
22907      t clear
22908      : clear
22909      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22910      t end
22911      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22912      : end' >>confcache
22913 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22914   if test -w $cache_file; then
22915     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22916     cat confcache >$cache_file
22917   else
22918     echo "not updating unwritable cache $cache_file"
22919   fi
22920 fi
22921 rm -f confcache
22922
22923 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22924 # Let make expand exec_prefix.
22925 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22926
22927 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22928 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22929 # trailing colons and then remove the whole line if VPATH becomes empty
22930 # (actually we leave an empty line to preserve line numbers).
22931 if test "x$srcdir" = x.; then
22932   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22933 s/:*\$(srcdir):*/:/;
22934 s/:*\${srcdir}:*/:/;
22935 s/:*@srcdir@:*/:/;
22936 s/^\([^=]*=[     ]*\):*/\1/;
22937 s/:*$//;
22938 s/^[^=]*=[       ]*$//;
22939 }'
22940 fi
22941
22942 DEFS=-DHAVE_CONFIG_H
22943
22944 ac_libobjs=
22945 ac_ltlibobjs=
22946 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22947   # 1. Remove the extension, and $U if already installed.
22948   ac_i=`echo "$ac_i" |
22949          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22950   # 2. Add them.
22951   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22952   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22953 done
22954 LIBOBJS=$ac_libobjs
22955
22956 LTLIBOBJS=$ac_ltlibobjs
22957
22958
22959
22960 : ${CONFIG_STATUS=./config.status}
22961 ac_clean_files_save=$ac_clean_files
22962 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22963 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22964 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22965 cat >$CONFIG_STATUS <<_ACEOF
22966 #! $SHELL
22967 # Generated by $as_me.
22968 # Run this file to recreate the current configuration.
22969 # Compiler output produced by configure, useful for debugging
22970 # configure, is in config.log if it exists.
22971
22972 debug=false
22973 ac_cs_recheck=false
22974 ac_cs_silent=false
22975 SHELL=\${CONFIG_SHELL-$SHELL}
22976 _ACEOF
22977
22978 cat >>$CONFIG_STATUS <<\_ACEOF
22979 ## --------------------- ##
22980 ## M4sh Initialization.  ##
22981 ## --------------------- ##
22982
22983 # Be Bourne compatible
22984 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22985   emulate sh
22986   NULLCMD=:
22987   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22988   # is contrary to our usage.  Disable this feature.
22989   alias -g '${1+"$@"}'='"$@"'
22990 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22991   set -o posix
22992 fi
22993 DUALCASE=1; export DUALCASE # for MKS sh
22994
22995 # Support unset when possible.
22996 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22997   as_unset=unset
22998 else
22999   as_unset=false
23000 fi
23001
23002
23003 # Work around bugs in pre-3.0 UWIN ksh.
23004 $as_unset ENV MAIL MAILPATH
23005 PS1='$ '
23006 PS2='> '
23007 PS4='+ '
23008
23009 # NLS nuisances.
23010 for as_var in \
23011   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23012   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23013   LC_TELEPHONE LC_TIME
23014 do
23015   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23016     eval $as_var=C; export $as_var
23017   else
23018     $as_unset $as_var
23019   fi
23020 done
23021
23022 # Required to use basename.
23023 if expr a : '\(a\)' >/dev/null 2>&1; then
23024   as_expr=expr
23025 else
23026   as_expr=false
23027 fi
23028
23029 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23030   as_basename=basename
23031 else
23032   as_basename=false
23033 fi
23034
23035
23036 # Name of the executable.
23037 as_me=`$as_basename "$0" ||
23038 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23039          X"$0" : 'X\(//\)$' \| \
23040          X"$0" : 'X\(/\)$' \| \
23041          .     : '\(.\)' 2>/dev/null ||
23042 echo X/"$0" |
23043     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23044           /^X\/\(\/\/\)$/{ s//\1/; q; }
23045           /^X\/\(\/\).*/{ s//\1/; q; }
23046           s/.*/./; q'`
23047
23048
23049 # PATH needs CR, and LINENO needs CR and PATH.
23050 # Avoid depending upon Character Ranges.
23051 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23052 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23053 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23054 as_cr_digits='0123456789'
23055 as_cr_alnum=$as_cr_Letters$as_cr_digits
23056
23057 # The user is always right.
23058 if test "${PATH_SEPARATOR+set}" != set; then
23059   echo "#! /bin/sh" >conf$$.sh
23060   echo  "exit 0"   >>conf$$.sh
23061   chmod +x conf$$.sh
23062   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23063     PATH_SEPARATOR=';'
23064   else
23065     PATH_SEPARATOR=:
23066   fi
23067   rm -f conf$$.sh
23068 fi
23069
23070
23071   as_lineno_1=$LINENO
23072   as_lineno_2=$LINENO
23073   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23074   test "x$as_lineno_1" != "x$as_lineno_2" &&
23075   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23076   # Find who we are.  Look in the path if we contain no path at all
23077   # relative or not.
23078   case $0 in
23079     *[\\/]* ) as_myself=$0 ;;
23080     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23081 for as_dir in $PATH
23082 do
23083   IFS=$as_save_IFS
23084   test -z "$as_dir" && as_dir=.
23085   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23086 done
23087
23088        ;;
23089   esac
23090   # We did not find ourselves, most probably we were run as `sh COMMAND'
23091   # in which case we are not to be found in the path.
23092   if test "x$as_myself" = x; then
23093     as_myself=$0
23094   fi
23095   if test ! -f "$as_myself"; then
23096     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23097 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23098    { (exit 1); exit 1; }; }
23099   fi
23100   case $CONFIG_SHELL in
23101   '')
23102     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23103 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23104 do
23105   IFS=$as_save_IFS
23106   test -z "$as_dir" && as_dir=.
23107   for as_base in sh bash ksh sh5; do
23108          case $as_dir in
23109          /*)
23110            if ("$as_dir/$as_base" -c '
23111   as_lineno_1=$LINENO
23112   as_lineno_2=$LINENO
23113   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23114   test "x$as_lineno_1" != "x$as_lineno_2" &&
23115   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23116              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23117              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23118              CONFIG_SHELL=$as_dir/$as_base
23119              export CONFIG_SHELL
23120              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23121            fi;;
23122          esac
23123        done
23124 done
23125 ;;
23126   esac
23127
23128   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23129   # uniformly replaced by the line number.  The first 'sed' inserts a
23130   # line-number line before each line; the second 'sed' does the real
23131   # work.  The second script uses 'N' to pair each line-number line
23132   # with the numbered line, and appends trailing '-' during
23133   # substitution so that $LINENO is not a special case at line end.
23134   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23135   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23136   sed '=' <$as_myself |
23137     sed '
23138       N
23139       s,$,-,
23140       : loop
23141       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23142       t loop
23143       s,-$,,
23144       s,^['$as_cr_digits']*\n,,
23145     ' >$as_me.lineno &&
23146   chmod +x $as_me.lineno ||
23147     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23148 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23149    { (exit 1); exit 1; }; }
23150
23151   # Don't try to exec as it changes $[0], causing all sort of problems
23152   # (the dirname of $[0] is not the place where we might find the
23153   # original and so on.  Autoconf is especially sensible to this).
23154   . ./$as_me.lineno
23155   # Exit status is that of the last command.
23156   exit
23157 }
23158
23159
23160 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23161   *c*,-n*) ECHO_N= ECHO_C='
23162 ' ECHO_T='      ' ;;
23163   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23164   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23165 esac
23166
23167 if expr a : '\(a\)' >/dev/null 2>&1; then
23168   as_expr=expr
23169 else
23170   as_expr=false
23171 fi
23172
23173 rm -f conf$$ conf$$.exe conf$$.file
23174 echo >conf$$.file
23175 if ln -s conf$$.file conf$$ 2>/dev/null; then
23176   # We could just check for DJGPP; but this test a) works b) is more generic
23177   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23178   if test -f conf$$.exe; then
23179     # Don't use ln at all; we don't have any links
23180     as_ln_s='cp -p'
23181   else
23182     as_ln_s='ln -s'
23183   fi
23184 elif ln conf$$.file conf$$ 2>/dev/null; then
23185   as_ln_s=ln
23186 else
23187   as_ln_s='cp -p'
23188 fi
23189 rm -f conf$$ conf$$.exe conf$$.file
23190
23191 if mkdir -p . 2>/dev/null; then
23192   as_mkdir_p=:
23193 else
23194   test -d ./-p && rmdir ./-p
23195   as_mkdir_p=false
23196 fi
23197
23198 as_executable_p="test -f"
23199
23200 # Sed expression to map a string onto a valid CPP name.
23201 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23202
23203 # Sed expression to map a string onto a valid variable name.
23204 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23205
23206
23207 # IFS
23208 # We need space, tab and new line, in precisely that order.
23209 as_nl='
23210 '
23211 IFS="   $as_nl"
23212
23213 # CDPATH.
23214 $as_unset CDPATH
23215
23216 exec 6>&1
23217
23218 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23219 # report actual input values of CONFIG_FILES etc. instead of their
23220 # values after options handling.  Logging --version etc. is OK.
23221 exec 5>>config.log
23222 {
23223   echo
23224   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23225 ## Running $as_me. ##
23226 _ASBOX
23227 } >&5
23228 cat >&5 <<_CSEOF
23229
23230 This file was extended by PostgreSQL $as_me 8.2devel, which was
23231 generated by GNU Autoconf 2.59.  Invocation command line was
23232
23233   CONFIG_FILES    = $CONFIG_FILES
23234   CONFIG_HEADERS  = $CONFIG_HEADERS
23235   CONFIG_LINKS    = $CONFIG_LINKS
23236   CONFIG_COMMANDS = $CONFIG_COMMANDS
23237   $ $0 $@
23238
23239 _CSEOF
23240 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23241 echo >&5
23242 _ACEOF
23243
23244 # Files that config.status was made for.
23245 if test -n "$ac_config_files"; then
23246   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23247 fi
23248
23249 if test -n "$ac_config_headers"; then
23250   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23251 fi
23252
23253 if test -n "$ac_config_links"; then
23254   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23255 fi
23256
23257 if test -n "$ac_config_commands"; then
23258   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23259 fi
23260
23261 cat >>$CONFIG_STATUS <<\_ACEOF
23262
23263 ac_cs_usage="\
23264 \`$as_me' instantiates files from templates according to the
23265 current configuration.
23266
23267 Usage: $0 [OPTIONS] [FILE]...
23268
23269   -h, --help       print this help, then exit
23270   -V, --version    print version number, then exit
23271   -q, --quiet      do not print progress messages
23272   -d, --debug      don't remove temporary files
23273       --recheck    update $as_me by reconfiguring in the same conditions
23274   --file=FILE[:TEMPLATE]
23275                    instantiate the configuration file FILE
23276   --header=FILE[:TEMPLATE]
23277                    instantiate the configuration header FILE
23278
23279 Configuration files:
23280 $config_files
23281
23282 Configuration headers:
23283 $config_headers
23284
23285 Configuration links:
23286 $config_links
23287
23288 Configuration commands:
23289 $config_commands
23290
23291 Report bugs to <bug-autoconf@gnu.org>."
23292 _ACEOF
23293
23294 cat >>$CONFIG_STATUS <<_ACEOF
23295 ac_cs_version="\\
23296 PostgreSQL config.status 8.2devel
23297 configured by $0, generated by GNU Autoconf 2.59,
23298   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23299
23300 Copyright (C) 2003 Free Software Foundation, Inc.
23301 This config.status script is free software; the Free Software Foundation
23302 gives unlimited permission to copy, distribute and modify it."
23303 srcdir=$srcdir
23304 _ACEOF
23305
23306 cat >>$CONFIG_STATUS <<\_ACEOF
23307 # If no file are specified by the user, then we need to provide default
23308 # value.  By we need to know if files were specified by the user.
23309 ac_need_defaults=:
23310 while test $# != 0
23311 do
23312   case $1 in
23313   --*=*)
23314     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23315     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23316     ac_shift=:
23317     ;;
23318   -*)
23319     ac_option=$1
23320     ac_optarg=$2
23321     ac_shift=shift
23322     ;;
23323   *) # This is not an option, so the user has probably given explicit
23324      # arguments.
23325      ac_option=$1
23326      ac_need_defaults=false;;
23327   esac
23328
23329   case $ac_option in
23330   # Handling of the options.
23331 _ACEOF
23332 cat >>$CONFIG_STATUS <<\_ACEOF
23333   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23334     ac_cs_recheck=: ;;
23335   --version | --vers* | -V )
23336     echo "$ac_cs_version"; exit 0 ;;
23337   --he | --h)
23338     # Conflict between --help and --header
23339     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23340 Try \`$0 --help' for more information." >&5
23341 echo "$as_me: error: ambiguous option: $1
23342 Try \`$0 --help' for more information." >&2;}
23343    { (exit 1); exit 1; }; };;
23344   --help | --hel | -h )
23345     echo "$ac_cs_usage"; exit 0 ;;
23346   --debug | --d* | -d )
23347     debug=: ;;
23348   --file | --fil | --fi | --f )
23349     $ac_shift
23350     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23351     ac_need_defaults=false;;
23352   --header | --heade | --head | --hea )
23353     $ac_shift
23354     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23355     ac_need_defaults=false;;
23356   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23357   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23358     ac_cs_silent=: ;;
23359
23360   # This is an error.
23361   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23362 Try \`$0 --help' for more information." >&5
23363 echo "$as_me: error: unrecognized option: $1
23364 Try \`$0 --help' for more information." >&2;}
23365    { (exit 1); exit 1; }; } ;;
23366
23367   *) ac_config_targets="$ac_config_targets $1" ;;
23368
23369   esac
23370   shift
23371 done
23372
23373 ac_configure_extra_args=
23374
23375 if $ac_cs_silent; then
23376   exec 6>/dev/null
23377   ac_configure_extra_args="$ac_configure_extra_args --silent"
23378 fi
23379
23380 _ACEOF
23381 cat >>$CONFIG_STATUS <<_ACEOF
23382 if \$ac_cs_recheck; then
23383   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23384   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23385 fi
23386
23387 _ACEOF
23388
23389
23390
23391
23392
23393 cat >>$CONFIG_STATUS <<\_ACEOF
23394 for ac_config_target in $ac_config_targets
23395 do
23396   case "$ac_config_target" in
23397   # Handling of arguments.
23398   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
23399   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
23400   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
23401   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
23402   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
23403   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
23404   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
23405   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
23406   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
23407   "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
23408   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
23409   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23410 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23411    { (exit 1); exit 1; }; };;
23412   esac
23413 done
23414
23415 # If the user did not use the arguments to specify the items to instantiate,
23416 # then the envvar interface is used.  Set only those that are not.
23417 # We use the long form for the default assignment because of an extremely
23418 # bizarre bug on SunOS 4.1.3.
23419 if $ac_need_defaults; then
23420   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23421   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23422   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23423   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23424 fi
23425
23426 # Have a temporary directory for convenience.  Make it in the build tree
23427 # simply because there is no reason to put it here, and in addition,
23428 # creating and moving files from /tmp can sometimes cause problems.
23429 # Create a temporary directory, and hook for its removal unless debugging.
23430 $debug ||
23431 {
23432   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23433   trap '{ (exit 1); exit 1; }' 1 2 13 15
23434 }
23435
23436 # Create a (secure) tmp directory for tmp files.
23437
23438 {
23439   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23440   test -n "$tmp" && test -d "$tmp"
23441 }  ||
23442 {
23443   tmp=./confstat$$-$RANDOM
23444   (umask 077 && mkdir $tmp)
23445 } ||
23446 {
23447    echo "$me: cannot create a temporary directory in ." >&2
23448    { (exit 1); exit 1; }
23449 }
23450
23451 _ACEOF
23452
23453 cat >>$CONFIG_STATUS <<_ACEOF
23454
23455 #
23456 # CONFIG_FILES section.
23457 #
23458
23459 # No need to generate the scripts if there are no CONFIG_FILES.
23460 # This happens for instance when ./config.status config.h
23461 if test -n "\$CONFIG_FILES"; then
23462   # Protect against being on the right side of a sed subst in config.status.
23463   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23464    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23465 s,@SHELL@,$SHELL,;t t
23466 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23467 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23468 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23469 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23470 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23471 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23472 s,@exec_prefix@,$exec_prefix,;t t
23473 s,@prefix@,$prefix,;t t
23474 s,@program_transform_name@,$program_transform_name,;t t
23475 s,@bindir@,$bindir,;t t
23476 s,@sbindir@,$sbindir,;t t
23477 s,@libexecdir@,$libexecdir,;t t
23478 s,@datadir@,$datadir,;t t
23479 s,@sysconfdir@,$sysconfdir,;t t
23480 s,@sharedstatedir@,$sharedstatedir,;t t
23481 s,@localstatedir@,$localstatedir,;t t
23482 s,@libdir@,$libdir,;t t
23483 s,@includedir@,$includedir,;t t
23484 s,@oldincludedir@,$oldincludedir,;t t
23485 s,@infodir@,$infodir,;t t
23486 s,@mandir@,$mandir,;t t
23487 s,@build_alias@,$build_alias,;t t
23488 s,@host_alias@,$host_alias,;t t
23489 s,@target_alias@,$target_alias,;t t
23490 s,@DEFS@,$DEFS,;t t
23491 s,@ECHO_C@,$ECHO_C,;t t
23492 s,@ECHO_N@,$ECHO_N,;t t
23493 s,@ECHO_T@,$ECHO_T,;t t
23494 s,@LIBS@,$LIBS,;t t
23495 s,@configure_args@,$configure_args,;t t
23496 s,@build@,$build,;t t
23497 s,@build_cpu@,$build_cpu,;t t
23498 s,@build_vendor@,$build_vendor,;t t
23499 s,@build_os@,$build_os,;t t
23500 s,@host@,$host,;t t
23501 s,@host_cpu@,$host_cpu,;t t
23502 s,@host_vendor@,$host_vendor,;t t
23503 s,@host_os@,$host_os,;t t
23504 s,@PORTNAME@,$PORTNAME,;t t
23505 s,@docdir@,$docdir,;t t
23506 s,@enable_nls@,$enable_nls,;t t
23507 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
23508 s,@default_port@,$default_port,;t t
23509 s,@enable_shared@,$enable_shared,;t t
23510 s,@enable_rpath@,$enable_rpath,;t t
23511 s,@enable_debug@,$enable_debug,;t t
23512 s,@DTRACE@,$DTRACE,;t t
23513 s,@DTRACEFLAGS@,$DTRACEFLAGS,;t t
23514 s,@enable_dtrace@,$enable_dtrace,;t t
23515 s,@CC@,$CC,;t t
23516 s,@CFLAGS@,$CFLAGS,;t t
23517 s,@LDFLAGS@,$LDFLAGS,;t t
23518 s,@CPPFLAGS@,$CPPFLAGS,;t t
23519 s,@ac_ct_CC@,$ac_ct_CC,;t t
23520 s,@EXEEXT@,$EXEEXT,;t t
23521 s,@OBJEXT@,$OBJEXT,;t t
23522 s,@CPP@,$CPP,;t t
23523 s,@GCC@,$GCC,;t t
23524 s,@TAS@,$TAS,;t t
23525 s,@autodepend@,$autodepend,;t t
23526 s,@INCLUDES@,$INCLUDES,;t t
23527 s,@enable_thread_safety@,$enable_thread_safety,;t t
23528 s,@with_tcl@,$with_tcl,;t t
23529 s,@with_perl@,$with_perl,;t t
23530 s,@with_python@,$with_python,;t t
23531 s,@with_krb5@,$with_krb5,;t t
23532 s,@krb_srvtab@,$krb_srvtab,;t t
23533 s,@with_pam@,$with_pam,;t t
23534 s,@with_ldap@,$with_ldap,;t t
23535 s,@with_bonjour@,$with_bonjour,;t t
23536 s,@with_openssl@,$with_openssl,;t t
23537 s,@with_zlib@,$with_zlib,;t t
23538 s,@EGREP@,$EGREP,;t t
23539 s,@ELF_SYS@,$ELF_SYS,;t t
23540 s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
23541 s,@AWK@,$AWK,;t t
23542 s,@FLEX@,$FLEX,;t t
23543 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
23544 s,@LN_S@,$LN_S,;t t
23545 s,@LD@,$LD,;t t
23546 s,@with_gnu_ld@,$with_gnu_ld,;t t
23547 s,@ld_R_works@,$ld_R_works,;t t
23548 s,@RANLIB@,$RANLIB,;t t
23549 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23550 s,@TAR@,$TAR,;t t
23551 s,@STRIP@,$STRIP,;t t
23552 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23553 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
23554 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
23555 s,@YACC@,$YACC,;t t
23556 s,@YFLAGS@,$YFLAGS,;t t
23557 s,@PERL@,$PERL,;t t
23558 s,@perl_archlibexp@,$perl_archlibexp,;t t
23559 s,@perl_privlibexp@,$perl_privlibexp,;t t
23560 s,@perl_useshrplib@,$perl_useshrplib,;t t
23561 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
23562 s,@PYTHON@,$PYTHON,;t t
23563 s,@python_version@,$python_version,;t t
23564 s,@python_configdir@,$python_configdir,;t t
23565 s,@python_includespec@,$python_includespec,;t t
23566 s,@python_libdir@,$python_libdir,;t t
23567 s,@python_libspec@,$python_libspec,;t t
23568 s,@python_additional_libs@,$python_additional_libs,;t t
23569 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
23570 s,@LIBOBJS@,$LIBOBJS,;t t
23571 s,@acx_pthread_config@,$acx_pthread_config,;t t
23572 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
23573 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
23574 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
23575 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
23576 s,@MSGFMT@,$MSGFMT,;t t
23577 s,@MSGMERGE@,$MSGMERGE,;t t
23578 s,@XGETTEXT@,$XGETTEXT,;t t
23579 s,@localedir@,$localedir,;t t
23580 s,@TCLSH@,$TCLSH,;t t
23581 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
23582 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
23583 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
23584 s,@TCL_LIBS@,$TCL_LIBS,;t t
23585 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
23586 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
23587 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
23588 s,@NSGMLS@,$NSGMLS,;t t
23589 s,@JADE@,$JADE,;t t
23590 s,@have_docbook@,$have_docbook,;t t
23591 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
23592 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
23593 s,@SGMLSPL@,$SGMLSPL,;t t
23594 s,@vpath_build@,$vpath_build,;t t
23595 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23596 CEOF
23597
23598 _ACEOF
23599
23600   cat >>$CONFIG_STATUS <<\_ACEOF
23601   # Split the substitutions into bite-sized pieces for seds with
23602   # small command number limits, like on Digital OSF/1 and HP-UX.
23603   ac_max_sed_lines=48
23604   ac_sed_frag=1 # Number of current file.
23605   ac_beg=1 # First line for current file.
23606   ac_end=$ac_max_sed_lines # Line after last line for current file.
23607   ac_more_lines=:
23608   ac_sed_cmds=
23609   while $ac_more_lines; do
23610     if test $ac_beg -gt 1; then
23611       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23612     else
23613       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23614     fi
23615     if test ! -s $tmp/subs.frag; then
23616       ac_more_lines=false
23617     else
23618       # The purpose of the label and of the branching condition is to
23619       # speed up the sed processing (if there are no `@' at all, there
23620       # is no need to browse any of the substitutions).
23621       # These are the two extra sed commands mentioned above.
23622       (echo ':t
23623   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23624       if test -z "$ac_sed_cmds"; then
23625         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23626       else
23627         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23628       fi
23629       ac_sed_frag=`expr $ac_sed_frag + 1`
23630       ac_beg=$ac_end
23631       ac_end=`expr $ac_end + $ac_max_sed_lines`
23632     fi
23633   done
23634   if test -z "$ac_sed_cmds"; then
23635     ac_sed_cmds=cat
23636   fi
23637 fi # test -n "$CONFIG_FILES"
23638
23639 _ACEOF
23640 cat >>$CONFIG_STATUS <<\_ACEOF
23641 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23642   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23643   case $ac_file in
23644   - | *:- | *:-:* ) # input from stdin
23645         cat >$tmp/stdin
23646         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23647         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23648   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23649         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23650   * )   ac_file_in=$ac_file.in ;;
23651   esac
23652
23653   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23654   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23655 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23656          X"$ac_file" : 'X\(//\)[^/]' \| \
23657          X"$ac_file" : 'X\(//\)$' \| \
23658          X"$ac_file" : 'X\(/\)' \| \
23659          .     : '\(.\)' 2>/dev/null ||
23660 echo X"$ac_file" |
23661     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23662           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23663           /^X\(\/\/\)$/{ s//\1/; q; }
23664           /^X\(\/\).*/{ s//\1/; q; }
23665           s/.*/./; q'`
23666   { if $as_mkdir_p; then
23667     mkdir -p "$ac_dir"
23668   else
23669     as_dir="$ac_dir"
23670     as_dirs=
23671     while test ! -d "$as_dir"; do
23672       as_dirs="$as_dir $as_dirs"
23673       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23674 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23675          X"$as_dir" : 'X\(//\)[^/]' \| \
23676          X"$as_dir" : 'X\(//\)$' \| \
23677          X"$as_dir" : 'X\(/\)' \| \
23678          .     : '\(.\)' 2>/dev/null ||
23679 echo X"$as_dir" |
23680     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23681           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23682           /^X\(\/\/\)$/{ s//\1/; q; }
23683           /^X\(\/\).*/{ s//\1/; q; }
23684           s/.*/./; q'`
23685     done
23686     test ! -n "$as_dirs" || mkdir $as_dirs
23687   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23688 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23689    { (exit 1); exit 1; }; }; }
23690
23691   ac_builddir=.
23692
23693 if test "$ac_dir" != .; then
23694   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23695   # A "../" for each directory in $ac_dir_suffix.
23696   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23697 else
23698   ac_dir_suffix= ac_top_builddir=
23699 fi
23700
23701 case $srcdir in
23702   .)  # No --srcdir option.  We are building in place.
23703     ac_srcdir=.
23704     if test -z "$ac_top_builddir"; then
23705        ac_top_srcdir=.
23706     else
23707        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23708     fi ;;
23709   [\\/]* | ?:[\\/]* )  # Absolute path.
23710     ac_srcdir=$srcdir$ac_dir_suffix;
23711     ac_top_srcdir=$srcdir ;;
23712   *) # Relative path.
23713     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23714     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23715 esac
23716
23717 # Do not use `cd foo && pwd` to compute absolute paths, because
23718 # the directories may not exist.
23719 case `pwd` in
23720 .) ac_abs_builddir="$ac_dir";;
23721 *)
23722   case "$ac_dir" in
23723   .) ac_abs_builddir=`pwd`;;
23724   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23725   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23726   esac;;
23727 esac
23728 case $ac_abs_builddir in
23729 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23730 *)
23731   case ${ac_top_builddir}. in
23732   .) ac_abs_top_builddir=$ac_abs_builddir;;
23733   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23734   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23735   esac;;
23736 esac
23737 case $ac_abs_builddir in
23738 .) ac_abs_srcdir=$ac_srcdir;;
23739 *)
23740   case $ac_srcdir in
23741   .) ac_abs_srcdir=$ac_abs_builddir;;
23742   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23743   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23744   esac;;
23745 esac
23746 case $ac_abs_builddir in
23747 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23748 *)
23749   case $ac_top_srcdir in
23750   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23751   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23752   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23753   esac;;
23754 esac
23755
23756
23757
23758   if test x"$ac_file" != x-; then
23759     { echo "$as_me:$LINENO: creating $ac_file" >&5
23760 echo "$as_me: creating $ac_file" >&6;}
23761     rm -f "$ac_file"
23762   fi
23763   # Let's still pretend it is `configure' which instantiates (i.e., don't
23764   # use $as_me), people would be surprised to read:
23765   #    /* config.h.  Generated by config.status.  */
23766   if test x"$ac_file" = x-; then
23767     configure_input=
23768   else
23769     configure_input="$ac_file.  "
23770   fi
23771   configure_input=$configure_input"Generated from `echo $ac_file_in |
23772                                      sed 's,.*/,,'` by configure."
23773
23774   # First look for the input files in the build tree, otherwise in the
23775   # src tree.
23776   ac_file_inputs=`IFS=:
23777     for f in $ac_file_in; do
23778       case $f in
23779       -) echo $tmp/stdin ;;
23780       [\\/$]*)
23781          # Absolute (can't be DOS-style, as IFS=:)
23782          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23783 echo "$as_me: error: cannot find input file: $f" >&2;}
23784    { (exit 1); exit 1; }; }
23785          echo "$f";;
23786       *) # Relative
23787          if test -f "$f"; then
23788            # Build tree
23789            echo "$f"
23790          elif test -f "$srcdir/$f"; then
23791            # Source tree
23792            echo "$srcdir/$f"
23793          else
23794            # /dev/null tree
23795            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23796 echo "$as_me: error: cannot find input file: $f" >&2;}
23797    { (exit 1); exit 1; }; }
23798          fi;;
23799       esac
23800     done` || { (exit 1); exit 1; }
23801 _ACEOF
23802 cat >>$CONFIG_STATUS <<_ACEOF
23803   sed "$ac_vpsub
23804 $extrasub
23805 _ACEOF
23806 cat >>$CONFIG_STATUS <<\_ACEOF
23807 :t
23808 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23809 s,@configure_input@,$configure_input,;t t
23810 s,@srcdir@,$ac_srcdir,;t t
23811 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23812 s,@top_srcdir@,$ac_top_srcdir,;t t
23813 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23814 s,@builddir@,$ac_builddir,;t t
23815 s,@abs_builddir@,$ac_abs_builddir,;t t
23816 s,@top_builddir@,$ac_top_builddir,;t t
23817 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23818 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23819   rm -f $tmp/stdin
23820   if test x"$ac_file" != x-; then
23821     mv $tmp/out $ac_file
23822   else
23823     cat $tmp/out
23824     rm -f $tmp/out
23825   fi
23826
23827 done
23828 _ACEOF
23829 cat >>$CONFIG_STATUS <<\_ACEOF
23830
23831 #
23832 # CONFIG_HEADER section.
23833 #
23834
23835 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23836 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23837 #
23838 # ac_d sets the value in "#define NAME VALUE" lines.
23839 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
23840 ac_dB='[         ].*$,\1#\2'
23841 ac_dC=' '
23842 ac_dD=',;t'
23843 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23844 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23845 ac_uB='$,\1#\2define\3'
23846 ac_uC=' '
23847 ac_uD=',;t'
23848
23849 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23850   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23851   case $ac_file in
23852   - | *:- | *:-:* ) # input from stdin
23853         cat >$tmp/stdin
23854         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23855         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23856   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23857         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23858   * )   ac_file_in=$ac_file.in ;;
23859   esac
23860
23861   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23862 echo "$as_me: creating $ac_file" >&6;}
23863
23864   # First look for the input files in the build tree, otherwise in the
23865   # src tree.
23866   ac_file_inputs=`IFS=:
23867     for f in $ac_file_in; do
23868       case $f in
23869       -) echo $tmp/stdin ;;
23870       [\\/$]*)
23871          # Absolute (can't be DOS-style, as IFS=:)
23872          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23873 echo "$as_me: error: cannot find input file: $f" >&2;}
23874    { (exit 1); exit 1; }; }
23875          # Do quote $f, to prevent DOS paths from being IFS'd.
23876          echo "$f";;
23877       *) # Relative
23878          if test -f "$f"; then
23879            # Build tree
23880            echo "$f"
23881          elif test -f "$srcdir/$f"; then
23882            # Source tree
23883            echo "$srcdir/$f"
23884          else
23885            # /dev/null tree
23886            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23887 echo "$as_me: error: cannot find input file: $f" >&2;}
23888    { (exit 1); exit 1; }; }
23889          fi;;
23890       esac
23891     done` || { (exit 1); exit 1; }
23892   # Remove the trailing spaces.
23893   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
23894
23895 _ACEOF
23896
23897 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23898 # `conftest.undefs', that substitutes the proper values into
23899 # config.h.in to produce config.h.  The first handles `#define'
23900 # templates, and the second `#undef' templates.
23901 # And first: Protect against being on the right side of a sed subst in
23902 # config.status.  Protect against being in an unquoted here document
23903 # in config.status.
23904 rm -f conftest.defines conftest.undefs
23905 # Using a here document instead of a string reduces the quoting nightmare.
23906 # Putting comments in sed scripts is not portable.
23907 #
23908 # `end' is used to avoid that the second main sed command (meant for
23909 # 0-ary CPP macros) applies to n-ary macro definitions.
23910 # See the Autoconf documentation for `clear'.
23911 cat >confdef2sed.sed <<\_ACEOF
23912 s/[\\&,]/\\&/g
23913 s,[\\$`],\\&,g
23914 t clear
23915 : clear
23916 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23917 t end
23918 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23919 : end
23920 _ACEOF
23921 # If some macros were called several times there might be several times
23922 # the same #defines, which is useless.  Nevertheless, we may not want to
23923 # sort them, since we want the *last* AC-DEFINE to be honored.
23924 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23925 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23926 rm -f confdef2sed.sed
23927
23928 # This sed command replaces #undef with comments.  This is necessary, for
23929 # example, in the case of _POSIX_SOURCE, which is predefined and required
23930 # on some systems where configure will not decide to define it.
23931 cat >>conftest.undefs <<\_ACEOF
23932 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23933 _ACEOF
23934
23935 # Break up conftest.defines because some shells have a limit on the size
23936 # of here documents, and old seds have small limits too (100 cmds).
23937 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23938 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23939 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23940 echo '  :' >>$CONFIG_STATUS
23941 rm -f conftest.tail
23942 while grep . conftest.defines >/dev/null
23943 do
23944   # Write a limited-size here document to $tmp/defines.sed.
23945   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23946   # Speed up: don't consider the non `#define' lines.
23947   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
23948   # Work around the forget-to-reset-the-flag bug.
23949   echo 't clr' >>$CONFIG_STATUS
23950   echo ': clr' >>$CONFIG_STATUS
23951   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23952   echo 'CEOF
23953   sed -f $tmp/defines.sed $tmp/in >$tmp/out
23954   rm -f $tmp/in
23955   mv $tmp/out $tmp/in
23956 ' >>$CONFIG_STATUS
23957   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23958   rm -f conftest.defines
23959   mv conftest.tail conftest.defines
23960 done
23961 rm -f conftest.defines
23962 echo '  fi # grep' >>$CONFIG_STATUS
23963 echo >>$CONFIG_STATUS
23964
23965 # Break up conftest.undefs because some shells have a limit on the size
23966 # of here documents, and old seds have small limits too (100 cmds).
23967 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23968 rm -f conftest.tail
23969 while grep . conftest.undefs >/dev/null
23970 do
23971   # Write a limited-size here document to $tmp/undefs.sed.
23972   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23973   # Speed up: don't consider the non `#undef'
23974   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
23975   # Work around the forget-to-reset-the-flag bug.
23976   echo 't clr' >>$CONFIG_STATUS
23977   echo ': clr' >>$CONFIG_STATUS
23978   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23979   echo 'CEOF
23980   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23981   rm -f $tmp/in
23982   mv $tmp/out $tmp/in
23983 ' >>$CONFIG_STATUS
23984   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23985   rm -f conftest.undefs
23986   mv conftest.tail conftest.undefs
23987 done
23988 rm -f conftest.undefs
23989
23990 cat >>$CONFIG_STATUS <<\_ACEOF
23991   # Let's still pretend it is `configure' which instantiates (i.e., don't
23992   # use $as_me), people would be surprised to read:
23993   #    /* config.h.  Generated by config.status.  */
23994   if test x"$ac_file" = x-; then
23995     echo "/* Generated by configure.  */" >$tmp/config.h
23996   else
23997     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23998   fi
23999   cat $tmp/in >>$tmp/config.h
24000   rm -f $tmp/in
24001   if test x"$ac_file" != x-; then
24002     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24003       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24004 echo "$as_me: $ac_file is unchanged" >&6;}
24005     else
24006       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24007 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24008          X"$ac_file" : 'X\(//\)[^/]' \| \
24009          X"$ac_file" : 'X\(//\)$' \| \
24010          X"$ac_file" : 'X\(/\)' \| \
24011          .     : '\(.\)' 2>/dev/null ||
24012 echo X"$ac_file" |
24013     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24014           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24015           /^X\(\/\/\)$/{ s//\1/; q; }
24016           /^X\(\/\).*/{ s//\1/; q; }
24017           s/.*/./; q'`
24018       { if $as_mkdir_p; then
24019     mkdir -p "$ac_dir"
24020   else
24021     as_dir="$ac_dir"
24022     as_dirs=
24023     while test ! -d "$as_dir"; do
24024       as_dirs="$as_dir $as_dirs"
24025       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24026 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24027          X"$as_dir" : 'X\(//\)[^/]' \| \
24028          X"$as_dir" : 'X\(//\)$' \| \
24029          X"$as_dir" : 'X\(/\)' \| \
24030          .     : '\(.\)' 2>/dev/null ||
24031 echo X"$as_dir" |
24032     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24033           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24034           /^X\(\/\/\)$/{ s//\1/; q; }
24035           /^X\(\/\).*/{ s//\1/; q; }
24036           s/.*/./; q'`
24037     done
24038     test ! -n "$as_dirs" || mkdir $as_dirs
24039   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24040 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24041    { (exit 1); exit 1; }; }; }
24042
24043       rm -f $ac_file
24044       mv $tmp/config.h $ac_file
24045     fi
24046   else
24047     cat $tmp/config.h
24048     rm -f $tmp/config.h
24049   fi
24050   # Run the commands associated with the file.
24051   case $ac_file in
24052     src/include/pg_config.h )
24053 # Update timestamp for pg_config.h (see Makefile.global)
24054 echo >src/include/stamp-h
24055  ;;
24056   esac
24057 done
24058 _ACEOF
24059 cat >>$CONFIG_STATUS <<\_ACEOF
24060
24061 #
24062 # CONFIG_LINKS section.
24063 #
24064
24065 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
24066   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24067   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24068
24069   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
24070 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
24071
24072   if test ! -r $srcdir/$ac_source; then
24073     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24074 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24075    { (exit 1); exit 1; }; }
24076   fi
24077   rm -f $ac_dest
24078
24079   # Make relative symlinks.
24080   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
24081 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24082          X"$ac_dest" : 'X\(//\)[^/]' \| \
24083          X"$ac_dest" : 'X\(//\)$' \| \
24084          X"$ac_dest" : 'X\(/\)' \| \
24085          .     : '\(.\)' 2>/dev/null ||
24086 echo X"$ac_dest" |
24087     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24088           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24089           /^X\(\/\/\)$/{ s//\1/; q; }
24090           /^X\(\/\).*/{ s//\1/; q; }
24091           s/.*/./; q'`
24092   { if $as_mkdir_p; then
24093     mkdir -p "$ac_dest_dir"
24094   else
24095     as_dir="$ac_dest_dir"
24096     as_dirs=
24097     while test ! -d "$as_dir"; do
24098       as_dirs="$as_dir $as_dirs"
24099       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24100 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24101          X"$as_dir" : 'X\(//\)[^/]' \| \
24102          X"$as_dir" : 'X\(//\)$' \| \
24103          X"$as_dir" : 'X\(/\)' \| \
24104          .     : '\(.\)' 2>/dev/null ||
24105 echo X"$as_dir" |
24106     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24107           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24108           /^X\(\/\/\)$/{ s//\1/; q; }
24109           /^X\(\/\).*/{ s//\1/; q; }
24110           s/.*/./; q'`
24111     done
24112     test ! -n "$as_dirs" || mkdir $as_dirs
24113   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
24114 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
24115    { (exit 1); exit 1; }; }; }
24116
24117   ac_builddir=.
24118
24119 if test "$ac_dest_dir" != .; then
24120   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
24121   # A "../" for each directory in $ac_dir_suffix.
24122   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24123 else
24124   ac_dir_suffix= ac_top_builddir=
24125 fi
24126
24127 case $srcdir in
24128   .)  # No --srcdir option.  We are building in place.
24129     ac_srcdir=.
24130     if test -z "$ac_top_builddir"; then
24131        ac_top_srcdir=.
24132     else
24133        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24134     fi ;;
24135   [\\/]* | ?:[\\/]* )  # Absolute path.
24136     ac_srcdir=$srcdir$ac_dir_suffix;
24137     ac_top_srcdir=$srcdir ;;
24138   *) # Relative path.
24139     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24140     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24141 esac
24142
24143 # Do not use `cd foo && pwd` to compute absolute paths, because
24144 # the directories may not exist.
24145 case `pwd` in
24146 .) ac_abs_builddir="$ac_dest_dir";;
24147 *)
24148   case "$ac_dest_dir" in
24149   .) ac_abs_builddir=`pwd`;;
24150   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
24151   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
24152   esac;;
24153 esac
24154 case $ac_abs_builddir in
24155 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24156 *)
24157   case ${ac_top_builddir}. in
24158   .) ac_abs_top_builddir=$ac_abs_builddir;;
24159   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24160   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24161   esac;;
24162 esac
24163 case $ac_abs_builddir in
24164 .) ac_abs_srcdir=$ac_srcdir;;
24165 *)
24166   case $ac_srcdir in
24167   .) ac_abs_srcdir=$ac_abs_builddir;;
24168   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24169   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24170   esac;;
24171 esac
24172 case $ac_abs_builddir in
24173 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24174 *)
24175   case $ac_top_srcdir in
24176   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24177   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24178   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24179   esac;;
24180 esac
24181
24182
24183   case $srcdir in
24184   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
24185       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
24186   esac
24187
24188   # Try a symlink, then a hard link, then a copy.
24189   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
24190     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
24191     cp -p $srcdir/$ac_source $ac_dest ||
24192     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
24193 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
24194    { (exit 1); exit 1; }; }
24195 done
24196 _ACEOF
24197 cat >>$CONFIG_STATUS <<\_ACEOF
24198
24199 #
24200 # CONFIG_COMMANDS section.
24201 #
24202 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24203   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24204   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24205   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24206 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24207          X"$ac_dest" : 'X\(//\)[^/]' \| \
24208          X"$ac_dest" : 'X\(//\)$' \| \
24209          X"$ac_dest" : 'X\(/\)' \| \
24210          .     : '\(.\)' 2>/dev/null ||
24211 echo X"$ac_dest" |
24212     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24213           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24214           /^X\(\/\/\)$/{ s//\1/; q; }
24215           /^X\(\/\).*/{ s//\1/; q; }
24216           s/.*/./; q'`
24217   { if $as_mkdir_p; then
24218     mkdir -p "$ac_dir"
24219   else
24220     as_dir="$ac_dir"
24221     as_dirs=
24222     while test ! -d "$as_dir"; do
24223       as_dirs="$as_dir $as_dirs"
24224       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24225 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24226          X"$as_dir" : 'X\(//\)[^/]' \| \
24227          X"$as_dir" : 'X\(//\)$' \| \
24228          X"$as_dir" : 'X\(/\)' \| \
24229          .     : '\(.\)' 2>/dev/null ||
24230 echo X"$as_dir" |
24231     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24232           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24233           /^X\(\/\/\)$/{ s//\1/; q; }
24234           /^X\(\/\).*/{ s//\1/; q; }
24235           s/.*/./; q'`
24236     done
24237     test ! -n "$as_dirs" || mkdir $as_dirs
24238   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24239 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24240    { (exit 1); exit 1; }; }; }
24241
24242   ac_builddir=.
24243
24244 if test "$ac_dir" != .; then
24245   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24246   # A "../" for each directory in $ac_dir_suffix.
24247   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24248 else
24249   ac_dir_suffix= ac_top_builddir=
24250 fi
24251
24252 case $srcdir in
24253   .)  # No --srcdir option.  We are building in place.
24254     ac_srcdir=.
24255     if test -z "$ac_top_builddir"; then
24256        ac_top_srcdir=.
24257     else
24258        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24259     fi ;;
24260   [\\/]* | ?:[\\/]* )  # Absolute path.
24261     ac_srcdir=$srcdir$ac_dir_suffix;
24262     ac_top_srcdir=$srcdir ;;
24263   *) # Relative path.
24264     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24265     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24266 esac
24267
24268 # Do not use `cd foo && pwd` to compute absolute paths, because
24269 # the directories may not exist.
24270 case `pwd` in
24271 .) ac_abs_builddir="$ac_dir";;
24272 *)
24273   case "$ac_dir" in
24274   .) ac_abs_builddir=`pwd`;;
24275   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24276   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24277   esac;;
24278 esac
24279 case $ac_abs_builddir in
24280 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24281 *)
24282   case ${ac_top_builddir}. in
24283   .) ac_abs_top_builddir=$ac_abs_builddir;;
24284   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24285   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24286   esac;;
24287 esac
24288 case $ac_abs_builddir in
24289 .) ac_abs_srcdir=$ac_srcdir;;
24290 *)
24291   case $ac_srcdir in
24292   .) ac_abs_srcdir=$ac_abs_builddir;;
24293   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24294   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24295   esac;;
24296 esac
24297 case $ac_abs_builddir in
24298 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24299 *)
24300   case $ac_top_srcdir in
24301   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24302   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24303   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24304   esac;;
24305 esac
24306
24307
24308   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24309 echo "$as_me: executing $ac_dest commands" >&6;}
24310   case $ac_dest in
24311     check_win32_symlinks )
24312 # Links sometimes fail undetected on Mingw -
24313 # so here we detect it and warn the user
24314 for FILE in $CONFIG_LINKS
24315  do
24316         # test -e works for symlinks in the MinGW console
24317         test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE - please fix by hand" >&5
24318 echo "$as_me: WARNING: *** link for $FILE - please fix by hand" >&2;}
24319  done
24320  ;;
24321   esac
24322 done
24323 _ACEOF
24324
24325 cat >>$CONFIG_STATUS <<\_ACEOF
24326
24327 { (exit 0); exit 0; }
24328 _ACEOF
24329 chmod +x $CONFIG_STATUS
24330 ac_clean_files=$ac_clean_files_save
24331
24332
24333 # configure is writing to config.log, and then calls config.status.
24334 # config.status does its own redirection, appending to config.log.
24335 # Unfortunately, on DOS this fails, as config.log is still kept open
24336 # by configure, so config.status won't be able to write to it; its
24337 # output is simply discarded.  So we exec the FD to /dev/null,
24338 # effectively closing config.log, so it can be properly (re)opened and
24339 # appended to by config.status.  When coming back to configure, we
24340 # need to make the FD available again.
24341 if test "$no_create" != yes; then
24342   ac_cs_success=:
24343   ac_config_status_args=
24344   test "$silent" = yes &&
24345     ac_config_status_args="$ac_config_status_args --quiet"
24346   exec 5>/dev/null
24347   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24348   exec 5>>config.log
24349   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24350   # would make configure fail if this is the last instruction.
24351   $ac_cs_success || { (exit 1); exit 1; }
24352 fi
24353
24354