]> granicus.if.org Git - postgresql/blob - configure
Add WIN32 pipe implementation that uses sockets.
[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.5devel.
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 2003 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.5devel'
262 PACKAGE_STRING='PostgreSQL 7.5devel'
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 infodir='${prefix}/info'
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   -infodir | --infodir | --infodi | --infod | --info | --inf)
440     ac_prev=infodir ;;
441   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
442     infodir=$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 infodir 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_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
761 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
762 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
763 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
764
765 #
766 # Report the --help message.
767 #
768 if test "$ac_init_help" = "long"; then
769   # Omit some internal or obsolete options to make the list less imposing.
770   # This message is too long to be a string in the A/UX 3.1 sh.
771   cat <<_ACEOF
772 \`configure' configures PostgreSQL 7.5devel to adapt to many kinds of systems.
773
774 Usage: $0 [OPTION]... [VAR=VALUE]...
775
776 To assign environment variables (e.g., CC, CFLAGS...), specify them as
777 VAR=VALUE.  See below for descriptions of some of the useful variables.
778
779 Defaults for the options are specified in brackets.
780
781 Configuration:
782   -h, --help              display this help and exit
783       --help=short        display options specific to this package
784       --help=recursive    display the short help of all the included packages
785   -V, --version           display version information and exit
786   -q, --quiet, --silent   do not print \`checking...' messages
787       --cache-file=FILE   cache test results in FILE [disabled]
788   -C, --config-cache      alias for \`--cache-file=config.cache'
789   -n, --no-create         do not create output files
790       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
791
792 _ACEOF
793
794   cat <<_ACEOF
795 Installation directories:
796   --prefix=PREFIX         install architecture-independent files in PREFIX
797                           [$ac_default_prefix]
798   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
799                           [PREFIX]
800
801 By default, \`make install' will install all the files in
802 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
803 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
804 for instance \`--prefix=\$HOME'.
805
806 For better control, use the options below.
807
808 Fine tuning of the installation directories:
809   --bindir=DIR           user executables [EPREFIX/bin]
810   --sbindir=DIR          system admin executables [EPREFIX/sbin]
811   --libexecdir=DIR       program executables [EPREFIX/libexec]
812   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
813   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
814   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
815   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
816   --libdir=DIR           object code libraries [EPREFIX/lib]
817   --includedir=DIR       C header files [PREFIX/include]
818   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
819   --infodir=DIR          info documentation [PREFIX/info]
820   --mandir=DIR           man documentation [PREFIX/man]
821 _ACEOF
822
823   cat <<\_ACEOF
824
825 System types:
826   --build=BUILD     configure for building on BUILD [guessed]
827   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
828 _ACEOF
829 fi
830
831 if test -n "$ac_init_help"; then
832   case $ac_init_help in
833      short | recursive ) echo "Configuration of PostgreSQL 7.5devel:";;
834    esac
835   cat <<\_ACEOF
836
837 Optional Features:
838   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
839   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
840   --enable-integer-datetimes  enable 64-bit integer date/time support
841   --enable-nls[=LANGUAGES]  enable Native Language Support
842   --disable-shared        do not build shared libraries
843   --disable-rpath         do not embed shared library search path in executables
844   --disable-spinlocks     do not use spinlocks
845   --enable-debug          build with debugging symbols (-g)
846   --enable-depend         turn on automatic dependency tracking
847   --enable-cassert        enable assertion checks (for debugging)
848   --enable-thread-safety  make client libraries thread-safe
849   --disable-largefile     omit support for large files
850
851 Optional Packages:
852   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
853   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
854
855   --with-docdir=DIR       install the documentation in DIR [PREFIX/doc]
856   --without-docdir        do not install the documentation
857   --with-includes=DIRS    look for additional header files in DIRS
858   --with-libraries=DIRS   look for additional libraries in DIRS
859   --with-libs=DIRS        alternative spelling of --with-libraries
860   --with-pgport=PORTNUM   change default port number 5432
861   --with-tcl              build Tcl and Tk interfaces
862   --without-tk            do not build Tk interfaces if Tcl is enabled
863   --with-tclconfig=DIR    tclConfig.sh and tkConfig.sh are in DIR
864   --with-tkconfig=DIR     tkConfig.sh is in DIR
865   --with-perl             build Perl modules (PL/Perl)
866   --with-python           build Python modules (PL/Python)
867   --with-java             build JDBC interface and Java tools
868   --with-krb4             build with Kerberos 4 support
869   --with-krb5             build with Kerberos 5 support
870   --with-krb-srvnam=NAME  name of the service principal in Kerberos [postgres]
871   --with-pam              build with PAM support
872   --with-rendezvous       build with Rendezvous support
873   --with-openssl          build with OpenSSL support
874   --without-readline      do not use Readline
875   --without-zlib          do not use Zlib
876   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
877
878 Some influential environment variables:
879   CC          C compiler command
880   CFLAGS      C compiler flags
881   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
882               nonstandard directory <lib dir>
883   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
884               headers in a nonstandard directory <include dir>
885   CPP         C preprocessor
886   DOCBOOKSTYLE
887               location of DocBook stylesheets
888
889 Use these variables to override the choices made by `configure' or to help
890 it to find libraries and programs with nonstandard names/locations.
891
892 Report bugs to <pgsql-bugs@postgresql.org>.
893 _ACEOF
894 fi
895
896 if test "$ac_init_help" = "recursive"; then
897   # If there are subdirs, report their specific --help.
898   ac_popdir=`pwd`
899   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
900     test -d $ac_dir || continue
901     ac_builddir=.
902
903 if test "$ac_dir" != .; then
904   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
905   # A "../" for each directory in $ac_dir_suffix.
906   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
907 else
908   ac_dir_suffix= ac_top_builddir=
909 fi
910
911 case $srcdir in
912   .)  # No --srcdir option.  We are building in place.
913     ac_srcdir=.
914     if test -z "$ac_top_builddir"; then
915        ac_top_srcdir=.
916     else
917        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
918     fi ;;
919   [\\/]* | ?:[\\/]* )  # Absolute path.
920     ac_srcdir=$srcdir$ac_dir_suffix;
921     ac_top_srcdir=$srcdir ;;
922   *) # Relative path.
923     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
924     ac_top_srcdir=$ac_top_builddir$srcdir ;;
925 esac
926 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
927 # absolute.
928 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
929 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
930 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
931 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
932
933     cd $ac_dir
934     # Check for guested configure; otherwise get Cygnus style configure.
935     if test -f $ac_srcdir/configure.gnu; then
936       echo
937       $SHELL $ac_srcdir/configure.gnu  --help=recursive
938     elif test -f $ac_srcdir/configure; then
939       echo
940       $SHELL $ac_srcdir/configure  --help=recursive
941     elif test -f $ac_srcdir/configure.ac ||
942            test -f $ac_srcdir/configure.in; then
943       echo
944       $ac_configure --help
945     else
946       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
947     fi
948     cd $ac_popdir
949   done
950 fi
951
952 test -n "$ac_init_help" && exit 0
953 if $ac_init_version; then
954   cat <<\_ACEOF
955 PostgreSQL configure 7.5devel
956 generated by GNU Autoconf 2.53
957
958 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
959 Free Software Foundation, Inc.
960 This configure script is free software; the Free Software Foundation
961 gives unlimited permission to copy, distribute and modify it.
962
963 Copyright 2003 PostgreSQL Global Development Group
964 _ACEOF
965   exit 0
966 fi
967 exec 5>config.log
968 cat >&5 <<_ACEOF
969 This file contains any messages produced by compilers while
970 running configure, to aid debugging if configure makes a mistake.
971
972 It was created by PostgreSQL $as_me 7.5devel, which was
973 generated by GNU Autoconf 2.53.  Invocation command line was
974
975   $ $0 $@
976
977 _ACEOF
978 {
979 cat <<_ASUNAME
980 ## --------- ##
981 ## Platform. ##
982 ## --------- ##
983
984 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
985 uname -m = `(uname -m) 2>/dev/null || echo unknown`
986 uname -r = `(uname -r) 2>/dev/null || echo unknown`
987 uname -s = `(uname -s) 2>/dev/null || echo unknown`
988 uname -v = `(uname -v) 2>/dev/null || echo unknown`
989
990 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
991 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
992
993 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
994 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
995 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
996 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
997 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
998 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
999 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1000
1001 _ASUNAME
1002
1003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1004 for as_dir in $PATH
1005 do
1006   IFS=$as_save_IFS
1007   test -z "$as_dir" && as_dir=.
1008   echo "PATH: $as_dir"
1009 done
1010
1011 } >&5
1012
1013 cat >&5 <<_ACEOF
1014
1015
1016 ## ----------- ##
1017 ## Core tests. ##
1018 ## ----------- ##
1019
1020 _ACEOF
1021
1022
1023 # Keep a trace of the command line.
1024 # Strip out --no-create and --no-recursion so they do not pile up.
1025 # Also quote any args containing shell meta-characters.
1026 ac_configure_args=
1027 ac_sep=
1028 for ac_arg
1029 do
1030   case $ac_arg in
1031   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032   | --no-cr | --no-c | -n ) continue ;;
1033   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035     continue ;;
1036   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1037     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1038   esac
1039   case " $ac_configure_args " in
1040     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1041     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1042        ac_sep=" " ;;
1043   esac
1044   # Get rid of the leading space.
1045 done
1046
1047 # When interrupted or exit'd, cleanup temporary files, and complete
1048 # config.log.  We remove comments because anyway the quotes in there
1049 # would cause problems or look ugly.
1050 # WARNING: Be sure not to use single quotes in there, as some shells,
1051 # such as our DU 5.0 friend, will then `close' the trap.
1052 trap 'exit_status=$?
1053   # Save into config.log some information that might help in debugging.
1054   {
1055     echo
1056     cat <<\_ASBOX
1057 ## ---------------- ##
1058 ## Cache variables. ##
1059 ## ---------------- ##
1060 _ASBOX
1061     echo
1062     # The following way of writing the cache mishandles newlines in values,
1063 {
1064   (set) 2>&1 |
1065     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1066     *ac_space=\ *)
1067       sed -n \
1068         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1069           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1070       ;;
1071     *)
1072       sed -n \
1073         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1074       ;;
1075     esac;
1076 }
1077     echo
1078     if test -s confdefs.h; then
1079       cat <<\_ASBOX
1080 ## ----------- ##
1081 ## confdefs.h. ##
1082 ## ----------- ##
1083 _ASBOX
1084       echo
1085       sed "/^$/d" confdefs.h
1086       echo
1087     fi
1088     test "$ac_signal" != 0 &&
1089       echo "$as_me: caught signal $ac_signal"
1090     echo "$as_me: exit $exit_status"
1091   } >&5
1092   rm -f core core.* *.core &&
1093   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1094     exit $exit_status
1095      ' 0
1096 for ac_signal in 1 2 13 15; do
1097   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1098 done
1099 ac_signal=0
1100
1101 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1102 rm -rf conftest* confdefs.h
1103 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1104 echo >confdefs.h
1105
1106 # Predefined preprocessor variables.
1107
1108 cat >>confdefs.h <<_ACEOF
1109 #define PACKAGE_NAME "$PACKAGE_NAME"
1110 _ACEOF
1111
1112
1113 cat >>confdefs.h <<_ACEOF
1114 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1115 _ACEOF
1116
1117
1118 cat >>confdefs.h <<_ACEOF
1119 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1120 _ACEOF
1121
1122
1123 cat >>confdefs.h <<_ACEOF
1124 #define PACKAGE_STRING "$PACKAGE_STRING"
1125 _ACEOF
1126
1127
1128 cat >>confdefs.h <<_ACEOF
1129 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1130 _ACEOF
1131
1132
1133 # Let the site file select an alternate cache file if it wants to.
1134 # Prefer explicitly selected file to automatically selected ones.
1135 if test -z "$CONFIG_SITE"; then
1136   if test "x$prefix" != xNONE; then
1137     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1138   else
1139     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1140   fi
1141 fi
1142 for ac_site_file in $CONFIG_SITE; do
1143   if test -r "$ac_site_file"; then
1144     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1145 echo "$as_me: loading site script $ac_site_file" >&6;}
1146     sed 's/^/| /' "$ac_site_file" >&5
1147     . "$ac_site_file"
1148   fi
1149 done
1150
1151 if test -r "$cache_file"; then
1152   # Some versions of bash will fail to source /dev/null (special
1153   # files actually), so we avoid doing that.
1154   if test -f "$cache_file"; then
1155     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1156 echo "$as_me: loading cache $cache_file" >&6;}
1157     case $cache_file in
1158       [\\/]* | ?:[\\/]* ) . $cache_file;;
1159       *)                      . ./$cache_file;;
1160     esac
1161   fi
1162 else
1163   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1164 echo "$as_me: creating cache $cache_file" >&6;}
1165   >$cache_file
1166 fi
1167
1168 # Check that the precious variables saved in the cache have kept the same
1169 # value.
1170 ac_cache_corrupted=false
1171 for ac_var in `(set) 2>&1 |
1172                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1173   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1174   eval ac_new_set=\$ac_env_${ac_var}_set
1175   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1176   eval ac_new_val="\$ac_env_${ac_var}_value"
1177   case $ac_old_set,$ac_new_set in
1178     set,)
1179       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1180 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1181       ac_cache_corrupted=: ;;
1182     ,set)
1183       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1184 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1185       ac_cache_corrupted=: ;;
1186     ,);;
1187     *)
1188       if test "x$ac_old_val" != "x$ac_new_val"; then
1189         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1190 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1191         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1192 echo "$as_me:   former value:  $ac_old_val" >&2;}
1193         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1194 echo "$as_me:   current value: $ac_new_val" >&2;}
1195         ac_cache_corrupted=:
1196       fi;;
1197   esac
1198   # Pass precious variables to config.status.
1199   if test "$ac_new_set" = set; then
1200     case $ac_new_val in
1201     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1202       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1203     *) ac_arg=$ac_var=$ac_new_val ;;
1204     esac
1205     case " $ac_configure_args " in
1206       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1207       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1208     esac
1209   fi
1210 done
1211 if $ac_cache_corrupted; then
1212   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1213 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1214   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1215 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1216    { (exit 1); exit 1; }; }
1217 fi
1218
1219 ac_ext=c
1220 ac_cpp='$CPP $CPPFLAGS'
1221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254 ac_aux_dir=
1255 for ac_dir in config $srcdir/config; do
1256   if test -f $ac_dir/install-sh; then
1257     ac_aux_dir=$ac_dir
1258     ac_install_sh="$ac_aux_dir/install-sh -c"
1259     break
1260   elif test -f $ac_dir/install.sh; then
1261     ac_aux_dir=$ac_dir
1262     ac_install_sh="$ac_aux_dir/install.sh -c"
1263     break
1264   elif test -f $ac_dir/shtool; then
1265     ac_aux_dir=$ac_dir
1266     ac_install_sh="$ac_aux_dir/shtool install -c"
1267     break
1268   fi
1269 done
1270 if test -z "$ac_aux_dir"; then
1271   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1272 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1273    { (exit 1); exit 1; }; }
1274 fi
1275 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1276 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1277 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1278
1279
1280 configure_args=$ac_configure_args
1281
1282
1283
1284 cat >>confdefs.h <<_ACEOF
1285 #define PG_VERSION "$PACKAGE_VERSION"
1286 _ACEOF
1287
1288
1289 # Make sure we can run config.sub.
1290 $ac_config_sub sun4 >/dev/null 2>&1 ||
1291   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1292 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1293    { (exit 1); exit 1; }; }
1294
1295 echo "$as_me:$LINENO: checking build system type" >&5
1296 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1297 if test "${ac_cv_build+set}" = set; then
1298   echo $ECHO_N "(cached) $ECHO_C" >&6
1299 else
1300   ac_cv_build_alias=$build_alias
1301 test -z "$ac_cv_build_alias" &&
1302   ac_cv_build_alias=`$ac_config_guess`
1303 test -z "$ac_cv_build_alias" &&
1304   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1305 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1306    { (exit 1); exit 1; }; }
1307 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1308   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1309 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1310    { (exit 1); exit 1; }; }
1311
1312 fi
1313 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1314 echo "${ECHO_T}$ac_cv_build" >&6
1315 build=$ac_cv_build
1316 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1317 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1318 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1319
1320
1321 echo "$as_me:$LINENO: checking host system type" >&5
1322 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1323 if test "${ac_cv_host+set}" = set; then
1324   echo $ECHO_N "(cached) $ECHO_C" >&6
1325 else
1326   ac_cv_host_alias=$host_alias
1327 test -z "$ac_cv_host_alias" &&
1328   ac_cv_host_alias=$ac_cv_build_alias
1329 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1330   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1331 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1332    { (exit 1); exit 1; }; }
1333
1334 fi
1335 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1336 echo "${ECHO_T}$ac_cv_host" >&6
1337 host=$ac_cv_host
1338 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1339 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1340 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1341
1342
1343
1344 template=
1345 echo "$as_me:$LINENO: checking which template to use" >&5
1346 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1347
1348
1349
1350
1351 # Check whether --with-template or --without-template was given.
1352 if test "${with_template+set}" = set; then
1353   withval="$with_template"
1354
1355   case $withval in
1356     yes)
1357       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1358 echo "$as_me: error: argument required for --with-template option" >&2;}
1359    { (exit 1); exit 1; }; }
1360       ;;
1361     no)
1362       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1363 echo "$as_me: error: argument required for --with-template option" >&2;}
1364    { (exit 1); exit 1; }; }
1365       ;;
1366     *)
1367
1368   case $withval in
1369     list)   echo; ls "$srcdir/src/template"; exit;;
1370     *)      if test -f "$srcdir/src/template/$with_template" ; then
1371               template=$withval
1372             else
1373               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1374 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1375    { (exit 1); exit 1; }; }
1376             fi;;
1377   esac
1378
1379       ;;
1380   esac
1381
1382 else
1383
1384 # --with-template not given
1385
1386 case $host_os in
1387      aix*) template=aix ;;
1388     beos*) template=beos ;;
1389     bsdi*) template=bsdi ;;
1390   cygwin*) template=cygwin ;;
1391   darwin*) template=darwin ;;
1392     dgux*) template=dgux ;;
1393  freebsd*) template=freebsd ;;
1394     hpux*) template=hpux ;;
1395     irix*) template=irix5 ;;
1396    linux*) template=linux ;;
1397    mingw*) template=win32 ;;
1398   netbsd*) template=netbsd ;;
1399 nextstep*) template=nextstep ;;
1400  openbsd*) template=openbsd ;;
1401      osf*) template=osf ;;
1402      qnx*) template=qnx4 ;;
1403      sco*) template=sco ;;
1404  solaris*) template=solaris ;;
1405    sunos*) template=sunos4 ;;
1406  sysv4.2*)
1407         case $host_vendor in
1408           univel) template=univel ;;
1409         esac ;;
1410    sysv4*) template=svr4 ;;
1411    sysv5*) template=unixware ;;
1412   ultrix*) template=ultrix4 ;;
1413 esac
1414
1415   if test x"$template" = x"" ; then
1416     { { echo "$as_me:$LINENO: error:
1417 *******************************************************************
1418 PostgreSQL has apparently not been ported to your platform yet.
1419 To try a manual configuration, look into the src/template directory
1420 for a similar platform and use the '--with-template=' option.
1421
1422 Please also contact <pgsql-ports@postgresql.org> to see about
1423 rectifying this.  Include the above 'checking host system type...'
1424 line.
1425 *******************************************************************
1426 " >&5
1427 echo "$as_me: error:
1428 *******************************************************************
1429 PostgreSQL has apparently not been ported to your platform yet.
1430 To try a manual configuration, look into the src/template directory
1431 for a similar platform and use the '--with-template=' option.
1432
1433 Please also contact <pgsql-ports@postgresql.org> to see about
1434 rectifying this.  Include the above 'checking host system type...'
1435 line.
1436 *******************************************************************
1437 " >&2;}
1438    { (exit 1); exit 1; }; }
1439   fi
1440
1441
1442 fi;
1443
1444
1445 echo "$as_me:$LINENO: result: $template" >&5
1446 echo "${ECHO_T}$template" >&6
1447
1448 PORTNAME=$template
1449
1450
1451 # Initialize default assumption that we do not need separate assembly code
1452 # for TAS (test-and-set).  This can be overridden by the template file
1453 # when it's executed.
1454 need_tas=no
1455 tas_file=dummy.s
1456
1457
1458
1459 ##
1460 ## Command line options
1461 ##
1462
1463 #
1464 # Installation directory for documentation
1465 #
1466
1467
1468
1469 # Check whether --with-docdir or --without-docdir was given.
1470 if test "${with_docdir+set}" = set; then
1471   withval="$with_docdir"
1472
1473   case $withval in
1474     yes)
1475       { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1476 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1477    { (exit 1); exit 1; }; }
1478       ;;
1479     no)
1480       docdir=
1481       ;;
1482     *)
1483       docdir=$withval
1484       ;;
1485   esac
1486
1487 else
1488   docdir='${prefix}/doc'
1489 fi;
1490
1491
1492
1493
1494 #
1495 # Add non-standard directories to the include path
1496 #
1497
1498
1499
1500 # Check whether --with-includes or --without-includes was given.
1501 if test "${with_includes+set}" = set; then
1502   withval="$with_includes"
1503
1504   case $withval in
1505     yes)
1506       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1507 echo "$as_me: error: argument required for --with-includes option" >&2;}
1508    { (exit 1); exit 1; }; }
1509       ;;
1510     no)
1511       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1512 echo "$as_me: error: argument required for --with-includes option" >&2;}
1513    { (exit 1); exit 1; }; }
1514       ;;
1515     *)
1516
1517       ;;
1518   esac
1519
1520 fi;
1521
1522
1523
1524 #
1525 # Add non-standard directories to the library search path
1526 #
1527
1528
1529
1530 # Check whether --with-libraries or --without-libraries was given.
1531 if test "${with_libraries+set}" = set; then
1532   withval="$with_libraries"
1533
1534   case $withval in
1535     yes)
1536       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1537 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1538    { (exit 1); exit 1; }; }
1539       ;;
1540     no)
1541       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1542 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1543    { (exit 1); exit 1; }; }
1544       ;;
1545     *)
1546       LIBRARY_DIRS=$withval
1547       ;;
1548   esac
1549
1550 fi;
1551
1552
1553
1554
1555
1556 # Check whether --with-libs or --without-libs was given.
1557 if test "${with_libs+set}" = set; then
1558   withval="$with_libs"
1559
1560   case $withval in
1561     yes)
1562       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1563 echo "$as_me: error: argument required for --with-libs option" >&2;}
1564    { (exit 1); exit 1; }; }
1565       ;;
1566     no)
1567       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1568 echo "$as_me: error: argument required for --with-libs option" >&2;}
1569    { (exit 1); exit 1; }; }
1570       ;;
1571     *)
1572       LIBRARY_DIRS=$withval
1573       ;;
1574   esac
1575
1576 fi;
1577
1578
1579
1580 #
1581 # 64-bit integer date/time storage (--enable-integer-datetimes)
1582 #
1583 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1584 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1585
1586
1587 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1588 if test "${enable_integer_datetimes+set}" = set; then
1589   enableval="$enable_integer_datetimes"
1590
1591   case $enableval in
1592     yes)
1593
1594 cat >>confdefs.h <<\_ACEOF
1595 #define USE_INTEGER_DATETIMES 1
1596 _ACEOF
1597
1598       ;;
1599     no)
1600       :
1601       ;;
1602     *)
1603       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1604 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1605    { (exit 1); exit 1; }; }
1606       ;;
1607   esac
1608
1609 else
1610   enable_integer_datetimes=no
1611
1612 fi;
1613
1614 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1615 echo "${ECHO_T}$enable_integer_datetimes" >&6
1616
1617
1618 #
1619 # NLS
1620 #
1621 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1622 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1623
1624
1625 # Check whether --enable-nls or --disable-nls was given.
1626 if test "${enable_nls+set}" = set; then
1627   enableval="$enable_nls"
1628
1629   case $enableval in
1630     yes)
1631       :
1632       ;;
1633     no)
1634       :
1635       ;;
1636     *)
1637       enable_nls=yes
1638 WANTED_LANGUAGES=$enableval
1639       ;;
1640   esac
1641
1642 else
1643   enable_nls=no
1644 fi;
1645
1646
1647 if test "$enable_nls" = yes; then
1648
1649 cat >>confdefs.h <<\_ACEOF
1650 #define ENABLE_NLS 1
1651 _ACEOF
1652
1653 fi
1654
1655 echo "$as_me:$LINENO: result: $enable_nls" >&5
1656 echo "${ECHO_T}$enable_nls" >&6
1657
1658
1659
1660 #
1661 # Default port number (--with-pgport), default 5432
1662 #
1663 echo "$as_me:$LINENO: checking for default port number" >&5
1664 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1665
1666
1667
1668 # Check whether --with-pgport or --without-pgport was given.
1669 if test "${with_pgport+set}" = set; then
1670   withval="$with_pgport"
1671
1672   case $withval in
1673     yes)
1674       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1675 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1676    { (exit 1); exit 1; }; }
1677       ;;
1678     no)
1679       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1680 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1681    { (exit 1); exit 1; }; }
1682       ;;
1683     *)
1684       default_port=$withval
1685       ;;
1686   esac
1687
1688 else
1689   default_port=5432
1690 fi;
1691
1692 echo "$as_me:$LINENO: result: $default_port" >&5
1693 echo "${ECHO_T}$default_port" >&6
1694 # Need both of these because some places want an integer and some a string
1695
1696 cat >>confdefs.h <<_ACEOF
1697 #define DEF_PGPORT ${default_port}
1698 _ACEOF
1699
1700
1701 cat >>confdefs.h <<_ACEOF
1702 #define DEF_PGPORT_STR "${default_port}"
1703 _ACEOF
1704
1705
1706
1707 #
1708 # Option to disable shared libraries
1709 #
1710
1711
1712 # Check whether --enable-shared or --disable-shared was given.
1713 if test "${enable_shared+set}" = set; then
1714   enableval="$enable_shared"
1715
1716   case $enableval in
1717     yes)
1718       :
1719       ;;
1720     no)
1721       :
1722       ;;
1723     *)
1724       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1725 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1726    { (exit 1); exit 1; }; }
1727       ;;
1728   esac
1729
1730 else
1731   enable_shared=yes
1732
1733 fi;
1734
1735
1736
1737 #
1738 # '-rpath'-like feature can be disabled
1739 #
1740
1741
1742 # Check whether --enable-rpath or --disable-rpath was given.
1743 if test "${enable_rpath+set}" = set; then
1744   enableval="$enable_rpath"
1745
1746   case $enableval in
1747     yes)
1748       :
1749       ;;
1750     no)
1751       :
1752       ;;
1753     *)
1754       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1755 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1756    { (exit 1); exit 1; }; }
1757       ;;
1758   esac
1759
1760 else
1761   enable_rpath=yes
1762
1763 fi;
1764
1765
1766
1767 #
1768 # Spinlocks
1769 #
1770
1771
1772 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1773 if test "${enable_spinlocks+set}" = set; then
1774   enableval="$enable_spinlocks"
1775
1776   case $enableval in
1777     yes)
1778       :
1779       ;;
1780     no)
1781       :
1782       ;;
1783     *)
1784       { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1785 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1786    { (exit 1); exit 1; }; }
1787       ;;
1788   esac
1789
1790 else
1791   enable_spinlocks=yes
1792
1793 fi;
1794
1795
1796 #
1797 # --enable-debug adds -g to compiler flags
1798 #
1799
1800
1801 # Check whether --enable-debug or --disable-debug was given.
1802 if test "${enable_debug+set}" = set; then
1803   enableval="$enable_debug"
1804
1805   case $enableval in
1806     yes)
1807       :
1808       ;;
1809     no)
1810       :
1811       ;;
1812     *)
1813       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1814 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1815    { (exit 1); exit 1; }; }
1816       ;;
1817   esac
1818
1819 else
1820   enable_debug=no
1821
1822 fi;
1823
1824
1825
1826 #
1827 # C compiler
1828 #
1829
1830 # For historical reasons you can also use --with-CC to specify the C compiler
1831 # to use, although the standard way to do this is to set the CC environment
1832 # variable.
1833
1834
1835
1836 # Check whether --with-CC or --without-CC was given.
1837 if test "${with_CC+set}" = set; then
1838   withval="$with_CC"
1839
1840   case $withval in
1841     yes)
1842       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1843 echo "$as_me: error: argument required for --with-CC option" >&2;}
1844    { (exit 1); exit 1; }; }
1845       ;;
1846     no)
1847       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1848 echo "$as_me: error: argument required for --with-CC option" >&2;}
1849    { (exit 1); exit 1; }; }
1850       ;;
1851     *)
1852       CC=$with_CC
1853       ;;
1854   esac
1855
1856 fi;
1857
1858
1859 case $template in
1860   aix) pgac_cc_list="gcc xlc";;
1861  irix) pgac_cc_list="cc";; # no gcc
1862     *) pgac_cc_list="gcc cc";;
1863 esac
1864
1865 ac_ext=c
1866 ac_cpp='$CPP $CPPFLAGS'
1867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1870 if test -n "$ac_tool_prefix"; then
1871   for ac_prog in $pgac_cc_list
1872   do
1873     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1874 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1875 echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877 if test "${ac_cv_prog_CC+set}" = set; then
1878   echo $ECHO_N "(cached) $ECHO_C" >&6
1879 else
1880   if test -n "$CC"; then
1881   ac_cv_prog_CC="$CC" # Let the user override the test.
1882 else
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 for as_dir in $PATH
1885 do
1886   IFS=$as_save_IFS
1887   test -z "$as_dir" && as_dir=.
1888   for ac_exec_ext in '' $ac_executable_extensions; do
1889   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892     break 2
1893   fi
1894 done
1895 done
1896
1897 fi
1898 fi
1899 CC=$ac_cv_prog_CC
1900 if test -n "$CC"; then
1901   echo "$as_me:$LINENO: result: $CC" >&5
1902 echo "${ECHO_T}$CC" >&6
1903 else
1904   echo "$as_me:$LINENO: result: no" >&5
1905 echo "${ECHO_T}no" >&6
1906 fi
1907
1908     test -n "$CC" && break
1909   done
1910 fi
1911 if test -z "$CC"; then
1912   ac_ct_CC=$CC
1913   for ac_prog in $pgac_cc_list
1914 do
1915   # Extract the first word of "$ac_prog", so it can be a program name with args.
1916 set dummy $ac_prog; ac_word=$2
1917 echo "$as_me:$LINENO: checking for $ac_word" >&5
1918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1919 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1920   echo $ECHO_N "(cached) $ECHO_C" >&6
1921 else
1922   if test -n "$ac_ct_CC"; then
1923   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1924 else
1925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926 for as_dir in $PATH
1927 do
1928   IFS=$as_save_IFS
1929   test -z "$as_dir" && as_dir=.
1930   for ac_exec_ext in '' $ac_executable_extensions; do
1931   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1932     ac_cv_prog_ac_ct_CC="$ac_prog"
1933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934     break 2
1935   fi
1936 done
1937 done
1938
1939 fi
1940 fi
1941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1942 if test -n "$ac_ct_CC"; then
1943   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1944 echo "${ECHO_T}$ac_ct_CC" >&6
1945 else
1946   echo "$as_me:$LINENO: result: no" >&5
1947 echo "${ECHO_T}no" >&6
1948 fi
1949
1950   test -n "$ac_ct_CC" && break
1951 done
1952
1953   CC=$ac_ct_CC
1954 fi
1955
1956
1957 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1958 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1959    { (exit 1); exit 1; }; }
1960
1961 # Provide some information about the compiler.
1962 echo "$as_me:$LINENO:" \
1963      "checking for C compiler version" >&5
1964 ac_compiler=`set X $ac_compile; echo $2`
1965 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1966   (eval $ac_compiler --version </dev/null >&5) 2>&5
1967   ac_status=$?
1968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969   (exit $ac_status); }
1970 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1971   (eval $ac_compiler -v </dev/null >&5) 2>&5
1972   ac_status=$?
1973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974   (exit $ac_status); }
1975 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1976   (eval $ac_compiler -V </dev/null >&5) 2>&5
1977   ac_status=$?
1978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979   (exit $ac_status); }
1980
1981 cat >conftest.$ac_ext <<_ACEOF
1982 #line $LINENO "configure"
1983 #include "confdefs.h"
1984
1985 #ifdef F77_DUMMY_MAIN
1986 #  ifdef __cplusplus
1987      extern "C"
1988 #  endif
1989    int F77_DUMMY_MAIN() { return 1; }
1990 #endif
1991 int
1992 main ()
1993 {
1994
1995   ;
1996   return 0;
1997 }
1998 _ACEOF
1999 ac_clean_files_save=$ac_clean_files
2000 ac_clean_files="$ac_clean_files a.out a.exe"
2001 # Try to create an executable without -o first, disregard a.out.
2002 # It will help us diagnose broken compilers, and finding out an intuition
2003 # of exeext.
2004 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2005 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2006 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2007 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2008   (eval $ac_link_default) 2>&5
2009   ac_status=$?
2010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011   (exit $ac_status); }; then
2012   # Find the output, starting from the most likely.  This scheme is
2013 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2014 # resort.
2015
2016 # Be careful to initialize this variable, since it used to be cached.
2017 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2018 ac_cv_exeext=
2019 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2020                 ls a.out conftest 2>/dev/null;
2021                 ls a.* conftest.* 2>/dev/null`; do
2022   case $ac_file in
2023     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2024     a.out ) # We found the default executable, but exeext='' is most
2025             # certainly right.
2026             break;;
2027     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2028           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2029           export ac_cv_exeext
2030           break;;
2031     * ) break;;
2032   esac
2033 done
2034 else
2035   echo "$as_me: failed program was:" >&5
2036 cat conftest.$ac_ext >&5
2037 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2038 echo "$as_me: error: C compiler cannot create executables" >&2;}
2039    { (exit 77); exit 77; }; }
2040 fi
2041
2042 ac_exeext=$ac_cv_exeext
2043 echo "$as_me:$LINENO: result: $ac_file" >&5
2044 echo "${ECHO_T}$ac_file" >&6
2045
2046 # Check the compiler produces executables we can run.  If not, either
2047 # the compiler is broken, or we cross compile.
2048 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2049 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2050 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2051 # If not cross compiling, check that we can run a simple program.
2052 if test "$cross_compiling" != yes; then
2053   if { ac_try='./$ac_file'
2054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2055   (eval $ac_try) 2>&5
2056   ac_status=$?
2057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058   (exit $ac_status); }; }; then
2059     cross_compiling=no
2060   else
2061     if test "$cross_compiling" = maybe; then
2062         cross_compiling=yes
2063     else
2064         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2065 If you meant to cross compile, use \`--host'." >&5
2066 echo "$as_me: error: cannot run C compiled programs.
2067 If you meant to cross compile, use \`--host'." >&2;}
2068    { (exit 1); exit 1; }; }
2069     fi
2070   fi
2071 fi
2072 echo "$as_me:$LINENO: result: yes" >&5
2073 echo "${ECHO_T}yes" >&6
2074
2075 rm -f a.out a.exe conftest$ac_cv_exeext
2076 ac_clean_files=$ac_clean_files_save
2077 # Check the compiler produces executables we can run.  If not, either
2078 # the compiler is broken, or we cross compile.
2079 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2080 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2081 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2082 echo "${ECHO_T}$cross_compiling" >&6
2083
2084 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2085 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2087   (eval $ac_link) 2>&5
2088   ac_status=$?
2089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090   (exit $ac_status); }; then
2091   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2092 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2093 # work properly (i.e., refer to `conftest.exe'), while it won't with
2094 # `rm'.
2095 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2096   case $ac_file in
2097     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2098     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2099           export ac_cv_exeext
2100           break;;
2101     * ) break;;
2102   esac
2103 done
2104 else
2105   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2106 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2107    { (exit 1); exit 1; }; }
2108 fi
2109
2110 rm -f conftest$ac_cv_exeext
2111 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2112 echo "${ECHO_T}$ac_cv_exeext" >&6
2113
2114 rm -f conftest.$ac_ext
2115 EXEEXT=$ac_cv_exeext
2116 ac_exeext=$EXEEXT
2117 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2118 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2119 if test "${ac_cv_objext+set}" = set; then
2120   echo $ECHO_N "(cached) $ECHO_C" >&6
2121 else
2122   cat >conftest.$ac_ext <<_ACEOF
2123 #line $LINENO "configure"
2124 #include "confdefs.h"
2125
2126 #ifdef F77_DUMMY_MAIN
2127 #  ifdef __cplusplus
2128      extern "C"
2129 #  endif
2130    int F77_DUMMY_MAIN() { return 1; }
2131 #endif
2132 int
2133 main ()
2134 {
2135
2136   ;
2137   return 0;
2138 }
2139 _ACEOF
2140 rm -f conftest.o conftest.obj
2141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142   (eval $ac_compile) 2>&5
2143   ac_status=$?
2144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145   (exit $ac_status); }; then
2146   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2147   case $ac_file in
2148     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2149     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2150        break;;
2151   esac
2152 done
2153 else
2154   echo "$as_me: failed program was:" >&5
2155 cat conftest.$ac_ext >&5
2156 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2157 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2158    { (exit 1); exit 1; }; }
2159 fi
2160
2161 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2162 fi
2163 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2164 echo "${ECHO_T}$ac_cv_objext" >&6
2165 OBJEXT=$ac_cv_objext
2166 ac_objext=$OBJEXT
2167 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2168 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2169 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2170   echo $ECHO_N "(cached) $ECHO_C" >&6
2171 else
2172   cat >conftest.$ac_ext <<_ACEOF
2173 #line $LINENO "configure"
2174 #include "confdefs.h"
2175
2176 #ifdef F77_DUMMY_MAIN
2177 #  ifdef __cplusplus
2178      extern "C"
2179 #  endif
2180    int F77_DUMMY_MAIN() { return 1; }
2181 #endif
2182 int
2183 main ()
2184 {
2185 #ifndef __GNUC__
2186        choke me
2187 #endif
2188
2189   ;
2190   return 0;
2191 }
2192 _ACEOF
2193 rm -f conftest.$ac_objext
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195   (eval $ac_compile) 2>&5
2196   ac_status=$?
2197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198   (exit $ac_status); } &&
2199          { ac_try='test -s conftest.$ac_objext'
2200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2201   (eval $ac_try) 2>&5
2202   ac_status=$?
2203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204   (exit $ac_status); }; }; then
2205   ac_compiler_gnu=yes
2206 else
2207   echo "$as_me: failed program was:" >&5
2208 cat conftest.$ac_ext >&5
2209 ac_compiler_gnu=no
2210 fi
2211 rm -f conftest.$ac_objext conftest.$ac_ext
2212 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2213
2214 fi
2215 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2216 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2217 GCC=`test $ac_compiler_gnu = yes && echo yes`
2218 ac_test_CFLAGS=${CFLAGS+set}
2219 ac_save_CFLAGS=$CFLAGS
2220 CFLAGS="-g"
2221 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2222 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2223 if test "${ac_cv_prog_cc_g+set}" = set; then
2224   echo $ECHO_N "(cached) $ECHO_C" >&6
2225 else
2226   cat >conftest.$ac_ext <<_ACEOF
2227 #line $LINENO "configure"
2228 #include "confdefs.h"
2229
2230 #ifdef F77_DUMMY_MAIN
2231 #  ifdef __cplusplus
2232      extern "C"
2233 #  endif
2234    int F77_DUMMY_MAIN() { return 1; }
2235 #endif
2236 int
2237 main ()
2238 {
2239
2240   ;
2241   return 0;
2242 }
2243 _ACEOF
2244 rm -f conftest.$ac_objext
2245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2246   (eval $ac_compile) 2>&5
2247   ac_status=$?
2248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249   (exit $ac_status); } &&
2250          { ac_try='test -s conftest.$ac_objext'
2251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2252   (eval $ac_try) 2>&5
2253   ac_status=$?
2254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255   (exit $ac_status); }; }; then
2256   ac_cv_prog_cc_g=yes
2257 else
2258   echo "$as_me: failed program was:" >&5
2259 cat conftest.$ac_ext >&5
2260 ac_cv_prog_cc_g=no
2261 fi
2262 rm -f conftest.$ac_objext conftest.$ac_ext
2263 fi
2264 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2265 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2266 if test "$ac_test_CFLAGS" = set; then
2267   CFLAGS=$ac_save_CFLAGS
2268 elif test $ac_cv_prog_cc_g = yes; then
2269   if test "$GCC" = yes; then
2270     CFLAGS="-g -O2"
2271   else
2272     CFLAGS="-g"
2273   fi
2274 else
2275   if test "$GCC" = yes; then
2276     CFLAGS="-O2"
2277   else
2278     CFLAGS=
2279   fi
2280 fi
2281 # Some people use a C++ compiler to compile C.  Since we use `exit',
2282 # in C++ we need to declare it.  In case someone uses the same compiler
2283 # for both compiling C and C++ we need to have the C++ compiler decide
2284 # the declaration of exit, since it's the most demanding environment.
2285 cat >conftest.$ac_ext <<_ACEOF
2286 #ifndef __cplusplus
2287   choke me
2288 #endif
2289 _ACEOF
2290 rm -f conftest.$ac_objext
2291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2292   (eval $ac_compile) 2>&5
2293   ac_status=$?
2294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295   (exit $ac_status); } &&
2296          { ac_try='test -s conftest.$ac_objext'
2297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298   (eval $ac_try) 2>&5
2299   ac_status=$?
2300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301   (exit $ac_status); }; }; then
2302   for ac_declaration in \
2303    ''\
2304    '#include <stdlib.h>' \
2305    'extern "C" void std::exit (int) throw (); using std::exit;' \
2306    'extern "C" void std::exit (int); using std::exit;' \
2307    'extern "C" void exit (int) throw ();' \
2308    'extern "C" void exit (int);' \
2309    'void exit (int);'
2310 do
2311   cat >conftest.$ac_ext <<_ACEOF
2312 #line $LINENO "configure"
2313 #include "confdefs.h"
2314 #include <stdlib.h>
2315 $ac_declaration
2316 #ifdef F77_DUMMY_MAIN
2317 #  ifdef __cplusplus
2318      extern "C"
2319 #  endif
2320    int F77_DUMMY_MAIN() { return 1; }
2321 #endif
2322 int
2323 main ()
2324 {
2325 exit (42);
2326   ;
2327   return 0;
2328 }
2329 _ACEOF
2330 rm -f conftest.$ac_objext
2331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332   (eval $ac_compile) 2>&5
2333   ac_status=$?
2334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335   (exit $ac_status); } &&
2336          { ac_try='test -s conftest.$ac_objext'
2337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338   (eval $ac_try) 2>&5
2339   ac_status=$?
2340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341   (exit $ac_status); }; }; then
2342   :
2343 else
2344   echo "$as_me: failed program was:" >&5
2345 cat conftest.$ac_ext >&5
2346 continue
2347 fi
2348 rm -f conftest.$ac_objext conftest.$ac_ext
2349   cat >conftest.$ac_ext <<_ACEOF
2350 #line $LINENO "configure"
2351 #include "confdefs.h"
2352 $ac_declaration
2353 #ifdef F77_DUMMY_MAIN
2354 #  ifdef __cplusplus
2355      extern "C"
2356 #  endif
2357    int F77_DUMMY_MAIN() { return 1; }
2358 #endif
2359 int
2360 main ()
2361 {
2362 exit (42);
2363   ;
2364   return 0;
2365 }
2366 _ACEOF
2367 rm -f conftest.$ac_objext
2368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2369   (eval $ac_compile) 2>&5
2370   ac_status=$?
2371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372   (exit $ac_status); } &&
2373          { ac_try='test -s conftest.$ac_objext'
2374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375   (eval $ac_try) 2>&5
2376   ac_status=$?
2377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378   (exit $ac_status); }; }; then
2379   break
2380 else
2381   echo "$as_me: failed program was:" >&5
2382 cat conftest.$ac_ext >&5
2383 fi
2384 rm -f conftest.$ac_objext conftest.$ac_ext
2385 done
2386 rm -f conftest*
2387 if test -n "$ac_declaration"; then
2388   echo '#ifdef __cplusplus' >>confdefs.h
2389   echo $ac_declaration      >>confdefs.h
2390   echo '#endif'             >>confdefs.h
2391 fi
2392
2393 else
2394   echo "$as_me: failed program was:" >&5
2395 cat conftest.$ac_ext >&5
2396 fi
2397 rm -f conftest.$ac_objext conftest.$ac_ext
2398 ac_ext=c
2399 ac_cpp='$CPP $CPPFLAGS'
2400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2403
2404
2405 unset CFLAGS
2406
2407 #
2408 # Read the template
2409 #
2410 . "$srcdir/src/template/$template" || exit
2411
2412 # CFLAGS are selected so:
2413 # If the user specifies something in the environment, that is used.
2414 # else:  If the template file set something, that is used.
2415 # else:  If the compiler is GCC, then we use -O2.
2416 # else:  If the compiler is something else, then we use -0.
2417
2418 if test "$ac_env_CFLAGS_set" = set; then
2419   CFLAGS=$ac_env_CFLAGS_value
2420 elif test "${CFLAGS+set}" = set; then
2421   : # (keep what template set)
2422 elif test "$GCC" = yes; then
2423   CFLAGS="-O2"
2424 else
2425   # if the user selected debug mode, don't use -O
2426   if test "$enable_debug" != yes; then
2427     CFLAGS="-O"
2428   fi
2429 fi
2430
2431 # Need to specify -fno-strict-aliasing too in case it's gcc 3.3 or later.
2432 echo "$as_me:$LINENO: checking how to turn off strict aliasing in $CC" >&5
2433 echo $ECHO_N "checking how to turn off strict aliasing in $CC... $ECHO_C" >&6
2434 if test "${pgac_cv_prog_cc_no_strict_aliasing+set}" = set; then
2435   echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437   pgac_save_CFLAGS=$CFLAGS
2438 if test "$GCC" = yes; then
2439   pgac_try="-fno-strict-aliasing"
2440 else
2441   # Maybe fill in later...
2442   pgac_try=
2443 fi
2444
2445 for pgac_flag in $pgac_try; do
2446   CFLAGS="$pgac_save_CFLAGS $pgac_flag"
2447   cat >conftest.$ac_ext <<_ACEOF
2448 #line $LINENO "configure"
2449 #include "confdefs.h"
2450
2451 #ifdef F77_DUMMY_MAIN
2452 #  ifdef __cplusplus
2453      extern "C"
2454 #  endif
2455    int F77_DUMMY_MAIN() { return 1; }
2456 #endif
2457 int
2458 main ()
2459 {
2460
2461   ;
2462   return 0;
2463 }
2464 _ACEOF
2465 rm -f conftest.$ac_objext
2466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467   (eval $ac_compile) 2>&5
2468   ac_status=$?
2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470   (exit $ac_status); } &&
2471          { ac_try='test -s conftest.$ac_objext'
2472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473   (eval $ac_try) 2>&5
2474   ac_status=$?
2475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476   (exit $ac_status); }; }; then
2477   pgac_cv_prog_cc_no_strict_aliasing=$pgac_try
2478 break
2479 else
2480   echo "$as_me: failed program was:" >&5
2481 cat conftest.$ac_ext >&5
2482 fi
2483 rm -f conftest.$ac_objext conftest.$ac_ext
2484 done
2485
2486 CFLAGS=$pgac_save_CFLAGS
2487
2488 fi
2489 echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_no_strict_aliasing" >&5
2490 echo "${ECHO_T}$pgac_cv_prog_cc_no_strict_aliasing" >&6
2491
2492 if test "$ac_env_CFLAGS_set" != set; then
2493   CFLAGS="$CFLAGS $pgac_cv_prog_cc_no_strict_aliasing"
2494 fi
2495
2496 # supply -g if --enable-debug
2497 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2498   CFLAGS="$CFLAGS -g"
2499 fi
2500
2501 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2502 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2503
2504 # We already have this in Makefile.win32, but configure needs it too
2505 if test "$PORTNAME" = "win32"; then
2506   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32"
2507 fi
2508
2509 # Check if the compiler still works with the template settings
2510 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2511 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2512
2513 cat >conftest.$ac_ext <<_ACEOF
2514 #line $LINENO "configure"
2515 #include "confdefs.h"
2516
2517 #ifdef F77_DUMMY_MAIN
2518 #  ifdef __cplusplus
2519      extern "C"
2520 #  endif
2521    int F77_DUMMY_MAIN() { return 1; }
2522 #endif
2523 int
2524 main ()
2525 {
2526 return 0;
2527   ;
2528   return 0;
2529 }
2530 _ACEOF
2531 rm -f conftest.$ac_objext conftest$ac_exeext
2532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2533   (eval $ac_link) 2>&5
2534   ac_status=$?
2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536   (exit $ac_status); } &&
2537          { ac_try='test -s conftest$ac_exeext'
2538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539   (eval $ac_try) 2>&5
2540   ac_status=$?
2541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542   (exit $ac_status); }; }; then
2543   echo "$as_me:$LINENO: result: yes" >&5
2544 echo "${ECHO_T}yes" >&6
2545 else
2546   echo "$as_me: failed program was:" >&5
2547 cat conftest.$ac_ext >&5
2548 echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6
2550    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2551 echo "$as_me: error: cannot proceed" >&2;}
2552    { (exit 1); exit 1; }; }
2553 fi
2554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2555
2556 # Defend against gcc -ffast-math
2557 if test "$GCC" = yes; then
2558 cat >conftest.$ac_ext <<_ACEOF
2559 #line $LINENO "configure"
2560 #include "confdefs.h"
2561
2562 #ifdef F77_DUMMY_MAIN
2563 #  ifdef __cplusplus
2564      extern "C"
2565 #  endif
2566    int F77_DUMMY_MAIN() { return 1; }
2567 #endif
2568 int
2569 main ()
2570 {
2571 #ifdef __FAST_MATH__
2572 choke me
2573 #endif
2574   ;
2575   return 0;
2576 }
2577 _ACEOF
2578 rm -f conftest.$ac_objext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580   (eval $ac_compile) 2>&5
2581   ac_status=$?
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); } &&
2584          { ac_try='test -s conftest.$ac_objext'
2585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586   (eval $ac_try) 2>&5
2587   ac_status=$?
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); }; }; then
2590   :
2591 else
2592   echo "$as_me: failed program was:" >&5
2593 cat conftest.$ac_ext >&5
2594 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2595 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2596    { (exit 1); exit 1; }; }
2597 fi
2598 rm -f conftest.$ac_objext conftest.$ac_ext
2599 fi
2600
2601 ac_ext=c
2602 ac_cpp='$CPP $CPPFLAGS'
2603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2607 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2608 # On Suns, sometimes $CPP names a directory.
2609 if test -n "$CPP" && test -d "$CPP"; then
2610   CPP=
2611 fi
2612 if test -z "$CPP"; then
2613   if test "${ac_cv_prog_CPP+set}" = set; then
2614   echo $ECHO_N "(cached) $ECHO_C" >&6
2615 else
2616       # Double quotes because CPP needs to be expanded
2617     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2618     do
2619       ac_preproc_ok=false
2620 for ac_c_preproc_warn_flag in '' yes
2621 do
2622   # Use a header file that comes with gcc, so configuring glibc
2623   # with a fresh cross-compiler works.
2624   # On the NeXT, cc -E runs the code through the compiler's parser,
2625   # not just through cpp. "Syntax error" is here to catch this case.
2626   cat >conftest.$ac_ext <<_ACEOF
2627 #line $LINENO "configure"
2628 #include "confdefs.h"
2629 #include <assert.h>
2630                      Syntax error
2631 _ACEOF
2632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2633   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2634   ac_status=$?
2635   egrep -v '^ *\+' conftest.er1 >conftest.err
2636   rm -f conftest.er1
2637   cat conftest.err >&5
2638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639   (exit $ac_status); } >/dev/null; then
2640   if test -s conftest.err; then
2641     ac_cpp_err=$ac_c_preproc_warn_flag
2642   else
2643     ac_cpp_err=
2644   fi
2645 else
2646   ac_cpp_err=yes
2647 fi
2648 if test -z "$ac_cpp_err"; then
2649   :
2650 else
2651   echo "$as_me: failed program was:" >&5
2652   cat conftest.$ac_ext >&5
2653   # Broken: fails on valid input.
2654 continue
2655 fi
2656 rm -f conftest.err conftest.$ac_ext
2657
2658   # OK, works on sane cases.  Now check whether non-existent headers
2659   # can be detected and how.
2660   cat >conftest.$ac_ext <<_ACEOF
2661 #line $LINENO "configure"
2662 #include "confdefs.h"
2663 #include <ac_nonexistent.h>
2664 _ACEOF
2665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2666   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2667   ac_status=$?
2668   egrep -v '^ *\+' conftest.er1 >conftest.err
2669   rm -f conftest.er1
2670   cat conftest.err >&5
2671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672   (exit $ac_status); } >/dev/null; then
2673   if test -s conftest.err; then
2674     ac_cpp_err=$ac_c_preproc_warn_flag
2675   else
2676     ac_cpp_err=
2677   fi
2678 else
2679   ac_cpp_err=yes
2680 fi
2681 if test -z "$ac_cpp_err"; then
2682   # Broken: success on invalid input.
2683 continue
2684 else
2685   echo "$as_me: failed program was:" >&5
2686   cat conftest.$ac_ext >&5
2687   # Passes both tests.
2688 ac_preproc_ok=:
2689 break
2690 fi
2691 rm -f conftest.err conftest.$ac_ext
2692
2693 done
2694 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2695 rm -f conftest.err conftest.$ac_ext
2696 if $ac_preproc_ok; then
2697   break
2698 fi
2699
2700     done
2701     ac_cv_prog_CPP=$CPP
2702
2703 fi
2704   CPP=$ac_cv_prog_CPP
2705 else
2706   ac_cv_prog_CPP=$CPP
2707 fi
2708 echo "$as_me:$LINENO: result: $CPP" >&5
2709 echo "${ECHO_T}$CPP" >&6
2710 ac_preproc_ok=false
2711 for ac_c_preproc_warn_flag in '' yes
2712 do
2713   # Use a header file that comes with gcc, so configuring glibc
2714   # with a fresh cross-compiler works.
2715   # On the NeXT, cc -E runs the code through the compiler's parser,
2716   # not just through cpp. "Syntax error" is here to catch this case.
2717   cat >conftest.$ac_ext <<_ACEOF
2718 #line $LINENO "configure"
2719 #include "confdefs.h"
2720 #include <assert.h>
2721                      Syntax error
2722 _ACEOF
2723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2724   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2725   ac_status=$?
2726   egrep -v '^ *\+' conftest.er1 >conftest.err
2727   rm -f conftest.er1
2728   cat conftest.err >&5
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); } >/dev/null; then
2731   if test -s conftest.err; then
2732     ac_cpp_err=$ac_c_preproc_warn_flag
2733   else
2734     ac_cpp_err=
2735   fi
2736 else
2737   ac_cpp_err=yes
2738 fi
2739 if test -z "$ac_cpp_err"; then
2740   :
2741 else
2742   echo "$as_me: failed program was:" >&5
2743   cat conftest.$ac_ext >&5
2744   # Broken: fails on valid input.
2745 continue
2746 fi
2747 rm -f conftest.err conftest.$ac_ext
2748
2749   # OK, works on sane cases.  Now check whether non-existent headers
2750   # can be detected and how.
2751   cat >conftest.$ac_ext <<_ACEOF
2752 #line $LINENO "configure"
2753 #include "confdefs.h"
2754 #include <ac_nonexistent.h>
2755 _ACEOF
2756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2757   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2758   ac_status=$?
2759   egrep -v '^ *\+' conftest.er1 >conftest.err
2760   rm -f conftest.er1
2761   cat conftest.err >&5
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); } >/dev/null; then
2764   if test -s conftest.err; then
2765     ac_cpp_err=$ac_c_preproc_warn_flag
2766   else
2767     ac_cpp_err=
2768   fi
2769 else
2770   ac_cpp_err=yes
2771 fi
2772 if test -z "$ac_cpp_err"; then
2773   # Broken: success on invalid input.
2774 continue
2775 else
2776   echo "$as_me: failed program was:" >&5
2777   cat conftest.$ac_ext >&5
2778   # Passes both tests.
2779 ac_preproc_ok=:
2780 break
2781 fi
2782 rm -f conftest.err conftest.$ac_ext
2783
2784 done
2785 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2786 rm -f conftest.err conftest.$ac_ext
2787 if $ac_preproc_ok; then
2788   :
2789 else
2790   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2791 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2792    { (exit 1); exit 1; }; }
2793 fi
2794
2795 ac_ext=c
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800
2801
2802
2803 # Create compiler version string
2804 if test x"$GCC" = x"yes" ; then
2805   cc_string="GCC `${CC} --version | sed q`"
2806 else
2807   cc_string=$CC
2808 fi
2809
2810 cat >>confdefs.h <<_ACEOF
2811 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2812 _ACEOF
2813
2814
2815
2816 #
2817 # Set up TAS assembly code if needed; the template file has now had its
2818 # chance to request this.
2819 #
2820 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
2821
2822
2823 if test "$need_tas" = yes ; then
2824   TAS=tas.o
2825 else
2826   TAS=""
2827 fi
2828
2829
2830
2831 #
2832 # Automatic dependency tracking
2833 #
2834
2835
2836 # Check whether --enable-depend or --disable-depend was given.
2837 if test "${enable_depend+set}" = set; then
2838   enableval="$enable_depend"
2839
2840   case $enableval in
2841     yes)
2842       autodepend=yes
2843       ;;
2844     no)
2845       :
2846       ;;
2847     *)
2848       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2849 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2850    { (exit 1); exit 1; }; }
2851       ;;
2852   esac
2853
2854 else
2855   enable_depend=no
2856
2857 fi;
2858
2859
2860
2861
2862 #
2863 # Enable assert checks
2864 #
2865
2866
2867 # Check whether --enable-cassert or --disable-cassert was given.
2868 if test "${enable_cassert+set}" = set; then
2869   enableval="$enable_cassert"
2870
2871   case $enableval in
2872     yes)
2873
2874 cat >>confdefs.h <<\_ACEOF
2875 #define USE_ASSERT_CHECKING 1
2876 _ACEOF
2877
2878       ;;
2879     no)
2880       :
2881       ;;
2882     *)
2883       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2884 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2885    { (exit 1); exit 1; }; }
2886       ;;
2887   esac
2888
2889 else
2890   enable_cassert=no
2891
2892 fi;
2893
2894
2895
2896 #
2897 # Include directories
2898 #
2899 ac_save_IFS=$IFS
2900 IFS="${IFS}:"
2901 # SRCH_INC comes from the template file
2902 for dir in $with_includes $SRCH_INC; do
2903   if test -d "$dir"; then
2904     INCLUDES="$INCLUDES -I$dir"
2905   else
2906     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2907 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2908   fi
2909 done
2910 IFS=$ac_save_IFS
2911
2912
2913
2914 #
2915 # Library directories
2916 #
2917 ac_save_IFS=$IFS
2918 IFS="${IFS}:"
2919 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2920 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2921   if test -d "$dir"; then
2922     LIBDIRS="$LIBDIRS -L$dir"
2923   else
2924     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2925 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2926   fi
2927 done
2928 IFS=$ac_save_IFS
2929
2930 #
2931 # Enable thread-safe client libraries
2932 #
2933 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
2934 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
2935
2936
2937 # Check whether --enable-thread-safety or --disable-thread-safety was given.
2938 if test "${enable_thread_safety+set}" = set; then
2939   enableval="$enable_thread_safety"
2940
2941   case $enableval in
2942     yes)
2943
2944 cat >>confdefs.h <<\_ACEOF
2945 #define ENABLE_THREAD_SAFETY 1
2946 _ACEOF
2947
2948       ;;
2949     no)
2950       :
2951       ;;
2952     *)
2953       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
2954 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
2955    { (exit 1); exit 1; }; }
2956       ;;
2957   esac
2958
2959 else
2960   enable_thread_safety=no
2961
2962 fi;
2963
2964 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
2965 echo "${ECHO_T}$enable_thread_safety" >&6
2966
2967
2968 #
2969 # Tcl/Tk
2970 #
2971 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2972 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2973
2974
2975
2976 # Check whether --with-tcl or --without-tcl was given.
2977 if test "${with_tcl+set}" = set; then
2978   withval="$with_tcl"
2979
2980   case $withval in
2981     yes)
2982       :
2983       ;;
2984     no)
2985       :
2986       ;;
2987     *)
2988       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2989 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2990    { (exit 1); exit 1; }; }
2991       ;;
2992   esac
2993
2994 else
2995   with_tcl=no
2996
2997 fi;
2998
2999 echo "$as_me:$LINENO: result: $with_tcl" >&5
3000 echo "${ECHO_T}$with_tcl" >&6
3001
3002
3003 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
3004 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
3005 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
3006 if test "$with_tcl" = yes; then
3007
3008
3009
3010 # Check whether --with-tk or --without-tk was given.
3011 if test "${with_tk+set}" = set; then
3012   withval="$with_tk"
3013
3014   case $withval in
3015     yes)
3016       :
3017       ;;
3018     no)
3019       :
3020       ;;
3021     *)
3022       { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
3023 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
3024    { (exit 1); exit 1; }; }
3025       ;;
3026   esac
3027
3028 else
3029   with_tk=yes
3030
3031 fi;
3032
3033 else
3034   with_tk=no
3035 fi
3036 echo "$as_me:$LINENO: result: $with_tk" >&5
3037 echo "${ECHO_T}$with_tk" >&6
3038
3039
3040
3041 # We see if the path to the Tcl/Tk configuration scripts is specified.
3042 # This will override the use of tclsh to find the paths to search.
3043
3044
3045
3046
3047 # Check whether --with-tclconfig or --without-tclconfig was given.
3048 if test "${with_tclconfig+set}" = set; then
3049   withval="$with_tclconfig"
3050
3051   case $withval in
3052     yes)
3053       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3054 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3055    { (exit 1); exit 1; }; }
3056       ;;
3057     no)
3058       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3059 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3060    { (exit 1); exit 1; }; }
3061       ;;
3062     *)
3063
3064       ;;
3065   esac
3066
3067 fi;
3068
3069
3070 # We see if the path to the Tk configuration scripts is specified.
3071 # This will override the use of tclsh to find the paths to search.
3072
3073
3074
3075
3076 # Check whether --with-tkconfig or --without-tkconfig was given.
3077 if test "${with_tkconfig+set}" = set; then
3078   withval="$with_tkconfig"
3079
3080   case $withval in
3081     yes)
3082       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
3083 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
3084    { (exit 1); exit 1; }; }
3085       ;;
3086     no)
3087       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
3088 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
3089    { (exit 1); exit 1; }; }
3090       ;;
3091     *)
3092
3093       ;;
3094   esac
3095
3096 fi;
3097
3098
3099 #
3100 # Optionally build Perl modules (PL/Perl)
3101 #
3102 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3103 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3104
3105
3106
3107 # Check whether --with-perl or --without-perl was given.
3108 if test "${with_perl+set}" = set; then
3109   withval="$with_perl"
3110
3111   case $withval in
3112     yes)
3113       :
3114       ;;
3115     no)
3116       :
3117       ;;
3118     *)
3119       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3120 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3121    { (exit 1); exit 1; }; }
3122       ;;
3123   esac
3124
3125 else
3126   with_perl=no
3127
3128 fi;
3129
3130 echo "$as_me:$LINENO: result: $with_perl" >&5
3131 echo "${ECHO_T}$with_perl" >&6
3132
3133
3134 #
3135 # Optionally build Python modules (PL/Python)
3136 #
3137 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3138 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3139
3140
3141
3142 # Check whether --with-python or --without-python was given.
3143 if test "${with_python+set}" = set; then
3144   withval="$with_python"
3145
3146   case $withval in
3147     yes)
3148       :
3149       ;;
3150     no)
3151       :
3152       ;;
3153     *)
3154       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3155 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3156    { (exit 1); exit 1; }; }
3157       ;;
3158   esac
3159
3160 else
3161   with_python=no
3162
3163 fi;
3164
3165 echo "$as_me:$LINENO: result: $with_python" >&5
3166 echo "${ECHO_T}$with_python" >&6
3167
3168
3169 #
3170 # Optionally build the Java/JDBC tools
3171 #
3172 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3173 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3174
3175
3176
3177 # Check whether --with-java or --without-java was given.
3178 if test "${with_java+set}" = set; then
3179   withval="$with_java"
3180
3181   case $withval in
3182     yes)
3183       echo "$as_me:$LINENO: result: yes" >&5
3184 echo "${ECHO_T}yes" >&6
3185
3186   for ac_prog in jakarta-ant ant ant.sh ant.bat
3187 do
3188   # Extract the first word of "$ac_prog", so it can be a program name with args.
3189 set dummy $ac_prog; ac_word=$2
3190 echo "$as_me:$LINENO: checking for $ac_word" >&5
3191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3192 if test "${ac_cv_path_ANT+set}" = set; then
3193   echo $ECHO_N "(cached) $ECHO_C" >&6
3194 else
3195   case $ANT in
3196   [\\/]* | ?:[\\/]*)
3197   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3198   ;;
3199   *)
3200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3202 do
3203   IFS=$as_save_IFS
3204   test -z "$as_dir" && as_dir=.
3205   for ac_exec_ext in '' $ac_executable_extensions; do
3206   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3207     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3209     break 2
3210   fi
3211 done
3212 done
3213
3214   ;;
3215 esac
3216 fi
3217 ANT=$ac_cv_path_ANT
3218
3219 if test -n "$ANT"; then
3220   echo "$as_me:$LINENO: result: $ANT" >&5
3221 echo "${ECHO_T}$ANT" >&6
3222 else
3223   echo "$as_me:$LINENO: result: no" >&5
3224 echo "${ECHO_T}no" >&6
3225 fi
3226
3227   test -n "$ANT" && break
3228 done
3229
3230
3231   echo "$as_me:$LINENO: checking whether $ANT works" >&5
3232 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3233 if test "${pgac_cv_prog_ant_works+set}" = set; then
3234   echo $ECHO_N "(cached) $ECHO_C" >&6
3235 else
3236
3237     cat > conftest.java << EOF
3238 public class conftest {
3239     int testmethod(int a, int b) {
3240         return a + b;
3241     }
3242 }
3243 EOF
3244
3245     cat > conftest.xml << EOF
3246 <project name="conftest" default="conftest">
3247  <target name="conftest">
3248   <javac srcdir="." includes="conftest.java">
3249   </javac>
3250  </target>
3251 </project>
3252 EOF
3253
3254     pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3255     { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3256   (eval $pgac_cmd) 2>&5
3257   ac_status=$?
3258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259   (exit $ac_status); }
3260     pgac_save_status=$?
3261     if test $? = 0 && test -f ./conftest.class ; then
3262       pgac_cv_prog_ant_works=yes
3263     else
3264       echo "configure: failed java program was:" >&5
3265       cat conftest.java >&5
3266       echo "configure: failed build file was:" >&5
3267       cat conftest.xml >&5
3268       pgac_cv_prog_ant_works=no
3269     fi
3270
3271     rm -f conftest* core core.* *.core
3272
3273 fi
3274 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3275 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3276
3277   if test "$pgac_cv_prog_ant_works" != yes; then
3278     { { echo "$as_me:$LINENO: error: ant does not work" >&5
3279 echo "$as_me: error: ant does not work" >&2;}
3280    { (exit 1); exit 1; }; }
3281   fi
3282
3283
3284 if test -z "$ANT"; then
3285   { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3286 If you have Ant already installed, see config.log for details on the failure." >&5
3287 echo "$as_me: error: Ant is required to build Java components
3288 If you have Ant already installed, see config.log for details on the failure." >&2;}
3289    { (exit 1); exit 1; }; }
3290 fi
3291 if "$ANT" -version | egrep -i 'ant version' | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3292   { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3293 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3294    { (exit 1); exit 1; }; }
3295 fi
3296       ;;
3297     no)
3298       echo "$as_me:$LINENO: result: no" >&5
3299 echo "${ECHO_T}no" >&6
3300       ;;
3301     *)
3302       { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3303 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3304    { (exit 1); exit 1; }; }
3305       ;;
3306   esac
3307
3308 else
3309   with_java=no
3310 echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6
3312 fi;
3313
3314
3315
3316 #
3317 # Kerberos 4
3318 #
3319 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3320 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3321
3322
3323
3324 # Check whether --with-krb4 or --without-krb4 was given.
3325 if test "${with_krb4+set}" = set; then
3326   withval="$with_krb4"
3327
3328   case $withval in
3329     yes)
3330
3331
3332 cat >>confdefs.h <<\_ACEOF
3333 #define KRB4 1
3334 _ACEOF
3335
3336   krb_srvtab="/etc/srvtab"
3337
3338       ;;
3339     no)
3340       :
3341       ;;
3342     *)
3343       { { echo "$as_me:$LINENO: error: no argument expected for --with-krb4 option" >&5
3344 echo "$as_me: error: no argument expected for --with-krb4 option" >&2;}
3345    { (exit 1); exit 1; }; }
3346       ;;
3347   esac
3348
3349 else
3350   with_krb4=no
3351
3352 fi;
3353
3354 echo "$as_me:$LINENO: result: $with_krb4" >&5
3355 echo "${ECHO_T}$with_krb4" >&6
3356
3357
3358
3359 #
3360 # Kerberos 5
3361 #
3362 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3363 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3364
3365
3366
3367 # Check whether --with-krb5 or --without-krb5 was given.
3368 if test "${with_krb5+set}" = set; then
3369   withval="$with_krb5"
3370
3371   case $withval in
3372     yes)
3373
3374
3375 cat >>confdefs.h <<\_ACEOF
3376 #define KRB5 1
3377 _ACEOF
3378
3379   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3380
3381       ;;
3382     no)
3383       :
3384       ;;
3385     *)
3386       { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3387 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3388    { (exit 1); exit 1; }; }
3389       ;;
3390   esac
3391
3392 else
3393   with_krb5=no
3394
3395 fi;
3396
3397 echo "$as_me:$LINENO: result: $with_krb5" >&5
3398 echo "${ECHO_T}$with_krb5" >&6
3399
3400
3401
3402 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3403 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3404   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3405 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3406    { (exit 1); exit 1; }; }
3407 fi
3408
3409
3410
3411
3412 #
3413 # Kerberos configuration parameters
3414 #
3415
3416
3417
3418 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3419 if test "${with_krb_srvnam+set}" = set; then
3420   withval="$with_krb_srvnam"
3421
3422   case $withval in
3423     yes)
3424       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3425 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3426    { (exit 1); exit 1; }; }
3427       ;;
3428     no)
3429       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3430 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3431    { (exit 1); exit 1; }; }
3432       ;;
3433     *)
3434
3435       ;;
3436   esac
3437
3438 else
3439   with_krb_srvnam="postgres"
3440 fi;
3441
3442
3443 cat >>confdefs.h <<_ACEOF
3444 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3445 _ACEOF
3446
3447
3448
3449 #
3450 # PAM
3451 #
3452 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3453 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3454
3455
3456
3457 # Check whether --with-pam or --without-pam was given.
3458 if test "${with_pam+set}" = set; then
3459   withval="$with_pam"
3460
3461   case $withval in
3462     yes)
3463
3464 cat >>confdefs.h <<\_ACEOF
3465 #define USE_PAM 1
3466 _ACEOF
3467
3468       ;;
3469     no)
3470       :
3471       ;;
3472     *)
3473       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3474 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3475    { (exit 1); exit 1; }; }
3476       ;;
3477   esac
3478
3479 else
3480   with_pam=no
3481
3482 fi;
3483
3484 echo "$as_me:$LINENO: result: $with_pam" >&5
3485 echo "${ECHO_T}$with_pam" >&6
3486
3487
3488
3489 #
3490 # Rendezvous
3491 #
3492 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3493 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3494
3495
3496
3497 # Check whether --with-rendezvous or --without-rendezvous was given.
3498 if test "${with_rendezvous+set}" = set; then
3499   withval="$with_rendezvous"
3500
3501   case $withval in
3502     yes)
3503
3504 cat >>confdefs.h <<\_ACEOF
3505 #define USE_RENDEZVOUS 1
3506 _ACEOF
3507
3508       ;;
3509     no)
3510       :
3511       ;;
3512     *)
3513       { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3514 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3515    { (exit 1); exit 1; }; }
3516       ;;
3517   esac
3518
3519 else
3520   with_rendezvous=no
3521
3522 fi;
3523
3524 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3525 echo "${ECHO_T}$with_rendezvous" >&6
3526
3527
3528
3529 #
3530 # OpenSSL
3531 #
3532 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
3533 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
3534
3535
3536
3537 # Check whether --with-openssl or --without-openssl was given.
3538 if test "${with_openssl+set}" = set; then
3539   withval="$with_openssl"
3540
3541   case $withval in
3542     yes)
3543
3544 cat >>confdefs.h <<\_ACEOF
3545 #define USE_SSL 1
3546 _ACEOF
3547
3548       ;;
3549     no)
3550       :
3551       ;;
3552     *)
3553       { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
3554 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
3555    { (exit 1); exit 1; }; }
3556       ;;
3557   esac
3558
3559 else
3560   with_openssl=no
3561
3562 fi;
3563
3564 echo "$as_me:$LINENO: result: $with_openssl" >&5
3565 echo "${ECHO_T}$with_openssl" >&6
3566
3567
3568
3569 #
3570 # Readline
3571 #
3572
3573
3574
3575 # Check whether --with-readline or --without-readline was given.
3576 if test "${with_readline+set}" = set; then
3577   withval="$with_readline"
3578
3579   case $withval in
3580     yes)
3581       :
3582       ;;
3583     no)
3584       :
3585       ;;
3586     *)
3587       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3588 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3589    { (exit 1); exit 1; }; }
3590       ;;
3591   esac
3592
3593 else
3594   with_readline=yes
3595
3596 fi;
3597
3598
3599 #
3600 # Zlib
3601 #
3602
3603
3604
3605 # Check whether --with-zlib or --without-zlib was given.
3606 if test "${with_zlib+set}" = set; then
3607   withval="$with_zlib"
3608
3609   case $withval in
3610     yes)
3611       :
3612       ;;
3613     no)
3614       :
3615       ;;
3616     *)
3617       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3618 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3619    { (exit 1); exit 1; }; }
3620       ;;
3621   esac
3622
3623 else
3624   with_zlib=yes
3625
3626 fi;
3627
3628
3629 #
3630 # Elf
3631 #
3632
3633 # Assume system is ELF if it predefines __ELF__ as 1,
3634 # otherwise believe host_os based default.
3635 case $host_os in
3636     freebsd1*|freebsd2*) elf=no;;
3637     freebsd3*|freebsd4*) elf=yes;;
3638 esac
3639
3640
3641 cat >conftest.$ac_ext <<_ACEOF
3642 #line $LINENO "configure"
3643 #include "confdefs.h"
3644 #if __ELF__
3645   yes
3646 #endif
3647
3648 _ACEOF
3649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3650   egrep "yes" >/dev/null 2>&1; then
3651   ELF_SYS=true
3652 else
3653   if test "X$elf" = "Xyes" ; then
3654   ELF_SYS=true
3655 else
3656   ELF_SYS=
3657 fi
3658 fi
3659 rm -f conftest*
3660
3661
3662
3663 #
3664 # Assignments
3665 #
3666
3667 CPPFLAGS="$CPPFLAGS $INCLUDES"
3668 LDFLAGS="$LDFLAGS $LIBDIRS"
3669
3670 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3671 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3672 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3673 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3674
3675
3676 for ac_prog in gawk mawk nawk awk
3677 do
3678   # Extract the first word of "$ac_prog", so it can be a program name with args.
3679 set dummy $ac_prog; ac_word=$2
3680 echo "$as_me:$LINENO: checking for $ac_word" >&5
3681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3682 if test "${ac_cv_prog_AWK+set}" = set; then
3683   echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685   if test -n "$AWK"; then
3686   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3687 else
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 for as_dir in $PATH
3690 do
3691   IFS=$as_save_IFS
3692   test -z "$as_dir" && as_dir=.
3693   for ac_exec_ext in '' $ac_executable_extensions; do
3694   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3695     ac_cv_prog_AWK="$ac_prog"
3696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3697     break 2
3698   fi
3699 done
3700 done
3701
3702 fi
3703 fi
3704 AWK=$ac_cv_prog_AWK
3705 if test -n "$AWK"; then
3706   echo "$as_me:$LINENO: result: $AWK" >&5
3707 echo "${ECHO_T}$AWK" >&6
3708 else
3709   echo "$as_me:$LINENO: result: no" >&5
3710 echo "${ECHO_T}no" >&6
3711 fi
3712
3713   test -n "$AWK" && break
3714 done
3715
3716 echo "$as_me:$LINENO: checking for flex" >&5
3717 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3718 if test "${pgac_cv_path_flex+set}" = set; then
3719   echo $ECHO_N "(cached) $ECHO_C" >&6
3720 else
3721   # Let the user override the test
3722 if test -n "$FLEX"; then
3723   pgac_cv_path_flex=$FLEX
3724 else
3725   pgac_save_IFS=$IFS
3726   IFS=:
3727   for pgac_dir in $PATH; do
3728     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3729       pgac_dir=`pwd`
3730     fi
3731     for pgac_prog in flex lex; do
3732       pgac_candidate="$pgac_dir/$pgac_prog"
3733       if test -f "$pgac_candidate" \
3734         && $pgac_candidate --version </dev/null >/dev/null 2>&1
3735       then
3736         echo '%%'  > conftest.l
3737         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3738           if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3739             pgac_broken_flex=$pgac_candidate
3740             continue
3741           fi
3742
3743           pgac_cv_path_flex=$pgac_candidate
3744           break 2
3745         fi
3746       fi
3747     done
3748   done
3749   IFS=$pgac_save_IFS
3750   rm -f conftest.l
3751   : ${pgac_cv_path_flex=no}
3752 fi
3753
3754 fi
3755 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3756 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3757 if test x"$pgac_cv_path_flex" = x"no"; then
3758   if test -n "$pgac_broken_flex"; then
3759     { echo "$as_me:$LINENO: WARNING:
3760 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3761 *** should get version 2.5.4 or later." >&5
3762 echo "$as_me: WARNING:
3763 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3764 *** should get version 2.5.4 or later." >&2;}
3765   fi
3766
3767   { echo "$as_me:$LINENO: WARNING:
3768 *** Without Flex you will not be able to build PostgreSQL from CVS or
3769 *** change any of the scanner definition files.  You can obtain Flex from
3770 *** a GNU mirror site.  (If you are using the official distribution of
3771 *** PostgreSQL then you do not need to worry about this because the Flex
3772 *** output is pre-generated.)" >&5
3773 echo "$as_me: WARNING:
3774 *** Without Flex you will not be able to build PostgreSQL from CVS or
3775 *** change any of the scanner definition files.  You can obtain Flex from
3776 *** a GNU mirror site.  (If you are using the official distribution of
3777 *** PostgreSQL then you do not need to worry about this because the Flex
3778 *** output is pre-generated.)" >&2;}
3779 fi
3780
3781 if test x"$pgac_cv_path_flex" = x"no"; then
3782   FLEX=
3783 else
3784   FLEX=$pgac_cv_path_flex
3785 fi
3786
3787
3788
3789
3790 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3791 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3792 LN_S=$as_ln_s
3793 if test "$LN_S" = "ln -s"; then
3794   echo "$as_me:$LINENO: result: yes" >&5
3795 echo "${ECHO_T}yes" >&6
3796 else
3797   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3798 echo "${ECHO_T}no, using $LN_S" >&6
3799 fi
3800
3801
3802 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3803 if test "${with_gnu_ld+set}" = set; then
3804   withval="$with_gnu_ld"
3805   test "$withval" = no || with_gnu_ld=yes
3806 else
3807   with_gnu_ld=no
3808 fi;
3809 ac_prog=ld
3810 if test "$GCC" = yes; then
3811   # Check if gcc -print-prog-name=ld gives a path.
3812   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3813 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3814   case $host in
3815   *-*-mingw*)
3816     # gcc leaves a trailing carriage return which upsets mingw
3817     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3818   *)
3819     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3820   esac
3821   case "$ac_prog" in
3822     # Accept absolute paths.
3823     [\\/]* | [A-Za-z]:[\\/]*)
3824       re_direlt='/[^/][^/]*/\.\./'
3825       # Canonicalize the path of ld
3826       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3827       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3828         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3829       done
3830       test -z "$LD" && LD="$ac_prog"
3831       ;;
3832   "")
3833     # If it fails, then pretend we aren't using GCC.
3834     ac_prog=ld
3835     ;;
3836   *)
3837     # If it is relative, then search for the first ld in PATH.
3838     with_gnu_ld=unknown
3839     ;;
3840   esac
3841 elif test "$with_gnu_ld" = yes; then
3842   echo "$as_me:$LINENO: checking for GNU ld" >&5
3843 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3844 else
3845   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3846 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3847 fi
3848 if test "${ac_cv_path_LD+set}" = set; then
3849   echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851   if test -z "$LD"; then
3852   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3853   for ac_dir in $PATH; do
3854     test -z "$ac_dir" && ac_dir=.
3855     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3856       ac_cv_path_LD="$ac_dir/$ac_prog"
3857       # Check to see if the program is GNU ld.  I'd rather use --version,
3858       # but apparently some GNU ld's only accept -v.
3859       # Break only if it was the GNU/non-GNU ld that we prefer.
3860       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3861         test "$with_gnu_ld" != no && break
3862       else
3863         test "$with_gnu_ld" != yes && break
3864       fi
3865     fi
3866   done
3867   IFS="$ac_save_ifs"
3868 else
3869   ac_cv_path_LD="$LD" # Let the user override the test with a path.
3870 fi
3871 fi
3872
3873 LD="$ac_cv_path_LD"
3874 if test -n "$LD"; then
3875   echo "$as_me:$LINENO: result: $LD" >&5
3876 echo "${ECHO_T}$LD" >&6
3877 else
3878   echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6
3880 fi
3881 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3882 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3883    { (exit 1); exit 1; }; }
3884 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3885 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3886 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3887   echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3890 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3891   ac_cv_prog_gnu_ld=yes
3892 else
3893   ac_cv_prog_gnu_ld=no
3894 fi
3895 fi
3896 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3897 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3898 with_gnu_ld=$ac_cv_prog_gnu_ld
3899
3900
3901
3902
3903 case $host_os in sysv5*)
3904   echo "$as_me:$LINENO: checking whether ld -R works" >&5
3905 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3906 if test "${pgac_cv_prog_ld_R+set}" = set; then
3907   echo $ECHO_N "(cached) $ECHO_C" >&6
3908 else
3909
3910     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3911     cat >conftest.$ac_ext <<_ACEOF
3912 #line $LINENO "configure"
3913 #include "confdefs.h"
3914
3915 #ifdef F77_DUMMY_MAIN
3916 #  ifdef __cplusplus
3917      extern "C"
3918 #  endif
3919    int F77_DUMMY_MAIN() { return 1; }
3920 #endif
3921 int
3922 main ()
3923 {
3924
3925   ;
3926   return 0;
3927 }
3928 _ACEOF
3929 rm -f conftest.$ac_objext conftest$ac_exeext
3930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3931   (eval $ac_link) 2>&5
3932   ac_status=$?
3933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934   (exit $ac_status); } &&
3935          { ac_try='test -s conftest$ac_exeext'
3936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937   (eval $ac_try) 2>&5
3938   ac_status=$?
3939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940   (exit $ac_status); }; }; then
3941   pgac_cv_prog_ld_R=yes
3942 else
3943   echo "$as_me: failed program was:" >&5
3944 cat conftest.$ac_ext >&5
3945 pgac_cv_prog_ld_R=no
3946 fi
3947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3948     LDFLAGS=$pgac_save_LDFLAGS
3949
3950 fi
3951 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3952 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3953   ld_R_works=$pgac_cv_prog_ld_R
3954
3955 esac
3956 if test -n "$ac_tool_prefix"; then
3957   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3958 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3959 echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_prog_RANLIB+set}" = set; then
3962   echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964   if test -n "$RANLIB"; then
3965   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3966 else
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH
3969 do
3970   IFS=$as_save_IFS
3971   test -z "$as_dir" && as_dir=.
3972   for ac_exec_ext in '' $ac_executable_extensions; do
3973   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976     break 2
3977   fi
3978 done
3979 done
3980
3981 fi
3982 fi
3983 RANLIB=$ac_cv_prog_RANLIB
3984 if test -n "$RANLIB"; then
3985   echo "$as_me:$LINENO: result: $RANLIB" >&5
3986 echo "${ECHO_T}$RANLIB" >&6
3987 else
3988   echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6
3990 fi
3991
3992 fi
3993 if test -z "$ac_cv_prog_RANLIB"; then
3994   ac_ct_RANLIB=$RANLIB
3995   # Extract the first word of "ranlib", so it can be a program name with args.
3996 set dummy ranlib; ac_word=$2
3997 echo "$as_me:$LINENO: checking for $ac_word" >&5
3998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3999 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4000   echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002   if test -n "$ac_ct_RANLIB"; then
4003   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4004 else
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 for as_dir in $PATH
4007 do
4008   IFS=$as_save_IFS
4009   test -z "$as_dir" && as_dir=.
4010   for ac_exec_ext in '' $ac_executable_extensions; do
4011   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4012     ac_cv_prog_ac_ct_RANLIB="ranlib"
4013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4014     break 2
4015   fi
4016 done
4017 done
4018
4019   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4020 fi
4021 fi
4022 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4023 if test -n "$ac_ct_RANLIB"; then
4024   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4025 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4026 else
4027   echo "$as_me:$LINENO: result: no" >&5
4028 echo "${ECHO_T}no" >&6
4029 fi
4030
4031   RANLIB=$ac_ct_RANLIB
4032 else
4033   RANLIB="$ac_cv_prog_RANLIB"
4034 fi
4035
4036 for ac_prog in lorder
4037 do
4038   # Extract the first word of "$ac_prog", so it can be a program name with args.
4039 set dummy $ac_prog; ac_word=$2
4040 echo "$as_me:$LINENO: checking for $ac_word" >&5
4041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4042 if test "${ac_cv_prog_LORDER+set}" = set; then
4043   echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045   if test -n "$LORDER"; then
4046   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4047 else
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 for as_dir in $PATH
4050 do
4051   IFS=$as_save_IFS
4052   test -z "$as_dir" && as_dir=.
4053   for ac_exec_ext in '' $ac_executable_extensions; do
4054   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4055     ac_cv_prog_LORDER="$ac_prog"
4056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4057     break 2
4058   fi
4059 done
4060 done
4061
4062 fi
4063 fi
4064 LORDER=$ac_cv_prog_LORDER
4065 if test -n "$LORDER"; then
4066   echo "$as_me:$LINENO: result: $LORDER" >&5
4067 echo "${ECHO_T}$LORDER" >&6
4068 else
4069   echo "$as_me:$LINENO: result: no" >&5
4070 echo "${ECHO_T}no" >&6
4071 fi
4072
4073   test -n "$LORDER" && break
4074 done
4075
4076 # Extract the first word of "tar", so it can be a program name with args.
4077 set dummy tar; ac_word=$2
4078 echo "$as_me:$LINENO: checking for $ac_word" >&5
4079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4080 if test "${ac_cv_path_TAR+set}" = set; then
4081   echo $ECHO_N "(cached) $ECHO_C" >&6
4082 else
4083   case $TAR in
4084   [\\/]* | ?:[\\/]*)
4085   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4086   ;;
4087   *)
4088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH
4090 do
4091   IFS=$as_save_IFS
4092   test -z "$as_dir" && as_dir=.
4093   for ac_exec_ext in '' $ac_executable_extensions; do
4094   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4095     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4097     break 2
4098   fi
4099 done
4100 done
4101
4102   ;;
4103 esac
4104 fi
4105 TAR=$ac_cv_path_TAR
4106
4107 if test -n "$TAR"; then
4108   echo "$as_me:$LINENO: result: $TAR" >&5
4109 echo "${ECHO_T}$TAR" >&6
4110 else
4111   echo "$as_me:$LINENO: result: no" >&5
4112 echo "${ECHO_T}no" >&6
4113 fi
4114
4115
4116   if test -n "$ac_tool_prefix"; then
4117   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4118 set dummy ${ac_tool_prefix}strip; ac_word=$2
4119 echo "$as_me:$LINENO: checking for $ac_word" >&5
4120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4121 if test "${ac_cv_prog_STRIP+set}" = set; then
4122   echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124   if test -n "$STRIP"; then
4125   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4126 else
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4129 do
4130   IFS=$as_save_IFS
4131   test -z "$as_dir" && as_dir=.
4132   for ac_exec_ext in '' $ac_executable_extensions; do
4133   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4136     break 2
4137   fi
4138 done
4139 done
4140
4141 fi
4142 fi
4143 STRIP=$ac_cv_prog_STRIP
4144 if test -n "$STRIP"; then
4145   echo "$as_me:$LINENO: result: $STRIP" >&5
4146 echo "${ECHO_T}$STRIP" >&6
4147 else
4148   echo "$as_me:$LINENO: result: no" >&5
4149 echo "${ECHO_T}no" >&6
4150 fi
4151
4152 fi
4153 if test -z "$ac_cv_prog_STRIP"; then
4154   ac_ct_STRIP=$STRIP
4155   # Extract the first word of "strip", so it can be a program name with args.
4156 set dummy strip; ac_word=$2
4157 echo "$as_me:$LINENO: checking for $ac_word" >&5
4158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4159 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4160   echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162   if test -n "$ac_ct_STRIP"; then
4163   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4164 else
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH
4167 do
4168   IFS=$as_save_IFS
4169   test -z "$as_dir" && as_dir=.
4170   for ac_exec_ext in '' $ac_executable_extensions; do
4171   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4172     ac_cv_prog_ac_ct_STRIP="strip"
4173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4174     break 2
4175   fi
4176 done
4177 done
4178
4179   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4180 fi
4181 fi
4182 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4183 if test -n "$ac_ct_STRIP"; then
4184   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4185 echo "${ECHO_T}$ac_ct_STRIP" >&6
4186 else
4187   echo "$as_me:$LINENO: result: no" >&5
4188 echo "${ECHO_T}no" >&6
4189 fi
4190
4191   STRIP=$ac_ct_STRIP
4192 else
4193   STRIP="$ac_cv_prog_STRIP"
4194 fi
4195
4196
4197   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4198 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4199   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4200     STRIP_STATIC_LIB="$STRIP -x"
4201     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4202     echo "$as_me:$LINENO: result: yes" >&5
4203 echo "${ECHO_T}yes" >&6
4204   else
4205     STRIP_STATIC_LIB=:
4206     STRIP_SHARED_LIB=:
4207     echo "$as_me:$LINENO: result: no" >&5
4208 echo "${ECHO_T}no" >&6
4209   fi
4210
4211
4212
4213
4214 for ac_prog in 'bison -y'
4215 do
4216   # Extract the first word of "$ac_prog", so it can be a program name with args.
4217 set dummy $ac_prog; ac_word=$2
4218 echo "$as_me:$LINENO: checking for $ac_word" >&5
4219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4220 if test "${ac_cv_prog_YACC+set}" = set; then
4221   echo $ECHO_N "(cached) $ECHO_C" >&6
4222 else
4223   if test -n "$YACC"; then
4224   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4225 else
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 for as_dir in $PATH
4228 do
4229   IFS=$as_save_IFS
4230   test -z "$as_dir" && as_dir=.
4231   for ac_exec_ext in '' $ac_executable_extensions; do
4232   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4233     ac_cv_prog_YACC="$ac_prog"
4234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4235     break 2
4236   fi
4237 done
4238 done
4239
4240 fi
4241 fi
4242 YACC=$ac_cv_prog_YACC
4243 if test -n "$YACC"; then
4244   echo "$as_me:$LINENO: result: $YACC" >&5
4245 echo "${ECHO_T}$YACC" >&6
4246 else
4247   echo "$as_me:$LINENO: result: no" >&5
4248 echo "${ECHO_T}no" >&6
4249 fi
4250
4251   test -n "$YACC" && break
4252 done
4253
4254
4255 if test "$YACC"; then
4256   if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4257     { echo "$as_me:$LINENO: WARNING:
4258 *** The installed version of Bison is too old.  PostgreSQL needs
4259 *** Bison version 1.875 or later." >&5
4260 echo "$as_me: WARNING:
4261 *** The installed version of Bison is too old.  PostgreSQL needs
4262 *** Bison version 1.875 or later." >&2;}
4263   fi
4264 fi
4265
4266 if test -z "$YACC"; then
4267   { echo "$as_me:$LINENO: WARNING:
4268 *** Without Bison you will not be able to build PostgreSQL from CVS or
4269 *** change any of the parser definition files.  You can obtain Bison from
4270 *** a GNU mirror site.  (If you are using the official distribution of
4271 *** PostgreSQL then you do not need to worry about this because the Bison
4272 *** output is pre-generated.)  To use a different yacc program (possible,
4273 *** but not recommended), set the environment variable YACC before running
4274 *** 'configure'." >&5
4275 echo "$as_me: WARNING:
4276 *** Without Bison you will not be able to build PostgreSQL from CVS or
4277 *** change any of the parser definition files.  You can obtain Bison from
4278 *** a GNU mirror site.  (If you are using the official distribution of
4279 *** PostgreSQL then you do not need to worry about this because the Bison
4280 *** output is pre-generated.)  To use a different yacc program (possible,
4281 *** but not recommended), set the environment variable YACC before running
4282 *** 'configure'." >&2;}
4283 fi
4284
4285
4286 # Extract the first word of "perl", so it can be a program name with args.
4287 set dummy perl; ac_word=$2
4288 echo "$as_me:$LINENO: checking for $ac_word" >&5
4289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4290 if test "${ac_cv_path_PERL+set}" = set; then
4291   echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293   case $PERL in
4294   [\\/]* | ?:[\\/]*)
4295   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4296   ;;
4297   *)
4298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH
4300 do
4301   IFS=$as_save_IFS
4302   test -z "$as_dir" && as_dir=.
4303   for ac_exec_ext in '' $ac_executable_extensions; do
4304   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4305     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4307     break 2
4308   fi
4309 done
4310 done
4311
4312   ;;
4313 esac
4314 fi
4315 PERL=$ac_cv_path_PERL
4316
4317 if test -n "$PERL"; then
4318   echo "$as_me:$LINENO: result: $PERL" >&5
4319 echo "${ECHO_T}$PERL" >&6
4320 else
4321   echo "$as_me:$LINENO: result: no" >&5
4322 echo "${ECHO_T}no" >&6
4323 fi
4324
4325 if test "$with_perl" = yes; then
4326
4327 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4328 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4329 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4330 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4331 echo "${ECHO_T}$perl_archlibexp" >&6
4332 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4333 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4334 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4335 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4336 echo "${ECHO_T}$perl_privlibexp" >&6
4337 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4338 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4339 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4340 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4341 echo "${ECHO_T}$perl_useshrplib" >&6
4342
4343 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4344 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4345 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4346 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4347 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4348 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4349 echo "${ECHO_T}$perl_embed_ldflags" >&6
4350 fi
4351
4352 if test "$with_python" = yes; then
4353   # Extract the first word of "python", so it can be a program name with args.
4354 set dummy python; ac_word=$2
4355 echo "$as_me:$LINENO: checking for $ac_word" >&5
4356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4357 if test "${ac_cv_path_PYTHON+set}" = set; then
4358   echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360   case $PYTHON in
4361   [\\/]* | ?:[\\/]*)
4362   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4363   ;;
4364   *)
4365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4367 do
4368   IFS=$as_save_IFS
4369   test -z "$as_dir" && as_dir=.
4370   for ac_exec_ext in '' $ac_executable_extensions; do
4371   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4372     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4374     break 2
4375   fi
4376 done
4377 done
4378
4379   ;;
4380 esac
4381 fi
4382 PYTHON=$ac_cv_path_PYTHON
4383
4384 if test -n "$PYTHON"; then
4385   echo "$as_me:$LINENO: result: $PYTHON" >&5
4386 echo "${ECHO_T}$PYTHON" >&6
4387 else
4388   echo "$as_me:$LINENO: result: no" >&5
4389 echo "${ECHO_T}no" >&6
4390 fi
4391
4392 if test x"$PYTHON" = x""; then
4393   { { echo "$as_me:$LINENO: error: Python not found" >&5
4394 echo "$as_me: error: Python not found" >&2;}
4395    { (exit 1); exit 1; }; }
4396 fi
4397
4398
4399 echo "$as_me:$LINENO: checking Python installation directories" >&5
4400 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4401 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4402 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4403 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4404 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4405 python_includespec="-I${python_prefix}/include/python${python_version}"
4406 if test "$python_prefix" != "$python_execprefix"; then
4407   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4408 fi
4409
4410 # This should be enough of a message.
4411 if test "$python_prefix" != "$python_execprefix"; then
4412   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4413 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4414 else
4415   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4416 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4417 fi
4418
4419
4420 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4421 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4422
4423 if test ! -f "$python_configdir/Makefile"; then
4424   echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6
4426   { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4427 echo "$as_me: error: Python Makefile not found" >&2;}
4428    { (exit 1); exit 1; }; }
4429 fi
4430
4431 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4432 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4433 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4434 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4435 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4436
4437 pgac_tab="      " # tab character
4438 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"`
4439
4440 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4441 echo "${ECHO_T}${python_libspec}" >&6
4442
4443
4444 fi
4445
4446
4447 ##
4448 ## Libraries
4449 ##
4450
4451 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4452 then
4453
4454 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4455 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4456 if test "${ac_cv_lib_bsd_main+set}" = set; then
4457   echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459   ac_check_lib_save_LIBS=$LIBS
4460 LIBS="-lbsd  $LIBS"
4461 cat >conftest.$ac_ext <<_ACEOF
4462 #line $LINENO "configure"
4463 #include "confdefs.h"
4464
4465
4466 #ifdef F77_DUMMY_MAIN
4467 #  ifdef __cplusplus
4468      extern "C"
4469 #  endif
4470    int F77_DUMMY_MAIN() { return 1; }
4471 #endif
4472 int
4473 main ()
4474 {
4475 main ();
4476   ;
4477   return 0;
4478 }
4479 _ACEOF
4480 rm -f conftest.$ac_objext conftest$ac_exeext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4482   (eval $ac_link) 2>&5
4483   ac_status=$?
4484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485   (exit $ac_status); } &&
4486          { ac_try='test -s conftest$ac_exeext'
4487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4488   (eval $ac_try) 2>&5
4489   ac_status=$?
4490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491   (exit $ac_status); }; }; then
4492   ac_cv_lib_bsd_main=yes
4493 else
4494   echo "$as_me: failed program was:" >&5
4495 cat conftest.$ac_ext >&5
4496 ac_cv_lib_bsd_main=no
4497 fi
4498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4499 LIBS=$ac_check_lib_save_LIBS
4500 fi
4501 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4502 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4503 if test $ac_cv_lib_bsd_main = yes; then
4504   cat >>confdefs.h <<_ACEOF
4505 #define HAVE_LIBBSD 1
4506 _ACEOF
4507
4508   LIBS="-lbsd $LIBS"
4509
4510 fi
4511
4512 fi
4513
4514 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4515 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4516 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4517   echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519   ac_check_lib_save_LIBS=$LIBS
4520 LIBS="-lutil  $LIBS"
4521 cat >conftest.$ac_ext <<_ACEOF
4522 #line $LINENO "configure"
4523 #include "confdefs.h"
4524
4525 /* Override any gcc2 internal prototype to avoid an error.  */
4526 #ifdef __cplusplus
4527 extern "C"
4528 #endif
4529 /* We use char because int might match the return type of a gcc2
4530    builtin and then its argument prototype would still apply.  */
4531 char setproctitle ();
4532 #ifdef F77_DUMMY_MAIN
4533 #  ifdef __cplusplus
4534      extern "C"
4535 #  endif
4536    int F77_DUMMY_MAIN() { return 1; }
4537 #endif
4538 int
4539 main ()
4540 {
4541 setproctitle ();
4542   ;
4543   return 0;
4544 }
4545 _ACEOF
4546 rm -f conftest.$ac_objext conftest$ac_exeext
4547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4548   (eval $ac_link) 2>&5
4549   ac_status=$?
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); } &&
4552          { ac_try='test -s conftest$ac_exeext'
4553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554   (eval $ac_try) 2>&5
4555   ac_status=$?
4556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557   (exit $ac_status); }; }; then
4558   ac_cv_lib_util_setproctitle=yes
4559 else
4560   echo "$as_me: failed program was:" >&5
4561 cat conftest.$ac_ext >&5
4562 ac_cv_lib_util_setproctitle=no
4563 fi
4564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4565 LIBS=$ac_check_lib_save_LIBS
4566 fi
4567 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4568 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4569 if test $ac_cv_lib_util_setproctitle = yes; then
4570   cat >>confdefs.h <<_ACEOF
4571 #define HAVE_LIBUTIL 1
4572 _ACEOF
4573
4574   LIBS="-lutil $LIBS"
4575
4576 fi
4577
4578
4579 echo "$as_me:$LINENO: checking for main in -lm" >&5
4580 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4581 if test "${ac_cv_lib_m_main+set}" = set; then
4582   echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584   ac_check_lib_save_LIBS=$LIBS
4585 LIBS="-lm  $LIBS"
4586 cat >conftest.$ac_ext <<_ACEOF
4587 #line $LINENO "configure"
4588 #include "confdefs.h"
4589
4590
4591 #ifdef F77_DUMMY_MAIN
4592 #  ifdef __cplusplus
4593      extern "C"
4594 #  endif
4595    int F77_DUMMY_MAIN() { return 1; }
4596 #endif
4597 int
4598 main ()
4599 {
4600 main ();
4601   ;
4602   return 0;
4603 }
4604 _ACEOF
4605 rm -f conftest.$ac_objext conftest$ac_exeext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4607   (eval $ac_link) 2>&5
4608   ac_status=$?
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); } &&
4611          { ac_try='test -s conftest$ac_exeext'
4612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613   (eval $ac_try) 2>&5
4614   ac_status=$?
4615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616   (exit $ac_status); }; }; then
4617   ac_cv_lib_m_main=yes
4618 else
4619   echo "$as_me: failed program was:" >&5
4620 cat conftest.$ac_ext >&5
4621 ac_cv_lib_m_main=no
4622 fi
4623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4624 LIBS=$ac_check_lib_save_LIBS
4625 fi
4626 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4627 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4628 if test $ac_cv_lib_m_main = yes; then
4629   cat >>confdefs.h <<_ACEOF
4630 #define HAVE_LIBM 1
4631 _ACEOF
4632
4633   LIBS="-lm $LIBS"
4634
4635 fi
4636
4637
4638 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4639 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4640 if test "${ac_cv_lib_dl_main+set}" = set; then
4641   echo $ECHO_N "(cached) $ECHO_C" >&6
4642 else
4643   ac_check_lib_save_LIBS=$LIBS
4644 LIBS="-ldl  $LIBS"
4645 cat >conftest.$ac_ext <<_ACEOF
4646 #line $LINENO "configure"
4647 #include "confdefs.h"
4648
4649
4650 #ifdef F77_DUMMY_MAIN
4651 #  ifdef __cplusplus
4652      extern "C"
4653 #  endif
4654    int F77_DUMMY_MAIN() { return 1; }
4655 #endif
4656 int
4657 main ()
4658 {
4659 main ();
4660   ;
4661   return 0;
4662 }
4663 _ACEOF
4664 rm -f conftest.$ac_objext conftest$ac_exeext
4665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4666   (eval $ac_link) 2>&5
4667   ac_status=$?
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); } &&
4670          { ac_try='test -s conftest$ac_exeext'
4671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672   (eval $ac_try) 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); }; }; then
4676   ac_cv_lib_dl_main=yes
4677 else
4678   echo "$as_me: failed program was:" >&5
4679 cat conftest.$ac_ext >&5
4680 ac_cv_lib_dl_main=no
4681 fi
4682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4683 LIBS=$ac_check_lib_save_LIBS
4684 fi
4685 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4686 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4687 if test $ac_cv_lib_dl_main = yes; then
4688   cat >>confdefs.h <<_ACEOF
4689 #define HAVE_LIBDL 1
4690 _ACEOF
4691
4692   LIBS="-ldl $LIBS"
4693
4694 fi
4695
4696
4697 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4698 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4699 if test "${ac_cv_lib_nsl_main+set}" = set; then
4700   echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702   ac_check_lib_save_LIBS=$LIBS
4703 LIBS="-lnsl  $LIBS"
4704 cat >conftest.$ac_ext <<_ACEOF
4705 #line $LINENO "configure"
4706 #include "confdefs.h"
4707
4708
4709 #ifdef F77_DUMMY_MAIN
4710 #  ifdef __cplusplus
4711      extern "C"
4712 #  endif
4713    int F77_DUMMY_MAIN() { return 1; }
4714 #endif
4715 int
4716 main ()
4717 {
4718 main ();
4719   ;
4720   return 0;
4721 }
4722 _ACEOF
4723 rm -f conftest.$ac_objext conftest$ac_exeext
4724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4725   (eval $ac_link) 2>&5
4726   ac_status=$?
4727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728   (exit $ac_status); } &&
4729          { ac_try='test -s conftest$ac_exeext'
4730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731   (eval $ac_try) 2>&5
4732   ac_status=$?
4733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734   (exit $ac_status); }; }; then
4735   ac_cv_lib_nsl_main=yes
4736 else
4737   echo "$as_me: failed program was:" >&5
4738 cat conftest.$ac_ext >&5
4739 ac_cv_lib_nsl_main=no
4740 fi
4741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4742 LIBS=$ac_check_lib_save_LIBS
4743 fi
4744 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4745 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4746 if test $ac_cv_lib_nsl_main = yes; then
4747   cat >>confdefs.h <<_ACEOF
4748 #define HAVE_LIBNSL 1
4749 _ACEOF
4750
4751   LIBS="-lnsl $LIBS"
4752
4753 fi
4754
4755
4756 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4757 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4758 if test "${ac_cv_lib_socket_main+set}" = set; then
4759   echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761   ac_check_lib_save_LIBS=$LIBS
4762 LIBS="-lsocket  $LIBS"
4763 cat >conftest.$ac_ext <<_ACEOF
4764 #line $LINENO "configure"
4765 #include "confdefs.h"
4766
4767
4768 #ifdef F77_DUMMY_MAIN
4769 #  ifdef __cplusplus
4770      extern "C"
4771 #  endif
4772    int F77_DUMMY_MAIN() { return 1; }
4773 #endif
4774 int
4775 main ()
4776 {
4777 main ();
4778   ;
4779   return 0;
4780 }
4781 _ACEOF
4782 rm -f conftest.$ac_objext conftest$ac_exeext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4784   (eval $ac_link) 2>&5
4785   ac_status=$?
4786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787   (exit $ac_status); } &&
4788          { ac_try='test -s conftest$ac_exeext'
4789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790   (eval $ac_try) 2>&5
4791   ac_status=$?
4792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793   (exit $ac_status); }; }; then
4794   ac_cv_lib_socket_main=yes
4795 else
4796   echo "$as_me: failed program was:" >&5
4797 cat conftest.$ac_ext >&5
4798 ac_cv_lib_socket_main=no
4799 fi
4800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4801 LIBS=$ac_check_lib_save_LIBS
4802 fi
4803 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4804 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4805 if test $ac_cv_lib_socket_main = yes; then
4806   cat >>confdefs.h <<_ACEOF
4807 #define HAVE_LIBSOCKET 1
4808 _ACEOF
4809
4810   LIBS="-lsocket $LIBS"
4811
4812 fi
4813
4814
4815 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4816 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4817 if test "${ac_cv_lib_ipc_main+set}" = set; then
4818   echo $ECHO_N "(cached) $ECHO_C" >&6
4819 else
4820   ac_check_lib_save_LIBS=$LIBS
4821 LIBS="-lipc  $LIBS"
4822 cat >conftest.$ac_ext <<_ACEOF
4823 #line $LINENO "configure"
4824 #include "confdefs.h"
4825
4826
4827 #ifdef F77_DUMMY_MAIN
4828 #  ifdef __cplusplus
4829      extern "C"
4830 #  endif
4831    int F77_DUMMY_MAIN() { return 1; }
4832 #endif
4833 int
4834 main ()
4835 {
4836 main ();
4837   ;
4838   return 0;
4839 }
4840 _ACEOF
4841 rm -f conftest.$ac_objext conftest$ac_exeext
4842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4843   (eval $ac_link) 2>&5
4844   ac_status=$?
4845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846   (exit $ac_status); } &&
4847          { ac_try='test -s conftest$ac_exeext'
4848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849   (eval $ac_try) 2>&5
4850   ac_status=$?
4851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852   (exit $ac_status); }; }; then
4853   ac_cv_lib_ipc_main=yes
4854 else
4855   echo "$as_me: failed program was:" >&5
4856 cat conftest.$ac_ext >&5
4857 ac_cv_lib_ipc_main=no
4858 fi
4859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4860 LIBS=$ac_check_lib_save_LIBS
4861 fi
4862 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4863 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4864 if test $ac_cv_lib_ipc_main = yes; then
4865   cat >>confdefs.h <<_ACEOF
4866 #define HAVE_LIBIPC 1
4867 _ACEOF
4868
4869   LIBS="-lipc $LIBS"
4870
4871 fi
4872
4873
4874 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4875 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4876 if test "${ac_cv_lib_IPC_main+set}" = set; then
4877   echo $ECHO_N "(cached) $ECHO_C" >&6
4878 else
4879   ac_check_lib_save_LIBS=$LIBS
4880 LIBS="-lIPC  $LIBS"
4881 cat >conftest.$ac_ext <<_ACEOF
4882 #line $LINENO "configure"
4883 #include "confdefs.h"
4884
4885
4886 #ifdef F77_DUMMY_MAIN
4887 #  ifdef __cplusplus
4888      extern "C"
4889 #  endif
4890    int F77_DUMMY_MAIN() { return 1; }
4891 #endif
4892 int
4893 main ()
4894 {
4895 main ();
4896   ;
4897   return 0;
4898 }
4899 _ACEOF
4900 rm -f conftest.$ac_objext conftest$ac_exeext
4901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4902   (eval $ac_link) 2>&5
4903   ac_status=$?
4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905   (exit $ac_status); } &&
4906          { ac_try='test -s conftest$ac_exeext'
4907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908   (eval $ac_try) 2>&5
4909   ac_status=$?
4910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911   (exit $ac_status); }; }; then
4912   ac_cv_lib_IPC_main=yes
4913 else
4914   echo "$as_me: failed program was:" >&5
4915 cat conftest.$ac_ext >&5
4916 ac_cv_lib_IPC_main=no
4917 fi
4918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4919 LIBS=$ac_check_lib_save_LIBS
4920 fi
4921 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4922 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4923 if test $ac_cv_lib_IPC_main = yes; then
4924   cat >>confdefs.h <<_ACEOF
4925 #define HAVE_LIBIPC 1
4926 _ACEOF
4927
4928   LIBS="-lIPC $LIBS"
4929
4930 fi
4931
4932
4933 echo "$as_me:$LINENO: checking for main in -llc" >&5
4934 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4935 if test "${ac_cv_lib_lc_main+set}" = set; then
4936   echo $ECHO_N "(cached) $ECHO_C" >&6
4937 else
4938   ac_check_lib_save_LIBS=$LIBS
4939 LIBS="-llc  $LIBS"
4940 cat >conftest.$ac_ext <<_ACEOF
4941 #line $LINENO "configure"
4942 #include "confdefs.h"
4943
4944
4945 #ifdef F77_DUMMY_MAIN
4946 #  ifdef __cplusplus
4947      extern "C"
4948 #  endif
4949    int F77_DUMMY_MAIN() { return 1; }
4950 #endif
4951 int
4952 main ()
4953 {
4954 main ();
4955   ;
4956   return 0;
4957 }
4958 _ACEOF
4959 rm -f conftest.$ac_objext conftest$ac_exeext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4961   (eval $ac_link) 2>&5
4962   ac_status=$?
4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964   (exit $ac_status); } &&
4965          { ac_try='test -s conftest$ac_exeext'
4966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967   (eval $ac_try) 2>&5
4968   ac_status=$?
4969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970   (exit $ac_status); }; }; then
4971   ac_cv_lib_lc_main=yes
4972 else
4973   echo "$as_me: failed program was:" >&5
4974 cat conftest.$ac_ext >&5
4975 ac_cv_lib_lc_main=no
4976 fi
4977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4978 LIBS=$ac_check_lib_save_LIBS
4979 fi
4980 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4981 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4982 if test $ac_cv_lib_lc_main = yes; then
4983   cat >>confdefs.h <<_ACEOF
4984 #define HAVE_LIBLC 1
4985 _ACEOF
4986
4987   LIBS="-llc $LIBS"
4988
4989 fi
4990
4991
4992 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4993 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4994 if test "${ac_cv_lib_dld_main+set}" = set; then
4995   echo $ECHO_N "(cached) $ECHO_C" >&6
4996 else
4997   ac_check_lib_save_LIBS=$LIBS
4998 LIBS="-ldld  $LIBS"
4999 cat >conftest.$ac_ext <<_ACEOF
5000 #line $LINENO "configure"
5001 #include "confdefs.h"
5002
5003
5004 #ifdef F77_DUMMY_MAIN
5005 #  ifdef __cplusplus
5006      extern "C"
5007 #  endif
5008    int F77_DUMMY_MAIN() { return 1; }
5009 #endif
5010 int
5011 main ()
5012 {
5013 main ();
5014   ;
5015   return 0;
5016 }
5017 _ACEOF
5018 rm -f conftest.$ac_objext conftest$ac_exeext
5019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5020   (eval $ac_link) 2>&5
5021   ac_status=$?
5022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023   (exit $ac_status); } &&
5024          { ac_try='test -s conftest$ac_exeext'
5025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026   (eval $ac_try) 2>&5
5027   ac_status=$?
5028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029   (exit $ac_status); }; }; then
5030   ac_cv_lib_dld_main=yes
5031 else
5032   echo "$as_me: failed program was:" >&5
5033 cat conftest.$ac_ext >&5
5034 ac_cv_lib_dld_main=no
5035 fi
5036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5037 LIBS=$ac_check_lib_save_LIBS
5038 fi
5039 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5040 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5041 if test $ac_cv_lib_dld_main = yes; then
5042   cat >>confdefs.h <<_ACEOF
5043 #define HAVE_LIBDLD 1
5044 _ACEOF
5045
5046   LIBS="-ldld $LIBS"
5047
5048 fi
5049
5050
5051 echo "$as_me:$LINENO: checking for main in -lld" >&5
5052 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5053 if test "${ac_cv_lib_ld_main+set}" = set; then
5054   echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056   ac_check_lib_save_LIBS=$LIBS
5057 LIBS="-lld  $LIBS"
5058 cat >conftest.$ac_ext <<_ACEOF
5059 #line $LINENO "configure"
5060 #include "confdefs.h"
5061
5062
5063 #ifdef F77_DUMMY_MAIN
5064 #  ifdef __cplusplus
5065      extern "C"
5066 #  endif
5067    int F77_DUMMY_MAIN() { return 1; }
5068 #endif
5069 int
5070 main ()
5071 {
5072 main ();
5073   ;
5074   return 0;
5075 }
5076 _ACEOF
5077 rm -f conftest.$ac_objext conftest$ac_exeext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5079   (eval $ac_link) 2>&5
5080   ac_status=$?
5081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082   (exit $ac_status); } &&
5083          { ac_try='test -s conftest$ac_exeext'
5084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085   (eval $ac_try) 2>&5
5086   ac_status=$?
5087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088   (exit $ac_status); }; }; then
5089   ac_cv_lib_ld_main=yes
5090 else
5091   echo "$as_me: failed program was:" >&5
5092 cat conftest.$ac_ext >&5
5093 ac_cv_lib_ld_main=no
5094 fi
5095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5096 LIBS=$ac_check_lib_save_LIBS
5097 fi
5098 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5099 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5100 if test $ac_cv_lib_ld_main = yes; then
5101   cat >>confdefs.h <<_ACEOF
5102 #define HAVE_LIBLD 1
5103 _ACEOF
5104
5105   LIBS="-lld $LIBS"
5106
5107 fi
5108
5109
5110 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5111 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5112 if test "${ac_cv_lib_compat_main+set}" = set; then
5113   echo $ECHO_N "(cached) $ECHO_C" >&6
5114 else
5115   ac_check_lib_save_LIBS=$LIBS
5116 LIBS="-lcompat  $LIBS"
5117 cat >conftest.$ac_ext <<_ACEOF
5118 #line $LINENO "configure"
5119 #include "confdefs.h"
5120
5121
5122 #ifdef F77_DUMMY_MAIN
5123 #  ifdef __cplusplus
5124      extern "C"
5125 #  endif
5126    int F77_DUMMY_MAIN() { return 1; }
5127 #endif
5128 int
5129 main ()
5130 {
5131 main ();
5132   ;
5133   return 0;
5134 }
5135 _ACEOF
5136 rm -f conftest.$ac_objext conftest$ac_exeext
5137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5138   (eval $ac_link) 2>&5
5139   ac_status=$?
5140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141   (exit $ac_status); } &&
5142          { ac_try='test -s conftest$ac_exeext'
5143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144   (eval $ac_try) 2>&5
5145   ac_status=$?
5146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147   (exit $ac_status); }; }; then
5148   ac_cv_lib_compat_main=yes
5149 else
5150   echo "$as_me: failed program was:" >&5
5151 cat conftest.$ac_ext >&5
5152 ac_cv_lib_compat_main=no
5153 fi
5154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5155 LIBS=$ac_check_lib_save_LIBS
5156 fi
5157 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5158 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5159 if test $ac_cv_lib_compat_main = yes; then
5160   cat >>confdefs.h <<_ACEOF
5161 #define HAVE_LIBCOMPAT 1
5162 _ACEOF
5163
5164   LIBS="-lcompat $LIBS"
5165
5166 fi
5167
5168
5169 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5170 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5171 if test "${ac_cv_lib_BSD_main+set}" = set; then
5172   echo $ECHO_N "(cached) $ECHO_C" >&6
5173 else
5174   ac_check_lib_save_LIBS=$LIBS
5175 LIBS="-lBSD  $LIBS"
5176 cat >conftest.$ac_ext <<_ACEOF
5177 #line $LINENO "configure"
5178 #include "confdefs.h"
5179
5180
5181 #ifdef F77_DUMMY_MAIN
5182 #  ifdef __cplusplus
5183      extern "C"
5184 #  endif
5185    int F77_DUMMY_MAIN() { return 1; }
5186 #endif
5187 int
5188 main ()
5189 {
5190 main ();
5191   ;
5192   return 0;
5193 }
5194 _ACEOF
5195 rm -f conftest.$ac_objext conftest$ac_exeext
5196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5197   (eval $ac_link) 2>&5
5198   ac_status=$?
5199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200   (exit $ac_status); } &&
5201          { ac_try='test -s conftest$ac_exeext'
5202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203   (eval $ac_try) 2>&5
5204   ac_status=$?
5205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206   (exit $ac_status); }; }; then
5207   ac_cv_lib_BSD_main=yes
5208 else
5209   echo "$as_me: failed program was:" >&5
5210 cat conftest.$ac_ext >&5
5211 ac_cv_lib_BSD_main=no
5212 fi
5213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5214 LIBS=$ac_check_lib_save_LIBS
5215 fi
5216 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5217 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5218 if test $ac_cv_lib_BSD_main = yes; then
5219   cat >>confdefs.h <<_ACEOF
5220 #define HAVE_LIBBSD 1
5221 _ACEOF
5222
5223   LIBS="-lBSD $LIBS"
5224
5225 fi
5226
5227
5228 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5229 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5230 if test "${ac_cv_lib_gen_main+set}" = set; then
5231   echo $ECHO_N "(cached) $ECHO_C" >&6
5232 else
5233   ac_check_lib_save_LIBS=$LIBS
5234 LIBS="-lgen  $LIBS"
5235 cat >conftest.$ac_ext <<_ACEOF
5236 #line $LINENO "configure"
5237 #include "confdefs.h"
5238
5239
5240 #ifdef F77_DUMMY_MAIN
5241 #  ifdef __cplusplus
5242      extern "C"
5243 #  endif
5244    int F77_DUMMY_MAIN() { return 1; }
5245 #endif
5246 int
5247 main ()
5248 {
5249 main ();
5250   ;
5251   return 0;
5252 }
5253 _ACEOF
5254 rm -f conftest.$ac_objext conftest$ac_exeext
5255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5256   (eval $ac_link) 2>&5
5257   ac_status=$?
5258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259   (exit $ac_status); } &&
5260          { ac_try='test -s conftest$ac_exeext'
5261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262   (eval $ac_try) 2>&5
5263   ac_status=$?
5264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265   (exit $ac_status); }; }; then
5266   ac_cv_lib_gen_main=yes
5267 else
5268   echo "$as_me: failed program was:" >&5
5269 cat conftest.$ac_ext >&5
5270 ac_cv_lib_gen_main=no
5271 fi
5272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5273 LIBS=$ac_check_lib_save_LIBS
5274 fi
5275 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5276 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5277 if test $ac_cv_lib_gen_main = yes; then
5278   cat >>confdefs.h <<_ACEOF
5279 #define HAVE_LIBGEN 1
5280 _ACEOF
5281
5282   LIBS="-lgen $LIBS"
5283
5284 fi
5285
5286
5287 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5288 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5289 if test "${ac_cv_lib_PW_main+set}" = set; then
5290   echo $ECHO_N "(cached) $ECHO_C" >&6
5291 else
5292   ac_check_lib_save_LIBS=$LIBS
5293 LIBS="-lPW  $LIBS"
5294 cat >conftest.$ac_ext <<_ACEOF
5295 #line $LINENO "configure"
5296 #include "confdefs.h"
5297
5298
5299 #ifdef F77_DUMMY_MAIN
5300 #  ifdef __cplusplus
5301      extern "C"
5302 #  endif
5303    int F77_DUMMY_MAIN() { return 1; }
5304 #endif
5305 int
5306 main ()
5307 {
5308 main ();
5309   ;
5310   return 0;
5311 }
5312 _ACEOF
5313 rm -f conftest.$ac_objext conftest$ac_exeext
5314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5315   (eval $ac_link) 2>&5
5316   ac_status=$?
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); } &&
5319          { ac_try='test -s conftest$ac_exeext'
5320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321   (eval $ac_try) 2>&5
5322   ac_status=$?
5323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324   (exit $ac_status); }; }; then
5325   ac_cv_lib_PW_main=yes
5326 else
5327   echo "$as_me: failed program was:" >&5
5328 cat conftest.$ac_ext >&5
5329 ac_cv_lib_PW_main=no
5330 fi
5331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5332 LIBS=$ac_check_lib_save_LIBS
5333 fi
5334 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5335 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5336 if test $ac_cv_lib_PW_main = yes; then
5337   cat >>confdefs.h <<_ACEOF
5338 #define HAVE_LIBPW 1
5339 _ACEOF
5340
5341   LIBS="-lPW $LIBS"
5342
5343 fi
5344
5345
5346 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5347 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5348 if test "${ac_cv_lib_resolv_main+set}" = set; then
5349   echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351   ac_check_lib_save_LIBS=$LIBS
5352 LIBS="-lresolv  $LIBS"
5353 cat >conftest.$ac_ext <<_ACEOF
5354 #line $LINENO "configure"
5355 #include "confdefs.h"
5356
5357
5358 #ifdef F77_DUMMY_MAIN
5359 #  ifdef __cplusplus
5360      extern "C"
5361 #  endif
5362    int F77_DUMMY_MAIN() { return 1; }
5363 #endif
5364 int
5365 main ()
5366 {
5367 main ();
5368   ;
5369   return 0;
5370 }
5371 _ACEOF
5372 rm -f conftest.$ac_objext conftest$ac_exeext
5373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5374   (eval $ac_link) 2>&5
5375   ac_status=$?
5376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377   (exit $ac_status); } &&
5378          { ac_try='test -s conftest$ac_exeext'
5379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380   (eval $ac_try) 2>&5
5381   ac_status=$?
5382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383   (exit $ac_status); }; }; then
5384   ac_cv_lib_resolv_main=yes
5385 else
5386   echo "$as_me: failed program was:" >&5
5387 cat conftest.$ac_ext >&5
5388 ac_cv_lib_resolv_main=no
5389 fi
5390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5391 LIBS=$ac_check_lib_save_LIBS
5392 fi
5393 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5394 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5395 if test $ac_cv_lib_resolv_main = yes; then
5396   cat >>confdefs.h <<_ACEOF
5397 #define HAVE_LIBRESOLV 1
5398 _ACEOF
5399
5400   LIBS="-lresolv $LIBS"
5401
5402 fi
5403
5404 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5405 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5406 if test "${ac_cv_search_getopt_long+set}" = set; then
5407   echo $ECHO_N "(cached) $ECHO_C" >&6
5408 else
5409   ac_func_search_save_LIBS=$LIBS
5410 ac_cv_search_getopt_long=no
5411 cat >conftest.$ac_ext <<_ACEOF
5412 #line $LINENO "configure"
5413 #include "confdefs.h"
5414
5415 /* Override any gcc2 internal prototype to avoid an error.  */
5416 #ifdef __cplusplus
5417 extern "C"
5418 #endif
5419 /* We use char because int might match the return type of a gcc2
5420    builtin and then its argument prototype would still apply.  */
5421 char getopt_long ();
5422 #ifdef F77_DUMMY_MAIN
5423 #  ifdef __cplusplus
5424      extern "C"
5425 #  endif
5426    int F77_DUMMY_MAIN() { return 1; }
5427 #endif
5428 int
5429 main ()
5430 {
5431 getopt_long ();
5432   ;
5433   return 0;
5434 }
5435 _ACEOF
5436 rm -f conftest.$ac_objext conftest$ac_exeext
5437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5438   (eval $ac_link) 2>&5
5439   ac_status=$?
5440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441   (exit $ac_status); } &&
5442          { ac_try='test -s conftest$ac_exeext'
5443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5444   (eval $ac_try) 2>&5
5445   ac_status=$?
5446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447   (exit $ac_status); }; }; then
5448   ac_cv_search_getopt_long="none required"
5449 else
5450   echo "$as_me: failed program was:" >&5
5451 cat conftest.$ac_ext >&5
5452 fi
5453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5454 if test "$ac_cv_search_getopt_long" = no; then
5455   for ac_lib in getopt gnugetopt; do
5456     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5457     cat >conftest.$ac_ext <<_ACEOF
5458 #line $LINENO "configure"
5459 #include "confdefs.h"
5460
5461 /* Override any gcc2 internal prototype to avoid an error.  */
5462 #ifdef __cplusplus
5463 extern "C"
5464 #endif
5465 /* We use char because int might match the return type of a gcc2
5466    builtin and then its argument prototype would still apply.  */
5467 char getopt_long ();
5468 #ifdef F77_DUMMY_MAIN
5469 #  ifdef __cplusplus
5470      extern "C"
5471 #  endif
5472    int F77_DUMMY_MAIN() { return 1; }
5473 #endif
5474 int
5475 main ()
5476 {
5477 getopt_long ();
5478   ;
5479   return 0;
5480 }
5481 _ACEOF
5482 rm -f conftest.$ac_objext conftest$ac_exeext
5483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5484   (eval $ac_link) 2>&5
5485   ac_status=$?
5486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487   (exit $ac_status); } &&
5488          { ac_try='test -s conftest$ac_exeext'
5489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490   (eval $ac_try) 2>&5
5491   ac_status=$?
5492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493   (exit $ac_status); }; }; then
5494   ac_cv_search_getopt_long="-l$ac_lib"
5495 break
5496 else
5497   echo "$as_me: failed program was:" >&5
5498 cat conftest.$ac_ext >&5
5499 fi
5500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5501   done
5502 fi
5503 LIBS=$ac_func_search_save_LIBS
5504 fi
5505 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5506 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5507 if test "$ac_cv_search_getopt_long" != no; then
5508   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5509
5510 fi
5511
5512 # QNX:
5513
5514 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5515 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5516 if test "${ac_cv_lib_unix_main+set}" = set; then
5517   echo $ECHO_N "(cached) $ECHO_C" >&6
5518 else
5519   ac_check_lib_save_LIBS=$LIBS
5520 LIBS="-lunix  $LIBS"
5521 cat >conftest.$ac_ext <<_ACEOF
5522 #line $LINENO "configure"
5523 #include "confdefs.h"
5524
5525
5526 #ifdef F77_DUMMY_MAIN
5527 #  ifdef __cplusplus
5528      extern "C"
5529 #  endif
5530    int F77_DUMMY_MAIN() { return 1; }
5531 #endif
5532 int
5533 main ()
5534 {
5535 main ();
5536   ;
5537   return 0;
5538 }
5539 _ACEOF
5540 rm -f conftest.$ac_objext conftest$ac_exeext
5541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5542   (eval $ac_link) 2>&5
5543   ac_status=$?
5544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545   (exit $ac_status); } &&
5546          { ac_try='test -s conftest$ac_exeext'
5547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548   (eval $ac_try) 2>&5
5549   ac_status=$?
5550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551   (exit $ac_status); }; }; then
5552   ac_cv_lib_unix_main=yes
5553 else
5554   echo "$as_me: failed program was:" >&5
5555 cat conftest.$ac_ext >&5
5556 ac_cv_lib_unix_main=no
5557 fi
5558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5559 LIBS=$ac_check_lib_save_LIBS
5560 fi
5561 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5562 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5563 if test $ac_cv_lib_unix_main = yes; then
5564   cat >>confdefs.h <<_ACEOF
5565 #define HAVE_LIBUNIX 1
5566 _ACEOF
5567
5568   LIBS="-lunix $LIBS"
5569
5570 fi
5571
5572 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5573 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5574 if test "${ac_cv_search_crypt+set}" = set; then
5575   echo $ECHO_N "(cached) $ECHO_C" >&6
5576 else
5577   ac_func_search_save_LIBS=$LIBS
5578 ac_cv_search_crypt=no
5579 cat >conftest.$ac_ext <<_ACEOF
5580 #line $LINENO "configure"
5581 #include "confdefs.h"
5582
5583 /* Override any gcc2 internal prototype to avoid an error.  */
5584 #ifdef __cplusplus
5585 extern "C"
5586 #endif
5587 /* We use char because int might match the return type of a gcc2
5588    builtin and then its argument prototype would still apply.  */
5589 char crypt ();
5590 #ifdef F77_DUMMY_MAIN
5591 #  ifdef __cplusplus
5592      extern "C"
5593 #  endif
5594    int F77_DUMMY_MAIN() { return 1; }
5595 #endif
5596 int
5597 main ()
5598 {
5599 crypt ();
5600   ;
5601   return 0;
5602 }
5603 _ACEOF
5604 rm -f conftest.$ac_objext conftest$ac_exeext
5605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5606   (eval $ac_link) 2>&5
5607   ac_status=$?
5608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609   (exit $ac_status); } &&
5610          { ac_try='test -s conftest$ac_exeext'
5611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612   (eval $ac_try) 2>&5
5613   ac_status=$?
5614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615   (exit $ac_status); }; }; then
5616   ac_cv_search_crypt="none required"
5617 else
5618   echo "$as_me: failed program was:" >&5
5619 cat conftest.$ac_ext >&5
5620 fi
5621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5622 if test "$ac_cv_search_crypt" = no; then
5623   for ac_lib in crypt; do
5624     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5625     cat >conftest.$ac_ext <<_ACEOF
5626 #line $LINENO "configure"
5627 #include "confdefs.h"
5628
5629 /* Override any gcc2 internal prototype to avoid an error.  */
5630 #ifdef __cplusplus
5631 extern "C"
5632 #endif
5633 /* We use char because int might match the return type of a gcc2
5634    builtin and then its argument prototype would still apply.  */
5635 char crypt ();
5636 #ifdef F77_DUMMY_MAIN
5637 #  ifdef __cplusplus
5638      extern "C"
5639 #  endif
5640    int F77_DUMMY_MAIN() { return 1; }
5641 #endif
5642 int
5643 main ()
5644 {
5645 crypt ();
5646   ;
5647   return 0;
5648 }
5649 _ACEOF
5650 rm -f conftest.$ac_objext conftest$ac_exeext
5651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5652   (eval $ac_link) 2>&5
5653   ac_status=$?
5654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655   (exit $ac_status); } &&
5656          { ac_try='test -s conftest$ac_exeext'
5657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5658   (eval $ac_try) 2>&5
5659   ac_status=$?
5660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661   (exit $ac_status); }; }; then
5662   ac_cv_search_crypt="-l$ac_lib"
5663 break
5664 else
5665   echo "$as_me: failed program was:" >&5
5666 cat conftest.$ac_ext >&5
5667 fi
5668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5669   done
5670 fi
5671 LIBS=$ac_func_search_save_LIBS
5672 fi
5673 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5674 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5675 if test "$ac_cv_search_crypt" != no; then
5676   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5677
5678 fi
5679
5680 # BeOS:
5681 if test "$PORTNAME" = "beos"
5682 then
5683
5684 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5685 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5686 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5687   echo $ECHO_N "(cached) $ECHO_C" >&6
5688 else
5689   ac_check_lib_save_LIBS=$LIBS
5690 LIBS="-lbind  $LIBS"
5691 cat >conftest.$ac_ext <<_ACEOF
5692 #line $LINENO "configure"
5693 #include "confdefs.h"
5694
5695 /* Override any gcc2 internal prototype to avoid an error.  */
5696 #ifdef __cplusplus
5697 extern "C"
5698 #endif
5699 /* We use char because int might match the return type of a gcc2
5700    builtin and then its argument prototype would still apply.  */
5701 char __inet_ntoa ();
5702 #ifdef F77_DUMMY_MAIN
5703 #  ifdef __cplusplus
5704      extern "C"
5705 #  endif
5706    int F77_DUMMY_MAIN() { return 1; }
5707 #endif
5708 int
5709 main ()
5710 {
5711 __inet_ntoa ();
5712   ;
5713   return 0;
5714 }
5715 _ACEOF
5716 rm -f conftest.$ac_objext conftest$ac_exeext
5717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5718   (eval $ac_link) 2>&5
5719   ac_status=$?
5720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721   (exit $ac_status); } &&
5722          { ac_try='test -s conftest$ac_exeext'
5723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724   (eval $ac_try) 2>&5
5725   ac_status=$?
5726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727   (exit $ac_status); }; }; then
5728   ac_cv_lib_bind___inet_ntoa=yes
5729 else
5730   echo "$as_me: failed program was:" >&5
5731 cat conftest.$ac_ext >&5
5732 ac_cv_lib_bind___inet_ntoa=no
5733 fi
5734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5735 LIBS=$ac_check_lib_save_LIBS
5736 fi
5737 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5738 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5739 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5740   cat >>confdefs.h <<_ACEOF
5741 #define HAVE_LIBBIND 1
5742 _ACEOF
5743
5744   LIBS="-lbind $LIBS"
5745
5746 fi
5747
5748 fi
5749 # Solaris:
5750 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5751 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5752 if test "${ac_cv_search_fdatasync+set}" = set; then
5753   echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755   ac_func_search_save_LIBS=$LIBS
5756 ac_cv_search_fdatasync=no
5757 cat >conftest.$ac_ext <<_ACEOF
5758 #line $LINENO "configure"
5759 #include "confdefs.h"
5760
5761 /* Override any gcc2 internal prototype to avoid an error.  */
5762 #ifdef __cplusplus
5763 extern "C"
5764 #endif
5765 /* We use char because int might match the return type of a gcc2
5766    builtin and then its argument prototype would still apply.  */
5767 char fdatasync ();
5768 #ifdef F77_DUMMY_MAIN
5769 #  ifdef __cplusplus
5770      extern "C"
5771 #  endif
5772    int F77_DUMMY_MAIN() { return 1; }
5773 #endif
5774 int
5775 main ()
5776 {
5777 fdatasync ();
5778   ;
5779   return 0;
5780 }
5781 _ACEOF
5782 rm -f conftest.$ac_objext conftest$ac_exeext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5784   (eval $ac_link) 2>&5
5785   ac_status=$?
5786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787   (exit $ac_status); } &&
5788          { ac_try='test -s conftest$ac_exeext'
5789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790   (eval $ac_try) 2>&5
5791   ac_status=$?
5792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793   (exit $ac_status); }; }; then
5794   ac_cv_search_fdatasync="none required"
5795 else
5796   echo "$as_me: failed program was:" >&5
5797 cat conftest.$ac_ext >&5
5798 fi
5799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5800 if test "$ac_cv_search_fdatasync" = no; then
5801   for ac_lib in rt posix4; do
5802     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5803     cat >conftest.$ac_ext <<_ACEOF
5804 #line $LINENO "configure"
5805 #include "confdefs.h"
5806
5807 /* Override any gcc2 internal prototype to avoid an error.  */
5808 #ifdef __cplusplus
5809 extern "C"
5810 #endif
5811 /* We use char because int might match the return type of a gcc2
5812    builtin and then its argument prototype would still apply.  */
5813 char fdatasync ();
5814 #ifdef F77_DUMMY_MAIN
5815 #  ifdef __cplusplus
5816      extern "C"
5817 #  endif
5818    int F77_DUMMY_MAIN() { return 1; }
5819 #endif
5820 int
5821 main ()
5822 {
5823 fdatasync ();
5824   ;
5825   return 0;
5826 }
5827 _ACEOF
5828 rm -f conftest.$ac_objext conftest$ac_exeext
5829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5830   (eval $ac_link) 2>&5
5831   ac_status=$?
5832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833   (exit $ac_status); } &&
5834          { ac_try='test -s conftest$ac_exeext'
5835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836   (eval $ac_try) 2>&5
5837   ac_status=$?
5838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839   (exit $ac_status); }; }; then
5840   ac_cv_search_fdatasync="-l$ac_lib"
5841 break
5842 else
5843   echo "$as_me: failed program was:" >&5
5844 cat conftest.$ac_ext >&5
5845 fi
5846 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5847   done
5848 fi
5849 LIBS=$ac_func_search_save_LIBS
5850 fi
5851 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5852 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5853 if test "$ac_cv_search_fdatasync" != no; then
5854   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5855
5856 fi
5857
5858 # Cygwin:
5859
5860 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5861 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5862 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5863   echo $ECHO_N "(cached) $ECHO_C" >&6
5864 else
5865   ac_check_lib_save_LIBS=$LIBS
5866 LIBS="-lcygipc  $LIBS"
5867 cat >conftest.$ac_ext <<_ACEOF
5868 #line $LINENO "configure"
5869 #include "confdefs.h"
5870
5871 /* Override any gcc2 internal prototype to avoid an error.  */
5872 #ifdef __cplusplus
5873 extern "C"
5874 #endif
5875 /* We use char because int might match the return type of a gcc2
5876    builtin and then its argument prototype would still apply.  */
5877 char shmget ();
5878 #ifdef F77_DUMMY_MAIN
5879 #  ifdef __cplusplus
5880      extern "C"
5881 #  endif
5882    int F77_DUMMY_MAIN() { return 1; }
5883 #endif
5884 int
5885 main ()
5886 {
5887 shmget ();
5888   ;
5889   return 0;
5890 }
5891 _ACEOF
5892 rm -f conftest.$ac_objext conftest$ac_exeext
5893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5894   (eval $ac_link) 2>&5
5895   ac_status=$?
5896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897   (exit $ac_status); } &&
5898          { ac_try='test -s conftest$ac_exeext'
5899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900   (eval $ac_try) 2>&5
5901   ac_status=$?
5902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903   (exit $ac_status); }; }; then
5904   ac_cv_lib_cygipc_shmget=yes
5905 else
5906   echo "$as_me: failed program was:" >&5
5907 cat conftest.$ac_ext >&5
5908 ac_cv_lib_cygipc_shmget=no
5909 fi
5910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5911 LIBS=$ac_check_lib_save_LIBS
5912 fi
5913 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5914 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5915 if test $ac_cv_lib_cygipc_shmget = yes; then
5916   cat >>confdefs.h <<_ACEOF
5917 #define HAVE_LIBCYGIPC 1
5918 _ACEOF
5919
5920   LIBS="-lcygipc $LIBS"
5921
5922 fi
5923
5924 # WIN32:
5925 if test "$PORTNAME" = "win32"
5926 then
5927
5928 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5929 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5930 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5931   echo $ECHO_N "(cached) $ECHO_C" >&6
5932 else
5933   ac_check_lib_save_LIBS=$LIBS
5934 LIBS="-lwsock32  $LIBS"
5935 cat >conftest.$ac_ext <<_ACEOF
5936 #line $LINENO "configure"
5937 #include "confdefs.h"
5938
5939
5940 #ifdef F77_DUMMY_MAIN
5941 #  ifdef __cplusplus
5942      extern "C"
5943 #  endif
5944    int F77_DUMMY_MAIN() { return 1; }
5945 #endif
5946 int
5947 main ()
5948 {
5949 main ();
5950   ;
5951   return 0;
5952 }
5953 _ACEOF
5954 rm -f conftest.$ac_objext conftest$ac_exeext
5955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5956   (eval $ac_link) 2>&5
5957   ac_status=$?
5958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959   (exit $ac_status); } &&
5960          { ac_try='test -s conftest$ac_exeext'
5961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962   (eval $ac_try) 2>&5
5963   ac_status=$?
5964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965   (exit $ac_status); }; }; then
5966   ac_cv_lib_wsock32_main=yes
5967 else
5968   echo "$as_me: failed program was:" >&5
5969 cat conftest.$ac_ext >&5
5970 ac_cv_lib_wsock32_main=no
5971 fi
5972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5973 LIBS=$ac_check_lib_save_LIBS
5974 fi
5975 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5976 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5977 if test $ac_cv_lib_wsock32_main = yes; then
5978   cat >>confdefs.h <<_ACEOF
5979 #define HAVE_LIBWSOCK32 1
5980 _ACEOF
5981
5982   LIBS="-lwsock32 $LIBS"
5983
5984 fi
5985
5986 fi
5987
5988 if test "$with_readline" = yes; then
5989
5990 echo "$as_me:$LINENO: checking for readline" >&5
5991 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5992
5993 if test "${pgac_cv_check_readline+set}" = set; then
5994   echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996   pgac_cv_check_readline=no
5997 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5998   for pgac_rllib in -lreadline -ledit ; do
5999     pgac_save_LIBS=$LIBS
6000     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
6001     cat >conftest.$ac_ext <<_ACEOF
6002 #line $LINENO "configure"
6003 #include "confdefs.h"
6004
6005 /* Override any gcc2 internal prototype to avoid an error.  */
6006 #ifdef __cplusplus
6007 extern "C"
6008 #endif
6009 /* We use char because int might match the return type of a gcc2
6010    builtin and then its argument prototype would still apply.  */
6011 char readline ();
6012 #ifdef F77_DUMMY_MAIN
6013 #  ifdef __cplusplus
6014      extern "C"
6015 #  endif
6016    int F77_DUMMY_MAIN() { return 1; }
6017 #endif
6018 int
6019 main ()
6020 {
6021 readline ();
6022   ;
6023   return 0;
6024 }
6025 _ACEOF
6026 rm -f conftest.$ac_objext conftest$ac_exeext
6027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6028   (eval $ac_link) 2>&5
6029   ac_status=$?
6030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); } &&
6032          { ac_try='test -s conftest$ac_exeext'
6033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6034   (eval $ac_try) 2>&5
6035   ac_status=$?
6036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037   (exit $ac_status); }; }; then
6038
6039       # NetBSD and OpenBSD have a broken linker that does not
6040       # recognize dependent libraries
6041       case $host_os in netbsd* | openbsd* )
6042         case $pgac_lib in
6043           *curses*) ;;
6044           *) pgac_lib=" -lcurses" ;;
6045         esac
6046       esac
6047
6048       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6049       break 2
6050
6051 else
6052   echo "$as_me: failed program was:" >&5
6053 cat conftest.$ac_ext >&5
6054 fi
6055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6056     LIBS=$pgac_save_LIBS
6057   done
6058 done
6059 LIBS=$pgac_save_LIBS
6060
6061 fi
6062
6063 if test "$pgac_cv_check_readline" != no ; then
6064
6065 cat >>confdefs.h <<\_ACEOF
6066 #define HAVE_LIBREADLINE 1
6067 _ACEOF
6068
6069   LIBS="$pgac_cv_check_readline $LIBS"
6070   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6071 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6072 else
6073   echo "$as_me:$LINENO: result: no" >&5
6074 echo "${ECHO_T}no" >&6
6075 fi
6076   if test x"$pgac_cv_check_readline" = x"no"; then
6077     { { echo "$as_me:$LINENO: error: readline library not found
6078 If you have readline already installed, see config.log for details on the
6079 failure.  It is possible the compiler isn't looking in the proper directory.
6080 Use --without-readline to disable readline support." >&5
6081 echo "$as_me: error: readline library not found
6082 If you have readline already installed, see config.log for details on the
6083 failure.  It is possible the compiler isn't looking in the proper directory.
6084 Use --without-readline to disable readline support." >&2;}
6085    { (exit 1); exit 1; }; }
6086   fi
6087 fi
6088
6089 if test "$with_zlib" = yes; then
6090
6091 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6092 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6093 if test "${ac_cv_lib_z_inflate+set}" = set; then
6094   echo $ECHO_N "(cached) $ECHO_C" >&6
6095 else
6096   ac_check_lib_save_LIBS=$LIBS
6097 LIBS="-lz  $LIBS"
6098 cat >conftest.$ac_ext <<_ACEOF
6099 #line $LINENO "configure"
6100 #include "confdefs.h"
6101
6102 /* Override any gcc2 internal prototype to avoid an error.  */
6103 #ifdef __cplusplus
6104 extern "C"
6105 #endif
6106 /* We use char because int might match the return type of a gcc2
6107    builtin and then its argument prototype would still apply.  */
6108 char inflate ();
6109 #ifdef F77_DUMMY_MAIN
6110 #  ifdef __cplusplus
6111      extern "C"
6112 #  endif
6113    int F77_DUMMY_MAIN() { return 1; }
6114 #endif
6115 int
6116 main ()
6117 {
6118 inflate ();
6119   ;
6120   return 0;
6121 }
6122 _ACEOF
6123 rm -f conftest.$ac_objext conftest$ac_exeext
6124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6125   (eval $ac_link) 2>&5
6126   ac_status=$?
6127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128   (exit $ac_status); } &&
6129          { ac_try='test -s conftest$ac_exeext'
6130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131   (eval $ac_try) 2>&5
6132   ac_status=$?
6133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134   (exit $ac_status); }; }; then
6135   ac_cv_lib_z_inflate=yes
6136 else
6137   echo "$as_me: failed program was:" >&5
6138 cat conftest.$ac_ext >&5
6139 ac_cv_lib_z_inflate=no
6140 fi
6141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6142 LIBS=$ac_check_lib_save_LIBS
6143 fi
6144 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6145 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6146 if test $ac_cv_lib_z_inflate = yes; then
6147   cat >>confdefs.h <<_ACEOF
6148 #define HAVE_LIBZ 1
6149 _ACEOF
6150
6151   LIBS="-lz $LIBS"
6152
6153 else
6154   { { echo "$as_me:$LINENO: error: zlib library not found
6155 If you have zlib already installed, see config.log for details on the
6156 failure.  It is possible the compiler isn't looking in the proper directory.
6157 Use --without-zlib to disable zlib support." >&5
6158 echo "$as_me: error: zlib library not found
6159 If you have zlib already installed, see config.log for details on the
6160 failure.  It is possible the compiler isn't looking in the proper directory.
6161 Use --without-zlib to disable zlib support." >&2;}
6162    { (exit 1); exit 1; }; }
6163 fi
6164
6165 fi
6166
6167 if test "$enable_spinlocks" = yes; then
6168
6169 cat >>confdefs.h <<\_ACEOF
6170 #define HAVE_SPINLOCKS 1
6171 _ACEOF
6172
6173 else
6174   { echo "$as_me:$LINENO: WARNING:
6175 *** Not using spinlocks will cause poor performance." >&5
6176 echo "$as_me: WARNING:
6177 *** Not using spinlocks will cause poor performance." >&2;}
6178 fi
6179
6180 if test "$with_krb4" = yes ; then
6181
6182 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6183 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6184 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6185   echo $ECHO_N "(cached) $ECHO_C" >&6
6186 else
6187   ac_check_lib_save_LIBS=$LIBS
6188 LIBS="-ldes  $LIBS"
6189 cat >conftest.$ac_ext <<_ACEOF
6190 #line $LINENO "configure"
6191 #include "confdefs.h"
6192
6193 /* Override any gcc2 internal prototype to avoid an error.  */
6194 #ifdef __cplusplus
6195 extern "C"
6196 #endif
6197 /* We use char because int might match the return type of a gcc2
6198    builtin and then its argument prototype would still apply.  */
6199 char des_encrypt ();
6200 #ifdef F77_DUMMY_MAIN
6201 #  ifdef __cplusplus
6202      extern "C"
6203 #  endif
6204    int F77_DUMMY_MAIN() { return 1; }
6205 #endif
6206 int
6207 main ()
6208 {
6209 des_encrypt ();
6210   ;
6211   return 0;
6212 }
6213 _ACEOF
6214 rm -f conftest.$ac_objext conftest$ac_exeext
6215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6216   (eval $ac_link) 2>&5
6217   ac_status=$?
6218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219   (exit $ac_status); } &&
6220          { ac_try='test -s conftest$ac_exeext'
6221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222   (eval $ac_try) 2>&5
6223   ac_status=$?
6224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225   (exit $ac_status); }; }; then
6226   ac_cv_lib_des_des_encrypt=yes
6227 else
6228   echo "$as_me: failed program was:" >&5
6229 cat conftest.$ac_ext >&5
6230 ac_cv_lib_des_des_encrypt=no
6231 fi
6232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6233 LIBS=$ac_check_lib_save_LIBS
6234 fi
6235 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6236 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6237 if test $ac_cv_lib_des_des_encrypt = yes; then
6238   cat >>confdefs.h <<_ACEOF
6239 #define HAVE_LIBDES 1
6240 _ACEOF
6241
6242   LIBS="-ldes $LIBS"
6243
6244 else
6245   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6246 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6247    { (exit 1); exit 1; }; }
6248 fi
6249
6250
6251 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6252 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6253 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6254   echo $ECHO_N "(cached) $ECHO_C" >&6
6255 else
6256   ac_check_lib_save_LIBS=$LIBS
6257 LIBS="-lkrb  $LIBS"
6258 cat >conftest.$ac_ext <<_ACEOF
6259 #line $LINENO "configure"
6260 #include "confdefs.h"
6261
6262 /* Override any gcc2 internal prototype to avoid an error.  */
6263 #ifdef __cplusplus
6264 extern "C"
6265 #endif
6266 /* We use char because int might match the return type of a gcc2
6267    builtin and then its argument prototype would still apply.  */
6268 char krb_sendauth ();
6269 #ifdef F77_DUMMY_MAIN
6270 #  ifdef __cplusplus
6271      extern "C"
6272 #  endif
6273    int F77_DUMMY_MAIN() { return 1; }
6274 #endif
6275 int
6276 main ()
6277 {
6278 krb_sendauth ();
6279   ;
6280   return 0;
6281 }
6282 _ACEOF
6283 rm -f conftest.$ac_objext conftest$ac_exeext
6284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6285   (eval $ac_link) 2>&5
6286   ac_status=$?
6287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288   (exit $ac_status); } &&
6289          { ac_try='test -s conftest$ac_exeext'
6290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291   (eval $ac_try) 2>&5
6292   ac_status=$?
6293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294   (exit $ac_status); }; }; then
6295   ac_cv_lib_krb_krb_sendauth=yes
6296 else
6297   echo "$as_me: failed program was:" >&5
6298 cat conftest.$ac_ext >&5
6299 ac_cv_lib_krb_krb_sendauth=no
6300 fi
6301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6302 LIBS=$ac_check_lib_save_LIBS
6303 fi
6304 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6305 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6306 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6307   cat >>confdefs.h <<_ACEOF
6308 #define HAVE_LIBKRB 1
6309 _ACEOF
6310
6311   LIBS="-lkrb $LIBS"
6312
6313 else
6314   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6315 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6316    { (exit 1); exit 1; }; }
6317 fi
6318
6319
6320 for ac_func in gethostname
6321 do
6322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6323 echo "$as_me:$LINENO: checking for $ac_func" >&5
6324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6325 if eval "test \"\${$as_ac_var+set}\" = set"; then
6326   echo $ECHO_N "(cached) $ECHO_C" >&6
6327 else
6328   cat >conftest.$ac_ext <<_ACEOF
6329 #line $LINENO "configure"
6330 #include "confdefs.h"
6331 /* System header to define __stub macros and hopefully few prototypes,
6332     which can conflict with char $ac_func (); below.  */
6333 #include <assert.h>
6334 /* Override any gcc2 internal prototype to avoid an error.  */
6335 #ifdef __cplusplus
6336 extern "C"
6337 #endif
6338 /* We use char because int might match the return type of a gcc2
6339    builtin and then its argument prototype would still apply.  */
6340 char $ac_func ();
6341 char (*f) ();
6342
6343 #ifdef F77_DUMMY_MAIN
6344 #  ifdef __cplusplus
6345      extern "C"
6346 #  endif
6347    int F77_DUMMY_MAIN() { return 1; }
6348 #endif
6349 int
6350 main ()
6351 {
6352 /* The GNU C library defines this for functions which it implements
6353     to always fail with ENOSYS.  Some functions are actually named
6354     something starting with __ and the normal name is an alias.  */
6355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6356 choke me
6357 #else
6358 f = $ac_func;
6359 #endif
6360
6361   ;
6362   return 0;
6363 }
6364 _ACEOF
6365 rm -f conftest.$ac_objext conftest$ac_exeext
6366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6367   (eval $ac_link) 2>&5
6368   ac_status=$?
6369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370   (exit $ac_status); } &&
6371          { ac_try='test -s conftest$ac_exeext'
6372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6373   (eval $ac_try) 2>&5
6374   ac_status=$?
6375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376   (exit $ac_status); }; }; then
6377   eval "$as_ac_var=yes"
6378 else
6379   echo "$as_me: failed program was:" >&5
6380 cat conftest.$ac_ext >&5
6381 eval "$as_ac_var=no"
6382 fi
6383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6384 fi
6385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6387 if test `eval echo '${'$as_ac_var'}'` = yes; then
6388   cat >>confdefs.h <<_ACEOF
6389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6390 _ACEOF
6391
6392 else
6393   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6394 fi
6395 done
6396
6397
6398 fi
6399
6400 if test "$with_krb5" = yes ; then
6401   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6402 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6403 if test "${ac_cv_search_com_err+set}" = set; then
6404   echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406   ac_func_search_save_LIBS=$LIBS
6407 ac_cv_search_com_err=no
6408 cat >conftest.$ac_ext <<_ACEOF
6409 #line $LINENO "configure"
6410 #include "confdefs.h"
6411
6412 /* Override any gcc2 internal prototype to avoid an error.  */
6413 #ifdef __cplusplus
6414 extern "C"
6415 #endif
6416 /* We use char because int might match the return type of a gcc2
6417    builtin and then its argument prototype would still apply.  */
6418 char com_err ();
6419 #ifdef F77_DUMMY_MAIN
6420 #  ifdef __cplusplus
6421      extern "C"
6422 #  endif
6423    int F77_DUMMY_MAIN() { return 1; }
6424 #endif
6425 int
6426 main ()
6427 {
6428 com_err ();
6429   ;
6430   return 0;
6431 }
6432 _ACEOF
6433 rm -f conftest.$ac_objext conftest$ac_exeext
6434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6435   (eval $ac_link) 2>&5
6436   ac_status=$?
6437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438   (exit $ac_status); } &&
6439          { ac_try='test -s conftest$ac_exeext'
6440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441   (eval $ac_try) 2>&5
6442   ac_status=$?
6443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444   (exit $ac_status); }; }; then
6445   ac_cv_search_com_err="none required"
6446 else
6447   echo "$as_me: failed program was:" >&5
6448 cat conftest.$ac_ext >&5
6449 fi
6450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6451 if test "$ac_cv_search_com_err" = no; then
6452   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6453     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6454     cat >conftest.$ac_ext <<_ACEOF
6455 #line $LINENO "configure"
6456 #include "confdefs.h"
6457
6458 /* Override any gcc2 internal prototype to avoid an error.  */
6459 #ifdef __cplusplus
6460 extern "C"
6461 #endif
6462 /* We use char because int might match the return type of a gcc2
6463    builtin and then its argument prototype would still apply.  */
6464 char com_err ();
6465 #ifdef F77_DUMMY_MAIN
6466 #  ifdef __cplusplus
6467      extern "C"
6468 #  endif
6469    int F77_DUMMY_MAIN() { return 1; }
6470 #endif
6471 int
6472 main ()
6473 {
6474 com_err ();
6475   ;
6476   return 0;
6477 }
6478 _ACEOF
6479 rm -f conftest.$ac_objext conftest$ac_exeext
6480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6481   (eval $ac_link) 2>&5
6482   ac_status=$?
6483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484   (exit $ac_status); } &&
6485          { ac_try='test -s conftest$ac_exeext'
6486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6487   (eval $ac_try) 2>&5
6488   ac_status=$?
6489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490   (exit $ac_status); }; }; then
6491   ac_cv_search_com_err="-l$ac_lib"
6492 break
6493 else
6494   echo "$as_me: failed program was:" >&5
6495 cat conftest.$ac_ext >&5
6496 fi
6497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6498   done
6499 fi
6500 LIBS=$ac_func_search_save_LIBS
6501 fi
6502 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6503 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6504 if test "$ac_cv_search_com_err" != no; then
6505   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6506
6507 else
6508   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6509 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6510    { (exit 1); exit 1; }; }
6511 fi
6512
6513   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6514 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6515 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6516   echo $ECHO_N "(cached) $ECHO_C" >&6
6517 else
6518   ac_func_search_save_LIBS=$LIBS
6519 ac_cv_search_krb5_encrypt=no
6520 cat >conftest.$ac_ext <<_ACEOF
6521 #line $LINENO "configure"
6522 #include "confdefs.h"
6523
6524 /* Override any gcc2 internal prototype to avoid an error.  */
6525 #ifdef __cplusplus
6526 extern "C"
6527 #endif
6528 /* We use char because int might match the return type of a gcc2
6529    builtin and then its argument prototype would still apply.  */
6530 char krb5_encrypt ();
6531 #ifdef F77_DUMMY_MAIN
6532 #  ifdef __cplusplus
6533      extern "C"
6534 #  endif
6535    int F77_DUMMY_MAIN() { return 1; }
6536 #endif
6537 int
6538 main ()
6539 {
6540 krb5_encrypt ();
6541   ;
6542   return 0;
6543 }
6544 _ACEOF
6545 rm -f conftest.$ac_objext conftest$ac_exeext
6546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6547   (eval $ac_link) 2>&5
6548   ac_status=$?
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); } &&
6551          { ac_try='test -s conftest$ac_exeext'
6552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553   (eval $ac_try) 2>&5
6554   ac_status=$?
6555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556   (exit $ac_status); }; }; then
6557   ac_cv_search_krb5_encrypt="none required"
6558 else
6559   echo "$as_me: failed program was:" >&5
6560 cat conftest.$ac_ext >&5
6561 fi
6562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6563 if test "$ac_cv_search_krb5_encrypt" = no; then
6564   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6565     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6566     cat >conftest.$ac_ext <<_ACEOF
6567 #line $LINENO "configure"
6568 #include "confdefs.h"
6569
6570 /* Override any gcc2 internal prototype to avoid an error.  */
6571 #ifdef __cplusplus
6572 extern "C"
6573 #endif
6574 /* We use char because int might match the return type of a gcc2
6575    builtin and then its argument prototype would still apply.  */
6576 char krb5_encrypt ();
6577 #ifdef F77_DUMMY_MAIN
6578 #  ifdef __cplusplus
6579      extern "C"
6580 #  endif
6581    int F77_DUMMY_MAIN() { return 1; }
6582 #endif
6583 int
6584 main ()
6585 {
6586 krb5_encrypt ();
6587   ;
6588   return 0;
6589 }
6590 _ACEOF
6591 rm -f conftest.$ac_objext conftest$ac_exeext
6592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6593   (eval $ac_link) 2>&5
6594   ac_status=$?
6595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596   (exit $ac_status); } &&
6597          { ac_try='test -s conftest$ac_exeext'
6598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599   (eval $ac_try) 2>&5
6600   ac_status=$?
6601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602   (exit $ac_status); }; }; then
6603   ac_cv_search_krb5_encrypt="-l$ac_lib"
6604 break
6605 else
6606   echo "$as_me: failed program was:" >&5
6607 cat conftest.$ac_ext >&5
6608 fi
6609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6610   done
6611 fi
6612 LIBS=$ac_func_search_save_LIBS
6613 fi
6614 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6615 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6616 if test "$ac_cv_search_krb5_encrypt" != no; then
6617   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6618
6619 else
6620   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6621 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6622    { (exit 1); exit 1; }; }
6623 fi
6624
6625   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6626 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6627 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6628   echo $ECHO_N "(cached) $ECHO_C" >&6
6629 else
6630   ac_func_search_save_LIBS=$LIBS
6631 ac_cv_search_krb5_sendauth=no
6632 cat >conftest.$ac_ext <<_ACEOF
6633 #line $LINENO "configure"
6634 #include "confdefs.h"
6635
6636 /* Override any gcc2 internal prototype to avoid an error.  */
6637 #ifdef __cplusplus
6638 extern "C"
6639 #endif
6640 /* We use char because int might match the return type of a gcc2
6641    builtin and then its argument prototype would still apply.  */
6642 char krb5_sendauth ();
6643 #ifdef F77_DUMMY_MAIN
6644 #  ifdef __cplusplus
6645      extern "C"
6646 #  endif
6647    int F77_DUMMY_MAIN() { return 1; }
6648 #endif
6649 int
6650 main ()
6651 {
6652 krb5_sendauth ();
6653   ;
6654   return 0;
6655 }
6656 _ACEOF
6657 rm -f conftest.$ac_objext conftest$ac_exeext
6658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6659   (eval $ac_link) 2>&5
6660   ac_status=$?
6661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662   (exit $ac_status); } &&
6663          { ac_try='test -s conftest$ac_exeext'
6664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665   (eval $ac_try) 2>&5
6666   ac_status=$?
6667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668   (exit $ac_status); }; }; then
6669   ac_cv_search_krb5_sendauth="none required"
6670 else
6671   echo "$as_me: failed program was:" >&5
6672 cat conftest.$ac_ext >&5
6673 fi
6674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6675 if test "$ac_cv_search_krb5_sendauth" = no; then
6676   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6677     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6678     cat >conftest.$ac_ext <<_ACEOF
6679 #line $LINENO "configure"
6680 #include "confdefs.h"
6681
6682 /* Override any gcc2 internal prototype to avoid an error.  */
6683 #ifdef __cplusplus
6684 extern "C"
6685 #endif
6686 /* We use char because int might match the return type of a gcc2
6687    builtin and then its argument prototype would still apply.  */
6688 char krb5_sendauth ();
6689 #ifdef F77_DUMMY_MAIN
6690 #  ifdef __cplusplus
6691      extern "C"
6692 #  endif
6693    int F77_DUMMY_MAIN() { return 1; }
6694 #endif
6695 int
6696 main ()
6697 {
6698 krb5_sendauth ();
6699   ;
6700   return 0;
6701 }
6702 _ACEOF
6703 rm -f conftest.$ac_objext conftest$ac_exeext
6704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6705   (eval $ac_link) 2>&5
6706   ac_status=$?
6707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708   (exit $ac_status); } &&
6709          { ac_try='test -s conftest$ac_exeext'
6710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711   (eval $ac_try) 2>&5
6712   ac_status=$?
6713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714   (exit $ac_status); }; }; then
6715   ac_cv_search_krb5_sendauth="-l$ac_lib"
6716 break
6717 else
6718   echo "$as_me: failed program was:" >&5
6719 cat conftest.$ac_ext >&5
6720 fi
6721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6722   done
6723 fi
6724 LIBS=$ac_func_search_save_LIBS
6725 fi
6726 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6727 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6728 if test "$ac_cv_search_krb5_sendauth" != no; then
6729   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6730
6731 else
6732   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6733 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6734    { (exit 1); exit 1; }; }
6735 fi
6736
6737 fi
6738
6739 if test "$with_openssl" = yes ; then
6740
6741 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6742 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6743 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6744   echo $ECHO_N "(cached) $ECHO_C" >&6
6745 else
6746   ac_check_lib_save_LIBS=$LIBS
6747 LIBS="-lcrypto  $LIBS"
6748 cat >conftest.$ac_ext <<_ACEOF
6749 #line $LINENO "configure"
6750 #include "confdefs.h"
6751
6752 /* Override any gcc2 internal prototype to avoid an error.  */
6753 #ifdef __cplusplus
6754 extern "C"
6755 #endif
6756 /* We use char because int might match the return type of a gcc2
6757    builtin and then its argument prototype would still apply.  */
6758 char CRYPTO_new_ex_data ();
6759 #ifdef F77_DUMMY_MAIN
6760 #  ifdef __cplusplus
6761      extern "C"
6762 #  endif
6763    int F77_DUMMY_MAIN() { return 1; }
6764 #endif
6765 int
6766 main ()
6767 {
6768 CRYPTO_new_ex_data ();
6769   ;
6770   return 0;
6771 }
6772 _ACEOF
6773 rm -f conftest.$ac_objext conftest$ac_exeext
6774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6775   (eval $ac_link) 2>&5
6776   ac_status=$?
6777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778   (exit $ac_status); } &&
6779          { ac_try='test -s conftest$ac_exeext'
6780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781   (eval $ac_try) 2>&5
6782   ac_status=$?
6783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784   (exit $ac_status); }; }; then
6785   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6786 else
6787   echo "$as_me: failed program was:" >&5
6788 cat conftest.$ac_ext >&5
6789 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6790 fi
6791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6792 LIBS=$ac_check_lib_save_LIBS
6793 fi
6794 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6795 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6796 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6797   cat >>confdefs.h <<_ACEOF
6798 #define HAVE_LIBCRYPTO 1
6799 _ACEOF
6800
6801   LIBS="-lcrypto $LIBS"
6802
6803 else
6804   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6805 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6806    { (exit 1); exit 1; }; }
6807 fi
6808
6809
6810 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6811 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6812 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6813   echo $ECHO_N "(cached) $ECHO_C" >&6
6814 else
6815   ac_check_lib_save_LIBS=$LIBS
6816 LIBS="-lssl  $LIBS"
6817 cat >conftest.$ac_ext <<_ACEOF
6818 #line $LINENO "configure"
6819 #include "confdefs.h"
6820
6821 /* Override any gcc2 internal prototype to avoid an error.  */
6822 #ifdef __cplusplus
6823 extern "C"
6824 #endif
6825 /* We use char because int might match the return type of a gcc2
6826    builtin and then its argument prototype would still apply.  */
6827 char SSL_library_init ();
6828 #ifdef F77_DUMMY_MAIN
6829 #  ifdef __cplusplus
6830      extern "C"
6831 #  endif
6832    int F77_DUMMY_MAIN() { return 1; }
6833 #endif
6834 int
6835 main ()
6836 {
6837 SSL_library_init ();
6838   ;
6839   return 0;
6840 }
6841 _ACEOF
6842 rm -f conftest.$ac_objext conftest$ac_exeext
6843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6844   (eval $ac_link) 2>&5
6845   ac_status=$?
6846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847   (exit $ac_status); } &&
6848          { ac_try='test -s conftest$ac_exeext'
6849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850   (eval $ac_try) 2>&5
6851   ac_status=$?
6852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853   (exit $ac_status); }; }; then
6854   ac_cv_lib_ssl_SSL_library_init=yes
6855 else
6856   echo "$as_me: failed program was:" >&5
6857 cat conftest.$ac_ext >&5
6858 ac_cv_lib_ssl_SSL_library_init=no
6859 fi
6860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6861 LIBS=$ac_check_lib_save_LIBS
6862 fi
6863 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6864 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6865 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6866   cat >>confdefs.h <<_ACEOF
6867 #define HAVE_LIBSSL 1
6868 _ACEOF
6869
6870   LIBS="-lssl $LIBS"
6871
6872 else
6873   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6874 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6875    { (exit 1); exit 1; }; }
6876 fi
6877
6878 fi
6879
6880 if test "$with_pam" = yes ; then
6881
6882 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6883 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6884 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6885   echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887   ac_check_lib_save_LIBS=$LIBS
6888 LIBS="-lpam  $LIBS"
6889 cat >conftest.$ac_ext <<_ACEOF
6890 #line $LINENO "configure"
6891 #include "confdefs.h"
6892
6893 /* Override any gcc2 internal prototype to avoid an error.  */
6894 #ifdef __cplusplus
6895 extern "C"
6896 #endif
6897 /* We use char because int might match the return type of a gcc2
6898    builtin and then its argument prototype would still apply.  */
6899 char pam_start ();
6900 #ifdef F77_DUMMY_MAIN
6901 #  ifdef __cplusplus
6902      extern "C"
6903 #  endif
6904    int F77_DUMMY_MAIN() { return 1; }
6905 #endif
6906 int
6907 main ()
6908 {
6909 pam_start ();
6910   ;
6911   return 0;
6912 }
6913 _ACEOF
6914 rm -f conftest.$ac_objext conftest$ac_exeext
6915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6916   (eval $ac_link) 2>&5
6917   ac_status=$?
6918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919   (exit $ac_status); } &&
6920          { ac_try='test -s conftest$ac_exeext'
6921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922   (eval $ac_try) 2>&5
6923   ac_status=$?
6924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925   (exit $ac_status); }; }; then
6926   ac_cv_lib_pam_pam_start=yes
6927 else
6928   echo "$as_me: failed program was:" >&5
6929 cat conftest.$ac_ext >&5
6930 ac_cv_lib_pam_pam_start=no
6931 fi
6932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6933 LIBS=$ac_check_lib_save_LIBS
6934 fi
6935 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6936 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6937 if test $ac_cv_lib_pam_pam_start = yes; then
6938   cat >>confdefs.h <<_ACEOF
6939 #define HAVE_LIBPAM 1
6940 _ACEOF
6941
6942   LIBS="-lpam $LIBS"
6943
6944 else
6945   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6946 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6947    { (exit 1); exit 1; }; }
6948 fi
6949
6950 fi
6951
6952
6953 ##
6954 ## Header files
6955 ##
6956
6957 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6958 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6959 if test "${ac_cv_header_stdc+set}" = set; then
6960   echo $ECHO_N "(cached) $ECHO_C" >&6
6961 else
6962   cat >conftest.$ac_ext <<_ACEOF
6963 #line $LINENO "configure"
6964 #include "confdefs.h"
6965 #include <stdlib.h>
6966 #include <stdarg.h>
6967 #include <string.h>
6968 #include <float.h>
6969
6970 _ACEOF
6971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6972   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6973   ac_status=$?
6974   egrep -v '^ *\+' conftest.er1 >conftest.err
6975   rm -f conftest.er1
6976   cat conftest.err >&5
6977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978   (exit $ac_status); } >/dev/null; then
6979   if test -s conftest.err; then
6980     ac_cpp_err=$ac_c_preproc_warn_flag
6981   else
6982     ac_cpp_err=
6983   fi
6984 else
6985   ac_cpp_err=yes
6986 fi
6987 if test -z "$ac_cpp_err"; then
6988   ac_cv_header_stdc=yes
6989 else
6990   echo "$as_me: failed program was:" >&5
6991   cat conftest.$ac_ext >&5
6992   ac_cv_header_stdc=no
6993 fi
6994 rm -f conftest.err conftest.$ac_ext
6995
6996 if test $ac_cv_header_stdc = yes; then
6997   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6998   cat >conftest.$ac_ext <<_ACEOF
6999 #line $LINENO "configure"
7000 #include "confdefs.h"
7001 #include <string.h>
7002
7003 _ACEOF
7004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7005   egrep "memchr" >/dev/null 2>&1; then
7006   :
7007 else
7008   ac_cv_header_stdc=no
7009 fi
7010 rm -f conftest*
7011
7012 fi
7013
7014 if test $ac_cv_header_stdc = yes; then
7015   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7016   cat >conftest.$ac_ext <<_ACEOF
7017 #line $LINENO "configure"
7018 #include "confdefs.h"
7019 #include <stdlib.h>
7020
7021 _ACEOF
7022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7023   egrep "free" >/dev/null 2>&1; then
7024   :
7025 else
7026   ac_cv_header_stdc=no
7027 fi
7028 rm -f conftest*
7029
7030 fi
7031
7032 if test $ac_cv_header_stdc = yes; then
7033   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7034   if test "$cross_compiling" = yes; then
7035   :
7036 else
7037   cat >conftest.$ac_ext <<_ACEOF
7038 #line $LINENO "configure"
7039 #include "confdefs.h"
7040 #include <ctype.h>
7041 #if ((' ' & 0x0FF) == 0x020)
7042 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7043 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7044 #else
7045 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7046                      || ('j' <= (c) && (c) <= 'r') \
7047                      || ('s' <= (c) && (c) <= 'z'))
7048 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7049 #endif
7050
7051 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7052 int
7053 main ()
7054 {
7055   int i;
7056   for (i = 0; i < 256; i++)
7057     if (XOR (islower (i), ISLOWER (i))
7058         || toupper (i) != TOUPPER (i))
7059       exit(2);
7060   exit (0);
7061 }
7062 _ACEOF
7063 rm -f conftest$ac_exeext
7064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7065   (eval $ac_link) 2>&5
7066   ac_status=$?
7067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7070   (eval $ac_try) 2>&5
7071   ac_status=$?
7072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073   (exit $ac_status); }; }; then
7074   :
7075 else
7076   echo "$as_me: program exited with status $ac_status" >&5
7077 echo "$as_me: failed program was:" >&5
7078 cat conftest.$ac_ext >&5
7079 ( exit $ac_status )
7080 ac_cv_header_stdc=no
7081 fi
7082 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7083 fi
7084 fi
7085 fi
7086 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7087 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7088 if test $ac_cv_header_stdc = yes; then
7089
7090 cat >>confdefs.h <<\_ACEOF
7091 #define STDC_HEADERS 1
7092 _ACEOF
7093
7094 fi
7095
7096 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7107                   inttypes.h stdint.h unistd.h
7108 do
7109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7110 echo "$as_me:$LINENO: checking for $ac_header" >&5
7111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7113   echo $ECHO_N "(cached) $ECHO_C" >&6
7114 else
7115   cat >conftest.$ac_ext <<_ACEOF
7116 #line $LINENO "configure"
7117 #include "confdefs.h"
7118 $ac_includes_default
7119
7120 #include <$ac_header>
7121 _ACEOF
7122 rm -f conftest.$ac_objext
7123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7124   (eval $ac_compile) 2>&5
7125   ac_status=$?
7126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127   (exit $ac_status); } &&
7128          { ac_try='test -s conftest.$ac_objext'
7129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130   (eval $ac_try) 2>&5
7131   ac_status=$?
7132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133   (exit $ac_status); }; }; then
7134   eval "$as_ac_Header=yes"
7135 else
7136   echo "$as_me: failed program was:" >&5
7137 cat conftest.$ac_ext >&5
7138 eval "$as_ac_Header=no"
7139 fi
7140 rm -f conftest.$ac_objext conftest.$ac_ext
7141 fi
7142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7145   cat >>confdefs.h <<_ACEOF
7146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7147 _ACEOF
7148
7149 fi
7150
7151 done
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h utime.h kernel/OS.h kernel/image.h SupportDefs.h
7176 do
7177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7179   echo "$as_me:$LINENO: checking for $ac_header" >&5
7180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7182   echo $ECHO_N "(cached) $ECHO_C" >&6
7183 fi
7184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7186 else
7187   # Is the header compilable?
7188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7190 cat >conftest.$ac_ext <<_ACEOF
7191 #line $LINENO "configure"
7192 #include "confdefs.h"
7193 $ac_includes_default
7194 #include <$ac_header>
7195 _ACEOF
7196 rm -f conftest.$ac_objext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7198   (eval $ac_compile) 2>&5
7199   ac_status=$?
7200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201   (exit $ac_status); } &&
7202          { ac_try='test -s conftest.$ac_objext'
7203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204   (eval $ac_try) 2>&5
7205   ac_status=$?
7206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207   (exit $ac_status); }; }; then
7208   ac_header_compiler=yes
7209 else
7210   echo "$as_me: failed program was:" >&5
7211 cat conftest.$ac_ext >&5
7212 ac_header_compiler=no
7213 fi
7214 rm -f conftest.$ac_objext conftest.$ac_ext
7215 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7216 echo "${ECHO_T}$ac_header_compiler" >&6
7217
7218 # Is the header present?
7219 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7221 cat >conftest.$ac_ext <<_ACEOF
7222 #line $LINENO "configure"
7223 #include "confdefs.h"
7224 #include <$ac_header>
7225 _ACEOF
7226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7227   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7228   ac_status=$?
7229   egrep -v '^ *\+' conftest.er1 >conftest.err
7230   rm -f conftest.er1
7231   cat conftest.err >&5
7232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233   (exit $ac_status); } >/dev/null; then
7234   if test -s conftest.err; then
7235     ac_cpp_err=$ac_c_preproc_warn_flag
7236   else
7237     ac_cpp_err=
7238   fi
7239 else
7240   ac_cpp_err=yes
7241 fi
7242 if test -z "$ac_cpp_err"; then
7243   ac_header_preproc=yes
7244 else
7245   echo "$as_me: failed program was:" >&5
7246   cat conftest.$ac_ext >&5
7247   ac_header_preproc=no
7248 fi
7249 rm -f conftest.err conftest.$ac_ext
7250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7251 echo "${ECHO_T}$ac_header_preproc" >&6
7252
7253 # So?  What about this header?
7254 case $ac_header_compiler:$ac_header_preproc in
7255   yes:no )
7256     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7258     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7260   no:yes )
7261     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7262 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7263     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7264 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7265     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7267 esac
7268 echo "$as_me:$LINENO: checking for $ac_header" >&5
7269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7271   echo $ECHO_N "(cached) $ECHO_C" >&6
7272 else
7273   eval "$as_ac_Header=$ac_header_preproc"
7274 fi
7275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7277
7278 fi
7279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7280   cat >>confdefs.h <<_ACEOF
7281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7282 _ACEOF
7283
7284 fi
7285
7286 done
7287
7288
7289 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7290 # netinet/in.h is included first.
7291
7292 for ac_header in netinet/in.h
7293 do
7294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7296   echo "$as_me:$LINENO: checking for $ac_header" >&5
7297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7299   echo $ECHO_N "(cached) $ECHO_C" >&6
7300 fi
7301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7303 else
7304   # Is the header compilable?
7305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7307 cat >conftest.$ac_ext <<_ACEOF
7308 #line $LINENO "configure"
7309 #include "confdefs.h"
7310 $ac_includes_default
7311 #include <$ac_header>
7312 _ACEOF
7313 rm -f conftest.$ac_objext
7314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7315   (eval $ac_compile) 2>&5
7316   ac_status=$?
7317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318   (exit $ac_status); } &&
7319          { ac_try='test -s conftest.$ac_objext'
7320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7321   (eval $ac_try) 2>&5
7322   ac_status=$?
7323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324   (exit $ac_status); }; }; then
7325   ac_header_compiler=yes
7326 else
7327   echo "$as_me: failed program was:" >&5
7328 cat conftest.$ac_ext >&5
7329 ac_header_compiler=no
7330 fi
7331 rm -f conftest.$ac_objext conftest.$ac_ext
7332 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7333 echo "${ECHO_T}$ac_header_compiler" >&6
7334
7335 # Is the header present?
7336 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7337 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7338 cat >conftest.$ac_ext <<_ACEOF
7339 #line $LINENO "configure"
7340 #include "confdefs.h"
7341 #include <$ac_header>
7342 _ACEOF
7343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7344   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7345   ac_status=$?
7346   egrep -v '^ *\+' conftest.er1 >conftest.err
7347   rm -f conftest.er1
7348   cat conftest.err >&5
7349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350   (exit $ac_status); } >/dev/null; then
7351   if test -s conftest.err; then
7352     ac_cpp_err=$ac_c_preproc_warn_flag
7353   else
7354     ac_cpp_err=
7355   fi
7356 else
7357   ac_cpp_err=yes
7358 fi
7359 if test -z "$ac_cpp_err"; then
7360   ac_header_preproc=yes
7361 else
7362   echo "$as_me: failed program was:" >&5
7363   cat conftest.$ac_ext >&5
7364   ac_header_preproc=no
7365 fi
7366 rm -f conftest.err conftest.$ac_ext
7367 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7368 echo "${ECHO_T}$ac_header_preproc" >&6
7369
7370 # So?  What about this header?
7371 case $ac_header_compiler:$ac_header_preproc in
7372   yes:no )
7373     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7375     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7377   no:yes )
7378     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7380     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7381 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7382     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7384 esac
7385 echo "$as_me:$LINENO: checking for $ac_header" >&5
7386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7388   echo $ECHO_N "(cached) $ECHO_C" >&6
7389 else
7390   eval "$as_ac_Header=$ac_header_preproc"
7391 fi
7392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7394
7395 fi
7396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7397   cat >>confdefs.h <<_ACEOF
7398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7399 _ACEOF
7400
7401 fi
7402
7403 done
7404
7405
7406 for ac_header in netinet/tcp.h
7407 do
7408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7409 echo "$as_me:$LINENO: checking for $ac_header" >&5
7410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7412   echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414   cat >conftest.$ac_ext <<_ACEOF
7415 #line $LINENO "configure"
7416 #include "confdefs.h"
7417 $ac_includes_default
7418 #ifdef HAVE_NETINET_IN_H
7419 #include <netinet/in.h>
7420 #endif
7421
7422
7423 #include <$ac_header>
7424 _ACEOF
7425 rm -f conftest.$ac_objext
7426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7427   (eval $ac_compile) 2>&5
7428   ac_status=$?
7429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430   (exit $ac_status); } &&
7431          { ac_try='test -s conftest.$ac_objext'
7432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7433   (eval $ac_try) 2>&5
7434   ac_status=$?
7435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436   (exit $ac_status); }; }; then
7437   eval "$as_ac_Header=yes"
7438 else
7439   echo "$as_me: failed program was:" >&5
7440 cat conftest.$ac_ext >&5
7441 eval "$as_ac_Header=no"
7442 fi
7443 rm -f conftest.$ac_objext conftest.$ac_ext
7444 fi
7445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7448   cat >>confdefs.h <<_ACEOF
7449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7450 _ACEOF
7451
7452 fi
7453
7454 done
7455
7456
7457 if test "$with_readline" = yes; then
7458
7459 for ac_header in readline/readline.h
7460 do
7461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7463   echo "$as_me:$LINENO: checking for $ac_header" >&5
7464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7466   echo $ECHO_N "(cached) $ECHO_C" >&6
7467 fi
7468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7470 else
7471   # Is the header compilable?
7472 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7474 cat >conftest.$ac_ext <<_ACEOF
7475 #line $LINENO "configure"
7476 #include "confdefs.h"
7477 $ac_includes_default
7478 #include <$ac_header>
7479 _ACEOF
7480 rm -f conftest.$ac_objext
7481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7482   (eval $ac_compile) 2>&5
7483   ac_status=$?
7484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485   (exit $ac_status); } &&
7486          { ac_try='test -s conftest.$ac_objext'
7487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488   (eval $ac_try) 2>&5
7489   ac_status=$?
7490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491   (exit $ac_status); }; }; then
7492   ac_header_compiler=yes
7493 else
7494   echo "$as_me: failed program was:" >&5
7495 cat conftest.$ac_ext >&5
7496 ac_header_compiler=no
7497 fi
7498 rm -f conftest.$ac_objext conftest.$ac_ext
7499 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7500 echo "${ECHO_T}$ac_header_compiler" >&6
7501
7502 # Is the header present?
7503 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7504 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7505 cat >conftest.$ac_ext <<_ACEOF
7506 #line $LINENO "configure"
7507 #include "confdefs.h"
7508 #include <$ac_header>
7509 _ACEOF
7510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7511   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7512   ac_status=$?
7513   egrep -v '^ *\+' conftest.er1 >conftest.err
7514   rm -f conftest.er1
7515   cat conftest.err >&5
7516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517   (exit $ac_status); } >/dev/null; then
7518   if test -s conftest.err; then
7519     ac_cpp_err=$ac_c_preproc_warn_flag
7520   else
7521     ac_cpp_err=
7522   fi
7523 else
7524   ac_cpp_err=yes
7525 fi
7526 if test -z "$ac_cpp_err"; then
7527   ac_header_preproc=yes
7528 else
7529   echo "$as_me: failed program was:" >&5
7530   cat conftest.$ac_ext >&5
7531   ac_header_preproc=no
7532 fi
7533 rm -f conftest.err conftest.$ac_ext
7534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7535 echo "${ECHO_T}$ac_header_preproc" >&6
7536
7537 # So?  What about this header?
7538 case $ac_header_compiler:$ac_header_preproc in
7539   yes:no )
7540     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7542     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7544   no:yes )
7545     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7547     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7549     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7551 esac
7552 echo "$as_me:$LINENO: checking for $ac_header" >&5
7553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7555   echo $ECHO_N "(cached) $ECHO_C" >&6
7556 else
7557   eval "$as_ac_Header=$ac_header_preproc"
7558 fi
7559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7561
7562 fi
7563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7564   cat >>confdefs.h <<_ACEOF
7565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7566 _ACEOF
7567
7568 else
7569
7570 for ac_header in editline/readline.h
7571 do
7572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7574   echo "$as_me:$LINENO: checking for $ac_header" >&5
7575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7577   echo $ECHO_N "(cached) $ECHO_C" >&6
7578 fi
7579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7581 else
7582   # Is the header compilable?
7583 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7585 cat >conftest.$ac_ext <<_ACEOF
7586 #line $LINENO "configure"
7587 #include "confdefs.h"
7588 $ac_includes_default
7589 #include <$ac_header>
7590 _ACEOF
7591 rm -f conftest.$ac_objext
7592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7593   (eval $ac_compile) 2>&5
7594   ac_status=$?
7595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596   (exit $ac_status); } &&
7597          { ac_try='test -s conftest.$ac_objext'
7598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599   (eval $ac_try) 2>&5
7600   ac_status=$?
7601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602   (exit $ac_status); }; }; then
7603   ac_header_compiler=yes
7604 else
7605   echo "$as_me: failed program was:" >&5
7606 cat conftest.$ac_ext >&5
7607 ac_header_compiler=no
7608 fi
7609 rm -f conftest.$ac_objext conftest.$ac_ext
7610 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7611 echo "${ECHO_T}$ac_header_compiler" >&6
7612
7613 # Is the header present?
7614 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7616 cat >conftest.$ac_ext <<_ACEOF
7617 #line $LINENO "configure"
7618 #include "confdefs.h"
7619 #include <$ac_header>
7620 _ACEOF
7621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7622   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7623   ac_status=$?
7624   egrep -v '^ *\+' conftest.er1 >conftest.err
7625   rm -f conftest.er1
7626   cat conftest.err >&5
7627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628   (exit $ac_status); } >/dev/null; then
7629   if test -s conftest.err; then
7630     ac_cpp_err=$ac_c_preproc_warn_flag
7631   else
7632     ac_cpp_err=
7633   fi
7634 else
7635   ac_cpp_err=yes
7636 fi
7637 if test -z "$ac_cpp_err"; then
7638   ac_header_preproc=yes
7639 else
7640   echo "$as_me: failed program was:" >&5
7641   cat conftest.$ac_ext >&5
7642   ac_header_preproc=no
7643 fi
7644 rm -f conftest.err conftest.$ac_ext
7645 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7646 echo "${ECHO_T}$ac_header_preproc" >&6
7647
7648 # So?  What about this header?
7649 case $ac_header_compiler:$ac_header_preproc in
7650   yes:no )
7651     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7653     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7655   no:yes )
7656     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7658     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7659 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7662 esac
7663 echo "$as_me:$LINENO: checking for $ac_header" >&5
7664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7666   echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668   eval "$as_ac_Header=$ac_header_preproc"
7669 fi
7670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7672
7673 fi
7674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7675   cat >>confdefs.h <<_ACEOF
7676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7677 _ACEOF
7678
7679 else
7680
7681 for ac_header in readline.h
7682 do
7683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7685   echo "$as_me:$LINENO: checking for $ac_header" >&5
7686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7688   echo $ECHO_N "(cached) $ECHO_C" >&6
7689 fi
7690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7692 else
7693   # Is the header compilable?
7694 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7696 cat >conftest.$ac_ext <<_ACEOF
7697 #line $LINENO "configure"
7698 #include "confdefs.h"
7699 $ac_includes_default
7700 #include <$ac_header>
7701 _ACEOF
7702 rm -f conftest.$ac_objext
7703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7704   (eval $ac_compile) 2>&5
7705   ac_status=$?
7706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707   (exit $ac_status); } &&
7708          { ac_try='test -s conftest.$ac_objext'
7709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710   (eval $ac_try) 2>&5
7711   ac_status=$?
7712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713   (exit $ac_status); }; }; then
7714   ac_header_compiler=yes
7715 else
7716   echo "$as_me: failed program was:" >&5
7717 cat conftest.$ac_ext >&5
7718 ac_header_compiler=no
7719 fi
7720 rm -f conftest.$ac_objext conftest.$ac_ext
7721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7722 echo "${ECHO_T}$ac_header_compiler" >&6
7723
7724 # Is the header present?
7725 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7727 cat >conftest.$ac_ext <<_ACEOF
7728 #line $LINENO "configure"
7729 #include "confdefs.h"
7730 #include <$ac_header>
7731 _ACEOF
7732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7733   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7734   ac_status=$?
7735   egrep -v '^ *\+' conftest.er1 >conftest.err
7736   rm -f conftest.er1
7737   cat conftest.err >&5
7738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739   (exit $ac_status); } >/dev/null; then
7740   if test -s conftest.err; then
7741     ac_cpp_err=$ac_c_preproc_warn_flag
7742   else
7743     ac_cpp_err=
7744   fi
7745 else
7746   ac_cpp_err=yes
7747 fi
7748 if test -z "$ac_cpp_err"; then
7749   ac_header_preproc=yes
7750 else
7751   echo "$as_me: failed program was:" >&5
7752   cat conftest.$ac_ext >&5
7753   ac_header_preproc=no
7754 fi
7755 rm -f conftest.err conftest.$ac_ext
7756 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7757 echo "${ECHO_T}$ac_header_preproc" >&6
7758
7759 # So?  What about this header?
7760 case $ac_header_compiler:$ac_header_preproc in
7761   yes:no )
7762     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7764     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7766   no:yes )
7767     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7769     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7771     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7773 esac
7774 echo "$as_me:$LINENO: checking for $ac_header" >&5
7775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7777   echo $ECHO_N "(cached) $ECHO_C" >&6
7778 else
7779   eval "$as_ac_Header=$ac_header_preproc"
7780 fi
7781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7783
7784 fi
7785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7786   cat >>confdefs.h <<_ACEOF
7787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7788 _ACEOF
7789
7790 else
7791   { { echo "$as_me:$LINENO: error: readline header not found
7792 If you have readline already installed, see config.log for details on the
7793 failure.  It is possible the compiler isn't looking in the proper directory.
7794 Use --without-readline to disable readline support." >&5
7795 echo "$as_me: error: readline header not found
7796 If you have readline already installed, see config.log for details on the
7797 failure.  It is possible the compiler isn't looking in the proper directory.
7798 Use --without-readline to disable readline support." >&2;}
7799    { (exit 1); exit 1; }; }
7800 fi
7801
7802 done
7803
7804 fi
7805
7806 done
7807
7808 fi
7809
7810 done
7811
7812
7813 for ac_header in readline/history.h
7814 do
7815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 fi
7822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7824 else
7825   # Is the header compilable?
7826 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7827 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7828 cat >conftest.$ac_ext <<_ACEOF
7829 #line $LINENO "configure"
7830 #include "confdefs.h"
7831 $ac_includes_default
7832 #include <$ac_header>
7833 _ACEOF
7834 rm -f conftest.$ac_objext
7835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7836   (eval $ac_compile) 2>&5
7837   ac_status=$?
7838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839   (exit $ac_status); } &&
7840          { ac_try='test -s conftest.$ac_objext'
7841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842   (eval $ac_try) 2>&5
7843   ac_status=$?
7844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845   (exit $ac_status); }; }; then
7846   ac_header_compiler=yes
7847 else
7848   echo "$as_me: failed program was:" >&5
7849 cat conftest.$ac_ext >&5
7850 ac_header_compiler=no
7851 fi
7852 rm -f conftest.$ac_objext conftest.$ac_ext
7853 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7854 echo "${ECHO_T}$ac_header_compiler" >&6
7855
7856 # Is the header present?
7857 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7859 cat >conftest.$ac_ext <<_ACEOF
7860 #line $LINENO "configure"
7861 #include "confdefs.h"
7862 #include <$ac_header>
7863 _ACEOF
7864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7865   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7866   ac_status=$?
7867   egrep -v '^ *\+' conftest.er1 >conftest.err
7868   rm -f conftest.er1
7869   cat conftest.err >&5
7870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871   (exit $ac_status); } >/dev/null; then
7872   if test -s conftest.err; then
7873     ac_cpp_err=$ac_c_preproc_warn_flag
7874   else
7875     ac_cpp_err=
7876   fi
7877 else
7878   ac_cpp_err=yes
7879 fi
7880 if test -z "$ac_cpp_err"; then
7881   ac_header_preproc=yes
7882 else
7883   echo "$as_me: failed program was:" >&5
7884   cat conftest.$ac_ext >&5
7885   ac_header_preproc=no
7886 fi
7887 rm -f conftest.err conftest.$ac_ext
7888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7889 echo "${ECHO_T}$ac_header_preproc" >&6
7890
7891 # So?  What about this header?
7892 case $ac_header_compiler:$ac_header_preproc in
7893   yes:no )
7894     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7896     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7898   no:yes )
7899     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7901     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7903     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7905 esac
7906 echo "$as_me:$LINENO: checking for $ac_header" >&5
7907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7909   echo $ECHO_N "(cached) $ECHO_C" >&6
7910 else
7911   eval "$as_ac_Header=$ac_header_preproc"
7912 fi
7913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7915
7916 fi
7917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7918   cat >>confdefs.h <<_ACEOF
7919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7920 _ACEOF
7921
7922 else
7923
7924 for ac_header in editline/history.h
7925 do
7926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7928   echo "$as_me:$LINENO: checking for $ac_header" >&5
7929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7931   echo $ECHO_N "(cached) $ECHO_C" >&6
7932 fi
7933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7935 else
7936   # Is the header compilable?
7937 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7939 cat >conftest.$ac_ext <<_ACEOF
7940 #line $LINENO "configure"
7941 #include "confdefs.h"
7942 $ac_includes_default
7943 #include <$ac_header>
7944 _ACEOF
7945 rm -f conftest.$ac_objext
7946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7947   (eval $ac_compile) 2>&5
7948   ac_status=$?
7949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950   (exit $ac_status); } &&
7951          { ac_try='test -s conftest.$ac_objext'
7952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7953   (eval $ac_try) 2>&5
7954   ac_status=$?
7955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956   (exit $ac_status); }; }; then
7957   ac_header_compiler=yes
7958 else
7959   echo "$as_me: failed program was:" >&5
7960 cat conftest.$ac_ext >&5
7961 ac_header_compiler=no
7962 fi
7963 rm -f conftest.$ac_objext conftest.$ac_ext
7964 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7965 echo "${ECHO_T}$ac_header_compiler" >&6
7966
7967 # Is the header present?
7968 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7970 cat >conftest.$ac_ext <<_ACEOF
7971 #line $LINENO "configure"
7972 #include "confdefs.h"
7973 #include <$ac_header>
7974 _ACEOF
7975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7976   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7977   ac_status=$?
7978   egrep -v '^ *\+' conftest.er1 >conftest.err
7979   rm -f conftest.er1
7980   cat conftest.err >&5
7981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982   (exit $ac_status); } >/dev/null; then
7983   if test -s conftest.err; then
7984     ac_cpp_err=$ac_c_preproc_warn_flag
7985   else
7986     ac_cpp_err=
7987   fi
7988 else
7989   ac_cpp_err=yes
7990 fi
7991 if test -z "$ac_cpp_err"; then
7992   ac_header_preproc=yes
7993 else
7994   echo "$as_me: failed program was:" >&5
7995   cat conftest.$ac_ext >&5
7996   ac_header_preproc=no
7997 fi
7998 rm -f conftest.err conftest.$ac_ext
7999 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8000 echo "${ECHO_T}$ac_header_preproc" >&6
8001
8002 # So?  What about this header?
8003 case $ac_header_compiler:$ac_header_preproc in
8004   yes:no )
8005     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8007     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8009   no:yes )
8010     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8012     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8013 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8014     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8016 esac
8017 echo "$as_me:$LINENO: checking for $ac_header" >&5
8018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8020   echo $ECHO_N "(cached) $ECHO_C" >&6
8021 else
8022   eval "$as_ac_Header=$ac_header_preproc"
8023 fi
8024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8026
8027 fi
8028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8029   cat >>confdefs.h <<_ACEOF
8030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8031 _ACEOF
8032
8033 else
8034
8035 for ac_header in history.h
8036 do
8037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8039   echo "$as_me:$LINENO: checking for $ac_header" >&5
8040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8042   echo $ECHO_N "(cached) $ECHO_C" >&6
8043 fi
8044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8046 else
8047   # Is the header compilable?
8048 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8049 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8050 cat >conftest.$ac_ext <<_ACEOF
8051 #line $LINENO "configure"
8052 #include "confdefs.h"
8053 $ac_includes_default
8054 #include <$ac_header>
8055 _ACEOF
8056 rm -f conftest.$ac_objext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8058   (eval $ac_compile) 2>&5
8059   ac_status=$?
8060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061   (exit $ac_status); } &&
8062          { ac_try='test -s conftest.$ac_objext'
8063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064   (eval $ac_try) 2>&5
8065   ac_status=$?
8066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067   (exit $ac_status); }; }; then
8068   ac_header_compiler=yes
8069 else
8070   echo "$as_me: failed program was:" >&5
8071 cat conftest.$ac_ext >&5
8072 ac_header_compiler=no
8073 fi
8074 rm -f conftest.$ac_objext conftest.$ac_ext
8075 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8076 echo "${ECHO_T}$ac_header_compiler" >&6
8077
8078 # Is the header present?
8079 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8081 cat >conftest.$ac_ext <<_ACEOF
8082 #line $LINENO "configure"
8083 #include "confdefs.h"
8084 #include <$ac_header>
8085 _ACEOF
8086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8087   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8088   ac_status=$?
8089   egrep -v '^ *\+' conftest.er1 >conftest.err
8090   rm -f conftest.er1
8091   cat conftest.err >&5
8092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093   (exit $ac_status); } >/dev/null; then
8094   if test -s conftest.err; then
8095     ac_cpp_err=$ac_c_preproc_warn_flag
8096   else
8097     ac_cpp_err=
8098   fi
8099 else
8100   ac_cpp_err=yes
8101 fi
8102 if test -z "$ac_cpp_err"; then
8103   ac_header_preproc=yes
8104 else
8105   echo "$as_me: failed program was:" >&5
8106   cat conftest.$ac_ext >&5
8107   ac_header_preproc=no
8108 fi
8109 rm -f conftest.err conftest.$ac_ext
8110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8111 echo "${ECHO_T}$ac_header_preproc" >&6
8112
8113 # So?  What about this header?
8114 case $ac_header_compiler:$ac_header_preproc in
8115   yes:no )
8116     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8118     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8120   no:yes )
8121     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8122 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8123     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8124 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8125     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8127 esac
8128 echo "$as_me:$LINENO: checking for $ac_header" >&5
8129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8131   echo $ECHO_N "(cached) $ECHO_C" >&6
8132 else
8133   eval "$as_ac_Header=$ac_header_preproc"
8134 fi
8135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8137
8138 fi
8139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8140   cat >>confdefs.h <<_ACEOF
8141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8142 _ACEOF
8143
8144 else
8145   { { echo "$as_me:$LINENO: error: history header not found
8146 If you have readline already installed, see config.log for details on the
8147 failure.  It is possible the compiler isn't looking in the proper directory.
8148 Use --without-readline to disable readline support." >&5
8149 echo "$as_me: error: history header not found
8150 If you have readline already installed, see config.log for details on the
8151 failure.  It is possible the compiler isn't looking in the proper directory.
8152 Use --without-readline to disable readline support." >&2;}
8153    { (exit 1); exit 1; }; }
8154 fi
8155
8156 done
8157
8158 fi
8159
8160 done
8161
8162 fi
8163
8164 done
8165
8166 fi
8167
8168 if test "$with_zlib" = yes; then
8169   if test "${ac_cv_header_zlib_h+set}" = set; then
8170   echo "$as_me:$LINENO: checking for zlib.h" >&5
8171 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8172 if test "${ac_cv_header_zlib_h+set}" = set; then
8173   echo $ECHO_N "(cached) $ECHO_C" >&6
8174 fi
8175 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8176 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8177 else
8178   # Is the header compilable?
8179 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8180 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8181 cat >conftest.$ac_ext <<_ACEOF
8182 #line $LINENO "configure"
8183 #include "confdefs.h"
8184 $ac_includes_default
8185 #include <zlib.h>
8186 _ACEOF
8187 rm -f conftest.$ac_objext
8188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8189   (eval $ac_compile) 2>&5
8190   ac_status=$?
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); } &&
8193          { ac_try='test -s conftest.$ac_objext'
8194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195   (eval $ac_try) 2>&5
8196   ac_status=$?
8197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198   (exit $ac_status); }; }; then
8199   ac_header_compiler=yes
8200 else
8201   echo "$as_me: failed program was:" >&5
8202 cat conftest.$ac_ext >&5
8203 ac_header_compiler=no
8204 fi
8205 rm -f conftest.$ac_objext conftest.$ac_ext
8206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8207 echo "${ECHO_T}$ac_header_compiler" >&6
8208
8209 # Is the header present?
8210 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8211 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8212 cat >conftest.$ac_ext <<_ACEOF
8213 #line $LINENO "configure"
8214 #include "confdefs.h"
8215 #include <zlib.h>
8216 _ACEOF
8217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8218   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8219   ac_status=$?
8220   egrep -v '^ *\+' conftest.er1 >conftest.err
8221   rm -f conftest.er1
8222   cat conftest.err >&5
8223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224   (exit $ac_status); } >/dev/null; then
8225   if test -s conftest.err; then
8226     ac_cpp_err=$ac_c_preproc_warn_flag
8227   else
8228     ac_cpp_err=
8229   fi
8230 else
8231   ac_cpp_err=yes
8232 fi
8233 if test -z "$ac_cpp_err"; then
8234   ac_header_preproc=yes
8235 else
8236   echo "$as_me: failed program was:" >&5
8237   cat conftest.$ac_ext >&5
8238   ac_header_preproc=no
8239 fi
8240 rm -f conftest.err conftest.$ac_ext
8241 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8242 echo "${ECHO_T}$ac_header_preproc" >&6
8243
8244 # So?  What about this header?
8245 case $ac_header_compiler:$ac_header_preproc in
8246   yes:no )
8247     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8248 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8249     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8250 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8251   no:yes )
8252     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8253 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8254     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8255 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8256     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8257 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8258 esac
8259 echo "$as_me:$LINENO: checking for zlib.h" >&5
8260 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8261 if test "${ac_cv_header_zlib_h+set}" = set; then
8262   echo $ECHO_N "(cached) $ECHO_C" >&6
8263 else
8264   ac_cv_header_zlib_h=$ac_header_preproc
8265 fi
8266 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8267 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8268
8269 fi
8270 if test $ac_cv_header_zlib_h = yes; then
8271   :
8272 else
8273   { { echo "$as_me:$LINENO: error: zlib header not found
8274 If you have zlib already installed, see config.log for details on the
8275 failure.  It is possible the compiler isn't looking in the proper directory.
8276 Use --without-zlib to disable zlib support." >&5
8277 echo "$as_me: error: zlib header not found
8278 If you have zlib already installed, see config.log for details on the
8279 failure.  It is possible the compiler isn't looking in the proper directory.
8280 Use --without-zlib to disable zlib support." >&2;}
8281    { (exit 1); exit 1; }; }
8282 fi
8283
8284
8285 fi
8286
8287 if test "$with_krb4" = yes ; then
8288   if test "${ac_cv_header_krb_h+set}" = set; then
8289   echo "$as_me:$LINENO: checking for krb.h" >&5
8290 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8291 if test "${ac_cv_header_krb_h+set}" = set; then
8292   echo $ECHO_N "(cached) $ECHO_C" >&6
8293 fi
8294 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8295 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8296 else
8297   # Is the header compilable?
8298 echo "$as_me:$LINENO: checking krb.h usability" >&5
8299 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8300 cat >conftest.$ac_ext <<_ACEOF
8301 #line $LINENO "configure"
8302 #include "confdefs.h"
8303 $ac_includes_default
8304 #include <krb.h>
8305 _ACEOF
8306 rm -f conftest.$ac_objext
8307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8308   (eval $ac_compile) 2>&5
8309   ac_status=$?
8310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); } &&
8312          { ac_try='test -s conftest.$ac_objext'
8313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314   (eval $ac_try) 2>&5
8315   ac_status=$?
8316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); }; }; then
8318   ac_header_compiler=yes
8319 else
8320   echo "$as_me: failed program was:" >&5
8321 cat conftest.$ac_ext >&5
8322 ac_header_compiler=no
8323 fi
8324 rm -f conftest.$ac_objext conftest.$ac_ext
8325 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8326 echo "${ECHO_T}$ac_header_compiler" >&6
8327
8328 # Is the header present?
8329 echo "$as_me:$LINENO: checking krb.h presence" >&5
8330 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8331 cat >conftest.$ac_ext <<_ACEOF
8332 #line $LINENO "configure"
8333 #include "confdefs.h"
8334 #include <krb.h>
8335 _ACEOF
8336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8337   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8338   ac_status=$?
8339   egrep -v '^ *\+' conftest.er1 >conftest.err
8340   rm -f conftest.er1
8341   cat conftest.err >&5
8342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343   (exit $ac_status); } >/dev/null; then
8344   if test -s conftest.err; then
8345     ac_cpp_err=$ac_c_preproc_warn_flag
8346   else
8347     ac_cpp_err=
8348   fi
8349 else
8350   ac_cpp_err=yes
8351 fi
8352 if test -z "$ac_cpp_err"; then
8353   ac_header_preproc=yes
8354 else
8355   echo "$as_me: failed program was:" >&5
8356   cat conftest.$ac_ext >&5
8357   ac_header_preproc=no
8358 fi
8359 rm -f conftest.err conftest.$ac_ext
8360 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8361 echo "${ECHO_T}$ac_header_preproc" >&6
8362
8363 # So?  What about this header?
8364 case $ac_header_compiler:$ac_header_preproc in
8365   yes:no )
8366     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8367 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8368     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8369 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8370   no:yes )
8371     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8372 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8373     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8374 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8375     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8376 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8377 esac
8378 echo "$as_me:$LINENO: checking for krb.h" >&5
8379 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8380 if test "${ac_cv_header_krb_h+set}" = set; then
8381   echo $ECHO_N "(cached) $ECHO_C" >&6
8382 else
8383   ac_cv_header_krb_h=$ac_header_preproc
8384 fi
8385 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8386 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8387
8388 fi
8389 if test $ac_cv_header_krb_h = yes; then
8390   :
8391 else
8392   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8393 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8394    { (exit 1); exit 1; }; }
8395 fi
8396
8397
8398 fi
8399
8400 if test "$with_krb5" = yes ; then
8401   if test "${ac_cv_header_krb5_h+set}" = set; then
8402   echo "$as_me:$LINENO: checking for krb5.h" >&5
8403 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8404 if test "${ac_cv_header_krb5_h+set}" = set; then
8405   echo $ECHO_N "(cached) $ECHO_C" >&6
8406 fi
8407 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8408 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8409 else
8410   # Is the header compilable?
8411 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8412 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8413 cat >conftest.$ac_ext <<_ACEOF
8414 #line $LINENO "configure"
8415 #include "confdefs.h"
8416 $ac_includes_default
8417 #include <krb5.h>
8418 _ACEOF
8419 rm -f conftest.$ac_objext
8420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8421   (eval $ac_compile) 2>&5
8422   ac_status=$?
8423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424   (exit $ac_status); } &&
8425          { ac_try='test -s conftest.$ac_objext'
8426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8427   (eval $ac_try) 2>&5
8428   ac_status=$?
8429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430   (exit $ac_status); }; }; then
8431   ac_header_compiler=yes
8432 else
8433   echo "$as_me: failed program was:" >&5
8434 cat conftest.$ac_ext >&5
8435 ac_header_compiler=no
8436 fi
8437 rm -f conftest.$ac_objext conftest.$ac_ext
8438 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8439 echo "${ECHO_T}$ac_header_compiler" >&6
8440
8441 # Is the header present?
8442 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8443 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8444 cat >conftest.$ac_ext <<_ACEOF
8445 #line $LINENO "configure"
8446 #include "confdefs.h"
8447 #include <krb5.h>
8448 _ACEOF
8449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8450   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8451   ac_status=$?
8452   egrep -v '^ *\+' conftest.er1 >conftest.err
8453   rm -f conftest.er1
8454   cat conftest.err >&5
8455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456   (exit $ac_status); } >/dev/null; then
8457   if test -s conftest.err; then
8458     ac_cpp_err=$ac_c_preproc_warn_flag
8459   else
8460     ac_cpp_err=
8461   fi
8462 else
8463   ac_cpp_err=yes
8464 fi
8465 if test -z "$ac_cpp_err"; then
8466   ac_header_preproc=yes
8467 else
8468   echo "$as_me: failed program was:" >&5
8469   cat conftest.$ac_ext >&5
8470   ac_header_preproc=no
8471 fi
8472 rm -f conftest.err conftest.$ac_ext
8473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8474 echo "${ECHO_T}$ac_header_preproc" >&6
8475
8476 # So?  What about this header?
8477 case $ac_header_compiler:$ac_header_preproc in
8478   yes:no )
8479     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8480 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8481     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8482 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8483   no:yes )
8484     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8485 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8486     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8487 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8488     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8489 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8490 esac
8491 echo "$as_me:$LINENO: checking for krb5.h" >&5
8492 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8493 if test "${ac_cv_header_krb5_h+set}" = set; then
8494   echo $ECHO_N "(cached) $ECHO_C" >&6
8495 else
8496   ac_cv_header_krb5_h=$ac_header_preproc
8497 fi
8498 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8499 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8500
8501 fi
8502 if test $ac_cv_header_krb5_h = yes; then
8503   :
8504 else
8505   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8506 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8507    { (exit 1); exit 1; }; }
8508 fi
8509
8510
8511   if test "${ac_cv_header_com_err_h+set}" = set; then
8512   echo "$as_me:$LINENO: checking for com_err.h" >&5
8513 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8514 if test "${ac_cv_header_com_err_h+set}" = set; then
8515   echo $ECHO_N "(cached) $ECHO_C" >&6
8516 fi
8517 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8518 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8519 else
8520   # Is the header compilable?
8521 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8522 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8523 cat >conftest.$ac_ext <<_ACEOF
8524 #line $LINENO "configure"
8525 #include "confdefs.h"
8526 $ac_includes_default
8527 #include <com_err.h>
8528 _ACEOF
8529 rm -f conftest.$ac_objext
8530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8531   (eval $ac_compile) 2>&5
8532   ac_status=$?
8533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534   (exit $ac_status); } &&
8535          { ac_try='test -s conftest.$ac_objext'
8536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537   (eval $ac_try) 2>&5
8538   ac_status=$?
8539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540   (exit $ac_status); }; }; then
8541   ac_header_compiler=yes
8542 else
8543   echo "$as_me: failed program was:" >&5
8544 cat conftest.$ac_ext >&5
8545 ac_header_compiler=no
8546 fi
8547 rm -f conftest.$ac_objext conftest.$ac_ext
8548 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8549 echo "${ECHO_T}$ac_header_compiler" >&6
8550
8551 # Is the header present?
8552 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8553 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8554 cat >conftest.$ac_ext <<_ACEOF
8555 #line $LINENO "configure"
8556 #include "confdefs.h"
8557 #include <com_err.h>
8558 _ACEOF
8559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8560   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8561   ac_status=$?
8562   egrep -v '^ *\+' conftest.er1 >conftest.err
8563   rm -f conftest.er1
8564   cat conftest.err >&5
8565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   (exit $ac_status); } >/dev/null; then
8567   if test -s conftest.err; then
8568     ac_cpp_err=$ac_c_preproc_warn_flag
8569   else
8570     ac_cpp_err=
8571   fi
8572 else
8573   ac_cpp_err=yes
8574 fi
8575 if test -z "$ac_cpp_err"; then
8576   ac_header_preproc=yes
8577 else
8578   echo "$as_me: failed program was:" >&5
8579   cat conftest.$ac_ext >&5
8580   ac_header_preproc=no
8581 fi
8582 rm -f conftest.err conftest.$ac_ext
8583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8584 echo "${ECHO_T}$ac_header_preproc" >&6
8585
8586 # So?  What about this header?
8587 case $ac_header_compiler:$ac_header_preproc in
8588   yes:no )
8589     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8590 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8591     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8592 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8593   no:yes )
8594     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8595 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8596     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8597 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8598     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8599 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8600 esac
8601 echo "$as_me:$LINENO: checking for com_err.h" >&5
8602 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8603 if test "${ac_cv_header_com_err_h+set}" = set; then
8604   echo $ECHO_N "(cached) $ECHO_C" >&6
8605 else
8606   ac_cv_header_com_err_h=$ac_header_preproc
8607 fi
8608 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8609 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8610
8611 fi
8612 if test $ac_cv_header_com_err_h = yes; then
8613   :
8614 else
8615   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8616 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8617    { (exit 1); exit 1; }; }
8618 fi
8619
8620
8621 fi
8622
8623 if test "$with_openssl" = yes ; then
8624   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8625   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8626 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8627 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8628   echo $ECHO_N "(cached) $ECHO_C" >&6
8629 fi
8630 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8631 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8632 else
8633   # Is the header compilable?
8634 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8635 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8636 cat >conftest.$ac_ext <<_ACEOF
8637 #line $LINENO "configure"
8638 #include "confdefs.h"
8639 $ac_includes_default
8640 #include <openssl/ssl.h>
8641 _ACEOF
8642 rm -f conftest.$ac_objext
8643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8644   (eval $ac_compile) 2>&5
8645   ac_status=$?
8646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647   (exit $ac_status); } &&
8648          { ac_try='test -s conftest.$ac_objext'
8649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650   (eval $ac_try) 2>&5
8651   ac_status=$?
8652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653   (exit $ac_status); }; }; then
8654   ac_header_compiler=yes
8655 else
8656   echo "$as_me: failed program was:" >&5
8657 cat conftest.$ac_ext >&5
8658 ac_header_compiler=no
8659 fi
8660 rm -f conftest.$ac_objext conftest.$ac_ext
8661 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8662 echo "${ECHO_T}$ac_header_compiler" >&6
8663
8664 # Is the header present?
8665 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8666 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8667 cat >conftest.$ac_ext <<_ACEOF
8668 #line $LINENO "configure"
8669 #include "confdefs.h"
8670 #include <openssl/ssl.h>
8671 _ACEOF
8672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8673   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8674   ac_status=$?
8675   egrep -v '^ *\+' conftest.er1 >conftest.err
8676   rm -f conftest.er1
8677   cat conftest.err >&5
8678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679   (exit $ac_status); } >/dev/null; then
8680   if test -s conftest.err; then
8681     ac_cpp_err=$ac_c_preproc_warn_flag
8682   else
8683     ac_cpp_err=
8684   fi
8685 else
8686   ac_cpp_err=yes
8687 fi
8688 if test -z "$ac_cpp_err"; then
8689   ac_header_preproc=yes
8690 else
8691   echo "$as_me: failed program was:" >&5
8692   cat conftest.$ac_ext >&5
8693   ac_header_preproc=no
8694 fi
8695 rm -f conftest.err conftest.$ac_ext
8696 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8697 echo "${ECHO_T}$ac_header_preproc" >&6
8698
8699 # So?  What about this header?
8700 case $ac_header_compiler:$ac_header_preproc in
8701   yes:no )
8702     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8703 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8704     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8705 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8706   no:yes )
8707     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8708 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8709     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8710 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8711     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8712 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8713 esac
8714 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8715 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8716 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8717   echo $ECHO_N "(cached) $ECHO_C" >&6
8718 else
8719   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8720 fi
8721 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8722 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8723
8724 fi
8725 if test $ac_cv_header_openssl_ssl_h = yes; then
8726   :
8727 else
8728   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8729 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8730    { (exit 1); exit 1; }; }
8731 fi
8732
8733
8734   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8735   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8736 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8737 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8738   echo $ECHO_N "(cached) $ECHO_C" >&6
8739 fi
8740 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8741 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8742 else
8743   # Is the header compilable?
8744 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8745 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8746 cat >conftest.$ac_ext <<_ACEOF
8747 #line $LINENO "configure"
8748 #include "confdefs.h"
8749 $ac_includes_default
8750 #include <openssl/err.h>
8751 _ACEOF
8752 rm -f conftest.$ac_objext
8753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8754   (eval $ac_compile) 2>&5
8755   ac_status=$?
8756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757   (exit $ac_status); } &&
8758          { ac_try='test -s conftest.$ac_objext'
8759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760   (eval $ac_try) 2>&5
8761   ac_status=$?
8762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   (exit $ac_status); }; }; then
8764   ac_header_compiler=yes
8765 else
8766   echo "$as_me: failed program was:" >&5
8767 cat conftest.$ac_ext >&5
8768 ac_header_compiler=no
8769 fi
8770 rm -f conftest.$ac_objext conftest.$ac_ext
8771 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8772 echo "${ECHO_T}$ac_header_compiler" >&6
8773
8774 # Is the header present?
8775 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8776 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8777 cat >conftest.$ac_ext <<_ACEOF
8778 #line $LINENO "configure"
8779 #include "confdefs.h"
8780 #include <openssl/err.h>
8781 _ACEOF
8782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8783   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8784   ac_status=$?
8785   egrep -v '^ *\+' conftest.er1 >conftest.err
8786   rm -f conftest.er1
8787   cat conftest.err >&5
8788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789   (exit $ac_status); } >/dev/null; then
8790   if test -s conftest.err; then
8791     ac_cpp_err=$ac_c_preproc_warn_flag
8792   else
8793     ac_cpp_err=
8794   fi
8795 else
8796   ac_cpp_err=yes
8797 fi
8798 if test -z "$ac_cpp_err"; then
8799   ac_header_preproc=yes
8800 else
8801   echo "$as_me: failed program was:" >&5
8802   cat conftest.$ac_ext >&5
8803   ac_header_preproc=no
8804 fi
8805 rm -f conftest.err conftest.$ac_ext
8806 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8807 echo "${ECHO_T}$ac_header_preproc" >&6
8808
8809 # So?  What about this header?
8810 case $ac_header_compiler:$ac_header_preproc in
8811   yes:no )
8812     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8813 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8814     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8815 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8816   no:yes )
8817     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8818 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8819     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8820 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8821     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8822 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8823 esac
8824 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8825 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8826 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8827   echo $ECHO_N "(cached) $ECHO_C" >&6
8828 else
8829   ac_cv_header_openssl_err_h=$ac_header_preproc
8830 fi
8831 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8832 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8833
8834 fi
8835 if test $ac_cv_header_openssl_err_h = yes; then
8836   :
8837 else
8838   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8839 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8840    { (exit 1); exit 1; }; }
8841 fi
8842
8843
8844 fi
8845
8846 if test "$with_pam" = yes ; then
8847
8848 for ac_header in security/pam_appl.h
8849 do
8850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8852   echo "$as_me:$LINENO: checking for $ac_header" >&5
8853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8855   echo $ECHO_N "(cached) $ECHO_C" >&6
8856 fi
8857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8859 else
8860   # Is the header compilable?
8861 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8863 cat >conftest.$ac_ext <<_ACEOF
8864 #line $LINENO "configure"
8865 #include "confdefs.h"
8866 $ac_includes_default
8867 #include <$ac_header>
8868 _ACEOF
8869 rm -f conftest.$ac_objext
8870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8871   (eval $ac_compile) 2>&5
8872   ac_status=$?
8873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874   (exit $ac_status); } &&
8875          { ac_try='test -s conftest.$ac_objext'
8876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8877   (eval $ac_try) 2>&5
8878   ac_status=$?
8879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880   (exit $ac_status); }; }; then
8881   ac_header_compiler=yes
8882 else
8883   echo "$as_me: failed program was:" >&5
8884 cat conftest.$ac_ext >&5
8885 ac_header_compiler=no
8886 fi
8887 rm -f conftest.$ac_objext conftest.$ac_ext
8888 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8889 echo "${ECHO_T}$ac_header_compiler" >&6
8890
8891 # Is the header present?
8892 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8893 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8894 cat >conftest.$ac_ext <<_ACEOF
8895 #line $LINENO "configure"
8896 #include "confdefs.h"
8897 #include <$ac_header>
8898 _ACEOF
8899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8900   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8901   ac_status=$?
8902   egrep -v '^ *\+' conftest.er1 >conftest.err
8903   rm -f conftest.er1
8904   cat conftest.err >&5
8905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906   (exit $ac_status); } >/dev/null; then
8907   if test -s conftest.err; then
8908     ac_cpp_err=$ac_c_preproc_warn_flag
8909   else
8910     ac_cpp_err=
8911   fi
8912 else
8913   ac_cpp_err=yes
8914 fi
8915 if test -z "$ac_cpp_err"; then
8916   ac_header_preproc=yes
8917 else
8918   echo "$as_me: failed program was:" >&5
8919   cat conftest.$ac_ext >&5
8920   ac_header_preproc=no
8921 fi
8922 rm -f conftest.err conftest.$ac_ext
8923 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8924 echo "${ECHO_T}$ac_header_preproc" >&6
8925
8926 # So?  What about this header?
8927 case $ac_header_compiler:$ac_header_preproc in
8928   yes:no )
8929     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8931     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8933   no:yes )
8934     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8936     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8937 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8938     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8940 esac
8941 echo "$as_me:$LINENO: checking for $ac_header" >&5
8942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8944   echo $ECHO_N "(cached) $ECHO_C" >&6
8945 else
8946   eval "$as_ac_Header=$ac_header_preproc"
8947 fi
8948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8950
8951 fi
8952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8953   cat >>confdefs.h <<_ACEOF
8954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8955 _ACEOF
8956
8957 else
8958
8959 for ac_header in pam/pam_appl.h
8960 do
8961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8963   echo "$as_me:$LINENO: checking for $ac_header" >&5
8964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8966   echo $ECHO_N "(cached) $ECHO_C" >&6
8967 fi
8968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8970 else
8971   # Is the header compilable?
8972 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8974 cat >conftest.$ac_ext <<_ACEOF
8975 #line $LINENO "configure"
8976 #include "confdefs.h"
8977 $ac_includes_default
8978 #include <$ac_header>
8979 _ACEOF
8980 rm -f conftest.$ac_objext
8981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8982   (eval $ac_compile) 2>&5
8983   ac_status=$?
8984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985   (exit $ac_status); } &&
8986          { ac_try='test -s conftest.$ac_objext'
8987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988   (eval $ac_try) 2>&5
8989   ac_status=$?
8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991   (exit $ac_status); }; }; then
8992   ac_header_compiler=yes
8993 else
8994   echo "$as_me: failed program was:" >&5
8995 cat conftest.$ac_ext >&5
8996 ac_header_compiler=no
8997 fi
8998 rm -f conftest.$ac_objext conftest.$ac_ext
8999 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9000 echo "${ECHO_T}$ac_header_compiler" >&6
9001
9002 # Is the header present?
9003 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9004 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9005 cat >conftest.$ac_ext <<_ACEOF
9006 #line $LINENO "configure"
9007 #include "confdefs.h"
9008 #include <$ac_header>
9009 _ACEOF
9010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9011   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9012   ac_status=$?
9013   egrep -v '^ *\+' conftest.er1 >conftest.err
9014   rm -f conftest.er1
9015   cat conftest.err >&5
9016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017   (exit $ac_status); } >/dev/null; then
9018   if test -s conftest.err; then
9019     ac_cpp_err=$ac_c_preproc_warn_flag
9020   else
9021     ac_cpp_err=
9022   fi
9023 else
9024   ac_cpp_err=yes
9025 fi
9026 if test -z "$ac_cpp_err"; then
9027   ac_header_preproc=yes
9028 else
9029   echo "$as_me: failed program was:" >&5
9030   cat conftest.$ac_ext >&5
9031   ac_header_preproc=no
9032 fi
9033 rm -f conftest.err conftest.$ac_ext
9034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9035 echo "${ECHO_T}$ac_header_preproc" >&6
9036
9037 # So?  What about this header?
9038 case $ac_header_compiler:$ac_header_preproc in
9039   yes:no )
9040     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9044   no:yes )
9045     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9046 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9047     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9048 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9049     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9051 esac
9052 echo "$as_me:$LINENO: checking for $ac_header" >&5
9053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9055   echo $ECHO_N "(cached) $ECHO_C" >&6
9056 else
9057   eval "$as_ac_Header=$ac_header_preproc"
9058 fi
9059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9061
9062 fi
9063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9064   cat >>confdefs.h <<_ACEOF
9065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9066 _ACEOF
9067
9068 else
9069   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
9070 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
9071    { (exit 1); exit 1; }; }
9072 fi
9073
9074 done
9075
9076 fi
9077
9078 done
9079
9080 fi
9081
9082 if test "$with_rendezvous" = yes ; then
9083   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9084   echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9085 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9086 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9087   echo $ECHO_N "(cached) $ECHO_C" >&6
9088 fi
9089 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9090 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9091 else
9092   # Is the header compilable?
9093 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
9094 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
9095 cat >conftest.$ac_ext <<_ACEOF
9096 #line $LINENO "configure"
9097 #include "confdefs.h"
9098 $ac_includes_default
9099 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9100 _ACEOF
9101 rm -f conftest.$ac_objext
9102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9103   (eval $ac_compile) 2>&5
9104   ac_status=$?
9105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106   (exit $ac_status); } &&
9107          { ac_try='test -s conftest.$ac_objext'
9108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109   (eval $ac_try) 2>&5
9110   ac_status=$?
9111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112   (exit $ac_status); }; }; then
9113   ac_header_compiler=yes
9114 else
9115   echo "$as_me: failed program was:" >&5
9116 cat conftest.$ac_ext >&5
9117 ac_header_compiler=no
9118 fi
9119 rm -f conftest.$ac_objext conftest.$ac_ext
9120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9121 echo "${ECHO_T}$ac_header_compiler" >&6
9122
9123 # Is the header present?
9124 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9125 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9126 cat >conftest.$ac_ext <<_ACEOF
9127 #line $LINENO "configure"
9128 #include "confdefs.h"
9129 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9130 _ACEOF
9131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9132   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9133   ac_status=$?
9134   egrep -v '^ *\+' conftest.er1 >conftest.err
9135   rm -f conftest.er1
9136   cat conftest.err >&5
9137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138   (exit $ac_status); } >/dev/null; then
9139   if test -s conftest.err; then
9140     ac_cpp_err=$ac_c_preproc_warn_flag
9141   else
9142     ac_cpp_err=
9143   fi
9144 else
9145   ac_cpp_err=yes
9146 fi
9147 if test -z "$ac_cpp_err"; then
9148   ac_header_preproc=yes
9149 else
9150   echo "$as_me: failed program was:" >&5
9151   cat conftest.$ac_ext >&5
9152   ac_header_preproc=no
9153 fi
9154 rm -f conftest.err conftest.$ac_ext
9155 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9156 echo "${ECHO_T}$ac_header_preproc" >&6
9157
9158 # So?  What about this header?
9159 case $ac_header_compiler:$ac_header_preproc in
9160   yes:no )
9161     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9162 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9163     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9164 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9165   no:yes )
9166     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9167 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9168     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9169 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9170     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9171 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9172 esac
9173 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9174 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9175 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9176   echo $ECHO_N "(cached) $ECHO_C" >&6
9177 else
9178   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9179 fi
9180 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9181 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9182
9183 fi
9184 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9185   :
9186 else
9187   { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9188 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9189    { (exit 1); exit 1; }; }
9190 fi
9191
9192
9193 fi
9194
9195
9196 ##
9197 ## Types, structures, compiler characteristics
9198 ##
9199
9200
9201 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9202 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9203 if test "${ac_cv_c_const+set}" = set; then
9204   echo $ECHO_N "(cached) $ECHO_C" >&6
9205 else
9206   cat >conftest.$ac_ext <<_ACEOF
9207 #line $LINENO "configure"
9208 #include "confdefs.h"
9209
9210 #ifdef F77_DUMMY_MAIN
9211 #  ifdef __cplusplus
9212      extern "C"
9213 #  endif
9214    int F77_DUMMY_MAIN() { return 1; }
9215 #endif
9216 int
9217 main ()
9218 {
9219 /* FIXME: Include the comments suggested by Paul. */
9220 #ifndef __cplusplus
9221   /* Ultrix mips cc rejects this.  */
9222   typedef int charset[2];
9223   const charset x;
9224   /* SunOS 4.1.1 cc rejects this.  */
9225   char const *const *ccp;
9226   char **p;
9227   /* NEC SVR4.0.2 mips cc rejects this.  */
9228   struct point {int x, y;};
9229   static struct point const zero = {0,0};
9230   /* AIX XL C 1.02.0.0 rejects this.
9231      It does not let you subtract one const X* pointer from another in
9232      an arm of an if-expression whose if-part is not a constant
9233      expression */
9234   const char *g = "string";
9235   ccp = &g + (g ? g-g : 0);
9236   /* HPUX 7.0 cc rejects these. */
9237   ++ccp;
9238   p = (char**) ccp;
9239   ccp = (char const *const *) p;
9240   { /* SCO 3.2v4 cc rejects this.  */
9241     char *t;
9242     char const *s = 0 ? (char *) 0 : (char const *) 0;
9243
9244     *t++ = 0;
9245   }
9246   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9247     int x[] = {25, 17};
9248     const int *foo = &x[0];
9249     ++foo;
9250   }
9251   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9252     typedef const int *iptr;
9253     iptr p = 0;
9254     ++p;
9255   }
9256   { /* AIX XL C 1.02.0.0 rejects this saying
9257        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9258     struct s { int j; const int *ap[3]; };
9259     struct s *b; b->j = 5;
9260   }
9261   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9262     const int foo = 10;
9263   }
9264 #endif
9265
9266   ;
9267   return 0;
9268 }
9269 _ACEOF
9270 rm -f conftest.$ac_objext
9271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9272   (eval $ac_compile) 2>&5
9273   ac_status=$?
9274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275   (exit $ac_status); } &&
9276          { ac_try='test -s conftest.$ac_objext'
9277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278   (eval $ac_try) 2>&5
9279   ac_status=$?
9280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281   (exit $ac_status); }; }; then
9282   ac_cv_c_const=yes
9283 else
9284   echo "$as_me: failed program was:" >&5
9285 cat conftest.$ac_ext >&5
9286 ac_cv_c_const=no
9287 fi
9288 rm -f conftest.$ac_objext conftest.$ac_ext
9289 fi
9290 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9291 echo "${ECHO_T}$ac_cv_c_const" >&6
9292 if test $ac_cv_c_const = no; then
9293
9294 cat >>confdefs.h <<\_ACEOF
9295 #define const
9296 _ACEOF
9297
9298 fi
9299
9300 echo "$as_me:$LINENO: checking for inline" >&5
9301 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9302 if test "${ac_cv_c_inline+set}" = set; then
9303   echo $ECHO_N "(cached) $ECHO_C" >&6
9304 else
9305   ac_cv_c_inline=no
9306 for ac_kw in inline __inline__ __inline; do
9307   cat >conftest.$ac_ext <<_ACEOF
9308 #line $LINENO "configure"
9309 #include "confdefs.h"
9310 #ifndef __cplusplus
9311 typedef int foo_t;
9312 static $ac_kw foo_t static_foo () {return 0; }
9313 $ac_kw int foo () {return 0; }
9314 #endif
9315
9316 _ACEOF
9317 rm -f conftest.$ac_objext
9318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9319   (eval $ac_compile) 2>&5
9320   ac_status=$?
9321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322   (exit $ac_status); } &&
9323          { ac_try='test -s conftest.$ac_objext'
9324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9325   (eval $ac_try) 2>&5
9326   ac_status=$?
9327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328   (exit $ac_status); }; }; then
9329   ac_cv_c_inline=$ac_kw; break
9330 else
9331   echo "$as_me: failed program was:" >&5
9332 cat conftest.$ac_ext >&5
9333 fi
9334 rm -f conftest.$ac_objext conftest.$ac_ext
9335 done
9336
9337 fi
9338 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9339 echo "${ECHO_T}$ac_cv_c_inline" >&6
9340 case $ac_cv_c_inline in
9341   inline | yes) ;;
9342   no)
9343 cat >>confdefs.h <<\_ACEOF
9344 #define inline
9345 _ACEOF
9346  ;;
9347   *)  cat >>confdefs.h <<_ACEOF
9348 #define inline $ac_cv_c_inline
9349 _ACEOF
9350  ;;
9351 esac
9352
9353 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9354 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9355 if test "${ac_cv_c_stringize+set}" = set; then
9356   echo $ECHO_N "(cached) $ECHO_C" >&6
9357 else
9358   cat >conftest.$ac_ext <<_ACEOF
9359 #line $LINENO "configure"
9360 #include "confdefs.h"
9361 #define x(y) #y
9362
9363 char *s = x(teststring);
9364 _ACEOF
9365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9366   egrep "#teststring" >/dev/null 2>&1; then
9367   ac_cv_c_stringize=no
9368 else
9369   ac_cv_c_stringize=yes
9370 fi
9371 rm -f conftest*
9372
9373 fi
9374 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9375 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9376 if test $ac_cv_c_stringize = yes; then
9377
9378 cat >>confdefs.h <<\_ACEOF
9379 #define HAVE_STRINGIZE 1
9380 _ACEOF
9381
9382 fi
9383
9384 echo "$as_me:$LINENO: checking for signed types" >&5
9385 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9386 if test "${pgac_cv_c_signed+set}" = set; then
9387   echo $ECHO_N "(cached) $ECHO_C" >&6
9388 else
9389   cat >conftest.$ac_ext <<_ACEOF
9390 #line $LINENO "configure"
9391 #include "confdefs.h"
9392
9393 #ifdef F77_DUMMY_MAIN
9394 #  ifdef __cplusplus
9395      extern "C"
9396 #  endif
9397    int F77_DUMMY_MAIN() { return 1; }
9398 #endif
9399 int
9400 main ()
9401 {
9402 signed char c; signed short s; signed int i;
9403   ;
9404   return 0;
9405 }
9406 _ACEOF
9407 rm -f conftest.$ac_objext
9408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9409   (eval $ac_compile) 2>&5
9410   ac_status=$?
9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412   (exit $ac_status); } &&
9413          { ac_try='test -s conftest.$ac_objext'
9414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415   (eval $ac_try) 2>&5
9416   ac_status=$?
9417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418   (exit $ac_status); }; }; then
9419   pgac_cv_c_signed=yes
9420 else
9421   echo "$as_me: failed program was:" >&5
9422 cat conftest.$ac_ext >&5
9423 pgac_cv_c_signed=no
9424 fi
9425 rm -f conftest.$ac_objext conftest.$ac_ext
9426 fi
9427 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9428 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9429 if test x"$pgac_cv_c_signed" = xno ; then
9430
9431 cat >>confdefs.h <<\_ACEOF
9432 #define signed
9433 _ACEOF
9434
9435 fi
9436 echo "$as_me:$LINENO: checking for working volatile" >&5
9437 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9438 if test "${ac_cv_c_volatile+set}" = set; then
9439   echo $ECHO_N "(cached) $ECHO_C" >&6
9440 else
9441   cat >conftest.$ac_ext <<_ACEOF
9442 #line $LINENO "configure"
9443 #include "confdefs.h"
9444
9445 #ifdef F77_DUMMY_MAIN
9446 #  ifdef __cplusplus
9447      extern "C"
9448 #  endif
9449    int F77_DUMMY_MAIN() { return 1; }
9450 #endif
9451 int
9452 main ()
9453 {
9454
9455 volatile int x;
9456 int * volatile y;
9457   ;
9458   return 0;
9459 }
9460 _ACEOF
9461 rm -f conftest.$ac_objext
9462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9463   (eval $ac_compile) 2>&5
9464   ac_status=$?
9465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466   (exit $ac_status); } &&
9467          { ac_try='test -s conftest.$ac_objext'
9468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469   (eval $ac_try) 2>&5
9470   ac_status=$?
9471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472   (exit $ac_status); }; }; then
9473   ac_cv_c_volatile=yes
9474 else
9475   echo "$as_me: failed program was:" >&5
9476 cat conftest.$ac_ext >&5
9477 ac_cv_c_volatile=no
9478 fi
9479 rm -f conftest.$ac_objext conftest.$ac_ext
9480 fi
9481 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9482 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9483 if test $ac_cv_c_volatile = no; then
9484
9485 cat >>confdefs.h <<\_ACEOF
9486 #define volatile
9487 _ACEOF
9488
9489 fi
9490
9491 echo "$as_me:$LINENO: checking for __func__" >&5
9492 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9493 if test "${pgac_cv_funcname_func_support+set}" = set; then
9494   echo $ECHO_N "(cached) $ECHO_C" >&6
9495 else
9496   cat >conftest.$ac_ext <<_ACEOF
9497 #line $LINENO "configure"
9498 #include "confdefs.h"
9499 #include <stdio.h>
9500 #ifdef F77_DUMMY_MAIN
9501 #  ifdef __cplusplus
9502      extern "C"
9503 #  endif
9504    int F77_DUMMY_MAIN() { return 1; }
9505 #endif
9506 int
9507 main ()
9508 {
9509 printf("%s\n", __func__);
9510   ;
9511   return 0;
9512 }
9513 _ACEOF
9514 rm -f conftest.$ac_objext
9515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9516   (eval $ac_compile) 2>&5
9517   ac_status=$?
9518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519   (exit $ac_status); } &&
9520          { ac_try='test -s conftest.$ac_objext'
9521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9522   (eval $ac_try) 2>&5
9523   ac_status=$?
9524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525   (exit $ac_status); }; }; then
9526   pgac_cv_funcname_func_support=yes
9527 else
9528   echo "$as_me: failed program was:" >&5
9529 cat conftest.$ac_ext >&5
9530 pgac_cv_funcname_func_support=no
9531 fi
9532 rm -f conftest.$ac_objext conftest.$ac_ext
9533 fi
9534 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9535 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9536 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9537
9538 cat >>confdefs.h <<\_ACEOF
9539 #define HAVE_FUNCNAME__FUNC 1
9540 _ACEOF
9541
9542 else
9543 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9544 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9545 if test "${pgac_cv_funcname_function_support+set}" = set; then
9546   echo $ECHO_N "(cached) $ECHO_C" >&6
9547 else
9548   cat >conftest.$ac_ext <<_ACEOF
9549 #line $LINENO "configure"
9550 #include "confdefs.h"
9551 #include <stdio.h>
9552 #ifdef F77_DUMMY_MAIN
9553 #  ifdef __cplusplus
9554      extern "C"
9555 #  endif
9556    int F77_DUMMY_MAIN() { return 1; }
9557 #endif
9558 int
9559 main ()
9560 {
9561 printf("%s\n", __FUNCTION__);
9562   ;
9563   return 0;
9564 }
9565 _ACEOF
9566 rm -f conftest.$ac_objext
9567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9568   (eval $ac_compile) 2>&5
9569   ac_status=$?
9570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571   (exit $ac_status); } &&
9572          { ac_try='test -s conftest.$ac_objext'
9573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574   (eval $ac_try) 2>&5
9575   ac_status=$?
9576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577   (exit $ac_status); }; }; then
9578   pgac_cv_funcname_function_support=yes
9579 else
9580   echo "$as_me: failed program was:" >&5
9581 cat conftest.$ac_ext >&5
9582 pgac_cv_funcname_function_support=no
9583 fi
9584 rm -f conftest.$ac_objext conftest.$ac_ext
9585 fi
9586 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9587 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9588 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9589
9590 cat >>confdefs.h <<\_ACEOF
9591 #define HAVE_FUNCNAME__FUNCTION 1
9592 _ACEOF
9593
9594 fi
9595 fi
9596 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9597 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9598 if test "${ac_cv_struct_tm+set}" = set; then
9599   echo $ECHO_N "(cached) $ECHO_C" >&6
9600 else
9601   cat >conftest.$ac_ext <<_ACEOF
9602 #line $LINENO "configure"
9603 #include "confdefs.h"
9604 #include <sys/types.h>
9605 #include <time.h>
9606
9607 #ifdef F77_DUMMY_MAIN
9608 #  ifdef __cplusplus
9609      extern "C"
9610 #  endif
9611    int F77_DUMMY_MAIN() { return 1; }
9612 #endif
9613 int
9614 main ()
9615 {
9616 struct tm *tp; tp->tm_sec;
9617   ;
9618   return 0;
9619 }
9620 _ACEOF
9621 rm -f conftest.$ac_objext
9622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9623   (eval $ac_compile) 2>&5
9624   ac_status=$?
9625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626   (exit $ac_status); } &&
9627          { ac_try='test -s conftest.$ac_objext'
9628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629   (eval $ac_try) 2>&5
9630   ac_status=$?
9631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632   (exit $ac_status); }; }; then
9633   ac_cv_struct_tm=time.h
9634 else
9635   echo "$as_me: failed program was:" >&5
9636 cat conftest.$ac_ext >&5
9637 ac_cv_struct_tm=sys/time.h
9638 fi
9639 rm -f conftest.$ac_objext conftest.$ac_ext
9640 fi
9641 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9642 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9643 if test $ac_cv_struct_tm = sys/time.h; then
9644
9645 cat >>confdefs.h <<\_ACEOF
9646 #define TM_IN_SYS_TIME 1
9647 _ACEOF
9648
9649 fi
9650
9651 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9652 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9653 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9654   echo $ECHO_N "(cached) $ECHO_C" >&6
9655 else
9656   cat >conftest.$ac_ext <<_ACEOF
9657 #line $LINENO "configure"
9658 #include "confdefs.h"
9659 #include <sys/types.h>
9660 #include <$ac_cv_struct_tm>
9661
9662
9663 #ifdef F77_DUMMY_MAIN
9664 #  ifdef __cplusplus
9665      extern "C"
9666 #  endif
9667    int F77_DUMMY_MAIN() { return 1; }
9668 #endif
9669 int
9670 main ()
9671 {
9672 static struct tm ac_aggr;
9673 if (ac_aggr.tm_zone)
9674 return 0;
9675   ;
9676   return 0;
9677 }
9678 _ACEOF
9679 rm -f conftest.$ac_objext
9680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9681   (eval $ac_compile) 2>&5
9682   ac_status=$?
9683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684   (exit $ac_status); } &&
9685          { ac_try='test -s conftest.$ac_objext'
9686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687   (eval $ac_try) 2>&5
9688   ac_status=$?
9689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690   (exit $ac_status); }; }; then
9691   ac_cv_member_struct_tm_tm_zone=yes
9692 else
9693   echo "$as_me: failed program was:" >&5
9694 cat conftest.$ac_ext >&5
9695 ac_cv_member_struct_tm_tm_zone=no
9696 fi
9697 rm -f conftest.$ac_objext conftest.$ac_ext
9698 fi
9699 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9700 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9701 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9702
9703 cat >>confdefs.h <<_ACEOF
9704 #define HAVE_STRUCT_TM_TM_ZONE 1
9705 _ACEOF
9706
9707
9708 fi
9709
9710 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9711
9712 cat >>confdefs.h <<\_ACEOF
9713 #define HAVE_TM_ZONE 1
9714 _ACEOF
9715
9716 fi
9717 echo "$as_me:$LINENO: checking for tzname" >&5
9718 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9719 if test "${ac_cv_var_tzname+set}" = set; then
9720   echo $ECHO_N "(cached) $ECHO_C" >&6
9721 else
9722   cat >conftest.$ac_ext <<_ACEOF
9723 #line $LINENO "configure"
9724 #include "confdefs.h"
9725 #include <time.h>
9726 #ifndef tzname /* For SGI.  */
9727 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9728 #endif
9729
9730 #ifdef F77_DUMMY_MAIN
9731 #  ifdef __cplusplus
9732      extern "C"
9733 #  endif
9734    int F77_DUMMY_MAIN() { return 1; }
9735 #endif
9736 int
9737 main ()
9738 {
9739 atoi(*tzname);
9740   ;
9741   return 0;
9742 }
9743 _ACEOF
9744 rm -f conftest.$ac_objext conftest$ac_exeext
9745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9746   (eval $ac_link) 2>&5
9747   ac_status=$?
9748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749   (exit $ac_status); } &&
9750          { ac_try='test -s conftest$ac_exeext'
9751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752   (eval $ac_try) 2>&5
9753   ac_status=$?
9754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755   (exit $ac_status); }; }; then
9756   ac_cv_var_tzname=yes
9757 else
9758   echo "$as_me: failed program was:" >&5
9759 cat conftest.$ac_ext >&5
9760 ac_cv_var_tzname=no
9761 fi
9762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9763 fi
9764 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9765 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9766 if test $ac_cv_var_tzname = yes; then
9767
9768 cat >>confdefs.h <<\_ACEOF
9769 #define HAVE_TZNAME 1
9770 _ACEOF
9771
9772 fi
9773
9774 echo "$as_me:$LINENO: checking for union semun" >&5
9775 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9776 if test "${ac_cv_type_union_semun+set}" = set; then
9777   echo $ECHO_N "(cached) $ECHO_C" >&6
9778 else
9779   cat >conftest.$ac_ext <<_ACEOF
9780 #line $LINENO "configure"
9781 #include "confdefs.h"
9782 #include <sys/types.h>
9783 #include <sys/ipc.h>
9784 #include <sys/sem.h>
9785
9786 #ifdef F77_DUMMY_MAIN
9787 #  ifdef __cplusplus
9788      extern "C"
9789 #  endif
9790    int F77_DUMMY_MAIN() { return 1; }
9791 #endif
9792 int
9793 main ()
9794 {
9795 if ((union semun *) 0)
9796   return 0;
9797 if (sizeof (union semun))
9798   return 0;
9799   ;
9800   return 0;
9801 }
9802 _ACEOF
9803 rm -f conftest.$ac_objext
9804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9805   (eval $ac_compile) 2>&5
9806   ac_status=$?
9807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808   (exit $ac_status); } &&
9809          { ac_try='test -s conftest.$ac_objext'
9810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9811   (eval $ac_try) 2>&5
9812   ac_status=$?
9813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814   (exit $ac_status); }; }; then
9815   ac_cv_type_union_semun=yes
9816 else
9817   echo "$as_me: failed program was:" >&5
9818 cat conftest.$ac_ext >&5
9819 ac_cv_type_union_semun=no
9820 fi
9821 rm -f conftest.$ac_objext conftest.$ac_ext
9822 fi
9823 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9824 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9825 if test $ac_cv_type_union_semun = yes; then
9826
9827 cat >>confdefs.h <<_ACEOF
9828 #define HAVE_UNION_SEMUN 1
9829 _ACEOF
9830
9831
9832 fi
9833
9834 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9835 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9836 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9837   echo $ECHO_N "(cached) $ECHO_C" >&6
9838 else
9839   cat >conftest.$ac_ext <<_ACEOF
9840 #line $LINENO "configure"
9841 #include "confdefs.h"
9842 #include <sys/types.h>
9843 #ifdef HAVE_SYS_UN_H
9844 #include <sys/un.h>
9845 #endif
9846
9847
9848 #ifdef F77_DUMMY_MAIN
9849 #  ifdef __cplusplus
9850      extern "C"
9851 #  endif
9852    int F77_DUMMY_MAIN() { return 1; }
9853 #endif
9854 int
9855 main ()
9856 {
9857 if ((struct sockaddr_un *) 0)
9858   return 0;
9859 if (sizeof (struct sockaddr_un))
9860   return 0;
9861   ;
9862   return 0;
9863 }
9864 _ACEOF
9865 rm -f conftest.$ac_objext
9866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9867   (eval $ac_compile) 2>&5
9868   ac_status=$?
9869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870   (exit $ac_status); } &&
9871          { ac_try='test -s conftest.$ac_objext'
9872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873   (eval $ac_try) 2>&5
9874   ac_status=$?
9875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876   (exit $ac_status); }; }; then
9877   ac_cv_type_struct_sockaddr_un=yes
9878 else
9879   echo "$as_me: failed program was:" >&5
9880 cat conftest.$ac_ext >&5
9881 ac_cv_type_struct_sockaddr_un=no
9882 fi
9883 rm -f conftest.$ac_objext conftest.$ac_ext
9884 fi
9885 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9886 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9887 if test $ac_cv_type_struct_sockaddr_un = yes; then
9888
9889 cat >>confdefs.h <<_ACEOF
9890 #define HAVE_STRUCT_SOCKADDR_UN 1
9891 _ACEOF
9892
9893
9894 cat >>confdefs.h <<\_ACEOF
9895 #define HAVE_UNIX_SOCKETS 1
9896 _ACEOF
9897
9898 fi
9899
9900 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9901 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9902 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9903   echo $ECHO_N "(cached) $ECHO_C" >&6
9904 else
9905   cat >conftest.$ac_ext <<_ACEOF
9906 #line $LINENO "configure"
9907 #include "confdefs.h"
9908 #include <sys/types.h>
9909 #ifdef HAVE_SYS_SOCKET_H
9910 #include <sys/socket.h>
9911 #endif
9912
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 ((struct sockaddr_storage *) 0)
9924   return 0;
9925 if (sizeof (struct sockaddr_storage))
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_struct_sockaddr_storage=yes
9944 else
9945   echo "$as_me: failed program was:" >&5
9946 cat conftest.$ac_ext >&5
9947 ac_cv_type_struct_sockaddr_storage=no
9948 fi
9949 rm -f conftest.$ac_objext conftest.$ac_ext
9950 fi
9951 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
9952 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
9953 if test $ac_cv_type_struct_sockaddr_storage = yes; then
9954
9955 cat >>confdefs.h <<_ACEOF
9956 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9957 _ACEOF
9958
9959
9960 fi
9961
9962 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
9963 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
9964 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
9965   echo $ECHO_N "(cached) $ECHO_C" >&6
9966 else
9967   cat >conftest.$ac_ext <<_ACEOF
9968 #line $LINENO "configure"
9969 #include "confdefs.h"
9970 #include <sys/types.h>
9971 #ifdef HAVE_SYS_SOCKET_H
9972 #include <sys/socket.h>
9973 #endif
9974
9975
9976 #ifdef F77_DUMMY_MAIN
9977 #  ifdef __cplusplus
9978      extern "C"
9979 #  endif
9980    int F77_DUMMY_MAIN() { return 1; }
9981 #endif
9982 int
9983 main ()
9984 {
9985 static struct sockaddr_storage ac_aggr;
9986 if (ac_aggr.ss_family)
9987 return 0;
9988   ;
9989   return 0;
9990 }
9991 _ACEOF
9992 rm -f conftest.$ac_objext
9993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9994   (eval $ac_compile) 2>&5
9995   ac_status=$?
9996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997   (exit $ac_status); } &&
9998          { ac_try='test -s conftest.$ac_objext'
9999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000   (eval $ac_try) 2>&5
10001   ac_status=$?
10002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003   (exit $ac_status); }; }; then
10004   ac_cv_member_struct_sockaddr_storage_ss_family=yes
10005 else
10006   echo "$as_me: failed program was:" >&5
10007 cat conftest.$ac_ext >&5
10008 ac_cv_member_struct_sockaddr_storage_ss_family=no
10009 fi
10010 rm -f conftest.$ac_objext conftest.$ac_ext
10011 fi
10012 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
10013 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
10014 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
10015
10016 cat >>confdefs.h <<_ACEOF
10017 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
10018 _ACEOF
10019
10020
10021 fi
10022 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
10023 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
10024 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
10025   echo $ECHO_N "(cached) $ECHO_C" >&6
10026 else
10027   cat >conftest.$ac_ext <<_ACEOF
10028 #line $LINENO "configure"
10029 #include "confdefs.h"
10030 #include <sys/types.h>
10031 #ifdef HAVE_SYS_SOCKET_H
10032 #include <sys/socket.h>
10033 #endif
10034
10035
10036 #ifdef F77_DUMMY_MAIN
10037 #  ifdef __cplusplus
10038      extern "C"
10039 #  endif
10040    int F77_DUMMY_MAIN() { return 1; }
10041 #endif
10042 int
10043 main ()
10044 {
10045 static struct sockaddr_storage ac_aggr;
10046 if (ac_aggr.__ss_family)
10047 return 0;
10048   ;
10049   return 0;
10050 }
10051 _ACEOF
10052 rm -f conftest.$ac_objext
10053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10054   (eval $ac_compile) 2>&5
10055   ac_status=$?
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); } &&
10058          { ac_try='test -s conftest.$ac_objext'
10059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060   (eval $ac_try) 2>&5
10061   ac_status=$?
10062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063   (exit $ac_status); }; }; then
10064   ac_cv_member_struct_sockaddr_storage___ss_family=yes
10065 else
10066   echo "$as_me: failed program was:" >&5
10067 cat conftest.$ac_ext >&5
10068 ac_cv_member_struct_sockaddr_storage___ss_family=no
10069 fi
10070 rm -f conftest.$ac_objext conftest.$ac_ext
10071 fi
10072 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
10073 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
10074 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
10075
10076 cat >>confdefs.h <<_ACEOF
10077 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
10078 _ACEOF
10079
10080
10081 fi
10082 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
10083 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
10084 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
10085   echo $ECHO_N "(cached) $ECHO_C" >&6
10086 else
10087   cat >conftest.$ac_ext <<_ACEOF
10088 #line $LINENO "configure"
10089 #include "confdefs.h"
10090 #include <sys/types.h>
10091 #ifdef HAVE_SYS_SOCKET_H
10092 #include <sys/socket.h>
10093 #endif
10094
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 struct sockaddr_storage ac_aggr;
10106 if (ac_aggr.ss_len)
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_struct_sockaddr_storage_ss_len=yes
10125 else
10126   echo "$as_me: failed program was:" >&5
10127 cat conftest.$ac_ext >&5
10128 ac_cv_member_struct_sockaddr_storage_ss_len=no
10129 fi
10130 rm -f conftest.$ac_objext conftest.$ac_ext
10131 fi
10132 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
10133 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
10134 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
10135
10136 cat >>confdefs.h <<_ACEOF
10137 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
10138 _ACEOF
10139
10140
10141 fi
10142 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
10143 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
10144 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+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 <sys/types.h>
10151 #ifdef HAVE_SYS_SOCKET_H
10152 #include <sys/socket.h>
10153 #endif
10154
10155
10156 #ifdef F77_DUMMY_MAIN
10157 #  ifdef __cplusplus
10158      extern "C"
10159 #  endif
10160    int F77_DUMMY_MAIN() { return 1; }
10161 #endif
10162 int
10163 main ()
10164 {
10165 static struct sockaddr_storage ac_aggr;
10166 if (ac_aggr.__ss_len)
10167 return 0;
10168   ;
10169   return 0;
10170 }
10171 _ACEOF
10172 rm -f conftest.$ac_objext
10173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10174   (eval $ac_compile) 2>&5
10175   ac_status=$?
10176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177   (exit $ac_status); } &&
10178          { ac_try='test -s conftest.$ac_objext'
10179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180   (eval $ac_try) 2>&5
10181   ac_status=$?
10182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183   (exit $ac_status); }; }; then
10184   ac_cv_member_struct_sockaddr_storage___ss_len=yes
10185 else
10186   echo "$as_me: failed program was:" >&5
10187 cat conftest.$ac_ext >&5
10188 ac_cv_member_struct_sockaddr_storage___ss_len=no
10189 fi
10190 rm -f conftest.$ac_objext conftest.$ac_ext
10191 fi
10192 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
10193 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
10194 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
10195
10196 cat >>confdefs.h <<_ACEOF
10197 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10198 _ACEOF
10199
10200
10201 fi
10202 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
10203 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
10204 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
10205   echo $ECHO_N "(cached) $ECHO_C" >&6
10206 else
10207   cat >conftest.$ac_ext <<_ACEOF
10208 #line $LINENO "configure"
10209 #include "confdefs.h"
10210 #include <sys/types.h>
10211 #ifdef HAVE_SYS_SOCKET_H
10212 #include <sys/socket.h>
10213 #endif
10214
10215
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 static struct sockaddr ac_aggr;
10226 if (ac_aggr.sa_len)
10227 return 0;
10228   ;
10229   return 0;
10230 }
10231 _ACEOF
10232 rm -f conftest.$ac_objext
10233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10234   (eval $ac_compile) 2>&5
10235   ac_status=$?
10236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237   (exit $ac_status); } &&
10238          { ac_try='test -s conftest.$ac_objext'
10239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240   (eval $ac_try) 2>&5
10241   ac_status=$?
10242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243   (exit $ac_status); }; }; then
10244   ac_cv_member_struct_sockaddr_sa_len=yes
10245 else
10246   echo "$as_me: failed program was:" >&5
10247 cat conftest.$ac_ext >&5
10248 ac_cv_member_struct_sockaddr_sa_len=no
10249 fi
10250 rm -f conftest.$ac_objext conftest.$ac_ext
10251 fi
10252 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10253 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10254 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10255
10256 cat >>confdefs.h <<_ACEOF
10257 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10258 _ACEOF
10259
10260
10261 fi
10262
10263 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10264 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10265 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10266   echo $ECHO_N "(cached) $ECHO_C" >&6
10267 else
10268   cat >conftest.$ac_ext <<_ACEOF
10269 #line $LINENO "configure"
10270 #include "confdefs.h"
10271 #include <sys/types.h>
10272 #include <sys/socket.h>
10273 #include <netdb.h>
10274
10275
10276 #ifdef F77_DUMMY_MAIN
10277 #  ifdef __cplusplus
10278      extern "C"
10279 #  endif
10280    int F77_DUMMY_MAIN() { return 1; }
10281 #endif
10282 int
10283 main ()
10284 {
10285 if ((struct addrinfo *) 0)
10286   return 0;
10287 if (sizeof (struct addrinfo))
10288   return 0;
10289   ;
10290   return 0;
10291 }
10292 _ACEOF
10293 rm -f conftest.$ac_objext
10294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10295   (eval $ac_compile) 2>&5
10296   ac_status=$?
10297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298   (exit $ac_status); } &&
10299          { ac_try='test -s conftest.$ac_objext'
10300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301   (eval $ac_try) 2>&5
10302   ac_status=$?
10303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304   (exit $ac_status); }; }; then
10305   ac_cv_type_struct_addrinfo=yes
10306 else
10307   echo "$as_me: failed program was:" >&5
10308 cat conftest.$ac_ext >&5
10309 ac_cv_type_struct_addrinfo=no
10310 fi
10311 rm -f conftest.$ac_objext conftest.$ac_ext
10312 fi
10313 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10314 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10315 if test $ac_cv_type_struct_addrinfo = yes; then
10316
10317 cat >>confdefs.h <<_ACEOF
10318 #define HAVE_STRUCT_ADDRINFO 1
10319 _ACEOF
10320
10321
10322 fi
10323
10324
10325 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10326 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10327 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10328   echo $ECHO_N "(cached) $ECHO_C" >&6
10329 else
10330   cat >conftest.$ac_ext <<_ACEOF
10331 #line $LINENO "configure"
10332 #include "confdefs.h"
10333 #include <sys/param.h>
10334 #include <sys/types.h>
10335 #include <sys/socket.h>
10336 #include <sys/ucred.h>
10337
10338 #ifdef F77_DUMMY_MAIN
10339 #  ifdef __cplusplus
10340      extern "C"
10341 #  endif
10342    int F77_DUMMY_MAIN() { return 1; }
10343 #endif
10344 int
10345 main ()
10346 {
10347 if ((struct cmsgcred *) 0)
10348   return 0;
10349 if (sizeof (struct cmsgcred))
10350   return 0;
10351   ;
10352   return 0;
10353 }
10354 _ACEOF
10355 rm -f conftest.$ac_objext
10356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10357   (eval $ac_compile) 2>&5
10358   ac_status=$?
10359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360   (exit $ac_status); } &&
10361          { ac_try='test -s conftest.$ac_objext'
10362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363   (eval $ac_try) 2>&5
10364   ac_status=$?
10365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366   (exit $ac_status); }; }; then
10367   ac_cv_type_struct_cmsgcred=yes
10368 else
10369   echo "$as_me: failed program was:" >&5
10370 cat conftest.$ac_ext >&5
10371 ac_cv_type_struct_cmsgcred=no
10372 fi
10373 rm -f conftest.$ac_objext conftest.$ac_ext
10374 fi
10375 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10376 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10377 if test $ac_cv_type_struct_cmsgcred = yes; then
10378
10379 cat >>confdefs.h <<_ACEOF
10380 #define HAVE_STRUCT_CMSGCRED 1
10381 _ACEOF
10382
10383
10384 fi
10385 echo "$as_me:$LINENO: checking for struct fcred" >&5
10386 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10387 if test "${ac_cv_type_struct_fcred+set}" = set; then
10388   echo $ECHO_N "(cached) $ECHO_C" >&6
10389 else
10390   cat >conftest.$ac_ext <<_ACEOF
10391 #line $LINENO "configure"
10392 #include "confdefs.h"
10393 #include <sys/param.h>
10394 #include <sys/types.h>
10395 #include <sys/socket.h>
10396 #include <sys/ucred.h>
10397
10398 #ifdef F77_DUMMY_MAIN
10399 #  ifdef __cplusplus
10400      extern "C"
10401 #  endif
10402    int F77_DUMMY_MAIN() { return 1; }
10403 #endif
10404 int
10405 main ()
10406 {
10407 if ((struct fcred *) 0)
10408   return 0;
10409 if (sizeof (struct fcred))
10410   return 0;
10411   ;
10412   return 0;
10413 }
10414 _ACEOF
10415 rm -f conftest.$ac_objext
10416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10417   (eval $ac_compile) 2>&5
10418   ac_status=$?
10419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420   (exit $ac_status); } &&
10421          { ac_try='test -s conftest.$ac_objext'
10422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10423   (eval $ac_try) 2>&5
10424   ac_status=$?
10425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426   (exit $ac_status); }; }; then
10427   ac_cv_type_struct_fcred=yes
10428 else
10429   echo "$as_me: failed program was:" >&5
10430 cat conftest.$ac_ext >&5
10431 ac_cv_type_struct_fcred=no
10432 fi
10433 rm -f conftest.$ac_objext conftest.$ac_ext
10434 fi
10435 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10436 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10437 if test $ac_cv_type_struct_fcred = yes; then
10438
10439 cat >>confdefs.h <<_ACEOF
10440 #define HAVE_STRUCT_FCRED 1
10441 _ACEOF
10442
10443
10444 fi
10445 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10446 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10447 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10448   echo $ECHO_N "(cached) $ECHO_C" >&6
10449 else
10450   cat >conftest.$ac_ext <<_ACEOF
10451 #line $LINENO "configure"
10452 #include "confdefs.h"
10453 #include <sys/param.h>
10454 #include <sys/types.h>
10455 #include <sys/socket.h>
10456 #include <sys/ucred.h>
10457
10458 #ifdef F77_DUMMY_MAIN
10459 #  ifdef __cplusplus
10460      extern "C"
10461 #  endif
10462    int F77_DUMMY_MAIN() { return 1; }
10463 #endif
10464 int
10465 main ()
10466 {
10467 if ((struct sockcred *) 0)
10468   return 0;
10469 if (sizeof (struct sockcred))
10470   return 0;
10471   ;
10472   return 0;
10473 }
10474 _ACEOF
10475 rm -f conftest.$ac_objext
10476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10477   (eval $ac_compile) 2>&5
10478   ac_status=$?
10479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480   (exit $ac_status); } &&
10481          { ac_try='test -s conftest.$ac_objext'
10482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483   (eval $ac_try) 2>&5
10484   ac_status=$?
10485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486   (exit $ac_status); }; }; then
10487   ac_cv_type_struct_sockcred=yes
10488 else
10489   echo "$as_me: failed program was:" >&5
10490 cat conftest.$ac_ext >&5
10491 ac_cv_type_struct_sockcred=no
10492 fi
10493 rm -f conftest.$ac_objext conftest.$ac_ext
10494 fi
10495 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10496 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10497 if test $ac_cv_type_struct_sockcred = yes; then
10498
10499 cat >>confdefs.h <<_ACEOF
10500 #define HAVE_STRUCT_SOCKCRED 1
10501 _ACEOF
10502
10503
10504 fi
10505
10506
10507 echo "$as_me:$LINENO: checking for struct option" >&5
10508 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
10509 if test "${ac_cv_type_struct_option+set}" = set; then
10510   echo $ECHO_N "(cached) $ECHO_C" >&6
10511 else
10512   cat >conftest.$ac_ext <<_ACEOF
10513 #line $LINENO "configure"
10514 #include "confdefs.h"
10515 #ifdef HAVE_GETOPT_H
10516 #include <getopt.h>
10517 #endif
10518
10519 #ifdef F77_DUMMY_MAIN
10520 #  ifdef __cplusplus
10521      extern "C"
10522 #  endif
10523    int F77_DUMMY_MAIN() { return 1; }
10524 #endif
10525 int
10526 main ()
10527 {
10528 if ((struct option *) 0)
10529   return 0;
10530 if (sizeof (struct option))
10531   return 0;
10532   ;
10533   return 0;
10534 }
10535 _ACEOF
10536 rm -f conftest.$ac_objext
10537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10538   (eval $ac_compile) 2>&5
10539   ac_status=$?
10540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541   (exit $ac_status); } &&
10542          { ac_try='test -s conftest.$ac_objext'
10543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544   (eval $ac_try) 2>&5
10545   ac_status=$?
10546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547   (exit $ac_status); }; }; then
10548   ac_cv_type_struct_option=yes
10549 else
10550   echo "$as_me: failed program was:" >&5
10551 cat conftest.$ac_ext >&5
10552 ac_cv_type_struct_option=no
10553 fi
10554 rm -f conftest.$ac_objext conftest.$ac_ext
10555 fi
10556 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
10557 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
10558 if test $ac_cv_type_struct_option = yes; then
10559
10560 cat >>confdefs.h <<_ACEOF
10561 #define HAVE_STRUCT_OPTION 1
10562 _ACEOF
10563
10564
10565 fi
10566
10567
10568 if test "$with_zlib" = yes; then
10569   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10570   # did not).  While we could work around the lack of z_streamp, it
10571   # seems unwise to encourage people to use such old zlib versions...
10572   echo "$as_me:$LINENO: checking for z_streamp" >&5
10573 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10574 if test "${ac_cv_type_z_streamp+set}" = set; then
10575   echo $ECHO_N "(cached) $ECHO_C" >&6
10576 else
10577   cat >conftest.$ac_ext <<_ACEOF
10578 #line $LINENO "configure"
10579 #include "confdefs.h"
10580 #include <zlib.h>
10581
10582 #ifdef F77_DUMMY_MAIN
10583 #  ifdef __cplusplus
10584      extern "C"
10585 #  endif
10586    int F77_DUMMY_MAIN() { return 1; }
10587 #endif
10588 int
10589 main ()
10590 {
10591 if ((z_streamp *) 0)
10592   return 0;
10593 if (sizeof (z_streamp))
10594   return 0;
10595   ;
10596   return 0;
10597 }
10598 _ACEOF
10599 rm -f conftest.$ac_objext
10600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10601   (eval $ac_compile) 2>&5
10602   ac_status=$?
10603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604   (exit $ac_status); } &&
10605          { ac_try='test -s conftest.$ac_objext'
10606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607   (eval $ac_try) 2>&5
10608   ac_status=$?
10609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610   (exit $ac_status); }; }; then
10611   ac_cv_type_z_streamp=yes
10612 else
10613   echo "$as_me: failed program was:" >&5
10614 cat conftest.$ac_ext >&5
10615 ac_cv_type_z_streamp=no
10616 fi
10617 rm -f conftest.$ac_objext conftest.$ac_ext
10618 fi
10619 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10620 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10621 if test $ac_cv_type_z_streamp = yes; then
10622   :
10623 else
10624   { { echo "$as_me:$LINENO: error: zlib version is too old
10625 Use --without-zlib to disable zlib support." >&5
10626 echo "$as_me: error: zlib version is too old
10627 Use --without-zlib to disable zlib support." >&2;}
10628    { (exit 1); exit 1; }; }
10629 fi
10630
10631 fi
10632
10633 if test "$with_krb5" = yes; then
10634 # Check for differences between MIT and Heimdal (KTH) releases
10635   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10636 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10637 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10638   echo $ECHO_N "(cached) $ECHO_C" >&6
10639 else
10640   cat >conftest.$ac_ext <<_ACEOF
10641 #line $LINENO "configure"
10642 #include "confdefs.h"
10643 #include <krb5.h>
10644
10645 #ifdef F77_DUMMY_MAIN
10646 #  ifdef __cplusplus
10647      extern "C"
10648 #  endif
10649    int F77_DUMMY_MAIN() { return 1; }
10650 #endif
10651 int
10652 main ()
10653 {
10654 static krb5_ticket ac_aggr;
10655 if (ac_aggr.enc_part2)
10656 return 0;
10657   ;
10658   return 0;
10659 }
10660 _ACEOF
10661 rm -f conftest.$ac_objext
10662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10663   (eval $ac_compile) 2>&5
10664   ac_status=$?
10665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666   (exit $ac_status); } &&
10667          { ac_try='test -s conftest.$ac_objext'
10668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10669   (eval $ac_try) 2>&5
10670   ac_status=$?
10671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672   (exit $ac_status); }; }; then
10673   ac_cv_member_krb5_ticket_enc_part2=yes
10674 else
10675   echo "$as_me: failed program was:" >&5
10676 cat conftest.$ac_ext >&5
10677 ac_cv_member_krb5_ticket_enc_part2=no
10678 fi
10679 rm -f conftest.$ac_objext conftest.$ac_ext
10680 fi
10681 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10682 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10683 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10684
10685 cat >>confdefs.h <<_ACEOF
10686 #define HAVE_KRB5_TICKET_ENC_PART2 1
10687 _ACEOF
10688
10689
10690 else
10691   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10692 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10693 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10694   echo $ECHO_N "(cached) $ECHO_C" >&6
10695 else
10696   cat >conftest.$ac_ext <<_ACEOF
10697 #line $LINENO "configure"
10698 #include "confdefs.h"
10699 #include <krb5.h>
10700
10701 #ifdef F77_DUMMY_MAIN
10702 #  ifdef __cplusplus
10703      extern "C"
10704 #  endif
10705    int F77_DUMMY_MAIN() { return 1; }
10706 #endif
10707 int
10708 main ()
10709 {
10710 static krb5_ticket ac_aggr;
10711 if (ac_aggr.client)
10712 return 0;
10713   ;
10714   return 0;
10715 }
10716 _ACEOF
10717 rm -f conftest.$ac_objext
10718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10719   (eval $ac_compile) 2>&5
10720   ac_status=$?
10721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722   (exit $ac_status); } &&
10723          { ac_try='test -s conftest.$ac_objext'
10724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10725   (eval $ac_try) 2>&5
10726   ac_status=$?
10727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728   (exit $ac_status); }; }; then
10729   ac_cv_member_krb5_ticket_client=yes
10730 else
10731   echo "$as_me: failed program was:" >&5
10732 cat conftest.$ac_ext >&5
10733 ac_cv_member_krb5_ticket_client=no
10734 fi
10735 rm -f conftest.$ac_objext conftest.$ac_ext
10736 fi
10737 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10738 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10739 if test $ac_cv_member_krb5_ticket_client = yes; then
10740
10741 cat >>confdefs.h <<_ACEOF
10742 #define HAVE_KRB5_TICKET_CLIENT 1
10743 _ACEOF
10744
10745
10746 else
10747   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10748 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10749    { (exit 1); exit 1; }; }
10750 fi
10751
10752 fi
10753
10754   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10755 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10756 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10757   echo $ECHO_N "(cached) $ECHO_C" >&6
10758 else
10759   cat >conftest.$ac_ext <<_ACEOF
10760 #line $LINENO "configure"
10761 #include "confdefs.h"
10762 #include <krb5.h>
10763
10764 #ifdef F77_DUMMY_MAIN
10765 #  ifdef __cplusplus
10766      extern "C"
10767 #  endif
10768    int F77_DUMMY_MAIN() { return 1; }
10769 #endif
10770 int
10771 main ()
10772 {
10773 static krb5_error ac_aggr;
10774 if (ac_aggr.text.data)
10775 return 0;
10776   ;
10777   return 0;
10778 }
10779 _ACEOF
10780 rm -f conftest.$ac_objext
10781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10782   (eval $ac_compile) 2>&5
10783   ac_status=$?
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); } &&
10786          { ac_try='test -s conftest.$ac_objext'
10787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788   (eval $ac_try) 2>&5
10789   ac_status=$?
10790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791   (exit $ac_status); }; }; then
10792   ac_cv_member_krb5_error_text_data=yes
10793 else
10794   echo "$as_me: failed program was:" >&5
10795 cat conftest.$ac_ext >&5
10796 ac_cv_member_krb5_error_text_data=no
10797 fi
10798 rm -f conftest.$ac_objext conftest.$ac_ext
10799 fi
10800 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10801 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10802 if test $ac_cv_member_krb5_error_text_data = yes; then
10803
10804 cat >>confdefs.h <<_ACEOF
10805 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10806 _ACEOF
10807
10808
10809 else
10810   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10811 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10812 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10813   echo $ECHO_N "(cached) $ECHO_C" >&6
10814 else
10815   cat >conftest.$ac_ext <<_ACEOF
10816 #line $LINENO "configure"
10817 #include "confdefs.h"
10818 #include <krb5.h>
10819
10820 #ifdef F77_DUMMY_MAIN
10821 #  ifdef __cplusplus
10822      extern "C"
10823 #  endif
10824    int F77_DUMMY_MAIN() { return 1; }
10825 #endif
10826 int
10827 main ()
10828 {
10829 static krb5_error ac_aggr;
10830 if (ac_aggr.e_data)
10831 return 0;
10832   ;
10833   return 0;
10834 }
10835 _ACEOF
10836 rm -f conftest.$ac_objext
10837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10838   (eval $ac_compile) 2>&5
10839   ac_status=$?
10840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841   (exit $ac_status); } &&
10842          { ac_try='test -s conftest.$ac_objext'
10843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10844   (eval $ac_try) 2>&5
10845   ac_status=$?
10846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847   (exit $ac_status); }; }; then
10848   ac_cv_member_krb5_error_e_data=yes
10849 else
10850   echo "$as_me: failed program was:" >&5
10851 cat conftest.$ac_ext >&5
10852 ac_cv_member_krb5_error_e_data=no
10853 fi
10854 rm -f conftest.$ac_objext conftest.$ac_ext
10855 fi
10856 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10857 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10858 if test $ac_cv_member_krb5_error_e_data = yes; then
10859
10860 cat >>confdefs.h <<_ACEOF
10861 #define HAVE_KRB5_ERROR_E_DATA 1
10862 _ACEOF
10863
10864
10865 else
10866   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10867 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10868    { (exit 1); exit 1; }; }
10869 fi
10870
10871 fi
10872
10873 fi
10874
10875
10876 ##
10877 ## Functions, global variables
10878 ##
10879
10880 echo "$as_me:$LINENO: checking for int timezone" >&5
10881 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10882 if test "${pgac_cv_var_int_timezone+set}" = set; then
10883   echo $ECHO_N "(cached) $ECHO_C" >&6
10884 else
10885   cat >conftest.$ac_ext <<_ACEOF
10886 #line $LINENO "configure"
10887 #include "confdefs.h"
10888 #include <time.h>
10889 int res;
10890 #ifdef F77_DUMMY_MAIN
10891 #  ifdef __cplusplus
10892      extern "C"
10893 #  endif
10894    int F77_DUMMY_MAIN() { return 1; }
10895 #endif
10896 int
10897 main ()
10898 {
10899 res = timezone / 60;
10900   ;
10901   return 0;
10902 }
10903 _ACEOF
10904 rm -f conftest.$ac_objext conftest$ac_exeext
10905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10906   (eval $ac_link) 2>&5
10907   ac_status=$?
10908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909   (exit $ac_status); } &&
10910          { ac_try='test -s conftest$ac_exeext'
10911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912   (eval $ac_try) 2>&5
10913   ac_status=$?
10914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915   (exit $ac_status); }; }; then
10916   pgac_cv_var_int_timezone=yes
10917 else
10918   echo "$as_me: failed program was:" >&5
10919 cat conftest.$ac_ext >&5
10920 pgac_cv_var_int_timezone=no
10921 fi
10922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10923 fi
10924 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10925 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10926 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10927
10928 cat >>confdefs.h <<\_ACEOF
10929 #define HAVE_INT_TIMEZONE
10930 _ACEOF
10931
10932 fi
10933 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10934 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10935  if test "${ac_cv_func_accept_return+set}" = set; then
10936   echo $ECHO_N "(cached) $ECHO_C" >&6
10937 else
10938    if test "${ac_cv_func_accept_arg1+set}" = set; then
10939   echo $ECHO_N "(cached) $ECHO_C" >&6
10940 else
10941     if test "${ac_cv_func_accept_arg2+set}" = set; then
10942   echo $ECHO_N "(cached) $ECHO_C" >&6
10943 else
10944      if test "${ac_cv_func_accept_arg3+set}" = set; then
10945   echo $ECHO_N "(cached) $ECHO_C" >&6
10946 else
10947       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
10948       for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10949        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10950         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10951          cat >conftest.$ac_ext <<_ACEOF
10952 #line $LINENO "configure"
10953 #include "confdefs.h"
10954 #ifdef HAVE_SYS_TYPES_H
10955 #include <sys/types.h>
10956 #endif
10957 #ifdef HAVE_SYS_SOCKET_H
10958 #include <sys/socket.h>
10959 #endif
10960 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10961 #ifdef F77_DUMMY_MAIN
10962 #  ifdef __cplusplus
10963      extern "C"
10964 #  endif
10965    int F77_DUMMY_MAIN() { return 1; }
10966 #endif
10967 int
10968 main ()
10969 {
10970
10971   ;
10972   return 0;
10973 }
10974 _ACEOF
10975 rm -f conftest.$ac_objext
10976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10977   (eval $ac_compile) 2>&5
10978   ac_status=$?
10979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980   (exit $ac_status); } &&
10981          { ac_try='test -s conftest.$ac_objext'
10982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10983   (eval $ac_try) 2>&5
10984   ac_status=$?
10985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986   (exit $ac_status); }; }; then
10987   ac_not_found=no; break 4
10988 else
10989   echo "$as_me: failed program was:" >&5
10990 cat conftest.$ac_ext >&5
10991 ac_not_found=yes
10992 fi
10993 rm -f conftest.$ac_objext conftest.$ac_ext
10994        done
10995       done
10996      done
10997     done
10998     if test "$ac_not_found" = yes; then
10999       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
11000 echo "$as_me: error: could not determine argument types" >&2;}
11001    { (exit 1); exit 1; }; }
11002     fi
11003     if test "$ac_cv_func_accept_arg3" = "void"; then
11004       ac_cv_func_accept_arg3=int
11005     fi
11006
11007 fi
11008
11009 fi
11010
11011 fi
11012
11013 fi
11014  echo "$as_me:$LINENO: result: $ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
11015 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
11016
11017 cat >>confdefs.h <<_ACEOF
11018 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
11019 _ACEOF
11020
11021
11022 cat >>confdefs.h <<_ACEOF
11023 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
11024 _ACEOF
11025
11026
11027 cat >>confdefs.h <<_ACEOF
11028 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
11029 _ACEOF
11030
11031
11032 cat >>confdefs.h <<_ACEOF
11033 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
11034 _ACEOF
11035
11036
11037 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
11038 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
11039 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
11040   echo $ECHO_N "(cached) $ECHO_C" >&6
11041 else
11042   cat >conftest.$ac_ext <<_ACEOF
11043 #line $LINENO "configure"
11044 #include "confdefs.h"
11045 #include <sys/time.h>
11046 #ifdef F77_DUMMY_MAIN
11047 #  ifdef __cplusplus
11048      extern "C"
11049 #  endif
11050    int F77_DUMMY_MAIN() { return 1; }
11051 #endif
11052 int
11053 main ()
11054 {
11055 struct timeval *tp;
11056 struct timezone *tzp;
11057 gettimeofday(tp,tzp);
11058   ;
11059   return 0;
11060 }
11061 _ACEOF
11062 rm -f conftest.$ac_objext
11063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11064   (eval $ac_compile) 2>&5
11065   ac_status=$?
11066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067   (exit $ac_status); } &&
11068          { ac_try='test -s conftest.$ac_objext'
11069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11070   (eval $ac_try) 2>&5
11071   ac_status=$?
11072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073   (exit $ac_status); }; }; then
11074   pgac_cv_func_gettimeofday_1arg=no
11075 else
11076   echo "$as_me: failed program was:" >&5
11077 cat conftest.$ac_ext >&5
11078 pgac_cv_func_gettimeofday_1arg=yes
11079 fi
11080 rm -f conftest.$ac_objext conftest.$ac_ext
11081 fi
11082 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
11083 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
11084 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
11085
11086 cat >>confdefs.h <<\_ACEOF
11087 #define GETTIMEOFDAY_1ARG
11088 _ACEOF
11089
11090 fi
11091
11092
11093
11094 # SunOS doesn't handle negative byte comparisons properly with +/- return
11095 echo "$as_me:$LINENO: checking for working memcmp" >&5
11096 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
11097 if test "${ac_cv_func_memcmp_working+set}" = set; then
11098   echo $ECHO_N "(cached) $ECHO_C" >&6
11099 else
11100   if test "$cross_compiling" = yes; then
11101   ac_cv_func_memcmp_working=no
11102 else
11103   cat >conftest.$ac_ext <<_ACEOF
11104 #line $LINENO "configure"
11105 #include "confdefs.h"
11106
11107 #ifdef F77_DUMMY_MAIN
11108 #  ifdef __cplusplus
11109      extern "C"
11110 #  endif
11111    int F77_DUMMY_MAIN() { return 1; }
11112 #endif
11113 int
11114 main ()
11115 {
11116
11117   /* Some versions of memcmp are not 8-bit clean.  */
11118   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11119   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11120     exit (1);
11121
11122   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11123      or more and with at least one buffer not starting on a 4-byte boundary.
11124      William Lewis provided this test program.   */
11125   {
11126     char foo[21];
11127     char bar[21];
11128     int i;
11129     for (i = 0; i < 4; i++)
11130       {
11131         char *a = foo + i;
11132         char *b = bar + i;
11133         strcpy (a, "--------01111111");
11134         strcpy (b, "--------10000000");
11135         if (memcmp (a, b, 16) >= 0)
11136           exit (1);
11137       }
11138     exit (0);
11139   }
11140
11141   ;
11142   return 0;
11143 }
11144 _ACEOF
11145 rm -f conftest$ac_exeext
11146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11147   (eval $ac_link) 2>&5
11148   ac_status=$?
11149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11152   (eval $ac_try) 2>&5
11153   ac_status=$?
11154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155   (exit $ac_status); }; }; then
11156   ac_cv_func_memcmp_working=yes
11157 else
11158   echo "$as_me: program exited with status $ac_status" >&5
11159 echo "$as_me: failed program was:" >&5
11160 cat conftest.$ac_ext >&5
11161 ( exit $ac_status )
11162 ac_cv_func_memcmp_working=no
11163 fi
11164 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11165 fi
11166 fi
11167 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11168 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
11169 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid
11189 do
11190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11191 echo "$as_me:$LINENO: checking for $ac_func" >&5
11192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11193 if eval "test \"\${$as_ac_var+set}\" = set"; then
11194   echo $ECHO_N "(cached) $ECHO_C" >&6
11195 else
11196   cat >conftest.$ac_ext <<_ACEOF
11197 #line $LINENO "configure"
11198 #include "confdefs.h"
11199 /* System header to define __stub macros and hopefully few prototypes,
11200     which can conflict with char $ac_func (); below.  */
11201 #include <assert.h>
11202 /* Override any gcc2 internal prototype to avoid an error.  */
11203 #ifdef __cplusplus
11204 extern "C"
11205 #endif
11206 /* We use char because int might match the return type of a gcc2
11207    builtin and then its argument prototype would still apply.  */
11208 char $ac_func ();
11209 char (*f) ();
11210
11211 #ifdef F77_DUMMY_MAIN
11212 #  ifdef __cplusplus
11213      extern "C"
11214 #  endif
11215    int F77_DUMMY_MAIN() { return 1; }
11216 #endif
11217 int
11218 main ()
11219 {
11220 /* The GNU C library defines this for functions which it implements
11221     to always fail with ENOSYS.  Some functions are actually named
11222     something starting with __ and the normal name is an alias.  */
11223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11224 choke me
11225 #else
11226 f = $ac_func;
11227 #endif
11228
11229   ;
11230   return 0;
11231 }
11232 _ACEOF
11233 rm -f conftest.$ac_objext conftest$ac_exeext
11234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11235   (eval $ac_link) 2>&5
11236   ac_status=$?
11237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238   (exit $ac_status); } &&
11239          { ac_try='test -s conftest$ac_exeext'
11240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241   (eval $ac_try) 2>&5
11242   ac_status=$?
11243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244   (exit $ac_status); }; }; then
11245   eval "$as_ac_var=yes"
11246 else
11247   echo "$as_me: failed program was:" >&5
11248 cat conftest.$ac_ext >&5
11249 eval "$as_ac_var=no"
11250 fi
11251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11252 fi
11253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11254 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11255 if test `eval echo '${'$as_ac_var'}'` = yes; then
11256   cat >>confdefs.h <<_ACEOF
11257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11258 _ACEOF
11259
11260 fi
11261 done
11262
11263
11264 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11265 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11266 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11267   echo $ECHO_N "(cached) $ECHO_C" >&6
11268 else
11269   cat >conftest.$ac_ext <<_ACEOF
11270 #line $LINENO "configure"
11271 #include "confdefs.h"
11272 #include <unistd.h>
11273
11274 #ifdef F77_DUMMY_MAIN
11275 #  ifdef __cplusplus
11276      extern "C"
11277 #  endif
11278    int F77_DUMMY_MAIN() { return 1; }
11279 #endif
11280 int
11281 main ()
11282 {
11283 #ifndef fdatasync
11284   char *p = (char *) fdatasync;
11285 #endif
11286
11287   ;
11288   return 0;
11289 }
11290 _ACEOF
11291 rm -f conftest.$ac_objext
11292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11293   (eval $ac_compile) 2>&5
11294   ac_status=$?
11295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296   (exit $ac_status); } &&
11297          { ac_try='test -s conftest.$ac_objext'
11298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299   (eval $ac_try) 2>&5
11300   ac_status=$?
11301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302   (exit $ac_status); }; }; then
11303   ac_cv_have_decl_fdatasync=yes
11304 else
11305   echo "$as_me: failed program was:" >&5
11306 cat conftest.$ac_ext >&5
11307 ac_cv_have_decl_fdatasync=no
11308 fi
11309 rm -f conftest.$ac_objext conftest.$ac_ext
11310 fi
11311 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11312 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11313 if test $ac_cv_have_decl_fdatasync = yes; then
11314
11315 cat >>confdefs.h <<_ACEOF
11316 #define HAVE_DECL_FDATASYNC 1
11317 _ACEOF
11318
11319
11320 else
11321   cat >>confdefs.h <<_ACEOF
11322 #define HAVE_DECL_FDATASYNC 0
11323 _ACEOF
11324
11325
11326 fi
11327
11328
11329
11330 HAVE_IPV6=no
11331 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11332 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11333 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11334   echo $ECHO_N "(cached) $ECHO_C" >&6
11335 else
11336   cat >conftest.$ac_ext <<_ACEOF
11337 #line $LINENO "configure"
11338 #include "confdefs.h"
11339 $ac_includes_default
11340 #include <netinet/in.h>
11341
11342 #ifdef F77_DUMMY_MAIN
11343 #  ifdef __cplusplus
11344      extern "C"
11345 #  endif
11346    int F77_DUMMY_MAIN() { return 1; }
11347 #endif
11348 int
11349 main ()
11350 {
11351 if ((struct sockaddr_in6 *) 0)
11352   return 0;
11353 if (sizeof (struct sockaddr_in6))
11354   return 0;
11355   ;
11356   return 0;
11357 }
11358 _ACEOF
11359 rm -f conftest.$ac_objext
11360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11361   (eval $ac_compile) 2>&5
11362   ac_status=$?
11363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364   (exit $ac_status); } &&
11365          { ac_try='test -s conftest.$ac_objext'
11366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11367   (eval $ac_try) 2>&5
11368   ac_status=$?
11369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370   (exit $ac_status); }; }; then
11371   ac_cv_type_struct_sockaddr_in6=yes
11372 else
11373   echo "$as_me: failed program was:" >&5
11374 cat conftest.$ac_ext >&5
11375 ac_cv_type_struct_sockaddr_in6=no
11376 fi
11377 rm -f conftest.$ac_objext conftest.$ac_ext
11378 fi
11379 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11380 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11381 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11382   echo "$as_me:$LINENO: checking for inet_ntop" >&5
11383 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11384 if test "${ac_cv_func_inet_ntop+set}" = set; then
11385   echo $ECHO_N "(cached) $ECHO_C" >&6
11386 else
11387   cat >conftest.$ac_ext <<_ACEOF
11388 #line $LINENO "configure"
11389 #include "confdefs.h"
11390 /* System header to define __stub macros and hopefully few prototypes,
11391     which can conflict with char inet_ntop (); below.  */
11392 #include <assert.h>
11393 /* Override any gcc2 internal prototype to avoid an error.  */
11394 #ifdef __cplusplus
11395 extern "C"
11396 #endif
11397 /* We use char because int might match the return type of a gcc2
11398    builtin and then its argument prototype would still apply.  */
11399 char inet_ntop ();
11400 char (*f) ();
11401
11402 #ifdef F77_DUMMY_MAIN
11403 #  ifdef __cplusplus
11404      extern "C"
11405 #  endif
11406    int F77_DUMMY_MAIN() { return 1; }
11407 #endif
11408 int
11409 main ()
11410 {
11411 /* The GNU C library defines this for functions which it implements
11412     to always fail with ENOSYS.  Some functions are actually named
11413     something starting with __ and the normal name is an alias.  */
11414 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11415 choke me
11416 #else
11417 f = inet_ntop;
11418 #endif
11419
11420   ;
11421   return 0;
11422 }
11423 _ACEOF
11424 rm -f conftest.$ac_objext conftest$ac_exeext
11425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11426   (eval $ac_link) 2>&5
11427   ac_status=$?
11428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429   (exit $ac_status); } &&
11430          { ac_try='test -s conftest$ac_exeext'
11431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432   (eval $ac_try) 2>&5
11433   ac_status=$?
11434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435   (exit $ac_status); }; }; then
11436   ac_cv_func_inet_ntop=yes
11437 else
11438   echo "$as_me: failed program was:" >&5
11439 cat conftest.$ac_ext >&5
11440 ac_cv_func_inet_ntop=no
11441 fi
11442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11443 fi
11444 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11445 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11446 if test $ac_cv_func_inet_ntop = yes; then
11447
11448 cat >>confdefs.h <<\_ACEOF
11449 #define HAVE_IPV6 1
11450 _ACEOF
11451
11452                                                           HAVE_IPV6=yes
11453 fi
11454
11455 fi
11456
11457
11458
11459 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11460 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11461 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11462   echo $ECHO_N "(cached) $ECHO_C" >&6
11463 else
11464   cat >conftest.$ac_ext <<_ACEOF
11465 #line $LINENO "configure"
11466 #include "confdefs.h"
11467 #include <machine/vmparam.h>
11468 #include <sys/exec.h>
11469
11470 #ifdef F77_DUMMY_MAIN
11471 #  ifdef __cplusplus
11472      extern "C"
11473 #  endif
11474    int F77_DUMMY_MAIN() { return 1; }
11475 #endif
11476 int
11477 main ()
11478 {
11479 PS_STRINGS->ps_nargvstr = 1;
11480 PS_STRINGS->ps_argvstr = "foo";
11481   ;
11482   return 0;
11483 }
11484 _ACEOF
11485 rm -f conftest.$ac_objext conftest$ac_exeext
11486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11487   (eval $ac_link) 2>&5
11488   ac_status=$?
11489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490   (exit $ac_status); } &&
11491          { ac_try='test -s conftest$ac_exeext'
11492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493   (eval $ac_try) 2>&5
11494   ac_status=$?
11495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496   (exit $ac_status); }; }; then
11497   pgac_cv_var_PS_STRINGS=yes
11498 else
11499   echo "$as_me: failed program was:" >&5
11500 cat conftest.$ac_ext >&5
11501 pgac_cv_var_PS_STRINGS=no
11502 fi
11503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11504 fi
11505 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11506 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11507 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11508
11509 cat >>confdefs.h <<\_ACEOF
11510 #define HAVE_PS_STRINGS
11511 _ACEOF
11512
11513 fi
11514
11515
11516 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11517 # is missing.  Yes, there are machines that have only one.  We may
11518 # also decide to use snprintf.c if snprintf() is present but does not
11519 # have working "long long int" support -- see below.
11520
11521 pgac_need_repl_snprintf=no
11522
11523 for ac_func in snprintf
11524 do
11525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11526 echo "$as_me:$LINENO: checking for $ac_func" >&5
11527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11528 if eval "test \"\${$as_ac_var+set}\" = set"; then
11529   echo $ECHO_N "(cached) $ECHO_C" >&6
11530 else
11531   cat >conftest.$ac_ext <<_ACEOF
11532 #line $LINENO "configure"
11533 #include "confdefs.h"
11534 /* System header to define __stub macros and hopefully few prototypes,
11535     which can conflict with char $ac_func (); below.  */
11536 #include <assert.h>
11537 /* Override any gcc2 internal prototype to avoid an error.  */
11538 #ifdef __cplusplus
11539 extern "C"
11540 #endif
11541 /* We use char because int might match the return type of a gcc2
11542    builtin and then its argument prototype would still apply.  */
11543 char $ac_func ();
11544 char (*f) ();
11545
11546 #ifdef F77_DUMMY_MAIN
11547 #  ifdef __cplusplus
11548      extern "C"
11549 #  endif
11550    int F77_DUMMY_MAIN() { return 1; }
11551 #endif
11552 int
11553 main ()
11554 {
11555 /* The GNU C library defines this for functions which it implements
11556     to always fail with ENOSYS.  Some functions are actually named
11557     something starting with __ and the normal name is an alias.  */
11558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11559 choke me
11560 #else
11561 f = $ac_func;
11562 #endif
11563
11564   ;
11565   return 0;
11566 }
11567 _ACEOF
11568 rm -f conftest.$ac_objext conftest$ac_exeext
11569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11570   (eval $ac_link) 2>&5
11571   ac_status=$?
11572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573   (exit $ac_status); } &&
11574          { ac_try='test -s conftest$ac_exeext'
11575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576   (eval $ac_try) 2>&5
11577   ac_status=$?
11578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579   (exit $ac_status); }; }; then
11580   eval "$as_ac_var=yes"
11581 else
11582   echo "$as_me: failed program was:" >&5
11583 cat conftest.$ac_ext >&5
11584 eval "$as_ac_var=no"
11585 fi
11586 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11587 fi
11588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11589 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11590 if test `eval echo '${'$as_ac_var'}'` = yes; then
11591   cat >>confdefs.h <<_ACEOF
11592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11593 _ACEOF
11594
11595 else
11596   pgac_need_repl_snprintf=yes
11597 fi
11598 done
11599
11600
11601 for ac_func in vsnprintf
11602 do
11603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11604 echo "$as_me:$LINENO: checking for $ac_func" >&5
11605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11606 if eval "test \"\${$as_ac_var+set}\" = set"; then
11607   echo $ECHO_N "(cached) $ECHO_C" >&6
11608 else
11609   cat >conftest.$ac_ext <<_ACEOF
11610 #line $LINENO "configure"
11611 #include "confdefs.h"
11612 /* System header to define __stub macros and hopefully few prototypes,
11613     which can conflict with char $ac_func (); below.  */
11614 #include <assert.h>
11615 /* Override any gcc2 internal prototype to avoid an error.  */
11616 #ifdef __cplusplus
11617 extern "C"
11618 #endif
11619 /* We use char because int might match the return type of a gcc2
11620    builtin and then its argument prototype would still apply.  */
11621 char $ac_func ();
11622 char (*f) ();
11623
11624 #ifdef F77_DUMMY_MAIN
11625 #  ifdef __cplusplus
11626      extern "C"
11627 #  endif
11628    int F77_DUMMY_MAIN() { return 1; }
11629 #endif
11630 int
11631 main ()
11632 {
11633 /* The GNU C library defines this for functions which it implements
11634     to always fail with ENOSYS.  Some functions are actually named
11635     something starting with __ and the normal name is an alias.  */
11636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11637 choke me
11638 #else
11639 f = $ac_func;
11640 #endif
11641
11642   ;
11643   return 0;
11644 }
11645 _ACEOF
11646 rm -f conftest.$ac_objext conftest$ac_exeext
11647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11648   (eval $ac_link) 2>&5
11649   ac_status=$?
11650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651   (exit $ac_status); } &&
11652          { ac_try='test -s conftest$ac_exeext'
11653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11654   (eval $ac_try) 2>&5
11655   ac_status=$?
11656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657   (exit $ac_status); }; }; then
11658   eval "$as_ac_var=yes"
11659 else
11660   echo "$as_me: failed program was:" >&5
11661 cat conftest.$ac_ext >&5
11662 eval "$as_ac_var=no"
11663 fi
11664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11665 fi
11666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11667 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11668 if test `eval echo '${'$as_ac_var'}'` = yes; then
11669   cat >>confdefs.h <<_ACEOF
11670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11671 _ACEOF
11672
11673 else
11674   pgac_need_repl_snprintf=yes
11675 fi
11676 done
11677
11678
11679
11680 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11681 # include/c.h will provide declarations.  Note this is a separate test
11682 # from whether the functions exist in the C library --- there are
11683 # systems that have the functions but don't bother to declare them :-(
11684
11685 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11686 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11687 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11688   echo $ECHO_N "(cached) $ECHO_C" >&6
11689 else
11690   cat >conftest.$ac_ext <<_ACEOF
11691 #line $LINENO "configure"
11692 #include "confdefs.h"
11693 $ac_includes_default
11694 #ifdef F77_DUMMY_MAIN
11695 #  ifdef __cplusplus
11696      extern "C"
11697 #  endif
11698    int F77_DUMMY_MAIN() { return 1; }
11699 #endif
11700 int
11701 main ()
11702 {
11703 #ifndef snprintf
11704   char *p = (char *) snprintf;
11705 #endif
11706
11707   ;
11708   return 0;
11709 }
11710 _ACEOF
11711 rm -f conftest.$ac_objext
11712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11713   (eval $ac_compile) 2>&5
11714   ac_status=$?
11715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716   (exit $ac_status); } &&
11717          { ac_try='test -s conftest.$ac_objext'
11718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719   (eval $ac_try) 2>&5
11720   ac_status=$?
11721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722   (exit $ac_status); }; }; then
11723   ac_cv_have_decl_snprintf=yes
11724 else
11725   echo "$as_me: failed program was:" >&5
11726 cat conftest.$ac_ext >&5
11727 ac_cv_have_decl_snprintf=no
11728 fi
11729 rm -f conftest.$ac_objext conftest.$ac_ext
11730 fi
11731 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11732 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11733 if test $ac_cv_have_decl_snprintf = yes; then
11734
11735 cat >>confdefs.h <<_ACEOF
11736 #define HAVE_DECL_SNPRINTF 1
11737 _ACEOF
11738
11739
11740 else
11741   cat >>confdefs.h <<_ACEOF
11742 #define HAVE_DECL_SNPRINTF 0
11743 _ACEOF
11744
11745
11746 fi
11747 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11748 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11749 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11750   echo $ECHO_N "(cached) $ECHO_C" >&6
11751 else
11752   cat >conftest.$ac_ext <<_ACEOF
11753 #line $LINENO "configure"
11754 #include "confdefs.h"
11755 $ac_includes_default
11756 #ifdef F77_DUMMY_MAIN
11757 #  ifdef __cplusplus
11758      extern "C"
11759 #  endif
11760    int F77_DUMMY_MAIN() { return 1; }
11761 #endif
11762 int
11763 main ()
11764 {
11765 #ifndef vsnprintf
11766   char *p = (char *) vsnprintf;
11767 #endif
11768
11769   ;
11770   return 0;
11771 }
11772 _ACEOF
11773 rm -f conftest.$ac_objext
11774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11775   (eval $ac_compile) 2>&5
11776   ac_status=$?
11777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778   (exit $ac_status); } &&
11779          { ac_try='test -s conftest.$ac_objext'
11780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781   (eval $ac_try) 2>&5
11782   ac_status=$?
11783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784   (exit $ac_status); }; }; then
11785   ac_cv_have_decl_vsnprintf=yes
11786 else
11787   echo "$as_me: failed program was:" >&5
11788 cat conftest.$ac_ext >&5
11789 ac_cv_have_decl_vsnprintf=no
11790 fi
11791 rm -f conftest.$ac_objext conftest.$ac_ext
11792 fi
11793 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11794 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11795 if test $ac_cv_have_decl_vsnprintf = yes; then
11796
11797 cat >>confdefs.h <<_ACEOF
11798 #define HAVE_DECL_VSNPRINTF 1
11799 _ACEOF
11800
11801
11802 else
11803   cat >>confdefs.h <<_ACEOF
11804 #define HAVE_DECL_VSNPRINTF 0
11805 _ACEOF
11806
11807
11808 fi
11809
11810
11811
11812
11813 # do this one the hard way in case isinf() is a macro
11814 echo "$as_me:$LINENO: checking for isinf" >&5
11815 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11816 if test "${ac_cv_func_isinf+set}" = set; then
11817   echo $ECHO_N "(cached) $ECHO_C" >&6
11818 else
11819   cat >conftest.$ac_ext <<_ACEOF
11820 #line $LINENO "configure"
11821 #include "confdefs.h"
11822 #include <math.h>
11823
11824 #ifdef F77_DUMMY_MAIN
11825 #  ifdef __cplusplus
11826      extern "C"
11827 #  endif
11828    int F77_DUMMY_MAIN() { return 1; }
11829 #endif
11830 int
11831 main ()
11832 {
11833 double x = 0.0; int res = isinf(x);
11834   ;
11835   return 0;
11836 }
11837 _ACEOF
11838 rm -f conftest.$ac_objext conftest$ac_exeext
11839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11840   (eval $ac_link) 2>&5
11841   ac_status=$?
11842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843   (exit $ac_status); } &&
11844          { ac_try='test -s conftest$ac_exeext'
11845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11846   (eval $ac_try) 2>&5
11847   ac_status=$?
11848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849   (exit $ac_status); }; }; then
11850   ac_cv_func_isinf=yes
11851 else
11852   echo "$as_me: failed program was:" >&5
11853 cat conftest.$ac_ext >&5
11854 ac_cv_func_isinf=no
11855 fi
11856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11857 fi
11858 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11859 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11860
11861 if test $ac_cv_func_isinf = yes ; then
11862
11863 cat >>confdefs.h <<\_ACEOF
11864 #define HAVE_ISINF 1
11865 _ACEOF
11866
11867 else
11868   LIBOBJS="$LIBOBJS isinf.$ac_objext"
11869   # Look for a way to implement a substitute for isinf()
11870
11871
11872
11873
11874 for ac_func in fpclass fp_class fp_class_d class
11875 do
11876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11877 echo "$as_me:$LINENO: checking for $ac_func" >&5
11878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11879 if eval "test \"\${$as_ac_var+set}\" = set"; then
11880   echo $ECHO_N "(cached) $ECHO_C" >&6
11881 else
11882   cat >conftest.$ac_ext <<_ACEOF
11883 #line $LINENO "configure"
11884 #include "confdefs.h"
11885 /* System header to define __stub macros and hopefully few prototypes,
11886     which can conflict with char $ac_func (); below.  */
11887 #include <assert.h>
11888 /* Override any gcc2 internal prototype to avoid an error.  */
11889 #ifdef __cplusplus
11890 extern "C"
11891 #endif
11892 /* We use char because int might match the return type of a gcc2
11893    builtin and then its argument prototype would still apply.  */
11894 char $ac_func ();
11895 char (*f) ();
11896
11897 #ifdef F77_DUMMY_MAIN
11898 #  ifdef __cplusplus
11899      extern "C"
11900 #  endif
11901    int F77_DUMMY_MAIN() { return 1; }
11902 #endif
11903 int
11904 main ()
11905 {
11906 /* The GNU C library defines this for functions which it implements
11907     to always fail with ENOSYS.  Some functions are actually named
11908     something starting with __ and the normal name is an alias.  */
11909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11910 choke me
11911 #else
11912 f = $ac_func;
11913 #endif
11914
11915   ;
11916   return 0;
11917 }
11918 _ACEOF
11919 rm -f conftest.$ac_objext conftest$ac_exeext
11920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11921   (eval $ac_link) 2>&5
11922   ac_status=$?
11923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924   (exit $ac_status); } &&
11925          { ac_try='test -s conftest$ac_exeext'
11926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927   (eval $ac_try) 2>&5
11928   ac_status=$?
11929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930   (exit $ac_status); }; }; then
11931   eval "$as_ac_var=yes"
11932 else
11933   echo "$as_me: failed program was:" >&5
11934 cat conftest.$ac_ext >&5
11935 eval "$as_ac_var=no"
11936 fi
11937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11938 fi
11939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11940 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11941 if test `eval echo '${'$as_ac_var'}'` = yes; then
11942   cat >>confdefs.h <<_ACEOF
11943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11944 _ACEOF
11945  break
11946 fi
11947 done
11948
11949 fi
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strcasecmp strdup strerror strtol strtoul
11965 do
11966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11967 echo "$as_me:$LINENO: checking for $ac_func" >&5
11968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11969 if eval "test \"\${$as_ac_var+set}\" = set"; then
11970   echo $ECHO_N "(cached) $ECHO_C" >&6
11971 else
11972   cat >conftest.$ac_ext <<_ACEOF
11973 #line $LINENO "configure"
11974 #include "confdefs.h"
11975 /* System header to define __stub macros and hopefully few prototypes,
11976     which can conflict with char $ac_func (); below.  */
11977 #include <assert.h>
11978 /* Override any gcc2 internal prototype to avoid an error.  */
11979 #ifdef __cplusplus
11980 extern "C"
11981 #endif
11982 /* We use char because int might match the return type of a gcc2
11983    builtin and then its argument prototype would still apply.  */
11984 char $ac_func ();
11985 char (*f) ();
11986
11987 #ifdef F77_DUMMY_MAIN
11988 #  ifdef __cplusplus
11989      extern "C"
11990 #  endif
11991    int F77_DUMMY_MAIN() { return 1; }
11992 #endif
11993 int
11994 main ()
11995 {
11996 /* The GNU C library defines this for functions which it implements
11997     to always fail with ENOSYS.  Some functions are actually named
11998     something starting with __ and the normal name is an alias.  */
11999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12000 choke me
12001 #else
12002 f = $ac_func;
12003 #endif
12004
12005   ;
12006   return 0;
12007 }
12008 _ACEOF
12009 rm -f conftest.$ac_objext conftest$ac_exeext
12010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12011   (eval $ac_link) 2>&5
12012   ac_status=$?
12013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014   (exit $ac_status); } &&
12015          { ac_try='test -s conftest$ac_exeext'
12016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017   (eval $ac_try) 2>&5
12018   ac_status=$?
12019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020   (exit $ac_status); }; }; then
12021   eval "$as_ac_var=yes"
12022 else
12023   echo "$as_me: failed program was:" >&5
12024 cat conftest.$ac_ext >&5
12025 eval "$as_ac_var=no"
12026 fi
12027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12028 fi
12029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12030 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12031 if test `eval echo '${'$as_ac_var'}'` = yes; then
12032   cat >>confdefs.h <<_ACEOF
12033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12034 _ACEOF
12035
12036 else
12037   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12038 fi
12039 done
12040
12041
12042
12043 # system's version of getaddrinfo(), if any, may be used only if we found
12044 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
12045 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
12046
12047 for ac_func in getaddrinfo
12048 do
12049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12050 echo "$as_me:$LINENO: checking for $ac_func" >&5
12051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12052 if eval "test \"\${$as_ac_var+set}\" = set"; then
12053   echo $ECHO_N "(cached) $ECHO_C" >&6
12054 else
12055   cat >conftest.$ac_ext <<_ACEOF
12056 #line $LINENO "configure"
12057 #include "confdefs.h"
12058 /* System header to define __stub macros and hopefully few prototypes,
12059     which can conflict with char $ac_func (); below.  */
12060 #include <assert.h>
12061 /* Override any gcc2 internal prototype to avoid an error.  */
12062 #ifdef __cplusplus
12063 extern "C"
12064 #endif
12065 /* We use char because int might match the return type of a gcc2
12066    builtin and then its argument prototype would still apply.  */
12067 char $ac_func ();
12068 char (*f) ();
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 /* The GNU C library defines this for functions which it implements
12080     to always fail with ENOSYS.  Some functions are actually named
12081     something starting with __ and the normal name is an alias.  */
12082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12083 choke me
12084 #else
12085 f = $ac_func;
12086 #endif
12087
12088   ;
12089   return 0;
12090 }
12091 _ACEOF
12092 rm -f conftest.$ac_objext conftest$ac_exeext
12093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12094   (eval $ac_link) 2>&5
12095   ac_status=$?
12096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097   (exit $ac_status); } &&
12098          { ac_try='test -s conftest$ac_exeext'
12099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100   (eval $ac_try) 2>&5
12101   ac_status=$?
12102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103   (exit $ac_status); }; }; then
12104   eval "$as_ac_var=yes"
12105 else
12106   echo "$as_me: failed program was:" >&5
12107 cat conftest.$ac_ext >&5
12108 eval "$as_ac_var=no"
12109 fi
12110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12111 fi
12112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12113 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12114 if test `eval echo '${'$as_ac_var'}'` = yes; then
12115   cat >>confdefs.h <<_ACEOF
12116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12117 _ACEOF
12118
12119 else
12120   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12121 fi
12122 done
12123
12124
12125 else
12126   LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
12127 fi
12128
12129 # similarly, use system's getopt_long() only if system provides struct option.
12130 if test x"$ac_cv_type_struct_option" = xyes ; then
12131
12132 for ac_func in getopt_long
12133 do
12134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12135 echo "$as_me:$LINENO: checking for $ac_func" >&5
12136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12137 if eval "test \"\${$as_ac_var+set}\" = set"; then
12138   echo $ECHO_N "(cached) $ECHO_C" >&6
12139 else
12140   cat >conftest.$ac_ext <<_ACEOF
12141 #line $LINENO "configure"
12142 #include "confdefs.h"
12143 /* System header to define __stub macros and hopefully few prototypes,
12144     which can conflict with char $ac_func (); below.  */
12145 #include <assert.h>
12146 /* Override any gcc2 internal prototype to avoid an error.  */
12147 #ifdef __cplusplus
12148 extern "C"
12149 #endif
12150 /* We use char because int might match the return type of a gcc2
12151    builtin and then its argument prototype would still apply.  */
12152 char $ac_func ();
12153 char (*f) ();
12154
12155 #ifdef F77_DUMMY_MAIN
12156 #  ifdef __cplusplus
12157      extern "C"
12158 #  endif
12159    int F77_DUMMY_MAIN() { return 1; }
12160 #endif
12161 int
12162 main ()
12163 {
12164 /* The GNU C library defines this for functions which it implements
12165     to always fail with ENOSYS.  Some functions are actually named
12166     something starting with __ and the normal name is an alias.  */
12167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12168 choke me
12169 #else
12170 f = $ac_func;
12171 #endif
12172
12173   ;
12174   return 0;
12175 }
12176 _ACEOF
12177 rm -f conftest.$ac_objext conftest$ac_exeext
12178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12179   (eval $ac_link) 2>&5
12180   ac_status=$?
12181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182   (exit $ac_status); } &&
12183          { ac_try='test -s conftest$ac_exeext'
12184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12185   (eval $ac_try) 2>&5
12186   ac_status=$?
12187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188   (exit $ac_status); }; }; then
12189   eval "$as_ac_var=yes"
12190 else
12191   echo "$as_me: failed program was:" >&5
12192 cat conftest.$ac_ext >&5
12193 eval "$as_ac_var=no"
12194 fi
12195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12196 fi
12197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12198 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12199 if test `eval echo '${'$as_ac_var'}'` = yes; then
12200   cat >>confdefs.h <<_ACEOF
12201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12202 _ACEOF
12203
12204 else
12205   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12206 fi
12207 done
12208
12209
12210 else
12211   LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12212 fi
12213
12214 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
12215 # We override the previous test that said fseeko/ftello didn't exist
12216 # OS tests are also done in include/c.h and port/fseeko.c
12217 case $host_os in bsdi*|netbsd*)
12218 ac_cv_func_fseeko=yes
12219 esac
12220
12221 # Solaris has a very slow qsort in certain cases, so we replace it.
12222 case $host_os in solaris*)
12223 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
12224 esac
12225
12226 # Win32 can't to rename or unlink on an open file
12227 case $host_os in mingw*)
12228 LIBOBJS="$LIBOBJS dirmod.$ac_objext"
12229 LIBOBJS="$LIBOBJS copydir.$ac_objext"
12230 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
12231 LIBOBJS="$LIBOBJS pipe.$ac_objext" ;;
12232 esac
12233
12234 if test "$with_readline" = yes; then
12235   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12236 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12237 cat >conftest.$ac_ext <<_ACEOF
12238 #line $LINENO "configure"
12239 #include "confdefs.h"
12240 #include <stdio.h>
12241 #ifdef HAVE_READLINE_READLINE_H
12242 # include <readline/readline.h>
12243 #elif defined(HAVE_READLINE_H)
12244 # include <readline.h>
12245 #endif
12246
12247 #ifdef F77_DUMMY_MAIN
12248 #  ifdef __cplusplus
12249      extern "C"
12250 #  endif
12251    int F77_DUMMY_MAIN() { return 1; }
12252 #endif
12253 int
12254 main ()
12255 {
12256 rl_completion_append_character = 'x';
12257   ;
12258   return 0;
12259 }
12260 _ACEOF
12261 rm -f conftest.$ac_objext conftest$ac_exeext
12262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12263   (eval $ac_link) 2>&5
12264   ac_status=$?
12265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266   (exit $ac_status); } &&
12267          { ac_try='test -s conftest$ac_exeext'
12268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269   (eval $ac_try) 2>&5
12270   ac_status=$?
12271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272   (exit $ac_status); }; }; then
12273   echo "$as_me:$LINENO: result: yes" >&5
12274 echo "${ECHO_T}yes" >&6
12275
12276 cat >>confdefs.h <<\_ACEOF
12277 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12278 _ACEOF
12279
12280 else
12281   echo "$as_me: failed program was:" >&5
12282 cat conftest.$ac_ext >&5
12283 echo "$as_me:$LINENO: result: no" >&5
12284 echo "${ECHO_T}no" >&6
12285 fi
12286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12287
12288
12289 for ac_func in rl_completion_matches rl_filename_completion_function
12290 do
12291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12292 echo "$as_me:$LINENO: checking for $ac_func" >&5
12293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12294 if eval "test \"\${$as_ac_var+set}\" = set"; then
12295   echo $ECHO_N "(cached) $ECHO_C" >&6
12296 else
12297   cat >conftest.$ac_ext <<_ACEOF
12298 #line $LINENO "configure"
12299 #include "confdefs.h"
12300 /* System header to define __stub macros and hopefully few prototypes,
12301     which can conflict with char $ac_func (); below.  */
12302 #include <assert.h>
12303 /* Override any gcc2 internal prototype to avoid an error.  */
12304 #ifdef __cplusplus
12305 extern "C"
12306 #endif
12307 /* We use char because int might match the return type of a gcc2
12308    builtin and then its argument prototype would still apply.  */
12309 char $ac_func ();
12310 char (*f) ();
12311
12312 #ifdef F77_DUMMY_MAIN
12313 #  ifdef __cplusplus
12314      extern "C"
12315 #  endif
12316    int F77_DUMMY_MAIN() { return 1; }
12317 #endif
12318 int
12319 main ()
12320 {
12321 /* The GNU C library defines this for functions which it implements
12322     to always fail with ENOSYS.  Some functions are actually named
12323     something starting with __ and the normal name is an alias.  */
12324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12325 choke me
12326 #else
12327 f = $ac_func;
12328 #endif
12329
12330   ;
12331   return 0;
12332 }
12333 _ACEOF
12334 rm -f conftest.$ac_objext conftest$ac_exeext
12335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12336   (eval $ac_link) 2>&5
12337   ac_status=$?
12338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339   (exit $ac_status); } &&
12340          { ac_try='test -s conftest$ac_exeext'
12341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342   (eval $ac_try) 2>&5
12343   ac_status=$?
12344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345   (exit $ac_status); }; }; then
12346   eval "$as_ac_var=yes"
12347 else
12348   echo "$as_me: failed program was:" >&5
12349 cat conftest.$ac_ext >&5
12350 eval "$as_ac_var=no"
12351 fi
12352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12353 fi
12354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12356 if test `eval echo '${'$as_ac_var'}'` = yes; then
12357   cat >>confdefs.h <<_ACEOF
12358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12359 _ACEOF
12360
12361 fi
12362 done
12363
12364
12365 for ac_func in replace_history_entry
12366 do
12367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12368 echo "$as_me:$LINENO: checking for $ac_func" >&5
12369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12370 if eval "test \"\${$as_ac_var+set}\" = set"; then
12371   echo $ECHO_N "(cached) $ECHO_C" >&6
12372 else
12373   cat >conftest.$ac_ext <<_ACEOF
12374 #line $LINENO "configure"
12375 #include "confdefs.h"
12376 /* System header to define __stub macros and hopefully few prototypes,
12377     which can conflict with char $ac_func (); below.  */
12378 #include <assert.h>
12379 /* Override any gcc2 internal prototype to avoid an error.  */
12380 #ifdef __cplusplus
12381 extern "C"
12382 #endif
12383 /* We use char because int might match the return type of a gcc2
12384    builtin and then its argument prototype would still apply.  */
12385 char $ac_func ();
12386 char (*f) ();
12387
12388 #ifdef F77_DUMMY_MAIN
12389 #  ifdef __cplusplus
12390      extern "C"
12391 #  endif
12392    int F77_DUMMY_MAIN() { return 1; }
12393 #endif
12394 int
12395 main ()
12396 {
12397 /* The GNU C library defines this for functions which it implements
12398     to always fail with ENOSYS.  Some functions are actually named
12399     something starting with __ and the normal name is an alias.  */
12400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12401 choke me
12402 #else
12403 f = $ac_func;
12404 #endif
12405
12406   ;
12407   return 0;
12408 }
12409 _ACEOF
12410 rm -f conftest.$ac_objext conftest$ac_exeext
12411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12412   (eval $ac_link) 2>&5
12413   ac_status=$?
12414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415   (exit $ac_status); } &&
12416          { ac_try='test -s conftest$ac_exeext'
12417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418   (eval $ac_try) 2>&5
12419   ac_status=$?
12420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421   (exit $ac_status); }; }; then
12422   eval "$as_ac_var=yes"
12423 else
12424   echo "$as_me: failed program was:" >&5
12425 cat conftest.$ac_ext >&5
12426 eval "$as_ac_var=no"
12427 fi
12428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12429 fi
12430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12431 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12432 if test `eval echo '${'$as_ac_var'}'` = yes; then
12433   cat >>confdefs.h <<_ACEOF
12434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12435 _ACEOF
12436
12437 fi
12438 done
12439
12440 fi
12441
12442
12443 echo "$as_me:$LINENO: checking for finite" >&5
12444 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12445 cat >conftest.$ac_ext <<_ACEOF
12446 #line $LINENO "configure"
12447 #include "confdefs.h"
12448 #include <math.h>
12449 #ifdef F77_DUMMY_MAIN
12450 #  ifdef __cplusplus
12451      extern "C"
12452 #  endif
12453    int F77_DUMMY_MAIN() { return 1; }
12454 #endif
12455 int
12456 main ()
12457 {
12458 int dummy=finite(1.0);
12459   ;
12460   return 0;
12461 }
12462 _ACEOF
12463 rm -f conftest.$ac_objext conftest$ac_exeext
12464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12465   (eval $ac_link) 2>&5
12466   ac_status=$?
12467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468   (exit $ac_status); } &&
12469          { ac_try='test -s conftest$ac_exeext'
12470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471   (eval $ac_try) 2>&5
12472   ac_status=$?
12473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474   (exit $ac_status); }; }; then
12475
12476 cat >>confdefs.h <<\_ACEOF
12477 #define HAVE_FINITE 1
12478 _ACEOF
12479
12480 echo "$as_me:$LINENO: result: yes" >&5
12481 echo "${ECHO_T}yes" >&6
12482 else
12483   echo "$as_me: failed program was:" >&5
12484 cat conftest.$ac_ext >&5
12485 echo "$as_me:$LINENO: result: no" >&5
12486 echo "${ECHO_T}no" >&6
12487 fi
12488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12489
12490 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12491 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12492 cat >conftest.$ac_ext <<_ACEOF
12493 #line $LINENO "configure"
12494 #include "confdefs.h"
12495 #include <setjmp.h>
12496 #ifdef F77_DUMMY_MAIN
12497 #  ifdef __cplusplus
12498      extern "C"
12499 #  endif
12500    int F77_DUMMY_MAIN() { return 1; }
12501 #endif
12502 int
12503 main ()
12504 {
12505 sigjmp_buf x; sigsetjmp(x, 1);
12506   ;
12507   return 0;
12508 }
12509 _ACEOF
12510 rm -f conftest.$ac_objext conftest$ac_exeext
12511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12512   (eval $ac_link) 2>&5
12513   ac_status=$?
12514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515   (exit $ac_status); } &&
12516          { ac_try='test -s conftest$ac_exeext'
12517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518   (eval $ac_try) 2>&5
12519   ac_status=$?
12520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521   (exit $ac_status); }; }; then
12522
12523 cat >>confdefs.h <<\_ACEOF
12524 #define HAVE_SIGSETJMP 1
12525 _ACEOF
12526
12527 echo "$as_me:$LINENO: result: yes" >&5
12528 echo "${ECHO_T}yes" >&6
12529 else
12530   echo "$as_me: failed program was:" >&5
12531 cat conftest.$ac_ext >&5
12532 echo "$as_me:$LINENO: result: no" >&5
12533 echo "${ECHO_T}no" >&6
12534 fi
12535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12536
12537 echo "$as_me:$LINENO: checking for syslog" >&5
12538 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12539 if test "${ac_cv_func_syslog+set}" = set; then
12540   echo $ECHO_N "(cached) $ECHO_C" >&6
12541 else
12542   cat >conftest.$ac_ext <<_ACEOF
12543 #line $LINENO "configure"
12544 #include "confdefs.h"
12545 /* System header to define __stub macros and hopefully few prototypes,
12546     which can conflict with char syslog (); below.  */
12547 #include <assert.h>
12548 /* Override any gcc2 internal prototype to avoid an error.  */
12549 #ifdef __cplusplus
12550 extern "C"
12551 #endif
12552 /* We use char because int might match the return type of a gcc2
12553    builtin and then its argument prototype would still apply.  */
12554 char syslog ();
12555 char (*f) ();
12556
12557 #ifdef F77_DUMMY_MAIN
12558 #  ifdef __cplusplus
12559      extern "C"
12560 #  endif
12561    int F77_DUMMY_MAIN() { return 1; }
12562 #endif
12563 int
12564 main ()
12565 {
12566 /* The GNU C library defines this for functions which it implements
12567     to always fail with ENOSYS.  Some functions are actually named
12568     something starting with __ and the normal name is an alias.  */
12569 #if defined (__stub_syslog) || defined (__stub___syslog)
12570 choke me
12571 #else
12572 f = syslog;
12573 #endif
12574
12575   ;
12576   return 0;
12577 }
12578 _ACEOF
12579 rm -f conftest.$ac_objext conftest$ac_exeext
12580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12581   (eval $ac_link) 2>&5
12582   ac_status=$?
12583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584   (exit $ac_status); } &&
12585          { ac_try='test -s conftest$ac_exeext'
12586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587   (eval $ac_try) 2>&5
12588   ac_status=$?
12589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590   (exit $ac_status); }; }; then
12591   ac_cv_func_syslog=yes
12592 else
12593   echo "$as_me: failed program was:" >&5
12594 cat conftest.$ac_ext >&5
12595 ac_cv_func_syslog=no
12596 fi
12597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12598 fi
12599 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12600 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12601 if test $ac_cv_func_syslog = yes; then
12602   if test "${ac_cv_header_syslog_h+set}" = set; then
12603   echo "$as_me:$LINENO: checking for syslog.h" >&5
12604 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12605 if test "${ac_cv_header_syslog_h+set}" = set; then
12606   echo $ECHO_N "(cached) $ECHO_C" >&6
12607 fi
12608 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12609 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12610 else
12611   # Is the header compilable?
12612 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12613 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12614 cat >conftest.$ac_ext <<_ACEOF
12615 #line $LINENO "configure"
12616 #include "confdefs.h"
12617 $ac_includes_default
12618 #include <syslog.h>
12619 _ACEOF
12620 rm -f conftest.$ac_objext
12621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12622   (eval $ac_compile) 2>&5
12623   ac_status=$?
12624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625   (exit $ac_status); } &&
12626          { ac_try='test -s conftest.$ac_objext'
12627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628   (eval $ac_try) 2>&5
12629   ac_status=$?
12630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631   (exit $ac_status); }; }; then
12632   ac_header_compiler=yes
12633 else
12634   echo "$as_me: failed program was:" >&5
12635 cat conftest.$ac_ext >&5
12636 ac_header_compiler=no
12637 fi
12638 rm -f conftest.$ac_objext conftest.$ac_ext
12639 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12640 echo "${ECHO_T}$ac_header_compiler" >&6
12641
12642 # Is the header present?
12643 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12644 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12645 cat >conftest.$ac_ext <<_ACEOF
12646 #line $LINENO "configure"
12647 #include "confdefs.h"
12648 #include <syslog.h>
12649 _ACEOF
12650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12651   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12652   ac_status=$?
12653   egrep -v '^ *\+' conftest.er1 >conftest.err
12654   rm -f conftest.er1
12655   cat conftest.err >&5
12656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657   (exit $ac_status); } >/dev/null; then
12658   if test -s conftest.err; then
12659     ac_cpp_err=$ac_c_preproc_warn_flag
12660   else
12661     ac_cpp_err=
12662   fi
12663 else
12664   ac_cpp_err=yes
12665 fi
12666 if test -z "$ac_cpp_err"; then
12667   ac_header_preproc=yes
12668 else
12669   echo "$as_me: failed program was:" >&5
12670   cat conftest.$ac_ext >&5
12671   ac_header_preproc=no
12672 fi
12673 rm -f conftest.err conftest.$ac_ext
12674 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12675 echo "${ECHO_T}$ac_header_preproc" >&6
12676
12677 # So?  What about this header?
12678 case $ac_header_compiler:$ac_header_preproc in
12679   yes:no )
12680     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12681 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12682     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12683 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12684   no:yes )
12685     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12686 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12687     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12688 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12689     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12690 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12691 esac
12692 echo "$as_me:$LINENO: checking for syslog.h" >&5
12693 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12694 if test "${ac_cv_header_syslog_h+set}" = set; then
12695   echo $ECHO_N "(cached) $ECHO_C" >&6
12696 else
12697   ac_cv_header_syslog_h=$ac_header_preproc
12698 fi
12699 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12700 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12701
12702 fi
12703 if test $ac_cv_header_syslog_h = yes; then
12704
12705 cat >>confdefs.h <<\_ACEOF
12706 #define HAVE_SYSLOG 1
12707 _ACEOF
12708
12709 fi
12710
12711
12712 fi
12713
12714
12715 echo "$as_me:$LINENO: checking for optreset" >&5
12716 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12717 if test "${pgac_cv_var_int_optreset+set}" = set; then
12718   echo $ECHO_N "(cached) $ECHO_C" >&6
12719 else
12720   cat >conftest.$ac_ext <<_ACEOF
12721 #line $LINENO "configure"
12722 #include "confdefs.h"
12723 #include <unistd.h>
12724 #ifdef F77_DUMMY_MAIN
12725 #  ifdef __cplusplus
12726      extern "C"
12727 #  endif
12728    int F77_DUMMY_MAIN() { return 1; }
12729 #endif
12730 int
12731 main ()
12732 {
12733 extern int optreset; optreset = 1;
12734   ;
12735   return 0;
12736 }
12737 _ACEOF
12738 rm -f conftest.$ac_objext conftest$ac_exeext
12739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12740   (eval $ac_link) 2>&5
12741   ac_status=$?
12742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743   (exit $ac_status); } &&
12744          { ac_try='test -s conftest$ac_exeext'
12745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12746   (eval $ac_try) 2>&5
12747   ac_status=$?
12748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749   (exit $ac_status); }; }; then
12750   pgac_cv_var_int_optreset=yes
12751 else
12752   echo "$as_me: failed program was:" >&5
12753 cat conftest.$ac_ext >&5
12754 pgac_cv_var_int_optreset=no
12755 fi
12756 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12757 fi
12758 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12759 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12760 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12761
12762 cat >>confdefs.h <<\_ACEOF
12763 #define HAVE_INT_OPTRESET 1
12764 _ACEOF
12765
12766 fi
12767
12768
12769
12770 for ac_func in strtoll strtoq
12771 do
12772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12773 echo "$as_me:$LINENO: checking for $ac_func" >&5
12774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12775 if eval "test \"\${$as_ac_var+set}\" = set"; then
12776   echo $ECHO_N "(cached) $ECHO_C" >&6
12777 else
12778   cat >conftest.$ac_ext <<_ACEOF
12779 #line $LINENO "configure"
12780 #include "confdefs.h"
12781 /* System header to define __stub macros and hopefully few prototypes,
12782     which can conflict with char $ac_func (); below.  */
12783 #include <assert.h>
12784 /* Override any gcc2 internal prototype to avoid an error.  */
12785 #ifdef __cplusplus
12786 extern "C"
12787 #endif
12788 /* We use char because int might match the return type of a gcc2
12789    builtin and then its argument prototype would still apply.  */
12790 char $ac_func ();
12791 char (*f) ();
12792
12793 #ifdef F77_DUMMY_MAIN
12794 #  ifdef __cplusplus
12795      extern "C"
12796 #  endif
12797    int F77_DUMMY_MAIN() { return 1; }
12798 #endif
12799 int
12800 main ()
12801 {
12802 /* The GNU C library defines this for functions which it implements
12803     to always fail with ENOSYS.  Some functions are actually named
12804     something starting with __ and the normal name is an alias.  */
12805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12806 choke me
12807 #else
12808 f = $ac_func;
12809 #endif
12810
12811   ;
12812   return 0;
12813 }
12814 _ACEOF
12815 rm -f conftest.$ac_objext conftest$ac_exeext
12816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12817   (eval $ac_link) 2>&5
12818   ac_status=$?
12819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820   (exit $ac_status); } &&
12821          { ac_try='test -s conftest$ac_exeext'
12822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12823   (eval $ac_try) 2>&5
12824   ac_status=$?
12825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826   (exit $ac_status); }; }; then
12827   eval "$as_ac_var=yes"
12828 else
12829   echo "$as_me: failed program was:" >&5
12830 cat conftest.$ac_ext >&5
12831 eval "$as_ac_var=no"
12832 fi
12833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12834 fi
12835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12837 if test `eval echo '${'$as_ac_var'}'` = yes; then
12838   cat >>confdefs.h <<_ACEOF
12839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12840 _ACEOF
12841  break
12842 fi
12843 done
12844
12845
12846
12847 for ac_func in strtoull strtouq
12848 do
12849 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12850 echo "$as_me:$LINENO: checking for $ac_func" >&5
12851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12852 if eval "test \"\${$as_ac_var+set}\" = set"; then
12853   echo $ECHO_N "(cached) $ECHO_C" >&6
12854 else
12855   cat >conftest.$ac_ext <<_ACEOF
12856 #line $LINENO "configure"
12857 #include "confdefs.h"
12858 /* System header to define __stub macros and hopefully few prototypes,
12859     which can conflict with char $ac_func (); below.  */
12860 #include <assert.h>
12861 /* Override any gcc2 internal prototype to avoid an error.  */
12862 #ifdef __cplusplus
12863 extern "C"
12864 #endif
12865 /* We use char because int might match the return type of a gcc2
12866    builtin and then its argument prototype would still apply.  */
12867 char $ac_func ();
12868 char (*f) ();
12869
12870 #ifdef F77_DUMMY_MAIN
12871 #  ifdef __cplusplus
12872      extern "C"
12873 #  endif
12874    int F77_DUMMY_MAIN() { return 1; }
12875 #endif
12876 int
12877 main ()
12878 {
12879 /* The GNU C library defines this for functions which it implements
12880     to always fail with ENOSYS.  Some functions are actually named
12881     something starting with __ and the normal name is an alias.  */
12882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12883 choke me
12884 #else
12885 f = $ac_func;
12886 #endif
12887
12888   ;
12889   return 0;
12890 }
12891 _ACEOF
12892 rm -f conftest.$ac_objext conftest$ac_exeext
12893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12894   (eval $ac_link) 2>&5
12895   ac_status=$?
12896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897   (exit $ac_status); } &&
12898          { ac_try='test -s conftest$ac_exeext'
12899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900   (eval $ac_try) 2>&5
12901   ac_status=$?
12902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903   (exit $ac_status); }; }; then
12904   eval "$as_ac_var=yes"
12905 else
12906   echo "$as_me: failed program was:" >&5
12907 cat conftest.$ac_ext >&5
12908 eval "$as_ac_var=no"
12909 fi
12910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12911 fi
12912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12913 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12914 if test `eval echo '${'$as_ac_var'}'` = yes; then
12915   cat >>confdefs.h <<_ACEOF
12916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12917 _ACEOF
12918  break
12919 fi
12920 done
12921
12922
12923 # Check for one of atexit() or on_exit()
12924
12925 for ac_func in atexit
12926 do
12927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12928 echo "$as_me:$LINENO: checking for $ac_func" >&5
12929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12930 if eval "test \"\${$as_ac_var+set}\" = set"; then
12931   echo $ECHO_N "(cached) $ECHO_C" >&6
12932 else
12933   cat >conftest.$ac_ext <<_ACEOF
12934 #line $LINENO "configure"
12935 #include "confdefs.h"
12936 /* System header to define __stub macros and hopefully few prototypes,
12937     which can conflict with char $ac_func (); below.  */
12938 #include <assert.h>
12939 /* Override any gcc2 internal prototype to avoid an error.  */
12940 #ifdef __cplusplus
12941 extern "C"
12942 #endif
12943 /* We use char because int might match the return type of a gcc2
12944    builtin and then its argument prototype would still apply.  */
12945 char $ac_func ();
12946 char (*f) ();
12947
12948 #ifdef F77_DUMMY_MAIN
12949 #  ifdef __cplusplus
12950      extern "C"
12951 #  endif
12952    int F77_DUMMY_MAIN() { return 1; }
12953 #endif
12954 int
12955 main ()
12956 {
12957 /* The GNU C library defines this for functions which it implements
12958     to always fail with ENOSYS.  Some functions are actually named
12959     something starting with __ and the normal name is an alias.  */
12960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12961 choke me
12962 #else
12963 f = $ac_func;
12964 #endif
12965
12966   ;
12967   return 0;
12968 }
12969 _ACEOF
12970 rm -f conftest.$ac_objext conftest$ac_exeext
12971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12972   (eval $ac_link) 2>&5
12973   ac_status=$?
12974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975   (exit $ac_status); } &&
12976          { ac_try='test -s conftest$ac_exeext'
12977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12978   (eval $ac_try) 2>&5
12979   ac_status=$?
12980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981   (exit $ac_status); }; }; then
12982   eval "$as_ac_var=yes"
12983 else
12984   echo "$as_me: failed program was:" >&5
12985 cat conftest.$ac_ext >&5
12986 eval "$as_ac_var=no"
12987 fi
12988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12989 fi
12990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12991 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12992 if test `eval echo '${'$as_ac_var'}'` = yes; then
12993   cat >>confdefs.h <<_ACEOF
12994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12995 _ACEOF
12996
12997 else
12998
12999 for ac_func in on_exit
13000 do
13001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13002 echo "$as_me:$LINENO: checking for $ac_func" >&5
13003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13004 if eval "test \"\${$as_ac_var+set}\" = set"; then
13005   echo $ECHO_N "(cached) $ECHO_C" >&6
13006 else
13007   cat >conftest.$ac_ext <<_ACEOF
13008 #line $LINENO "configure"
13009 #include "confdefs.h"
13010 /* System header to define __stub macros and hopefully few prototypes,
13011     which can conflict with char $ac_func (); below.  */
13012 #include <assert.h>
13013 /* Override any gcc2 internal prototype to avoid an error.  */
13014 #ifdef __cplusplus
13015 extern "C"
13016 #endif
13017 /* We use char because int might match the return type of a gcc2
13018    builtin and then its argument prototype would still apply.  */
13019 char $ac_func ();
13020 char (*f) ();
13021
13022 #ifdef F77_DUMMY_MAIN
13023 #  ifdef __cplusplus
13024      extern "C"
13025 #  endif
13026    int F77_DUMMY_MAIN() { return 1; }
13027 #endif
13028 int
13029 main ()
13030 {
13031 /* The GNU C library defines this for functions which it implements
13032     to always fail with ENOSYS.  Some functions are actually named
13033     something starting with __ and the normal name is an alias.  */
13034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13035 choke me
13036 #else
13037 f = $ac_func;
13038 #endif
13039
13040   ;
13041   return 0;
13042 }
13043 _ACEOF
13044 rm -f conftest.$ac_objext conftest$ac_exeext
13045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13046   (eval $ac_link) 2>&5
13047   ac_status=$?
13048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049   (exit $ac_status); } &&
13050          { ac_try='test -s conftest$ac_exeext'
13051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13052   (eval $ac_try) 2>&5
13053   ac_status=$?
13054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055   (exit $ac_status); }; }; then
13056   eval "$as_ac_var=yes"
13057 else
13058   echo "$as_me: failed program was:" >&5
13059 cat conftest.$ac_ext >&5
13060 eval "$as_ac_var=no"
13061 fi
13062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13063 fi
13064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13065 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13066 if test `eval echo '${'$as_ac_var'}'` = yes; then
13067   cat >>confdefs.h <<_ACEOF
13068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13069 _ACEOF
13070
13071 else
13072   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
13073 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
13074    { (exit 1); exit 1; }; }
13075 fi
13076 done
13077
13078 fi
13079 done
13080
13081
13082 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13083 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13084 if test "${ac_cv_sys_largefile_source+set}" = set; then
13085   echo $ECHO_N "(cached) $ECHO_C" >&6
13086 else
13087   while :; do
13088   ac_cv_sys_largefile_source=no
13089   cat >conftest.$ac_ext <<_ACEOF
13090 #line $LINENO "configure"
13091 #include "confdefs.h"
13092 #include <stdio.h>
13093 #ifdef F77_DUMMY_MAIN
13094 #  ifdef __cplusplus
13095      extern "C"
13096 #  endif
13097    int F77_DUMMY_MAIN() { return 1; }
13098 #endif
13099 int
13100 main ()
13101 {
13102 return !fseeko;
13103   ;
13104   return 0;
13105 }
13106 _ACEOF
13107 rm -f conftest.$ac_objext
13108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13109   (eval $ac_compile) 2>&5
13110   ac_status=$?
13111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112   (exit $ac_status); } &&
13113          { ac_try='test -s conftest.$ac_objext'
13114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115   (eval $ac_try) 2>&5
13116   ac_status=$?
13117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118   (exit $ac_status); }; }; then
13119   break
13120 else
13121   echo "$as_me: failed program was:" >&5
13122 cat conftest.$ac_ext >&5
13123 fi
13124 rm -f conftest.$ac_objext conftest.$ac_ext
13125   cat >conftest.$ac_ext <<_ACEOF
13126 #line $LINENO "configure"
13127 #include "confdefs.h"
13128 #define _LARGEFILE_SOURCE 1
13129 #include <stdio.h>
13130 #ifdef F77_DUMMY_MAIN
13131 #  ifdef __cplusplus
13132      extern "C"
13133 #  endif
13134    int F77_DUMMY_MAIN() { return 1; }
13135 #endif
13136 int
13137 main ()
13138 {
13139 return !fseeko;
13140   ;
13141   return 0;
13142 }
13143 _ACEOF
13144 rm -f conftest.$ac_objext
13145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13146   (eval $ac_compile) 2>&5
13147   ac_status=$?
13148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149   (exit $ac_status); } &&
13150          { ac_try='test -s conftest.$ac_objext'
13151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152   (eval $ac_try) 2>&5
13153   ac_status=$?
13154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155   (exit $ac_status); }; }; then
13156   ac_cv_sys_largefile_source=1; break
13157 else
13158   echo "$as_me: failed program was:" >&5
13159 cat conftest.$ac_ext >&5
13160 fi
13161 rm -f conftest.$ac_objext conftest.$ac_ext
13162   break
13163 done
13164 fi
13165 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13166 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13167 if test "$ac_cv_sys_largefile_source" != no; then
13168
13169 cat >>confdefs.h <<_ACEOF
13170 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13171 _ACEOF
13172
13173 fi
13174 rm -f conftest*
13175
13176 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13177 # in glibc 2.1.3, but that breaks too many other things.
13178 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13179 echo "$as_me:$LINENO: checking for fseeko" >&5
13180 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13181 if test "${ac_cv_func_fseeko+set}" = set; then
13182   echo $ECHO_N "(cached) $ECHO_C" >&6
13183 else
13184   cat >conftest.$ac_ext <<_ACEOF
13185 #line $LINENO "configure"
13186 #include "confdefs.h"
13187 #include <stdio.h>
13188 #ifdef F77_DUMMY_MAIN
13189 #  ifdef __cplusplus
13190      extern "C"
13191 #  endif
13192    int F77_DUMMY_MAIN() { return 1; }
13193 #endif
13194 int
13195 main ()
13196 {
13197 return fseeko && fseeko (stdin, 0, 0);
13198   ;
13199   return 0;
13200 }
13201 _ACEOF
13202 rm -f conftest.$ac_objext conftest$ac_exeext
13203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13204   (eval $ac_link) 2>&5
13205   ac_status=$?
13206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207   (exit $ac_status); } &&
13208          { ac_try='test -s conftest$ac_exeext'
13209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13210   (eval $ac_try) 2>&5
13211   ac_status=$?
13212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213   (exit $ac_status); }; }; then
13214   ac_cv_func_fseeko=yes
13215 else
13216   echo "$as_me: failed program was:" >&5
13217 cat conftest.$ac_ext >&5
13218 ac_cv_func_fseeko=no
13219 fi
13220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13221 fi
13222 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13223 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13224 if test $ac_cv_func_fseeko = yes; then
13225
13226 cat >>confdefs.h <<\_ACEOF
13227 #define HAVE_FSEEKO 1
13228 _ACEOF
13229
13230 fi
13231
13232
13233 #
13234 # Pthreads
13235 #
13236 # For each platform, we need to know about any special compile and link
13237 # libraries, and whether the normal C function names are thread-safe.
13238 # See the comment at the top of src/port/thread.c for more information.
13239 #
13240 if test "$enable_thread_safety" = yes; then
13241 if test "${ac_cv_header_pthread_h+set}" = set; then
13242   echo "$as_me:$LINENO: checking for pthread.h" >&5
13243 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13244 if test "${ac_cv_header_pthread_h+set}" = set; then
13245   echo $ECHO_N "(cached) $ECHO_C" >&6
13246 fi
13247 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13248 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13249 else
13250   # Is the header compilable?
13251 echo "$as_me:$LINENO: checking pthread.h usability" >&5
13252 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
13253 cat >conftest.$ac_ext <<_ACEOF
13254 #line $LINENO "configure"
13255 #include "confdefs.h"
13256 $ac_includes_default
13257 #include <pthread.h>
13258 _ACEOF
13259 rm -f conftest.$ac_objext
13260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13261   (eval $ac_compile) 2>&5
13262   ac_status=$?
13263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264   (exit $ac_status); } &&
13265          { ac_try='test -s conftest.$ac_objext'
13266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13267   (eval $ac_try) 2>&5
13268   ac_status=$?
13269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270   (exit $ac_status); }; }; then
13271   ac_header_compiler=yes
13272 else
13273   echo "$as_me: failed program was:" >&5
13274 cat conftest.$ac_ext >&5
13275 ac_header_compiler=no
13276 fi
13277 rm -f conftest.$ac_objext conftest.$ac_ext
13278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13279 echo "${ECHO_T}$ac_header_compiler" >&6
13280
13281 # Is the header present?
13282 echo "$as_me:$LINENO: checking pthread.h presence" >&5
13283 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
13284 cat >conftest.$ac_ext <<_ACEOF
13285 #line $LINENO "configure"
13286 #include "confdefs.h"
13287 #include <pthread.h>
13288 _ACEOF
13289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13290   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13291   ac_status=$?
13292   egrep -v '^ *\+' conftest.er1 >conftest.err
13293   rm -f conftest.er1
13294   cat conftest.err >&5
13295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296   (exit $ac_status); } >/dev/null; then
13297   if test -s conftest.err; then
13298     ac_cpp_err=$ac_c_preproc_warn_flag
13299   else
13300     ac_cpp_err=
13301   fi
13302 else
13303   ac_cpp_err=yes
13304 fi
13305 if test -z "$ac_cpp_err"; then
13306   ac_header_preproc=yes
13307 else
13308   echo "$as_me: failed program was:" >&5
13309   cat conftest.$ac_ext >&5
13310   ac_header_preproc=no
13311 fi
13312 rm -f conftest.err conftest.$ac_ext
13313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13314 echo "${ECHO_T}$ac_header_preproc" >&6
13315
13316 # So?  What about this header?
13317 case $ac_header_compiler:$ac_header_preproc in
13318   yes:no )
13319     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13320 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13321     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13322 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13323   no:yes )
13324     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13325 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13326     { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13327 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13328     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13329 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13330 esac
13331 echo "$as_me:$LINENO: checking for pthread.h" >&5
13332 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13333 if test "${ac_cv_header_pthread_h+set}" = set; then
13334   echo $ECHO_N "(cached) $ECHO_C" >&6
13335 else
13336   ac_cv_header_pthread_h=$ac_header_preproc
13337 fi
13338 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13339 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13340
13341 fi
13342 if test $ac_cv_header_pthread_h = yes; then
13343   :
13344 else
13345   { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safetys" >&5
13346 echo "$as_me: error: pthread.h not found, required for --enable-thread-safetys" >&2;}
13347    { (exit 1); exit 1; }; }
13348 fi
13349
13350
13351
13352 if test "$THREAD_SUPPORT" != yes; then
13353 { { echo "$as_me:$LINENO: error:
13354 Cannot enable threads on your platform.
13355 Please report your platform threading info to the PostgreSQL mailing lists
13356 so it can be added to the next release.  Report all compile flags, link flags,
13357 functions, or libraries required for threading support.
13358 See the comment at the top of src/port/thread.c for more information.
13359 " >&5
13360 echo "$as_me: error:
13361 Cannot enable threads on your platform.
13362 Please report your platform threading info to the PostgreSQL mailing lists
13363 so it can be added to the next release.  Report all compile flags, link flags,
13364 functions, or libraries required for threading support.
13365 See the comment at the top of src/port/thread.c for more information.
13366 " >&2;}
13367    { (exit 1); exit 1; }; }
13368 fi
13369 else
13370 # do not use values from template file
13371 THREAD_CPPFLAGS=
13372 THREAD_LIBS=
13373 fi
13374
13375
13376
13377
13378
13379 #
13380 # Check for re-entrant versions of certain functions
13381 #
13382 # Include special flags if threads are enabled _and_ if required for
13383 # threading on this platform.  Some platforms have *_r functions but
13384 # their natively named funcs are threadsafe, and should be used instead.
13385 #
13386 # One trick here is that if we don't call AC_CHECK_FUNCS, the
13387 # functions are marked "not found", which is perfect.
13388 #
13389 if test "$enable_thread_safety" = yes -a "$NEED_REENTRANT_FUNCS" = yes ; then
13390 _CFLAGS="$CFLAGS"
13391 _LIBS="$LIBS"
13392 CFLAGS="$CFLAGS $THREAD_CPPFLAGS"
13393 LIBS="$LIBS $THREAD_LIBS"
13394
13395
13396
13397 for ac_func in strerror_r getpwuid_r gethostbyname_r
13398 do
13399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13400 echo "$as_me:$LINENO: checking for $ac_func" >&5
13401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13402 if eval "test \"\${$as_ac_var+set}\" = set"; then
13403   echo $ECHO_N "(cached) $ECHO_C" >&6
13404 else
13405   cat >conftest.$ac_ext <<_ACEOF
13406 #line $LINENO "configure"
13407 #include "confdefs.h"
13408 /* System header to define __stub macros and hopefully few prototypes,
13409     which can conflict with char $ac_func (); below.  */
13410 #include <assert.h>
13411 /* Override any gcc2 internal prototype to avoid an error.  */
13412 #ifdef __cplusplus
13413 extern "C"
13414 #endif
13415 /* We use char because int might match the return type of a gcc2
13416    builtin and then its argument prototype would still apply.  */
13417 char $ac_func ();
13418 char (*f) ();
13419
13420 #ifdef F77_DUMMY_MAIN
13421 #  ifdef __cplusplus
13422      extern "C"
13423 #  endif
13424    int F77_DUMMY_MAIN() { return 1; }
13425 #endif
13426 int
13427 main ()
13428 {
13429 /* The GNU C library defines this for functions which it implements
13430     to always fail with ENOSYS.  Some functions are actually named
13431     something starting with __ and the normal name is an alias.  */
13432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13433 choke me
13434 #else
13435 f = $ac_func;
13436 #endif
13437
13438   ;
13439   return 0;
13440 }
13441 _ACEOF
13442 rm -f conftest.$ac_objext conftest$ac_exeext
13443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13444   (eval $ac_link) 2>&5
13445   ac_status=$?
13446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); } &&
13448          { ac_try='test -s conftest$ac_exeext'
13449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450   (eval $ac_try) 2>&5
13451   ac_status=$?
13452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453   (exit $ac_status); }; }; then
13454   eval "$as_ac_var=yes"
13455 else
13456   echo "$as_me: failed program was:" >&5
13457 cat conftest.$ac_ext >&5
13458 eval "$as_ac_var=no"
13459 fi
13460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13461 fi
13462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13463 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13464 if test `eval echo '${'$as_ac_var'}'` = yes; then
13465   cat >>confdefs.h <<_ACEOF
13466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13467 _ACEOF
13468
13469 fi
13470 done
13471
13472 CFLAGS="$_CFLAGS"
13473 LIBS="$_LIBS"
13474 fi
13475
13476
13477 # This test makes sure that run tests work at all.  Sometimes a shared
13478 # library is found by the linker, but the runtime linker can't find it.
13479 # This check should come after all modifications of compiler or linker
13480 # variables, and before any other run tests.
13481 echo "$as_me:$LINENO: checking test program" >&5
13482 echo $ECHO_N "checking test program... $ECHO_C" >&6
13483 if test "$cross_compiling" = yes; then
13484   echo "$as_me:$LINENO: result: cross-compiling" >&5
13485 echo "${ECHO_T}cross-compiling" >&6
13486 else
13487   cat >conftest.$ac_ext <<_ACEOF
13488 #line $LINENO "configure"
13489 #include "confdefs.h"
13490 int main() { return 0; }
13491 _ACEOF
13492 rm -f conftest$ac_exeext
13493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13494   (eval $ac_link) 2>&5
13495   ac_status=$?
13496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499   (eval $ac_try) 2>&5
13500   ac_status=$?
13501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502   (exit $ac_status); }; }; then
13503   echo "$as_me:$LINENO: result: ok" >&5
13504 echo "${ECHO_T}ok" >&6
13505 else
13506   echo "$as_me: program exited with status $ac_status" >&5
13507 echo "$as_me: failed program was:" >&5
13508 cat conftest.$ac_ext >&5
13509 ( exit $ac_status )
13510 echo "$as_me:$LINENO: result: failed" >&5
13511 echo "${ECHO_T}failed" >&6
13512 { { echo "$as_me:$LINENO: error:
13513 *** Could not execute a simple test program.  This may be a problem
13514 *** related to locating shared libraries.  Check the file 'config.log'
13515 *** for the exact reason." >&5
13516 echo "$as_me: error:
13517 *** Could not execute a simple test program.  This may be a problem
13518 *** related to locating shared libraries.  Check the file 'config.log'
13519 *** for the exact reason." >&2;}
13520    { (exit 1); exit 1; }; }
13521 fi
13522 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13523 fi
13524
13525
13526
13527 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
13528 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
13529 if test "${pgac_cv_type_long_int_64+set}" = set; then
13530   echo $ECHO_N "(cached) $ECHO_C" >&6
13531 else
13532   if test "$cross_compiling" = yes; then
13533   # If cross-compiling, check the size reported by the compiler and
13534 # trust that the arithmetic works.
13535 cat >conftest.$ac_ext <<_ACEOF
13536 #line $LINENO "configure"
13537 #include "confdefs.h"
13538
13539 #ifdef F77_DUMMY_MAIN
13540 #  ifdef __cplusplus
13541      extern "C"
13542 #  endif
13543    int F77_DUMMY_MAIN() { return 1; }
13544 #endif
13545 int
13546 main ()
13547 {
13548 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13549 test_array [0] = 0
13550
13551   ;
13552   return 0;
13553 }
13554 _ACEOF
13555 rm -f conftest.$ac_objext
13556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13557   (eval $ac_compile) 2>&5
13558   ac_status=$?
13559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560   (exit $ac_status); } &&
13561          { ac_try='test -s conftest.$ac_objext'
13562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563   (eval $ac_try) 2>&5
13564   ac_status=$?
13565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566   (exit $ac_status); }; }; then
13567   pgac_cv_type_long_int_64=yes
13568 else
13569   echo "$as_me: failed program was:" >&5
13570 cat conftest.$ac_ext >&5
13571 pgac_cv_type_long_int_64=no
13572 fi
13573 rm -f conftest.$ac_objext conftest.$ac_ext
13574 else
13575   cat >conftest.$ac_ext <<_ACEOF
13576 #line $LINENO "configure"
13577 #include "confdefs.h"
13578 typedef long int int64;
13579
13580 /*
13581  * These are globals to discourage the compiler from folding all the
13582  * arithmetic tests down to compile-time constants.
13583  */
13584 int64 a = 20000001;
13585 int64 b = 40000005;
13586
13587 int does_int64_work()
13588 {
13589   int64 c,d;
13590
13591   if (sizeof(int64) != 8)
13592     return 0;                   /* definitely not the right size */
13593
13594   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13595   c = a * b;
13596   d = (c + b) / b;
13597   if (d != a+1)
13598     return 0;
13599   return 1;
13600 }
13601 main() {
13602   exit(! does_int64_work());
13603 }
13604 _ACEOF
13605 rm -f conftest$ac_exeext
13606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13607   (eval $ac_link) 2>&5
13608   ac_status=$?
13609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612   (eval $ac_try) 2>&5
13613   ac_status=$?
13614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615   (exit $ac_status); }; }; then
13616   pgac_cv_type_long_int_64=yes
13617 else
13618   echo "$as_me: program exited with status $ac_status" >&5
13619 echo "$as_me: failed program was:" >&5
13620 cat conftest.$ac_ext >&5
13621 ( exit $ac_status )
13622 pgac_cv_type_long_int_64=no
13623 fi
13624 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13625 fi
13626 fi
13627 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
13628 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
13629
13630 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13631 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13632
13633 cat >>confdefs.h <<\_ACEOF
13634 #define HAVE_LONG_INT_64
13635 _ACEOF
13636
13637 fi
13638
13639
13640 if test x"$HAVE_LONG_INT_64" = x"no" ; then
13641   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
13642 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
13643 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
13644   echo $ECHO_N "(cached) $ECHO_C" >&6
13645 else
13646   if test "$cross_compiling" = yes; then
13647   # If cross-compiling, check the size reported by the compiler and
13648 # trust that the arithmetic works.
13649 cat >conftest.$ac_ext <<_ACEOF
13650 #line $LINENO "configure"
13651 #include "confdefs.h"
13652
13653 #ifdef F77_DUMMY_MAIN
13654 #  ifdef __cplusplus
13655      extern "C"
13656 #  endif
13657    int F77_DUMMY_MAIN() { return 1; }
13658 #endif
13659 int
13660 main ()
13661 {
13662 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13663 test_array [0] = 0
13664
13665   ;
13666   return 0;
13667 }
13668 _ACEOF
13669 rm -f conftest.$ac_objext
13670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13671   (eval $ac_compile) 2>&5
13672   ac_status=$?
13673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); } &&
13675          { ac_try='test -s conftest.$ac_objext'
13676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677   (eval $ac_try) 2>&5
13678   ac_status=$?
13679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680   (exit $ac_status); }; }; then
13681   pgac_cv_type_long_long_int_64=yes
13682 else
13683   echo "$as_me: failed program was:" >&5
13684 cat conftest.$ac_ext >&5
13685 pgac_cv_type_long_long_int_64=no
13686 fi
13687 rm -f conftest.$ac_objext conftest.$ac_ext
13688 else
13689   cat >conftest.$ac_ext <<_ACEOF
13690 #line $LINENO "configure"
13691 #include "confdefs.h"
13692 typedef long long int int64;
13693
13694 /*
13695  * These are globals to discourage the compiler from folding all the
13696  * arithmetic tests down to compile-time constants.
13697  */
13698 int64 a = 20000001;
13699 int64 b = 40000005;
13700
13701 int does_int64_work()
13702 {
13703   int64 c,d;
13704
13705   if (sizeof(int64) != 8)
13706     return 0;                   /* definitely not the right size */
13707
13708   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13709   c = a * b;
13710   d = (c + b) / b;
13711   if (d != a+1)
13712     return 0;
13713   return 1;
13714 }
13715 main() {
13716   exit(! does_int64_work());
13717 }
13718 _ACEOF
13719 rm -f conftest$ac_exeext
13720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13721   (eval $ac_link) 2>&5
13722   ac_status=$?
13723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726   (eval $ac_try) 2>&5
13727   ac_status=$?
13728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729   (exit $ac_status); }; }; then
13730   pgac_cv_type_long_long_int_64=yes
13731 else
13732   echo "$as_me: program exited with status $ac_status" >&5
13733 echo "$as_me: failed program was:" >&5
13734 cat conftest.$ac_ext >&5
13735 ( exit $ac_status )
13736 pgac_cv_type_long_long_int_64=no
13737 fi
13738 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13739 fi
13740 fi
13741 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
13742 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
13743
13744 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13745 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13746
13747 cat >>confdefs.h <<\_ACEOF
13748 #define HAVE_LONG_LONG_INT_64
13749 _ACEOF
13750
13751 fi
13752
13753 fi
13754
13755
13756
13757 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13758   cat >conftest.$ac_ext <<_ACEOF
13759 #line $LINENO "configure"
13760 #include "confdefs.h"
13761
13762 #define INT64CONST(x)  x##LL
13763 long long int foo = INT64CONST(0x1234567890123456);
13764
13765 #ifdef F77_DUMMY_MAIN
13766 #  ifdef __cplusplus
13767      extern "C"
13768 #  endif
13769    int F77_DUMMY_MAIN() { return 1; }
13770 #endif
13771 int
13772 main ()
13773 {
13774
13775   ;
13776   return 0;
13777 }
13778 _ACEOF
13779 rm -f conftest.$ac_objext
13780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13781   (eval $ac_compile) 2>&5
13782   ac_status=$?
13783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784   (exit $ac_status); } &&
13785          { ac_try='test -s conftest.$ac_objext'
13786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13787   (eval $ac_try) 2>&5
13788   ac_status=$?
13789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790   (exit $ac_status); }; }; then
13791
13792 cat >>confdefs.h <<\_ACEOF
13793 #define HAVE_LL_CONSTANTS 1
13794 _ACEOF
13795
13796 else
13797   echo "$as_me: failed program was:" >&5
13798 cat conftest.$ac_ext >&5
13799 fi
13800 rm -f conftest.$ac_objext conftest.$ac_ext
13801 fi
13802
13803
13804 # If we found "long int" is 64 bits, assume snprintf handles it.  If
13805 # we found we need to use "long long int", better check.  We cope with
13806 # snprintfs that use either %lld, %qd, or %I64d as the format.  If
13807 # neither works, fall back to our own snprintf emulation (which we
13808 # know uses %lld).
13809
13810 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13811   if test $pgac_need_repl_snprintf = no; then
13812     echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
13813 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
13814 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
13815   echo $ECHO_N "(cached) $ECHO_C" >&6
13816 else
13817   for pgac_format in '%lld' '%qd' '%I64d'; do
13818 if test "$cross_compiling" = yes; then
13819   pgac_cv_snprintf_long_long_int_format=cross; break
13820 else
13821   cat >conftest.$ac_ext <<_ACEOF
13822 #line $LINENO "configure"
13823 #include "confdefs.h"
13824 #include <stdio.h>
13825 typedef long long int int64;
13826 #define INT64_FORMAT "$pgac_format"
13827
13828 int64 a = 20000001;
13829 int64 b = 40000005;
13830
13831 int does_int64_snprintf_work()
13832 {
13833   int64 c;
13834   char buf[100];
13835
13836   if (sizeof(int64) != 8)
13837     return 0;                   /* doesn't look like the right size */
13838
13839   c = a * b;
13840   snprintf(buf, 100, INT64_FORMAT, c);
13841   if (strcmp(buf, "800000140000005") != 0)
13842     return 0;                   /* either multiply or snprintf is busted */
13843   return 1;
13844 }
13845 main() {
13846   exit(! does_int64_snprintf_work());
13847 }
13848 _ACEOF
13849 rm -f conftest$ac_exeext
13850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13851   (eval $ac_link) 2>&5
13852   ac_status=$?
13853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856   (eval $ac_try) 2>&5
13857   ac_status=$?
13858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859   (exit $ac_status); }; }; then
13860   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
13861 else
13862   echo "$as_me: program exited with status $ac_status" >&5
13863 echo "$as_me: failed program was:" >&5
13864 cat conftest.$ac_ext >&5
13865 fi
13866 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13867 fi
13868 done
13869 fi
13870
13871 LONG_LONG_INT_FORMAT=''
13872
13873 case $pgac_cv_snprintf_long_long_int_format in
13874   cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
13875 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
13876   ?*)    echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
13877 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
13878          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13879   *)     echo "$as_me:$LINENO: result: none" >&5
13880 echo "${ECHO_T}none" >&6;;
13881 esac
13882     if test "$LONG_LONG_INT_FORMAT" = ""; then
13883       # Force usage of our own snprintf, since system snprintf is broken
13884       pgac_need_repl_snprintf=yes
13885       LONG_LONG_INT_FORMAT='%lld'
13886     fi
13887   else
13888     # Here if we previously decided we needed to use our own snprintf
13889     LONG_LONG_INT_FORMAT='%lld'
13890   fi
13891   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13892 else
13893   # Here if we are not using 'long long int' at all
13894   INT64_FORMAT='"%ld"'
13895 fi
13896
13897
13898 cat >>confdefs.h <<_ACEOF
13899 #define INT64_FORMAT $INT64_FORMAT
13900 _ACEOF
13901
13902
13903 if test $pgac_need_repl_snprintf = yes; then
13904   LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13905 fi
13906
13907 # Need a #define for the size of Datum (unsigned long)
13908 echo "$as_me:$LINENO: checking for unsigned long" >&5
13909 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13910 if test "${ac_cv_type_unsigned_long+set}" = set; then
13911   echo $ECHO_N "(cached) $ECHO_C" >&6
13912 else
13913   cat >conftest.$ac_ext <<_ACEOF
13914 #line $LINENO "configure"
13915 #include "confdefs.h"
13916 $ac_includes_default
13917 #ifdef F77_DUMMY_MAIN
13918 #  ifdef __cplusplus
13919      extern "C"
13920 #  endif
13921    int F77_DUMMY_MAIN() { return 1; }
13922 #endif
13923 int
13924 main ()
13925 {
13926 if ((unsigned long *) 0)
13927   return 0;
13928 if (sizeof (unsigned long))
13929   return 0;
13930   ;
13931   return 0;
13932 }
13933 _ACEOF
13934 rm -f conftest.$ac_objext
13935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13936   (eval $ac_compile) 2>&5
13937   ac_status=$?
13938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939   (exit $ac_status); } &&
13940          { ac_try='test -s conftest.$ac_objext'
13941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942   (eval $ac_try) 2>&5
13943   ac_status=$?
13944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945   (exit $ac_status); }; }; then
13946   ac_cv_type_unsigned_long=yes
13947 else
13948   echo "$as_me: failed program was:" >&5
13949 cat conftest.$ac_ext >&5
13950 ac_cv_type_unsigned_long=no
13951 fi
13952 rm -f conftest.$ac_objext conftest.$ac_ext
13953 fi
13954 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13955 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13956
13957 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13958 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13959 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13960   echo $ECHO_N "(cached) $ECHO_C" >&6
13961 else
13962   if test "$ac_cv_type_unsigned_long" = yes; then
13963   # The cast to unsigned long works around a bug in the HP C Compiler
13964   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13965   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13966   # This bug is HP SR number 8606223364.
13967   if test "$cross_compiling" = yes; then
13968   # Depending upon the size, compute the lo and hi bounds.
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 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13983 test_array [0] = 0
13984
13985   ;
13986   return 0;
13987 }
13988 _ACEOF
13989 rm -f conftest.$ac_objext
13990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13991   (eval $ac_compile) 2>&5
13992   ac_status=$?
13993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994   (exit $ac_status); } &&
13995          { ac_try='test -s conftest.$ac_objext'
13996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13997   (eval $ac_try) 2>&5
13998   ac_status=$?
13999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000   (exit $ac_status); }; }; then
14001   ac_lo=0 ac_mid=0
14002   while :; do
14003     cat >conftest.$ac_ext <<_ACEOF
14004 #line $LINENO "configure"
14005 #include "confdefs.h"
14006 $ac_includes_default
14007 #ifdef F77_DUMMY_MAIN
14008 #  ifdef __cplusplus
14009      extern "C"
14010 #  endif
14011    int F77_DUMMY_MAIN() { return 1; }
14012 #endif
14013 int
14014 main ()
14015 {
14016 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14017 test_array [0] = 0
14018
14019   ;
14020   return 0;
14021 }
14022 _ACEOF
14023 rm -f conftest.$ac_objext
14024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14025   (eval $ac_compile) 2>&5
14026   ac_status=$?
14027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028   (exit $ac_status); } &&
14029          { ac_try='test -s conftest.$ac_objext'
14030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031   (eval $ac_try) 2>&5
14032   ac_status=$?
14033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034   (exit $ac_status); }; }; then
14035   ac_hi=$ac_mid; break
14036 else
14037   echo "$as_me: failed program was:" >&5
14038 cat conftest.$ac_ext >&5
14039 ac_lo=`expr $ac_mid + 1`
14040                     if test $ac_lo -le $ac_mid; then
14041                       ac_lo= ac_hi=
14042                       break
14043                     fi
14044                     ac_mid=`expr 2 '*' $ac_mid + 1`
14045 fi
14046 rm -f conftest.$ac_objext conftest.$ac_ext
14047   done
14048 else
14049   echo "$as_me: failed program was:" >&5
14050 cat conftest.$ac_ext >&5
14051 cat >conftest.$ac_ext <<_ACEOF
14052 #line $LINENO "configure"
14053 #include "confdefs.h"
14054 $ac_includes_default
14055 #ifdef F77_DUMMY_MAIN
14056 #  ifdef __cplusplus
14057      extern "C"
14058 #  endif
14059    int F77_DUMMY_MAIN() { return 1; }
14060 #endif
14061 int
14062 main ()
14063 {
14064 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
14065 test_array [0] = 0
14066
14067   ;
14068   return 0;
14069 }
14070 _ACEOF
14071 rm -f conftest.$ac_objext
14072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14073   (eval $ac_compile) 2>&5
14074   ac_status=$?
14075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076   (exit $ac_status); } &&
14077          { ac_try='test -s conftest.$ac_objext'
14078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079   (eval $ac_try) 2>&5
14080   ac_status=$?
14081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082   (exit $ac_status); }; }; then
14083   ac_hi=-1 ac_mid=-1
14084   while :; do
14085     cat >conftest.$ac_ext <<_ACEOF
14086 #line $LINENO "configure"
14087 #include "confdefs.h"
14088 $ac_includes_default
14089 #ifdef F77_DUMMY_MAIN
14090 #  ifdef __cplusplus
14091      extern "C"
14092 #  endif
14093    int F77_DUMMY_MAIN() { return 1; }
14094 #endif
14095 int
14096 main ()
14097 {
14098 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
14099 test_array [0] = 0
14100
14101   ;
14102   return 0;
14103 }
14104 _ACEOF
14105 rm -f conftest.$ac_objext
14106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14107   (eval $ac_compile) 2>&5
14108   ac_status=$?
14109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110   (exit $ac_status); } &&
14111          { ac_try='test -s conftest.$ac_objext'
14112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113   (eval $ac_try) 2>&5
14114   ac_status=$?
14115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116   (exit $ac_status); }; }; then
14117   ac_lo=$ac_mid; break
14118 else
14119   echo "$as_me: failed program was:" >&5
14120 cat conftest.$ac_ext >&5
14121 ac_hi=`expr '(' $ac_mid ')' - 1`
14122                        if test $ac_mid -le $ac_hi; then
14123                          ac_lo= ac_hi=
14124                          break
14125                        fi
14126                        ac_mid=`expr 2 '*' $ac_mid`
14127 fi
14128 rm -f conftest.$ac_objext conftest.$ac_ext
14129   done
14130 else
14131   echo "$as_me: failed program was:" >&5
14132 cat conftest.$ac_ext >&5
14133 ac_lo= ac_hi=
14134 fi
14135 rm -f conftest.$ac_objext conftest.$ac_ext
14136 fi
14137 rm -f conftest.$ac_objext conftest.$ac_ext
14138 # Binary search between lo and hi bounds.
14139 while test "x$ac_lo" != "x$ac_hi"; do
14140   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14141   cat >conftest.$ac_ext <<_ACEOF
14142 #line $LINENO "configure"
14143 #include "confdefs.h"
14144 $ac_includes_default
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 * !(((long) (sizeof (unsigned long))) <= $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_hi=$ac_mid
14174 else
14175   echo "$as_me: failed program was:" >&5
14176 cat conftest.$ac_ext >&5
14177 ac_lo=`expr '(' $ac_mid ')' + 1`
14178 fi
14179 rm -f conftest.$ac_objext conftest.$ac_ext
14180 done
14181 case $ac_lo in
14182 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
14183 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14184 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14185    { (exit 1); exit 1; }; } ;;
14186 esac
14187 else
14188   if test "$cross_compiling" = yes; then
14189   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14190 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14191    { (exit 1); exit 1; }; }
14192 else
14193   cat >conftest.$ac_ext <<_ACEOF
14194 #line $LINENO "configure"
14195 #include "confdefs.h"
14196 $ac_includes_default
14197 long longval () { return (long) (sizeof (unsigned long)); }
14198 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
14199 #include <stdio.h>
14200 #include <stdlib.h>
14201 #ifdef F77_DUMMY_MAIN
14202 #  ifdef __cplusplus
14203      extern "C"
14204 #  endif
14205    int F77_DUMMY_MAIN() { return 1; }
14206 #endif
14207 int
14208 main ()
14209 {
14210
14211   FILE *f = fopen ("conftest.val", "w");
14212   if (! f)
14213     exit (1);
14214   if (((long) (sizeof (unsigned long))) < 0)
14215     {
14216       long i = longval ();
14217       if (i != ((long) (sizeof (unsigned long))))
14218         exit (1);
14219       fprintf (f, "%ld\n", i);
14220     }
14221   else
14222     {
14223       unsigned long i = ulongval ();
14224       if (i != ((long) (sizeof (unsigned long))))
14225         exit (1);
14226       fprintf (f, "%lu\n", i);
14227     }
14228   exit (ferror (f) || fclose (f) != 0);
14229
14230   ;
14231   return 0;
14232 }
14233 _ACEOF
14234 rm -f conftest$ac_exeext
14235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14236   (eval $ac_link) 2>&5
14237   ac_status=$?
14238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14241   (eval $ac_try) 2>&5
14242   ac_status=$?
14243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244   (exit $ac_status); }; }; then
14245   ac_cv_sizeof_unsigned_long=`cat conftest.val`
14246 else
14247   echo "$as_me: program exited with status $ac_status" >&5
14248 echo "$as_me: failed program was:" >&5
14249 cat conftest.$ac_ext >&5
14250 ( exit $ac_status )
14251 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14252 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14253    { (exit 1); exit 1; }; }
14254 fi
14255 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14256 fi
14257 fi
14258 rm -f conftest.val
14259 else
14260   ac_cv_sizeof_unsigned_long=0
14261 fi
14262 fi
14263 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
14264 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
14265 cat >>confdefs.h <<_ACEOF
14266 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14267 _ACEOF
14268
14269
14270
14271 # Determine memory alignment requirements for the basic C data types.
14272
14273 echo "$as_me:$LINENO: checking for short" >&5
14274 echo $ECHO_N "checking for short... $ECHO_C" >&6
14275 if test "${ac_cv_type_short+set}" = set; then
14276   echo $ECHO_N "(cached) $ECHO_C" >&6
14277 else
14278   cat >conftest.$ac_ext <<_ACEOF
14279 #line $LINENO "configure"
14280 #include "confdefs.h"
14281 $ac_includes_default
14282 #ifdef F77_DUMMY_MAIN
14283 #  ifdef __cplusplus
14284      extern "C"
14285 #  endif
14286    int F77_DUMMY_MAIN() { return 1; }
14287 #endif
14288 int
14289 main ()
14290 {
14291 if ((short *) 0)
14292   return 0;
14293 if (sizeof (short))
14294   return 0;
14295   ;
14296   return 0;
14297 }
14298 _ACEOF
14299 rm -f conftest.$ac_objext
14300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14301   (eval $ac_compile) 2>&5
14302   ac_status=$?
14303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304   (exit $ac_status); } &&
14305          { ac_try='test -s conftest.$ac_objext'
14306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14307   (eval $ac_try) 2>&5
14308   ac_status=$?
14309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310   (exit $ac_status); }; }; then
14311   ac_cv_type_short=yes
14312 else
14313   echo "$as_me: failed program was:" >&5
14314 cat conftest.$ac_ext >&5
14315 ac_cv_type_short=no
14316 fi
14317 rm -f conftest.$ac_objext conftest.$ac_ext
14318 fi
14319 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14320 echo "${ECHO_T}$ac_cv_type_short" >&6
14321
14322 echo "$as_me:$LINENO: checking alignment of short" >&5
14323 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
14324 if test "${pgac_cv_alignof_short+set}" = set; then
14325   echo $ECHO_N "(cached) $ECHO_C" >&6
14326 else
14327   if test "$ac_cv_type_short" = yes; then
14328   if test "$cross_compiling" = yes; then
14329   # Depending upon the size, compute the lo and hi bounds.
14330 cat >conftest.$ac_ext <<_ACEOF
14331 #line $LINENO "configure"
14332 #include "confdefs.h"
14333 $ac_includes_default
14334 struct { char filler; short field; } pgac_struct;
14335 #ifdef F77_DUMMY_MAIN
14336 #  ifdef __cplusplus
14337      extern "C"
14338 #  endif
14339    int F77_DUMMY_MAIN() { return 1; }
14340 #endif
14341 int
14342 main ()
14343 {
14344 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14345 test_array [0] = 0
14346
14347   ;
14348   return 0;
14349 }
14350 _ACEOF
14351 rm -f conftest.$ac_objext
14352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14353   (eval $ac_compile) 2>&5
14354   ac_status=$?
14355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356   (exit $ac_status); } &&
14357          { ac_try='test -s conftest.$ac_objext'
14358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359   (eval $ac_try) 2>&5
14360   ac_status=$?
14361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362   (exit $ac_status); }; }; then
14363   ac_lo=0 ac_mid=0
14364   while :; do
14365     cat >conftest.$ac_ext <<_ACEOF
14366 #line $LINENO "configure"
14367 #include "confdefs.h"
14368 $ac_includes_default
14369 struct { char filler; short field; } pgac_struct;
14370 #ifdef F77_DUMMY_MAIN
14371 #  ifdef __cplusplus
14372      extern "C"
14373 #  endif
14374    int F77_DUMMY_MAIN() { return 1; }
14375 #endif
14376 int
14377 main ()
14378 {
14379 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14380 test_array [0] = 0
14381
14382   ;
14383   return 0;
14384 }
14385 _ACEOF
14386 rm -f conftest.$ac_objext
14387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14388   (eval $ac_compile) 2>&5
14389   ac_status=$?
14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); } &&
14392          { ac_try='test -s conftest.$ac_objext'
14393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394   (eval $ac_try) 2>&5
14395   ac_status=$?
14396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397   (exit $ac_status); }; }; then
14398   ac_hi=$ac_mid; break
14399 else
14400   echo "$as_me: failed program was:" >&5
14401 cat conftest.$ac_ext >&5
14402 ac_lo=`expr $ac_mid + 1`
14403                     if test $ac_lo -le $ac_mid; then
14404                       ac_lo= ac_hi=
14405                       break
14406                     fi
14407                     ac_mid=`expr 2 '*' $ac_mid + 1`
14408 fi
14409 rm -f conftest.$ac_objext conftest.$ac_ext
14410   done
14411 else
14412   echo "$as_me: failed program was:" >&5
14413 cat conftest.$ac_ext >&5
14414 cat >conftest.$ac_ext <<_ACEOF
14415 #line $LINENO "configure"
14416 #include "confdefs.h"
14417 $ac_includes_default
14418 struct { char filler; short field; } pgac_struct;
14419 #ifdef F77_DUMMY_MAIN
14420 #  ifdef __cplusplus
14421      extern "C"
14422 #  endif
14423    int F77_DUMMY_MAIN() { return 1; }
14424 #endif
14425 int
14426 main ()
14427 {
14428 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14429 test_array [0] = 0
14430
14431   ;
14432   return 0;
14433 }
14434 _ACEOF
14435 rm -f conftest.$ac_objext
14436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14437   (eval $ac_compile) 2>&5
14438   ac_status=$?
14439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440   (exit $ac_status); } &&
14441          { ac_try='test -s conftest.$ac_objext'
14442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443   (eval $ac_try) 2>&5
14444   ac_status=$?
14445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446   (exit $ac_status); }; }; then
14447   ac_hi=-1 ac_mid=-1
14448   while :; do
14449     cat >conftest.$ac_ext <<_ACEOF
14450 #line $LINENO "configure"
14451 #include "confdefs.h"
14452 $ac_includes_default
14453 struct { char filler; short field; } pgac_struct;
14454 #ifdef F77_DUMMY_MAIN
14455 #  ifdef __cplusplus
14456      extern "C"
14457 #  endif
14458    int F77_DUMMY_MAIN() { return 1; }
14459 #endif
14460 int
14461 main ()
14462 {
14463 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14464 test_array [0] = 0
14465
14466   ;
14467   return 0;
14468 }
14469 _ACEOF
14470 rm -f conftest.$ac_objext
14471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14472   (eval $ac_compile) 2>&5
14473   ac_status=$?
14474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475   (exit $ac_status); } &&
14476          { ac_try='test -s conftest.$ac_objext'
14477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478   (eval $ac_try) 2>&5
14479   ac_status=$?
14480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481   (exit $ac_status); }; }; then
14482   ac_lo=$ac_mid; break
14483 else
14484   echo "$as_me: failed program was:" >&5
14485 cat conftest.$ac_ext >&5
14486 ac_hi=`expr '(' $ac_mid ')' - 1`
14487                        if test $ac_mid -le $ac_hi; then
14488                          ac_lo= ac_hi=
14489                          break
14490                        fi
14491                        ac_mid=`expr 2 '*' $ac_mid`
14492 fi
14493 rm -f conftest.$ac_objext conftest.$ac_ext
14494   done
14495 else
14496   echo "$as_me: failed program was:" >&5
14497 cat conftest.$ac_ext >&5
14498 ac_lo= ac_hi=
14499 fi
14500 rm -f conftest.$ac_objext conftest.$ac_ext
14501 fi
14502 rm -f conftest.$ac_objext conftest.$ac_ext
14503 # Binary search between lo and hi bounds.
14504 while test "x$ac_lo" != "x$ac_hi"; do
14505   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14506   cat >conftest.$ac_ext <<_ACEOF
14507 #line $LINENO "configure"
14508 #include "confdefs.h"
14509 $ac_includes_default
14510 struct { char filler; short field; } pgac_struct;
14511 #ifdef F77_DUMMY_MAIN
14512 #  ifdef __cplusplus
14513      extern "C"
14514 #  endif
14515    int F77_DUMMY_MAIN() { return 1; }
14516 #endif
14517 int
14518 main ()
14519 {
14520 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14521 test_array [0] = 0
14522
14523   ;
14524   return 0;
14525 }
14526 _ACEOF
14527 rm -f conftest.$ac_objext
14528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14529   (eval $ac_compile) 2>&5
14530   ac_status=$?
14531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532   (exit $ac_status); } &&
14533          { ac_try='test -s conftest.$ac_objext'
14534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535   (eval $ac_try) 2>&5
14536   ac_status=$?
14537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538   (exit $ac_status); }; }; then
14539   ac_hi=$ac_mid
14540 else
14541   echo "$as_me: failed program was:" >&5
14542 cat conftest.$ac_ext >&5
14543 ac_lo=`expr '(' $ac_mid ')' + 1`
14544 fi
14545 rm -f conftest.$ac_objext conftest.$ac_ext
14546 done
14547 case $ac_lo in
14548 ?*) pgac_cv_alignof_short=$ac_lo;;
14549 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14550 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14551    { (exit 1); exit 1; }; } ;;
14552 esac
14553 else
14554   if test "$cross_compiling" = yes; then
14555   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14556 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14557    { (exit 1); exit 1; }; }
14558 else
14559   cat >conftest.$ac_ext <<_ACEOF
14560 #line $LINENO "configure"
14561 #include "confdefs.h"
14562 $ac_includes_default
14563 struct { char filler; short field; } pgac_struct;
14564 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14565 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14566 #include <stdio.h>
14567 #include <stdlib.h>
14568 #ifdef F77_DUMMY_MAIN
14569 #  ifdef __cplusplus
14570      extern "C"
14571 #  endif
14572    int F77_DUMMY_MAIN() { return 1; }
14573 #endif
14574 int
14575 main ()
14576 {
14577
14578   FILE *f = fopen ("conftest.val", "w");
14579   if (! f)
14580     exit (1);
14581   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14582     {
14583       long i = longval ();
14584       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14585         exit (1);
14586       fprintf (f, "%ld\n", i);
14587     }
14588   else
14589     {
14590       unsigned long i = ulongval ();
14591       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14592         exit (1);
14593       fprintf (f, "%lu\n", i);
14594     }
14595   exit (ferror (f) || fclose (f) != 0);
14596
14597   ;
14598   return 0;
14599 }
14600 _ACEOF
14601 rm -f conftest$ac_exeext
14602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14603   (eval $ac_link) 2>&5
14604   ac_status=$?
14605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608   (eval $ac_try) 2>&5
14609   ac_status=$?
14610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611   (exit $ac_status); }; }; then
14612   pgac_cv_alignof_short=`cat conftest.val`
14613 else
14614   echo "$as_me: program exited with status $ac_status" >&5
14615 echo "$as_me: failed program was:" >&5
14616 cat conftest.$ac_ext >&5
14617 ( exit $ac_status )
14618 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14619 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14620    { (exit 1); exit 1; }; }
14621 fi
14622 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14623 fi
14624 fi
14625 rm -f conftest.val
14626 else
14627   pgac_cv_alignof_short=0
14628 fi
14629 fi
14630 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
14631 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
14632 cat >>confdefs.h <<_ACEOF
14633 #define ALIGNOF_SHORT $pgac_cv_alignof_short
14634 _ACEOF
14635
14636
14637 echo "$as_me:$LINENO: checking for int" >&5
14638 echo $ECHO_N "checking for int... $ECHO_C" >&6
14639 if test "${ac_cv_type_int+set}" = set; then
14640   echo $ECHO_N "(cached) $ECHO_C" >&6
14641 else
14642   cat >conftest.$ac_ext <<_ACEOF
14643 #line $LINENO "configure"
14644 #include "confdefs.h"
14645 $ac_includes_default
14646 #ifdef F77_DUMMY_MAIN
14647 #  ifdef __cplusplus
14648      extern "C"
14649 #  endif
14650    int F77_DUMMY_MAIN() { return 1; }
14651 #endif
14652 int
14653 main ()
14654 {
14655 if ((int *) 0)
14656   return 0;
14657 if (sizeof (int))
14658   return 0;
14659   ;
14660   return 0;
14661 }
14662 _ACEOF
14663 rm -f conftest.$ac_objext
14664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14665   (eval $ac_compile) 2>&5
14666   ac_status=$?
14667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668   (exit $ac_status); } &&
14669          { ac_try='test -s conftest.$ac_objext'
14670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14671   (eval $ac_try) 2>&5
14672   ac_status=$?
14673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674   (exit $ac_status); }; }; then
14675   ac_cv_type_int=yes
14676 else
14677   echo "$as_me: failed program was:" >&5
14678 cat conftest.$ac_ext >&5
14679 ac_cv_type_int=no
14680 fi
14681 rm -f conftest.$ac_objext conftest.$ac_ext
14682 fi
14683 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14684 echo "${ECHO_T}$ac_cv_type_int" >&6
14685
14686 echo "$as_me:$LINENO: checking alignment of int" >&5
14687 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14688 if test "${pgac_cv_alignof_int+set}" = set; then
14689   echo $ECHO_N "(cached) $ECHO_C" >&6
14690 else
14691   if test "$ac_cv_type_int" = yes; then
14692   if test "$cross_compiling" = yes; then
14693   # Depending upon the size, compute the lo and hi bounds.
14694 cat >conftest.$ac_ext <<_ACEOF
14695 #line $LINENO "configure"
14696 #include "confdefs.h"
14697 $ac_includes_default
14698 struct { char filler; int field; } pgac_struct;
14699 #ifdef F77_DUMMY_MAIN
14700 #  ifdef __cplusplus
14701      extern "C"
14702 #  endif
14703    int F77_DUMMY_MAIN() { return 1; }
14704 #endif
14705 int
14706 main ()
14707 {
14708 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14709 test_array [0] = 0
14710
14711   ;
14712   return 0;
14713 }
14714 _ACEOF
14715 rm -f conftest.$ac_objext
14716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14717   (eval $ac_compile) 2>&5
14718   ac_status=$?
14719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720   (exit $ac_status); } &&
14721          { ac_try='test -s conftest.$ac_objext'
14722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723   (eval $ac_try) 2>&5
14724   ac_status=$?
14725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726   (exit $ac_status); }; }; then
14727   ac_lo=0 ac_mid=0
14728   while :; do
14729     cat >conftest.$ac_ext <<_ACEOF
14730 #line $LINENO "configure"
14731 #include "confdefs.h"
14732 $ac_includes_default
14733 struct { char filler; int field; } pgac_struct;
14734 #ifdef F77_DUMMY_MAIN
14735 #  ifdef __cplusplus
14736      extern "C"
14737 #  endif
14738    int F77_DUMMY_MAIN() { return 1; }
14739 #endif
14740 int
14741 main ()
14742 {
14743 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14744 test_array [0] = 0
14745
14746   ;
14747   return 0;
14748 }
14749 _ACEOF
14750 rm -f conftest.$ac_objext
14751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14752   (eval $ac_compile) 2>&5
14753   ac_status=$?
14754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755   (exit $ac_status); } &&
14756          { ac_try='test -s conftest.$ac_objext'
14757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758   (eval $ac_try) 2>&5
14759   ac_status=$?
14760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761   (exit $ac_status); }; }; then
14762   ac_hi=$ac_mid; break
14763 else
14764   echo "$as_me: failed program was:" >&5
14765 cat conftest.$ac_ext >&5
14766 ac_lo=`expr $ac_mid + 1`
14767                     if test $ac_lo -le $ac_mid; then
14768                       ac_lo= ac_hi=
14769                       break
14770                     fi
14771                     ac_mid=`expr 2 '*' $ac_mid + 1`
14772 fi
14773 rm -f conftest.$ac_objext conftest.$ac_ext
14774   done
14775 else
14776   echo "$as_me: failed program was:" >&5
14777 cat conftest.$ac_ext >&5
14778 cat >conftest.$ac_ext <<_ACEOF
14779 #line $LINENO "configure"
14780 #include "confdefs.h"
14781 $ac_includes_default
14782 struct { char filler; int field; } pgac_struct;
14783 #ifdef F77_DUMMY_MAIN
14784 #  ifdef __cplusplus
14785      extern "C"
14786 #  endif
14787    int F77_DUMMY_MAIN() { return 1; }
14788 #endif
14789 int
14790 main ()
14791 {
14792 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14793 test_array [0] = 0
14794
14795   ;
14796   return 0;
14797 }
14798 _ACEOF
14799 rm -f conftest.$ac_objext
14800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14801   (eval $ac_compile) 2>&5
14802   ac_status=$?
14803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804   (exit $ac_status); } &&
14805          { ac_try='test -s conftest.$ac_objext'
14806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14807   (eval $ac_try) 2>&5
14808   ac_status=$?
14809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810   (exit $ac_status); }; }; then
14811   ac_hi=-1 ac_mid=-1
14812   while :; do
14813     cat >conftest.$ac_ext <<_ACEOF
14814 #line $LINENO "configure"
14815 #include "confdefs.h"
14816 $ac_includes_default
14817 struct { char filler; int field; } pgac_struct;
14818 #ifdef F77_DUMMY_MAIN
14819 #  ifdef __cplusplus
14820      extern "C"
14821 #  endif
14822    int F77_DUMMY_MAIN() { return 1; }
14823 #endif
14824 int
14825 main ()
14826 {
14827 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14828 test_array [0] = 0
14829
14830   ;
14831   return 0;
14832 }
14833 _ACEOF
14834 rm -f conftest.$ac_objext
14835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14836   (eval $ac_compile) 2>&5
14837   ac_status=$?
14838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839   (exit $ac_status); } &&
14840          { ac_try='test -s conftest.$ac_objext'
14841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842   (eval $ac_try) 2>&5
14843   ac_status=$?
14844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845   (exit $ac_status); }; }; then
14846   ac_lo=$ac_mid; break
14847 else
14848   echo "$as_me: failed program was:" >&5
14849 cat conftest.$ac_ext >&5
14850 ac_hi=`expr '(' $ac_mid ')' - 1`
14851                        if test $ac_mid -le $ac_hi; then
14852                          ac_lo= ac_hi=
14853                          break
14854                        fi
14855                        ac_mid=`expr 2 '*' $ac_mid`
14856 fi
14857 rm -f conftest.$ac_objext conftest.$ac_ext
14858   done
14859 else
14860   echo "$as_me: failed program was:" >&5
14861 cat conftest.$ac_ext >&5
14862 ac_lo= ac_hi=
14863 fi
14864 rm -f conftest.$ac_objext conftest.$ac_ext
14865 fi
14866 rm -f conftest.$ac_objext conftest.$ac_ext
14867 # Binary search between lo and hi bounds.
14868 while test "x$ac_lo" != "x$ac_hi"; do
14869   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14870   cat >conftest.$ac_ext <<_ACEOF
14871 #line $LINENO "configure"
14872 #include "confdefs.h"
14873 $ac_includes_default
14874 struct { char filler; int field; } pgac_struct;
14875 #ifdef F77_DUMMY_MAIN
14876 #  ifdef __cplusplus
14877      extern "C"
14878 #  endif
14879    int F77_DUMMY_MAIN() { return 1; }
14880 #endif
14881 int
14882 main ()
14883 {
14884 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14885 test_array [0] = 0
14886
14887   ;
14888   return 0;
14889 }
14890 _ACEOF
14891 rm -f conftest.$ac_objext
14892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14893   (eval $ac_compile) 2>&5
14894   ac_status=$?
14895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896   (exit $ac_status); } &&
14897          { ac_try='test -s conftest.$ac_objext'
14898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899   (eval $ac_try) 2>&5
14900   ac_status=$?
14901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902   (exit $ac_status); }; }; then
14903   ac_hi=$ac_mid
14904 else
14905   echo "$as_me: failed program was:" >&5
14906 cat conftest.$ac_ext >&5
14907 ac_lo=`expr '(' $ac_mid ')' + 1`
14908 fi
14909 rm -f conftest.$ac_objext conftest.$ac_ext
14910 done
14911 case $ac_lo in
14912 ?*) pgac_cv_alignof_int=$ac_lo;;
14913 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14914 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14915    { (exit 1); exit 1; }; } ;;
14916 esac
14917 else
14918   if test "$cross_compiling" = yes; then
14919   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14920 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14921    { (exit 1); exit 1; }; }
14922 else
14923   cat >conftest.$ac_ext <<_ACEOF
14924 #line $LINENO "configure"
14925 #include "confdefs.h"
14926 $ac_includes_default
14927 struct { char filler; int field; } pgac_struct;
14928 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14929 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14930 #include <stdio.h>
14931 #include <stdlib.h>
14932 #ifdef F77_DUMMY_MAIN
14933 #  ifdef __cplusplus
14934      extern "C"
14935 #  endif
14936    int F77_DUMMY_MAIN() { return 1; }
14937 #endif
14938 int
14939 main ()
14940 {
14941
14942   FILE *f = fopen ("conftest.val", "w");
14943   if (! f)
14944     exit (1);
14945   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14946     {
14947       long i = longval ();
14948       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14949         exit (1);
14950       fprintf (f, "%ld\n", i);
14951     }
14952   else
14953     {
14954       unsigned long i = ulongval ();
14955       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14956         exit (1);
14957       fprintf (f, "%lu\n", i);
14958     }
14959   exit (ferror (f) || fclose (f) != 0);
14960
14961   ;
14962   return 0;
14963 }
14964 _ACEOF
14965 rm -f conftest$ac_exeext
14966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14967   (eval $ac_link) 2>&5
14968   ac_status=$?
14969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972   (eval $ac_try) 2>&5
14973   ac_status=$?
14974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975   (exit $ac_status); }; }; then
14976   pgac_cv_alignof_int=`cat conftest.val`
14977 else
14978   echo "$as_me: program exited with status $ac_status" >&5
14979 echo "$as_me: failed program was:" >&5
14980 cat conftest.$ac_ext >&5
14981 ( exit $ac_status )
14982 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14983 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14984    { (exit 1); exit 1; }; }
14985 fi
14986 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14987 fi
14988 fi
14989 rm -f conftest.val
14990 else
14991   pgac_cv_alignof_int=0
14992 fi
14993 fi
14994 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14995 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14996 cat >>confdefs.h <<_ACEOF
14997 #define ALIGNOF_INT $pgac_cv_alignof_int
14998 _ACEOF
14999
15000
15001 echo "$as_me:$LINENO: checking for long" >&5
15002 echo $ECHO_N "checking for long... $ECHO_C" >&6
15003 if test "${ac_cv_type_long+set}" = set; then
15004   echo $ECHO_N "(cached) $ECHO_C" >&6
15005 else
15006   cat >conftest.$ac_ext <<_ACEOF
15007 #line $LINENO "configure"
15008 #include "confdefs.h"
15009 $ac_includes_default
15010 #ifdef F77_DUMMY_MAIN
15011 #  ifdef __cplusplus
15012      extern "C"
15013 #  endif
15014    int F77_DUMMY_MAIN() { return 1; }
15015 #endif
15016 int
15017 main ()
15018 {
15019 if ((long *) 0)
15020   return 0;
15021 if (sizeof (long))
15022   return 0;
15023   ;
15024   return 0;
15025 }
15026 _ACEOF
15027 rm -f conftest.$ac_objext
15028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15029   (eval $ac_compile) 2>&5
15030   ac_status=$?
15031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032   (exit $ac_status); } &&
15033          { ac_try='test -s conftest.$ac_objext'
15034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15035   (eval $ac_try) 2>&5
15036   ac_status=$?
15037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038   (exit $ac_status); }; }; then
15039   ac_cv_type_long=yes
15040 else
15041   echo "$as_me: failed program was:" >&5
15042 cat conftest.$ac_ext >&5
15043 ac_cv_type_long=no
15044 fi
15045 rm -f conftest.$ac_objext conftest.$ac_ext
15046 fi
15047 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15048 echo "${ECHO_T}$ac_cv_type_long" >&6
15049
15050 echo "$as_me:$LINENO: checking alignment of long" >&5
15051 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
15052 if test "${pgac_cv_alignof_long+set}" = set; then
15053   echo $ECHO_N "(cached) $ECHO_C" >&6
15054 else
15055   if test "$ac_cv_type_long" = yes; then
15056   if test "$cross_compiling" = yes; then
15057   # Depending upon the size, compute the lo and hi bounds.
15058 cat >conftest.$ac_ext <<_ACEOF
15059 #line $LINENO "configure"
15060 #include "confdefs.h"
15061 $ac_includes_default
15062 struct { char filler; long field; } pgac_struct;
15063 #ifdef F77_DUMMY_MAIN
15064 #  ifdef __cplusplus
15065      extern "C"
15066 #  endif
15067    int F77_DUMMY_MAIN() { return 1; }
15068 #endif
15069 int
15070 main ()
15071 {
15072 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15073 test_array [0] = 0
15074
15075   ;
15076   return 0;
15077 }
15078 _ACEOF
15079 rm -f conftest.$ac_objext
15080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15081   (eval $ac_compile) 2>&5
15082   ac_status=$?
15083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084   (exit $ac_status); } &&
15085          { ac_try='test -s conftest.$ac_objext'
15086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15087   (eval $ac_try) 2>&5
15088   ac_status=$?
15089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090   (exit $ac_status); }; }; then
15091   ac_lo=0 ac_mid=0
15092   while :; do
15093     cat >conftest.$ac_ext <<_ACEOF
15094 #line $LINENO "configure"
15095 #include "confdefs.h"
15096 $ac_includes_default
15097 struct { char filler; long field; } pgac_struct;
15098 #ifdef F77_DUMMY_MAIN
15099 #  ifdef __cplusplus
15100      extern "C"
15101 #  endif
15102    int F77_DUMMY_MAIN() { return 1; }
15103 #endif
15104 int
15105 main ()
15106 {
15107 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15108 test_array [0] = 0
15109
15110   ;
15111   return 0;
15112 }
15113 _ACEOF
15114 rm -f conftest.$ac_objext
15115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15116   (eval $ac_compile) 2>&5
15117   ac_status=$?
15118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119   (exit $ac_status); } &&
15120          { ac_try='test -s conftest.$ac_objext'
15121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15122   (eval $ac_try) 2>&5
15123   ac_status=$?
15124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125   (exit $ac_status); }; }; then
15126   ac_hi=$ac_mid; break
15127 else
15128   echo "$as_me: failed program was:" >&5
15129 cat conftest.$ac_ext >&5
15130 ac_lo=`expr $ac_mid + 1`
15131                     if test $ac_lo -le $ac_mid; then
15132                       ac_lo= ac_hi=
15133                       break
15134                     fi
15135                     ac_mid=`expr 2 '*' $ac_mid + 1`
15136 fi
15137 rm -f conftest.$ac_objext conftest.$ac_ext
15138   done
15139 else
15140   echo "$as_me: failed program was:" >&5
15141 cat conftest.$ac_ext >&5
15142 cat >conftest.$ac_ext <<_ACEOF
15143 #line $LINENO "configure"
15144 #include "confdefs.h"
15145 $ac_includes_default
15146 struct { char filler; long field; } pgac_struct;
15147 #ifdef F77_DUMMY_MAIN
15148 #  ifdef __cplusplus
15149      extern "C"
15150 #  endif
15151    int F77_DUMMY_MAIN() { return 1; }
15152 #endif
15153 int
15154 main ()
15155 {
15156 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15157 test_array [0] = 0
15158
15159   ;
15160   return 0;
15161 }
15162 _ACEOF
15163 rm -f conftest.$ac_objext
15164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15165   (eval $ac_compile) 2>&5
15166   ac_status=$?
15167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168   (exit $ac_status); } &&
15169          { ac_try='test -s conftest.$ac_objext'
15170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15171   (eval $ac_try) 2>&5
15172   ac_status=$?
15173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174   (exit $ac_status); }; }; then
15175   ac_hi=-1 ac_mid=-1
15176   while :; do
15177     cat >conftest.$ac_ext <<_ACEOF
15178 #line $LINENO "configure"
15179 #include "confdefs.h"
15180 $ac_includes_default
15181 struct { char filler; long field; } pgac_struct;
15182 #ifdef F77_DUMMY_MAIN
15183 #  ifdef __cplusplus
15184      extern "C"
15185 #  endif
15186    int F77_DUMMY_MAIN() { return 1; }
15187 #endif
15188 int
15189 main ()
15190 {
15191 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15192 test_array [0] = 0
15193
15194   ;
15195   return 0;
15196 }
15197 _ACEOF
15198 rm -f conftest.$ac_objext
15199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15200   (eval $ac_compile) 2>&5
15201   ac_status=$?
15202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203   (exit $ac_status); } &&
15204          { ac_try='test -s conftest.$ac_objext'
15205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15206   (eval $ac_try) 2>&5
15207   ac_status=$?
15208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209   (exit $ac_status); }; }; then
15210   ac_lo=$ac_mid; break
15211 else
15212   echo "$as_me: failed program was:" >&5
15213 cat conftest.$ac_ext >&5
15214 ac_hi=`expr '(' $ac_mid ')' - 1`
15215                        if test $ac_mid -le $ac_hi; then
15216                          ac_lo= ac_hi=
15217                          break
15218                        fi
15219                        ac_mid=`expr 2 '*' $ac_mid`
15220 fi
15221 rm -f conftest.$ac_objext conftest.$ac_ext
15222   done
15223 else
15224   echo "$as_me: failed program was:" >&5
15225 cat conftest.$ac_ext >&5
15226 ac_lo= ac_hi=
15227 fi
15228 rm -f conftest.$ac_objext conftest.$ac_ext
15229 fi
15230 rm -f conftest.$ac_objext conftest.$ac_ext
15231 # Binary search between lo and hi bounds.
15232 while test "x$ac_lo" != "x$ac_hi"; do
15233   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15234   cat >conftest.$ac_ext <<_ACEOF
15235 #line $LINENO "configure"
15236 #include "confdefs.h"
15237 $ac_includes_default
15238 struct { char filler; long 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_hi=$ac_mid
15268 else
15269   echo "$as_me: failed program was:" >&5
15270 cat conftest.$ac_ext >&5
15271 ac_lo=`expr '(' $ac_mid ')' + 1`
15272 fi
15273 rm -f conftest.$ac_objext conftest.$ac_ext
15274 done
15275 case $ac_lo in
15276 ?*) pgac_cv_alignof_long=$ac_lo;;
15277 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15278 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15279    { (exit 1); exit 1; }; } ;;
15280 esac
15281 else
15282   if test "$cross_compiling" = yes; then
15283   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15284 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15285    { (exit 1); exit 1; }; }
15286 else
15287   cat >conftest.$ac_ext <<_ACEOF
15288 #line $LINENO "configure"
15289 #include "confdefs.h"
15290 $ac_includes_default
15291 struct { char filler; long field; } pgac_struct;
15292 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15293 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15294 #include <stdio.h>
15295 #include <stdlib.h>
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
15306   FILE *f = fopen ("conftest.val", "w");
15307   if (! f)
15308     exit (1);
15309   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15310     {
15311       long i = longval ();
15312       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15313         exit (1);
15314       fprintf (f, "%ld\n", i);
15315     }
15316   else
15317     {
15318       unsigned long i = ulongval ();
15319       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15320         exit (1);
15321       fprintf (f, "%lu\n", i);
15322     }
15323   exit (ferror (f) || fclose (f) != 0);
15324
15325   ;
15326   return 0;
15327 }
15328 _ACEOF
15329 rm -f conftest$ac_exeext
15330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15331   (eval $ac_link) 2>&5
15332   ac_status=$?
15333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15336   (eval $ac_try) 2>&5
15337   ac_status=$?
15338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339   (exit $ac_status); }; }; then
15340   pgac_cv_alignof_long=`cat conftest.val`
15341 else
15342   echo "$as_me: program exited with status $ac_status" >&5
15343 echo "$as_me: failed program was:" >&5
15344 cat conftest.$ac_ext >&5
15345 ( exit $ac_status )
15346 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15347 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15348    { (exit 1); exit 1; }; }
15349 fi
15350 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15351 fi
15352 fi
15353 rm -f conftest.val
15354 else
15355   pgac_cv_alignof_long=0
15356 fi
15357 fi
15358 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
15359 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
15360 cat >>confdefs.h <<_ACEOF
15361 #define ALIGNOF_LONG $pgac_cv_alignof_long
15362 _ACEOF
15363
15364
15365 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
15366   echo "$as_me:$LINENO: checking for long long int" >&5
15367 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15368 if test "${ac_cv_type_long_long_int+set}" = set; then
15369   echo $ECHO_N "(cached) $ECHO_C" >&6
15370 else
15371   cat >conftest.$ac_ext <<_ACEOF
15372 #line $LINENO "configure"
15373 #include "confdefs.h"
15374 $ac_includes_default
15375 #ifdef F77_DUMMY_MAIN
15376 #  ifdef __cplusplus
15377      extern "C"
15378 #  endif
15379    int F77_DUMMY_MAIN() { return 1; }
15380 #endif
15381 int
15382 main ()
15383 {
15384 if ((long long int *) 0)
15385   return 0;
15386 if (sizeof (long long int))
15387   return 0;
15388   ;
15389   return 0;
15390 }
15391 _ACEOF
15392 rm -f conftest.$ac_objext
15393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15394   (eval $ac_compile) 2>&5
15395   ac_status=$?
15396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397   (exit $ac_status); } &&
15398          { ac_try='test -s conftest.$ac_objext'
15399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400   (eval $ac_try) 2>&5
15401   ac_status=$?
15402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403   (exit $ac_status); }; }; then
15404   ac_cv_type_long_long_int=yes
15405 else
15406   echo "$as_me: failed program was:" >&5
15407 cat conftest.$ac_ext >&5
15408 ac_cv_type_long_long_int=no
15409 fi
15410 rm -f conftest.$ac_objext conftest.$ac_ext
15411 fi
15412 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15413 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15414
15415 echo "$as_me:$LINENO: checking alignment of long long int" >&5
15416 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
15417 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
15418   echo $ECHO_N "(cached) $ECHO_C" >&6
15419 else
15420   if test "$ac_cv_type_long_long_int" = yes; then
15421   if test "$cross_compiling" = yes; then
15422   # Depending upon the size, compute the lo and hi bounds.
15423 cat >conftest.$ac_ext <<_ACEOF
15424 #line $LINENO "configure"
15425 #include "confdefs.h"
15426 $ac_includes_default
15427 struct { char filler; long long int field; } pgac_struct;
15428 #ifdef F77_DUMMY_MAIN
15429 #  ifdef __cplusplus
15430      extern "C"
15431 #  endif
15432    int F77_DUMMY_MAIN() { return 1; }
15433 #endif
15434 int
15435 main ()
15436 {
15437 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15438 test_array [0] = 0
15439
15440   ;
15441   return 0;
15442 }
15443 _ACEOF
15444 rm -f conftest.$ac_objext
15445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15446   (eval $ac_compile) 2>&5
15447   ac_status=$?
15448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449   (exit $ac_status); } &&
15450          { ac_try='test -s conftest.$ac_objext'
15451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452   (eval $ac_try) 2>&5
15453   ac_status=$?
15454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455   (exit $ac_status); }; }; then
15456   ac_lo=0 ac_mid=0
15457   while :; do
15458     cat >conftest.$ac_ext <<_ACEOF
15459 #line $LINENO "configure"
15460 #include "confdefs.h"
15461 $ac_includes_default
15462 struct { char filler; long long int field; } pgac_struct;
15463 #ifdef F77_DUMMY_MAIN
15464 #  ifdef __cplusplus
15465      extern "C"
15466 #  endif
15467    int F77_DUMMY_MAIN() { return 1; }
15468 #endif
15469 int
15470 main ()
15471 {
15472 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15473 test_array [0] = 0
15474
15475   ;
15476   return 0;
15477 }
15478 _ACEOF
15479 rm -f conftest.$ac_objext
15480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15481   (eval $ac_compile) 2>&5
15482   ac_status=$?
15483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484   (exit $ac_status); } &&
15485          { ac_try='test -s conftest.$ac_objext'
15486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487   (eval $ac_try) 2>&5
15488   ac_status=$?
15489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490   (exit $ac_status); }; }; then
15491   ac_hi=$ac_mid; break
15492 else
15493   echo "$as_me: failed program was:" >&5
15494 cat conftest.$ac_ext >&5
15495 ac_lo=`expr $ac_mid + 1`
15496                     if test $ac_lo -le $ac_mid; then
15497                       ac_lo= ac_hi=
15498                       break
15499                     fi
15500                     ac_mid=`expr 2 '*' $ac_mid + 1`
15501 fi
15502 rm -f conftest.$ac_objext conftest.$ac_ext
15503   done
15504 else
15505   echo "$as_me: failed program was:" >&5
15506 cat conftest.$ac_ext >&5
15507 cat >conftest.$ac_ext <<_ACEOF
15508 #line $LINENO "configure"
15509 #include "confdefs.h"
15510 $ac_includes_default
15511 struct { char filler; long long int field; } pgac_struct;
15512 #ifdef F77_DUMMY_MAIN
15513 #  ifdef __cplusplus
15514      extern "C"
15515 #  endif
15516    int F77_DUMMY_MAIN() { return 1; }
15517 #endif
15518 int
15519 main ()
15520 {
15521 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15522 test_array [0] = 0
15523
15524   ;
15525   return 0;
15526 }
15527 _ACEOF
15528 rm -f conftest.$ac_objext
15529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15530   (eval $ac_compile) 2>&5
15531   ac_status=$?
15532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533   (exit $ac_status); } &&
15534          { ac_try='test -s conftest.$ac_objext'
15535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15536   (eval $ac_try) 2>&5
15537   ac_status=$?
15538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539   (exit $ac_status); }; }; then
15540   ac_hi=-1 ac_mid=-1
15541   while :; do
15542     cat >conftest.$ac_ext <<_ACEOF
15543 #line $LINENO "configure"
15544 #include "confdefs.h"
15545 $ac_includes_default
15546 struct { char filler; long long int field; } pgac_struct;
15547 #ifdef F77_DUMMY_MAIN
15548 #  ifdef __cplusplus
15549      extern "C"
15550 #  endif
15551    int F77_DUMMY_MAIN() { return 1; }
15552 #endif
15553 int
15554 main ()
15555 {
15556 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15557 test_array [0] = 0
15558
15559   ;
15560   return 0;
15561 }
15562 _ACEOF
15563 rm -f conftest.$ac_objext
15564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15565   (eval $ac_compile) 2>&5
15566   ac_status=$?
15567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568   (exit $ac_status); } &&
15569          { ac_try='test -s conftest.$ac_objext'
15570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15571   (eval $ac_try) 2>&5
15572   ac_status=$?
15573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574   (exit $ac_status); }; }; then
15575   ac_lo=$ac_mid; break
15576 else
15577   echo "$as_me: failed program was:" >&5
15578 cat conftest.$ac_ext >&5
15579 ac_hi=`expr '(' $ac_mid ')' - 1`
15580                        if test $ac_mid -le $ac_hi; then
15581                          ac_lo= ac_hi=
15582                          break
15583                        fi
15584                        ac_mid=`expr 2 '*' $ac_mid`
15585 fi
15586 rm -f conftest.$ac_objext conftest.$ac_ext
15587   done
15588 else
15589   echo "$as_me: failed program was:" >&5
15590 cat conftest.$ac_ext >&5
15591 ac_lo= ac_hi=
15592 fi
15593 rm -f conftest.$ac_objext conftest.$ac_ext
15594 fi
15595 rm -f conftest.$ac_objext conftest.$ac_ext
15596 # Binary search between lo and hi bounds.
15597 while test "x$ac_lo" != "x$ac_hi"; do
15598   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15599   cat >conftest.$ac_ext <<_ACEOF
15600 #line $LINENO "configure"
15601 #include "confdefs.h"
15602 $ac_includes_default
15603 struct { char filler; long long int field; } pgac_struct;
15604 #ifdef F77_DUMMY_MAIN
15605 #  ifdef __cplusplus
15606      extern "C"
15607 #  endif
15608    int F77_DUMMY_MAIN() { return 1; }
15609 #endif
15610 int
15611 main ()
15612 {
15613 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15614 test_array [0] = 0
15615
15616   ;
15617   return 0;
15618 }
15619 _ACEOF
15620 rm -f conftest.$ac_objext
15621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15622   (eval $ac_compile) 2>&5
15623   ac_status=$?
15624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625   (exit $ac_status); } &&
15626          { ac_try='test -s conftest.$ac_objext'
15627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15628   (eval $ac_try) 2>&5
15629   ac_status=$?
15630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631   (exit $ac_status); }; }; then
15632   ac_hi=$ac_mid
15633 else
15634   echo "$as_me: failed program was:" >&5
15635 cat conftest.$ac_ext >&5
15636 ac_lo=`expr '(' $ac_mid ')' + 1`
15637 fi
15638 rm -f conftest.$ac_objext conftest.$ac_ext
15639 done
15640 case $ac_lo in
15641 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
15642 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15643 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15644    { (exit 1); exit 1; }; } ;;
15645 esac
15646 else
15647   if test "$cross_compiling" = yes; then
15648   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15649 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15650    { (exit 1); exit 1; }; }
15651 else
15652   cat >conftest.$ac_ext <<_ACEOF
15653 #line $LINENO "configure"
15654 #include "confdefs.h"
15655 $ac_includes_default
15656 struct { char filler; long long int field; } pgac_struct;
15657 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15658 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15659 #include <stdio.h>
15660 #include <stdlib.h>
15661 #ifdef F77_DUMMY_MAIN
15662 #  ifdef __cplusplus
15663      extern "C"
15664 #  endif
15665    int F77_DUMMY_MAIN() { return 1; }
15666 #endif
15667 int
15668 main ()
15669 {
15670
15671   FILE *f = fopen ("conftest.val", "w");
15672   if (! f)
15673     exit (1);
15674   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15675     {
15676       long i = longval ();
15677       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15678         exit (1);
15679       fprintf (f, "%ld\n", i);
15680     }
15681   else
15682     {
15683       unsigned long i = ulongval ();
15684       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15685         exit (1);
15686       fprintf (f, "%lu\n", i);
15687     }
15688   exit (ferror (f) || fclose (f) != 0);
15689
15690   ;
15691   return 0;
15692 }
15693 _ACEOF
15694 rm -f conftest$ac_exeext
15695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15696   (eval $ac_link) 2>&5
15697   ac_status=$?
15698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15701   (eval $ac_try) 2>&5
15702   ac_status=$?
15703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704   (exit $ac_status); }; }; then
15705   pgac_cv_alignof_long_long_int=`cat conftest.val`
15706 else
15707   echo "$as_me: program exited with status $ac_status" >&5
15708 echo "$as_me: failed program was:" >&5
15709 cat conftest.$ac_ext >&5
15710 ( exit $ac_status )
15711 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15712 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15713    { (exit 1); exit 1; }; }
15714 fi
15715 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15716 fi
15717 fi
15718 rm -f conftest.val
15719 else
15720   pgac_cv_alignof_long_long_int=0
15721 fi
15722 fi
15723 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
15724 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
15725 cat >>confdefs.h <<_ACEOF
15726 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
15727 _ACEOF
15728
15729
15730 fi
15731 echo "$as_me:$LINENO: checking for double" >&5
15732 echo $ECHO_N "checking for double... $ECHO_C" >&6
15733 if test "${ac_cv_type_double+set}" = set; then
15734   echo $ECHO_N "(cached) $ECHO_C" >&6
15735 else
15736   cat >conftest.$ac_ext <<_ACEOF
15737 #line $LINENO "configure"
15738 #include "confdefs.h"
15739 $ac_includes_default
15740 #ifdef F77_DUMMY_MAIN
15741 #  ifdef __cplusplus
15742      extern "C"
15743 #  endif
15744    int F77_DUMMY_MAIN() { return 1; }
15745 #endif
15746 int
15747 main ()
15748 {
15749 if ((double *) 0)
15750   return 0;
15751 if (sizeof (double))
15752   return 0;
15753   ;
15754   return 0;
15755 }
15756 _ACEOF
15757 rm -f conftest.$ac_objext
15758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15759   (eval $ac_compile) 2>&5
15760   ac_status=$?
15761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762   (exit $ac_status); } &&
15763          { ac_try='test -s conftest.$ac_objext'
15764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15765   (eval $ac_try) 2>&5
15766   ac_status=$?
15767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768   (exit $ac_status); }; }; then
15769   ac_cv_type_double=yes
15770 else
15771   echo "$as_me: failed program was:" >&5
15772 cat conftest.$ac_ext >&5
15773 ac_cv_type_double=no
15774 fi
15775 rm -f conftest.$ac_objext conftest.$ac_ext
15776 fi
15777 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15778 echo "${ECHO_T}$ac_cv_type_double" >&6
15779
15780 echo "$as_me:$LINENO: checking alignment of double" >&5
15781 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15782 if test "${pgac_cv_alignof_double+set}" = set; then
15783   echo $ECHO_N "(cached) $ECHO_C" >&6
15784 else
15785   if test "$ac_cv_type_double" = yes; then
15786   if test "$cross_compiling" = yes; then
15787   # Depending upon the size, compute the lo and hi bounds.
15788 cat >conftest.$ac_ext <<_ACEOF
15789 #line $LINENO "configure"
15790 #include "confdefs.h"
15791 $ac_includes_default
15792 struct { char filler; double field; } pgac_struct;
15793 #ifdef F77_DUMMY_MAIN
15794 #  ifdef __cplusplus
15795      extern "C"
15796 #  endif
15797    int F77_DUMMY_MAIN() { return 1; }
15798 #endif
15799 int
15800 main ()
15801 {
15802 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15803 test_array [0] = 0
15804
15805   ;
15806   return 0;
15807 }
15808 _ACEOF
15809 rm -f conftest.$ac_objext
15810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15811   (eval $ac_compile) 2>&5
15812   ac_status=$?
15813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814   (exit $ac_status); } &&
15815          { ac_try='test -s conftest.$ac_objext'
15816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15817   (eval $ac_try) 2>&5
15818   ac_status=$?
15819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820   (exit $ac_status); }; }; then
15821   ac_lo=0 ac_mid=0
15822   while :; do
15823     cat >conftest.$ac_ext <<_ACEOF
15824 #line $LINENO "configure"
15825 #include "confdefs.h"
15826 $ac_includes_default
15827 struct { char filler; double field; } pgac_struct;
15828 #ifdef F77_DUMMY_MAIN
15829 #  ifdef __cplusplus
15830      extern "C"
15831 #  endif
15832    int F77_DUMMY_MAIN() { return 1; }
15833 #endif
15834 int
15835 main ()
15836 {
15837 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15838 test_array [0] = 0
15839
15840   ;
15841   return 0;
15842 }
15843 _ACEOF
15844 rm -f conftest.$ac_objext
15845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15846   (eval $ac_compile) 2>&5
15847   ac_status=$?
15848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849   (exit $ac_status); } &&
15850          { ac_try='test -s conftest.$ac_objext'
15851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15852   (eval $ac_try) 2>&5
15853   ac_status=$?
15854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855   (exit $ac_status); }; }; then
15856   ac_hi=$ac_mid; break
15857 else
15858   echo "$as_me: failed program was:" >&5
15859 cat conftest.$ac_ext >&5
15860 ac_lo=`expr $ac_mid + 1`
15861                     if test $ac_lo -le $ac_mid; then
15862                       ac_lo= ac_hi=
15863                       break
15864                     fi
15865                     ac_mid=`expr 2 '*' $ac_mid + 1`
15866 fi
15867 rm -f conftest.$ac_objext conftest.$ac_ext
15868   done
15869 else
15870   echo "$as_me: failed program was:" >&5
15871 cat conftest.$ac_ext >&5
15872 cat >conftest.$ac_ext <<_ACEOF
15873 #line $LINENO "configure"
15874 #include "confdefs.h"
15875 $ac_includes_default
15876 struct { char filler; double field; } pgac_struct;
15877 #ifdef F77_DUMMY_MAIN
15878 #  ifdef __cplusplus
15879      extern "C"
15880 #  endif
15881    int F77_DUMMY_MAIN() { return 1; }
15882 #endif
15883 int
15884 main ()
15885 {
15886 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15887 test_array [0] = 0
15888
15889   ;
15890   return 0;
15891 }
15892 _ACEOF
15893 rm -f conftest.$ac_objext
15894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15895   (eval $ac_compile) 2>&5
15896   ac_status=$?
15897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898   (exit $ac_status); } &&
15899          { ac_try='test -s conftest.$ac_objext'
15900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15901   (eval $ac_try) 2>&5
15902   ac_status=$?
15903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904   (exit $ac_status); }; }; then
15905   ac_hi=-1 ac_mid=-1
15906   while :; do
15907     cat >conftest.$ac_ext <<_ACEOF
15908 #line $LINENO "configure"
15909 #include "confdefs.h"
15910 $ac_includes_default
15911 struct { char filler; double field; } pgac_struct;
15912 #ifdef F77_DUMMY_MAIN
15913 #  ifdef __cplusplus
15914      extern "C"
15915 #  endif
15916    int F77_DUMMY_MAIN() { return 1; }
15917 #endif
15918 int
15919 main ()
15920 {
15921 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15922 test_array [0] = 0
15923
15924   ;
15925   return 0;
15926 }
15927 _ACEOF
15928 rm -f conftest.$ac_objext
15929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15930   (eval $ac_compile) 2>&5
15931   ac_status=$?
15932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933   (exit $ac_status); } &&
15934          { ac_try='test -s conftest.$ac_objext'
15935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936   (eval $ac_try) 2>&5
15937   ac_status=$?
15938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939   (exit $ac_status); }; }; then
15940   ac_lo=$ac_mid; break
15941 else
15942   echo "$as_me: failed program was:" >&5
15943 cat conftest.$ac_ext >&5
15944 ac_hi=`expr '(' $ac_mid ')' - 1`
15945                        if test $ac_mid -le $ac_hi; then
15946                          ac_lo= ac_hi=
15947                          break
15948                        fi
15949                        ac_mid=`expr 2 '*' $ac_mid`
15950 fi
15951 rm -f conftest.$ac_objext conftest.$ac_ext
15952   done
15953 else
15954   echo "$as_me: failed program was:" >&5
15955 cat conftest.$ac_ext >&5
15956 ac_lo= ac_hi=
15957 fi
15958 rm -f conftest.$ac_objext conftest.$ac_ext
15959 fi
15960 rm -f conftest.$ac_objext conftest.$ac_ext
15961 # Binary search between lo and hi bounds.
15962 while test "x$ac_lo" != "x$ac_hi"; do
15963   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15964   cat >conftest.$ac_ext <<_ACEOF
15965 #line $LINENO "configure"
15966 #include "confdefs.h"
15967 $ac_includes_default
15968 struct { char filler; double field; } pgac_struct;
15969 #ifdef F77_DUMMY_MAIN
15970 #  ifdef __cplusplus
15971      extern "C"
15972 #  endif
15973    int F77_DUMMY_MAIN() { return 1; }
15974 #endif
15975 int
15976 main ()
15977 {
15978 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15979 test_array [0] = 0
15980
15981   ;
15982   return 0;
15983 }
15984 _ACEOF
15985 rm -f conftest.$ac_objext
15986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15987   (eval $ac_compile) 2>&5
15988   ac_status=$?
15989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990   (exit $ac_status); } &&
15991          { ac_try='test -s conftest.$ac_objext'
15992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993   (eval $ac_try) 2>&5
15994   ac_status=$?
15995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996   (exit $ac_status); }; }; then
15997   ac_hi=$ac_mid
15998 else
15999   echo "$as_me: failed program was:" >&5
16000 cat conftest.$ac_ext >&5
16001 ac_lo=`expr '(' $ac_mid ')' + 1`
16002 fi
16003 rm -f conftest.$ac_objext conftest.$ac_ext
16004 done
16005 case $ac_lo in
16006 ?*) pgac_cv_alignof_double=$ac_lo;;
16007 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16008 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16009    { (exit 1); exit 1; }; } ;;
16010 esac
16011 else
16012   if test "$cross_compiling" = yes; then
16013   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16014 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16015    { (exit 1); exit 1; }; }
16016 else
16017   cat >conftest.$ac_ext <<_ACEOF
16018 #line $LINENO "configure"
16019 #include "confdefs.h"
16020 $ac_includes_default
16021 struct { char filler; double field; } pgac_struct;
16022 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16023 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16024 #include <stdio.h>
16025 #include <stdlib.h>
16026 #ifdef F77_DUMMY_MAIN
16027 #  ifdef __cplusplus
16028      extern "C"
16029 #  endif
16030    int F77_DUMMY_MAIN() { return 1; }
16031 #endif
16032 int
16033 main ()
16034 {
16035
16036   FILE *f = fopen ("conftest.val", "w");
16037   if (! f)
16038     exit (1);
16039   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16040     {
16041       long i = longval ();
16042       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16043         exit (1);
16044       fprintf (f, "%ld\n", i);
16045     }
16046   else
16047     {
16048       unsigned long i = ulongval ();
16049       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16050         exit (1);
16051       fprintf (f, "%lu\n", i);
16052     }
16053   exit (ferror (f) || fclose (f) != 0);
16054
16055   ;
16056   return 0;
16057 }
16058 _ACEOF
16059 rm -f conftest$ac_exeext
16060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16061   (eval $ac_link) 2>&5
16062   ac_status=$?
16063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16066   (eval $ac_try) 2>&5
16067   ac_status=$?
16068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069   (exit $ac_status); }; }; then
16070   pgac_cv_alignof_double=`cat conftest.val`
16071 else
16072   echo "$as_me: program exited with status $ac_status" >&5
16073 echo "$as_me: failed program was:" >&5
16074 cat conftest.$ac_ext >&5
16075 ( exit $ac_status )
16076 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16077 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16078    { (exit 1); exit 1; }; }
16079 fi
16080 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16081 fi
16082 fi
16083 rm -f conftest.val
16084 else
16085   pgac_cv_alignof_double=0
16086 fi
16087 fi
16088 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
16089 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
16090 cat >>confdefs.h <<_ACEOF
16091 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
16092 _ACEOF
16093
16094
16095
16096 # Compute maximum alignment of any basic type.
16097 # We assume long's alignment is at least as strong as char, short, or int;
16098 # but we must check long long (if it exists) and double.
16099
16100 MAX_ALIGNOF=$pgac_cv_alignof_long
16101 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
16102   MAX_ALIGNOF=$pgac_cv_alignof_double
16103 fi
16104 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
16105   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
16106 fi
16107
16108 cat >>confdefs.h <<_ACEOF
16109 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16110 _ACEOF
16111
16112
16113
16114 # Some platforms predefine the types int8, int16, etc.  Only check
16115 # a (hopefully) representative subset.
16116 echo "$as_me:$LINENO: checking for int8" >&5
16117 echo $ECHO_N "checking for int8... $ECHO_C" >&6
16118 if test "${ac_cv_type_int8+set}" = set; then
16119   echo $ECHO_N "(cached) $ECHO_C" >&6
16120 else
16121   cat >conftest.$ac_ext <<_ACEOF
16122 #line $LINENO "configure"
16123 #include "confdefs.h"
16124 #include <stdio.h>
16125 #ifdef HAVE_SUPPORTDEFS_H
16126 #include <SupportDefs.h>
16127 #endif
16128
16129 #ifdef F77_DUMMY_MAIN
16130 #  ifdef __cplusplus
16131      extern "C"
16132 #  endif
16133    int F77_DUMMY_MAIN() { return 1; }
16134 #endif
16135 int
16136 main ()
16137 {
16138 if ((int8 *) 0)
16139   return 0;
16140 if (sizeof (int8))
16141   return 0;
16142   ;
16143   return 0;
16144 }
16145 _ACEOF
16146 rm -f conftest.$ac_objext
16147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16148   (eval $ac_compile) 2>&5
16149   ac_status=$?
16150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151   (exit $ac_status); } &&
16152          { ac_try='test -s conftest.$ac_objext'
16153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154   (eval $ac_try) 2>&5
16155   ac_status=$?
16156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157   (exit $ac_status); }; }; then
16158   ac_cv_type_int8=yes
16159 else
16160   echo "$as_me: failed program was:" >&5
16161 cat conftest.$ac_ext >&5
16162 ac_cv_type_int8=no
16163 fi
16164 rm -f conftest.$ac_objext conftest.$ac_ext
16165 fi
16166 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
16167 echo "${ECHO_T}$ac_cv_type_int8" >&6
16168 if test $ac_cv_type_int8 = yes; then
16169
16170 cat >>confdefs.h <<_ACEOF
16171 #define HAVE_INT8 1
16172 _ACEOF
16173
16174
16175 fi
16176 echo "$as_me:$LINENO: checking for uint8" >&5
16177 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
16178 if test "${ac_cv_type_uint8+set}" = set; then
16179   echo $ECHO_N "(cached) $ECHO_C" >&6
16180 else
16181   cat >conftest.$ac_ext <<_ACEOF
16182 #line $LINENO "configure"
16183 #include "confdefs.h"
16184 #include <stdio.h>
16185 #ifdef HAVE_SUPPORTDEFS_H
16186 #include <SupportDefs.h>
16187 #endif
16188
16189 #ifdef F77_DUMMY_MAIN
16190 #  ifdef __cplusplus
16191      extern "C"
16192 #  endif
16193    int F77_DUMMY_MAIN() { return 1; }
16194 #endif
16195 int
16196 main ()
16197 {
16198 if ((uint8 *) 0)
16199   return 0;
16200 if (sizeof (uint8))
16201   return 0;
16202   ;
16203   return 0;
16204 }
16205 _ACEOF
16206 rm -f conftest.$ac_objext
16207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16208   (eval $ac_compile) 2>&5
16209   ac_status=$?
16210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211   (exit $ac_status); } &&
16212          { ac_try='test -s conftest.$ac_objext'
16213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214   (eval $ac_try) 2>&5
16215   ac_status=$?
16216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217   (exit $ac_status); }; }; then
16218   ac_cv_type_uint8=yes
16219 else
16220   echo "$as_me: failed program was:" >&5
16221 cat conftest.$ac_ext >&5
16222 ac_cv_type_uint8=no
16223 fi
16224 rm -f conftest.$ac_objext conftest.$ac_ext
16225 fi
16226 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
16227 echo "${ECHO_T}$ac_cv_type_uint8" >&6
16228 if test $ac_cv_type_uint8 = yes; then
16229
16230 cat >>confdefs.h <<_ACEOF
16231 #define HAVE_UINT8 1
16232 _ACEOF
16233
16234
16235 fi
16236 echo "$as_me:$LINENO: checking for int64" >&5
16237 echo $ECHO_N "checking for int64... $ECHO_C" >&6
16238 if test "${ac_cv_type_int64+set}" = set; then
16239   echo $ECHO_N "(cached) $ECHO_C" >&6
16240 else
16241   cat >conftest.$ac_ext <<_ACEOF
16242 #line $LINENO "configure"
16243 #include "confdefs.h"
16244 #include <stdio.h>
16245 #ifdef HAVE_SUPPORTDEFS_H
16246 #include <SupportDefs.h>
16247 #endif
16248
16249 #ifdef F77_DUMMY_MAIN
16250 #  ifdef __cplusplus
16251      extern "C"
16252 #  endif
16253    int F77_DUMMY_MAIN() { return 1; }
16254 #endif
16255 int
16256 main ()
16257 {
16258 if ((int64 *) 0)
16259   return 0;
16260 if (sizeof (int64))
16261   return 0;
16262   ;
16263   return 0;
16264 }
16265 _ACEOF
16266 rm -f conftest.$ac_objext
16267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16268   (eval $ac_compile) 2>&5
16269   ac_status=$?
16270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271   (exit $ac_status); } &&
16272          { ac_try='test -s conftest.$ac_objext'
16273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16274   (eval $ac_try) 2>&5
16275   ac_status=$?
16276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277   (exit $ac_status); }; }; then
16278   ac_cv_type_int64=yes
16279 else
16280   echo "$as_me: failed program was:" >&5
16281 cat conftest.$ac_ext >&5
16282 ac_cv_type_int64=no
16283 fi
16284 rm -f conftest.$ac_objext conftest.$ac_ext
16285 fi
16286 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
16287 echo "${ECHO_T}$ac_cv_type_int64" >&6
16288 if test $ac_cv_type_int64 = yes; then
16289
16290 cat >>confdefs.h <<_ACEOF
16291 #define HAVE_INT64 1
16292 _ACEOF
16293
16294
16295 fi
16296 echo "$as_me:$LINENO: checking for uint64" >&5
16297 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
16298 if test "${ac_cv_type_uint64+set}" = set; then
16299   echo $ECHO_N "(cached) $ECHO_C" >&6
16300 else
16301   cat >conftest.$ac_ext <<_ACEOF
16302 #line $LINENO "configure"
16303 #include "confdefs.h"
16304 #include <stdio.h>
16305 #ifdef HAVE_SUPPORTDEFS_H
16306 #include <SupportDefs.h>
16307 #endif
16308
16309 #ifdef F77_DUMMY_MAIN
16310 #  ifdef __cplusplus
16311      extern "C"
16312 #  endif
16313    int F77_DUMMY_MAIN() { return 1; }
16314 #endif
16315 int
16316 main ()
16317 {
16318 if ((uint64 *) 0)
16319   return 0;
16320 if (sizeof (uint64))
16321   return 0;
16322   ;
16323   return 0;
16324 }
16325 _ACEOF
16326 rm -f conftest.$ac_objext
16327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16328   (eval $ac_compile) 2>&5
16329   ac_status=$?
16330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331   (exit $ac_status); } &&
16332          { ac_try='test -s conftest.$ac_objext'
16333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334   (eval $ac_try) 2>&5
16335   ac_status=$?
16336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337   (exit $ac_status); }; }; then
16338   ac_cv_type_uint64=yes
16339 else
16340   echo "$as_me: failed program was:" >&5
16341 cat conftest.$ac_ext >&5
16342 ac_cv_type_uint64=no
16343 fi
16344 rm -f conftest.$ac_objext conftest.$ac_ext
16345 fi
16346 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
16347 echo "${ECHO_T}$ac_cv_type_uint64" >&6
16348 if test $ac_cv_type_uint64 = yes; then
16349
16350 cat >>confdefs.h <<_ACEOF
16351 #define HAVE_UINT64 1
16352 _ACEOF
16353
16354
16355 fi
16356
16357
16358 # We also check for sig_atomic_t, which *should* be defined per ANSI
16359 # C, but is missing on some old platforms.
16360 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
16361 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
16362 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
16363   echo $ECHO_N "(cached) $ECHO_C" >&6
16364 else
16365   cat >conftest.$ac_ext <<_ACEOF
16366 #line $LINENO "configure"
16367 #include "confdefs.h"
16368 #include <signal.h>
16369
16370 #ifdef F77_DUMMY_MAIN
16371 #  ifdef __cplusplus
16372      extern "C"
16373 #  endif
16374    int F77_DUMMY_MAIN() { return 1; }
16375 #endif
16376 int
16377 main ()
16378 {
16379 if ((sig_atomic_t *) 0)
16380   return 0;
16381 if (sizeof (sig_atomic_t))
16382   return 0;
16383   ;
16384   return 0;
16385 }
16386 _ACEOF
16387 rm -f conftest.$ac_objext
16388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16389   (eval $ac_compile) 2>&5
16390   ac_status=$?
16391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392   (exit $ac_status); } &&
16393          { ac_try='test -s conftest.$ac_objext'
16394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16395   (eval $ac_try) 2>&5
16396   ac_status=$?
16397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398   (exit $ac_status); }; }; then
16399   ac_cv_type_sig_atomic_t=yes
16400 else
16401   echo "$as_me: failed program was:" >&5
16402 cat conftest.$ac_ext >&5
16403 ac_cv_type_sig_atomic_t=no
16404 fi
16405 rm -f conftest.$ac_objext conftest.$ac_ext
16406 fi
16407 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
16408 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
16409 if test $ac_cv_type_sig_atomic_t = yes; then
16410
16411 cat >>confdefs.h <<_ACEOF
16412 #define HAVE_SIG_ATOMIC_T 1
16413 _ACEOF
16414
16415
16416 fi
16417
16418
16419
16420 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
16421 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
16422 if test "${pgac_cv_func_posix_signals+set}" = set; then
16423   echo $ECHO_N "(cached) $ECHO_C" >&6
16424 else
16425   cat >conftest.$ac_ext <<_ACEOF
16426 #line $LINENO "configure"
16427 #include "confdefs.h"
16428 #include <signal.h>
16429
16430 #ifdef F77_DUMMY_MAIN
16431 #  ifdef __cplusplus
16432      extern "C"
16433 #  endif
16434    int F77_DUMMY_MAIN() { return 1; }
16435 #endif
16436 int
16437 main ()
16438 {
16439 struct sigaction act, oact;
16440 sigemptyset(&act.sa_mask);
16441 act.sa_flags = SA_RESTART;
16442 sigaction(0, &act, &oact);
16443   ;
16444   return 0;
16445 }
16446 _ACEOF
16447 rm -f conftest.$ac_objext conftest$ac_exeext
16448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16449   (eval $ac_link) 2>&5
16450   ac_status=$?
16451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452   (exit $ac_status); } &&
16453          { ac_try='test -s conftest$ac_exeext'
16454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455   (eval $ac_try) 2>&5
16456   ac_status=$?
16457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458   (exit $ac_status); }; }; then
16459   pgac_cv_func_posix_signals=yes
16460 else
16461   echo "$as_me: failed program was:" >&5
16462 cat conftest.$ac_ext >&5
16463 pgac_cv_func_posix_signals=no
16464 fi
16465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16466 fi
16467 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
16468 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
16469 if test x"$pgac_cv_func_posix_signals" = xyes ; then
16470
16471 cat >>confdefs.h <<\_ACEOF
16472 #define HAVE_POSIX_SIGNALS
16473 _ACEOF
16474
16475 fi
16476 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
16477
16478 if test $ac_cv_func_fseeko = yes; then
16479 # Check whether --enable-largefile or --disable-largefile was given.
16480 if test "${enable_largefile+set}" = set; then
16481   enableval="$enable_largefile"
16482
16483 fi;
16484 if test "$enable_largefile" != no; then
16485
16486   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16487 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
16488 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16489   echo $ECHO_N "(cached) $ECHO_C" >&6
16490 else
16491   ac_cv_sys_largefile_CC=no
16492      if test "$GCC" != yes; then
16493        ac_save_CC=$CC
16494        while :; do
16495          # IRIX 6.2 and later do not support large files by default,
16496          # so use the C compiler's -n32 option if that helps.
16497          cat >conftest.$ac_ext <<_ACEOF
16498 #line $LINENO "configure"
16499 #include "confdefs.h"
16500 #include <sys/types.h>
16501  /* Check that off_t can represent 2**63 - 1 correctly.
16502     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16503     since some C++ compilers masquerading as C compilers
16504     incorrectly reject 9223372036854775807.  */
16505 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16506   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16507                        && LARGE_OFF_T % 2147483647 == 1)
16508                       ? 1 : -1];
16509 #ifdef F77_DUMMY_MAIN
16510 #  ifdef __cplusplus
16511      extern "C"
16512 #  endif
16513    int F77_DUMMY_MAIN() { return 1; }
16514 #endif
16515 int
16516 main ()
16517 {
16518
16519   ;
16520   return 0;
16521 }
16522 _ACEOF
16523          rm -f conftest.$ac_objext
16524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16525   (eval $ac_compile) 2>&5
16526   ac_status=$?
16527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528   (exit $ac_status); } &&
16529          { ac_try='test -s conftest.$ac_objext'
16530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16531   (eval $ac_try) 2>&5
16532   ac_status=$?
16533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534   (exit $ac_status); }; }; then
16535   break
16536 else
16537   echo "$as_me: failed program was:" >&5
16538 cat conftest.$ac_ext >&5
16539 fi
16540 rm -f conftest.$ac_objext
16541          CC="$CC -n32"
16542          rm -f conftest.$ac_objext
16543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16544   (eval $ac_compile) 2>&5
16545   ac_status=$?
16546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547   (exit $ac_status); } &&
16548          { ac_try='test -s conftest.$ac_objext'
16549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16550   (eval $ac_try) 2>&5
16551   ac_status=$?
16552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553   (exit $ac_status); }; }; then
16554   ac_cv_sys_largefile_CC=' -n32'; break
16555 else
16556   echo "$as_me: failed program was:" >&5
16557 cat conftest.$ac_ext >&5
16558 fi
16559 rm -f conftest.$ac_objext
16560          break
16561        done
16562        CC=$ac_save_CC
16563        rm -f conftest.$ac_ext
16564     fi
16565 fi
16566 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16567 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16568   if test "$ac_cv_sys_largefile_CC" != no; then
16569     CC=$CC$ac_cv_sys_largefile_CC
16570   fi
16571
16572   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16573 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16574 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16575   echo $ECHO_N "(cached) $ECHO_C" >&6
16576 else
16577   while :; do
16578   ac_cv_sys_file_offset_bits=no
16579   cat >conftest.$ac_ext <<_ACEOF
16580 #line $LINENO "configure"
16581 #include "confdefs.h"
16582 #include <sys/types.h>
16583  /* Check that off_t can represent 2**63 - 1 correctly.
16584     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16585     since some C++ compilers masquerading as C compilers
16586     incorrectly reject 9223372036854775807.  */
16587 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16588   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16589                        && LARGE_OFF_T % 2147483647 == 1)
16590                       ? 1 : -1];
16591 #ifdef F77_DUMMY_MAIN
16592 #  ifdef __cplusplus
16593      extern "C"
16594 #  endif
16595    int F77_DUMMY_MAIN() { return 1; }
16596 #endif
16597 int
16598 main ()
16599 {
16600
16601   ;
16602   return 0;
16603 }
16604 _ACEOF
16605 rm -f conftest.$ac_objext
16606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16607   (eval $ac_compile) 2>&5
16608   ac_status=$?
16609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610   (exit $ac_status); } &&
16611          { ac_try='test -s conftest.$ac_objext'
16612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16613   (eval $ac_try) 2>&5
16614   ac_status=$?
16615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616   (exit $ac_status); }; }; then
16617   break
16618 else
16619   echo "$as_me: failed program was:" >&5
16620 cat conftest.$ac_ext >&5
16621 fi
16622 rm -f conftest.$ac_objext conftest.$ac_ext
16623   cat >conftest.$ac_ext <<_ACEOF
16624 #line $LINENO "configure"
16625 #include "confdefs.h"
16626 #define _FILE_OFFSET_BITS 64
16627 #include <sys/types.h>
16628  /* Check that off_t can represent 2**63 - 1 correctly.
16629     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16630     since some C++ compilers masquerading as C compilers
16631     incorrectly reject 9223372036854775807.  */
16632 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16633   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16634                        && LARGE_OFF_T % 2147483647 == 1)
16635                       ? 1 : -1];
16636 #ifdef F77_DUMMY_MAIN
16637 #  ifdef __cplusplus
16638      extern "C"
16639 #  endif
16640    int F77_DUMMY_MAIN() { return 1; }
16641 #endif
16642 int
16643 main ()
16644 {
16645
16646   ;
16647   return 0;
16648 }
16649 _ACEOF
16650 rm -f conftest.$ac_objext
16651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16652   (eval $ac_compile) 2>&5
16653   ac_status=$?
16654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655   (exit $ac_status); } &&
16656          { ac_try='test -s conftest.$ac_objext'
16657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658   (eval $ac_try) 2>&5
16659   ac_status=$?
16660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661   (exit $ac_status); }; }; then
16662   ac_cv_sys_file_offset_bits=64; break
16663 else
16664   echo "$as_me: failed program was:" >&5
16665 cat conftest.$ac_ext >&5
16666 fi
16667 rm -f conftest.$ac_objext conftest.$ac_ext
16668   break
16669 done
16670 fi
16671 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16672 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16673 if test "$ac_cv_sys_file_offset_bits" != no; then
16674
16675 cat >>confdefs.h <<_ACEOF
16676 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16677 _ACEOF
16678
16679 fi
16680 rm -f conftest*
16681   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16682 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16683 if test "${ac_cv_sys_large_files+set}" = set; then
16684   echo $ECHO_N "(cached) $ECHO_C" >&6
16685 else
16686   while :; do
16687   ac_cv_sys_large_files=no
16688   cat >conftest.$ac_ext <<_ACEOF
16689 #line $LINENO "configure"
16690 #include "confdefs.h"
16691 #include <sys/types.h>
16692  /* Check that off_t can represent 2**63 - 1 correctly.
16693     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16694     since some C++ compilers masquerading as C compilers
16695     incorrectly reject 9223372036854775807.  */
16696 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16697   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16698                        && LARGE_OFF_T % 2147483647 == 1)
16699                       ? 1 : -1];
16700 #ifdef F77_DUMMY_MAIN
16701 #  ifdef __cplusplus
16702      extern "C"
16703 #  endif
16704    int F77_DUMMY_MAIN() { return 1; }
16705 #endif
16706 int
16707 main ()
16708 {
16709
16710   ;
16711   return 0;
16712 }
16713 _ACEOF
16714 rm -f conftest.$ac_objext
16715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16716   (eval $ac_compile) 2>&5
16717   ac_status=$?
16718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719   (exit $ac_status); } &&
16720          { ac_try='test -s conftest.$ac_objext'
16721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722   (eval $ac_try) 2>&5
16723   ac_status=$?
16724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725   (exit $ac_status); }; }; then
16726   break
16727 else
16728   echo "$as_me: failed program was:" >&5
16729 cat conftest.$ac_ext >&5
16730 fi
16731 rm -f conftest.$ac_objext conftest.$ac_ext
16732   cat >conftest.$ac_ext <<_ACEOF
16733 #line $LINENO "configure"
16734 #include "confdefs.h"
16735 #define _LARGE_FILES 1
16736 #include <sys/types.h>
16737  /* Check that off_t can represent 2**63 - 1 correctly.
16738     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16739     since some C++ compilers masquerading as C compilers
16740     incorrectly reject 9223372036854775807.  */
16741 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16742   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16743                        && LARGE_OFF_T % 2147483647 == 1)
16744                       ? 1 : -1];
16745 #ifdef F77_DUMMY_MAIN
16746 #  ifdef __cplusplus
16747      extern "C"
16748 #  endif
16749    int F77_DUMMY_MAIN() { return 1; }
16750 #endif
16751 int
16752 main ()
16753 {
16754
16755   ;
16756   return 0;
16757 }
16758 _ACEOF
16759 rm -f conftest.$ac_objext
16760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16761   (eval $ac_compile) 2>&5
16762   ac_status=$?
16763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764   (exit $ac_status); } &&
16765          { ac_try='test -s conftest.$ac_objext'
16766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16767   (eval $ac_try) 2>&5
16768   ac_status=$?
16769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770   (exit $ac_status); }; }; then
16771   ac_cv_sys_large_files=1; break
16772 else
16773   echo "$as_me: failed program was:" >&5
16774 cat conftest.$ac_ext >&5
16775 fi
16776 rm -f conftest.$ac_objext conftest.$ac_ext
16777   break
16778 done
16779 fi
16780 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16781 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16782 if test "$ac_cv_sys_large_files" != no; then
16783
16784 cat >>confdefs.h <<_ACEOF
16785 #define _LARGE_FILES $ac_cv_sys_large_files
16786 _ACEOF
16787
16788 fi
16789 rm -f conftest*
16790 fi
16791
16792 fi
16793
16794
16795 # Select semaphore implementation type.
16796 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
16797
16798 cat >>confdefs.h <<\_ACEOF
16799 #define USE_NAMED_POSIX_SEMAPHORES 1
16800 _ACEOF
16801
16802   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16803 else
16804   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
16805
16806 cat >>confdefs.h <<\_ACEOF
16807 #define USE_UNNAMED_POSIX_SEMAPHORES 1
16808 _ACEOF
16809
16810     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16811   else
16812
16813 cat >>confdefs.h <<\_ACEOF
16814 #define USE_SYSV_SEMAPHORES 1
16815 _ACEOF
16816
16817     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
16818   fi
16819 fi
16820
16821
16822 # Select shared-memory implementation type.
16823
16824 cat >>confdefs.h <<\_ACEOF
16825 #define USE_SYSV_SHARED_MEMORY 1
16826 _ACEOF
16827
16828 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
16829
16830
16831 if test "$enable_nls" = yes ; then
16832
16833   echo "$as_me:$LINENO: checking for library containing gettext" >&5
16834 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
16835 if test "${ac_cv_search_gettext+set}" = set; then
16836   echo $ECHO_N "(cached) $ECHO_C" >&6
16837 else
16838   ac_func_search_save_LIBS=$LIBS
16839 ac_cv_search_gettext=no
16840 cat >conftest.$ac_ext <<_ACEOF
16841 #line $LINENO "configure"
16842 #include "confdefs.h"
16843
16844 /* Override any gcc2 internal prototype to avoid an error.  */
16845 #ifdef __cplusplus
16846 extern "C"
16847 #endif
16848 /* We use char because int might match the return type of a gcc2
16849    builtin and then its argument prototype would still apply.  */
16850 char gettext ();
16851 #ifdef F77_DUMMY_MAIN
16852 #  ifdef __cplusplus
16853      extern "C"
16854 #  endif
16855    int F77_DUMMY_MAIN() { return 1; }
16856 #endif
16857 int
16858 main ()
16859 {
16860 gettext ();
16861   ;
16862   return 0;
16863 }
16864 _ACEOF
16865 rm -f conftest.$ac_objext conftest$ac_exeext
16866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16867   (eval $ac_link) 2>&5
16868   ac_status=$?
16869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870   (exit $ac_status); } &&
16871          { ac_try='test -s conftest$ac_exeext'
16872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873   (eval $ac_try) 2>&5
16874   ac_status=$?
16875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876   (exit $ac_status); }; }; then
16877   ac_cv_search_gettext="none required"
16878 else
16879   echo "$as_me: failed program was:" >&5
16880 cat conftest.$ac_ext >&5
16881 fi
16882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16883 if test "$ac_cv_search_gettext" = no; then
16884   for ac_lib in intl; do
16885     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16886     cat >conftest.$ac_ext <<_ACEOF
16887 #line $LINENO "configure"
16888 #include "confdefs.h"
16889
16890 /* Override any gcc2 internal prototype to avoid an error.  */
16891 #ifdef __cplusplus
16892 extern "C"
16893 #endif
16894 /* We use char because int might match the return type of a gcc2
16895    builtin and then its argument prototype would still apply.  */
16896 char gettext ();
16897 #ifdef F77_DUMMY_MAIN
16898 #  ifdef __cplusplus
16899      extern "C"
16900 #  endif
16901    int F77_DUMMY_MAIN() { return 1; }
16902 #endif
16903 int
16904 main ()
16905 {
16906 gettext ();
16907   ;
16908   return 0;
16909 }
16910 _ACEOF
16911 rm -f conftest.$ac_objext conftest$ac_exeext
16912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16913   (eval $ac_link) 2>&5
16914   ac_status=$?
16915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916   (exit $ac_status); } &&
16917          { ac_try='test -s conftest$ac_exeext'
16918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16919   (eval $ac_try) 2>&5
16920   ac_status=$?
16921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922   (exit $ac_status); }; }; then
16923   ac_cv_search_gettext="-l$ac_lib"
16924 break
16925 else
16926   echo "$as_me: failed program was:" >&5
16927 cat conftest.$ac_ext >&5
16928 fi
16929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16930   done
16931 fi
16932 LIBS=$ac_func_search_save_LIBS
16933 fi
16934 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
16935 echo "${ECHO_T}$ac_cv_search_gettext" >&6
16936 if test "$ac_cv_search_gettext" != no; then
16937   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
16938
16939 else
16940   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
16941 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
16942    { (exit 1); exit 1; }; }
16943 fi
16944
16945   if test "${ac_cv_header_libintl_h+set}" = set; then
16946   echo "$as_me:$LINENO: checking for libintl.h" >&5
16947 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16948 if test "${ac_cv_header_libintl_h+set}" = set; then
16949   echo $ECHO_N "(cached) $ECHO_C" >&6
16950 fi
16951 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16952 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16953 else
16954   # Is the header compilable?
16955 echo "$as_me:$LINENO: checking libintl.h usability" >&5
16956 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
16957 cat >conftest.$ac_ext <<_ACEOF
16958 #line $LINENO "configure"
16959 #include "confdefs.h"
16960 $ac_includes_default
16961 #include <libintl.h>
16962 _ACEOF
16963 rm -f conftest.$ac_objext
16964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16965   (eval $ac_compile) 2>&5
16966   ac_status=$?
16967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968   (exit $ac_status); } &&
16969          { ac_try='test -s conftest.$ac_objext'
16970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16971   (eval $ac_try) 2>&5
16972   ac_status=$?
16973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974   (exit $ac_status); }; }; then
16975   ac_header_compiler=yes
16976 else
16977   echo "$as_me: failed program was:" >&5
16978 cat conftest.$ac_ext >&5
16979 ac_header_compiler=no
16980 fi
16981 rm -f conftest.$ac_objext conftest.$ac_ext
16982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16983 echo "${ECHO_T}$ac_header_compiler" >&6
16984
16985 # Is the header present?
16986 echo "$as_me:$LINENO: checking libintl.h presence" >&5
16987 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
16988 cat >conftest.$ac_ext <<_ACEOF
16989 #line $LINENO "configure"
16990 #include "confdefs.h"
16991 #include <libintl.h>
16992 _ACEOF
16993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16994   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16995   ac_status=$?
16996   egrep -v '^ *\+' conftest.er1 >conftest.err
16997   rm -f conftest.er1
16998   cat conftest.err >&5
16999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000   (exit $ac_status); } >/dev/null; then
17001   if test -s conftest.err; then
17002     ac_cpp_err=$ac_c_preproc_warn_flag
17003   else
17004     ac_cpp_err=
17005   fi
17006 else
17007   ac_cpp_err=yes
17008 fi
17009 if test -z "$ac_cpp_err"; then
17010   ac_header_preproc=yes
17011 else
17012   echo "$as_me: failed program was:" >&5
17013   cat conftest.$ac_ext >&5
17014   ac_header_preproc=no
17015 fi
17016 rm -f conftest.err conftest.$ac_ext
17017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17018 echo "${ECHO_T}$ac_header_preproc" >&6
17019
17020 # So?  What about this header?
17021 case $ac_header_compiler:$ac_header_preproc in
17022   yes:no )
17023     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17024 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17025     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17026 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17027   no:yes )
17028     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
17029 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
17030     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
17031 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
17032     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17033 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17034 esac
17035 echo "$as_me:$LINENO: checking for libintl.h" >&5
17036 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17037 if test "${ac_cv_header_libintl_h+set}" = set; then
17038   echo $ECHO_N "(cached) $ECHO_C" >&6
17039 else
17040   ac_cv_header_libintl_h=$ac_header_preproc
17041 fi
17042 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17043 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17044
17045 fi
17046 if test $ac_cv_header_libintl_h = yes; then
17047   :
17048 else
17049   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
17050 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
17051    { (exit 1); exit 1; }; }
17052 fi
17053
17054
17055   for ac_prog in msgfmt
17056 do
17057   # Extract the first word of "$ac_prog", so it can be a program name with args.
17058 set dummy $ac_prog; ac_word=$2
17059 echo "$as_me:$LINENO: checking for $ac_word" >&5
17060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17061 if test "${ac_cv_prog_MSGFMT+set}" = set; then
17062   echo $ECHO_N "(cached) $ECHO_C" >&6
17063 else
17064   if test -n "$MSGFMT"; then
17065   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
17066 else
17067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17068 for as_dir in $PATH
17069 do
17070   IFS=$as_save_IFS
17071   test -z "$as_dir" && as_dir=.
17072   for ac_exec_ext in '' $ac_executable_extensions; do
17073   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17074     ac_cv_prog_MSGFMT="$ac_prog"
17075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17076     break 2
17077   fi
17078 done
17079 done
17080
17081 fi
17082 fi
17083 MSGFMT=$ac_cv_prog_MSGFMT
17084 if test -n "$MSGFMT"; then
17085   echo "$as_me:$LINENO: result: $MSGFMT" >&5
17086 echo "${ECHO_T}$MSGFMT" >&6
17087 else
17088   echo "$as_me:$LINENO: result: no" >&5
17089 echo "${ECHO_T}no" >&6
17090 fi
17091
17092   test -n "$MSGFMT" && break
17093 done
17094
17095   if test -z "$MSGFMT"; then
17096     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
17097 echo "$as_me: error: msgfmt is required for NLS" >&2;}
17098    { (exit 1); exit 1; }; }
17099   fi
17100   for ac_prog in msgmerge
17101 do
17102   # Extract the first word of "$ac_prog", so it can be a program name with args.
17103 set dummy $ac_prog; ac_word=$2
17104 echo "$as_me:$LINENO: checking for $ac_word" >&5
17105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17106 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
17107   echo $ECHO_N "(cached) $ECHO_C" >&6
17108 else
17109   if test -n "$MSGMERGE"; then
17110   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
17111 else
17112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17113 for as_dir in $PATH
17114 do
17115   IFS=$as_save_IFS
17116   test -z "$as_dir" && as_dir=.
17117   for ac_exec_ext in '' $ac_executable_extensions; do
17118   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17119     ac_cv_prog_MSGMERGE="$ac_prog"
17120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17121     break 2
17122   fi
17123 done
17124 done
17125
17126 fi
17127 fi
17128 MSGMERGE=$ac_cv_prog_MSGMERGE
17129 if test -n "$MSGMERGE"; then
17130   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
17131 echo "${ECHO_T}$MSGMERGE" >&6
17132 else
17133   echo "$as_me:$LINENO: result: no" >&5
17134 echo "${ECHO_T}no" >&6
17135 fi
17136
17137   test -n "$MSGMERGE" && break
17138 done
17139
17140   for ac_prog in xgettext
17141 do
17142   # Extract the first word of "$ac_prog", so it can be a program name with args.
17143 set dummy $ac_prog; ac_word=$2
17144 echo "$as_me:$LINENO: checking for $ac_word" >&5
17145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17146 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
17147   echo $ECHO_N "(cached) $ECHO_C" >&6
17148 else
17149   if test -n "$XGETTEXT"; then
17150   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
17151 else
17152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17153 for as_dir in $PATH
17154 do
17155   IFS=$as_save_IFS
17156   test -z "$as_dir" && as_dir=.
17157   for ac_exec_ext in '' $ac_executable_extensions; do
17158   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17159     ac_cv_prog_XGETTEXT="$ac_prog"
17160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17161     break 2
17162   fi
17163 done
17164 done
17165
17166 fi
17167 fi
17168 XGETTEXT=$ac_cv_prog_XGETTEXT
17169 if test -n "$XGETTEXT"; then
17170   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17171 echo "${ECHO_T}$XGETTEXT" >&6
17172 else
17173   echo "$as_me:$LINENO: result: no" >&5
17174 echo "${ECHO_T}no" >&6
17175 fi
17176
17177   test -n "$XGETTEXT" && break
17178 done
17179
17180
17181   # Note: share/locale is always the default, independent of $datadir
17182   localedir='${prefix}/share/locale'
17183   if test x"$prefix" = x"NONE"; then
17184     exp_localedir="$ac_default_prefix/share/locale"
17185   else
17186     exp_localedir="$prefix/share/locale"
17187   fi
17188
17189
17190
17191 cat >>confdefs.h <<_ACEOF
17192 #define LOCALEDIR "$exp_localedir"
17193 _ACEOF
17194
17195
17196 fi
17197
17198 # Check for Tcl configuration script tclConfig.sh
17199 if test "$with_tcl" = yes; then
17200     for ac_prog in tclsh tcl
17201 do
17202   # Extract the first word of "$ac_prog", so it can be a program name with args.
17203 set dummy $ac_prog; ac_word=$2
17204 echo "$as_me:$LINENO: checking for $ac_word" >&5
17205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17206 if test "${ac_cv_path_TCLSH+set}" = set; then
17207   echo $ECHO_N "(cached) $ECHO_C" >&6
17208 else
17209   case $TCLSH in
17210   [\\/]* | ?:[\\/]*)
17211   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
17212   ;;
17213   *)
17214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17215 for as_dir in $PATH
17216 do
17217   IFS=$as_save_IFS
17218   test -z "$as_dir" && as_dir=.
17219   for ac_exec_ext in '' $ac_executable_extensions; do
17220   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17221     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
17222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17223     break 2
17224   fi
17225 done
17226 done
17227
17228   ;;
17229 esac
17230 fi
17231 TCLSH=$ac_cv_path_TCLSH
17232
17233 if test -n "$TCLSH"; then
17234   echo "$as_me:$LINENO: result: $TCLSH" >&5
17235 echo "${ECHO_T}$TCLSH" >&6
17236 else
17237   echo "$as_me:$LINENO: result: no" >&5
17238 echo "${ECHO_T}no" >&6
17239 fi
17240
17241   test -n "$TCLSH" && break
17242 done
17243
17244 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
17245 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
17246 # Let user override test
17247 if test -z "$TCL_CONFIG_SH"; then
17248     pgac_test_dirs="$with_tclconfig"
17249
17250     set X $pgac_test_dirs; shift
17251     if test $# -eq 0; then
17252         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
17253 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
17254    { (exit 1); exit 1; }; }
17255         set X `echo 'puts $auto_path' | $TCLSH`; shift
17256     fi
17257
17258     for pgac_dir do
17259         if test -r "$pgac_dir/tclConfig.sh"; then
17260             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
17261             break
17262         fi
17263     done
17264 fi
17265
17266 if test -z "$TCL_CONFIG_SH"; then
17267     echo "$as_me:$LINENO: result: no" >&5
17268 echo "${ECHO_T}no" >&6
17269     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
17270 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
17271    { (exit 1); exit 1; }; }
17272 else
17273     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
17274 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
17275 fi
17276
17277
17278
17279     . "$TCL_CONFIG_SH"
17280 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
17281 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
17282 eval TCL_LIBS=\"$TCL_LIBS\"
17283 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
17284 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
17285
17286     fi
17287
17288 # Check for Tk configuration script tkConfig.sh
17289 if test "$with_tk" = yes; then
17290     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
17291 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
17292 # Let user override test
17293 if test -z "$TK_CONFIG_SH"; then
17294     pgac_test_dirs="$with_tkconfig $with_tclconfig"
17295
17296     set X $pgac_test_dirs; shift
17297     if test $# -eq 0; then
17298         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
17299 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
17300    { (exit 1); exit 1; }; }
17301         set X `echo 'puts $auto_path' | $TCLSH`; shift
17302     fi
17303
17304     for pgac_dir do
17305         if test -r "$pgac_dir/tkConfig.sh"; then
17306             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
17307             break
17308         fi
17309     done
17310 fi
17311
17312 if test -z "$TK_CONFIG_SH"; then
17313     echo "$as_me:$LINENO: result: no" >&5
17314 echo "${ECHO_T}no" >&6
17315     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
17316 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
17317    { (exit 1); exit 1; }; }
17318 else
17319     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
17320 echo "${ECHO_T}$TK_CONFIG_SH" >&6
17321 fi
17322
17323
17324
17325     . "$TK_CONFIG_SH"
17326 eval TK_LIBS=\"$TK_LIBS\"
17327 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
17328 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
17329
17330 fi
17331
17332
17333 #
17334 # Check for DocBook and tools
17335 #
17336 for ac_prog in onsgmls nsgmls
17337 do
17338   # Extract the first word of "$ac_prog", so it can be a program name with args.
17339 set dummy $ac_prog; ac_word=$2
17340 echo "$as_me:$LINENO: checking for $ac_word" >&5
17341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17342 if test "${ac_cv_prog_NSGMLS+set}" = set; then
17343   echo $ECHO_N "(cached) $ECHO_C" >&6
17344 else
17345   if test -n "$NSGMLS"; then
17346   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
17347 else
17348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17349 for as_dir in $PATH
17350 do
17351   IFS=$as_save_IFS
17352   test -z "$as_dir" && as_dir=.
17353   for ac_exec_ext in '' $ac_executable_extensions; do
17354   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17355     ac_cv_prog_NSGMLS="$ac_prog"
17356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17357     break 2
17358   fi
17359 done
17360 done
17361
17362 fi
17363 fi
17364 NSGMLS=$ac_cv_prog_NSGMLS
17365 if test -n "$NSGMLS"; then
17366   echo "$as_me:$LINENO: result: $NSGMLS" >&5
17367 echo "${ECHO_T}$NSGMLS" >&6
17368 else
17369   echo "$as_me:$LINENO: result: no" >&5
17370 echo "${ECHO_T}no" >&6
17371 fi
17372
17373   test -n "$NSGMLS" && break
17374 done
17375
17376 for ac_prog in openjade jade
17377 do
17378   # Extract the first word of "$ac_prog", so it can be a program name with args.
17379 set dummy $ac_prog; ac_word=$2
17380 echo "$as_me:$LINENO: checking for $ac_word" >&5
17381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17382 if test "${ac_cv_prog_JADE+set}" = set; then
17383   echo $ECHO_N "(cached) $ECHO_C" >&6
17384 else
17385   if test -n "$JADE"; then
17386   ac_cv_prog_JADE="$JADE" # Let the user override the test.
17387 else
17388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17389 for as_dir in $PATH
17390 do
17391   IFS=$as_save_IFS
17392   test -z "$as_dir" && as_dir=.
17393   for ac_exec_ext in '' $ac_executable_extensions; do
17394   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17395     ac_cv_prog_JADE="$ac_prog"
17396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17397     break 2
17398   fi
17399 done
17400 done
17401
17402 fi
17403 fi
17404 JADE=$ac_cv_prog_JADE
17405 if test -n "$JADE"; then
17406   echo "$as_me:$LINENO: result: $JADE" >&5
17407 echo "${ECHO_T}$JADE" >&6
17408 else
17409   echo "$as_me:$LINENO: result: no" >&5
17410 echo "${ECHO_T}no" >&6
17411 fi
17412
17413   test -n "$JADE" && break
17414 done
17415
17416
17417 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
17418 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
17419 if test "${pgac_cv_check_docbook+set}" = set; then
17420   echo $ECHO_N "(cached) $ECHO_C" >&6
17421 else
17422   cat >conftest.sgml <<EOF
17423 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
17424 <book>
17425  <title>test</title>
17426  <chapter>
17427   <title>random</title>
17428    <sect1>
17429     <title>testsect</title>
17430     <para>text</para>
17431   </sect1>
17432  </chapter>
17433 </book>
17434 EOF
17435
17436 pgac_cv_check_docbook=no
17437
17438 if test -n "$NSGMLS"; then
17439   $NSGMLS -s conftest.sgml 1>&5 2>&1
17440   if test $? -eq 0; then
17441     pgac_cv_check_docbook=yes
17442   fi
17443 fi
17444 rm -f conftest.sgml
17445 fi
17446 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
17447 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
17448
17449 have_docbook=$pgac_cv_check_docbook
17450
17451
17452 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
17453 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
17454 if test "${pgac_cv_path_stylesheets+set}" = set; then
17455   echo $ECHO_N "(cached) $ECHO_C" >&6
17456 else
17457   if test -n "$DOCBOOKSTYLE"; then
17458   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
17459 else
17460   for pgac_prefix in /usr /usr/local /opt; do
17461     for pgac_infix in share lib; do
17462       for pgac_postfix in \
17463         sgml/stylesheets/nwalsh-modular \
17464         sgml/stylesheets/docbook \
17465                 sgml/docbook-dsssl \
17466         sgml/docbook/dsssl/modular \
17467         sgml/docbook/stylesheet/dsssl/modular \
17468         sgml/docbook/dsssl-stylesheets
17469       do
17470         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
17471         if test -r "$pgac_candidate/html/docbook.dsl" \
17472            && test -r "$pgac_candidate/print/docbook.dsl"
17473         then
17474           pgac_cv_path_stylesheets=$pgac_candidate
17475           break 3
17476         fi
17477       done
17478     done
17479   done
17480 fi
17481 fi
17482
17483 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
17484
17485 if test -n "$DOCBOOKSTYLE"; then
17486   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
17487 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
17488 else
17489   echo "$as_me:$LINENO: result: no" >&5
17490 echo "${ECHO_T}no" >&6
17491 fi
17492 if test -n "$DOCBOOKSTYLE"; then
17493   for ac_prog in collateindex.pl
17494 do
17495   # Extract the first word of "$ac_prog", so it can be a program name with args.
17496 set dummy $ac_prog; ac_word=$2
17497 echo "$as_me:$LINENO: checking for $ac_word" >&5
17498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17499 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17500   echo $ECHO_N "(cached) $ECHO_C" >&6
17501 else
17502   case $COLLATEINDEX in
17503   [\\/]* | ?:[\\/]*)
17504   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17505   ;;
17506   *)
17507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17508 for as_dir in $DOCBOOKSTYLE/bin $PATH
17509 do
17510   IFS=$as_save_IFS
17511   test -z "$as_dir" && as_dir=.
17512   for ac_exec_ext in '' $ac_executable_extensions; do
17513   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17514     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17516     break 2
17517   fi
17518 done
17519 done
17520
17521   ;;
17522 esac
17523 fi
17524 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17525
17526 if test -n "$COLLATEINDEX"; then
17527   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17528 echo "${ECHO_T}$COLLATEINDEX" >&6
17529 else
17530   echo "$as_me:$LINENO: result: no" >&5
17531 echo "${ECHO_T}no" >&6
17532 fi
17533
17534   test -n "$COLLATEINDEX" && break
17535 done
17536
17537 else
17538   for ac_prog in collateindex.pl
17539 do
17540   # Extract the first word of "$ac_prog", so it can be a program name with args.
17541 set dummy $ac_prog; ac_word=$2
17542 echo "$as_me:$LINENO: checking for $ac_word" >&5
17543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17544 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17545   echo $ECHO_N "(cached) $ECHO_C" >&6
17546 else
17547   case $COLLATEINDEX in
17548   [\\/]* | ?:[\\/]*)
17549   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17550   ;;
17551   *)
17552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17553 for as_dir in $PATH
17554 do
17555   IFS=$as_save_IFS
17556   test -z "$as_dir" && as_dir=.
17557   for ac_exec_ext in '' $ac_executable_extensions; do
17558   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17559     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17561     break 2
17562   fi
17563 done
17564 done
17565
17566   ;;
17567 esac
17568 fi
17569 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17570
17571 if test -n "$COLLATEINDEX"; then
17572   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17573 echo "${ECHO_T}$COLLATEINDEX" >&6
17574 else
17575   echo "$as_me:$LINENO: result: no" >&5
17576 echo "${ECHO_T}no" >&6
17577 fi
17578
17579   test -n "$COLLATEINDEX" && break
17580 done
17581
17582 fi
17583 for ac_prog in sgmlspl
17584 do
17585   # Extract the first word of "$ac_prog", so it can be a program name with args.
17586 set dummy $ac_prog; ac_word=$2
17587 echo "$as_me:$LINENO: checking for $ac_word" >&5
17588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17589 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17590   echo $ECHO_N "(cached) $ECHO_C" >&6
17591 else
17592   if test -n "$SGMLSPL"; then
17593   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17594 else
17595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17596 for as_dir in $PATH
17597 do
17598   IFS=$as_save_IFS
17599   test -z "$as_dir" && as_dir=.
17600   for ac_exec_ext in '' $ac_executable_extensions; do
17601   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17602     ac_cv_prog_SGMLSPL="$ac_prog"
17603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17604     break 2
17605   fi
17606 done
17607 done
17608
17609 fi
17610 fi
17611 SGMLSPL=$ac_cv_prog_SGMLSPL
17612 if test -n "$SGMLSPL"; then
17613   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17614 echo "${ECHO_T}$SGMLSPL" >&6
17615 else
17616   echo "$as_me:$LINENO: result: no" >&5
17617 echo "${ECHO_T}no" >&6
17618 fi
17619
17620   test -n "$SGMLSPL" && break
17621 done
17622
17623
17624
17625 # prepare build tree if outside source tree
17626 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
17627 # Note 2: /bin/pwd might be better than shell's built-in at getting
17628 #         a symlink-free name.
17629 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
17630   vpath_build=no
17631 else
17632   vpath_build=yes
17633   if test "$no_create" != yes; then
17634     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
17635     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
17636     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
17637       || { { echo "$as_me:$LINENO: error: failed" >&5
17638 echo "$as_me: error: failed" >&2;}
17639    { (exit 1); exit 1; }; }
17640     echo "$as_me:$LINENO: result: done" >&5
17641 echo "${ECHO_T}done" >&6
17642   fi
17643 fi
17644
17645
17646
17647 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
17648
17649
17650 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}"
17651
17652
17653 ac_config_headers="$ac_config_headers src/include/pg_config.h"
17654
17655
17656 cat >confcache <<\_ACEOF
17657 # This file is a shell script that caches the results of configure
17658 # tests run on this system so they can be shared between configure
17659 # scripts and configure runs, see configure's option --config-cache.
17660 # It is not useful on other systems.  If it contains results you don't
17661 # want to keep, you may remove or edit it.
17662 #
17663 # config.status only pays attention to the cache file if you give it
17664 # the --recheck option to rerun configure.
17665 #
17666 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17667 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17668 # following values.
17669
17670 _ACEOF
17671
17672 # The following way of writing the cache mishandles newlines in values,
17673 # but we know of no workaround that is simple, portable, and efficient.
17674 # So, don't put newlines in cache variables' values.
17675 # Ultrix sh set writes to stderr and can't be redirected directly,
17676 # and sets the high bit in the cache file unless we assign to the vars.
17677 {
17678   (set) 2>&1 |
17679     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17680     *ac_space=\ *)
17681       # `set' does not quote correctly, so add quotes (double-quote
17682       # substitution turns \\\\ into \\, and sed turns \\ into \).
17683       sed -n \
17684         "s/'/'\\\\''/g;
17685           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17686       ;;
17687     *)
17688       # `set' quotes correctly as required by POSIX, so do not add quotes.
17689       sed -n \
17690         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17691       ;;
17692     esac;
17693 } |
17694   sed '
17695      t clear
17696      : clear
17697      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17698      t end
17699      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17700      : end' >>confcache
17701 if cmp -s $cache_file confcache; then :; else
17702   if test -w $cache_file; then
17703     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17704     cat confcache >$cache_file
17705   else
17706     echo "not updating unwritable cache $cache_file"
17707   fi
17708 fi
17709 rm -f confcache
17710
17711 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17712 # Let make expand exec_prefix.
17713 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17714
17715 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17716 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17717 # trailing colons and then remove the whole line if VPATH becomes empty
17718 # (actually we leave an empty line to preserve line numbers).
17719 if test "x$srcdir" = x.; then
17720   ac_vpsub='/^[         ]*VPATH[        ]*=/{
17721 s/:*\$(srcdir):*/:/;
17722 s/:*\${srcdir}:*/:/;
17723 s/:*@srcdir@:*/:/;
17724 s/^\([^=]*=[    ]*\):*/\1/;
17725 s/:*$//;
17726 s/^[^=]*=[      ]*$//;
17727 }'
17728 fi
17729
17730 DEFS=-DHAVE_CONFIG_H
17731
17732
17733 : ${CONFIG_STATUS=./config.status}
17734 ac_clean_files_save=$ac_clean_files
17735 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17736 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17737 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17738 cat >$CONFIG_STATUS <<_ACEOF
17739 #! $SHELL
17740 # Generated by $as_me.
17741 # Run this file to recreate the current configuration.
17742 # Compiler output produced by configure, useful for debugging
17743 # configure, is in config.log if it exists.
17744
17745 debug=false
17746 SHELL=\${CONFIG_SHELL-$SHELL}
17747 _ACEOF
17748
17749 cat >>$CONFIG_STATUS <<\_ACEOF
17750
17751 ## --------------------- ##
17752 ## M4sh Initialization.  ##
17753 ## --------------------- ##
17754
17755 # Be Bourne compatible
17756 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17757   emulate sh
17758   NULLCMD=:
17759 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17760   set -o posix
17761 fi
17762
17763 # NLS nuisances.
17764 # Support unset when possible.
17765 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17766   as_unset=unset
17767 else
17768   as_unset=false
17769 fi
17770
17771 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17772     { $as_unset LANG || test "${LANG+set}" != set; } ||
17773       { LANG=C; export LANG; }
17774 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17775     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17776       { LC_ALL=C; export LC_ALL; }
17777 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17778     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17779       { LC_TIME=C; export LC_TIME; }
17780 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17781     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17782       { LC_CTYPE=C; export LC_CTYPE; }
17783 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17784     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17785       { LANGUAGE=C; export LANGUAGE; }
17786 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17787     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17788       { LC_COLLATE=C; export LC_COLLATE; }
17789 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17790     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17791       { LC_NUMERIC=C; export LC_NUMERIC; }
17792 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17793     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17794       { LC_MESSAGES=C; export LC_MESSAGES; }
17795
17796
17797 # Name of the executable.
17798 as_me=`(basename "$0") 2>/dev/null ||
17799 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17800          X"$0" : 'X\(//\)$' \| \
17801          X"$0" : 'X\(/\)$' \| \
17802          .     : '\(.\)' 2>/dev/null ||
17803 echo X/"$0" |
17804     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17805           /^X\/\(\/\/\)$/{ s//\1/; q; }
17806           /^X\/\(\/\).*/{ s//\1/; q; }
17807           s/.*/./; q'`
17808
17809 # PATH needs CR, and LINENO needs CR and PATH.
17810 # Avoid depending upon Character Ranges.
17811 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17812 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17813 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17814 as_cr_digits='0123456789'
17815 as_cr_alnum=$as_cr_Letters$as_cr_digits
17816
17817 # The user is always right.
17818 if test "${PATH_SEPARATOR+set}" != set; then
17819   echo "#! /bin/sh" >conftest.sh
17820   echo  "exit 0"   >>conftest.sh
17821   chmod +x conftest.sh
17822   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17823     PATH_SEPARATOR=';'
17824   else
17825     PATH_SEPARATOR=:
17826   fi
17827   rm -f conftest.sh
17828 fi
17829
17830
17831   as_lineno_1=$LINENO
17832   as_lineno_2=$LINENO
17833   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17834   test "x$as_lineno_1" != "x$as_lineno_2" &&
17835   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17836   # Find who we are.  Look in the path if we contain no path at all
17837   # relative or not.
17838   case $0 in
17839     *[\\/]* ) as_myself=$0 ;;
17840     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17841 for as_dir in $PATH
17842 do
17843   IFS=$as_save_IFS
17844   test -z "$as_dir" && as_dir=.
17845   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17846 done
17847
17848        ;;
17849   esac
17850   # We did not find ourselves, most probably we were run as `sh COMMAND'
17851   # in which case we are not to be found in the path.
17852   if test "x$as_myself" = x; then
17853     as_myself=$0
17854   fi
17855   if test ! -f "$as_myself"; then
17856     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17857 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17858    { (exit 1); exit 1; }; }
17859   fi
17860   case $CONFIG_SHELL in
17861   '')
17862     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17863 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17864 do
17865   IFS=$as_save_IFS
17866   test -z "$as_dir" && as_dir=.
17867   for as_base in sh bash ksh sh5; do
17868          case $as_dir in
17869          /*)
17870            if ("$as_dir/$as_base" -c '
17871   as_lineno_1=$LINENO
17872   as_lineno_2=$LINENO
17873   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17874   test "x$as_lineno_1" != "x$as_lineno_2" &&
17875   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17876              CONFIG_SHELL=$as_dir/$as_base
17877              export CONFIG_SHELL
17878              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17879            fi;;
17880          esac
17881        done
17882 done
17883 ;;
17884   esac
17885
17886   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17887   # uniformly replaced by the line number.  The first 'sed' inserts a
17888   # line-number line before each line; the second 'sed' does the real
17889   # work.  The second script uses 'N' to pair each line-number line
17890   # with the numbered line, and appends trailing '-' during
17891   # substitution so that $LINENO is not a special case at line end.
17892   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17893   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17894   sed '=' <$as_myself |
17895     sed '
17896       N
17897       s,$,-,
17898       : loop
17899       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17900       t loop
17901       s,-$,,
17902       s,^['$as_cr_digits']*\n,,
17903     ' >$as_me.lineno &&
17904   chmod +x $as_me.lineno ||
17905     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17906 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17907    { (exit 1); exit 1; }; }
17908
17909   # Don't try to exec as it changes $[0], causing all sort of problems
17910   # (the dirname of $[0] is not the place where we might find the
17911   # original and so on.  Autoconf is especially sensible to this).
17912   . ./$as_me.lineno
17913   # Exit status is that of the last command.
17914   exit
17915 }
17916
17917
17918 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17919   *c*,-n*) ECHO_N= ECHO_C='
17920 ' ECHO_T='      ' ;;
17921   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17922   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17923 esac
17924
17925 if expr a : '\(a\)' >/dev/null 2>&1; then
17926   as_expr=expr
17927 else
17928   as_expr=false
17929 fi
17930
17931 rm -f conf$$ conf$$.exe conf$$.file
17932 echo >conf$$.file
17933 if ln -s conf$$.file conf$$ 2>/dev/null; then
17934   # We could just check for DJGPP; but this test a) works b) is more generic
17935   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17936   if test -f conf$$.exe; then
17937     # Don't use ln at all; we don't have any links
17938     as_ln_s='cp -p'
17939   else
17940     as_ln_s='ln -s'
17941   fi
17942 elif ln conf$$.file conf$$ 2>/dev/null; then
17943   as_ln_s=ln
17944 else
17945   as_ln_s='cp -p'
17946 fi
17947 rm -f conf$$ conf$$.exe conf$$.file
17948
17949 as_executable_p="test -f"
17950
17951 # Sed expression to map a string onto a valid CPP name.
17952 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17953
17954 # Sed expression to map a string onto a valid variable name.
17955 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17956
17957
17958 # IFS
17959 # We need space, tab and new line, in precisely that order.
17960 as_nl='
17961 '
17962 IFS="   $as_nl"
17963
17964 # CDPATH.
17965 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17966
17967 exec 6>&1
17968
17969 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17970 # report actual input values of CONFIG_FILES etc. instead of their
17971 # values after options handling.  Logging --version etc. is OK.
17972 exec 5>>config.log
17973 {
17974   echo
17975   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17976 ## Running $as_me. ##
17977 _ASBOX
17978 } >&5
17979 cat >&5 <<_CSEOF
17980
17981 This file was extended by PostgreSQL $as_me 7.5devel, which was
17982 generated by GNU Autoconf 2.53.  Invocation command line was
17983
17984   CONFIG_FILES    = $CONFIG_FILES
17985   CONFIG_HEADERS  = $CONFIG_HEADERS
17986   CONFIG_LINKS    = $CONFIG_LINKS
17987   CONFIG_COMMANDS = $CONFIG_COMMANDS
17988   $ $0 $@
17989
17990 _CSEOF
17991 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17992 echo >&5
17993 _ACEOF
17994
17995 # Files that config.status was made for.
17996 if test -n "$ac_config_files"; then
17997   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17998 fi
17999
18000 if test -n "$ac_config_headers"; then
18001   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18002 fi
18003
18004 if test -n "$ac_config_links"; then
18005   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18006 fi
18007
18008 if test -n "$ac_config_commands"; then
18009   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18010 fi
18011
18012 cat >>$CONFIG_STATUS <<\_ACEOF
18013
18014 ac_cs_usage="\
18015 \`$as_me' instantiates files from templates according to the
18016 current configuration.
18017
18018 Usage: $0 [OPTIONS] [FILE]...
18019
18020   -h, --help       print this help, then exit
18021   -V, --version    print version number, then exit
18022   -d, --debug      don't remove temporary files
18023       --recheck    update $as_me by reconfiguring in the same conditions
18024   --file=FILE[:TEMPLATE]
18025                    instantiate the configuration file FILE
18026   --header=FILE[:TEMPLATE]
18027                    instantiate the configuration header FILE
18028
18029 Configuration files:
18030 $config_files
18031
18032 Configuration headers:
18033 $config_headers
18034
18035 Configuration links:
18036 $config_links
18037
18038 Report bugs to <bug-autoconf@gnu.org>."
18039 _ACEOF
18040
18041 cat >>$CONFIG_STATUS <<_ACEOF
18042 ac_cs_version="\\
18043 PostgreSQL config.status 7.5devel
18044 configured by $0, generated by GNU Autoconf 2.53,
18045   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18046
18047 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18048 Free Software Foundation, Inc.
18049 This config.status script is free software; the Free Software Foundation
18050 gives unlimited permission to copy, distribute and modify it."
18051 srcdir=$srcdir
18052 _ACEOF
18053
18054 cat >>$CONFIG_STATUS <<\_ACEOF
18055 # If no file are specified by the user, then we need to provide default
18056 # value.  By we need to know if files were specified by the user.
18057 ac_need_defaults=:
18058 while test $# != 0
18059 do
18060   case $1 in
18061   --*=*)
18062     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18063     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18064     shift
18065     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18066     shift
18067     ;;
18068   -*);;
18069   *) # This is not an option, so the user has probably given explicit
18070      # arguments.
18071      ac_need_defaults=false;;
18072   esac
18073
18074   case $1 in
18075   # Handling of the options.
18076 _ACEOF
18077 cat >>$CONFIG_STATUS <<_ACEOF
18078   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18079     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18080     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18081 _ACEOF
18082 cat >>$CONFIG_STATUS <<\_ACEOF
18083   --version | --vers* | -V )
18084     echo "$ac_cs_version"; exit 0 ;;
18085   --he | --h)
18086     # Conflict between --help and --header
18087     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18088 Try \`$0 --help' for more information." >&5
18089 echo "$as_me: error: ambiguous option: $1
18090 Try \`$0 --help' for more information." >&2;}
18091    { (exit 1); exit 1; }; };;
18092   --help | --hel | -h )
18093     echo "$ac_cs_usage"; exit 0 ;;
18094   --debug | --d* | -d )
18095     debug=: ;;
18096   --file | --fil | --fi | --f )
18097     shift
18098     CONFIG_FILES="$CONFIG_FILES $1"
18099     ac_need_defaults=false;;
18100   --header | --heade | --head | --hea )
18101     shift
18102     CONFIG_HEADERS="$CONFIG_HEADERS $1"
18103     ac_need_defaults=false;;
18104
18105   # This is an error.
18106   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18107 Try \`$0 --help' for more information." >&5
18108 echo "$as_me: error: unrecognized option: $1
18109 Try \`$0 --help' for more information." >&2;}
18110    { (exit 1); exit 1; }; } ;;
18111
18112   *) ac_config_targets="$ac_config_targets $1" ;;
18113
18114   esac
18115   shift
18116 done
18117
18118 _ACEOF
18119
18120
18121
18122
18123
18124 cat >>$CONFIG_STATUS <<\_ACEOF
18125 for ac_config_target in $ac_config_targets
18126 do
18127   case "$ac_config_target" in
18128   # Handling of arguments.
18129   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
18130   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
18131   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
18132   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
18133   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
18134   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
18135   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
18136   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
18137   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
18138   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
18139   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18140 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18141    { (exit 1); exit 1; }; };;
18142   esac
18143 done
18144
18145 # If the user did not use the arguments to specify the items to instantiate,
18146 # then the envvar interface is used.  Set only those that are not.
18147 # We use the long form for the default assignment because of an extremely
18148 # bizarre bug on SunOS 4.1.3.
18149 if $ac_need_defaults; then
18150   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18151   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18152   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18153 fi
18154
18155 # Create a temporary directory, and hook for its removal unless debugging.
18156 $debug ||
18157 {
18158   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18159   trap '{ (exit 1); exit 1; }' 1 2 13 15
18160 }
18161
18162 # Create a (secure) tmp directory for tmp files.
18163 : ${TMPDIR=/tmp}
18164 {
18165   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18166   test -n "$tmp" && test -d "$tmp"
18167 }  ||
18168 {
18169   tmp=$TMPDIR/cs$$-$RANDOM
18170   (umask 077 && mkdir $tmp)
18171 } ||
18172 {
18173    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18174    { (exit 1); exit 1; }
18175 }
18176
18177 _ACEOF
18178
18179 cat >>$CONFIG_STATUS <<_ACEOF
18180
18181 #
18182 # CONFIG_FILES section.
18183 #
18184
18185 # No need to generate the scripts if there are no CONFIG_FILES.
18186 # This happens for instance when ./config.status config.h
18187 if test -n "\$CONFIG_FILES"; then
18188   # Protect against being on the right side of a sed subst in config.status.
18189   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18190    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18191 s,@SHELL@,$SHELL,;t t
18192 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18193 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18194 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18195 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18196 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18197 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18198 s,@exec_prefix@,$exec_prefix,;t t
18199 s,@prefix@,$prefix,;t t
18200 s,@program_transform_name@,$program_transform_name,;t t
18201 s,@bindir@,$bindir,;t t
18202 s,@sbindir@,$sbindir,;t t
18203 s,@libexecdir@,$libexecdir,;t t
18204 s,@datadir@,$datadir,;t t
18205 s,@sysconfdir@,$sysconfdir,;t t
18206 s,@sharedstatedir@,$sharedstatedir,;t t
18207 s,@localstatedir@,$localstatedir,;t t
18208 s,@libdir@,$libdir,;t t
18209 s,@includedir@,$includedir,;t t
18210 s,@oldincludedir@,$oldincludedir,;t t
18211 s,@infodir@,$infodir,;t t
18212 s,@mandir@,$mandir,;t t
18213 s,@build_alias@,$build_alias,;t t
18214 s,@host_alias@,$host_alias,;t t
18215 s,@target_alias@,$target_alias,;t t
18216 s,@DEFS@,$DEFS,;t t
18217 s,@ECHO_C@,$ECHO_C,;t t
18218 s,@ECHO_N@,$ECHO_N,;t t
18219 s,@ECHO_T@,$ECHO_T,;t t
18220 s,@LIBS@,$LIBS,;t t
18221 s,@configure_args@,$configure_args,;t t
18222 s,@build@,$build,;t t
18223 s,@build_cpu@,$build_cpu,;t t
18224 s,@build_vendor@,$build_vendor,;t t
18225 s,@build_os@,$build_os,;t t
18226 s,@host@,$host,;t t
18227 s,@host_cpu@,$host_cpu,;t t
18228 s,@host_vendor@,$host_vendor,;t t
18229 s,@host_os@,$host_os,;t t
18230 s,@PORTNAME@,$PORTNAME,;t t
18231 s,@docdir@,$docdir,;t t
18232 s,@enable_nls@,$enable_nls,;t t
18233 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
18234 s,@default_port@,$default_port,;t t
18235 s,@enable_shared@,$enable_shared,;t t
18236 s,@enable_rpath@,$enable_rpath,;t t
18237 s,@enable_debug@,$enable_debug,;t t
18238 s,@CC@,$CC,;t t
18239 s,@CFLAGS@,$CFLAGS,;t t
18240 s,@LDFLAGS@,$LDFLAGS,;t t
18241 s,@CPPFLAGS@,$CPPFLAGS,;t t
18242 s,@ac_ct_CC@,$ac_ct_CC,;t t
18243 s,@EXEEXT@,$EXEEXT,;t t
18244 s,@OBJEXT@,$OBJEXT,;t t
18245 s,@CPP@,$CPP,;t t
18246 s,@GCC@,$GCC,;t t
18247 s,@TAS@,$TAS,;t t
18248 s,@autodepend@,$autodepend,;t t
18249 s,@INCLUDES@,$INCLUDES,;t t
18250 s,@enable_thread_safety@,$enable_thread_safety,;t t
18251 s,@with_tcl@,$with_tcl,;t t
18252 s,@with_tk@,$with_tk,;t t
18253 s,@with_perl@,$with_perl,;t t
18254 s,@with_python@,$with_python,;t t
18255 s,@ANT@,$ANT,;t t
18256 s,@with_java@,$with_java,;t t
18257 s,@with_krb4@,$with_krb4,;t t
18258 s,@with_krb5@,$with_krb5,;t t
18259 s,@krb_srvtab@,$krb_srvtab,;t t
18260 s,@with_pam@,$with_pam,;t t
18261 s,@with_rendezvous@,$with_rendezvous,;t t
18262 s,@with_openssl@,$with_openssl,;t t
18263 s,@ELF_SYS@,$ELF_SYS,;t t
18264 s,@AWK@,$AWK,;t t
18265 s,@FLEX@,$FLEX,;t t
18266 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
18267 s,@LN_S@,$LN_S,;t t
18268 s,@LD@,$LD,;t t
18269 s,@with_gnu_ld@,$with_gnu_ld,;t t
18270 s,@ld_R_works@,$ld_R_works,;t t
18271 s,@RANLIB@,$RANLIB,;t t
18272 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18273 s,@LORDER@,$LORDER,;t t
18274 s,@TAR@,$TAR,;t t
18275 s,@STRIP@,$STRIP,;t t
18276 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18277 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
18278 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
18279 s,@YACC@,$YACC,;t t
18280 s,@YFLAGS@,$YFLAGS,;t t
18281 s,@PERL@,$PERL,;t t
18282 s,@perl_archlibexp@,$perl_archlibexp,;t t
18283 s,@perl_privlibexp@,$perl_privlibexp,;t t
18284 s,@perl_useshrplib@,$perl_useshrplib,;t t
18285 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
18286 s,@PYTHON@,$PYTHON,;t t
18287 s,@python_prefix@,$python_prefix,;t t
18288 s,@python_execprefix@,$python_execprefix,;t t
18289 s,@python_configdir@,$python_configdir,;t t
18290 s,@python_includespec@,$python_includespec,;t t
18291 s,@python_libspec@,$python_libspec,;t t
18292 s,@LIBOBJS@,$LIBOBJS,;t t
18293 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
18294 s,@THREAD_SUPPORT@,$THREAD_SUPPORT,;t t
18295 s,@THREAD_CPPFLAGS@,$THREAD_CPPFLAGS,;t t
18296 s,@THREAD_LIBS@,$THREAD_LIBS,;t t
18297 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
18298 s,@MSGFMT@,$MSGFMT,;t t
18299 s,@MSGMERGE@,$MSGMERGE,;t t
18300 s,@XGETTEXT@,$XGETTEXT,;t t
18301 s,@localedir@,$localedir,;t t
18302 s,@TCLSH@,$TCLSH,;t t
18303 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
18304 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
18305 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
18306 s,@TCL_LIBS@,$TCL_LIBS,;t t
18307 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
18308 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
18309 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
18310 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
18311 s,@TK_LIBS@,$TK_LIBS,;t t
18312 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
18313 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
18314 s,@NSGMLS@,$NSGMLS,;t t
18315 s,@JADE@,$JADE,;t t
18316 s,@have_docbook@,$have_docbook,;t t
18317 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
18318 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
18319 s,@SGMLSPL@,$SGMLSPL,;t t
18320 s,@vpath_build@,$vpath_build,;t t
18321 CEOF
18322
18323 _ACEOF
18324
18325   cat >>$CONFIG_STATUS <<\_ACEOF
18326   # Split the substitutions into bite-sized pieces for seds with
18327   # small command number limits, like on Digital OSF/1 and HP-UX.
18328   ac_max_sed_lines=48
18329   ac_sed_frag=1 # Number of current file.
18330   ac_beg=1 # First line for current file.
18331   ac_end=$ac_max_sed_lines # Line after last line for current file.
18332   ac_more_lines=:
18333   ac_sed_cmds=
18334   while $ac_more_lines; do
18335     if test $ac_beg -gt 1; then
18336       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18337     else
18338       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18339     fi
18340     if test ! -s $tmp/subs.frag; then
18341       ac_more_lines=false
18342     else
18343       # The purpose of the label and of the branching condition is to
18344       # speed up the sed processing (if there are no `@' at all, there
18345       # is no need to browse any of the substitutions).
18346       # These are the two extra sed commands mentioned above.
18347       (echo ':t
18348   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18349       if test -z "$ac_sed_cmds"; then
18350         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18351       else
18352         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18353       fi
18354       ac_sed_frag=`expr $ac_sed_frag + 1`
18355       ac_beg=$ac_end
18356       ac_end=`expr $ac_end + $ac_max_sed_lines`
18357     fi
18358   done
18359   if test -z "$ac_sed_cmds"; then
18360     ac_sed_cmds=cat
18361   fi
18362 fi # test -n "$CONFIG_FILES"
18363
18364 _ACEOF
18365 cat >>$CONFIG_STATUS <<\_ACEOF
18366 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18367   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18368   case $ac_file in
18369   - | *:- | *:-:* ) # input from stdin
18370         cat >$tmp/stdin
18371         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18372         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18373   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18374         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18375   * )   ac_file_in=$ac_file.in ;;
18376   esac
18377
18378   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18379   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18380 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18381          X"$ac_file" : 'X\(//\)[^/]' \| \
18382          X"$ac_file" : 'X\(//\)$' \| \
18383          X"$ac_file" : 'X\(/\)' \| \
18384          .     : '\(.\)' 2>/dev/null ||
18385 echo X"$ac_file" |
18386     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18387           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18388           /^X\(\/\/\)$/{ s//\1/; q; }
18389           /^X\(\/\).*/{ s//\1/; q; }
18390           s/.*/./; q'`
18391   { case "$ac_dir" in
18392   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18393   *)                      as_incr_dir=.;;
18394 esac
18395 as_dummy="$ac_dir"
18396 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18397   case $as_mkdir_dir in
18398     # Skip DOS drivespec
18399     ?:) as_incr_dir=$as_mkdir_dir ;;
18400     *)
18401       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18402       test -d "$as_incr_dir" ||
18403         mkdir "$as_incr_dir" ||
18404         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18405 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18406    { (exit 1); exit 1; }; }
18407     ;;
18408   esac
18409 done; }
18410
18411   ac_builddir=.
18412
18413 if test "$ac_dir" != .; then
18414   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18415   # A "../" for each directory in $ac_dir_suffix.
18416   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18417 else
18418   ac_dir_suffix= ac_top_builddir=
18419 fi
18420
18421 case $srcdir in
18422   .)  # No --srcdir option.  We are building in place.
18423     ac_srcdir=.
18424     if test -z "$ac_top_builddir"; then
18425        ac_top_srcdir=.
18426     else
18427        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18428     fi ;;
18429   [\\/]* | ?:[\\/]* )  # Absolute path.
18430     ac_srcdir=$srcdir$ac_dir_suffix;
18431     ac_top_srcdir=$srcdir ;;
18432   *) # Relative path.
18433     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18434     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18435 esac
18436 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18437 # absolute.
18438 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18439 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18440 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18441 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18442
18443
18444
18445   if test x"$ac_file" != x-; then
18446     { echo "$as_me:$LINENO: creating $ac_file" >&5
18447 echo "$as_me: creating $ac_file" >&6;}
18448     rm -f "$ac_file"
18449   fi
18450   # Let's still pretend it is `configure' which instantiates (i.e., don't
18451   # use $as_me), people would be surprised to read:
18452   #    /* config.h.  Generated by config.status.  */
18453   if test x"$ac_file" = x-; then
18454     configure_input=
18455   else
18456     configure_input="$ac_file.  "
18457   fi
18458   configure_input=$configure_input"Generated from `echo $ac_file_in |
18459                                      sed 's,.*/,,'` by configure."
18460
18461   # First look for the input files in the build tree, otherwise in the
18462   # src tree.
18463   ac_file_inputs=`IFS=:
18464     for f in $ac_file_in; do
18465       case $f in
18466       -) echo $tmp/stdin ;;
18467       [\\/$]*)
18468          # Absolute (can't be DOS-style, as IFS=:)
18469          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18470 echo "$as_me: error: cannot find input file: $f" >&2;}
18471    { (exit 1); exit 1; }; }
18472          echo $f;;
18473       *) # Relative
18474          if test -f "$f"; then
18475            # Build tree
18476            echo $f
18477          elif test -f "$srcdir/$f"; then
18478            # Source tree
18479            echo $srcdir/$f
18480          else
18481            # /dev/null tree
18482            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18483 echo "$as_me: error: cannot find input file: $f" >&2;}
18484    { (exit 1); exit 1; }; }
18485          fi;;
18486       esac
18487     done` || { (exit 1); exit 1; }
18488 _ACEOF
18489 cat >>$CONFIG_STATUS <<_ACEOF
18490   sed "$ac_vpsub
18491 $extrasub
18492 _ACEOF
18493 cat >>$CONFIG_STATUS <<\_ACEOF
18494 :t
18495 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18496 s,@configure_input@,$configure_input,;t t
18497 s,@srcdir@,$ac_srcdir,;t t
18498 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18499 s,@top_srcdir@,$ac_top_srcdir,;t t
18500 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18501 s,@builddir@,$ac_builddir,;t t
18502 s,@abs_builddir@,$ac_abs_builddir,;t t
18503 s,@top_builddir@,$ac_top_builddir,;t t
18504 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18505 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18506   rm -f $tmp/stdin
18507   if test x"$ac_file" != x-; then
18508     mv $tmp/out $ac_file
18509   else
18510     cat $tmp/out
18511     rm -f $tmp/out
18512   fi
18513
18514 done
18515 _ACEOF
18516 cat >>$CONFIG_STATUS <<\_ACEOF
18517
18518 #
18519 # CONFIG_HEADER section.
18520 #
18521
18522 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18523 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18524 #
18525 # ac_d sets the value in "#define NAME VALUE" lines.
18526 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18527 ac_dB='[        ].*$,\1#\2'
18528 ac_dC=' '
18529 ac_dD=',;t'
18530 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18531 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18532 ac_uB='$,\1#\2define\3'
18533 ac_uC=' '
18534 ac_uD=',;t'
18535
18536 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18537   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18538   case $ac_file in
18539   - | *:- | *:-:* ) # input from stdin
18540         cat >$tmp/stdin
18541         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18542         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18543   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18544         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18545   * )   ac_file_in=$ac_file.in ;;
18546   esac
18547
18548   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18549 echo "$as_me: creating $ac_file" >&6;}
18550
18551   # First look for the input files in the build tree, otherwise in the
18552   # src tree.
18553   ac_file_inputs=`IFS=:
18554     for f in $ac_file_in; do
18555       case $f in
18556       -) echo $tmp/stdin ;;
18557       [\\/$]*)
18558          # Absolute (can't be DOS-style, as IFS=:)
18559          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18560 echo "$as_me: error: cannot find input file: $f" >&2;}
18561    { (exit 1); exit 1; }; }
18562          echo $f;;
18563       *) # Relative
18564          if test -f "$f"; then
18565            # Build tree
18566            echo $f
18567          elif test -f "$srcdir/$f"; then
18568            # Source tree
18569            echo $srcdir/$f
18570          else
18571            # /dev/null tree
18572            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18573 echo "$as_me: error: cannot find input file: $f" >&2;}
18574    { (exit 1); exit 1; }; }
18575          fi;;
18576       esac
18577     done` || { (exit 1); exit 1; }
18578   # Remove the trailing spaces.
18579   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
18580
18581 _ACEOF
18582
18583 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18584 # `conftest.undefs', that substitutes the proper values into
18585 # config.h.in to produce config.h.  The first handles `#define'
18586 # templates, and the second `#undef' templates.
18587 # And first: Protect against being on the right side of a sed subst in
18588 # config.status.  Protect against being in an unquoted here document
18589 # in config.status.
18590 rm -f conftest.defines conftest.undefs
18591 # Using a here document instead of a string reduces the quoting nightmare.
18592 # Putting comments in sed scripts is not portable.
18593 #
18594 # `end' is used to avoid that the second main sed command (meant for
18595 # 0-ary CPP macros) applies to n-ary macro definitions.
18596 # See the Autoconf documentation for `clear'.
18597 cat >confdef2sed.sed <<\_ACEOF
18598 s/[\\&,]/\\&/g
18599 s,[\\$`],\\&,g
18600 t clear
18601 : clear
18602 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18603 t end
18604 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18605 : end
18606 _ACEOF
18607 # If some macros were called several times there might be several times
18608 # the same #defines, which is useless.  Nevertheless, we may not want to
18609 # sort them, since we want the *last* AC-DEFINE to be honored.
18610 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18611 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18612 rm -f confdef2sed.sed
18613
18614 # This sed command replaces #undef with comments.  This is necessary, for
18615 # example, in the case of _POSIX_SOURCE, which is predefined and required
18616 # on some systems where configure will not decide to define it.
18617 cat >>conftest.undefs <<\_ACEOF
18618 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18619 _ACEOF
18620
18621 # Break up conftest.defines because some shells have a limit on the size
18622 # of here documents, and old seds have small limits too (100 cmds).
18623 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18624 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18625 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18626 echo '  :' >>$CONFIG_STATUS
18627 rm -f conftest.tail
18628 while grep . conftest.defines >/dev/null
18629 do
18630   # Write a limited-size here document to $tmp/defines.sed.
18631   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18632   # Speed up: don't consider the non `#define' lines.
18633   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
18634   # Work around the forget-to-reset-the-flag bug.
18635   echo 't clr' >>$CONFIG_STATUS
18636   echo ': clr' >>$CONFIG_STATUS
18637   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18638   echo 'CEOF
18639   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18640   rm -f $tmp/in
18641   mv $tmp/out $tmp/in
18642 ' >>$CONFIG_STATUS
18643   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18644   rm -f conftest.defines
18645   mv conftest.tail conftest.defines
18646 done
18647 rm -f conftest.defines
18648 echo '  fi # egrep' >>$CONFIG_STATUS
18649 echo >>$CONFIG_STATUS
18650
18651 # Break up conftest.undefs because some shells have a limit on the size
18652 # of here documents, and old seds have small limits too (100 cmds).
18653 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18654 rm -f conftest.tail
18655 while grep . conftest.undefs >/dev/null
18656 do
18657   # Write a limited-size here document to $tmp/undefs.sed.
18658   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18659   # Speed up: don't consider the non `#undef'
18660   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18661   # Work around the forget-to-reset-the-flag bug.
18662   echo 't clr' >>$CONFIG_STATUS
18663   echo ': clr' >>$CONFIG_STATUS
18664   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18665   echo 'CEOF
18666   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18667   rm -f $tmp/in
18668   mv $tmp/out $tmp/in
18669 ' >>$CONFIG_STATUS
18670   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18671   rm -f conftest.undefs
18672   mv conftest.tail conftest.undefs
18673 done
18674 rm -f conftest.undefs
18675
18676 cat >>$CONFIG_STATUS <<\_ACEOF
18677   # Let's still pretend it is `configure' which instantiates (i.e., don't
18678   # use $as_me), people would be surprised to read:
18679   #    /* config.h.  Generated by config.status.  */
18680   if test x"$ac_file" = x-; then
18681     echo "/* Generated by configure.  */" >$tmp/config.h
18682   else
18683     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18684   fi
18685   cat $tmp/in >>$tmp/config.h
18686   rm -f $tmp/in
18687   if test x"$ac_file" != x-; then
18688     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18689       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18690 echo "$as_me: $ac_file is unchanged" >&6;}
18691     else
18692       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18693 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18694          X"$ac_file" : 'X\(//\)[^/]' \| \
18695          X"$ac_file" : 'X\(//\)$' \| \
18696          X"$ac_file" : 'X\(/\)' \| \
18697          .     : '\(.\)' 2>/dev/null ||
18698 echo X"$ac_file" |
18699     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18700           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18701           /^X\(\/\/\)$/{ s//\1/; q; }
18702           /^X\(\/\).*/{ s//\1/; q; }
18703           s/.*/./; q'`
18704       { case "$ac_dir" in
18705   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18706   *)                      as_incr_dir=.;;
18707 esac
18708 as_dummy="$ac_dir"
18709 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18710   case $as_mkdir_dir in
18711     # Skip DOS drivespec
18712     ?:) as_incr_dir=$as_mkdir_dir ;;
18713     *)
18714       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18715       test -d "$as_incr_dir" ||
18716         mkdir "$as_incr_dir" ||
18717         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18718 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18719    { (exit 1); exit 1; }; }
18720     ;;
18721   esac
18722 done; }
18723
18724       rm -f $ac_file
18725       mv $tmp/config.h $ac_file
18726     fi
18727   else
18728     cat $tmp/config.h
18729     rm -f $tmp/config.h
18730   fi
18731   # Run the commands associated with the file.
18732   case $ac_file in
18733     src/include/pg_config.h )
18734 # Update timestamp for pg_config.h (see Makefile.global)
18735 echo >src/include/stamp-h
18736  ;;
18737   esac
18738 done
18739 _ACEOF
18740 cat >>$CONFIG_STATUS <<\_ACEOF
18741
18742 #
18743 # CONFIG_LINKS section.
18744 #
18745
18746 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18747   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18748   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18749
18750   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18751 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18752
18753   if test ! -r $srcdir/$ac_source; then
18754     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18755 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18756    { (exit 1); exit 1; }; }
18757   fi
18758   rm -f $ac_dest
18759
18760   # Make relative symlinks.
18761   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18762 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18763          X"$ac_dest" : 'X\(//\)[^/]' \| \
18764          X"$ac_dest" : 'X\(//\)$' \| \
18765          X"$ac_dest" : 'X\(/\)' \| \
18766          .     : '\(.\)' 2>/dev/null ||
18767 echo X"$ac_dest" |
18768     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18769           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18770           /^X\(\/\/\)$/{ s//\1/; q; }
18771           /^X\(\/\).*/{ s//\1/; q; }
18772           s/.*/./; q'`
18773   { case "$ac_dest_dir" in
18774   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18775   *)                      as_incr_dir=.;;
18776 esac
18777 as_dummy="$ac_dest_dir"
18778 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18779   case $as_mkdir_dir in
18780     # Skip DOS drivespec
18781     ?:) as_incr_dir=$as_mkdir_dir ;;
18782     *)
18783       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18784       test -d "$as_incr_dir" ||
18785         mkdir "$as_incr_dir" ||
18786         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18787 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18788    { (exit 1); exit 1; }; }
18789     ;;
18790   esac
18791 done; }
18792
18793   ac_builddir=.
18794
18795 if test "$ac_dest_dir" != .; then
18796   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18797   # A "../" for each directory in $ac_dir_suffix.
18798   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18799 else
18800   ac_dir_suffix= ac_top_builddir=
18801 fi
18802
18803 case $srcdir in
18804   .)  # No --srcdir option.  We are building in place.
18805     ac_srcdir=.
18806     if test -z "$ac_top_builddir"; then
18807        ac_top_srcdir=.
18808     else
18809        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18810     fi ;;
18811   [\\/]* | ?:[\\/]* )  # Absolute path.
18812     ac_srcdir=$srcdir$ac_dir_suffix;
18813     ac_top_srcdir=$srcdir ;;
18814   *) # Relative path.
18815     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18816     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18817 esac
18818 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18819 # absolute.
18820 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18821 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18822 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18823 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18824
18825
18826   case $srcdir in
18827   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18828       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18829   esac
18830
18831   # Make a symlink if possible; otherwise try a hard link.
18832   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18833     ln $srcdir/$ac_source $ac_dest ||
18834     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18835 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18836    { (exit 1); exit 1; }; }
18837 done
18838 _ACEOF
18839
18840 cat >>$CONFIG_STATUS <<\_ACEOF
18841
18842 { (exit 0); exit 0; }
18843 _ACEOF
18844 chmod +x $CONFIG_STATUS
18845 ac_clean_files=$ac_clean_files_save
18846
18847
18848 # configure is writing to config.log, and then calls config.status.
18849 # config.status does its own redirection, appending to config.log.
18850 # Unfortunately, on DOS this fails, as config.log is still kept open
18851 # by configure, so config.status won't be able to write to it; its
18852 # output is simply discarded.  So we exec the FD to /dev/null,
18853 # effectively closing config.log, so it can be properly (re)opened and
18854 # appended to by config.status.  When coming back to configure, we
18855 # need to make the FD available again.
18856 if test "$no_create" != yes; then
18857   ac_cs_success=:
18858   exec 5>/dev/null
18859   $SHELL $CONFIG_STATUS || ac_cs_success=false
18860   exec 5>>config.log
18861   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18862   # would make configure fail if this is the last instruction.
18863   $ac_cs_success || { (exit 1); exit 1; }
18864 fi
18865