]> granicus.if.org Git - postgresql/blob - configure
Push responsibility for selecting out-of-line-assembler TAS code out to
[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 esac
12232
12233 if test "$with_readline" = yes; then
12234   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12235 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12236 cat >conftest.$ac_ext <<_ACEOF
12237 #line $LINENO "configure"
12238 #include "confdefs.h"
12239 #include <stdio.h>
12240 #ifdef HAVE_READLINE_READLINE_H
12241 # include <readline/readline.h>
12242 #elif defined(HAVE_READLINE_H)
12243 # include <readline.h>
12244 #endif
12245
12246 #ifdef F77_DUMMY_MAIN
12247 #  ifdef __cplusplus
12248      extern "C"
12249 #  endif
12250    int F77_DUMMY_MAIN() { return 1; }
12251 #endif
12252 int
12253 main ()
12254 {
12255 rl_completion_append_character = 'x';
12256   ;
12257   return 0;
12258 }
12259 _ACEOF
12260 rm -f conftest.$ac_objext conftest$ac_exeext
12261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12262   (eval $ac_link) 2>&5
12263   ac_status=$?
12264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265   (exit $ac_status); } &&
12266          { ac_try='test -s conftest$ac_exeext'
12267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12268   (eval $ac_try) 2>&5
12269   ac_status=$?
12270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271   (exit $ac_status); }; }; then
12272   echo "$as_me:$LINENO: result: yes" >&5
12273 echo "${ECHO_T}yes" >&6
12274
12275 cat >>confdefs.h <<\_ACEOF
12276 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12277 _ACEOF
12278
12279 else
12280   echo "$as_me: failed program was:" >&5
12281 cat conftest.$ac_ext >&5
12282 echo "$as_me:$LINENO: result: no" >&5
12283 echo "${ECHO_T}no" >&6
12284 fi
12285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12286
12287
12288 for ac_func in rl_completion_matches rl_filename_completion_function
12289 do
12290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12291 echo "$as_me:$LINENO: checking for $ac_func" >&5
12292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12293 if eval "test \"\${$as_ac_var+set}\" = set"; then
12294   echo $ECHO_N "(cached) $ECHO_C" >&6
12295 else
12296   cat >conftest.$ac_ext <<_ACEOF
12297 #line $LINENO "configure"
12298 #include "confdefs.h"
12299 /* System header to define __stub macros and hopefully few prototypes,
12300     which can conflict with char $ac_func (); below.  */
12301 #include <assert.h>
12302 /* Override any gcc2 internal prototype to avoid an error.  */
12303 #ifdef __cplusplus
12304 extern "C"
12305 #endif
12306 /* We use char because int might match the return type of a gcc2
12307    builtin and then its argument prototype would still apply.  */
12308 char $ac_func ();
12309 char (*f) ();
12310
12311 #ifdef F77_DUMMY_MAIN
12312 #  ifdef __cplusplus
12313      extern "C"
12314 #  endif
12315    int F77_DUMMY_MAIN() { return 1; }
12316 #endif
12317 int
12318 main ()
12319 {
12320 /* The GNU C library defines this for functions which it implements
12321     to always fail with ENOSYS.  Some functions are actually named
12322     something starting with __ and the normal name is an alias.  */
12323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12324 choke me
12325 #else
12326 f = $ac_func;
12327 #endif
12328
12329   ;
12330   return 0;
12331 }
12332 _ACEOF
12333 rm -f conftest.$ac_objext conftest$ac_exeext
12334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12335   (eval $ac_link) 2>&5
12336   ac_status=$?
12337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338   (exit $ac_status); } &&
12339          { ac_try='test -s conftest$ac_exeext'
12340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341   (eval $ac_try) 2>&5
12342   ac_status=$?
12343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344   (exit $ac_status); }; }; then
12345   eval "$as_ac_var=yes"
12346 else
12347   echo "$as_me: failed program was:" >&5
12348 cat conftest.$ac_ext >&5
12349 eval "$as_ac_var=no"
12350 fi
12351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12352 fi
12353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12354 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12355 if test `eval echo '${'$as_ac_var'}'` = yes; then
12356   cat >>confdefs.h <<_ACEOF
12357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12358 _ACEOF
12359
12360 fi
12361 done
12362
12363
12364 for ac_func in replace_history_entry
12365 do
12366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12367 echo "$as_me:$LINENO: checking for $ac_func" >&5
12368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12369 if eval "test \"\${$as_ac_var+set}\" = set"; then
12370   echo $ECHO_N "(cached) $ECHO_C" >&6
12371 else
12372   cat >conftest.$ac_ext <<_ACEOF
12373 #line $LINENO "configure"
12374 #include "confdefs.h"
12375 /* System header to define __stub macros and hopefully few prototypes,
12376     which can conflict with char $ac_func (); below.  */
12377 #include <assert.h>
12378 /* Override any gcc2 internal prototype to avoid an error.  */
12379 #ifdef __cplusplus
12380 extern "C"
12381 #endif
12382 /* We use char because int might match the return type of a gcc2
12383    builtin and then its argument prototype would still apply.  */
12384 char $ac_func ();
12385 char (*f) ();
12386
12387 #ifdef F77_DUMMY_MAIN
12388 #  ifdef __cplusplus
12389      extern "C"
12390 #  endif
12391    int F77_DUMMY_MAIN() { return 1; }
12392 #endif
12393 int
12394 main ()
12395 {
12396 /* The GNU C library defines this for functions which it implements
12397     to always fail with ENOSYS.  Some functions are actually named
12398     something starting with __ and the normal name is an alias.  */
12399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12400 choke me
12401 #else
12402 f = $ac_func;
12403 #endif
12404
12405   ;
12406   return 0;
12407 }
12408 _ACEOF
12409 rm -f conftest.$ac_objext conftest$ac_exeext
12410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12411   (eval $ac_link) 2>&5
12412   ac_status=$?
12413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414   (exit $ac_status); } &&
12415          { ac_try='test -s conftest$ac_exeext'
12416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417   (eval $ac_try) 2>&5
12418   ac_status=$?
12419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420   (exit $ac_status); }; }; then
12421   eval "$as_ac_var=yes"
12422 else
12423   echo "$as_me: failed program was:" >&5
12424 cat conftest.$ac_ext >&5
12425 eval "$as_ac_var=no"
12426 fi
12427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12428 fi
12429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12431 if test `eval echo '${'$as_ac_var'}'` = yes; then
12432   cat >>confdefs.h <<_ACEOF
12433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12434 _ACEOF
12435
12436 fi
12437 done
12438
12439 fi
12440
12441
12442 echo "$as_me:$LINENO: checking for finite" >&5
12443 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12444 cat >conftest.$ac_ext <<_ACEOF
12445 #line $LINENO "configure"
12446 #include "confdefs.h"
12447 #include <math.h>
12448 #ifdef F77_DUMMY_MAIN
12449 #  ifdef __cplusplus
12450      extern "C"
12451 #  endif
12452    int F77_DUMMY_MAIN() { return 1; }
12453 #endif
12454 int
12455 main ()
12456 {
12457 int dummy=finite(1.0);
12458   ;
12459   return 0;
12460 }
12461 _ACEOF
12462 rm -f conftest.$ac_objext conftest$ac_exeext
12463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12464   (eval $ac_link) 2>&5
12465   ac_status=$?
12466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467   (exit $ac_status); } &&
12468          { ac_try='test -s conftest$ac_exeext'
12469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470   (eval $ac_try) 2>&5
12471   ac_status=$?
12472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473   (exit $ac_status); }; }; then
12474
12475 cat >>confdefs.h <<\_ACEOF
12476 #define HAVE_FINITE 1
12477 _ACEOF
12478
12479 echo "$as_me:$LINENO: result: yes" >&5
12480 echo "${ECHO_T}yes" >&6
12481 else
12482   echo "$as_me: failed program was:" >&5
12483 cat conftest.$ac_ext >&5
12484 echo "$as_me:$LINENO: result: no" >&5
12485 echo "${ECHO_T}no" >&6
12486 fi
12487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12488
12489 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12490 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12491 cat >conftest.$ac_ext <<_ACEOF
12492 #line $LINENO "configure"
12493 #include "confdefs.h"
12494 #include <setjmp.h>
12495 #ifdef F77_DUMMY_MAIN
12496 #  ifdef __cplusplus
12497      extern "C"
12498 #  endif
12499    int F77_DUMMY_MAIN() { return 1; }
12500 #endif
12501 int
12502 main ()
12503 {
12504 sigjmp_buf x; sigsetjmp(x, 1);
12505   ;
12506   return 0;
12507 }
12508 _ACEOF
12509 rm -f conftest.$ac_objext conftest$ac_exeext
12510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12511   (eval $ac_link) 2>&5
12512   ac_status=$?
12513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514   (exit $ac_status); } &&
12515          { ac_try='test -s conftest$ac_exeext'
12516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517   (eval $ac_try) 2>&5
12518   ac_status=$?
12519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520   (exit $ac_status); }; }; then
12521
12522 cat >>confdefs.h <<\_ACEOF
12523 #define HAVE_SIGSETJMP 1
12524 _ACEOF
12525
12526 echo "$as_me:$LINENO: result: yes" >&5
12527 echo "${ECHO_T}yes" >&6
12528 else
12529   echo "$as_me: failed program was:" >&5
12530 cat conftest.$ac_ext >&5
12531 echo "$as_me:$LINENO: result: no" >&5
12532 echo "${ECHO_T}no" >&6
12533 fi
12534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12535
12536 echo "$as_me:$LINENO: checking for syslog" >&5
12537 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12538 if test "${ac_cv_func_syslog+set}" = set; then
12539   echo $ECHO_N "(cached) $ECHO_C" >&6
12540 else
12541   cat >conftest.$ac_ext <<_ACEOF
12542 #line $LINENO "configure"
12543 #include "confdefs.h"
12544 /* System header to define __stub macros and hopefully few prototypes,
12545     which can conflict with char syslog (); below.  */
12546 #include <assert.h>
12547 /* Override any gcc2 internal prototype to avoid an error.  */
12548 #ifdef __cplusplus
12549 extern "C"
12550 #endif
12551 /* We use char because int might match the return type of a gcc2
12552    builtin and then its argument prototype would still apply.  */
12553 char syslog ();
12554 char (*f) ();
12555
12556 #ifdef F77_DUMMY_MAIN
12557 #  ifdef __cplusplus
12558      extern "C"
12559 #  endif
12560    int F77_DUMMY_MAIN() { return 1; }
12561 #endif
12562 int
12563 main ()
12564 {
12565 /* The GNU C library defines this for functions which it implements
12566     to always fail with ENOSYS.  Some functions are actually named
12567     something starting with __ and the normal name is an alias.  */
12568 #if defined (__stub_syslog) || defined (__stub___syslog)
12569 choke me
12570 #else
12571 f = syslog;
12572 #endif
12573
12574   ;
12575   return 0;
12576 }
12577 _ACEOF
12578 rm -f conftest.$ac_objext conftest$ac_exeext
12579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12580   (eval $ac_link) 2>&5
12581   ac_status=$?
12582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583   (exit $ac_status); } &&
12584          { ac_try='test -s conftest$ac_exeext'
12585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586   (eval $ac_try) 2>&5
12587   ac_status=$?
12588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589   (exit $ac_status); }; }; then
12590   ac_cv_func_syslog=yes
12591 else
12592   echo "$as_me: failed program was:" >&5
12593 cat conftest.$ac_ext >&5
12594 ac_cv_func_syslog=no
12595 fi
12596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12597 fi
12598 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12599 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12600 if test $ac_cv_func_syslog = yes; then
12601   if test "${ac_cv_header_syslog_h+set}" = set; then
12602   echo "$as_me:$LINENO: checking for syslog.h" >&5
12603 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12604 if test "${ac_cv_header_syslog_h+set}" = set; then
12605   echo $ECHO_N "(cached) $ECHO_C" >&6
12606 fi
12607 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12608 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12609 else
12610   # Is the header compilable?
12611 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12612 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12613 cat >conftest.$ac_ext <<_ACEOF
12614 #line $LINENO "configure"
12615 #include "confdefs.h"
12616 $ac_includes_default
12617 #include <syslog.h>
12618 _ACEOF
12619 rm -f conftest.$ac_objext
12620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12621   (eval $ac_compile) 2>&5
12622   ac_status=$?
12623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624   (exit $ac_status); } &&
12625          { ac_try='test -s conftest.$ac_objext'
12626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627   (eval $ac_try) 2>&5
12628   ac_status=$?
12629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630   (exit $ac_status); }; }; then
12631   ac_header_compiler=yes
12632 else
12633   echo "$as_me: failed program was:" >&5
12634 cat conftest.$ac_ext >&5
12635 ac_header_compiler=no
12636 fi
12637 rm -f conftest.$ac_objext conftest.$ac_ext
12638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12639 echo "${ECHO_T}$ac_header_compiler" >&6
12640
12641 # Is the header present?
12642 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12643 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12644 cat >conftest.$ac_ext <<_ACEOF
12645 #line $LINENO "configure"
12646 #include "confdefs.h"
12647 #include <syslog.h>
12648 _ACEOF
12649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12650   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12651   ac_status=$?
12652   egrep -v '^ *\+' conftest.er1 >conftest.err
12653   rm -f conftest.er1
12654   cat conftest.err >&5
12655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656   (exit $ac_status); } >/dev/null; then
12657   if test -s conftest.err; then
12658     ac_cpp_err=$ac_c_preproc_warn_flag
12659   else
12660     ac_cpp_err=
12661   fi
12662 else
12663   ac_cpp_err=yes
12664 fi
12665 if test -z "$ac_cpp_err"; then
12666   ac_header_preproc=yes
12667 else
12668   echo "$as_me: failed program was:" >&5
12669   cat conftest.$ac_ext >&5
12670   ac_header_preproc=no
12671 fi
12672 rm -f conftest.err conftest.$ac_ext
12673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12674 echo "${ECHO_T}$ac_header_preproc" >&6
12675
12676 # So?  What about this header?
12677 case $ac_header_compiler:$ac_header_preproc in
12678   yes:no )
12679     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12680 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12681     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12682 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12683   no:yes )
12684     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12685 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12686     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12687 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12688     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12689 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12690 esac
12691 echo "$as_me:$LINENO: checking for syslog.h" >&5
12692 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12693 if test "${ac_cv_header_syslog_h+set}" = set; then
12694   echo $ECHO_N "(cached) $ECHO_C" >&6
12695 else
12696   ac_cv_header_syslog_h=$ac_header_preproc
12697 fi
12698 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12699 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12700
12701 fi
12702 if test $ac_cv_header_syslog_h = yes; then
12703
12704 cat >>confdefs.h <<\_ACEOF
12705 #define HAVE_SYSLOG 1
12706 _ACEOF
12707
12708 fi
12709
12710
12711 fi
12712
12713
12714 echo "$as_me:$LINENO: checking for optreset" >&5
12715 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12716 if test "${pgac_cv_var_int_optreset+set}" = set; then
12717   echo $ECHO_N "(cached) $ECHO_C" >&6
12718 else
12719   cat >conftest.$ac_ext <<_ACEOF
12720 #line $LINENO "configure"
12721 #include "confdefs.h"
12722 #include <unistd.h>
12723 #ifdef F77_DUMMY_MAIN
12724 #  ifdef __cplusplus
12725      extern "C"
12726 #  endif
12727    int F77_DUMMY_MAIN() { return 1; }
12728 #endif
12729 int
12730 main ()
12731 {
12732 extern int optreset; optreset = 1;
12733   ;
12734   return 0;
12735 }
12736 _ACEOF
12737 rm -f conftest.$ac_objext conftest$ac_exeext
12738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12739   (eval $ac_link) 2>&5
12740   ac_status=$?
12741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742   (exit $ac_status); } &&
12743          { ac_try='test -s conftest$ac_exeext'
12744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745   (eval $ac_try) 2>&5
12746   ac_status=$?
12747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748   (exit $ac_status); }; }; then
12749   pgac_cv_var_int_optreset=yes
12750 else
12751   echo "$as_me: failed program was:" >&5
12752 cat conftest.$ac_ext >&5
12753 pgac_cv_var_int_optreset=no
12754 fi
12755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12756 fi
12757 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12758 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12759 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12760
12761 cat >>confdefs.h <<\_ACEOF
12762 #define HAVE_INT_OPTRESET 1
12763 _ACEOF
12764
12765 fi
12766
12767
12768
12769 for ac_func in strtoll strtoq
12770 do
12771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12772 echo "$as_me:$LINENO: checking for $ac_func" >&5
12773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12774 if eval "test \"\${$as_ac_var+set}\" = set"; then
12775   echo $ECHO_N "(cached) $ECHO_C" >&6
12776 else
12777   cat >conftest.$ac_ext <<_ACEOF
12778 #line $LINENO "configure"
12779 #include "confdefs.h"
12780 /* System header to define __stub macros and hopefully few prototypes,
12781     which can conflict with char $ac_func (); below.  */
12782 #include <assert.h>
12783 /* Override any gcc2 internal prototype to avoid an error.  */
12784 #ifdef __cplusplus
12785 extern "C"
12786 #endif
12787 /* We use char because int might match the return type of a gcc2
12788    builtin and then its argument prototype would still apply.  */
12789 char $ac_func ();
12790 char (*f) ();
12791
12792 #ifdef F77_DUMMY_MAIN
12793 #  ifdef __cplusplus
12794      extern "C"
12795 #  endif
12796    int F77_DUMMY_MAIN() { return 1; }
12797 #endif
12798 int
12799 main ()
12800 {
12801 /* The GNU C library defines this for functions which it implements
12802     to always fail with ENOSYS.  Some functions are actually named
12803     something starting with __ and the normal name is an alias.  */
12804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12805 choke me
12806 #else
12807 f = $ac_func;
12808 #endif
12809
12810   ;
12811   return 0;
12812 }
12813 _ACEOF
12814 rm -f conftest.$ac_objext conftest$ac_exeext
12815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12816   (eval $ac_link) 2>&5
12817   ac_status=$?
12818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819   (exit $ac_status); } &&
12820          { ac_try='test -s conftest$ac_exeext'
12821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12822   (eval $ac_try) 2>&5
12823   ac_status=$?
12824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825   (exit $ac_status); }; }; then
12826   eval "$as_ac_var=yes"
12827 else
12828   echo "$as_me: failed program was:" >&5
12829 cat conftest.$ac_ext >&5
12830 eval "$as_ac_var=no"
12831 fi
12832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12833 fi
12834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12836 if test `eval echo '${'$as_ac_var'}'` = yes; then
12837   cat >>confdefs.h <<_ACEOF
12838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12839 _ACEOF
12840  break
12841 fi
12842 done
12843
12844
12845
12846 for ac_func in strtoull strtouq
12847 do
12848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12849 echo "$as_me:$LINENO: checking for $ac_func" >&5
12850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12851 if eval "test \"\${$as_ac_var+set}\" = set"; then
12852   echo $ECHO_N "(cached) $ECHO_C" >&6
12853 else
12854   cat >conftest.$ac_ext <<_ACEOF
12855 #line $LINENO "configure"
12856 #include "confdefs.h"
12857 /* System header to define __stub macros and hopefully few prototypes,
12858     which can conflict with char $ac_func (); below.  */
12859 #include <assert.h>
12860 /* Override any gcc2 internal prototype to avoid an error.  */
12861 #ifdef __cplusplus
12862 extern "C"
12863 #endif
12864 /* We use char because int might match the return type of a gcc2
12865    builtin and then its argument prototype would still apply.  */
12866 char $ac_func ();
12867 char (*f) ();
12868
12869 #ifdef F77_DUMMY_MAIN
12870 #  ifdef __cplusplus
12871      extern "C"
12872 #  endif
12873    int F77_DUMMY_MAIN() { return 1; }
12874 #endif
12875 int
12876 main ()
12877 {
12878 /* The GNU C library defines this for functions which it implements
12879     to always fail with ENOSYS.  Some functions are actually named
12880     something starting with __ and the normal name is an alias.  */
12881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12882 choke me
12883 #else
12884 f = $ac_func;
12885 #endif
12886
12887   ;
12888   return 0;
12889 }
12890 _ACEOF
12891 rm -f conftest.$ac_objext conftest$ac_exeext
12892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12893   (eval $ac_link) 2>&5
12894   ac_status=$?
12895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896   (exit $ac_status); } &&
12897          { ac_try='test -s conftest$ac_exeext'
12898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12899   (eval $ac_try) 2>&5
12900   ac_status=$?
12901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902   (exit $ac_status); }; }; then
12903   eval "$as_ac_var=yes"
12904 else
12905   echo "$as_me: failed program was:" >&5
12906 cat conftest.$ac_ext >&5
12907 eval "$as_ac_var=no"
12908 fi
12909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12910 fi
12911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12912 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12913 if test `eval echo '${'$as_ac_var'}'` = yes; then
12914   cat >>confdefs.h <<_ACEOF
12915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12916 _ACEOF
12917  break
12918 fi
12919 done
12920
12921
12922 # Check for one of atexit() or on_exit()
12923
12924 for ac_func in atexit
12925 do
12926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12927 echo "$as_me:$LINENO: checking for $ac_func" >&5
12928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12929 if eval "test \"\${$as_ac_var+set}\" = set"; then
12930   echo $ECHO_N "(cached) $ECHO_C" >&6
12931 else
12932   cat >conftest.$ac_ext <<_ACEOF
12933 #line $LINENO "configure"
12934 #include "confdefs.h"
12935 /* System header to define __stub macros and hopefully few prototypes,
12936     which can conflict with char $ac_func (); below.  */
12937 #include <assert.h>
12938 /* Override any gcc2 internal prototype to avoid an error.  */
12939 #ifdef __cplusplus
12940 extern "C"
12941 #endif
12942 /* We use char because int might match the return type of a gcc2
12943    builtin and then its argument prototype would still apply.  */
12944 char $ac_func ();
12945 char (*f) ();
12946
12947 #ifdef F77_DUMMY_MAIN
12948 #  ifdef __cplusplus
12949      extern "C"
12950 #  endif
12951    int F77_DUMMY_MAIN() { return 1; }
12952 #endif
12953 int
12954 main ()
12955 {
12956 /* The GNU C library defines this for functions which it implements
12957     to always fail with ENOSYS.  Some functions are actually named
12958     something starting with __ and the normal name is an alias.  */
12959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12960 choke me
12961 #else
12962 f = $ac_func;
12963 #endif
12964
12965   ;
12966   return 0;
12967 }
12968 _ACEOF
12969 rm -f conftest.$ac_objext conftest$ac_exeext
12970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12971   (eval $ac_link) 2>&5
12972   ac_status=$?
12973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974   (exit $ac_status); } &&
12975          { ac_try='test -s conftest$ac_exeext'
12976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977   (eval $ac_try) 2>&5
12978   ac_status=$?
12979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980   (exit $ac_status); }; }; then
12981   eval "$as_ac_var=yes"
12982 else
12983   echo "$as_me: failed program was:" >&5
12984 cat conftest.$ac_ext >&5
12985 eval "$as_ac_var=no"
12986 fi
12987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12988 fi
12989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12990 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12991 if test `eval echo '${'$as_ac_var'}'` = yes; then
12992   cat >>confdefs.h <<_ACEOF
12993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12994 _ACEOF
12995
12996 else
12997
12998 for ac_func in on_exit
12999 do
13000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13001 echo "$as_me:$LINENO: checking for $ac_func" >&5
13002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13003 if eval "test \"\${$as_ac_var+set}\" = set"; then
13004   echo $ECHO_N "(cached) $ECHO_C" >&6
13005 else
13006   cat >conftest.$ac_ext <<_ACEOF
13007 #line $LINENO "configure"
13008 #include "confdefs.h"
13009 /* System header to define __stub macros and hopefully few prototypes,
13010     which can conflict with char $ac_func (); below.  */
13011 #include <assert.h>
13012 /* Override any gcc2 internal prototype to avoid an error.  */
13013 #ifdef __cplusplus
13014 extern "C"
13015 #endif
13016 /* We use char because int might match the return type of a gcc2
13017    builtin and then its argument prototype would still apply.  */
13018 char $ac_func ();
13019 char (*f) ();
13020
13021 #ifdef F77_DUMMY_MAIN
13022 #  ifdef __cplusplus
13023      extern "C"
13024 #  endif
13025    int F77_DUMMY_MAIN() { return 1; }
13026 #endif
13027 int
13028 main ()
13029 {
13030 /* The GNU C library defines this for functions which it implements
13031     to always fail with ENOSYS.  Some functions are actually named
13032     something starting with __ and the normal name is an alias.  */
13033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13034 choke me
13035 #else
13036 f = $ac_func;
13037 #endif
13038
13039   ;
13040   return 0;
13041 }
13042 _ACEOF
13043 rm -f conftest.$ac_objext conftest$ac_exeext
13044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13045   (eval $ac_link) 2>&5
13046   ac_status=$?
13047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048   (exit $ac_status); } &&
13049          { ac_try='test -s conftest$ac_exeext'
13050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13051   (eval $ac_try) 2>&5
13052   ac_status=$?
13053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054   (exit $ac_status); }; }; then
13055   eval "$as_ac_var=yes"
13056 else
13057   echo "$as_me: failed program was:" >&5
13058 cat conftest.$ac_ext >&5
13059 eval "$as_ac_var=no"
13060 fi
13061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13062 fi
13063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13065 if test `eval echo '${'$as_ac_var'}'` = yes; then
13066   cat >>confdefs.h <<_ACEOF
13067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13068 _ACEOF
13069
13070 else
13071   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
13072 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
13073    { (exit 1); exit 1; }; }
13074 fi
13075 done
13076
13077 fi
13078 done
13079
13080
13081 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13082 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13083 if test "${ac_cv_sys_largefile_source+set}" = set; then
13084   echo $ECHO_N "(cached) $ECHO_C" >&6
13085 else
13086   while :; do
13087   ac_cv_sys_largefile_source=no
13088   cat >conftest.$ac_ext <<_ACEOF
13089 #line $LINENO "configure"
13090 #include "confdefs.h"
13091 #include <stdio.h>
13092 #ifdef F77_DUMMY_MAIN
13093 #  ifdef __cplusplus
13094      extern "C"
13095 #  endif
13096    int F77_DUMMY_MAIN() { return 1; }
13097 #endif
13098 int
13099 main ()
13100 {
13101 return !fseeko;
13102   ;
13103   return 0;
13104 }
13105 _ACEOF
13106 rm -f conftest.$ac_objext
13107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13108   (eval $ac_compile) 2>&5
13109   ac_status=$?
13110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111   (exit $ac_status); } &&
13112          { ac_try='test -s conftest.$ac_objext'
13113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114   (eval $ac_try) 2>&5
13115   ac_status=$?
13116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117   (exit $ac_status); }; }; then
13118   break
13119 else
13120   echo "$as_me: failed program was:" >&5
13121 cat conftest.$ac_ext >&5
13122 fi
13123 rm -f conftest.$ac_objext conftest.$ac_ext
13124   cat >conftest.$ac_ext <<_ACEOF
13125 #line $LINENO "configure"
13126 #include "confdefs.h"
13127 #define _LARGEFILE_SOURCE 1
13128 #include <stdio.h>
13129 #ifdef F77_DUMMY_MAIN
13130 #  ifdef __cplusplus
13131      extern "C"
13132 #  endif
13133    int F77_DUMMY_MAIN() { return 1; }
13134 #endif
13135 int
13136 main ()
13137 {
13138 return !fseeko;
13139   ;
13140   return 0;
13141 }
13142 _ACEOF
13143 rm -f conftest.$ac_objext
13144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13145   (eval $ac_compile) 2>&5
13146   ac_status=$?
13147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148   (exit $ac_status); } &&
13149          { ac_try='test -s conftest.$ac_objext'
13150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13151   (eval $ac_try) 2>&5
13152   ac_status=$?
13153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154   (exit $ac_status); }; }; then
13155   ac_cv_sys_largefile_source=1; break
13156 else
13157   echo "$as_me: failed program was:" >&5
13158 cat conftest.$ac_ext >&5
13159 fi
13160 rm -f conftest.$ac_objext conftest.$ac_ext
13161   break
13162 done
13163 fi
13164 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13165 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13166 if test "$ac_cv_sys_largefile_source" != no; then
13167
13168 cat >>confdefs.h <<_ACEOF
13169 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13170 _ACEOF
13171
13172 fi
13173 rm -f conftest*
13174
13175 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13176 # in glibc 2.1.3, but that breaks too many other things.
13177 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13178 echo "$as_me:$LINENO: checking for fseeko" >&5
13179 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13180 if test "${ac_cv_func_fseeko+set}" = set; then
13181   echo $ECHO_N "(cached) $ECHO_C" >&6
13182 else
13183   cat >conftest.$ac_ext <<_ACEOF
13184 #line $LINENO "configure"
13185 #include "confdefs.h"
13186 #include <stdio.h>
13187 #ifdef F77_DUMMY_MAIN
13188 #  ifdef __cplusplus
13189      extern "C"
13190 #  endif
13191    int F77_DUMMY_MAIN() { return 1; }
13192 #endif
13193 int
13194 main ()
13195 {
13196 return fseeko && fseeko (stdin, 0, 0);
13197   ;
13198   return 0;
13199 }
13200 _ACEOF
13201 rm -f conftest.$ac_objext conftest$ac_exeext
13202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13203   (eval $ac_link) 2>&5
13204   ac_status=$?
13205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206   (exit $ac_status); } &&
13207          { ac_try='test -s conftest$ac_exeext'
13208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209   (eval $ac_try) 2>&5
13210   ac_status=$?
13211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212   (exit $ac_status); }; }; then
13213   ac_cv_func_fseeko=yes
13214 else
13215   echo "$as_me: failed program was:" >&5
13216 cat conftest.$ac_ext >&5
13217 ac_cv_func_fseeko=no
13218 fi
13219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13220 fi
13221 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13222 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13223 if test $ac_cv_func_fseeko = yes; then
13224
13225 cat >>confdefs.h <<\_ACEOF
13226 #define HAVE_FSEEKO 1
13227 _ACEOF
13228
13229 fi
13230
13231
13232 #
13233 # Pthreads
13234 #
13235 # For each platform, we need to know about any special compile and link
13236 # libraries, and whether the normal C function names are thread-safe.
13237 # See the comment at the top of src/port/thread.c for more information.
13238 #
13239 if test "$enable_thread_safety" = yes; then
13240 if test "${ac_cv_header_pthread_h+set}" = set; then
13241   echo "$as_me:$LINENO: checking for pthread.h" >&5
13242 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13243 if test "${ac_cv_header_pthread_h+set}" = set; then
13244   echo $ECHO_N "(cached) $ECHO_C" >&6
13245 fi
13246 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13247 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13248 else
13249   # Is the header compilable?
13250 echo "$as_me:$LINENO: checking pthread.h usability" >&5
13251 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
13252 cat >conftest.$ac_ext <<_ACEOF
13253 #line $LINENO "configure"
13254 #include "confdefs.h"
13255 $ac_includes_default
13256 #include <pthread.h>
13257 _ACEOF
13258 rm -f conftest.$ac_objext
13259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13260   (eval $ac_compile) 2>&5
13261   ac_status=$?
13262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263   (exit $ac_status); } &&
13264          { ac_try='test -s conftest.$ac_objext'
13265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266   (eval $ac_try) 2>&5
13267   ac_status=$?
13268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269   (exit $ac_status); }; }; then
13270   ac_header_compiler=yes
13271 else
13272   echo "$as_me: failed program was:" >&5
13273 cat conftest.$ac_ext >&5
13274 ac_header_compiler=no
13275 fi
13276 rm -f conftest.$ac_objext conftest.$ac_ext
13277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13278 echo "${ECHO_T}$ac_header_compiler" >&6
13279
13280 # Is the header present?
13281 echo "$as_me:$LINENO: checking pthread.h presence" >&5
13282 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
13283 cat >conftest.$ac_ext <<_ACEOF
13284 #line $LINENO "configure"
13285 #include "confdefs.h"
13286 #include <pthread.h>
13287 _ACEOF
13288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13289   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13290   ac_status=$?
13291   egrep -v '^ *\+' conftest.er1 >conftest.err
13292   rm -f conftest.er1
13293   cat conftest.err >&5
13294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295   (exit $ac_status); } >/dev/null; then
13296   if test -s conftest.err; then
13297     ac_cpp_err=$ac_c_preproc_warn_flag
13298   else
13299     ac_cpp_err=
13300   fi
13301 else
13302   ac_cpp_err=yes
13303 fi
13304 if test -z "$ac_cpp_err"; then
13305   ac_header_preproc=yes
13306 else
13307   echo "$as_me: failed program was:" >&5
13308   cat conftest.$ac_ext >&5
13309   ac_header_preproc=no
13310 fi
13311 rm -f conftest.err conftest.$ac_ext
13312 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13313 echo "${ECHO_T}$ac_header_preproc" >&6
13314
13315 # So?  What about this header?
13316 case $ac_header_compiler:$ac_header_preproc in
13317   yes:no )
13318     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13319 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13320     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13321 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13322   no:yes )
13323     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13324 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13325     { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13326 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13327     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13328 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13329 esac
13330 echo "$as_me:$LINENO: checking for pthread.h" >&5
13331 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13332 if test "${ac_cv_header_pthread_h+set}" = set; then
13333   echo $ECHO_N "(cached) $ECHO_C" >&6
13334 else
13335   ac_cv_header_pthread_h=$ac_header_preproc
13336 fi
13337 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13338 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13339
13340 fi
13341 if test $ac_cv_header_pthread_h = yes; then
13342   :
13343 else
13344   { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safetys" >&5
13345 echo "$as_me: error: pthread.h not found, required for --enable-thread-safetys" >&2;}
13346    { (exit 1); exit 1; }; }
13347 fi
13348
13349
13350
13351 if test "$THREAD_SUPPORT" != yes; then
13352 { { echo "$as_me:$LINENO: error:
13353 Cannot enable threads on your platform.
13354 Please report your platform threading info to the PostgreSQL mailing lists
13355 so it can be added to the next release.  Report all compile flags, link flags,
13356 functions, or libraries required for threading support.
13357 See the comment at the top of src/port/thread.c for more information.
13358 " >&5
13359 echo "$as_me: error:
13360 Cannot enable threads on your platform.
13361 Please report your platform threading info to the PostgreSQL mailing lists
13362 so it can be added to the next release.  Report all compile flags, link flags,
13363 functions, or libraries required for threading support.
13364 See the comment at the top of src/port/thread.c for more information.
13365 " >&2;}
13366    { (exit 1); exit 1; }; }
13367 fi
13368 else
13369 # do not use values from template file
13370 THREAD_CPPFLAGS=
13371 THREAD_LIBS=
13372 fi
13373
13374
13375
13376
13377
13378 #
13379 # Check for re-entrant versions of certain functions
13380 #
13381 # Include special flags if threads are enabled _and_ if required for
13382 # threading on this platform.  Some platforms have *_r functions but
13383 # their natively named funcs are threadsafe, and should be used instead.
13384 #
13385 # One trick here is that if we don't call AC_CHECK_FUNCS, the
13386 # functions are marked "not found", which is perfect.
13387 #
13388 if test "$enable_thread_safety" = yes -a "$NEED_REENTRANT_FUNCS" = yes ; then
13389 _CFLAGS="$CFLAGS"
13390 _LIBS="$LIBS"
13391 CFLAGS="$CFLAGS $THREAD_CPPFLAGS"
13392 LIBS="$LIBS $THREAD_LIBS"
13393
13394
13395
13396 for ac_func in strerror_r getpwuid_r gethostbyname_r
13397 do
13398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13399 echo "$as_me:$LINENO: checking for $ac_func" >&5
13400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13401 if eval "test \"\${$as_ac_var+set}\" = set"; then
13402   echo $ECHO_N "(cached) $ECHO_C" >&6
13403 else
13404   cat >conftest.$ac_ext <<_ACEOF
13405 #line $LINENO "configure"
13406 #include "confdefs.h"
13407 /* System header to define __stub macros and hopefully few prototypes,
13408     which can conflict with char $ac_func (); below.  */
13409 #include <assert.h>
13410 /* Override any gcc2 internal prototype to avoid an error.  */
13411 #ifdef __cplusplus
13412 extern "C"
13413 #endif
13414 /* We use char because int might match the return type of a gcc2
13415    builtin and then its argument prototype would still apply.  */
13416 char $ac_func ();
13417 char (*f) ();
13418
13419 #ifdef F77_DUMMY_MAIN
13420 #  ifdef __cplusplus
13421      extern "C"
13422 #  endif
13423    int F77_DUMMY_MAIN() { return 1; }
13424 #endif
13425 int
13426 main ()
13427 {
13428 /* The GNU C library defines this for functions which it implements
13429     to always fail with ENOSYS.  Some functions are actually named
13430     something starting with __ and the normal name is an alias.  */
13431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13432 choke me
13433 #else
13434 f = $ac_func;
13435 #endif
13436
13437   ;
13438   return 0;
13439 }
13440 _ACEOF
13441 rm -f conftest.$ac_objext conftest$ac_exeext
13442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13443   (eval $ac_link) 2>&5
13444   ac_status=$?
13445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446   (exit $ac_status); } &&
13447          { ac_try='test -s conftest$ac_exeext'
13448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449   (eval $ac_try) 2>&5
13450   ac_status=$?
13451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452   (exit $ac_status); }; }; then
13453   eval "$as_ac_var=yes"
13454 else
13455   echo "$as_me: failed program was:" >&5
13456 cat conftest.$ac_ext >&5
13457 eval "$as_ac_var=no"
13458 fi
13459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13460 fi
13461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13463 if test `eval echo '${'$as_ac_var'}'` = yes; then
13464   cat >>confdefs.h <<_ACEOF
13465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13466 _ACEOF
13467
13468 fi
13469 done
13470
13471 CFLAGS="$_CFLAGS"
13472 LIBS="$_LIBS"
13473 fi
13474
13475
13476 # This test makes sure that run tests work at all.  Sometimes a shared
13477 # library is found by the linker, but the runtime linker can't find it.
13478 # This check should come after all modifications of compiler or linker
13479 # variables, and before any other run tests.
13480 echo "$as_me:$LINENO: checking test program" >&5
13481 echo $ECHO_N "checking test program... $ECHO_C" >&6
13482 if test "$cross_compiling" = yes; then
13483   echo "$as_me:$LINENO: result: cross-compiling" >&5
13484 echo "${ECHO_T}cross-compiling" >&6
13485 else
13486   cat >conftest.$ac_ext <<_ACEOF
13487 #line $LINENO "configure"
13488 #include "confdefs.h"
13489 int main() { return 0; }
13490 _ACEOF
13491 rm -f conftest$ac_exeext
13492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13493   (eval $ac_link) 2>&5
13494   ac_status=$?
13495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498   (eval $ac_try) 2>&5
13499   ac_status=$?
13500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501   (exit $ac_status); }; }; then
13502   echo "$as_me:$LINENO: result: ok" >&5
13503 echo "${ECHO_T}ok" >&6
13504 else
13505   echo "$as_me: program exited with status $ac_status" >&5
13506 echo "$as_me: failed program was:" >&5
13507 cat conftest.$ac_ext >&5
13508 ( exit $ac_status )
13509 echo "$as_me:$LINENO: result: failed" >&5
13510 echo "${ECHO_T}failed" >&6
13511 { { echo "$as_me:$LINENO: error:
13512 *** Could not execute a simple test program.  This may be a problem
13513 *** related to locating shared libraries.  Check the file 'config.log'
13514 *** for the exact reason." >&5
13515 echo "$as_me: error:
13516 *** Could not execute a simple test program.  This may be a problem
13517 *** related to locating shared libraries.  Check the file 'config.log'
13518 *** for the exact reason." >&2;}
13519    { (exit 1); exit 1; }; }
13520 fi
13521 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13522 fi
13523
13524
13525
13526 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
13527 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
13528 if test "${pgac_cv_type_long_int_64+set}" = set; then
13529   echo $ECHO_N "(cached) $ECHO_C" >&6
13530 else
13531   if test "$cross_compiling" = yes; then
13532   # If cross-compiling, check the size reported by the compiler and
13533 # trust that the arithmetic works.
13534 cat >conftest.$ac_ext <<_ACEOF
13535 #line $LINENO "configure"
13536 #include "confdefs.h"
13537
13538 #ifdef F77_DUMMY_MAIN
13539 #  ifdef __cplusplus
13540      extern "C"
13541 #  endif
13542    int F77_DUMMY_MAIN() { return 1; }
13543 #endif
13544 int
13545 main ()
13546 {
13547 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13548 test_array [0] = 0
13549
13550   ;
13551   return 0;
13552 }
13553 _ACEOF
13554 rm -f conftest.$ac_objext
13555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13556   (eval $ac_compile) 2>&5
13557   ac_status=$?
13558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559   (exit $ac_status); } &&
13560          { ac_try='test -s conftest.$ac_objext'
13561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562   (eval $ac_try) 2>&5
13563   ac_status=$?
13564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565   (exit $ac_status); }; }; then
13566   pgac_cv_type_long_int_64=yes
13567 else
13568   echo "$as_me: failed program was:" >&5
13569 cat conftest.$ac_ext >&5
13570 pgac_cv_type_long_int_64=no
13571 fi
13572 rm -f conftest.$ac_objext conftest.$ac_ext
13573 else
13574   cat >conftest.$ac_ext <<_ACEOF
13575 #line $LINENO "configure"
13576 #include "confdefs.h"
13577 typedef long int int64;
13578
13579 /*
13580  * These are globals to discourage the compiler from folding all the
13581  * arithmetic tests down to compile-time constants.
13582  */
13583 int64 a = 20000001;
13584 int64 b = 40000005;
13585
13586 int does_int64_work()
13587 {
13588   int64 c,d;
13589
13590   if (sizeof(int64) != 8)
13591     return 0;                   /* definitely not the right size */
13592
13593   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13594   c = a * b;
13595   d = (c + b) / b;
13596   if (d != a+1)
13597     return 0;
13598   return 1;
13599 }
13600 main() {
13601   exit(! does_int64_work());
13602 }
13603 _ACEOF
13604 rm -f conftest$ac_exeext
13605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13606   (eval $ac_link) 2>&5
13607   ac_status=$?
13608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13611   (eval $ac_try) 2>&5
13612   ac_status=$?
13613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614   (exit $ac_status); }; }; then
13615   pgac_cv_type_long_int_64=yes
13616 else
13617   echo "$as_me: program exited with status $ac_status" >&5
13618 echo "$as_me: failed program was:" >&5
13619 cat conftest.$ac_ext >&5
13620 ( exit $ac_status )
13621 pgac_cv_type_long_int_64=no
13622 fi
13623 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13624 fi
13625 fi
13626 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
13627 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
13628
13629 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13630 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13631
13632 cat >>confdefs.h <<\_ACEOF
13633 #define HAVE_LONG_INT_64
13634 _ACEOF
13635
13636 fi
13637
13638
13639 if test x"$HAVE_LONG_INT_64" = x"no" ; then
13640   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
13641 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
13642 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
13643   echo $ECHO_N "(cached) $ECHO_C" >&6
13644 else
13645   if test "$cross_compiling" = yes; then
13646   # If cross-compiling, check the size reported by the compiler and
13647 # trust that the arithmetic works.
13648 cat >conftest.$ac_ext <<_ACEOF
13649 #line $LINENO "configure"
13650 #include "confdefs.h"
13651
13652 #ifdef F77_DUMMY_MAIN
13653 #  ifdef __cplusplus
13654      extern "C"
13655 #  endif
13656    int F77_DUMMY_MAIN() { return 1; }
13657 #endif
13658 int
13659 main ()
13660 {
13661 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13662 test_array [0] = 0
13663
13664   ;
13665   return 0;
13666 }
13667 _ACEOF
13668 rm -f conftest.$ac_objext
13669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13670   (eval $ac_compile) 2>&5
13671   ac_status=$?
13672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673   (exit $ac_status); } &&
13674          { ac_try='test -s conftest.$ac_objext'
13675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676   (eval $ac_try) 2>&5
13677   ac_status=$?
13678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679   (exit $ac_status); }; }; then
13680   pgac_cv_type_long_long_int_64=yes
13681 else
13682   echo "$as_me: failed program was:" >&5
13683 cat conftest.$ac_ext >&5
13684 pgac_cv_type_long_long_int_64=no
13685 fi
13686 rm -f conftest.$ac_objext conftest.$ac_ext
13687 else
13688   cat >conftest.$ac_ext <<_ACEOF
13689 #line $LINENO "configure"
13690 #include "confdefs.h"
13691 typedef long long int int64;
13692
13693 /*
13694  * These are globals to discourage the compiler from folding all the
13695  * arithmetic tests down to compile-time constants.
13696  */
13697 int64 a = 20000001;
13698 int64 b = 40000005;
13699
13700 int does_int64_work()
13701 {
13702   int64 c,d;
13703
13704   if (sizeof(int64) != 8)
13705     return 0;                   /* definitely not the right size */
13706
13707   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13708   c = a * b;
13709   d = (c + b) / b;
13710   if (d != a+1)
13711     return 0;
13712   return 1;
13713 }
13714 main() {
13715   exit(! does_int64_work());
13716 }
13717 _ACEOF
13718 rm -f conftest$ac_exeext
13719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13720   (eval $ac_link) 2>&5
13721   ac_status=$?
13722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725   (eval $ac_try) 2>&5
13726   ac_status=$?
13727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728   (exit $ac_status); }; }; then
13729   pgac_cv_type_long_long_int_64=yes
13730 else
13731   echo "$as_me: program exited with status $ac_status" >&5
13732 echo "$as_me: failed program was:" >&5
13733 cat conftest.$ac_ext >&5
13734 ( exit $ac_status )
13735 pgac_cv_type_long_long_int_64=no
13736 fi
13737 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13738 fi
13739 fi
13740 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
13741 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
13742
13743 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13744 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13745
13746 cat >>confdefs.h <<\_ACEOF
13747 #define HAVE_LONG_LONG_INT_64
13748 _ACEOF
13749
13750 fi
13751
13752 fi
13753
13754
13755
13756 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13757   cat >conftest.$ac_ext <<_ACEOF
13758 #line $LINENO "configure"
13759 #include "confdefs.h"
13760
13761 #define INT64CONST(x)  x##LL
13762 long long int foo = INT64CONST(0x1234567890123456);
13763
13764 #ifdef F77_DUMMY_MAIN
13765 #  ifdef __cplusplus
13766      extern "C"
13767 #  endif
13768    int F77_DUMMY_MAIN() { return 1; }
13769 #endif
13770 int
13771 main ()
13772 {
13773
13774   ;
13775   return 0;
13776 }
13777 _ACEOF
13778 rm -f conftest.$ac_objext
13779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13780   (eval $ac_compile) 2>&5
13781   ac_status=$?
13782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783   (exit $ac_status); } &&
13784          { ac_try='test -s conftest.$ac_objext'
13785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786   (eval $ac_try) 2>&5
13787   ac_status=$?
13788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789   (exit $ac_status); }; }; then
13790
13791 cat >>confdefs.h <<\_ACEOF
13792 #define HAVE_LL_CONSTANTS 1
13793 _ACEOF
13794
13795 else
13796   echo "$as_me: failed program was:" >&5
13797 cat conftest.$ac_ext >&5
13798 fi
13799 rm -f conftest.$ac_objext conftest.$ac_ext
13800 fi
13801
13802
13803 # If we found "long int" is 64 bits, assume snprintf handles it.  If
13804 # we found we need to use "long long int", better check.  We cope with
13805 # snprintfs that use either %lld, %qd, or %I64d as the format.  If
13806 # neither works, fall back to our own snprintf emulation (which we
13807 # know uses %lld).
13808
13809 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13810   if test $pgac_need_repl_snprintf = no; then
13811     echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
13812 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
13813 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
13814   echo $ECHO_N "(cached) $ECHO_C" >&6
13815 else
13816   for pgac_format in '%lld' '%qd' '%I64d'; do
13817 if test "$cross_compiling" = yes; then
13818   pgac_cv_snprintf_long_long_int_format=cross; break
13819 else
13820   cat >conftest.$ac_ext <<_ACEOF
13821 #line $LINENO "configure"
13822 #include "confdefs.h"
13823 #include <stdio.h>
13824 typedef long long int int64;
13825 #define INT64_FORMAT "$pgac_format"
13826
13827 int64 a = 20000001;
13828 int64 b = 40000005;
13829
13830 int does_int64_snprintf_work()
13831 {
13832   int64 c;
13833   char buf[100];
13834
13835   if (sizeof(int64) != 8)
13836     return 0;                   /* doesn't look like the right size */
13837
13838   c = a * b;
13839   snprintf(buf, 100, INT64_FORMAT, c);
13840   if (strcmp(buf, "800000140000005") != 0)
13841     return 0;                   /* either multiply or snprintf is busted */
13842   return 1;
13843 }
13844 main() {
13845   exit(! does_int64_snprintf_work());
13846 }
13847 _ACEOF
13848 rm -f conftest$ac_exeext
13849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13850   (eval $ac_link) 2>&5
13851   ac_status=$?
13852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855   (eval $ac_try) 2>&5
13856   ac_status=$?
13857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858   (exit $ac_status); }; }; then
13859   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
13860 else
13861   echo "$as_me: program exited with status $ac_status" >&5
13862 echo "$as_me: failed program was:" >&5
13863 cat conftest.$ac_ext >&5
13864 fi
13865 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13866 fi
13867 done
13868 fi
13869
13870 LONG_LONG_INT_FORMAT=''
13871
13872 case $pgac_cv_snprintf_long_long_int_format in
13873   cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
13874 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
13875   ?*)    echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
13876 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
13877          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13878   *)     echo "$as_me:$LINENO: result: none" >&5
13879 echo "${ECHO_T}none" >&6;;
13880 esac
13881     if test "$LONG_LONG_INT_FORMAT" = ""; then
13882       # Force usage of our own snprintf, since system snprintf is broken
13883       pgac_need_repl_snprintf=yes
13884       LONG_LONG_INT_FORMAT='%lld'
13885     fi
13886   else
13887     # Here if we previously decided we needed to use our own snprintf
13888     LONG_LONG_INT_FORMAT='%lld'
13889   fi
13890   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13891 else
13892   # Here if we are not using 'long long int' at all
13893   INT64_FORMAT='"%ld"'
13894 fi
13895
13896
13897 cat >>confdefs.h <<_ACEOF
13898 #define INT64_FORMAT $INT64_FORMAT
13899 _ACEOF
13900
13901
13902 if test $pgac_need_repl_snprintf = yes; then
13903   LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13904 fi
13905
13906 # Need a #define for the size of Datum (unsigned long)
13907 echo "$as_me:$LINENO: checking for unsigned long" >&5
13908 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13909 if test "${ac_cv_type_unsigned_long+set}" = set; then
13910   echo $ECHO_N "(cached) $ECHO_C" >&6
13911 else
13912   cat >conftest.$ac_ext <<_ACEOF
13913 #line $LINENO "configure"
13914 #include "confdefs.h"
13915 $ac_includes_default
13916 #ifdef F77_DUMMY_MAIN
13917 #  ifdef __cplusplus
13918      extern "C"
13919 #  endif
13920    int F77_DUMMY_MAIN() { return 1; }
13921 #endif
13922 int
13923 main ()
13924 {
13925 if ((unsigned long *) 0)
13926   return 0;
13927 if (sizeof (unsigned long))
13928   return 0;
13929   ;
13930   return 0;
13931 }
13932 _ACEOF
13933 rm -f conftest.$ac_objext
13934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13935   (eval $ac_compile) 2>&5
13936   ac_status=$?
13937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938   (exit $ac_status); } &&
13939          { ac_try='test -s conftest.$ac_objext'
13940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941   (eval $ac_try) 2>&5
13942   ac_status=$?
13943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944   (exit $ac_status); }; }; then
13945   ac_cv_type_unsigned_long=yes
13946 else
13947   echo "$as_me: failed program was:" >&5
13948 cat conftest.$ac_ext >&5
13949 ac_cv_type_unsigned_long=no
13950 fi
13951 rm -f conftest.$ac_objext conftest.$ac_ext
13952 fi
13953 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13954 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13955
13956 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13957 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13958 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13959   echo $ECHO_N "(cached) $ECHO_C" >&6
13960 else
13961   if test "$ac_cv_type_unsigned_long" = yes; then
13962   # The cast to unsigned long works around a bug in the HP C Compiler
13963   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13964   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13965   # This bug is HP SR number 8606223364.
13966   if test "$cross_compiling" = yes; then
13967   # Depending upon the size, compute the lo and hi bounds.
13968 cat >conftest.$ac_ext <<_ACEOF
13969 #line $LINENO "configure"
13970 #include "confdefs.h"
13971 $ac_includes_default
13972 #ifdef F77_DUMMY_MAIN
13973 #  ifdef __cplusplus
13974      extern "C"
13975 #  endif
13976    int F77_DUMMY_MAIN() { return 1; }
13977 #endif
13978 int
13979 main ()
13980 {
13981 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13982 test_array [0] = 0
13983
13984   ;
13985   return 0;
13986 }
13987 _ACEOF
13988 rm -f conftest.$ac_objext
13989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13990   (eval $ac_compile) 2>&5
13991   ac_status=$?
13992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993   (exit $ac_status); } &&
13994          { ac_try='test -s conftest.$ac_objext'
13995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13996   (eval $ac_try) 2>&5
13997   ac_status=$?
13998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999   (exit $ac_status); }; }; then
14000   ac_lo=0 ac_mid=0
14001   while :; do
14002     cat >conftest.$ac_ext <<_ACEOF
14003 #line $LINENO "configure"
14004 #include "confdefs.h"
14005 $ac_includes_default
14006 #ifdef F77_DUMMY_MAIN
14007 #  ifdef __cplusplus
14008      extern "C"
14009 #  endif
14010    int F77_DUMMY_MAIN() { return 1; }
14011 #endif
14012 int
14013 main ()
14014 {
14015 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14016 test_array [0] = 0
14017
14018   ;
14019   return 0;
14020 }
14021 _ACEOF
14022 rm -f conftest.$ac_objext
14023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14024   (eval $ac_compile) 2>&5
14025   ac_status=$?
14026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027   (exit $ac_status); } &&
14028          { ac_try='test -s conftest.$ac_objext'
14029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030   (eval $ac_try) 2>&5
14031   ac_status=$?
14032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033   (exit $ac_status); }; }; then
14034   ac_hi=$ac_mid; break
14035 else
14036   echo "$as_me: failed program was:" >&5
14037 cat conftest.$ac_ext >&5
14038 ac_lo=`expr $ac_mid + 1`
14039                     if test $ac_lo -le $ac_mid; then
14040                       ac_lo= ac_hi=
14041                       break
14042                     fi
14043                     ac_mid=`expr 2 '*' $ac_mid + 1`
14044 fi
14045 rm -f conftest.$ac_objext conftest.$ac_ext
14046   done
14047 else
14048   echo "$as_me: failed program was:" >&5
14049 cat conftest.$ac_ext >&5
14050 cat >conftest.$ac_ext <<_ACEOF
14051 #line $LINENO "configure"
14052 #include "confdefs.h"
14053 $ac_includes_default
14054 #ifdef F77_DUMMY_MAIN
14055 #  ifdef __cplusplus
14056      extern "C"
14057 #  endif
14058    int F77_DUMMY_MAIN() { return 1; }
14059 #endif
14060 int
14061 main ()
14062 {
14063 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
14064 test_array [0] = 0
14065
14066   ;
14067   return 0;
14068 }
14069 _ACEOF
14070 rm -f conftest.$ac_objext
14071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14072   (eval $ac_compile) 2>&5
14073   ac_status=$?
14074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075   (exit $ac_status); } &&
14076          { ac_try='test -s conftest.$ac_objext'
14077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14078   (eval $ac_try) 2>&5
14079   ac_status=$?
14080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081   (exit $ac_status); }; }; then
14082   ac_hi=-1 ac_mid=-1
14083   while :; do
14084     cat >conftest.$ac_ext <<_ACEOF
14085 #line $LINENO "configure"
14086 #include "confdefs.h"
14087 $ac_includes_default
14088 #ifdef F77_DUMMY_MAIN
14089 #  ifdef __cplusplus
14090      extern "C"
14091 #  endif
14092    int F77_DUMMY_MAIN() { return 1; }
14093 #endif
14094 int
14095 main ()
14096 {
14097 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
14098 test_array [0] = 0
14099
14100   ;
14101   return 0;
14102 }
14103 _ACEOF
14104 rm -f conftest.$ac_objext
14105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14106   (eval $ac_compile) 2>&5
14107   ac_status=$?
14108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109   (exit $ac_status); } &&
14110          { ac_try='test -s conftest.$ac_objext'
14111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112   (eval $ac_try) 2>&5
14113   ac_status=$?
14114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115   (exit $ac_status); }; }; then
14116   ac_lo=$ac_mid; break
14117 else
14118   echo "$as_me: failed program was:" >&5
14119 cat conftest.$ac_ext >&5
14120 ac_hi=`expr '(' $ac_mid ')' - 1`
14121                        if test $ac_mid -le $ac_hi; then
14122                          ac_lo= ac_hi=
14123                          break
14124                        fi
14125                        ac_mid=`expr 2 '*' $ac_mid`
14126 fi
14127 rm -f conftest.$ac_objext conftest.$ac_ext
14128   done
14129 else
14130   echo "$as_me: failed program was:" >&5
14131 cat conftest.$ac_ext >&5
14132 ac_lo= ac_hi=
14133 fi
14134 rm -f conftest.$ac_objext conftest.$ac_ext
14135 fi
14136 rm -f conftest.$ac_objext conftest.$ac_ext
14137 # Binary search between lo and hi bounds.
14138 while test "x$ac_lo" != "x$ac_hi"; do
14139   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14140   cat >conftest.$ac_ext <<_ACEOF
14141 #line $LINENO "configure"
14142 #include "confdefs.h"
14143 $ac_includes_default
14144 #ifdef F77_DUMMY_MAIN
14145 #  ifdef __cplusplus
14146      extern "C"
14147 #  endif
14148    int F77_DUMMY_MAIN() { return 1; }
14149 #endif
14150 int
14151 main ()
14152 {
14153 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14154 test_array [0] = 0
14155
14156   ;
14157   return 0;
14158 }
14159 _ACEOF
14160 rm -f conftest.$ac_objext
14161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14162   (eval $ac_compile) 2>&5
14163   ac_status=$?
14164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165   (exit $ac_status); } &&
14166          { ac_try='test -s conftest.$ac_objext'
14167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168   (eval $ac_try) 2>&5
14169   ac_status=$?
14170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171   (exit $ac_status); }; }; then
14172   ac_hi=$ac_mid
14173 else
14174   echo "$as_me: failed program was:" >&5
14175 cat conftest.$ac_ext >&5
14176 ac_lo=`expr '(' $ac_mid ')' + 1`
14177 fi
14178 rm -f conftest.$ac_objext conftest.$ac_ext
14179 done
14180 case $ac_lo in
14181 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
14182 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14183 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14184    { (exit 1); exit 1; }; } ;;
14185 esac
14186 else
14187   if test "$cross_compiling" = yes; then
14188   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14189 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14190    { (exit 1); exit 1; }; }
14191 else
14192   cat >conftest.$ac_ext <<_ACEOF
14193 #line $LINENO "configure"
14194 #include "confdefs.h"
14195 $ac_includes_default
14196 long longval () { return (long) (sizeof (unsigned long)); }
14197 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
14198 #include <stdio.h>
14199 #include <stdlib.h>
14200 #ifdef F77_DUMMY_MAIN
14201 #  ifdef __cplusplus
14202      extern "C"
14203 #  endif
14204    int F77_DUMMY_MAIN() { return 1; }
14205 #endif
14206 int
14207 main ()
14208 {
14209
14210   FILE *f = fopen ("conftest.val", "w");
14211   if (! f)
14212     exit (1);
14213   if (((long) (sizeof (unsigned long))) < 0)
14214     {
14215       long i = longval ();
14216       if (i != ((long) (sizeof (unsigned long))))
14217         exit (1);
14218       fprintf (f, "%ld\n", i);
14219     }
14220   else
14221     {
14222       unsigned long i = ulongval ();
14223       if (i != ((long) (sizeof (unsigned long))))
14224         exit (1);
14225       fprintf (f, "%lu\n", i);
14226     }
14227   exit (ferror (f) || fclose (f) != 0);
14228
14229   ;
14230   return 0;
14231 }
14232 _ACEOF
14233 rm -f conftest$ac_exeext
14234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14235   (eval $ac_link) 2>&5
14236   ac_status=$?
14237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240   (eval $ac_try) 2>&5
14241   ac_status=$?
14242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243   (exit $ac_status); }; }; then
14244   ac_cv_sizeof_unsigned_long=`cat conftest.val`
14245 else
14246   echo "$as_me: program exited with status $ac_status" >&5
14247 echo "$as_me: failed program was:" >&5
14248 cat conftest.$ac_ext >&5
14249 ( exit $ac_status )
14250 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14251 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14252    { (exit 1); exit 1; }; }
14253 fi
14254 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14255 fi
14256 fi
14257 rm -f conftest.val
14258 else
14259   ac_cv_sizeof_unsigned_long=0
14260 fi
14261 fi
14262 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
14263 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
14264 cat >>confdefs.h <<_ACEOF
14265 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14266 _ACEOF
14267
14268
14269
14270 # Determine memory alignment requirements for the basic C data types.
14271
14272 echo "$as_me:$LINENO: checking for short" >&5
14273 echo $ECHO_N "checking for short... $ECHO_C" >&6
14274 if test "${ac_cv_type_short+set}" = set; then
14275   echo $ECHO_N "(cached) $ECHO_C" >&6
14276 else
14277   cat >conftest.$ac_ext <<_ACEOF
14278 #line $LINENO "configure"
14279 #include "confdefs.h"
14280 $ac_includes_default
14281 #ifdef F77_DUMMY_MAIN
14282 #  ifdef __cplusplus
14283      extern "C"
14284 #  endif
14285    int F77_DUMMY_MAIN() { return 1; }
14286 #endif
14287 int
14288 main ()
14289 {
14290 if ((short *) 0)
14291   return 0;
14292 if (sizeof (short))
14293   return 0;
14294   ;
14295   return 0;
14296 }
14297 _ACEOF
14298 rm -f conftest.$ac_objext
14299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14300   (eval $ac_compile) 2>&5
14301   ac_status=$?
14302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303   (exit $ac_status); } &&
14304          { ac_try='test -s conftest.$ac_objext'
14305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306   (eval $ac_try) 2>&5
14307   ac_status=$?
14308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309   (exit $ac_status); }; }; then
14310   ac_cv_type_short=yes
14311 else
14312   echo "$as_me: failed program was:" >&5
14313 cat conftest.$ac_ext >&5
14314 ac_cv_type_short=no
14315 fi
14316 rm -f conftest.$ac_objext conftest.$ac_ext
14317 fi
14318 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14319 echo "${ECHO_T}$ac_cv_type_short" >&6
14320
14321 echo "$as_me:$LINENO: checking alignment of short" >&5
14322 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
14323 if test "${pgac_cv_alignof_short+set}" = set; then
14324   echo $ECHO_N "(cached) $ECHO_C" >&6
14325 else
14326   if test "$ac_cv_type_short" = yes; then
14327   if test "$cross_compiling" = yes; then
14328   # Depending upon the size, compute the lo and hi bounds.
14329 cat >conftest.$ac_ext <<_ACEOF
14330 #line $LINENO "configure"
14331 #include "confdefs.h"
14332 $ac_includes_default
14333 struct { char filler; short field; } pgac_struct;
14334 #ifdef F77_DUMMY_MAIN
14335 #  ifdef __cplusplus
14336      extern "C"
14337 #  endif
14338    int F77_DUMMY_MAIN() { return 1; }
14339 #endif
14340 int
14341 main ()
14342 {
14343 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14344 test_array [0] = 0
14345
14346   ;
14347   return 0;
14348 }
14349 _ACEOF
14350 rm -f conftest.$ac_objext
14351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14352   (eval $ac_compile) 2>&5
14353   ac_status=$?
14354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355   (exit $ac_status); } &&
14356          { ac_try='test -s conftest.$ac_objext'
14357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358   (eval $ac_try) 2>&5
14359   ac_status=$?
14360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361   (exit $ac_status); }; }; then
14362   ac_lo=0 ac_mid=0
14363   while :; do
14364     cat >conftest.$ac_ext <<_ACEOF
14365 #line $LINENO "configure"
14366 #include "confdefs.h"
14367 $ac_includes_default
14368 struct { char filler; short field; } pgac_struct;
14369 #ifdef F77_DUMMY_MAIN
14370 #  ifdef __cplusplus
14371      extern "C"
14372 #  endif
14373    int F77_DUMMY_MAIN() { return 1; }
14374 #endif
14375 int
14376 main ()
14377 {
14378 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14379 test_array [0] = 0
14380
14381   ;
14382   return 0;
14383 }
14384 _ACEOF
14385 rm -f conftest.$ac_objext
14386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14387   (eval $ac_compile) 2>&5
14388   ac_status=$?
14389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390   (exit $ac_status); } &&
14391          { ac_try='test -s conftest.$ac_objext'
14392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393   (eval $ac_try) 2>&5
14394   ac_status=$?
14395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396   (exit $ac_status); }; }; then
14397   ac_hi=$ac_mid; break
14398 else
14399   echo "$as_me: failed program was:" >&5
14400 cat conftest.$ac_ext >&5
14401 ac_lo=`expr $ac_mid + 1`
14402                     if test $ac_lo -le $ac_mid; then
14403                       ac_lo= ac_hi=
14404                       break
14405                     fi
14406                     ac_mid=`expr 2 '*' $ac_mid + 1`
14407 fi
14408 rm -f conftest.$ac_objext conftest.$ac_ext
14409   done
14410 else
14411   echo "$as_me: failed program was:" >&5
14412 cat conftest.$ac_ext >&5
14413 cat >conftest.$ac_ext <<_ACEOF
14414 #line $LINENO "configure"
14415 #include "confdefs.h"
14416 $ac_includes_default
14417 struct { char filler; short field; } pgac_struct;
14418 #ifdef F77_DUMMY_MAIN
14419 #  ifdef __cplusplus
14420      extern "C"
14421 #  endif
14422    int F77_DUMMY_MAIN() { return 1; }
14423 #endif
14424 int
14425 main ()
14426 {
14427 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14428 test_array [0] = 0
14429
14430   ;
14431   return 0;
14432 }
14433 _ACEOF
14434 rm -f conftest.$ac_objext
14435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14436   (eval $ac_compile) 2>&5
14437   ac_status=$?
14438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439   (exit $ac_status); } &&
14440          { ac_try='test -s conftest.$ac_objext'
14441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14442   (eval $ac_try) 2>&5
14443   ac_status=$?
14444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445   (exit $ac_status); }; }; then
14446   ac_hi=-1 ac_mid=-1
14447   while :; do
14448     cat >conftest.$ac_ext <<_ACEOF
14449 #line $LINENO "configure"
14450 #include "confdefs.h"
14451 $ac_includes_default
14452 struct { char filler; short field; } pgac_struct;
14453 #ifdef F77_DUMMY_MAIN
14454 #  ifdef __cplusplus
14455      extern "C"
14456 #  endif
14457    int F77_DUMMY_MAIN() { return 1; }
14458 #endif
14459 int
14460 main ()
14461 {
14462 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14463 test_array [0] = 0
14464
14465   ;
14466   return 0;
14467 }
14468 _ACEOF
14469 rm -f conftest.$ac_objext
14470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14471   (eval $ac_compile) 2>&5
14472   ac_status=$?
14473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474   (exit $ac_status); } &&
14475          { ac_try='test -s conftest.$ac_objext'
14476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477   (eval $ac_try) 2>&5
14478   ac_status=$?
14479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480   (exit $ac_status); }; }; then
14481   ac_lo=$ac_mid; break
14482 else
14483   echo "$as_me: failed program was:" >&5
14484 cat conftest.$ac_ext >&5
14485 ac_hi=`expr '(' $ac_mid ')' - 1`
14486                        if test $ac_mid -le $ac_hi; then
14487                          ac_lo= ac_hi=
14488                          break
14489                        fi
14490                        ac_mid=`expr 2 '*' $ac_mid`
14491 fi
14492 rm -f conftest.$ac_objext conftest.$ac_ext
14493   done
14494 else
14495   echo "$as_me: failed program was:" >&5
14496 cat conftest.$ac_ext >&5
14497 ac_lo= ac_hi=
14498 fi
14499 rm -f conftest.$ac_objext conftest.$ac_ext
14500 fi
14501 rm -f conftest.$ac_objext conftest.$ac_ext
14502 # Binary search between lo and hi bounds.
14503 while test "x$ac_lo" != "x$ac_hi"; do
14504   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14505   cat >conftest.$ac_ext <<_ACEOF
14506 #line $LINENO "configure"
14507 #include "confdefs.h"
14508 $ac_includes_default
14509 struct { char filler; short field; } pgac_struct;
14510 #ifdef F77_DUMMY_MAIN
14511 #  ifdef __cplusplus
14512      extern "C"
14513 #  endif
14514    int F77_DUMMY_MAIN() { return 1; }
14515 #endif
14516 int
14517 main ()
14518 {
14519 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14520 test_array [0] = 0
14521
14522   ;
14523   return 0;
14524 }
14525 _ACEOF
14526 rm -f conftest.$ac_objext
14527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14528   (eval $ac_compile) 2>&5
14529   ac_status=$?
14530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); } &&
14532          { ac_try='test -s conftest.$ac_objext'
14533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534   (eval $ac_try) 2>&5
14535   ac_status=$?
14536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537   (exit $ac_status); }; }; then
14538   ac_hi=$ac_mid
14539 else
14540   echo "$as_me: failed program was:" >&5
14541 cat conftest.$ac_ext >&5
14542 ac_lo=`expr '(' $ac_mid ')' + 1`
14543 fi
14544 rm -f conftest.$ac_objext conftest.$ac_ext
14545 done
14546 case $ac_lo in
14547 ?*) pgac_cv_alignof_short=$ac_lo;;
14548 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14549 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14550    { (exit 1); exit 1; }; } ;;
14551 esac
14552 else
14553   if test "$cross_compiling" = yes; then
14554   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14555 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14556    { (exit 1); exit 1; }; }
14557 else
14558   cat >conftest.$ac_ext <<_ACEOF
14559 #line $LINENO "configure"
14560 #include "confdefs.h"
14561 $ac_includes_default
14562 struct { char filler; short field; } pgac_struct;
14563 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14564 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14565 #include <stdio.h>
14566 #include <stdlib.h>
14567 #ifdef F77_DUMMY_MAIN
14568 #  ifdef __cplusplus
14569      extern "C"
14570 #  endif
14571    int F77_DUMMY_MAIN() { return 1; }
14572 #endif
14573 int
14574 main ()
14575 {
14576
14577   FILE *f = fopen ("conftest.val", "w");
14578   if (! f)
14579     exit (1);
14580   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14581     {
14582       long i = longval ();
14583       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14584         exit (1);
14585       fprintf (f, "%ld\n", i);
14586     }
14587   else
14588     {
14589       unsigned long i = ulongval ();
14590       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14591         exit (1);
14592       fprintf (f, "%lu\n", i);
14593     }
14594   exit (ferror (f) || fclose (f) != 0);
14595
14596   ;
14597   return 0;
14598 }
14599 _ACEOF
14600 rm -f conftest$ac_exeext
14601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14602   (eval $ac_link) 2>&5
14603   ac_status=$?
14604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607   (eval $ac_try) 2>&5
14608   ac_status=$?
14609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610   (exit $ac_status); }; }; then
14611   pgac_cv_alignof_short=`cat conftest.val`
14612 else
14613   echo "$as_me: program exited with status $ac_status" >&5
14614 echo "$as_me: failed program was:" >&5
14615 cat conftest.$ac_ext >&5
14616 ( exit $ac_status )
14617 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14618 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14619    { (exit 1); exit 1; }; }
14620 fi
14621 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14622 fi
14623 fi
14624 rm -f conftest.val
14625 else
14626   pgac_cv_alignof_short=0
14627 fi
14628 fi
14629 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
14630 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
14631 cat >>confdefs.h <<_ACEOF
14632 #define ALIGNOF_SHORT $pgac_cv_alignof_short
14633 _ACEOF
14634
14635
14636 echo "$as_me:$LINENO: checking for int" >&5
14637 echo $ECHO_N "checking for int... $ECHO_C" >&6
14638 if test "${ac_cv_type_int+set}" = set; then
14639   echo $ECHO_N "(cached) $ECHO_C" >&6
14640 else
14641   cat >conftest.$ac_ext <<_ACEOF
14642 #line $LINENO "configure"
14643 #include "confdefs.h"
14644 $ac_includes_default
14645 #ifdef F77_DUMMY_MAIN
14646 #  ifdef __cplusplus
14647      extern "C"
14648 #  endif
14649    int F77_DUMMY_MAIN() { return 1; }
14650 #endif
14651 int
14652 main ()
14653 {
14654 if ((int *) 0)
14655   return 0;
14656 if (sizeof (int))
14657   return 0;
14658   ;
14659   return 0;
14660 }
14661 _ACEOF
14662 rm -f conftest.$ac_objext
14663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14664   (eval $ac_compile) 2>&5
14665   ac_status=$?
14666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667   (exit $ac_status); } &&
14668          { ac_try='test -s conftest.$ac_objext'
14669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670   (eval $ac_try) 2>&5
14671   ac_status=$?
14672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673   (exit $ac_status); }; }; then
14674   ac_cv_type_int=yes
14675 else
14676   echo "$as_me: failed program was:" >&5
14677 cat conftest.$ac_ext >&5
14678 ac_cv_type_int=no
14679 fi
14680 rm -f conftest.$ac_objext conftest.$ac_ext
14681 fi
14682 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14683 echo "${ECHO_T}$ac_cv_type_int" >&6
14684
14685 echo "$as_me:$LINENO: checking alignment of int" >&5
14686 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14687 if test "${pgac_cv_alignof_int+set}" = set; then
14688   echo $ECHO_N "(cached) $ECHO_C" >&6
14689 else
14690   if test "$ac_cv_type_int" = yes; then
14691   if test "$cross_compiling" = yes; then
14692   # Depending upon the size, compute the lo and hi bounds.
14693 cat >conftest.$ac_ext <<_ACEOF
14694 #line $LINENO "configure"
14695 #include "confdefs.h"
14696 $ac_includes_default
14697 struct { char filler; int field; } pgac_struct;
14698 #ifdef F77_DUMMY_MAIN
14699 #  ifdef __cplusplus
14700      extern "C"
14701 #  endif
14702    int F77_DUMMY_MAIN() { return 1; }
14703 #endif
14704 int
14705 main ()
14706 {
14707 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14708 test_array [0] = 0
14709
14710   ;
14711   return 0;
14712 }
14713 _ACEOF
14714 rm -f conftest.$ac_objext
14715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14716   (eval $ac_compile) 2>&5
14717   ac_status=$?
14718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719   (exit $ac_status); } &&
14720          { ac_try='test -s conftest.$ac_objext'
14721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722   (eval $ac_try) 2>&5
14723   ac_status=$?
14724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725   (exit $ac_status); }; }; then
14726   ac_lo=0 ac_mid=0
14727   while :; do
14728     cat >conftest.$ac_ext <<_ACEOF
14729 #line $LINENO "configure"
14730 #include "confdefs.h"
14731 $ac_includes_default
14732 struct { char filler; int field; } pgac_struct;
14733 #ifdef F77_DUMMY_MAIN
14734 #  ifdef __cplusplus
14735      extern "C"
14736 #  endif
14737    int F77_DUMMY_MAIN() { return 1; }
14738 #endif
14739 int
14740 main ()
14741 {
14742 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14743 test_array [0] = 0
14744
14745   ;
14746   return 0;
14747 }
14748 _ACEOF
14749 rm -f conftest.$ac_objext
14750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14751   (eval $ac_compile) 2>&5
14752   ac_status=$?
14753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754   (exit $ac_status); } &&
14755          { ac_try='test -s conftest.$ac_objext'
14756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14757   (eval $ac_try) 2>&5
14758   ac_status=$?
14759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760   (exit $ac_status); }; }; then
14761   ac_hi=$ac_mid; break
14762 else
14763   echo "$as_me: failed program was:" >&5
14764 cat conftest.$ac_ext >&5
14765 ac_lo=`expr $ac_mid + 1`
14766                     if test $ac_lo -le $ac_mid; then
14767                       ac_lo= ac_hi=
14768                       break
14769                     fi
14770                     ac_mid=`expr 2 '*' $ac_mid + 1`
14771 fi
14772 rm -f conftest.$ac_objext conftest.$ac_ext
14773   done
14774 else
14775   echo "$as_me: failed program was:" >&5
14776 cat conftest.$ac_ext >&5
14777 cat >conftest.$ac_ext <<_ACEOF
14778 #line $LINENO "configure"
14779 #include "confdefs.h"
14780 $ac_includes_default
14781 struct { char filler; int field; } pgac_struct;
14782 #ifdef F77_DUMMY_MAIN
14783 #  ifdef __cplusplus
14784      extern "C"
14785 #  endif
14786    int F77_DUMMY_MAIN() { return 1; }
14787 #endif
14788 int
14789 main ()
14790 {
14791 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14792 test_array [0] = 0
14793
14794   ;
14795   return 0;
14796 }
14797 _ACEOF
14798 rm -f conftest.$ac_objext
14799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14800   (eval $ac_compile) 2>&5
14801   ac_status=$?
14802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803   (exit $ac_status); } &&
14804          { ac_try='test -s conftest.$ac_objext'
14805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806   (eval $ac_try) 2>&5
14807   ac_status=$?
14808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809   (exit $ac_status); }; }; then
14810   ac_hi=-1 ac_mid=-1
14811   while :; do
14812     cat >conftest.$ac_ext <<_ACEOF
14813 #line $LINENO "configure"
14814 #include "confdefs.h"
14815 $ac_includes_default
14816 struct { char filler; int field; } pgac_struct;
14817 #ifdef F77_DUMMY_MAIN
14818 #  ifdef __cplusplus
14819      extern "C"
14820 #  endif
14821    int F77_DUMMY_MAIN() { return 1; }
14822 #endif
14823 int
14824 main ()
14825 {
14826 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14827 test_array [0] = 0
14828
14829   ;
14830   return 0;
14831 }
14832 _ACEOF
14833 rm -f conftest.$ac_objext
14834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14835   (eval $ac_compile) 2>&5
14836   ac_status=$?
14837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838   (exit $ac_status); } &&
14839          { ac_try='test -s conftest.$ac_objext'
14840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14841   (eval $ac_try) 2>&5
14842   ac_status=$?
14843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844   (exit $ac_status); }; }; then
14845   ac_lo=$ac_mid; break
14846 else
14847   echo "$as_me: failed program was:" >&5
14848 cat conftest.$ac_ext >&5
14849 ac_hi=`expr '(' $ac_mid ')' - 1`
14850                        if test $ac_mid -le $ac_hi; then
14851                          ac_lo= ac_hi=
14852                          break
14853                        fi
14854                        ac_mid=`expr 2 '*' $ac_mid`
14855 fi
14856 rm -f conftest.$ac_objext conftest.$ac_ext
14857   done
14858 else
14859   echo "$as_me: failed program was:" >&5
14860 cat conftest.$ac_ext >&5
14861 ac_lo= ac_hi=
14862 fi
14863 rm -f conftest.$ac_objext conftest.$ac_ext
14864 fi
14865 rm -f conftest.$ac_objext conftest.$ac_ext
14866 # Binary search between lo and hi bounds.
14867 while test "x$ac_lo" != "x$ac_hi"; do
14868   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14869   cat >conftest.$ac_ext <<_ACEOF
14870 #line $LINENO "configure"
14871 #include "confdefs.h"
14872 $ac_includes_default
14873 struct { char filler; int field; } pgac_struct;
14874 #ifdef F77_DUMMY_MAIN
14875 #  ifdef __cplusplus
14876      extern "C"
14877 #  endif
14878    int F77_DUMMY_MAIN() { return 1; }
14879 #endif
14880 int
14881 main ()
14882 {
14883 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14884 test_array [0] = 0
14885
14886   ;
14887   return 0;
14888 }
14889 _ACEOF
14890 rm -f conftest.$ac_objext
14891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14892   (eval $ac_compile) 2>&5
14893   ac_status=$?
14894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895   (exit $ac_status); } &&
14896          { ac_try='test -s conftest.$ac_objext'
14897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898   (eval $ac_try) 2>&5
14899   ac_status=$?
14900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901   (exit $ac_status); }; }; then
14902   ac_hi=$ac_mid
14903 else
14904   echo "$as_me: failed program was:" >&5
14905 cat conftest.$ac_ext >&5
14906 ac_lo=`expr '(' $ac_mid ')' + 1`
14907 fi
14908 rm -f conftest.$ac_objext conftest.$ac_ext
14909 done
14910 case $ac_lo in
14911 ?*) pgac_cv_alignof_int=$ac_lo;;
14912 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14913 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14914    { (exit 1); exit 1; }; } ;;
14915 esac
14916 else
14917   if test "$cross_compiling" = yes; then
14918   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14919 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14920    { (exit 1); exit 1; }; }
14921 else
14922   cat >conftest.$ac_ext <<_ACEOF
14923 #line $LINENO "configure"
14924 #include "confdefs.h"
14925 $ac_includes_default
14926 struct { char filler; int field; } pgac_struct;
14927 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14928 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14929 #include <stdio.h>
14930 #include <stdlib.h>
14931 #ifdef F77_DUMMY_MAIN
14932 #  ifdef __cplusplus
14933      extern "C"
14934 #  endif
14935    int F77_DUMMY_MAIN() { return 1; }
14936 #endif
14937 int
14938 main ()
14939 {
14940
14941   FILE *f = fopen ("conftest.val", "w");
14942   if (! f)
14943     exit (1);
14944   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14945     {
14946       long i = longval ();
14947       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14948         exit (1);
14949       fprintf (f, "%ld\n", i);
14950     }
14951   else
14952     {
14953       unsigned long i = ulongval ();
14954       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14955         exit (1);
14956       fprintf (f, "%lu\n", i);
14957     }
14958   exit (ferror (f) || fclose (f) != 0);
14959
14960   ;
14961   return 0;
14962 }
14963 _ACEOF
14964 rm -f conftest$ac_exeext
14965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14966   (eval $ac_link) 2>&5
14967   ac_status=$?
14968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971   (eval $ac_try) 2>&5
14972   ac_status=$?
14973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974   (exit $ac_status); }; }; then
14975   pgac_cv_alignof_int=`cat conftest.val`
14976 else
14977   echo "$as_me: program exited with status $ac_status" >&5
14978 echo "$as_me: failed program was:" >&5
14979 cat conftest.$ac_ext >&5
14980 ( exit $ac_status )
14981 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14982 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14983    { (exit 1); exit 1; }; }
14984 fi
14985 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14986 fi
14987 fi
14988 rm -f conftest.val
14989 else
14990   pgac_cv_alignof_int=0
14991 fi
14992 fi
14993 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14994 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14995 cat >>confdefs.h <<_ACEOF
14996 #define ALIGNOF_INT $pgac_cv_alignof_int
14997 _ACEOF
14998
14999
15000 echo "$as_me:$LINENO: checking for long" >&5
15001 echo $ECHO_N "checking for long... $ECHO_C" >&6
15002 if test "${ac_cv_type_long+set}" = set; then
15003   echo $ECHO_N "(cached) $ECHO_C" >&6
15004 else
15005   cat >conftest.$ac_ext <<_ACEOF
15006 #line $LINENO "configure"
15007 #include "confdefs.h"
15008 $ac_includes_default
15009 #ifdef F77_DUMMY_MAIN
15010 #  ifdef __cplusplus
15011      extern "C"
15012 #  endif
15013    int F77_DUMMY_MAIN() { return 1; }
15014 #endif
15015 int
15016 main ()
15017 {
15018 if ((long *) 0)
15019   return 0;
15020 if (sizeof (long))
15021   return 0;
15022   ;
15023   return 0;
15024 }
15025 _ACEOF
15026 rm -f conftest.$ac_objext
15027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15028   (eval $ac_compile) 2>&5
15029   ac_status=$?
15030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031   (exit $ac_status); } &&
15032          { ac_try='test -s conftest.$ac_objext'
15033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034   (eval $ac_try) 2>&5
15035   ac_status=$?
15036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037   (exit $ac_status); }; }; then
15038   ac_cv_type_long=yes
15039 else
15040   echo "$as_me: failed program was:" >&5
15041 cat conftest.$ac_ext >&5
15042 ac_cv_type_long=no
15043 fi
15044 rm -f conftest.$ac_objext conftest.$ac_ext
15045 fi
15046 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15047 echo "${ECHO_T}$ac_cv_type_long" >&6
15048
15049 echo "$as_me:$LINENO: checking alignment of long" >&5
15050 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
15051 if test "${pgac_cv_alignof_long+set}" = set; then
15052   echo $ECHO_N "(cached) $ECHO_C" >&6
15053 else
15054   if test "$ac_cv_type_long" = yes; then
15055   if test "$cross_compiling" = yes; then
15056   # Depending upon the size, compute the lo and hi bounds.
15057 cat >conftest.$ac_ext <<_ACEOF
15058 #line $LINENO "configure"
15059 #include "confdefs.h"
15060 $ac_includes_default
15061 struct { char filler; long field; } pgac_struct;
15062 #ifdef F77_DUMMY_MAIN
15063 #  ifdef __cplusplus
15064      extern "C"
15065 #  endif
15066    int F77_DUMMY_MAIN() { return 1; }
15067 #endif
15068 int
15069 main ()
15070 {
15071 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15072 test_array [0] = 0
15073
15074   ;
15075   return 0;
15076 }
15077 _ACEOF
15078 rm -f conftest.$ac_objext
15079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15080   (eval $ac_compile) 2>&5
15081   ac_status=$?
15082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083   (exit $ac_status); } &&
15084          { ac_try='test -s conftest.$ac_objext'
15085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15086   (eval $ac_try) 2>&5
15087   ac_status=$?
15088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089   (exit $ac_status); }; }; then
15090   ac_lo=0 ac_mid=0
15091   while :; do
15092     cat >conftest.$ac_ext <<_ACEOF
15093 #line $LINENO "configure"
15094 #include "confdefs.h"
15095 $ac_includes_default
15096 struct { char filler; long field; } pgac_struct;
15097 #ifdef F77_DUMMY_MAIN
15098 #  ifdef __cplusplus
15099      extern "C"
15100 #  endif
15101    int F77_DUMMY_MAIN() { return 1; }
15102 #endif
15103 int
15104 main ()
15105 {
15106 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15107 test_array [0] = 0
15108
15109   ;
15110   return 0;
15111 }
15112 _ACEOF
15113 rm -f conftest.$ac_objext
15114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15115   (eval $ac_compile) 2>&5
15116   ac_status=$?
15117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118   (exit $ac_status); } &&
15119          { ac_try='test -s conftest.$ac_objext'
15120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121   (eval $ac_try) 2>&5
15122   ac_status=$?
15123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124   (exit $ac_status); }; }; then
15125   ac_hi=$ac_mid; break
15126 else
15127   echo "$as_me: failed program was:" >&5
15128 cat conftest.$ac_ext >&5
15129 ac_lo=`expr $ac_mid + 1`
15130                     if test $ac_lo -le $ac_mid; then
15131                       ac_lo= ac_hi=
15132                       break
15133                     fi
15134                     ac_mid=`expr 2 '*' $ac_mid + 1`
15135 fi
15136 rm -f conftest.$ac_objext conftest.$ac_ext
15137   done
15138 else
15139   echo "$as_me: failed program was:" >&5
15140 cat conftest.$ac_ext >&5
15141 cat >conftest.$ac_ext <<_ACEOF
15142 #line $LINENO "configure"
15143 #include "confdefs.h"
15144 $ac_includes_default
15145 struct { char filler; long field; } pgac_struct;
15146 #ifdef F77_DUMMY_MAIN
15147 #  ifdef __cplusplus
15148      extern "C"
15149 #  endif
15150    int F77_DUMMY_MAIN() { return 1; }
15151 #endif
15152 int
15153 main ()
15154 {
15155 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15156 test_array [0] = 0
15157
15158   ;
15159   return 0;
15160 }
15161 _ACEOF
15162 rm -f conftest.$ac_objext
15163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15164   (eval $ac_compile) 2>&5
15165   ac_status=$?
15166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167   (exit $ac_status); } &&
15168          { ac_try='test -s conftest.$ac_objext'
15169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170   (eval $ac_try) 2>&5
15171   ac_status=$?
15172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173   (exit $ac_status); }; }; then
15174   ac_hi=-1 ac_mid=-1
15175   while :; do
15176     cat >conftest.$ac_ext <<_ACEOF
15177 #line $LINENO "configure"
15178 #include "confdefs.h"
15179 $ac_includes_default
15180 struct { char filler; long field; } pgac_struct;
15181 #ifdef F77_DUMMY_MAIN
15182 #  ifdef __cplusplus
15183      extern "C"
15184 #  endif
15185    int F77_DUMMY_MAIN() { return 1; }
15186 #endif
15187 int
15188 main ()
15189 {
15190 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15191 test_array [0] = 0
15192
15193   ;
15194   return 0;
15195 }
15196 _ACEOF
15197 rm -f conftest.$ac_objext
15198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15199   (eval $ac_compile) 2>&5
15200   ac_status=$?
15201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202   (exit $ac_status); } &&
15203          { ac_try='test -s conftest.$ac_objext'
15204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15205   (eval $ac_try) 2>&5
15206   ac_status=$?
15207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208   (exit $ac_status); }; }; then
15209   ac_lo=$ac_mid; break
15210 else
15211   echo "$as_me: failed program was:" >&5
15212 cat conftest.$ac_ext >&5
15213 ac_hi=`expr '(' $ac_mid ')' - 1`
15214                        if test $ac_mid -le $ac_hi; then
15215                          ac_lo= ac_hi=
15216                          break
15217                        fi
15218                        ac_mid=`expr 2 '*' $ac_mid`
15219 fi
15220 rm -f conftest.$ac_objext conftest.$ac_ext
15221   done
15222 else
15223   echo "$as_me: failed program was:" >&5
15224 cat conftest.$ac_ext >&5
15225 ac_lo= ac_hi=
15226 fi
15227 rm -f conftest.$ac_objext conftest.$ac_ext
15228 fi
15229 rm -f conftest.$ac_objext conftest.$ac_ext
15230 # Binary search between lo and hi bounds.
15231 while test "x$ac_lo" != "x$ac_hi"; do
15232   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15233   cat >conftest.$ac_ext <<_ACEOF
15234 #line $LINENO "configure"
15235 #include "confdefs.h"
15236 $ac_includes_default
15237 struct { char filler; long field; } pgac_struct;
15238 #ifdef F77_DUMMY_MAIN
15239 #  ifdef __cplusplus
15240      extern "C"
15241 #  endif
15242    int F77_DUMMY_MAIN() { return 1; }
15243 #endif
15244 int
15245 main ()
15246 {
15247 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15248 test_array [0] = 0
15249
15250   ;
15251   return 0;
15252 }
15253 _ACEOF
15254 rm -f conftest.$ac_objext
15255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15256   (eval $ac_compile) 2>&5
15257   ac_status=$?
15258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259   (exit $ac_status); } &&
15260          { ac_try='test -s conftest.$ac_objext'
15261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262   (eval $ac_try) 2>&5
15263   ac_status=$?
15264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265   (exit $ac_status); }; }; then
15266   ac_hi=$ac_mid
15267 else
15268   echo "$as_me: failed program was:" >&5
15269 cat conftest.$ac_ext >&5
15270 ac_lo=`expr '(' $ac_mid ')' + 1`
15271 fi
15272 rm -f conftest.$ac_objext conftest.$ac_ext
15273 done
15274 case $ac_lo in
15275 ?*) pgac_cv_alignof_long=$ac_lo;;
15276 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15277 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15278    { (exit 1); exit 1; }; } ;;
15279 esac
15280 else
15281   if test "$cross_compiling" = yes; then
15282   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15283 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15284    { (exit 1); exit 1; }; }
15285 else
15286   cat >conftest.$ac_ext <<_ACEOF
15287 #line $LINENO "configure"
15288 #include "confdefs.h"
15289 $ac_includes_default
15290 struct { char filler; long field; } pgac_struct;
15291 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15292 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15293 #include <stdio.h>
15294 #include <stdlib.h>
15295 #ifdef F77_DUMMY_MAIN
15296 #  ifdef __cplusplus
15297      extern "C"
15298 #  endif
15299    int F77_DUMMY_MAIN() { return 1; }
15300 #endif
15301 int
15302 main ()
15303 {
15304
15305   FILE *f = fopen ("conftest.val", "w");
15306   if (! f)
15307     exit (1);
15308   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15309     {
15310       long i = longval ();
15311       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15312         exit (1);
15313       fprintf (f, "%ld\n", i);
15314     }
15315   else
15316     {
15317       unsigned long i = ulongval ();
15318       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15319         exit (1);
15320       fprintf (f, "%lu\n", i);
15321     }
15322   exit (ferror (f) || fclose (f) != 0);
15323
15324   ;
15325   return 0;
15326 }
15327 _ACEOF
15328 rm -f conftest$ac_exeext
15329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15330   (eval $ac_link) 2>&5
15331   ac_status=$?
15332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15335   (eval $ac_try) 2>&5
15336   ac_status=$?
15337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338   (exit $ac_status); }; }; then
15339   pgac_cv_alignof_long=`cat conftest.val`
15340 else
15341   echo "$as_me: program exited with status $ac_status" >&5
15342 echo "$as_me: failed program was:" >&5
15343 cat conftest.$ac_ext >&5
15344 ( exit $ac_status )
15345 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15346 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15347    { (exit 1); exit 1; }; }
15348 fi
15349 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15350 fi
15351 fi
15352 rm -f conftest.val
15353 else
15354   pgac_cv_alignof_long=0
15355 fi
15356 fi
15357 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
15358 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
15359 cat >>confdefs.h <<_ACEOF
15360 #define ALIGNOF_LONG $pgac_cv_alignof_long
15361 _ACEOF
15362
15363
15364 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
15365   echo "$as_me:$LINENO: checking for long long int" >&5
15366 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15367 if test "${ac_cv_type_long_long_int+set}" = set; then
15368   echo $ECHO_N "(cached) $ECHO_C" >&6
15369 else
15370   cat >conftest.$ac_ext <<_ACEOF
15371 #line $LINENO "configure"
15372 #include "confdefs.h"
15373 $ac_includes_default
15374 #ifdef F77_DUMMY_MAIN
15375 #  ifdef __cplusplus
15376      extern "C"
15377 #  endif
15378    int F77_DUMMY_MAIN() { return 1; }
15379 #endif
15380 int
15381 main ()
15382 {
15383 if ((long long int *) 0)
15384   return 0;
15385 if (sizeof (long long int))
15386   return 0;
15387   ;
15388   return 0;
15389 }
15390 _ACEOF
15391 rm -f conftest.$ac_objext
15392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15393   (eval $ac_compile) 2>&5
15394   ac_status=$?
15395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396   (exit $ac_status); } &&
15397          { ac_try='test -s conftest.$ac_objext'
15398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15399   (eval $ac_try) 2>&5
15400   ac_status=$?
15401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402   (exit $ac_status); }; }; then
15403   ac_cv_type_long_long_int=yes
15404 else
15405   echo "$as_me: failed program was:" >&5
15406 cat conftest.$ac_ext >&5
15407 ac_cv_type_long_long_int=no
15408 fi
15409 rm -f conftest.$ac_objext conftest.$ac_ext
15410 fi
15411 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15412 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15413
15414 echo "$as_me:$LINENO: checking alignment of long long int" >&5
15415 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
15416 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
15417   echo $ECHO_N "(cached) $ECHO_C" >&6
15418 else
15419   if test "$ac_cv_type_long_long_int" = yes; then
15420   if test "$cross_compiling" = yes; then
15421   # Depending upon the size, compute the lo and hi bounds.
15422 cat >conftest.$ac_ext <<_ACEOF
15423 #line $LINENO "configure"
15424 #include "confdefs.h"
15425 $ac_includes_default
15426 struct { char filler; long long int field; } pgac_struct;
15427 #ifdef F77_DUMMY_MAIN
15428 #  ifdef __cplusplus
15429      extern "C"
15430 #  endif
15431    int F77_DUMMY_MAIN() { return 1; }
15432 #endif
15433 int
15434 main ()
15435 {
15436 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15437 test_array [0] = 0
15438
15439   ;
15440   return 0;
15441 }
15442 _ACEOF
15443 rm -f conftest.$ac_objext
15444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15445   (eval $ac_compile) 2>&5
15446   ac_status=$?
15447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448   (exit $ac_status); } &&
15449          { ac_try='test -s conftest.$ac_objext'
15450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451   (eval $ac_try) 2>&5
15452   ac_status=$?
15453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454   (exit $ac_status); }; }; then
15455   ac_lo=0 ac_mid=0
15456   while :; do
15457     cat >conftest.$ac_ext <<_ACEOF
15458 #line $LINENO "configure"
15459 #include "confdefs.h"
15460 $ac_includes_default
15461 struct { char filler; long long int field; } pgac_struct;
15462 #ifdef F77_DUMMY_MAIN
15463 #  ifdef __cplusplus
15464      extern "C"
15465 #  endif
15466    int F77_DUMMY_MAIN() { return 1; }
15467 #endif
15468 int
15469 main ()
15470 {
15471 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15472 test_array [0] = 0
15473
15474   ;
15475   return 0;
15476 }
15477 _ACEOF
15478 rm -f conftest.$ac_objext
15479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15480   (eval $ac_compile) 2>&5
15481   ac_status=$?
15482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483   (exit $ac_status); } &&
15484          { ac_try='test -s conftest.$ac_objext'
15485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15486   (eval $ac_try) 2>&5
15487   ac_status=$?
15488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489   (exit $ac_status); }; }; then
15490   ac_hi=$ac_mid; break
15491 else
15492   echo "$as_me: failed program was:" >&5
15493 cat conftest.$ac_ext >&5
15494 ac_lo=`expr $ac_mid + 1`
15495                     if test $ac_lo -le $ac_mid; then
15496                       ac_lo= ac_hi=
15497                       break
15498                     fi
15499                     ac_mid=`expr 2 '*' $ac_mid + 1`
15500 fi
15501 rm -f conftest.$ac_objext conftest.$ac_ext
15502   done
15503 else
15504   echo "$as_me: failed program was:" >&5
15505 cat conftest.$ac_ext >&5
15506 cat >conftest.$ac_ext <<_ACEOF
15507 #line $LINENO "configure"
15508 #include "confdefs.h"
15509 $ac_includes_default
15510 struct { char filler; long long int field; } pgac_struct;
15511 #ifdef F77_DUMMY_MAIN
15512 #  ifdef __cplusplus
15513      extern "C"
15514 #  endif
15515    int F77_DUMMY_MAIN() { return 1; }
15516 #endif
15517 int
15518 main ()
15519 {
15520 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15521 test_array [0] = 0
15522
15523   ;
15524   return 0;
15525 }
15526 _ACEOF
15527 rm -f conftest.$ac_objext
15528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15529   (eval $ac_compile) 2>&5
15530   ac_status=$?
15531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532   (exit $ac_status); } &&
15533          { ac_try='test -s conftest.$ac_objext'
15534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15535   (eval $ac_try) 2>&5
15536   ac_status=$?
15537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538   (exit $ac_status); }; }; then
15539   ac_hi=-1 ac_mid=-1
15540   while :; do
15541     cat >conftest.$ac_ext <<_ACEOF
15542 #line $LINENO "configure"
15543 #include "confdefs.h"
15544 $ac_includes_default
15545 struct { char filler; long long int field; } pgac_struct;
15546 #ifdef F77_DUMMY_MAIN
15547 #  ifdef __cplusplus
15548      extern "C"
15549 #  endif
15550    int F77_DUMMY_MAIN() { return 1; }
15551 #endif
15552 int
15553 main ()
15554 {
15555 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15556 test_array [0] = 0
15557
15558   ;
15559   return 0;
15560 }
15561 _ACEOF
15562 rm -f conftest.$ac_objext
15563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15564   (eval $ac_compile) 2>&5
15565   ac_status=$?
15566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567   (exit $ac_status); } &&
15568          { ac_try='test -s conftest.$ac_objext'
15569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570   (eval $ac_try) 2>&5
15571   ac_status=$?
15572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573   (exit $ac_status); }; }; then
15574   ac_lo=$ac_mid; break
15575 else
15576   echo "$as_me: failed program was:" >&5
15577 cat conftest.$ac_ext >&5
15578 ac_hi=`expr '(' $ac_mid ')' - 1`
15579                        if test $ac_mid -le $ac_hi; then
15580                          ac_lo= ac_hi=
15581                          break
15582                        fi
15583                        ac_mid=`expr 2 '*' $ac_mid`
15584 fi
15585 rm -f conftest.$ac_objext conftest.$ac_ext
15586   done
15587 else
15588   echo "$as_me: failed program was:" >&5
15589 cat conftest.$ac_ext >&5
15590 ac_lo= ac_hi=
15591 fi
15592 rm -f conftest.$ac_objext conftest.$ac_ext
15593 fi
15594 rm -f conftest.$ac_objext conftest.$ac_ext
15595 # Binary search between lo and hi bounds.
15596 while test "x$ac_lo" != "x$ac_hi"; do
15597   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15598   cat >conftest.$ac_ext <<_ACEOF
15599 #line $LINENO "configure"
15600 #include "confdefs.h"
15601 $ac_includes_default
15602 struct { char filler; long long int field; } pgac_struct;
15603 #ifdef F77_DUMMY_MAIN
15604 #  ifdef __cplusplus
15605      extern "C"
15606 #  endif
15607    int F77_DUMMY_MAIN() { return 1; }
15608 #endif
15609 int
15610 main ()
15611 {
15612 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15613 test_array [0] = 0
15614
15615   ;
15616   return 0;
15617 }
15618 _ACEOF
15619 rm -f conftest.$ac_objext
15620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15621   (eval $ac_compile) 2>&5
15622   ac_status=$?
15623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624   (exit $ac_status); } &&
15625          { ac_try='test -s conftest.$ac_objext'
15626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627   (eval $ac_try) 2>&5
15628   ac_status=$?
15629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630   (exit $ac_status); }; }; then
15631   ac_hi=$ac_mid
15632 else
15633   echo "$as_me: failed program was:" >&5
15634 cat conftest.$ac_ext >&5
15635 ac_lo=`expr '(' $ac_mid ')' + 1`
15636 fi
15637 rm -f conftest.$ac_objext conftest.$ac_ext
15638 done
15639 case $ac_lo in
15640 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
15641 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15642 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15643    { (exit 1); exit 1; }; } ;;
15644 esac
15645 else
15646   if test "$cross_compiling" = yes; then
15647   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15648 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15649    { (exit 1); exit 1; }; }
15650 else
15651   cat >conftest.$ac_ext <<_ACEOF
15652 #line $LINENO "configure"
15653 #include "confdefs.h"
15654 $ac_includes_default
15655 struct { char filler; long long int field; } pgac_struct;
15656 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15657 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15658 #include <stdio.h>
15659 #include <stdlib.h>
15660 #ifdef F77_DUMMY_MAIN
15661 #  ifdef __cplusplus
15662      extern "C"
15663 #  endif
15664    int F77_DUMMY_MAIN() { return 1; }
15665 #endif
15666 int
15667 main ()
15668 {
15669
15670   FILE *f = fopen ("conftest.val", "w");
15671   if (! f)
15672     exit (1);
15673   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15674     {
15675       long i = longval ();
15676       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15677         exit (1);
15678       fprintf (f, "%ld\n", i);
15679     }
15680   else
15681     {
15682       unsigned long i = ulongval ();
15683       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15684         exit (1);
15685       fprintf (f, "%lu\n", i);
15686     }
15687   exit (ferror (f) || fclose (f) != 0);
15688
15689   ;
15690   return 0;
15691 }
15692 _ACEOF
15693 rm -f conftest$ac_exeext
15694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15695   (eval $ac_link) 2>&5
15696   ac_status=$?
15697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15700   (eval $ac_try) 2>&5
15701   ac_status=$?
15702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703   (exit $ac_status); }; }; then
15704   pgac_cv_alignof_long_long_int=`cat conftest.val`
15705 else
15706   echo "$as_me: program exited with status $ac_status" >&5
15707 echo "$as_me: failed program was:" >&5
15708 cat conftest.$ac_ext >&5
15709 ( exit $ac_status )
15710 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15711 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15712    { (exit 1); exit 1; }; }
15713 fi
15714 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15715 fi
15716 fi
15717 rm -f conftest.val
15718 else
15719   pgac_cv_alignof_long_long_int=0
15720 fi
15721 fi
15722 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
15723 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
15724 cat >>confdefs.h <<_ACEOF
15725 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
15726 _ACEOF
15727
15728
15729 fi
15730 echo "$as_me:$LINENO: checking for double" >&5
15731 echo $ECHO_N "checking for double... $ECHO_C" >&6
15732 if test "${ac_cv_type_double+set}" = set; then
15733   echo $ECHO_N "(cached) $ECHO_C" >&6
15734 else
15735   cat >conftest.$ac_ext <<_ACEOF
15736 #line $LINENO "configure"
15737 #include "confdefs.h"
15738 $ac_includes_default
15739 #ifdef F77_DUMMY_MAIN
15740 #  ifdef __cplusplus
15741      extern "C"
15742 #  endif
15743    int F77_DUMMY_MAIN() { return 1; }
15744 #endif
15745 int
15746 main ()
15747 {
15748 if ((double *) 0)
15749   return 0;
15750 if (sizeof (double))
15751   return 0;
15752   ;
15753   return 0;
15754 }
15755 _ACEOF
15756 rm -f conftest.$ac_objext
15757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15758   (eval $ac_compile) 2>&5
15759   ac_status=$?
15760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761   (exit $ac_status); } &&
15762          { ac_try='test -s conftest.$ac_objext'
15763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15764   (eval $ac_try) 2>&5
15765   ac_status=$?
15766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767   (exit $ac_status); }; }; then
15768   ac_cv_type_double=yes
15769 else
15770   echo "$as_me: failed program was:" >&5
15771 cat conftest.$ac_ext >&5
15772 ac_cv_type_double=no
15773 fi
15774 rm -f conftest.$ac_objext conftest.$ac_ext
15775 fi
15776 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15777 echo "${ECHO_T}$ac_cv_type_double" >&6
15778
15779 echo "$as_me:$LINENO: checking alignment of double" >&5
15780 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15781 if test "${pgac_cv_alignof_double+set}" = set; then
15782   echo $ECHO_N "(cached) $ECHO_C" >&6
15783 else
15784   if test "$ac_cv_type_double" = yes; then
15785   if test "$cross_compiling" = yes; then
15786   # Depending upon the size, compute the lo and hi bounds.
15787 cat >conftest.$ac_ext <<_ACEOF
15788 #line $LINENO "configure"
15789 #include "confdefs.h"
15790 $ac_includes_default
15791 struct { char filler; double field; } pgac_struct;
15792 #ifdef F77_DUMMY_MAIN
15793 #  ifdef __cplusplus
15794      extern "C"
15795 #  endif
15796    int F77_DUMMY_MAIN() { return 1; }
15797 #endif
15798 int
15799 main ()
15800 {
15801 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15802 test_array [0] = 0
15803
15804   ;
15805   return 0;
15806 }
15807 _ACEOF
15808 rm -f conftest.$ac_objext
15809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15810   (eval $ac_compile) 2>&5
15811   ac_status=$?
15812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813   (exit $ac_status); } &&
15814          { ac_try='test -s conftest.$ac_objext'
15815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15816   (eval $ac_try) 2>&5
15817   ac_status=$?
15818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819   (exit $ac_status); }; }; then
15820   ac_lo=0 ac_mid=0
15821   while :; do
15822     cat >conftest.$ac_ext <<_ACEOF
15823 #line $LINENO "configure"
15824 #include "confdefs.h"
15825 $ac_includes_default
15826 struct { char filler; double field; } pgac_struct;
15827 #ifdef F77_DUMMY_MAIN
15828 #  ifdef __cplusplus
15829      extern "C"
15830 #  endif
15831    int F77_DUMMY_MAIN() { return 1; }
15832 #endif
15833 int
15834 main ()
15835 {
15836 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15837 test_array [0] = 0
15838
15839   ;
15840   return 0;
15841 }
15842 _ACEOF
15843 rm -f conftest.$ac_objext
15844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15845   (eval $ac_compile) 2>&5
15846   ac_status=$?
15847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848   (exit $ac_status); } &&
15849          { ac_try='test -s conftest.$ac_objext'
15850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15851   (eval $ac_try) 2>&5
15852   ac_status=$?
15853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854   (exit $ac_status); }; }; then
15855   ac_hi=$ac_mid; break
15856 else
15857   echo "$as_me: failed program was:" >&5
15858 cat conftest.$ac_ext >&5
15859 ac_lo=`expr $ac_mid + 1`
15860                     if test $ac_lo -le $ac_mid; then
15861                       ac_lo= ac_hi=
15862                       break
15863                     fi
15864                     ac_mid=`expr 2 '*' $ac_mid + 1`
15865 fi
15866 rm -f conftest.$ac_objext conftest.$ac_ext
15867   done
15868 else
15869   echo "$as_me: failed program was:" >&5
15870 cat conftest.$ac_ext >&5
15871 cat >conftest.$ac_ext <<_ACEOF
15872 #line $LINENO "configure"
15873 #include "confdefs.h"
15874 $ac_includes_default
15875 struct { char filler; double field; } pgac_struct;
15876 #ifdef F77_DUMMY_MAIN
15877 #  ifdef __cplusplus
15878      extern "C"
15879 #  endif
15880    int F77_DUMMY_MAIN() { return 1; }
15881 #endif
15882 int
15883 main ()
15884 {
15885 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15886 test_array [0] = 0
15887
15888   ;
15889   return 0;
15890 }
15891 _ACEOF
15892 rm -f conftest.$ac_objext
15893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15894   (eval $ac_compile) 2>&5
15895   ac_status=$?
15896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897   (exit $ac_status); } &&
15898          { ac_try='test -s conftest.$ac_objext'
15899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15900   (eval $ac_try) 2>&5
15901   ac_status=$?
15902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903   (exit $ac_status); }; }; then
15904   ac_hi=-1 ac_mid=-1
15905   while :; do
15906     cat >conftest.$ac_ext <<_ACEOF
15907 #line $LINENO "configure"
15908 #include "confdefs.h"
15909 $ac_includes_default
15910 struct { char filler; double field; } pgac_struct;
15911 #ifdef F77_DUMMY_MAIN
15912 #  ifdef __cplusplus
15913      extern "C"
15914 #  endif
15915    int F77_DUMMY_MAIN() { return 1; }
15916 #endif
15917 int
15918 main ()
15919 {
15920 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15921 test_array [0] = 0
15922
15923   ;
15924   return 0;
15925 }
15926 _ACEOF
15927 rm -f conftest.$ac_objext
15928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15929   (eval $ac_compile) 2>&5
15930   ac_status=$?
15931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932   (exit $ac_status); } &&
15933          { ac_try='test -s conftest.$ac_objext'
15934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15935   (eval $ac_try) 2>&5
15936   ac_status=$?
15937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938   (exit $ac_status); }; }; then
15939   ac_lo=$ac_mid; break
15940 else
15941   echo "$as_me: failed program was:" >&5
15942 cat conftest.$ac_ext >&5
15943 ac_hi=`expr '(' $ac_mid ')' - 1`
15944                        if test $ac_mid -le $ac_hi; then
15945                          ac_lo= ac_hi=
15946                          break
15947                        fi
15948                        ac_mid=`expr 2 '*' $ac_mid`
15949 fi
15950 rm -f conftest.$ac_objext conftest.$ac_ext
15951   done
15952 else
15953   echo "$as_me: failed program was:" >&5
15954 cat conftest.$ac_ext >&5
15955 ac_lo= ac_hi=
15956 fi
15957 rm -f conftest.$ac_objext conftest.$ac_ext
15958 fi
15959 rm -f conftest.$ac_objext conftest.$ac_ext
15960 # Binary search between lo and hi bounds.
15961 while test "x$ac_lo" != "x$ac_hi"; do
15962   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15963   cat >conftest.$ac_ext <<_ACEOF
15964 #line $LINENO "configure"
15965 #include "confdefs.h"
15966 $ac_includes_default
15967 struct { char filler; double field; } pgac_struct;
15968 #ifdef F77_DUMMY_MAIN
15969 #  ifdef __cplusplus
15970      extern "C"
15971 #  endif
15972    int F77_DUMMY_MAIN() { return 1; }
15973 #endif
15974 int
15975 main ()
15976 {
15977 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15978 test_array [0] = 0
15979
15980   ;
15981   return 0;
15982 }
15983 _ACEOF
15984 rm -f conftest.$ac_objext
15985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15986   (eval $ac_compile) 2>&5
15987   ac_status=$?
15988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989   (exit $ac_status); } &&
15990          { ac_try='test -s conftest.$ac_objext'
15991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15992   (eval $ac_try) 2>&5
15993   ac_status=$?
15994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995   (exit $ac_status); }; }; then
15996   ac_hi=$ac_mid
15997 else
15998   echo "$as_me: failed program was:" >&5
15999 cat conftest.$ac_ext >&5
16000 ac_lo=`expr '(' $ac_mid ')' + 1`
16001 fi
16002 rm -f conftest.$ac_objext conftest.$ac_ext
16003 done
16004 case $ac_lo in
16005 ?*) pgac_cv_alignof_double=$ac_lo;;
16006 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16007 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16008    { (exit 1); exit 1; }; } ;;
16009 esac
16010 else
16011   if test "$cross_compiling" = yes; then
16012   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16013 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16014    { (exit 1); exit 1; }; }
16015 else
16016   cat >conftest.$ac_ext <<_ACEOF
16017 #line $LINENO "configure"
16018 #include "confdefs.h"
16019 $ac_includes_default
16020 struct { char filler; double field; } pgac_struct;
16021 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16022 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16023 #include <stdio.h>
16024 #include <stdlib.h>
16025 #ifdef F77_DUMMY_MAIN
16026 #  ifdef __cplusplus
16027      extern "C"
16028 #  endif
16029    int F77_DUMMY_MAIN() { return 1; }
16030 #endif
16031 int
16032 main ()
16033 {
16034
16035   FILE *f = fopen ("conftest.val", "w");
16036   if (! f)
16037     exit (1);
16038   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16039     {
16040       long i = longval ();
16041       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16042         exit (1);
16043       fprintf (f, "%ld\n", i);
16044     }
16045   else
16046     {
16047       unsigned long i = ulongval ();
16048       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16049         exit (1);
16050       fprintf (f, "%lu\n", i);
16051     }
16052   exit (ferror (f) || fclose (f) != 0);
16053
16054   ;
16055   return 0;
16056 }
16057 _ACEOF
16058 rm -f conftest$ac_exeext
16059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16060   (eval $ac_link) 2>&5
16061   ac_status=$?
16062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16065   (eval $ac_try) 2>&5
16066   ac_status=$?
16067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068   (exit $ac_status); }; }; then
16069   pgac_cv_alignof_double=`cat conftest.val`
16070 else
16071   echo "$as_me: program exited with status $ac_status" >&5
16072 echo "$as_me: failed program was:" >&5
16073 cat conftest.$ac_ext >&5
16074 ( exit $ac_status )
16075 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16076 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16077    { (exit 1); exit 1; }; }
16078 fi
16079 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16080 fi
16081 fi
16082 rm -f conftest.val
16083 else
16084   pgac_cv_alignof_double=0
16085 fi
16086 fi
16087 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
16088 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
16089 cat >>confdefs.h <<_ACEOF
16090 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
16091 _ACEOF
16092
16093
16094
16095 # Compute maximum alignment of any basic type.
16096 # We assume long's alignment is at least as strong as char, short, or int;
16097 # but we must check long long (if it exists) and double.
16098
16099 MAX_ALIGNOF=$pgac_cv_alignof_long
16100 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
16101   MAX_ALIGNOF=$pgac_cv_alignof_double
16102 fi
16103 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
16104   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
16105 fi
16106
16107 cat >>confdefs.h <<_ACEOF
16108 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16109 _ACEOF
16110
16111
16112
16113 # Some platforms predefine the types int8, int16, etc.  Only check
16114 # a (hopefully) representative subset.
16115 echo "$as_me:$LINENO: checking for int8" >&5
16116 echo $ECHO_N "checking for int8... $ECHO_C" >&6
16117 if test "${ac_cv_type_int8+set}" = set; then
16118   echo $ECHO_N "(cached) $ECHO_C" >&6
16119 else
16120   cat >conftest.$ac_ext <<_ACEOF
16121 #line $LINENO "configure"
16122 #include "confdefs.h"
16123 #include <stdio.h>
16124 #ifdef HAVE_SUPPORTDEFS_H
16125 #include <SupportDefs.h>
16126 #endif
16127
16128 #ifdef F77_DUMMY_MAIN
16129 #  ifdef __cplusplus
16130      extern "C"
16131 #  endif
16132    int F77_DUMMY_MAIN() { return 1; }
16133 #endif
16134 int
16135 main ()
16136 {
16137 if ((int8 *) 0)
16138   return 0;
16139 if (sizeof (int8))
16140   return 0;
16141   ;
16142   return 0;
16143 }
16144 _ACEOF
16145 rm -f conftest.$ac_objext
16146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16147   (eval $ac_compile) 2>&5
16148   ac_status=$?
16149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150   (exit $ac_status); } &&
16151          { ac_try='test -s conftest.$ac_objext'
16152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153   (eval $ac_try) 2>&5
16154   ac_status=$?
16155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156   (exit $ac_status); }; }; then
16157   ac_cv_type_int8=yes
16158 else
16159   echo "$as_me: failed program was:" >&5
16160 cat conftest.$ac_ext >&5
16161 ac_cv_type_int8=no
16162 fi
16163 rm -f conftest.$ac_objext conftest.$ac_ext
16164 fi
16165 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
16166 echo "${ECHO_T}$ac_cv_type_int8" >&6
16167 if test $ac_cv_type_int8 = yes; then
16168
16169 cat >>confdefs.h <<_ACEOF
16170 #define HAVE_INT8 1
16171 _ACEOF
16172
16173
16174 fi
16175 echo "$as_me:$LINENO: checking for uint8" >&5
16176 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
16177 if test "${ac_cv_type_uint8+set}" = set; then
16178   echo $ECHO_N "(cached) $ECHO_C" >&6
16179 else
16180   cat >conftest.$ac_ext <<_ACEOF
16181 #line $LINENO "configure"
16182 #include "confdefs.h"
16183 #include <stdio.h>
16184 #ifdef HAVE_SUPPORTDEFS_H
16185 #include <SupportDefs.h>
16186 #endif
16187
16188 #ifdef F77_DUMMY_MAIN
16189 #  ifdef __cplusplus
16190      extern "C"
16191 #  endif
16192    int F77_DUMMY_MAIN() { return 1; }
16193 #endif
16194 int
16195 main ()
16196 {
16197 if ((uint8 *) 0)
16198   return 0;
16199 if (sizeof (uint8))
16200   return 0;
16201   ;
16202   return 0;
16203 }
16204 _ACEOF
16205 rm -f conftest.$ac_objext
16206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16207   (eval $ac_compile) 2>&5
16208   ac_status=$?
16209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210   (exit $ac_status); } &&
16211          { ac_try='test -s conftest.$ac_objext'
16212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16213   (eval $ac_try) 2>&5
16214   ac_status=$?
16215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216   (exit $ac_status); }; }; then
16217   ac_cv_type_uint8=yes
16218 else
16219   echo "$as_me: failed program was:" >&5
16220 cat conftest.$ac_ext >&5
16221 ac_cv_type_uint8=no
16222 fi
16223 rm -f conftest.$ac_objext conftest.$ac_ext
16224 fi
16225 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
16226 echo "${ECHO_T}$ac_cv_type_uint8" >&6
16227 if test $ac_cv_type_uint8 = yes; then
16228
16229 cat >>confdefs.h <<_ACEOF
16230 #define HAVE_UINT8 1
16231 _ACEOF
16232
16233
16234 fi
16235 echo "$as_me:$LINENO: checking for int64" >&5
16236 echo $ECHO_N "checking for int64... $ECHO_C" >&6
16237 if test "${ac_cv_type_int64+set}" = set; then
16238   echo $ECHO_N "(cached) $ECHO_C" >&6
16239 else
16240   cat >conftest.$ac_ext <<_ACEOF
16241 #line $LINENO "configure"
16242 #include "confdefs.h"
16243 #include <stdio.h>
16244 #ifdef HAVE_SUPPORTDEFS_H
16245 #include <SupportDefs.h>
16246 #endif
16247
16248 #ifdef F77_DUMMY_MAIN
16249 #  ifdef __cplusplus
16250      extern "C"
16251 #  endif
16252    int F77_DUMMY_MAIN() { return 1; }
16253 #endif
16254 int
16255 main ()
16256 {
16257 if ((int64 *) 0)
16258   return 0;
16259 if (sizeof (int64))
16260   return 0;
16261   ;
16262   return 0;
16263 }
16264 _ACEOF
16265 rm -f conftest.$ac_objext
16266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16267   (eval $ac_compile) 2>&5
16268   ac_status=$?
16269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270   (exit $ac_status); } &&
16271          { ac_try='test -s conftest.$ac_objext'
16272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273   (eval $ac_try) 2>&5
16274   ac_status=$?
16275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276   (exit $ac_status); }; }; then
16277   ac_cv_type_int64=yes
16278 else
16279   echo "$as_me: failed program was:" >&5
16280 cat conftest.$ac_ext >&5
16281 ac_cv_type_int64=no
16282 fi
16283 rm -f conftest.$ac_objext conftest.$ac_ext
16284 fi
16285 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
16286 echo "${ECHO_T}$ac_cv_type_int64" >&6
16287 if test $ac_cv_type_int64 = yes; then
16288
16289 cat >>confdefs.h <<_ACEOF
16290 #define HAVE_INT64 1
16291 _ACEOF
16292
16293
16294 fi
16295 echo "$as_me:$LINENO: checking for uint64" >&5
16296 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
16297 if test "${ac_cv_type_uint64+set}" = set; then
16298   echo $ECHO_N "(cached) $ECHO_C" >&6
16299 else
16300   cat >conftest.$ac_ext <<_ACEOF
16301 #line $LINENO "configure"
16302 #include "confdefs.h"
16303 #include <stdio.h>
16304 #ifdef HAVE_SUPPORTDEFS_H
16305 #include <SupportDefs.h>
16306 #endif
16307
16308 #ifdef F77_DUMMY_MAIN
16309 #  ifdef __cplusplus
16310      extern "C"
16311 #  endif
16312    int F77_DUMMY_MAIN() { return 1; }
16313 #endif
16314 int
16315 main ()
16316 {
16317 if ((uint64 *) 0)
16318   return 0;
16319 if (sizeof (uint64))
16320   return 0;
16321   ;
16322   return 0;
16323 }
16324 _ACEOF
16325 rm -f conftest.$ac_objext
16326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16327   (eval $ac_compile) 2>&5
16328   ac_status=$?
16329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330   (exit $ac_status); } &&
16331          { ac_try='test -s conftest.$ac_objext'
16332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16333   (eval $ac_try) 2>&5
16334   ac_status=$?
16335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336   (exit $ac_status); }; }; then
16337   ac_cv_type_uint64=yes
16338 else
16339   echo "$as_me: failed program was:" >&5
16340 cat conftest.$ac_ext >&5
16341 ac_cv_type_uint64=no
16342 fi
16343 rm -f conftest.$ac_objext conftest.$ac_ext
16344 fi
16345 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
16346 echo "${ECHO_T}$ac_cv_type_uint64" >&6
16347 if test $ac_cv_type_uint64 = yes; then
16348
16349 cat >>confdefs.h <<_ACEOF
16350 #define HAVE_UINT64 1
16351 _ACEOF
16352
16353
16354 fi
16355
16356
16357 # We also check for sig_atomic_t, which *should* be defined per ANSI
16358 # C, but is missing on some old platforms.
16359 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
16360 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
16361 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
16362   echo $ECHO_N "(cached) $ECHO_C" >&6
16363 else
16364   cat >conftest.$ac_ext <<_ACEOF
16365 #line $LINENO "configure"
16366 #include "confdefs.h"
16367 #include <signal.h>
16368
16369 #ifdef F77_DUMMY_MAIN
16370 #  ifdef __cplusplus
16371      extern "C"
16372 #  endif
16373    int F77_DUMMY_MAIN() { return 1; }
16374 #endif
16375 int
16376 main ()
16377 {
16378 if ((sig_atomic_t *) 0)
16379   return 0;
16380 if (sizeof (sig_atomic_t))
16381   return 0;
16382   ;
16383   return 0;
16384 }
16385 _ACEOF
16386 rm -f conftest.$ac_objext
16387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16388   (eval $ac_compile) 2>&5
16389   ac_status=$?
16390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391   (exit $ac_status); } &&
16392          { ac_try='test -s conftest.$ac_objext'
16393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16394   (eval $ac_try) 2>&5
16395   ac_status=$?
16396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397   (exit $ac_status); }; }; then
16398   ac_cv_type_sig_atomic_t=yes
16399 else
16400   echo "$as_me: failed program was:" >&5
16401 cat conftest.$ac_ext >&5
16402 ac_cv_type_sig_atomic_t=no
16403 fi
16404 rm -f conftest.$ac_objext conftest.$ac_ext
16405 fi
16406 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
16407 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
16408 if test $ac_cv_type_sig_atomic_t = yes; then
16409
16410 cat >>confdefs.h <<_ACEOF
16411 #define HAVE_SIG_ATOMIC_T 1
16412 _ACEOF
16413
16414
16415 fi
16416
16417
16418
16419 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
16420 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
16421 if test "${pgac_cv_func_posix_signals+set}" = set; then
16422   echo $ECHO_N "(cached) $ECHO_C" >&6
16423 else
16424   cat >conftest.$ac_ext <<_ACEOF
16425 #line $LINENO "configure"
16426 #include "confdefs.h"
16427 #include <signal.h>
16428
16429 #ifdef F77_DUMMY_MAIN
16430 #  ifdef __cplusplus
16431      extern "C"
16432 #  endif
16433    int F77_DUMMY_MAIN() { return 1; }
16434 #endif
16435 int
16436 main ()
16437 {
16438 struct sigaction act, oact;
16439 sigemptyset(&act.sa_mask);
16440 act.sa_flags = SA_RESTART;
16441 sigaction(0, &act, &oact);
16442   ;
16443   return 0;
16444 }
16445 _ACEOF
16446 rm -f conftest.$ac_objext conftest$ac_exeext
16447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16448   (eval $ac_link) 2>&5
16449   ac_status=$?
16450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451   (exit $ac_status); } &&
16452          { ac_try='test -s conftest$ac_exeext'
16453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454   (eval $ac_try) 2>&5
16455   ac_status=$?
16456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457   (exit $ac_status); }; }; then
16458   pgac_cv_func_posix_signals=yes
16459 else
16460   echo "$as_me: failed program was:" >&5
16461 cat conftest.$ac_ext >&5
16462 pgac_cv_func_posix_signals=no
16463 fi
16464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16465 fi
16466 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
16467 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
16468 if test x"$pgac_cv_func_posix_signals" = xyes ; then
16469
16470 cat >>confdefs.h <<\_ACEOF
16471 #define HAVE_POSIX_SIGNALS
16472 _ACEOF
16473
16474 fi
16475 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
16476
16477 if test $ac_cv_func_fseeko = yes; then
16478 # Check whether --enable-largefile or --disable-largefile was given.
16479 if test "${enable_largefile+set}" = set; then
16480   enableval="$enable_largefile"
16481
16482 fi;
16483 if test "$enable_largefile" != no; then
16484
16485   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16486 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
16487 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16488   echo $ECHO_N "(cached) $ECHO_C" >&6
16489 else
16490   ac_cv_sys_largefile_CC=no
16491      if test "$GCC" != yes; then
16492        ac_save_CC=$CC
16493        while :; do
16494          # IRIX 6.2 and later do not support large files by default,
16495          # so use the C compiler's -n32 option if that helps.
16496          cat >conftest.$ac_ext <<_ACEOF
16497 #line $LINENO "configure"
16498 #include "confdefs.h"
16499 #include <sys/types.h>
16500  /* Check that off_t can represent 2**63 - 1 correctly.
16501     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16502     since some C++ compilers masquerading as C compilers
16503     incorrectly reject 9223372036854775807.  */
16504 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16505   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16506                        && LARGE_OFF_T % 2147483647 == 1)
16507                       ? 1 : -1];
16508 #ifdef F77_DUMMY_MAIN
16509 #  ifdef __cplusplus
16510      extern "C"
16511 #  endif
16512    int F77_DUMMY_MAIN() { return 1; }
16513 #endif
16514 int
16515 main ()
16516 {
16517
16518   ;
16519   return 0;
16520 }
16521 _ACEOF
16522          rm -f conftest.$ac_objext
16523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16524   (eval $ac_compile) 2>&5
16525   ac_status=$?
16526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527   (exit $ac_status); } &&
16528          { ac_try='test -s conftest.$ac_objext'
16529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16530   (eval $ac_try) 2>&5
16531   ac_status=$?
16532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533   (exit $ac_status); }; }; then
16534   break
16535 else
16536   echo "$as_me: failed program was:" >&5
16537 cat conftest.$ac_ext >&5
16538 fi
16539 rm -f conftest.$ac_objext
16540          CC="$CC -n32"
16541          rm -f conftest.$ac_objext
16542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16543   (eval $ac_compile) 2>&5
16544   ac_status=$?
16545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546   (exit $ac_status); } &&
16547          { ac_try='test -s conftest.$ac_objext'
16548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16549   (eval $ac_try) 2>&5
16550   ac_status=$?
16551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552   (exit $ac_status); }; }; then
16553   ac_cv_sys_largefile_CC=' -n32'; break
16554 else
16555   echo "$as_me: failed program was:" >&5
16556 cat conftest.$ac_ext >&5
16557 fi
16558 rm -f conftest.$ac_objext
16559          break
16560        done
16561        CC=$ac_save_CC
16562        rm -f conftest.$ac_ext
16563     fi
16564 fi
16565 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16566 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16567   if test "$ac_cv_sys_largefile_CC" != no; then
16568     CC=$CC$ac_cv_sys_largefile_CC
16569   fi
16570
16571   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16572 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16573 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16574   echo $ECHO_N "(cached) $ECHO_C" >&6
16575 else
16576   while :; do
16577   ac_cv_sys_file_offset_bits=no
16578   cat >conftest.$ac_ext <<_ACEOF
16579 #line $LINENO "configure"
16580 #include "confdefs.h"
16581 #include <sys/types.h>
16582  /* Check that off_t can represent 2**63 - 1 correctly.
16583     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16584     since some C++ compilers masquerading as C compilers
16585     incorrectly reject 9223372036854775807.  */
16586 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16587   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16588                        && LARGE_OFF_T % 2147483647 == 1)
16589                       ? 1 : -1];
16590 #ifdef F77_DUMMY_MAIN
16591 #  ifdef __cplusplus
16592      extern "C"
16593 #  endif
16594    int F77_DUMMY_MAIN() { return 1; }
16595 #endif
16596 int
16597 main ()
16598 {
16599
16600   ;
16601   return 0;
16602 }
16603 _ACEOF
16604 rm -f conftest.$ac_objext
16605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16606   (eval $ac_compile) 2>&5
16607   ac_status=$?
16608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609   (exit $ac_status); } &&
16610          { ac_try='test -s conftest.$ac_objext'
16611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16612   (eval $ac_try) 2>&5
16613   ac_status=$?
16614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615   (exit $ac_status); }; }; then
16616   break
16617 else
16618   echo "$as_me: failed program was:" >&5
16619 cat conftest.$ac_ext >&5
16620 fi
16621 rm -f conftest.$ac_objext conftest.$ac_ext
16622   cat >conftest.$ac_ext <<_ACEOF
16623 #line $LINENO "configure"
16624 #include "confdefs.h"
16625 #define _FILE_OFFSET_BITS 64
16626 #include <sys/types.h>
16627  /* Check that off_t can represent 2**63 - 1 correctly.
16628     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16629     since some C++ compilers masquerading as C compilers
16630     incorrectly reject 9223372036854775807.  */
16631 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16632   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16633                        && LARGE_OFF_T % 2147483647 == 1)
16634                       ? 1 : -1];
16635 #ifdef F77_DUMMY_MAIN
16636 #  ifdef __cplusplus
16637      extern "C"
16638 #  endif
16639    int F77_DUMMY_MAIN() { return 1; }
16640 #endif
16641 int
16642 main ()
16643 {
16644
16645   ;
16646   return 0;
16647 }
16648 _ACEOF
16649 rm -f conftest.$ac_objext
16650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16651   (eval $ac_compile) 2>&5
16652   ac_status=$?
16653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654   (exit $ac_status); } &&
16655          { ac_try='test -s conftest.$ac_objext'
16656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16657   (eval $ac_try) 2>&5
16658   ac_status=$?
16659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660   (exit $ac_status); }; }; then
16661   ac_cv_sys_file_offset_bits=64; break
16662 else
16663   echo "$as_me: failed program was:" >&5
16664 cat conftest.$ac_ext >&5
16665 fi
16666 rm -f conftest.$ac_objext conftest.$ac_ext
16667   break
16668 done
16669 fi
16670 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16671 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16672 if test "$ac_cv_sys_file_offset_bits" != no; then
16673
16674 cat >>confdefs.h <<_ACEOF
16675 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16676 _ACEOF
16677
16678 fi
16679 rm -f conftest*
16680   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16681 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16682 if test "${ac_cv_sys_large_files+set}" = set; then
16683   echo $ECHO_N "(cached) $ECHO_C" >&6
16684 else
16685   while :; do
16686   ac_cv_sys_large_files=no
16687   cat >conftest.$ac_ext <<_ACEOF
16688 #line $LINENO "configure"
16689 #include "confdefs.h"
16690 #include <sys/types.h>
16691  /* Check that off_t can represent 2**63 - 1 correctly.
16692     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16693     since some C++ compilers masquerading as C compilers
16694     incorrectly reject 9223372036854775807.  */
16695 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16696   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16697                        && LARGE_OFF_T % 2147483647 == 1)
16698                       ? 1 : -1];
16699 #ifdef F77_DUMMY_MAIN
16700 #  ifdef __cplusplus
16701      extern "C"
16702 #  endif
16703    int F77_DUMMY_MAIN() { return 1; }
16704 #endif
16705 int
16706 main ()
16707 {
16708
16709   ;
16710   return 0;
16711 }
16712 _ACEOF
16713 rm -f conftest.$ac_objext
16714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16715   (eval $ac_compile) 2>&5
16716   ac_status=$?
16717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718   (exit $ac_status); } &&
16719          { ac_try='test -s conftest.$ac_objext'
16720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16721   (eval $ac_try) 2>&5
16722   ac_status=$?
16723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724   (exit $ac_status); }; }; then
16725   break
16726 else
16727   echo "$as_me: failed program was:" >&5
16728 cat conftest.$ac_ext >&5
16729 fi
16730 rm -f conftest.$ac_objext conftest.$ac_ext
16731   cat >conftest.$ac_ext <<_ACEOF
16732 #line $LINENO "configure"
16733 #include "confdefs.h"
16734 #define _LARGE_FILES 1
16735 #include <sys/types.h>
16736  /* Check that off_t can represent 2**63 - 1 correctly.
16737     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16738     since some C++ compilers masquerading as C compilers
16739     incorrectly reject 9223372036854775807.  */
16740 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16741   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16742                        && LARGE_OFF_T % 2147483647 == 1)
16743                       ? 1 : -1];
16744 #ifdef F77_DUMMY_MAIN
16745 #  ifdef __cplusplus
16746      extern "C"
16747 #  endif
16748    int F77_DUMMY_MAIN() { return 1; }
16749 #endif
16750 int
16751 main ()
16752 {
16753
16754   ;
16755   return 0;
16756 }
16757 _ACEOF
16758 rm -f conftest.$ac_objext
16759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16760   (eval $ac_compile) 2>&5
16761   ac_status=$?
16762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763   (exit $ac_status); } &&
16764          { ac_try='test -s conftest.$ac_objext'
16765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16766   (eval $ac_try) 2>&5
16767   ac_status=$?
16768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769   (exit $ac_status); }; }; then
16770   ac_cv_sys_large_files=1; break
16771 else
16772   echo "$as_me: failed program was:" >&5
16773 cat conftest.$ac_ext >&5
16774 fi
16775 rm -f conftest.$ac_objext conftest.$ac_ext
16776   break
16777 done
16778 fi
16779 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16780 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16781 if test "$ac_cv_sys_large_files" != no; then
16782
16783 cat >>confdefs.h <<_ACEOF
16784 #define _LARGE_FILES $ac_cv_sys_large_files
16785 _ACEOF
16786
16787 fi
16788 rm -f conftest*
16789 fi
16790
16791 fi
16792
16793
16794 # Select semaphore implementation type.
16795 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
16796
16797 cat >>confdefs.h <<\_ACEOF
16798 #define USE_NAMED_POSIX_SEMAPHORES 1
16799 _ACEOF
16800
16801   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16802 else
16803   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
16804
16805 cat >>confdefs.h <<\_ACEOF
16806 #define USE_UNNAMED_POSIX_SEMAPHORES 1
16807 _ACEOF
16808
16809     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16810   else
16811
16812 cat >>confdefs.h <<\_ACEOF
16813 #define USE_SYSV_SEMAPHORES 1
16814 _ACEOF
16815
16816     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
16817   fi
16818 fi
16819
16820
16821 # Select shared-memory implementation type.
16822
16823 cat >>confdefs.h <<\_ACEOF
16824 #define USE_SYSV_SHARED_MEMORY 1
16825 _ACEOF
16826
16827 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
16828
16829
16830 if test "$enable_nls" = yes ; then
16831
16832   echo "$as_me:$LINENO: checking for library containing gettext" >&5
16833 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
16834 if test "${ac_cv_search_gettext+set}" = set; then
16835   echo $ECHO_N "(cached) $ECHO_C" >&6
16836 else
16837   ac_func_search_save_LIBS=$LIBS
16838 ac_cv_search_gettext=no
16839 cat >conftest.$ac_ext <<_ACEOF
16840 #line $LINENO "configure"
16841 #include "confdefs.h"
16842
16843 /* Override any gcc2 internal prototype to avoid an error.  */
16844 #ifdef __cplusplus
16845 extern "C"
16846 #endif
16847 /* We use char because int might match the return type of a gcc2
16848    builtin and then its argument prototype would still apply.  */
16849 char gettext ();
16850 #ifdef F77_DUMMY_MAIN
16851 #  ifdef __cplusplus
16852      extern "C"
16853 #  endif
16854    int F77_DUMMY_MAIN() { return 1; }
16855 #endif
16856 int
16857 main ()
16858 {
16859 gettext ();
16860   ;
16861   return 0;
16862 }
16863 _ACEOF
16864 rm -f conftest.$ac_objext conftest$ac_exeext
16865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16866   (eval $ac_link) 2>&5
16867   ac_status=$?
16868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869   (exit $ac_status); } &&
16870          { ac_try='test -s conftest$ac_exeext'
16871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16872   (eval $ac_try) 2>&5
16873   ac_status=$?
16874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875   (exit $ac_status); }; }; then
16876   ac_cv_search_gettext="none required"
16877 else
16878   echo "$as_me: failed program was:" >&5
16879 cat conftest.$ac_ext >&5
16880 fi
16881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16882 if test "$ac_cv_search_gettext" = no; then
16883   for ac_lib in intl; do
16884     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16885     cat >conftest.$ac_ext <<_ACEOF
16886 #line $LINENO "configure"
16887 #include "confdefs.h"
16888
16889 /* Override any gcc2 internal prototype to avoid an error.  */
16890 #ifdef __cplusplus
16891 extern "C"
16892 #endif
16893 /* We use char because int might match the return type of a gcc2
16894    builtin and then its argument prototype would still apply.  */
16895 char gettext ();
16896 #ifdef F77_DUMMY_MAIN
16897 #  ifdef __cplusplus
16898      extern "C"
16899 #  endif
16900    int F77_DUMMY_MAIN() { return 1; }
16901 #endif
16902 int
16903 main ()
16904 {
16905 gettext ();
16906   ;
16907   return 0;
16908 }
16909 _ACEOF
16910 rm -f conftest.$ac_objext conftest$ac_exeext
16911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16912   (eval $ac_link) 2>&5
16913   ac_status=$?
16914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915   (exit $ac_status); } &&
16916          { ac_try='test -s conftest$ac_exeext'
16917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918   (eval $ac_try) 2>&5
16919   ac_status=$?
16920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921   (exit $ac_status); }; }; then
16922   ac_cv_search_gettext="-l$ac_lib"
16923 break
16924 else
16925   echo "$as_me: failed program was:" >&5
16926 cat conftest.$ac_ext >&5
16927 fi
16928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16929   done
16930 fi
16931 LIBS=$ac_func_search_save_LIBS
16932 fi
16933 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
16934 echo "${ECHO_T}$ac_cv_search_gettext" >&6
16935 if test "$ac_cv_search_gettext" != no; then
16936   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
16937
16938 else
16939   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
16940 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
16941    { (exit 1); exit 1; }; }
16942 fi
16943
16944   if test "${ac_cv_header_libintl_h+set}" = set; then
16945   echo "$as_me:$LINENO: checking for libintl.h" >&5
16946 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16947 if test "${ac_cv_header_libintl_h+set}" = set; then
16948   echo $ECHO_N "(cached) $ECHO_C" >&6
16949 fi
16950 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16951 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16952 else
16953   # Is the header compilable?
16954 echo "$as_me:$LINENO: checking libintl.h usability" >&5
16955 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
16956 cat >conftest.$ac_ext <<_ACEOF
16957 #line $LINENO "configure"
16958 #include "confdefs.h"
16959 $ac_includes_default
16960 #include <libintl.h>
16961 _ACEOF
16962 rm -f conftest.$ac_objext
16963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16964   (eval $ac_compile) 2>&5
16965   ac_status=$?
16966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967   (exit $ac_status); } &&
16968          { ac_try='test -s conftest.$ac_objext'
16969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16970   (eval $ac_try) 2>&5
16971   ac_status=$?
16972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973   (exit $ac_status); }; }; then
16974   ac_header_compiler=yes
16975 else
16976   echo "$as_me: failed program was:" >&5
16977 cat conftest.$ac_ext >&5
16978 ac_header_compiler=no
16979 fi
16980 rm -f conftest.$ac_objext conftest.$ac_ext
16981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16982 echo "${ECHO_T}$ac_header_compiler" >&6
16983
16984 # Is the header present?
16985 echo "$as_me:$LINENO: checking libintl.h presence" >&5
16986 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
16987 cat >conftest.$ac_ext <<_ACEOF
16988 #line $LINENO "configure"
16989 #include "confdefs.h"
16990 #include <libintl.h>
16991 _ACEOF
16992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16993   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16994   ac_status=$?
16995   egrep -v '^ *\+' conftest.er1 >conftest.err
16996   rm -f conftest.er1
16997   cat conftest.err >&5
16998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999   (exit $ac_status); } >/dev/null; then
17000   if test -s conftest.err; then
17001     ac_cpp_err=$ac_c_preproc_warn_flag
17002   else
17003     ac_cpp_err=
17004   fi
17005 else
17006   ac_cpp_err=yes
17007 fi
17008 if test -z "$ac_cpp_err"; then
17009   ac_header_preproc=yes
17010 else
17011   echo "$as_me: failed program was:" >&5
17012   cat conftest.$ac_ext >&5
17013   ac_header_preproc=no
17014 fi
17015 rm -f conftest.err conftest.$ac_ext
17016 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17017 echo "${ECHO_T}$ac_header_preproc" >&6
17018
17019 # So?  What about this header?
17020 case $ac_header_compiler:$ac_header_preproc in
17021   yes:no )
17022     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17023 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17024     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17025 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17026   no:yes )
17027     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
17028 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
17029     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
17030 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
17031     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17032 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17033 esac
17034 echo "$as_me:$LINENO: checking for libintl.h" >&5
17035 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17036 if test "${ac_cv_header_libintl_h+set}" = set; then
17037   echo $ECHO_N "(cached) $ECHO_C" >&6
17038 else
17039   ac_cv_header_libintl_h=$ac_header_preproc
17040 fi
17041 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17042 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17043
17044 fi
17045 if test $ac_cv_header_libintl_h = yes; then
17046   :
17047 else
17048   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
17049 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
17050    { (exit 1); exit 1; }; }
17051 fi
17052
17053
17054   for ac_prog in msgfmt
17055 do
17056   # Extract the first word of "$ac_prog", so it can be a program name with args.
17057 set dummy $ac_prog; ac_word=$2
17058 echo "$as_me:$LINENO: checking for $ac_word" >&5
17059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17060 if test "${ac_cv_prog_MSGFMT+set}" = set; then
17061   echo $ECHO_N "(cached) $ECHO_C" >&6
17062 else
17063   if test -n "$MSGFMT"; then
17064   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
17065 else
17066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17067 for as_dir in $PATH
17068 do
17069   IFS=$as_save_IFS
17070   test -z "$as_dir" && as_dir=.
17071   for ac_exec_ext in '' $ac_executable_extensions; do
17072   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17073     ac_cv_prog_MSGFMT="$ac_prog"
17074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17075     break 2
17076   fi
17077 done
17078 done
17079
17080 fi
17081 fi
17082 MSGFMT=$ac_cv_prog_MSGFMT
17083 if test -n "$MSGFMT"; then
17084   echo "$as_me:$LINENO: result: $MSGFMT" >&5
17085 echo "${ECHO_T}$MSGFMT" >&6
17086 else
17087   echo "$as_me:$LINENO: result: no" >&5
17088 echo "${ECHO_T}no" >&6
17089 fi
17090
17091   test -n "$MSGFMT" && break
17092 done
17093
17094   if test -z "$MSGFMT"; then
17095     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
17096 echo "$as_me: error: msgfmt is required for NLS" >&2;}
17097    { (exit 1); exit 1; }; }
17098   fi
17099   for ac_prog in msgmerge
17100 do
17101   # Extract the first word of "$ac_prog", so it can be a program name with args.
17102 set dummy $ac_prog; ac_word=$2
17103 echo "$as_me:$LINENO: checking for $ac_word" >&5
17104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17105 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
17106   echo $ECHO_N "(cached) $ECHO_C" >&6
17107 else
17108   if test -n "$MSGMERGE"; then
17109   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
17110 else
17111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17112 for as_dir in $PATH
17113 do
17114   IFS=$as_save_IFS
17115   test -z "$as_dir" && as_dir=.
17116   for ac_exec_ext in '' $ac_executable_extensions; do
17117   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17118     ac_cv_prog_MSGMERGE="$ac_prog"
17119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17120     break 2
17121   fi
17122 done
17123 done
17124
17125 fi
17126 fi
17127 MSGMERGE=$ac_cv_prog_MSGMERGE
17128 if test -n "$MSGMERGE"; then
17129   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
17130 echo "${ECHO_T}$MSGMERGE" >&6
17131 else
17132   echo "$as_me:$LINENO: result: no" >&5
17133 echo "${ECHO_T}no" >&6
17134 fi
17135
17136   test -n "$MSGMERGE" && break
17137 done
17138
17139   for ac_prog in xgettext
17140 do
17141   # Extract the first word of "$ac_prog", so it can be a program name with args.
17142 set dummy $ac_prog; ac_word=$2
17143 echo "$as_me:$LINENO: checking for $ac_word" >&5
17144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17145 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
17146   echo $ECHO_N "(cached) $ECHO_C" >&6
17147 else
17148   if test -n "$XGETTEXT"; then
17149   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
17150 else
17151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17152 for as_dir in $PATH
17153 do
17154   IFS=$as_save_IFS
17155   test -z "$as_dir" && as_dir=.
17156   for ac_exec_ext in '' $ac_executable_extensions; do
17157   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17158     ac_cv_prog_XGETTEXT="$ac_prog"
17159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17160     break 2
17161   fi
17162 done
17163 done
17164
17165 fi
17166 fi
17167 XGETTEXT=$ac_cv_prog_XGETTEXT
17168 if test -n "$XGETTEXT"; then
17169   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17170 echo "${ECHO_T}$XGETTEXT" >&6
17171 else
17172   echo "$as_me:$LINENO: result: no" >&5
17173 echo "${ECHO_T}no" >&6
17174 fi
17175
17176   test -n "$XGETTEXT" && break
17177 done
17178
17179
17180   # Note: share/locale is always the default, independent of $datadir
17181   localedir='${prefix}/share/locale'
17182   if test x"$prefix" = x"NONE"; then
17183     exp_localedir="$ac_default_prefix/share/locale"
17184   else
17185     exp_localedir="$prefix/share/locale"
17186   fi
17187
17188
17189
17190 cat >>confdefs.h <<_ACEOF
17191 #define LOCALEDIR "$exp_localedir"
17192 _ACEOF
17193
17194
17195 fi
17196
17197 # Check for Tcl configuration script tclConfig.sh
17198 if test "$with_tcl" = yes; then
17199     for ac_prog in tclsh tcl
17200 do
17201   # Extract the first word of "$ac_prog", so it can be a program name with args.
17202 set dummy $ac_prog; ac_word=$2
17203 echo "$as_me:$LINENO: checking for $ac_word" >&5
17204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17205 if test "${ac_cv_path_TCLSH+set}" = set; then
17206   echo $ECHO_N "(cached) $ECHO_C" >&6
17207 else
17208   case $TCLSH in
17209   [\\/]* | ?:[\\/]*)
17210   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
17211   ;;
17212   *)
17213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17214 for as_dir in $PATH
17215 do
17216   IFS=$as_save_IFS
17217   test -z "$as_dir" && as_dir=.
17218   for ac_exec_ext in '' $ac_executable_extensions; do
17219   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17220     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
17221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17222     break 2
17223   fi
17224 done
17225 done
17226
17227   ;;
17228 esac
17229 fi
17230 TCLSH=$ac_cv_path_TCLSH
17231
17232 if test -n "$TCLSH"; then
17233   echo "$as_me:$LINENO: result: $TCLSH" >&5
17234 echo "${ECHO_T}$TCLSH" >&6
17235 else
17236   echo "$as_me:$LINENO: result: no" >&5
17237 echo "${ECHO_T}no" >&6
17238 fi
17239
17240   test -n "$TCLSH" && break
17241 done
17242
17243 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
17244 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
17245 # Let user override test
17246 if test -z "$TCL_CONFIG_SH"; then
17247     pgac_test_dirs="$with_tclconfig"
17248
17249     set X $pgac_test_dirs; shift
17250     if test $# -eq 0; then
17251         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
17252 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
17253    { (exit 1); exit 1; }; }
17254         set X `echo 'puts $auto_path' | $TCLSH`; shift
17255     fi
17256
17257     for pgac_dir do
17258         if test -r "$pgac_dir/tclConfig.sh"; then
17259             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
17260             break
17261         fi
17262     done
17263 fi
17264
17265 if test -z "$TCL_CONFIG_SH"; then
17266     echo "$as_me:$LINENO: result: no" >&5
17267 echo "${ECHO_T}no" >&6
17268     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
17269 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
17270    { (exit 1); exit 1; }; }
17271 else
17272     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
17273 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
17274 fi
17275
17276
17277
17278     . "$TCL_CONFIG_SH"
17279 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
17280 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
17281 eval TCL_LIBS=\"$TCL_LIBS\"
17282 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
17283 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
17284
17285     fi
17286
17287 # Check for Tk configuration script tkConfig.sh
17288 if test "$with_tk" = yes; then
17289     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
17290 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
17291 # Let user override test
17292 if test -z "$TK_CONFIG_SH"; then
17293     pgac_test_dirs="$with_tkconfig $with_tclconfig"
17294
17295     set X $pgac_test_dirs; shift
17296     if test $# -eq 0; then
17297         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
17298 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
17299    { (exit 1); exit 1; }; }
17300         set X `echo 'puts $auto_path' | $TCLSH`; shift
17301     fi
17302
17303     for pgac_dir do
17304         if test -r "$pgac_dir/tkConfig.sh"; then
17305             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
17306             break
17307         fi
17308     done
17309 fi
17310
17311 if test -z "$TK_CONFIG_SH"; then
17312     echo "$as_me:$LINENO: result: no" >&5
17313 echo "${ECHO_T}no" >&6
17314     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
17315 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
17316    { (exit 1); exit 1; }; }
17317 else
17318     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
17319 echo "${ECHO_T}$TK_CONFIG_SH" >&6
17320 fi
17321
17322
17323
17324     . "$TK_CONFIG_SH"
17325 eval TK_LIBS=\"$TK_LIBS\"
17326 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
17327 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
17328
17329 fi
17330
17331
17332 #
17333 # Check for DocBook and tools
17334 #
17335 for ac_prog in onsgmls nsgmls
17336 do
17337   # Extract the first word of "$ac_prog", so it can be a program name with args.
17338 set dummy $ac_prog; ac_word=$2
17339 echo "$as_me:$LINENO: checking for $ac_word" >&5
17340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17341 if test "${ac_cv_prog_NSGMLS+set}" = set; then
17342   echo $ECHO_N "(cached) $ECHO_C" >&6
17343 else
17344   if test -n "$NSGMLS"; then
17345   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
17346 else
17347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17348 for as_dir in $PATH
17349 do
17350   IFS=$as_save_IFS
17351   test -z "$as_dir" && as_dir=.
17352   for ac_exec_ext in '' $ac_executable_extensions; do
17353   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17354     ac_cv_prog_NSGMLS="$ac_prog"
17355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17356     break 2
17357   fi
17358 done
17359 done
17360
17361 fi
17362 fi
17363 NSGMLS=$ac_cv_prog_NSGMLS
17364 if test -n "$NSGMLS"; then
17365   echo "$as_me:$LINENO: result: $NSGMLS" >&5
17366 echo "${ECHO_T}$NSGMLS" >&6
17367 else
17368   echo "$as_me:$LINENO: result: no" >&5
17369 echo "${ECHO_T}no" >&6
17370 fi
17371
17372   test -n "$NSGMLS" && break
17373 done
17374
17375 for ac_prog in openjade jade
17376 do
17377   # Extract the first word of "$ac_prog", so it can be a program name with args.
17378 set dummy $ac_prog; ac_word=$2
17379 echo "$as_me:$LINENO: checking for $ac_word" >&5
17380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17381 if test "${ac_cv_prog_JADE+set}" = set; then
17382   echo $ECHO_N "(cached) $ECHO_C" >&6
17383 else
17384   if test -n "$JADE"; then
17385   ac_cv_prog_JADE="$JADE" # Let the user override the test.
17386 else
17387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17388 for as_dir in $PATH
17389 do
17390   IFS=$as_save_IFS
17391   test -z "$as_dir" && as_dir=.
17392   for ac_exec_ext in '' $ac_executable_extensions; do
17393   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17394     ac_cv_prog_JADE="$ac_prog"
17395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17396     break 2
17397   fi
17398 done
17399 done
17400
17401 fi
17402 fi
17403 JADE=$ac_cv_prog_JADE
17404 if test -n "$JADE"; then
17405   echo "$as_me:$LINENO: result: $JADE" >&5
17406 echo "${ECHO_T}$JADE" >&6
17407 else
17408   echo "$as_me:$LINENO: result: no" >&5
17409 echo "${ECHO_T}no" >&6
17410 fi
17411
17412   test -n "$JADE" && break
17413 done
17414
17415
17416 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
17417 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
17418 if test "${pgac_cv_check_docbook+set}" = set; then
17419   echo $ECHO_N "(cached) $ECHO_C" >&6
17420 else
17421   cat >conftest.sgml <<EOF
17422 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
17423 <book>
17424  <title>test</title>
17425  <chapter>
17426   <title>random</title>
17427    <sect1>
17428     <title>testsect</title>
17429     <para>text</para>
17430   </sect1>
17431  </chapter>
17432 </book>
17433 EOF
17434
17435 pgac_cv_check_docbook=no
17436
17437 if test -n "$NSGMLS"; then
17438   $NSGMLS -s conftest.sgml 1>&5 2>&1
17439   if test $? -eq 0; then
17440     pgac_cv_check_docbook=yes
17441   fi
17442 fi
17443 rm -f conftest.sgml
17444 fi
17445 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
17446 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
17447
17448 have_docbook=$pgac_cv_check_docbook
17449
17450
17451 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
17452 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
17453 if test "${pgac_cv_path_stylesheets+set}" = set; then
17454   echo $ECHO_N "(cached) $ECHO_C" >&6
17455 else
17456   if test -n "$DOCBOOKSTYLE"; then
17457   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
17458 else
17459   for pgac_prefix in /usr /usr/local /opt; do
17460     for pgac_infix in share lib; do
17461       for pgac_postfix in \
17462         sgml/stylesheets/nwalsh-modular \
17463         sgml/stylesheets/docbook \
17464                 sgml/docbook-dsssl \
17465         sgml/docbook/dsssl/modular \
17466         sgml/docbook/stylesheet/dsssl/modular \
17467         sgml/docbook/dsssl-stylesheets
17468       do
17469         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
17470         if test -r "$pgac_candidate/html/docbook.dsl" \
17471            && test -r "$pgac_candidate/print/docbook.dsl"
17472         then
17473           pgac_cv_path_stylesheets=$pgac_candidate
17474           break 3
17475         fi
17476       done
17477     done
17478   done
17479 fi
17480 fi
17481
17482 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
17483
17484 if test -n "$DOCBOOKSTYLE"; then
17485   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
17486 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
17487 else
17488   echo "$as_me:$LINENO: result: no" >&5
17489 echo "${ECHO_T}no" >&6
17490 fi
17491 if test -n "$DOCBOOKSTYLE"; then
17492   for ac_prog in collateindex.pl
17493 do
17494   # Extract the first word of "$ac_prog", so it can be a program name with args.
17495 set dummy $ac_prog; ac_word=$2
17496 echo "$as_me:$LINENO: checking for $ac_word" >&5
17497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17498 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17499   echo $ECHO_N "(cached) $ECHO_C" >&6
17500 else
17501   case $COLLATEINDEX in
17502   [\\/]* | ?:[\\/]*)
17503   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17504   ;;
17505   *)
17506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17507 for as_dir in $DOCBOOKSTYLE/bin $PATH
17508 do
17509   IFS=$as_save_IFS
17510   test -z "$as_dir" && as_dir=.
17511   for ac_exec_ext in '' $ac_executable_extensions; do
17512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17513     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17515     break 2
17516   fi
17517 done
17518 done
17519
17520   ;;
17521 esac
17522 fi
17523 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17524
17525 if test -n "$COLLATEINDEX"; then
17526   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17527 echo "${ECHO_T}$COLLATEINDEX" >&6
17528 else
17529   echo "$as_me:$LINENO: result: no" >&5
17530 echo "${ECHO_T}no" >&6
17531 fi
17532
17533   test -n "$COLLATEINDEX" && break
17534 done
17535
17536 else
17537   for ac_prog in collateindex.pl
17538 do
17539   # Extract the first word of "$ac_prog", so it can be a program name with args.
17540 set dummy $ac_prog; ac_word=$2
17541 echo "$as_me:$LINENO: checking for $ac_word" >&5
17542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17543 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17544   echo $ECHO_N "(cached) $ECHO_C" >&6
17545 else
17546   case $COLLATEINDEX in
17547   [\\/]* | ?:[\\/]*)
17548   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17549   ;;
17550   *)
17551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17552 for as_dir in $PATH
17553 do
17554   IFS=$as_save_IFS
17555   test -z "$as_dir" && as_dir=.
17556   for ac_exec_ext in '' $ac_executable_extensions; do
17557   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17558     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17560     break 2
17561   fi
17562 done
17563 done
17564
17565   ;;
17566 esac
17567 fi
17568 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17569
17570 if test -n "$COLLATEINDEX"; then
17571   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17572 echo "${ECHO_T}$COLLATEINDEX" >&6
17573 else
17574   echo "$as_me:$LINENO: result: no" >&5
17575 echo "${ECHO_T}no" >&6
17576 fi
17577
17578   test -n "$COLLATEINDEX" && break
17579 done
17580
17581 fi
17582 for ac_prog in sgmlspl
17583 do
17584   # Extract the first word of "$ac_prog", so it can be a program name with args.
17585 set dummy $ac_prog; ac_word=$2
17586 echo "$as_me:$LINENO: checking for $ac_word" >&5
17587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17588 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17589   echo $ECHO_N "(cached) $ECHO_C" >&6
17590 else
17591   if test -n "$SGMLSPL"; then
17592   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17593 else
17594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17595 for as_dir in $PATH
17596 do
17597   IFS=$as_save_IFS
17598   test -z "$as_dir" && as_dir=.
17599   for ac_exec_ext in '' $ac_executable_extensions; do
17600   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17601     ac_cv_prog_SGMLSPL="$ac_prog"
17602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17603     break 2
17604   fi
17605 done
17606 done
17607
17608 fi
17609 fi
17610 SGMLSPL=$ac_cv_prog_SGMLSPL
17611 if test -n "$SGMLSPL"; then
17612   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17613 echo "${ECHO_T}$SGMLSPL" >&6
17614 else
17615   echo "$as_me:$LINENO: result: no" >&5
17616 echo "${ECHO_T}no" >&6
17617 fi
17618
17619   test -n "$SGMLSPL" && break
17620 done
17621
17622
17623
17624 # prepare build tree if outside source tree
17625 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
17626 # Note 2: /bin/pwd might be better than shell's built-in at getting
17627 #         a symlink-free name.
17628 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
17629   vpath_build=no
17630 else
17631   vpath_build=yes
17632   if test "$no_create" != yes; then
17633     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
17634     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
17635     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
17636       || { { echo "$as_me:$LINENO: error: failed" >&5
17637 echo "$as_me: error: failed" >&2;}
17638    { (exit 1); exit 1; }; }
17639     echo "$as_me:$LINENO: result: done" >&5
17640 echo "${ECHO_T}done" >&6
17641   fi
17642 fi
17643
17644
17645
17646 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
17647
17648
17649 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}"
17650
17651
17652 ac_config_headers="$ac_config_headers src/include/pg_config.h"
17653
17654
17655 cat >confcache <<\_ACEOF
17656 # This file is a shell script that caches the results of configure
17657 # tests run on this system so they can be shared between configure
17658 # scripts and configure runs, see configure's option --config-cache.
17659 # It is not useful on other systems.  If it contains results you don't
17660 # want to keep, you may remove or edit it.
17661 #
17662 # config.status only pays attention to the cache file if you give it
17663 # the --recheck option to rerun configure.
17664 #
17665 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17666 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17667 # following values.
17668
17669 _ACEOF
17670
17671 # The following way of writing the cache mishandles newlines in values,
17672 # but we know of no workaround that is simple, portable, and efficient.
17673 # So, don't put newlines in cache variables' values.
17674 # Ultrix sh set writes to stderr and can't be redirected directly,
17675 # and sets the high bit in the cache file unless we assign to the vars.
17676 {
17677   (set) 2>&1 |
17678     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17679     *ac_space=\ *)
17680       # `set' does not quote correctly, so add quotes (double-quote
17681       # substitution turns \\\\ into \\, and sed turns \\ into \).
17682       sed -n \
17683         "s/'/'\\\\''/g;
17684           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17685       ;;
17686     *)
17687       # `set' quotes correctly as required by POSIX, so do not add quotes.
17688       sed -n \
17689         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17690       ;;
17691     esac;
17692 } |
17693   sed '
17694      t clear
17695      : clear
17696      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17697      t end
17698      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17699      : end' >>confcache
17700 if cmp -s $cache_file confcache; then :; else
17701   if test -w $cache_file; then
17702     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17703     cat confcache >$cache_file
17704   else
17705     echo "not updating unwritable cache $cache_file"
17706   fi
17707 fi
17708 rm -f confcache
17709
17710 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17711 # Let make expand exec_prefix.
17712 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17713
17714 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17715 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17716 # trailing colons and then remove the whole line if VPATH becomes empty
17717 # (actually we leave an empty line to preserve line numbers).
17718 if test "x$srcdir" = x.; then
17719   ac_vpsub='/^[         ]*VPATH[        ]*=/{
17720 s/:*\$(srcdir):*/:/;
17721 s/:*\${srcdir}:*/:/;
17722 s/:*@srcdir@:*/:/;
17723 s/^\([^=]*=[    ]*\):*/\1/;
17724 s/:*$//;
17725 s/^[^=]*=[      ]*$//;
17726 }'
17727 fi
17728
17729 DEFS=-DHAVE_CONFIG_H
17730
17731
17732 : ${CONFIG_STATUS=./config.status}
17733 ac_clean_files_save=$ac_clean_files
17734 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17735 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17736 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17737 cat >$CONFIG_STATUS <<_ACEOF
17738 #! $SHELL
17739 # Generated by $as_me.
17740 # Run this file to recreate the current configuration.
17741 # Compiler output produced by configure, useful for debugging
17742 # configure, is in config.log if it exists.
17743
17744 debug=false
17745 SHELL=\${CONFIG_SHELL-$SHELL}
17746 _ACEOF
17747
17748 cat >>$CONFIG_STATUS <<\_ACEOF
17749
17750 ## --------------------- ##
17751 ## M4sh Initialization.  ##
17752 ## --------------------- ##
17753
17754 # Be Bourne compatible
17755 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17756   emulate sh
17757   NULLCMD=:
17758 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17759   set -o posix
17760 fi
17761
17762 # NLS nuisances.
17763 # Support unset when possible.
17764 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17765   as_unset=unset
17766 else
17767   as_unset=false
17768 fi
17769
17770 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17771     { $as_unset LANG || test "${LANG+set}" != set; } ||
17772       { LANG=C; export LANG; }
17773 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17774     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17775       { LC_ALL=C; export LC_ALL; }
17776 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17777     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17778       { LC_TIME=C; export LC_TIME; }
17779 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17780     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17781       { LC_CTYPE=C; export LC_CTYPE; }
17782 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17783     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17784       { LANGUAGE=C; export LANGUAGE; }
17785 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17786     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17787       { LC_COLLATE=C; export LC_COLLATE; }
17788 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17789     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17790       { LC_NUMERIC=C; export LC_NUMERIC; }
17791 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17792     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17793       { LC_MESSAGES=C; export LC_MESSAGES; }
17794
17795
17796 # Name of the executable.
17797 as_me=`(basename "$0") 2>/dev/null ||
17798 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17799          X"$0" : 'X\(//\)$' \| \
17800          X"$0" : 'X\(/\)$' \| \
17801          .     : '\(.\)' 2>/dev/null ||
17802 echo X/"$0" |
17803     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17804           /^X\/\(\/\/\)$/{ s//\1/; q; }
17805           /^X\/\(\/\).*/{ s//\1/; q; }
17806           s/.*/./; q'`
17807
17808 # PATH needs CR, and LINENO needs CR and PATH.
17809 # Avoid depending upon Character Ranges.
17810 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17811 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17812 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17813 as_cr_digits='0123456789'
17814 as_cr_alnum=$as_cr_Letters$as_cr_digits
17815
17816 # The user is always right.
17817 if test "${PATH_SEPARATOR+set}" != set; then
17818   echo "#! /bin/sh" >conftest.sh
17819   echo  "exit 0"   >>conftest.sh
17820   chmod +x conftest.sh
17821   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17822     PATH_SEPARATOR=';'
17823   else
17824     PATH_SEPARATOR=:
17825   fi
17826   rm -f conftest.sh
17827 fi
17828
17829
17830   as_lineno_1=$LINENO
17831   as_lineno_2=$LINENO
17832   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17833   test "x$as_lineno_1" != "x$as_lineno_2" &&
17834   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17835   # Find who we are.  Look in the path if we contain no path at all
17836   # relative or not.
17837   case $0 in
17838     *[\\/]* ) as_myself=$0 ;;
17839     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17840 for as_dir in $PATH
17841 do
17842   IFS=$as_save_IFS
17843   test -z "$as_dir" && as_dir=.
17844   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17845 done
17846
17847        ;;
17848   esac
17849   # We did not find ourselves, most probably we were run as `sh COMMAND'
17850   # in which case we are not to be found in the path.
17851   if test "x$as_myself" = x; then
17852     as_myself=$0
17853   fi
17854   if test ! -f "$as_myself"; then
17855     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17856 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17857    { (exit 1); exit 1; }; }
17858   fi
17859   case $CONFIG_SHELL in
17860   '')
17861     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17862 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17863 do
17864   IFS=$as_save_IFS
17865   test -z "$as_dir" && as_dir=.
17866   for as_base in sh bash ksh sh5; do
17867          case $as_dir in
17868          /*)
17869            if ("$as_dir/$as_base" -c '
17870   as_lineno_1=$LINENO
17871   as_lineno_2=$LINENO
17872   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17873   test "x$as_lineno_1" != "x$as_lineno_2" &&
17874   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17875              CONFIG_SHELL=$as_dir/$as_base
17876              export CONFIG_SHELL
17877              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17878            fi;;
17879          esac
17880        done
17881 done
17882 ;;
17883   esac
17884
17885   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17886   # uniformly replaced by the line number.  The first 'sed' inserts a
17887   # line-number line before each line; the second 'sed' does the real
17888   # work.  The second script uses 'N' to pair each line-number line
17889   # with the numbered line, and appends trailing '-' during
17890   # substitution so that $LINENO is not a special case at line end.
17891   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17892   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17893   sed '=' <$as_myself |
17894     sed '
17895       N
17896       s,$,-,
17897       : loop
17898       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17899       t loop
17900       s,-$,,
17901       s,^['$as_cr_digits']*\n,,
17902     ' >$as_me.lineno &&
17903   chmod +x $as_me.lineno ||
17904     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17905 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17906    { (exit 1); exit 1; }; }
17907
17908   # Don't try to exec as it changes $[0], causing all sort of problems
17909   # (the dirname of $[0] is not the place where we might find the
17910   # original and so on.  Autoconf is especially sensible to this).
17911   . ./$as_me.lineno
17912   # Exit status is that of the last command.
17913   exit
17914 }
17915
17916
17917 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17918   *c*,-n*) ECHO_N= ECHO_C='
17919 ' ECHO_T='      ' ;;
17920   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17921   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17922 esac
17923
17924 if expr a : '\(a\)' >/dev/null 2>&1; then
17925   as_expr=expr
17926 else
17927   as_expr=false
17928 fi
17929
17930 rm -f conf$$ conf$$.exe conf$$.file
17931 echo >conf$$.file
17932 if ln -s conf$$.file conf$$ 2>/dev/null; then
17933   # We could just check for DJGPP; but this test a) works b) is more generic
17934   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17935   if test -f conf$$.exe; then
17936     # Don't use ln at all; we don't have any links
17937     as_ln_s='cp -p'
17938   else
17939     as_ln_s='ln -s'
17940   fi
17941 elif ln conf$$.file conf$$ 2>/dev/null; then
17942   as_ln_s=ln
17943 else
17944   as_ln_s='cp -p'
17945 fi
17946 rm -f conf$$ conf$$.exe conf$$.file
17947
17948 as_executable_p="test -f"
17949
17950 # Sed expression to map a string onto a valid CPP name.
17951 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17952
17953 # Sed expression to map a string onto a valid variable name.
17954 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17955
17956
17957 # IFS
17958 # We need space, tab and new line, in precisely that order.
17959 as_nl='
17960 '
17961 IFS="   $as_nl"
17962
17963 # CDPATH.
17964 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17965
17966 exec 6>&1
17967
17968 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17969 # report actual input values of CONFIG_FILES etc. instead of their
17970 # values after options handling.  Logging --version etc. is OK.
17971 exec 5>>config.log
17972 {
17973   echo
17974   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17975 ## Running $as_me. ##
17976 _ASBOX
17977 } >&5
17978 cat >&5 <<_CSEOF
17979
17980 This file was extended by PostgreSQL $as_me 7.5devel, which was
17981 generated by GNU Autoconf 2.53.  Invocation command line was
17982
17983   CONFIG_FILES    = $CONFIG_FILES
17984   CONFIG_HEADERS  = $CONFIG_HEADERS
17985   CONFIG_LINKS    = $CONFIG_LINKS
17986   CONFIG_COMMANDS = $CONFIG_COMMANDS
17987   $ $0 $@
17988
17989 _CSEOF
17990 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17991 echo >&5
17992 _ACEOF
17993
17994 # Files that config.status was made for.
17995 if test -n "$ac_config_files"; then
17996   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17997 fi
17998
17999 if test -n "$ac_config_headers"; then
18000   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18001 fi
18002
18003 if test -n "$ac_config_links"; then
18004   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18005 fi
18006
18007 if test -n "$ac_config_commands"; then
18008   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18009 fi
18010
18011 cat >>$CONFIG_STATUS <<\_ACEOF
18012
18013 ac_cs_usage="\
18014 \`$as_me' instantiates files from templates according to the
18015 current configuration.
18016
18017 Usage: $0 [OPTIONS] [FILE]...
18018
18019   -h, --help       print this help, then exit
18020   -V, --version    print version number, then exit
18021   -d, --debug      don't remove temporary files
18022       --recheck    update $as_me by reconfiguring in the same conditions
18023   --file=FILE[:TEMPLATE]
18024                    instantiate the configuration file FILE
18025   --header=FILE[:TEMPLATE]
18026                    instantiate the configuration header FILE
18027
18028 Configuration files:
18029 $config_files
18030
18031 Configuration headers:
18032 $config_headers
18033
18034 Configuration links:
18035 $config_links
18036
18037 Report bugs to <bug-autoconf@gnu.org>."
18038 _ACEOF
18039
18040 cat >>$CONFIG_STATUS <<_ACEOF
18041 ac_cs_version="\\
18042 PostgreSQL config.status 7.5devel
18043 configured by $0, generated by GNU Autoconf 2.53,
18044   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18045
18046 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18047 Free Software Foundation, Inc.
18048 This config.status script is free software; the Free Software Foundation
18049 gives unlimited permission to copy, distribute and modify it."
18050 srcdir=$srcdir
18051 _ACEOF
18052
18053 cat >>$CONFIG_STATUS <<\_ACEOF
18054 # If no file are specified by the user, then we need to provide default
18055 # value.  By we need to know if files were specified by the user.
18056 ac_need_defaults=:
18057 while test $# != 0
18058 do
18059   case $1 in
18060   --*=*)
18061     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18062     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18063     shift
18064     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18065     shift
18066     ;;
18067   -*);;
18068   *) # This is not an option, so the user has probably given explicit
18069      # arguments.
18070      ac_need_defaults=false;;
18071   esac
18072
18073   case $1 in
18074   # Handling of the options.
18075 _ACEOF
18076 cat >>$CONFIG_STATUS <<_ACEOF
18077   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18078     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18079     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18080 _ACEOF
18081 cat >>$CONFIG_STATUS <<\_ACEOF
18082   --version | --vers* | -V )
18083     echo "$ac_cs_version"; exit 0 ;;
18084   --he | --h)
18085     # Conflict between --help and --header
18086     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18087 Try \`$0 --help' for more information." >&5
18088 echo "$as_me: error: ambiguous option: $1
18089 Try \`$0 --help' for more information." >&2;}
18090    { (exit 1); exit 1; }; };;
18091   --help | --hel | -h )
18092     echo "$ac_cs_usage"; exit 0 ;;
18093   --debug | --d* | -d )
18094     debug=: ;;
18095   --file | --fil | --fi | --f )
18096     shift
18097     CONFIG_FILES="$CONFIG_FILES $1"
18098     ac_need_defaults=false;;
18099   --header | --heade | --head | --hea )
18100     shift
18101     CONFIG_HEADERS="$CONFIG_HEADERS $1"
18102     ac_need_defaults=false;;
18103
18104   # This is an error.
18105   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18106 Try \`$0 --help' for more information." >&5
18107 echo "$as_me: error: unrecognized option: $1
18108 Try \`$0 --help' for more information." >&2;}
18109    { (exit 1); exit 1; }; } ;;
18110
18111   *) ac_config_targets="$ac_config_targets $1" ;;
18112
18113   esac
18114   shift
18115 done
18116
18117 _ACEOF
18118
18119
18120
18121
18122
18123 cat >>$CONFIG_STATUS <<\_ACEOF
18124 for ac_config_target in $ac_config_targets
18125 do
18126   case "$ac_config_target" in
18127   # Handling of arguments.
18128   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
18129   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
18130   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
18131   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
18132   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
18133   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
18134   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
18135   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
18136   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
18137   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
18138   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18139 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18140    { (exit 1); exit 1; }; };;
18141   esac
18142 done
18143
18144 # If the user did not use the arguments to specify the items to instantiate,
18145 # then the envvar interface is used.  Set only those that are not.
18146 # We use the long form for the default assignment because of an extremely
18147 # bizarre bug on SunOS 4.1.3.
18148 if $ac_need_defaults; then
18149   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18150   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18151   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18152 fi
18153
18154 # Create a temporary directory, and hook for its removal unless debugging.
18155 $debug ||
18156 {
18157   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18158   trap '{ (exit 1); exit 1; }' 1 2 13 15
18159 }
18160
18161 # Create a (secure) tmp directory for tmp files.
18162 : ${TMPDIR=/tmp}
18163 {
18164   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18165   test -n "$tmp" && test -d "$tmp"
18166 }  ||
18167 {
18168   tmp=$TMPDIR/cs$$-$RANDOM
18169   (umask 077 && mkdir $tmp)
18170 } ||
18171 {
18172    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18173    { (exit 1); exit 1; }
18174 }
18175
18176 _ACEOF
18177
18178 cat >>$CONFIG_STATUS <<_ACEOF
18179
18180 #
18181 # CONFIG_FILES section.
18182 #
18183
18184 # No need to generate the scripts if there are no CONFIG_FILES.
18185 # This happens for instance when ./config.status config.h
18186 if test -n "\$CONFIG_FILES"; then
18187   # Protect against being on the right side of a sed subst in config.status.
18188   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18189    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18190 s,@SHELL@,$SHELL,;t t
18191 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18192 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18193 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18194 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18195 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18196 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18197 s,@exec_prefix@,$exec_prefix,;t t
18198 s,@prefix@,$prefix,;t t
18199 s,@program_transform_name@,$program_transform_name,;t t
18200 s,@bindir@,$bindir,;t t
18201 s,@sbindir@,$sbindir,;t t
18202 s,@libexecdir@,$libexecdir,;t t
18203 s,@datadir@,$datadir,;t t
18204 s,@sysconfdir@,$sysconfdir,;t t
18205 s,@sharedstatedir@,$sharedstatedir,;t t
18206 s,@localstatedir@,$localstatedir,;t t
18207 s,@libdir@,$libdir,;t t
18208 s,@includedir@,$includedir,;t t
18209 s,@oldincludedir@,$oldincludedir,;t t
18210 s,@infodir@,$infodir,;t t
18211 s,@mandir@,$mandir,;t t
18212 s,@build_alias@,$build_alias,;t t
18213 s,@host_alias@,$host_alias,;t t
18214 s,@target_alias@,$target_alias,;t t
18215 s,@DEFS@,$DEFS,;t t
18216 s,@ECHO_C@,$ECHO_C,;t t
18217 s,@ECHO_N@,$ECHO_N,;t t
18218 s,@ECHO_T@,$ECHO_T,;t t
18219 s,@LIBS@,$LIBS,;t t
18220 s,@configure_args@,$configure_args,;t t
18221 s,@build@,$build,;t t
18222 s,@build_cpu@,$build_cpu,;t t
18223 s,@build_vendor@,$build_vendor,;t t
18224 s,@build_os@,$build_os,;t t
18225 s,@host@,$host,;t t
18226 s,@host_cpu@,$host_cpu,;t t
18227 s,@host_vendor@,$host_vendor,;t t
18228 s,@host_os@,$host_os,;t t
18229 s,@PORTNAME@,$PORTNAME,;t t
18230 s,@docdir@,$docdir,;t t
18231 s,@enable_nls@,$enable_nls,;t t
18232 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
18233 s,@default_port@,$default_port,;t t
18234 s,@enable_shared@,$enable_shared,;t t
18235 s,@enable_rpath@,$enable_rpath,;t t
18236 s,@enable_debug@,$enable_debug,;t t
18237 s,@CC@,$CC,;t t
18238 s,@CFLAGS@,$CFLAGS,;t t
18239 s,@LDFLAGS@,$LDFLAGS,;t t
18240 s,@CPPFLAGS@,$CPPFLAGS,;t t
18241 s,@ac_ct_CC@,$ac_ct_CC,;t t
18242 s,@EXEEXT@,$EXEEXT,;t t
18243 s,@OBJEXT@,$OBJEXT,;t t
18244 s,@CPP@,$CPP,;t t
18245 s,@GCC@,$GCC,;t t
18246 s,@TAS@,$TAS,;t t
18247 s,@autodepend@,$autodepend,;t t
18248 s,@INCLUDES@,$INCLUDES,;t t
18249 s,@enable_thread_safety@,$enable_thread_safety,;t t
18250 s,@with_tcl@,$with_tcl,;t t
18251 s,@with_tk@,$with_tk,;t t
18252 s,@with_perl@,$with_perl,;t t
18253 s,@with_python@,$with_python,;t t
18254 s,@ANT@,$ANT,;t t
18255 s,@with_java@,$with_java,;t t
18256 s,@with_krb4@,$with_krb4,;t t
18257 s,@with_krb5@,$with_krb5,;t t
18258 s,@krb_srvtab@,$krb_srvtab,;t t
18259 s,@with_pam@,$with_pam,;t t
18260 s,@with_rendezvous@,$with_rendezvous,;t t
18261 s,@with_openssl@,$with_openssl,;t t
18262 s,@ELF_SYS@,$ELF_SYS,;t t
18263 s,@AWK@,$AWK,;t t
18264 s,@FLEX@,$FLEX,;t t
18265 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
18266 s,@LN_S@,$LN_S,;t t
18267 s,@LD@,$LD,;t t
18268 s,@with_gnu_ld@,$with_gnu_ld,;t t
18269 s,@ld_R_works@,$ld_R_works,;t t
18270 s,@RANLIB@,$RANLIB,;t t
18271 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18272 s,@LORDER@,$LORDER,;t t
18273 s,@TAR@,$TAR,;t t
18274 s,@STRIP@,$STRIP,;t t
18275 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18276 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
18277 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
18278 s,@YACC@,$YACC,;t t
18279 s,@YFLAGS@,$YFLAGS,;t t
18280 s,@PERL@,$PERL,;t t
18281 s,@perl_archlibexp@,$perl_archlibexp,;t t
18282 s,@perl_privlibexp@,$perl_privlibexp,;t t
18283 s,@perl_useshrplib@,$perl_useshrplib,;t t
18284 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
18285 s,@PYTHON@,$PYTHON,;t t
18286 s,@python_prefix@,$python_prefix,;t t
18287 s,@python_execprefix@,$python_execprefix,;t t
18288 s,@python_configdir@,$python_configdir,;t t
18289 s,@python_includespec@,$python_includespec,;t t
18290 s,@python_libspec@,$python_libspec,;t t
18291 s,@LIBOBJS@,$LIBOBJS,;t t
18292 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
18293 s,@THREAD_SUPPORT@,$THREAD_SUPPORT,;t t
18294 s,@THREAD_CPPFLAGS@,$THREAD_CPPFLAGS,;t t
18295 s,@THREAD_LIBS@,$THREAD_LIBS,;t t
18296 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
18297 s,@MSGFMT@,$MSGFMT,;t t
18298 s,@MSGMERGE@,$MSGMERGE,;t t
18299 s,@XGETTEXT@,$XGETTEXT,;t t
18300 s,@localedir@,$localedir,;t t
18301 s,@TCLSH@,$TCLSH,;t t
18302 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
18303 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
18304 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
18305 s,@TCL_LIBS@,$TCL_LIBS,;t t
18306 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
18307 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
18308 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
18309 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
18310 s,@TK_LIBS@,$TK_LIBS,;t t
18311 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
18312 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
18313 s,@NSGMLS@,$NSGMLS,;t t
18314 s,@JADE@,$JADE,;t t
18315 s,@have_docbook@,$have_docbook,;t t
18316 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
18317 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
18318 s,@SGMLSPL@,$SGMLSPL,;t t
18319 s,@vpath_build@,$vpath_build,;t t
18320 CEOF
18321
18322 _ACEOF
18323
18324   cat >>$CONFIG_STATUS <<\_ACEOF
18325   # Split the substitutions into bite-sized pieces for seds with
18326   # small command number limits, like on Digital OSF/1 and HP-UX.
18327   ac_max_sed_lines=48
18328   ac_sed_frag=1 # Number of current file.
18329   ac_beg=1 # First line for current file.
18330   ac_end=$ac_max_sed_lines # Line after last line for current file.
18331   ac_more_lines=:
18332   ac_sed_cmds=
18333   while $ac_more_lines; do
18334     if test $ac_beg -gt 1; then
18335       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18336     else
18337       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18338     fi
18339     if test ! -s $tmp/subs.frag; then
18340       ac_more_lines=false
18341     else
18342       # The purpose of the label and of the branching condition is to
18343       # speed up the sed processing (if there are no `@' at all, there
18344       # is no need to browse any of the substitutions).
18345       # These are the two extra sed commands mentioned above.
18346       (echo ':t
18347   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18348       if test -z "$ac_sed_cmds"; then
18349         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18350       else
18351         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18352       fi
18353       ac_sed_frag=`expr $ac_sed_frag + 1`
18354       ac_beg=$ac_end
18355       ac_end=`expr $ac_end + $ac_max_sed_lines`
18356     fi
18357   done
18358   if test -z "$ac_sed_cmds"; then
18359     ac_sed_cmds=cat
18360   fi
18361 fi # test -n "$CONFIG_FILES"
18362
18363 _ACEOF
18364 cat >>$CONFIG_STATUS <<\_ACEOF
18365 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18366   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18367   case $ac_file in
18368   - | *:- | *:-:* ) # input from stdin
18369         cat >$tmp/stdin
18370         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18371         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18372   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18373         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18374   * )   ac_file_in=$ac_file.in ;;
18375   esac
18376
18377   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18378   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18379 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18380          X"$ac_file" : 'X\(//\)[^/]' \| \
18381          X"$ac_file" : 'X\(//\)$' \| \
18382          X"$ac_file" : 'X\(/\)' \| \
18383          .     : '\(.\)' 2>/dev/null ||
18384 echo X"$ac_file" |
18385     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18386           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18387           /^X\(\/\/\)$/{ s//\1/; q; }
18388           /^X\(\/\).*/{ s//\1/; q; }
18389           s/.*/./; q'`
18390   { case "$ac_dir" in
18391   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18392   *)                      as_incr_dir=.;;
18393 esac
18394 as_dummy="$ac_dir"
18395 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18396   case $as_mkdir_dir in
18397     # Skip DOS drivespec
18398     ?:) as_incr_dir=$as_mkdir_dir ;;
18399     *)
18400       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18401       test -d "$as_incr_dir" ||
18402         mkdir "$as_incr_dir" ||
18403         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18404 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18405    { (exit 1); exit 1; }; }
18406     ;;
18407   esac
18408 done; }
18409
18410   ac_builddir=.
18411
18412 if test "$ac_dir" != .; then
18413   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18414   # A "../" for each directory in $ac_dir_suffix.
18415   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18416 else
18417   ac_dir_suffix= ac_top_builddir=
18418 fi
18419
18420 case $srcdir in
18421   .)  # No --srcdir option.  We are building in place.
18422     ac_srcdir=.
18423     if test -z "$ac_top_builddir"; then
18424        ac_top_srcdir=.
18425     else
18426        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18427     fi ;;
18428   [\\/]* | ?:[\\/]* )  # Absolute path.
18429     ac_srcdir=$srcdir$ac_dir_suffix;
18430     ac_top_srcdir=$srcdir ;;
18431   *) # Relative path.
18432     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18433     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18434 esac
18435 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18436 # absolute.
18437 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18438 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18439 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18440 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18441
18442
18443
18444   if test x"$ac_file" != x-; then
18445     { echo "$as_me:$LINENO: creating $ac_file" >&5
18446 echo "$as_me: creating $ac_file" >&6;}
18447     rm -f "$ac_file"
18448   fi
18449   # Let's still pretend it is `configure' which instantiates (i.e., don't
18450   # use $as_me), people would be surprised to read:
18451   #    /* config.h.  Generated by config.status.  */
18452   if test x"$ac_file" = x-; then
18453     configure_input=
18454   else
18455     configure_input="$ac_file.  "
18456   fi
18457   configure_input=$configure_input"Generated from `echo $ac_file_in |
18458                                      sed 's,.*/,,'` by configure."
18459
18460   # First look for the input files in the build tree, otherwise in the
18461   # src tree.
18462   ac_file_inputs=`IFS=:
18463     for f in $ac_file_in; do
18464       case $f in
18465       -) echo $tmp/stdin ;;
18466       [\\/$]*)
18467          # Absolute (can't be DOS-style, as IFS=:)
18468          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18469 echo "$as_me: error: cannot find input file: $f" >&2;}
18470    { (exit 1); exit 1; }; }
18471          echo $f;;
18472       *) # Relative
18473          if test -f "$f"; then
18474            # Build tree
18475            echo $f
18476          elif test -f "$srcdir/$f"; then
18477            # Source tree
18478            echo $srcdir/$f
18479          else
18480            # /dev/null tree
18481            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18482 echo "$as_me: error: cannot find input file: $f" >&2;}
18483    { (exit 1); exit 1; }; }
18484          fi;;
18485       esac
18486     done` || { (exit 1); exit 1; }
18487 _ACEOF
18488 cat >>$CONFIG_STATUS <<_ACEOF
18489   sed "$ac_vpsub
18490 $extrasub
18491 _ACEOF
18492 cat >>$CONFIG_STATUS <<\_ACEOF
18493 :t
18494 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18495 s,@configure_input@,$configure_input,;t t
18496 s,@srcdir@,$ac_srcdir,;t t
18497 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18498 s,@top_srcdir@,$ac_top_srcdir,;t t
18499 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18500 s,@builddir@,$ac_builddir,;t t
18501 s,@abs_builddir@,$ac_abs_builddir,;t t
18502 s,@top_builddir@,$ac_top_builddir,;t t
18503 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18504 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18505   rm -f $tmp/stdin
18506   if test x"$ac_file" != x-; then
18507     mv $tmp/out $ac_file
18508   else
18509     cat $tmp/out
18510     rm -f $tmp/out
18511   fi
18512
18513 done
18514 _ACEOF
18515 cat >>$CONFIG_STATUS <<\_ACEOF
18516
18517 #
18518 # CONFIG_HEADER section.
18519 #
18520
18521 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18522 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18523 #
18524 # ac_d sets the value in "#define NAME VALUE" lines.
18525 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18526 ac_dB='[        ].*$,\1#\2'
18527 ac_dC=' '
18528 ac_dD=',;t'
18529 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18530 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18531 ac_uB='$,\1#\2define\3'
18532 ac_uC=' '
18533 ac_uD=',;t'
18534
18535 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18536   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18537   case $ac_file in
18538   - | *:- | *:-:* ) # input from stdin
18539         cat >$tmp/stdin
18540         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18541         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18542   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18543         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18544   * )   ac_file_in=$ac_file.in ;;
18545   esac
18546
18547   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18548 echo "$as_me: creating $ac_file" >&6;}
18549
18550   # First look for the input files in the build tree, otherwise in the
18551   # src tree.
18552   ac_file_inputs=`IFS=:
18553     for f in $ac_file_in; do
18554       case $f in
18555       -) echo $tmp/stdin ;;
18556       [\\/$]*)
18557          # Absolute (can't be DOS-style, as IFS=:)
18558          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18559 echo "$as_me: error: cannot find input file: $f" >&2;}
18560    { (exit 1); exit 1; }; }
18561          echo $f;;
18562       *) # Relative
18563          if test -f "$f"; then
18564            # Build tree
18565            echo $f
18566          elif test -f "$srcdir/$f"; then
18567            # Source tree
18568            echo $srcdir/$f
18569          else
18570            # /dev/null tree
18571            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18572 echo "$as_me: error: cannot find input file: $f" >&2;}
18573    { (exit 1); exit 1; }; }
18574          fi;;
18575       esac
18576     done` || { (exit 1); exit 1; }
18577   # Remove the trailing spaces.
18578   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
18579
18580 _ACEOF
18581
18582 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18583 # `conftest.undefs', that substitutes the proper values into
18584 # config.h.in to produce config.h.  The first handles `#define'
18585 # templates, and the second `#undef' templates.
18586 # And first: Protect against being on the right side of a sed subst in
18587 # config.status.  Protect against being in an unquoted here document
18588 # in config.status.
18589 rm -f conftest.defines conftest.undefs
18590 # Using a here document instead of a string reduces the quoting nightmare.
18591 # Putting comments in sed scripts is not portable.
18592 #
18593 # `end' is used to avoid that the second main sed command (meant for
18594 # 0-ary CPP macros) applies to n-ary macro definitions.
18595 # See the Autoconf documentation for `clear'.
18596 cat >confdef2sed.sed <<\_ACEOF
18597 s/[\\&,]/\\&/g
18598 s,[\\$`],\\&,g
18599 t clear
18600 : clear
18601 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18602 t end
18603 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18604 : end
18605 _ACEOF
18606 # If some macros were called several times there might be several times
18607 # the same #defines, which is useless.  Nevertheless, we may not want to
18608 # sort them, since we want the *last* AC-DEFINE to be honored.
18609 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18610 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18611 rm -f confdef2sed.sed
18612
18613 # This sed command replaces #undef with comments.  This is necessary, for
18614 # example, in the case of _POSIX_SOURCE, which is predefined and required
18615 # on some systems where configure will not decide to define it.
18616 cat >>conftest.undefs <<\_ACEOF
18617 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18618 _ACEOF
18619
18620 # Break up conftest.defines because some shells have a limit on the size
18621 # of here documents, and old seds have small limits too (100 cmds).
18622 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18623 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18624 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18625 echo '  :' >>$CONFIG_STATUS
18626 rm -f conftest.tail
18627 while grep . conftest.defines >/dev/null
18628 do
18629   # Write a limited-size here document to $tmp/defines.sed.
18630   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18631   # Speed up: don't consider the non `#define' lines.
18632   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
18633   # Work around the forget-to-reset-the-flag bug.
18634   echo 't clr' >>$CONFIG_STATUS
18635   echo ': clr' >>$CONFIG_STATUS
18636   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18637   echo 'CEOF
18638   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18639   rm -f $tmp/in
18640   mv $tmp/out $tmp/in
18641 ' >>$CONFIG_STATUS
18642   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18643   rm -f conftest.defines
18644   mv conftest.tail conftest.defines
18645 done
18646 rm -f conftest.defines
18647 echo '  fi # egrep' >>$CONFIG_STATUS
18648 echo >>$CONFIG_STATUS
18649
18650 # Break up conftest.undefs because some shells have a limit on the size
18651 # of here documents, and old seds have small limits too (100 cmds).
18652 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18653 rm -f conftest.tail
18654 while grep . conftest.undefs >/dev/null
18655 do
18656   # Write a limited-size here document to $tmp/undefs.sed.
18657   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18658   # Speed up: don't consider the non `#undef'
18659   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18660   # Work around the forget-to-reset-the-flag bug.
18661   echo 't clr' >>$CONFIG_STATUS
18662   echo ': clr' >>$CONFIG_STATUS
18663   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18664   echo 'CEOF
18665   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18666   rm -f $tmp/in
18667   mv $tmp/out $tmp/in
18668 ' >>$CONFIG_STATUS
18669   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18670   rm -f conftest.undefs
18671   mv conftest.tail conftest.undefs
18672 done
18673 rm -f conftest.undefs
18674
18675 cat >>$CONFIG_STATUS <<\_ACEOF
18676   # Let's still pretend it is `configure' which instantiates (i.e., don't
18677   # use $as_me), people would be surprised to read:
18678   #    /* config.h.  Generated by config.status.  */
18679   if test x"$ac_file" = x-; then
18680     echo "/* Generated by configure.  */" >$tmp/config.h
18681   else
18682     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18683   fi
18684   cat $tmp/in >>$tmp/config.h
18685   rm -f $tmp/in
18686   if test x"$ac_file" != x-; then
18687     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18688       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18689 echo "$as_me: $ac_file is unchanged" >&6;}
18690     else
18691       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18692 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18693          X"$ac_file" : 'X\(//\)[^/]' \| \
18694          X"$ac_file" : 'X\(//\)$' \| \
18695          X"$ac_file" : 'X\(/\)' \| \
18696          .     : '\(.\)' 2>/dev/null ||
18697 echo X"$ac_file" |
18698     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18699           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18700           /^X\(\/\/\)$/{ s//\1/; q; }
18701           /^X\(\/\).*/{ s//\1/; q; }
18702           s/.*/./; q'`
18703       { case "$ac_dir" in
18704   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18705   *)                      as_incr_dir=.;;
18706 esac
18707 as_dummy="$ac_dir"
18708 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18709   case $as_mkdir_dir in
18710     # Skip DOS drivespec
18711     ?:) as_incr_dir=$as_mkdir_dir ;;
18712     *)
18713       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18714       test -d "$as_incr_dir" ||
18715         mkdir "$as_incr_dir" ||
18716         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18717 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18718    { (exit 1); exit 1; }; }
18719     ;;
18720   esac
18721 done; }
18722
18723       rm -f $ac_file
18724       mv $tmp/config.h $ac_file
18725     fi
18726   else
18727     cat $tmp/config.h
18728     rm -f $tmp/config.h
18729   fi
18730   # Run the commands associated with the file.
18731   case $ac_file in
18732     src/include/pg_config.h )
18733 # Update timestamp for pg_config.h (see Makefile.global)
18734 echo >src/include/stamp-h
18735  ;;
18736   esac
18737 done
18738 _ACEOF
18739 cat >>$CONFIG_STATUS <<\_ACEOF
18740
18741 #
18742 # CONFIG_LINKS section.
18743 #
18744
18745 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18746   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18747   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18748
18749   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18750 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18751
18752   if test ! -r $srcdir/$ac_source; then
18753     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18754 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18755    { (exit 1); exit 1; }; }
18756   fi
18757   rm -f $ac_dest
18758
18759   # Make relative symlinks.
18760   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18761 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18762          X"$ac_dest" : 'X\(//\)[^/]' \| \
18763          X"$ac_dest" : 'X\(//\)$' \| \
18764          X"$ac_dest" : 'X\(/\)' \| \
18765          .     : '\(.\)' 2>/dev/null ||
18766 echo X"$ac_dest" |
18767     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18768           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18769           /^X\(\/\/\)$/{ s//\1/; q; }
18770           /^X\(\/\).*/{ s//\1/; q; }
18771           s/.*/./; q'`
18772   { case "$ac_dest_dir" in
18773   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18774   *)                      as_incr_dir=.;;
18775 esac
18776 as_dummy="$ac_dest_dir"
18777 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18778   case $as_mkdir_dir in
18779     # Skip DOS drivespec
18780     ?:) as_incr_dir=$as_mkdir_dir ;;
18781     *)
18782       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18783       test -d "$as_incr_dir" ||
18784         mkdir "$as_incr_dir" ||
18785         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18786 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18787    { (exit 1); exit 1; }; }
18788     ;;
18789   esac
18790 done; }
18791
18792   ac_builddir=.
18793
18794 if test "$ac_dest_dir" != .; then
18795   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18796   # A "../" for each directory in $ac_dir_suffix.
18797   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18798 else
18799   ac_dir_suffix= ac_top_builddir=
18800 fi
18801
18802 case $srcdir in
18803   .)  # No --srcdir option.  We are building in place.
18804     ac_srcdir=.
18805     if test -z "$ac_top_builddir"; then
18806        ac_top_srcdir=.
18807     else
18808        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18809     fi ;;
18810   [\\/]* | ?:[\\/]* )  # Absolute path.
18811     ac_srcdir=$srcdir$ac_dir_suffix;
18812     ac_top_srcdir=$srcdir ;;
18813   *) # Relative path.
18814     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18815     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18816 esac
18817 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18818 # absolute.
18819 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18820 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18821 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18822 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18823
18824
18825   case $srcdir in
18826   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18827       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18828   esac
18829
18830   # Make a symlink if possible; otherwise try a hard link.
18831   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18832     ln $srcdir/$ac_source $ac_dest ||
18833     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18834 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18835    { (exit 1); exit 1; }; }
18836 done
18837 _ACEOF
18838
18839 cat >>$CONFIG_STATUS <<\_ACEOF
18840
18841 { (exit 0); exit 0; }
18842 _ACEOF
18843 chmod +x $CONFIG_STATUS
18844 ac_clean_files=$ac_clean_files_save
18845
18846
18847 # configure is writing to config.log, and then calls config.status.
18848 # config.status does its own redirection, appending to config.log.
18849 # Unfortunately, on DOS this fails, as config.log is still kept open
18850 # by configure, so config.status won't be able to write to it; its
18851 # output is simply discarded.  So we exec the FD to /dev/null,
18852 # effectively closing config.log, so it can be properly (re)opened and
18853 # appended to by config.status.  When coming back to configure, we
18854 # need to make the FD available again.
18855 if test "$no_create" != yes; then
18856   ac_cs_success=:
18857   exec 5>/dev/null
18858   $SHELL $CONFIG_STATUS || ac_cs_success=false
18859   exec 5>>config.log
18860   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18861   # would make configure fail if this is the last instruction.
18862   $ac_cs_success || { (exit 1); exit 1; }
18863 fi
18864