]> granicus.if.org Git - postgresql/blob - configure
Improve getopt_long search, per Peter:
[postgresql] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.3devel.
4 #
5 # Report bugs to <pgsql-bugs@postgresql.org>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright 2002 PostgreSQL Global Development Group
13
14 if expr a : '\(a\)' >/dev/null 2>&1; then
15   as_expr=expr
16 else
17   as_expr=false
18 fi
19
20
21 ## --------------------- ##
22 ## M4sh Initialization.  ##
23 ## --------------------- ##
24
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27   emulate sh
28   NULLCMD=:
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30   set -o posix
31 fi
32
33 # NLS nuisances.
34 # Support unset when possible.
35 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
36   as_unset=unset
37 else
38   as_unset=false
39 fi
40
41 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
42     { $as_unset LANG || test "${LANG+set}" != set; } ||
43       { LANG=C; export LANG; }
44 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
45     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
46       { LC_ALL=C; export LC_ALL; }
47 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
48     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
49       { LC_TIME=C; export LC_TIME; }
50 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
51     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
52       { LC_CTYPE=C; export LC_CTYPE; }
53 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
54     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
55       { LANGUAGE=C; export LANGUAGE; }
56 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
57     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
58       { LC_COLLATE=C; export LC_COLLATE; }
59 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
60     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
61       { LC_NUMERIC=C; export LC_NUMERIC; }
62 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
63     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
64       { LC_MESSAGES=C; export LC_MESSAGES; }
65
66
67 # Name of the executable.
68 as_me=`(basename "$0") 2>/dev/null ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conftest.sh
90   echo  "exit 0"   >>conftest.sh
91   chmod +x conftest.sh
92   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conftest.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              CONFIG_SHELL=$as_dir/$as_base
146              export CONFIG_SHELL
147              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
148            fi;;
149          esac
150        done
151 done
152 ;;
153   esac
154
155   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156   # uniformly replaced by the line number.  The first 'sed' inserts a
157   # line-number line before each line; the second 'sed' does the real
158   # work.  The second script uses 'N' to pair each line-number line
159   # with the numbered line, and appends trailing '-' during
160   # substitution so that $LINENO is not a special case at line end.
161   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
163   sed '=' <$as_myself |
164     sed '
165       N
166       s,$,-,
167       : loop
168       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169       t loop
170       s,-$,,
171       s,^['$as_cr_digits']*\n,,
172     ' >$as_me.lineno &&
173   chmod +x $as_me.lineno ||
174     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175    { (exit 1); exit 1; }; }
176
177   # Don't try to exec as it changes $[0], causing all sort of problems
178   # (the dirname of $[0] is not the place where we might find the
179   # original and so on.  Autoconf is especially sensible to this).
180   . ./$as_me.lineno
181   # Exit status is that of the last command.
182   exit
183 }
184
185
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187   *c*,-n*) ECHO_N= ECHO_C='
188 ' ECHO_T='      ' ;;
189   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 esac
192
193 if expr a : '\(a\)' >/dev/null 2>&1; then
194   as_expr=expr
195 else
196   as_expr=false
197 fi
198
199 rm -f conf$$ conf$$.exe conf$$.file
200 echo >conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202   # We could just check for DJGPP; but this test a) works b) is more generic
203   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204   if test -f conf$$.exe; then
205     # Don't use ln at all; we don't have any links
206     as_ln_s='cp -p'
207   else
208     as_ln_s='ln -s'
209   fi
210 elif ln conf$$.file conf$$ 2>/dev/null; then
211   as_ln_s=ln
212 else
213   as_ln_s='cp -p'
214 fi
215 rm -f conf$$ conf$$.exe conf$$.file
216
217 as_executable_p="test -f"
218
219 # Sed expression to map a string onto a valid CPP name.
220 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
221
222 # Sed expression to map a string onto a valid variable name.
223 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
224
225
226 # IFS
227 # We need space, tab and new line, in precisely that order.
228 as_nl='
229 '
230 IFS="   $as_nl"
231
232 # CDPATH.
233 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
234
235
236 # Name of the host.
237 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
238 # so uname gets run too.
239 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
240
241 exec 6>&1
242
243 #
244 # Initializations.
245 #
246 ac_default_prefix=/usr/local
247 cross_compiling=no
248 subdirs=
249 MFLAGS=
250 MAKEFLAGS=
251 SHELL=${CONFIG_SHELL-/bin/sh}
252
253 # Maximum number of lines to put in a shell here document.
254 # This variable seems obsolete.  It should probably be removed, and
255 # only ac_max_sed_lines should be used.
256 : ${ac_max_here_lines=38}
257
258 # Identity of this package.
259 PACKAGE_NAME='PostgreSQL'
260 PACKAGE_TARNAME='postgresql'
261 PACKAGE_VERSION='7.3devel'
262 PACKAGE_STRING='PostgreSQL 7.3devel'
263 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
264
265 ac_unique_file="src/backend/access/common/heaptuple.c"
266 ac_default_prefix=/usr/local/pgsql
267 # Factoring default headers for most tests.
268 ac_includes_default="\
269 #include <stdio.h>
270 #if HAVE_SYS_TYPES_H
271 # include <sys/types.h>
272 #endif
273 #if HAVE_SYS_STAT_H
274 # include <sys/stat.h>
275 #endif
276 #if STDC_HEADERS
277 # include <stdlib.h>
278 # include <stddef.h>
279 #else
280 # if HAVE_STDLIB_H
281 #  include <stdlib.h>
282 # endif
283 #endif
284 #if HAVE_STRING_H
285 # if !STDC_HEADERS && HAVE_MEMORY_H
286 #  include <memory.h>
287 # endif
288 # include <string.h>
289 #endif
290 #if HAVE_STRINGS_H
291 # include <strings.h>
292 #endif
293 #if HAVE_INTTYPES_H
294 # include <inttypes.h>
295 #else
296 # if HAVE_STDINT_H
297 #  include <stdint.h>
298 # endif
299 #endif
300 #if HAVE_UNISTD_H
301 # include <unistd.h>
302 #endif"
303
304
305 # Initialize some variables set by options.
306 ac_init_help=
307 ac_init_version=false
308 # The variables have the same names as the options, with
309 # dashes changed to underlines.
310 cache_file=/dev/null
311 exec_prefix=NONE
312 no_create=
313 no_recursion=
314 prefix=NONE
315 program_prefix=NONE
316 program_suffix=NONE
317 program_transform_name=s,x,x,
318 silent=
319 site=
320 srcdir=
321 verbose=
322 x_includes=NONE
323 x_libraries=NONE
324
325 # Installation directory options.
326 # These are left unexpanded so users can "make install exec_prefix=/foo"
327 # and all the variables that are supposed to be based on exec_prefix
328 # by default will actually change.
329 # Use braces instead of parens because sh, perl, etc. also accept them.
330 bindir='${exec_prefix}/bin'
331 sbindir='${exec_prefix}/sbin'
332 libexecdir='${exec_prefix}/libexec'
333 datadir='${prefix}/share'
334 sysconfdir='${prefix}/etc'
335 sharedstatedir='${prefix}/com'
336 localstatedir='${prefix}/var'
337 libdir='${exec_prefix}/lib'
338 includedir='${prefix}/include'
339 oldincludedir='/usr/include'
340 docdir='${prefix}/doc'
341 mandir='${prefix}/man'
342
343 ac_prev=
344 for ac_option
345 do
346   # If the previous option needs an argument, assign it.
347   if test -n "$ac_prev"; then
348     eval "$ac_prev=\$ac_option"
349     ac_prev=
350     continue
351   fi
352
353   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
354
355   # Accept the important Cygnus configure options, so we can diagnose typos.
356
357   case $ac_option in
358
359   -bindir | --bindir | --bindi | --bind | --bin | --bi)
360     ac_prev=bindir ;;
361   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
362     bindir=$ac_optarg ;;
363
364   -build | --build | --buil | --bui | --bu)
365     ac_prev=build_alias ;;
366   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
367     build_alias=$ac_optarg ;;
368
369   -cache-file | --cache-file | --cache-fil | --cache-fi \
370   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
371     ac_prev=cache_file ;;
372   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
373   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
374     cache_file=$ac_optarg ;;
375
376   --config-cache | -C)
377     cache_file=config.cache ;;
378
379   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
380     ac_prev=datadir ;;
381   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
382   | --da=*)
383     datadir=$ac_optarg ;;
384
385   -disable-* | --disable-*)
386     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
387     # Reject names that are not valid shell variable names.
388     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
389       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
390    { (exit 1); exit 1; }; }
391     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
392     eval "enable_$ac_feature=no" ;;
393
394   -enable-* | --enable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     case $ac_option in
402       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
403       *) ac_optarg=yes ;;
404     esac
405     eval "enable_$ac_feature='$ac_optarg'" ;;
406
407   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
408   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
409   | --exec | --exe | --ex)
410     ac_prev=exec_prefix ;;
411   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
412   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
413   | --exec=* | --exe=* | --ex=*)
414     exec_prefix=$ac_optarg ;;
415
416   -gas | --gas | --ga | --g)
417     # Obsolete; use --with-gas.
418     with_gas=yes ;;
419
420   -help | --help | --hel | --he | -h)
421     ac_init_help=long ;;
422   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
423     ac_init_help=recursive ;;
424   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
425     ac_init_help=short ;;
426
427   -host | --host | --hos | --ho)
428     ac_prev=host_alias ;;
429   -host=* | --host=* | --hos=* | --ho=*)
430     host_alias=$ac_optarg ;;
431
432   -includedir | --includedir | --includedi | --included | --include \
433   | --includ | --inclu | --incl | --inc)
434     ac_prev=includedir ;;
435   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
436   | --includ=* | --inclu=* | --incl=* | --inc=*)
437     includedir=$ac_optarg ;;
438
439   -docdir | --docdir | --infodi | --infod | --doc | --inf)
440     ac_prev=docdir ;;
441   -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
442     docdir=$ac_optarg ;;
443
444   -libdir | --libdir | --libdi | --libd)
445     ac_prev=libdir ;;
446   -libdir=* | --libdir=* | --libdi=* | --libd=*)
447     libdir=$ac_optarg ;;
448
449   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
450   | --libexe | --libex | --libe)
451     ac_prev=libexecdir ;;
452   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
453   | --libexe=* | --libex=* | --libe=*)
454     libexecdir=$ac_optarg ;;
455
456   -localstatedir | --localstatedir | --localstatedi | --localstated \
457   | --localstate | --localstat | --localsta | --localst \
458   | --locals | --local | --loca | --loc | --lo)
459     ac_prev=localstatedir ;;
460   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
461   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
462   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
463     localstatedir=$ac_optarg ;;
464
465   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
466     ac_prev=mandir ;;
467   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
468     mandir=$ac_optarg ;;
469
470   -nfp | --nfp | --nf)
471     # Obsolete; use --without-fp.
472     with_fp=no ;;
473
474   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475   | --no-cr | --no-c | -n)
476     no_create=yes ;;
477
478   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
480     no_recursion=yes ;;
481
482   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
483   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
484   | --oldin | --oldi | --old | --ol | --o)
485     ac_prev=oldincludedir ;;
486   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
487   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
488   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
489     oldincludedir=$ac_optarg ;;
490
491   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
492     ac_prev=prefix ;;
493   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
494     prefix=$ac_optarg ;;
495
496   -program-prefix | --program-prefix | --program-prefi | --program-pref \
497   | --program-pre | --program-pr | --program-p)
498     ac_prev=program_prefix ;;
499   -program-prefix=* | --program-prefix=* | --program-prefi=* \
500   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
501     program_prefix=$ac_optarg ;;
502
503   -program-suffix | --program-suffix | --program-suffi | --program-suff \
504   | --program-suf | --program-su | --program-s)
505     ac_prev=program_suffix ;;
506   -program-suffix=* | --program-suffix=* | --program-suffi=* \
507   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
508     program_suffix=$ac_optarg ;;
509
510   -program-transform-name | --program-transform-name \
511   | --program-transform-nam | --program-transform-na \
512   | --program-transform-n | --program-transform- \
513   | --program-transform | --program-transfor \
514   | --program-transfo | --program-transf \
515   | --program-trans | --program-tran \
516   | --progr-tra | --program-tr | --program-t)
517     ac_prev=program_transform_name ;;
518   -program-transform-name=* | --program-transform-name=* \
519   | --program-transform-nam=* | --program-transform-na=* \
520   | --program-transform-n=* | --program-transform-=* \
521   | --program-transform=* | --program-transfor=* \
522   | --program-transfo=* | --program-transf=* \
523   | --program-trans=* | --program-tran=* \
524   | --progr-tra=* | --program-tr=* | --program-t=*)
525     program_transform_name=$ac_optarg ;;
526
527   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
528   | -silent | --silent | --silen | --sile | --sil)
529     silent=yes ;;
530
531   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
532     ac_prev=sbindir ;;
533   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
534   | --sbi=* | --sb=*)
535     sbindir=$ac_optarg ;;
536
537   -sharedstatedir | --sharedstatedir | --sharedstatedi \
538   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
539   | --sharedst | --shareds | --shared | --share | --shar \
540   | --sha | --sh)
541     ac_prev=sharedstatedir ;;
542   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
543   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
544   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
545   | --sha=* | --sh=*)
546     sharedstatedir=$ac_optarg ;;
547
548   -site | --site | --sit)
549     ac_prev=site ;;
550   -site=* | --site=* | --sit=*)
551     site=$ac_optarg ;;
552
553   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
554     ac_prev=srcdir ;;
555   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
556     srcdir=$ac_optarg ;;
557
558   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
559   | --syscon | --sysco | --sysc | --sys | --sy)
560     ac_prev=sysconfdir ;;
561   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
562   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
563     sysconfdir=$ac_optarg ;;
564
565   -target | --target | --targe | --targ | --tar | --ta | --t)
566     ac_prev=target_alias ;;
567   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
568     target_alias=$ac_optarg ;;
569
570   -v | -verbose | --verbose | --verbos | --verbo | --verb)
571     verbose=yes ;;
572
573   -version | --version | --versio | --versi | --vers | -V)
574     ac_init_version=: ;;
575
576   -with-* | --with-*)
577     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
578     # Reject names that are not valid shell variable names.
579     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
580       { echo "$as_me: error: invalid package name: $ac_package" >&2
581    { (exit 1); exit 1; }; }
582     ac_package=`echo $ac_package| sed 's/-/_/g'`
583     case $ac_option in
584       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
585       *) ac_optarg=yes ;;
586     esac
587     eval "with_$ac_package='$ac_optarg'" ;;
588
589   -without-* | --without-*)
590     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
591     # Reject names that are not valid shell variable names.
592     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593       { echo "$as_me: error: invalid package name: $ac_package" >&2
594    { (exit 1); exit 1; }; }
595     ac_package=`echo $ac_package | sed 's/-/_/g'`
596     eval "with_$ac_package=no" ;;
597
598   --x)
599     # Obsolete; use --with-x.
600     with_x=yes ;;
601
602   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
603   | --x-incl | --x-inc | --x-in | --x-i)
604     ac_prev=x_includes ;;
605   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
606   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
607     x_includes=$ac_optarg ;;
608
609   -x-libraries | --x-libraries | --x-librarie | --x-librari \
610   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
611     ac_prev=x_libraries ;;
612   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
613   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
614     x_libraries=$ac_optarg ;;
615
616   -*) { echo "$as_me: error: unrecognized option: $ac_option
617 Try \`$0 --help' for more information." >&2
618    { (exit 1); exit 1; }; }
619     ;;
620
621   *=*)
622     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
623     # Reject names that are not valid shell variable names.
624     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
625       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
626    { (exit 1); exit 1; }; }
627     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
628     eval "$ac_envvar='$ac_optarg'"
629     export $ac_envvar ;;
630
631   *)
632     # FIXME: should be removed in autoconf 3.0.
633     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
634     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
635       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
636     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
637     ;;
638
639   esac
640 done
641
642 if test -n "$ac_prev"; then
643   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
644   { echo "$as_me: error: missing argument to $ac_option" >&2
645    { (exit 1); exit 1; }; }
646 fi
647
648 # Be sure to have absolute paths.
649 for ac_var in exec_prefix prefix
650 do
651   eval ac_val=$`echo $ac_var`
652   case $ac_val in
653     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
654     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
655    { (exit 1); exit 1; }; };;
656   esac
657 done
658
659 # Be sure to have absolute paths.
660 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
661               localstatedir libdir includedir oldincludedir docdir mandir
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # There might be people who depend on the old broken behavior: `$host'
672 # used to hold the argument of --host etc.
673 # FIXME: To remove some day.
674 build=$build_alias
675 host=$host_alias
676 target=$target_alias
677
678 # FIXME: To remove some day.
679 if test "x$host_alias" != x; then
680   if test "x$build_alias" = x; then
681     cross_compiling=maybe
682     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
683     If a cross compiler is detected then cross compile mode will be used." >&2
684   elif test "x$build_alias" != "x$host_alias"; then
685     cross_compiling=yes
686   fi
687 fi
688
689 ac_tool_prefix=
690 test -n "$host_alias" && ac_tool_prefix=$host_alias-
691
692 test "$silent" = yes && exec 6>/dev/null
693
694
695 # Find the source files, if location was not specified.
696 if test -z "$srcdir"; then
697   ac_srcdir_defaulted=yes
698   # Try the directory containing this script, then its parent.
699   ac_confdir=`(dirname "$0") 2>/dev/null ||
700 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
701          X"$0" : 'X\(//\)[^/]' \| \
702          X"$0" : 'X\(//\)$' \| \
703          X"$0" : 'X\(/\)' \| \
704          .     : '\(.\)' 2>/dev/null ||
705 echo X"$0" |
706     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
707           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
708           /^X\(\/\/\)$/{ s//\1/; q; }
709           /^X\(\/\).*/{ s//\1/; q; }
710           s/.*/./; q'`
711   srcdir=$ac_confdir
712   if test ! -r $srcdir/$ac_unique_file; then
713     srcdir=..
714   fi
715 else
716   ac_srcdir_defaulted=no
717 fi
718 if test ! -r $srcdir/$ac_unique_file; then
719   if test "$ac_srcdir_defaulted" = yes; then
720     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
721    { (exit 1); exit 1; }; }
722   else
723     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
724    { (exit 1); exit 1; }; }
725   fi
726 fi
727 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
728 ac_env_build_alias_set=${build_alias+set}
729 ac_env_build_alias_value=$build_alias
730 ac_cv_env_build_alias_set=${build_alias+set}
731 ac_cv_env_build_alias_value=$build_alias
732 ac_env_host_alias_set=${host_alias+set}
733 ac_env_host_alias_value=$host_alias
734 ac_cv_env_host_alias_set=${host_alias+set}
735 ac_cv_env_host_alias_value=$host_alias
736 ac_env_target_alias_set=${target_alias+set}
737 ac_env_target_alias_value=$target_alias
738 ac_cv_env_target_alias_set=${target_alias+set}
739 ac_cv_env_target_alias_value=$target_alias
740 ac_env_CC_set=${CC+set}
741 ac_env_CC_value=$CC
742 ac_cv_env_CC_set=${CC+set}
743 ac_cv_env_CC_value=$CC
744 ac_env_CFLAGS_set=${CFLAGS+set}
745 ac_env_CFLAGS_value=$CFLAGS
746 ac_cv_env_CFLAGS_set=${CFLAGS+set}
747 ac_cv_env_CFLAGS_value=$CFLAGS
748 ac_env_LDFLAGS_set=${LDFLAGS+set}
749 ac_env_LDFLAGS_value=$LDFLAGS
750 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
751 ac_cv_env_LDFLAGS_value=$LDFLAGS
752 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
753 ac_env_CPPFLAGS_value=$CPPFLAGS
754 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
755 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
756 ac_env_CPP_set=${CPP+set}
757 ac_env_CPP_value=$CPP
758 ac_cv_env_CPP_set=${CPP+set}
759 ac_cv_env_CPP_value=$CPP
760 ac_env_CXX_set=${CXX+set}
761 ac_env_CXX_value=$CXX
762 ac_cv_env_CXX_set=${CXX+set}
763 ac_cv_env_CXX_value=$CXX
764 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
765 ac_env_CXXFLAGS_value=$CXXFLAGS
766 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
767 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
768 ac_env_CXXCPP_set=${CXXCPP+set}
769 ac_env_CXXCPP_value=$CXXCPP
770 ac_cv_env_CXXCPP_set=${CXXCPP+set}
771 ac_cv_env_CXXCPP_value=$CXXCPP
772 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
773 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
774 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
775 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
776
777 #
778 # Report the --help message.
779 #
780 if test "$ac_init_help" = "long"; then
781   # Omit some internal or obsolete options to make the list less imposing.
782   # This message is too long to be a string in the A/UX 3.1 sh.
783   cat <<_ACEOF
784 \`configure' configures PostgreSQL 7.3devel to adapt to many kinds of systems.
785
786 Usage: $0 [OPTION]... [VAR=VALUE]...
787
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE.  See below for descriptions of some of the useful variables.
790
791 Defaults for the options are specified in brackets.
792
793 Configuration:
794   -h, --help              display this help and exit
795       --help=short        display options specific to this package
796       --help=recursive    display the short help of all the included packages
797   -V, --version           display version information and exit
798   -q, --quiet, --silent   do not print \`checking...' messages
799       --cache-file=FILE   cache test results in FILE [disabled]
800   -C, --config-cache      alias for \`--cache-file=config.cache'
801   -n, --no-create         do not create output files
802       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
803
804 _ACEOF
805
806   cat <<_ACEOF
807 Installation directories:
808   --prefix=PREFIX         install architecture-independent files in PREFIX
809                           [$ac_default_prefix]
810   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
811                           [PREFIX]
812
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
817
818 For better control, use the options below.
819
820 Fine tuning of the installation directories:
821   --bindir=DIR           user executables [EPREFIX/bin]
822   --sbindir=DIR          system admin executables [EPREFIX/sbin]
823   --libexecdir=DIR       program executables [EPREFIX/libexec]
824   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
825   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
826   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
827   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
828   --libdir=DIR           object code libraries [EPREFIX/lib]
829   --includedir=DIR       C header files [PREFIX/include]
830   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
831   --infodir=DIR          info documentation [PREFIX/info]
832   --mandir=DIR           man documentation [PREFIX/man]
833 _ACEOF
834
835   cat <<\_ACEOF
836
837 System types:
838   --build=BUILD     configure for building on BUILD [guessed]
839   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844   case $ac_init_help in
845      short | recursive ) echo "Configuration of PostgreSQL 7.3devel:";;
846    esac
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --enable-integer-datetimes  enable 64-bit integer date/time support
853   --enable-recode         enable character set recode support
854   --enable-nls[=LANGUAGES]  enable Native Language Support
855   --disable-shared        do not build shared libraries
856   --disable-rpath         do not embed shared library search path in executables
857   --enable-debug          build with debugging symbols (-g)
858   --enable-depend         turn on automatic dependency tracking
859   --enable-cassert        enable assertion checks (for debugging)
860   --enable-odbc           build the ODBC driver package
861
862 Optional Packages:
863   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
864   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
865
866   --with-includes=DIRS    look for additional header files in DIRS
867   --with-libraries=DIRS   look for additional libraries in DIRS
868   --with-libs=DIRS        alternative spelling of --with-libraries
869   --with-pgport=PORTNUM   change default port number 5432
870   --with-maxbackends=N    set default maximum number of connections 32
871   --with-tcl              build Tcl and Tk interfaces
872   --without-tk            do not build Tk interfaces if Tcl is enabled
873   --with-tclconfig=DIR    tclConfig.sh and tkConfig.sh are in DIR
874   --with-tkconfig=DIR     tkConfig.sh is in DIR
875   --with-perl             build Perl interface and PL/Perl
876   --with-python           build Python interface module
877   --with-java             build JDBC interface and Java tools
878   --with-krb4[=DIR]       build with Kerberos 4 support [/usr/athena]
879   --with-krb5[=DIR]       build with Kerberos 5 support [/usr/athena]
880   --with-krb-srvnam=NAME  name of the service principal in Kerberos postgres
881   --with-pam              build with PAM support
882   --with-openssl[=DIR]    build with OpenSSL support [/usr/local/ssl]
883   --without-readline      do not use Readline
884   --without-zlib          do not use Zlib
885   --with-unixodbc         build ODBC driver for unixODBC
886   --with-iodbc            build ODBC driver for iODBC
887   --with-odbcinst=DIR     default directory for odbcinst.ini sysconfdir
888   --with-CXX              build C++ modules (libpq++)
889   --with-gnu-ld           assume the C compiler uses GNU ld default=no
890
891 Some influential environment variables:
892   CC          C compiler command
893   CFLAGS      C compiler flags
894   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
895               nonstandard directory <lib dir>
896   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
897               headers in a nonstandard directory <include dir>
898   CPP         C preprocessor
899   CXX         C++ compiler command
900   CXXFLAGS    C++ compiler flags
901   CXXCPP      C++ preprocessor
902   DOCBOOKSTYLE
903               location of DocBook stylesheets
904
905 Use these variables to override the choices made by `configure' or to help
906 it to find libraries and programs with nonstandard names/locations.
907
908 Report bugs to <pgsql-bugs@postgresql.org>.
909 _ACEOF
910 fi
911
912 if test "$ac_init_help" = "recursive"; then
913   # If there are subdirs, report their specific --help.
914   ac_popdir=`pwd`
915   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
916     test -d $ac_dir || continue
917     ac_builddir=.
918
919 if test "$ac_dir" != .; then
920   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
921   # A "../" for each directory in $ac_dir_suffix.
922   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
923 else
924   ac_dir_suffix= ac_top_builddir=
925 fi
926
927 case $srcdir in
928   .)  # No --srcdir option.  We are building in place.
929     ac_srcdir=.
930     if test -z "$ac_top_builddir"; then
931        ac_top_srcdir=.
932     else
933        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
934     fi ;;
935   [\\/]* | ?:[\\/]* )  # Absolute path.
936     ac_srcdir=$srcdir$ac_dir_suffix;
937     ac_top_srcdir=$srcdir ;;
938   *) # Relative path.
939     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
940     ac_top_srcdir=$ac_top_builddir$srcdir ;;
941 esac
942 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
943 # absolute.
944 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
945 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
946 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
947 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
948
949     cd $ac_dir
950     # Check for guested configure; otherwise get Cygnus style configure.
951     if test -f $ac_srcdir/configure.gnu; then
952       echo
953       $SHELL $ac_srcdir/configure.gnu  --help=recursive
954     elif test -f $ac_srcdir/configure; then
955       echo
956       $SHELL $ac_srcdir/configure  --help=recursive
957     elif test -f $ac_srcdir/configure.ac ||
958            test -f $ac_srcdir/configure.in; then
959       echo
960       $ac_configure --help
961     else
962       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
963     fi
964     cd $ac_popdir
965   done
966 fi
967
968 test -n "$ac_init_help" && exit 0
969 if $ac_init_version; then
970   cat <<\_ACEOF
971 PostgreSQL configure 7.3devel
972 generated by GNU Autoconf 2.53
973
974 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
975 Free Software Foundation, Inc.
976 This configure script is free software; the Free Software Foundation
977 gives unlimited permission to copy, distribute and modify it.
978
979 Copyright 2002 PostgreSQL Global Development Group
980 _ACEOF
981   exit 0
982 fi
983 exec 5>config.log
984 cat >&5 <<_ACEOF
985 This file contains any messages produced by compilers while
986 running configure, to aid debugging if configure makes a mistake.
987
988 It was created by PostgreSQL $as_me 7.3devel, which was
989 generated by GNU Autoconf 2.53.  Invocation command line was
990
991   $ $0 $@
992
993 _ACEOF
994 {
995 cat <<_ASUNAME
996 ## --------- ##
997 ## Platform. ##
998 ## --------- ##
999
1000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1005
1006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1007 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1008
1009 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1010 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1012 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1013 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1014 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1015 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1016
1017 _ASUNAME
1018
1019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1020 for as_dir in $PATH
1021 do
1022   IFS=$as_save_IFS
1023   test -z "$as_dir" && as_dir=.
1024   echo "PATH: $as_dir"
1025 done
1026
1027 } >&5
1028
1029 cat >&5 <<_ACEOF
1030
1031
1032 ## ----------- ##
1033 ## Core tests. ##
1034 ## ----------- ##
1035
1036 _ACEOF
1037
1038
1039 # Keep a trace of the command line.
1040 # Strip out --no-create and --no-recursion so they do not pile up.
1041 # Also quote any args containing shell meta-characters.
1042 ac_configure_args=
1043 ac_sep=
1044 for ac_arg
1045 do
1046   case $ac_arg in
1047   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1048   | --no-cr | --no-c | -n ) continue ;;
1049   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1050   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1051     continue ;;
1052   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1054   esac
1055   case " $ac_configure_args " in
1056     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1057     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1058        ac_sep=" " ;;
1059   esac
1060   # Get rid of the leading space.
1061 done
1062
1063 # When interrupted or exit'd, cleanup temporary files, and complete
1064 # config.log.  We remove comments because anyway the quotes in there
1065 # would cause problems or look ugly.
1066 # WARNING: Be sure not to use single quotes in there, as some shells,
1067 # such as our DU 5.0 friend, will then `close' the trap.
1068 trap 'exit_status=$?
1069   # Save into config.log some information that might help in debugging.
1070   {
1071     echo
1072     cat <<\_ASBOX
1073 ## ---------------- ##
1074 ## Cache variables. ##
1075 ## ---------------- ##
1076 _ASBOX
1077     echo
1078     # The following way of writing the cache mishandles newlines in values,
1079 {
1080   (set) 2>&1 |
1081     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1082     *ac_space=\ *)
1083       sed -n \
1084         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1085           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1086       ;;
1087     *)
1088       sed -n \
1089         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1090       ;;
1091     esac;
1092 }
1093     echo
1094     if test -s confdefs.h; then
1095       cat <<\_ASBOX
1096 ## ----------- ##
1097 ## confdefs.h. ##
1098 ## ----------- ##
1099 _ASBOX
1100       echo
1101       sed "/^$/d" confdefs.h
1102       echo
1103     fi
1104     test "$ac_signal" != 0 &&
1105       echo "$as_me: caught signal $ac_signal"
1106     echo "$as_me: exit $exit_status"
1107   } >&5
1108   rm -f core core.* *.core &&
1109   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1110     exit $exit_status
1111      ' 0
1112 for ac_signal in 1 2 13 15; do
1113   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1114 done
1115 ac_signal=0
1116
1117 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1118 rm -rf conftest* confdefs.h
1119 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1120 echo >confdefs.h
1121
1122 # Predefined preprocessor variables.
1123
1124 cat >>confdefs.h <<_ACEOF
1125 #define PACKAGE_NAME "$PACKAGE_NAME"
1126 _ACEOF
1127
1128
1129 cat >>confdefs.h <<_ACEOF
1130 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1131 _ACEOF
1132
1133
1134 cat >>confdefs.h <<_ACEOF
1135 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1136 _ACEOF
1137
1138
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_STRING "$PACKAGE_STRING"
1141 _ACEOF
1142
1143
1144 cat >>confdefs.h <<_ACEOF
1145 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1146 _ACEOF
1147
1148
1149 # Let the site file select an alternate cache file if it wants to.
1150 # Prefer explicitly selected file to automatically selected ones.
1151 if test -z "$CONFIG_SITE"; then
1152   if test "x$prefix" != xNONE; then
1153     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1154   else
1155     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1156   fi
1157 fi
1158 for ac_site_file in $CONFIG_SITE; do
1159   if test -r "$ac_site_file"; then
1160     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1161 echo "$as_me: loading site script $ac_site_file" >&6;}
1162     sed 's/^/| /' "$ac_site_file" >&5
1163     . "$ac_site_file"
1164   fi
1165 done
1166
1167 if test -r "$cache_file"; then
1168   # Some versions of bash will fail to source /dev/null (special
1169   # files actually), so we avoid doing that.
1170   if test -f "$cache_file"; then
1171     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1172 echo "$as_me: loading cache $cache_file" >&6;}
1173     case $cache_file in
1174       [\\/]* | ?:[\\/]* ) . $cache_file;;
1175       *)                      . ./$cache_file;;
1176     esac
1177   fi
1178 else
1179   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1180 echo "$as_me: creating cache $cache_file" >&6;}
1181   >$cache_file
1182 fi
1183
1184 # Check that the precious variables saved in the cache have kept the same
1185 # value.
1186 ac_cache_corrupted=false
1187 for ac_var in `(set) 2>&1 |
1188                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1189   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1190   eval ac_new_set=\$ac_env_${ac_var}_set
1191   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1192   eval ac_new_val="\$ac_env_${ac_var}_value"
1193   case $ac_old_set,$ac_new_set in
1194     set,)
1195       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1196 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1197       ac_cache_corrupted=: ;;
1198     ,set)
1199       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1200 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1201       ac_cache_corrupted=: ;;
1202     ,);;
1203     *)
1204       if test "x$ac_old_val" != "x$ac_new_val"; then
1205         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1206 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1207         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1208 echo "$as_me:   former value:  $ac_old_val" >&2;}
1209         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1210 echo "$as_me:   current value: $ac_new_val" >&2;}
1211         ac_cache_corrupted=:
1212       fi;;
1213   esac
1214   # Pass precious variables to config.status.
1215   if test "$ac_new_set" = set; then
1216     case $ac_new_val in
1217     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1219     *) ac_arg=$ac_var=$ac_new_val ;;
1220     esac
1221     case " $ac_configure_args " in
1222       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1223       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1224     esac
1225   fi
1226 done
1227 if $ac_cache_corrupted; then
1228   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1229 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1230   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1231 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1232    { (exit 1); exit 1; }; }
1233 fi
1234
1235 ac_ext=c
1236 ac_cpp='$CPP $CPPFLAGS'
1237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273 ac_aux_dir=
1274 for ac_dir in config $srcdir/config; do
1275   if test -f $ac_dir/install-sh; then
1276     ac_aux_dir=$ac_dir
1277     ac_install_sh="$ac_aux_dir/install-sh -c"
1278     break
1279   elif test -f $ac_dir/install.sh; then
1280     ac_aux_dir=$ac_dir
1281     ac_install_sh="$ac_aux_dir/install.sh -c"
1282     break
1283   elif test -f $ac_dir/shtool; then
1284     ac_aux_dir=$ac_dir
1285     ac_install_sh="$ac_aux_dir/shtool install -c"
1286     break
1287   fi
1288 done
1289 if test -z "$ac_aux_dir"; then
1290   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1291 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1292    { (exit 1); exit 1; }; }
1293 fi
1294 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1295 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1296 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1297
1298
1299 configure_args=$ac_configure_args
1300
1301
1302
1303 cat >>confdefs.h <<_ACEOF
1304 #define PG_VERSION "$PACKAGE_VERSION"
1305 _ACEOF
1306
1307
1308 # Make sure we can run config.sub.
1309 $ac_config_sub sun4 >/dev/null 2>&1 ||
1310   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1311 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1312    { (exit 1); exit 1; }; }
1313
1314 echo "$as_me:$LINENO: checking build system type" >&5
1315 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1316 if test "${ac_cv_build+set}" = set; then
1317   echo $ECHO_N "(cached) $ECHO_C" >&6
1318 else
1319   ac_cv_build_alias=$build_alias
1320 test -z "$ac_cv_build_alias" &&
1321   ac_cv_build_alias=`$ac_config_guess`
1322 test -z "$ac_cv_build_alias" &&
1323   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1324 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1325    { (exit 1); exit 1; }; }
1326 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1327   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1328 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1329    { (exit 1); exit 1; }; }
1330
1331 fi
1332 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1333 echo "${ECHO_T}$ac_cv_build" >&6
1334 build=$ac_cv_build
1335 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1336 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1337 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1338
1339
1340 echo "$as_me:$LINENO: checking host system type" >&5
1341 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1342 if test "${ac_cv_host+set}" = set; then
1343   echo $ECHO_N "(cached) $ECHO_C" >&6
1344 else
1345   ac_cv_host_alias=$host_alias
1346 test -z "$ac_cv_host_alias" &&
1347   ac_cv_host_alias=$ac_cv_build_alias
1348 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1349   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1350 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1351    { (exit 1); exit 1; }; }
1352
1353 fi
1354 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1355 echo "${ECHO_T}$ac_cv_host" >&6
1356 host=$ac_cv_host
1357 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1358 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1359 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1360
1361
1362
1363 template=
1364 echo "$as_me:$LINENO: checking which template to use" >&5
1365 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1366
1367
1368
1369
1370 # Check whether --with-template or --without-template was given.
1371 if test "${with_template+set}" = set; then
1372   withval="$with_template"
1373
1374   case $withval in
1375     yes)
1376       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1377 echo "$as_me: error: argument required for --with-template option" >&2;}
1378    { (exit 1); exit 1; }; }
1379       ;;
1380     no)
1381       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1382 echo "$as_me: error: argument required for --with-template option" >&2;}
1383    { (exit 1); exit 1; }; }
1384       ;;
1385     *)
1386
1387   case $withval in
1388     list)   echo; ls "$srcdir/src/template"; exit;;
1389     *)      if test -f "$srcdir/src/template/$with_template" ; then
1390               template=$withval
1391             else
1392               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1393 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1394    { (exit 1); exit 1; }; }
1395             fi;;
1396   esac
1397
1398       ;;
1399   esac
1400
1401 else
1402
1403   # --with-template not given
1404
1405 case $host_os in
1406      aix*) template=aix ;;
1407     beos*) template=beos ;;
1408     bsdi*) template=bsdi ;;
1409   cygwin*) template=win ;;
1410   darwin*) template=darwin ;;
1411     dgux*) template=dgux ;;
1412  freebsd*) template=freebsd ;;
1413     hpux*) template=hpux ;;
1414     irix*) template=irix5 ;;
1415    linux*) template=linux ;;
1416   netbsd*) template=netbsd ;;
1417 nextstep*) template=nextstep ;;
1418  openbsd*) template=openbsd ;;
1419      osf*) template=osf ;;
1420      qnx*) template=qnx4 ;;
1421      sco*) template=sco ;;
1422  solaris*) template=solaris ;;
1423    sunos*) template=sunos4 ;;
1424  sysv4.2*)
1425         case $host_vendor in
1426           univel) template=univel ;;
1427         esac ;;
1428    sysv4*) template=svr4 ;;
1429    sysv5*) template=unixware ;;
1430   ultrix*) template=ultrix4 ;;
1431 esac
1432
1433   if test x"$template" = x"" ; then
1434     { { echo "$as_me:$LINENO: error:
1435 *******************************************************************
1436 PostgreSQL has apparently not been ported to your platform yet.
1437 To try a manual configuration, look into the src/template directory
1438 for a similar platform and use the '--with-template=' option.
1439
1440 Please also contact <pgsql-ports@postgresql.org> to see about
1441 rectifying this.  Include the above 'checking host system type...'
1442 line.
1443 *******************************************************************
1444 " >&5
1445 echo "$as_me: error:
1446 *******************************************************************
1447 PostgreSQL has apparently not been ported to your platform yet.
1448 To try a manual configuration, look into the src/template directory
1449 for a similar platform and use the '--with-template=' option.
1450
1451 Please also contact <pgsql-ports@postgresql.org> to see about
1452 rectifying this.  Include the above 'checking host system type...'
1453 line.
1454 *******************************************************************
1455 " >&2;}
1456    { (exit 1); exit 1; }; }
1457   fi
1458
1459
1460 fi;
1461
1462
1463 echo "$as_me:$LINENO: result: $template" >&5
1464 echo "${ECHO_T}$template" >&6
1465
1466 PORTNAME=$template
1467
1468
1469 # Pick right test-and-set (TAS) code.  Most platforms have inline
1470 # assembler code in src/include/storage/s_lock.h, so we just use
1471 # a dummy file here.
1472 case $host in
1473   *-*-hpux*)        need_tas=yes; tas_file=hpux.s ;;
1474   sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1475   i?86-*-solaris*)   need_tas=yes; tas_file=solaris_i386.s ;;
1476   *)                need_tas=no;  tas_file=dummy.s ;;
1477 esac
1478 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1479
1480
1481 if test "$need_tas" = yes ; then
1482   TAS=tas.o
1483 fi
1484
1485
1486
1487
1488 ##
1489 ## Command line options
1490 ##
1491
1492
1493 #
1494 # Add non-standard directories to the include path
1495 #
1496
1497
1498
1499 # Check whether --with-includes or --without-includes was given.
1500 if test "${with_includes+set}" = set; then
1501   withval="$with_includes"
1502
1503   case $withval in
1504     yes)
1505       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1506 echo "$as_me: error: argument required for --with-includes option" >&2;}
1507    { (exit 1); exit 1; }; }
1508       ;;
1509     no)
1510       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1511 echo "$as_me: error: argument required for --with-includes option" >&2;}
1512    { (exit 1); exit 1; }; }
1513       ;;
1514     *)
1515
1516       ;;
1517   esac
1518
1519 fi;
1520
1521
1522
1523 #
1524 # Add non-standard directories to the library search path
1525 #
1526
1527
1528
1529 # Check whether --with-libraries or --without-libraries was given.
1530 if test "${with_libraries+set}" = set; then
1531   withval="$with_libraries"
1532
1533   case $withval in
1534     yes)
1535       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1536 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1537    { (exit 1); exit 1; }; }
1538       ;;
1539     no)
1540       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1541 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1542    { (exit 1); exit 1; }; }
1543       ;;
1544     *)
1545       LIBRARY_DIRS=$withval
1546       ;;
1547   esac
1548
1549 fi;
1550
1551
1552
1553
1554
1555 # Check whether --with-libs or --without-libs was given.
1556 if test "${with_libs+set}" = set; then
1557   withval="$with_libs"
1558
1559   case $withval in
1560     yes)
1561       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1562 echo "$as_me: error: argument required for --with-libs option" >&2;}
1563    { (exit 1); exit 1; }; }
1564       ;;
1565     no)
1566       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1567 echo "$as_me: error: argument required for --with-libs option" >&2;}
1568    { (exit 1); exit 1; }; }
1569       ;;
1570     *)
1571       LIBRARY_DIRS=$withval
1572       ;;
1573   esac
1574
1575 fi;
1576
1577
1578
1579 #
1580 # 64-bit integer date/time storage (--enable-integer-datetimes)
1581 #
1582 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1583 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1584
1585
1586 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1587 if test "${enable_integer_datetimes+set}" = set; then
1588   enableval="$enable_integer_datetimes"
1589
1590   case $enableval in
1591     yes)
1592
1593 cat >>confdefs.h <<\_ACEOF
1594 #define USE_INTEGER_DATETIMES 1
1595 _ACEOF
1596
1597       ;;
1598     no)
1599       :
1600       ;;
1601     *)
1602       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1603 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1604    { (exit 1); exit 1; }; }
1605       ;;
1606   esac
1607
1608 else
1609   enable_integer_datetimes=no
1610
1611 fi;
1612
1613 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1614 echo "${ECHO_T}$enable_integer_datetimes" >&6
1615
1616
1617 # Character set recode (--enable-recode)
1618 #
1619 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1620 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1621
1622
1623 # Check whether --enable-recode or --disable-recode was given.
1624 if test "${enable_recode+set}" = set; then
1625   enableval="$enable_recode"
1626
1627   case $enableval in
1628     yes)
1629
1630 cat >>confdefs.h <<\_ACEOF
1631 #define CYR_RECODE 1
1632 _ACEOF
1633
1634       ;;
1635     no)
1636       :
1637       ;;
1638     *)
1639       { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1640 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1641    { (exit 1); exit 1; }; }
1642       ;;
1643   esac
1644
1645 else
1646   enable_recode=no
1647
1648 fi;
1649
1650 echo "$as_me:$LINENO: result: $enable_recode" >&5
1651 echo "${ECHO_T}$enable_recode" >&6
1652
1653
1654 #
1655 # Multibyte support
1656 #
1657 MULTIBYTE=SQL_ASCII
1658
1659 cat >>confdefs.h <<\_ACEOF
1660 #define MULTIBYTE 1
1661 _ACEOF
1662
1663
1664
1665 #
1666 # NLS
1667 #
1668 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1669 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1670
1671
1672 # Check whether --enable-nls or --disable-nls was given.
1673 if test "${enable_nls+set}" = set; then
1674   enableval="$enable_nls"
1675
1676   case $enableval in
1677     yes)
1678       :
1679       ;;
1680     no)
1681       :
1682       ;;
1683     *)
1684       enable_nls=yes
1685 WANTED_LANGUAGES=$enableval
1686       ;;
1687   esac
1688
1689 else
1690   enable_nls=no
1691 fi;
1692
1693
1694 if test "$enable_nls" = yes; then
1695
1696 cat >>confdefs.h <<\_ACEOF
1697 #define ENABLE_NLS 1
1698 _ACEOF
1699
1700 fi
1701
1702 echo "$as_me:$LINENO: result: $enable_nls" >&5
1703 echo "${ECHO_T}$enable_nls" >&6
1704
1705
1706
1707 #
1708 # Default port number (--with-pgport), default 5432
1709 #
1710 echo "$as_me:$LINENO: checking for default port number" >&5
1711 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1712
1713
1714
1715 # Check whether --with-pgport or --without-pgport was given.
1716 if test "${with_pgport+set}" = set; then
1717   withval="$with_pgport"
1718
1719   case $withval in
1720     yes)
1721       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1722 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1723    { (exit 1); exit 1; }; }
1724       ;;
1725     no)
1726       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1727 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1728    { (exit 1); exit 1; }; }
1729       ;;
1730     *)
1731       default_port=$withval
1732       ;;
1733   esac
1734
1735 else
1736   default_port=5432
1737 fi;
1738
1739 echo "$as_me:$LINENO: result: $default_port" >&5
1740 echo "${ECHO_T}$default_port" >&6
1741 # Need both of these because some places want an integer and some a string
1742
1743 cat >>confdefs.h <<_ACEOF
1744 #define DEF_PGPORT ${default_port}
1745 _ACEOF
1746
1747
1748 cat >>confdefs.h <<_ACEOF
1749 #define DEF_PGPORT_STR "${default_port}"
1750 _ACEOF
1751
1752
1753
1754 #
1755 # Maximum number of allowed connections (--with-maxbackends), default 32
1756 #
1757 echo "$as_me:$LINENO: checking for default soft limit on number of connections" >&5
1758 echo $ECHO_N "checking for default soft limit on number of connections... $ECHO_C" >&6
1759
1760
1761
1762 # Check whether --with-maxbackends or --without-maxbackends was given.
1763 if test "${with_maxbackends+set}" = set; then
1764   withval="$with_maxbackends"
1765
1766   case $withval in
1767     yes)
1768       { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1769 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1770    { (exit 1); exit 1; }; }
1771       ;;
1772     no)
1773       { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1774 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1775    { (exit 1); exit 1; }; }
1776       ;;
1777     *)
1778
1779       ;;
1780   esac
1781
1782 else
1783   with_maxbackends=32
1784 fi;
1785
1786 echo "$as_me:$LINENO: result: $with_maxbackends" >&5
1787 echo "${ECHO_T}$with_maxbackends" >&6
1788
1789 cat >>confdefs.h <<_ACEOF
1790 #define DEF_MAXBACKENDS $with_maxbackends
1791 _ACEOF
1792
1793
1794
1795 #
1796 # Option to disable shared libraries
1797 #
1798
1799
1800 # Check whether --enable-shared or --disable-shared was given.
1801 if test "${enable_shared+set}" = set; then
1802   enableval="$enable_shared"
1803
1804   case $enableval in
1805     yes)
1806       :
1807       ;;
1808     no)
1809       :
1810       ;;
1811     *)
1812       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1813 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1814    { (exit 1); exit 1; }; }
1815       ;;
1816   esac
1817
1818 else
1819   enable_shared=yes
1820
1821 fi;
1822
1823
1824
1825 #
1826 # '-rpath'-like feature can be disabled
1827 #
1828
1829
1830 # Check whether --enable-rpath or --disable-rpath was given.
1831 if test "${enable_rpath+set}" = set; then
1832   enableval="$enable_rpath"
1833
1834   case $enableval in
1835     yes)
1836       :
1837       ;;
1838     no)
1839       :
1840       ;;
1841     *)
1842       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1843 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1844    { (exit 1); exit 1; }; }
1845       ;;
1846   esac
1847
1848 else
1849   enable_rpath=yes
1850
1851 fi;
1852
1853
1854
1855
1856 #
1857 # --enable-debug adds -g to compiler flags
1858 #
1859
1860
1861 # Check whether --enable-debug or --disable-debug was given.
1862 if test "${enable_debug+set}" = set; then
1863   enableval="$enable_debug"
1864
1865   case $enableval in
1866     yes)
1867       :
1868       ;;
1869     no)
1870       :
1871       ;;
1872     *)
1873       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1874 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1875    { (exit 1); exit 1; }; }
1876       ;;
1877   esac
1878
1879 else
1880   enable_debug=no
1881
1882 fi;
1883
1884
1885
1886 #
1887 # C compiler
1888 #
1889
1890 # For historical reasons you can also use --with-CC to specify the C compiler
1891 # to use, although the standard way to do this is to set the CC environment
1892 # variable.
1893
1894
1895
1896 # Check whether --with-CC or --without-CC was given.
1897 if test "${with_CC+set}" = set; then
1898   withval="$with_CC"
1899
1900   case $withval in
1901     yes)
1902       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1903 echo "$as_me: error: argument required for --with-CC option" >&2;}
1904    { (exit 1); exit 1; }; }
1905       ;;
1906     no)
1907       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1908 echo "$as_me: error: argument required for --with-CC option" >&2;}
1909    { (exit 1); exit 1; }; }
1910       ;;
1911     *)
1912       CC=$with_CC
1913       ;;
1914   esac
1915
1916 fi;
1917
1918
1919 # Set here so it can be over-ridden in the template file
1920 GCC_CXXFLAGS="-O2"
1921 VENDOR_CXXFLAGS=""
1922
1923 case $template in
1924   aix) pgac_cc_list="gcc xlc";;
1925  irix) pgac_cc_list="cc";; # no gcc
1926     *) pgac_cc_list="gcc cc";;
1927 esac
1928
1929 ac_ext=c
1930 ac_cpp='$CPP $CPPFLAGS'
1931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934 if test -n "$ac_tool_prefix"; then
1935   for ac_prog in $pgac_cc_list
1936   do
1937     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1939 echo "$as_me:$LINENO: checking for $ac_word" >&5
1940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1941 if test "${ac_cv_prog_CC+set}" = set; then
1942   echo $ECHO_N "(cached) $ECHO_C" >&6
1943 else
1944   if test -n "$CC"; then
1945   ac_cv_prog_CC="$CC" # Let the user override the test.
1946 else
1947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948 for as_dir in $PATH
1949 do
1950   IFS=$as_save_IFS
1951   test -z "$as_dir" && as_dir=.
1952   for ac_exec_ext in '' $ac_executable_extensions; do
1953   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1954     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1956     break 2
1957   fi
1958 done
1959 done
1960
1961 fi
1962 fi
1963 CC=$ac_cv_prog_CC
1964 if test -n "$CC"; then
1965   echo "$as_me:$LINENO: result: $CC" >&5
1966 echo "${ECHO_T}$CC" >&6
1967 else
1968   echo "$as_me:$LINENO: result: no" >&5
1969 echo "${ECHO_T}no" >&6
1970 fi
1971
1972     test -n "$CC" && break
1973   done
1974 fi
1975 if test -z "$CC"; then
1976   ac_ct_CC=$CC
1977   for ac_prog in $pgac_cc_list
1978 do
1979   # Extract the first word of "$ac_prog", so it can be a program name with args.
1980 set dummy $ac_prog; ac_word=$2
1981 echo "$as_me:$LINENO: checking for $ac_word" >&5
1982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1983 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1984   echo $ECHO_N "(cached) $ECHO_C" >&6
1985 else
1986   if test -n "$ac_ct_CC"; then
1987   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1988 else
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 for as_dir in $PATH
1991 do
1992   IFS=$as_save_IFS
1993   test -z "$as_dir" && as_dir=.
1994   for ac_exec_ext in '' $ac_executable_extensions; do
1995   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1996     ac_cv_prog_ac_ct_CC="$ac_prog"
1997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998     break 2
1999   fi
2000 done
2001 done
2002
2003 fi
2004 fi
2005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2006 if test -n "$ac_ct_CC"; then
2007   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2008 echo "${ECHO_T}$ac_ct_CC" >&6
2009 else
2010   echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6
2012 fi
2013
2014   test -n "$ac_ct_CC" && break
2015 done
2016
2017   CC=$ac_ct_CC
2018 fi
2019
2020
2021 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2022 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2023    { (exit 1); exit 1; }; }
2024
2025 # Provide some information about the compiler.
2026 echo "$as_me:$LINENO:" \
2027      "checking for C compiler version" >&5
2028 ac_compiler=`set X $ac_compile; echo $2`
2029 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2030   (eval $ac_compiler --version </dev/null >&5) 2>&5
2031   ac_status=$?
2032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033   (exit $ac_status); }
2034 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2035   (eval $ac_compiler -v </dev/null >&5) 2>&5
2036   ac_status=$?
2037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038   (exit $ac_status); }
2039 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2040   (eval $ac_compiler -V </dev/null >&5) 2>&5
2041   ac_status=$?
2042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043   (exit $ac_status); }
2044
2045 cat >conftest.$ac_ext <<_ACEOF
2046 #line $LINENO "configure"
2047 #include "confdefs.h"
2048
2049 #ifdef F77_DUMMY_MAIN
2050 #  ifdef __cplusplus
2051      extern "C"
2052 #  endif
2053    int F77_DUMMY_MAIN() { return 1; }
2054 #endif
2055 int
2056 main ()
2057 {
2058
2059   ;
2060   return 0;
2061 }
2062 _ACEOF
2063 ac_clean_files_save=$ac_clean_files
2064 ac_clean_files="$ac_clean_files a.out a.exe"
2065 # Try to create an executable without -o first, disregard a.out.
2066 # It will help us diagnose broken compilers, and finding out an intuition
2067 # of exeext.
2068 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2069 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2070 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2071 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2072   (eval $ac_link_default) 2>&5
2073   ac_status=$?
2074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075   (exit $ac_status); }; then
2076   # Find the output, starting from the most likely.  This scheme is
2077 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2078 # resort.
2079
2080 # Be careful to initialize this variable, since it used to be cached.
2081 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2082 ac_cv_exeext=
2083 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2084                 ls a.out conftest 2>/dev/null;
2085                 ls a.* conftest.* 2>/dev/null`; do
2086   case $ac_file in
2087     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2088     a.out ) # We found the default executable, but exeext='' is most
2089             # certainly right.
2090             break;;
2091     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2092           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2093           export ac_cv_exeext
2094           break;;
2095     * ) break;;
2096   esac
2097 done
2098 else
2099   echo "$as_me: failed program was:" >&5
2100 cat conftest.$ac_ext >&5
2101 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2102 echo "$as_me: error: C compiler cannot create executables" >&2;}
2103    { (exit 77); exit 77; }; }
2104 fi
2105
2106 ac_exeext=$ac_cv_exeext
2107 echo "$as_me:$LINENO: result: $ac_file" >&5
2108 echo "${ECHO_T}$ac_file" >&6
2109
2110 # Check the compiler produces executables we can run.  If not, either
2111 # the compiler is broken, or we cross compile.
2112 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2113 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2114 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2115 # If not cross compiling, check that we can run a simple program.
2116 if test "$cross_compiling" != yes; then
2117   if { ac_try='./$ac_file'
2118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119   (eval $ac_try) 2>&5
2120   ac_status=$?
2121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122   (exit $ac_status); }; }; then
2123     cross_compiling=no
2124   else
2125     if test "$cross_compiling" = maybe; then
2126         cross_compiling=yes
2127     else
2128         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2129 If you meant to cross compile, use \`--host'." >&5
2130 echo "$as_me: error: cannot run C compiled programs.
2131 If you meant to cross compile, use \`--host'." >&2;}
2132    { (exit 1); exit 1; }; }
2133     fi
2134   fi
2135 fi
2136 echo "$as_me:$LINENO: result: yes" >&5
2137 echo "${ECHO_T}yes" >&6
2138
2139 rm -f a.out a.exe conftest$ac_cv_exeext
2140 ac_clean_files=$ac_clean_files_save
2141 # Check the compiler produces executables we can run.  If not, either
2142 # the compiler is broken, or we cross compile.
2143 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2144 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2145 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2146 echo "${ECHO_T}$cross_compiling" >&6
2147
2148 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2149 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2151   (eval $ac_link) 2>&5
2152   ac_status=$?
2153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154   (exit $ac_status); }; then
2155   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2156 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2157 # work properly (i.e., refer to `conftest.exe'), while it won't with
2158 # `rm'.
2159 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2160   case $ac_file in
2161     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2162     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2163           export ac_cv_exeext
2164           break;;
2165     * ) break;;
2166   esac
2167 done
2168 else
2169   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2170 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2171    { (exit 1); exit 1; }; }
2172 fi
2173
2174 rm -f conftest$ac_cv_exeext
2175 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2176 echo "${ECHO_T}$ac_cv_exeext" >&6
2177
2178 rm -f conftest.$ac_ext
2179 EXEEXT=$ac_cv_exeext
2180 ac_exeext=$EXEEXT
2181 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2182 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2183 if test "${ac_cv_objext+set}" = set; then
2184   echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186   cat >conftest.$ac_ext <<_ACEOF
2187 #line $LINENO "configure"
2188 #include "confdefs.h"
2189
2190 #ifdef F77_DUMMY_MAIN
2191 #  ifdef __cplusplus
2192      extern "C"
2193 #  endif
2194    int F77_DUMMY_MAIN() { return 1; }
2195 #endif
2196 int
2197 main ()
2198 {
2199
2200   ;
2201   return 0;
2202 }
2203 _ACEOF
2204 rm -f conftest.o conftest.obj
2205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2206   (eval $ac_compile) 2>&5
2207   ac_status=$?
2208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209   (exit $ac_status); }; then
2210   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2211   case $ac_file in
2212     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2213     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2214        break;;
2215   esac
2216 done
2217 else
2218   echo "$as_me: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2220 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2221 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2222    { (exit 1); exit 1; }; }
2223 fi
2224
2225 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2226 fi
2227 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2228 echo "${ECHO_T}$ac_cv_objext" >&6
2229 OBJEXT=$ac_cv_objext
2230 ac_objext=$OBJEXT
2231 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2232 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2233 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2234   echo $ECHO_N "(cached) $ECHO_C" >&6
2235 else
2236   cat >conftest.$ac_ext <<_ACEOF
2237 #line $LINENO "configure"
2238 #include "confdefs.h"
2239
2240 #ifdef F77_DUMMY_MAIN
2241 #  ifdef __cplusplus
2242      extern "C"
2243 #  endif
2244    int F77_DUMMY_MAIN() { return 1; }
2245 #endif
2246 int
2247 main ()
2248 {
2249 #ifndef __GNUC__
2250        choke me
2251 #endif
2252
2253   ;
2254   return 0;
2255 }
2256 _ACEOF
2257 rm -f conftest.$ac_objext
2258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259   (eval $ac_compile) 2>&5
2260   ac_status=$?
2261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262   (exit $ac_status); } &&
2263          { ac_try='test -s conftest.$ac_objext'
2264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265   (eval $ac_try) 2>&5
2266   ac_status=$?
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); }; }; then
2269   ac_compiler_gnu=yes
2270 else
2271   echo "$as_me: failed program was:" >&5
2272 cat conftest.$ac_ext >&5
2273 ac_compiler_gnu=no
2274 fi
2275 rm -f conftest.$ac_objext conftest.$ac_ext
2276 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2277
2278 fi
2279 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2280 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2281 GCC=`test $ac_compiler_gnu = yes && echo yes`
2282 ac_test_CFLAGS=${CFLAGS+set}
2283 ac_save_CFLAGS=$CFLAGS
2284 CFLAGS="-g"
2285 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2286 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2287 if test "${ac_cv_prog_cc_g+set}" = set; then
2288   echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290   cat >conftest.$ac_ext <<_ACEOF
2291 #line $LINENO "configure"
2292 #include "confdefs.h"
2293
2294 #ifdef F77_DUMMY_MAIN
2295 #  ifdef __cplusplus
2296      extern "C"
2297 #  endif
2298    int F77_DUMMY_MAIN() { return 1; }
2299 #endif
2300 int
2301 main ()
2302 {
2303
2304   ;
2305   return 0;
2306 }
2307 _ACEOF
2308 rm -f conftest.$ac_objext
2309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2310   (eval $ac_compile) 2>&5
2311   ac_status=$?
2312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313   (exit $ac_status); } &&
2314          { ac_try='test -s conftest.$ac_objext'
2315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316   (eval $ac_try) 2>&5
2317   ac_status=$?
2318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); }; }; then
2320   ac_cv_prog_cc_g=yes
2321 else
2322   echo "$as_me: failed program was:" >&5
2323 cat conftest.$ac_ext >&5
2324 ac_cv_prog_cc_g=no
2325 fi
2326 rm -f conftest.$ac_objext conftest.$ac_ext
2327 fi
2328 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2329 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2330 if test "$ac_test_CFLAGS" = set; then
2331   CFLAGS=$ac_save_CFLAGS
2332 elif test $ac_cv_prog_cc_g = yes; then
2333   if test "$GCC" = yes; then
2334     CFLAGS="-g -O2"
2335   else
2336     CFLAGS="-g"
2337   fi
2338 else
2339   if test "$GCC" = yes; then
2340     CFLAGS="-O2"
2341   else
2342     CFLAGS=
2343   fi
2344 fi
2345 # Some people use a C++ compiler to compile C.  Since we use `exit',
2346 # in C++ we need to declare it.  In case someone uses the same compiler
2347 # for both compiling C and C++ we need to have the C++ compiler decide
2348 # the declaration of exit, since it's the most demanding environment.
2349 cat >conftest.$ac_ext <<_ACEOF
2350 #ifndef __cplusplus
2351   choke me
2352 #endif
2353 _ACEOF
2354 rm -f conftest.$ac_objext
2355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2356   (eval $ac_compile) 2>&5
2357   ac_status=$?
2358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359   (exit $ac_status); } &&
2360          { ac_try='test -s conftest.$ac_objext'
2361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362   (eval $ac_try) 2>&5
2363   ac_status=$?
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); }; }; then
2366   for ac_declaration in \
2367    ''\
2368    '#include <stdlib.h>' \
2369    'extern "C" void std::exit (int) throw (); using std::exit;' \
2370    'extern "C" void std::exit (int); using std::exit;' \
2371    'extern "C" void exit (int) throw ();' \
2372    'extern "C" void exit (int);' \
2373    'void exit (int);'
2374 do
2375   cat >conftest.$ac_ext <<_ACEOF
2376 #line $LINENO "configure"
2377 #include "confdefs.h"
2378 #include <stdlib.h>
2379 $ac_declaration
2380 #ifdef F77_DUMMY_MAIN
2381 #  ifdef __cplusplus
2382      extern "C"
2383 #  endif
2384    int F77_DUMMY_MAIN() { return 1; }
2385 #endif
2386 int
2387 main ()
2388 {
2389 exit (42);
2390   ;
2391   return 0;
2392 }
2393 _ACEOF
2394 rm -f conftest.$ac_objext
2395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2396   (eval $ac_compile) 2>&5
2397   ac_status=$?
2398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399   (exit $ac_status); } &&
2400          { ac_try='test -s conftest.$ac_objext'
2401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402   (eval $ac_try) 2>&5
2403   ac_status=$?
2404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405   (exit $ac_status); }; }; then
2406   :
2407 else
2408   echo "$as_me: failed program was:" >&5
2409 cat conftest.$ac_ext >&5
2410 continue
2411 fi
2412 rm -f conftest.$ac_objext conftest.$ac_ext
2413   cat >conftest.$ac_ext <<_ACEOF
2414 #line $LINENO "configure"
2415 #include "confdefs.h"
2416 $ac_declaration
2417 #ifdef F77_DUMMY_MAIN
2418 #  ifdef __cplusplus
2419      extern "C"
2420 #  endif
2421    int F77_DUMMY_MAIN() { return 1; }
2422 #endif
2423 int
2424 main ()
2425 {
2426 exit (42);
2427   ;
2428   return 0;
2429 }
2430 _ACEOF
2431 rm -f conftest.$ac_objext
2432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2433   (eval $ac_compile) 2>&5
2434   ac_status=$?
2435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436   (exit $ac_status); } &&
2437          { ac_try='test -s conftest.$ac_objext'
2438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439   (eval $ac_try) 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }; }; then
2443   break
2444 else
2445   echo "$as_me: failed program was:" >&5
2446 cat conftest.$ac_ext >&5
2447 fi
2448 rm -f conftest.$ac_objext conftest.$ac_ext
2449 done
2450 rm -f conftest*
2451 if test -n "$ac_declaration"; then
2452   echo '#ifdef __cplusplus' >>confdefs.h
2453   echo $ac_declaration      >>confdefs.h
2454   echo '#endif'             >>confdefs.h
2455 fi
2456
2457 else
2458   echo "$as_me: failed program was:" >&5
2459 cat conftest.$ac_ext >&5
2460 fi
2461 rm -f conftest.$ac_objext conftest.$ac_ext
2462 ac_ext=c
2463 ac_cpp='$CPP $CPPFLAGS'
2464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2467
2468 # Read the template
2469 . "$srcdir/src/template/$template" || exit
2470
2471 if test "$ac_env_CFLAGS_set" = set; then
2472   CFLAGS=$ac_env_CFLAGS_value
2473 fi
2474 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2475   CFLAGS="$CFLAGS -g"
2476 fi
2477 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2478 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2479 # Check if the compiler still works with the template settings
2480 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2481 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2482
2483 cat >conftest.$ac_ext <<_ACEOF
2484 #line $LINENO "configure"
2485 #include "confdefs.h"
2486
2487 #ifdef F77_DUMMY_MAIN
2488 #  ifdef __cplusplus
2489      extern "C"
2490 #  endif
2491    int F77_DUMMY_MAIN() { return 1; }
2492 #endif
2493 int
2494 main ()
2495 {
2496 return 0;
2497   ;
2498   return 0;
2499 }
2500 _ACEOF
2501 rm -f conftest.$ac_objext conftest$ac_exeext
2502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2503   (eval $ac_link) 2>&5
2504   ac_status=$?
2505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506   (exit $ac_status); } &&
2507          { ac_try='test -s conftest$ac_exeext'
2508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509   (eval $ac_try) 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); }; }; then
2513   echo "$as_me:$LINENO: result: yes" >&5
2514 echo "${ECHO_T}yes" >&6
2515 else
2516   echo "$as_me: failed program was:" >&5
2517 cat conftest.$ac_ext >&5
2518 echo "$as_me:$LINENO: result: no" >&5
2519 echo "${ECHO_T}no" >&6
2520    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2521 echo "$as_me: error: cannot proceed" >&2;}
2522    { (exit 1); exit 1; }; }
2523 fi
2524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2525 ac_ext=c
2526 ac_cpp='$CPP $CPPFLAGS'
2527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2530 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2531 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2532 # On Suns, sometimes $CPP names a directory.
2533 if test -n "$CPP" && test -d "$CPP"; then
2534   CPP=
2535 fi
2536 if test -z "$CPP"; then
2537   if test "${ac_cv_prog_CPP+set}" = set; then
2538   echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540       # Double quotes because CPP needs to be expanded
2541     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2542     do
2543       ac_preproc_ok=false
2544 for ac_c_preproc_warn_flag in '' yes
2545 do
2546   # Use a header file that comes with gcc, so configuring glibc
2547   # with a fresh cross-compiler works.
2548   # On the NeXT, cc -E runs the code through the compiler's parser,
2549   # not just through cpp. "Syntax error" is here to catch this case.
2550   cat >conftest.$ac_ext <<_ACEOF
2551 #line $LINENO "configure"
2552 #include "confdefs.h"
2553 #include <assert.h>
2554                      Syntax error
2555 _ACEOF
2556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2557   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2558   ac_status=$?
2559   egrep -v '^ *\+' conftest.er1 >conftest.err
2560   rm -f conftest.er1
2561   cat conftest.err >&5
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); } >/dev/null; then
2564   if test -s conftest.err; then
2565     ac_cpp_err=$ac_c_preproc_warn_flag
2566   else
2567     ac_cpp_err=
2568   fi
2569 else
2570   ac_cpp_err=yes
2571 fi
2572 if test -z "$ac_cpp_err"; then
2573   :
2574 else
2575   echo "$as_me: failed program was:" >&5
2576   cat conftest.$ac_ext >&5
2577   # Broken: fails on valid input.
2578 continue
2579 fi
2580 rm -f conftest.err conftest.$ac_ext
2581
2582   # OK, works on sane cases.  Now check whether non-existent headers
2583   # can be detected and how.
2584   cat >conftest.$ac_ext <<_ACEOF
2585 #line $LINENO "configure"
2586 #include "confdefs.h"
2587 #include <ac_nonexistent.h>
2588 _ACEOF
2589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2590   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2591   ac_status=$?
2592   egrep -v '^ *\+' conftest.er1 >conftest.err
2593   rm -f conftest.er1
2594   cat conftest.err >&5
2595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596   (exit $ac_status); } >/dev/null; then
2597   if test -s conftest.err; then
2598     ac_cpp_err=$ac_c_preproc_warn_flag
2599   else
2600     ac_cpp_err=
2601   fi
2602 else
2603   ac_cpp_err=yes
2604 fi
2605 if test -z "$ac_cpp_err"; then
2606   # Broken: success on invalid input.
2607 continue
2608 else
2609   echo "$as_me: failed program was:" >&5
2610   cat conftest.$ac_ext >&5
2611   # Passes both tests.
2612 ac_preproc_ok=:
2613 break
2614 fi
2615 rm -f conftest.err conftest.$ac_ext
2616
2617 done
2618 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2619 rm -f conftest.err conftest.$ac_ext
2620 if $ac_preproc_ok; then
2621   break
2622 fi
2623
2624     done
2625     ac_cv_prog_CPP=$CPP
2626
2627 fi
2628   CPP=$ac_cv_prog_CPP
2629 else
2630   ac_cv_prog_CPP=$CPP
2631 fi
2632 echo "$as_me:$LINENO: result: $CPP" >&5
2633 echo "${ECHO_T}$CPP" >&6
2634 ac_preproc_ok=false
2635 for ac_c_preproc_warn_flag in '' yes
2636 do
2637   # Use a header file that comes with gcc, so configuring glibc
2638   # with a fresh cross-compiler works.
2639   # On the NeXT, cc -E runs the code through the compiler's parser,
2640   # not just through cpp. "Syntax error" is here to catch this case.
2641   cat >conftest.$ac_ext <<_ACEOF
2642 #line $LINENO "configure"
2643 #include "confdefs.h"
2644 #include <assert.h>
2645                      Syntax error
2646 _ACEOF
2647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2648   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2649   ac_status=$?
2650   egrep -v '^ *\+' conftest.er1 >conftest.err
2651   rm -f conftest.er1
2652   cat conftest.err >&5
2653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654   (exit $ac_status); } >/dev/null; then
2655   if test -s conftest.err; then
2656     ac_cpp_err=$ac_c_preproc_warn_flag
2657   else
2658     ac_cpp_err=
2659   fi
2660 else
2661   ac_cpp_err=yes
2662 fi
2663 if test -z "$ac_cpp_err"; then
2664   :
2665 else
2666   echo "$as_me: failed program was:" >&5
2667   cat conftest.$ac_ext >&5
2668   # Broken: fails on valid input.
2669 continue
2670 fi
2671 rm -f conftest.err conftest.$ac_ext
2672
2673   # OK, works on sane cases.  Now check whether non-existent headers
2674   # can be detected and how.
2675   cat >conftest.$ac_ext <<_ACEOF
2676 #line $LINENO "configure"
2677 #include "confdefs.h"
2678 #include <ac_nonexistent.h>
2679 _ACEOF
2680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2681   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2682   ac_status=$?
2683   egrep -v '^ *\+' conftest.er1 >conftest.err
2684   rm -f conftest.er1
2685   cat conftest.err >&5
2686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687   (exit $ac_status); } >/dev/null; then
2688   if test -s conftest.err; then
2689     ac_cpp_err=$ac_c_preproc_warn_flag
2690   else
2691     ac_cpp_err=
2692   fi
2693 else
2694   ac_cpp_err=yes
2695 fi
2696 if test -z "$ac_cpp_err"; then
2697   # Broken: success on invalid input.
2698 continue
2699 else
2700   echo "$as_me: failed program was:" >&5
2701   cat conftest.$ac_ext >&5
2702   # Passes both tests.
2703 ac_preproc_ok=:
2704 break
2705 fi
2706 rm -f conftest.err conftest.$ac_ext
2707
2708 done
2709 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2710 rm -f conftest.err conftest.$ac_ext
2711 if $ac_preproc_ok; then
2712   :
2713 else
2714   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2715 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2716    { (exit 1); exit 1; }; }
2717 fi
2718
2719 ac_ext=c
2720 ac_cpp='$CPP $CPPFLAGS'
2721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2724
2725
2726
2727 # Create compiler version string
2728 if test x"$GCC" = x"yes" ; then
2729   cc_string="GCC `${CC} --version | sed q`"
2730 else
2731   cc_string=$CC
2732 fi
2733
2734 cat >>confdefs.h <<_ACEOF
2735 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2736 _ACEOF
2737
2738
2739
2740 #
2741 # Automatic dependency tracking
2742 #
2743
2744
2745 # Check whether --enable-depend or --disable-depend was given.
2746 if test "${enable_depend+set}" = set; then
2747   enableval="$enable_depend"
2748
2749   case $enableval in
2750     yes)
2751       autodepend=yes
2752       ;;
2753     no)
2754       :
2755       ;;
2756     *)
2757       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2758 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2759    { (exit 1); exit 1; }; }
2760       ;;
2761   esac
2762
2763 else
2764   enable_depend=no
2765
2766 fi;
2767
2768
2769
2770
2771 #
2772 # Enable assert checks
2773 #
2774
2775
2776 # Check whether --enable-cassert or --disable-cassert was given.
2777 if test "${enable_cassert+set}" = set; then
2778   enableval="$enable_cassert"
2779
2780   case $enableval in
2781     yes)
2782
2783 cat >>confdefs.h <<\_ACEOF
2784 #define USE_ASSERT_CHECKING 1
2785 _ACEOF
2786
2787       ;;
2788     no)
2789       :
2790       ;;
2791     *)
2792       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2793 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2794    { (exit 1); exit 1; }; }
2795       ;;
2796   esac
2797
2798 else
2799   enable_cassert=no
2800
2801 fi;
2802
2803
2804
2805 #
2806 # Include directories
2807 #
2808 ac_save_IFS=$IFS
2809 IFS="${IFS}:"
2810 # SRCH_INC comes from the template file
2811 for dir in $with_includes $SRCH_INC; do
2812   if test -d "$dir"; then
2813     INCLUDES="$INCLUDES -I$dir"
2814   else
2815     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2816 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2817   fi
2818 done
2819 IFS=$ac_save_IFS
2820
2821
2822
2823 #
2824 # Library directories
2825 #
2826 ac_save_IFS=$IFS
2827 IFS="${IFS}:"
2828 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2829 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2830   if test -d "$dir"; then
2831     LIBDIRS="$LIBDIRS -L$dir"
2832   else
2833     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2834 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2835   fi
2836 done
2837 IFS=$ac_save_IFS
2838
2839
2840 #
2841 # Tcl/Tk
2842 #
2843 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2844 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2845
2846
2847
2848 # Check whether --with-tcl or --without-tcl was given.
2849 if test "${with_tcl+set}" = set; then
2850   withval="$with_tcl"
2851
2852   case $withval in
2853     yes)
2854       :
2855       ;;
2856     no)
2857       :
2858       ;;
2859     *)
2860       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2861 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2862    { (exit 1); exit 1; }; }
2863       ;;
2864   esac
2865
2866 else
2867   with_tcl=no
2868
2869 fi;
2870
2871 echo "$as_me:$LINENO: result: $with_tcl" >&5
2872 echo "${ECHO_T}$with_tcl" >&6
2873
2874
2875 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2876 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2877 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2878 if test "$with_tcl" = yes; then
2879
2880
2881
2882 # Check whether --with-tk or --without-tk was given.
2883 if test "${with_tk+set}" = set; then
2884   withval="$with_tk"
2885
2886   case $withval in
2887     yes)
2888       :
2889       ;;
2890     no)
2891       :
2892       ;;
2893     *)
2894       { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2895 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2896    { (exit 1); exit 1; }; }
2897       ;;
2898   esac
2899
2900 else
2901   with_tk=yes
2902
2903 fi;
2904
2905 else
2906   with_tk=no
2907 fi
2908 echo "$as_me:$LINENO: result: $with_tk" >&5
2909 echo "${ECHO_T}$with_tk" >&6
2910
2911
2912
2913 # We see if the path to the Tcl/Tk configuration scripts is specified.
2914 # This will override the use of tclsh to find the paths to search.
2915
2916
2917
2918
2919 # Check whether --with-tclconfig or --without-tclconfig was given.
2920 if test "${with_tclconfig+set}" = set; then
2921   withval="$with_tclconfig"
2922
2923   case $withval in
2924     yes)
2925       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2926 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2927    { (exit 1); exit 1; }; }
2928       ;;
2929     no)
2930       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2931 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2932    { (exit 1); exit 1; }; }
2933       ;;
2934     *)
2935
2936       ;;
2937   esac
2938
2939 fi;
2940
2941
2942 # We see if the path to the Tk configuration scripts is specified.
2943 # This will override the use of tclsh to find the paths to search.
2944
2945
2946
2947
2948 # Check whether --with-tkconfig or --without-tkconfig was given.
2949 if test "${with_tkconfig+set}" = set; then
2950   withval="$with_tkconfig"
2951
2952   case $withval in
2953     yes)
2954       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2955 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2956    { (exit 1); exit 1; }; }
2957       ;;
2958     no)
2959       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2960 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2961    { (exit 1); exit 1; }; }
2962       ;;
2963     *)
2964
2965       ;;
2966   esac
2967
2968 fi;
2969
2970
2971 #
2972 # Optionally build Perl modules (Pg.pm and PL/Perl)
2973 #
2974 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2975 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2976
2977
2978
2979 # Check whether --with-perl or --without-perl was given.
2980 if test "${with_perl+set}" = set; then
2981   withval="$with_perl"
2982
2983   case $withval in
2984     yes)
2985       :
2986       ;;
2987     no)
2988       :
2989       ;;
2990     *)
2991       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
2992 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
2993    { (exit 1); exit 1; }; }
2994       ;;
2995   esac
2996
2997 else
2998   with_perl=no
2999
3000 fi;
3001
3002 echo "$as_me:$LINENO: result: $with_perl" >&5
3003 echo "${ECHO_T}$with_perl" >&6
3004
3005
3006 #
3007 # Optionally build Python interface module
3008 #
3009 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3010 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3011
3012
3013
3014 # Check whether --with-python or --without-python was given.
3015 if test "${with_python+set}" = set; then
3016   withval="$with_python"
3017
3018   case $withval in
3019     yes)
3020       :
3021       ;;
3022     no)
3023       :
3024       ;;
3025     *)
3026       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3027 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3028    { (exit 1); exit 1; }; }
3029       ;;
3030   esac
3031
3032 else
3033   with_python=no
3034
3035 fi;
3036
3037 echo "$as_me:$LINENO: result: $with_python" >&5
3038 echo "${ECHO_T}$with_python" >&6
3039
3040
3041 #
3042 # Optionally build the Java/JDBC tools
3043 #
3044 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3045 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3046
3047
3048
3049 # Check whether --with-java or --without-java was given.
3050 if test "${with_java+set}" = set; then
3051   withval="$with_java"
3052
3053   case $withval in
3054     yes)
3055       echo "$as_me:$LINENO: result: yes" >&5
3056 echo "${ECHO_T}yes" >&6
3057
3058   for ac_prog in jakarta-ant ant ant.sh ant.bat
3059 do
3060   # Extract the first word of "$ac_prog", so it can be a program name with args.
3061 set dummy $ac_prog; ac_word=$2
3062 echo "$as_me:$LINENO: checking for $ac_word" >&5
3063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3064 if test "${ac_cv_path_ANT+set}" = set; then
3065   echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067   case $ANT in
3068   [\\/]* | ?:[\\/]*)
3069   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3070   ;;
3071   *)
3072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073 for as_dir in $PATH
3074 do
3075   IFS=$as_save_IFS
3076   test -z "$as_dir" && as_dir=.
3077   for ac_exec_ext in '' $ac_executable_extensions; do
3078   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3081     break 2
3082   fi
3083 done
3084 done
3085
3086   ;;
3087 esac
3088 fi
3089 ANT=$ac_cv_path_ANT
3090
3091 if test -n "$ANT"; then
3092   echo "$as_me:$LINENO: result: $ANT" >&5
3093 echo "${ECHO_T}$ANT" >&6
3094 else
3095   echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6
3097 fi
3098
3099   test -n "$ANT" && break
3100 done
3101
3102
3103   echo "$as_me:$LINENO: checking whether $ANT works" >&5
3104 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3105 if test "${pgac_cv_prog_ant_works+set}" = set; then
3106   echo $ECHO_N "(cached) $ECHO_C" >&6
3107 else
3108
3109     cat > conftest.java << EOF
3110 public class conftest {
3111     int testmethod(int a, int b) {
3112         return a + b;
3113     }
3114 }
3115 EOF
3116
3117     cat > conftest.xml << EOF
3118 <project name="conftest" default="conftest">
3119  <target name="conftest">
3120   <javac srcdir="." includes="conftest.java">
3121   </javac>
3122  </target>
3123 </project>
3124 EOF
3125
3126     pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3127     { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3128   (eval $pgac_cmd) 2>&5
3129   ac_status=$?
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); }
3132     pgac_save_status=$?
3133     if test $? = 0 && test -f ./conftest.class ; then
3134       pgac_cv_prog_ant_works=yes
3135     else
3136       echo "configure: failed java program was:" >&5
3137       cat conftest.java >&5
3138       echo "configure: failed build file was:" >&5
3139       cat conftest.xml >&5
3140       pgac_cv_prog_ant_works=no
3141     fi
3142
3143     rm -f conftest* core core.* *.core
3144
3145 fi
3146 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3147 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3148
3149   if test "$pgac_cv_prog_ant_works" != yes; then
3150     { { echo "$as_me:$LINENO: error: ant does not work" >&5
3151 echo "$as_me: error: ant does not work" >&2;}
3152    { (exit 1); exit 1; }; }
3153   fi
3154
3155
3156 if test -z "$ANT"; then
3157   { { echo "$as_me:$LINENO: error: Ant is required to build Java components" >&5
3158 echo "$as_me: error: Ant is required to build Java components" >&2;}
3159    { (exit 1); exit 1; }; }
3160 fi
3161       ;;
3162     no)
3163       echo "$as_me:$LINENO: result: no" >&5
3164 echo "${ECHO_T}no" >&6
3165       ;;
3166     *)
3167       { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3168 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3169    { (exit 1); exit 1; }; }
3170       ;;
3171   esac
3172
3173 else
3174   with_java=no
3175 echo "$as_me:$LINENO: result: no" >&5
3176 echo "${ECHO_T}no" >&6
3177 fi;
3178
3179
3180
3181
3182 #
3183 # Kerberos 4
3184 #
3185 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3186 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3187
3188
3189
3190 # Check whether --with-krb4 or --without-krb4 was given.
3191 if test "${with_krb4+set}" = set; then
3192   withval="$with_krb4"
3193
3194   case $withval in
3195     yes)
3196       krb4_prefix=/usr/athena
3197       ;;
3198     no)
3199       :
3200       ;;
3201     *)
3202       with_krb4=yes
3203 krb4_prefix=$withval
3204       ;;
3205   esac
3206
3207 else
3208   with_krb4=no
3209 fi;
3210
3211
3212 if test "$with_krb4" = yes; then
3213
3214   echo "$as_me:$LINENO: result: yes" >&5
3215 echo "${ECHO_T}yes" >&6
3216
3217 cat >>confdefs.h <<\_ACEOF
3218 #define KRB4 1
3219 _ACEOF
3220
3221
3222   if test -d "$krb4_prefix/include"; then
3223     INCLUDES="$INCLUDES -I$krb4_prefix/include"
3224   fi
3225   if test -d "$krb4_prefix/lib"; then
3226     LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3227   fi
3228
3229   krb_srvtab="/etc/srvtab"
3230
3231 else
3232   echo "$as_me:$LINENO: result: no" >&5
3233 echo "${ECHO_T}no" >&6
3234 fi
3235
3236
3237
3238
3239
3240 #
3241 # Kerberos 5
3242 #
3243 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3244 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3245
3246
3247
3248 # Check whether --with-krb5 or --without-krb5 was given.
3249 if test "${with_krb5+set}" = set; then
3250   withval="$with_krb5"
3251
3252   case $withval in
3253     yes)
3254       krb5_prefix=/usr/athena
3255       ;;
3256     no)
3257       :
3258       ;;
3259     *)
3260       with_krb5=yes
3261 krb5_prefix=$withval
3262       ;;
3263   esac
3264
3265 else
3266   with_krb5=no
3267 fi;
3268
3269
3270 if test "$with_krb5" = yes; then
3271
3272   echo "$as_me:$LINENO: result: yes" >&5
3273 echo "${ECHO_T}yes" >&6
3274
3275 cat >>confdefs.h <<\_ACEOF
3276 #define KRB5 1
3277 _ACEOF
3278
3279
3280   if test -d "$krb5_prefix/include"; then
3281     INCLUDES="$INCLUDES -I$krb5_prefix/include"
3282   fi
3283   if test -d "$krb5_prefix/lib"; then
3284     LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3285   fi
3286
3287   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3288
3289 else
3290   echo "$as_me:$LINENO: result: no" >&5
3291 echo "${ECHO_T}no" >&6
3292 fi
3293
3294
3295
3296
3297
3298 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3299 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3300   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3301 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3302    { (exit 1); exit 1; }; }
3303 fi
3304
3305
3306
3307
3308 #
3309 # Kerberos configuration parameters
3310 #
3311
3312
3313
3314 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3315 if test "${with_krb_srvnam+set}" = set; then
3316   withval="$with_krb_srvnam"
3317
3318   case $withval in
3319     yes)
3320       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3321 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3322    { (exit 1); exit 1; }; }
3323       ;;
3324     no)
3325       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3326 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3327    { (exit 1); exit 1; }; }
3328       ;;
3329     *)
3330
3331       ;;
3332   esac
3333
3334 else
3335   with_krb_srvnam="postgres"
3336 fi;
3337
3338
3339 cat >>confdefs.h <<_ACEOF
3340 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3341 _ACEOF
3342
3343
3344
3345 #
3346 # PAM
3347 #
3348 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3349 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3350
3351
3352
3353 # Check whether --with-pam or --without-pam was given.
3354 if test "${with_pam+set}" = set; then
3355   withval="$with_pam"
3356
3357   case $withval in
3358     yes)
3359
3360 cat >>confdefs.h <<\_ACEOF
3361 #define USE_PAM 1
3362 _ACEOF
3363
3364       ;;
3365     no)
3366       :
3367       ;;
3368     *)
3369       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3370 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3371    { (exit 1); exit 1; }; }
3372       ;;
3373   esac
3374
3375 else
3376   with_pam=no
3377
3378 fi;
3379
3380 echo "$as_me:$LINENO: result: $with_pam" >&5
3381 echo "${ECHO_T}$with_pam" >&6
3382
3383
3384
3385 #
3386 # OpenSSL
3387 #
3388
3389
3390
3391 # Check whether --with-openssl or --without-openssl was given.
3392 if test "${with_openssl+set}" = set; then
3393   withval="$with_openssl"
3394
3395   case $withval in
3396     yes)
3397       openssl_prefix=/usr/local/ssl
3398       ;;
3399     no)
3400       :
3401       ;;
3402     *)
3403       with_openssl=yes
3404 openssl_prefix=$withval
3405       ;;
3406   esac
3407
3408 else
3409   with_openssl=no
3410 fi;
3411
3412
3413 if test "$with_openssl" = yes; then
3414
3415   echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3416 echo "${ECHO_T}building with OpenSSL support" >&6
3417
3418 cat >>confdefs.h <<\_ACEOF
3419 #define USE_SSL 1
3420 _ACEOF
3421
3422
3423   if test -d "${openssl_prefix}/include" ; then
3424     INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3425   fi
3426   if test -d "${openssl_prefix}/lib" ; then
3427     LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3428   fi
3429
3430 fi
3431
3432
3433
3434
3435
3436 #
3437 # Readline
3438 #
3439
3440
3441
3442 # Check whether --with-readline or --without-readline was given.
3443 if test "${with_readline+set}" = set; then
3444   withval="$with_readline"
3445
3446   case $withval in
3447     yes)
3448       :
3449       ;;
3450     no)
3451       :
3452       ;;
3453     *)
3454       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3455 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3456    { (exit 1); exit 1; }; }
3457       ;;
3458   esac
3459
3460 else
3461   with_readline=yes
3462
3463 fi;
3464
3465
3466 #
3467 # Zlib
3468 #
3469
3470
3471
3472 # Check whether --with-zlib or --without-zlib was given.
3473 if test "${with_zlib+set}" = set; then
3474   withval="$with_zlib"
3475
3476   case $withval in
3477     yes)
3478       :
3479       ;;
3480     no)
3481       :
3482       ;;
3483     *)
3484       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3485 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3486    { (exit 1); exit 1; }; }
3487       ;;
3488   esac
3489
3490 else
3491   with_zlib=yes
3492
3493 fi;
3494
3495
3496
3497
3498 #
3499 # Optionally enable the building of the ODBC driver
3500 #
3501
3502 # Old option name
3503 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
3504   enable_odbc=$with_odbc
3505 fi
3506
3507 echo "$as_me:$LINENO: checking whether to build the ODBC driver" >&5
3508 echo $ECHO_N "checking whether to build the ODBC driver... $ECHO_C" >&6
3509
3510
3511 # Check whether --enable-odbc or --disable-odbc was given.
3512 if test "${enable_odbc+set}" = set; then
3513   enableval="$enable_odbc"
3514
3515   case $enableval in
3516     yes)
3517       :
3518       ;;
3519     no)
3520       :
3521       ;;
3522     *)
3523       { { echo "$as_me:$LINENO: error: no argument expected for --enable-odbc option" >&5
3524 echo "$as_me: error: no argument expected for --enable-odbc option" >&2;}
3525    { (exit 1); exit 1; }; }
3526       ;;
3527   esac
3528
3529 else
3530   enable_odbc=no
3531
3532 fi;
3533
3534
3535
3536
3537 # Check whether --with-unixodbc or --without-unixodbc was given.
3538 if test "${with_unixodbc+set}" = set; then
3539   withval="$with_unixodbc"
3540
3541   case $withval in
3542     yes)
3543       :
3544       ;;
3545     no)
3546       :
3547       ;;
3548     *)
3549       { { echo "$as_me:$LINENO: error: no argument expected for --with-unixodbc option" >&5
3550 echo "$as_me: error: no argument expected for --with-unixodbc option" >&2;}
3551    { (exit 1); exit 1; }; }
3552       ;;
3553   esac
3554
3555 else
3556   with_unixodbc=no
3557
3558 fi;
3559
3560
3561
3562
3563 # Check whether --with-iodbc or --without-iodbc was given.
3564 if test "${with_iodbc+set}" = set; then
3565   withval="$with_iodbc"
3566
3567   case $withval in
3568     yes)
3569       :
3570       ;;
3571     no)
3572       :
3573       ;;
3574     *)
3575       { { echo "$as_me:$LINENO: error: no argument expected for --with-iodbc option" >&5
3576 echo "$as_me: error: no argument expected for --with-iodbc option" >&2;}
3577    { (exit 1); exit 1; }; }
3578       ;;
3579   esac
3580
3581 else
3582   with_iodbc=no
3583
3584 fi;
3585
3586 if test "$with_unixodbc" = yes && test "$with_iodbc" = yes; then
3587   { { echo "$as_me:$LINENO: error: ODBC driver cannot be built for both unixODBC and iODBC" >&5
3588 echo "$as_me: error: ODBC driver cannot be built for both unixODBC and iODBC" >&2;}
3589    { (exit 1); exit 1; }; }
3590 fi
3591 if test "$with_unixodbc" = yes || test "$with_iodbc" = yes; then
3592   enable_odbc=yes
3593 fi
3594 case $enable_odbc:$with_unixodbc:$with_iodbc in
3595   yes:no:no)    echo "$as_me:$LINENO: result: yes (stand-alone)" >&5
3596 echo "${ECHO_T}yes (stand-alone)" >&6;;
3597   yes:yes:no)   echo "$as_me:$LINENO: result: yes (unixODBC)" >&5
3598 echo "${ECHO_T}yes (unixODBC)" >&6
3599
3600 cat >>confdefs.h <<\_ACEOF
3601 #define WITH_UNIXODBC 1
3602 _ACEOF
3603
3604                 ;;
3605   yes:no:yes)   echo "$as_me:$LINENO: result: yes (iODBC)" >&5
3606 echo "${ECHO_T}yes (iODBC)" >&6
3607
3608 cat >>confdefs.h <<\_ACEOF
3609 #define WITH_IODBC 1
3610 _ACEOF
3611
3612                 ;;
3613   no:*)         echo "$as_me:$LINENO: result: no" >&5
3614 echo "${ECHO_T}no" >&6;;
3615 esac
3616
3617
3618
3619
3620
3621 # Allow for overriding the default location of the odbcinst.ini
3622 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
3623
3624
3625
3626 # Check whether --with-odbcinst or --without-odbcinst was given.
3627 if test "${with_odbcinst+set}" = set; then
3628   withval="$with_odbcinst"
3629
3630   case $withval in
3631     yes)
3632       { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3633 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3634    { (exit 1); exit 1; }; }
3635       ;;
3636     no)
3637       { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3638 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3639    { (exit 1); exit 1; }; }
3640       ;;
3641     *)
3642       odbcinst_ini_dir=$withval
3643       ;;
3644   esac
3645
3646 else
3647   odbcinst_ini_dir="\${sysconfdir}"
3648 fi;
3649
3650
3651
3652
3653
3654 # Assume system is ELF if it predefines __ELF__ as 1,
3655 # otherwise believe host_os based default.
3656 case $host_os in
3657     freebsd1*|freebsd2*) elf=no;;
3658     freebsd3*|freebsd4*) elf=yes;;
3659 esac
3660
3661
3662 cat >conftest.$ac_ext <<_ACEOF
3663 #line $LINENO "configure"
3664 #include "confdefs.h"
3665 #if __ELF__
3666   yes
3667 #endif
3668
3669 _ACEOF
3670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3671   egrep "yes" >/dev/null 2>&1; then
3672   ELF_SYS=true
3673 else
3674   if test "X$elf" = "Xyes" ; then
3675   ELF_SYS=true
3676 else
3677   ELF_SYS=
3678 fi
3679 fi
3680 rm -f conftest*
3681
3682
3683
3684
3685
3686 #
3687 # Optionally build C++ code (i.e., libpq++)
3688 #
3689 echo "$as_me:$LINENO: checking whether to build C++ modules" >&5
3690 echo $ECHO_N "checking whether to build C++ modules... $ECHO_C" >&6
3691
3692
3693
3694 # Check whether --with-CXX or --without-CXX was given.
3695 if test "${with_CXX+set}" = set; then
3696   withval="$with_CXX"
3697
3698   case $withval in
3699     yes)
3700       :
3701       ;;
3702     no)
3703       :
3704       ;;
3705     *)
3706       with_CXX=yes
3707 CXX=$withval
3708       ;;
3709   esac
3710
3711 else
3712   with_CXX=no
3713 fi;
3714
3715
3716 if test "$with_CXX" = yes; then
3717
3718   echo "$as_me:$LINENO: result: yes" >&5
3719 echo "${ECHO_T}yes" >&6
3720
3721   # If the user has specified CXXFLAGS in the environment, leave it
3722   # alone, else use a default.
3723
3724   ac_ext=cc
3725 ac_cpp='$CXXCPP $CPPFLAGS'
3726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3729 if test -n "$ac_tool_prefix"; then
3730   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3731   do
3732     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3733 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3734 echo "$as_me:$LINENO: checking for $ac_word" >&5
3735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3736 if test "${ac_cv_prog_CXX+set}" = set; then
3737   echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739   if test -n "$CXX"; then
3740   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3741 else
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH
3744 do
3745   IFS=$as_save_IFS
3746   test -z "$as_dir" && as_dir=.
3747   for ac_exec_ext in '' $ac_executable_extensions; do
3748   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3749     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3751     break 2
3752   fi
3753 done
3754 done
3755
3756 fi
3757 fi
3758 CXX=$ac_cv_prog_CXX
3759 if test -n "$CXX"; then
3760   echo "$as_me:$LINENO: result: $CXX" >&5
3761 echo "${ECHO_T}$CXX" >&6
3762 else
3763   echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6
3765 fi
3766
3767     test -n "$CXX" && break
3768   done
3769 fi
3770 if test -z "$CXX"; then
3771   ac_ct_CXX=$CXX
3772   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3773 do
3774   # Extract the first word of "$ac_prog", so it can be a program name with args.
3775 set dummy $ac_prog; ac_word=$2
3776 echo "$as_me:$LINENO: checking for $ac_word" >&5
3777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3778 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3779   echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781   if test -n "$ac_ct_CXX"; then
3782   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3783 else
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 for as_dir in $PATH
3786 do
3787   IFS=$as_save_IFS
3788   test -z "$as_dir" && as_dir=.
3789   for ac_exec_ext in '' $ac_executable_extensions; do
3790   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3791     ac_cv_prog_ac_ct_CXX="$ac_prog"
3792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3793     break 2
3794   fi
3795 done
3796 done
3797
3798 fi
3799 fi
3800 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3801 if test -n "$ac_ct_CXX"; then
3802   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3803 echo "${ECHO_T}$ac_ct_CXX" >&6
3804 else
3805   echo "$as_me:$LINENO: result: no" >&5
3806 echo "${ECHO_T}no" >&6
3807 fi
3808
3809   test -n "$ac_ct_CXX" && break
3810 done
3811 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3812
3813   CXX=$ac_ct_CXX
3814 fi
3815
3816
3817 # Provide some information about the compiler.
3818 echo "$as_me:$LINENO:" \
3819      "checking for C++ compiler version" >&5
3820 ac_compiler=`set X $ac_compile; echo $2`
3821 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3822   (eval $ac_compiler --version </dev/null >&5) 2>&5
3823   ac_status=$?
3824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825   (exit $ac_status); }
3826 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3827   (eval $ac_compiler -v </dev/null >&5) 2>&5
3828   ac_status=$?
3829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830   (exit $ac_status); }
3831 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3832   (eval $ac_compiler -V </dev/null >&5) 2>&5
3833   ac_status=$?
3834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835   (exit $ac_status); }
3836
3837 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3838 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3839 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3840   echo $ECHO_N "(cached) $ECHO_C" >&6
3841 else
3842   cat >conftest.$ac_ext <<_ACEOF
3843 #line $LINENO "configure"
3844 #include "confdefs.h"
3845
3846 #ifdef F77_DUMMY_MAIN
3847 #  ifdef __cplusplus
3848      extern "C"
3849 #  endif
3850    int F77_DUMMY_MAIN() { return 1; }
3851 #endif
3852 int
3853 main ()
3854 {
3855 #ifndef __GNUC__
3856        choke me
3857 #endif
3858
3859   ;
3860   return 0;
3861 }
3862 _ACEOF
3863 rm -f conftest.$ac_objext
3864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3865   (eval $ac_compile) 2>&5
3866   ac_status=$?
3867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868   (exit $ac_status); } &&
3869          { ac_try='test -s conftest.$ac_objext'
3870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871   (eval $ac_try) 2>&5
3872   ac_status=$?
3873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874   (exit $ac_status); }; }; then
3875   ac_compiler_gnu=yes
3876 else
3877   echo "$as_me: failed program was:" >&5
3878 cat conftest.$ac_ext >&5
3879 ac_compiler_gnu=no
3880 fi
3881 rm -f conftest.$ac_objext conftest.$ac_ext
3882 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3883
3884 fi
3885 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3886 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3887 GXX=`test $ac_compiler_gnu = yes && echo yes`
3888 ac_test_CXXFLAGS=${CXXFLAGS+set}
3889 ac_save_CXXFLAGS=$CXXFLAGS
3890 CXXFLAGS="-g"
3891 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3892 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3893 if test "${ac_cv_prog_cxx_g+set}" = set; then
3894   echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896   cat >conftest.$ac_ext <<_ACEOF
3897 #line $LINENO "configure"
3898 #include "confdefs.h"
3899
3900 #ifdef F77_DUMMY_MAIN
3901 #  ifdef __cplusplus
3902      extern "C"
3903 #  endif
3904    int F77_DUMMY_MAIN() { return 1; }
3905 #endif
3906 int
3907 main ()
3908 {
3909
3910   ;
3911   return 0;
3912 }
3913 _ACEOF
3914 rm -f conftest.$ac_objext
3915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3916   (eval $ac_compile) 2>&5
3917   ac_status=$?
3918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919   (exit $ac_status); } &&
3920          { ac_try='test -s conftest.$ac_objext'
3921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3922   (eval $ac_try) 2>&5
3923   ac_status=$?
3924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925   (exit $ac_status); }; }; then
3926   ac_cv_prog_cxx_g=yes
3927 else
3928   echo "$as_me: failed program was:" >&5
3929 cat conftest.$ac_ext >&5
3930 ac_cv_prog_cxx_g=no
3931 fi
3932 rm -f conftest.$ac_objext conftest.$ac_ext
3933 fi
3934 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3935 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3936 if test "$ac_test_CXXFLAGS" = set; then
3937   CXXFLAGS=$ac_save_CXXFLAGS
3938 elif test $ac_cv_prog_cxx_g = yes; then
3939   if test "$GXX" = yes; then
3940     CXXFLAGS="-g -O2"
3941   else
3942     CXXFLAGS="-g"
3943   fi
3944 else
3945   if test "$GXX" = yes; then
3946     CXXFLAGS="-O2"
3947   else
3948     CXXFLAGS=
3949   fi
3950 fi
3951 for ac_declaration in \
3952    ''\
3953    '#include <stdlib.h>' \
3954    'extern "C" void std::exit (int) throw (); using std::exit;' \
3955    'extern "C" void std::exit (int); using std::exit;' \
3956    'extern "C" void exit (int) throw ();' \
3957    'extern "C" void exit (int);' \
3958    'void exit (int);'
3959 do
3960   cat >conftest.$ac_ext <<_ACEOF
3961 #line $LINENO "configure"
3962 #include "confdefs.h"
3963 #include <stdlib.h>
3964 $ac_declaration
3965 #ifdef F77_DUMMY_MAIN
3966 #  ifdef __cplusplus
3967      extern "C"
3968 #  endif
3969    int F77_DUMMY_MAIN() { return 1; }
3970 #endif
3971 int
3972 main ()
3973 {
3974 exit (42);
3975   ;
3976   return 0;
3977 }
3978 _ACEOF
3979 rm -f conftest.$ac_objext
3980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3981   (eval $ac_compile) 2>&5
3982   ac_status=$?
3983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984   (exit $ac_status); } &&
3985          { ac_try='test -s conftest.$ac_objext'
3986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3987   (eval $ac_try) 2>&5
3988   ac_status=$?
3989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990   (exit $ac_status); }; }; then
3991   :
3992 else
3993   echo "$as_me: failed program was:" >&5
3994 cat conftest.$ac_ext >&5
3995 continue
3996 fi
3997 rm -f conftest.$ac_objext conftest.$ac_ext
3998   cat >conftest.$ac_ext <<_ACEOF
3999 #line $LINENO "configure"
4000 #include "confdefs.h"
4001 $ac_declaration
4002 #ifdef F77_DUMMY_MAIN
4003 #  ifdef __cplusplus
4004      extern "C"
4005 #  endif
4006    int F77_DUMMY_MAIN() { return 1; }
4007 #endif
4008 int
4009 main ()
4010 {
4011 exit (42);
4012   ;
4013   return 0;
4014 }
4015 _ACEOF
4016 rm -f conftest.$ac_objext
4017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4018   (eval $ac_compile) 2>&5
4019   ac_status=$?
4020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021   (exit $ac_status); } &&
4022          { ac_try='test -s conftest.$ac_objext'
4023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024   (eval $ac_try) 2>&5
4025   ac_status=$?
4026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027   (exit $ac_status); }; }; then
4028   break
4029 else
4030   echo "$as_me: failed program was:" >&5
4031 cat conftest.$ac_ext >&5
4032 fi
4033 rm -f conftest.$ac_objext conftest.$ac_ext
4034 done
4035 rm -f conftest*
4036 if test -n "$ac_declaration"; then
4037   echo '#ifdef __cplusplus' >>confdefs.h
4038   echo $ac_declaration      >>confdefs.h
4039   echo '#endif'             >>confdefs.h
4040 fi
4041
4042 ac_ext=c
4043 ac_cpp='$CPP $CPPFLAGS'
4044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4047
4048   if test "$ac_env_CXXFLAGS" != set; then
4049     if test "$GXX" = yes; then
4050       CXXFLAGS="$GCC_CXXFLAGS"
4051     else
4052       CXXFLAGS="$VENDOR_CXXFLAGS"
4053     fi
4054   fi
4055   if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
4056     CXXFLAGS="$CXXFLAGS -g"
4057   fi
4058   { echo "$as_me:$LINENO: using CXXFLAGS=$CXXFLAGS" >&5
4059 echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
4060
4061   ac_ext=cc
4062 ac_cpp='$CXXCPP $CPPFLAGS'
4063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4066 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4067 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4068 if test -z "$CXXCPP"; then
4069   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4070   echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072       # Double quotes because CXXCPP needs to be expanded
4073     for CXXCPP in "$CXX -E" "/lib/cpp"
4074     do
4075       ac_preproc_ok=false
4076 for ac_cxx_preproc_warn_flag in '' yes
4077 do
4078   # Use a header file that comes with gcc, so configuring glibc
4079   # with a fresh cross-compiler works.
4080   # On the NeXT, cc -E runs the code through the compiler's parser,
4081   # not just through cpp. "Syntax error" is here to catch this case.
4082   cat >conftest.$ac_ext <<_ACEOF
4083 #line $LINENO "configure"
4084 #include "confdefs.h"
4085 #include <assert.h>
4086                      Syntax error
4087 _ACEOF
4088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4089   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4090   ac_status=$?
4091   egrep -v '^ *\+' conftest.er1 >conftest.err
4092   rm -f conftest.er1
4093   cat conftest.err >&5
4094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); } >/dev/null; then
4096   if test -s conftest.err; then
4097     ac_cpp_err=$ac_cxx_preproc_warn_flag
4098   else
4099     ac_cpp_err=
4100   fi
4101 else
4102   ac_cpp_err=yes
4103 fi
4104 if test -z "$ac_cpp_err"; then
4105   :
4106 else
4107   echo "$as_me: failed program was:" >&5
4108   cat conftest.$ac_ext >&5
4109   # Broken: fails on valid input.
4110 continue
4111 fi
4112 rm -f conftest.err conftest.$ac_ext
4113
4114   # OK, works on sane cases.  Now check whether non-existent headers
4115   # can be detected and how.
4116   cat >conftest.$ac_ext <<_ACEOF
4117 #line $LINENO "configure"
4118 #include "confdefs.h"
4119 #include <ac_nonexistent.h>
4120 _ACEOF
4121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4122   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4123   ac_status=$?
4124   egrep -v '^ *\+' conftest.er1 >conftest.err
4125   rm -f conftest.er1
4126   cat conftest.err >&5
4127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128   (exit $ac_status); } >/dev/null; then
4129   if test -s conftest.err; then
4130     ac_cpp_err=$ac_cxx_preproc_warn_flag
4131   else
4132     ac_cpp_err=
4133   fi
4134 else
4135   ac_cpp_err=yes
4136 fi
4137 if test -z "$ac_cpp_err"; then
4138   # Broken: success on invalid input.
4139 continue
4140 else
4141   echo "$as_me: failed program was:" >&5
4142   cat conftest.$ac_ext >&5
4143   # Passes both tests.
4144 ac_preproc_ok=:
4145 break
4146 fi
4147 rm -f conftest.err conftest.$ac_ext
4148
4149 done
4150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4151 rm -f conftest.err conftest.$ac_ext
4152 if $ac_preproc_ok; then
4153   break
4154 fi
4155
4156     done
4157     ac_cv_prog_CXXCPP=$CXXCPP
4158
4159 fi
4160   CXXCPP=$ac_cv_prog_CXXCPP
4161 else
4162   ac_cv_prog_CXXCPP=$CXXCPP
4163 fi
4164 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4165 echo "${ECHO_T}$CXXCPP" >&6
4166 ac_preproc_ok=false
4167 for ac_cxx_preproc_warn_flag in '' yes
4168 do
4169   # Use a header file that comes with gcc, so configuring glibc
4170   # with a fresh cross-compiler works.
4171   # On the NeXT, cc -E runs the code through the compiler's parser,
4172   # not just through cpp. "Syntax error" is here to catch this case.
4173   cat >conftest.$ac_ext <<_ACEOF
4174 #line $LINENO "configure"
4175 #include "confdefs.h"
4176 #include <assert.h>
4177                      Syntax error
4178 _ACEOF
4179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4180   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4181   ac_status=$?
4182   egrep -v '^ *\+' conftest.er1 >conftest.err
4183   rm -f conftest.er1
4184   cat conftest.err >&5
4185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186   (exit $ac_status); } >/dev/null; then
4187   if test -s conftest.err; then
4188     ac_cpp_err=$ac_cxx_preproc_warn_flag
4189   else
4190     ac_cpp_err=
4191   fi
4192 else
4193   ac_cpp_err=yes
4194 fi
4195 if test -z "$ac_cpp_err"; then
4196   :
4197 else
4198   echo "$as_me: failed program was:" >&5
4199   cat conftest.$ac_ext >&5
4200   # Broken: fails on valid input.
4201 continue
4202 fi
4203 rm -f conftest.err conftest.$ac_ext
4204
4205   # OK, works on sane cases.  Now check whether non-existent headers
4206   # can be detected and how.
4207   cat >conftest.$ac_ext <<_ACEOF
4208 #line $LINENO "configure"
4209 #include "confdefs.h"
4210 #include <ac_nonexistent.h>
4211 _ACEOF
4212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4213   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4214   ac_status=$?
4215   egrep -v '^ *\+' conftest.er1 >conftest.err
4216   rm -f conftest.er1
4217   cat conftest.err >&5
4218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219   (exit $ac_status); } >/dev/null; then
4220   if test -s conftest.err; then
4221     ac_cpp_err=$ac_cxx_preproc_warn_flag
4222   else
4223     ac_cpp_err=
4224   fi
4225 else
4226   ac_cpp_err=yes
4227 fi
4228 if test -z "$ac_cpp_err"; then
4229   # Broken: success on invalid input.
4230 continue
4231 else
4232   echo "$as_me: failed program was:" >&5
4233   cat conftest.$ac_ext >&5
4234   # Passes both tests.
4235 ac_preproc_ok=:
4236 break
4237 fi
4238 rm -f conftest.err conftest.$ac_ext
4239
4240 done
4241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4242 rm -f conftest.err conftest.$ac_ext
4243 if $ac_preproc_ok; then
4244   :
4245 else
4246   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
4247 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
4248    { (exit 1); exit 1; }; }
4249 fi
4250
4251 ac_ext=c
4252 ac_cpp='$CPP $CPPFLAGS'
4253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4256
4257
4258 else
4259   echo "$as_me:$LINENO: result: no" >&5
4260 echo "${ECHO_T}no" >&6
4261 fi
4262
4263
4264
4265
4266 CPPFLAGS="$CPPFLAGS $INCLUDES"
4267 LDFLAGS="$LDFLAGS $LIBDIRS"
4268
4269 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4270 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4271 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4272 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4273
4274
4275 for ac_prog in gawk mawk nawk awk
4276 do
4277   # Extract the first word of "$ac_prog", so it can be a program name with args.
4278 set dummy $ac_prog; ac_word=$2
4279 echo "$as_me:$LINENO: checking for $ac_word" >&5
4280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4281 if test "${ac_cv_prog_AWK+set}" = set; then
4282   echo $ECHO_N "(cached) $ECHO_C" >&6
4283 else
4284   if test -n "$AWK"; then
4285   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4286 else
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4289 do
4290   IFS=$as_save_IFS
4291   test -z "$as_dir" && as_dir=.
4292   for ac_exec_ext in '' $ac_executable_extensions; do
4293   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294     ac_cv_prog_AWK="$ac_prog"
4295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296     break 2
4297   fi
4298 done
4299 done
4300
4301 fi
4302 fi
4303 AWK=$ac_cv_prog_AWK
4304 if test -n "$AWK"; then
4305   echo "$as_me:$LINENO: result: $AWK" >&5
4306 echo "${ECHO_T}$AWK" >&6
4307 else
4308   echo "$as_me:$LINENO: result: no" >&5
4309 echo "${ECHO_T}no" >&6
4310 fi
4311
4312   test -n "$AWK" && break
4313 done
4314
4315 echo "$as_me:$LINENO: checking for flex" >&5
4316 echo $ECHO_N "checking for flex... $ECHO_C" >&6
4317 if test "${pgac_cv_path_flex+set}" = set; then
4318   echo $ECHO_N "(cached) $ECHO_C" >&6
4319 else
4320   # Let the user override the test
4321 if test -n "$FLEX"; then
4322   pgac_cv_path_flex=$FLEX
4323 else
4324   pgac_save_IFS=$IFS
4325   IFS=:
4326   for pgac_dir in $PATH; do
4327     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4328       pgac_dir=`pwd`
4329     fi
4330     for pgac_prog in flex lex; do
4331       pgac_candidate="$pgac_dir/$pgac_prog"
4332       if test -f "$pgac_candidate" \
4333         && $pgac_candidate --version </dev/null >/dev/null 2>&1
4334       then
4335         echo '%%'  > conftest.l
4336         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4337           if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
4338             pgac_broken_flex=$pgac_candidate
4339             continue
4340           fi
4341
4342           pgac_cv_path_flex=$pgac_candidate
4343           break 2
4344         fi
4345       fi
4346     done
4347   done
4348   IFS=$pgac_save_IFS
4349   rm -f conftest.l
4350   : ${pgac_cv_path_flex=no}
4351 fi
4352
4353 fi
4354 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4355 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4356 if test x"$pgac_cv_path_flex" = x"no"; then
4357   if test -n "$pgac_broken_flex"; then
4358     { echo "$as_me:$LINENO: WARNING:
4359 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4360 *** should get version 2.5.4 or later." >&5
4361 echo "$as_me: WARNING:
4362 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4363 *** should get version 2.5.4 or later." >&2;}
4364   fi
4365
4366   { echo "$as_me:$LINENO: WARNING:
4367 *** Without Flex you will not be able to build PostgreSQL from CVS or
4368 *** change any of the scanner definition files.  You can obtain Flex from
4369 *** a GNU mirror site.  (If you are using the official distribution of
4370 *** PostgreSQL then you do not need to worry about this because the Flex
4371 *** output is pre-generated.)" >&5
4372 echo "$as_me: WARNING:
4373 *** Without Flex you will not be able to build PostgreSQL from CVS or
4374 *** change any of the scanner definition files.  You can obtain Flex from
4375 *** a GNU mirror site.  (If you are using the official distribution of
4376 *** PostgreSQL then you do not need to worry about this because the Flex
4377 *** output is pre-generated.)" >&2;}
4378 fi
4379
4380 if test x"$pgac_cv_path_flex" = x"no"; then
4381   FLEX=
4382 else
4383   FLEX=$pgac_cv_path_flex
4384 fi
4385
4386
4387
4388
4389 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4390 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4391 LN_S=$as_ln_s
4392 if test "$LN_S" = "ln -s"; then
4393   echo "$as_me:$LINENO: result: yes" >&5
4394 echo "${ECHO_T}yes" >&6
4395 else
4396   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4397 echo "${ECHO_T}no, using $LN_S" >&6
4398 fi
4399
4400
4401 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4402 if test "${with_gnu_ld+set}" = set; then
4403   withval="$with_gnu_ld"
4404   test "$withval" = no || with_gnu_ld=yes
4405 else
4406   with_gnu_ld=no
4407 fi;
4408 ac_prog=ld
4409 if test "$GCC" = yes; then
4410   # Check if gcc -print-prog-name=ld gives a path.
4411   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4412 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4413   case $host in
4414   *-*-mingw*)
4415     # gcc leaves a trailing carriage return which upsets mingw
4416     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4417   *)
4418     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4419   esac
4420   case "$ac_prog" in
4421     # Accept absolute paths.
4422     [\\/]* | [A-Za-z]:[\\/]*)
4423       re_direlt='/[^/][^/]*/\.\./'
4424       # Canonicalize the path of ld
4425       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4426       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4427         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4428       done
4429       test -z "$LD" && LD="$ac_prog"
4430       ;;
4431   "")
4432     # If it fails, then pretend we aren't using GCC.
4433     ac_prog=ld
4434     ;;
4435   *)
4436     # If it is relative, then search for the first ld in PATH.
4437     with_gnu_ld=unknown
4438     ;;
4439   esac
4440 elif test "$with_gnu_ld" = yes; then
4441   echo "$as_me:$LINENO: checking for GNU ld" >&5
4442 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4443 else
4444   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4445 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4446 fi
4447 if test "${ac_cv_path_LD+set}" = set; then
4448   echo $ECHO_N "(cached) $ECHO_C" >&6
4449 else
4450   if test -z "$LD"; then
4451   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4452   for ac_dir in $PATH; do
4453     test -z "$ac_dir" && ac_dir=.
4454     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4455       ac_cv_path_LD="$ac_dir/$ac_prog"
4456       # Check to see if the program is GNU ld.  I'd rather use --version,
4457       # but apparently some GNU ld's only accept -v.
4458       # Break only if it was the GNU/non-GNU ld that we prefer.
4459       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4460         test "$with_gnu_ld" != no && break
4461       else
4462         test "$with_gnu_ld" != yes && break
4463       fi
4464     fi
4465   done
4466   IFS="$ac_save_ifs"
4467 else
4468   ac_cv_path_LD="$LD" # Let the user override the test with a path.
4469 fi
4470 fi
4471
4472 LD="$ac_cv_path_LD"
4473 if test -n "$LD"; then
4474   echo "$as_me:$LINENO: result: $LD" >&5
4475 echo "${ECHO_T}$LD" >&6
4476 else
4477   echo "$as_me:$LINENO: result: no" >&5
4478 echo "${ECHO_T}no" >&6
4479 fi
4480 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4481 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4482    { (exit 1); exit 1; }; }
4483 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4484 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4485 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4486   echo $ECHO_N "(cached) $ECHO_C" >&6
4487 else
4488   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4489 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4490   ac_cv_prog_gnu_ld=yes
4491 else
4492   ac_cv_prog_gnu_ld=no
4493 fi
4494 fi
4495 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4496 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4497 with_gnu_ld=$ac_cv_prog_gnu_ld
4498
4499
4500
4501
4502 case $host_os in sysv5*)
4503   echo "$as_me:$LINENO: checking whether ld -R works" >&5
4504 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4505 if test "${pgac_cv_prog_ld_R+set}" = set; then
4506   echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508
4509     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4510     cat >conftest.$ac_ext <<_ACEOF
4511 #line $LINENO "configure"
4512 #include "confdefs.h"
4513
4514 #ifdef F77_DUMMY_MAIN
4515 #  ifdef __cplusplus
4516      extern "C"
4517 #  endif
4518    int F77_DUMMY_MAIN() { return 1; }
4519 #endif
4520 int
4521 main ()
4522 {
4523
4524   ;
4525   return 0;
4526 }
4527 _ACEOF
4528 rm -f conftest.$ac_objext conftest$ac_exeext
4529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4530   (eval $ac_link) 2>&5
4531   ac_status=$?
4532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533   (exit $ac_status); } &&
4534          { ac_try='test -s conftest$ac_exeext'
4535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536   (eval $ac_try) 2>&5
4537   ac_status=$?
4538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539   (exit $ac_status); }; }; then
4540   pgac_cv_prog_ld_R=yes
4541 else
4542   echo "$as_me: failed program was:" >&5
4543 cat conftest.$ac_ext >&5
4544 pgac_cv_prog_ld_R=no
4545 fi
4546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4547     LDFLAGS=$pgac_save_LDFLAGS
4548
4549 fi
4550 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4551 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4552   ld_R_works=$pgac_cv_prog_ld_R
4553
4554 esac
4555 if test -n "$ac_tool_prefix"; then
4556   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4557 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4558 echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4560 if test "${ac_cv_prog_RANLIB+set}" = set; then
4561   echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563   if test -n "$RANLIB"; then
4564   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4568 do
4569   IFS=$as_save_IFS
4570   test -z "$as_dir" && as_dir=.
4571   for ac_exec_ext in '' $ac_executable_extensions; do
4572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575     break 2
4576   fi
4577 done
4578 done
4579
4580 fi
4581 fi
4582 RANLIB=$ac_cv_prog_RANLIB
4583 if test -n "$RANLIB"; then
4584   echo "$as_me:$LINENO: result: $RANLIB" >&5
4585 echo "${ECHO_T}$RANLIB" >&6
4586 else
4587   echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6
4589 fi
4590
4591 fi
4592 if test -z "$ac_cv_prog_RANLIB"; then
4593   ac_ct_RANLIB=$RANLIB
4594   # Extract the first word of "ranlib", so it can be a program name with args.
4595 set dummy ranlib; ac_word=$2
4596 echo "$as_me:$LINENO: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4598 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4599   echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601   if test -n "$ac_ct_RANLIB"; then
4602   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607   IFS=$as_save_IFS
4608   test -z "$as_dir" && as_dir=.
4609   for ac_exec_ext in '' $ac_executable_extensions; do
4610   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4611     ac_cv_prog_ac_ct_RANLIB="ranlib"
4612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613     break 2
4614   fi
4615 done
4616 done
4617
4618   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4619 fi
4620 fi
4621 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4622 if test -n "$ac_ct_RANLIB"; then
4623   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4624 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4625 else
4626   echo "$as_me:$LINENO: result: no" >&5
4627 echo "${ECHO_T}no" >&6
4628 fi
4629
4630   RANLIB=$ac_ct_RANLIB
4631 else
4632   RANLIB="$ac_cv_prog_RANLIB"
4633 fi
4634
4635 for ac_prog in lorder
4636 do
4637   # Extract the first word of "$ac_prog", so it can be a program name with args.
4638 set dummy $ac_prog; ac_word=$2
4639 echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4641 if test "${ac_cv_prog_LORDER+set}" = set; then
4642   echo $ECHO_N "(cached) $ECHO_C" >&6
4643 else
4644   if test -n "$LORDER"; then
4645   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4649 do
4650   IFS=$as_save_IFS
4651   test -z "$as_dir" && as_dir=.
4652   for ac_exec_ext in '' $ac_executable_extensions; do
4653   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654     ac_cv_prog_LORDER="$ac_prog"
4655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656     break 2
4657   fi
4658 done
4659 done
4660
4661 fi
4662 fi
4663 LORDER=$ac_cv_prog_LORDER
4664 if test -n "$LORDER"; then
4665   echo "$as_me:$LINENO: result: $LORDER" >&5
4666 echo "${ECHO_T}$LORDER" >&6
4667 else
4668   echo "$as_me:$LINENO: result: no" >&5
4669 echo "${ECHO_T}no" >&6
4670 fi
4671
4672   test -n "$LORDER" && break
4673 done
4674
4675 # Extract the first word of "tar", so it can be a program name with args.
4676 set dummy tar; ac_word=$2
4677 echo "$as_me:$LINENO: checking for $ac_word" >&5
4678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4679 if test "${ac_cv_path_TAR+set}" = set; then
4680   echo $ECHO_N "(cached) $ECHO_C" >&6
4681 else
4682   case $TAR in
4683   [\\/]* | ?:[\\/]*)
4684   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4685   ;;
4686   *)
4687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $PATH
4689 do
4690   IFS=$as_save_IFS
4691   test -z "$as_dir" && as_dir=.
4692   for ac_exec_ext in '' $ac_executable_extensions; do
4693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4694     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4696     break 2
4697   fi
4698 done
4699 done
4700
4701   ;;
4702 esac
4703 fi
4704 TAR=$ac_cv_path_TAR
4705
4706 if test -n "$TAR"; then
4707   echo "$as_me:$LINENO: result: $TAR" >&5
4708 echo "${ECHO_T}$TAR" >&6
4709 else
4710   echo "$as_me:$LINENO: result: no" >&5
4711 echo "${ECHO_T}no" >&6
4712 fi
4713
4714
4715   if test -n "$ac_tool_prefix"; then
4716   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4717 set dummy ${ac_tool_prefix}strip; ac_word=$2
4718 echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4720 if test "${ac_cv_prog_STRIP+set}" = set; then
4721   echo $ECHO_N "(cached) $ECHO_C" >&6
4722 else
4723   if test -n "$STRIP"; then
4724   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4728 do
4729   IFS=$as_save_IFS
4730   test -z "$as_dir" && as_dir=.
4731   for ac_exec_ext in '' $ac_executable_extensions; do
4732   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735     break 2
4736   fi
4737 done
4738 done
4739
4740 fi
4741 fi
4742 STRIP=$ac_cv_prog_STRIP
4743 if test -n "$STRIP"; then
4744   echo "$as_me:$LINENO: result: $STRIP" >&5
4745 echo "${ECHO_T}$STRIP" >&6
4746 else
4747   echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6
4749 fi
4750
4751 fi
4752 if test -z "$ac_cv_prog_STRIP"; then
4753   ac_ct_STRIP=$STRIP
4754   # Extract the first word of "strip", so it can be a program name with args.
4755 set dummy strip; ac_word=$2
4756 echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4758 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4759   echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761   if test -n "$ac_ct_STRIP"; then
4762   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4763 else
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4766 do
4767   IFS=$as_save_IFS
4768   test -z "$as_dir" && as_dir=.
4769   for ac_exec_ext in '' $ac_executable_extensions; do
4770   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771     ac_cv_prog_ac_ct_STRIP="strip"
4772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773     break 2
4774   fi
4775 done
4776 done
4777
4778   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4779 fi
4780 fi
4781 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4782 if test -n "$ac_ct_STRIP"; then
4783   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4784 echo "${ECHO_T}$ac_ct_STRIP" >&6
4785 else
4786   echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6
4788 fi
4789
4790   STRIP=$ac_ct_STRIP
4791 else
4792   STRIP="$ac_cv_prog_STRIP"
4793 fi
4794
4795
4796   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4797 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4798   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4799     STRIP_STATIC_LIB="$STRIP -x"
4800     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4801     echo "$as_me:$LINENO: result: yes" >&5
4802 echo "${ECHO_T}yes" >&6
4803   else
4804     STRIP_STATIC_LIB=:
4805     STRIP_SHARED_LIB=:
4806     echo "$as_me:$LINENO: result: no" >&5
4807 echo "${ECHO_T}no" >&6
4808   fi
4809
4810
4811
4812
4813 for ac_prog in 'bison -y'
4814 do
4815   # Extract the first word of "$ac_prog", so it can be a program name with args.
4816 set dummy $ac_prog; ac_word=$2
4817 echo "$as_me:$LINENO: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4819 if test "${ac_cv_prog_YACC+set}" = set; then
4820   echo $ECHO_N "(cached) $ECHO_C" >&6
4821 else
4822   if test -n "$YACC"; then
4823   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4827 do
4828   IFS=$as_save_IFS
4829   test -z "$as_dir" && as_dir=.
4830   for ac_exec_ext in '' $ac_executable_extensions; do
4831   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4832     ac_cv_prog_YACC="$ac_prog"
4833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834     break 2
4835   fi
4836 done
4837 done
4838
4839 fi
4840 fi
4841 YACC=$ac_cv_prog_YACC
4842 if test -n "$YACC"; then
4843   echo "$as_me:$LINENO: result: $YACC" >&5
4844 echo "${ECHO_T}$YACC" >&6
4845 else
4846   echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6
4848 fi
4849
4850   test -n "$YACC" && break
4851 done
4852
4853 if test -z "$YACC"; then
4854   { echo "$as_me:$LINENO: WARNING:
4855 *** Without Bison you will not be able to build PostgreSQL from CVS or
4856 *** change any of the parser definition files.  You can obtain Bison from
4857 *** a GNU mirror site.  (If you are using the official distribution of
4858 *** PostgreSQL then you do not need to worry about this because the Bison
4859 *** output is pre-generated.)  To use a different yacc program (possible,
4860 *** but not recommended), set the environment variable YACC before running
4861 *** 'configure'." >&5
4862 echo "$as_me: WARNING:
4863 *** Without Bison you will not be able to build PostgreSQL from CVS or
4864 *** change any of the parser definition files.  You can obtain Bison from
4865 *** a GNU mirror site.  (If you are using the official distribution of
4866 *** PostgreSQL then you do not need to worry about this because the Bison
4867 *** output is pre-generated.)  To use a different yacc program (possible,
4868 *** but not recommended), set the environment variable YACC before running
4869 *** 'configure'." >&2;}
4870 fi
4871
4872
4873 if test "$with_tk" = yes; then
4874     # Extract the first word of "wish", so it can be a program name with args.
4875 set dummy wish; ac_word=$2
4876 echo "$as_me:$LINENO: checking for $ac_word" >&5
4877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4878 if test "${ac_cv_path_WISH+set}" = set; then
4879   echo $ECHO_N "(cached) $ECHO_C" >&6
4880 else
4881   case $WISH in
4882   [\\/]* | ?:[\\/]*)
4883   ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
4884   ;;
4885   *)
4886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 for as_dir in $PATH
4888 do
4889   IFS=$as_save_IFS
4890   test -z "$as_dir" && as_dir=.
4891   for ac_exec_ext in '' $ac_executable_extensions; do
4892   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4893     ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext"
4894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4895     break 2
4896   fi
4897 done
4898 done
4899
4900   ;;
4901 esac
4902 fi
4903 WISH=$ac_cv_path_WISH
4904
4905 if test -n "$WISH"; then
4906   echo "$as_me:$LINENO: result: $WISH" >&5
4907 echo "${ECHO_T}$WISH" >&6
4908 else
4909   echo "$as_me:$LINENO: result: no" >&5
4910 echo "${ECHO_T}no" >&6
4911 fi
4912
4913     test -z "$WISH" && { { echo "$as_me:$LINENO: error: 'wish' is required for Tk support" >&5
4914 echo "$as_me: error: 'wish' is required for Tk support" >&2;}
4915    { (exit 1); exit 1; }; }
4916 fi
4917
4918 # Extract the first word of "perl", so it can be a program name with args.
4919 set dummy perl; ac_word=$2
4920 echo "$as_me:$LINENO: checking for $ac_word" >&5
4921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4922 if test "${ac_cv_path_PERL+set}" = set; then
4923   echo $ECHO_N "(cached) $ECHO_C" >&6
4924 else
4925   case $PERL in
4926   [\\/]* | ?:[\\/]*)
4927   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4928   ;;
4929   *)
4930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 for as_dir in $PATH
4932 do
4933   IFS=$as_save_IFS
4934   test -z "$as_dir" && as_dir=.
4935   for ac_exec_ext in '' $ac_executable_extensions; do
4936   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4937     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4939     break 2
4940   fi
4941 done
4942 done
4943
4944   ;;
4945 esac
4946 fi
4947 PERL=$ac_cv_path_PERL
4948
4949 if test -n "$PERL"; then
4950   echo "$as_me:$LINENO: result: $PERL" >&5
4951 echo "${ECHO_T}$PERL" >&6
4952 else
4953   echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6
4955 fi
4956
4957 if test "$with_perl" = yes; then
4958
4959 echo "$as_me:$LINENO: checking for Perl installsitearch" >&5
4960 echo $ECHO_N "checking for Perl installsitearch... $ECHO_C" >&6
4961 perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
4962 echo "$as_me:$LINENO: result: $perl_installsitearch" >&5
4963 echo "${ECHO_T}$perl_installsitearch" >&6
4964 echo "$as_me:$LINENO: checking for Perl installman3dir" >&5
4965 echo $ECHO_N "checking for Perl installman3dir... $ECHO_C" >&6
4966 perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
4967 echo "$as_me:$LINENO: result: $perl_installman3dir" >&5
4968 echo "${ECHO_T}$perl_installman3dir" >&6
4969 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4970 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4971 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4972 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4973 echo "${ECHO_T}$perl_archlibexp" >&6
4974 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4975 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4976 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4977 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4978 echo "${ECHO_T}$perl_privlibexp" >&6
4979 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4980 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4981 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4982 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4983 echo "${ECHO_T}$perl_useshrplib" >&6
4984 echo "$as_me:$LINENO: checking for Perl man3ext" >&5
4985 echo $ECHO_N "checking for Perl man3ext... $ECHO_C" >&6
4986 perl_man3ext=`$PERL -MConfig -e 'print $Config{man3ext}'`
4987 echo "$as_me:$LINENO: result: $perl_man3ext" >&5
4988 echo "${ECHO_T}$perl_man3ext" >&6
4989
4990 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4991 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4992 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4993 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4994 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4995 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4996 echo "${ECHO_T}$perl_embed_ldflags" >&6
4997 fi
4998
4999 if test "$with_python" = yes; then
5000   # Extract the first word of "python", so it can be a program name with args.
5001 set dummy python; ac_word=$2
5002 echo "$as_me:$LINENO: checking for $ac_word" >&5
5003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5004 if test "${ac_cv_path_PYTHON+set}" = set; then
5005   echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007   case $PYTHON in
5008   [\\/]* | ?:[\\/]*)
5009   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5010   ;;
5011   *)
5012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5014 do
5015   IFS=$as_save_IFS
5016   test -z "$as_dir" && as_dir=.
5017   for ac_exec_ext in '' $ac_executable_extensions; do
5018   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5019     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5021     break 2
5022   fi
5023 done
5024 done
5025
5026   ;;
5027 esac
5028 fi
5029 PYTHON=$ac_cv_path_PYTHON
5030
5031 if test -n "$PYTHON"; then
5032   echo "$as_me:$LINENO: result: $PYTHON" >&5
5033 echo "${ECHO_T}$PYTHON" >&6
5034 else
5035   echo "$as_me:$LINENO: result: no" >&5
5036 echo "${ECHO_T}no" >&6
5037 fi
5038
5039 if test x"$PYTHON" = x""; then
5040   { { echo "$as_me:$LINENO: error: Python not found" >&5
5041 echo "$as_me: error: Python not found" >&2;}
5042    { (exit 1); exit 1; }; }
5043 fi
5044
5045
5046 echo "$as_me:$LINENO: checking Python installation directories" >&5
5047 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
5048 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
5049 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
5050 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
5051 python_configdir="${python_execprefix}/lib/python${python_version}/config"
5052 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
5053 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
5054 python_includespec="-I${python_prefix}/include/python${python_version}"
5055 if test "$python_prefix" != "$python_execprefix"; then
5056   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
5057 fi
5058
5059 # This should be enough of a message.
5060 if test "$python_prefix" != "$python_execprefix"; then
5061   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
5062 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
5063 else
5064   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
5065 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
5066 fi
5067
5068
5069
5070
5071
5072 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
5073 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
5074
5075 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5076 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
5077 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
5078 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5079 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5080
5081 pgac_tab="      " # tab character
5082 python_libspec=`echo X"-L$python_configdir $_python_libs $_python_libc $_python_libm -lpython$python_version $_python_liblocalmod $_python_libbasemod" | sed -e 's/^X//' -e "s/[ $pgac_tab][ $pgac_tab]*/ /g"`
5083
5084 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
5085 echo "${ECHO_T}${python_libspec}" >&6
5086
5087
5088 fi
5089
5090
5091 ##
5092 ## Libraries
5093 ##
5094
5095 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
5096 then
5097
5098 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
5099 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
5100 if test "${ac_cv_lib_bsd_main+set}" = set; then
5101   echo $ECHO_N "(cached) $ECHO_C" >&6
5102 else
5103   ac_check_lib_save_LIBS=$LIBS
5104 LIBS="-lbsd  $LIBS"
5105 cat >conftest.$ac_ext <<_ACEOF
5106 #line $LINENO "configure"
5107 #include "confdefs.h"
5108
5109
5110 #ifdef F77_DUMMY_MAIN
5111 #  ifdef __cplusplus
5112      extern "C"
5113 #  endif
5114    int F77_DUMMY_MAIN() { return 1; }
5115 #endif
5116 int
5117 main ()
5118 {
5119 main ();
5120   ;
5121   return 0;
5122 }
5123 _ACEOF
5124 rm -f conftest.$ac_objext conftest$ac_exeext
5125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5126   (eval $ac_link) 2>&5
5127   ac_status=$?
5128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129   (exit $ac_status); } &&
5130          { ac_try='test -s conftest$ac_exeext'
5131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132   (eval $ac_try) 2>&5
5133   ac_status=$?
5134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135   (exit $ac_status); }; }; then
5136   ac_cv_lib_bsd_main=yes
5137 else
5138   echo "$as_me: failed program was:" >&5
5139 cat conftest.$ac_ext >&5
5140 ac_cv_lib_bsd_main=no
5141 fi
5142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5143 LIBS=$ac_check_lib_save_LIBS
5144 fi
5145 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
5146 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
5147 if test $ac_cv_lib_bsd_main = yes; then
5148   cat >>confdefs.h <<_ACEOF
5149 #define HAVE_LIBBSD 1
5150 _ACEOF
5151
5152   LIBS="-lbsd $LIBS"
5153
5154 fi
5155
5156 fi
5157
5158 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
5159 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
5160 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
5161   echo $ECHO_N "(cached) $ECHO_C" >&6
5162 else
5163   ac_check_lib_save_LIBS=$LIBS
5164 LIBS="-lutil  $LIBS"
5165 cat >conftest.$ac_ext <<_ACEOF
5166 #line $LINENO "configure"
5167 #include "confdefs.h"
5168
5169 /* Override any gcc2 internal prototype to avoid an error.  */
5170 #ifdef __cplusplus
5171 extern "C"
5172 #endif
5173 /* We use char because int might match the return type of a gcc2
5174    builtin and then its argument prototype would still apply.  */
5175 char setproctitle ();
5176 #ifdef F77_DUMMY_MAIN
5177 #  ifdef __cplusplus
5178      extern "C"
5179 #  endif
5180    int F77_DUMMY_MAIN() { return 1; }
5181 #endif
5182 int
5183 main ()
5184 {
5185 setproctitle ();
5186   ;
5187   return 0;
5188 }
5189 _ACEOF
5190 rm -f conftest.$ac_objext conftest$ac_exeext
5191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5192   (eval $ac_link) 2>&5
5193   ac_status=$?
5194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195   (exit $ac_status); } &&
5196          { ac_try='test -s conftest$ac_exeext'
5197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198   (eval $ac_try) 2>&5
5199   ac_status=$?
5200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201   (exit $ac_status); }; }; then
5202   ac_cv_lib_util_setproctitle=yes
5203 else
5204   echo "$as_me: failed program was:" >&5
5205 cat conftest.$ac_ext >&5
5206 ac_cv_lib_util_setproctitle=no
5207 fi
5208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5209 LIBS=$ac_check_lib_save_LIBS
5210 fi
5211 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
5212 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
5213 if test $ac_cv_lib_util_setproctitle = yes; then
5214   cat >>confdefs.h <<_ACEOF
5215 #define HAVE_LIBUTIL 1
5216 _ACEOF
5217
5218   LIBS="-lutil $LIBS"
5219
5220 fi
5221
5222
5223 echo "$as_me:$LINENO: checking for main in -lm" >&5
5224 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5225 if test "${ac_cv_lib_m_main+set}" = set; then
5226   echo $ECHO_N "(cached) $ECHO_C" >&6
5227 else
5228   ac_check_lib_save_LIBS=$LIBS
5229 LIBS="-lm  $LIBS"
5230 cat >conftest.$ac_ext <<_ACEOF
5231 #line $LINENO "configure"
5232 #include "confdefs.h"
5233
5234
5235 #ifdef F77_DUMMY_MAIN
5236 #  ifdef __cplusplus
5237      extern "C"
5238 #  endif
5239    int F77_DUMMY_MAIN() { return 1; }
5240 #endif
5241 int
5242 main ()
5243 {
5244 main ();
5245   ;
5246   return 0;
5247 }
5248 _ACEOF
5249 rm -f conftest.$ac_objext conftest$ac_exeext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5251   (eval $ac_link) 2>&5
5252   ac_status=$?
5253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254   (exit $ac_status); } &&
5255          { ac_try='test -s conftest$ac_exeext'
5256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257   (eval $ac_try) 2>&5
5258   ac_status=$?
5259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260   (exit $ac_status); }; }; then
5261   ac_cv_lib_m_main=yes
5262 else
5263   echo "$as_me: failed program was:" >&5
5264 cat conftest.$ac_ext >&5
5265 ac_cv_lib_m_main=no
5266 fi
5267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5268 LIBS=$ac_check_lib_save_LIBS
5269 fi
5270 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5271 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5272 if test $ac_cv_lib_m_main = yes; then
5273   cat >>confdefs.h <<_ACEOF
5274 #define HAVE_LIBM 1
5275 _ACEOF
5276
5277   LIBS="-lm $LIBS"
5278
5279 fi
5280
5281
5282 echo "$as_me:$LINENO: checking for main in -ldl" >&5
5283 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
5284 if test "${ac_cv_lib_dl_main+set}" = set; then
5285   echo $ECHO_N "(cached) $ECHO_C" >&6
5286 else
5287   ac_check_lib_save_LIBS=$LIBS
5288 LIBS="-ldl  $LIBS"
5289 cat >conftest.$ac_ext <<_ACEOF
5290 #line $LINENO "configure"
5291 #include "confdefs.h"
5292
5293
5294 #ifdef F77_DUMMY_MAIN
5295 #  ifdef __cplusplus
5296      extern "C"
5297 #  endif
5298    int F77_DUMMY_MAIN() { return 1; }
5299 #endif
5300 int
5301 main ()
5302 {
5303 main ();
5304   ;
5305   return 0;
5306 }
5307 _ACEOF
5308 rm -f conftest.$ac_objext conftest$ac_exeext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5310   (eval $ac_link) 2>&5
5311   ac_status=$?
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); } &&
5314          { ac_try='test -s conftest$ac_exeext'
5315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316   (eval $ac_try) 2>&5
5317   ac_status=$?
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); }; }; then
5320   ac_cv_lib_dl_main=yes
5321 else
5322   echo "$as_me: failed program was:" >&5
5323 cat conftest.$ac_ext >&5
5324 ac_cv_lib_dl_main=no
5325 fi
5326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5327 LIBS=$ac_check_lib_save_LIBS
5328 fi
5329 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
5330 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
5331 if test $ac_cv_lib_dl_main = yes; then
5332   cat >>confdefs.h <<_ACEOF
5333 #define HAVE_LIBDL 1
5334 _ACEOF
5335
5336   LIBS="-ldl $LIBS"
5337
5338 fi
5339
5340
5341 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
5342 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
5343 if test "${ac_cv_lib_nsl_main+set}" = set; then
5344   echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346   ac_check_lib_save_LIBS=$LIBS
5347 LIBS="-lnsl  $LIBS"
5348 cat >conftest.$ac_ext <<_ACEOF
5349 #line $LINENO "configure"
5350 #include "confdefs.h"
5351
5352
5353 #ifdef F77_DUMMY_MAIN
5354 #  ifdef __cplusplus
5355      extern "C"
5356 #  endif
5357    int F77_DUMMY_MAIN() { return 1; }
5358 #endif
5359 int
5360 main ()
5361 {
5362 main ();
5363   ;
5364   return 0;
5365 }
5366 _ACEOF
5367 rm -f conftest.$ac_objext conftest$ac_exeext
5368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5369   (eval $ac_link) 2>&5
5370   ac_status=$?
5371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372   (exit $ac_status); } &&
5373          { ac_try='test -s conftest$ac_exeext'
5374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375   (eval $ac_try) 2>&5
5376   ac_status=$?
5377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378   (exit $ac_status); }; }; then
5379   ac_cv_lib_nsl_main=yes
5380 else
5381   echo "$as_me: failed program was:" >&5
5382 cat conftest.$ac_ext >&5
5383 ac_cv_lib_nsl_main=no
5384 fi
5385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5386 LIBS=$ac_check_lib_save_LIBS
5387 fi
5388 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5389 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5390 if test $ac_cv_lib_nsl_main = yes; then
5391   cat >>confdefs.h <<_ACEOF
5392 #define HAVE_LIBNSL 1
5393 _ACEOF
5394
5395   LIBS="-lnsl $LIBS"
5396
5397 fi
5398
5399
5400 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
5401 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
5402 if test "${ac_cv_lib_socket_main+set}" = set; then
5403   echo $ECHO_N "(cached) $ECHO_C" >&6
5404 else
5405   ac_check_lib_save_LIBS=$LIBS
5406 LIBS="-lsocket  $LIBS"
5407 cat >conftest.$ac_ext <<_ACEOF
5408 #line $LINENO "configure"
5409 #include "confdefs.h"
5410
5411
5412 #ifdef F77_DUMMY_MAIN
5413 #  ifdef __cplusplus
5414      extern "C"
5415 #  endif
5416    int F77_DUMMY_MAIN() { return 1; }
5417 #endif
5418 int
5419 main ()
5420 {
5421 main ();
5422   ;
5423   return 0;
5424 }
5425 _ACEOF
5426 rm -f conftest.$ac_objext conftest$ac_exeext
5427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5428   (eval $ac_link) 2>&5
5429   ac_status=$?
5430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431   (exit $ac_status); } &&
5432          { ac_try='test -s conftest$ac_exeext'
5433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434   (eval $ac_try) 2>&5
5435   ac_status=$?
5436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437   (exit $ac_status); }; }; then
5438   ac_cv_lib_socket_main=yes
5439 else
5440   echo "$as_me: failed program was:" >&5
5441 cat conftest.$ac_ext >&5
5442 ac_cv_lib_socket_main=no
5443 fi
5444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5445 LIBS=$ac_check_lib_save_LIBS
5446 fi
5447 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
5448 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
5449 if test $ac_cv_lib_socket_main = yes; then
5450   cat >>confdefs.h <<_ACEOF
5451 #define HAVE_LIBSOCKET 1
5452 _ACEOF
5453
5454   LIBS="-lsocket $LIBS"
5455
5456 fi
5457
5458
5459 echo "$as_me:$LINENO: checking for main in -lipc" >&5
5460 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
5461 if test "${ac_cv_lib_ipc_main+set}" = set; then
5462   echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464   ac_check_lib_save_LIBS=$LIBS
5465 LIBS="-lipc  $LIBS"
5466 cat >conftest.$ac_ext <<_ACEOF
5467 #line $LINENO "configure"
5468 #include "confdefs.h"
5469
5470
5471 #ifdef F77_DUMMY_MAIN
5472 #  ifdef __cplusplus
5473      extern "C"
5474 #  endif
5475    int F77_DUMMY_MAIN() { return 1; }
5476 #endif
5477 int
5478 main ()
5479 {
5480 main ();
5481   ;
5482   return 0;
5483 }
5484 _ACEOF
5485 rm -f conftest.$ac_objext conftest$ac_exeext
5486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5487   (eval $ac_link) 2>&5
5488   ac_status=$?
5489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490   (exit $ac_status); } &&
5491          { ac_try='test -s conftest$ac_exeext'
5492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493   (eval $ac_try) 2>&5
5494   ac_status=$?
5495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496   (exit $ac_status); }; }; then
5497   ac_cv_lib_ipc_main=yes
5498 else
5499   echo "$as_me: failed program was:" >&5
5500 cat conftest.$ac_ext >&5
5501 ac_cv_lib_ipc_main=no
5502 fi
5503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5504 LIBS=$ac_check_lib_save_LIBS
5505 fi
5506 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
5507 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
5508 if test $ac_cv_lib_ipc_main = yes; then
5509   cat >>confdefs.h <<_ACEOF
5510 #define HAVE_LIBIPC 1
5511 _ACEOF
5512
5513   LIBS="-lipc $LIBS"
5514
5515 fi
5516
5517
5518 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
5519 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
5520 if test "${ac_cv_lib_IPC_main+set}" = set; then
5521   echo $ECHO_N "(cached) $ECHO_C" >&6
5522 else
5523   ac_check_lib_save_LIBS=$LIBS
5524 LIBS="-lIPC  $LIBS"
5525 cat >conftest.$ac_ext <<_ACEOF
5526 #line $LINENO "configure"
5527 #include "confdefs.h"
5528
5529
5530 #ifdef F77_DUMMY_MAIN
5531 #  ifdef __cplusplus
5532      extern "C"
5533 #  endif
5534    int F77_DUMMY_MAIN() { return 1; }
5535 #endif
5536 int
5537 main ()
5538 {
5539 main ();
5540   ;
5541   return 0;
5542 }
5543 _ACEOF
5544 rm -f conftest.$ac_objext conftest$ac_exeext
5545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5546   (eval $ac_link) 2>&5
5547   ac_status=$?
5548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549   (exit $ac_status); } &&
5550          { ac_try='test -s conftest$ac_exeext'
5551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552   (eval $ac_try) 2>&5
5553   ac_status=$?
5554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555   (exit $ac_status); }; }; then
5556   ac_cv_lib_IPC_main=yes
5557 else
5558   echo "$as_me: failed program was:" >&5
5559 cat conftest.$ac_ext >&5
5560 ac_cv_lib_IPC_main=no
5561 fi
5562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5563 LIBS=$ac_check_lib_save_LIBS
5564 fi
5565 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
5566 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
5567 if test $ac_cv_lib_IPC_main = yes; then
5568   cat >>confdefs.h <<_ACEOF
5569 #define HAVE_LIBIPC 1
5570 _ACEOF
5571
5572   LIBS="-lIPC $LIBS"
5573
5574 fi
5575
5576
5577 echo "$as_me:$LINENO: checking for main in -llc" >&5
5578 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
5579 if test "${ac_cv_lib_lc_main+set}" = set; then
5580   echo $ECHO_N "(cached) $ECHO_C" >&6
5581 else
5582   ac_check_lib_save_LIBS=$LIBS
5583 LIBS="-llc  $LIBS"
5584 cat >conftest.$ac_ext <<_ACEOF
5585 #line $LINENO "configure"
5586 #include "confdefs.h"
5587
5588
5589 #ifdef F77_DUMMY_MAIN
5590 #  ifdef __cplusplus
5591      extern "C"
5592 #  endif
5593    int F77_DUMMY_MAIN() { return 1; }
5594 #endif
5595 int
5596 main ()
5597 {
5598 main ();
5599   ;
5600   return 0;
5601 }
5602 _ACEOF
5603 rm -f conftest.$ac_objext conftest$ac_exeext
5604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5605   (eval $ac_link) 2>&5
5606   ac_status=$?
5607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608   (exit $ac_status); } &&
5609          { ac_try='test -s conftest$ac_exeext'
5610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611   (eval $ac_try) 2>&5
5612   ac_status=$?
5613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614   (exit $ac_status); }; }; then
5615   ac_cv_lib_lc_main=yes
5616 else
5617   echo "$as_me: failed program was:" >&5
5618 cat conftest.$ac_ext >&5
5619 ac_cv_lib_lc_main=no
5620 fi
5621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5622 LIBS=$ac_check_lib_save_LIBS
5623 fi
5624 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
5625 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
5626 if test $ac_cv_lib_lc_main = yes; then
5627   cat >>confdefs.h <<_ACEOF
5628 #define HAVE_LIBLC 1
5629 _ACEOF
5630
5631   LIBS="-llc $LIBS"
5632
5633 fi
5634
5635
5636 echo "$as_me:$LINENO: checking for main in -ldld" >&5
5637 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
5638 if test "${ac_cv_lib_dld_main+set}" = set; then
5639   echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641   ac_check_lib_save_LIBS=$LIBS
5642 LIBS="-ldld  $LIBS"
5643 cat >conftest.$ac_ext <<_ACEOF
5644 #line $LINENO "configure"
5645 #include "confdefs.h"
5646
5647
5648 #ifdef F77_DUMMY_MAIN
5649 #  ifdef __cplusplus
5650      extern "C"
5651 #  endif
5652    int F77_DUMMY_MAIN() { return 1; }
5653 #endif
5654 int
5655 main ()
5656 {
5657 main ();
5658   ;
5659   return 0;
5660 }
5661 _ACEOF
5662 rm -f conftest.$ac_objext conftest$ac_exeext
5663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5664   (eval $ac_link) 2>&5
5665   ac_status=$?
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); } &&
5668          { ac_try='test -s conftest$ac_exeext'
5669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670   (eval $ac_try) 2>&5
5671   ac_status=$?
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); }; }; then
5674   ac_cv_lib_dld_main=yes
5675 else
5676   echo "$as_me: failed program was:" >&5
5677 cat conftest.$ac_ext >&5
5678 ac_cv_lib_dld_main=no
5679 fi
5680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5681 LIBS=$ac_check_lib_save_LIBS
5682 fi
5683 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5684 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5685 if test $ac_cv_lib_dld_main = yes; then
5686   cat >>confdefs.h <<_ACEOF
5687 #define HAVE_LIBDLD 1
5688 _ACEOF
5689
5690   LIBS="-ldld $LIBS"
5691
5692 fi
5693
5694
5695 echo "$as_me:$LINENO: checking for main in -lld" >&5
5696 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5697 if test "${ac_cv_lib_ld_main+set}" = set; then
5698   echo $ECHO_N "(cached) $ECHO_C" >&6
5699 else
5700   ac_check_lib_save_LIBS=$LIBS
5701 LIBS="-lld  $LIBS"
5702 cat >conftest.$ac_ext <<_ACEOF
5703 #line $LINENO "configure"
5704 #include "confdefs.h"
5705
5706
5707 #ifdef F77_DUMMY_MAIN
5708 #  ifdef __cplusplus
5709      extern "C"
5710 #  endif
5711    int F77_DUMMY_MAIN() { return 1; }
5712 #endif
5713 int
5714 main ()
5715 {
5716 main ();
5717   ;
5718   return 0;
5719 }
5720 _ACEOF
5721 rm -f conftest.$ac_objext conftest$ac_exeext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5723   (eval $ac_link) 2>&5
5724   ac_status=$?
5725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726   (exit $ac_status); } &&
5727          { ac_try='test -s conftest$ac_exeext'
5728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729   (eval $ac_try) 2>&5
5730   ac_status=$?
5731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732   (exit $ac_status); }; }; then
5733   ac_cv_lib_ld_main=yes
5734 else
5735   echo "$as_me: failed program was:" >&5
5736 cat conftest.$ac_ext >&5
5737 ac_cv_lib_ld_main=no
5738 fi
5739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5740 LIBS=$ac_check_lib_save_LIBS
5741 fi
5742 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5743 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5744 if test $ac_cv_lib_ld_main = yes; then
5745   cat >>confdefs.h <<_ACEOF
5746 #define HAVE_LIBLD 1
5747 _ACEOF
5748
5749   LIBS="-lld $LIBS"
5750
5751 fi
5752
5753
5754 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5755 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5756 if test "${ac_cv_lib_compat_main+set}" = set; then
5757   echo $ECHO_N "(cached) $ECHO_C" >&6
5758 else
5759   ac_check_lib_save_LIBS=$LIBS
5760 LIBS="-lcompat  $LIBS"
5761 cat >conftest.$ac_ext <<_ACEOF
5762 #line $LINENO "configure"
5763 #include "confdefs.h"
5764
5765
5766 #ifdef F77_DUMMY_MAIN
5767 #  ifdef __cplusplus
5768      extern "C"
5769 #  endif
5770    int F77_DUMMY_MAIN() { return 1; }
5771 #endif
5772 int
5773 main ()
5774 {
5775 main ();
5776   ;
5777   return 0;
5778 }
5779 _ACEOF
5780 rm -f conftest.$ac_objext conftest$ac_exeext
5781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5782   (eval $ac_link) 2>&5
5783   ac_status=$?
5784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785   (exit $ac_status); } &&
5786          { ac_try='test -s conftest$ac_exeext'
5787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788   (eval $ac_try) 2>&5
5789   ac_status=$?
5790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791   (exit $ac_status); }; }; then
5792   ac_cv_lib_compat_main=yes
5793 else
5794   echo "$as_me: failed program was:" >&5
5795 cat conftest.$ac_ext >&5
5796 ac_cv_lib_compat_main=no
5797 fi
5798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5799 LIBS=$ac_check_lib_save_LIBS
5800 fi
5801 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5802 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5803 if test $ac_cv_lib_compat_main = yes; then
5804   cat >>confdefs.h <<_ACEOF
5805 #define HAVE_LIBCOMPAT 1
5806 _ACEOF
5807
5808   LIBS="-lcompat $LIBS"
5809
5810 fi
5811
5812
5813 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5814 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5815 if test "${ac_cv_lib_BSD_main+set}" = set; then
5816   echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818   ac_check_lib_save_LIBS=$LIBS
5819 LIBS="-lBSD  $LIBS"
5820 cat >conftest.$ac_ext <<_ACEOF
5821 #line $LINENO "configure"
5822 #include "confdefs.h"
5823
5824
5825 #ifdef F77_DUMMY_MAIN
5826 #  ifdef __cplusplus
5827      extern "C"
5828 #  endif
5829    int F77_DUMMY_MAIN() { return 1; }
5830 #endif
5831 int
5832 main ()
5833 {
5834 main ();
5835   ;
5836   return 0;
5837 }
5838 _ACEOF
5839 rm -f conftest.$ac_objext conftest$ac_exeext
5840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5841   (eval $ac_link) 2>&5
5842   ac_status=$?
5843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844   (exit $ac_status); } &&
5845          { ac_try='test -s conftest$ac_exeext'
5846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847   (eval $ac_try) 2>&5
5848   ac_status=$?
5849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850   (exit $ac_status); }; }; then
5851   ac_cv_lib_BSD_main=yes
5852 else
5853   echo "$as_me: failed program was:" >&5
5854 cat conftest.$ac_ext >&5
5855 ac_cv_lib_BSD_main=no
5856 fi
5857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5858 LIBS=$ac_check_lib_save_LIBS
5859 fi
5860 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5861 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5862 if test $ac_cv_lib_BSD_main = yes; then
5863   cat >>confdefs.h <<_ACEOF
5864 #define HAVE_LIBBSD 1
5865 _ACEOF
5866
5867   LIBS="-lBSD $LIBS"
5868
5869 fi
5870
5871
5872 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5873 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5874 if test "${ac_cv_lib_gen_main+set}" = set; then
5875   echo $ECHO_N "(cached) $ECHO_C" >&6
5876 else
5877   ac_check_lib_save_LIBS=$LIBS
5878 LIBS="-lgen  $LIBS"
5879 cat >conftest.$ac_ext <<_ACEOF
5880 #line $LINENO "configure"
5881 #include "confdefs.h"
5882
5883
5884 #ifdef F77_DUMMY_MAIN
5885 #  ifdef __cplusplus
5886      extern "C"
5887 #  endif
5888    int F77_DUMMY_MAIN() { return 1; }
5889 #endif
5890 int
5891 main ()
5892 {
5893 main ();
5894   ;
5895   return 0;
5896 }
5897 _ACEOF
5898 rm -f conftest.$ac_objext conftest$ac_exeext
5899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5900   (eval $ac_link) 2>&5
5901   ac_status=$?
5902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903   (exit $ac_status); } &&
5904          { ac_try='test -s conftest$ac_exeext'
5905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5906   (eval $ac_try) 2>&5
5907   ac_status=$?
5908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909   (exit $ac_status); }; }; then
5910   ac_cv_lib_gen_main=yes
5911 else
5912   echo "$as_me: failed program was:" >&5
5913 cat conftest.$ac_ext >&5
5914 ac_cv_lib_gen_main=no
5915 fi
5916 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5917 LIBS=$ac_check_lib_save_LIBS
5918 fi
5919 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5920 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5921 if test $ac_cv_lib_gen_main = yes; then
5922   cat >>confdefs.h <<_ACEOF
5923 #define HAVE_LIBGEN 1
5924 _ACEOF
5925
5926   LIBS="-lgen $LIBS"
5927
5928 fi
5929
5930
5931 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5932 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5933 if test "${ac_cv_lib_PW_main+set}" = set; then
5934   echo $ECHO_N "(cached) $ECHO_C" >&6
5935 else
5936   ac_check_lib_save_LIBS=$LIBS
5937 LIBS="-lPW  $LIBS"
5938 cat >conftest.$ac_ext <<_ACEOF
5939 #line $LINENO "configure"
5940 #include "confdefs.h"
5941
5942
5943 #ifdef F77_DUMMY_MAIN
5944 #  ifdef __cplusplus
5945      extern "C"
5946 #  endif
5947    int F77_DUMMY_MAIN() { return 1; }
5948 #endif
5949 int
5950 main ()
5951 {
5952 main ();
5953   ;
5954   return 0;
5955 }
5956 _ACEOF
5957 rm -f conftest.$ac_objext conftest$ac_exeext
5958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5959   (eval $ac_link) 2>&5
5960   ac_status=$?
5961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962   (exit $ac_status); } &&
5963          { ac_try='test -s conftest$ac_exeext'
5964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965   (eval $ac_try) 2>&5
5966   ac_status=$?
5967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968   (exit $ac_status); }; }; then
5969   ac_cv_lib_PW_main=yes
5970 else
5971   echo "$as_me: failed program was:" >&5
5972 cat conftest.$ac_ext >&5
5973 ac_cv_lib_PW_main=no
5974 fi
5975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5976 LIBS=$ac_check_lib_save_LIBS
5977 fi
5978 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5979 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5980 if test $ac_cv_lib_PW_main = yes; then
5981   cat >>confdefs.h <<_ACEOF
5982 #define HAVE_LIBPW 1
5983 _ACEOF
5984
5985   LIBS="-lPW $LIBS"
5986
5987 fi
5988
5989
5990 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5991 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5992 if test "${ac_cv_lib_resolv_main+set}" = set; then
5993   echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995   ac_check_lib_save_LIBS=$LIBS
5996 LIBS="-lresolv  $LIBS"
5997 cat >conftest.$ac_ext <<_ACEOF
5998 #line $LINENO "configure"
5999 #include "confdefs.h"
6000
6001
6002 #ifdef F77_DUMMY_MAIN
6003 #  ifdef __cplusplus
6004      extern "C"
6005 #  endif
6006    int F77_DUMMY_MAIN() { return 1; }
6007 #endif
6008 int
6009 main ()
6010 {
6011 main ();
6012   ;
6013   return 0;
6014 }
6015 _ACEOF
6016 rm -f conftest.$ac_objext conftest$ac_exeext
6017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6018   (eval $ac_link) 2>&5
6019   ac_status=$?
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); } &&
6022          { ac_try='test -s conftest$ac_exeext'
6023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024   (eval $ac_try) 2>&5
6025   ac_status=$?
6026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027   (exit $ac_status); }; }; then
6028   ac_cv_lib_resolv_main=yes
6029 else
6030   echo "$as_me: failed program was:" >&5
6031 cat conftest.$ac_ext >&5
6032 ac_cv_lib_resolv_main=no
6033 fi
6034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6035 LIBS=$ac_check_lib_save_LIBS
6036 fi
6037 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
6038 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
6039 if test $ac_cv_lib_resolv_main = yes; then
6040   cat >>confdefs.h <<_ACEOF
6041 #define HAVE_LIBRESOLV 1
6042 _ACEOF
6043
6044   LIBS="-lresolv $LIBS"
6045
6046 fi
6047
6048 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
6049 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
6050 if test "${ac_cv_search_getopt_long+set}" = set; then
6051   echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053   ac_func_search_save_LIBS=$LIBS
6054 ac_cv_search_getopt_long=no
6055 cat >conftest.$ac_ext <<_ACEOF
6056 #line $LINENO "configure"
6057 #include "confdefs.h"
6058
6059 /* Override any gcc2 internal prototype to avoid an error.  */
6060 #ifdef __cplusplus
6061 extern "C"
6062 #endif
6063 /* We use char because int might match the return type of a gcc2
6064    builtin and then its argument prototype would still apply.  */
6065 char getopt_long ();
6066 #ifdef F77_DUMMY_MAIN
6067 #  ifdef __cplusplus
6068      extern "C"
6069 #  endif
6070    int F77_DUMMY_MAIN() { return 1; }
6071 #endif
6072 int
6073 main ()
6074 {
6075 getopt_long ();
6076   ;
6077   return 0;
6078 }
6079 _ACEOF
6080 rm -f conftest.$ac_objext conftest$ac_exeext
6081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6082   (eval $ac_link) 2>&5
6083   ac_status=$?
6084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085   (exit $ac_status); } &&
6086          { ac_try='test -s conftest$ac_exeext'
6087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088   (eval $ac_try) 2>&5
6089   ac_status=$?
6090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091   (exit $ac_status); }; }; then
6092   ac_cv_search_getopt_long="none required"
6093 else
6094   echo "$as_me: failed program was:" >&5
6095 cat conftest.$ac_ext >&5
6096 fi
6097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6098 if test "$ac_cv_search_getopt_long" = no; then
6099   for ac_lib in getopt; do
6100     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6101     cat >conftest.$ac_ext <<_ACEOF
6102 #line $LINENO "configure"
6103 #include "confdefs.h"
6104
6105 /* Override any gcc2 internal prototype to avoid an error.  */
6106 #ifdef __cplusplus
6107 extern "C"
6108 #endif
6109 /* We use char because int might match the return type of a gcc2
6110    builtin and then its argument prototype would still apply.  */
6111 char getopt_long ();
6112 #ifdef F77_DUMMY_MAIN
6113 #  ifdef __cplusplus
6114      extern "C"
6115 #  endif
6116    int F77_DUMMY_MAIN() { return 1; }
6117 #endif
6118 int
6119 main ()
6120 {
6121 getopt_long ();
6122   ;
6123   return 0;
6124 }
6125 _ACEOF
6126 rm -f conftest.$ac_objext conftest$ac_exeext
6127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6128   (eval $ac_link) 2>&5
6129   ac_status=$?
6130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131   (exit $ac_status); } &&
6132          { ac_try='test -s conftest$ac_exeext'
6133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134   (eval $ac_try) 2>&5
6135   ac_status=$?
6136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137   (exit $ac_status); }; }; then
6138   ac_cv_search_getopt_long="-l$ac_lib"
6139 break
6140 else
6141   echo "$as_me: failed program was:" >&5
6142 cat conftest.$ac_ext >&5
6143 fi
6144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6145   done
6146 fi
6147 LIBS=$ac_func_search_save_LIBS
6148 fi
6149 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
6150 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
6151 if test "$ac_cv_search_getopt_long" != no; then
6152   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
6153
6154 fi
6155
6156 # QNX:
6157
6158 echo "$as_me:$LINENO: checking for main in -lunix" >&5
6159 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
6160 if test "${ac_cv_lib_unix_main+set}" = set; then
6161   echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6163   ac_check_lib_save_LIBS=$LIBS
6164 LIBS="-lunix  $LIBS"
6165 cat >conftest.$ac_ext <<_ACEOF
6166 #line $LINENO "configure"
6167 #include "confdefs.h"
6168
6169
6170 #ifdef F77_DUMMY_MAIN
6171 #  ifdef __cplusplus
6172      extern "C"
6173 #  endif
6174    int F77_DUMMY_MAIN() { return 1; }
6175 #endif
6176 int
6177 main ()
6178 {
6179 main ();
6180   ;
6181   return 0;
6182 }
6183 _ACEOF
6184 rm -f conftest.$ac_objext conftest$ac_exeext
6185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6186   (eval $ac_link) 2>&5
6187   ac_status=$?
6188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189   (exit $ac_status); } &&
6190          { ac_try='test -s conftest$ac_exeext'
6191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192   (eval $ac_try) 2>&5
6193   ac_status=$?
6194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195   (exit $ac_status); }; }; then
6196   ac_cv_lib_unix_main=yes
6197 else
6198   echo "$as_me: failed program was:" >&5
6199 cat conftest.$ac_ext >&5
6200 ac_cv_lib_unix_main=no
6201 fi
6202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6203 LIBS=$ac_check_lib_save_LIBS
6204 fi
6205 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
6206 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
6207 if test $ac_cv_lib_unix_main = yes; then
6208   cat >>confdefs.h <<_ACEOF
6209 #define HAVE_LIBUNIX 1
6210 _ACEOF
6211
6212   LIBS="-lunix $LIBS"
6213
6214 fi
6215
6216 echo "$as_me:$LINENO: checking for library containing crypt" >&5
6217 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
6218 if test "${ac_cv_search_crypt+set}" = set; then
6219   echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221   ac_func_search_save_LIBS=$LIBS
6222 ac_cv_search_crypt=no
6223 cat >conftest.$ac_ext <<_ACEOF
6224 #line $LINENO "configure"
6225 #include "confdefs.h"
6226
6227 /* Override any gcc2 internal prototype to avoid an error.  */
6228 #ifdef __cplusplus
6229 extern "C"
6230 #endif
6231 /* We use char because int might match the return type of a gcc2
6232    builtin and then its argument prototype would still apply.  */
6233 char crypt ();
6234 #ifdef F77_DUMMY_MAIN
6235 #  ifdef __cplusplus
6236      extern "C"
6237 #  endif
6238    int F77_DUMMY_MAIN() { return 1; }
6239 #endif
6240 int
6241 main ()
6242 {
6243 crypt ();
6244   ;
6245   return 0;
6246 }
6247 _ACEOF
6248 rm -f conftest.$ac_objext conftest$ac_exeext
6249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6250   (eval $ac_link) 2>&5
6251   ac_status=$?
6252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253   (exit $ac_status); } &&
6254          { ac_try='test -s conftest$ac_exeext'
6255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256   (eval $ac_try) 2>&5
6257   ac_status=$?
6258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259   (exit $ac_status); }; }; then
6260   ac_cv_search_crypt="none required"
6261 else
6262   echo "$as_me: failed program was:" >&5
6263 cat conftest.$ac_ext >&5
6264 fi
6265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6266 if test "$ac_cv_search_crypt" = no; then
6267   for ac_lib in crypt; do
6268     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6269     cat >conftest.$ac_ext <<_ACEOF
6270 #line $LINENO "configure"
6271 #include "confdefs.h"
6272
6273 /* Override any gcc2 internal prototype to avoid an error.  */
6274 #ifdef __cplusplus
6275 extern "C"
6276 #endif
6277 /* We use char because int might match the return type of a gcc2
6278    builtin and then its argument prototype would still apply.  */
6279 char crypt ();
6280 #ifdef F77_DUMMY_MAIN
6281 #  ifdef __cplusplus
6282      extern "C"
6283 #  endif
6284    int F77_DUMMY_MAIN() { return 1; }
6285 #endif
6286 int
6287 main ()
6288 {
6289 crypt ();
6290   ;
6291   return 0;
6292 }
6293 _ACEOF
6294 rm -f conftest.$ac_objext conftest$ac_exeext
6295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6296   (eval $ac_link) 2>&5
6297   ac_status=$?
6298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299   (exit $ac_status); } &&
6300          { ac_try='test -s conftest$ac_exeext'
6301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302   (eval $ac_try) 2>&5
6303   ac_status=$?
6304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305   (exit $ac_status); }; }; then
6306   ac_cv_search_crypt="-l$ac_lib"
6307 break
6308 else
6309   echo "$as_me: failed program was:" >&5
6310 cat conftest.$ac_ext >&5
6311 fi
6312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6313   done
6314 fi
6315 LIBS=$ac_func_search_save_LIBS
6316 fi
6317 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6318 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6319 if test "$ac_cv_search_crypt" != no; then
6320   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6321
6322 fi
6323
6324 # BeOS:
6325
6326 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
6327 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
6328 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
6329   echo $ECHO_N "(cached) $ECHO_C" >&6
6330 else
6331   ac_check_lib_save_LIBS=$LIBS
6332 LIBS="-lbind  $LIBS"
6333 cat >conftest.$ac_ext <<_ACEOF
6334 #line $LINENO "configure"
6335 #include "confdefs.h"
6336
6337 /* Override any gcc2 internal prototype to avoid an error.  */
6338 #ifdef __cplusplus
6339 extern "C"
6340 #endif
6341 /* We use char because int might match the return type of a gcc2
6342    builtin and then its argument prototype would still apply.  */
6343 char __inet_ntoa ();
6344 #ifdef F77_DUMMY_MAIN
6345 #  ifdef __cplusplus
6346      extern "C"
6347 #  endif
6348    int F77_DUMMY_MAIN() { return 1; }
6349 #endif
6350 int
6351 main ()
6352 {
6353 __inet_ntoa ();
6354   ;
6355   return 0;
6356 }
6357 _ACEOF
6358 rm -f conftest.$ac_objext conftest$ac_exeext
6359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6360   (eval $ac_link) 2>&5
6361   ac_status=$?
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); } &&
6364          { ac_try='test -s conftest$ac_exeext'
6365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366   (eval $ac_try) 2>&5
6367   ac_status=$?
6368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369   (exit $ac_status); }; }; then
6370   ac_cv_lib_bind___inet_ntoa=yes
6371 else
6372   echo "$as_me: failed program was:" >&5
6373 cat conftest.$ac_ext >&5
6374 ac_cv_lib_bind___inet_ntoa=no
6375 fi
6376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6377 LIBS=$ac_check_lib_save_LIBS
6378 fi
6379 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
6380 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
6381 if test $ac_cv_lib_bind___inet_ntoa = yes; then
6382   cat >>confdefs.h <<_ACEOF
6383 #define HAVE_LIBBIND 1
6384 _ACEOF
6385
6386   LIBS="-lbind $LIBS"
6387
6388 fi
6389
6390 # Solaris:
6391 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6392 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6393 if test "${ac_cv_search_fdatasync+set}" = set; then
6394   echo $ECHO_N "(cached) $ECHO_C" >&6
6395 else
6396   ac_func_search_save_LIBS=$LIBS
6397 ac_cv_search_fdatasync=no
6398 cat >conftest.$ac_ext <<_ACEOF
6399 #line $LINENO "configure"
6400 #include "confdefs.h"
6401
6402 /* Override any gcc2 internal prototype to avoid an error.  */
6403 #ifdef __cplusplus
6404 extern "C"
6405 #endif
6406 /* We use char because int might match the return type of a gcc2
6407    builtin and then its argument prototype would still apply.  */
6408 char fdatasync ();
6409 #ifdef F77_DUMMY_MAIN
6410 #  ifdef __cplusplus
6411      extern "C"
6412 #  endif
6413    int F77_DUMMY_MAIN() { return 1; }
6414 #endif
6415 int
6416 main ()
6417 {
6418 fdatasync ();
6419   ;
6420   return 0;
6421 }
6422 _ACEOF
6423 rm -f conftest.$ac_objext conftest$ac_exeext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6425   (eval $ac_link) 2>&5
6426   ac_status=$?
6427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428   (exit $ac_status); } &&
6429          { ac_try='test -s conftest$ac_exeext'
6430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431   (eval $ac_try) 2>&5
6432   ac_status=$?
6433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434   (exit $ac_status); }; }; then
6435   ac_cv_search_fdatasync="none required"
6436 else
6437   echo "$as_me: failed program was:" >&5
6438 cat conftest.$ac_ext >&5
6439 fi
6440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6441 if test "$ac_cv_search_fdatasync" = no; then
6442   for ac_lib in rt posix4; do
6443     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6444     cat >conftest.$ac_ext <<_ACEOF
6445 #line $LINENO "configure"
6446 #include "confdefs.h"
6447
6448 /* Override any gcc2 internal prototype to avoid an error.  */
6449 #ifdef __cplusplus
6450 extern "C"
6451 #endif
6452 /* We use char because int might match the return type of a gcc2
6453    builtin and then its argument prototype would still apply.  */
6454 char fdatasync ();
6455 #ifdef F77_DUMMY_MAIN
6456 #  ifdef __cplusplus
6457      extern "C"
6458 #  endif
6459    int F77_DUMMY_MAIN() { return 1; }
6460 #endif
6461 int
6462 main ()
6463 {
6464 fdatasync ();
6465   ;
6466   return 0;
6467 }
6468 _ACEOF
6469 rm -f conftest.$ac_objext conftest$ac_exeext
6470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6471   (eval $ac_link) 2>&5
6472   ac_status=$?
6473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474   (exit $ac_status); } &&
6475          { ac_try='test -s conftest$ac_exeext'
6476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477   (eval $ac_try) 2>&5
6478   ac_status=$?
6479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480   (exit $ac_status); }; }; then
6481   ac_cv_search_fdatasync="-l$ac_lib"
6482 break
6483 else
6484   echo "$as_me: failed program was:" >&5
6485 cat conftest.$ac_ext >&5
6486 fi
6487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6488   done
6489 fi
6490 LIBS=$ac_func_search_save_LIBS
6491 fi
6492 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6493 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6494 if test "$ac_cv_search_fdatasync" != no; then
6495   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6496
6497 fi
6498
6499
6500 if test "$with_readline" = yes; then
6501
6502 echo "$as_me:$LINENO: checking for readline" >&5
6503 echo $ECHO_N "checking for readline... $ECHO_C" >&6
6504
6505 if test "${pgac_cv_check_readline+set}" = set; then
6506   echo $ECHO_N "(cached) $ECHO_C" >&6
6507 else
6508   pgac_cv_check_readline=no
6509 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6510   for pgac_rllib in -lreadline -ledit ; do
6511     pgac_save_LIBS=$LIBS
6512     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
6513     cat >conftest.$ac_ext <<_ACEOF
6514 #line $LINENO "configure"
6515 #include "confdefs.h"
6516
6517 /* Override any gcc2 internal prototype to avoid an error.  */
6518 #ifdef __cplusplus
6519 extern "C"
6520 #endif
6521 /* We use char because int might match the return type of a gcc2
6522    builtin and then its argument prototype would still apply.  */
6523 char readline ();
6524 #ifdef F77_DUMMY_MAIN
6525 #  ifdef __cplusplus
6526      extern "C"
6527 #  endif
6528    int F77_DUMMY_MAIN() { return 1; }
6529 #endif
6530 int
6531 main ()
6532 {
6533 readline ();
6534   ;
6535   return 0;
6536 }
6537 _ACEOF
6538 rm -f conftest.$ac_objext conftest$ac_exeext
6539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6540   (eval $ac_link) 2>&5
6541   ac_status=$?
6542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543   (exit $ac_status); } &&
6544          { ac_try='test -s conftest$ac_exeext'
6545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546   (eval $ac_try) 2>&5
6547   ac_status=$?
6548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549   (exit $ac_status); }; }; then
6550
6551       # NetBSD and OpenBSD have a broken linker that does not
6552       # recognize dependent libraries
6553       case $host_os in netbsd* | openbsd* )
6554         case $pgac_lib in
6555           *curses*) ;;
6556           *) pgac_lib=" -lcurses" ;;
6557         esac
6558       esac
6559
6560       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6561       break 2
6562
6563 else
6564   echo "$as_me: failed program was:" >&5
6565 cat conftest.$ac_ext >&5
6566 fi
6567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6568     LIBS=$pgac_save_LIBS
6569   done
6570 done
6571 LIBS=$pgac_save_LIBS
6572
6573 fi
6574
6575 if test "$pgac_cv_check_readline" != no ; then
6576
6577 cat >>confdefs.h <<\_ACEOF
6578 #define HAVE_LIBREADLINE 1
6579 _ACEOF
6580
6581   LIBS="$pgac_cv_check_readline $LIBS"
6582   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6583 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6584 else
6585   echo "$as_me:$LINENO: result: no" >&5
6586 echo "${ECHO_T}no" >&6
6587 fi
6588   if test x"$pgac_cv_check_readline" = x"no"; then
6589     { { echo "$as_me:$LINENO: error: readline library not found
6590 Use --without-readline to disable readline support." >&5
6591 echo "$as_me: error: readline library not found
6592 Use --without-readline to disable readline support." >&2;}
6593    { (exit 1); exit 1; }; }
6594   fi
6595 fi
6596
6597 if test "$with_zlib" = yes; then
6598
6599 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6600 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6601 if test "${ac_cv_lib_z_inflate+set}" = set; then
6602   echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604   ac_check_lib_save_LIBS=$LIBS
6605 LIBS="-lz  $LIBS"
6606 cat >conftest.$ac_ext <<_ACEOF
6607 #line $LINENO "configure"
6608 #include "confdefs.h"
6609
6610 /* Override any gcc2 internal prototype to avoid an error.  */
6611 #ifdef __cplusplus
6612 extern "C"
6613 #endif
6614 /* We use char because int might match the return type of a gcc2
6615    builtin and then its argument prototype would still apply.  */
6616 char inflate ();
6617 #ifdef F77_DUMMY_MAIN
6618 #  ifdef __cplusplus
6619      extern "C"
6620 #  endif
6621    int F77_DUMMY_MAIN() { return 1; }
6622 #endif
6623 int
6624 main ()
6625 {
6626 inflate ();
6627   ;
6628   return 0;
6629 }
6630 _ACEOF
6631 rm -f conftest.$ac_objext conftest$ac_exeext
6632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6633   (eval $ac_link) 2>&5
6634   ac_status=$?
6635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636   (exit $ac_status); } &&
6637          { ac_try='test -s conftest$ac_exeext'
6638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639   (eval $ac_try) 2>&5
6640   ac_status=$?
6641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642   (exit $ac_status); }; }; then
6643   ac_cv_lib_z_inflate=yes
6644 else
6645   echo "$as_me: failed program was:" >&5
6646 cat conftest.$ac_ext >&5
6647 ac_cv_lib_z_inflate=no
6648 fi
6649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6650 LIBS=$ac_check_lib_save_LIBS
6651 fi
6652 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6653 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6654 if test $ac_cv_lib_z_inflate = yes; then
6655   cat >>confdefs.h <<_ACEOF
6656 #define HAVE_LIBZ 1
6657 _ACEOF
6658
6659   LIBS="-lz $LIBS"
6660
6661 else
6662   { { echo "$as_me:$LINENO: error: zlib library not found
6663 Use --without-zlib to disable zlib support." >&5
6664 echo "$as_me: error: zlib library not found
6665 Use --without-zlib to disable zlib support." >&2;}
6666    { (exit 1); exit 1; }; }
6667 fi
6668
6669 fi
6670
6671 if test "$with_krb4" = yes ; then
6672
6673 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6674 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6675 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6676   echo $ECHO_N "(cached) $ECHO_C" >&6
6677 else
6678   ac_check_lib_save_LIBS=$LIBS
6679 LIBS="-ldes  $LIBS"
6680 cat >conftest.$ac_ext <<_ACEOF
6681 #line $LINENO "configure"
6682 #include "confdefs.h"
6683
6684 /* Override any gcc2 internal prototype to avoid an error.  */
6685 #ifdef __cplusplus
6686 extern "C"
6687 #endif
6688 /* We use char because int might match the return type of a gcc2
6689    builtin and then its argument prototype would still apply.  */
6690 char des_encrypt ();
6691 #ifdef F77_DUMMY_MAIN
6692 #  ifdef __cplusplus
6693      extern "C"
6694 #  endif
6695    int F77_DUMMY_MAIN() { return 1; }
6696 #endif
6697 int
6698 main ()
6699 {
6700 des_encrypt ();
6701   ;
6702   return 0;
6703 }
6704 _ACEOF
6705 rm -f conftest.$ac_objext conftest$ac_exeext
6706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6707   (eval $ac_link) 2>&5
6708   ac_status=$?
6709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710   (exit $ac_status); } &&
6711          { ac_try='test -s conftest$ac_exeext'
6712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713   (eval $ac_try) 2>&5
6714   ac_status=$?
6715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716   (exit $ac_status); }; }; then
6717   ac_cv_lib_des_des_encrypt=yes
6718 else
6719   echo "$as_me: failed program was:" >&5
6720 cat conftest.$ac_ext >&5
6721 ac_cv_lib_des_des_encrypt=no
6722 fi
6723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6724 LIBS=$ac_check_lib_save_LIBS
6725 fi
6726 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6727 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6728 if test $ac_cv_lib_des_des_encrypt = yes; then
6729   cat >>confdefs.h <<_ACEOF
6730 #define HAVE_LIBDES 1
6731 _ACEOF
6732
6733   LIBS="-ldes $LIBS"
6734
6735 else
6736   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6737 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6738    { (exit 1); exit 1; }; }
6739 fi
6740
6741
6742 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6743 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6744 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6745   echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747   ac_check_lib_save_LIBS=$LIBS
6748 LIBS="-lkrb  $LIBS"
6749 cat >conftest.$ac_ext <<_ACEOF
6750 #line $LINENO "configure"
6751 #include "confdefs.h"
6752
6753 /* Override any gcc2 internal prototype to avoid an error.  */
6754 #ifdef __cplusplus
6755 extern "C"
6756 #endif
6757 /* We use char because int might match the return type of a gcc2
6758    builtin and then its argument prototype would still apply.  */
6759 char krb_sendauth ();
6760 #ifdef F77_DUMMY_MAIN
6761 #  ifdef __cplusplus
6762      extern "C"
6763 #  endif
6764    int F77_DUMMY_MAIN() { return 1; }
6765 #endif
6766 int
6767 main ()
6768 {
6769 krb_sendauth ();
6770   ;
6771   return 0;
6772 }
6773 _ACEOF
6774 rm -f conftest.$ac_objext conftest$ac_exeext
6775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6776   (eval $ac_link) 2>&5
6777   ac_status=$?
6778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779   (exit $ac_status); } &&
6780          { ac_try='test -s conftest$ac_exeext'
6781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782   (eval $ac_try) 2>&5
6783   ac_status=$?
6784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785   (exit $ac_status); }; }; then
6786   ac_cv_lib_krb_krb_sendauth=yes
6787 else
6788   echo "$as_me: failed program was:" >&5
6789 cat conftest.$ac_ext >&5
6790 ac_cv_lib_krb_krb_sendauth=no
6791 fi
6792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6793 LIBS=$ac_check_lib_save_LIBS
6794 fi
6795 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6796 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6797 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6798   cat >>confdefs.h <<_ACEOF
6799 #define HAVE_LIBKRB 1
6800 _ACEOF
6801
6802   LIBS="-lkrb $LIBS"
6803
6804 else
6805   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6806 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6807    { (exit 1); exit 1; }; }
6808 fi
6809
6810 fi
6811
6812 if test "$with_krb5" = yes ; then
6813   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6814 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6815 if test "${ac_cv_search_com_err+set}" = set; then
6816   echo $ECHO_N "(cached) $ECHO_C" >&6
6817 else
6818   ac_func_search_save_LIBS=$LIBS
6819 ac_cv_search_com_err=no
6820 cat >conftest.$ac_ext <<_ACEOF
6821 #line $LINENO "configure"
6822 #include "confdefs.h"
6823
6824 /* Override any gcc2 internal prototype to avoid an error.  */
6825 #ifdef __cplusplus
6826 extern "C"
6827 #endif
6828 /* We use char because int might match the return type of a gcc2
6829    builtin and then its argument prototype would still apply.  */
6830 char com_err ();
6831 #ifdef F77_DUMMY_MAIN
6832 #  ifdef __cplusplus
6833      extern "C"
6834 #  endif
6835    int F77_DUMMY_MAIN() { return 1; }
6836 #endif
6837 int
6838 main ()
6839 {
6840 com_err ();
6841   ;
6842   return 0;
6843 }
6844 _ACEOF
6845 rm -f conftest.$ac_objext conftest$ac_exeext
6846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6847   (eval $ac_link) 2>&5
6848   ac_status=$?
6849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850   (exit $ac_status); } &&
6851          { ac_try='test -s conftest$ac_exeext'
6852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853   (eval $ac_try) 2>&5
6854   ac_status=$?
6855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856   (exit $ac_status); }; }; then
6857   ac_cv_search_com_err="none required"
6858 else
6859   echo "$as_me: failed program was:" >&5
6860 cat conftest.$ac_ext >&5
6861 fi
6862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6863 if test "$ac_cv_search_com_err" = no; then
6864   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6865     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6866     cat >conftest.$ac_ext <<_ACEOF
6867 #line $LINENO "configure"
6868 #include "confdefs.h"
6869
6870 /* Override any gcc2 internal prototype to avoid an error.  */
6871 #ifdef __cplusplus
6872 extern "C"
6873 #endif
6874 /* We use char because int might match the return type of a gcc2
6875    builtin and then its argument prototype would still apply.  */
6876 char com_err ();
6877 #ifdef F77_DUMMY_MAIN
6878 #  ifdef __cplusplus
6879      extern "C"
6880 #  endif
6881    int F77_DUMMY_MAIN() { return 1; }
6882 #endif
6883 int
6884 main ()
6885 {
6886 com_err ();
6887   ;
6888   return 0;
6889 }
6890 _ACEOF
6891 rm -f conftest.$ac_objext conftest$ac_exeext
6892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6893   (eval $ac_link) 2>&5
6894   ac_status=$?
6895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896   (exit $ac_status); } &&
6897          { ac_try='test -s conftest$ac_exeext'
6898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899   (eval $ac_try) 2>&5
6900   ac_status=$?
6901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902   (exit $ac_status); }; }; then
6903   ac_cv_search_com_err="-l$ac_lib"
6904 break
6905 else
6906   echo "$as_me: failed program was:" >&5
6907 cat conftest.$ac_ext >&5
6908 fi
6909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6910   done
6911 fi
6912 LIBS=$ac_func_search_save_LIBS
6913 fi
6914 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6915 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6916 if test "$ac_cv_search_com_err" != no; then
6917   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6918
6919 else
6920   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6921 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6922    { (exit 1); exit 1; }; }
6923 fi
6924
6925   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6926 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6927 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6928   echo $ECHO_N "(cached) $ECHO_C" >&6
6929 else
6930   ac_func_search_save_LIBS=$LIBS
6931 ac_cv_search_krb5_encrypt=no
6932 cat >conftest.$ac_ext <<_ACEOF
6933 #line $LINENO "configure"
6934 #include "confdefs.h"
6935
6936 /* Override any gcc2 internal prototype to avoid an error.  */
6937 #ifdef __cplusplus
6938 extern "C"
6939 #endif
6940 /* We use char because int might match the return type of a gcc2
6941    builtin and then its argument prototype would still apply.  */
6942 char krb5_encrypt ();
6943 #ifdef F77_DUMMY_MAIN
6944 #  ifdef __cplusplus
6945      extern "C"
6946 #  endif
6947    int F77_DUMMY_MAIN() { return 1; }
6948 #endif
6949 int
6950 main ()
6951 {
6952 krb5_encrypt ();
6953   ;
6954   return 0;
6955 }
6956 _ACEOF
6957 rm -f conftest.$ac_objext conftest$ac_exeext
6958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6959   (eval $ac_link) 2>&5
6960   ac_status=$?
6961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962   (exit $ac_status); } &&
6963          { ac_try='test -s conftest$ac_exeext'
6964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965   (eval $ac_try) 2>&5
6966   ac_status=$?
6967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968   (exit $ac_status); }; }; then
6969   ac_cv_search_krb5_encrypt="none required"
6970 else
6971   echo "$as_me: failed program was:" >&5
6972 cat conftest.$ac_ext >&5
6973 fi
6974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6975 if test "$ac_cv_search_krb5_encrypt" = no; then
6976   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6977     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6978     cat >conftest.$ac_ext <<_ACEOF
6979 #line $LINENO "configure"
6980 #include "confdefs.h"
6981
6982 /* Override any gcc2 internal prototype to avoid an error.  */
6983 #ifdef __cplusplus
6984 extern "C"
6985 #endif
6986 /* We use char because int might match the return type of a gcc2
6987    builtin and then its argument prototype would still apply.  */
6988 char krb5_encrypt ();
6989 #ifdef F77_DUMMY_MAIN
6990 #  ifdef __cplusplus
6991      extern "C"
6992 #  endif
6993    int F77_DUMMY_MAIN() { return 1; }
6994 #endif
6995 int
6996 main ()
6997 {
6998 krb5_encrypt ();
6999   ;
7000   return 0;
7001 }
7002 _ACEOF
7003 rm -f conftest.$ac_objext conftest$ac_exeext
7004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7005   (eval $ac_link) 2>&5
7006   ac_status=$?
7007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008   (exit $ac_status); } &&
7009          { ac_try='test -s conftest$ac_exeext'
7010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011   (eval $ac_try) 2>&5
7012   ac_status=$?
7013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014   (exit $ac_status); }; }; then
7015   ac_cv_search_krb5_encrypt="-l$ac_lib"
7016 break
7017 else
7018   echo "$as_me: failed program was:" >&5
7019 cat conftest.$ac_ext >&5
7020 fi
7021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7022   done
7023 fi
7024 LIBS=$ac_func_search_save_LIBS
7025 fi
7026 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
7027 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
7028 if test "$ac_cv_search_krb5_encrypt" != no; then
7029   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
7030
7031 else
7032   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
7033 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
7034    { (exit 1); exit 1; }; }
7035 fi
7036
7037   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
7038 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
7039 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7040   echo $ECHO_N "(cached) $ECHO_C" >&6
7041 else
7042   ac_func_search_save_LIBS=$LIBS
7043 ac_cv_search_krb5_sendauth=no
7044 cat >conftest.$ac_ext <<_ACEOF
7045 #line $LINENO "configure"
7046 #include "confdefs.h"
7047
7048 /* Override any gcc2 internal prototype to avoid an error.  */
7049 #ifdef __cplusplus
7050 extern "C"
7051 #endif
7052 /* We use char because int might match the return type of a gcc2
7053    builtin and then its argument prototype would still apply.  */
7054 char krb5_sendauth ();
7055 #ifdef F77_DUMMY_MAIN
7056 #  ifdef __cplusplus
7057      extern "C"
7058 #  endif
7059    int F77_DUMMY_MAIN() { return 1; }
7060 #endif
7061 int
7062 main ()
7063 {
7064 krb5_sendauth ();
7065   ;
7066   return 0;
7067 }
7068 _ACEOF
7069 rm -f conftest.$ac_objext conftest$ac_exeext
7070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7071   (eval $ac_link) 2>&5
7072   ac_status=$?
7073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074   (exit $ac_status); } &&
7075          { ac_try='test -s conftest$ac_exeext'
7076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077   (eval $ac_try) 2>&5
7078   ac_status=$?
7079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080   (exit $ac_status); }; }; then
7081   ac_cv_search_krb5_sendauth="none required"
7082 else
7083   echo "$as_me: failed program was:" >&5
7084 cat conftest.$ac_ext >&5
7085 fi
7086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7087 if test "$ac_cv_search_krb5_sendauth" = no; then
7088   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
7089     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7090     cat >conftest.$ac_ext <<_ACEOF
7091 #line $LINENO "configure"
7092 #include "confdefs.h"
7093
7094 /* Override any gcc2 internal prototype to avoid an error.  */
7095 #ifdef __cplusplus
7096 extern "C"
7097 #endif
7098 /* We use char because int might match the return type of a gcc2
7099    builtin and then its argument prototype would still apply.  */
7100 char krb5_sendauth ();
7101 #ifdef F77_DUMMY_MAIN
7102 #  ifdef __cplusplus
7103      extern "C"
7104 #  endif
7105    int F77_DUMMY_MAIN() { return 1; }
7106 #endif
7107 int
7108 main ()
7109 {
7110 krb5_sendauth ();
7111   ;
7112   return 0;
7113 }
7114 _ACEOF
7115 rm -f conftest.$ac_objext conftest$ac_exeext
7116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7117   (eval $ac_link) 2>&5
7118   ac_status=$?
7119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120   (exit $ac_status); } &&
7121          { ac_try='test -s conftest$ac_exeext'
7122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123   (eval $ac_try) 2>&5
7124   ac_status=$?
7125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126   (exit $ac_status); }; }; then
7127   ac_cv_search_krb5_sendauth="-l$ac_lib"
7128 break
7129 else
7130   echo "$as_me: failed program was:" >&5
7131 cat conftest.$ac_ext >&5
7132 fi
7133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7134   done
7135 fi
7136 LIBS=$ac_func_search_save_LIBS
7137 fi
7138 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7139 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
7140 if test "$ac_cv_search_krb5_sendauth" != no; then
7141   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
7142
7143 else
7144   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7145 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7146    { (exit 1); exit 1; }; }
7147 fi
7148
7149 fi
7150
7151 if test "$with_openssl" = yes ; then
7152
7153 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7154 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7155 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7156   echo $ECHO_N "(cached) $ECHO_C" >&6
7157 else
7158   ac_check_lib_save_LIBS=$LIBS
7159 LIBS="-lcrypto  $LIBS"
7160 cat >conftest.$ac_ext <<_ACEOF
7161 #line $LINENO "configure"
7162 #include "confdefs.h"
7163
7164 /* Override any gcc2 internal prototype to avoid an error.  */
7165 #ifdef __cplusplus
7166 extern "C"
7167 #endif
7168 /* We use char because int might match the return type of a gcc2
7169    builtin and then its argument prototype would still apply.  */
7170 char CRYPTO_new_ex_data ();
7171 #ifdef F77_DUMMY_MAIN
7172 #  ifdef __cplusplus
7173      extern "C"
7174 #  endif
7175    int F77_DUMMY_MAIN() { return 1; }
7176 #endif
7177 int
7178 main ()
7179 {
7180 CRYPTO_new_ex_data ();
7181   ;
7182   return 0;
7183 }
7184 _ACEOF
7185 rm -f conftest.$ac_objext conftest$ac_exeext
7186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7187   (eval $ac_link) 2>&5
7188   ac_status=$?
7189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190   (exit $ac_status); } &&
7191          { ac_try='test -s conftest$ac_exeext'
7192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193   (eval $ac_try) 2>&5
7194   ac_status=$?
7195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196   (exit $ac_status); }; }; then
7197   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7198 else
7199   echo "$as_me: failed program was:" >&5
7200 cat conftest.$ac_ext >&5
7201 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7202 fi
7203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7204 LIBS=$ac_check_lib_save_LIBS
7205 fi
7206 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7207 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7208 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7209   cat >>confdefs.h <<_ACEOF
7210 #define HAVE_LIBCRYPTO 1
7211 _ACEOF
7212
7213   LIBS="-lcrypto $LIBS"
7214
7215 else
7216   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7217 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7218    { (exit 1); exit 1; }; }
7219 fi
7220
7221
7222 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7223 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7224 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7225   echo $ECHO_N "(cached) $ECHO_C" >&6
7226 else
7227   ac_check_lib_save_LIBS=$LIBS
7228 LIBS="-lssl  $LIBS"
7229 cat >conftest.$ac_ext <<_ACEOF
7230 #line $LINENO "configure"
7231 #include "confdefs.h"
7232
7233 /* Override any gcc2 internal prototype to avoid an error.  */
7234 #ifdef __cplusplus
7235 extern "C"
7236 #endif
7237 /* We use char because int might match the return type of a gcc2
7238    builtin and then its argument prototype would still apply.  */
7239 char SSL_library_init ();
7240 #ifdef F77_DUMMY_MAIN
7241 #  ifdef __cplusplus
7242      extern "C"
7243 #  endif
7244    int F77_DUMMY_MAIN() { return 1; }
7245 #endif
7246 int
7247 main ()
7248 {
7249 SSL_library_init ();
7250   ;
7251   return 0;
7252 }
7253 _ACEOF
7254 rm -f conftest.$ac_objext conftest$ac_exeext
7255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7256   (eval $ac_link) 2>&5
7257   ac_status=$?
7258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259   (exit $ac_status); } &&
7260          { ac_try='test -s conftest$ac_exeext'
7261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262   (eval $ac_try) 2>&5
7263   ac_status=$?
7264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265   (exit $ac_status); }; }; then
7266   ac_cv_lib_ssl_SSL_library_init=yes
7267 else
7268   echo "$as_me: failed program was:" >&5
7269 cat conftest.$ac_ext >&5
7270 ac_cv_lib_ssl_SSL_library_init=no
7271 fi
7272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7273 LIBS=$ac_check_lib_save_LIBS
7274 fi
7275 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7276 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7277 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7278   cat >>confdefs.h <<_ACEOF
7279 #define HAVE_LIBSSL 1
7280 _ACEOF
7281
7282   LIBS="-lssl $LIBS"
7283
7284 else
7285   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7286 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7287    { (exit 1); exit 1; }; }
7288 fi
7289
7290 fi
7291
7292 if test "$with_pam" = yes ; then
7293
7294 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7295 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7296 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7297   echo $ECHO_N "(cached) $ECHO_C" >&6
7298 else
7299   ac_check_lib_save_LIBS=$LIBS
7300 LIBS="-lpam  $LIBS"
7301 cat >conftest.$ac_ext <<_ACEOF
7302 #line $LINENO "configure"
7303 #include "confdefs.h"
7304
7305 /* Override any gcc2 internal prototype to avoid an error.  */
7306 #ifdef __cplusplus
7307 extern "C"
7308 #endif
7309 /* We use char because int might match the return type of a gcc2
7310    builtin and then its argument prototype would still apply.  */
7311 char pam_start ();
7312 #ifdef F77_DUMMY_MAIN
7313 #  ifdef __cplusplus
7314      extern "C"
7315 #  endif
7316    int F77_DUMMY_MAIN() { return 1; }
7317 #endif
7318 int
7319 main ()
7320 {
7321 pam_start ();
7322   ;
7323   return 0;
7324 }
7325 _ACEOF
7326 rm -f conftest.$ac_objext conftest$ac_exeext
7327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7328   (eval $ac_link) 2>&5
7329   ac_status=$?
7330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331   (exit $ac_status); } &&
7332          { ac_try='test -s conftest$ac_exeext'
7333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7334   (eval $ac_try) 2>&5
7335   ac_status=$?
7336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337   (exit $ac_status); }; }; then
7338   ac_cv_lib_pam_pam_start=yes
7339 else
7340   echo "$as_me: failed program was:" >&5
7341 cat conftest.$ac_ext >&5
7342 ac_cv_lib_pam_pam_start=no
7343 fi
7344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7345 LIBS=$ac_check_lib_save_LIBS
7346 fi
7347 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7348 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7349 if test $ac_cv_lib_pam_pam_start = yes; then
7350   cat >>confdefs.h <<_ACEOF
7351 #define HAVE_LIBPAM 1
7352 _ACEOF
7353
7354   LIBS="-lpam $LIBS"
7355
7356 else
7357   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7358 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7359    { (exit 1); exit 1; }; }
7360 fi
7361
7362 fi
7363
7364
7365 ##
7366 ## Header files
7367 ##
7368 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7369 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7370 if test "${ac_cv_header_stdc+set}" = set; then
7371   echo $ECHO_N "(cached) $ECHO_C" >&6
7372 else
7373   cat >conftest.$ac_ext <<_ACEOF
7374 #line $LINENO "configure"
7375 #include "confdefs.h"
7376 #include <stdlib.h>
7377 #include <stdarg.h>
7378 #include <string.h>
7379 #include <float.h>
7380
7381 _ACEOF
7382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7383   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7384   ac_status=$?
7385   egrep -v '^ *\+' conftest.er1 >conftest.err
7386   rm -f conftest.er1
7387   cat conftest.err >&5
7388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389   (exit $ac_status); } >/dev/null; then
7390   if test -s conftest.err; then
7391     ac_cpp_err=$ac_c_preproc_warn_flag
7392   else
7393     ac_cpp_err=
7394   fi
7395 else
7396   ac_cpp_err=yes
7397 fi
7398 if test -z "$ac_cpp_err"; then
7399   ac_cv_header_stdc=yes
7400 else
7401   echo "$as_me: failed program was:" >&5
7402   cat conftest.$ac_ext >&5
7403   ac_cv_header_stdc=no
7404 fi
7405 rm -f conftest.err conftest.$ac_ext
7406
7407 if test $ac_cv_header_stdc = yes; then
7408   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7409   cat >conftest.$ac_ext <<_ACEOF
7410 #line $LINENO "configure"
7411 #include "confdefs.h"
7412 #include <string.h>
7413
7414 _ACEOF
7415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7416   egrep "memchr" >/dev/null 2>&1; then
7417   :
7418 else
7419   ac_cv_header_stdc=no
7420 fi
7421 rm -f conftest*
7422
7423 fi
7424
7425 if test $ac_cv_header_stdc = yes; then
7426   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7427   cat >conftest.$ac_ext <<_ACEOF
7428 #line $LINENO "configure"
7429 #include "confdefs.h"
7430 #include <stdlib.h>
7431
7432 _ACEOF
7433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7434   egrep "free" >/dev/null 2>&1; then
7435   :
7436 else
7437   ac_cv_header_stdc=no
7438 fi
7439 rm -f conftest*
7440
7441 fi
7442
7443 if test $ac_cv_header_stdc = yes; then
7444   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7445   if test "$cross_compiling" = yes; then
7446   :
7447 else
7448   cat >conftest.$ac_ext <<_ACEOF
7449 #line $LINENO "configure"
7450 #include "confdefs.h"
7451 #include <ctype.h>
7452 #if ((' ' & 0x0FF) == 0x020)
7453 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7454 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7455 #else
7456 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7457                      || ('j' <= (c) && (c) <= 'r') \
7458                      || ('s' <= (c) && (c) <= 'z'))
7459 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7460 #endif
7461
7462 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7463 int
7464 main ()
7465 {
7466   int i;
7467   for (i = 0; i < 256; i++)
7468     if (XOR (islower (i), ISLOWER (i))
7469         || toupper (i) != TOUPPER (i))
7470       exit(2);
7471   exit (0);
7472 }
7473 _ACEOF
7474 rm -f conftest$ac_exeext
7475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7476   (eval $ac_link) 2>&5
7477   ac_status=$?
7478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481   (eval $ac_try) 2>&5
7482   ac_status=$?
7483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484   (exit $ac_status); }; }; then
7485   :
7486 else
7487   echo "$as_me: program exited with status $ac_status" >&5
7488 echo "$as_me: failed program was:" >&5
7489 cat conftest.$ac_ext >&5
7490 ( exit $ac_status )
7491 ac_cv_header_stdc=no
7492 fi
7493 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7494 fi
7495 fi
7496 fi
7497 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7498 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7499 if test $ac_cv_header_stdc = yes; then
7500
7501 cat >>confdefs.h <<\_ACEOF
7502 #define STDC_HEADERS 1
7503 _ACEOF
7504
7505 fi
7506
7507 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7518                   inttypes.h stdint.h unistd.h
7519 do
7520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7521 echo "$as_me:$LINENO: checking for $ac_header" >&5
7522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7524   echo $ECHO_N "(cached) $ECHO_C" >&6
7525 else
7526   cat >conftest.$ac_ext <<_ACEOF
7527 #line $LINENO "configure"
7528 #include "confdefs.h"
7529 $ac_includes_default
7530
7531 #include <$ac_header>
7532 _ACEOF
7533 rm -f conftest.$ac_objext
7534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7535   (eval $ac_compile) 2>&5
7536   ac_status=$?
7537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538   (exit $ac_status); } &&
7539          { ac_try='test -s conftest.$ac_objext'
7540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541   (eval $ac_try) 2>&5
7542   ac_status=$?
7543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544   (exit $ac_status); }; }; then
7545   eval "$as_ac_Header=yes"
7546 else
7547   echo "$as_me: failed program was:" >&5
7548 cat conftest.$ac_ext >&5
7549 eval "$as_ac_Header=no"
7550 fi
7551 rm -f conftest.$ac_objext conftest.$ac_ext
7552 fi
7553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7556   cat >>confdefs.h <<_ACEOF
7557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7558 _ACEOF
7559
7560 fi
7561
7562 done
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/ipc.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h kernel/OS.h kernel/image.h SupportDefs.h
7584 do
7585 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7587   echo "$as_me:$LINENO: checking for $ac_header" >&5
7588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7590   echo $ECHO_N "(cached) $ECHO_C" >&6
7591 fi
7592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7594 else
7595   # Is the header compilable?
7596 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7598 cat >conftest.$ac_ext <<_ACEOF
7599 #line $LINENO "configure"
7600 #include "confdefs.h"
7601 $ac_includes_default
7602 #include <$ac_header>
7603 _ACEOF
7604 rm -f conftest.$ac_objext
7605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7606   (eval $ac_compile) 2>&5
7607   ac_status=$?
7608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609   (exit $ac_status); } &&
7610          { ac_try='test -s conftest.$ac_objext'
7611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612   (eval $ac_try) 2>&5
7613   ac_status=$?
7614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615   (exit $ac_status); }; }; then
7616   ac_header_compiler=yes
7617 else
7618   echo "$as_me: failed program was:" >&5
7619 cat conftest.$ac_ext >&5
7620 ac_header_compiler=no
7621 fi
7622 rm -f conftest.$ac_objext conftest.$ac_ext
7623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7624 echo "${ECHO_T}$ac_header_compiler" >&6
7625
7626 # Is the header present?
7627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7629 cat >conftest.$ac_ext <<_ACEOF
7630 #line $LINENO "configure"
7631 #include "confdefs.h"
7632 #include <$ac_header>
7633 _ACEOF
7634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7635   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7636   ac_status=$?
7637   egrep -v '^ *\+' conftest.er1 >conftest.err
7638   rm -f conftest.er1
7639   cat conftest.err >&5
7640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641   (exit $ac_status); } >/dev/null; then
7642   if test -s conftest.err; then
7643     ac_cpp_err=$ac_c_preproc_warn_flag
7644   else
7645     ac_cpp_err=
7646   fi
7647 else
7648   ac_cpp_err=yes
7649 fi
7650 if test -z "$ac_cpp_err"; then
7651   ac_header_preproc=yes
7652 else
7653   echo "$as_me: failed program was:" >&5
7654   cat conftest.$ac_ext >&5
7655   ac_header_preproc=no
7656 fi
7657 rm -f conftest.err conftest.$ac_ext
7658 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7659 echo "${ECHO_T}$ac_header_preproc" >&6
7660
7661 # So?  What about this header?
7662 case $ac_header_compiler:$ac_header_preproc in
7663   yes:no )
7664     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7665 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7666     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7668   no:yes )
7669     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7670 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7671     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7672 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7675 esac
7676 echo "$as_me:$LINENO: checking for $ac_header" >&5
7677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7679   echo $ECHO_N "(cached) $ECHO_C" >&6
7680 else
7681   eval "$as_ac_Header=$ac_header_preproc"
7682 fi
7683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7685
7686 fi
7687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7688   cat >>confdefs.h <<_ACEOF
7689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7690 _ACEOF
7691
7692 fi
7693
7694 done
7695
7696
7697 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7698 # netinet/in.h is included first.
7699
7700 for ac_header in netinet/in.h
7701 do
7702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7704   echo "$as_me:$LINENO: checking for $ac_header" >&5
7705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7707   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
7712   # Is the header compilable?
7713 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7715 cat >conftest.$ac_ext <<_ACEOF
7716 #line $LINENO "configure"
7717 #include "confdefs.h"
7718 $ac_includes_default
7719 #include <$ac_header>
7720 _ACEOF
7721 rm -f conftest.$ac_objext
7722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7723   (eval $ac_compile) 2>&5
7724   ac_status=$?
7725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726   (exit $ac_status); } &&
7727          { ac_try='test -s conftest.$ac_objext'
7728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729   (eval $ac_try) 2>&5
7730   ac_status=$?
7731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732   (exit $ac_status); }; }; then
7733   ac_header_compiler=yes
7734 else
7735   echo "$as_me: failed program was:" >&5
7736 cat conftest.$ac_ext >&5
7737 ac_header_compiler=no
7738 fi
7739 rm -f conftest.$ac_objext conftest.$ac_ext
7740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7741 echo "${ECHO_T}$ac_header_compiler" >&6
7742
7743 # Is the header present?
7744 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7746 cat >conftest.$ac_ext <<_ACEOF
7747 #line $LINENO "configure"
7748 #include "confdefs.h"
7749 #include <$ac_header>
7750 _ACEOF
7751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7752   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7753   ac_status=$?
7754   egrep -v '^ *\+' conftest.er1 >conftest.err
7755   rm -f conftest.er1
7756   cat conftest.err >&5
7757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758   (exit $ac_status); } >/dev/null; then
7759   if test -s conftest.err; then
7760     ac_cpp_err=$ac_c_preproc_warn_flag
7761   else
7762     ac_cpp_err=
7763   fi
7764 else
7765   ac_cpp_err=yes
7766 fi
7767 if test -z "$ac_cpp_err"; then
7768   ac_header_preproc=yes
7769 else
7770   echo "$as_me: failed program was:" >&5
7771   cat conftest.$ac_ext >&5
7772   ac_header_preproc=no
7773 fi
7774 rm -f conftest.err conftest.$ac_ext
7775 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7776 echo "${ECHO_T}$ac_header_preproc" >&6
7777
7778 # So?  What about this header?
7779 case $ac_header_compiler:$ac_header_preproc in
7780   yes:no )
7781     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7783     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7785   no:yes )
7786     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7788     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7789 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7792 esac
7793 echo "$as_me:$LINENO: checking for $ac_header" >&5
7794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7796   echo $ECHO_N "(cached) $ECHO_C" >&6
7797 else
7798   eval "$as_ac_Header=$ac_header_preproc"
7799 fi
7800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7802
7803 fi
7804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7805   cat >>confdefs.h <<_ACEOF
7806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7807 _ACEOF
7808
7809 fi
7810
7811 done
7812
7813
7814 for ac_header in netinet/tcp.h
7815 do
7816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7817 echo "$as_me:$LINENO: checking for $ac_header" >&5
7818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7820   echo $ECHO_N "(cached) $ECHO_C" >&6
7821 else
7822   cat >conftest.$ac_ext <<_ACEOF
7823 #line $LINENO "configure"
7824 #include "confdefs.h"
7825 $ac_includes_default
7826 #ifdef HAVE_NETINET_IN_H
7827 #include <netinet/in.h>
7828 #endif
7829
7830
7831 #include <$ac_header>
7832 _ACEOF
7833 rm -f conftest.$ac_objext
7834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7835   (eval $ac_compile) 2>&5
7836   ac_status=$?
7837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838   (exit $ac_status); } &&
7839          { ac_try='test -s conftest.$ac_objext'
7840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841   (eval $ac_try) 2>&5
7842   ac_status=$?
7843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844   (exit $ac_status); }; }; then
7845   eval "$as_ac_Header=yes"
7846 else
7847   echo "$as_me: failed program was:" >&5
7848 cat conftest.$ac_ext >&5
7849 eval "$as_ac_Header=no"
7850 fi
7851 rm -f conftest.$ac_objext conftest.$ac_ext
7852 fi
7853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7856   cat >>confdefs.h <<_ACEOF
7857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7858 _ACEOF
7859
7860 fi
7861
7862 done
7863
7864
7865 if test "$with_readline" = yes; then
7866
7867 for ac_header in readline/readline.h
7868 do
7869 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7871   echo "$as_me:$LINENO: checking for $ac_header" >&5
7872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7874   echo $ECHO_N "(cached) $ECHO_C" >&6
7875 fi
7876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7878 else
7879   # Is the header compilable?
7880 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7881 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7882 cat >conftest.$ac_ext <<_ACEOF
7883 #line $LINENO "configure"
7884 #include "confdefs.h"
7885 $ac_includes_default
7886 #include <$ac_header>
7887 _ACEOF
7888 rm -f conftest.$ac_objext
7889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7890   (eval $ac_compile) 2>&5
7891   ac_status=$?
7892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893   (exit $ac_status); } &&
7894          { ac_try='test -s conftest.$ac_objext'
7895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7896   (eval $ac_try) 2>&5
7897   ac_status=$?
7898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899   (exit $ac_status); }; }; then
7900   ac_header_compiler=yes
7901 else
7902   echo "$as_me: failed program was:" >&5
7903 cat conftest.$ac_ext >&5
7904 ac_header_compiler=no
7905 fi
7906 rm -f conftest.$ac_objext conftest.$ac_ext
7907 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7908 echo "${ECHO_T}$ac_header_compiler" >&6
7909
7910 # Is the header present?
7911 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7913 cat >conftest.$ac_ext <<_ACEOF
7914 #line $LINENO "configure"
7915 #include "confdefs.h"
7916 #include <$ac_header>
7917 _ACEOF
7918 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7919   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7920   ac_status=$?
7921   egrep -v '^ *\+' conftest.er1 >conftest.err
7922   rm -f conftest.er1
7923   cat conftest.err >&5
7924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925   (exit $ac_status); } >/dev/null; then
7926   if test -s conftest.err; then
7927     ac_cpp_err=$ac_c_preproc_warn_flag
7928   else
7929     ac_cpp_err=
7930   fi
7931 else
7932   ac_cpp_err=yes
7933 fi
7934 if test -z "$ac_cpp_err"; then
7935   ac_header_preproc=yes
7936 else
7937   echo "$as_me: failed program was:" >&5
7938   cat conftest.$ac_ext >&5
7939   ac_header_preproc=no
7940 fi
7941 rm -f conftest.err conftest.$ac_ext
7942 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7943 echo "${ECHO_T}$ac_header_preproc" >&6
7944
7945 # So?  What about this header?
7946 case $ac_header_compiler:$ac_header_preproc in
7947   yes:no )
7948     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7950     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7952   no:yes )
7953     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7954 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7955     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7956 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7957     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7959 esac
7960 echo "$as_me:$LINENO: checking for $ac_header" >&5
7961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7963   echo $ECHO_N "(cached) $ECHO_C" >&6
7964 else
7965   eval "$as_ac_Header=$ac_header_preproc"
7966 fi
7967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7969
7970 fi
7971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7972   cat >>confdefs.h <<_ACEOF
7973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7974 _ACEOF
7975
7976 else
7977
7978 for ac_header in readline.h
7979 do
7980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7982   echo "$as_me:$LINENO: checking for $ac_header" >&5
7983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7985   echo $ECHO_N "(cached) $ECHO_C" >&6
7986 fi
7987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7989 else
7990   # Is the header compilable?
7991 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7993 cat >conftest.$ac_ext <<_ACEOF
7994 #line $LINENO "configure"
7995 #include "confdefs.h"
7996 $ac_includes_default
7997 #include <$ac_header>
7998 _ACEOF
7999 rm -f conftest.$ac_objext
8000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8001   (eval $ac_compile) 2>&5
8002   ac_status=$?
8003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004   (exit $ac_status); } &&
8005          { ac_try='test -s conftest.$ac_objext'
8006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007   (eval $ac_try) 2>&5
8008   ac_status=$?
8009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010   (exit $ac_status); }; }; then
8011   ac_header_compiler=yes
8012 else
8013   echo "$as_me: failed program was:" >&5
8014 cat conftest.$ac_ext >&5
8015 ac_header_compiler=no
8016 fi
8017 rm -f conftest.$ac_objext conftest.$ac_ext
8018 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8019 echo "${ECHO_T}$ac_header_compiler" >&6
8020
8021 # Is the header present?
8022 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8023 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8024 cat >conftest.$ac_ext <<_ACEOF
8025 #line $LINENO "configure"
8026 #include "confdefs.h"
8027 #include <$ac_header>
8028 _ACEOF
8029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8030   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8031   ac_status=$?
8032   egrep -v '^ *\+' conftest.er1 >conftest.err
8033   rm -f conftest.er1
8034   cat conftest.err >&5
8035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036   (exit $ac_status); } >/dev/null; then
8037   if test -s conftest.err; then
8038     ac_cpp_err=$ac_c_preproc_warn_flag
8039   else
8040     ac_cpp_err=
8041   fi
8042 else
8043   ac_cpp_err=yes
8044 fi
8045 if test -z "$ac_cpp_err"; then
8046   ac_header_preproc=yes
8047 else
8048   echo "$as_me: failed program was:" >&5
8049   cat conftest.$ac_ext >&5
8050   ac_header_preproc=no
8051 fi
8052 rm -f conftest.err conftest.$ac_ext
8053 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8054 echo "${ECHO_T}$ac_header_preproc" >&6
8055
8056 # So?  What about this header?
8057 case $ac_header_compiler:$ac_header_preproc in
8058   yes:no )
8059     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8061     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8063   no:yes )
8064     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8066     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8067 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8068     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8070 esac
8071 echo "$as_me:$LINENO: checking for $ac_header" >&5
8072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8074   echo $ECHO_N "(cached) $ECHO_C" >&6
8075 else
8076   eval "$as_ac_Header=$ac_header_preproc"
8077 fi
8078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8080
8081 fi
8082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8083   cat >>confdefs.h <<_ACEOF
8084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8085 _ACEOF
8086
8087 else
8088   { { echo "$as_me:$LINENO: error: readline header not found
8089 Use --without-readline to disable readline support." >&5
8090 echo "$as_me: error: readline header not found
8091 Use --without-readline to disable readline support." >&2;}
8092    { (exit 1); exit 1; }; }
8093 fi
8094
8095 done
8096
8097 fi
8098
8099 done
8100
8101
8102 for ac_header in readline/history.h
8103 do
8104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8106   echo "$as_me:$LINENO: checking for $ac_header" >&5
8107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8109   echo $ECHO_N "(cached) $ECHO_C" >&6
8110 fi
8111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8113 else
8114   # Is the header compilable?
8115 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8117 cat >conftest.$ac_ext <<_ACEOF
8118 #line $LINENO "configure"
8119 #include "confdefs.h"
8120 $ac_includes_default
8121 #include <$ac_header>
8122 _ACEOF
8123 rm -f conftest.$ac_objext
8124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8125   (eval $ac_compile) 2>&5
8126   ac_status=$?
8127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128   (exit $ac_status); } &&
8129          { ac_try='test -s conftest.$ac_objext'
8130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131   (eval $ac_try) 2>&5
8132   ac_status=$?
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); }; }; then
8135   ac_header_compiler=yes
8136 else
8137   echo "$as_me: failed program was:" >&5
8138 cat conftest.$ac_ext >&5
8139 ac_header_compiler=no
8140 fi
8141 rm -f conftest.$ac_objext conftest.$ac_ext
8142 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8143 echo "${ECHO_T}$ac_header_compiler" >&6
8144
8145 # Is the header present?
8146 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8148 cat >conftest.$ac_ext <<_ACEOF
8149 #line $LINENO "configure"
8150 #include "confdefs.h"
8151 #include <$ac_header>
8152 _ACEOF
8153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8154   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8155   ac_status=$?
8156   egrep -v '^ *\+' conftest.er1 >conftest.err
8157   rm -f conftest.er1
8158   cat conftest.err >&5
8159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160   (exit $ac_status); } >/dev/null; then
8161   if test -s conftest.err; then
8162     ac_cpp_err=$ac_c_preproc_warn_flag
8163   else
8164     ac_cpp_err=
8165   fi
8166 else
8167   ac_cpp_err=yes
8168 fi
8169 if test -z "$ac_cpp_err"; then
8170   ac_header_preproc=yes
8171 else
8172   echo "$as_me: failed program was:" >&5
8173   cat conftest.$ac_ext >&5
8174   ac_header_preproc=no
8175 fi
8176 rm -f conftest.err conftest.$ac_ext
8177 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8178 echo "${ECHO_T}$ac_header_preproc" >&6
8179
8180 # So?  What about this header?
8181 case $ac_header_compiler:$ac_header_preproc in
8182   yes:no )
8183     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8185     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8187   no:yes )
8188     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8190     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8191 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8192     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8194 esac
8195 echo "$as_me:$LINENO: checking for $ac_header" >&5
8196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8198   echo $ECHO_N "(cached) $ECHO_C" >&6
8199 else
8200   eval "$as_ac_Header=$ac_header_preproc"
8201 fi
8202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8204
8205 fi
8206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8207   cat >>confdefs.h <<_ACEOF
8208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8209 _ACEOF
8210
8211 else
8212
8213 for ac_header in history.h
8214 do
8215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8217   echo "$as_me:$LINENO: checking for $ac_header" >&5
8218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8220   echo $ECHO_N "(cached) $ECHO_C" >&6
8221 fi
8222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8224 else
8225   # Is the header compilable?
8226 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8227 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8228 cat >conftest.$ac_ext <<_ACEOF
8229 #line $LINENO "configure"
8230 #include "confdefs.h"
8231 $ac_includes_default
8232 #include <$ac_header>
8233 _ACEOF
8234 rm -f conftest.$ac_objext
8235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8236   (eval $ac_compile) 2>&5
8237   ac_status=$?
8238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239   (exit $ac_status); } &&
8240          { ac_try='test -s conftest.$ac_objext'
8241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242   (eval $ac_try) 2>&5
8243   ac_status=$?
8244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245   (exit $ac_status); }; }; then
8246   ac_header_compiler=yes
8247 else
8248   echo "$as_me: failed program was:" >&5
8249 cat conftest.$ac_ext >&5
8250 ac_header_compiler=no
8251 fi
8252 rm -f conftest.$ac_objext conftest.$ac_ext
8253 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8254 echo "${ECHO_T}$ac_header_compiler" >&6
8255
8256 # Is the header present?
8257 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8258 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8259 cat >conftest.$ac_ext <<_ACEOF
8260 #line $LINENO "configure"
8261 #include "confdefs.h"
8262 #include <$ac_header>
8263 _ACEOF
8264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8265   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8266   ac_status=$?
8267   egrep -v '^ *\+' conftest.er1 >conftest.err
8268   rm -f conftest.er1
8269   cat conftest.err >&5
8270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271   (exit $ac_status); } >/dev/null; then
8272   if test -s conftest.err; then
8273     ac_cpp_err=$ac_c_preproc_warn_flag
8274   else
8275     ac_cpp_err=
8276   fi
8277 else
8278   ac_cpp_err=yes
8279 fi
8280 if test -z "$ac_cpp_err"; then
8281   ac_header_preproc=yes
8282 else
8283   echo "$as_me: failed program was:" >&5
8284   cat conftest.$ac_ext >&5
8285   ac_header_preproc=no
8286 fi
8287 rm -f conftest.err conftest.$ac_ext
8288 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8289 echo "${ECHO_T}$ac_header_preproc" >&6
8290
8291 # So?  What about this header?
8292 case $ac_header_compiler:$ac_header_preproc in
8293   yes:no )
8294     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8298   no:yes )
8299     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8301     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8305 esac
8306 echo "$as_me:$LINENO: checking for $ac_header" >&5
8307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8309   echo $ECHO_N "(cached) $ECHO_C" >&6
8310 else
8311   eval "$as_ac_Header=$ac_header_preproc"
8312 fi
8313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8315
8316 fi
8317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8318   cat >>confdefs.h <<_ACEOF
8319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8320 _ACEOF
8321
8322 else
8323   { { echo "$as_me:$LINENO: error: history header not found
8324 Use --without-readline to disable readline support." >&5
8325 echo "$as_me: error: history header not found
8326 Use --without-readline to disable readline support." >&2;}
8327    { (exit 1); exit 1; }; }
8328 fi
8329
8330 done
8331
8332 fi
8333
8334 done
8335
8336 fi
8337
8338 if test "$with_zlib" = yes; then
8339   if test "${ac_cv_header_zlib_h+set}" = set; then
8340   echo "$as_me:$LINENO: checking for zlib.h" >&5
8341 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8342 if test "${ac_cv_header_zlib_h+set}" = set; then
8343   echo $ECHO_N "(cached) $ECHO_C" >&6
8344 fi
8345 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8346 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8347 else
8348   # Is the header compilable?
8349 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8350 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8351 cat >conftest.$ac_ext <<_ACEOF
8352 #line $LINENO "configure"
8353 #include "confdefs.h"
8354 $ac_includes_default
8355 #include <zlib.h>
8356 _ACEOF
8357 rm -f conftest.$ac_objext
8358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8359   (eval $ac_compile) 2>&5
8360   ac_status=$?
8361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362   (exit $ac_status); } &&
8363          { ac_try='test -s conftest.$ac_objext'
8364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8365   (eval $ac_try) 2>&5
8366   ac_status=$?
8367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368   (exit $ac_status); }; }; then
8369   ac_header_compiler=yes
8370 else
8371   echo "$as_me: failed program was:" >&5
8372 cat conftest.$ac_ext >&5
8373 ac_header_compiler=no
8374 fi
8375 rm -f conftest.$ac_objext conftest.$ac_ext
8376 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8377 echo "${ECHO_T}$ac_header_compiler" >&6
8378
8379 # Is the header present?
8380 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8381 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8382 cat >conftest.$ac_ext <<_ACEOF
8383 #line $LINENO "configure"
8384 #include "confdefs.h"
8385 #include <zlib.h>
8386 _ACEOF
8387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8388   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8389   ac_status=$?
8390   egrep -v '^ *\+' conftest.er1 >conftest.err
8391   rm -f conftest.er1
8392   cat conftest.err >&5
8393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394   (exit $ac_status); } >/dev/null; then
8395   if test -s conftest.err; then
8396     ac_cpp_err=$ac_c_preproc_warn_flag
8397   else
8398     ac_cpp_err=
8399   fi
8400 else
8401   ac_cpp_err=yes
8402 fi
8403 if test -z "$ac_cpp_err"; then
8404   ac_header_preproc=yes
8405 else
8406   echo "$as_me: failed program was:" >&5
8407   cat conftest.$ac_ext >&5
8408   ac_header_preproc=no
8409 fi
8410 rm -f conftest.err conftest.$ac_ext
8411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8412 echo "${ECHO_T}$ac_header_preproc" >&6
8413
8414 # So?  What about this header?
8415 case $ac_header_compiler:$ac_header_preproc in
8416   yes:no )
8417     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8418 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8419     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8420 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8421   no:yes )
8422     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8423 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8424     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8425 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8426     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8427 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8428 esac
8429 echo "$as_me:$LINENO: checking for zlib.h" >&5
8430 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8431 if test "${ac_cv_header_zlib_h+set}" = set; then
8432   echo $ECHO_N "(cached) $ECHO_C" >&6
8433 else
8434   ac_cv_header_zlib_h=$ac_header_preproc
8435 fi
8436 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8437 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8438
8439 fi
8440 if test $ac_cv_header_zlib_h = yes; then
8441   :
8442 else
8443   { { echo "$as_me:$LINENO: error: zlib header not found
8444 Use --without-zlib to disable zlib support." >&5
8445 echo "$as_me: error: zlib header not found
8446 Use --without-zlib to disable zlib support." >&2;}
8447    { (exit 1); exit 1; }; }
8448 fi
8449
8450
8451 fi
8452
8453 if test "$with_krb4" = yes ; then
8454   if test "${ac_cv_header_krb_h+set}" = set; then
8455   echo "$as_me:$LINENO: checking for krb.h" >&5
8456 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8457 if test "${ac_cv_header_krb_h+set}" = set; then
8458   echo $ECHO_N "(cached) $ECHO_C" >&6
8459 fi
8460 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8461 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8462 else
8463   # Is the header compilable?
8464 echo "$as_me:$LINENO: checking krb.h usability" >&5
8465 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8466 cat >conftest.$ac_ext <<_ACEOF
8467 #line $LINENO "configure"
8468 #include "confdefs.h"
8469 $ac_includes_default
8470 #include <krb.h>
8471 _ACEOF
8472 rm -f conftest.$ac_objext
8473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8474   (eval $ac_compile) 2>&5
8475   ac_status=$?
8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477   (exit $ac_status); } &&
8478          { ac_try='test -s conftest.$ac_objext'
8479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480   (eval $ac_try) 2>&5
8481   ac_status=$?
8482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); }; }; then
8484   ac_header_compiler=yes
8485 else
8486   echo "$as_me: failed program was:" >&5
8487 cat conftest.$ac_ext >&5
8488 ac_header_compiler=no
8489 fi
8490 rm -f conftest.$ac_objext conftest.$ac_ext
8491 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8492 echo "${ECHO_T}$ac_header_compiler" >&6
8493
8494 # Is the header present?
8495 echo "$as_me:$LINENO: checking krb.h presence" >&5
8496 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8497 cat >conftest.$ac_ext <<_ACEOF
8498 #line $LINENO "configure"
8499 #include "confdefs.h"
8500 #include <krb.h>
8501 _ACEOF
8502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8503   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8504   ac_status=$?
8505   egrep -v '^ *\+' conftest.er1 >conftest.err
8506   rm -f conftest.er1
8507   cat conftest.err >&5
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); } >/dev/null; then
8510   if test -s conftest.err; then
8511     ac_cpp_err=$ac_c_preproc_warn_flag
8512   else
8513     ac_cpp_err=
8514   fi
8515 else
8516   ac_cpp_err=yes
8517 fi
8518 if test -z "$ac_cpp_err"; then
8519   ac_header_preproc=yes
8520 else
8521   echo "$as_me: failed program was:" >&5
8522   cat conftest.$ac_ext >&5
8523   ac_header_preproc=no
8524 fi
8525 rm -f conftest.err conftest.$ac_ext
8526 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8527 echo "${ECHO_T}$ac_header_preproc" >&6
8528
8529 # So?  What about this header?
8530 case $ac_header_compiler:$ac_header_preproc in
8531   yes:no )
8532     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8533 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8534     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8535 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8536   no:yes )
8537     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8538 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8539     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8540 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8541     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8542 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8543 esac
8544 echo "$as_me:$LINENO: checking for krb.h" >&5
8545 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8546 if test "${ac_cv_header_krb_h+set}" = set; then
8547   echo $ECHO_N "(cached) $ECHO_C" >&6
8548 else
8549   ac_cv_header_krb_h=$ac_header_preproc
8550 fi
8551 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8552 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8553
8554 fi
8555 if test $ac_cv_header_krb_h = yes; then
8556   :
8557 else
8558   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8559 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8560    { (exit 1); exit 1; }; }
8561 fi
8562
8563
8564 fi
8565
8566 if test "$with_krb5" = yes ; then
8567   if test "${ac_cv_header_krb5_h+set}" = set; then
8568   echo "$as_me:$LINENO: checking for krb5.h" >&5
8569 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8570 if test "${ac_cv_header_krb5_h+set}" = set; then
8571   echo $ECHO_N "(cached) $ECHO_C" >&6
8572 fi
8573 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8574 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8575 else
8576   # Is the header compilable?
8577 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8578 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8579 cat >conftest.$ac_ext <<_ACEOF
8580 #line $LINENO "configure"
8581 #include "confdefs.h"
8582 $ac_includes_default
8583 #include <krb5.h>
8584 _ACEOF
8585 rm -f conftest.$ac_objext
8586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8587   (eval $ac_compile) 2>&5
8588   ac_status=$?
8589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590   (exit $ac_status); } &&
8591          { ac_try='test -s conftest.$ac_objext'
8592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593   (eval $ac_try) 2>&5
8594   ac_status=$?
8595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596   (exit $ac_status); }; }; then
8597   ac_header_compiler=yes
8598 else
8599   echo "$as_me: failed program was:" >&5
8600 cat conftest.$ac_ext >&5
8601 ac_header_compiler=no
8602 fi
8603 rm -f conftest.$ac_objext conftest.$ac_ext
8604 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8605 echo "${ECHO_T}$ac_header_compiler" >&6
8606
8607 # Is the header present?
8608 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8609 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8610 cat >conftest.$ac_ext <<_ACEOF
8611 #line $LINENO "configure"
8612 #include "confdefs.h"
8613 #include <krb5.h>
8614 _ACEOF
8615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8616   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8617   ac_status=$?
8618   egrep -v '^ *\+' conftest.er1 >conftest.err
8619   rm -f conftest.er1
8620   cat conftest.err >&5
8621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622   (exit $ac_status); } >/dev/null; then
8623   if test -s conftest.err; then
8624     ac_cpp_err=$ac_c_preproc_warn_flag
8625   else
8626     ac_cpp_err=
8627   fi
8628 else
8629   ac_cpp_err=yes
8630 fi
8631 if test -z "$ac_cpp_err"; then
8632   ac_header_preproc=yes
8633 else
8634   echo "$as_me: failed program was:" >&5
8635   cat conftest.$ac_ext >&5
8636   ac_header_preproc=no
8637 fi
8638 rm -f conftest.err conftest.$ac_ext
8639 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8640 echo "${ECHO_T}$ac_header_preproc" >&6
8641
8642 # So?  What about this header?
8643 case $ac_header_compiler:$ac_header_preproc in
8644   yes:no )
8645     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8646 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8647     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8648 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8649   no:yes )
8650     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8651 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8652     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8653 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8654     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8655 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8656 esac
8657 echo "$as_me:$LINENO: checking for krb5.h" >&5
8658 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8659 if test "${ac_cv_header_krb5_h+set}" = set; then
8660   echo $ECHO_N "(cached) $ECHO_C" >&6
8661 else
8662   ac_cv_header_krb5_h=$ac_header_preproc
8663 fi
8664 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8665 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8666
8667 fi
8668 if test $ac_cv_header_krb5_h = yes; then
8669   :
8670 else
8671   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8672 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8673    { (exit 1); exit 1; }; }
8674 fi
8675
8676
8677   if test "${ac_cv_header_com_err_h+set}" = set; then
8678   echo "$as_me:$LINENO: checking for com_err.h" >&5
8679 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8680 if test "${ac_cv_header_com_err_h+set}" = set; then
8681   echo $ECHO_N "(cached) $ECHO_C" >&6
8682 fi
8683 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8684 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8685 else
8686   # Is the header compilable?
8687 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8688 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8689 cat >conftest.$ac_ext <<_ACEOF
8690 #line $LINENO "configure"
8691 #include "confdefs.h"
8692 $ac_includes_default
8693 #include <com_err.h>
8694 _ACEOF
8695 rm -f conftest.$ac_objext
8696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8697   (eval $ac_compile) 2>&5
8698   ac_status=$?
8699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700   (exit $ac_status); } &&
8701          { ac_try='test -s conftest.$ac_objext'
8702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703   (eval $ac_try) 2>&5
8704   ac_status=$?
8705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706   (exit $ac_status); }; }; then
8707   ac_header_compiler=yes
8708 else
8709   echo "$as_me: failed program was:" >&5
8710 cat conftest.$ac_ext >&5
8711 ac_header_compiler=no
8712 fi
8713 rm -f conftest.$ac_objext conftest.$ac_ext
8714 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8715 echo "${ECHO_T}$ac_header_compiler" >&6
8716
8717 # Is the header present?
8718 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8719 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8720 cat >conftest.$ac_ext <<_ACEOF
8721 #line $LINENO "configure"
8722 #include "confdefs.h"
8723 #include <com_err.h>
8724 _ACEOF
8725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8726   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8727   ac_status=$?
8728   egrep -v '^ *\+' conftest.er1 >conftest.err
8729   rm -f conftest.er1
8730   cat conftest.err >&5
8731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732   (exit $ac_status); } >/dev/null; then
8733   if test -s conftest.err; then
8734     ac_cpp_err=$ac_c_preproc_warn_flag
8735   else
8736     ac_cpp_err=
8737   fi
8738 else
8739   ac_cpp_err=yes
8740 fi
8741 if test -z "$ac_cpp_err"; then
8742   ac_header_preproc=yes
8743 else
8744   echo "$as_me: failed program was:" >&5
8745   cat conftest.$ac_ext >&5
8746   ac_header_preproc=no
8747 fi
8748 rm -f conftest.err conftest.$ac_ext
8749 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8750 echo "${ECHO_T}$ac_header_preproc" >&6
8751
8752 # So?  What about this header?
8753 case $ac_header_compiler:$ac_header_preproc in
8754   yes:no )
8755     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8756 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8757     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8758 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8759   no:yes )
8760     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8761 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8762     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8763 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8764     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8765 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8766 esac
8767 echo "$as_me:$LINENO: checking for com_err.h" >&5
8768 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8769 if test "${ac_cv_header_com_err_h+set}" = set; then
8770   echo $ECHO_N "(cached) $ECHO_C" >&6
8771 else
8772   ac_cv_header_com_err_h=$ac_header_preproc
8773 fi
8774 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8775 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8776
8777 fi
8778 if test $ac_cv_header_com_err_h = yes; then
8779   :
8780 else
8781   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8782 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8783    { (exit 1); exit 1; }; }
8784 fi
8785
8786
8787 fi
8788
8789 if test "$with_openssl" = yes ; then
8790   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8791   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8792 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8793 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8794   echo $ECHO_N "(cached) $ECHO_C" >&6
8795 fi
8796 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8797 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8798 else
8799   # Is the header compilable?
8800 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8801 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8802 cat >conftest.$ac_ext <<_ACEOF
8803 #line $LINENO "configure"
8804 #include "confdefs.h"
8805 $ac_includes_default
8806 #include <openssl/ssl.h>
8807 _ACEOF
8808 rm -f conftest.$ac_objext
8809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8810   (eval $ac_compile) 2>&5
8811   ac_status=$?
8812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813   (exit $ac_status); } &&
8814          { ac_try='test -s conftest.$ac_objext'
8815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816   (eval $ac_try) 2>&5
8817   ac_status=$?
8818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819   (exit $ac_status); }; }; then
8820   ac_header_compiler=yes
8821 else
8822   echo "$as_me: failed program was:" >&5
8823 cat conftest.$ac_ext >&5
8824 ac_header_compiler=no
8825 fi
8826 rm -f conftest.$ac_objext conftest.$ac_ext
8827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8828 echo "${ECHO_T}$ac_header_compiler" >&6
8829
8830 # Is the header present?
8831 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8832 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8833 cat >conftest.$ac_ext <<_ACEOF
8834 #line $LINENO "configure"
8835 #include "confdefs.h"
8836 #include <openssl/ssl.h>
8837 _ACEOF
8838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8839   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8840   ac_status=$?
8841   egrep -v '^ *\+' conftest.er1 >conftest.err
8842   rm -f conftest.er1
8843   cat conftest.err >&5
8844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845   (exit $ac_status); } >/dev/null; then
8846   if test -s conftest.err; then
8847     ac_cpp_err=$ac_c_preproc_warn_flag
8848   else
8849     ac_cpp_err=
8850   fi
8851 else
8852   ac_cpp_err=yes
8853 fi
8854 if test -z "$ac_cpp_err"; then
8855   ac_header_preproc=yes
8856 else
8857   echo "$as_me: failed program was:" >&5
8858   cat conftest.$ac_ext >&5
8859   ac_header_preproc=no
8860 fi
8861 rm -f conftest.err conftest.$ac_ext
8862 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8863 echo "${ECHO_T}$ac_header_preproc" >&6
8864
8865 # So?  What about this header?
8866 case $ac_header_compiler:$ac_header_preproc in
8867   yes:no )
8868     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8869 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8870     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8871 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8872   no:yes )
8873     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8874 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8875     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8876 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8877     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8878 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8879 esac
8880 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8881 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8882 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8883   echo $ECHO_N "(cached) $ECHO_C" >&6
8884 else
8885   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8886 fi
8887 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8888 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8889
8890 fi
8891 if test $ac_cv_header_openssl_ssl_h = yes; then
8892   :
8893 else
8894   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8895 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8896    { (exit 1); exit 1; }; }
8897 fi
8898
8899
8900   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8901   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8902 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8903 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8904   echo $ECHO_N "(cached) $ECHO_C" >&6
8905 fi
8906 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8907 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8908 else
8909   # Is the header compilable?
8910 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8911 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8912 cat >conftest.$ac_ext <<_ACEOF
8913 #line $LINENO "configure"
8914 #include "confdefs.h"
8915 $ac_includes_default
8916 #include <openssl/err.h>
8917 _ACEOF
8918 rm -f conftest.$ac_objext
8919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8920   (eval $ac_compile) 2>&5
8921   ac_status=$?
8922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923   (exit $ac_status); } &&
8924          { ac_try='test -s conftest.$ac_objext'
8925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926   (eval $ac_try) 2>&5
8927   ac_status=$?
8928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929   (exit $ac_status); }; }; then
8930   ac_header_compiler=yes
8931 else
8932   echo "$as_me: failed program was:" >&5
8933 cat conftest.$ac_ext >&5
8934 ac_header_compiler=no
8935 fi
8936 rm -f conftest.$ac_objext conftest.$ac_ext
8937 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8938 echo "${ECHO_T}$ac_header_compiler" >&6
8939
8940 # Is the header present?
8941 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8942 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8943 cat >conftest.$ac_ext <<_ACEOF
8944 #line $LINENO "configure"
8945 #include "confdefs.h"
8946 #include <openssl/err.h>
8947 _ACEOF
8948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8949   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8950   ac_status=$?
8951   egrep -v '^ *\+' conftest.er1 >conftest.err
8952   rm -f conftest.er1
8953   cat conftest.err >&5
8954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955   (exit $ac_status); } >/dev/null; then
8956   if test -s conftest.err; then
8957     ac_cpp_err=$ac_c_preproc_warn_flag
8958   else
8959     ac_cpp_err=
8960   fi
8961 else
8962   ac_cpp_err=yes
8963 fi
8964 if test -z "$ac_cpp_err"; then
8965   ac_header_preproc=yes
8966 else
8967   echo "$as_me: failed program was:" >&5
8968   cat conftest.$ac_ext >&5
8969   ac_header_preproc=no
8970 fi
8971 rm -f conftest.err conftest.$ac_ext
8972 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8973 echo "${ECHO_T}$ac_header_preproc" >&6
8974
8975 # So?  What about this header?
8976 case $ac_header_compiler:$ac_header_preproc in
8977   yes:no )
8978     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8979 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8980     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8981 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8982   no:yes )
8983     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8984 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8985     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8986 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8987     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8988 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8989 esac
8990 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8991 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8992 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8993   echo $ECHO_N "(cached) $ECHO_C" >&6
8994 else
8995   ac_cv_header_openssl_err_h=$ac_header_preproc
8996 fi
8997 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8998 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8999
9000 fi
9001 if test $ac_cv_header_openssl_err_h = yes; then
9002   :
9003 else
9004   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
9005 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
9006    { (exit 1); exit 1; }; }
9007 fi
9008
9009
9010 fi
9011
9012 if test "$with_pam" = yes ; then
9013   if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
9014   echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
9015 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
9016 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
9017   echo $ECHO_N "(cached) $ECHO_C" >&6
9018 fi
9019 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
9020 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
9021 else
9022   # Is the header compilable?
9023 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
9024 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
9025 cat >conftest.$ac_ext <<_ACEOF
9026 #line $LINENO "configure"
9027 #include "confdefs.h"
9028 $ac_includes_default
9029 #include <security/pam_appl.h>
9030 _ACEOF
9031 rm -f conftest.$ac_objext
9032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9033   (eval $ac_compile) 2>&5
9034   ac_status=$?
9035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036   (exit $ac_status); } &&
9037          { ac_try='test -s conftest.$ac_objext'
9038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9039   (eval $ac_try) 2>&5
9040   ac_status=$?
9041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042   (exit $ac_status); }; }; then
9043   ac_header_compiler=yes
9044 else
9045   echo "$as_me: failed program was:" >&5
9046 cat conftest.$ac_ext >&5
9047 ac_header_compiler=no
9048 fi
9049 rm -f conftest.$ac_objext conftest.$ac_ext
9050 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9051 echo "${ECHO_T}$ac_header_compiler" >&6
9052
9053 # Is the header present?
9054 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
9055 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
9056 cat >conftest.$ac_ext <<_ACEOF
9057 #line $LINENO "configure"
9058 #include "confdefs.h"
9059 #include <security/pam_appl.h>
9060 _ACEOF
9061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9062   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9063   ac_status=$?
9064   egrep -v '^ *\+' conftest.er1 >conftest.err
9065   rm -f conftest.er1
9066   cat conftest.err >&5
9067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068   (exit $ac_status); } >/dev/null; then
9069   if test -s conftest.err; then
9070     ac_cpp_err=$ac_c_preproc_warn_flag
9071   else
9072     ac_cpp_err=
9073   fi
9074 else
9075   ac_cpp_err=yes
9076 fi
9077 if test -z "$ac_cpp_err"; then
9078   ac_header_preproc=yes
9079 else
9080   echo "$as_me: failed program was:" >&5
9081   cat conftest.$ac_ext >&5
9082   ac_header_preproc=no
9083 fi
9084 rm -f conftest.err conftest.$ac_ext
9085 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9086 echo "${ECHO_T}$ac_header_preproc" >&6
9087
9088 # So?  What about this header?
9089 case $ac_header_compiler:$ac_header_preproc in
9090   yes:no )
9091     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9092 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9093     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
9094 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
9095   no:yes )
9096     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
9097 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
9098     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
9099 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
9100     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
9101 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
9102 esac
9103 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
9104 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
9105 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
9106   echo $ECHO_N "(cached) $ECHO_C" >&6
9107 else
9108   ac_cv_header_security_pam_appl_h=$ac_header_preproc
9109 fi
9110 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
9111 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
9112
9113 fi
9114 if test $ac_cv_header_security_pam_appl_h = yes; then
9115   :
9116 else
9117   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
9118 echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
9119    { (exit 1); exit 1; }; }
9120 fi
9121
9122
9123 fi
9124
9125
9126 ##
9127 ## Types, structures, compiler characteristics
9128 ##
9129
9130 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9131 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9132 if test "${ac_cv_c_const+set}" = set; then
9133   echo $ECHO_N "(cached) $ECHO_C" >&6
9134 else
9135   cat >conftest.$ac_ext <<_ACEOF
9136 #line $LINENO "configure"
9137 #include "confdefs.h"
9138
9139 #ifdef F77_DUMMY_MAIN
9140 #  ifdef __cplusplus
9141      extern "C"
9142 #  endif
9143    int F77_DUMMY_MAIN() { return 1; }
9144 #endif
9145 int
9146 main ()
9147 {
9148 /* FIXME: Include the comments suggested by Paul. */
9149 #ifndef __cplusplus
9150   /* Ultrix mips cc rejects this.  */
9151   typedef int charset[2];
9152   const charset x;
9153   /* SunOS 4.1.1 cc rejects this.  */
9154   char const *const *ccp;
9155   char **p;
9156   /* NEC SVR4.0.2 mips cc rejects this.  */
9157   struct point {int x, y;};
9158   static struct point const zero = {0,0};
9159   /* AIX XL C 1.02.0.0 rejects this.
9160      It does not let you subtract one const X* pointer from another in
9161      an arm of an if-expression whose if-part is not a constant
9162      expression */
9163   const char *g = "string";
9164   ccp = &g + (g ? g-g : 0);
9165   /* HPUX 7.0 cc rejects these. */
9166   ++ccp;
9167   p = (char**) ccp;
9168   ccp = (char const *const *) p;
9169   { /* SCO 3.2v4 cc rejects this.  */
9170     char *t;
9171     char const *s = 0 ? (char *) 0 : (char const *) 0;
9172
9173     *t++ = 0;
9174   }
9175   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9176     int x[] = {25, 17};
9177     const int *foo = &x[0];
9178     ++foo;
9179   }
9180   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9181     typedef const int *iptr;
9182     iptr p = 0;
9183     ++p;
9184   }
9185   { /* AIX XL C 1.02.0.0 rejects this saying
9186        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9187     struct s { int j; const int *ap[3]; };
9188     struct s *b; b->j = 5;
9189   }
9190   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9191     const int foo = 10;
9192   }
9193 #endif
9194
9195   ;
9196   return 0;
9197 }
9198 _ACEOF
9199 rm -f conftest.$ac_objext
9200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9201   (eval $ac_compile) 2>&5
9202   ac_status=$?
9203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204   (exit $ac_status); } &&
9205          { ac_try='test -s conftest.$ac_objext'
9206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207   (eval $ac_try) 2>&5
9208   ac_status=$?
9209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210   (exit $ac_status); }; }; then
9211   ac_cv_c_const=yes
9212 else
9213   echo "$as_me: failed program was:" >&5
9214 cat conftest.$ac_ext >&5
9215 ac_cv_c_const=no
9216 fi
9217 rm -f conftest.$ac_objext conftest.$ac_ext
9218 fi
9219 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9220 echo "${ECHO_T}$ac_cv_c_const" >&6
9221 if test $ac_cv_c_const = no; then
9222
9223 cat >>confdefs.h <<\_ACEOF
9224 #define const
9225 _ACEOF
9226
9227 fi
9228
9229 echo "$as_me:$LINENO: checking for inline" >&5
9230 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9231 if test "${ac_cv_c_inline+set}" = set; then
9232   echo $ECHO_N "(cached) $ECHO_C" >&6
9233 else
9234   ac_cv_c_inline=no
9235 for ac_kw in inline __inline__ __inline; do
9236   cat >conftest.$ac_ext <<_ACEOF
9237 #line $LINENO "configure"
9238 #include "confdefs.h"
9239 #ifndef __cplusplus
9240 static $ac_kw int static_foo () {return 0; }
9241 $ac_kw int foo () {return 0; }
9242 #endif
9243
9244 _ACEOF
9245 rm -f conftest.$ac_objext
9246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9247   (eval $ac_compile) 2>&5
9248   ac_status=$?
9249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250   (exit $ac_status); } &&
9251          { ac_try='test -s conftest.$ac_objext'
9252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9253   (eval $ac_try) 2>&5
9254   ac_status=$?
9255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256   (exit $ac_status); }; }; then
9257   ac_cv_c_inline=$ac_kw; break
9258 else
9259   echo "$as_me: failed program was:" >&5
9260 cat conftest.$ac_ext >&5
9261 fi
9262 rm -f conftest.$ac_objext conftest.$ac_ext
9263 done
9264
9265 fi
9266 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9267 echo "${ECHO_T}$ac_cv_c_inline" >&6
9268 case $ac_cv_c_inline in
9269   inline | yes) ;;
9270   no)
9271 cat >>confdefs.h <<\_ACEOF
9272 #define inline
9273 _ACEOF
9274  ;;
9275   *)  cat >>confdefs.h <<_ACEOF
9276 #define inline $ac_cv_c_inline
9277 _ACEOF
9278  ;;
9279 esac
9280
9281 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9282 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9283 if test "${ac_cv_c_stringize+set}" = set; then
9284   echo $ECHO_N "(cached) $ECHO_C" >&6
9285 else
9286   cat >conftest.$ac_ext <<_ACEOF
9287 #line $LINENO "configure"
9288 #include "confdefs.h"
9289 #define x(y) #y
9290
9291 char *s = x(teststring);
9292 _ACEOF
9293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9294   egrep "#teststring" >/dev/null 2>&1; then
9295   ac_cv_c_stringize=no
9296 else
9297   ac_cv_c_stringize=yes
9298 fi
9299 rm -f conftest*
9300
9301 fi
9302 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9303 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9304 if test $ac_cv_c_stringize = yes; then
9305
9306 cat >>confdefs.h <<\_ACEOF
9307 #define HAVE_STRINGIZE 1
9308 _ACEOF
9309
9310 fi
9311
9312 echo "$as_me:$LINENO: checking for signed types" >&5
9313 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9314 if test "${pgac_cv_c_signed+set}" = set; then
9315   echo $ECHO_N "(cached) $ECHO_C" >&6
9316 else
9317   cat >conftest.$ac_ext <<_ACEOF
9318 #line $LINENO "configure"
9319 #include "confdefs.h"
9320
9321 #ifdef F77_DUMMY_MAIN
9322 #  ifdef __cplusplus
9323      extern "C"
9324 #  endif
9325    int F77_DUMMY_MAIN() { return 1; }
9326 #endif
9327 int
9328 main ()
9329 {
9330 signed char c; signed short s; signed int i;
9331   ;
9332   return 0;
9333 }
9334 _ACEOF
9335 rm -f conftest.$ac_objext
9336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9337   (eval $ac_compile) 2>&5
9338   ac_status=$?
9339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340   (exit $ac_status); } &&
9341          { ac_try='test -s conftest.$ac_objext'
9342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9343   (eval $ac_try) 2>&5
9344   ac_status=$?
9345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346   (exit $ac_status); }; }; then
9347   pgac_cv_c_signed=yes
9348 else
9349   echo "$as_me: failed program was:" >&5
9350 cat conftest.$ac_ext >&5
9351 pgac_cv_c_signed=no
9352 fi
9353 rm -f conftest.$ac_objext conftest.$ac_ext
9354 fi
9355 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9356 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9357 if test x"$pgac_cv_c_signed" = xno ; then
9358
9359 cat >>confdefs.h <<\_ACEOF
9360 #define signed
9361 _ACEOF
9362
9363 fi
9364 echo "$as_me:$LINENO: checking for working volatile" >&5
9365 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9366 if test "${ac_cv_c_volatile+set}" = set; then
9367   echo $ECHO_N "(cached) $ECHO_C" >&6
9368 else
9369   cat >conftest.$ac_ext <<_ACEOF
9370 #line $LINENO "configure"
9371 #include "confdefs.h"
9372
9373 #ifdef F77_DUMMY_MAIN
9374 #  ifdef __cplusplus
9375      extern "C"
9376 #  endif
9377    int F77_DUMMY_MAIN() { return 1; }
9378 #endif
9379 int
9380 main ()
9381 {
9382
9383 volatile int x;
9384 int * volatile y;
9385   ;
9386   return 0;
9387 }
9388 _ACEOF
9389 rm -f conftest.$ac_objext
9390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9391   (eval $ac_compile) 2>&5
9392   ac_status=$?
9393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394   (exit $ac_status); } &&
9395          { ac_try='test -s conftest.$ac_objext'
9396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397   (eval $ac_try) 2>&5
9398   ac_status=$?
9399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400   (exit $ac_status); }; }; then
9401   ac_cv_c_volatile=yes
9402 else
9403   echo "$as_me: failed program was:" >&5
9404 cat conftest.$ac_ext >&5
9405 ac_cv_c_volatile=no
9406 fi
9407 rm -f conftest.$ac_objext conftest.$ac_ext
9408 fi
9409 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9410 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9411 if test $ac_cv_c_volatile = no; then
9412
9413 cat >>confdefs.h <<\_ACEOF
9414 #define volatile
9415 _ACEOF
9416
9417 fi
9418
9419 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9420 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9421 if test "${ac_cv_struct_tm+set}" = set; then
9422   echo $ECHO_N "(cached) $ECHO_C" >&6
9423 else
9424   cat >conftest.$ac_ext <<_ACEOF
9425 #line $LINENO "configure"
9426 #include "confdefs.h"
9427 #include <sys/types.h>
9428 #include <time.h>
9429
9430 #ifdef F77_DUMMY_MAIN
9431 #  ifdef __cplusplus
9432      extern "C"
9433 #  endif
9434    int F77_DUMMY_MAIN() { return 1; }
9435 #endif
9436 int
9437 main ()
9438 {
9439 struct tm *tp; tp->tm_sec;
9440   ;
9441   return 0;
9442 }
9443 _ACEOF
9444 rm -f conftest.$ac_objext
9445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9446   (eval $ac_compile) 2>&5
9447   ac_status=$?
9448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449   (exit $ac_status); } &&
9450          { ac_try='test -s conftest.$ac_objext'
9451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452   (eval $ac_try) 2>&5
9453   ac_status=$?
9454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455   (exit $ac_status); }; }; then
9456   ac_cv_struct_tm=time.h
9457 else
9458   echo "$as_me: failed program was:" >&5
9459 cat conftest.$ac_ext >&5
9460 ac_cv_struct_tm=sys/time.h
9461 fi
9462 rm -f conftest.$ac_objext conftest.$ac_ext
9463 fi
9464 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9465 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9466 if test $ac_cv_struct_tm = sys/time.h; then
9467
9468 cat >>confdefs.h <<\_ACEOF
9469 #define TM_IN_SYS_TIME 1
9470 _ACEOF
9471
9472 fi
9473
9474 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9475 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9476 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9477   echo $ECHO_N "(cached) $ECHO_C" >&6
9478 else
9479   cat >conftest.$ac_ext <<_ACEOF
9480 #line $LINENO "configure"
9481 #include "confdefs.h"
9482 #include <sys/types.h>
9483 #include <$ac_cv_struct_tm>
9484
9485
9486 #ifdef F77_DUMMY_MAIN
9487 #  ifdef __cplusplus
9488      extern "C"
9489 #  endif
9490    int F77_DUMMY_MAIN() { return 1; }
9491 #endif
9492 int
9493 main ()
9494 {
9495 static struct tm ac_aggr;
9496 if (ac_aggr.tm_zone)
9497 return 0;
9498   ;
9499   return 0;
9500 }
9501 _ACEOF
9502 rm -f conftest.$ac_objext
9503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9504   (eval $ac_compile) 2>&5
9505   ac_status=$?
9506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507   (exit $ac_status); } &&
9508          { ac_try='test -s conftest.$ac_objext'
9509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510   (eval $ac_try) 2>&5
9511   ac_status=$?
9512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513   (exit $ac_status); }; }; then
9514   ac_cv_member_struct_tm_tm_zone=yes
9515 else
9516   echo "$as_me: failed program was:" >&5
9517 cat conftest.$ac_ext >&5
9518 ac_cv_member_struct_tm_tm_zone=no
9519 fi
9520 rm -f conftest.$ac_objext conftest.$ac_ext
9521 fi
9522 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9523 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9524 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9525
9526 cat >>confdefs.h <<_ACEOF
9527 #define HAVE_STRUCT_TM_TM_ZONE 1
9528 _ACEOF
9529
9530
9531 fi
9532
9533 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9534
9535 cat >>confdefs.h <<\_ACEOF
9536 #define HAVE_TM_ZONE 1
9537 _ACEOF
9538
9539 else
9540   echo "$as_me:$LINENO: checking for tzname" >&5
9541 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9542 if test "${ac_cv_var_tzname+set}" = set; then
9543   echo $ECHO_N "(cached) $ECHO_C" >&6
9544 else
9545   cat >conftest.$ac_ext <<_ACEOF
9546 #line $LINENO "configure"
9547 #include "confdefs.h"
9548 #include <time.h>
9549 #ifndef tzname /* For SGI.  */
9550 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9551 #endif
9552
9553 #ifdef F77_DUMMY_MAIN
9554 #  ifdef __cplusplus
9555      extern "C"
9556 #  endif
9557    int F77_DUMMY_MAIN() { return 1; }
9558 #endif
9559 int
9560 main ()
9561 {
9562 atoi(*tzname);
9563   ;
9564   return 0;
9565 }
9566 _ACEOF
9567 rm -f conftest.$ac_objext conftest$ac_exeext
9568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9569   (eval $ac_link) 2>&5
9570   ac_status=$?
9571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572   (exit $ac_status); } &&
9573          { ac_try='test -s conftest$ac_exeext'
9574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575   (eval $ac_try) 2>&5
9576   ac_status=$?
9577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578   (exit $ac_status); }; }; then
9579   ac_cv_var_tzname=yes
9580 else
9581   echo "$as_me: failed program was:" >&5
9582 cat conftest.$ac_ext >&5
9583 ac_cv_var_tzname=no
9584 fi
9585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9586 fi
9587 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9588 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9589   if test $ac_cv_var_tzname = yes; then
9590
9591 cat >>confdefs.h <<\_ACEOF
9592 #define HAVE_TZNAME 1
9593 _ACEOF
9594
9595   fi
9596 fi
9597
9598 echo "$as_me:$LINENO: checking for union semun" >&5
9599 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9600 if test "${ac_cv_type_union_semun+set}" = set; then
9601   echo $ECHO_N "(cached) $ECHO_C" >&6
9602 else
9603   cat >conftest.$ac_ext <<_ACEOF
9604 #line $LINENO "configure"
9605 #include "confdefs.h"
9606 #include <sys/types.h>
9607 #include <sys/ipc.h>
9608 #include <sys/sem.h>
9609
9610 #ifdef F77_DUMMY_MAIN
9611 #  ifdef __cplusplus
9612      extern "C"
9613 #  endif
9614    int F77_DUMMY_MAIN() { return 1; }
9615 #endif
9616 int
9617 main ()
9618 {
9619 if ((union semun *) 0)
9620   return 0;
9621 if (sizeof (union semun))
9622   return 0;
9623   ;
9624   return 0;
9625 }
9626 _ACEOF
9627 rm -f conftest.$ac_objext
9628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9629   (eval $ac_compile) 2>&5
9630   ac_status=$?
9631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632   (exit $ac_status); } &&
9633          { ac_try='test -s conftest.$ac_objext'
9634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9635   (eval $ac_try) 2>&5
9636   ac_status=$?
9637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638   (exit $ac_status); }; }; then
9639   ac_cv_type_union_semun=yes
9640 else
9641   echo "$as_me: failed program was:" >&5
9642 cat conftest.$ac_ext >&5
9643 ac_cv_type_union_semun=no
9644 fi
9645 rm -f conftest.$ac_objext conftest.$ac_ext
9646 fi
9647 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9648 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9649 if test $ac_cv_type_union_semun = yes; then
9650
9651 cat >>confdefs.h <<_ACEOF
9652 #define HAVE_UNION_SEMUN 1
9653 _ACEOF
9654
9655
9656 fi
9657
9658 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9659 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9660 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9661   echo $ECHO_N "(cached) $ECHO_C" >&6
9662 else
9663   cat >conftest.$ac_ext <<_ACEOF
9664 #line $LINENO "configure"
9665 #include "confdefs.h"
9666 #include <sys/types.h>
9667 #ifdef HAVE_SYS_UN_H
9668 #include <sys/un.h>
9669 #endif
9670
9671
9672 #ifdef F77_DUMMY_MAIN
9673 #  ifdef __cplusplus
9674      extern "C"
9675 #  endif
9676    int F77_DUMMY_MAIN() { return 1; }
9677 #endif
9678 int
9679 main ()
9680 {
9681 if ((struct sockaddr_un *) 0)
9682   return 0;
9683 if (sizeof (struct sockaddr_un))
9684   return 0;
9685   ;
9686   return 0;
9687 }
9688 _ACEOF
9689 rm -f conftest.$ac_objext
9690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9691   (eval $ac_compile) 2>&5
9692   ac_status=$?
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); } &&
9695          { ac_try='test -s conftest.$ac_objext'
9696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697   (eval $ac_try) 2>&5
9698   ac_status=$?
9699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700   (exit $ac_status); }; }; then
9701   ac_cv_type_struct_sockaddr_un=yes
9702 else
9703   echo "$as_me: failed program was:" >&5
9704 cat conftest.$ac_ext >&5
9705 ac_cv_type_struct_sockaddr_un=no
9706 fi
9707 rm -f conftest.$ac_objext conftest.$ac_ext
9708 fi
9709 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9710 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9711 if test $ac_cv_type_struct_sockaddr_un = yes; then
9712
9713 cat >>confdefs.h <<_ACEOF
9714 #define HAVE_STRUCT_SOCKADDR_UN 1
9715 _ACEOF
9716
9717
9718 fi
9719
9720
9721 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
9722 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
9723 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
9724   echo $ECHO_N "(cached) $ECHO_C" >&6
9725 else
9726   cat >conftest.$ac_ext <<_ACEOF
9727 #line $LINENO "configure"
9728 #include "confdefs.h"
9729 #include <sys/param.h>
9730 #include <sys/socket.h>
9731 #include <sys/ucred.h>
9732
9733 #ifdef F77_DUMMY_MAIN
9734 #  ifdef __cplusplus
9735      extern "C"
9736 #  endif
9737    int F77_DUMMY_MAIN() { return 1; }
9738 #endif
9739 int
9740 main ()
9741 {
9742 if ((struct cmsgcred *) 0)
9743   return 0;
9744 if (sizeof (struct cmsgcred))
9745   return 0;
9746   ;
9747   return 0;
9748 }
9749 _ACEOF
9750 rm -f conftest.$ac_objext
9751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9752   (eval $ac_compile) 2>&5
9753   ac_status=$?
9754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755   (exit $ac_status); } &&
9756          { ac_try='test -s conftest.$ac_objext'
9757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758   (eval $ac_try) 2>&5
9759   ac_status=$?
9760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761   (exit $ac_status); }; }; then
9762   ac_cv_type_struct_cmsgcred=yes
9763 else
9764   echo "$as_me: failed program was:" >&5
9765 cat conftest.$ac_ext >&5
9766 ac_cv_type_struct_cmsgcred=no
9767 fi
9768 rm -f conftest.$ac_objext conftest.$ac_ext
9769 fi
9770 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9771 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9772 if test $ac_cv_type_struct_cmsgcred = yes; then
9773
9774 cat >>confdefs.h <<_ACEOF
9775 #define HAVE_STRUCT_CMSGCRED 1
9776 _ACEOF
9777
9778
9779 fi
9780 echo "$as_me:$LINENO: checking for struct fcred" >&5
9781 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9782 if test "${ac_cv_type_struct_fcred+set}" = set; then
9783   echo $ECHO_N "(cached) $ECHO_C" >&6
9784 else
9785   cat >conftest.$ac_ext <<_ACEOF
9786 #line $LINENO "configure"
9787 #include "confdefs.h"
9788 #include <sys/param.h>
9789 #include <sys/socket.h>
9790 #include <sys/ucred.h>
9791
9792 #ifdef F77_DUMMY_MAIN
9793 #  ifdef __cplusplus
9794      extern "C"
9795 #  endif
9796    int F77_DUMMY_MAIN() { return 1; }
9797 #endif
9798 int
9799 main ()
9800 {
9801 if ((struct fcred *) 0)
9802   return 0;
9803 if (sizeof (struct fcred))
9804   return 0;
9805   ;
9806   return 0;
9807 }
9808 _ACEOF
9809 rm -f conftest.$ac_objext
9810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9811   (eval $ac_compile) 2>&5
9812   ac_status=$?
9813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814   (exit $ac_status); } &&
9815          { ac_try='test -s conftest.$ac_objext'
9816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9817   (eval $ac_try) 2>&5
9818   ac_status=$?
9819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820   (exit $ac_status); }; }; then
9821   ac_cv_type_struct_fcred=yes
9822 else
9823   echo "$as_me: failed program was:" >&5
9824 cat conftest.$ac_ext >&5
9825 ac_cv_type_struct_fcred=no
9826 fi
9827 rm -f conftest.$ac_objext conftest.$ac_ext
9828 fi
9829 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9830 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9831 if test $ac_cv_type_struct_fcred = yes; then
9832
9833 cat >>confdefs.h <<_ACEOF
9834 #define HAVE_STRUCT_FCRED 1
9835 _ACEOF
9836
9837
9838 fi
9839 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9840 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9841 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9842   echo $ECHO_N "(cached) $ECHO_C" >&6
9843 else
9844   cat >conftest.$ac_ext <<_ACEOF
9845 #line $LINENO "configure"
9846 #include "confdefs.h"
9847 #include <sys/param.h>
9848 #include <sys/socket.h>
9849 #include <sys/ucred.h>
9850
9851 #ifdef F77_DUMMY_MAIN
9852 #  ifdef __cplusplus
9853      extern "C"
9854 #  endif
9855    int F77_DUMMY_MAIN() { return 1; }
9856 #endif
9857 int
9858 main ()
9859 {
9860 if ((struct sockcred *) 0)
9861   return 0;
9862 if (sizeof (struct sockcred))
9863   return 0;
9864   ;
9865   return 0;
9866 }
9867 _ACEOF
9868 rm -f conftest.$ac_objext
9869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9870   (eval $ac_compile) 2>&5
9871   ac_status=$?
9872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873   (exit $ac_status); } &&
9874          { ac_try='test -s conftest.$ac_objext'
9875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876   (eval $ac_try) 2>&5
9877   ac_status=$?
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); }; }; then
9880   ac_cv_type_struct_sockcred=yes
9881 else
9882   echo "$as_me: failed program was:" >&5
9883 cat conftest.$ac_ext >&5
9884 ac_cv_type_struct_sockcred=no
9885 fi
9886 rm -f conftest.$ac_objext conftest.$ac_ext
9887 fi
9888 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9889 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9890 if test $ac_cv_type_struct_sockcred = yes; then
9891
9892 cat >>confdefs.h <<_ACEOF
9893 #define HAVE_STRUCT_SOCKCRED 1
9894 _ACEOF
9895
9896
9897 fi
9898
9899
9900 if test "$with_zlib" = yes; then
9901   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9902   # did not).  While we could work around the lack of z_streamp, it
9903   # seems unwise to encourage people to use such old zlib versions...
9904   echo "$as_me:$LINENO: checking for z_streamp" >&5
9905 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9906 if test "${ac_cv_type_z_streamp+set}" = set; then
9907   echo $ECHO_N "(cached) $ECHO_C" >&6
9908 else
9909   cat >conftest.$ac_ext <<_ACEOF
9910 #line $LINENO "configure"
9911 #include "confdefs.h"
9912 #include <zlib.h>
9913
9914 #ifdef F77_DUMMY_MAIN
9915 #  ifdef __cplusplus
9916      extern "C"
9917 #  endif
9918    int F77_DUMMY_MAIN() { return 1; }
9919 #endif
9920 int
9921 main ()
9922 {
9923 if ((z_streamp *) 0)
9924   return 0;
9925 if (sizeof (z_streamp))
9926   return 0;
9927   ;
9928   return 0;
9929 }
9930 _ACEOF
9931 rm -f conftest.$ac_objext
9932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9933   (eval $ac_compile) 2>&5
9934   ac_status=$?
9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936   (exit $ac_status); } &&
9937          { ac_try='test -s conftest.$ac_objext'
9938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939   (eval $ac_try) 2>&5
9940   ac_status=$?
9941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942   (exit $ac_status); }; }; then
9943   ac_cv_type_z_streamp=yes
9944 else
9945   echo "$as_me: failed program was:" >&5
9946 cat conftest.$ac_ext >&5
9947 ac_cv_type_z_streamp=no
9948 fi
9949 rm -f conftest.$ac_objext conftest.$ac_ext
9950 fi
9951 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9952 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9953 if test $ac_cv_type_z_streamp = yes; then
9954   :
9955 else
9956   { { echo "$as_me:$LINENO: error: zlib version is too old
9957 Use --without-zlib to disable zlib support." >&5
9958 echo "$as_me: error: zlib version is too old
9959 Use --without-zlib to disable zlib support." >&2;}
9960    { (exit 1); exit 1; }; }
9961 fi
9962
9963 fi
9964
9965 if test "$with_krb5" = yes; then
9966 # Check for differences between MIT and Heimdal (KTH) releases
9967   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9968 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9969 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9970   echo $ECHO_N "(cached) $ECHO_C" >&6
9971 else
9972   cat >conftest.$ac_ext <<_ACEOF
9973 #line $LINENO "configure"
9974 #include "confdefs.h"
9975 #include <krb5.h>
9976
9977 #ifdef F77_DUMMY_MAIN
9978 #  ifdef __cplusplus
9979      extern "C"
9980 #  endif
9981    int F77_DUMMY_MAIN() { return 1; }
9982 #endif
9983 int
9984 main ()
9985 {
9986 static krb5_ticket ac_aggr;
9987 if (ac_aggr.enc_part2)
9988 return 0;
9989   ;
9990   return 0;
9991 }
9992 _ACEOF
9993 rm -f conftest.$ac_objext
9994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9995   (eval $ac_compile) 2>&5
9996   ac_status=$?
9997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998   (exit $ac_status); } &&
9999          { ac_try='test -s conftest.$ac_objext'
10000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001   (eval $ac_try) 2>&5
10002   ac_status=$?
10003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004   (exit $ac_status); }; }; then
10005   ac_cv_member_krb5_ticket_enc_part2=yes
10006 else
10007   echo "$as_me: failed program was:" >&5
10008 cat conftest.$ac_ext >&5
10009 ac_cv_member_krb5_ticket_enc_part2=no
10010 fi
10011 rm -f conftest.$ac_objext conftest.$ac_ext
10012 fi
10013 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10014 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10015 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10016
10017 cat >>confdefs.h <<_ACEOF
10018 #define HAVE_KRB5_TICKET_ENC_PART2 1
10019 _ACEOF
10020
10021
10022 else
10023   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10024 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10025 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10026   echo $ECHO_N "(cached) $ECHO_C" >&6
10027 else
10028   cat >conftest.$ac_ext <<_ACEOF
10029 #line $LINENO "configure"
10030 #include "confdefs.h"
10031 #include <krb5.h>
10032
10033 #ifdef F77_DUMMY_MAIN
10034 #  ifdef __cplusplus
10035      extern "C"
10036 #  endif
10037    int F77_DUMMY_MAIN() { return 1; }
10038 #endif
10039 int
10040 main ()
10041 {
10042 static krb5_ticket ac_aggr;
10043 if (ac_aggr.client)
10044 return 0;
10045   ;
10046   return 0;
10047 }
10048 _ACEOF
10049 rm -f conftest.$ac_objext
10050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10051   (eval $ac_compile) 2>&5
10052   ac_status=$?
10053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054   (exit $ac_status); } &&
10055          { ac_try='test -s conftest.$ac_objext'
10056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057   (eval $ac_try) 2>&5
10058   ac_status=$?
10059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060   (exit $ac_status); }; }; then
10061   ac_cv_member_krb5_ticket_client=yes
10062 else
10063   echo "$as_me: failed program was:" >&5
10064 cat conftest.$ac_ext >&5
10065 ac_cv_member_krb5_ticket_client=no
10066 fi
10067 rm -f conftest.$ac_objext conftest.$ac_ext
10068 fi
10069 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10070 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10071 if test $ac_cv_member_krb5_ticket_client = yes; then
10072
10073 cat >>confdefs.h <<_ACEOF
10074 #define HAVE_KRB5_TICKET_CLIENT 1
10075 _ACEOF
10076
10077
10078 else
10079   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10080 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10081    { (exit 1); exit 1; }; }
10082 fi
10083
10084 fi
10085
10086   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10087 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10088 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10089   echo $ECHO_N "(cached) $ECHO_C" >&6
10090 else
10091   cat >conftest.$ac_ext <<_ACEOF
10092 #line $LINENO "configure"
10093 #include "confdefs.h"
10094 #include <krb5.h>
10095
10096 #ifdef F77_DUMMY_MAIN
10097 #  ifdef __cplusplus
10098      extern "C"
10099 #  endif
10100    int F77_DUMMY_MAIN() { return 1; }
10101 #endif
10102 int
10103 main ()
10104 {
10105 static krb5_error ac_aggr;
10106 if (ac_aggr.text.data)
10107 return 0;
10108   ;
10109   return 0;
10110 }
10111 _ACEOF
10112 rm -f conftest.$ac_objext
10113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10114   (eval $ac_compile) 2>&5
10115   ac_status=$?
10116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117   (exit $ac_status); } &&
10118          { ac_try='test -s conftest.$ac_objext'
10119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120   (eval $ac_try) 2>&5
10121   ac_status=$?
10122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123   (exit $ac_status); }; }; then
10124   ac_cv_member_krb5_error_text_data=yes
10125 else
10126   echo "$as_me: failed program was:" >&5
10127 cat conftest.$ac_ext >&5
10128 ac_cv_member_krb5_error_text_data=no
10129 fi
10130 rm -f conftest.$ac_objext conftest.$ac_ext
10131 fi
10132 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10133 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10134 if test $ac_cv_member_krb5_error_text_data = yes; then
10135
10136 cat >>confdefs.h <<_ACEOF
10137 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10138 _ACEOF
10139
10140
10141 else
10142   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10143 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10144 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10145   echo $ECHO_N "(cached) $ECHO_C" >&6
10146 else
10147   cat >conftest.$ac_ext <<_ACEOF
10148 #line $LINENO "configure"
10149 #include "confdefs.h"
10150 #include <krb5.h>
10151
10152 #ifdef F77_DUMMY_MAIN
10153 #  ifdef __cplusplus
10154      extern "C"
10155 #  endif
10156    int F77_DUMMY_MAIN() { return 1; }
10157 #endif
10158 int
10159 main ()
10160 {
10161 static krb5_error ac_aggr;
10162 if (ac_aggr.e_data)
10163 return 0;
10164   ;
10165   return 0;
10166 }
10167 _ACEOF
10168 rm -f conftest.$ac_objext
10169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10170   (eval $ac_compile) 2>&5
10171   ac_status=$?
10172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173   (exit $ac_status); } &&
10174          { ac_try='test -s conftest.$ac_objext'
10175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176   (eval $ac_try) 2>&5
10177   ac_status=$?
10178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179   (exit $ac_status); }; }; then
10180   ac_cv_member_krb5_error_e_data=yes
10181 else
10182   echo "$as_me: failed program was:" >&5
10183 cat conftest.$ac_ext >&5
10184 ac_cv_member_krb5_error_e_data=no
10185 fi
10186 rm -f conftest.$ac_objext conftest.$ac_ext
10187 fi
10188 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10189 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10190 if test $ac_cv_member_krb5_error_e_data = yes; then
10191   :
10192 else
10193   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10194 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10195    { (exit 1); exit 1; }; }
10196 fi
10197
10198 fi
10199
10200 fi
10201
10202
10203 ##
10204 ## Functions, global variables
10205 ##
10206 echo "$as_me:$LINENO: checking for int timezone" >&5
10207 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10208 if test "${pgac_cv_var_int_timezone+set}" = set; then
10209   echo $ECHO_N "(cached) $ECHO_C" >&6
10210 else
10211   cat >conftest.$ac_ext <<_ACEOF
10212 #line $LINENO "configure"
10213 #include "confdefs.h"
10214 #include <time.h>
10215 int res;
10216 #ifdef F77_DUMMY_MAIN
10217 #  ifdef __cplusplus
10218      extern "C"
10219 #  endif
10220    int F77_DUMMY_MAIN() { return 1; }
10221 #endif
10222 int
10223 main ()
10224 {
10225 res = timezone / 60;
10226   ;
10227   return 0;
10228 }
10229 _ACEOF
10230 rm -f conftest.$ac_objext conftest$ac_exeext
10231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10232   (eval $ac_link) 2>&5
10233   ac_status=$?
10234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235   (exit $ac_status); } &&
10236          { ac_try='test -s conftest$ac_exeext'
10237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238   (eval $ac_try) 2>&5
10239   ac_status=$?
10240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241   (exit $ac_status); }; }; then
10242   pgac_cv_var_int_timezone=yes
10243 else
10244   echo "$as_me: failed program was:" >&5
10245 cat conftest.$ac_ext >&5
10246 pgac_cv_var_int_timezone=no
10247 fi
10248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10249 fi
10250 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10251 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10252 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10253
10254 cat >>confdefs.h <<\_ACEOF
10255 #define HAVE_INT_TIMEZONE
10256 _ACEOF
10257
10258 fi
10259 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10260 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10261  if test "${ac_cv_func_accept_arg1+set}" = set; then
10262   echo $ECHO_N "(cached) $ECHO_C" >&6
10263 else
10264    if test "${ac_cv_func_accept_arg2+set}" = set; then
10265   echo $ECHO_N "(cached) $ECHO_C" >&6
10266 else
10267     if test "${ac_cv_func_accept_arg3+set}" = set; then
10268   echo $ECHO_N "(cached) $ECHO_C" >&6
10269 else
10270      for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10271      for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10272       for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10273        cat >conftest.$ac_ext <<_ACEOF
10274 #line $LINENO "configure"
10275 #include "confdefs.h"
10276 #ifdef HAVE_SYS_TYPES_H
10277 #include <sys/types.h>
10278 #endif
10279 #ifdef HAVE_SYS_SOCKET_H
10280 #include <sys/socket.h>
10281 #endif
10282 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10283 #ifdef F77_DUMMY_MAIN
10284 #  ifdef __cplusplus
10285      extern "C"
10286 #  endif
10287    int F77_DUMMY_MAIN() { return 1; }
10288 #endif
10289 int
10290 main ()
10291 {
10292
10293   ;
10294   return 0;
10295 }
10296 _ACEOF
10297 rm -f conftest.$ac_objext
10298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10299   (eval $ac_compile) 2>&5
10300   ac_status=$?
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); } &&
10303          { ac_try='test -s conftest.$ac_objext'
10304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305   (eval $ac_try) 2>&5
10306   ac_status=$?
10307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308   (exit $ac_status); }; }; then
10309   ac_not_found=no; break 3
10310 else
10311   echo "$as_me: failed program was:" >&5
10312 cat conftest.$ac_ext >&5
10313 ac_not_found=yes
10314 fi
10315 rm -f conftest.$ac_objext conftest.$ac_ext
10316       done
10317      done
10318     done
10319     if test "$ac_not_found" = yes; then
10320       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10321 echo "$as_me: error: could not determine argument types" >&2;}
10322    { (exit 1); exit 1; }; }
10323     fi
10324     if test "$ac_cv_func_accept_arg3" = "void"; then
10325       ac_cv_func_accept_arg3=int
10326     fi
10327
10328 fi
10329
10330 fi
10331
10332 fi
10333  echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10334 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10335
10336 cat >>confdefs.h <<_ACEOF
10337 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10338 _ACEOF
10339
10340
10341 cat >>confdefs.h <<_ACEOF
10342 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10343 _ACEOF
10344
10345
10346 cat >>confdefs.h <<_ACEOF
10347 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10348 _ACEOF
10349
10350
10351 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10352 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10353 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10354   echo $ECHO_N "(cached) $ECHO_C" >&6
10355 else
10356   cat >conftest.$ac_ext <<_ACEOF
10357 #line $LINENO "configure"
10358 #include "confdefs.h"
10359 #include <sys/time.h>
10360 #ifdef F77_DUMMY_MAIN
10361 #  ifdef __cplusplus
10362      extern "C"
10363 #  endif
10364    int F77_DUMMY_MAIN() { return 1; }
10365 #endif
10366 int
10367 main ()
10368 {
10369 struct timeval *tp;
10370 struct timezone *tzp;
10371 gettimeofday(tp,tzp);
10372   ;
10373   return 0;
10374 }
10375 _ACEOF
10376 rm -f conftest.$ac_objext
10377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10378   (eval $ac_compile) 2>&5
10379   ac_status=$?
10380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381   (exit $ac_status); } &&
10382          { ac_try='test -s conftest.$ac_objext'
10383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384   (eval $ac_try) 2>&5
10385   ac_status=$?
10386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387   (exit $ac_status); }; }; then
10388   pgac_cv_func_gettimeofday_1arg=no
10389 else
10390   echo "$as_me: failed program was:" >&5
10391 cat conftest.$ac_ext >&5
10392 pgac_cv_func_gettimeofday_1arg=yes
10393 fi
10394 rm -f conftest.$ac_objext conftest.$ac_ext
10395 fi
10396 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10397 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10398 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10399
10400 cat >>confdefs.h <<\_ACEOF
10401 #define GETTIMEOFDAY_1ARG
10402 _ACEOF
10403
10404 fi
10405
10406 # SunOS doesn't handle negative byte comparisons properly with +/- return
10407 echo "$as_me:$LINENO: checking for 8-bit clean memcmp" >&5
10408 echo $ECHO_N "checking for 8-bit clean memcmp... $ECHO_C" >&6
10409 if test "${pgac_cv_func_memcmp_clean+set}" = set; then
10410   echo $ECHO_N "(cached) $ECHO_C" >&6
10411 else
10412   if test "$cross_compiling" = yes; then
10413   pgac_cv_func_memcmp_clean=no
10414 else
10415   cat >conftest.$ac_ext <<_ACEOF
10416 #line $LINENO "configure"
10417 #include "confdefs.h"
10418
10419 main()
10420 {
10421   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10422   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10423 }
10424
10425 _ACEOF
10426 rm -f conftest$ac_exeext
10427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10428   (eval $ac_link) 2>&5
10429   ac_status=$?
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10433   (eval $ac_try) 2>&5
10434   ac_status=$?
10435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436   (exit $ac_status); }; }; then
10437   pgac_cv_func_memcmp_clean=yes
10438 else
10439   echo "$as_me: program exited with status $ac_status" >&5
10440 echo "$as_me: failed program was:" >&5
10441 cat conftest.$ac_ext >&5
10442 ( exit $ac_status )
10443 pgac_cv_func_memcmp_clean=no
10444 fi
10445 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10446 fi
10447 fi
10448 echo "$as_me:$LINENO: result: $pgac_cv_func_memcmp_clean" >&5
10449 echo "${ECHO_T}$pgac_cv_func_memcmp_clean" >&6
10450 if test $pgac_cv_func_memcmp_clean = no ; then
10451   MEMCMP=memcmp.o
10452 else
10453   MEMCMP=
10454 fi
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469 for ac_func in cbrt fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
10470 do
10471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10472 echo "$as_me:$LINENO: checking for $ac_func" >&5
10473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10474 if eval "test \"\${$as_ac_var+set}\" = set"; then
10475   echo $ECHO_N "(cached) $ECHO_C" >&6
10476 else
10477   cat >conftest.$ac_ext <<_ACEOF
10478 #line $LINENO "configure"
10479 #include "confdefs.h"
10480 /* System header to define __stub macros and hopefully few prototypes,
10481     which can conflict with char $ac_func (); below.  */
10482 #include <assert.h>
10483 /* Override any gcc2 internal prototype to avoid an error.  */
10484 #ifdef __cplusplus
10485 extern "C"
10486 #endif
10487 /* We use char because int might match the return type of a gcc2
10488    builtin and then its argument prototype would still apply.  */
10489 char $ac_func ();
10490 char (*f) ();
10491
10492 #ifdef F77_DUMMY_MAIN
10493 #  ifdef __cplusplus
10494      extern "C"
10495 #  endif
10496    int F77_DUMMY_MAIN() { return 1; }
10497 #endif
10498 int
10499 main ()
10500 {
10501 /* The GNU C library defines this for functions which it implements
10502     to always fail with ENOSYS.  Some functions are actually named
10503     something starting with __ and the normal name is an alias.  */
10504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10505 choke me
10506 #else
10507 f = $ac_func;
10508 #endif
10509
10510   ;
10511   return 0;
10512 }
10513 _ACEOF
10514 rm -f conftest.$ac_objext conftest$ac_exeext
10515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10516   (eval $ac_link) 2>&5
10517   ac_status=$?
10518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519   (exit $ac_status); } &&
10520          { ac_try='test -s conftest$ac_exeext'
10521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10522   (eval $ac_try) 2>&5
10523   ac_status=$?
10524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525   (exit $ac_status); }; }; then
10526   eval "$as_ac_var=yes"
10527 else
10528   echo "$as_me: failed program was:" >&5
10529 cat conftest.$ac_ext >&5
10530 eval "$as_ac_var=no"
10531 fi
10532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10533 fi
10534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10535 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10536 if test `eval echo '${'$as_ac_var'}'` = yes; then
10537   cat >>confdefs.h <<_ACEOF
10538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10539 _ACEOF
10540
10541 fi
10542 done
10543
10544
10545 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10546 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10547 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10548   echo $ECHO_N "(cached) $ECHO_C" >&6
10549 else
10550   cat >conftest.$ac_ext <<_ACEOF
10551 #line $LINENO "configure"
10552 #include "confdefs.h"
10553 #include <unistd.h>
10554
10555 #ifdef F77_DUMMY_MAIN
10556 #  ifdef __cplusplus
10557      extern "C"
10558 #  endif
10559    int F77_DUMMY_MAIN() { return 1; }
10560 #endif
10561 int
10562 main ()
10563 {
10564 #ifndef fdatasync
10565   char *p = (char *) fdatasync;
10566 #endif
10567
10568   ;
10569   return 0;
10570 }
10571 _ACEOF
10572 rm -f conftest.$ac_objext
10573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10574   (eval $ac_compile) 2>&5
10575   ac_status=$?
10576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577   (exit $ac_status); } &&
10578          { ac_try='test -s conftest.$ac_objext'
10579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580   (eval $ac_try) 2>&5
10581   ac_status=$?
10582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583   (exit $ac_status); }; }; then
10584   ac_cv_have_decl_fdatasync=yes
10585 else
10586   echo "$as_me: failed program was:" >&5
10587 cat conftest.$ac_ext >&5
10588 ac_cv_have_decl_fdatasync=no
10589 fi
10590 rm -f conftest.$ac_objext conftest.$ac_ext
10591 fi
10592 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10593 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10594 if test $ac_cv_have_decl_fdatasync = yes; then
10595
10596 cat >>confdefs.h <<_ACEOF
10597 #define HAVE_DECL_FDATASYNC 1
10598 _ACEOF
10599
10600
10601 else
10602   cat >>confdefs.h <<_ACEOF
10603 #define HAVE_DECL_FDATASYNC 0
10604 _ACEOF
10605
10606
10607 fi
10608
10609
10610
10611 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
10612 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
10613 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
10614   echo $ECHO_N "(cached) $ECHO_C" >&6
10615 else
10616   cat >conftest.$ac_ext <<_ACEOF
10617 #line $LINENO "configure"
10618 #include "confdefs.h"
10619 #include <machine/vmparam.h>
10620 #include <sys/exec.h>
10621
10622 #ifdef F77_DUMMY_MAIN
10623 #  ifdef __cplusplus
10624      extern "C"
10625 #  endif
10626    int F77_DUMMY_MAIN() { return 1; }
10627 #endif
10628 int
10629 main ()
10630 {
10631 PS_STRINGS->ps_nargvstr = 1;
10632 PS_STRINGS->ps_argvstr = "foo";
10633   ;
10634   return 0;
10635 }
10636 _ACEOF
10637 rm -f conftest.$ac_objext conftest$ac_exeext
10638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10639   (eval $ac_link) 2>&5
10640   ac_status=$?
10641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642   (exit $ac_status); } &&
10643          { ac_try='test -s conftest$ac_exeext'
10644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645   (eval $ac_try) 2>&5
10646   ac_status=$?
10647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648   (exit $ac_status); }; }; then
10649   pgac_cv_var_PS_STRINGS=yes
10650 else
10651   echo "$as_me: failed program was:" >&5
10652 cat conftest.$ac_ext >&5
10653 pgac_cv_var_PS_STRINGS=no
10654 fi
10655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10656 fi
10657 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
10658 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
10659 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
10660
10661 cat >>confdefs.h <<\_ACEOF
10662 #define HAVE_PS_STRINGS
10663 _ACEOF
10664
10665 fi
10666
10667
10668 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
10669 # is missing.  Yes, there are machines that have only one.  We may
10670 # also decide to use snprintf.c if snprintf() is present but does not
10671 # have working "long long int" support -- see below.
10672
10673 SNPRINTF=''
10674
10675 for ac_func in snprintf
10676 do
10677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10678 echo "$as_me:$LINENO: checking for $ac_func" >&5
10679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10680 if eval "test \"\${$as_ac_var+set}\" = set"; then
10681   echo $ECHO_N "(cached) $ECHO_C" >&6
10682 else
10683   cat >conftest.$ac_ext <<_ACEOF
10684 #line $LINENO "configure"
10685 #include "confdefs.h"
10686 /* System header to define __stub macros and hopefully few prototypes,
10687     which can conflict with char $ac_func (); below.  */
10688 #include <assert.h>
10689 /* Override any gcc2 internal prototype to avoid an error.  */
10690 #ifdef __cplusplus
10691 extern "C"
10692 #endif
10693 /* We use char because int might match the return type of a gcc2
10694    builtin and then its argument prototype would still apply.  */
10695 char $ac_func ();
10696 char (*f) ();
10697
10698 #ifdef F77_DUMMY_MAIN
10699 #  ifdef __cplusplus
10700      extern "C"
10701 #  endif
10702    int F77_DUMMY_MAIN() { return 1; }
10703 #endif
10704 int
10705 main ()
10706 {
10707 /* The GNU C library defines this for functions which it implements
10708     to always fail with ENOSYS.  Some functions are actually named
10709     something starting with __ and the normal name is an alias.  */
10710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10711 choke me
10712 #else
10713 f = $ac_func;
10714 #endif
10715
10716   ;
10717   return 0;
10718 }
10719 _ACEOF
10720 rm -f conftest.$ac_objext conftest$ac_exeext
10721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10722   (eval $ac_link) 2>&5
10723   ac_status=$?
10724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725   (exit $ac_status); } &&
10726          { ac_try='test -s conftest$ac_exeext'
10727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728   (eval $ac_try) 2>&5
10729   ac_status=$?
10730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731   (exit $ac_status); }; }; then
10732   eval "$as_ac_var=yes"
10733 else
10734   echo "$as_me: failed program was:" >&5
10735 cat conftest.$ac_ext >&5
10736 eval "$as_ac_var=no"
10737 fi
10738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10739 fi
10740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10742 if test `eval echo '${'$as_ac_var'}'` = yes; then
10743   cat >>confdefs.h <<_ACEOF
10744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10745 _ACEOF
10746
10747 else
10748   SNPRINTF='$(top_builddir)/src/backend/port/snprintf.o'
10749 fi
10750 done
10751
10752
10753 for ac_func in vsnprintf
10754 do
10755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10756 echo "$as_me:$LINENO: checking for $ac_func" >&5
10757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10758 if eval "test \"\${$as_ac_var+set}\" = set"; then
10759   echo $ECHO_N "(cached) $ECHO_C" >&6
10760 else
10761   cat >conftest.$ac_ext <<_ACEOF
10762 #line $LINENO "configure"
10763 #include "confdefs.h"
10764 /* System header to define __stub macros and hopefully few prototypes,
10765     which can conflict with char $ac_func (); below.  */
10766 #include <assert.h>
10767 /* Override any gcc2 internal prototype to avoid an error.  */
10768 #ifdef __cplusplus
10769 extern "C"
10770 #endif
10771 /* We use char because int might match the return type of a gcc2
10772    builtin and then its argument prototype would still apply.  */
10773 char $ac_func ();
10774 char (*f) ();
10775
10776 #ifdef F77_DUMMY_MAIN
10777 #  ifdef __cplusplus
10778      extern "C"
10779 #  endif
10780    int F77_DUMMY_MAIN() { return 1; }
10781 #endif
10782 int
10783 main ()
10784 {
10785 /* The GNU C library defines this for functions which it implements
10786     to always fail with ENOSYS.  Some functions are actually named
10787     something starting with __ and the normal name is an alias.  */
10788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10789 choke me
10790 #else
10791 f = $ac_func;
10792 #endif
10793
10794   ;
10795   return 0;
10796 }
10797 _ACEOF
10798 rm -f conftest.$ac_objext conftest$ac_exeext
10799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10800   (eval $ac_link) 2>&5
10801   ac_status=$?
10802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803   (exit $ac_status); } &&
10804          { ac_try='test -s conftest$ac_exeext'
10805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10806   (eval $ac_try) 2>&5
10807   ac_status=$?
10808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809   (exit $ac_status); }; }; then
10810   eval "$as_ac_var=yes"
10811 else
10812   echo "$as_me: failed program was:" >&5
10813 cat conftest.$ac_ext >&5
10814 eval "$as_ac_var=no"
10815 fi
10816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10817 fi
10818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10819 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10820 if test `eval echo '${'$as_ac_var'}'` = yes; then
10821   cat >>confdefs.h <<_ACEOF
10822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10823 _ACEOF
10824
10825 else
10826   SNPRINTF='$(top_builddir)/src/backend/port/snprintf.o'
10827 fi
10828 done
10829
10830
10831
10832
10833 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10834 # include/c.h will provide declarations.  Note this is a separate test
10835 # from whether the functions exist in the C library --- there are
10836 # systems that have the functions but don't bother to declare them :-(
10837
10838 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10839 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10840 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10841   echo $ECHO_N "(cached) $ECHO_C" >&6
10842 else
10843   cat >conftest.$ac_ext <<_ACEOF
10844 #line $LINENO "configure"
10845 #include "confdefs.h"
10846 $ac_includes_default
10847 #ifdef F77_DUMMY_MAIN
10848 #  ifdef __cplusplus
10849      extern "C"
10850 #  endif
10851    int F77_DUMMY_MAIN() { return 1; }
10852 #endif
10853 int
10854 main ()
10855 {
10856 #ifndef snprintf
10857   char *p = (char *) snprintf;
10858 #endif
10859
10860   ;
10861   return 0;
10862 }
10863 _ACEOF
10864 rm -f conftest.$ac_objext
10865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10866   (eval $ac_compile) 2>&5
10867   ac_status=$?
10868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869   (exit $ac_status); } &&
10870          { ac_try='test -s conftest.$ac_objext'
10871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10872   (eval $ac_try) 2>&5
10873   ac_status=$?
10874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875   (exit $ac_status); }; }; then
10876   ac_cv_have_decl_snprintf=yes
10877 else
10878   echo "$as_me: failed program was:" >&5
10879 cat conftest.$ac_ext >&5
10880 ac_cv_have_decl_snprintf=no
10881 fi
10882 rm -f conftest.$ac_objext conftest.$ac_ext
10883 fi
10884 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10885 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10886 if test $ac_cv_have_decl_snprintf = yes; then
10887
10888 cat >>confdefs.h <<_ACEOF
10889 #define HAVE_DECL_SNPRINTF 1
10890 _ACEOF
10891
10892
10893 else
10894   cat >>confdefs.h <<_ACEOF
10895 #define HAVE_DECL_SNPRINTF 0
10896 _ACEOF
10897
10898
10899 fi
10900 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10901 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10902 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10903   echo $ECHO_N "(cached) $ECHO_C" >&6
10904 else
10905   cat >conftest.$ac_ext <<_ACEOF
10906 #line $LINENO "configure"
10907 #include "confdefs.h"
10908 $ac_includes_default
10909 #ifdef F77_DUMMY_MAIN
10910 #  ifdef __cplusplus
10911      extern "C"
10912 #  endif
10913    int F77_DUMMY_MAIN() { return 1; }
10914 #endif
10915 int
10916 main ()
10917 {
10918 #ifndef vsnprintf
10919   char *p = (char *) vsnprintf;
10920 #endif
10921
10922   ;
10923   return 0;
10924 }
10925 _ACEOF
10926 rm -f conftest.$ac_objext
10927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10928   (eval $ac_compile) 2>&5
10929   ac_status=$?
10930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931   (exit $ac_status); } &&
10932          { ac_try='test -s conftest.$ac_objext'
10933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934   (eval $ac_try) 2>&5
10935   ac_status=$?
10936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937   (exit $ac_status); }; }; then
10938   ac_cv_have_decl_vsnprintf=yes
10939 else
10940   echo "$as_me: failed program was:" >&5
10941 cat conftest.$ac_ext >&5
10942 ac_cv_have_decl_vsnprintf=no
10943 fi
10944 rm -f conftest.$ac_objext conftest.$ac_ext
10945 fi
10946 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10947 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10948 if test $ac_cv_have_decl_vsnprintf = yes; then
10949
10950 cat >>confdefs.h <<_ACEOF
10951 #define HAVE_DECL_VSNPRINTF 1
10952 _ACEOF
10953
10954
10955 else
10956   cat >>confdefs.h <<_ACEOF
10957 #define HAVE_DECL_VSNPRINTF 0
10958 _ACEOF
10959
10960
10961 fi
10962
10963
10964
10965
10966 # do this one the hard way in case isinf() is a macro
10967 echo "$as_me:$LINENO: checking for isinf" >&5
10968 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10969 if test "${ac_cv_func_isinf+set}" = set; then
10970   echo $ECHO_N "(cached) $ECHO_C" >&6
10971 else
10972   cat >conftest.$ac_ext <<_ACEOF
10973 #line $LINENO "configure"
10974 #include "confdefs.h"
10975 #include <math.h>
10976
10977 #ifdef F77_DUMMY_MAIN
10978 #  ifdef __cplusplus
10979      extern "C"
10980 #  endif
10981    int F77_DUMMY_MAIN() { return 1; }
10982 #endif
10983 int
10984 main ()
10985 {
10986 double x = 0.0; int res = isinf(x);
10987   ;
10988   return 0;
10989 }
10990 _ACEOF
10991 rm -f conftest.$ac_objext conftest$ac_exeext
10992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10993   (eval $ac_link) 2>&5
10994   ac_status=$?
10995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996   (exit $ac_status); } &&
10997          { ac_try='test -s conftest$ac_exeext'
10998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999   (eval $ac_try) 2>&5
11000   ac_status=$?
11001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002   (exit $ac_status); }; }; then
11003   ac_cv_func_isinf=yes
11004 else
11005   echo "$as_me: failed program was:" >&5
11006 cat conftest.$ac_ext >&5
11007 ac_cv_func_isinf=no
11008 fi
11009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11010 fi
11011 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11012 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11013
11014 if test $ac_cv_func_isinf = yes ; then
11015
11016 cat >>confdefs.h <<\_ACEOF
11017 #define HAVE_ISINF 1
11018 _ACEOF
11019
11020   ISINF=
11021 else
11022   ISINF='isinf.o'
11023   # Look for a way to implement a substitute for isinf()
11024
11025
11026
11027
11028 for ac_func in fpclass fp_class fp_class_d class
11029 do
11030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11031 echo "$as_me:$LINENO: checking for $ac_func" >&5
11032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11033 if eval "test \"\${$as_ac_var+set}\" = set"; then
11034   echo $ECHO_N "(cached) $ECHO_C" >&6
11035 else
11036   cat >conftest.$ac_ext <<_ACEOF
11037 #line $LINENO "configure"
11038 #include "confdefs.h"
11039 /* System header to define __stub macros and hopefully few prototypes,
11040     which can conflict with char $ac_func (); below.  */
11041 #include <assert.h>
11042 /* Override any gcc2 internal prototype to avoid an error.  */
11043 #ifdef __cplusplus
11044 extern "C"
11045 #endif
11046 /* We use char because int might match the return type of a gcc2
11047    builtin and then its argument prototype would still apply.  */
11048 char $ac_func ();
11049 char (*f) ();
11050
11051 #ifdef F77_DUMMY_MAIN
11052 #  ifdef __cplusplus
11053      extern "C"
11054 #  endif
11055    int F77_DUMMY_MAIN() { return 1; }
11056 #endif
11057 int
11058 main ()
11059 {
11060 /* The GNU C library defines this for functions which it implements
11061     to always fail with ENOSYS.  Some functions are actually named
11062     something starting with __ and the normal name is an alias.  */
11063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11064 choke me
11065 #else
11066 f = $ac_func;
11067 #endif
11068
11069   ;
11070   return 0;
11071 }
11072 _ACEOF
11073 rm -f conftest.$ac_objext conftest$ac_exeext
11074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11075   (eval $ac_link) 2>&5
11076   ac_status=$?
11077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078   (exit $ac_status); } &&
11079          { ac_try='test -s conftest$ac_exeext'
11080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081   (eval $ac_try) 2>&5
11082   ac_status=$?
11083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084   (exit $ac_status); }; }; then
11085   eval "$as_ac_var=yes"
11086 else
11087   echo "$as_me: failed program was:" >&5
11088 cat conftest.$ac_ext >&5
11089 eval "$as_ac_var=no"
11090 fi
11091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11092 fi
11093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11095 if test `eval echo '${'$as_ac_var'}'` = yes; then
11096   cat >>confdefs.h <<_ACEOF
11097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11098 _ACEOF
11099  break
11100 fi
11101 done
11102
11103 fi
11104
11105
11106
11107
11108 for ac_func in getrusage
11109 do
11110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11111 echo "$as_me:$LINENO: checking for $ac_func" >&5
11112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11113 if eval "test \"\${$as_ac_var+set}\" = set"; then
11114   echo $ECHO_N "(cached) $ECHO_C" >&6
11115 else
11116   cat >conftest.$ac_ext <<_ACEOF
11117 #line $LINENO "configure"
11118 #include "confdefs.h"
11119 /* System header to define __stub macros and hopefully few prototypes,
11120     which can conflict with char $ac_func (); below.  */
11121 #include <assert.h>
11122 /* Override any gcc2 internal prototype to avoid an error.  */
11123 #ifdef __cplusplus
11124 extern "C"
11125 #endif
11126 /* We use char because int might match the return type of a gcc2
11127    builtin and then its argument prototype would still apply.  */
11128 char $ac_func ();
11129 char (*f) ();
11130
11131 #ifdef F77_DUMMY_MAIN
11132 #  ifdef __cplusplus
11133      extern "C"
11134 #  endif
11135    int F77_DUMMY_MAIN() { return 1; }
11136 #endif
11137 int
11138 main ()
11139 {
11140 /* The GNU C library defines this for functions which it implements
11141     to always fail with ENOSYS.  Some functions are actually named
11142     something starting with __ and the normal name is an alias.  */
11143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11144 choke me
11145 #else
11146 f = $ac_func;
11147 #endif
11148
11149   ;
11150   return 0;
11151 }
11152 _ACEOF
11153 rm -f conftest.$ac_objext conftest$ac_exeext
11154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11155   (eval $ac_link) 2>&5
11156   ac_status=$?
11157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158   (exit $ac_status); } &&
11159          { ac_try='test -s conftest$ac_exeext'
11160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161   (eval $ac_try) 2>&5
11162   ac_status=$?
11163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164   (exit $ac_status); }; }; then
11165   eval "$as_ac_var=yes"
11166 else
11167   echo "$as_me: failed program was:" >&5
11168 cat conftest.$ac_ext >&5
11169 eval "$as_ac_var=no"
11170 fi
11171 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11172 fi
11173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11174 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11175 if test `eval echo '${'$as_ac_var'}'` = yes; then
11176   cat >>confdefs.h <<_ACEOF
11177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11178 _ACEOF
11179
11180 else
11181   GETRUSAGE='$(top_builddir)/src/backend/port/getrusage.o'
11182 fi
11183 done
11184
11185
11186
11187 for ac_func in srandom
11188 do
11189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11190 echo "$as_me:$LINENO: checking for $ac_func" >&5
11191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11192 if eval "test \"\${$as_ac_var+set}\" = set"; then
11193   echo $ECHO_N "(cached) $ECHO_C" >&6
11194 else
11195   cat >conftest.$ac_ext <<_ACEOF
11196 #line $LINENO "configure"
11197 #include "confdefs.h"
11198 /* System header to define __stub macros and hopefully few prototypes,
11199     which can conflict with char $ac_func (); below.  */
11200 #include <assert.h>
11201 /* Override any gcc2 internal prototype to avoid an error.  */
11202 #ifdef __cplusplus
11203 extern "C"
11204 #endif
11205 /* We use char because int might match the return type of a gcc2
11206    builtin and then its argument prototype would still apply.  */
11207 char $ac_func ();
11208 char (*f) ();
11209
11210 #ifdef F77_DUMMY_MAIN
11211 #  ifdef __cplusplus
11212      extern "C"
11213 #  endif
11214    int F77_DUMMY_MAIN() { return 1; }
11215 #endif
11216 int
11217 main ()
11218 {
11219 /* The GNU C library defines this for functions which it implements
11220     to always fail with ENOSYS.  Some functions are actually named
11221     something starting with __ and the normal name is an alias.  */
11222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11223 choke me
11224 #else
11225 f = $ac_func;
11226 #endif
11227
11228   ;
11229   return 0;
11230 }
11231 _ACEOF
11232 rm -f conftest.$ac_objext conftest$ac_exeext
11233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11234   (eval $ac_link) 2>&5
11235   ac_status=$?
11236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237   (exit $ac_status); } &&
11238          { ac_try='test -s conftest$ac_exeext'
11239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11240   (eval $ac_try) 2>&5
11241   ac_status=$?
11242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243   (exit $ac_status); }; }; then
11244   eval "$as_ac_var=yes"
11245 else
11246   echo "$as_me: failed program was:" >&5
11247 cat conftest.$ac_ext >&5
11248 eval "$as_ac_var=no"
11249 fi
11250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11251 fi
11252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11253 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11254 if test `eval echo '${'$as_ac_var'}'` = yes; then
11255   cat >>confdefs.h <<_ACEOF
11256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11257 _ACEOF
11258
11259 else
11260   SRANDOM='$(top_builddir)/src/backend/port/srandom.o'
11261 fi
11262 done
11263
11264
11265
11266 for ac_func in gethostname
11267 do
11268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11269 echo "$as_me:$LINENO: checking for $ac_func" >&5
11270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11271 if eval "test \"\${$as_ac_var+set}\" = set"; then
11272   echo $ECHO_N "(cached) $ECHO_C" >&6
11273 else
11274   cat >conftest.$ac_ext <<_ACEOF
11275 #line $LINENO "configure"
11276 #include "confdefs.h"
11277 /* System header to define __stub macros and hopefully few prototypes,
11278     which can conflict with char $ac_func (); below.  */
11279 #include <assert.h>
11280 /* Override any gcc2 internal prototype to avoid an error.  */
11281 #ifdef __cplusplus
11282 extern "C"
11283 #endif
11284 /* We use char because int might match the return type of a gcc2
11285    builtin and then its argument prototype would still apply.  */
11286 char $ac_func ();
11287 char (*f) ();
11288
11289 #ifdef F77_DUMMY_MAIN
11290 #  ifdef __cplusplus
11291      extern "C"
11292 #  endif
11293    int F77_DUMMY_MAIN() { return 1; }
11294 #endif
11295 int
11296 main ()
11297 {
11298 /* The GNU C library defines this for functions which it implements
11299     to always fail with ENOSYS.  Some functions are actually named
11300     something starting with __ and the normal name is an alias.  */
11301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11302 choke me
11303 #else
11304 f = $ac_func;
11305 #endif
11306
11307   ;
11308   return 0;
11309 }
11310 _ACEOF
11311 rm -f conftest.$ac_objext conftest$ac_exeext
11312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11313   (eval $ac_link) 2>&5
11314   ac_status=$?
11315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316   (exit $ac_status); } &&
11317          { ac_try='test -s conftest$ac_exeext'
11318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319   (eval $ac_try) 2>&5
11320   ac_status=$?
11321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322   (exit $ac_status); }; }; then
11323   eval "$as_ac_var=yes"
11324 else
11325   echo "$as_me: failed program was:" >&5
11326 cat conftest.$ac_ext >&5
11327 eval "$as_ac_var=no"
11328 fi
11329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11330 fi
11331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11332 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11333 if test `eval echo '${'$as_ac_var'}'` = yes; then
11334   cat >>confdefs.h <<_ACEOF
11335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11336 _ACEOF
11337
11338 else
11339   GETHOSTNAME='$(top_builddir)/src/backend/port/gethostname.o'
11340 fi
11341 done
11342
11343
11344
11345 for ac_func in random
11346 do
11347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11348 echo "$as_me:$LINENO: checking for $ac_func" >&5
11349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11350 if eval "test \"\${$as_ac_var+set}\" = set"; then
11351   echo $ECHO_N "(cached) $ECHO_C" >&6
11352 else
11353   cat >conftest.$ac_ext <<_ACEOF
11354 #line $LINENO "configure"
11355 #include "confdefs.h"
11356 /* System header to define __stub macros and hopefully few prototypes,
11357     which can conflict with char $ac_func (); below.  */
11358 #include <assert.h>
11359 /* Override any gcc2 internal prototype to avoid an error.  */
11360 #ifdef __cplusplus
11361 extern "C"
11362 #endif
11363 /* We use char because int might match the return type of a gcc2
11364    builtin and then its argument prototype would still apply.  */
11365 char $ac_func ();
11366 char (*f) ();
11367
11368 #ifdef F77_DUMMY_MAIN
11369 #  ifdef __cplusplus
11370      extern "C"
11371 #  endif
11372    int F77_DUMMY_MAIN() { return 1; }
11373 #endif
11374 int
11375 main ()
11376 {
11377 /* The GNU C library defines this for functions which it implements
11378     to always fail with ENOSYS.  Some functions are actually named
11379     something starting with __ and the normal name is an alias.  */
11380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11381 choke me
11382 #else
11383 f = $ac_func;
11384 #endif
11385
11386   ;
11387   return 0;
11388 }
11389 _ACEOF
11390 rm -f conftest.$ac_objext conftest$ac_exeext
11391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11392   (eval $ac_link) 2>&5
11393   ac_status=$?
11394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395   (exit $ac_status); } &&
11396          { ac_try='test -s conftest$ac_exeext'
11397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11398   (eval $ac_try) 2>&5
11399   ac_status=$?
11400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401   (exit $ac_status); }; }; then
11402   eval "$as_ac_var=yes"
11403 else
11404   echo "$as_me: failed program was:" >&5
11405 cat conftest.$ac_ext >&5
11406 eval "$as_ac_var=no"
11407 fi
11408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11409 fi
11410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11412 if test `eval echo '${'$as_ac_var'}'` = yes; then
11413   cat >>confdefs.h <<_ACEOF
11414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11415 _ACEOF
11416
11417 else
11418   MISSING_RANDOM='$(top_builddir)/src/backend/port/random.o'
11419 fi
11420 done
11421
11422
11423
11424 for ac_func in inet_aton
11425 do
11426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11427 echo "$as_me:$LINENO: checking for $ac_func" >&5
11428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11429 if eval "test \"\${$as_ac_var+set}\" = set"; then
11430   echo $ECHO_N "(cached) $ECHO_C" >&6
11431 else
11432   cat >conftest.$ac_ext <<_ACEOF
11433 #line $LINENO "configure"
11434 #include "confdefs.h"
11435 /* System header to define __stub macros and hopefully few prototypes,
11436     which can conflict with char $ac_func (); below.  */
11437 #include <assert.h>
11438 /* Override any gcc2 internal prototype to avoid an error.  */
11439 #ifdef __cplusplus
11440 extern "C"
11441 #endif
11442 /* We use char because int might match the return type of a gcc2
11443    builtin and then its argument prototype would still apply.  */
11444 char $ac_func ();
11445 char (*f) ();
11446
11447 #ifdef F77_DUMMY_MAIN
11448 #  ifdef __cplusplus
11449      extern "C"
11450 #  endif
11451    int F77_DUMMY_MAIN() { return 1; }
11452 #endif
11453 int
11454 main ()
11455 {
11456 /* The GNU C library defines this for functions which it implements
11457     to always fail with ENOSYS.  Some functions are actually named
11458     something starting with __ and the normal name is an alias.  */
11459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11460 choke me
11461 #else
11462 f = $ac_func;
11463 #endif
11464
11465   ;
11466   return 0;
11467 }
11468 _ACEOF
11469 rm -f conftest.$ac_objext conftest$ac_exeext
11470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11471   (eval $ac_link) 2>&5
11472   ac_status=$?
11473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474   (exit $ac_status); } &&
11475          { ac_try='test -s conftest$ac_exeext'
11476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477   (eval $ac_try) 2>&5
11478   ac_status=$?
11479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480   (exit $ac_status); }; }; then
11481   eval "$as_ac_var=yes"
11482 else
11483   echo "$as_me: failed program was:" >&5
11484 cat conftest.$ac_ext >&5
11485 eval "$as_ac_var=no"
11486 fi
11487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11488 fi
11489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11490 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11491 if test `eval echo '${'$as_ac_var'}'` = yes; then
11492   cat >>confdefs.h <<_ACEOF
11493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11494 _ACEOF
11495
11496 else
11497   INET_ATON='$(top_builddir)/src/backend/port/inet_aton.o'
11498 fi
11499 done
11500
11501
11502
11503 for ac_func in strerror
11504 do
11505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11506 echo "$as_me:$LINENO: checking for $ac_func" >&5
11507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11508 if eval "test \"\${$as_ac_var+set}\" = set"; then
11509   echo $ECHO_N "(cached) $ECHO_C" >&6
11510 else
11511   cat >conftest.$ac_ext <<_ACEOF
11512 #line $LINENO "configure"
11513 #include "confdefs.h"
11514 /* System header to define __stub macros and hopefully few prototypes,
11515     which can conflict with char $ac_func (); below.  */
11516 #include <assert.h>
11517 /* Override any gcc2 internal prototype to avoid an error.  */
11518 #ifdef __cplusplus
11519 extern "C"
11520 #endif
11521 /* We use char because int might match the return type of a gcc2
11522    builtin and then its argument prototype would still apply.  */
11523 char $ac_func ();
11524 char (*f) ();
11525
11526 #ifdef F77_DUMMY_MAIN
11527 #  ifdef __cplusplus
11528      extern "C"
11529 #  endif
11530    int F77_DUMMY_MAIN() { return 1; }
11531 #endif
11532 int
11533 main ()
11534 {
11535 /* The GNU C library defines this for functions which it implements
11536     to always fail with ENOSYS.  Some functions are actually named
11537     something starting with __ and the normal name is an alias.  */
11538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11539 choke me
11540 #else
11541 f = $ac_func;
11542 #endif
11543
11544   ;
11545   return 0;
11546 }
11547 _ACEOF
11548 rm -f conftest.$ac_objext conftest$ac_exeext
11549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11550   (eval $ac_link) 2>&5
11551   ac_status=$?
11552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553   (exit $ac_status); } &&
11554          { ac_try='test -s conftest$ac_exeext'
11555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11556   (eval $ac_try) 2>&5
11557   ac_status=$?
11558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559   (exit $ac_status); }; }; then
11560   eval "$as_ac_var=yes"
11561 else
11562   echo "$as_me: failed program was:" >&5
11563 cat conftest.$ac_ext >&5
11564 eval "$as_ac_var=no"
11565 fi
11566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11567 fi
11568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11569 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11570 if test `eval echo '${'$as_ac_var'}'` = yes; then
11571   cat >>confdefs.h <<_ACEOF
11572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11573 _ACEOF
11574
11575 else
11576   STRERROR='$(top_builddir)/src/backend/port/strerror.o'
11577 fi
11578 done
11579
11580
11581
11582 for ac_func in strdup
11583 do
11584 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11585 echo "$as_me:$LINENO: checking for $ac_func" >&5
11586 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11587 if eval "test \"\${$as_ac_var+set}\" = set"; then
11588   echo $ECHO_N "(cached) $ECHO_C" >&6
11589 else
11590   cat >conftest.$ac_ext <<_ACEOF
11591 #line $LINENO "configure"
11592 #include "confdefs.h"
11593 /* System header to define __stub macros and hopefully few prototypes,
11594     which can conflict with char $ac_func (); below.  */
11595 #include <assert.h>
11596 /* Override any gcc2 internal prototype to avoid an error.  */
11597 #ifdef __cplusplus
11598 extern "C"
11599 #endif
11600 /* We use char because int might match the return type of a gcc2
11601    builtin and then its argument prototype would still apply.  */
11602 char $ac_func ();
11603 char (*f) ();
11604
11605 #ifdef F77_DUMMY_MAIN
11606 #  ifdef __cplusplus
11607      extern "C"
11608 #  endif
11609    int F77_DUMMY_MAIN() { return 1; }
11610 #endif
11611 int
11612 main ()
11613 {
11614 /* The GNU C library defines this for functions which it implements
11615     to always fail with ENOSYS.  Some functions are actually named
11616     something starting with __ and the normal name is an alias.  */
11617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11618 choke me
11619 #else
11620 f = $ac_func;
11621 #endif
11622
11623   ;
11624   return 0;
11625 }
11626 _ACEOF
11627 rm -f conftest.$ac_objext conftest$ac_exeext
11628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11629   (eval $ac_link) 2>&5
11630   ac_status=$?
11631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632   (exit $ac_status); } &&
11633          { ac_try='test -s conftest$ac_exeext'
11634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635   (eval $ac_try) 2>&5
11636   ac_status=$?
11637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638   (exit $ac_status); }; }; then
11639   eval "$as_ac_var=yes"
11640 else
11641   echo "$as_me: failed program was:" >&5
11642 cat conftest.$ac_ext >&5
11643 eval "$as_ac_var=no"
11644 fi
11645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11646 fi
11647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11649 if test `eval echo '${'$as_ac_var'}'` = yes; then
11650   cat >>confdefs.h <<_ACEOF
11651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11652 _ACEOF
11653
11654 else
11655   STRDUP='$(top_builddir)/src/backend/port/strdup.o'
11656 fi
11657 done
11658
11659
11660
11661 for ac_func in strtol
11662 do
11663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11664 echo "$as_me:$LINENO: checking for $ac_func" >&5
11665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11666 if eval "test \"\${$as_ac_var+set}\" = set"; then
11667   echo $ECHO_N "(cached) $ECHO_C" >&6
11668 else
11669   cat >conftest.$ac_ext <<_ACEOF
11670 #line $LINENO "configure"
11671 #include "confdefs.h"
11672 /* System header to define __stub macros and hopefully few prototypes,
11673     which can conflict with char $ac_func (); below.  */
11674 #include <assert.h>
11675 /* Override any gcc2 internal prototype to avoid an error.  */
11676 #ifdef __cplusplus
11677 extern "C"
11678 #endif
11679 /* We use char because int might match the return type of a gcc2
11680    builtin and then its argument prototype would still apply.  */
11681 char $ac_func ();
11682 char (*f) ();
11683
11684 #ifdef F77_DUMMY_MAIN
11685 #  ifdef __cplusplus
11686      extern "C"
11687 #  endif
11688    int F77_DUMMY_MAIN() { return 1; }
11689 #endif
11690 int
11691 main ()
11692 {
11693 /* The GNU C library defines this for functions which it implements
11694     to always fail with ENOSYS.  Some functions are actually named
11695     something starting with __ and the normal name is an alias.  */
11696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11697 choke me
11698 #else
11699 f = $ac_func;
11700 #endif
11701
11702   ;
11703   return 0;
11704 }
11705 _ACEOF
11706 rm -f conftest.$ac_objext conftest$ac_exeext
11707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11708   (eval $ac_link) 2>&5
11709   ac_status=$?
11710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711   (exit $ac_status); } &&
11712          { ac_try='test -s conftest$ac_exeext'
11713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11714   (eval $ac_try) 2>&5
11715   ac_status=$?
11716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717   (exit $ac_status); }; }; then
11718   eval "$as_ac_var=yes"
11719 else
11720   echo "$as_me: failed program was:" >&5
11721 cat conftest.$ac_ext >&5
11722 eval "$as_ac_var=no"
11723 fi
11724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11725 fi
11726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11727 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11728 if test `eval echo '${'$as_ac_var'}'` = yes; then
11729   cat >>confdefs.h <<_ACEOF
11730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11731 _ACEOF
11732
11733 else
11734   STRTOL='$(top_builddir)/src/backend/port/strtol.o'
11735 fi
11736 done
11737
11738
11739
11740 for ac_func in strtoul
11741 do
11742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11743 echo "$as_me:$LINENO: checking for $ac_func" >&5
11744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11745 if eval "test \"\${$as_ac_var+set}\" = set"; then
11746   echo $ECHO_N "(cached) $ECHO_C" >&6
11747 else
11748   cat >conftest.$ac_ext <<_ACEOF
11749 #line $LINENO "configure"
11750 #include "confdefs.h"
11751 /* System header to define __stub macros and hopefully few prototypes,
11752     which can conflict with char $ac_func (); below.  */
11753 #include <assert.h>
11754 /* Override any gcc2 internal prototype to avoid an error.  */
11755 #ifdef __cplusplus
11756 extern "C"
11757 #endif
11758 /* We use char because int might match the return type of a gcc2
11759    builtin and then its argument prototype would still apply.  */
11760 char $ac_func ();
11761 char (*f) ();
11762
11763 #ifdef F77_DUMMY_MAIN
11764 #  ifdef __cplusplus
11765      extern "C"
11766 #  endif
11767    int F77_DUMMY_MAIN() { return 1; }
11768 #endif
11769 int
11770 main ()
11771 {
11772 /* The GNU C library defines this for functions which it implements
11773     to always fail with ENOSYS.  Some functions are actually named
11774     something starting with __ and the normal name is an alias.  */
11775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11776 choke me
11777 #else
11778 f = $ac_func;
11779 #endif
11780
11781   ;
11782   return 0;
11783 }
11784 _ACEOF
11785 rm -f conftest.$ac_objext conftest$ac_exeext
11786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11787   (eval $ac_link) 2>&5
11788   ac_status=$?
11789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790   (exit $ac_status); } &&
11791          { ac_try='test -s conftest$ac_exeext'
11792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793   (eval $ac_try) 2>&5
11794   ac_status=$?
11795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796   (exit $ac_status); }; }; then
11797   eval "$as_ac_var=yes"
11798 else
11799   echo "$as_me: failed program was:" >&5
11800 cat conftest.$ac_ext >&5
11801 eval "$as_ac_var=no"
11802 fi
11803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11804 fi
11805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11807 if test `eval echo '${'$as_ac_var'}'` = yes; then
11808   cat >>confdefs.h <<_ACEOF
11809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11810 _ACEOF
11811
11812 else
11813   STRTOUL='$(top_builddir)/src/backend/port/strtoul.o'
11814 fi
11815 done
11816
11817
11818
11819 for ac_func in strcasecmp
11820 do
11821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11822 echo "$as_me:$LINENO: checking for $ac_func" >&5
11823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11824 if eval "test \"\${$as_ac_var+set}\" = set"; then
11825   echo $ECHO_N "(cached) $ECHO_C" >&6
11826 else
11827   cat >conftest.$ac_ext <<_ACEOF
11828 #line $LINENO "configure"
11829 #include "confdefs.h"
11830 /* System header to define __stub macros and hopefully few prototypes,
11831     which can conflict with char $ac_func (); below.  */
11832 #include <assert.h>
11833 /* Override any gcc2 internal prototype to avoid an error.  */
11834 #ifdef __cplusplus
11835 extern "C"
11836 #endif
11837 /* We use char because int might match the return type of a gcc2
11838    builtin and then its argument prototype would still apply.  */
11839 char $ac_func ();
11840 char (*f) ();
11841
11842 #ifdef F77_DUMMY_MAIN
11843 #  ifdef __cplusplus
11844      extern "C"
11845 #  endif
11846    int F77_DUMMY_MAIN() { return 1; }
11847 #endif
11848 int
11849 main ()
11850 {
11851 /* The GNU C library defines this for functions which it implements
11852     to always fail with ENOSYS.  Some functions are actually named
11853     something starting with __ and the normal name is an alias.  */
11854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11855 choke me
11856 #else
11857 f = $ac_func;
11858 #endif
11859
11860   ;
11861   return 0;
11862 }
11863 _ACEOF
11864 rm -f conftest.$ac_objext conftest$ac_exeext
11865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11866   (eval $ac_link) 2>&5
11867   ac_status=$?
11868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869   (exit $ac_status); } &&
11870          { ac_try='test -s conftest$ac_exeext'
11871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872   (eval $ac_try) 2>&5
11873   ac_status=$?
11874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875   (exit $ac_status); }; }; then
11876   eval "$as_ac_var=yes"
11877 else
11878   echo "$as_me: failed program was:" >&5
11879 cat conftest.$ac_ext >&5
11880 eval "$as_ac_var=no"
11881 fi
11882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11883 fi
11884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11886 if test `eval echo '${'$as_ac_var'}'` = yes; then
11887   cat >>confdefs.h <<_ACEOF
11888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11889 _ACEOF
11890
11891 else
11892   STRCASECMP='$(top_builddir)/src/backend/port/strcasecmp.o'
11893 fi
11894 done
11895
11896
11897
11898 # Set path of dllinit.c for cygwin
11899 DLLINIT=""
11900 case $host_os in
11901   cygwin*) DLLINIT='$(top_builddir)/src/backend/port/dllinit.o' ;;
11902 esac
11903
11904
11905 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
11906 # this hackery with HPUXMATHLIB allows us to cope.
11907 HPUXMATHLIB=""
11908 case $host_cpu in
11909   hppa1.1)
11910         if [ -r /lib/pa1.1/libm.a ] ; then
11911             HPUXMATHLIB="-L /lib/pa1.1 -lm"
11912         fi ;;
11913 esac
11914
11915
11916
11917 for ac_func in rint
11918 do
11919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11920 echo "$as_me:$LINENO: checking for $ac_func" >&5
11921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11922 if eval "test \"\${$as_ac_var+set}\" = set"; then
11923   echo $ECHO_N "(cached) $ECHO_C" >&6
11924 else
11925   cat >conftest.$ac_ext <<_ACEOF
11926 #line $LINENO "configure"
11927 #include "confdefs.h"
11928 /* System header to define __stub macros and hopefully few prototypes,
11929     which can conflict with char $ac_func (); below.  */
11930 #include <assert.h>
11931 /* Override any gcc2 internal prototype to avoid an error.  */
11932 #ifdef __cplusplus
11933 extern "C"
11934 #endif
11935 /* We use char because int might match the return type of a gcc2
11936    builtin and then its argument prototype would still apply.  */
11937 char $ac_func ();
11938 char (*f) ();
11939
11940 #ifdef F77_DUMMY_MAIN
11941 #  ifdef __cplusplus
11942      extern "C"
11943 #  endif
11944    int F77_DUMMY_MAIN() { return 1; }
11945 #endif
11946 int
11947 main ()
11948 {
11949 /* The GNU C library defines this for functions which it implements
11950     to always fail with ENOSYS.  Some functions are actually named
11951     something starting with __ and the normal name is an alias.  */
11952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11953 choke me
11954 #else
11955 f = $ac_func;
11956 #endif
11957
11958   ;
11959   return 0;
11960 }
11961 _ACEOF
11962 rm -f conftest.$ac_objext conftest$ac_exeext
11963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11964   (eval $ac_link) 2>&5
11965   ac_status=$?
11966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967   (exit $ac_status); } &&
11968          { ac_try='test -s conftest$ac_exeext'
11969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11970   (eval $ac_try) 2>&5
11971   ac_status=$?
11972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973   (exit $ac_status); }; }; then
11974   eval "$as_ac_var=yes"
11975 else
11976   echo "$as_me: failed program was:" >&5
11977 cat conftest.$ac_ext >&5
11978 eval "$as_ac_var=no"
11979 fi
11980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11981 fi
11982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11983 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11984 if test `eval echo '${'$as_ac_var'}'` = yes; then
11985   cat >>confdefs.h <<_ACEOF
11986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11987 _ACEOF
11988
11989 else
11990   echo "$as_me:$LINENO: checking for rint in -lm" >&5
11991 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
11992 if test "${ac_cv_lib_m_rint+set}" = set; then
11993   echo $ECHO_N "(cached) $ECHO_C" >&6
11994 else
11995   ac_check_lib_save_LIBS=$LIBS
11996 LIBS="-lm $HPUXMATHLIB $LIBS"
11997 cat >conftest.$ac_ext <<_ACEOF
11998 #line $LINENO "configure"
11999 #include "confdefs.h"
12000
12001 /* Override any gcc2 internal prototype to avoid an error.  */
12002 #ifdef __cplusplus
12003 extern "C"
12004 #endif
12005 /* We use char because int might match the return type of a gcc2
12006    builtin and then its argument prototype would still apply.  */
12007 char rint ();
12008 #ifdef F77_DUMMY_MAIN
12009 #  ifdef __cplusplus
12010      extern "C"
12011 #  endif
12012    int F77_DUMMY_MAIN() { return 1; }
12013 #endif
12014 int
12015 main ()
12016 {
12017 rint ();
12018   ;
12019   return 0;
12020 }
12021 _ACEOF
12022 rm -f conftest.$ac_objext conftest$ac_exeext
12023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12024   (eval $ac_link) 2>&5
12025   ac_status=$?
12026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027   (exit $ac_status); } &&
12028          { ac_try='test -s conftest$ac_exeext'
12029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030   (eval $ac_try) 2>&5
12031   ac_status=$?
12032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033   (exit $ac_status); }; }; then
12034   ac_cv_lib_m_rint=yes
12035 else
12036   echo "$as_me: failed program was:" >&5
12037 cat conftest.$ac_ext >&5
12038 ac_cv_lib_m_rint=no
12039 fi
12040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12041 LIBS=$ac_check_lib_save_LIBS
12042 fi
12043 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
12044 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
12045 if test $ac_cv_lib_m_rint = yes; then
12046   cat >>confdefs.h <<\_ACEOF
12047 #define HAVE_RINT 1
12048 _ACEOF
12049
12050 fi
12051
12052 fi
12053 done
12054
12055
12056
12057 if test "$with_readline" = yes; then
12058   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12059 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12060 cat >conftest.$ac_ext <<_ACEOF
12061 #line $LINENO "configure"
12062 #include "confdefs.h"
12063 #include <stdio.h>
12064 #ifdef HAVE_READLINE_READLINE_H
12065 # include <readline/readline.h>
12066 #elif defined(HAVE_READLINE_H)
12067 # include <readline.h>
12068 #endif
12069
12070 #ifdef F77_DUMMY_MAIN
12071 #  ifdef __cplusplus
12072      extern "C"
12073 #  endif
12074    int F77_DUMMY_MAIN() { return 1; }
12075 #endif
12076 int
12077 main ()
12078 {
12079 rl_completion_append_character = 'x';
12080   ;
12081   return 0;
12082 }
12083 _ACEOF
12084 rm -f conftest.$ac_objext conftest$ac_exeext
12085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12086   (eval $ac_link) 2>&5
12087   ac_status=$?
12088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089   (exit $ac_status); } &&
12090          { ac_try='test -s conftest$ac_exeext'
12091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12092   (eval $ac_try) 2>&5
12093   ac_status=$?
12094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095   (exit $ac_status); }; }; then
12096   echo "$as_me:$LINENO: result: yes" >&5
12097 echo "${ECHO_T}yes" >&6
12098
12099 cat >>confdefs.h <<\_ACEOF
12100 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12101 _ACEOF
12102
12103 else
12104   echo "$as_me: failed program was:" >&5
12105 cat conftest.$ac_ext >&5
12106 echo "$as_me:$LINENO: result: no" >&5
12107 echo "${ECHO_T}no" >&6
12108 fi
12109 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12110
12111
12112 for ac_func in rl_completion_matches rl_filename_completion_function
12113 do
12114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12115 echo "$as_me:$LINENO: checking for $ac_func" >&5
12116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12117 if eval "test \"\${$as_ac_var+set}\" = set"; then
12118   echo $ECHO_N "(cached) $ECHO_C" >&6
12119 else
12120   cat >conftest.$ac_ext <<_ACEOF
12121 #line $LINENO "configure"
12122 #include "confdefs.h"
12123 /* System header to define __stub macros and hopefully few prototypes,
12124     which can conflict with char $ac_func (); below.  */
12125 #include <assert.h>
12126 /* Override any gcc2 internal prototype to avoid an error.  */
12127 #ifdef __cplusplus
12128 extern "C"
12129 #endif
12130 /* We use char because int might match the return type of a gcc2
12131    builtin and then its argument prototype would still apply.  */
12132 char $ac_func ();
12133 char (*f) ();
12134
12135 #ifdef F77_DUMMY_MAIN
12136 #  ifdef __cplusplus
12137      extern "C"
12138 #  endif
12139    int F77_DUMMY_MAIN() { return 1; }
12140 #endif
12141 int
12142 main ()
12143 {
12144 /* The GNU C library defines this for functions which it implements
12145     to always fail with ENOSYS.  Some functions are actually named
12146     something starting with __ and the normal name is an alias.  */
12147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12148 choke me
12149 #else
12150 f = $ac_func;
12151 #endif
12152
12153   ;
12154   return 0;
12155 }
12156 _ACEOF
12157 rm -f conftest.$ac_objext conftest$ac_exeext
12158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12159   (eval $ac_link) 2>&5
12160   ac_status=$?
12161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162   (exit $ac_status); } &&
12163          { ac_try='test -s conftest$ac_exeext'
12164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12165   (eval $ac_try) 2>&5
12166   ac_status=$?
12167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168   (exit $ac_status); }; }; then
12169   eval "$as_ac_var=yes"
12170 else
12171   echo "$as_me: failed program was:" >&5
12172 cat conftest.$ac_ext >&5
12173 eval "$as_ac_var=no"
12174 fi
12175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12176 fi
12177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12178 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12179 if test `eval echo '${'$as_ac_var'}'` = yes; then
12180   cat >>confdefs.h <<_ACEOF
12181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12182 _ACEOF
12183
12184 fi
12185 done
12186
12187 fi
12188
12189
12190 echo "$as_me:$LINENO: checking for finite" >&5
12191 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12192 cat >conftest.$ac_ext <<_ACEOF
12193 #line $LINENO "configure"
12194 #include "confdefs.h"
12195 #include <math.h>
12196 #ifdef F77_DUMMY_MAIN
12197 #  ifdef __cplusplus
12198      extern "C"
12199 #  endif
12200    int F77_DUMMY_MAIN() { return 1; }
12201 #endif
12202 int
12203 main ()
12204 {
12205 int dummy=finite(1.0);
12206   ;
12207   return 0;
12208 }
12209 _ACEOF
12210 rm -f conftest.$ac_objext conftest$ac_exeext
12211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12212   (eval $ac_link) 2>&5
12213   ac_status=$?
12214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215   (exit $ac_status); } &&
12216          { ac_try='test -s conftest$ac_exeext'
12217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12218   (eval $ac_try) 2>&5
12219   ac_status=$?
12220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221   (exit $ac_status); }; }; then
12222
12223 cat >>confdefs.h <<\_ACEOF
12224 #define HAVE_FINITE 1
12225 _ACEOF
12226
12227 echo "$as_me:$LINENO: result: yes" >&5
12228 echo "${ECHO_T}yes" >&6
12229 else
12230   echo "$as_me: failed program was:" >&5
12231 cat conftest.$ac_ext >&5
12232 echo "$as_me:$LINENO: result: no" >&5
12233 echo "${ECHO_T}no" >&6
12234 fi
12235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12236
12237 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12238 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12239 cat >conftest.$ac_ext <<_ACEOF
12240 #line $LINENO "configure"
12241 #include "confdefs.h"
12242 #include <setjmp.h>
12243 #ifdef F77_DUMMY_MAIN
12244 #  ifdef __cplusplus
12245      extern "C"
12246 #  endif
12247    int F77_DUMMY_MAIN() { return 1; }
12248 #endif
12249 int
12250 main ()
12251 {
12252 sigjmp_buf x; sigsetjmp(x, 1);
12253   ;
12254   return 0;
12255 }
12256 _ACEOF
12257 rm -f conftest.$ac_objext conftest$ac_exeext
12258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12259   (eval $ac_link) 2>&5
12260   ac_status=$?
12261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262   (exit $ac_status); } &&
12263          { ac_try='test -s conftest$ac_exeext'
12264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265   (eval $ac_try) 2>&5
12266   ac_status=$?
12267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268   (exit $ac_status); }; }; then
12269
12270 cat >>confdefs.h <<\_ACEOF
12271 #define HAVE_SIGSETJMP 1
12272 _ACEOF
12273
12274 echo "$as_me:$LINENO: result: yes" >&5
12275 echo "${ECHO_T}yes" >&6
12276 else
12277   echo "$as_me: failed program was:" >&5
12278 cat conftest.$ac_ext >&5
12279 echo "$as_me:$LINENO: result: no" >&5
12280 echo "${ECHO_T}no" >&6
12281 fi
12282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12283
12284 echo "$as_me:$LINENO: checking for syslog" >&5
12285 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12286 if test "${ac_cv_func_syslog+set}" = set; then
12287   echo $ECHO_N "(cached) $ECHO_C" >&6
12288 else
12289   cat >conftest.$ac_ext <<_ACEOF
12290 #line $LINENO "configure"
12291 #include "confdefs.h"
12292 /* System header to define __stub macros and hopefully few prototypes,
12293     which can conflict with char syslog (); below.  */
12294 #include <assert.h>
12295 /* Override any gcc2 internal prototype to avoid an error.  */
12296 #ifdef __cplusplus
12297 extern "C"
12298 #endif
12299 /* We use char because int might match the return type of a gcc2
12300    builtin and then its argument prototype would still apply.  */
12301 char syslog ();
12302 char (*f) ();
12303
12304 #ifdef F77_DUMMY_MAIN
12305 #  ifdef __cplusplus
12306      extern "C"
12307 #  endif
12308    int F77_DUMMY_MAIN() { return 1; }
12309 #endif
12310 int
12311 main ()
12312 {
12313 /* The GNU C library defines this for functions which it implements
12314     to always fail with ENOSYS.  Some functions are actually named
12315     something starting with __ and the normal name is an alias.  */
12316 #if defined (__stub_syslog) || defined (__stub___syslog)
12317 choke me
12318 #else
12319 f = syslog;
12320 #endif
12321
12322   ;
12323   return 0;
12324 }
12325 _ACEOF
12326 rm -f conftest.$ac_objext conftest$ac_exeext
12327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12328   (eval $ac_link) 2>&5
12329   ac_status=$?
12330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331   (exit $ac_status); } &&
12332          { ac_try='test -s conftest$ac_exeext'
12333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12334   (eval $ac_try) 2>&5
12335   ac_status=$?
12336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337   (exit $ac_status); }; }; then
12338   ac_cv_func_syslog=yes
12339 else
12340   echo "$as_me: failed program was:" >&5
12341 cat conftest.$ac_ext >&5
12342 ac_cv_func_syslog=no
12343 fi
12344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12345 fi
12346 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12347 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12348 if test $ac_cv_func_syslog = yes; then
12349   if test "${ac_cv_header_syslog_h+set}" = set; then
12350   echo "$as_me:$LINENO: checking for syslog.h" >&5
12351 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12352 if test "${ac_cv_header_syslog_h+set}" = set; then
12353   echo $ECHO_N "(cached) $ECHO_C" >&6
12354 fi
12355 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12356 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12357 else
12358   # Is the header compilable?
12359 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12360 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12361 cat >conftest.$ac_ext <<_ACEOF
12362 #line $LINENO "configure"
12363 #include "confdefs.h"
12364 $ac_includes_default
12365 #include <syslog.h>
12366 _ACEOF
12367 rm -f conftest.$ac_objext
12368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12369   (eval $ac_compile) 2>&5
12370   ac_status=$?
12371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372   (exit $ac_status); } &&
12373          { ac_try='test -s conftest.$ac_objext'
12374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375   (eval $ac_try) 2>&5
12376   ac_status=$?
12377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378   (exit $ac_status); }; }; then
12379   ac_header_compiler=yes
12380 else
12381   echo "$as_me: failed program was:" >&5
12382 cat conftest.$ac_ext >&5
12383 ac_header_compiler=no
12384 fi
12385 rm -f conftest.$ac_objext conftest.$ac_ext
12386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12387 echo "${ECHO_T}$ac_header_compiler" >&6
12388
12389 # Is the header present?
12390 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12391 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12392 cat >conftest.$ac_ext <<_ACEOF
12393 #line $LINENO "configure"
12394 #include "confdefs.h"
12395 #include <syslog.h>
12396 _ACEOF
12397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12398   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12399   ac_status=$?
12400   egrep -v '^ *\+' conftest.er1 >conftest.err
12401   rm -f conftest.er1
12402   cat conftest.err >&5
12403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404   (exit $ac_status); } >/dev/null; then
12405   if test -s conftest.err; then
12406     ac_cpp_err=$ac_c_preproc_warn_flag
12407   else
12408     ac_cpp_err=
12409   fi
12410 else
12411   ac_cpp_err=yes
12412 fi
12413 if test -z "$ac_cpp_err"; then
12414   ac_header_preproc=yes
12415 else
12416   echo "$as_me: failed program was:" >&5
12417   cat conftest.$ac_ext >&5
12418   ac_header_preproc=no
12419 fi
12420 rm -f conftest.err conftest.$ac_ext
12421 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12422 echo "${ECHO_T}$ac_header_preproc" >&6
12423
12424 # So?  What about this header?
12425 case $ac_header_compiler:$ac_header_preproc in
12426   yes:no )
12427     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12428 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12429     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12430 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12431   no:yes )
12432     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12433 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12434     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12435 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12436     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12437 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12438 esac
12439 echo "$as_me:$LINENO: checking for syslog.h" >&5
12440 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12441 if test "${ac_cv_header_syslog_h+set}" = set; then
12442   echo $ECHO_N "(cached) $ECHO_C" >&6
12443 else
12444   ac_cv_header_syslog_h=$ac_header_preproc
12445 fi
12446 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12447 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12448
12449 fi
12450 if test $ac_cv_header_syslog_h = yes; then
12451   cat >>confdefs.h <<\_ACEOF
12452 #define HAVE_SYSLOG 1
12453 _ACEOF
12454
12455 fi
12456
12457
12458 fi
12459
12460
12461 echo "$as_me:$LINENO: checking for optreset" >&5
12462 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12463 if test "${pgac_cv_var_int_optreset+set}" = set; then
12464   echo $ECHO_N "(cached) $ECHO_C" >&6
12465 else
12466   cat >conftest.$ac_ext <<_ACEOF
12467 #line $LINENO "configure"
12468 #include "confdefs.h"
12469 #include <unistd.h>
12470 #ifdef F77_DUMMY_MAIN
12471 #  ifdef __cplusplus
12472      extern "C"
12473 #  endif
12474    int F77_DUMMY_MAIN() { return 1; }
12475 #endif
12476 int
12477 main ()
12478 {
12479 extern int optreset; optreset = 1;
12480   ;
12481   return 0;
12482 }
12483 _ACEOF
12484 rm -f conftest.$ac_objext conftest$ac_exeext
12485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12486   (eval $ac_link) 2>&5
12487   ac_status=$?
12488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489   (exit $ac_status); } &&
12490          { ac_try='test -s conftest$ac_exeext'
12491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492   (eval $ac_try) 2>&5
12493   ac_status=$?
12494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495   (exit $ac_status); }; }; then
12496   pgac_cv_var_int_optreset=yes
12497 else
12498   echo "$as_me: failed program was:" >&5
12499 cat conftest.$ac_ext >&5
12500 pgac_cv_var_int_optreset=no
12501 fi
12502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12503 fi
12504 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12505 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12506 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12507
12508 cat >>confdefs.h <<\_ACEOF
12509 #define HAVE_INT_OPTRESET 1
12510 _ACEOF
12511
12512 fi
12513
12514
12515 # This test makes sure that run tests work at all.  Sometimes a shared
12516 # library is found by the linker, but the runtime linker can't find it.
12517 # This check should come after all modifications of compiler or linker
12518 # variables, and before any other run tests.
12519 echo "$as_me:$LINENO: checking test program" >&5
12520 echo $ECHO_N "checking test program... $ECHO_C" >&6
12521 if test "$cross_compiling" = yes; then
12522   echo "$as_me:$LINENO: result: cross-compiling" >&5
12523 echo "${ECHO_T}cross-compiling" >&6
12524 else
12525   cat >conftest.$ac_ext <<_ACEOF
12526 #line $LINENO "configure"
12527 #include "confdefs.h"
12528 int main() { return 0; }
12529 _ACEOF
12530 rm -f conftest$ac_exeext
12531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12532   (eval $ac_link) 2>&5
12533   ac_status=$?
12534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537   (eval $ac_try) 2>&5
12538   ac_status=$?
12539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540   (exit $ac_status); }; }; then
12541   echo "$as_me:$LINENO: result: ok" >&5
12542 echo "${ECHO_T}ok" >&6
12543 else
12544   echo "$as_me: program exited with status $ac_status" >&5
12545 echo "$as_me: failed program was:" >&5
12546 cat conftest.$ac_ext >&5
12547 ( exit $ac_status )
12548 echo "$as_me:$LINENO: result: failed" >&5
12549 echo "${ECHO_T}failed" >&6
12550 { { echo "$as_me:$LINENO: error:
12551 *** Could not execute a simple test program.  This may be a problem
12552 *** related to locating shared libraries.  Check the file 'config.log'
12553 *** for the exact reason." >&5
12554 echo "$as_me: error:
12555 *** Could not execute a simple test program.  This may be a problem
12556 *** related to locating shared libraries.  Check the file 'config.log'
12557 *** for the exact reason." >&2;}
12558    { (exit 1); exit 1; }; }
12559 fi
12560 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12561 fi
12562
12563
12564
12565 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
12566 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
12567 if test "${pgac_cv_type_long_int_64+set}" = set; then
12568   echo $ECHO_N "(cached) $ECHO_C" >&6
12569 else
12570   if test "$cross_compiling" = yes; then
12571   pgac_cv_type_long_int_64=no
12572 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12573 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12574 else
12575   cat >conftest.$ac_ext <<_ACEOF
12576 #line $LINENO "configure"
12577 #include "confdefs.h"
12578 typedef long int int64;
12579
12580 /*
12581  * These are globals to discourage the compiler from folding all the
12582  * arithmetic tests down to compile-time constants.
12583  */
12584 int64 a = 20000001;
12585 int64 b = 40000005;
12586
12587 int does_int64_work()
12588 {
12589   int64 c,d;
12590
12591   if (sizeof(int64) != 8)
12592     return 0;                   /* definitely not the right size */
12593
12594   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12595   c = a * b;
12596   d = (c + b) / b;
12597   if (d != a+1)
12598     return 0;
12599   return 1;
12600 }
12601 main() {
12602   exit(! does_int64_work());
12603 }
12604 _ACEOF
12605 rm -f conftest$ac_exeext
12606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12607   (eval $ac_link) 2>&5
12608   ac_status=$?
12609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612   (eval $ac_try) 2>&5
12613   ac_status=$?
12614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615   (exit $ac_status); }; }; then
12616   pgac_cv_type_long_int_64=yes
12617 else
12618   echo "$as_me: program exited with status $ac_status" >&5
12619 echo "$as_me: failed program was:" >&5
12620 cat conftest.$ac_ext >&5
12621 ( exit $ac_status )
12622 pgac_cv_type_long_int_64=no
12623 fi
12624 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12625 fi
12626 fi
12627 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
12628 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
12629
12630 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
12631 if test x"$pgac_cv_type_long_int_64" = xyes ; then
12632
12633 cat >>confdefs.h <<\_ACEOF
12634 #define HAVE_LONG_INT_64
12635 _ACEOF
12636
12637 fi
12638
12639
12640 if test x"$HAVE_LONG_INT_64" = x"no" ; then
12641   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
12642 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
12643 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
12644   echo $ECHO_N "(cached) $ECHO_C" >&6
12645 else
12646   if test "$cross_compiling" = yes; then
12647   pgac_cv_type_long_long_int_64=no
12648 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12649 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12650 else
12651   cat >conftest.$ac_ext <<_ACEOF
12652 #line $LINENO "configure"
12653 #include "confdefs.h"
12654 typedef long long int int64;
12655
12656 /*
12657  * These are globals to discourage the compiler from folding all the
12658  * arithmetic tests down to compile-time constants.
12659  */
12660 int64 a = 20000001;
12661 int64 b = 40000005;
12662
12663 int does_int64_work()
12664 {
12665   int64 c,d;
12666
12667   if (sizeof(int64) != 8)
12668     return 0;                   /* definitely not the right size */
12669
12670   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12671   c = a * b;
12672   d = (c + b) / b;
12673   if (d != a+1)
12674     return 0;
12675   return 1;
12676 }
12677 main() {
12678   exit(! does_int64_work());
12679 }
12680 _ACEOF
12681 rm -f conftest$ac_exeext
12682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12683   (eval $ac_link) 2>&5
12684   ac_status=$?
12685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688   (eval $ac_try) 2>&5
12689   ac_status=$?
12690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691   (exit $ac_status); }; }; then
12692   pgac_cv_type_long_long_int_64=yes
12693 else
12694   echo "$as_me: program exited with status $ac_status" >&5
12695 echo "$as_me: failed program was:" >&5
12696 cat conftest.$ac_ext >&5
12697 ( exit $ac_status )
12698 pgac_cv_type_long_long_int_64=no
12699 fi
12700 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12701 fi
12702 fi
12703 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
12704 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
12705
12706 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
12707 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
12708
12709 cat >>confdefs.h <<\_ACEOF
12710 #define HAVE_LONG_LONG_INT_64
12711 _ACEOF
12712
12713 fi
12714
12715 fi
12716
12717
12718
12719 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12720   cat >conftest.$ac_ext <<_ACEOF
12721 #line $LINENO "configure"
12722 #include "confdefs.h"
12723
12724 #define INT64CONST(x)  x##LL
12725 long long int foo = INT64CONST(0x1234567890123456);
12726
12727 #ifdef F77_DUMMY_MAIN
12728 #  ifdef __cplusplus
12729      extern "C"
12730 #  endif
12731    int F77_DUMMY_MAIN() { return 1; }
12732 #endif
12733 int
12734 main ()
12735 {
12736
12737   ;
12738   return 0;
12739 }
12740 _ACEOF
12741 rm -f conftest.$ac_objext
12742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12743   (eval $ac_compile) 2>&5
12744   ac_status=$?
12745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746   (exit $ac_status); } &&
12747          { ac_try='test -s conftest.$ac_objext'
12748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12749   (eval $ac_try) 2>&5
12750   ac_status=$?
12751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752   (exit $ac_status); }; }; then
12753
12754 cat >>confdefs.h <<\_ACEOF
12755 #define HAVE_LL_CONSTANTS 1
12756 _ACEOF
12757
12758 else
12759   echo "$as_me: failed program was:" >&5
12760 cat conftest.$ac_ext >&5
12761 fi
12762 rm -f conftest.$ac_objext conftest.$ac_ext
12763 fi
12764
12765
12766
12767 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12768   if [ x$SNPRINTF = x ] ; then
12769     echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
12770 echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
12771     if test "$cross_compiling" = yes; then
12772    echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12773 echo "${ECHO_T}assuming not on target machine" >&6
12774         # Force usage of our own snprintf, since we cannot test foreign snprintf
12775         SNPRINTF='$(top_builddir)/src/backend/port/snprintf.o'
12776         INT64_FORMAT='"%lld"'
12777
12778 else
12779   cat >conftest.$ac_ext <<_ACEOF
12780 #line $LINENO "configure"
12781 #include "confdefs.h"
12782 #include <stdio.h>
12783 typedef long long int int64;
12784 #define INT64_FORMAT "%lld"
12785
12786 int64 a = 20000001;
12787 int64 b = 40000005;
12788
12789 int does_int64_snprintf_work()
12790 {
12791   int64 c;
12792   char buf[100];
12793
12794   if (sizeof(int64) != 8)
12795     return 0;                   /* doesn't look like the right size */
12796
12797   c = a * b;
12798   snprintf(buf, 100, INT64_FORMAT, c);
12799   if (strcmp(buf, "800000140000005") != 0)
12800     return 0;                   /* either multiply or snprintf is busted */
12801   return 1;
12802 }
12803 main() {
12804   exit(! does_int64_snprintf_work());
12805 }
12806 _ACEOF
12807 rm -f conftest$ac_exeext
12808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12809   (eval $ac_link) 2>&5
12810   ac_status=$?
12811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814   (eval $ac_try) 2>&5
12815   ac_status=$?
12816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817   (exit $ac_status); }; }; then
12818    echo "$as_me:$LINENO: result: yes" >&5
12819 echo "${ECHO_T}yes" >&6
12820           INT64_FORMAT='"%lld"'
12821
12822 else
12823   echo "$as_me: program exited with status $ac_status" >&5
12824 echo "$as_me: failed program was:" >&5
12825 cat conftest.$ac_ext >&5
12826 ( exit $ac_status )
12827  echo "$as_me:$LINENO: result: no" >&5
12828 echo "${ECHO_T}no" >&6
12829     echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
12830 echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
12831     if test "$cross_compiling" = yes; then
12832    echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12833 echo "${ECHO_T}assuming not on target machine" >&6
12834         # Force usage of our own snprintf, since we cannot test foreign snprintf
12835         SNPRINTF='$(top_builddir)/src/backend/port/snprintf.o'
12836         INT64_FORMAT='"%lld"'
12837
12838 else
12839   cat >conftest.$ac_ext <<_ACEOF
12840 #line $LINENO "configure"
12841 #include "confdefs.h"
12842 #include <stdio.h>
12843 typedef long long int int64;
12844 #define INT64_FORMAT "%qd"
12845
12846 int64 a = 20000001;
12847 int64 b = 40000005;
12848
12849 int does_int64_snprintf_work()
12850 {
12851   int64 c;
12852   char buf[100];
12853
12854   if (sizeof(int64) != 8)
12855     return 0;     /* doesn't look like the right size */
12856
12857   c = a * b;
12858   snprintf(buf, 100, INT64_FORMAT, c);
12859   if (strcmp(buf, "800000140000005") != 0)
12860     return 0;     /* either multiply or snprintf is busted */
12861   return 1;
12862 }
12863 main() {
12864   exit(! does_int64_snprintf_work());
12865 }
12866 _ACEOF
12867 rm -f conftest$ac_exeext
12868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12869   (eval $ac_link) 2>&5
12870   ac_status=$?
12871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874   (eval $ac_try) 2>&5
12875   ac_status=$?
12876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877   (exit $ac_status); }; }; then
12878    echo "$as_me:$LINENO: result: yes" >&5
12879 echo "${ECHO_T}yes" >&6
12880     INT64_FORMAT='"%qd"'
12881
12882 else
12883   echo "$as_me: program exited with status $ac_status" >&5
12884 echo "$as_me: failed program was:" >&5
12885 cat conftest.$ac_ext >&5
12886 ( exit $ac_status )
12887  echo "$as_me:$LINENO: result: no" >&5
12888 echo "${ECHO_T}no" >&6
12889         # Force usage of our own snprintf, since system snprintf is broken
12890         SNPRINTF='$(top_builddir)/src/backend/port/snprintf.o'
12891         INT64_FORMAT='"%lld"'
12892
12893 fi
12894 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12895 fi
12896 fi
12897 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12898 fi
12899   else
12900     # here if we previously decided we needed to use our own snprintf
12901     INT64_FORMAT='"%lld"'
12902   fi
12903 else
12904   # Here if we are not using 'long long int' at all
12905   INT64_FORMAT='"%ld"'
12906 fi
12907
12908
12909 cat >>confdefs.h <<_ACEOF
12910 #define INT64_FORMAT $INT64_FORMAT
12911 _ACEOF
12912
12913
12914
12915
12916
12917 for ac_func in strtoll strtoq
12918 do
12919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12920 echo "$as_me:$LINENO: checking for $ac_func" >&5
12921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12922 if eval "test \"\${$as_ac_var+set}\" = set"; then
12923   echo $ECHO_N "(cached) $ECHO_C" >&6
12924 else
12925   cat >conftest.$ac_ext <<_ACEOF
12926 #line $LINENO "configure"
12927 #include "confdefs.h"
12928 /* System header to define __stub macros and hopefully few prototypes,
12929     which can conflict with char $ac_func (); below.  */
12930 #include <assert.h>
12931 /* Override any gcc2 internal prototype to avoid an error.  */
12932 #ifdef __cplusplus
12933 extern "C"
12934 #endif
12935 /* We use char because int might match the return type of a gcc2
12936    builtin and then its argument prototype would still apply.  */
12937 char $ac_func ();
12938 char (*f) ();
12939
12940 #ifdef F77_DUMMY_MAIN
12941 #  ifdef __cplusplus
12942      extern "C"
12943 #  endif
12944    int F77_DUMMY_MAIN() { return 1; }
12945 #endif
12946 int
12947 main ()
12948 {
12949 /* The GNU C library defines this for functions which it implements
12950     to always fail with ENOSYS.  Some functions are actually named
12951     something starting with __ and the normal name is an alias.  */
12952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12953 choke me
12954 #else
12955 f = $ac_func;
12956 #endif
12957
12958   ;
12959   return 0;
12960 }
12961 _ACEOF
12962 rm -f conftest.$ac_objext conftest$ac_exeext
12963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12964   (eval $ac_link) 2>&5
12965   ac_status=$?
12966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967   (exit $ac_status); } &&
12968          { ac_try='test -s conftest$ac_exeext'
12969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12970   (eval $ac_try) 2>&5
12971   ac_status=$?
12972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973   (exit $ac_status); }; }; then
12974   eval "$as_ac_var=yes"
12975 else
12976   echo "$as_me: failed program was:" >&5
12977 cat conftest.$ac_ext >&5
12978 eval "$as_ac_var=no"
12979 fi
12980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12981 fi
12982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12983 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12984 if test `eval echo '${'$as_ac_var'}'` = yes; then
12985   cat >>confdefs.h <<_ACEOF
12986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12987 _ACEOF
12988  break
12989 fi
12990 done
12991
12992
12993
12994 for ac_func in strtoull strtouq
12995 do
12996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12997 echo "$as_me:$LINENO: checking for $ac_func" >&5
12998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12999 if eval "test \"\${$as_ac_var+set}\" = set"; then
13000   echo $ECHO_N "(cached) $ECHO_C" >&6
13001 else
13002   cat >conftest.$ac_ext <<_ACEOF
13003 #line $LINENO "configure"
13004 #include "confdefs.h"
13005 /* System header to define __stub macros and hopefully few prototypes,
13006     which can conflict with char $ac_func (); below.  */
13007 #include <assert.h>
13008 /* Override any gcc2 internal prototype to avoid an error.  */
13009 #ifdef __cplusplus
13010 extern "C"
13011 #endif
13012 /* We use char because int might match the return type of a gcc2
13013    builtin and then its argument prototype would still apply.  */
13014 char $ac_func ();
13015 char (*f) ();
13016
13017 #ifdef F77_DUMMY_MAIN
13018 #  ifdef __cplusplus
13019      extern "C"
13020 #  endif
13021    int F77_DUMMY_MAIN() { return 1; }
13022 #endif
13023 int
13024 main ()
13025 {
13026 /* The GNU C library defines this for functions which it implements
13027     to always fail with ENOSYS.  Some functions are actually named
13028     something starting with __ and the normal name is an alias.  */
13029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13030 choke me
13031 #else
13032 f = $ac_func;
13033 #endif
13034
13035   ;
13036   return 0;
13037 }
13038 _ACEOF
13039 rm -f conftest.$ac_objext conftest$ac_exeext
13040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13041   (eval $ac_link) 2>&5
13042   ac_status=$?
13043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044   (exit $ac_status); } &&
13045          { ac_try='test -s conftest$ac_exeext'
13046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13047   (eval $ac_try) 2>&5
13048   ac_status=$?
13049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050   (exit $ac_status); }; }; then
13051   eval "$as_ac_var=yes"
13052 else
13053   echo "$as_me: failed program was:" >&5
13054 cat conftest.$ac_ext >&5
13055 eval "$as_ac_var=no"
13056 fi
13057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13058 fi
13059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13061 if test `eval echo '${'$as_ac_var'}'` = yes; then
13062   cat >>confdefs.h <<_ACEOF
13063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13064 _ACEOF
13065  break
13066 fi
13067 done
13068
13069
13070 # Check for one of atexit() or on_exit()
13071
13072 for ac_func in atexit
13073 do
13074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13075 echo "$as_me:$LINENO: checking for $ac_func" >&5
13076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13077 if eval "test \"\${$as_ac_var+set}\" = set"; then
13078   echo $ECHO_N "(cached) $ECHO_C" >&6
13079 else
13080   cat >conftest.$ac_ext <<_ACEOF
13081 #line $LINENO "configure"
13082 #include "confdefs.h"
13083 /* System header to define __stub macros and hopefully few prototypes,
13084     which can conflict with char $ac_func (); below.  */
13085 #include <assert.h>
13086 /* Override any gcc2 internal prototype to avoid an error.  */
13087 #ifdef __cplusplus
13088 extern "C"
13089 #endif
13090 /* We use char because int might match the return type of a gcc2
13091    builtin and then its argument prototype would still apply.  */
13092 char $ac_func ();
13093 char (*f) ();
13094
13095 #ifdef F77_DUMMY_MAIN
13096 #  ifdef __cplusplus
13097      extern "C"
13098 #  endif
13099    int F77_DUMMY_MAIN() { return 1; }
13100 #endif
13101 int
13102 main ()
13103 {
13104 /* The GNU C library defines this for functions which it implements
13105     to always fail with ENOSYS.  Some functions are actually named
13106     something starting with __ and the normal name is an alias.  */
13107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13108 choke me
13109 #else
13110 f = $ac_func;
13111 #endif
13112
13113   ;
13114   return 0;
13115 }
13116 _ACEOF
13117 rm -f conftest.$ac_objext conftest$ac_exeext
13118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13119   (eval $ac_link) 2>&5
13120   ac_status=$?
13121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122   (exit $ac_status); } &&
13123          { ac_try='test -s conftest$ac_exeext'
13124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13125   (eval $ac_try) 2>&5
13126   ac_status=$?
13127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128   (exit $ac_status); }; }; then
13129   eval "$as_ac_var=yes"
13130 else
13131   echo "$as_me: failed program was:" >&5
13132 cat conftest.$ac_ext >&5
13133 eval "$as_ac_var=no"
13134 fi
13135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13136 fi
13137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13139 if test `eval echo '${'$as_ac_var'}'` = yes; then
13140   cat >>confdefs.h <<_ACEOF
13141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13142 _ACEOF
13143
13144 else
13145
13146 for ac_func in on_exit
13147 do
13148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13149 echo "$as_me:$LINENO: checking for $ac_func" >&5
13150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13151 if eval "test \"\${$as_ac_var+set}\" = set"; then
13152   echo $ECHO_N "(cached) $ECHO_C" >&6
13153 else
13154   cat >conftest.$ac_ext <<_ACEOF
13155 #line $LINENO "configure"
13156 #include "confdefs.h"
13157 /* System header to define __stub macros and hopefully few prototypes,
13158     which can conflict with char $ac_func (); below.  */
13159 #include <assert.h>
13160 /* Override any gcc2 internal prototype to avoid an error.  */
13161 #ifdef __cplusplus
13162 extern "C"
13163 #endif
13164 /* We use char because int might match the return type of a gcc2
13165    builtin and then its argument prototype would still apply.  */
13166 char $ac_func ();
13167 char (*f) ();
13168
13169 #ifdef F77_DUMMY_MAIN
13170 #  ifdef __cplusplus
13171      extern "C"
13172 #  endif
13173    int F77_DUMMY_MAIN() { return 1; }
13174 #endif
13175 int
13176 main ()
13177 {
13178 /* The GNU C library defines this for functions which it implements
13179     to always fail with ENOSYS.  Some functions are actually named
13180     something starting with __ and the normal name is an alias.  */
13181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13182 choke me
13183 #else
13184 f = $ac_func;
13185 #endif
13186
13187   ;
13188   return 0;
13189 }
13190 _ACEOF
13191 rm -f conftest.$ac_objext conftest$ac_exeext
13192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13193   (eval $ac_link) 2>&5
13194   ac_status=$?
13195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196   (exit $ac_status); } &&
13197          { ac_try='test -s conftest$ac_exeext'
13198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13199   (eval $ac_try) 2>&5
13200   ac_status=$?
13201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202   (exit $ac_status); }; }; then
13203   eval "$as_ac_var=yes"
13204 else
13205   echo "$as_me: failed program was:" >&5
13206 cat conftest.$ac_ext >&5
13207 eval "$as_ac_var=no"
13208 fi
13209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13210 fi
13211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13212 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13213 if test `eval echo '${'$as_ac_var'}'` = yes; then
13214   cat >>confdefs.h <<_ACEOF
13215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13216 _ACEOF
13217
13218 else
13219   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
13220 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
13221    { (exit 1); exit 1; }; }
13222 fi
13223 done
13224
13225 fi
13226 done
13227
13228
13229
13230 echo "$as_me:$LINENO: checking for unsigned long" >&5
13231 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13232 if test "${ac_cv_type_unsigned_long+set}" = set; then
13233   echo $ECHO_N "(cached) $ECHO_C" >&6
13234 else
13235   cat >conftest.$ac_ext <<_ACEOF
13236 #line $LINENO "configure"
13237 #include "confdefs.h"
13238 $ac_includes_default
13239 #ifdef F77_DUMMY_MAIN
13240 #  ifdef __cplusplus
13241      extern "C"
13242 #  endif
13243    int F77_DUMMY_MAIN() { return 1; }
13244 #endif
13245 int
13246 main ()
13247 {
13248 if ((unsigned long *) 0)
13249   return 0;
13250 if (sizeof (unsigned long))
13251   return 0;
13252   ;
13253   return 0;
13254 }
13255 _ACEOF
13256 rm -f conftest.$ac_objext
13257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13258   (eval $ac_compile) 2>&5
13259   ac_status=$?
13260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261   (exit $ac_status); } &&
13262          { ac_try='test -s conftest.$ac_objext'
13263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264   (eval $ac_try) 2>&5
13265   ac_status=$?
13266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267   (exit $ac_status); }; }; then
13268   ac_cv_type_unsigned_long=yes
13269 else
13270   echo "$as_me: failed program was:" >&5
13271 cat conftest.$ac_ext >&5
13272 ac_cv_type_unsigned_long=no
13273 fi
13274 rm -f conftest.$ac_objext conftest.$ac_ext
13275 fi
13276 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13277 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13278
13279 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13280 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13281 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13282   echo $ECHO_N "(cached) $ECHO_C" >&6
13283 else
13284   if test "$ac_cv_type_unsigned_long" = yes; then
13285   # The cast to unsigned long works around a bug in the HP C Compiler
13286   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13287   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13288   # This bug is HP SR number 8606223364.
13289   if test "$cross_compiling" = yes; then
13290   # Depending upon the size, compute the lo and hi bounds.
13291 cat >conftest.$ac_ext <<_ACEOF
13292 #line $LINENO "configure"
13293 #include "confdefs.h"
13294 $ac_includes_default
13295 #ifdef F77_DUMMY_MAIN
13296 #  ifdef __cplusplus
13297      extern "C"
13298 #  endif
13299    int F77_DUMMY_MAIN() { return 1; }
13300 #endif
13301 int
13302 main ()
13303 {
13304 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13305 test_array [0] = 0
13306
13307   ;
13308   return 0;
13309 }
13310 _ACEOF
13311 rm -f conftest.$ac_objext
13312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13313   (eval $ac_compile) 2>&5
13314   ac_status=$?
13315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316   (exit $ac_status); } &&
13317          { ac_try='test -s conftest.$ac_objext'
13318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13319   (eval $ac_try) 2>&5
13320   ac_status=$?
13321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322   (exit $ac_status); }; }; then
13323   ac_lo=0 ac_mid=0
13324   while :; do
13325     cat >conftest.$ac_ext <<_ACEOF
13326 #line $LINENO "configure"
13327 #include "confdefs.h"
13328 $ac_includes_default
13329 #ifdef F77_DUMMY_MAIN
13330 #  ifdef __cplusplus
13331      extern "C"
13332 #  endif
13333    int F77_DUMMY_MAIN() { return 1; }
13334 #endif
13335 int
13336 main ()
13337 {
13338 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13339 test_array [0] = 0
13340
13341   ;
13342   return 0;
13343 }
13344 _ACEOF
13345 rm -f conftest.$ac_objext
13346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13347   (eval $ac_compile) 2>&5
13348   ac_status=$?
13349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350   (exit $ac_status); } &&
13351          { ac_try='test -s conftest.$ac_objext'
13352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13353   (eval $ac_try) 2>&5
13354   ac_status=$?
13355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356   (exit $ac_status); }; }; then
13357   ac_hi=$ac_mid; break
13358 else
13359   echo "$as_me: failed program was:" >&5
13360 cat conftest.$ac_ext >&5
13361 ac_lo=`expr $ac_mid + 1`
13362                     if test $ac_lo -le $ac_mid; then
13363                       ac_lo= ac_hi=
13364                       break
13365                     fi
13366                     ac_mid=`expr 2 '*' $ac_mid + 1`
13367 fi
13368 rm -f conftest.$ac_objext conftest.$ac_ext
13369   done
13370 else
13371   echo "$as_me: failed program was:" >&5
13372 cat conftest.$ac_ext >&5
13373 cat >conftest.$ac_ext <<_ACEOF
13374 #line $LINENO "configure"
13375 #include "confdefs.h"
13376 $ac_includes_default
13377 #ifdef F77_DUMMY_MAIN
13378 #  ifdef __cplusplus
13379      extern "C"
13380 #  endif
13381    int F77_DUMMY_MAIN() { return 1; }
13382 #endif
13383 int
13384 main ()
13385 {
13386 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13387 test_array [0] = 0
13388
13389   ;
13390   return 0;
13391 }
13392 _ACEOF
13393 rm -f conftest.$ac_objext
13394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13395   (eval $ac_compile) 2>&5
13396   ac_status=$?
13397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398   (exit $ac_status); } &&
13399          { ac_try='test -s conftest.$ac_objext'
13400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13401   (eval $ac_try) 2>&5
13402   ac_status=$?
13403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404   (exit $ac_status); }; }; then
13405   ac_hi=-1 ac_mid=-1
13406   while :; do
13407     cat >conftest.$ac_ext <<_ACEOF
13408 #line $LINENO "configure"
13409 #include "confdefs.h"
13410 $ac_includes_default
13411 #ifdef F77_DUMMY_MAIN
13412 #  ifdef __cplusplus
13413      extern "C"
13414 #  endif
13415    int F77_DUMMY_MAIN() { return 1; }
13416 #endif
13417 int
13418 main ()
13419 {
13420 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
13421 test_array [0] = 0
13422
13423   ;
13424   return 0;
13425 }
13426 _ACEOF
13427 rm -f conftest.$ac_objext
13428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13429   (eval $ac_compile) 2>&5
13430   ac_status=$?
13431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432   (exit $ac_status); } &&
13433          { ac_try='test -s conftest.$ac_objext'
13434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13435   (eval $ac_try) 2>&5
13436   ac_status=$?
13437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438   (exit $ac_status); }; }; then
13439   ac_lo=$ac_mid; break
13440 else
13441   echo "$as_me: failed program was:" >&5
13442 cat conftest.$ac_ext >&5
13443 ac_hi=`expr '(' $ac_mid ')' - 1`
13444                        if test $ac_mid -le $ac_hi; then
13445                          ac_lo= ac_hi=
13446                          break
13447                        fi
13448                        ac_mid=`expr 2 '*' $ac_mid`
13449 fi
13450 rm -f conftest.$ac_objext conftest.$ac_ext
13451   done
13452 else
13453   echo "$as_me: failed program was:" >&5
13454 cat conftest.$ac_ext >&5
13455 ac_lo= ac_hi=
13456 fi
13457 rm -f conftest.$ac_objext conftest.$ac_ext
13458 fi
13459 rm -f conftest.$ac_objext conftest.$ac_ext
13460 # Binary search between lo and hi bounds.
13461 while test "x$ac_lo" != "x$ac_hi"; do
13462   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13463   cat >conftest.$ac_ext <<_ACEOF
13464 #line $LINENO "configure"
13465 #include "confdefs.h"
13466 $ac_includes_default
13467 #ifdef F77_DUMMY_MAIN
13468 #  ifdef __cplusplus
13469      extern "C"
13470 #  endif
13471    int F77_DUMMY_MAIN() { return 1; }
13472 #endif
13473 int
13474 main ()
13475 {
13476 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13477 test_array [0] = 0
13478
13479   ;
13480   return 0;
13481 }
13482 _ACEOF
13483 rm -f conftest.$ac_objext
13484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13485   (eval $ac_compile) 2>&5
13486   ac_status=$?
13487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488   (exit $ac_status); } &&
13489          { ac_try='test -s conftest.$ac_objext'
13490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13491   (eval $ac_try) 2>&5
13492   ac_status=$?
13493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494   (exit $ac_status); }; }; then
13495   ac_hi=$ac_mid
13496 else
13497   echo "$as_me: failed program was:" >&5
13498 cat conftest.$ac_ext >&5
13499 ac_lo=`expr '(' $ac_mid ')' + 1`
13500 fi
13501 rm -f conftest.$ac_objext conftest.$ac_ext
13502 done
13503 case $ac_lo in
13504 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13505 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13506 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13507    { (exit 1); exit 1; }; } ;;
13508 esac
13509 else
13510   if test "$cross_compiling" = yes; then
13511   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13512 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13513    { (exit 1); exit 1; }; }
13514 else
13515   cat >conftest.$ac_ext <<_ACEOF
13516 #line $LINENO "configure"
13517 #include "confdefs.h"
13518 $ac_includes_default
13519 long longval () { return (long) (sizeof (unsigned long)); }
13520 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
13521 #include <stdio.h>
13522 #include <stdlib.h>
13523 #ifdef F77_DUMMY_MAIN
13524 #  ifdef __cplusplus
13525      extern "C"
13526 #  endif
13527    int F77_DUMMY_MAIN() { return 1; }
13528 #endif
13529 int
13530 main ()
13531 {
13532
13533   FILE *f = fopen ("conftest.val", "w");
13534   if (! f)
13535     exit (1);
13536   if (((long) (sizeof (unsigned long))) < 0)
13537     {
13538       long i = longval ();
13539       if (i != ((long) (sizeof (unsigned long))))
13540         exit (1);
13541       fprintf (f, "%ld\n", i);
13542     }
13543   else
13544     {
13545       unsigned long i = ulongval ();
13546       if (i != ((long) (sizeof (unsigned long))))
13547         exit (1);
13548       fprintf (f, "%lu\n", i);
13549     }
13550   exit (ferror (f) || fclose (f) != 0);
13551
13552   ;
13553   return 0;
13554 }
13555 _ACEOF
13556 rm -f conftest$ac_exeext
13557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13558   (eval $ac_link) 2>&5
13559   ac_status=$?
13560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563   (eval $ac_try) 2>&5
13564   ac_status=$?
13565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566   (exit $ac_status); }; }; then
13567   ac_cv_sizeof_unsigned_long=`cat conftest.val`
13568 else
13569   echo "$as_me: program exited with status $ac_status" >&5
13570 echo "$as_me: failed program was:" >&5
13571 cat conftest.$ac_ext >&5
13572 ( exit $ac_status )
13573 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13574 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13575    { (exit 1); exit 1; }; }
13576 fi
13577 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13578 fi
13579 fi
13580 rm -f conftest.val
13581 else
13582   ac_cv_sizeof_unsigned_long=0
13583 fi
13584 fi
13585 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13586 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13587 cat >>confdefs.h <<_ACEOF
13588 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13589 _ACEOF
13590
13591
13592
13593 cat >>confdefs.h <<_ACEOF
13594 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
13595 _ACEOF
13596
13597
13598 # Determine memory alignment requirements for the basic C data types.
13599
13600 echo "$as_me:$LINENO: checking for short" >&5
13601 echo $ECHO_N "checking for short... $ECHO_C" >&6
13602 if test "${ac_cv_type_short+set}" = set; then
13603   echo $ECHO_N "(cached) $ECHO_C" >&6
13604 else
13605   cat >conftest.$ac_ext <<_ACEOF
13606 #line $LINENO "configure"
13607 #include "confdefs.h"
13608 $ac_includes_default
13609 #ifdef F77_DUMMY_MAIN
13610 #  ifdef __cplusplus
13611      extern "C"
13612 #  endif
13613    int F77_DUMMY_MAIN() { return 1; }
13614 #endif
13615 int
13616 main ()
13617 {
13618 if ((short *) 0)
13619   return 0;
13620 if (sizeof (short))
13621   return 0;
13622   ;
13623   return 0;
13624 }
13625 _ACEOF
13626 rm -f conftest.$ac_objext
13627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13628   (eval $ac_compile) 2>&5
13629   ac_status=$?
13630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631   (exit $ac_status); } &&
13632          { ac_try='test -s conftest.$ac_objext'
13633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634   (eval $ac_try) 2>&5
13635   ac_status=$?
13636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637   (exit $ac_status); }; }; then
13638   ac_cv_type_short=yes
13639 else
13640   echo "$as_me: failed program was:" >&5
13641 cat conftest.$ac_ext >&5
13642 ac_cv_type_short=no
13643 fi
13644 rm -f conftest.$ac_objext conftest.$ac_ext
13645 fi
13646 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13647 echo "${ECHO_T}$ac_cv_type_short" >&6
13648
13649 echo "$as_me:$LINENO: checking alignment of short" >&5
13650 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
13651 if test "${pgac_cv_alignof_short+set}" = set; then
13652   echo $ECHO_N "(cached) $ECHO_C" >&6
13653 else
13654   if test "$ac_cv_type_short" = yes; then
13655   if test "$cross_compiling" = yes; then
13656   # Depending upon the size, compute the lo and hi bounds.
13657 cat >conftest.$ac_ext <<_ACEOF
13658 #line $LINENO "configure"
13659 #include "confdefs.h"
13660 $ac_includes_default
13661 struct { char filler; short field; } pgac_struct;
13662 #ifdef F77_DUMMY_MAIN
13663 #  ifdef __cplusplus
13664      extern "C"
13665 #  endif
13666    int F77_DUMMY_MAIN() { return 1; }
13667 #endif
13668 int
13669 main ()
13670 {
13671 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13672 test_array [0] = 0
13673
13674   ;
13675   return 0;
13676 }
13677 _ACEOF
13678 rm -f conftest.$ac_objext
13679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13680   (eval $ac_compile) 2>&5
13681   ac_status=$?
13682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683   (exit $ac_status); } &&
13684          { ac_try='test -s conftest.$ac_objext'
13685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13686   (eval $ac_try) 2>&5
13687   ac_status=$?
13688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689   (exit $ac_status); }; }; then
13690   ac_lo=0 ac_mid=0
13691   while :; do
13692     cat >conftest.$ac_ext <<_ACEOF
13693 #line $LINENO "configure"
13694 #include "confdefs.h"
13695 $ac_includes_default
13696 struct { char filler; short field; } pgac_struct;
13697 #ifdef F77_DUMMY_MAIN
13698 #  ifdef __cplusplus
13699      extern "C"
13700 #  endif
13701    int F77_DUMMY_MAIN() { return 1; }
13702 #endif
13703 int
13704 main ()
13705 {
13706 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13707 test_array [0] = 0
13708
13709   ;
13710   return 0;
13711 }
13712 _ACEOF
13713 rm -f conftest.$ac_objext
13714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13715   (eval $ac_compile) 2>&5
13716   ac_status=$?
13717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718   (exit $ac_status); } &&
13719          { ac_try='test -s conftest.$ac_objext'
13720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721   (eval $ac_try) 2>&5
13722   ac_status=$?
13723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724   (exit $ac_status); }; }; then
13725   ac_hi=$ac_mid; break
13726 else
13727   echo "$as_me: failed program was:" >&5
13728 cat conftest.$ac_ext >&5
13729 ac_lo=`expr $ac_mid + 1`
13730                     if test $ac_lo -le $ac_mid; then
13731                       ac_lo= ac_hi=
13732                       break
13733                     fi
13734                     ac_mid=`expr 2 '*' $ac_mid + 1`
13735 fi
13736 rm -f conftest.$ac_objext conftest.$ac_ext
13737   done
13738 else
13739   echo "$as_me: failed program was:" >&5
13740 cat conftest.$ac_ext >&5
13741 cat >conftest.$ac_ext <<_ACEOF
13742 #line $LINENO "configure"
13743 #include "confdefs.h"
13744 $ac_includes_default
13745 struct { char filler; short field; } pgac_struct;
13746 #ifdef F77_DUMMY_MAIN
13747 #  ifdef __cplusplus
13748      extern "C"
13749 #  endif
13750    int F77_DUMMY_MAIN() { return 1; }
13751 #endif
13752 int
13753 main ()
13754 {
13755 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13756 test_array [0] = 0
13757
13758   ;
13759   return 0;
13760 }
13761 _ACEOF
13762 rm -f conftest.$ac_objext
13763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13764   (eval $ac_compile) 2>&5
13765   ac_status=$?
13766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767   (exit $ac_status); } &&
13768          { ac_try='test -s conftest.$ac_objext'
13769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770   (eval $ac_try) 2>&5
13771   ac_status=$?
13772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773   (exit $ac_status); }; }; then
13774   ac_hi=-1 ac_mid=-1
13775   while :; do
13776     cat >conftest.$ac_ext <<_ACEOF
13777 #line $LINENO "configure"
13778 #include "confdefs.h"
13779 $ac_includes_default
13780 struct { char filler; short field; } pgac_struct;
13781 #ifdef F77_DUMMY_MAIN
13782 #  ifdef __cplusplus
13783      extern "C"
13784 #  endif
13785    int F77_DUMMY_MAIN() { return 1; }
13786 #endif
13787 int
13788 main ()
13789 {
13790 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13791 test_array [0] = 0
13792
13793   ;
13794   return 0;
13795 }
13796 _ACEOF
13797 rm -f conftest.$ac_objext
13798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13799   (eval $ac_compile) 2>&5
13800   ac_status=$?
13801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802   (exit $ac_status); } &&
13803          { ac_try='test -s conftest.$ac_objext'
13804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13805   (eval $ac_try) 2>&5
13806   ac_status=$?
13807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808   (exit $ac_status); }; }; then
13809   ac_lo=$ac_mid; break
13810 else
13811   echo "$as_me: failed program was:" >&5
13812 cat conftest.$ac_ext >&5
13813 ac_hi=`expr '(' $ac_mid ')' - 1`
13814                        if test $ac_mid -le $ac_hi; then
13815                          ac_lo= ac_hi=
13816                          break
13817                        fi
13818                        ac_mid=`expr 2 '*' $ac_mid`
13819 fi
13820 rm -f conftest.$ac_objext conftest.$ac_ext
13821   done
13822 else
13823   echo "$as_me: failed program was:" >&5
13824 cat conftest.$ac_ext >&5
13825 ac_lo= ac_hi=
13826 fi
13827 rm -f conftest.$ac_objext conftest.$ac_ext
13828 fi
13829 rm -f conftest.$ac_objext conftest.$ac_ext
13830 # Binary search between lo and hi bounds.
13831 while test "x$ac_lo" != "x$ac_hi"; do
13832   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13833   cat >conftest.$ac_ext <<_ACEOF
13834 #line $LINENO "configure"
13835 #include "confdefs.h"
13836 $ac_includes_default
13837 struct { char filler; short field; } pgac_struct;
13838 #ifdef F77_DUMMY_MAIN
13839 #  ifdef __cplusplus
13840      extern "C"
13841 #  endif
13842    int F77_DUMMY_MAIN() { return 1; }
13843 #endif
13844 int
13845 main ()
13846 {
13847 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13848 test_array [0] = 0
13849
13850   ;
13851   return 0;
13852 }
13853 _ACEOF
13854 rm -f conftest.$ac_objext
13855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13856   (eval $ac_compile) 2>&5
13857   ac_status=$?
13858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859   (exit $ac_status); } &&
13860          { ac_try='test -s conftest.$ac_objext'
13861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862   (eval $ac_try) 2>&5
13863   ac_status=$?
13864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865   (exit $ac_status); }; }; then
13866   ac_hi=$ac_mid
13867 else
13868   echo "$as_me: failed program was:" >&5
13869 cat conftest.$ac_ext >&5
13870 ac_lo=`expr '(' $ac_mid ')' + 1`
13871 fi
13872 rm -f conftest.$ac_objext conftest.$ac_ext
13873 done
13874 case $ac_lo in
13875 ?*) pgac_cv_alignof_short=$ac_lo;;
13876 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13877 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13878    { (exit 1); exit 1; }; } ;;
13879 esac
13880 else
13881   if test "$cross_compiling" = yes; then
13882   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13883 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13884    { (exit 1); exit 1; }; }
13885 else
13886   cat >conftest.$ac_ext <<_ACEOF
13887 #line $LINENO "configure"
13888 #include "confdefs.h"
13889 $ac_includes_default
13890 struct { char filler; short field; } pgac_struct;
13891 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13892 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13893 #include <stdio.h>
13894 #include <stdlib.h>
13895 #ifdef F77_DUMMY_MAIN
13896 #  ifdef __cplusplus
13897      extern "C"
13898 #  endif
13899    int F77_DUMMY_MAIN() { return 1; }
13900 #endif
13901 int
13902 main ()
13903 {
13904
13905   FILE *f = fopen ("conftest.val", "w");
13906   if (! f)
13907     exit (1);
13908   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13909     {
13910       long i = longval ();
13911       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13912         exit (1);
13913       fprintf (f, "%ld\n", i);
13914     }
13915   else
13916     {
13917       unsigned long i = ulongval ();
13918       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13919         exit (1);
13920       fprintf (f, "%lu\n", i);
13921     }
13922   exit (ferror (f) || fclose (f) != 0);
13923
13924   ;
13925   return 0;
13926 }
13927 _ACEOF
13928 rm -f conftest$ac_exeext
13929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13930   (eval $ac_link) 2>&5
13931   ac_status=$?
13932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935   (eval $ac_try) 2>&5
13936   ac_status=$?
13937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938   (exit $ac_status); }; }; then
13939   pgac_cv_alignof_short=`cat conftest.val`
13940 else
13941   echo "$as_me: program exited with status $ac_status" >&5
13942 echo "$as_me: failed program was:" >&5
13943 cat conftest.$ac_ext >&5
13944 ( exit $ac_status )
13945 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13946 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13947    { (exit 1); exit 1; }; }
13948 fi
13949 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13950 fi
13951 fi
13952 rm -f conftest.val
13953 else
13954   pgac_cv_alignof_short=0
13955 fi
13956 fi
13957 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
13958 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
13959 cat >>confdefs.h <<_ACEOF
13960 #define ALIGNOF_SHORT $pgac_cv_alignof_short
13961 _ACEOF
13962
13963
13964 echo "$as_me:$LINENO: checking for int" >&5
13965 echo $ECHO_N "checking for int... $ECHO_C" >&6
13966 if test "${ac_cv_type_int+set}" = set; then
13967   echo $ECHO_N "(cached) $ECHO_C" >&6
13968 else
13969   cat >conftest.$ac_ext <<_ACEOF
13970 #line $LINENO "configure"
13971 #include "confdefs.h"
13972 $ac_includes_default
13973 #ifdef F77_DUMMY_MAIN
13974 #  ifdef __cplusplus
13975      extern "C"
13976 #  endif
13977    int F77_DUMMY_MAIN() { return 1; }
13978 #endif
13979 int
13980 main ()
13981 {
13982 if ((int *) 0)
13983   return 0;
13984 if (sizeof (int))
13985   return 0;
13986   ;
13987   return 0;
13988 }
13989 _ACEOF
13990 rm -f conftest.$ac_objext
13991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13992   (eval $ac_compile) 2>&5
13993   ac_status=$?
13994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995   (exit $ac_status); } &&
13996          { ac_try='test -s conftest.$ac_objext'
13997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13998   (eval $ac_try) 2>&5
13999   ac_status=$?
14000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001   (exit $ac_status); }; }; then
14002   ac_cv_type_int=yes
14003 else
14004   echo "$as_me: failed program was:" >&5
14005 cat conftest.$ac_ext >&5
14006 ac_cv_type_int=no
14007 fi
14008 rm -f conftest.$ac_objext conftest.$ac_ext
14009 fi
14010 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14011 echo "${ECHO_T}$ac_cv_type_int" >&6
14012
14013 echo "$as_me:$LINENO: checking alignment of int" >&5
14014 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14015 if test "${pgac_cv_alignof_int+set}" = set; then
14016   echo $ECHO_N "(cached) $ECHO_C" >&6
14017 else
14018   if test "$ac_cv_type_int" = yes; then
14019   if test "$cross_compiling" = yes; then
14020   # Depending upon the size, compute the lo and hi bounds.
14021 cat >conftest.$ac_ext <<_ACEOF
14022 #line $LINENO "configure"
14023 #include "confdefs.h"
14024 $ac_includes_default
14025 struct { char filler; int field; } pgac_struct;
14026 #ifdef F77_DUMMY_MAIN
14027 #  ifdef __cplusplus
14028      extern "C"
14029 #  endif
14030    int F77_DUMMY_MAIN() { return 1; }
14031 #endif
14032 int
14033 main ()
14034 {
14035 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14036 test_array [0] = 0
14037
14038   ;
14039   return 0;
14040 }
14041 _ACEOF
14042 rm -f conftest.$ac_objext
14043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14044   (eval $ac_compile) 2>&5
14045   ac_status=$?
14046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047   (exit $ac_status); } &&
14048          { ac_try='test -s conftest.$ac_objext'
14049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14050   (eval $ac_try) 2>&5
14051   ac_status=$?
14052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053   (exit $ac_status); }; }; then
14054   ac_lo=0 ac_mid=0
14055   while :; do
14056     cat >conftest.$ac_ext <<_ACEOF
14057 #line $LINENO "configure"
14058 #include "confdefs.h"
14059 $ac_includes_default
14060 struct { char filler; int field; } pgac_struct;
14061 #ifdef F77_DUMMY_MAIN
14062 #  ifdef __cplusplus
14063      extern "C"
14064 #  endif
14065    int F77_DUMMY_MAIN() { return 1; }
14066 #endif
14067 int
14068 main ()
14069 {
14070 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14071 test_array [0] = 0
14072
14073   ;
14074   return 0;
14075 }
14076 _ACEOF
14077 rm -f conftest.$ac_objext
14078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14079   (eval $ac_compile) 2>&5
14080   ac_status=$?
14081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082   (exit $ac_status); } &&
14083          { ac_try='test -s conftest.$ac_objext'
14084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085   (eval $ac_try) 2>&5
14086   ac_status=$?
14087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088   (exit $ac_status); }; }; then
14089   ac_hi=$ac_mid; break
14090 else
14091   echo "$as_me: failed program was:" >&5
14092 cat conftest.$ac_ext >&5
14093 ac_lo=`expr $ac_mid + 1`
14094                     if test $ac_lo -le $ac_mid; then
14095                       ac_lo= ac_hi=
14096                       break
14097                     fi
14098                     ac_mid=`expr 2 '*' $ac_mid + 1`
14099 fi
14100 rm -f conftest.$ac_objext conftest.$ac_ext
14101   done
14102 else
14103   echo "$as_me: failed program was:" >&5
14104 cat conftest.$ac_ext >&5
14105 cat >conftest.$ac_ext <<_ACEOF
14106 #line $LINENO "configure"
14107 #include "confdefs.h"
14108 $ac_includes_default
14109 struct { char filler; int field; } pgac_struct;
14110 #ifdef F77_DUMMY_MAIN
14111 #  ifdef __cplusplus
14112      extern "C"
14113 #  endif
14114    int F77_DUMMY_MAIN() { return 1; }
14115 #endif
14116 int
14117 main ()
14118 {
14119 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14120 test_array [0] = 0
14121
14122   ;
14123   return 0;
14124 }
14125 _ACEOF
14126 rm -f conftest.$ac_objext
14127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14128   (eval $ac_compile) 2>&5
14129   ac_status=$?
14130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131   (exit $ac_status); } &&
14132          { ac_try='test -s conftest.$ac_objext'
14133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134   (eval $ac_try) 2>&5
14135   ac_status=$?
14136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137   (exit $ac_status); }; }; then
14138   ac_hi=-1 ac_mid=-1
14139   while :; do
14140     cat >conftest.$ac_ext <<_ACEOF
14141 #line $LINENO "configure"
14142 #include "confdefs.h"
14143 $ac_includes_default
14144 struct { char filler; int field; } pgac_struct;
14145 #ifdef F77_DUMMY_MAIN
14146 #  ifdef __cplusplus
14147      extern "C"
14148 #  endif
14149    int F77_DUMMY_MAIN() { return 1; }
14150 #endif
14151 int
14152 main ()
14153 {
14154 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14155 test_array [0] = 0
14156
14157   ;
14158   return 0;
14159 }
14160 _ACEOF
14161 rm -f conftest.$ac_objext
14162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14163   (eval $ac_compile) 2>&5
14164   ac_status=$?
14165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166   (exit $ac_status); } &&
14167          { ac_try='test -s conftest.$ac_objext'
14168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14169   (eval $ac_try) 2>&5
14170   ac_status=$?
14171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172   (exit $ac_status); }; }; then
14173   ac_lo=$ac_mid; break
14174 else
14175   echo "$as_me: failed program was:" >&5
14176 cat conftest.$ac_ext >&5
14177 ac_hi=`expr '(' $ac_mid ')' - 1`
14178                        if test $ac_mid -le $ac_hi; then
14179                          ac_lo= ac_hi=
14180                          break
14181                        fi
14182                        ac_mid=`expr 2 '*' $ac_mid`
14183 fi
14184 rm -f conftest.$ac_objext conftest.$ac_ext
14185   done
14186 else
14187   echo "$as_me: failed program was:" >&5
14188 cat conftest.$ac_ext >&5
14189 ac_lo= ac_hi=
14190 fi
14191 rm -f conftest.$ac_objext conftest.$ac_ext
14192 fi
14193 rm -f conftest.$ac_objext conftest.$ac_ext
14194 # Binary search between lo and hi bounds.
14195 while test "x$ac_lo" != "x$ac_hi"; do
14196   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14197   cat >conftest.$ac_ext <<_ACEOF
14198 #line $LINENO "configure"
14199 #include "confdefs.h"
14200 $ac_includes_default
14201 struct { char filler; int field; } pgac_struct;
14202 #ifdef F77_DUMMY_MAIN
14203 #  ifdef __cplusplus
14204      extern "C"
14205 #  endif
14206    int F77_DUMMY_MAIN() { return 1; }
14207 #endif
14208 int
14209 main ()
14210 {
14211 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14212 test_array [0] = 0
14213
14214   ;
14215   return 0;
14216 }
14217 _ACEOF
14218 rm -f conftest.$ac_objext
14219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14220   (eval $ac_compile) 2>&5
14221   ac_status=$?
14222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223   (exit $ac_status); } &&
14224          { ac_try='test -s conftest.$ac_objext'
14225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14226   (eval $ac_try) 2>&5
14227   ac_status=$?
14228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229   (exit $ac_status); }; }; then
14230   ac_hi=$ac_mid
14231 else
14232   echo "$as_me: failed program was:" >&5
14233 cat conftest.$ac_ext >&5
14234 ac_lo=`expr '(' $ac_mid ')' + 1`
14235 fi
14236 rm -f conftest.$ac_objext conftest.$ac_ext
14237 done
14238 case $ac_lo in
14239 ?*) pgac_cv_alignof_int=$ac_lo;;
14240 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14241 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14242    { (exit 1); exit 1; }; } ;;
14243 esac
14244 else
14245   if test "$cross_compiling" = yes; then
14246   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14247 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14248    { (exit 1); exit 1; }; }
14249 else
14250   cat >conftest.$ac_ext <<_ACEOF
14251 #line $LINENO "configure"
14252 #include "confdefs.h"
14253 $ac_includes_default
14254 struct { char filler; int field; } pgac_struct;
14255 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14256 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14257 #include <stdio.h>
14258 #include <stdlib.h>
14259 #ifdef F77_DUMMY_MAIN
14260 #  ifdef __cplusplus
14261      extern "C"
14262 #  endif
14263    int F77_DUMMY_MAIN() { return 1; }
14264 #endif
14265 int
14266 main ()
14267 {
14268
14269   FILE *f = fopen ("conftest.val", "w");
14270   if (! f)
14271     exit (1);
14272   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14273     {
14274       long i = longval ();
14275       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14276         exit (1);
14277       fprintf (f, "%ld\n", i);
14278     }
14279   else
14280     {
14281       unsigned long i = ulongval ();
14282       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14283         exit (1);
14284       fprintf (f, "%lu\n", i);
14285     }
14286   exit (ferror (f) || fclose (f) != 0);
14287
14288   ;
14289   return 0;
14290 }
14291 _ACEOF
14292 rm -f conftest$ac_exeext
14293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14294   (eval $ac_link) 2>&5
14295   ac_status=$?
14296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14299   (eval $ac_try) 2>&5
14300   ac_status=$?
14301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302   (exit $ac_status); }; }; then
14303   pgac_cv_alignof_int=`cat conftest.val`
14304 else
14305   echo "$as_me: program exited with status $ac_status" >&5
14306 echo "$as_me: failed program was:" >&5
14307 cat conftest.$ac_ext >&5
14308 ( exit $ac_status )
14309 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14310 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14311    { (exit 1); exit 1; }; }
14312 fi
14313 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14314 fi
14315 fi
14316 rm -f conftest.val
14317 else
14318   pgac_cv_alignof_int=0
14319 fi
14320 fi
14321 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14322 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14323 cat >>confdefs.h <<_ACEOF
14324 #define ALIGNOF_INT $pgac_cv_alignof_int
14325 _ACEOF
14326
14327
14328 echo "$as_me:$LINENO: checking for long" >&5
14329 echo $ECHO_N "checking for long... $ECHO_C" >&6
14330 if test "${ac_cv_type_long+set}" = set; then
14331   echo $ECHO_N "(cached) $ECHO_C" >&6
14332 else
14333   cat >conftest.$ac_ext <<_ACEOF
14334 #line $LINENO "configure"
14335 #include "confdefs.h"
14336 $ac_includes_default
14337 #ifdef F77_DUMMY_MAIN
14338 #  ifdef __cplusplus
14339      extern "C"
14340 #  endif
14341    int F77_DUMMY_MAIN() { return 1; }
14342 #endif
14343 int
14344 main ()
14345 {
14346 if ((long *) 0)
14347   return 0;
14348 if (sizeof (long))
14349   return 0;
14350   ;
14351   return 0;
14352 }
14353 _ACEOF
14354 rm -f conftest.$ac_objext
14355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14356   (eval $ac_compile) 2>&5
14357   ac_status=$?
14358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359   (exit $ac_status); } &&
14360          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14366   ac_cv_type_long=yes
14367 else
14368   echo "$as_me: failed program was:" >&5
14369 cat conftest.$ac_ext >&5
14370 ac_cv_type_long=no
14371 fi
14372 rm -f conftest.$ac_objext conftest.$ac_ext
14373 fi
14374 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14375 echo "${ECHO_T}$ac_cv_type_long" >&6
14376
14377 echo "$as_me:$LINENO: checking alignment of long" >&5
14378 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14379 if test "${pgac_cv_alignof_long+set}" = set; then
14380   echo $ECHO_N "(cached) $ECHO_C" >&6
14381 else
14382   if test "$ac_cv_type_long" = yes; then
14383   if test "$cross_compiling" = yes; then
14384   # Depending upon the size, compute the lo and hi bounds.
14385 cat >conftest.$ac_ext <<_ACEOF
14386 #line $LINENO "configure"
14387 #include "confdefs.h"
14388 $ac_includes_default
14389 struct { char filler; long field; } pgac_struct;
14390 #ifdef F77_DUMMY_MAIN
14391 #  ifdef __cplusplus
14392      extern "C"
14393 #  endif
14394    int F77_DUMMY_MAIN() { return 1; }
14395 #endif
14396 int
14397 main ()
14398 {
14399 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14400 test_array [0] = 0
14401
14402   ;
14403   return 0;
14404 }
14405 _ACEOF
14406 rm -f conftest.$ac_objext
14407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14408   (eval $ac_compile) 2>&5
14409   ac_status=$?
14410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411   (exit $ac_status); } &&
14412          { ac_try='test -s conftest.$ac_objext'
14413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414   (eval $ac_try) 2>&5
14415   ac_status=$?
14416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417   (exit $ac_status); }; }; then
14418   ac_lo=0 ac_mid=0
14419   while :; do
14420     cat >conftest.$ac_ext <<_ACEOF
14421 #line $LINENO "configure"
14422 #include "confdefs.h"
14423 $ac_includes_default
14424 struct { char filler; long field; } pgac_struct;
14425 #ifdef F77_DUMMY_MAIN
14426 #  ifdef __cplusplus
14427      extern "C"
14428 #  endif
14429    int F77_DUMMY_MAIN() { return 1; }
14430 #endif
14431 int
14432 main ()
14433 {
14434 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14435 test_array [0] = 0
14436
14437   ;
14438   return 0;
14439 }
14440 _ACEOF
14441 rm -f conftest.$ac_objext
14442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14443   (eval $ac_compile) 2>&5
14444   ac_status=$?
14445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446   (exit $ac_status); } &&
14447          { ac_try='test -s conftest.$ac_objext'
14448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14449   (eval $ac_try) 2>&5
14450   ac_status=$?
14451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452   (exit $ac_status); }; }; then
14453   ac_hi=$ac_mid; break
14454 else
14455   echo "$as_me: failed program was:" >&5
14456 cat conftest.$ac_ext >&5
14457 ac_lo=`expr $ac_mid + 1`
14458                     if test $ac_lo -le $ac_mid; then
14459                       ac_lo= ac_hi=
14460                       break
14461                     fi
14462                     ac_mid=`expr 2 '*' $ac_mid + 1`
14463 fi
14464 rm -f conftest.$ac_objext conftest.$ac_ext
14465   done
14466 else
14467   echo "$as_me: failed program was:" >&5
14468 cat conftest.$ac_ext >&5
14469 cat >conftest.$ac_ext <<_ACEOF
14470 #line $LINENO "configure"
14471 #include "confdefs.h"
14472 $ac_includes_default
14473 struct { char filler; long field; } pgac_struct;
14474 #ifdef F77_DUMMY_MAIN
14475 #  ifdef __cplusplus
14476      extern "C"
14477 #  endif
14478    int F77_DUMMY_MAIN() { return 1; }
14479 #endif
14480 int
14481 main ()
14482 {
14483 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14484 test_array [0] = 0
14485
14486   ;
14487   return 0;
14488 }
14489 _ACEOF
14490 rm -f conftest.$ac_objext
14491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14492   (eval $ac_compile) 2>&5
14493   ac_status=$?
14494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495   (exit $ac_status); } &&
14496          { ac_try='test -s conftest.$ac_objext'
14497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498   (eval $ac_try) 2>&5
14499   ac_status=$?
14500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501   (exit $ac_status); }; }; then
14502   ac_hi=-1 ac_mid=-1
14503   while :; do
14504     cat >conftest.$ac_ext <<_ACEOF
14505 #line $LINENO "configure"
14506 #include "confdefs.h"
14507 $ac_includes_default
14508 struct { char filler; long field; } pgac_struct;
14509 #ifdef F77_DUMMY_MAIN
14510 #  ifdef __cplusplus
14511      extern "C"
14512 #  endif
14513    int F77_DUMMY_MAIN() { return 1; }
14514 #endif
14515 int
14516 main ()
14517 {
14518 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14519 test_array [0] = 0
14520
14521   ;
14522   return 0;
14523 }
14524 _ACEOF
14525 rm -f conftest.$ac_objext
14526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14527   (eval $ac_compile) 2>&5
14528   ac_status=$?
14529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530   (exit $ac_status); } &&
14531          { ac_try='test -s conftest.$ac_objext'
14532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533   (eval $ac_try) 2>&5
14534   ac_status=$?
14535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536   (exit $ac_status); }; }; then
14537   ac_lo=$ac_mid; break
14538 else
14539   echo "$as_me: failed program was:" >&5
14540 cat conftest.$ac_ext >&5
14541 ac_hi=`expr '(' $ac_mid ')' - 1`
14542                        if test $ac_mid -le $ac_hi; then
14543                          ac_lo= ac_hi=
14544                          break
14545                        fi
14546                        ac_mid=`expr 2 '*' $ac_mid`
14547 fi
14548 rm -f conftest.$ac_objext conftest.$ac_ext
14549   done
14550 else
14551   echo "$as_me: failed program was:" >&5
14552 cat conftest.$ac_ext >&5
14553 ac_lo= ac_hi=
14554 fi
14555 rm -f conftest.$ac_objext conftest.$ac_ext
14556 fi
14557 rm -f conftest.$ac_objext conftest.$ac_ext
14558 # Binary search between lo and hi bounds.
14559 while test "x$ac_lo" != "x$ac_hi"; do
14560   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14561   cat >conftest.$ac_ext <<_ACEOF
14562 #line $LINENO "configure"
14563 #include "confdefs.h"
14564 $ac_includes_default
14565 struct { char filler; long field; } pgac_struct;
14566 #ifdef F77_DUMMY_MAIN
14567 #  ifdef __cplusplus
14568      extern "C"
14569 #  endif
14570    int F77_DUMMY_MAIN() { return 1; }
14571 #endif
14572 int
14573 main ()
14574 {
14575 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14576 test_array [0] = 0
14577
14578   ;
14579   return 0;
14580 }
14581 _ACEOF
14582 rm -f conftest.$ac_objext
14583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14584   (eval $ac_compile) 2>&5
14585   ac_status=$?
14586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587   (exit $ac_status); } &&
14588          { ac_try='test -s conftest.$ac_objext'
14589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590   (eval $ac_try) 2>&5
14591   ac_status=$?
14592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593   (exit $ac_status); }; }; then
14594   ac_hi=$ac_mid
14595 else
14596   echo "$as_me: failed program was:" >&5
14597 cat conftest.$ac_ext >&5
14598 ac_lo=`expr '(' $ac_mid ')' + 1`
14599 fi
14600 rm -f conftest.$ac_objext conftest.$ac_ext
14601 done
14602 case $ac_lo in
14603 ?*) pgac_cv_alignof_long=$ac_lo;;
14604 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14605 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14606    { (exit 1); exit 1; }; } ;;
14607 esac
14608 else
14609   if test "$cross_compiling" = yes; then
14610   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14611 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14612    { (exit 1); exit 1; }; }
14613 else
14614   cat >conftest.$ac_ext <<_ACEOF
14615 #line $LINENO "configure"
14616 #include "confdefs.h"
14617 $ac_includes_default
14618 struct { char filler; long field; } pgac_struct;
14619 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14620 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14621 #include <stdio.h>
14622 #include <stdlib.h>
14623 #ifdef F77_DUMMY_MAIN
14624 #  ifdef __cplusplus
14625      extern "C"
14626 #  endif
14627    int F77_DUMMY_MAIN() { return 1; }
14628 #endif
14629 int
14630 main ()
14631 {
14632
14633   FILE *f = fopen ("conftest.val", "w");
14634   if (! f)
14635     exit (1);
14636   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14637     {
14638       long i = longval ();
14639       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14640         exit (1);
14641       fprintf (f, "%ld\n", i);
14642     }
14643   else
14644     {
14645       unsigned long i = ulongval ();
14646       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14647         exit (1);
14648       fprintf (f, "%lu\n", i);
14649     }
14650   exit (ferror (f) || fclose (f) != 0);
14651
14652   ;
14653   return 0;
14654 }
14655 _ACEOF
14656 rm -f conftest$ac_exeext
14657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14658   (eval $ac_link) 2>&5
14659   ac_status=$?
14660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14663   (eval $ac_try) 2>&5
14664   ac_status=$?
14665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666   (exit $ac_status); }; }; then
14667   pgac_cv_alignof_long=`cat conftest.val`
14668 else
14669   echo "$as_me: program exited with status $ac_status" >&5
14670 echo "$as_me: failed program was:" >&5
14671 cat conftest.$ac_ext >&5
14672 ( exit $ac_status )
14673 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14674 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14675    { (exit 1); exit 1; }; }
14676 fi
14677 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14678 fi
14679 fi
14680 rm -f conftest.val
14681 else
14682   pgac_cv_alignof_long=0
14683 fi
14684 fi
14685 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14686 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14687 cat >>confdefs.h <<_ACEOF
14688 #define ALIGNOF_LONG $pgac_cv_alignof_long
14689 _ACEOF
14690
14691
14692 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14693   echo "$as_me:$LINENO: checking for long long int" >&5
14694 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14695 if test "${ac_cv_type_long_long_int+set}" = set; then
14696   echo $ECHO_N "(cached) $ECHO_C" >&6
14697 else
14698   cat >conftest.$ac_ext <<_ACEOF
14699 #line $LINENO "configure"
14700 #include "confdefs.h"
14701 $ac_includes_default
14702 #ifdef F77_DUMMY_MAIN
14703 #  ifdef __cplusplus
14704      extern "C"
14705 #  endif
14706    int F77_DUMMY_MAIN() { return 1; }
14707 #endif
14708 int
14709 main ()
14710 {
14711 if ((long long int *) 0)
14712   return 0;
14713 if (sizeof (long long int))
14714   return 0;
14715   ;
14716   return 0;
14717 }
14718 _ACEOF
14719 rm -f conftest.$ac_objext
14720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14721   (eval $ac_compile) 2>&5
14722   ac_status=$?
14723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724   (exit $ac_status); } &&
14725          { ac_try='test -s conftest.$ac_objext'
14726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14727   (eval $ac_try) 2>&5
14728   ac_status=$?
14729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730   (exit $ac_status); }; }; then
14731   ac_cv_type_long_long_int=yes
14732 else
14733   echo "$as_me: failed program was:" >&5
14734 cat conftest.$ac_ext >&5
14735 ac_cv_type_long_long_int=no
14736 fi
14737 rm -f conftest.$ac_objext conftest.$ac_ext
14738 fi
14739 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14740 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14741
14742 echo "$as_me:$LINENO: checking alignment of long long int" >&5
14743 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14744 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14745   echo $ECHO_N "(cached) $ECHO_C" >&6
14746 else
14747   if test "$ac_cv_type_long_long_int" = yes; then
14748   if test "$cross_compiling" = yes; then
14749   # Depending upon the size, compute the lo and hi bounds.
14750 cat >conftest.$ac_ext <<_ACEOF
14751 #line $LINENO "configure"
14752 #include "confdefs.h"
14753 $ac_includes_default
14754 struct { char filler; long long int field; } pgac_struct;
14755 #ifdef F77_DUMMY_MAIN
14756 #  ifdef __cplusplus
14757      extern "C"
14758 #  endif
14759    int F77_DUMMY_MAIN() { return 1; }
14760 #endif
14761 int
14762 main ()
14763 {
14764 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14765 test_array [0] = 0
14766
14767   ;
14768   return 0;
14769 }
14770 _ACEOF
14771 rm -f conftest.$ac_objext
14772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14773   (eval $ac_compile) 2>&5
14774   ac_status=$?
14775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776   (exit $ac_status); } &&
14777          { ac_try='test -s conftest.$ac_objext'
14778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14779   (eval $ac_try) 2>&5
14780   ac_status=$?
14781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782   (exit $ac_status); }; }; then
14783   ac_lo=0 ac_mid=0
14784   while :; do
14785     cat >conftest.$ac_ext <<_ACEOF
14786 #line $LINENO "configure"
14787 #include "confdefs.h"
14788 $ac_includes_default
14789 struct { char filler; long long int field; } pgac_struct;
14790 #ifdef F77_DUMMY_MAIN
14791 #  ifdef __cplusplus
14792      extern "C"
14793 #  endif
14794    int F77_DUMMY_MAIN() { return 1; }
14795 #endif
14796 int
14797 main ()
14798 {
14799 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14800 test_array [0] = 0
14801
14802   ;
14803   return 0;
14804 }
14805 _ACEOF
14806 rm -f conftest.$ac_objext
14807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14808   (eval $ac_compile) 2>&5
14809   ac_status=$?
14810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811   (exit $ac_status); } &&
14812          { ac_try='test -s conftest.$ac_objext'
14813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14814   (eval $ac_try) 2>&5
14815   ac_status=$?
14816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817   (exit $ac_status); }; }; then
14818   ac_hi=$ac_mid; break
14819 else
14820   echo "$as_me: failed program was:" >&5
14821 cat conftest.$ac_ext >&5
14822 ac_lo=`expr $ac_mid + 1`
14823                     if test $ac_lo -le $ac_mid; then
14824                       ac_lo= ac_hi=
14825                       break
14826                     fi
14827                     ac_mid=`expr 2 '*' $ac_mid + 1`
14828 fi
14829 rm -f conftest.$ac_objext conftest.$ac_ext
14830   done
14831 else
14832   echo "$as_me: failed program was:" >&5
14833 cat conftest.$ac_ext >&5
14834 cat >conftest.$ac_ext <<_ACEOF
14835 #line $LINENO "configure"
14836 #include "confdefs.h"
14837 $ac_includes_default
14838 struct { char filler; long long int field; } pgac_struct;
14839 #ifdef F77_DUMMY_MAIN
14840 #  ifdef __cplusplus
14841      extern "C"
14842 #  endif
14843    int F77_DUMMY_MAIN() { return 1; }
14844 #endif
14845 int
14846 main ()
14847 {
14848 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14849 test_array [0] = 0
14850
14851   ;
14852   return 0;
14853 }
14854 _ACEOF
14855 rm -f conftest.$ac_objext
14856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14857   (eval $ac_compile) 2>&5
14858   ac_status=$?
14859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860   (exit $ac_status); } &&
14861          { ac_try='test -s conftest.$ac_objext'
14862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14863   (eval $ac_try) 2>&5
14864   ac_status=$?
14865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866   (exit $ac_status); }; }; then
14867   ac_hi=-1 ac_mid=-1
14868   while :; do
14869     cat >conftest.$ac_ext <<_ACEOF
14870 #line $LINENO "configure"
14871 #include "confdefs.h"
14872 $ac_includes_default
14873 struct { char filler; long long int field; } pgac_struct;
14874 #ifdef F77_DUMMY_MAIN
14875 #  ifdef __cplusplus
14876      extern "C"
14877 #  endif
14878    int F77_DUMMY_MAIN() { return 1; }
14879 #endif
14880 int
14881 main ()
14882 {
14883 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14884 test_array [0] = 0
14885
14886   ;
14887   return 0;
14888 }
14889 _ACEOF
14890 rm -f conftest.$ac_objext
14891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14892   (eval $ac_compile) 2>&5
14893   ac_status=$?
14894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895   (exit $ac_status); } &&
14896          { ac_try='test -s conftest.$ac_objext'
14897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898   (eval $ac_try) 2>&5
14899   ac_status=$?
14900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901   (exit $ac_status); }; }; then
14902   ac_lo=$ac_mid; break
14903 else
14904   echo "$as_me: failed program was:" >&5
14905 cat conftest.$ac_ext >&5
14906 ac_hi=`expr '(' $ac_mid ')' - 1`
14907                        if test $ac_mid -le $ac_hi; then
14908                          ac_lo= ac_hi=
14909                          break
14910                        fi
14911                        ac_mid=`expr 2 '*' $ac_mid`
14912 fi
14913 rm -f conftest.$ac_objext conftest.$ac_ext
14914   done
14915 else
14916   echo "$as_me: failed program was:" >&5
14917 cat conftest.$ac_ext >&5
14918 ac_lo= ac_hi=
14919 fi
14920 rm -f conftest.$ac_objext conftest.$ac_ext
14921 fi
14922 rm -f conftest.$ac_objext conftest.$ac_ext
14923 # Binary search between lo and hi bounds.
14924 while test "x$ac_lo" != "x$ac_hi"; do
14925   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14926   cat >conftest.$ac_ext <<_ACEOF
14927 #line $LINENO "configure"
14928 #include "confdefs.h"
14929 $ac_includes_default
14930 struct { char filler; long long int field; } pgac_struct;
14931 #ifdef F77_DUMMY_MAIN
14932 #  ifdef __cplusplus
14933      extern "C"
14934 #  endif
14935    int F77_DUMMY_MAIN() { return 1; }
14936 #endif
14937 int
14938 main ()
14939 {
14940 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14941 test_array [0] = 0
14942
14943   ;
14944   return 0;
14945 }
14946 _ACEOF
14947 rm -f conftest.$ac_objext
14948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14949   (eval $ac_compile) 2>&5
14950   ac_status=$?
14951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952   (exit $ac_status); } &&
14953          { ac_try='test -s conftest.$ac_objext'
14954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14955   (eval $ac_try) 2>&5
14956   ac_status=$?
14957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958   (exit $ac_status); }; }; then
14959   ac_hi=$ac_mid
14960 else
14961   echo "$as_me: failed program was:" >&5
14962 cat conftest.$ac_ext >&5
14963 ac_lo=`expr '(' $ac_mid ')' + 1`
14964 fi
14965 rm -f conftest.$ac_objext conftest.$ac_ext
14966 done
14967 case $ac_lo in
14968 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
14969 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14970 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14971    { (exit 1); exit 1; }; } ;;
14972 esac
14973 else
14974   if test "$cross_compiling" = yes; then
14975   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14976 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14977    { (exit 1); exit 1; }; }
14978 else
14979   cat >conftest.$ac_ext <<_ACEOF
14980 #line $LINENO "configure"
14981 #include "confdefs.h"
14982 $ac_includes_default
14983 struct { char filler; long long int field; } pgac_struct;
14984 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14985 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14986 #include <stdio.h>
14987 #include <stdlib.h>
14988 #ifdef F77_DUMMY_MAIN
14989 #  ifdef __cplusplus
14990      extern "C"
14991 #  endif
14992    int F77_DUMMY_MAIN() { return 1; }
14993 #endif
14994 int
14995 main ()
14996 {
14997
14998   FILE *f = fopen ("conftest.val", "w");
14999   if (! f)
15000     exit (1);
15001   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15002     {
15003       long i = longval ();
15004       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15005         exit (1);
15006       fprintf (f, "%ld\n", i);
15007     }
15008   else
15009     {
15010       unsigned long i = ulongval ();
15011       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15012         exit (1);
15013       fprintf (f, "%lu\n", i);
15014     }
15015   exit (ferror (f) || fclose (f) != 0);
15016
15017   ;
15018   return 0;
15019 }
15020 _ACEOF
15021 rm -f conftest$ac_exeext
15022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15023   (eval $ac_link) 2>&5
15024   ac_status=$?
15025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028   (eval $ac_try) 2>&5
15029   ac_status=$?
15030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031   (exit $ac_status); }; }; then
15032   pgac_cv_alignof_long_long_int=`cat conftest.val`
15033 else
15034   echo "$as_me: program exited with status $ac_status" >&5
15035 echo "$as_me: failed program was:" >&5
15036 cat conftest.$ac_ext >&5
15037 ( exit $ac_status )
15038 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15039 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15040    { (exit 1); exit 1; }; }
15041 fi
15042 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15043 fi
15044 fi
15045 rm -f conftest.val
15046 else
15047   pgac_cv_alignof_long_long_int=0
15048 fi
15049 fi
15050 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
15051 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
15052 cat >>confdefs.h <<_ACEOF
15053 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
15054 _ACEOF
15055
15056
15057 fi
15058 echo "$as_me:$LINENO: checking for double" >&5
15059 echo $ECHO_N "checking for double... $ECHO_C" >&6
15060 if test "${ac_cv_type_double+set}" = set; then
15061   echo $ECHO_N "(cached) $ECHO_C" >&6
15062 else
15063   cat >conftest.$ac_ext <<_ACEOF
15064 #line $LINENO "configure"
15065 #include "confdefs.h"
15066 $ac_includes_default
15067 #ifdef F77_DUMMY_MAIN
15068 #  ifdef __cplusplus
15069      extern "C"
15070 #  endif
15071    int F77_DUMMY_MAIN() { return 1; }
15072 #endif
15073 int
15074 main ()
15075 {
15076 if ((double *) 0)
15077   return 0;
15078 if (sizeof (double))
15079   return 0;
15080   ;
15081   return 0;
15082 }
15083 _ACEOF
15084 rm -f conftest.$ac_objext
15085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15086   (eval $ac_compile) 2>&5
15087   ac_status=$?
15088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089   (exit $ac_status); } &&
15090          { ac_try='test -s conftest.$ac_objext'
15091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092   (eval $ac_try) 2>&5
15093   ac_status=$?
15094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095   (exit $ac_status); }; }; then
15096   ac_cv_type_double=yes
15097 else
15098   echo "$as_me: failed program was:" >&5
15099 cat conftest.$ac_ext >&5
15100 ac_cv_type_double=no
15101 fi
15102 rm -f conftest.$ac_objext conftest.$ac_ext
15103 fi
15104 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15105 echo "${ECHO_T}$ac_cv_type_double" >&6
15106
15107 echo "$as_me:$LINENO: checking alignment of double" >&5
15108 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15109 if test "${pgac_cv_alignof_double+set}" = set; then
15110   echo $ECHO_N "(cached) $ECHO_C" >&6
15111 else
15112   if test "$ac_cv_type_double" = yes; then
15113   if test "$cross_compiling" = yes; then
15114   # Depending upon the size, compute the lo and hi bounds.
15115 cat >conftest.$ac_ext <<_ACEOF
15116 #line $LINENO "configure"
15117 #include "confdefs.h"
15118 $ac_includes_default
15119 struct { char filler; double field; } pgac_struct;
15120 #ifdef F77_DUMMY_MAIN
15121 #  ifdef __cplusplus
15122      extern "C"
15123 #  endif
15124    int F77_DUMMY_MAIN() { return 1; }
15125 #endif
15126 int
15127 main ()
15128 {
15129 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15130 test_array [0] = 0
15131
15132   ;
15133   return 0;
15134 }
15135 _ACEOF
15136 rm -f conftest.$ac_objext
15137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15138   (eval $ac_compile) 2>&5
15139   ac_status=$?
15140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141   (exit $ac_status); } &&
15142          { ac_try='test -s conftest.$ac_objext'
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   ac_lo=0 ac_mid=0
15149   while :; do
15150     cat >conftest.$ac_ext <<_ACEOF
15151 #line $LINENO "configure"
15152 #include "confdefs.h"
15153 $ac_includes_default
15154 struct { char filler; double field; } pgac_struct;
15155 #ifdef F77_DUMMY_MAIN
15156 #  ifdef __cplusplus
15157      extern "C"
15158 #  endif
15159    int F77_DUMMY_MAIN() { return 1; }
15160 #endif
15161 int
15162 main ()
15163 {
15164 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15165 test_array [0] = 0
15166
15167   ;
15168   return 0;
15169 }
15170 _ACEOF
15171 rm -f conftest.$ac_objext
15172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15173   (eval $ac_compile) 2>&5
15174   ac_status=$?
15175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176   (exit $ac_status); } &&
15177          { ac_try='test -s conftest.$ac_objext'
15178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179   (eval $ac_try) 2>&5
15180   ac_status=$?
15181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182   (exit $ac_status); }; }; then
15183   ac_hi=$ac_mid; break
15184 else
15185   echo "$as_me: failed program was:" >&5
15186 cat conftest.$ac_ext >&5
15187 ac_lo=`expr $ac_mid + 1`
15188                     if test $ac_lo -le $ac_mid; then
15189                       ac_lo= ac_hi=
15190                       break
15191                     fi
15192                     ac_mid=`expr 2 '*' $ac_mid + 1`
15193 fi
15194 rm -f conftest.$ac_objext conftest.$ac_ext
15195   done
15196 else
15197   echo "$as_me: failed program was:" >&5
15198 cat conftest.$ac_ext >&5
15199 cat >conftest.$ac_ext <<_ACEOF
15200 #line $LINENO "configure"
15201 #include "confdefs.h"
15202 $ac_includes_default
15203 struct { char filler; double field; } pgac_struct;
15204 #ifdef F77_DUMMY_MAIN
15205 #  ifdef __cplusplus
15206      extern "C"
15207 #  endif
15208    int F77_DUMMY_MAIN() { return 1; }
15209 #endif
15210 int
15211 main ()
15212 {
15213 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15214 test_array [0] = 0
15215
15216   ;
15217   return 0;
15218 }
15219 _ACEOF
15220 rm -f conftest.$ac_objext
15221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15222   (eval $ac_compile) 2>&5
15223   ac_status=$?
15224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225   (exit $ac_status); } &&
15226          { ac_try='test -s conftest.$ac_objext'
15227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15228   (eval $ac_try) 2>&5
15229   ac_status=$?
15230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231   (exit $ac_status); }; }; then
15232   ac_hi=-1 ac_mid=-1
15233   while :; do
15234     cat >conftest.$ac_ext <<_ACEOF
15235 #line $LINENO "configure"
15236 #include "confdefs.h"
15237 $ac_includes_default
15238 struct { char filler; double field; } pgac_struct;
15239 #ifdef F77_DUMMY_MAIN
15240 #  ifdef __cplusplus
15241      extern "C"
15242 #  endif
15243    int F77_DUMMY_MAIN() { return 1; }
15244 #endif
15245 int
15246 main ()
15247 {
15248 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15249 test_array [0] = 0
15250
15251   ;
15252   return 0;
15253 }
15254 _ACEOF
15255 rm -f conftest.$ac_objext
15256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15257   (eval $ac_compile) 2>&5
15258   ac_status=$?
15259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260   (exit $ac_status); } &&
15261          { ac_try='test -s conftest.$ac_objext'
15262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15263   (eval $ac_try) 2>&5
15264   ac_status=$?
15265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266   (exit $ac_status); }; }; then
15267   ac_lo=$ac_mid; break
15268 else
15269   echo "$as_me: failed program was:" >&5
15270 cat conftest.$ac_ext >&5
15271 ac_hi=`expr '(' $ac_mid ')' - 1`
15272                        if test $ac_mid -le $ac_hi; then
15273                          ac_lo= ac_hi=
15274                          break
15275                        fi
15276                        ac_mid=`expr 2 '*' $ac_mid`
15277 fi
15278 rm -f conftest.$ac_objext conftest.$ac_ext
15279   done
15280 else
15281   echo "$as_me: failed program was:" >&5
15282 cat conftest.$ac_ext >&5
15283 ac_lo= ac_hi=
15284 fi
15285 rm -f conftest.$ac_objext conftest.$ac_ext
15286 fi
15287 rm -f conftest.$ac_objext conftest.$ac_ext
15288 # Binary search between lo and hi bounds.
15289 while test "x$ac_lo" != "x$ac_hi"; do
15290   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15291   cat >conftest.$ac_ext <<_ACEOF
15292 #line $LINENO "configure"
15293 #include "confdefs.h"
15294 $ac_includes_default
15295 struct { char filler; double field; } pgac_struct;
15296 #ifdef F77_DUMMY_MAIN
15297 #  ifdef __cplusplus
15298      extern "C"
15299 #  endif
15300    int F77_DUMMY_MAIN() { return 1; }
15301 #endif
15302 int
15303 main ()
15304 {
15305 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15306 test_array [0] = 0
15307
15308   ;
15309   return 0;
15310 }
15311 _ACEOF
15312 rm -f conftest.$ac_objext
15313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15314   (eval $ac_compile) 2>&5
15315   ac_status=$?
15316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317   (exit $ac_status); } &&
15318          { ac_try='test -s conftest.$ac_objext'
15319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320   (eval $ac_try) 2>&5
15321   ac_status=$?
15322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323   (exit $ac_status); }; }; then
15324   ac_hi=$ac_mid
15325 else
15326   echo "$as_me: failed program was:" >&5
15327 cat conftest.$ac_ext >&5
15328 ac_lo=`expr '(' $ac_mid ')' + 1`
15329 fi
15330 rm -f conftest.$ac_objext conftest.$ac_ext
15331 done
15332 case $ac_lo in
15333 ?*) pgac_cv_alignof_double=$ac_lo;;
15334 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15335 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15336    { (exit 1); exit 1; }; } ;;
15337 esac
15338 else
15339   if test "$cross_compiling" = yes; then
15340   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15341 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15342    { (exit 1); exit 1; }; }
15343 else
15344   cat >conftest.$ac_ext <<_ACEOF
15345 #line $LINENO "configure"
15346 #include "confdefs.h"
15347 $ac_includes_default
15348 struct { char filler; double field; } pgac_struct;
15349 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15350 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15351 #include <stdio.h>
15352 #include <stdlib.h>
15353 #ifdef F77_DUMMY_MAIN
15354 #  ifdef __cplusplus
15355      extern "C"
15356 #  endif
15357    int F77_DUMMY_MAIN() { return 1; }
15358 #endif
15359 int
15360 main ()
15361 {
15362
15363   FILE *f = fopen ("conftest.val", "w");
15364   if (! f)
15365     exit (1);
15366   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15367     {
15368       long i = longval ();
15369       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15370         exit (1);
15371       fprintf (f, "%ld\n", i);
15372     }
15373   else
15374     {
15375       unsigned long i = ulongval ();
15376       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15377         exit (1);
15378       fprintf (f, "%lu\n", i);
15379     }
15380   exit (ferror (f) || fclose (f) != 0);
15381
15382   ;
15383   return 0;
15384 }
15385 _ACEOF
15386 rm -f conftest$ac_exeext
15387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15388   (eval $ac_link) 2>&5
15389   ac_status=$?
15390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393   (eval $ac_try) 2>&5
15394   ac_status=$?
15395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396   (exit $ac_status); }; }; then
15397   pgac_cv_alignof_double=`cat conftest.val`
15398 else
15399   echo "$as_me: program exited with status $ac_status" >&5
15400 echo "$as_me: failed program was:" >&5
15401 cat conftest.$ac_ext >&5
15402 ( exit $ac_status )
15403 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15404 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15405    { (exit 1); exit 1; }; }
15406 fi
15407 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15408 fi
15409 fi
15410 rm -f conftest.val
15411 else
15412   pgac_cv_alignof_double=0
15413 fi
15414 fi
15415 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
15416 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
15417 cat >>confdefs.h <<_ACEOF
15418 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
15419 _ACEOF
15420
15421
15422
15423 # Compute maximum alignment of any basic type.
15424 # We assume long's alignment is at least as strong as char, short, or int;
15425 # but we must check long long (if it exists) and double.
15426
15427 MAX_ALIGNOF=$pgac_cv_alignof_long
15428 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
15429   MAX_ALIGNOF=$pgac_cv_alignof_double
15430 fi
15431 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
15432   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
15433 fi
15434
15435 cat >>confdefs.h <<_ACEOF
15436 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
15437 _ACEOF
15438
15439
15440
15441 # Some platforms predefine the types int8, int16, etc.  Only check
15442 # a (hopefully) representative subset.
15443 echo "$as_me:$LINENO: checking for int8" >&5
15444 echo $ECHO_N "checking for int8... $ECHO_C" >&6
15445 if test "${ac_cv_type_int8+set}" = set; then
15446   echo $ECHO_N "(cached) $ECHO_C" >&6
15447 else
15448   cat >conftest.$ac_ext <<_ACEOF
15449 #line $LINENO "configure"
15450 #include "confdefs.h"
15451 #include <stdio.h>
15452 #ifdef HAVE_SUPPORTDEFS_H
15453 #include <SupportDefs.h>
15454 #endif
15455
15456 #ifdef F77_DUMMY_MAIN
15457 #  ifdef __cplusplus
15458      extern "C"
15459 #  endif
15460    int F77_DUMMY_MAIN() { return 1; }
15461 #endif
15462 int
15463 main ()
15464 {
15465 if ((int8 *) 0)
15466   return 0;
15467 if (sizeof (int8))
15468   return 0;
15469   ;
15470   return 0;
15471 }
15472 _ACEOF
15473 rm -f conftest.$ac_objext
15474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15475   (eval $ac_compile) 2>&5
15476   ac_status=$?
15477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478   (exit $ac_status); } &&
15479          { ac_try='test -s conftest.$ac_objext'
15480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15481   (eval $ac_try) 2>&5
15482   ac_status=$?
15483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484   (exit $ac_status); }; }; then
15485   ac_cv_type_int8=yes
15486 else
15487   echo "$as_me: failed program was:" >&5
15488 cat conftest.$ac_ext >&5
15489 ac_cv_type_int8=no
15490 fi
15491 rm -f conftest.$ac_objext conftest.$ac_ext
15492 fi
15493 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
15494 echo "${ECHO_T}$ac_cv_type_int8" >&6
15495 if test $ac_cv_type_int8 = yes; then
15496
15497 cat >>confdefs.h <<_ACEOF
15498 #define HAVE_INT8 1
15499 _ACEOF
15500
15501
15502 fi
15503 echo "$as_me:$LINENO: checking for uint8" >&5
15504 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
15505 if test "${ac_cv_type_uint8+set}" = set; then
15506   echo $ECHO_N "(cached) $ECHO_C" >&6
15507 else
15508   cat >conftest.$ac_ext <<_ACEOF
15509 #line $LINENO "configure"
15510 #include "confdefs.h"
15511 #include <stdio.h>
15512 #ifdef HAVE_SUPPORTDEFS_H
15513 #include <SupportDefs.h>
15514 #endif
15515
15516 #ifdef F77_DUMMY_MAIN
15517 #  ifdef __cplusplus
15518      extern "C"
15519 #  endif
15520    int F77_DUMMY_MAIN() { return 1; }
15521 #endif
15522 int
15523 main ()
15524 {
15525 if ((uint8 *) 0)
15526   return 0;
15527 if (sizeof (uint8))
15528   return 0;
15529   ;
15530   return 0;
15531 }
15532 _ACEOF
15533 rm -f conftest.$ac_objext
15534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15535   (eval $ac_compile) 2>&5
15536   ac_status=$?
15537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538   (exit $ac_status); } &&
15539          { ac_try='test -s conftest.$ac_objext'
15540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15541   (eval $ac_try) 2>&5
15542   ac_status=$?
15543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544   (exit $ac_status); }; }; then
15545   ac_cv_type_uint8=yes
15546 else
15547   echo "$as_me: failed program was:" >&5
15548 cat conftest.$ac_ext >&5
15549 ac_cv_type_uint8=no
15550 fi
15551 rm -f conftest.$ac_objext conftest.$ac_ext
15552 fi
15553 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15554 echo "${ECHO_T}$ac_cv_type_uint8" >&6
15555 if test $ac_cv_type_uint8 = yes; then
15556
15557 cat >>confdefs.h <<_ACEOF
15558 #define HAVE_UINT8 1
15559 _ACEOF
15560
15561
15562 fi
15563 echo "$as_me:$LINENO: checking for int64" >&5
15564 echo $ECHO_N "checking for int64... $ECHO_C" >&6
15565 if test "${ac_cv_type_int64+set}" = set; then
15566   echo $ECHO_N "(cached) $ECHO_C" >&6
15567 else
15568   cat >conftest.$ac_ext <<_ACEOF
15569 #line $LINENO "configure"
15570 #include "confdefs.h"
15571 #include <stdio.h>
15572 #ifdef HAVE_SUPPORTDEFS_H
15573 #include <SupportDefs.h>
15574 #endif
15575
15576 #ifdef F77_DUMMY_MAIN
15577 #  ifdef __cplusplus
15578      extern "C"
15579 #  endif
15580    int F77_DUMMY_MAIN() { return 1; }
15581 #endif
15582 int
15583 main ()
15584 {
15585 if ((int64 *) 0)
15586   return 0;
15587 if (sizeof (int64))
15588   return 0;
15589   ;
15590   return 0;
15591 }
15592 _ACEOF
15593 rm -f conftest.$ac_objext
15594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15595   (eval $ac_compile) 2>&5
15596   ac_status=$?
15597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598   (exit $ac_status); } &&
15599          { ac_try='test -s conftest.$ac_objext'
15600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15601   (eval $ac_try) 2>&5
15602   ac_status=$?
15603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604   (exit $ac_status); }; }; then
15605   ac_cv_type_int64=yes
15606 else
15607   echo "$as_me: failed program was:" >&5
15608 cat conftest.$ac_ext >&5
15609 ac_cv_type_int64=no
15610 fi
15611 rm -f conftest.$ac_objext conftest.$ac_ext
15612 fi
15613 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15614 echo "${ECHO_T}$ac_cv_type_int64" >&6
15615 if test $ac_cv_type_int64 = yes; then
15616
15617 cat >>confdefs.h <<_ACEOF
15618 #define HAVE_INT64 1
15619 _ACEOF
15620
15621
15622 fi
15623 echo "$as_me:$LINENO: checking for uint64" >&5
15624 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
15625 if test "${ac_cv_type_uint64+set}" = set; then
15626   echo $ECHO_N "(cached) $ECHO_C" >&6
15627 else
15628   cat >conftest.$ac_ext <<_ACEOF
15629 #line $LINENO "configure"
15630 #include "confdefs.h"
15631 #include <stdio.h>
15632 #ifdef HAVE_SUPPORTDEFS_H
15633 #include <SupportDefs.h>
15634 #endif
15635
15636 #ifdef F77_DUMMY_MAIN
15637 #  ifdef __cplusplus
15638      extern "C"
15639 #  endif
15640    int F77_DUMMY_MAIN() { return 1; }
15641 #endif
15642 int
15643 main ()
15644 {
15645 if ((uint64 *) 0)
15646   return 0;
15647 if (sizeof (uint64))
15648   return 0;
15649   ;
15650   return 0;
15651 }
15652 _ACEOF
15653 rm -f conftest.$ac_objext
15654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15655   (eval $ac_compile) 2>&5
15656   ac_status=$?
15657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658   (exit $ac_status); } &&
15659          { ac_try='test -s conftest.$ac_objext'
15660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15661   (eval $ac_try) 2>&5
15662   ac_status=$?
15663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664   (exit $ac_status); }; }; then
15665   ac_cv_type_uint64=yes
15666 else
15667   echo "$as_me: failed program was:" >&5
15668 cat conftest.$ac_ext >&5
15669 ac_cv_type_uint64=no
15670 fi
15671 rm -f conftest.$ac_objext conftest.$ac_ext
15672 fi
15673 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
15674 echo "${ECHO_T}$ac_cv_type_uint64" >&6
15675 if test $ac_cv_type_uint64 = yes; then
15676
15677 cat >>confdefs.h <<_ACEOF
15678 #define HAVE_UINT64 1
15679 _ACEOF
15680
15681
15682 fi
15683
15684
15685 # We also check for sig_atomic_t, which *should* be defined per ANSI
15686 # C, but is missing on some old platforms.
15687 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15688 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15689 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15690   echo $ECHO_N "(cached) $ECHO_C" >&6
15691 else
15692   cat >conftest.$ac_ext <<_ACEOF
15693 #line $LINENO "configure"
15694 #include "confdefs.h"
15695 #include <signal.h>
15696
15697 #ifdef F77_DUMMY_MAIN
15698 #  ifdef __cplusplus
15699      extern "C"
15700 #  endif
15701    int F77_DUMMY_MAIN() { return 1; }
15702 #endif
15703 int
15704 main ()
15705 {
15706 if ((sig_atomic_t *) 0)
15707   return 0;
15708 if (sizeof (sig_atomic_t))
15709   return 0;
15710   ;
15711   return 0;
15712 }
15713 _ACEOF
15714 rm -f conftest.$ac_objext
15715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15716   (eval $ac_compile) 2>&5
15717   ac_status=$?
15718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719   (exit $ac_status); } &&
15720          { ac_try='test -s conftest.$ac_objext'
15721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15722   (eval $ac_try) 2>&5
15723   ac_status=$?
15724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725   (exit $ac_status); }; }; then
15726   ac_cv_type_sig_atomic_t=yes
15727 else
15728   echo "$as_me: failed program was:" >&5
15729 cat conftest.$ac_ext >&5
15730 ac_cv_type_sig_atomic_t=no
15731 fi
15732 rm -f conftest.$ac_objext conftest.$ac_ext
15733 fi
15734 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15735 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15736 if test $ac_cv_type_sig_atomic_t = yes; then
15737
15738 cat >>confdefs.h <<_ACEOF
15739 #define HAVE_SIG_ATOMIC_T 1
15740 _ACEOF
15741
15742
15743 fi
15744
15745
15746
15747 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15748 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15749 if test "${pgac_cv_func_posix_signals+set}" = set; then
15750   echo $ECHO_N "(cached) $ECHO_C" >&6
15751 else
15752   cat >conftest.$ac_ext <<_ACEOF
15753 #line $LINENO "configure"
15754 #include "confdefs.h"
15755 #include <signal.h>
15756
15757 #ifdef F77_DUMMY_MAIN
15758 #  ifdef __cplusplus
15759      extern "C"
15760 #  endif
15761    int F77_DUMMY_MAIN() { return 1; }
15762 #endif
15763 int
15764 main ()
15765 {
15766 struct sigaction act, oact;
15767 sigemptyset(&act.sa_mask);
15768 act.sa_flags = SA_RESTART;
15769 sigaction(0, &act, &oact);
15770   ;
15771   return 0;
15772 }
15773 _ACEOF
15774 rm -f conftest.$ac_objext conftest$ac_exeext
15775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15776   (eval $ac_link) 2>&5
15777   ac_status=$?
15778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779   (exit $ac_status); } &&
15780          { ac_try='test -s conftest$ac_exeext'
15781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15782   (eval $ac_try) 2>&5
15783   ac_status=$?
15784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785   (exit $ac_status); }; }; then
15786   pgac_cv_func_posix_signals=yes
15787 else
15788   echo "$as_me: failed program was:" >&5
15789 cat conftest.$ac_ext >&5
15790 pgac_cv_func_posix_signals=no
15791 fi
15792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15793 fi
15794 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
15795 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
15796 if test x"$pgac_cv_func_posix_signals" = xyes ; then
15797
15798 cat >>confdefs.h <<\_ACEOF
15799 #define HAVE_POSIX_SIGNALS
15800 _ACEOF
15801
15802 fi
15803 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
15804
15805
15806
15807 # Select semaphore implementation type.
15808 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
15809
15810 cat >>confdefs.h <<\_ACEOF
15811 #define USE_NAMED_POSIX_SEMAPHORES 1
15812 _ACEOF
15813
15814   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15815 else
15816   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
15817
15818 cat >>confdefs.h <<\_ACEOF
15819 #define USE_UNNAMED_POSIX_SEMAPHORES 1
15820 _ACEOF
15821
15822     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15823   else
15824
15825 cat >>confdefs.h <<\_ACEOF
15826 #define USE_SYSV_SEMAPHORES 1
15827 _ACEOF
15828
15829     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
15830   fi
15831 fi
15832
15833
15834 # Select shared-memory implementation type.
15835
15836 cat >>confdefs.h <<\_ACEOF
15837 #define USE_SYSV_SHARED_MEMORY 1
15838 _ACEOF
15839
15840 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
15841
15842
15843 if test "$enable_nls" = yes ; then
15844
15845   echo "$as_me:$LINENO: checking for library containing gettext" >&5
15846 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
15847 if test "${ac_cv_search_gettext+set}" = set; then
15848   echo $ECHO_N "(cached) $ECHO_C" >&6
15849 else
15850   ac_func_search_save_LIBS=$LIBS
15851 ac_cv_search_gettext=no
15852 cat >conftest.$ac_ext <<_ACEOF
15853 #line $LINENO "configure"
15854 #include "confdefs.h"
15855
15856 /* Override any gcc2 internal prototype to avoid an error.  */
15857 #ifdef __cplusplus
15858 extern "C"
15859 #endif
15860 /* We use char because int might match the return type of a gcc2
15861    builtin and then its argument prototype would still apply.  */
15862 char gettext ();
15863 #ifdef F77_DUMMY_MAIN
15864 #  ifdef __cplusplus
15865      extern "C"
15866 #  endif
15867    int F77_DUMMY_MAIN() { return 1; }
15868 #endif
15869 int
15870 main ()
15871 {
15872 gettext ();
15873   ;
15874   return 0;
15875 }
15876 _ACEOF
15877 rm -f conftest.$ac_objext conftest$ac_exeext
15878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15879   (eval $ac_link) 2>&5
15880   ac_status=$?
15881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882   (exit $ac_status); } &&
15883          { ac_try='test -s conftest$ac_exeext'
15884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15885   (eval $ac_try) 2>&5
15886   ac_status=$?
15887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888   (exit $ac_status); }; }; then
15889   ac_cv_search_gettext="none required"
15890 else
15891   echo "$as_me: failed program was:" >&5
15892 cat conftest.$ac_ext >&5
15893 fi
15894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15895 if test "$ac_cv_search_gettext" = no; then
15896   for ac_lib in intl; do
15897     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15898     cat >conftest.$ac_ext <<_ACEOF
15899 #line $LINENO "configure"
15900 #include "confdefs.h"
15901
15902 /* Override any gcc2 internal prototype to avoid an error.  */
15903 #ifdef __cplusplus
15904 extern "C"
15905 #endif
15906 /* We use char because int might match the return type of a gcc2
15907    builtin and then its argument prototype would still apply.  */
15908 char gettext ();
15909 #ifdef F77_DUMMY_MAIN
15910 #  ifdef __cplusplus
15911      extern "C"
15912 #  endif
15913    int F77_DUMMY_MAIN() { return 1; }
15914 #endif
15915 int
15916 main ()
15917 {
15918 gettext ();
15919   ;
15920   return 0;
15921 }
15922 _ACEOF
15923 rm -f conftest.$ac_objext conftest$ac_exeext
15924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15925   (eval $ac_link) 2>&5
15926   ac_status=$?
15927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928   (exit $ac_status); } &&
15929          { ac_try='test -s conftest$ac_exeext'
15930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15931   (eval $ac_try) 2>&5
15932   ac_status=$?
15933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934   (exit $ac_status); }; }; then
15935   ac_cv_search_gettext="-l$ac_lib"
15936 break
15937 else
15938   echo "$as_me: failed program was:" >&5
15939 cat conftest.$ac_ext >&5
15940 fi
15941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15942   done
15943 fi
15944 LIBS=$ac_func_search_save_LIBS
15945 fi
15946 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15947 echo "${ECHO_T}$ac_cv_search_gettext" >&6
15948 if test "$ac_cv_search_gettext" != no; then
15949   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15950
15951 else
15952   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15953 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15954    { (exit 1); exit 1; }; }
15955 fi
15956
15957   if test "${ac_cv_header_libintl_h+set}" = set; then
15958   echo "$as_me:$LINENO: checking for libintl.h" >&5
15959 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15960 if test "${ac_cv_header_libintl_h+set}" = set; then
15961   echo $ECHO_N "(cached) $ECHO_C" >&6
15962 fi
15963 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15964 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15965 else
15966   # Is the header compilable?
15967 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15968 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15969 cat >conftest.$ac_ext <<_ACEOF
15970 #line $LINENO "configure"
15971 #include "confdefs.h"
15972 $ac_includes_default
15973 #include <libintl.h>
15974 _ACEOF
15975 rm -f conftest.$ac_objext
15976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15977   (eval $ac_compile) 2>&5
15978   ac_status=$?
15979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980   (exit $ac_status); } &&
15981          { ac_try='test -s conftest.$ac_objext'
15982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15983   (eval $ac_try) 2>&5
15984   ac_status=$?
15985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986   (exit $ac_status); }; }; then
15987   ac_header_compiler=yes
15988 else
15989   echo "$as_me: failed program was:" >&5
15990 cat conftest.$ac_ext >&5
15991 ac_header_compiler=no
15992 fi
15993 rm -f conftest.$ac_objext conftest.$ac_ext
15994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15995 echo "${ECHO_T}$ac_header_compiler" >&6
15996
15997 # Is the header present?
15998 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15999 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
16000 cat >conftest.$ac_ext <<_ACEOF
16001 #line $LINENO "configure"
16002 #include "confdefs.h"
16003 #include <libintl.h>
16004 _ACEOF
16005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16006   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16007   ac_status=$?
16008   egrep -v '^ *\+' conftest.er1 >conftest.err
16009   rm -f conftest.er1
16010   cat conftest.err >&5
16011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012   (exit $ac_status); } >/dev/null; then
16013   if test -s conftest.err; then
16014     ac_cpp_err=$ac_c_preproc_warn_flag
16015   else
16016     ac_cpp_err=
16017   fi
16018 else
16019   ac_cpp_err=yes
16020 fi
16021 if test -z "$ac_cpp_err"; then
16022   ac_header_preproc=yes
16023 else
16024   echo "$as_me: failed program was:" >&5
16025   cat conftest.$ac_ext >&5
16026   ac_header_preproc=no
16027 fi
16028 rm -f conftest.err conftest.$ac_ext
16029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16030 echo "${ECHO_T}$ac_header_preproc" >&6
16031
16032 # So?  What about this header?
16033 case $ac_header_compiler:$ac_header_preproc in
16034   yes:no )
16035     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16036 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16037     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16038 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16039   no:yes )
16040     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
16041 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
16042     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
16043 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
16044     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16045 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16046 esac
16047 echo "$as_me:$LINENO: checking for libintl.h" >&5
16048 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16049 if test "${ac_cv_header_libintl_h+set}" = set; then
16050   echo $ECHO_N "(cached) $ECHO_C" >&6
16051 else
16052   ac_cv_header_libintl_h=$ac_header_preproc
16053 fi
16054 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16055 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16056
16057 fi
16058 if test $ac_cv_header_libintl_h = yes; then
16059   :
16060 else
16061   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
16062 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
16063    { (exit 1); exit 1; }; }
16064 fi
16065
16066
16067   for ac_prog in msgfmt
16068 do
16069   # Extract the first word of "$ac_prog", so it can be a program name with args.
16070 set dummy $ac_prog; ac_word=$2
16071 echo "$as_me:$LINENO: checking for $ac_word" >&5
16072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16073 if test "${ac_cv_prog_MSGFMT+set}" = set; then
16074   echo $ECHO_N "(cached) $ECHO_C" >&6
16075 else
16076   if test -n "$MSGFMT"; then
16077   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16078 else
16079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16080 for as_dir in $PATH
16081 do
16082   IFS=$as_save_IFS
16083   test -z "$as_dir" && as_dir=.
16084   for ac_exec_ext in '' $ac_executable_extensions; do
16085   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16086     ac_cv_prog_MSGFMT="$ac_prog"
16087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16088     break 2
16089   fi
16090 done
16091 done
16092
16093 fi
16094 fi
16095 MSGFMT=$ac_cv_prog_MSGFMT
16096 if test -n "$MSGFMT"; then
16097   echo "$as_me:$LINENO: result: $MSGFMT" >&5
16098 echo "${ECHO_T}$MSGFMT" >&6
16099 else
16100   echo "$as_me:$LINENO: result: no" >&5
16101 echo "${ECHO_T}no" >&6
16102 fi
16103
16104   test -n "$MSGFMT" && break
16105 done
16106
16107   if test -z "$MSGFMT"; then
16108     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
16109 echo "$as_me: error: msgfmt is required for NLS" >&2;}
16110    { (exit 1); exit 1; }; }
16111   fi
16112   for ac_prog in msgmerge
16113 do
16114   # Extract the first word of "$ac_prog", so it can be a program name with args.
16115 set dummy $ac_prog; ac_word=$2
16116 echo "$as_me:$LINENO: checking for $ac_word" >&5
16117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16118 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
16119   echo $ECHO_N "(cached) $ECHO_C" >&6
16120 else
16121   if test -n "$MSGMERGE"; then
16122   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
16123 else
16124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16125 for as_dir in $PATH
16126 do
16127   IFS=$as_save_IFS
16128   test -z "$as_dir" && as_dir=.
16129   for ac_exec_ext in '' $ac_executable_extensions; do
16130   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16131     ac_cv_prog_MSGMERGE="$ac_prog"
16132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16133     break 2
16134   fi
16135 done
16136 done
16137
16138 fi
16139 fi
16140 MSGMERGE=$ac_cv_prog_MSGMERGE
16141 if test -n "$MSGMERGE"; then
16142   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16143 echo "${ECHO_T}$MSGMERGE" >&6
16144 else
16145   echo "$as_me:$LINENO: result: no" >&5
16146 echo "${ECHO_T}no" >&6
16147 fi
16148
16149   test -n "$MSGMERGE" && break
16150 done
16151
16152   for ac_prog in xgettext
16153 do
16154   # Extract the first word of "$ac_prog", so it can be a program name with args.
16155 set dummy $ac_prog; ac_word=$2
16156 echo "$as_me:$LINENO: checking for $ac_word" >&5
16157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16158 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
16159   echo $ECHO_N "(cached) $ECHO_C" >&6
16160 else
16161   if test -n "$XGETTEXT"; then
16162   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
16163 else
16164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16165 for as_dir in $PATH
16166 do
16167   IFS=$as_save_IFS
16168   test -z "$as_dir" && as_dir=.
16169   for ac_exec_ext in '' $ac_executable_extensions; do
16170   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16171     ac_cv_prog_XGETTEXT="$ac_prog"
16172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16173     break 2
16174   fi
16175 done
16176 done
16177
16178 fi
16179 fi
16180 XGETTEXT=$ac_cv_prog_XGETTEXT
16181 if test -n "$XGETTEXT"; then
16182   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16183 echo "${ECHO_T}$XGETTEXT" >&6
16184 else
16185   echo "$as_me:$LINENO: result: no" >&5
16186 echo "${ECHO_T}no" >&6
16187 fi
16188
16189   test -n "$XGETTEXT" && break
16190 done
16191
16192
16193   # Note: share/locale is always the default, independent of $datadir
16194   localedir='${prefix}/share/locale'
16195   if test x"$prefix" = x"NONE"; then
16196     exp_localedir="$ac_default_prefix/share/locale"
16197   else
16198     exp_localedir="$prefix/share/locale"
16199   fi
16200
16201
16202
16203 cat >>confdefs.h <<_ACEOF
16204 #define LOCALEDIR "$exp_localedir"
16205 _ACEOF
16206
16207
16208 fi
16209
16210 if test "$with_CXX" = yes; then
16211
16212
16213 ac_ext=cc
16214 ac_cpp='$CXXCPP $CPPFLAGS'
16215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16218
16219 if test "${ac_cv_header_string+set}" = set; then
16220   echo "$as_me:$LINENO: checking for string" >&5
16221 echo $ECHO_N "checking for string... $ECHO_C" >&6
16222 if test "${ac_cv_header_string+set}" = set; then
16223   echo $ECHO_N "(cached) $ECHO_C" >&6
16224 fi
16225 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
16226 echo "${ECHO_T}$ac_cv_header_string" >&6
16227 else
16228   # Is the header compilable?
16229 echo "$as_me:$LINENO: checking string usability" >&5
16230 echo $ECHO_N "checking string usability... $ECHO_C" >&6
16231 cat >conftest.$ac_ext <<_ACEOF
16232 #line $LINENO "configure"
16233 #include "confdefs.h"
16234 $ac_includes_default
16235 #include <string>
16236 _ACEOF
16237 rm -f conftest.$ac_objext
16238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16239   (eval $ac_compile) 2>&5
16240   ac_status=$?
16241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242   (exit $ac_status); } &&
16243          { ac_try='test -s conftest.$ac_objext'
16244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16245   (eval $ac_try) 2>&5
16246   ac_status=$?
16247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248   (exit $ac_status); }; }; then
16249   ac_header_compiler=yes
16250 else
16251   echo "$as_me: failed program was:" >&5
16252 cat conftest.$ac_ext >&5
16253 ac_header_compiler=no
16254 fi
16255 rm -f conftest.$ac_objext conftest.$ac_ext
16256 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16257 echo "${ECHO_T}$ac_header_compiler" >&6
16258
16259 # Is the header present?
16260 echo "$as_me:$LINENO: checking string presence" >&5
16261 echo $ECHO_N "checking string presence... $ECHO_C" >&6
16262 cat >conftest.$ac_ext <<_ACEOF
16263 #line $LINENO "configure"
16264 #include "confdefs.h"
16265 #include <string>
16266 _ACEOF
16267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16268   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16269   ac_status=$?
16270   egrep -v '^ *\+' conftest.er1 >conftest.err
16271   rm -f conftest.er1
16272   cat conftest.err >&5
16273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274   (exit $ac_status); } >/dev/null; then
16275   if test -s conftest.err; then
16276     ac_cpp_err=$ac_cxx_preproc_warn_flag
16277   else
16278     ac_cpp_err=
16279   fi
16280 else
16281   ac_cpp_err=yes
16282 fi
16283 if test -z "$ac_cpp_err"; then
16284   ac_header_preproc=yes
16285 else
16286   echo "$as_me: failed program was:" >&5
16287   cat conftest.$ac_ext >&5
16288   ac_header_preproc=no
16289 fi
16290 rm -f conftest.err conftest.$ac_ext
16291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16292 echo "${ECHO_T}$ac_header_preproc" >&6
16293
16294 # So?  What about this header?
16295 case $ac_header_compiler:$ac_header_preproc in
16296   yes:no )
16297     { echo "$as_me:$LINENO: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&5
16298 echo "$as_me: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&2;}
16299     { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16300 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16301   no:yes )
16302     { echo "$as_me:$LINENO: WARNING: string: present but cannot be compiled" >&5
16303 echo "$as_me: WARNING: string: present but cannot be compiled" >&2;}
16304     { echo "$as_me:$LINENO: WARNING: string: check for missing prerequisite headers?" >&5
16305 echo "$as_me: WARNING: string: check for missing prerequisite headers?" >&2;}
16306     { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16307 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16308 esac
16309 echo "$as_me:$LINENO: checking for string" >&5
16310 echo $ECHO_N "checking for string... $ECHO_C" >&6
16311 if test "${ac_cv_header_string+set}" = set; then
16312   echo $ECHO_N "(cached) $ECHO_C" >&6
16313 else
16314   ac_cv_header_string=$ac_header_preproc
16315 fi
16316 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
16317 echo "${ECHO_T}$ac_cv_header_string" >&6
16318
16319 fi
16320 if test $ac_cv_header_string = yes; then
16321
16322 cat >>confdefs.h <<\_ACEOF
16323 #define HAVE_CXX_STRING_HEADER 1
16324 _ACEOF
16325
16326 else
16327   echo "$as_me:$LINENO: checking for class string in <string.h>" >&5
16328 echo $ECHO_N "checking for class string in <string.h>... $ECHO_C" >&6
16329 if test "${pgac_cv_class_string_in_string_h+set}" = set; then
16330   echo $ECHO_N "(cached) $ECHO_C" >&6
16331 else
16332   cat >conftest.$ac_ext <<_ACEOF
16333 #line $LINENO "configure"
16334 #include "confdefs.h"
16335 #include <stdio.h>
16336 #include <stdlib.h>
16337 #include <string.h>
16338
16339 #ifdef F77_DUMMY_MAIN
16340 #  ifdef __cplusplus
16341      extern "C"
16342 #  endif
16343    int F77_DUMMY_MAIN() { return 1; }
16344 #endif
16345 int
16346 main ()
16347 {
16348 string foo = "test"
16349   ;
16350   return 0;
16351 }
16352 _ACEOF
16353 rm -f conftest.$ac_objext
16354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16355   (eval $ac_compile) 2>&5
16356   ac_status=$?
16357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358   (exit $ac_status); } &&
16359          { ac_try='test -s conftest.$ac_objext'
16360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16361   (eval $ac_try) 2>&5
16362   ac_status=$?
16363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364   (exit $ac_status); }; }; then
16365   pgac_cv_class_string_in_string_h=yes
16366 else
16367   echo "$as_me: failed program was:" >&5
16368 cat conftest.$ac_ext >&5
16369 pgac_cv_class_string_in_string_h=no
16370 fi
16371 rm -f conftest.$ac_objext conftest.$ac_ext
16372 fi
16373 echo "$as_me:$LINENO: result: $pgac_cv_class_string_in_string_h" >&5
16374 echo "${ECHO_T}$pgac_cv_class_string_in_string_h" >&6
16375
16376   if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
16377     { { echo "$as_me:$LINENO: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&5
16378 echo "$as_me: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&2;}
16379    { (exit 1); exit 1; }; }
16380   fi
16381
16382 fi
16383
16384
16385 ac_ext=c
16386 ac_cpp='$CPP $CPPFLAGS'
16387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16390
16391
16392 echo "$as_me:$LINENO: checking for namespace std in C++" >&5
16393 echo $ECHO_N "checking for namespace std in C++... $ECHO_C" >&6
16394 if test "${pgac_cv_cxx_namespace_std+set}" = set; then
16395   echo $ECHO_N "(cached) $ECHO_C" >&6
16396 else
16397
16398 ac_ext=cc
16399 ac_cpp='$CXXCPP $CPPFLAGS'
16400 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16401 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16402 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16403
16404 cat >conftest.$ac_ext <<_ACEOF
16405 #line $LINENO "configure"
16406 #include "confdefs.h"
16407 #include <stdio.h>
16408 #include <stdlib.h>
16409 #ifdef HAVE_CXX_STRING_HEADER
16410 #include <string>
16411 #endif
16412 using namespace std;
16413
16414 #ifdef F77_DUMMY_MAIN
16415 #  ifdef __cplusplus
16416      extern "C"
16417 #  endif
16418    int F77_DUMMY_MAIN() { return 1; }
16419 #endif
16420 int
16421 main ()
16422 {
16423
16424   ;
16425   return 0;
16426 }
16427 _ACEOF
16428 rm -f conftest.$ac_objext
16429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16430   (eval $ac_compile) 2>&5
16431   ac_status=$?
16432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433   (exit $ac_status); } &&
16434          { ac_try='test -s conftest.$ac_objext'
16435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436   (eval $ac_try) 2>&5
16437   ac_status=$?
16438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439   (exit $ac_status); }; }; then
16440   pgac_cv_cxx_namespace_std=yes
16441 else
16442   echo "$as_me: failed program was:" >&5
16443 cat conftest.$ac_ext >&5
16444 pgac_cv_cxx_namespace_std=no
16445 fi
16446 rm -f conftest.$ac_objext conftest.$ac_ext
16447 ac_ext=c
16448 ac_cpp='$CPP $CPPFLAGS'
16449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16452
16453 fi
16454 echo "$as_me:$LINENO: result: $pgac_cv_cxx_namespace_std" >&5
16455 echo "${ECHO_T}$pgac_cv_cxx_namespace_std" >&6
16456
16457 if test $pgac_cv_cxx_namespace_std = yes ; then
16458
16459 cat >>confdefs.h <<\_ACEOF
16460 #define HAVE_NAMESPACE_STD 1
16461 _ACEOF
16462
16463 fi
16464 fi
16465
16466
16467 # Check for Tcl configuration script tclConfig.sh
16468 if test "$with_tcl" = yes; then
16469     for ac_prog in tclsh tcl
16470 do
16471   # Extract the first word of "$ac_prog", so it can be a program name with args.
16472 set dummy $ac_prog; ac_word=$2
16473 echo "$as_me:$LINENO: checking for $ac_word" >&5
16474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16475 if test "${ac_cv_path_TCLSH+set}" = set; then
16476   echo $ECHO_N "(cached) $ECHO_C" >&6
16477 else
16478   case $TCLSH in
16479   [\\/]* | ?:[\\/]*)
16480   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16481   ;;
16482   *)
16483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16484 for as_dir in $PATH
16485 do
16486   IFS=$as_save_IFS
16487   test -z "$as_dir" && as_dir=.
16488   for ac_exec_ext in '' $ac_executable_extensions; do
16489   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16490     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16492     break 2
16493   fi
16494 done
16495 done
16496
16497   ;;
16498 esac
16499 fi
16500 TCLSH=$ac_cv_path_TCLSH
16501
16502 if test -n "$TCLSH"; then
16503   echo "$as_me:$LINENO: result: $TCLSH" >&5
16504 echo "${ECHO_T}$TCLSH" >&6
16505 else
16506   echo "$as_me:$LINENO: result: no" >&5
16507 echo "${ECHO_T}no" >&6
16508 fi
16509
16510   test -n "$TCLSH" && break
16511 done
16512
16513 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16514 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
16515 # Let user override test
16516 if test -z "$TCL_CONFIG_SH"; then
16517     pgac_test_dirs="$with_tclconfig"
16518
16519     set X $pgac_test_dirs; shift
16520     if test $# -eq 0; then
16521         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16522 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16523    { (exit 1); exit 1; }; }
16524         set X `echo 'puts $auto_path' | $TCLSH`; shift
16525     fi
16526
16527     for pgac_dir do
16528         if test -r "$pgac_dir/tclConfig.sh"; then
16529             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16530             break
16531         fi
16532     done
16533 fi
16534
16535 if test -z "$TCL_CONFIG_SH"; then
16536     echo "$as_me:$LINENO: result: no" >&5
16537 echo "${ECHO_T}no" >&6
16538     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16539 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16540    { (exit 1); exit 1; }; }
16541 else
16542     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16543 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16544 fi
16545
16546
16547
16548     . "$TCL_CONFIG_SH"
16549 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
16550 eval TCL_LIBS=\"$TCL_LIBS\"
16551 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
16552 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
16553
16554     fi
16555
16556 # Check for Tk configuration script tkConfig.sh
16557 if test "$with_tk" = yes; then
16558     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16559 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
16560 # Let user override test
16561 if test -z "$TK_CONFIG_SH"; then
16562     pgac_test_dirs="$with_tkconfig $with_tclconfig"
16563
16564     set X $pgac_test_dirs; shift
16565     if test $# -eq 0; then
16566         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
16567 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
16568    { (exit 1); exit 1; }; }
16569         set X `echo 'puts $auto_path' | $TCLSH`; shift
16570     fi
16571
16572     for pgac_dir do
16573         if test -r "$pgac_dir/tkConfig.sh"; then
16574             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
16575             break
16576         fi
16577     done
16578 fi
16579
16580 if test -z "$TK_CONFIG_SH"; then
16581     echo "$as_me:$LINENO: result: no" >&5
16582 echo "${ECHO_T}no" >&6
16583     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
16584 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
16585    { (exit 1); exit 1; }; }
16586 else
16587     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
16588 echo "${ECHO_T}$TK_CONFIG_SH" >&6
16589 fi
16590
16591
16592
16593     . "$TK_CONFIG_SH"
16594 eval TK_LIBS=\"$TK_LIBS\"
16595 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
16596 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
16597
16598 fi
16599
16600
16601 #
16602 # Check for DocBook and tools
16603 #
16604 for ac_prog in onsgmls nsgmls
16605 do
16606   # Extract the first word of "$ac_prog", so it can be a program name with args.
16607 set dummy $ac_prog; ac_word=$2
16608 echo "$as_me:$LINENO: checking for $ac_word" >&5
16609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16610 if test "${ac_cv_prog_NSGMLS+set}" = set; then
16611   echo $ECHO_N "(cached) $ECHO_C" >&6
16612 else
16613   if test -n "$NSGMLS"; then
16614   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
16615 else
16616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16617 for as_dir in $PATH
16618 do
16619   IFS=$as_save_IFS
16620   test -z "$as_dir" && as_dir=.
16621   for ac_exec_ext in '' $ac_executable_extensions; do
16622   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16623     ac_cv_prog_NSGMLS="$ac_prog"
16624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16625     break 2
16626   fi
16627 done
16628 done
16629
16630 fi
16631 fi
16632 NSGMLS=$ac_cv_prog_NSGMLS
16633 if test -n "$NSGMLS"; then
16634   echo "$as_me:$LINENO: result: $NSGMLS" >&5
16635 echo "${ECHO_T}$NSGMLS" >&6
16636 else
16637   echo "$as_me:$LINENO: result: no" >&5
16638 echo "${ECHO_T}no" >&6
16639 fi
16640
16641   test -n "$NSGMLS" && break
16642 done
16643
16644 for ac_prog in openjade jade
16645 do
16646   # Extract the first word of "$ac_prog", so it can be a program name with args.
16647 set dummy $ac_prog; ac_word=$2
16648 echo "$as_me:$LINENO: checking for $ac_word" >&5
16649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16650 if test "${ac_cv_prog_JADE+set}" = set; then
16651   echo $ECHO_N "(cached) $ECHO_C" >&6
16652 else
16653   if test -n "$JADE"; then
16654   ac_cv_prog_JADE="$JADE" # Let the user override the test.
16655 else
16656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16657 for as_dir in $PATH
16658 do
16659   IFS=$as_save_IFS
16660   test -z "$as_dir" && as_dir=.
16661   for ac_exec_ext in '' $ac_executable_extensions; do
16662   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16663     ac_cv_prog_JADE="$ac_prog"
16664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16665     break 2
16666   fi
16667 done
16668 done
16669
16670 fi
16671 fi
16672 JADE=$ac_cv_prog_JADE
16673 if test -n "$JADE"; then
16674   echo "$as_me:$LINENO: result: $JADE" >&5
16675 echo "${ECHO_T}$JADE" >&6
16676 else
16677   echo "$as_me:$LINENO: result: no" >&5
16678 echo "${ECHO_T}no" >&6
16679 fi
16680
16681   test -n "$JADE" && break
16682 done
16683
16684
16685 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16686 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16687 if test "${pgac_cv_check_docbook+set}" = set; then
16688   echo $ECHO_N "(cached) $ECHO_C" >&6
16689 else
16690   cat >conftest.sgml <<EOF
16691 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16692 <book>
16693  <title>test</title>
16694  <chapter>
16695   <title>random</title>
16696    <sect1>
16697     <title>testsect</title>
16698     <para>text</para>
16699   </sect1>
16700  </chapter>
16701 </book>
16702 EOF
16703
16704 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
16705 if test $? -eq 0; then
16706   pgac_cv_check_docbook=yes
16707 else
16708   pgac_cv_check_docbook=no
16709 fi
16710 rm -f conftest.sgml
16711 fi
16712 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
16713 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
16714
16715 have_docbook=$pgac_cv_check_docbook
16716
16717
16718 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
16719 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
16720 if test "${pgac_cv_path_stylesheets+set}" = set; then
16721   echo $ECHO_N "(cached) $ECHO_C" >&6
16722 else
16723   if test -n "$DOCBOOKSTYLE"; then
16724   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
16725 else
16726   for pgac_prefix in /usr /usr/local /opt; do
16727     for pgac_infix in share lib; do
16728       for pgac_postfix in \
16729         sgml/stylesheets/nwalsh-modular \
16730         sgml/stylesheets/docbook \
16731         sgml/docbook/dsssl/modular \
16732         sgml/docbook/stylesheet/dsssl/modular \
16733         sgml/docbook/dsssl-stylesheets
16734       do
16735         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
16736         if test -r "$pgac_candidate/html/docbook.dsl" \
16737            && test -r "$pgac_candidate/print/docbook.dsl"
16738         then
16739           pgac_cv_path_stylesheets=$pgac_candidate
16740           break 3
16741         fi
16742       done
16743     done
16744   done
16745 fi
16746 fi
16747
16748 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
16749
16750 if test -n "$DOCBOOKSTYLE"; then
16751   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
16752 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
16753 else
16754   echo "$as_me:$LINENO: result: no" >&5
16755 echo "${ECHO_T}no" >&6
16756 fi
16757 if test -n "$DOCBOOKSTYLE"; then
16758   for ac_prog in collateindex.pl
16759 do
16760   # Extract the first word of "$ac_prog", so it can be a program name with args.
16761 set dummy $ac_prog; ac_word=$2
16762 echo "$as_me:$LINENO: checking for $ac_word" >&5
16763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16764 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16765   echo $ECHO_N "(cached) $ECHO_C" >&6
16766 else
16767   case $COLLATEINDEX in
16768   [\\/]* | ?:[\\/]*)
16769   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16770   ;;
16771   *)
16772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16773 for as_dir in $DOCBOOKSTYLE/bin $PATH
16774 do
16775   IFS=$as_save_IFS
16776   test -z "$as_dir" && as_dir=.
16777   for ac_exec_ext in '' $ac_executable_extensions; do
16778   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16779     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16781     break 2
16782   fi
16783 done
16784 done
16785
16786   ;;
16787 esac
16788 fi
16789 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16790
16791 if test -n "$COLLATEINDEX"; then
16792   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16793 echo "${ECHO_T}$COLLATEINDEX" >&6
16794 else
16795   echo "$as_me:$LINENO: result: no" >&5
16796 echo "${ECHO_T}no" >&6
16797 fi
16798
16799   test -n "$COLLATEINDEX" && break
16800 done
16801
16802 else
16803   for ac_prog in collateindex.pl
16804 do
16805   # Extract the first word of "$ac_prog", so it can be a program name with args.
16806 set dummy $ac_prog; ac_word=$2
16807 echo "$as_me:$LINENO: checking for $ac_word" >&5
16808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16809 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16810   echo $ECHO_N "(cached) $ECHO_C" >&6
16811 else
16812   case $COLLATEINDEX in
16813   [\\/]* | ?:[\\/]*)
16814   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16815   ;;
16816   *)
16817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16818 for as_dir in $PATH
16819 do
16820   IFS=$as_save_IFS
16821   test -z "$as_dir" && as_dir=.
16822   for ac_exec_ext in '' $ac_executable_extensions; do
16823   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16824     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16826     break 2
16827   fi
16828 done
16829 done
16830
16831   ;;
16832 esac
16833 fi
16834 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16835
16836 if test -n "$COLLATEINDEX"; then
16837   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16838 echo "${ECHO_T}$COLLATEINDEX" >&6
16839 else
16840   echo "$as_me:$LINENO: result: no" >&5
16841 echo "${ECHO_T}no" >&6
16842 fi
16843
16844   test -n "$COLLATEINDEX" && break
16845 done
16846
16847 fi
16848 for ac_prog in sgmlspl
16849 do
16850   # Extract the first word of "$ac_prog", so it can be a program name with args.
16851 set dummy $ac_prog; ac_word=$2
16852 echo "$as_me:$LINENO: checking for $ac_word" >&5
16853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16854 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
16855   echo $ECHO_N "(cached) $ECHO_C" >&6
16856 else
16857   if test -n "$SGMLSPL"; then
16858   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
16859 else
16860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16861 for as_dir in $PATH
16862 do
16863   IFS=$as_save_IFS
16864   test -z "$as_dir" && as_dir=.
16865   for ac_exec_ext in '' $ac_executable_extensions; do
16866   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16867     ac_cv_prog_SGMLSPL="$ac_prog"
16868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16869     break 2
16870   fi
16871 done
16872 done
16873
16874 fi
16875 fi
16876 SGMLSPL=$ac_cv_prog_SGMLSPL
16877 if test -n "$SGMLSPL"; then
16878   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
16879 echo "${ECHO_T}$SGMLSPL" >&6
16880 else
16881   echo "$as_me:$LINENO: result: no" >&5
16882 echo "${ECHO_T}no" >&6
16883 fi
16884
16885   test -n "$SGMLSPL" && break
16886 done
16887
16888
16889
16890 # prepare build tree if outside source tree
16891 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
16892 # Note 2: /bin/pwd might be better than shell's built-in at getting
16893 #         a symlink-free name.
16894 if test "$no_create" != yes; then
16895   if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
16896     :
16897   else
16898     vpath_build=yes
16899
16900     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
16901     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
16902     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
16903       || { { echo "$as_me:$LINENO: error: failed" >&5
16904 echo "$as_me: error: failed" >&2;}
16905    { (exit 1); exit 1; }; }
16906     echo "$as_me:$LINENO: result: done" >&5
16907 echo "${ECHO_T}done" >&6
16908   fi
16909 fi
16910
16911
16912 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
16913
16914
16915 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}"
16916
16917
16918 ac_config_headers="$ac_config_headers src/include/pg_config.h"
16919
16920
16921 cat >confcache <<\_ACEOF
16922 # This file is a shell script that caches the results of configure
16923 # tests run on this system so they can be shared between configure
16924 # scripts and configure runs, see configure's option --config-cache.
16925 # It is not useful on other systems.  If it contains results you don't
16926 # want to keep, you may remove or edit it.
16927 #
16928 # config.status only pays attention to the cache file if you give it
16929 # the --recheck option to rerun configure.
16930 #
16931 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16932 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16933 # following values.
16934
16935 _ACEOF
16936
16937 # The following way of writing the cache mishandles newlines in values,
16938 # but we know of no workaround that is simple, portable, and efficient.
16939 # So, don't put newlines in cache variables' values.
16940 # Ultrix sh set writes to stderr and can't be redirected directly,
16941 # and sets the high bit in the cache file unless we assign to the vars.
16942 {
16943   (set) 2>&1 |
16944     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16945     *ac_space=\ *)
16946       # `set' does not quote correctly, so add quotes (double-quote
16947       # substitution turns \\\\ into \\, and sed turns \\ into \).
16948       sed -n \
16949         "s/'/'\\\\''/g;
16950           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16951       ;;
16952     *)
16953       # `set' quotes correctly as required by POSIX, so do not add quotes.
16954       sed -n \
16955         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16956       ;;
16957     esac;
16958 } |
16959   sed '
16960      t clear
16961      : clear
16962      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16963      t end
16964      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16965      : end' >>confcache
16966 if cmp -s $cache_file confcache; then :; else
16967   if test -w $cache_file; then
16968     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16969     cat confcache >$cache_file
16970   else
16971     echo "not updating unwritable cache $cache_file"
16972   fi
16973 fi
16974 rm -f confcache
16975
16976 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16977 # Let make expand exec_prefix.
16978 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16979
16980 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16981 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16982 # trailing colons and then remove the whole line if VPATH becomes empty
16983 # (actually we leave an empty line to preserve line numbers).
16984 if test "x$srcdir" = x.; then
16985   ac_vpsub='/^[         ]*VPATH[        ]*=/{
16986 s/:*\$(srcdir):*/:/;
16987 s/:*\${srcdir}:*/:/;
16988 s/:*@srcdir@:*/:/;
16989 s/^\([^=]*=[    ]*\):*/\1/;
16990 s/:*$//;
16991 s/^[^=]*=[      ]*$//;
16992 }'
16993 fi
16994
16995 DEFS=-DHAVE_CONFIG_H
16996
16997
16998 : ${CONFIG_STATUS=./config.status}
16999 ac_clean_files_save=$ac_clean_files
17000 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17001 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17002 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17003 cat >$CONFIG_STATUS <<_ACEOF
17004 #! $SHELL
17005 # Generated by $as_me.
17006 # Run this file to recreate the current configuration.
17007 # Compiler output produced by configure, useful for debugging
17008 # configure, is in config.log if it exists.
17009
17010 debug=false
17011 SHELL=\${CONFIG_SHELL-$SHELL}
17012 _ACEOF
17013
17014 cat >>$CONFIG_STATUS <<\_ACEOF
17015
17016 ## --------------------- ##
17017 ## M4sh Initialization.  ##
17018 ## --------------------- ##
17019
17020 # Be Bourne compatible
17021 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17022   emulate sh
17023   NULLCMD=:
17024 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17025   set -o posix
17026 fi
17027
17028 # NLS nuisances.
17029 # Support unset when possible.
17030 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17031   as_unset=unset
17032 else
17033   as_unset=false
17034 fi
17035
17036 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17037     { $as_unset LANG || test "${LANG+set}" != set; } ||
17038       { LANG=C; export LANG; }
17039 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17040     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17041       { LC_ALL=C; export LC_ALL; }
17042 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17043     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17044       { LC_TIME=C; export LC_TIME; }
17045 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17046     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17047       { LC_CTYPE=C; export LC_CTYPE; }
17048 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17049     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17050       { LANGUAGE=C; export LANGUAGE; }
17051 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17052     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17053       { LC_COLLATE=C; export LC_COLLATE; }
17054 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17055     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17056       { LC_NUMERIC=C; export LC_NUMERIC; }
17057 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17058     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17059       { LC_MESSAGES=C; export LC_MESSAGES; }
17060
17061
17062 # Name of the executable.
17063 as_me=`(basename "$0") 2>/dev/null ||
17064 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17065          X"$0" : 'X\(//\)$' \| \
17066          X"$0" : 'X\(/\)$' \| \
17067          .     : '\(.\)' 2>/dev/null ||
17068 echo X/"$0" |
17069     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17070           /^X\/\(\/\/\)$/{ s//\1/; q; }
17071           /^X\/\(\/\).*/{ s//\1/; q; }
17072           s/.*/./; q'`
17073
17074 # PATH needs CR, and LINENO needs CR and PATH.
17075 # Avoid depending upon Character Ranges.
17076 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17077 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17078 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17079 as_cr_digits='0123456789'
17080 as_cr_alnum=$as_cr_Letters$as_cr_digits
17081
17082 # The user is always right.
17083 if test "${PATH_SEPARATOR+set}" != set; then
17084   echo "#! /bin/sh" >conftest.sh
17085   echo  "exit 0"   >>conftest.sh
17086   chmod +x conftest.sh
17087   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17088     PATH_SEPARATOR=';'
17089   else
17090     PATH_SEPARATOR=:
17091   fi
17092   rm -f conftest.sh
17093 fi
17094
17095
17096   as_lineno_1=$LINENO
17097   as_lineno_2=$LINENO
17098   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17099   test "x$as_lineno_1" != "x$as_lineno_2" &&
17100   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17101   # Find who we are.  Look in the path if we contain no path at all
17102   # relative or not.
17103   case $0 in
17104     *[\\/]* ) as_myself=$0 ;;
17105     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17106 for as_dir in $PATH
17107 do
17108   IFS=$as_save_IFS
17109   test -z "$as_dir" && as_dir=.
17110   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17111 done
17112
17113        ;;
17114   esac
17115   # We did not find ourselves, most probably we were run as `sh COMMAND'
17116   # in which case we are not to be found in the path.
17117   if test "x$as_myself" = x; then
17118     as_myself=$0
17119   fi
17120   if test ! -f "$as_myself"; then
17121     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17122 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17123    { (exit 1); exit 1; }; }
17124   fi
17125   case $CONFIG_SHELL in
17126   '')
17127     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17129 do
17130   IFS=$as_save_IFS
17131   test -z "$as_dir" && as_dir=.
17132   for as_base in sh bash ksh sh5; do
17133          case $as_dir in
17134          /*)
17135            if ("$as_dir/$as_base" -c '
17136   as_lineno_1=$LINENO
17137   as_lineno_2=$LINENO
17138   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17139   test "x$as_lineno_1" != "x$as_lineno_2" &&
17140   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17141              CONFIG_SHELL=$as_dir/$as_base
17142              export CONFIG_SHELL
17143              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17144            fi;;
17145          esac
17146        done
17147 done
17148 ;;
17149   esac
17150
17151   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17152   # uniformly replaced by the line number.  The first 'sed' inserts a
17153   # line-number line before each line; the second 'sed' does the real
17154   # work.  The second script uses 'N' to pair each line-number line
17155   # with the numbered line, and appends trailing '-' during
17156   # substitution so that $LINENO is not a special case at line end.
17157   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17158   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17159   sed '=' <$as_myself |
17160     sed '
17161       N
17162       s,$,-,
17163       : loop
17164       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17165       t loop
17166       s,-$,,
17167       s,^['$as_cr_digits']*\n,,
17168     ' >$as_me.lineno &&
17169   chmod +x $as_me.lineno ||
17170     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17171 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17172    { (exit 1); exit 1; }; }
17173
17174   # Don't try to exec as it changes $[0], causing all sort of problems
17175   # (the dirname of $[0] is not the place where we might find the
17176   # original and so on.  Autoconf is especially sensible to this).
17177   . ./$as_me.lineno
17178   # Exit status is that of the last command.
17179   exit
17180 }
17181
17182
17183 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17184   *c*,-n*) ECHO_N= ECHO_C='
17185 ' ECHO_T='      ' ;;
17186   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17187   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17188 esac
17189
17190 if expr a : '\(a\)' >/dev/null 2>&1; then
17191   as_expr=expr
17192 else
17193   as_expr=false
17194 fi
17195
17196 rm -f conf$$ conf$$.exe conf$$.file
17197 echo >conf$$.file
17198 if ln -s conf$$.file conf$$ 2>/dev/null; then
17199   # We could just check for DJGPP; but this test a) works b) is more generic
17200   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17201   if test -f conf$$.exe; then
17202     # Don't use ln at all; we don't have any links
17203     as_ln_s='cp -p'
17204   else
17205     as_ln_s='ln -s'
17206   fi
17207 elif ln conf$$.file conf$$ 2>/dev/null; then
17208   as_ln_s=ln
17209 else
17210   as_ln_s='cp -p'
17211 fi
17212 rm -f conf$$ conf$$.exe conf$$.file
17213
17214 as_executable_p="test -f"
17215
17216 # Sed expression to map a string onto a valid CPP name.
17217 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17218
17219 # Sed expression to map a string onto a valid variable name.
17220 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17221
17222
17223 # IFS
17224 # We need space, tab and new line, in precisely that order.
17225 as_nl='
17226 '
17227 IFS="   $as_nl"
17228
17229 # CDPATH.
17230 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17231
17232 exec 6>&1
17233
17234 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17235 # report actual input values of CONFIG_FILES etc. instead of their
17236 # values after options handling.  Logging --version etc. is OK.
17237 exec 5>>config.log
17238 {
17239   echo
17240   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17241 ## Running $as_me. ##
17242 _ASBOX
17243 } >&5
17244 cat >&5 <<_CSEOF
17245
17246 This file was extended by PostgreSQL $as_me 7.3devel, which was
17247 generated by GNU Autoconf 2.53.  Invocation command line was
17248
17249   CONFIG_FILES    = $CONFIG_FILES
17250   CONFIG_HEADERS  = $CONFIG_HEADERS
17251   CONFIG_LINKS    = $CONFIG_LINKS
17252   CONFIG_COMMANDS = $CONFIG_COMMANDS
17253   $ $0 $@
17254
17255 _CSEOF
17256 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17257 echo >&5
17258 _ACEOF
17259
17260 # Files that config.status was made for.
17261 if test -n "$ac_config_files"; then
17262   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17263 fi
17264
17265 if test -n "$ac_config_headers"; then
17266   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17267 fi
17268
17269 if test -n "$ac_config_links"; then
17270   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17271 fi
17272
17273 if test -n "$ac_config_commands"; then
17274   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17275 fi
17276
17277 cat >>$CONFIG_STATUS <<\_ACEOF
17278
17279 ac_cs_usage="\
17280 \`$as_me' instantiates files from templates according to the
17281 current configuration.
17282
17283 Usage: $0 [OPTIONS] [FILE]...
17284
17285   -h, --help       print this help, then exit
17286   -V, --version    print version number, then exit
17287   -d, --debug      don't remove temporary files
17288       --recheck    update $as_me by reconfiguring in the same conditions
17289   --file=FILE[:TEMPLATE]
17290                    instantiate the configuration file FILE
17291   --header=FILE[:TEMPLATE]
17292                    instantiate the configuration header FILE
17293
17294 Configuration files:
17295 $config_files
17296
17297 Configuration headers:
17298 $config_headers
17299
17300 Configuration links:
17301 $config_links
17302
17303 Report bugs to <bug-autoconf@gnu.org>."
17304 _ACEOF
17305
17306 cat >>$CONFIG_STATUS <<_ACEOF
17307 ac_cs_version="\\
17308 PostgreSQL config.status 7.3devel
17309 configured by $0, generated by GNU Autoconf 2.53,
17310   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17311
17312 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17313 Free Software Foundation, Inc.
17314 This config.status script is free software; the Free Software Foundation
17315 gives unlimited permission to copy, distribute and modify it."
17316 srcdir=$srcdir
17317 _ACEOF
17318
17319 cat >>$CONFIG_STATUS <<\_ACEOF
17320 # If no file are specified by the user, then we need to provide default
17321 # value.  By we need to know if files were specified by the user.
17322 ac_need_defaults=:
17323 while test $# != 0
17324 do
17325   case $1 in
17326   --*=*)
17327     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17328     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17329     shift
17330     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17331     shift
17332     ;;
17333   -*);;
17334   *) # This is not an option, so the user has probably given explicit
17335      # arguments.
17336      ac_need_defaults=false;;
17337   esac
17338
17339   case $1 in
17340   # Handling of the options.
17341 _ACEOF
17342 cat >>$CONFIG_STATUS <<_ACEOF
17343   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17344     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17345     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17346 _ACEOF
17347 cat >>$CONFIG_STATUS <<\_ACEOF
17348   --version | --vers* | -V )
17349     echo "$ac_cs_version"; exit 0 ;;
17350   --he | --h)
17351     # Conflict between --help and --header
17352     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17353 Try \`$0 --help' for more information." >&5
17354 echo "$as_me: error: ambiguous option: $1
17355 Try \`$0 --help' for more information." >&2;}
17356    { (exit 1); exit 1; }; };;
17357   --help | --hel | -h )
17358     echo "$ac_cs_usage"; exit 0 ;;
17359   --debug | --d* | -d )
17360     debug=: ;;
17361   --file | --fil | --fi | --f )
17362     shift
17363     CONFIG_FILES="$CONFIG_FILES $1"
17364     ac_need_defaults=false;;
17365   --header | --heade | --head | --hea )
17366     shift
17367     CONFIG_HEADERS="$CONFIG_HEADERS $1"
17368     ac_need_defaults=false;;
17369
17370   # This is an error.
17371   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17372 Try \`$0 --help' for more information." >&5
17373 echo "$as_me: error: unrecognized option: $1
17374 Try \`$0 --help' for more information." >&2;}
17375    { (exit 1); exit 1; }; } ;;
17376
17377   *) ac_config_targets="$ac_config_targets $1" ;;
17378
17379   esac
17380   shift
17381 done
17382
17383 _ACEOF
17384
17385
17386
17387
17388
17389 cat >>$CONFIG_STATUS <<\_ACEOF
17390 for ac_config_target in $ac_config_targets
17391 do
17392   case "$ac_config_target" in
17393   # Handling of arguments.
17394   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17395   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17396   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17397   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17398   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
17399   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
17400   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17401   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17402   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17403   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17404   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17405 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17406    { (exit 1); exit 1; }; };;
17407   esac
17408 done
17409
17410 # If the user did not use the arguments to specify the items to instantiate,
17411 # then the envvar interface is used.  Set only those that are not.
17412 # We use the long form for the default assignment because of an extremely
17413 # bizarre bug on SunOS 4.1.3.
17414 if $ac_need_defaults; then
17415   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17416   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17417   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17418 fi
17419
17420 # Create a temporary directory, and hook for its removal unless debugging.
17421 $debug ||
17422 {
17423   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17424   trap '{ (exit 1); exit 1; }' 1 2 13 15
17425 }
17426
17427 # Create a (secure) tmp directory for tmp files.
17428 : ${TMPDIR=/tmp}
17429 {
17430   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17431   test -n "$tmp" && test -d "$tmp"
17432 }  ||
17433 {
17434   tmp=$TMPDIR/cs$$-$RANDOM
17435   (umask 077 && mkdir $tmp)
17436 } ||
17437 {
17438    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17439    { (exit 1); exit 1; }
17440 }
17441
17442 _ACEOF
17443
17444 cat >>$CONFIG_STATUS <<_ACEOF
17445
17446 #
17447 # CONFIG_FILES section.
17448 #
17449
17450 # No need to generate the scripts if there are no CONFIG_FILES.
17451 # This happens for instance when ./config.status config.h
17452 if test -n "\$CONFIG_FILES"; then
17453   # Protect against being on the right side of a sed subst in config.status.
17454   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17455    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17456 s,@SHELL@,$SHELL,;t t
17457 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17458 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17459 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17460 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17461 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17462 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17463 s,@exec_prefix@,$exec_prefix,;t t
17464 s,@prefix@,$prefix,;t t
17465 s,@program_transform_name@,$program_transform_name,;t t
17466 s,@bindir@,$bindir,;t t
17467 s,@sbindir@,$sbindir,;t t
17468 s,@libexecdir@,$libexecdir,;t t
17469 s,@datadir@,$datadir,;t t
17470 s,@sysconfdir@,$sysconfdir,;t t
17471 s,@sharedstatedir@,$sharedstatedir,;t t
17472 s,@localstatedir@,$localstatedir,;t t
17473 s,@libdir@,$libdir,;t t
17474 s,@includedir@,$includedir,;t t
17475 s,@oldincludedir@,$oldincludedir,;t t
17476 s,@infodir@,$infodir,;t t
17477 s,@mandir@,$mandir,;t t
17478 s,@build_alias@,$build_alias,;t t
17479 s,@host_alias@,$host_alias,;t t
17480 s,@target_alias@,$target_alias,;t t
17481 s,@DEFS@,$DEFS,;t t
17482 s,@ECHO_C@,$ECHO_C,;t t
17483 s,@ECHO_N@,$ECHO_N,;t t
17484 s,@ECHO_T@,$ECHO_T,;t t
17485 s,@LIBS@,$LIBS,;t t
17486 s,@docdir@,$docdir,;t t
17487 s,@configure_args@,$configure_args,;t t
17488 s,@build@,$build,;t t
17489 s,@build_cpu@,$build_cpu,;t t
17490 s,@build_vendor@,$build_vendor,;t t
17491 s,@build_os@,$build_os,;t t
17492 s,@host@,$host,;t t
17493 s,@host_cpu@,$host_cpu,;t t
17494 s,@host_vendor@,$host_vendor,;t t
17495 s,@host_os@,$host_os,;t t
17496 s,@PORTNAME@,$PORTNAME,;t t
17497 s,@TAS@,$TAS,;t t
17498 s,@MULTIBYTE@,$MULTIBYTE,;t t
17499 s,@enable_nls@,$enable_nls,;t t
17500 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17501 s,@default_port@,$default_port,;t t
17502 s,@enable_shared@,$enable_shared,;t t
17503 s,@enable_rpath@,$enable_rpath,;t t
17504 s,@enable_debug@,$enable_debug,;t t
17505 s,@CC@,$CC,;t t
17506 s,@CFLAGS@,$CFLAGS,;t t
17507 s,@LDFLAGS@,$LDFLAGS,;t t
17508 s,@CPPFLAGS@,$CPPFLAGS,;t t
17509 s,@ac_ct_CC@,$ac_ct_CC,;t t
17510 s,@EXEEXT@,$EXEEXT,;t t
17511 s,@OBJEXT@,$OBJEXT,;t t
17512 s,@CPP@,$CPP,;t t
17513 s,@GCC@,$GCC,;t t
17514 s,@autodepend@,$autodepend,;t t
17515 s,@INCLUDES@,$INCLUDES,;t t
17516 s,@with_tcl@,$with_tcl,;t t
17517 s,@with_tk@,$with_tk,;t t
17518 s,@with_perl@,$with_perl,;t t
17519 s,@with_python@,$with_python,;t t
17520 s,@ANT@,$ANT,;t t
17521 s,@with_java@,$with_java,;t t
17522 s,@with_krb4@,$with_krb4,;t t
17523 s,@with_krb5@,$with_krb5,;t t
17524 s,@krb_srvtab@,$krb_srvtab,;t t
17525 s,@with_pam@,$with_pam,;t t
17526 s,@with_openssl@,$with_openssl,;t t
17527 s,@enable_odbc@,$enable_odbc,;t t
17528 s,@with_unixodbc@,$with_unixodbc,;t t
17529 s,@with_iodbc@,$with_iodbc,;t t
17530 s,@odbcinst_ini_dir@,$odbcinst_ini_dir,;t t
17531 s,@ELF_SYS@,$ELF_SYS,;t t
17532 s,@CXX@,$CXX,;t t
17533 s,@CXXFLAGS@,$CXXFLAGS,;t t
17534 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17535 s,@CXXCPP@,$CXXCPP,;t t
17536 s,@with_CXX@,$with_CXX,;t t
17537 s,@GXX@,$GXX,;t t
17538 s,@AWK@,$AWK,;t t
17539 s,@FLEX@,$FLEX,;t t
17540 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17541 s,@LN_S@,$LN_S,;t t
17542 s,@LD@,$LD,;t t
17543 s,@with_gnu_ld@,$with_gnu_ld,;t t
17544 s,@ld_R_works@,$ld_R_works,;t t
17545 s,@RANLIB@,$RANLIB,;t t
17546 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17547 s,@LORDER@,$LORDER,;t t
17548 s,@TAR@,$TAR,;t t
17549 s,@STRIP@,$STRIP,;t t
17550 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17551 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17552 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
17553 s,@YACC@,$YACC,;t t
17554 s,@YFLAGS@,$YFLAGS,;t t
17555 s,@WISH@,$WISH,;t t
17556 s,@PERL@,$PERL,;t t
17557 s,@perl_installsitearch@,$perl_installsitearch,;t t
17558 s,@perl_installman3dir@,$perl_installman3dir,;t t
17559 s,@perl_archlibexp@,$perl_archlibexp,;t t
17560 s,@perl_privlibexp@,$perl_privlibexp,;t t
17561 s,@perl_useshrplib@,$perl_useshrplib,;t t
17562 s,@perl_man3ext@,$perl_man3ext,;t t
17563 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
17564 s,@PYTHON@,$PYTHON,;t t
17565 s,@python_version@,$python_version,;t t
17566 s,@python_prefix@,$python_prefix,;t t
17567 s,@python_execprefix@,$python_execprefix,;t t
17568 s,@python_configdir@,$python_configdir,;t t
17569 s,@python_moduledir@,$python_moduledir,;t t
17570 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17571 s,@python_includespec@,$python_includespec,;t t
17572 s,@python_libspec@,$python_libspec,;t t
17573 s,@MEMCMP@,$MEMCMP,;t t
17574 s,@SNPRINTF@,$SNPRINTF,;t t
17575 s,@ISINF@,$ISINF,;t t
17576 s,@GETRUSAGE@,$GETRUSAGE,;t t
17577 s,@SRANDOM@,$SRANDOM,;t t
17578 s,@GETHOSTNAME@,$GETHOSTNAME,;t t
17579 s,@MISSING_RANDOM@,$MISSING_RANDOM,;t t
17580 s,@INET_ATON@,$INET_ATON,;t t
17581 s,@STRERROR@,$STRERROR,;t t
17582 s,@STRDUP@,$STRDUP,;t t
17583 s,@STRTOL@,$STRTOL,;t t
17584 s,@STRTOUL@,$STRTOUL,;t t
17585 s,@STRCASECMP@,$STRCASECMP,;t t
17586 s,@DLLINIT@,$DLLINIT,;t t
17587 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
17588 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
17589 s,@MSGFMT@,$MSGFMT,;t t
17590 s,@MSGMERGE@,$MSGMERGE,;t t
17591 s,@XGETTEXT@,$XGETTEXT,;t t
17592 s,@localedir@,$localedir,;t t
17593 s,@TCLSH@,$TCLSH,;t t
17594 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
17595 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
17596 s,@TCL_LIBS@,$TCL_LIBS,;t t
17597 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
17598 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
17599 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
17600 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
17601 s,@TK_LIBS@,$TK_LIBS,;t t
17602 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
17603 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
17604 s,@NSGMLS@,$NSGMLS,;t t
17605 s,@JADE@,$JADE,;t t
17606 s,@have_docbook@,$have_docbook,;t t
17607 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
17608 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
17609 s,@SGMLSPL@,$SGMLSPL,;t t
17610 s,@vpath_build@,$vpath_build,;t t
17611 CEOF
17612
17613 _ACEOF
17614
17615   cat >>$CONFIG_STATUS <<\_ACEOF
17616   # Split the substitutions into bite-sized pieces for seds with
17617   # small command number limits, like on Digital OSF/1 and HP-UX.
17618   ac_max_sed_lines=48
17619   ac_sed_frag=1 # Number of current file.
17620   ac_beg=1 # First line for current file.
17621   ac_end=$ac_max_sed_lines # Line after last line for current file.
17622   ac_more_lines=:
17623   ac_sed_cmds=
17624   while $ac_more_lines; do
17625     if test $ac_beg -gt 1; then
17626       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17627     else
17628       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17629     fi
17630     if test ! -s $tmp/subs.frag; then
17631       ac_more_lines=false
17632     else
17633       # The purpose of the label and of the branching condition is to
17634       # speed up the sed processing (if there are no `@' at all, there
17635       # is no need to browse any of the substitutions).
17636       # These are the two extra sed commands mentioned above.
17637       (echo ':t
17638   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17639       if test -z "$ac_sed_cmds"; then
17640         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17641       else
17642         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17643       fi
17644       ac_sed_frag=`expr $ac_sed_frag + 1`
17645       ac_beg=$ac_end
17646       ac_end=`expr $ac_end + $ac_max_sed_lines`
17647     fi
17648   done
17649   if test -z "$ac_sed_cmds"; then
17650     ac_sed_cmds=cat
17651   fi
17652 fi # test -n "$CONFIG_FILES"
17653
17654 _ACEOF
17655 cat >>$CONFIG_STATUS <<\_ACEOF
17656 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17657   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17658   case $ac_file in
17659   - | *:- | *:-:* ) # input from stdin
17660         cat >$tmp/stdin
17661         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17662         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17663   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17664         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17665   * )   ac_file_in=$ac_file.in ;;
17666   esac
17667
17668   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17669   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17670 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17671          X"$ac_file" : 'X\(//\)[^/]' \| \
17672          X"$ac_file" : 'X\(//\)$' \| \
17673          X"$ac_file" : 'X\(/\)' \| \
17674          .     : '\(.\)' 2>/dev/null ||
17675 echo X"$ac_file" |
17676     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17677           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17678           /^X\(\/\/\)$/{ s//\1/; q; }
17679           /^X\(\/\).*/{ s//\1/; q; }
17680           s/.*/./; q'`
17681   { case "$ac_dir" in
17682   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17683   *)                      as_incr_dir=.;;
17684 esac
17685 as_dummy="$ac_dir"
17686 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17687   case $as_mkdir_dir in
17688     # Skip DOS drivespec
17689     ?:) as_incr_dir=$as_mkdir_dir ;;
17690     *)
17691       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17692       test -d "$as_incr_dir" ||
17693         mkdir "$as_incr_dir" ||
17694         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17695 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17696    { (exit 1); exit 1; }; }
17697     ;;
17698   esac
17699 done; }
17700
17701   ac_builddir=.
17702
17703 if test "$ac_dir" != .; then
17704   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17705   # A "../" for each directory in $ac_dir_suffix.
17706   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17707 else
17708   ac_dir_suffix= ac_top_builddir=
17709 fi
17710
17711 case $srcdir in
17712   .)  # No --srcdir option.  We are building in place.
17713     ac_srcdir=.
17714     if test -z "$ac_top_builddir"; then
17715        ac_top_srcdir=.
17716     else
17717        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17718     fi ;;
17719   [\\/]* | ?:[\\/]* )  # Absolute path.
17720     ac_srcdir=$srcdir$ac_dir_suffix;
17721     ac_top_srcdir=$srcdir ;;
17722   *) # Relative path.
17723     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17724     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17725 esac
17726 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17727 # absolute.
17728 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17729 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17730 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17731 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17732
17733
17734
17735   if test x"$ac_file" != x-; then
17736     { echo "$as_me:$LINENO: creating $ac_file" >&5
17737 echo "$as_me: creating $ac_file" >&6;}
17738     rm -f "$ac_file"
17739   fi
17740   # Let's still pretend it is `configure' which instantiates (i.e., don't
17741   # use $as_me), people would be surprised to read:
17742   #    /* config.h.  Generated by config.status.  */
17743   if test x"$ac_file" = x-; then
17744     configure_input=
17745   else
17746     configure_input="$ac_file.  "
17747   fi
17748   configure_input=$configure_input"Generated from `echo $ac_file_in |
17749                                      sed 's,.*/,,'` by configure."
17750
17751   # First look for the input files in the build tree, otherwise in the
17752   # src tree.
17753   ac_file_inputs=`IFS=:
17754     for f in $ac_file_in; do
17755       case $f in
17756       -) echo $tmp/stdin ;;
17757       [\\/$]*)
17758          # Absolute (can't be DOS-style, as IFS=:)
17759          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17760 echo "$as_me: error: cannot find input file: $f" >&2;}
17761    { (exit 1); exit 1; }; }
17762          echo $f;;
17763       *) # Relative
17764          if test -f "$f"; then
17765            # Build tree
17766            echo $f
17767          elif test -f "$srcdir/$f"; then
17768            # Source tree
17769            echo $srcdir/$f
17770          else
17771            # /dev/null tree
17772            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17773 echo "$as_me: error: cannot find input file: $f" >&2;}
17774    { (exit 1); exit 1; }; }
17775          fi;;
17776       esac
17777     done` || { (exit 1); exit 1; }
17778 _ACEOF
17779 cat >>$CONFIG_STATUS <<_ACEOF
17780   sed "$ac_vpsub
17781 $extrasub
17782 _ACEOF
17783 cat >>$CONFIG_STATUS <<\_ACEOF
17784 :t
17785 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17786 s,@configure_input@,$configure_input,;t t
17787 s,@srcdir@,$ac_srcdir,;t t
17788 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17789 s,@top_srcdir@,$ac_top_srcdir,;t t
17790 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17791 s,@builddir@,$ac_builddir,;t t
17792 s,@abs_builddir@,$ac_abs_builddir,;t t
17793 s,@top_builddir@,$ac_top_builddir,;t t
17794 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17795 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17796   rm -f $tmp/stdin
17797   if test x"$ac_file" != x-; then
17798     mv $tmp/out $ac_file
17799   else
17800     cat $tmp/out
17801     rm -f $tmp/out
17802   fi
17803
17804 done
17805 _ACEOF
17806 cat >>$CONFIG_STATUS <<\_ACEOF
17807
17808 #
17809 # CONFIG_HEADER section.
17810 #
17811
17812 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17813 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17814 #
17815 # ac_d sets the value in "#define NAME VALUE" lines.
17816 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
17817 ac_dB='[        ].*$,\1#\2'
17818 ac_dC=' '
17819 ac_dD=',;t'
17820 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17821 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17822 ac_uB='$,\1#\2define\3'
17823 ac_uC=' '
17824 ac_uD=',;t'
17825
17826 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17827   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17828   case $ac_file in
17829   - | *:- | *:-:* ) # input from stdin
17830         cat >$tmp/stdin
17831         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17832         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17833   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17834         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17835   * )   ac_file_in=$ac_file.in ;;
17836   esac
17837
17838   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17839 echo "$as_me: creating $ac_file" >&6;}
17840
17841   # First look for the input files in the build tree, otherwise in the
17842   # src tree.
17843   ac_file_inputs=`IFS=:
17844     for f in $ac_file_in; do
17845       case $f in
17846       -) echo $tmp/stdin ;;
17847       [\\/$]*)
17848          # Absolute (can't be DOS-style, as IFS=:)
17849          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17850 echo "$as_me: error: cannot find input file: $f" >&2;}
17851    { (exit 1); exit 1; }; }
17852          echo $f;;
17853       *) # Relative
17854          if test -f "$f"; then
17855            # Build tree
17856            echo $f
17857          elif test -f "$srcdir/$f"; then
17858            # Source tree
17859            echo $srcdir/$f
17860          else
17861            # /dev/null tree
17862            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17863 echo "$as_me: error: cannot find input file: $f" >&2;}
17864    { (exit 1); exit 1; }; }
17865          fi;;
17866       esac
17867     done` || { (exit 1); exit 1; }
17868   # Remove the trailing spaces.
17869   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
17870
17871 _ACEOF
17872
17873 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17874 # `conftest.undefs', that substitutes the proper values into
17875 # config.h.in to produce config.h.  The first handles `#define'
17876 # templates, and the second `#undef' templates.
17877 # And first: Protect against being on the right side of a sed subst in
17878 # config.status.  Protect against being in an unquoted here document
17879 # in config.status.
17880 rm -f conftest.defines conftest.undefs
17881 # Using a here document instead of a string reduces the quoting nightmare.
17882 # Putting comments in sed scripts is not portable.
17883 #
17884 # `end' is used to avoid that the second main sed command (meant for
17885 # 0-ary CPP macros) applies to n-ary macro definitions.
17886 # See the Autoconf documentation for `clear'.
17887 cat >confdef2sed.sed <<\_ACEOF
17888 s/[\\&,]/\\&/g
17889 s,[\\$`],\\&,g
17890 t clear
17891 : clear
17892 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17893 t end
17894 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17895 : end
17896 _ACEOF
17897 # If some macros were called several times there might be several times
17898 # the same #defines, which is useless.  Nevertheless, we may not want to
17899 # sort them, since we want the *last* AC-DEFINE to be honored.
17900 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17901 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17902 rm -f confdef2sed.sed
17903
17904 # This sed command replaces #undef with comments.  This is necessary, for
17905 # example, in the case of _POSIX_SOURCE, which is predefined and required
17906 # on some systems where configure will not decide to define it.
17907 cat >>conftest.undefs <<\_ACEOF
17908 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17909 _ACEOF
17910
17911 # Break up conftest.defines because some shells have a limit on the size
17912 # of here documents, and old seds have small limits too (100 cmds).
17913 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17914 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17915 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17916 echo '  :' >>$CONFIG_STATUS
17917 rm -f conftest.tail
17918 while grep . conftest.defines >/dev/null
17919 do
17920   # Write a limited-size here document to $tmp/defines.sed.
17921   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17922   # Speed up: don't consider the non `#define' lines.
17923   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
17924   # Work around the forget-to-reset-the-flag bug.
17925   echo 't clr' >>$CONFIG_STATUS
17926   echo ': clr' >>$CONFIG_STATUS
17927   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17928   echo 'CEOF
17929   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17930   rm -f $tmp/in
17931   mv $tmp/out $tmp/in
17932 ' >>$CONFIG_STATUS
17933   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17934   rm -f conftest.defines
17935   mv conftest.tail conftest.defines
17936 done
17937 rm -f conftest.defines
17938 echo '  fi # egrep' >>$CONFIG_STATUS
17939 echo >>$CONFIG_STATUS
17940
17941 # Break up conftest.undefs because some shells have a limit on the size
17942 # of here documents, and old seds have small limits too (100 cmds).
17943 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17944 rm -f conftest.tail
17945 while grep . conftest.undefs >/dev/null
17946 do
17947   # Write a limited-size here document to $tmp/undefs.sed.
17948   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17949   # Speed up: don't consider the non `#undef'
17950   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17951   # Work around the forget-to-reset-the-flag bug.
17952   echo 't clr' >>$CONFIG_STATUS
17953   echo ': clr' >>$CONFIG_STATUS
17954   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17955   echo 'CEOF
17956   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17957   rm -f $tmp/in
17958   mv $tmp/out $tmp/in
17959 ' >>$CONFIG_STATUS
17960   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17961   rm -f conftest.undefs
17962   mv conftest.tail conftest.undefs
17963 done
17964 rm -f conftest.undefs
17965
17966 cat >>$CONFIG_STATUS <<\_ACEOF
17967   # Let's still pretend it is `configure' which instantiates (i.e., don't
17968   # use $as_me), people would be surprised to read:
17969   #    /* config.h.  Generated by config.status.  */
17970   if test x"$ac_file" = x-; then
17971     echo "/* Generated by configure.  */" >$tmp/config.h
17972   else
17973     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17974   fi
17975   cat $tmp/in >>$tmp/config.h
17976   rm -f $tmp/in
17977   if test x"$ac_file" != x-; then
17978     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17979       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17980 echo "$as_me: $ac_file is unchanged" >&6;}
17981     else
17982       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17983 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17984          X"$ac_file" : 'X\(//\)[^/]' \| \
17985          X"$ac_file" : 'X\(//\)$' \| \
17986          X"$ac_file" : 'X\(/\)' \| \
17987          .     : '\(.\)' 2>/dev/null ||
17988 echo X"$ac_file" |
17989     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17990           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17991           /^X\(\/\/\)$/{ s//\1/; q; }
17992           /^X\(\/\).*/{ s//\1/; q; }
17993           s/.*/./; q'`
17994       { case "$ac_dir" in
17995   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17996   *)                      as_incr_dir=.;;
17997 esac
17998 as_dummy="$ac_dir"
17999 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18000   case $as_mkdir_dir in
18001     # Skip DOS drivespec
18002     ?:) as_incr_dir=$as_mkdir_dir ;;
18003     *)
18004       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18005       test -d "$as_incr_dir" ||
18006         mkdir "$as_incr_dir" ||
18007         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18008 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18009    { (exit 1); exit 1; }; }
18010     ;;
18011   esac
18012 done; }
18013
18014       rm -f $ac_file
18015       mv $tmp/config.h $ac_file
18016     fi
18017   else
18018     cat $tmp/config.h
18019     rm -f $tmp/config.h
18020   fi
18021   # Run the commands associated with the file.
18022   case $ac_file in
18023     src/include/pg_config.h )
18024 # Update timestamp for pg_config.h (see Makefile.global)
18025 echo >src/include/stamp-h
18026  ;;
18027   esac
18028 done
18029 _ACEOF
18030 cat >>$CONFIG_STATUS <<\_ACEOF
18031
18032 #
18033 # CONFIG_LINKS section.
18034 #
18035
18036 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18037   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18038   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18039
18040   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18041 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18042
18043   if test ! -r $srcdir/$ac_source; then
18044     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18045 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18046    { (exit 1); exit 1; }; }
18047   fi
18048   rm -f $ac_dest
18049
18050   # Make relative symlinks.
18051   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18052 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18053          X"$ac_dest" : 'X\(//\)[^/]' \| \
18054          X"$ac_dest" : 'X\(//\)$' \| \
18055          X"$ac_dest" : 'X\(/\)' \| \
18056          .     : '\(.\)' 2>/dev/null ||
18057 echo X"$ac_dest" |
18058     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18059           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18060           /^X\(\/\/\)$/{ s//\1/; q; }
18061           /^X\(\/\).*/{ s//\1/; q; }
18062           s/.*/./; q'`
18063   { case "$ac_dest_dir" in
18064   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18065   *)                      as_incr_dir=.;;
18066 esac
18067 as_dummy="$ac_dest_dir"
18068 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18069   case $as_mkdir_dir in
18070     # Skip DOS drivespec
18071     ?:) as_incr_dir=$as_mkdir_dir ;;
18072     *)
18073       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18074       test -d "$as_incr_dir" ||
18075         mkdir "$as_incr_dir" ||
18076         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18077 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18078    { (exit 1); exit 1; }; }
18079     ;;
18080   esac
18081 done; }
18082
18083   ac_builddir=.
18084
18085 if test "$ac_dest_dir" != .; then
18086   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18087   # A "../" for each directory in $ac_dir_suffix.
18088   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18089 else
18090   ac_dir_suffix= ac_top_builddir=
18091 fi
18092
18093 case $srcdir in
18094   .)  # No --srcdir option.  We are building in place.
18095     ac_srcdir=.
18096     if test -z "$ac_top_builddir"; then
18097        ac_top_srcdir=.
18098     else
18099        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18100     fi ;;
18101   [\\/]* | ?:[\\/]* )  # Absolute path.
18102     ac_srcdir=$srcdir$ac_dir_suffix;
18103     ac_top_srcdir=$srcdir ;;
18104   *) # Relative path.
18105     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18106     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18107 esac
18108 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18109 # absolute.
18110 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18111 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18112 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18113 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18114
18115
18116   case $srcdir in
18117   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18118       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18119   esac
18120
18121   # Make a symlink if possible; otherwise try a hard link.
18122   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18123     ln $srcdir/$ac_source $ac_dest ||
18124     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18125 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18126    { (exit 1); exit 1; }; }
18127 done
18128 _ACEOF
18129
18130 cat >>$CONFIG_STATUS <<\_ACEOF
18131
18132 { (exit 0); exit 0; }
18133 _ACEOF
18134 chmod +x $CONFIG_STATUS
18135 ac_clean_files=$ac_clean_files_save
18136
18137
18138 # configure is writing to config.log, and then calls config.status.
18139 # config.status does its own redirection, appending to config.log.
18140 # Unfortunately, on DOS this fails, as config.log is still kept open
18141 # by configure, so config.status won't be able to write to it; its
18142 # output is simply discarded.  So we exec the FD to /dev/null,
18143 # effectively closing config.log, so it can be properly (re)opened and
18144 # appended to by config.status.  When coming back to configure, we
18145 # need to make the FD available again.
18146 if test "$no_create" != yes; then
18147   ac_cs_success=:
18148   exec 5>/dev/null
18149   $SHELL $CONFIG_STATUS || ac_cs_success=false
18150   exec 5>>config.log
18151   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18152   # would make configure fail if this is the last instruction.
18153   $ac_cs_success || { (exit 1); exit 1; }
18154 fi
18155