]> granicus.if.org Git - postgresql/blob - configure
Remove possibility to specify an installation root after --with-krbx and
[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 # Pick right test-and-set (TAS) code.  Most platforms have inline
1452 # assembler code in src/include/storage/s_lock.h, so we just use
1453 # a dummy file here.
1454 case $host in
1455   hppa*-*-hpux*)        need_tas=yes; tas_file=hpux_hppa.s ;;
1456   sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1457   i?86-*-solaris*)   need_tas=yes; tas_file=solaris_i386.s ;;
1458   *)                need_tas=no;  tas_file=dummy.s ;;
1459 esac
1460 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1461
1462
1463 if test "$need_tas" = yes ; then
1464   TAS=tas.o
1465 fi
1466
1467
1468
1469
1470 ##
1471 ## Command line options
1472 ##
1473
1474 #
1475 # Installation directory for documentation
1476 #
1477
1478
1479
1480 # Check whether --with-docdir or --without-docdir was given.
1481 if test "${with_docdir+set}" = set; then
1482   withval="$with_docdir"
1483
1484   case $withval in
1485     yes)
1486       { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1487 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1488    { (exit 1); exit 1; }; }
1489       ;;
1490     no)
1491       docdir=
1492       ;;
1493     *)
1494       docdir=$withval
1495       ;;
1496   esac
1497
1498 else
1499   docdir='${prefix}/doc'
1500 fi;
1501
1502
1503
1504
1505 #
1506 # Add non-standard directories to the include path
1507 #
1508
1509
1510
1511 # Check whether --with-includes or --without-includes was given.
1512 if test "${with_includes+set}" = set; then
1513   withval="$with_includes"
1514
1515   case $withval in
1516     yes)
1517       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1518 echo "$as_me: error: argument required for --with-includes option" >&2;}
1519    { (exit 1); exit 1; }; }
1520       ;;
1521     no)
1522       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1523 echo "$as_me: error: argument required for --with-includes option" >&2;}
1524    { (exit 1); exit 1; }; }
1525       ;;
1526     *)
1527
1528       ;;
1529   esac
1530
1531 fi;
1532
1533
1534
1535 #
1536 # Add non-standard directories to the library search path
1537 #
1538
1539
1540
1541 # Check whether --with-libraries or --without-libraries was given.
1542 if test "${with_libraries+set}" = set; then
1543   withval="$with_libraries"
1544
1545   case $withval in
1546     yes)
1547       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1548 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1549    { (exit 1); exit 1; }; }
1550       ;;
1551     no)
1552       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1553 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1554    { (exit 1); exit 1; }; }
1555       ;;
1556     *)
1557       LIBRARY_DIRS=$withval
1558       ;;
1559   esac
1560
1561 fi;
1562
1563
1564
1565
1566
1567 # Check whether --with-libs or --without-libs was given.
1568 if test "${with_libs+set}" = set; then
1569   withval="$with_libs"
1570
1571   case $withval in
1572     yes)
1573       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1574 echo "$as_me: error: argument required for --with-libs option" >&2;}
1575    { (exit 1); exit 1; }; }
1576       ;;
1577     no)
1578       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1579 echo "$as_me: error: argument required for --with-libs option" >&2;}
1580    { (exit 1); exit 1; }; }
1581       ;;
1582     *)
1583       LIBRARY_DIRS=$withval
1584       ;;
1585   esac
1586
1587 fi;
1588
1589
1590
1591 #
1592 # 64-bit integer date/time storage (--enable-integer-datetimes)
1593 #
1594 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1595 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1596
1597
1598 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1599 if test "${enable_integer_datetimes+set}" = set; then
1600   enableval="$enable_integer_datetimes"
1601
1602   case $enableval in
1603     yes)
1604
1605 cat >>confdefs.h <<\_ACEOF
1606 #define USE_INTEGER_DATETIMES 1
1607 _ACEOF
1608
1609       ;;
1610     no)
1611       :
1612       ;;
1613     *)
1614       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1615 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1616    { (exit 1); exit 1; }; }
1617       ;;
1618   esac
1619
1620 else
1621   enable_integer_datetimes=no
1622
1623 fi;
1624
1625 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1626 echo "${ECHO_T}$enable_integer_datetimes" >&6
1627
1628
1629 #
1630 # NLS
1631 #
1632 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1633 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1634
1635
1636 # Check whether --enable-nls or --disable-nls was given.
1637 if test "${enable_nls+set}" = set; then
1638   enableval="$enable_nls"
1639
1640   case $enableval in
1641     yes)
1642       :
1643       ;;
1644     no)
1645       :
1646       ;;
1647     *)
1648       enable_nls=yes
1649 WANTED_LANGUAGES=$enableval
1650       ;;
1651   esac
1652
1653 else
1654   enable_nls=no
1655 fi;
1656
1657
1658 if test "$enable_nls" = yes; then
1659
1660 cat >>confdefs.h <<\_ACEOF
1661 #define ENABLE_NLS 1
1662 _ACEOF
1663
1664 fi
1665
1666 echo "$as_me:$LINENO: result: $enable_nls" >&5
1667 echo "${ECHO_T}$enable_nls" >&6
1668
1669
1670
1671 #
1672 # Default port number (--with-pgport), default 5432
1673 #
1674 echo "$as_me:$LINENO: checking for default port number" >&5
1675 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1676
1677
1678
1679 # Check whether --with-pgport or --without-pgport was given.
1680 if test "${with_pgport+set}" = set; then
1681   withval="$with_pgport"
1682
1683   case $withval in
1684     yes)
1685       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1686 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1687    { (exit 1); exit 1; }; }
1688       ;;
1689     no)
1690       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1691 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1692    { (exit 1); exit 1; }; }
1693       ;;
1694     *)
1695       default_port=$withval
1696       ;;
1697   esac
1698
1699 else
1700   default_port=5432
1701 fi;
1702
1703 echo "$as_me:$LINENO: result: $default_port" >&5
1704 echo "${ECHO_T}$default_port" >&6
1705 # Need both of these because some places want an integer and some a string
1706
1707 cat >>confdefs.h <<_ACEOF
1708 #define DEF_PGPORT ${default_port}
1709 _ACEOF
1710
1711
1712 cat >>confdefs.h <<_ACEOF
1713 #define DEF_PGPORT_STR "${default_port}"
1714 _ACEOF
1715
1716
1717
1718 #
1719 # Option to disable shared libraries
1720 #
1721
1722
1723 # Check whether --enable-shared or --disable-shared was given.
1724 if test "${enable_shared+set}" = set; then
1725   enableval="$enable_shared"
1726
1727   case $enableval in
1728     yes)
1729       :
1730       ;;
1731     no)
1732       :
1733       ;;
1734     *)
1735       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1736 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1737    { (exit 1); exit 1; }; }
1738       ;;
1739   esac
1740
1741 else
1742   enable_shared=yes
1743
1744 fi;
1745
1746
1747
1748 #
1749 # '-rpath'-like feature can be disabled
1750 #
1751
1752
1753 # Check whether --enable-rpath or --disable-rpath was given.
1754 if test "${enable_rpath+set}" = set; then
1755   enableval="$enable_rpath"
1756
1757   case $enableval in
1758     yes)
1759       :
1760       ;;
1761     no)
1762       :
1763       ;;
1764     *)
1765       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1766 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1767    { (exit 1); exit 1; }; }
1768       ;;
1769   esac
1770
1771 else
1772   enable_rpath=yes
1773
1774 fi;
1775
1776
1777
1778 #
1779 # Spinlocks
1780 #
1781
1782
1783 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1784 if test "${enable_spinlocks+set}" = set; then
1785   enableval="$enable_spinlocks"
1786
1787   case $enableval in
1788     yes)
1789       :
1790       ;;
1791     no)
1792       :
1793       ;;
1794     *)
1795       { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1796 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1797    { (exit 1); exit 1; }; }
1798       ;;
1799   esac
1800
1801 else
1802   enable_spinlocks=yes
1803
1804 fi;
1805
1806
1807 #
1808 # --enable-debug adds -g to compiler flags
1809 #
1810
1811
1812 # Check whether --enable-debug or --disable-debug was given.
1813 if test "${enable_debug+set}" = set; then
1814   enableval="$enable_debug"
1815
1816   case $enableval in
1817     yes)
1818       :
1819       ;;
1820     no)
1821       :
1822       ;;
1823     *)
1824       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1825 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1826    { (exit 1); exit 1; }; }
1827       ;;
1828   esac
1829
1830 else
1831   enable_debug=no
1832
1833 fi;
1834
1835
1836
1837 #
1838 # C compiler
1839 #
1840
1841 # For historical reasons you can also use --with-CC to specify the C compiler
1842 # to use, although the standard way to do this is to set the CC environment
1843 # variable.
1844
1845
1846
1847 # Check whether --with-CC or --without-CC was given.
1848 if test "${with_CC+set}" = set; then
1849   withval="$with_CC"
1850
1851   case $withval in
1852     yes)
1853       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1854 echo "$as_me: error: argument required for --with-CC option" >&2;}
1855    { (exit 1); exit 1; }; }
1856       ;;
1857     no)
1858       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1859 echo "$as_me: error: argument required for --with-CC option" >&2;}
1860    { (exit 1); exit 1; }; }
1861       ;;
1862     *)
1863       CC=$with_CC
1864       ;;
1865   esac
1866
1867 fi;
1868
1869
1870 case $template in
1871   aix) pgac_cc_list="gcc xlc";;
1872  irix) pgac_cc_list="cc";; # no gcc
1873     *) pgac_cc_list="gcc cc";;
1874 esac
1875
1876 ac_ext=c
1877 ac_cpp='$CPP $CPPFLAGS'
1878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1881 if test -n "$ac_tool_prefix"; then
1882   for ac_prog in $pgac_cc_list
1883   do
1884     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1885 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1886 echo "$as_me:$LINENO: checking for $ac_word" >&5
1887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888 if test "${ac_cv_prog_CC+set}" = set; then
1889   echo $ECHO_N "(cached) $ECHO_C" >&6
1890 else
1891   if test -n "$CC"; then
1892   ac_cv_prog_CC="$CC" # Let the user override the test.
1893 else
1894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 for as_dir in $PATH
1896 do
1897   IFS=$as_save_IFS
1898   test -z "$as_dir" && as_dir=.
1899   for ac_exec_ext in '' $ac_executable_extensions; do
1900   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903     break 2
1904   fi
1905 done
1906 done
1907
1908 fi
1909 fi
1910 CC=$ac_cv_prog_CC
1911 if test -n "$CC"; then
1912   echo "$as_me:$LINENO: result: $CC" >&5
1913 echo "${ECHO_T}$CC" >&6
1914 else
1915   echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1917 fi
1918
1919     test -n "$CC" && break
1920   done
1921 fi
1922 if test -z "$CC"; then
1923   ac_ct_CC=$CC
1924   for ac_prog in $pgac_cc_list
1925 do
1926   # Extract the first word of "$ac_prog", so it can be a program name with args.
1927 set dummy $ac_prog; ac_word=$2
1928 echo "$as_me:$LINENO: checking for $ac_word" >&5
1929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1930 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1931   echo $ECHO_N "(cached) $ECHO_C" >&6
1932 else
1933   if test -n "$ac_ct_CC"; then
1934   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1935 else
1936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1937 for as_dir in $PATH
1938 do
1939   IFS=$as_save_IFS
1940   test -z "$as_dir" && as_dir=.
1941   for ac_exec_ext in '' $ac_executable_extensions; do
1942   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1943     ac_cv_prog_ac_ct_CC="$ac_prog"
1944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945     break 2
1946   fi
1947 done
1948 done
1949
1950 fi
1951 fi
1952 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1953 if test -n "$ac_ct_CC"; then
1954   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1955 echo "${ECHO_T}$ac_ct_CC" >&6
1956 else
1957   echo "$as_me:$LINENO: result: no" >&5
1958 echo "${ECHO_T}no" >&6
1959 fi
1960
1961   test -n "$ac_ct_CC" && break
1962 done
1963
1964   CC=$ac_ct_CC
1965 fi
1966
1967
1968 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1969 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1970    { (exit 1); exit 1; }; }
1971
1972 # Provide some information about the compiler.
1973 echo "$as_me:$LINENO:" \
1974      "checking for C compiler version" >&5
1975 ac_compiler=`set X $ac_compile; echo $2`
1976 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1977   (eval $ac_compiler --version </dev/null >&5) 2>&5
1978   ac_status=$?
1979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980   (exit $ac_status); }
1981 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1982   (eval $ac_compiler -v </dev/null >&5) 2>&5
1983   ac_status=$?
1984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985   (exit $ac_status); }
1986 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1987   (eval $ac_compiler -V </dev/null >&5) 2>&5
1988   ac_status=$?
1989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990   (exit $ac_status); }
1991
1992 cat >conftest.$ac_ext <<_ACEOF
1993 #line $LINENO "configure"
1994 #include "confdefs.h"
1995
1996 #ifdef F77_DUMMY_MAIN
1997 #  ifdef __cplusplus
1998      extern "C"
1999 #  endif
2000    int F77_DUMMY_MAIN() { return 1; }
2001 #endif
2002 int
2003 main ()
2004 {
2005
2006   ;
2007   return 0;
2008 }
2009 _ACEOF
2010 ac_clean_files_save=$ac_clean_files
2011 ac_clean_files="$ac_clean_files a.out a.exe"
2012 # Try to create an executable without -o first, disregard a.out.
2013 # It will help us diagnose broken compilers, and finding out an intuition
2014 # of exeext.
2015 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2016 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2017 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2018 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2019   (eval $ac_link_default) 2>&5
2020   ac_status=$?
2021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022   (exit $ac_status); }; then
2023   # Find the output, starting from the most likely.  This scheme is
2024 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2025 # resort.
2026
2027 # Be careful to initialize this variable, since it used to be cached.
2028 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2029 ac_cv_exeext=
2030 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2031                 ls a.out conftest 2>/dev/null;
2032                 ls a.* conftest.* 2>/dev/null`; do
2033   case $ac_file in
2034     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2035     a.out ) # We found the default executable, but exeext='' is most
2036             # certainly right.
2037             break;;
2038     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2039           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2040           export ac_cv_exeext
2041           break;;
2042     * ) break;;
2043   esac
2044 done
2045 else
2046   echo "$as_me: failed program was:" >&5
2047 cat conftest.$ac_ext >&5
2048 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2049 echo "$as_me: error: C compiler cannot create executables" >&2;}
2050    { (exit 77); exit 77; }; }
2051 fi
2052
2053 ac_exeext=$ac_cv_exeext
2054 echo "$as_me:$LINENO: result: $ac_file" >&5
2055 echo "${ECHO_T}$ac_file" >&6
2056
2057 # Check the compiler produces executables we can run.  If not, either
2058 # the compiler is broken, or we cross compile.
2059 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2060 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2061 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2062 # If not cross compiling, check that we can run a simple program.
2063 if test "$cross_compiling" != yes; then
2064   if { ac_try='./$ac_file'
2065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066   (eval $ac_try) 2>&5
2067   ac_status=$?
2068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069   (exit $ac_status); }; }; then
2070     cross_compiling=no
2071   else
2072     if test "$cross_compiling" = maybe; then
2073         cross_compiling=yes
2074     else
2075         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2076 If you meant to cross compile, use \`--host'." >&5
2077 echo "$as_me: error: cannot run C compiled programs.
2078 If you meant to cross compile, use \`--host'." >&2;}
2079    { (exit 1); exit 1; }; }
2080     fi
2081   fi
2082 fi
2083 echo "$as_me:$LINENO: result: yes" >&5
2084 echo "${ECHO_T}yes" >&6
2085
2086 rm -f a.out a.exe conftest$ac_cv_exeext
2087 ac_clean_files=$ac_clean_files_save
2088 # Check the compiler produces executables we can run.  If not, either
2089 # the compiler is broken, or we cross compile.
2090 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2091 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2092 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2093 echo "${ECHO_T}$cross_compiling" >&6
2094
2095 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2096 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2098   (eval $ac_link) 2>&5
2099   ac_status=$?
2100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101   (exit $ac_status); }; then
2102   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2103 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2104 # work properly (i.e., refer to `conftest.exe'), while it won't with
2105 # `rm'.
2106 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2107   case $ac_file in
2108     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2109     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2110           export ac_cv_exeext
2111           break;;
2112     * ) break;;
2113   esac
2114 done
2115 else
2116   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2117 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2118    { (exit 1); exit 1; }; }
2119 fi
2120
2121 rm -f conftest$ac_cv_exeext
2122 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2123 echo "${ECHO_T}$ac_cv_exeext" >&6
2124
2125 rm -f conftest.$ac_ext
2126 EXEEXT=$ac_cv_exeext
2127 ac_exeext=$EXEEXT
2128 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2129 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2130 if test "${ac_cv_objext+set}" = set; then
2131   echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133   cat >conftest.$ac_ext <<_ACEOF
2134 #line $LINENO "configure"
2135 #include "confdefs.h"
2136
2137 #ifdef F77_DUMMY_MAIN
2138 #  ifdef __cplusplus
2139      extern "C"
2140 #  endif
2141    int F77_DUMMY_MAIN() { return 1; }
2142 #endif
2143 int
2144 main ()
2145 {
2146
2147   ;
2148   return 0;
2149 }
2150 _ACEOF
2151 rm -f conftest.o conftest.obj
2152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153   (eval $ac_compile) 2>&5
2154   ac_status=$?
2155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156   (exit $ac_status); }; then
2157   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2158   case $ac_file in
2159     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2160     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2161        break;;
2162   esac
2163 done
2164 else
2165   echo "$as_me: failed program was:" >&5
2166 cat conftest.$ac_ext >&5
2167 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2168 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2169    { (exit 1); exit 1; }; }
2170 fi
2171
2172 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2173 fi
2174 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2175 echo "${ECHO_T}$ac_cv_objext" >&6
2176 OBJEXT=$ac_cv_objext
2177 ac_objext=$OBJEXT
2178 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2179 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2180 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2181   echo $ECHO_N "(cached) $ECHO_C" >&6
2182 else
2183   cat >conftest.$ac_ext <<_ACEOF
2184 #line $LINENO "configure"
2185 #include "confdefs.h"
2186
2187 #ifdef F77_DUMMY_MAIN
2188 #  ifdef __cplusplus
2189      extern "C"
2190 #  endif
2191    int F77_DUMMY_MAIN() { return 1; }
2192 #endif
2193 int
2194 main ()
2195 {
2196 #ifndef __GNUC__
2197        choke me
2198 #endif
2199
2200   ;
2201   return 0;
2202 }
2203 _ACEOF
2204 rm -f conftest.$ac_objext
2205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2206   (eval $ac_compile) 2>&5
2207   ac_status=$?
2208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209   (exit $ac_status); } &&
2210          { ac_try='test -s conftest.$ac_objext'
2211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212   (eval $ac_try) 2>&5
2213   ac_status=$?
2214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215   (exit $ac_status); }; }; then
2216   ac_compiler_gnu=yes
2217 else
2218   echo "$as_me: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2220 ac_compiler_gnu=no
2221 fi
2222 rm -f conftest.$ac_objext conftest.$ac_ext
2223 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2224
2225 fi
2226 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2227 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2228 GCC=`test $ac_compiler_gnu = yes && echo yes`
2229 ac_test_CFLAGS=${CFLAGS+set}
2230 ac_save_CFLAGS=$CFLAGS
2231 CFLAGS="-g"
2232 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2233 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2234 if test "${ac_cv_prog_cc_g+set}" = set; then
2235   echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237   cat >conftest.$ac_ext <<_ACEOF
2238 #line $LINENO "configure"
2239 #include "confdefs.h"
2240
2241 #ifdef F77_DUMMY_MAIN
2242 #  ifdef __cplusplus
2243      extern "C"
2244 #  endif
2245    int F77_DUMMY_MAIN() { return 1; }
2246 #endif
2247 int
2248 main ()
2249 {
2250
2251   ;
2252   return 0;
2253 }
2254 _ACEOF
2255 rm -f conftest.$ac_objext
2256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2257   (eval $ac_compile) 2>&5
2258   ac_status=$?
2259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260   (exit $ac_status); } &&
2261          { ac_try='test -s conftest.$ac_objext'
2262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263   (eval $ac_try) 2>&5
2264   ac_status=$?
2265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); }; }; then
2267   ac_cv_prog_cc_g=yes
2268 else
2269   echo "$as_me: failed program was:" >&5
2270 cat conftest.$ac_ext >&5
2271 ac_cv_prog_cc_g=no
2272 fi
2273 rm -f conftest.$ac_objext conftest.$ac_ext
2274 fi
2275 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2276 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2277 if test "$ac_test_CFLAGS" = set; then
2278   CFLAGS=$ac_save_CFLAGS
2279 elif test $ac_cv_prog_cc_g = yes; then
2280   if test "$GCC" = yes; then
2281     CFLAGS="-g -O2"
2282   else
2283     CFLAGS="-g"
2284   fi
2285 else
2286   if test "$GCC" = yes; then
2287     CFLAGS="-O2"
2288   else
2289     CFLAGS=
2290   fi
2291 fi
2292 # Some people use a C++ compiler to compile C.  Since we use `exit',
2293 # in C++ we need to declare it.  In case someone uses the same compiler
2294 # for both compiling C and C++ we need to have the C++ compiler decide
2295 # the declaration of exit, since it's the most demanding environment.
2296 cat >conftest.$ac_ext <<_ACEOF
2297 #ifndef __cplusplus
2298   choke me
2299 #endif
2300 _ACEOF
2301 rm -f conftest.$ac_objext
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303   (eval $ac_compile) 2>&5
2304   ac_status=$?
2305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306   (exit $ac_status); } &&
2307          { ac_try='test -s conftest.$ac_objext'
2308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309   (eval $ac_try) 2>&5
2310   ac_status=$?
2311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312   (exit $ac_status); }; }; then
2313   for ac_declaration in \
2314    ''\
2315    '#include <stdlib.h>' \
2316    'extern "C" void std::exit (int) throw (); using std::exit;' \
2317    'extern "C" void std::exit (int); using std::exit;' \
2318    'extern "C" void exit (int) throw ();' \
2319    'extern "C" void exit (int);' \
2320    'void exit (int);'
2321 do
2322   cat >conftest.$ac_ext <<_ACEOF
2323 #line $LINENO "configure"
2324 #include "confdefs.h"
2325 #include <stdlib.h>
2326 $ac_declaration
2327 #ifdef F77_DUMMY_MAIN
2328 #  ifdef __cplusplus
2329      extern "C"
2330 #  endif
2331    int F77_DUMMY_MAIN() { return 1; }
2332 #endif
2333 int
2334 main ()
2335 {
2336 exit (42);
2337   ;
2338   return 0;
2339 }
2340 _ACEOF
2341 rm -f conftest.$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343   (eval $ac_compile) 2>&5
2344   ac_status=$?
2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346   (exit $ac_status); } &&
2347          { ac_try='test -s conftest.$ac_objext'
2348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349   (eval $ac_try) 2>&5
2350   ac_status=$?
2351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352   (exit $ac_status); }; }; then
2353   :
2354 else
2355   echo "$as_me: failed program was:" >&5
2356 cat conftest.$ac_ext >&5
2357 continue
2358 fi
2359 rm -f conftest.$ac_objext conftest.$ac_ext
2360   cat >conftest.$ac_ext <<_ACEOF
2361 #line $LINENO "configure"
2362 #include "confdefs.h"
2363 $ac_declaration
2364 #ifdef F77_DUMMY_MAIN
2365 #  ifdef __cplusplus
2366      extern "C"
2367 #  endif
2368    int F77_DUMMY_MAIN() { return 1; }
2369 #endif
2370 int
2371 main ()
2372 {
2373 exit (42);
2374   ;
2375   return 0;
2376 }
2377 _ACEOF
2378 rm -f conftest.$ac_objext
2379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2380   (eval $ac_compile) 2>&5
2381   ac_status=$?
2382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383   (exit $ac_status); } &&
2384          { ac_try='test -s conftest.$ac_objext'
2385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386   (eval $ac_try) 2>&5
2387   ac_status=$?
2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); }; }; then
2390   break
2391 else
2392   echo "$as_me: failed program was:" >&5
2393 cat conftest.$ac_ext >&5
2394 fi
2395 rm -f conftest.$ac_objext conftest.$ac_ext
2396 done
2397 rm -f conftest*
2398 if test -n "$ac_declaration"; then
2399   echo '#ifdef __cplusplus' >>confdefs.h
2400   echo $ac_declaration      >>confdefs.h
2401   echo '#endif'             >>confdefs.h
2402 fi
2403
2404 else
2405   echo "$as_me: failed program was:" >&5
2406 cat conftest.$ac_ext >&5
2407 fi
2408 rm -f conftest.$ac_objext conftest.$ac_ext
2409 ac_ext=c
2410 ac_cpp='$CPP $CPPFLAGS'
2411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2414
2415
2416 unset CFLAGS
2417
2418 #
2419 # Read the template
2420 #
2421 . "$srcdir/src/template/$template" || exit
2422
2423 # CFLAGS are selected so:
2424 # If the user specifies something in the environment, that is used.
2425 # else:  If the template file set something, that is used.
2426 # else:  If the compiler is GCC, then we use -O2.
2427 # else:  If the compiler is something else, then we use -0.
2428
2429 if test "$ac_env_CFLAGS_set" = set; then
2430   CFLAGS=$ac_env_CFLAGS_value
2431 elif test "${CFLAGS+set}" = set; then
2432   : # (keep what template set)
2433 elif test "$GCC" = yes; then
2434   CFLAGS="-O2"
2435 else
2436   # if the user selected debug mode, don't use -O
2437   if test "$enable_debug" != yes; then
2438     CFLAGS="-O"
2439   fi
2440 fi
2441
2442 # Need to specify -fno-strict-aliasing too in case it's gcc 3.3 or later.
2443 echo "$as_me:$LINENO: checking how to turn off strict aliasing in $CC" >&5
2444 echo $ECHO_N "checking how to turn off strict aliasing in $CC... $ECHO_C" >&6
2445 if test "${pgac_cv_prog_cc_no_strict_aliasing+set}" = set; then
2446   echo $ECHO_N "(cached) $ECHO_C" >&6
2447 else
2448   pgac_save_CFLAGS=$CFLAGS
2449 if test "$GCC" = yes; then
2450   pgac_try="-fno-strict-aliasing"
2451 else
2452   # Maybe fill in later...
2453   pgac_try=
2454 fi
2455
2456 for pgac_flag in $pgac_try; do
2457   CFLAGS="$pgac_save_CFLAGS $pgac_flag"
2458   cat >conftest.$ac_ext <<_ACEOF
2459 #line $LINENO "configure"
2460 #include "confdefs.h"
2461
2462 #ifdef F77_DUMMY_MAIN
2463 #  ifdef __cplusplus
2464      extern "C"
2465 #  endif
2466    int F77_DUMMY_MAIN() { return 1; }
2467 #endif
2468 int
2469 main ()
2470 {
2471
2472   ;
2473   return 0;
2474 }
2475 _ACEOF
2476 rm -f conftest.$ac_objext
2477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478   (eval $ac_compile) 2>&5
2479   ac_status=$?
2480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481   (exit $ac_status); } &&
2482          { ac_try='test -s conftest.$ac_objext'
2483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484   (eval $ac_try) 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }; }; then
2488   pgac_cv_prog_cc_no_strict_aliasing=$pgac_try
2489 break
2490 else
2491   echo "$as_me: failed program was:" >&5
2492 cat conftest.$ac_ext >&5
2493 fi
2494 rm -f conftest.$ac_objext conftest.$ac_ext
2495 done
2496
2497 CFLAGS=$pgac_save_CFLAGS
2498
2499 fi
2500 echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_no_strict_aliasing" >&5
2501 echo "${ECHO_T}$pgac_cv_prog_cc_no_strict_aliasing" >&6
2502
2503 if test "$ac_env_CFLAGS_set" != set; then
2504   CFLAGS="$CFLAGS $pgac_cv_prog_cc_no_strict_aliasing"
2505 fi
2506
2507 # supply -g if --enable-debug
2508 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2509   CFLAGS="$CFLAGS -g"
2510 fi
2511
2512 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2513 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2514
2515 # We already have this in Makefile.win32, but configure needs it too
2516 if test "$PORTNAME" = "win32"; then
2517   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32"
2518 fi
2519
2520 # Check if the compiler still works with the template settings
2521 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2522 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2523
2524 cat >conftest.$ac_ext <<_ACEOF
2525 #line $LINENO "configure"
2526 #include "confdefs.h"
2527
2528 #ifdef F77_DUMMY_MAIN
2529 #  ifdef __cplusplus
2530      extern "C"
2531 #  endif
2532    int F77_DUMMY_MAIN() { return 1; }
2533 #endif
2534 int
2535 main ()
2536 {
2537 return 0;
2538   ;
2539   return 0;
2540 }
2541 _ACEOF
2542 rm -f conftest.$ac_objext conftest$ac_exeext
2543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2544   (eval $ac_link) 2>&5
2545   ac_status=$?
2546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547   (exit $ac_status); } &&
2548          { ac_try='test -s conftest$ac_exeext'
2549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2550   (eval $ac_try) 2>&5
2551   ac_status=$?
2552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553   (exit $ac_status); }; }; then
2554   echo "$as_me:$LINENO: result: yes" >&5
2555 echo "${ECHO_T}yes" >&6
2556 else
2557   echo "$as_me: failed program was:" >&5
2558 cat conftest.$ac_ext >&5
2559 echo "$as_me:$LINENO: result: no" >&5
2560 echo "${ECHO_T}no" >&6
2561    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2562 echo "$as_me: error: cannot proceed" >&2;}
2563    { (exit 1); exit 1; }; }
2564 fi
2565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2566
2567 # Defend against gcc -ffast-math
2568 if test "$GCC" = yes; then
2569 cat >conftest.$ac_ext <<_ACEOF
2570 #line $LINENO "configure"
2571 #include "confdefs.h"
2572
2573 #ifdef F77_DUMMY_MAIN
2574 #  ifdef __cplusplus
2575      extern "C"
2576 #  endif
2577    int F77_DUMMY_MAIN() { return 1; }
2578 #endif
2579 int
2580 main ()
2581 {
2582 #ifdef __FAST_MATH__
2583 choke me
2584 #endif
2585   ;
2586   return 0;
2587 }
2588 _ACEOF
2589 rm -f conftest.$ac_objext
2590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591   (eval $ac_compile) 2>&5
2592   ac_status=$?
2593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594   (exit $ac_status); } &&
2595          { ac_try='test -s conftest.$ac_objext'
2596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597   (eval $ac_try) 2>&5
2598   ac_status=$?
2599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600   (exit $ac_status); }; }; then
2601   :
2602 else
2603   echo "$as_me: failed program was:" >&5
2604 cat conftest.$ac_ext >&5
2605 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2606 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2607    { (exit 1); exit 1; }; }
2608 fi
2609 rm -f conftest.$ac_objext conftest.$ac_ext
2610 fi
2611
2612 ac_ext=c
2613 ac_cpp='$CPP $CPPFLAGS'
2614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2617 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2618 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2619 # On Suns, sometimes $CPP names a directory.
2620 if test -n "$CPP" && test -d "$CPP"; then
2621   CPP=
2622 fi
2623 if test -z "$CPP"; then
2624   if test "${ac_cv_prog_CPP+set}" = set; then
2625   echo $ECHO_N "(cached) $ECHO_C" >&6
2626 else
2627       # Double quotes because CPP needs to be expanded
2628     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2629     do
2630       ac_preproc_ok=false
2631 for ac_c_preproc_warn_flag in '' yes
2632 do
2633   # Use a header file that comes with gcc, so configuring glibc
2634   # with a fresh cross-compiler works.
2635   # On the NeXT, cc -E runs the code through the compiler's parser,
2636   # not just through cpp. "Syntax error" is here to catch this case.
2637   cat >conftest.$ac_ext <<_ACEOF
2638 #line $LINENO "configure"
2639 #include "confdefs.h"
2640 #include <assert.h>
2641                      Syntax error
2642 _ACEOF
2643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2644   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2645   ac_status=$?
2646   egrep -v '^ *\+' conftest.er1 >conftest.err
2647   rm -f conftest.er1
2648   cat conftest.err >&5
2649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650   (exit $ac_status); } >/dev/null; then
2651   if test -s conftest.err; then
2652     ac_cpp_err=$ac_c_preproc_warn_flag
2653   else
2654     ac_cpp_err=
2655   fi
2656 else
2657   ac_cpp_err=yes
2658 fi
2659 if test -z "$ac_cpp_err"; then
2660   :
2661 else
2662   echo "$as_me: failed program was:" >&5
2663   cat conftest.$ac_ext >&5
2664   # Broken: fails on valid input.
2665 continue
2666 fi
2667 rm -f conftest.err conftest.$ac_ext
2668
2669   # OK, works on sane cases.  Now check whether non-existent headers
2670   # can be detected and how.
2671   cat >conftest.$ac_ext <<_ACEOF
2672 #line $LINENO "configure"
2673 #include "confdefs.h"
2674 #include <ac_nonexistent.h>
2675 _ACEOF
2676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2677   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2678   ac_status=$?
2679   egrep -v '^ *\+' conftest.er1 >conftest.err
2680   rm -f conftest.er1
2681   cat conftest.err >&5
2682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683   (exit $ac_status); } >/dev/null; then
2684   if test -s conftest.err; then
2685     ac_cpp_err=$ac_c_preproc_warn_flag
2686   else
2687     ac_cpp_err=
2688   fi
2689 else
2690   ac_cpp_err=yes
2691 fi
2692 if test -z "$ac_cpp_err"; then
2693   # Broken: success on invalid input.
2694 continue
2695 else
2696   echo "$as_me: failed program was:" >&5
2697   cat conftest.$ac_ext >&5
2698   # Passes both tests.
2699 ac_preproc_ok=:
2700 break
2701 fi
2702 rm -f conftest.err conftest.$ac_ext
2703
2704 done
2705 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2706 rm -f conftest.err conftest.$ac_ext
2707 if $ac_preproc_ok; then
2708   break
2709 fi
2710
2711     done
2712     ac_cv_prog_CPP=$CPP
2713
2714 fi
2715   CPP=$ac_cv_prog_CPP
2716 else
2717   ac_cv_prog_CPP=$CPP
2718 fi
2719 echo "$as_me:$LINENO: result: $CPP" >&5
2720 echo "${ECHO_T}$CPP" >&6
2721 ac_preproc_ok=false
2722 for ac_c_preproc_warn_flag in '' yes
2723 do
2724   # Use a header file that comes with gcc, so configuring glibc
2725   # with a fresh cross-compiler works.
2726   # On the NeXT, cc -E runs the code through the compiler's parser,
2727   # not just through cpp. "Syntax error" is here to catch this case.
2728   cat >conftest.$ac_ext <<_ACEOF
2729 #line $LINENO "configure"
2730 #include "confdefs.h"
2731 #include <assert.h>
2732                      Syntax error
2733 _ACEOF
2734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2735   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2736   ac_status=$?
2737   egrep -v '^ *\+' conftest.er1 >conftest.err
2738   rm -f conftest.er1
2739   cat conftest.err >&5
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); } >/dev/null; then
2742   if test -s conftest.err; then
2743     ac_cpp_err=$ac_c_preproc_warn_flag
2744   else
2745     ac_cpp_err=
2746   fi
2747 else
2748   ac_cpp_err=yes
2749 fi
2750 if test -z "$ac_cpp_err"; then
2751   :
2752 else
2753   echo "$as_me: failed program was:" >&5
2754   cat conftest.$ac_ext >&5
2755   # Broken: fails on valid input.
2756 continue
2757 fi
2758 rm -f conftest.err conftest.$ac_ext
2759
2760   # OK, works on sane cases.  Now check whether non-existent headers
2761   # can be detected and how.
2762   cat >conftest.$ac_ext <<_ACEOF
2763 #line $LINENO "configure"
2764 #include "confdefs.h"
2765 #include <ac_nonexistent.h>
2766 _ACEOF
2767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2768   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2769   ac_status=$?
2770   egrep -v '^ *\+' conftest.er1 >conftest.err
2771   rm -f conftest.er1
2772   cat conftest.err >&5
2773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774   (exit $ac_status); } >/dev/null; then
2775   if test -s conftest.err; then
2776     ac_cpp_err=$ac_c_preproc_warn_flag
2777   else
2778     ac_cpp_err=
2779   fi
2780 else
2781   ac_cpp_err=yes
2782 fi
2783 if test -z "$ac_cpp_err"; then
2784   # Broken: success on invalid input.
2785 continue
2786 else
2787   echo "$as_me: failed program was:" >&5
2788   cat conftest.$ac_ext >&5
2789   # Passes both tests.
2790 ac_preproc_ok=:
2791 break
2792 fi
2793 rm -f conftest.err conftest.$ac_ext
2794
2795 done
2796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2797 rm -f conftest.err conftest.$ac_ext
2798 if $ac_preproc_ok; then
2799   :
2800 else
2801   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2802 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2803    { (exit 1); exit 1; }; }
2804 fi
2805
2806 ac_ext=c
2807 ac_cpp='$CPP $CPPFLAGS'
2808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2811
2812
2813
2814 # Create compiler version string
2815 if test x"$GCC" = x"yes" ; then
2816   cc_string="GCC `${CC} --version | sed q`"
2817 else
2818   cc_string=$CC
2819 fi
2820
2821 cat >>confdefs.h <<_ACEOF
2822 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2823 _ACEOF
2824
2825
2826
2827 #
2828 # Automatic dependency tracking
2829 #
2830
2831
2832 # Check whether --enable-depend or --disable-depend was given.
2833 if test "${enable_depend+set}" = set; then
2834   enableval="$enable_depend"
2835
2836   case $enableval in
2837     yes)
2838       autodepend=yes
2839       ;;
2840     no)
2841       :
2842       ;;
2843     *)
2844       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2845 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2846    { (exit 1); exit 1; }; }
2847       ;;
2848   esac
2849
2850 else
2851   enable_depend=no
2852
2853 fi;
2854
2855
2856
2857
2858 #
2859 # Enable assert checks
2860 #
2861
2862
2863 # Check whether --enable-cassert or --disable-cassert was given.
2864 if test "${enable_cassert+set}" = set; then
2865   enableval="$enable_cassert"
2866
2867   case $enableval in
2868     yes)
2869
2870 cat >>confdefs.h <<\_ACEOF
2871 #define USE_ASSERT_CHECKING 1
2872 _ACEOF
2873
2874       ;;
2875     no)
2876       :
2877       ;;
2878     *)
2879       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2880 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2881    { (exit 1); exit 1; }; }
2882       ;;
2883   esac
2884
2885 else
2886   enable_cassert=no
2887
2888 fi;
2889
2890
2891
2892 #
2893 # Include directories
2894 #
2895 ac_save_IFS=$IFS
2896 IFS="${IFS}:"
2897 # SRCH_INC comes from the template file
2898 for dir in $with_includes $SRCH_INC; do
2899   if test -d "$dir"; then
2900     INCLUDES="$INCLUDES -I$dir"
2901   else
2902     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2903 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2904   fi
2905 done
2906 IFS=$ac_save_IFS
2907
2908
2909
2910 #
2911 # Library directories
2912 #
2913 ac_save_IFS=$IFS
2914 IFS="${IFS}:"
2915 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2916 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2917   if test -d "$dir"; then
2918     LIBDIRS="$LIBDIRS -L$dir"
2919   else
2920     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2921 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2922   fi
2923 done
2924 IFS=$ac_save_IFS
2925
2926 #
2927 # Enable thread-safe client libraries
2928 #
2929 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
2930 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
2931
2932
2933 # Check whether --enable-thread-safety or --disable-thread-safety was given.
2934 if test "${enable_thread_safety+set}" = set; then
2935   enableval="$enable_thread_safety"
2936
2937   case $enableval in
2938     yes)
2939
2940 cat >>confdefs.h <<\_ACEOF
2941 #define ENABLE_THREAD_SAFETY 1
2942 _ACEOF
2943
2944       ;;
2945     no)
2946       :
2947       ;;
2948     *)
2949       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
2950 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
2951    { (exit 1); exit 1; }; }
2952       ;;
2953   esac
2954
2955 else
2956   enable_thread_safety=no
2957
2958 fi;
2959
2960 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
2961 echo "${ECHO_T}$enable_thread_safety" >&6
2962
2963
2964 #
2965 # Tcl/Tk
2966 #
2967 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2968 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2969
2970
2971
2972 # Check whether --with-tcl or --without-tcl was given.
2973 if test "${with_tcl+set}" = set; then
2974   withval="$with_tcl"
2975
2976   case $withval in
2977     yes)
2978       :
2979       ;;
2980     no)
2981       :
2982       ;;
2983     *)
2984       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2985 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2986    { (exit 1); exit 1; }; }
2987       ;;
2988   esac
2989
2990 else
2991   with_tcl=no
2992
2993 fi;
2994
2995 echo "$as_me:$LINENO: result: $with_tcl" >&5
2996 echo "${ECHO_T}$with_tcl" >&6
2997
2998
2999 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
3000 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
3001 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
3002 if test "$with_tcl" = yes; then
3003
3004
3005
3006 # Check whether --with-tk or --without-tk was given.
3007 if test "${with_tk+set}" = set; then
3008   withval="$with_tk"
3009
3010   case $withval in
3011     yes)
3012       :
3013       ;;
3014     no)
3015       :
3016       ;;
3017     *)
3018       { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
3019 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
3020    { (exit 1); exit 1; }; }
3021       ;;
3022   esac
3023
3024 else
3025   with_tk=yes
3026
3027 fi;
3028
3029 else
3030   with_tk=no
3031 fi
3032 echo "$as_me:$LINENO: result: $with_tk" >&5
3033 echo "${ECHO_T}$with_tk" >&6
3034
3035
3036
3037 # We see if the path to the Tcl/Tk configuration scripts is specified.
3038 # This will override the use of tclsh to find the paths to search.
3039
3040
3041
3042
3043 # Check whether --with-tclconfig or --without-tclconfig was given.
3044 if test "${with_tclconfig+set}" = set; then
3045   withval="$with_tclconfig"
3046
3047   case $withval in
3048     yes)
3049       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3050 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3051    { (exit 1); exit 1; }; }
3052       ;;
3053     no)
3054       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3055 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3056    { (exit 1); exit 1; }; }
3057       ;;
3058     *)
3059
3060       ;;
3061   esac
3062
3063 fi;
3064
3065
3066 # We see if the path to the Tk configuration scripts is specified.
3067 # This will override the use of tclsh to find the paths to search.
3068
3069
3070
3071
3072 # Check whether --with-tkconfig or --without-tkconfig was given.
3073 if test "${with_tkconfig+set}" = set; then
3074   withval="$with_tkconfig"
3075
3076   case $withval in
3077     yes)
3078       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
3079 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
3080    { (exit 1); exit 1; }; }
3081       ;;
3082     no)
3083       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
3084 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
3085    { (exit 1); exit 1; }; }
3086       ;;
3087     *)
3088
3089       ;;
3090   esac
3091
3092 fi;
3093
3094
3095 #
3096 # Optionally build Perl modules (PL/Perl)
3097 #
3098 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3099 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3100
3101
3102
3103 # Check whether --with-perl or --without-perl was given.
3104 if test "${with_perl+set}" = set; then
3105   withval="$with_perl"
3106
3107   case $withval in
3108     yes)
3109       :
3110       ;;
3111     no)
3112       :
3113       ;;
3114     *)
3115       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3116 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3117    { (exit 1); exit 1; }; }
3118       ;;
3119   esac
3120
3121 else
3122   with_perl=no
3123
3124 fi;
3125
3126 echo "$as_me:$LINENO: result: $with_perl" >&5
3127 echo "${ECHO_T}$with_perl" >&6
3128
3129
3130 #
3131 # Optionally build Python modules (PL/Python)
3132 #
3133 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3134 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3135
3136
3137
3138 # Check whether --with-python or --without-python was given.
3139 if test "${with_python+set}" = set; then
3140   withval="$with_python"
3141
3142   case $withval in
3143     yes)
3144       :
3145       ;;
3146     no)
3147       :
3148       ;;
3149     *)
3150       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3151 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3152    { (exit 1); exit 1; }; }
3153       ;;
3154   esac
3155
3156 else
3157   with_python=no
3158
3159 fi;
3160
3161 echo "$as_me:$LINENO: result: $with_python" >&5
3162 echo "${ECHO_T}$with_python" >&6
3163
3164
3165 #
3166 # Optionally build the Java/JDBC tools
3167 #
3168 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3169 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3170
3171
3172
3173 # Check whether --with-java or --without-java was given.
3174 if test "${with_java+set}" = set; then
3175   withval="$with_java"
3176
3177   case $withval in
3178     yes)
3179       echo "$as_me:$LINENO: result: yes" >&5
3180 echo "${ECHO_T}yes" >&6
3181
3182   for ac_prog in jakarta-ant ant ant.sh ant.bat
3183 do
3184   # Extract the first word of "$ac_prog", so it can be a program name with args.
3185 set dummy $ac_prog; ac_word=$2
3186 echo "$as_me:$LINENO: checking for $ac_word" >&5
3187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3188 if test "${ac_cv_path_ANT+set}" = set; then
3189   echo $ECHO_N "(cached) $ECHO_C" >&6
3190 else
3191   case $ANT in
3192   [\\/]* | ?:[\\/]*)
3193   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3194   ;;
3195   *)
3196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3198 do
3199   IFS=$as_save_IFS
3200   test -z "$as_dir" && as_dir=.
3201   for ac_exec_ext in '' $ac_executable_extensions; do
3202   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3205     break 2
3206   fi
3207 done
3208 done
3209
3210   ;;
3211 esac
3212 fi
3213 ANT=$ac_cv_path_ANT
3214
3215 if test -n "$ANT"; then
3216   echo "$as_me:$LINENO: result: $ANT" >&5
3217 echo "${ECHO_T}$ANT" >&6
3218 else
3219   echo "$as_me:$LINENO: result: no" >&5
3220 echo "${ECHO_T}no" >&6
3221 fi
3222
3223   test -n "$ANT" && break
3224 done
3225
3226
3227   echo "$as_me:$LINENO: checking whether $ANT works" >&5
3228 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3229 if test "${pgac_cv_prog_ant_works+set}" = set; then
3230   echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232
3233     cat > conftest.java << EOF
3234 public class conftest {
3235     int testmethod(int a, int b) {
3236         return a + b;
3237     }
3238 }
3239 EOF
3240
3241     cat > conftest.xml << EOF
3242 <project name="conftest" default="conftest">
3243  <target name="conftest">
3244   <javac srcdir="." includes="conftest.java">
3245   </javac>
3246  </target>
3247 </project>
3248 EOF
3249
3250     pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3251     { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3252   (eval $pgac_cmd) 2>&5
3253   ac_status=$?
3254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255   (exit $ac_status); }
3256     pgac_save_status=$?
3257     if test $? = 0 && test -f ./conftest.class ; then
3258       pgac_cv_prog_ant_works=yes
3259     else
3260       echo "configure: failed java program was:" >&5
3261       cat conftest.java >&5
3262       echo "configure: failed build file was:" >&5
3263       cat conftest.xml >&5
3264       pgac_cv_prog_ant_works=no
3265     fi
3266
3267     rm -f conftest* core core.* *.core
3268
3269 fi
3270 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3271 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3272
3273   if test "$pgac_cv_prog_ant_works" != yes; then
3274     { { echo "$as_me:$LINENO: error: ant does not work" >&5
3275 echo "$as_me: error: ant does not work" >&2;}
3276    { (exit 1); exit 1; }; }
3277   fi
3278
3279
3280 if test -z "$ANT"; then
3281   { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3282 If you have Ant already installed, see config.log for details on the failure." >&5
3283 echo "$as_me: error: Ant is required to build Java components
3284 If you have Ant already installed, see config.log for details on the failure." >&2;}
3285    { (exit 1); exit 1; }; }
3286 fi
3287 if "$ANT" -version | egrep -i 'ant version' | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3288   { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3289 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3290    { (exit 1); exit 1; }; }
3291 fi
3292       ;;
3293     no)
3294       echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6
3296       ;;
3297     *)
3298       { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3299 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3300    { (exit 1); exit 1; }; }
3301       ;;
3302   esac
3303
3304 else
3305   with_java=no
3306 echo "$as_me:$LINENO: result: no" >&5
3307 echo "${ECHO_T}no" >&6
3308 fi;
3309
3310
3311
3312 #
3313 # Kerberos 4
3314 #
3315 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3316 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3317
3318
3319
3320 # Check whether --with-krb4 or --without-krb4 was given.
3321 if test "${with_krb4+set}" = set; then
3322   withval="$with_krb4"
3323
3324   case $withval in
3325     yes)
3326
3327
3328 cat >>confdefs.h <<\_ACEOF
3329 #define KRB4 1
3330 _ACEOF
3331
3332   krb_srvtab="/etc/srvtab"
3333
3334       ;;
3335     no)
3336       :
3337       ;;
3338     *)
3339       { { echo "$as_me:$LINENO: error: no argument expected for --with-krb4 option" >&5
3340 echo "$as_me: error: no argument expected for --with-krb4 option" >&2;}
3341    { (exit 1); exit 1; }; }
3342       ;;
3343   esac
3344
3345 else
3346   with_krb4=no
3347
3348 fi;
3349
3350 echo "$as_me:$LINENO: result: $with_krb4" >&5
3351 echo "${ECHO_T}$with_krb4" >&6
3352
3353
3354
3355 #
3356 # Kerberos 5
3357 #
3358 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3359 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3360
3361
3362
3363 # Check whether --with-krb5 or --without-krb5 was given.
3364 if test "${with_krb5+set}" = set; then
3365   withval="$with_krb5"
3366
3367   case $withval in
3368     yes)
3369
3370
3371 cat >>confdefs.h <<\_ACEOF
3372 #define KRB5 1
3373 _ACEOF
3374
3375   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3376
3377       ;;
3378     no)
3379       :
3380       ;;
3381     *)
3382       { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3383 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3384    { (exit 1); exit 1; }; }
3385       ;;
3386   esac
3387
3388 else
3389   with_krb5=no
3390
3391 fi;
3392
3393 echo "$as_me:$LINENO: result: $with_krb5" >&5
3394 echo "${ECHO_T}$with_krb5" >&6
3395
3396
3397
3398 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3399 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3400   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3401 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3402    { (exit 1); exit 1; }; }
3403 fi
3404
3405
3406
3407
3408 #
3409 # Kerberos configuration parameters
3410 #
3411
3412
3413
3414 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3415 if test "${with_krb_srvnam+set}" = set; then
3416   withval="$with_krb_srvnam"
3417
3418   case $withval in
3419     yes)
3420       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3421 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3422    { (exit 1); exit 1; }; }
3423       ;;
3424     no)
3425       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3426 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3427    { (exit 1); exit 1; }; }
3428       ;;
3429     *)
3430
3431       ;;
3432   esac
3433
3434 else
3435   with_krb_srvnam="postgres"
3436 fi;
3437
3438
3439 cat >>confdefs.h <<_ACEOF
3440 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3441 _ACEOF
3442
3443
3444
3445 #
3446 # PAM
3447 #
3448 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3449 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3450
3451
3452
3453 # Check whether --with-pam or --without-pam was given.
3454 if test "${with_pam+set}" = set; then
3455   withval="$with_pam"
3456
3457   case $withval in
3458     yes)
3459
3460 cat >>confdefs.h <<\_ACEOF
3461 #define USE_PAM 1
3462 _ACEOF
3463
3464       ;;
3465     no)
3466       :
3467       ;;
3468     *)
3469       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3470 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3471    { (exit 1); exit 1; }; }
3472       ;;
3473   esac
3474
3475 else
3476   with_pam=no
3477
3478 fi;
3479
3480 echo "$as_me:$LINENO: result: $with_pam" >&5
3481 echo "${ECHO_T}$with_pam" >&6
3482
3483
3484
3485 #
3486 # Rendezvous
3487 #
3488 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3489 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3490
3491
3492
3493 # Check whether --with-rendezvous or --without-rendezvous was given.
3494 if test "${with_rendezvous+set}" = set; then
3495   withval="$with_rendezvous"
3496
3497   case $withval in
3498     yes)
3499
3500 cat >>confdefs.h <<\_ACEOF
3501 #define USE_RENDEZVOUS 1
3502 _ACEOF
3503
3504       ;;
3505     no)
3506       :
3507       ;;
3508     *)
3509       { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3510 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3511    { (exit 1); exit 1; }; }
3512       ;;
3513   esac
3514
3515 else
3516   with_rendezvous=no
3517
3518 fi;
3519
3520 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3521 echo "${ECHO_T}$with_rendezvous" >&6
3522
3523
3524
3525 #
3526 # OpenSSL
3527 #
3528 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
3529 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
3530
3531
3532
3533 # Check whether --with-openssl or --without-openssl was given.
3534 if test "${with_openssl+set}" = set; then
3535   withval="$with_openssl"
3536
3537   case $withval in
3538     yes)
3539
3540 cat >>confdefs.h <<\_ACEOF
3541 #define USE_SSL 1
3542 _ACEOF
3543
3544       ;;
3545     no)
3546       :
3547       ;;
3548     *)
3549       { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
3550 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
3551    { (exit 1); exit 1; }; }
3552       ;;
3553   esac
3554
3555 else
3556   with_openssl=no
3557
3558 fi;
3559
3560 echo "$as_me:$LINENO: result: $with_openssl" >&5
3561 echo "${ECHO_T}$with_openssl" >&6
3562
3563
3564
3565 #
3566 # Readline
3567 #
3568
3569
3570
3571 # Check whether --with-readline or --without-readline was given.
3572 if test "${with_readline+set}" = set; then
3573   withval="$with_readline"
3574
3575   case $withval in
3576     yes)
3577       :
3578       ;;
3579     no)
3580       :
3581       ;;
3582     *)
3583       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3584 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3585    { (exit 1); exit 1; }; }
3586       ;;
3587   esac
3588
3589 else
3590   with_readline=yes
3591
3592 fi;
3593
3594
3595 #
3596 # Zlib
3597 #
3598
3599
3600
3601 # Check whether --with-zlib or --without-zlib was given.
3602 if test "${with_zlib+set}" = set; then
3603   withval="$with_zlib"
3604
3605   case $withval in
3606     yes)
3607       :
3608       ;;
3609     no)
3610       :
3611       ;;
3612     *)
3613       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3614 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3615    { (exit 1); exit 1; }; }
3616       ;;
3617   esac
3618
3619 else
3620   with_zlib=yes
3621
3622 fi;
3623
3624
3625 #
3626 # Elf
3627 #
3628
3629 # Assume system is ELF if it predefines __ELF__ as 1,
3630 # otherwise believe host_os based default.
3631 case $host_os in
3632     freebsd1*|freebsd2*) elf=no;;
3633     freebsd3*|freebsd4*) elf=yes;;
3634 esac
3635
3636
3637 cat >conftest.$ac_ext <<_ACEOF
3638 #line $LINENO "configure"
3639 #include "confdefs.h"
3640 #if __ELF__
3641   yes
3642 #endif
3643
3644 _ACEOF
3645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3646   egrep "yes" >/dev/null 2>&1; then
3647   ELF_SYS=true
3648 else
3649   if test "X$elf" = "Xyes" ; then
3650   ELF_SYS=true
3651 else
3652   ELF_SYS=
3653 fi
3654 fi
3655 rm -f conftest*
3656
3657
3658
3659 #
3660 # Assignments
3661 #
3662
3663 CPPFLAGS="$CPPFLAGS $INCLUDES"
3664 LDFLAGS="$LDFLAGS $LIBDIRS"
3665
3666 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3667 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3668 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3669 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3670
3671
3672 for ac_prog in gawk mawk nawk awk
3673 do
3674   # Extract the first word of "$ac_prog", so it can be a program name with args.
3675 set dummy $ac_prog; ac_word=$2
3676 echo "$as_me:$LINENO: checking for $ac_word" >&5
3677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3678 if test "${ac_cv_prog_AWK+set}" = set; then
3679   echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681   if test -n "$AWK"; then
3682   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3683 else
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 for as_dir in $PATH
3686 do
3687   IFS=$as_save_IFS
3688   test -z "$as_dir" && as_dir=.
3689   for ac_exec_ext in '' $ac_executable_extensions; do
3690   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3691     ac_cv_prog_AWK="$ac_prog"
3692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3693     break 2
3694   fi
3695 done
3696 done
3697
3698 fi
3699 fi
3700 AWK=$ac_cv_prog_AWK
3701 if test -n "$AWK"; then
3702   echo "$as_me:$LINENO: result: $AWK" >&5
3703 echo "${ECHO_T}$AWK" >&6
3704 else
3705   echo "$as_me:$LINENO: result: no" >&5
3706 echo "${ECHO_T}no" >&6
3707 fi
3708
3709   test -n "$AWK" && break
3710 done
3711
3712 echo "$as_me:$LINENO: checking for flex" >&5
3713 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3714 if test "${pgac_cv_path_flex+set}" = set; then
3715   echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717   # Let the user override the test
3718 if test -n "$FLEX"; then
3719   pgac_cv_path_flex=$FLEX
3720 else
3721   pgac_save_IFS=$IFS
3722   IFS=:
3723   for pgac_dir in $PATH; do
3724     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3725       pgac_dir=`pwd`
3726     fi
3727     for pgac_prog in flex lex; do
3728       pgac_candidate="$pgac_dir/$pgac_prog"
3729       if test -f "$pgac_candidate" \
3730         && $pgac_candidate --version </dev/null >/dev/null 2>&1
3731       then
3732         echo '%%'  > conftest.l
3733         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3734           if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3735             pgac_broken_flex=$pgac_candidate
3736             continue
3737           fi
3738
3739           pgac_cv_path_flex=$pgac_candidate
3740           break 2
3741         fi
3742       fi
3743     done
3744   done
3745   IFS=$pgac_save_IFS
3746   rm -f conftest.l
3747   : ${pgac_cv_path_flex=no}
3748 fi
3749
3750 fi
3751 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3752 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3753 if test x"$pgac_cv_path_flex" = x"no"; then
3754   if test -n "$pgac_broken_flex"; then
3755     { echo "$as_me:$LINENO: WARNING:
3756 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3757 *** should get version 2.5.4 or later." >&5
3758 echo "$as_me: WARNING:
3759 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3760 *** should get version 2.5.4 or later." >&2;}
3761   fi
3762
3763   { echo "$as_me:$LINENO: WARNING:
3764 *** Without Flex you will not be able to build PostgreSQL from CVS or
3765 *** change any of the scanner definition files.  You can obtain Flex from
3766 *** a GNU mirror site.  (If you are using the official distribution of
3767 *** PostgreSQL then you do not need to worry about this because the Flex
3768 *** output is pre-generated.)" >&5
3769 echo "$as_me: WARNING:
3770 *** Without Flex you will not be able to build PostgreSQL from CVS or
3771 *** change any of the scanner definition files.  You can obtain Flex from
3772 *** a GNU mirror site.  (If you are using the official distribution of
3773 *** PostgreSQL then you do not need to worry about this because the Flex
3774 *** output is pre-generated.)" >&2;}
3775 fi
3776
3777 if test x"$pgac_cv_path_flex" = x"no"; then
3778   FLEX=
3779 else
3780   FLEX=$pgac_cv_path_flex
3781 fi
3782
3783
3784
3785
3786 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3787 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3788 LN_S=$as_ln_s
3789 if test "$LN_S" = "ln -s"; then
3790   echo "$as_me:$LINENO: result: yes" >&5
3791 echo "${ECHO_T}yes" >&6
3792 else
3793   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3794 echo "${ECHO_T}no, using $LN_S" >&6
3795 fi
3796
3797
3798 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3799 if test "${with_gnu_ld+set}" = set; then
3800   withval="$with_gnu_ld"
3801   test "$withval" = no || with_gnu_ld=yes
3802 else
3803   with_gnu_ld=no
3804 fi;
3805 ac_prog=ld
3806 if test "$GCC" = yes; then
3807   # Check if gcc -print-prog-name=ld gives a path.
3808   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3809 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3810   case $host in
3811   *-*-mingw*)
3812     # gcc leaves a trailing carriage return which upsets mingw
3813     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3814   *)
3815     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3816   esac
3817   case "$ac_prog" in
3818     # Accept absolute paths.
3819     [\\/]* | [A-Za-z]:[\\/]*)
3820       re_direlt='/[^/][^/]*/\.\./'
3821       # Canonicalize the path of ld
3822       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3823       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3824         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3825       done
3826       test -z "$LD" && LD="$ac_prog"
3827       ;;
3828   "")
3829     # If it fails, then pretend we aren't using GCC.
3830     ac_prog=ld
3831     ;;
3832   *)
3833     # If it is relative, then search for the first ld in PATH.
3834     with_gnu_ld=unknown
3835     ;;
3836   esac
3837 elif test "$with_gnu_ld" = yes; then
3838   echo "$as_me:$LINENO: checking for GNU ld" >&5
3839 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3840 else
3841   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3842 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3843 fi
3844 if test "${ac_cv_path_LD+set}" = set; then
3845   echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847   if test -z "$LD"; then
3848   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3849   for ac_dir in $PATH; do
3850     test -z "$ac_dir" && ac_dir=.
3851     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3852       ac_cv_path_LD="$ac_dir/$ac_prog"
3853       # Check to see if the program is GNU ld.  I'd rather use --version,
3854       # but apparently some GNU ld's only accept -v.
3855       # Break only if it was the GNU/non-GNU ld that we prefer.
3856       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3857         test "$with_gnu_ld" != no && break
3858       else
3859         test "$with_gnu_ld" != yes && break
3860       fi
3861     fi
3862   done
3863   IFS="$ac_save_ifs"
3864 else
3865   ac_cv_path_LD="$LD" # Let the user override the test with a path.
3866 fi
3867 fi
3868
3869 LD="$ac_cv_path_LD"
3870 if test -n "$LD"; then
3871   echo "$as_me:$LINENO: result: $LD" >&5
3872 echo "${ECHO_T}$LD" >&6
3873 else
3874   echo "$as_me:$LINENO: result: no" >&5
3875 echo "${ECHO_T}no" >&6
3876 fi
3877 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3878 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3879    { (exit 1); exit 1; }; }
3880 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3881 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3882 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3883   echo $ECHO_N "(cached) $ECHO_C" >&6
3884 else
3885   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3886 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3887   ac_cv_prog_gnu_ld=yes
3888 else
3889   ac_cv_prog_gnu_ld=no
3890 fi
3891 fi
3892 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3893 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3894 with_gnu_ld=$ac_cv_prog_gnu_ld
3895
3896
3897
3898
3899 case $host_os in sysv5*)
3900   echo "$as_me:$LINENO: checking whether ld -R works" >&5
3901 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3902 if test "${pgac_cv_prog_ld_R+set}" = set; then
3903   echo $ECHO_N "(cached) $ECHO_C" >&6
3904 else
3905
3906     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3907     cat >conftest.$ac_ext <<_ACEOF
3908 #line $LINENO "configure"
3909 #include "confdefs.h"
3910
3911 #ifdef F77_DUMMY_MAIN
3912 #  ifdef __cplusplus
3913      extern "C"
3914 #  endif
3915    int F77_DUMMY_MAIN() { return 1; }
3916 #endif
3917 int
3918 main ()
3919 {
3920
3921   ;
3922   return 0;
3923 }
3924 _ACEOF
3925 rm -f conftest.$ac_objext conftest$ac_exeext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3927   (eval $ac_link) 2>&5
3928   ac_status=$?
3929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930   (exit $ac_status); } &&
3931          { ac_try='test -s conftest$ac_exeext'
3932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933   (eval $ac_try) 2>&5
3934   ac_status=$?
3935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936   (exit $ac_status); }; }; then
3937   pgac_cv_prog_ld_R=yes
3938 else
3939   echo "$as_me: failed program was:" >&5
3940 cat conftest.$ac_ext >&5
3941 pgac_cv_prog_ld_R=no
3942 fi
3943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3944     LDFLAGS=$pgac_save_LDFLAGS
3945
3946 fi
3947 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3948 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3949   ld_R_works=$pgac_cv_prog_ld_R
3950
3951 esac
3952 if test -n "$ac_tool_prefix"; then
3953   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3954 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3955 echo "$as_me:$LINENO: checking for $ac_word" >&5
3956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3957 if test "${ac_cv_prog_RANLIB+set}" = set; then
3958   echo $ECHO_N "(cached) $ECHO_C" >&6
3959 else
3960   if test -n "$RANLIB"; then
3961   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3962 else
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 for as_dir in $PATH
3965 do
3966   IFS=$as_save_IFS
3967   test -z "$as_dir" && as_dir=.
3968   for ac_exec_ext in '' $ac_executable_extensions; do
3969   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3970     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3972     break 2
3973   fi
3974 done
3975 done
3976
3977 fi
3978 fi
3979 RANLIB=$ac_cv_prog_RANLIB
3980 if test -n "$RANLIB"; then
3981   echo "$as_me:$LINENO: result: $RANLIB" >&5
3982 echo "${ECHO_T}$RANLIB" >&6
3983 else
3984   echo "$as_me:$LINENO: result: no" >&5
3985 echo "${ECHO_T}no" >&6
3986 fi
3987
3988 fi
3989 if test -z "$ac_cv_prog_RANLIB"; then
3990   ac_ct_RANLIB=$RANLIB
3991   # Extract the first word of "ranlib", so it can be a program name with args.
3992 set dummy ranlib; ac_word=$2
3993 echo "$as_me:$LINENO: checking for $ac_word" >&5
3994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3995 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3996   echo $ECHO_N "(cached) $ECHO_C" >&6
3997 else
3998   if test -n "$ac_ct_RANLIB"; then
3999   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4000 else
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH
4003 do
4004   IFS=$as_save_IFS
4005   test -z "$as_dir" && as_dir=.
4006   for ac_exec_ext in '' $ac_executable_extensions; do
4007   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4008     ac_cv_prog_ac_ct_RANLIB="ranlib"
4009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4010     break 2
4011   fi
4012 done
4013 done
4014
4015   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4016 fi
4017 fi
4018 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4019 if test -n "$ac_ct_RANLIB"; then
4020   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4021 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4022 else
4023   echo "$as_me:$LINENO: result: no" >&5
4024 echo "${ECHO_T}no" >&6
4025 fi
4026
4027   RANLIB=$ac_ct_RANLIB
4028 else
4029   RANLIB="$ac_cv_prog_RANLIB"
4030 fi
4031
4032 for ac_prog in lorder
4033 do
4034   # Extract the first word of "$ac_prog", so it can be a program name with args.
4035 set dummy $ac_prog; ac_word=$2
4036 echo "$as_me:$LINENO: checking for $ac_word" >&5
4037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4038 if test "${ac_cv_prog_LORDER+set}" = set; then
4039   echo $ECHO_N "(cached) $ECHO_C" >&6
4040 else
4041   if test -n "$LORDER"; then
4042   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4043 else
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH
4046 do
4047   IFS=$as_save_IFS
4048   test -z "$as_dir" && as_dir=.
4049   for ac_exec_ext in '' $ac_executable_extensions; do
4050   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4051     ac_cv_prog_LORDER="$ac_prog"
4052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4053     break 2
4054   fi
4055 done
4056 done
4057
4058 fi
4059 fi
4060 LORDER=$ac_cv_prog_LORDER
4061 if test -n "$LORDER"; then
4062   echo "$as_me:$LINENO: result: $LORDER" >&5
4063 echo "${ECHO_T}$LORDER" >&6
4064 else
4065   echo "$as_me:$LINENO: result: no" >&5
4066 echo "${ECHO_T}no" >&6
4067 fi
4068
4069   test -n "$LORDER" && break
4070 done
4071
4072 # Extract the first word of "tar", so it can be a program name with args.
4073 set dummy tar; ac_word=$2
4074 echo "$as_me:$LINENO: checking for $ac_word" >&5
4075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4076 if test "${ac_cv_path_TAR+set}" = set; then
4077   echo $ECHO_N "(cached) $ECHO_C" >&6
4078 else
4079   case $TAR in
4080   [\\/]* | ?:[\\/]*)
4081   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4082   ;;
4083   *)
4084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 for as_dir in $PATH
4086 do
4087   IFS=$as_save_IFS
4088   test -z "$as_dir" && as_dir=.
4089   for ac_exec_ext in '' $ac_executable_extensions; do
4090   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4091     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4093     break 2
4094   fi
4095 done
4096 done
4097
4098   ;;
4099 esac
4100 fi
4101 TAR=$ac_cv_path_TAR
4102
4103 if test -n "$TAR"; then
4104   echo "$as_me:$LINENO: result: $TAR" >&5
4105 echo "${ECHO_T}$TAR" >&6
4106 else
4107   echo "$as_me:$LINENO: result: no" >&5
4108 echo "${ECHO_T}no" >&6
4109 fi
4110
4111
4112   if test -n "$ac_tool_prefix"; then
4113   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4114 set dummy ${ac_tool_prefix}strip; ac_word=$2
4115 echo "$as_me:$LINENO: checking for $ac_word" >&5
4116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4117 if test "${ac_cv_prog_STRIP+set}" = set; then
4118   echo $ECHO_N "(cached) $ECHO_C" >&6
4119 else
4120   if test -n "$STRIP"; then
4121   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4122 else
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4125 do
4126   IFS=$as_save_IFS
4127   test -z "$as_dir" && as_dir=.
4128   for ac_exec_ext in '' $ac_executable_extensions; do
4129   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4130     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4132     break 2
4133   fi
4134 done
4135 done
4136
4137 fi
4138 fi
4139 STRIP=$ac_cv_prog_STRIP
4140 if test -n "$STRIP"; then
4141   echo "$as_me:$LINENO: result: $STRIP" >&5
4142 echo "${ECHO_T}$STRIP" >&6
4143 else
4144   echo "$as_me:$LINENO: result: no" >&5
4145 echo "${ECHO_T}no" >&6
4146 fi
4147
4148 fi
4149 if test -z "$ac_cv_prog_STRIP"; then
4150   ac_ct_STRIP=$STRIP
4151   # Extract the first word of "strip", so it can be a program name with args.
4152 set dummy strip; ac_word=$2
4153 echo "$as_me:$LINENO: checking for $ac_word" >&5
4154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4155 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4156   echo $ECHO_N "(cached) $ECHO_C" >&6
4157 else
4158   if test -n "$ac_ct_STRIP"; then
4159   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4160 else
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH
4163 do
4164   IFS=$as_save_IFS
4165   test -z "$as_dir" && as_dir=.
4166   for ac_exec_ext in '' $ac_executable_extensions; do
4167   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4168     ac_cv_prog_ac_ct_STRIP="strip"
4169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4170     break 2
4171   fi
4172 done
4173 done
4174
4175   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4176 fi
4177 fi
4178 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4179 if test -n "$ac_ct_STRIP"; then
4180   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4181 echo "${ECHO_T}$ac_ct_STRIP" >&6
4182 else
4183   echo "$as_me:$LINENO: result: no" >&5
4184 echo "${ECHO_T}no" >&6
4185 fi
4186
4187   STRIP=$ac_ct_STRIP
4188 else
4189   STRIP="$ac_cv_prog_STRIP"
4190 fi
4191
4192
4193   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4194 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4195   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4196     STRIP_STATIC_LIB="$STRIP -x"
4197     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4198     echo "$as_me:$LINENO: result: yes" >&5
4199 echo "${ECHO_T}yes" >&6
4200   else
4201     STRIP_STATIC_LIB=:
4202     STRIP_SHARED_LIB=:
4203     echo "$as_me:$LINENO: result: no" >&5
4204 echo "${ECHO_T}no" >&6
4205   fi
4206
4207
4208
4209
4210 for ac_prog in 'bison -y'
4211 do
4212   # Extract the first word of "$ac_prog", so it can be a program name with args.
4213 set dummy $ac_prog; ac_word=$2
4214 echo "$as_me:$LINENO: checking for $ac_word" >&5
4215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4216 if test "${ac_cv_prog_YACC+set}" = set; then
4217   echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219   if test -n "$YACC"; then
4220   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4221 else
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 for as_dir in $PATH
4224 do
4225   IFS=$as_save_IFS
4226   test -z "$as_dir" && as_dir=.
4227   for ac_exec_ext in '' $ac_executable_extensions; do
4228   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4229     ac_cv_prog_YACC="$ac_prog"
4230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4231     break 2
4232   fi
4233 done
4234 done
4235
4236 fi
4237 fi
4238 YACC=$ac_cv_prog_YACC
4239 if test -n "$YACC"; then
4240   echo "$as_me:$LINENO: result: $YACC" >&5
4241 echo "${ECHO_T}$YACC" >&6
4242 else
4243   echo "$as_me:$LINENO: result: no" >&5
4244 echo "${ECHO_T}no" >&6
4245 fi
4246
4247   test -n "$YACC" && break
4248 done
4249
4250
4251 if test "$YACC"; then
4252   if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4253     { echo "$as_me:$LINENO: WARNING:
4254 *** The installed version of Bison is too old.  PostgreSQL needs
4255 *** Bison version 1.875 or later." >&5
4256 echo "$as_me: WARNING:
4257 *** The installed version of Bison is too old.  PostgreSQL needs
4258 *** Bison version 1.875 or later." >&2;}
4259   fi
4260 fi
4261
4262 if test -z "$YACC"; then
4263   { echo "$as_me:$LINENO: WARNING:
4264 *** Without Bison you will not be able to build PostgreSQL from CVS or
4265 *** change any of the parser definition files.  You can obtain Bison from
4266 *** a GNU mirror site.  (If you are using the official distribution of
4267 *** PostgreSQL then you do not need to worry about this because the Bison
4268 *** output is pre-generated.)  To use a different yacc program (possible,
4269 *** but not recommended), set the environment variable YACC before running
4270 *** 'configure'." >&5
4271 echo "$as_me: WARNING:
4272 *** Without Bison you will not be able to build PostgreSQL from CVS or
4273 *** change any of the parser definition files.  You can obtain Bison from
4274 *** a GNU mirror site.  (If you are using the official distribution of
4275 *** PostgreSQL then you do not need to worry about this because the Bison
4276 *** output is pre-generated.)  To use a different yacc program (possible,
4277 *** but not recommended), set the environment variable YACC before running
4278 *** 'configure'." >&2;}
4279 fi
4280
4281
4282 # Extract the first word of "perl", so it can be a program name with args.
4283 set dummy perl; ac_word=$2
4284 echo "$as_me:$LINENO: checking for $ac_word" >&5
4285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4286 if test "${ac_cv_path_PERL+set}" = set; then
4287   echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289   case $PERL in
4290   [\\/]* | ?:[\\/]*)
4291   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4292   ;;
4293   *)
4294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 for as_dir in $PATH
4296 do
4297   IFS=$as_save_IFS
4298   test -z "$as_dir" && as_dir=.
4299   for ac_exec_ext in '' $ac_executable_extensions; do
4300   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4301     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4303     break 2
4304   fi
4305 done
4306 done
4307
4308   ;;
4309 esac
4310 fi
4311 PERL=$ac_cv_path_PERL
4312
4313 if test -n "$PERL"; then
4314   echo "$as_me:$LINENO: result: $PERL" >&5
4315 echo "${ECHO_T}$PERL" >&6
4316 else
4317   echo "$as_me:$LINENO: result: no" >&5
4318 echo "${ECHO_T}no" >&6
4319 fi
4320
4321 if test "$with_perl" = yes; then
4322
4323 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4324 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4325 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4326 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4327 echo "${ECHO_T}$perl_archlibexp" >&6
4328 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4329 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4330 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4331 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4332 echo "${ECHO_T}$perl_privlibexp" >&6
4333 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4334 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4335 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4336 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4337 echo "${ECHO_T}$perl_useshrplib" >&6
4338
4339 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4340 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4341 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4342 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4343 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4344 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4345 echo "${ECHO_T}$perl_embed_ldflags" >&6
4346 fi
4347
4348 if test "$with_python" = yes; then
4349   # Extract the first word of "python", so it can be a program name with args.
4350 set dummy python; ac_word=$2
4351 echo "$as_me:$LINENO: checking for $ac_word" >&5
4352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4353 if test "${ac_cv_path_PYTHON+set}" = set; then
4354   echo $ECHO_N "(cached) $ECHO_C" >&6
4355 else
4356   case $PYTHON in
4357   [\\/]* | ?:[\\/]*)
4358   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4359   ;;
4360   *)
4361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 for as_dir in $PATH
4363 do
4364   IFS=$as_save_IFS
4365   test -z "$as_dir" && as_dir=.
4366   for ac_exec_ext in '' $ac_executable_extensions; do
4367   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4368     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4370     break 2
4371   fi
4372 done
4373 done
4374
4375   ;;
4376 esac
4377 fi
4378 PYTHON=$ac_cv_path_PYTHON
4379
4380 if test -n "$PYTHON"; then
4381   echo "$as_me:$LINENO: result: $PYTHON" >&5
4382 echo "${ECHO_T}$PYTHON" >&6
4383 else
4384   echo "$as_me:$LINENO: result: no" >&5
4385 echo "${ECHO_T}no" >&6
4386 fi
4387
4388 if test x"$PYTHON" = x""; then
4389   { { echo "$as_me:$LINENO: error: Python not found" >&5
4390 echo "$as_me: error: Python not found" >&2;}
4391    { (exit 1); exit 1; }; }
4392 fi
4393
4394
4395 echo "$as_me:$LINENO: checking Python installation directories" >&5
4396 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4397 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4398 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4399 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4400 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4401 python_includespec="-I${python_prefix}/include/python${python_version}"
4402 if test "$python_prefix" != "$python_execprefix"; then
4403   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4404 fi
4405
4406 # This should be enough of a message.
4407 if test "$python_prefix" != "$python_execprefix"; then
4408   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4409 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4410 else
4411   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4412 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4413 fi
4414
4415
4416 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4417 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4418
4419 if test ! -f "$python_configdir/Makefile"; then
4420   echo "$as_me:$LINENO: result: no" >&5
4421 echo "${ECHO_T}no" >&6
4422   { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4423 echo "$as_me: error: Python Makefile not found" >&2;}
4424    { (exit 1); exit 1; }; }
4425 fi
4426
4427 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4428 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4429 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4430 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4431 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4432
4433 pgac_tab="      " # tab character
4434 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"`
4435
4436 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4437 echo "${ECHO_T}${python_libspec}" >&6
4438
4439
4440 fi
4441
4442
4443 ##
4444 ## Libraries
4445 ##
4446
4447 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4448 then
4449
4450 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4451 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4452 if test "${ac_cv_lib_bsd_main+set}" = set; then
4453   echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455   ac_check_lib_save_LIBS=$LIBS
4456 LIBS="-lbsd  $LIBS"
4457 cat >conftest.$ac_ext <<_ACEOF
4458 #line $LINENO "configure"
4459 #include "confdefs.h"
4460
4461
4462 #ifdef F77_DUMMY_MAIN
4463 #  ifdef __cplusplus
4464      extern "C"
4465 #  endif
4466    int F77_DUMMY_MAIN() { return 1; }
4467 #endif
4468 int
4469 main ()
4470 {
4471 main ();
4472   ;
4473   return 0;
4474 }
4475 _ACEOF
4476 rm -f conftest.$ac_objext conftest$ac_exeext
4477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4478   (eval $ac_link) 2>&5
4479   ac_status=$?
4480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481   (exit $ac_status); } &&
4482          { ac_try='test -s conftest$ac_exeext'
4483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4484   (eval $ac_try) 2>&5
4485   ac_status=$?
4486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487   (exit $ac_status); }; }; then
4488   ac_cv_lib_bsd_main=yes
4489 else
4490   echo "$as_me: failed program was:" >&5
4491 cat conftest.$ac_ext >&5
4492 ac_cv_lib_bsd_main=no
4493 fi
4494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4495 LIBS=$ac_check_lib_save_LIBS
4496 fi
4497 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4498 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4499 if test $ac_cv_lib_bsd_main = yes; then
4500   cat >>confdefs.h <<_ACEOF
4501 #define HAVE_LIBBSD 1
4502 _ACEOF
4503
4504   LIBS="-lbsd $LIBS"
4505
4506 fi
4507
4508 fi
4509
4510 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4511 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4512 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4513   echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515   ac_check_lib_save_LIBS=$LIBS
4516 LIBS="-lutil  $LIBS"
4517 cat >conftest.$ac_ext <<_ACEOF
4518 #line $LINENO "configure"
4519 #include "confdefs.h"
4520
4521 /* Override any gcc2 internal prototype to avoid an error.  */
4522 #ifdef __cplusplus
4523 extern "C"
4524 #endif
4525 /* We use char because int might match the return type of a gcc2
4526    builtin and then its argument prototype would still apply.  */
4527 char setproctitle ();
4528 #ifdef F77_DUMMY_MAIN
4529 #  ifdef __cplusplus
4530      extern "C"
4531 #  endif
4532    int F77_DUMMY_MAIN() { return 1; }
4533 #endif
4534 int
4535 main ()
4536 {
4537 setproctitle ();
4538   ;
4539   return 0;
4540 }
4541 _ACEOF
4542 rm -f conftest.$ac_objext conftest$ac_exeext
4543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4544   (eval $ac_link) 2>&5
4545   ac_status=$?
4546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547   (exit $ac_status); } &&
4548          { ac_try='test -s conftest$ac_exeext'
4549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550   (eval $ac_try) 2>&5
4551   ac_status=$?
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); }; }; then
4554   ac_cv_lib_util_setproctitle=yes
4555 else
4556   echo "$as_me: failed program was:" >&5
4557 cat conftest.$ac_ext >&5
4558 ac_cv_lib_util_setproctitle=no
4559 fi
4560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4561 LIBS=$ac_check_lib_save_LIBS
4562 fi
4563 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4564 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4565 if test $ac_cv_lib_util_setproctitle = yes; then
4566   cat >>confdefs.h <<_ACEOF
4567 #define HAVE_LIBUTIL 1
4568 _ACEOF
4569
4570   LIBS="-lutil $LIBS"
4571
4572 fi
4573
4574
4575 echo "$as_me:$LINENO: checking for main in -lm" >&5
4576 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4577 if test "${ac_cv_lib_m_main+set}" = set; then
4578   echo $ECHO_N "(cached) $ECHO_C" >&6
4579 else
4580   ac_check_lib_save_LIBS=$LIBS
4581 LIBS="-lm  $LIBS"
4582 cat >conftest.$ac_ext <<_ACEOF
4583 #line $LINENO "configure"
4584 #include "confdefs.h"
4585
4586
4587 #ifdef F77_DUMMY_MAIN
4588 #  ifdef __cplusplus
4589      extern "C"
4590 #  endif
4591    int F77_DUMMY_MAIN() { return 1; }
4592 #endif
4593 int
4594 main ()
4595 {
4596 main ();
4597   ;
4598   return 0;
4599 }
4600 _ACEOF
4601 rm -f conftest.$ac_objext conftest$ac_exeext
4602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4603   (eval $ac_link) 2>&5
4604   ac_status=$?
4605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606   (exit $ac_status); } &&
4607          { ac_try='test -s conftest$ac_exeext'
4608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609   (eval $ac_try) 2>&5
4610   ac_status=$?
4611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612   (exit $ac_status); }; }; then
4613   ac_cv_lib_m_main=yes
4614 else
4615   echo "$as_me: failed program was:" >&5
4616 cat conftest.$ac_ext >&5
4617 ac_cv_lib_m_main=no
4618 fi
4619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4620 LIBS=$ac_check_lib_save_LIBS
4621 fi
4622 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4623 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4624 if test $ac_cv_lib_m_main = yes; then
4625   cat >>confdefs.h <<_ACEOF
4626 #define HAVE_LIBM 1
4627 _ACEOF
4628
4629   LIBS="-lm $LIBS"
4630
4631 fi
4632
4633
4634 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4635 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4636 if test "${ac_cv_lib_dl_main+set}" = set; then
4637   echo $ECHO_N "(cached) $ECHO_C" >&6
4638 else
4639   ac_check_lib_save_LIBS=$LIBS
4640 LIBS="-ldl  $LIBS"
4641 cat >conftest.$ac_ext <<_ACEOF
4642 #line $LINENO "configure"
4643 #include "confdefs.h"
4644
4645
4646 #ifdef F77_DUMMY_MAIN
4647 #  ifdef __cplusplus
4648      extern "C"
4649 #  endif
4650    int F77_DUMMY_MAIN() { return 1; }
4651 #endif
4652 int
4653 main ()
4654 {
4655 main ();
4656   ;
4657   return 0;
4658 }
4659 _ACEOF
4660 rm -f conftest.$ac_objext conftest$ac_exeext
4661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4662   (eval $ac_link) 2>&5
4663   ac_status=$?
4664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665   (exit $ac_status); } &&
4666          { ac_try='test -s conftest$ac_exeext'
4667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668   (eval $ac_try) 2>&5
4669   ac_status=$?
4670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671   (exit $ac_status); }; }; then
4672   ac_cv_lib_dl_main=yes
4673 else
4674   echo "$as_me: failed program was:" >&5
4675 cat conftest.$ac_ext >&5
4676 ac_cv_lib_dl_main=no
4677 fi
4678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4679 LIBS=$ac_check_lib_save_LIBS
4680 fi
4681 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4682 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4683 if test $ac_cv_lib_dl_main = yes; then
4684   cat >>confdefs.h <<_ACEOF
4685 #define HAVE_LIBDL 1
4686 _ACEOF
4687
4688   LIBS="-ldl $LIBS"
4689
4690 fi
4691
4692
4693 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4694 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4695 if test "${ac_cv_lib_nsl_main+set}" = set; then
4696   echo $ECHO_N "(cached) $ECHO_C" >&6
4697 else
4698   ac_check_lib_save_LIBS=$LIBS
4699 LIBS="-lnsl  $LIBS"
4700 cat >conftest.$ac_ext <<_ACEOF
4701 #line $LINENO "configure"
4702 #include "confdefs.h"
4703
4704
4705 #ifdef F77_DUMMY_MAIN
4706 #  ifdef __cplusplus
4707      extern "C"
4708 #  endif
4709    int F77_DUMMY_MAIN() { return 1; }
4710 #endif
4711 int
4712 main ()
4713 {
4714 main ();
4715   ;
4716   return 0;
4717 }
4718 _ACEOF
4719 rm -f conftest.$ac_objext conftest$ac_exeext
4720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4721   (eval $ac_link) 2>&5
4722   ac_status=$?
4723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724   (exit $ac_status); } &&
4725          { ac_try='test -s conftest$ac_exeext'
4726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727   (eval $ac_try) 2>&5
4728   ac_status=$?
4729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730   (exit $ac_status); }; }; then
4731   ac_cv_lib_nsl_main=yes
4732 else
4733   echo "$as_me: failed program was:" >&5
4734 cat conftest.$ac_ext >&5
4735 ac_cv_lib_nsl_main=no
4736 fi
4737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4738 LIBS=$ac_check_lib_save_LIBS
4739 fi
4740 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4741 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4742 if test $ac_cv_lib_nsl_main = yes; then
4743   cat >>confdefs.h <<_ACEOF
4744 #define HAVE_LIBNSL 1
4745 _ACEOF
4746
4747   LIBS="-lnsl $LIBS"
4748
4749 fi
4750
4751
4752 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4753 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4754 if test "${ac_cv_lib_socket_main+set}" = set; then
4755   echo $ECHO_N "(cached) $ECHO_C" >&6
4756 else
4757   ac_check_lib_save_LIBS=$LIBS
4758 LIBS="-lsocket  $LIBS"
4759 cat >conftest.$ac_ext <<_ACEOF
4760 #line $LINENO "configure"
4761 #include "confdefs.h"
4762
4763
4764 #ifdef F77_DUMMY_MAIN
4765 #  ifdef __cplusplus
4766      extern "C"
4767 #  endif
4768    int F77_DUMMY_MAIN() { return 1; }
4769 #endif
4770 int
4771 main ()
4772 {
4773 main ();
4774   ;
4775   return 0;
4776 }
4777 _ACEOF
4778 rm -f conftest.$ac_objext conftest$ac_exeext
4779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4780   (eval $ac_link) 2>&5
4781   ac_status=$?
4782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783   (exit $ac_status); } &&
4784          { ac_try='test -s conftest$ac_exeext'
4785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786   (eval $ac_try) 2>&5
4787   ac_status=$?
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); }; }; then
4790   ac_cv_lib_socket_main=yes
4791 else
4792   echo "$as_me: failed program was:" >&5
4793 cat conftest.$ac_ext >&5
4794 ac_cv_lib_socket_main=no
4795 fi
4796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4797 LIBS=$ac_check_lib_save_LIBS
4798 fi
4799 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4800 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4801 if test $ac_cv_lib_socket_main = yes; then
4802   cat >>confdefs.h <<_ACEOF
4803 #define HAVE_LIBSOCKET 1
4804 _ACEOF
4805
4806   LIBS="-lsocket $LIBS"
4807
4808 fi
4809
4810
4811 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4812 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4813 if test "${ac_cv_lib_ipc_main+set}" = set; then
4814   echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816   ac_check_lib_save_LIBS=$LIBS
4817 LIBS="-lipc  $LIBS"
4818 cat >conftest.$ac_ext <<_ACEOF
4819 #line $LINENO "configure"
4820 #include "confdefs.h"
4821
4822
4823 #ifdef F77_DUMMY_MAIN
4824 #  ifdef __cplusplus
4825      extern "C"
4826 #  endif
4827    int F77_DUMMY_MAIN() { return 1; }
4828 #endif
4829 int
4830 main ()
4831 {
4832 main ();
4833   ;
4834   return 0;
4835 }
4836 _ACEOF
4837 rm -f conftest.$ac_objext conftest$ac_exeext
4838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4839   (eval $ac_link) 2>&5
4840   ac_status=$?
4841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842   (exit $ac_status); } &&
4843          { ac_try='test -s conftest$ac_exeext'
4844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845   (eval $ac_try) 2>&5
4846   ac_status=$?
4847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848   (exit $ac_status); }; }; then
4849   ac_cv_lib_ipc_main=yes
4850 else
4851   echo "$as_me: failed program was:" >&5
4852 cat conftest.$ac_ext >&5
4853 ac_cv_lib_ipc_main=no
4854 fi
4855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4856 LIBS=$ac_check_lib_save_LIBS
4857 fi
4858 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4859 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4860 if test $ac_cv_lib_ipc_main = yes; then
4861   cat >>confdefs.h <<_ACEOF
4862 #define HAVE_LIBIPC 1
4863 _ACEOF
4864
4865   LIBS="-lipc $LIBS"
4866
4867 fi
4868
4869
4870 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4871 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4872 if test "${ac_cv_lib_IPC_main+set}" = set; then
4873   echo $ECHO_N "(cached) $ECHO_C" >&6
4874 else
4875   ac_check_lib_save_LIBS=$LIBS
4876 LIBS="-lIPC  $LIBS"
4877 cat >conftest.$ac_ext <<_ACEOF
4878 #line $LINENO "configure"
4879 #include "confdefs.h"
4880
4881
4882 #ifdef F77_DUMMY_MAIN
4883 #  ifdef __cplusplus
4884      extern "C"
4885 #  endif
4886    int F77_DUMMY_MAIN() { return 1; }
4887 #endif
4888 int
4889 main ()
4890 {
4891 main ();
4892   ;
4893   return 0;
4894 }
4895 _ACEOF
4896 rm -f conftest.$ac_objext conftest$ac_exeext
4897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4898   (eval $ac_link) 2>&5
4899   ac_status=$?
4900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901   (exit $ac_status); } &&
4902          { ac_try='test -s conftest$ac_exeext'
4903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4904   (eval $ac_try) 2>&5
4905   ac_status=$?
4906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907   (exit $ac_status); }; }; then
4908   ac_cv_lib_IPC_main=yes
4909 else
4910   echo "$as_me: failed program was:" >&5
4911 cat conftest.$ac_ext >&5
4912 ac_cv_lib_IPC_main=no
4913 fi
4914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4915 LIBS=$ac_check_lib_save_LIBS
4916 fi
4917 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4918 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4919 if test $ac_cv_lib_IPC_main = yes; then
4920   cat >>confdefs.h <<_ACEOF
4921 #define HAVE_LIBIPC 1
4922 _ACEOF
4923
4924   LIBS="-lIPC $LIBS"
4925
4926 fi
4927
4928
4929 echo "$as_me:$LINENO: checking for main in -llc" >&5
4930 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4931 if test "${ac_cv_lib_lc_main+set}" = set; then
4932   echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934   ac_check_lib_save_LIBS=$LIBS
4935 LIBS="-llc  $LIBS"
4936 cat >conftest.$ac_ext <<_ACEOF
4937 #line $LINENO "configure"
4938 #include "confdefs.h"
4939
4940
4941 #ifdef F77_DUMMY_MAIN
4942 #  ifdef __cplusplus
4943      extern "C"
4944 #  endif
4945    int F77_DUMMY_MAIN() { return 1; }
4946 #endif
4947 int
4948 main ()
4949 {
4950 main ();
4951   ;
4952   return 0;
4953 }
4954 _ACEOF
4955 rm -f conftest.$ac_objext conftest$ac_exeext
4956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4957   (eval $ac_link) 2>&5
4958   ac_status=$?
4959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960   (exit $ac_status); } &&
4961          { ac_try='test -s conftest$ac_exeext'
4962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963   (eval $ac_try) 2>&5
4964   ac_status=$?
4965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966   (exit $ac_status); }; }; then
4967   ac_cv_lib_lc_main=yes
4968 else
4969   echo "$as_me: failed program was:" >&5
4970 cat conftest.$ac_ext >&5
4971 ac_cv_lib_lc_main=no
4972 fi
4973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4974 LIBS=$ac_check_lib_save_LIBS
4975 fi
4976 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4977 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4978 if test $ac_cv_lib_lc_main = yes; then
4979   cat >>confdefs.h <<_ACEOF
4980 #define HAVE_LIBLC 1
4981 _ACEOF
4982
4983   LIBS="-llc $LIBS"
4984
4985 fi
4986
4987
4988 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4989 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4990 if test "${ac_cv_lib_dld_main+set}" = set; then
4991   echo $ECHO_N "(cached) $ECHO_C" >&6
4992 else
4993   ac_check_lib_save_LIBS=$LIBS
4994 LIBS="-ldld  $LIBS"
4995 cat >conftest.$ac_ext <<_ACEOF
4996 #line $LINENO "configure"
4997 #include "confdefs.h"
4998
4999
5000 #ifdef F77_DUMMY_MAIN
5001 #  ifdef __cplusplus
5002      extern "C"
5003 #  endif
5004    int F77_DUMMY_MAIN() { return 1; }
5005 #endif
5006 int
5007 main ()
5008 {
5009 main ();
5010   ;
5011   return 0;
5012 }
5013 _ACEOF
5014 rm -f conftest.$ac_objext conftest$ac_exeext
5015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5016   (eval $ac_link) 2>&5
5017   ac_status=$?
5018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019   (exit $ac_status); } &&
5020          { ac_try='test -s conftest$ac_exeext'
5021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022   (eval $ac_try) 2>&5
5023   ac_status=$?
5024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025   (exit $ac_status); }; }; then
5026   ac_cv_lib_dld_main=yes
5027 else
5028   echo "$as_me: failed program was:" >&5
5029 cat conftest.$ac_ext >&5
5030 ac_cv_lib_dld_main=no
5031 fi
5032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5033 LIBS=$ac_check_lib_save_LIBS
5034 fi
5035 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5036 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5037 if test $ac_cv_lib_dld_main = yes; then
5038   cat >>confdefs.h <<_ACEOF
5039 #define HAVE_LIBDLD 1
5040 _ACEOF
5041
5042   LIBS="-ldld $LIBS"
5043
5044 fi
5045
5046
5047 echo "$as_me:$LINENO: checking for main in -lld" >&5
5048 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5049 if test "${ac_cv_lib_ld_main+set}" = set; then
5050   echo $ECHO_N "(cached) $ECHO_C" >&6
5051 else
5052   ac_check_lib_save_LIBS=$LIBS
5053 LIBS="-lld  $LIBS"
5054 cat >conftest.$ac_ext <<_ACEOF
5055 #line $LINENO "configure"
5056 #include "confdefs.h"
5057
5058
5059 #ifdef F77_DUMMY_MAIN
5060 #  ifdef __cplusplus
5061      extern "C"
5062 #  endif
5063    int F77_DUMMY_MAIN() { return 1; }
5064 #endif
5065 int
5066 main ()
5067 {
5068 main ();
5069   ;
5070   return 0;
5071 }
5072 _ACEOF
5073 rm -f conftest.$ac_objext conftest$ac_exeext
5074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5075   (eval $ac_link) 2>&5
5076   ac_status=$?
5077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078   (exit $ac_status); } &&
5079          { ac_try='test -s conftest$ac_exeext'
5080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081   (eval $ac_try) 2>&5
5082   ac_status=$?
5083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084   (exit $ac_status); }; }; then
5085   ac_cv_lib_ld_main=yes
5086 else
5087   echo "$as_me: failed program was:" >&5
5088 cat conftest.$ac_ext >&5
5089 ac_cv_lib_ld_main=no
5090 fi
5091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5092 LIBS=$ac_check_lib_save_LIBS
5093 fi
5094 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5095 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5096 if test $ac_cv_lib_ld_main = yes; then
5097   cat >>confdefs.h <<_ACEOF
5098 #define HAVE_LIBLD 1
5099 _ACEOF
5100
5101   LIBS="-lld $LIBS"
5102
5103 fi
5104
5105
5106 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5107 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5108 if test "${ac_cv_lib_compat_main+set}" = set; then
5109   echo $ECHO_N "(cached) $ECHO_C" >&6
5110 else
5111   ac_check_lib_save_LIBS=$LIBS
5112 LIBS="-lcompat  $LIBS"
5113 cat >conftest.$ac_ext <<_ACEOF
5114 #line $LINENO "configure"
5115 #include "confdefs.h"
5116
5117
5118 #ifdef F77_DUMMY_MAIN
5119 #  ifdef __cplusplus
5120      extern "C"
5121 #  endif
5122    int F77_DUMMY_MAIN() { return 1; }
5123 #endif
5124 int
5125 main ()
5126 {
5127 main ();
5128   ;
5129   return 0;
5130 }
5131 _ACEOF
5132 rm -f conftest.$ac_objext conftest$ac_exeext
5133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5134   (eval $ac_link) 2>&5
5135   ac_status=$?
5136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137   (exit $ac_status); } &&
5138          { ac_try='test -s conftest$ac_exeext'
5139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140   (eval $ac_try) 2>&5
5141   ac_status=$?
5142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143   (exit $ac_status); }; }; then
5144   ac_cv_lib_compat_main=yes
5145 else
5146   echo "$as_me: failed program was:" >&5
5147 cat conftest.$ac_ext >&5
5148 ac_cv_lib_compat_main=no
5149 fi
5150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5151 LIBS=$ac_check_lib_save_LIBS
5152 fi
5153 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5154 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5155 if test $ac_cv_lib_compat_main = yes; then
5156   cat >>confdefs.h <<_ACEOF
5157 #define HAVE_LIBCOMPAT 1
5158 _ACEOF
5159
5160   LIBS="-lcompat $LIBS"
5161
5162 fi
5163
5164
5165 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5166 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5167 if test "${ac_cv_lib_BSD_main+set}" = set; then
5168   echo $ECHO_N "(cached) $ECHO_C" >&6
5169 else
5170   ac_check_lib_save_LIBS=$LIBS
5171 LIBS="-lBSD  $LIBS"
5172 cat >conftest.$ac_ext <<_ACEOF
5173 #line $LINENO "configure"
5174 #include "confdefs.h"
5175
5176
5177 #ifdef F77_DUMMY_MAIN
5178 #  ifdef __cplusplus
5179      extern "C"
5180 #  endif
5181    int F77_DUMMY_MAIN() { return 1; }
5182 #endif
5183 int
5184 main ()
5185 {
5186 main ();
5187   ;
5188   return 0;
5189 }
5190 _ACEOF
5191 rm -f conftest.$ac_objext conftest$ac_exeext
5192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5193   (eval $ac_link) 2>&5
5194   ac_status=$?
5195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196   (exit $ac_status); } &&
5197          { ac_try='test -s conftest$ac_exeext'
5198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199   (eval $ac_try) 2>&5
5200   ac_status=$?
5201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202   (exit $ac_status); }; }; then
5203   ac_cv_lib_BSD_main=yes
5204 else
5205   echo "$as_me: failed program was:" >&5
5206 cat conftest.$ac_ext >&5
5207 ac_cv_lib_BSD_main=no
5208 fi
5209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5210 LIBS=$ac_check_lib_save_LIBS
5211 fi
5212 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5213 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5214 if test $ac_cv_lib_BSD_main = yes; then
5215   cat >>confdefs.h <<_ACEOF
5216 #define HAVE_LIBBSD 1
5217 _ACEOF
5218
5219   LIBS="-lBSD $LIBS"
5220
5221 fi
5222
5223
5224 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5225 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5226 if test "${ac_cv_lib_gen_main+set}" = set; then
5227   echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229   ac_check_lib_save_LIBS=$LIBS
5230 LIBS="-lgen  $LIBS"
5231 cat >conftest.$ac_ext <<_ACEOF
5232 #line $LINENO "configure"
5233 #include "confdefs.h"
5234
5235
5236 #ifdef F77_DUMMY_MAIN
5237 #  ifdef __cplusplus
5238      extern "C"
5239 #  endif
5240    int F77_DUMMY_MAIN() { return 1; }
5241 #endif
5242 int
5243 main ()
5244 {
5245 main ();
5246   ;
5247   return 0;
5248 }
5249 _ACEOF
5250 rm -f conftest.$ac_objext conftest$ac_exeext
5251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5252   (eval $ac_link) 2>&5
5253   ac_status=$?
5254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255   (exit $ac_status); } &&
5256          { ac_try='test -s conftest$ac_exeext'
5257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258   (eval $ac_try) 2>&5
5259   ac_status=$?
5260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261   (exit $ac_status); }; }; then
5262   ac_cv_lib_gen_main=yes
5263 else
5264   echo "$as_me: failed program was:" >&5
5265 cat conftest.$ac_ext >&5
5266 ac_cv_lib_gen_main=no
5267 fi
5268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5269 LIBS=$ac_check_lib_save_LIBS
5270 fi
5271 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5272 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5273 if test $ac_cv_lib_gen_main = yes; then
5274   cat >>confdefs.h <<_ACEOF
5275 #define HAVE_LIBGEN 1
5276 _ACEOF
5277
5278   LIBS="-lgen $LIBS"
5279
5280 fi
5281
5282
5283 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5284 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5285 if test "${ac_cv_lib_PW_main+set}" = set; then
5286   echo $ECHO_N "(cached) $ECHO_C" >&6
5287 else
5288   ac_check_lib_save_LIBS=$LIBS
5289 LIBS="-lPW  $LIBS"
5290 cat >conftest.$ac_ext <<_ACEOF
5291 #line $LINENO "configure"
5292 #include "confdefs.h"
5293
5294
5295 #ifdef F77_DUMMY_MAIN
5296 #  ifdef __cplusplus
5297      extern "C"
5298 #  endif
5299    int F77_DUMMY_MAIN() { return 1; }
5300 #endif
5301 int
5302 main ()
5303 {
5304 main ();
5305   ;
5306   return 0;
5307 }
5308 _ACEOF
5309 rm -f conftest.$ac_objext conftest$ac_exeext
5310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5311   (eval $ac_link) 2>&5
5312   ac_status=$?
5313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314   (exit $ac_status); } &&
5315          { ac_try='test -s conftest$ac_exeext'
5316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317   (eval $ac_try) 2>&5
5318   ac_status=$?
5319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320   (exit $ac_status); }; }; then
5321   ac_cv_lib_PW_main=yes
5322 else
5323   echo "$as_me: failed program was:" >&5
5324 cat conftest.$ac_ext >&5
5325 ac_cv_lib_PW_main=no
5326 fi
5327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5328 LIBS=$ac_check_lib_save_LIBS
5329 fi
5330 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5331 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5332 if test $ac_cv_lib_PW_main = yes; then
5333   cat >>confdefs.h <<_ACEOF
5334 #define HAVE_LIBPW 1
5335 _ACEOF
5336
5337   LIBS="-lPW $LIBS"
5338
5339 fi
5340
5341
5342 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5343 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5344 if test "${ac_cv_lib_resolv_main+set}" = set; then
5345   echo $ECHO_N "(cached) $ECHO_C" >&6
5346 else
5347   ac_check_lib_save_LIBS=$LIBS
5348 LIBS="-lresolv  $LIBS"
5349 cat >conftest.$ac_ext <<_ACEOF
5350 #line $LINENO "configure"
5351 #include "confdefs.h"
5352
5353
5354 #ifdef F77_DUMMY_MAIN
5355 #  ifdef __cplusplus
5356      extern "C"
5357 #  endif
5358    int F77_DUMMY_MAIN() { return 1; }
5359 #endif
5360 int
5361 main ()
5362 {
5363 main ();
5364   ;
5365   return 0;
5366 }
5367 _ACEOF
5368 rm -f conftest.$ac_objext conftest$ac_exeext
5369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5370   (eval $ac_link) 2>&5
5371   ac_status=$?
5372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373   (exit $ac_status); } &&
5374          { ac_try='test -s conftest$ac_exeext'
5375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376   (eval $ac_try) 2>&5
5377   ac_status=$?
5378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379   (exit $ac_status); }; }; then
5380   ac_cv_lib_resolv_main=yes
5381 else
5382   echo "$as_me: failed program was:" >&5
5383 cat conftest.$ac_ext >&5
5384 ac_cv_lib_resolv_main=no
5385 fi
5386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5387 LIBS=$ac_check_lib_save_LIBS
5388 fi
5389 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5390 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5391 if test $ac_cv_lib_resolv_main = yes; then
5392   cat >>confdefs.h <<_ACEOF
5393 #define HAVE_LIBRESOLV 1
5394 _ACEOF
5395
5396   LIBS="-lresolv $LIBS"
5397
5398 fi
5399
5400 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5401 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5402 if test "${ac_cv_search_getopt_long+set}" = set; then
5403   echo $ECHO_N "(cached) $ECHO_C" >&6
5404 else
5405   ac_func_search_save_LIBS=$LIBS
5406 ac_cv_search_getopt_long=no
5407 cat >conftest.$ac_ext <<_ACEOF
5408 #line $LINENO "configure"
5409 #include "confdefs.h"
5410
5411 /* Override any gcc2 internal prototype to avoid an error.  */
5412 #ifdef __cplusplus
5413 extern "C"
5414 #endif
5415 /* We use char because int might match the return type of a gcc2
5416    builtin and then its argument prototype would still apply.  */
5417 char getopt_long ();
5418 #ifdef F77_DUMMY_MAIN
5419 #  ifdef __cplusplus
5420      extern "C"
5421 #  endif
5422    int F77_DUMMY_MAIN() { return 1; }
5423 #endif
5424 int
5425 main ()
5426 {
5427 getopt_long ();
5428   ;
5429   return 0;
5430 }
5431 _ACEOF
5432 rm -f conftest.$ac_objext conftest$ac_exeext
5433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5434   (eval $ac_link) 2>&5
5435   ac_status=$?
5436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437   (exit $ac_status); } &&
5438          { ac_try='test -s conftest$ac_exeext'
5439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440   (eval $ac_try) 2>&5
5441   ac_status=$?
5442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443   (exit $ac_status); }; }; then
5444   ac_cv_search_getopt_long="none required"
5445 else
5446   echo "$as_me: failed program was:" >&5
5447 cat conftest.$ac_ext >&5
5448 fi
5449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5450 if test "$ac_cv_search_getopt_long" = no; then
5451   for ac_lib in getopt gnugetopt; do
5452     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5453     cat >conftest.$ac_ext <<_ACEOF
5454 #line $LINENO "configure"
5455 #include "confdefs.h"
5456
5457 /* Override any gcc2 internal prototype to avoid an error.  */
5458 #ifdef __cplusplus
5459 extern "C"
5460 #endif
5461 /* We use char because int might match the return type of a gcc2
5462    builtin and then its argument prototype would still apply.  */
5463 char getopt_long ();
5464 #ifdef F77_DUMMY_MAIN
5465 #  ifdef __cplusplus
5466      extern "C"
5467 #  endif
5468    int F77_DUMMY_MAIN() { return 1; }
5469 #endif
5470 int
5471 main ()
5472 {
5473 getopt_long ();
5474   ;
5475   return 0;
5476 }
5477 _ACEOF
5478 rm -f conftest.$ac_objext conftest$ac_exeext
5479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5480   (eval $ac_link) 2>&5
5481   ac_status=$?
5482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483   (exit $ac_status); } &&
5484          { ac_try='test -s conftest$ac_exeext'
5485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5486   (eval $ac_try) 2>&5
5487   ac_status=$?
5488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489   (exit $ac_status); }; }; then
5490   ac_cv_search_getopt_long="-l$ac_lib"
5491 break
5492 else
5493   echo "$as_me: failed program was:" >&5
5494 cat conftest.$ac_ext >&5
5495 fi
5496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5497   done
5498 fi
5499 LIBS=$ac_func_search_save_LIBS
5500 fi
5501 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5502 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5503 if test "$ac_cv_search_getopt_long" != no; then
5504   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5505
5506 fi
5507
5508 # QNX:
5509
5510 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5511 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5512 if test "${ac_cv_lib_unix_main+set}" = set; then
5513   echo $ECHO_N "(cached) $ECHO_C" >&6
5514 else
5515   ac_check_lib_save_LIBS=$LIBS
5516 LIBS="-lunix  $LIBS"
5517 cat >conftest.$ac_ext <<_ACEOF
5518 #line $LINENO "configure"
5519 #include "confdefs.h"
5520
5521
5522 #ifdef F77_DUMMY_MAIN
5523 #  ifdef __cplusplus
5524      extern "C"
5525 #  endif
5526    int F77_DUMMY_MAIN() { return 1; }
5527 #endif
5528 int
5529 main ()
5530 {
5531 main ();
5532   ;
5533   return 0;
5534 }
5535 _ACEOF
5536 rm -f conftest.$ac_objext conftest$ac_exeext
5537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5538   (eval $ac_link) 2>&5
5539   ac_status=$?
5540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541   (exit $ac_status); } &&
5542          { ac_try='test -s conftest$ac_exeext'
5543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544   (eval $ac_try) 2>&5
5545   ac_status=$?
5546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547   (exit $ac_status); }; }; then
5548   ac_cv_lib_unix_main=yes
5549 else
5550   echo "$as_me: failed program was:" >&5
5551 cat conftest.$ac_ext >&5
5552 ac_cv_lib_unix_main=no
5553 fi
5554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5555 LIBS=$ac_check_lib_save_LIBS
5556 fi
5557 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5558 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5559 if test $ac_cv_lib_unix_main = yes; then
5560   cat >>confdefs.h <<_ACEOF
5561 #define HAVE_LIBUNIX 1
5562 _ACEOF
5563
5564   LIBS="-lunix $LIBS"
5565
5566 fi
5567
5568 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5569 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5570 if test "${ac_cv_search_crypt+set}" = set; then
5571   echo $ECHO_N "(cached) $ECHO_C" >&6
5572 else
5573   ac_func_search_save_LIBS=$LIBS
5574 ac_cv_search_crypt=no
5575 cat >conftest.$ac_ext <<_ACEOF
5576 #line $LINENO "configure"
5577 #include "confdefs.h"
5578
5579 /* Override any gcc2 internal prototype to avoid an error.  */
5580 #ifdef __cplusplus
5581 extern "C"
5582 #endif
5583 /* We use char because int might match the return type of a gcc2
5584    builtin and then its argument prototype would still apply.  */
5585 char crypt ();
5586 #ifdef F77_DUMMY_MAIN
5587 #  ifdef __cplusplus
5588      extern "C"
5589 #  endif
5590    int F77_DUMMY_MAIN() { return 1; }
5591 #endif
5592 int
5593 main ()
5594 {
5595 crypt ();
5596   ;
5597   return 0;
5598 }
5599 _ACEOF
5600 rm -f conftest.$ac_objext conftest$ac_exeext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5602   (eval $ac_link) 2>&5
5603   ac_status=$?
5604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605   (exit $ac_status); } &&
5606          { ac_try='test -s conftest$ac_exeext'
5607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608   (eval $ac_try) 2>&5
5609   ac_status=$?
5610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611   (exit $ac_status); }; }; then
5612   ac_cv_search_crypt="none required"
5613 else
5614   echo "$as_me: failed program was:" >&5
5615 cat conftest.$ac_ext >&5
5616 fi
5617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5618 if test "$ac_cv_search_crypt" = no; then
5619   for ac_lib in crypt; do
5620     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5621     cat >conftest.$ac_ext <<_ACEOF
5622 #line $LINENO "configure"
5623 #include "confdefs.h"
5624
5625 /* Override any gcc2 internal prototype to avoid an error.  */
5626 #ifdef __cplusplus
5627 extern "C"
5628 #endif
5629 /* We use char because int might match the return type of a gcc2
5630    builtin and then its argument prototype would still apply.  */
5631 char crypt ();
5632 #ifdef F77_DUMMY_MAIN
5633 #  ifdef __cplusplus
5634      extern "C"
5635 #  endif
5636    int F77_DUMMY_MAIN() { return 1; }
5637 #endif
5638 int
5639 main ()
5640 {
5641 crypt ();
5642   ;
5643   return 0;
5644 }
5645 _ACEOF
5646 rm -f conftest.$ac_objext conftest$ac_exeext
5647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5648   (eval $ac_link) 2>&5
5649   ac_status=$?
5650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651   (exit $ac_status); } &&
5652          { ac_try='test -s conftest$ac_exeext'
5653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5654   (eval $ac_try) 2>&5
5655   ac_status=$?
5656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657   (exit $ac_status); }; }; then
5658   ac_cv_search_crypt="-l$ac_lib"
5659 break
5660 else
5661   echo "$as_me: failed program was:" >&5
5662 cat conftest.$ac_ext >&5
5663 fi
5664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5665   done
5666 fi
5667 LIBS=$ac_func_search_save_LIBS
5668 fi
5669 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5670 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5671 if test "$ac_cv_search_crypt" != no; then
5672   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5673
5674 fi
5675
5676 # BeOS:
5677 if test "$PORTNAME" = "beos"
5678 then
5679
5680 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5681 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5682 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5683   echo $ECHO_N "(cached) $ECHO_C" >&6
5684 else
5685   ac_check_lib_save_LIBS=$LIBS
5686 LIBS="-lbind  $LIBS"
5687 cat >conftest.$ac_ext <<_ACEOF
5688 #line $LINENO "configure"
5689 #include "confdefs.h"
5690
5691 /* Override any gcc2 internal prototype to avoid an error.  */
5692 #ifdef __cplusplus
5693 extern "C"
5694 #endif
5695 /* We use char because int might match the return type of a gcc2
5696    builtin and then its argument prototype would still apply.  */
5697 char __inet_ntoa ();
5698 #ifdef F77_DUMMY_MAIN
5699 #  ifdef __cplusplus
5700      extern "C"
5701 #  endif
5702    int F77_DUMMY_MAIN() { return 1; }
5703 #endif
5704 int
5705 main ()
5706 {
5707 __inet_ntoa ();
5708   ;
5709   return 0;
5710 }
5711 _ACEOF
5712 rm -f conftest.$ac_objext conftest$ac_exeext
5713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5714   (eval $ac_link) 2>&5
5715   ac_status=$?
5716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717   (exit $ac_status); } &&
5718          { ac_try='test -s conftest$ac_exeext'
5719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720   (eval $ac_try) 2>&5
5721   ac_status=$?
5722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723   (exit $ac_status); }; }; then
5724   ac_cv_lib_bind___inet_ntoa=yes
5725 else
5726   echo "$as_me: failed program was:" >&5
5727 cat conftest.$ac_ext >&5
5728 ac_cv_lib_bind___inet_ntoa=no
5729 fi
5730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5731 LIBS=$ac_check_lib_save_LIBS
5732 fi
5733 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5734 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5735 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5736   cat >>confdefs.h <<_ACEOF
5737 #define HAVE_LIBBIND 1
5738 _ACEOF
5739
5740   LIBS="-lbind $LIBS"
5741
5742 fi
5743
5744 fi
5745 # Solaris:
5746 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5747 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5748 if test "${ac_cv_search_fdatasync+set}" = set; then
5749   echo $ECHO_N "(cached) $ECHO_C" >&6
5750 else
5751   ac_func_search_save_LIBS=$LIBS
5752 ac_cv_search_fdatasync=no
5753 cat >conftest.$ac_ext <<_ACEOF
5754 #line $LINENO "configure"
5755 #include "confdefs.h"
5756
5757 /* Override any gcc2 internal prototype to avoid an error.  */
5758 #ifdef __cplusplus
5759 extern "C"
5760 #endif
5761 /* We use char because int might match the return type of a gcc2
5762    builtin and then its argument prototype would still apply.  */
5763 char fdatasync ();
5764 #ifdef F77_DUMMY_MAIN
5765 #  ifdef __cplusplus
5766      extern "C"
5767 #  endif
5768    int F77_DUMMY_MAIN() { return 1; }
5769 #endif
5770 int
5771 main ()
5772 {
5773 fdatasync ();
5774   ;
5775   return 0;
5776 }
5777 _ACEOF
5778 rm -f conftest.$ac_objext conftest$ac_exeext
5779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5780   (eval $ac_link) 2>&5
5781   ac_status=$?
5782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783   (exit $ac_status); } &&
5784          { ac_try='test -s conftest$ac_exeext'
5785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786   (eval $ac_try) 2>&5
5787   ac_status=$?
5788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789   (exit $ac_status); }; }; then
5790   ac_cv_search_fdatasync="none required"
5791 else
5792   echo "$as_me: failed program was:" >&5
5793 cat conftest.$ac_ext >&5
5794 fi
5795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5796 if test "$ac_cv_search_fdatasync" = no; then
5797   for ac_lib in rt posix4; do
5798     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5799     cat >conftest.$ac_ext <<_ACEOF
5800 #line $LINENO "configure"
5801 #include "confdefs.h"
5802
5803 /* Override any gcc2 internal prototype to avoid an error.  */
5804 #ifdef __cplusplus
5805 extern "C"
5806 #endif
5807 /* We use char because int might match the return type of a gcc2
5808    builtin and then its argument prototype would still apply.  */
5809 char fdatasync ();
5810 #ifdef F77_DUMMY_MAIN
5811 #  ifdef __cplusplus
5812      extern "C"
5813 #  endif
5814    int F77_DUMMY_MAIN() { return 1; }
5815 #endif
5816 int
5817 main ()
5818 {
5819 fdatasync ();
5820   ;
5821   return 0;
5822 }
5823 _ACEOF
5824 rm -f conftest.$ac_objext conftest$ac_exeext
5825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5826   (eval $ac_link) 2>&5
5827   ac_status=$?
5828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829   (exit $ac_status); } &&
5830          { ac_try='test -s conftest$ac_exeext'
5831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832   (eval $ac_try) 2>&5
5833   ac_status=$?
5834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835   (exit $ac_status); }; }; then
5836   ac_cv_search_fdatasync="-l$ac_lib"
5837 break
5838 else
5839   echo "$as_me: failed program was:" >&5
5840 cat conftest.$ac_ext >&5
5841 fi
5842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5843   done
5844 fi
5845 LIBS=$ac_func_search_save_LIBS
5846 fi
5847 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5848 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5849 if test "$ac_cv_search_fdatasync" != no; then
5850   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5851
5852 fi
5853
5854 # Cygwin:
5855
5856 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5857 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5858 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5859   echo $ECHO_N "(cached) $ECHO_C" >&6
5860 else
5861   ac_check_lib_save_LIBS=$LIBS
5862 LIBS="-lcygipc  $LIBS"
5863 cat >conftest.$ac_ext <<_ACEOF
5864 #line $LINENO "configure"
5865 #include "confdefs.h"
5866
5867 /* Override any gcc2 internal prototype to avoid an error.  */
5868 #ifdef __cplusplus
5869 extern "C"
5870 #endif
5871 /* We use char because int might match the return type of a gcc2
5872    builtin and then its argument prototype would still apply.  */
5873 char shmget ();
5874 #ifdef F77_DUMMY_MAIN
5875 #  ifdef __cplusplus
5876      extern "C"
5877 #  endif
5878    int F77_DUMMY_MAIN() { return 1; }
5879 #endif
5880 int
5881 main ()
5882 {
5883 shmget ();
5884   ;
5885   return 0;
5886 }
5887 _ACEOF
5888 rm -f conftest.$ac_objext conftest$ac_exeext
5889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5890   (eval $ac_link) 2>&5
5891   ac_status=$?
5892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893   (exit $ac_status); } &&
5894          { ac_try='test -s conftest$ac_exeext'
5895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5896   (eval $ac_try) 2>&5
5897   ac_status=$?
5898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899   (exit $ac_status); }; }; then
5900   ac_cv_lib_cygipc_shmget=yes
5901 else
5902   echo "$as_me: failed program was:" >&5
5903 cat conftest.$ac_ext >&5
5904 ac_cv_lib_cygipc_shmget=no
5905 fi
5906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5907 LIBS=$ac_check_lib_save_LIBS
5908 fi
5909 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5910 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5911 if test $ac_cv_lib_cygipc_shmget = yes; then
5912   cat >>confdefs.h <<_ACEOF
5913 #define HAVE_LIBCYGIPC 1
5914 _ACEOF
5915
5916   LIBS="-lcygipc $LIBS"
5917
5918 fi
5919
5920 # WIN32:
5921 if test "$PORTNAME" = "win32"
5922 then
5923
5924 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5925 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5926 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5927   echo $ECHO_N "(cached) $ECHO_C" >&6
5928 else
5929   ac_check_lib_save_LIBS=$LIBS
5930 LIBS="-lwsock32  $LIBS"
5931 cat >conftest.$ac_ext <<_ACEOF
5932 #line $LINENO "configure"
5933 #include "confdefs.h"
5934
5935
5936 #ifdef F77_DUMMY_MAIN
5937 #  ifdef __cplusplus
5938      extern "C"
5939 #  endif
5940    int F77_DUMMY_MAIN() { return 1; }
5941 #endif
5942 int
5943 main ()
5944 {
5945 main ();
5946   ;
5947   return 0;
5948 }
5949 _ACEOF
5950 rm -f conftest.$ac_objext conftest$ac_exeext
5951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5952   (eval $ac_link) 2>&5
5953   ac_status=$?
5954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955   (exit $ac_status); } &&
5956          { ac_try='test -s conftest$ac_exeext'
5957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958   (eval $ac_try) 2>&5
5959   ac_status=$?
5960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961   (exit $ac_status); }; }; then
5962   ac_cv_lib_wsock32_main=yes
5963 else
5964   echo "$as_me: failed program was:" >&5
5965 cat conftest.$ac_ext >&5
5966 ac_cv_lib_wsock32_main=no
5967 fi
5968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5969 LIBS=$ac_check_lib_save_LIBS
5970 fi
5971 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5972 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5973 if test $ac_cv_lib_wsock32_main = yes; then
5974   cat >>confdefs.h <<_ACEOF
5975 #define HAVE_LIBWSOCK32 1
5976 _ACEOF
5977
5978   LIBS="-lwsock32 $LIBS"
5979
5980 fi
5981
5982 fi
5983
5984 if test "$with_readline" = yes; then
5985
5986 echo "$as_me:$LINENO: checking for readline" >&5
5987 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5988
5989 if test "${pgac_cv_check_readline+set}" = set; then
5990   echo $ECHO_N "(cached) $ECHO_C" >&6
5991 else
5992   pgac_cv_check_readline=no
5993 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5994   for pgac_rllib in -lreadline -ledit ; do
5995     pgac_save_LIBS=$LIBS
5996     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5997     cat >conftest.$ac_ext <<_ACEOF
5998 #line $LINENO "configure"
5999 #include "confdefs.h"
6000
6001 /* Override any gcc2 internal prototype to avoid an error.  */
6002 #ifdef __cplusplus
6003 extern "C"
6004 #endif
6005 /* We use char because int might match the return type of a gcc2
6006    builtin and then its argument prototype would still apply.  */
6007 char readline ();
6008 #ifdef F77_DUMMY_MAIN
6009 #  ifdef __cplusplus
6010      extern "C"
6011 #  endif
6012    int F77_DUMMY_MAIN() { return 1; }
6013 #endif
6014 int
6015 main ()
6016 {
6017 readline ();
6018   ;
6019   return 0;
6020 }
6021 _ACEOF
6022 rm -f conftest.$ac_objext conftest$ac_exeext
6023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6024   (eval $ac_link) 2>&5
6025   ac_status=$?
6026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027   (exit $ac_status); } &&
6028          { ac_try='test -s conftest$ac_exeext'
6029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030   (eval $ac_try) 2>&5
6031   ac_status=$?
6032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033   (exit $ac_status); }; }; then
6034
6035       # NetBSD and OpenBSD have a broken linker that does not
6036       # recognize dependent libraries
6037       case $host_os in netbsd* | openbsd* )
6038         case $pgac_lib in
6039           *curses*) ;;
6040           *) pgac_lib=" -lcurses" ;;
6041         esac
6042       esac
6043
6044       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6045       break 2
6046
6047 else
6048   echo "$as_me: failed program was:" >&5
6049 cat conftest.$ac_ext >&5
6050 fi
6051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6052     LIBS=$pgac_save_LIBS
6053   done
6054 done
6055 LIBS=$pgac_save_LIBS
6056
6057 fi
6058
6059 if test "$pgac_cv_check_readline" != no ; then
6060
6061 cat >>confdefs.h <<\_ACEOF
6062 #define HAVE_LIBREADLINE 1
6063 _ACEOF
6064
6065   LIBS="$pgac_cv_check_readline $LIBS"
6066   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6067 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6068 else
6069   echo "$as_me:$LINENO: result: no" >&5
6070 echo "${ECHO_T}no" >&6
6071 fi
6072   if test x"$pgac_cv_check_readline" = x"no"; then
6073     { { echo "$as_me:$LINENO: error: readline library not found
6074 If you have readline already installed, see config.log for details on the
6075 failure.  It is possible the compiler isn't looking in the proper directory.
6076 Use --without-readline to disable readline support." >&5
6077 echo "$as_me: 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." >&2;}
6081    { (exit 1); exit 1; }; }
6082   fi
6083 fi
6084
6085 if test "$with_zlib" = yes; then
6086
6087 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6088 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6089 if test "${ac_cv_lib_z_inflate+set}" = set; then
6090   echo $ECHO_N "(cached) $ECHO_C" >&6
6091 else
6092   ac_check_lib_save_LIBS=$LIBS
6093 LIBS="-lz  $LIBS"
6094 cat >conftest.$ac_ext <<_ACEOF
6095 #line $LINENO "configure"
6096 #include "confdefs.h"
6097
6098 /* Override any gcc2 internal prototype to avoid an error.  */
6099 #ifdef __cplusplus
6100 extern "C"
6101 #endif
6102 /* We use char because int might match the return type of a gcc2
6103    builtin and then its argument prototype would still apply.  */
6104 char inflate ();
6105 #ifdef F77_DUMMY_MAIN
6106 #  ifdef __cplusplus
6107      extern "C"
6108 #  endif
6109    int F77_DUMMY_MAIN() { return 1; }
6110 #endif
6111 int
6112 main ()
6113 {
6114 inflate ();
6115   ;
6116   return 0;
6117 }
6118 _ACEOF
6119 rm -f conftest.$ac_objext conftest$ac_exeext
6120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6121   (eval $ac_link) 2>&5
6122   ac_status=$?
6123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124   (exit $ac_status); } &&
6125          { ac_try='test -s conftest$ac_exeext'
6126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127   (eval $ac_try) 2>&5
6128   ac_status=$?
6129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130   (exit $ac_status); }; }; then
6131   ac_cv_lib_z_inflate=yes
6132 else
6133   echo "$as_me: failed program was:" >&5
6134 cat conftest.$ac_ext >&5
6135 ac_cv_lib_z_inflate=no
6136 fi
6137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6138 LIBS=$ac_check_lib_save_LIBS
6139 fi
6140 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6141 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6142 if test $ac_cv_lib_z_inflate = yes; then
6143   cat >>confdefs.h <<_ACEOF
6144 #define HAVE_LIBZ 1
6145 _ACEOF
6146
6147   LIBS="-lz $LIBS"
6148
6149 else
6150   { { echo "$as_me:$LINENO: error: zlib library not found
6151 If you have zlib already installed, see config.log for details on the
6152 failure.  It is possible the compiler isn't looking in the proper directory.
6153 Use --without-zlib to disable zlib support." >&5
6154 echo "$as_me: 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." >&2;}
6158    { (exit 1); exit 1; }; }
6159 fi
6160
6161 fi
6162
6163 if test "$enable_spinlocks" = yes; then
6164
6165 cat >>confdefs.h <<\_ACEOF
6166 #define HAVE_SPINLOCKS 1
6167 _ACEOF
6168
6169 else
6170   { echo "$as_me:$LINENO: WARNING:
6171 *** Not using spinlocks will cause poor performance." >&5
6172 echo "$as_me: WARNING:
6173 *** Not using spinlocks will cause poor performance." >&2;}
6174 fi
6175
6176 if test "$with_krb4" = yes ; then
6177
6178 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6179 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6180 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6181   echo $ECHO_N "(cached) $ECHO_C" >&6
6182 else
6183   ac_check_lib_save_LIBS=$LIBS
6184 LIBS="-ldes  $LIBS"
6185 cat >conftest.$ac_ext <<_ACEOF
6186 #line $LINENO "configure"
6187 #include "confdefs.h"
6188
6189 /* Override any gcc2 internal prototype to avoid an error.  */
6190 #ifdef __cplusplus
6191 extern "C"
6192 #endif
6193 /* We use char because int might match the return type of a gcc2
6194    builtin and then its argument prototype would still apply.  */
6195 char des_encrypt ();
6196 #ifdef F77_DUMMY_MAIN
6197 #  ifdef __cplusplus
6198      extern "C"
6199 #  endif
6200    int F77_DUMMY_MAIN() { return 1; }
6201 #endif
6202 int
6203 main ()
6204 {
6205 des_encrypt ();
6206   ;
6207   return 0;
6208 }
6209 _ACEOF
6210 rm -f conftest.$ac_objext conftest$ac_exeext
6211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6212   (eval $ac_link) 2>&5
6213   ac_status=$?
6214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215   (exit $ac_status); } &&
6216          { ac_try='test -s conftest$ac_exeext'
6217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218   (eval $ac_try) 2>&5
6219   ac_status=$?
6220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221   (exit $ac_status); }; }; then
6222   ac_cv_lib_des_des_encrypt=yes
6223 else
6224   echo "$as_me: failed program was:" >&5
6225 cat conftest.$ac_ext >&5
6226 ac_cv_lib_des_des_encrypt=no
6227 fi
6228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6229 LIBS=$ac_check_lib_save_LIBS
6230 fi
6231 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6232 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6233 if test $ac_cv_lib_des_des_encrypt = yes; then
6234   cat >>confdefs.h <<_ACEOF
6235 #define HAVE_LIBDES 1
6236 _ACEOF
6237
6238   LIBS="-ldes $LIBS"
6239
6240 else
6241   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6242 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6243    { (exit 1); exit 1; }; }
6244 fi
6245
6246
6247 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6248 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6249 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6250   echo $ECHO_N "(cached) $ECHO_C" >&6
6251 else
6252   ac_check_lib_save_LIBS=$LIBS
6253 LIBS="-lkrb  $LIBS"
6254 cat >conftest.$ac_ext <<_ACEOF
6255 #line $LINENO "configure"
6256 #include "confdefs.h"
6257
6258 /* Override any gcc2 internal prototype to avoid an error.  */
6259 #ifdef __cplusplus
6260 extern "C"
6261 #endif
6262 /* We use char because int might match the return type of a gcc2
6263    builtin and then its argument prototype would still apply.  */
6264 char krb_sendauth ();
6265 #ifdef F77_DUMMY_MAIN
6266 #  ifdef __cplusplus
6267      extern "C"
6268 #  endif
6269    int F77_DUMMY_MAIN() { return 1; }
6270 #endif
6271 int
6272 main ()
6273 {
6274 krb_sendauth ();
6275   ;
6276   return 0;
6277 }
6278 _ACEOF
6279 rm -f conftest.$ac_objext conftest$ac_exeext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6281   (eval $ac_link) 2>&5
6282   ac_status=$?
6283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284   (exit $ac_status); } &&
6285          { ac_try='test -s conftest$ac_exeext'
6286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287   (eval $ac_try) 2>&5
6288   ac_status=$?
6289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290   (exit $ac_status); }; }; then
6291   ac_cv_lib_krb_krb_sendauth=yes
6292 else
6293   echo "$as_me: failed program was:" >&5
6294 cat conftest.$ac_ext >&5
6295 ac_cv_lib_krb_krb_sendauth=no
6296 fi
6297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6298 LIBS=$ac_check_lib_save_LIBS
6299 fi
6300 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6301 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6302 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6303   cat >>confdefs.h <<_ACEOF
6304 #define HAVE_LIBKRB 1
6305 _ACEOF
6306
6307   LIBS="-lkrb $LIBS"
6308
6309 else
6310   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6311 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6312    { (exit 1); exit 1; }; }
6313 fi
6314
6315
6316 for ac_func in gethostname
6317 do
6318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6319 echo "$as_me:$LINENO: checking for $ac_func" >&5
6320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6321 if eval "test \"\${$as_ac_var+set}\" = set"; then
6322   echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324   cat >conftest.$ac_ext <<_ACEOF
6325 #line $LINENO "configure"
6326 #include "confdefs.h"
6327 /* System header to define __stub macros and hopefully few prototypes,
6328     which can conflict with char $ac_func (); below.  */
6329 #include <assert.h>
6330 /* Override any gcc2 internal prototype to avoid an error.  */
6331 #ifdef __cplusplus
6332 extern "C"
6333 #endif
6334 /* We use char because int might match the return type of a gcc2
6335    builtin and then its argument prototype would still apply.  */
6336 char $ac_func ();
6337 char (*f) ();
6338
6339 #ifdef F77_DUMMY_MAIN
6340 #  ifdef __cplusplus
6341      extern "C"
6342 #  endif
6343    int F77_DUMMY_MAIN() { return 1; }
6344 #endif
6345 int
6346 main ()
6347 {
6348 /* The GNU C library defines this for functions which it implements
6349     to always fail with ENOSYS.  Some functions are actually named
6350     something starting with __ and the normal name is an alias.  */
6351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6352 choke me
6353 #else
6354 f = $ac_func;
6355 #endif
6356
6357   ;
6358   return 0;
6359 }
6360 _ACEOF
6361 rm -f conftest.$ac_objext conftest$ac_exeext
6362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6363   (eval $ac_link) 2>&5
6364   ac_status=$?
6365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366   (exit $ac_status); } &&
6367          { ac_try='test -s conftest$ac_exeext'
6368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369   (eval $ac_try) 2>&5
6370   ac_status=$?
6371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372   (exit $ac_status); }; }; then
6373   eval "$as_ac_var=yes"
6374 else
6375   echo "$as_me: failed program was:" >&5
6376 cat conftest.$ac_ext >&5
6377 eval "$as_ac_var=no"
6378 fi
6379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6380 fi
6381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6382 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6383 if test `eval echo '${'$as_ac_var'}'` = yes; then
6384   cat >>confdefs.h <<_ACEOF
6385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6386 _ACEOF
6387
6388 else
6389   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6390 fi
6391 done
6392
6393
6394 fi
6395
6396 if test "$with_krb5" = yes ; then
6397   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6398 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6399 if test "${ac_cv_search_com_err+set}" = set; then
6400   echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402   ac_func_search_save_LIBS=$LIBS
6403 ac_cv_search_com_err=no
6404 cat >conftest.$ac_ext <<_ACEOF
6405 #line $LINENO "configure"
6406 #include "confdefs.h"
6407
6408 /* Override any gcc2 internal prototype to avoid an error.  */
6409 #ifdef __cplusplus
6410 extern "C"
6411 #endif
6412 /* We use char because int might match the return type of a gcc2
6413    builtin and then its argument prototype would still apply.  */
6414 char com_err ();
6415 #ifdef F77_DUMMY_MAIN
6416 #  ifdef __cplusplus
6417      extern "C"
6418 #  endif
6419    int F77_DUMMY_MAIN() { return 1; }
6420 #endif
6421 int
6422 main ()
6423 {
6424 com_err ();
6425   ;
6426   return 0;
6427 }
6428 _ACEOF
6429 rm -f conftest.$ac_objext conftest$ac_exeext
6430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6431   (eval $ac_link) 2>&5
6432   ac_status=$?
6433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434   (exit $ac_status); } &&
6435          { ac_try='test -s conftest$ac_exeext'
6436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437   (eval $ac_try) 2>&5
6438   ac_status=$?
6439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440   (exit $ac_status); }; }; then
6441   ac_cv_search_com_err="none required"
6442 else
6443   echo "$as_me: failed program was:" >&5
6444 cat conftest.$ac_ext >&5
6445 fi
6446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6447 if test "$ac_cv_search_com_err" = no; then
6448   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6449     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6450     cat >conftest.$ac_ext <<_ACEOF
6451 #line $LINENO "configure"
6452 #include "confdefs.h"
6453
6454 /* Override any gcc2 internal prototype to avoid an error.  */
6455 #ifdef __cplusplus
6456 extern "C"
6457 #endif
6458 /* We use char because int might match the return type of a gcc2
6459    builtin and then its argument prototype would still apply.  */
6460 char com_err ();
6461 #ifdef F77_DUMMY_MAIN
6462 #  ifdef __cplusplus
6463      extern "C"
6464 #  endif
6465    int F77_DUMMY_MAIN() { return 1; }
6466 #endif
6467 int
6468 main ()
6469 {
6470 com_err ();
6471   ;
6472   return 0;
6473 }
6474 _ACEOF
6475 rm -f conftest.$ac_objext conftest$ac_exeext
6476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6477   (eval $ac_link) 2>&5
6478   ac_status=$?
6479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480   (exit $ac_status); } &&
6481          { ac_try='test -s conftest$ac_exeext'
6482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483   (eval $ac_try) 2>&5
6484   ac_status=$?
6485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486   (exit $ac_status); }; }; then
6487   ac_cv_search_com_err="-l$ac_lib"
6488 break
6489 else
6490   echo "$as_me: failed program was:" >&5
6491 cat conftest.$ac_ext >&5
6492 fi
6493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6494   done
6495 fi
6496 LIBS=$ac_func_search_save_LIBS
6497 fi
6498 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6499 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6500 if test "$ac_cv_search_com_err" != no; then
6501   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6502
6503 else
6504   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6505 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6506    { (exit 1); exit 1; }; }
6507 fi
6508
6509   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6510 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6511 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6512   echo $ECHO_N "(cached) $ECHO_C" >&6
6513 else
6514   ac_func_search_save_LIBS=$LIBS
6515 ac_cv_search_krb5_encrypt=no
6516 cat >conftest.$ac_ext <<_ACEOF
6517 #line $LINENO "configure"
6518 #include "confdefs.h"
6519
6520 /* Override any gcc2 internal prototype to avoid an error.  */
6521 #ifdef __cplusplus
6522 extern "C"
6523 #endif
6524 /* We use char because int might match the return type of a gcc2
6525    builtin and then its argument prototype would still apply.  */
6526 char krb5_encrypt ();
6527 #ifdef F77_DUMMY_MAIN
6528 #  ifdef __cplusplus
6529      extern "C"
6530 #  endif
6531    int F77_DUMMY_MAIN() { return 1; }
6532 #endif
6533 int
6534 main ()
6535 {
6536 krb5_encrypt ();
6537   ;
6538   return 0;
6539 }
6540 _ACEOF
6541 rm -f conftest.$ac_objext conftest$ac_exeext
6542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6543   (eval $ac_link) 2>&5
6544   ac_status=$?
6545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546   (exit $ac_status); } &&
6547          { ac_try='test -s conftest$ac_exeext'
6548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549   (eval $ac_try) 2>&5
6550   ac_status=$?
6551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552   (exit $ac_status); }; }; then
6553   ac_cv_search_krb5_encrypt="none required"
6554 else
6555   echo "$as_me: failed program was:" >&5
6556 cat conftest.$ac_ext >&5
6557 fi
6558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6559 if test "$ac_cv_search_krb5_encrypt" = no; then
6560   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6561     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6562     cat >conftest.$ac_ext <<_ACEOF
6563 #line $LINENO "configure"
6564 #include "confdefs.h"
6565
6566 /* Override any gcc2 internal prototype to avoid an error.  */
6567 #ifdef __cplusplus
6568 extern "C"
6569 #endif
6570 /* We use char because int might match the return type of a gcc2
6571    builtin and then its argument prototype would still apply.  */
6572 char krb5_encrypt ();
6573 #ifdef F77_DUMMY_MAIN
6574 #  ifdef __cplusplus
6575      extern "C"
6576 #  endif
6577    int F77_DUMMY_MAIN() { return 1; }
6578 #endif
6579 int
6580 main ()
6581 {
6582 krb5_encrypt ();
6583   ;
6584   return 0;
6585 }
6586 _ACEOF
6587 rm -f conftest.$ac_objext conftest$ac_exeext
6588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6589   (eval $ac_link) 2>&5
6590   ac_status=$?
6591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592   (exit $ac_status); } &&
6593          { ac_try='test -s conftest$ac_exeext'
6594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6595   (eval $ac_try) 2>&5
6596   ac_status=$?
6597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598   (exit $ac_status); }; }; then
6599   ac_cv_search_krb5_encrypt="-l$ac_lib"
6600 break
6601 else
6602   echo "$as_me: failed program was:" >&5
6603 cat conftest.$ac_ext >&5
6604 fi
6605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6606   done
6607 fi
6608 LIBS=$ac_func_search_save_LIBS
6609 fi
6610 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6611 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6612 if test "$ac_cv_search_krb5_encrypt" != no; then
6613   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6614
6615 else
6616   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6617 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6618    { (exit 1); exit 1; }; }
6619 fi
6620
6621   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6622 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6623 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6624   echo $ECHO_N "(cached) $ECHO_C" >&6
6625 else
6626   ac_func_search_save_LIBS=$LIBS
6627 ac_cv_search_krb5_sendauth=no
6628 cat >conftest.$ac_ext <<_ACEOF
6629 #line $LINENO "configure"
6630 #include "confdefs.h"
6631
6632 /* Override any gcc2 internal prototype to avoid an error.  */
6633 #ifdef __cplusplus
6634 extern "C"
6635 #endif
6636 /* We use char because int might match the return type of a gcc2
6637    builtin and then its argument prototype would still apply.  */
6638 char krb5_sendauth ();
6639 #ifdef F77_DUMMY_MAIN
6640 #  ifdef __cplusplus
6641      extern "C"
6642 #  endif
6643    int F77_DUMMY_MAIN() { return 1; }
6644 #endif
6645 int
6646 main ()
6647 {
6648 krb5_sendauth ();
6649   ;
6650   return 0;
6651 }
6652 _ACEOF
6653 rm -f conftest.$ac_objext conftest$ac_exeext
6654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6655   (eval $ac_link) 2>&5
6656   ac_status=$?
6657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658   (exit $ac_status); } &&
6659          { ac_try='test -s conftest$ac_exeext'
6660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661   (eval $ac_try) 2>&5
6662   ac_status=$?
6663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664   (exit $ac_status); }; }; then
6665   ac_cv_search_krb5_sendauth="none required"
6666 else
6667   echo "$as_me: failed program was:" >&5
6668 cat conftest.$ac_ext >&5
6669 fi
6670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6671 if test "$ac_cv_search_krb5_sendauth" = no; then
6672   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6673     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6674     cat >conftest.$ac_ext <<_ACEOF
6675 #line $LINENO "configure"
6676 #include "confdefs.h"
6677
6678 /* Override any gcc2 internal prototype to avoid an error.  */
6679 #ifdef __cplusplus
6680 extern "C"
6681 #endif
6682 /* We use char because int might match the return type of a gcc2
6683    builtin and then its argument prototype would still apply.  */
6684 char krb5_sendauth ();
6685 #ifdef F77_DUMMY_MAIN
6686 #  ifdef __cplusplus
6687      extern "C"
6688 #  endif
6689    int F77_DUMMY_MAIN() { return 1; }
6690 #endif
6691 int
6692 main ()
6693 {
6694 krb5_sendauth ();
6695   ;
6696   return 0;
6697 }
6698 _ACEOF
6699 rm -f conftest.$ac_objext conftest$ac_exeext
6700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6701   (eval $ac_link) 2>&5
6702   ac_status=$?
6703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704   (exit $ac_status); } &&
6705          { ac_try='test -s conftest$ac_exeext'
6706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707   (eval $ac_try) 2>&5
6708   ac_status=$?
6709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710   (exit $ac_status); }; }; then
6711   ac_cv_search_krb5_sendauth="-l$ac_lib"
6712 break
6713 else
6714   echo "$as_me: failed program was:" >&5
6715 cat conftest.$ac_ext >&5
6716 fi
6717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6718   done
6719 fi
6720 LIBS=$ac_func_search_save_LIBS
6721 fi
6722 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6723 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6724 if test "$ac_cv_search_krb5_sendauth" != no; then
6725   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6726
6727 else
6728   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6729 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6730    { (exit 1); exit 1; }; }
6731 fi
6732
6733 fi
6734
6735 if test "$with_openssl" = yes ; then
6736
6737 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6738 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6739 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6740   echo $ECHO_N "(cached) $ECHO_C" >&6
6741 else
6742   ac_check_lib_save_LIBS=$LIBS
6743 LIBS="-lcrypto  $LIBS"
6744 cat >conftest.$ac_ext <<_ACEOF
6745 #line $LINENO "configure"
6746 #include "confdefs.h"
6747
6748 /* Override any gcc2 internal prototype to avoid an error.  */
6749 #ifdef __cplusplus
6750 extern "C"
6751 #endif
6752 /* We use char because int might match the return type of a gcc2
6753    builtin and then its argument prototype would still apply.  */
6754 char CRYPTO_new_ex_data ();
6755 #ifdef F77_DUMMY_MAIN
6756 #  ifdef __cplusplus
6757      extern "C"
6758 #  endif
6759    int F77_DUMMY_MAIN() { return 1; }
6760 #endif
6761 int
6762 main ()
6763 {
6764 CRYPTO_new_ex_data ();
6765   ;
6766   return 0;
6767 }
6768 _ACEOF
6769 rm -f conftest.$ac_objext conftest$ac_exeext
6770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6771   (eval $ac_link) 2>&5
6772   ac_status=$?
6773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774   (exit $ac_status); } &&
6775          { ac_try='test -s conftest$ac_exeext'
6776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777   (eval $ac_try) 2>&5
6778   ac_status=$?
6779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780   (exit $ac_status); }; }; then
6781   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6782 else
6783   echo "$as_me: failed program was:" >&5
6784 cat conftest.$ac_ext >&5
6785 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6786 fi
6787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6788 LIBS=$ac_check_lib_save_LIBS
6789 fi
6790 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6791 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6792 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6793   cat >>confdefs.h <<_ACEOF
6794 #define HAVE_LIBCRYPTO 1
6795 _ACEOF
6796
6797   LIBS="-lcrypto $LIBS"
6798
6799 else
6800   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6801 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6802    { (exit 1); exit 1; }; }
6803 fi
6804
6805
6806 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6807 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6808 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6809   echo $ECHO_N "(cached) $ECHO_C" >&6
6810 else
6811   ac_check_lib_save_LIBS=$LIBS
6812 LIBS="-lssl  $LIBS"
6813 cat >conftest.$ac_ext <<_ACEOF
6814 #line $LINENO "configure"
6815 #include "confdefs.h"
6816
6817 /* Override any gcc2 internal prototype to avoid an error.  */
6818 #ifdef __cplusplus
6819 extern "C"
6820 #endif
6821 /* We use char because int might match the return type of a gcc2
6822    builtin and then its argument prototype would still apply.  */
6823 char SSL_library_init ();
6824 #ifdef F77_DUMMY_MAIN
6825 #  ifdef __cplusplus
6826      extern "C"
6827 #  endif
6828    int F77_DUMMY_MAIN() { return 1; }
6829 #endif
6830 int
6831 main ()
6832 {
6833 SSL_library_init ();
6834   ;
6835   return 0;
6836 }
6837 _ACEOF
6838 rm -f conftest.$ac_objext conftest$ac_exeext
6839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6840   (eval $ac_link) 2>&5
6841   ac_status=$?
6842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843   (exit $ac_status); } &&
6844          { ac_try='test -s conftest$ac_exeext'
6845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6846   (eval $ac_try) 2>&5
6847   ac_status=$?
6848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849   (exit $ac_status); }; }; then
6850   ac_cv_lib_ssl_SSL_library_init=yes
6851 else
6852   echo "$as_me: failed program was:" >&5
6853 cat conftest.$ac_ext >&5
6854 ac_cv_lib_ssl_SSL_library_init=no
6855 fi
6856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6857 LIBS=$ac_check_lib_save_LIBS
6858 fi
6859 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6860 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6861 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6862   cat >>confdefs.h <<_ACEOF
6863 #define HAVE_LIBSSL 1
6864 _ACEOF
6865
6866   LIBS="-lssl $LIBS"
6867
6868 else
6869   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6870 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6871    { (exit 1); exit 1; }; }
6872 fi
6873
6874 fi
6875
6876 if test "$with_pam" = yes ; then
6877
6878 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6879 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6880 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6881   echo $ECHO_N "(cached) $ECHO_C" >&6
6882 else
6883   ac_check_lib_save_LIBS=$LIBS
6884 LIBS="-lpam  $LIBS"
6885 cat >conftest.$ac_ext <<_ACEOF
6886 #line $LINENO "configure"
6887 #include "confdefs.h"
6888
6889 /* Override any gcc2 internal prototype to avoid an error.  */
6890 #ifdef __cplusplus
6891 extern "C"
6892 #endif
6893 /* We use char because int might match the return type of a gcc2
6894    builtin and then its argument prototype would still apply.  */
6895 char pam_start ();
6896 #ifdef F77_DUMMY_MAIN
6897 #  ifdef __cplusplus
6898      extern "C"
6899 #  endif
6900    int F77_DUMMY_MAIN() { return 1; }
6901 #endif
6902 int
6903 main ()
6904 {
6905 pam_start ();
6906   ;
6907   return 0;
6908 }
6909 _ACEOF
6910 rm -f conftest.$ac_objext conftest$ac_exeext
6911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6912   (eval $ac_link) 2>&5
6913   ac_status=$?
6914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915   (exit $ac_status); } &&
6916          { ac_try='test -s conftest$ac_exeext'
6917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918   (eval $ac_try) 2>&5
6919   ac_status=$?
6920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921   (exit $ac_status); }; }; then
6922   ac_cv_lib_pam_pam_start=yes
6923 else
6924   echo "$as_me: failed program was:" >&5
6925 cat conftest.$ac_ext >&5
6926 ac_cv_lib_pam_pam_start=no
6927 fi
6928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6929 LIBS=$ac_check_lib_save_LIBS
6930 fi
6931 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6932 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6933 if test $ac_cv_lib_pam_pam_start = yes; then
6934   cat >>confdefs.h <<_ACEOF
6935 #define HAVE_LIBPAM 1
6936 _ACEOF
6937
6938   LIBS="-lpam $LIBS"
6939
6940 else
6941   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6942 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6943    { (exit 1); exit 1; }; }
6944 fi
6945
6946 fi
6947
6948
6949 ##
6950 ## Header files
6951 ##
6952
6953 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6954 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6955 if test "${ac_cv_header_stdc+set}" = set; then
6956   echo $ECHO_N "(cached) $ECHO_C" >&6
6957 else
6958   cat >conftest.$ac_ext <<_ACEOF
6959 #line $LINENO "configure"
6960 #include "confdefs.h"
6961 #include <stdlib.h>
6962 #include <stdarg.h>
6963 #include <string.h>
6964 #include <float.h>
6965
6966 _ACEOF
6967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6968   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6969   ac_status=$?
6970   egrep -v '^ *\+' conftest.er1 >conftest.err
6971   rm -f conftest.er1
6972   cat conftest.err >&5
6973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974   (exit $ac_status); } >/dev/null; then
6975   if test -s conftest.err; then
6976     ac_cpp_err=$ac_c_preproc_warn_flag
6977   else
6978     ac_cpp_err=
6979   fi
6980 else
6981   ac_cpp_err=yes
6982 fi
6983 if test -z "$ac_cpp_err"; then
6984   ac_cv_header_stdc=yes
6985 else
6986   echo "$as_me: failed program was:" >&5
6987   cat conftest.$ac_ext >&5
6988   ac_cv_header_stdc=no
6989 fi
6990 rm -f conftest.err conftest.$ac_ext
6991
6992 if test $ac_cv_header_stdc = yes; then
6993   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6994   cat >conftest.$ac_ext <<_ACEOF
6995 #line $LINENO "configure"
6996 #include "confdefs.h"
6997 #include <string.h>
6998
6999 _ACEOF
7000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7001   egrep "memchr" >/dev/null 2>&1; then
7002   :
7003 else
7004   ac_cv_header_stdc=no
7005 fi
7006 rm -f conftest*
7007
7008 fi
7009
7010 if test $ac_cv_header_stdc = yes; then
7011   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7012   cat >conftest.$ac_ext <<_ACEOF
7013 #line $LINENO "configure"
7014 #include "confdefs.h"
7015 #include <stdlib.h>
7016
7017 _ACEOF
7018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7019   egrep "free" >/dev/null 2>&1; then
7020   :
7021 else
7022   ac_cv_header_stdc=no
7023 fi
7024 rm -f conftest*
7025
7026 fi
7027
7028 if test $ac_cv_header_stdc = yes; then
7029   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7030   if test "$cross_compiling" = yes; then
7031   :
7032 else
7033   cat >conftest.$ac_ext <<_ACEOF
7034 #line $LINENO "configure"
7035 #include "confdefs.h"
7036 #include <ctype.h>
7037 #if ((' ' & 0x0FF) == 0x020)
7038 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7039 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7040 #else
7041 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7042                      || ('j' <= (c) && (c) <= 'r') \
7043                      || ('s' <= (c) && (c) <= 'z'))
7044 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7045 #endif
7046
7047 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7048 int
7049 main ()
7050 {
7051   int i;
7052   for (i = 0; i < 256; i++)
7053     if (XOR (islower (i), ISLOWER (i))
7054         || toupper (i) != TOUPPER (i))
7055       exit(2);
7056   exit (0);
7057 }
7058 _ACEOF
7059 rm -f conftest$ac_exeext
7060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7061   (eval $ac_link) 2>&5
7062   ac_status=$?
7063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066   (eval $ac_try) 2>&5
7067   ac_status=$?
7068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069   (exit $ac_status); }; }; then
7070   :
7071 else
7072   echo "$as_me: program exited with status $ac_status" >&5
7073 echo "$as_me: failed program was:" >&5
7074 cat conftest.$ac_ext >&5
7075 ( exit $ac_status )
7076 ac_cv_header_stdc=no
7077 fi
7078 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7079 fi
7080 fi
7081 fi
7082 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7083 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7084 if test $ac_cv_header_stdc = yes; then
7085
7086 cat >>confdefs.h <<\_ACEOF
7087 #define STDC_HEADERS 1
7088 _ACEOF
7089
7090 fi
7091
7092 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7103                   inttypes.h stdint.h unistd.h
7104 do
7105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7106 echo "$as_me:$LINENO: checking for $ac_header" >&5
7107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7109   echo $ECHO_N "(cached) $ECHO_C" >&6
7110 else
7111   cat >conftest.$ac_ext <<_ACEOF
7112 #line $LINENO "configure"
7113 #include "confdefs.h"
7114 $ac_includes_default
7115
7116 #include <$ac_header>
7117 _ACEOF
7118 rm -f conftest.$ac_objext
7119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7120   (eval $ac_compile) 2>&5
7121   ac_status=$?
7122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123   (exit $ac_status); } &&
7124          { ac_try='test -s conftest.$ac_objext'
7125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126   (eval $ac_try) 2>&5
7127   ac_status=$?
7128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129   (exit $ac_status); }; }; then
7130   eval "$as_ac_Header=yes"
7131 else
7132   echo "$as_me: failed program was:" >&5
7133 cat conftest.$ac_ext >&5
7134 eval "$as_ac_Header=no"
7135 fi
7136 rm -f conftest.$ac_objext conftest.$ac_ext
7137 fi
7138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7141   cat >>confdefs.h <<_ACEOF
7142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7143 _ACEOF
7144
7145 fi
7146
7147 done
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171 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
7172 do
7173 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7175   echo "$as_me:$LINENO: checking for $ac_header" >&5
7176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7178   echo $ECHO_N "(cached) $ECHO_C" >&6
7179 fi
7180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7182 else
7183   # Is the header compilable?
7184 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7186 cat >conftest.$ac_ext <<_ACEOF
7187 #line $LINENO "configure"
7188 #include "confdefs.h"
7189 $ac_includes_default
7190 #include <$ac_header>
7191 _ACEOF
7192 rm -f conftest.$ac_objext
7193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7194   (eval $ac_compile) 2>&5
7195   ac_status=$?
7196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197   (exit $ac_status); } &&
7198          { ac_try='test -s conftest.$ac_objext'
7199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200   (eval $ac_try) 2>&5
7201   ac_status=$?
7202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203   (exit $ac_status); }; }; then
7204   ac_header_compiler=yes
7205 else
7206   echo "$as_me: failed program was:" >&5
7207 cat conftest.$ac_ext >&5
7208 ac_header_compiler=no
7209 fi
7210 rm -f conftest.$ac_objext conftest.$ac_ext
7211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7212 echo "${ECHO_T}$ac_header_compiler" >&6
7213
7214 # Is the header present?
7215 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7216 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7217 cat >conftest.$ac_ext <<_ACEOF
7218 #line $LINENO "configure"
7219 #include "confdefs.h"
7220 #include <$ac_header>
7221 _ACEOF
7222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7223   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7224   ac_status=$?
7225   egrep -v '^ *\+' conftest.er1 >conftest.err
7226   rm -f conftest.er1
7227   cat conftest.err >&5
7228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229   (exit $ac_status); } >/dev/null; then
7230   if test -s conftest.err; then
7231     ac_cpp_err=$ac_c_preproc_warn_flag
7232   else
7233     ac_cpp_err=
7234   fi
7235 else
7236   ac_cpp_err=yes
7237 fi
7238 if test -z "$ac_cpp_err"; then
7239   ac_header_preproc=yes
7240 else
7241   echo "$as_me: failed program was:" >&5
7242   cat conftest.$ac_ext >&5
7243   ac_header_preproc=no
7244 fi
7245 rm -f conftest.err conftest.$ac_ext
7246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7247 echo "${ECHO_T}$ac_header_preproc" >&6
7248
7249 # So?  What about this header?
7250 case $ac_header_compiler:$ac_header_preproc in
7251   yes:no )
7252     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7256   no:yes )
7257     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7259     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7261     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7263 esac
7264 echo "$as_me:$LINENO: checking for $ac_header" >&5
7265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7267   echo $ECHO_N "(cached) $ECHO_C" >&6
7268 else
7269   eval "$as_ac_Header=$ac_header_preproc"
7270 fi
7271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7272 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7273
7274 fi
7275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7276   cat >>confdefs.h <<_ACEOF
7277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7278 _ACEOF
7279
7280 fi
7281
7282 done
7283
7284
7285 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7286 # netinet/in.h is included first.
7287
7288 for ac_header in netinet/in.h
7289 do
7290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7292   echo "$as_me:$LINENO: checking for $ac_header" >&5
7293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7295   echo $ECHO_N "(cached) $ECHO_C" >&6
7296 fi
7297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7299 else
7300   # Is the header compilable?
7301 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7303 cat >conftest.$ac_ext <<_ACEOF
7304 #line $LINENO "configure"
7305 #include "confdefs.h"
7306 $ac_includes_default
7307 #include <$ac_header>
7308 _ACEOF
7309 rm -f conftest.$ac_objext
7310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7311   (eval $ac_compile) 2>&5
7312   ac_status=$?
7313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314   (exit $ac_status); } &&
7315          { ac_try='test -s conftest.$ac_objext'
7316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7317   (eval $ac_try) 2>&5
7318   ac_status=$?
7319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320   (exit $ac_status); }; }; then
7321   ac_header_compiler=yes
7322 else
7323   echo "$as_me: failed program was:" >&5
7324 cat conftest.$ac_ext >&5
7325 ac_header_compiler=no
7326 fi
7327 rm -f conftest.$ac_objext conftest.$ac_ext
7328 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7329 echo "${ECHO_T}$ac_header_compiler" >&6
7330
7331 # Is the header present?
7332 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7334 cat >conftest.$ac_ext <<_ACEOF
7335 #line $LINENO "configure"
7336 #include "confdefs.h"
7337 #include <$ac_header>
7338 _ACEOF
7339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7340   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7341   ac_status=$?
7342   egrep -v '^ *\+' conftest.er1 >conftest.err
7343   rm -f conftest.er1
7344   cat conftest.err >&5
7345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346   (exit $ac_status); } >/dev/null; then
7347   if test -s conftest.err; then
7348     ac_cpp_err=$ac_c_preproc_warn_flag
7349   else
7350     ac_cpp_err=
7351   fi
7352 else
7353   ac_cpp_err=yes
7354 fi
7355 if test -z "$ac_cpp_err"; then
7356   ac_header_preproc=yes
7357 else
7358   echo "$as_me: failed program was:" >&5
7359   cat conftest.$ac_ext >&5
7360   ac_header_preproc=no
7361 fi
7362 rm -f conftest.err conftest.$ac_ext
7363 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7364 echo "${ECHO_T}$ac_header_preproc" >&6
7365
7366 # So?  What about this header?
7367 case $ac_header_compiler:$ac_header_preproc in
7368   yes:no )
7369     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7371     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7373   no:yes )
7374     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7376     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7378     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7380 esac
7381 echo "$as_me:$LINENO: checking for $ac_header" >&5
7382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7384   echo $ECHO_N "(cached) $ECHO_C" >&6
7385 else
7386   eval "$as_ac_Header=$ac_header_preproc"
7387 fi
7388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7390
7391 fi
7392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7393   cat >>confdefs.h <<_ACEOF
7394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7395 _ACEOF
7396
7397 fi
7398
7399 done
7400
7401
7402 for ac_header in netinet/tcp.h
7403 do
7404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7405 echo "$as_me:$LINENO: checking for $ac_header" >&5
7406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7408   echo $ECHO_N "(cached) $ECHO_C" >&6
7409 else
7410   cat >conftest.$ac_ext <<_ACEOF
7411 #line $LINENO "configure"
7412 #include "confdefs.h"
7413 $ac_includes_default
7414 #ifdef HAVE_NETINET_IN_H
7415 #include <netinet/in.h>
7416 #endif
7417
7418
7419 #include <$ac_header>
7420 _ACEOF
7421 rm -f conftest.$ac_objext
7422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7423   (eval $ac_compile) 2>&5
7424   ac_status=$?
7425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426   (exit $ac_status); } &&
7427          { ac_try='test -s conftest.$ac_objext'
7428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7429   (eval $ac_try) 2>&5
7430   ac_status=$?
7431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432   (exit $ac_status); }; }; then
7433   eval "$as_ac_Header=yes"
7434 else
7435   echo "$as_me: failed program was:" >&5
7436 cat conftest.$ac_ext >&5
7437 eval "$as_ac_Header=no"
7438 fi
7439 rm -f conftest.$ac_objext conftest.$ac_ext
7440 fi
7441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7444   cat >>confdefs.h <<_ACEOF
7445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7446 _ACEOF
7447
7448 fi
7449
7450 done
7451
7452
7453 if test "$with_readline" = yes; then
7454
7455 for ac_header in readline/readline.h
7456 do
7457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7459   echo "$as_me:$LINENO: checking for $ac_header" >&5
7460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7462   echo $ECHO_N "(cached) $ECHO_C" >&6
7463 fi
7464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7466 else
7467   # Is the header compilable?
7468 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7470 cat >conftest.$ac_ext <<_ACEOF
7471 #line $LINENO "configure"
7472 #include "confdefs.h"
7473 $ac_includes_default
7474 #include <$ac_header>
7475 _ACEOF
7476 rm -f conftest.$ac_objext
7477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7478   (eval $ac_compile) 2>&5
7479   ac_status=$?
7480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481   (exit $ac_status); } &&
7482          { ac_try='test -s conftest.$ac_objext'
7483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484   (eval $ac_try) 2>&5
7485   ac_status=$?
7486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487   (exit $ac_status); }; }; then
7488   ac_header_compiler=yes
7489 else
7490   echo "$as_me: failed program was:" >&5
7491 cat conftest.$ac_ext >&5
7492 ac_header_compiler=no
7493 fi
7494 rm -f conftest.$ac_objext conftest.$ac_ext
7495 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7496 echo "${ECHO_T}$ac_header_compiler" >&6
7497
7498 # Is the header present?
7499 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7501 cat >conftest.$ac_ext <<_ACEOF
7502 #line $LINENO "configure"
7503 #include "confdefs.h"
7504 #include <$ac_header>
7505 _ACEOF
7506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7507   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7508   ac_status=$?
7509   egrep -v '^ *\+' conftest.er1 >conftest.err
7510   rm -f conftest.er1
7511   cat conftest.err >&5
7512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513   (exit $ac_status); } >/dev/null; then
7514   if test -s conftest.err; then
7515     ac_cpp_err=$ac_c_preproc_warn_flag
7516   else
7517     ac_cpp_err=
7518   fi
7519 else
7520   ac_cpp_err=yes
7521 fi
7522 if test -z "$ac_cpp_err"; then
7523   ac_header_preproc=yes
7524 else
7525   echo "$as_me: failed program was:" >&5
7526   cat conftest.$ac_ext >&5
7527   ac_header_preproc=no
7528 fi
7529 rm -f conftest.err conftest.$ac_ext
7530 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7531 echo "${ECHO_T}$ac_header_preproc" >&6
7532
7533 # So?  What about this header?
7534 case $ac_header_compiler:$ac_header_preproc in
7535   yes:no )
7536     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7538     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7540   no:yes )
7541     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7543     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7545     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7547 esac
7548 echo "$as_me:$LINENO: checking for $ac_header" >&5
7549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7551   echo $ECHO_N "(cached) $ECHO_C" >&6
7552 else
7553   eval "$as_ac_Header=$ac_header_preproc"
7554 fi
7555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7557
7558 fi
7559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7560   cat >>confdefs.h <<_ACEOF
7561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7562 _ACEOF
7563
7564 else
7565
7566 for ac_header in editline/readline.h
7567 do
7568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7570   echo "$as_me:$LINENO: checking for $ac_header" >&5
7571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7573   echo $ECHO_N "(cached) $ECHO_C" >&6
7574 fi
7575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7577 else
7578   # Is the header compilable?
7579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7581 cat >conftest.$ac_ext <<_ACEOF
7582 #line $LINENO "configure"
7583 #include "confdefs.h"
7584 $ac_includes_default
7585 #include <$ac_header>
7586 _ACEOF
7587 rm -f conftest.$ac_objext
7588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7589   (eval $ac_compile) 2>&5
7590   ac_status=$?
7591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592   (exit $ac_status); } &&
7593          { ac_try='test -s conftest.$ac_objext'
7594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595   (eval $ac_try) 2>&5
7596   ac_status=$?
7597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598   (exit $ac_status); }; }; then
7599   ac_header_compiler=yes
7600 else
7601   echo "$as_me: failed program was:" >&5
7602 cat conftest.$ac_ext >&5
7603 ac_header_compiler=no
7604 fi
7605 rm -f conftest.$ac_objext conftest.$ac_ext
7606 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7607 echo "${ECHO_T}$ac_header_compiler" >&6
7608
7609 # Is the header present?
7610 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7612 cat >conftest.$ac_ext <<_ACEOF
7613 #line $LINENO "configure"
7614 #include "confdefs.h"
7615 #include <$ac_header>
7616 _ACEOF
7617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7618   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7619   ac_status=$?
7620   egrep -v '^ *\+' conftest.er1 >conftest.err
7621   rm -f conftest.er1
7622   cat conftest.err >&5
7623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624   (exit $ac_status); } >/dev/null; then
7625   if test -s conftest.err; then
7626     ac_cpp_err=$ac_c_preproc_warn_flag
7627   else
7628     ac_cpp_err=
7629   fi
7630 else
7631   ac_cpp_err=yes
7632 fi
7633 if test -z "$ac_cpp_err"; then
7634   ac_header_preproc=yes
7635 else
7636   echo "$as_me: failed program was:" >&5
7637   cat conftest.$ac_ext >&5
7638   ac_header_preproc=no
7639 fi
7640 rm -f conftest.err conftest.$ac_ext
7641 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7642 echo "${ECHO_T}$ac_header_preproc" >&6
7643
7644 # So?  What about this header?
7645 case $ac_header_compiler:$ac_header_preproc in
7646   yes:no )
7647     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7648 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7649     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7651   no:yes )
7652     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7654     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7656     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7658 esac
7659 echo "$as_me:$LINENO: checking for $ac_header" >&5
7660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7662   echo $ECHO_N "(cached) $ECHO_C" >&6
7663 else
7664   eval "$as_ac_Header=$ac_header_preproc"
7665 fi
7666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7668
7669 fi
7670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7671   cat >>confdefs.h <<_ACEOF
7672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7673 _ACEOF
7674
7675 else
7676
7677 for ac_header in readline.h
7678 do
7679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7681   echo "$as_me:$LINENO: checking for $ac_header" >&5
7682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7684   echo $ECHO_N "(cached) $ECHO_C" >&6
7685 fi
7686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7688 else
7689   # Is the header compilable?
7690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7692 cat >conftest.$ac_ext <<_ACEOF
7693 #line $LINENO "configure"
7694 #include "confdefs.h"
7695 $ac_includes_default
7696 #include <$ac_header>
7697 _ACEOF
7698 rm -f conftest.$ac_objext
7699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7700   (eval $ac_compile) 2>&5
7701   ac_status=$?
7702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703   (exit $ac_status); } &&
7704          { ac_try='test -s conftest.$ac_objext'
7705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7706   (eval $ac_try) 2>&5
7707   ac_status=$?
7708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709   (exit $ac_status); }; }; then
7710   ac_header_compiler=yes
7711 else
7712   echo "$as_me: failed program was:" >&5
7713 cat conftest.$ac_ext >&5
7714 ac_header_compiler=no
7715 fi
7716 rm -f conftest.$ac_objext conftest.$ac_ext
7717 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7718 echo "${ECHO_T}$ac_header_compiler" >&6
7719
7720 # Is the header present?
7721 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7723 cat >conftest.$ac_ext <<_ACEOF
7724 #line $LINENO "configure"
7725 #include "confdefs.h"
7726 #include <$ac_header>
7727 _ACEOF
7728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7729   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7730   ac_status=$?
7731   egrep -v '^ *\+' conftest.er1 >conftest.err
7732   rm -f conftest.er1
7733   cat conftest.err >&5
7734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735   (exit $ac_status); } >/dev/null; then
7736   if test -s conftest.err; then
7737     ac_cpp_err=$ac_c_preproc_warn_flag
7738   else
7739     ac_cpp_err=
7740   fi
7741 else
7742   ac_cpp_err=yes
7743 fi
7744 if test -z "$ac_cpp_err"; then
7745   ac_header_preproc=yes
7746 else
7747   echo "$as_me: failed program was:" >&5
7748   cat conftest.$ac_ext >&5
7749   ac_header_preproc=no
7750 fi
7751 rm -f conftest.err conftest.$ac_ext
7752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7753 echo "${ECHO_T}$ac_header_preproc" >&6
7754
7755 # So?  What about this header?
7756 case $ac_header_compiler:$ac_header_preproc in
7757   yes:no )
7758     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7762   no:yes )
7763     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7765     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7766 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7767     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7769 esac
7770 echo "$as_me:$LINENO: checking for $ac_header" >&5
7771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7773   echo $ECHO_N "(cached) $ECHO_C" >&6
7774 else
7775   eval "$as_ac_Header=$ac_header_preproc"
7776 fi
7777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7779
7780 fi
7781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7782   cat >>confdefs.h <<_ACEOF
7783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7784 _ACEOF
7785
7786 else
7787   { { echo "$as_me:$LINENO: error: readline header not found
7788 If you have readline already installed, see config.log for details on the
7789 failure.  It is possible the compiler isn't looking in the proper directory.
7790 Use --without-readline to disable readline support." >&5
7791 echo "$as_me: 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." >&2;}
7795    { (exit 1); exit 1; }; }
7796 fi
7797
7798 done
7799
7800 fi
7801
7802 done
7803
7804 fi
7805
7806 done
7807
7808
7809 for ac_header in readline/history.h
7810 do
7811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7813   echo "$as_me:$LINENO: checking for $ac_header" >&5
7814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7816   echo $ECHO_N "(cached) $ECHO_C" >&6
7817 fi
7818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7820 else
7821   # Is the header compilable?
7822 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7824 cat >conftest.$ac_ext <<_ACEOF
7825 #line $LINENO "configure"
7826 #include "confdefs.h"
7827 $ac_includes_default
7828 #include <$ac_header>
7829 _ACEOF
7830 rm -f conftest.$ac_objext
7831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7832   (eval $ac_compile) 2>&5
7833   ac_status=$?
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); } &&
7836          { ac_try='test -s conftest.$ac_objext'
7837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838   (eval $ac_try) 2>&5
7839   ac_status=$?
7840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841   (exit $ac_status); }; }; then
7842   ac_header_compiler=yes
7843 else
7844   echo "$as_me: failed program was:" >&5
7845 cat conftest.$ac_ext >&5
7846 ac_header_compiler=no
7847 fi
7848 rm -f conftest.$ac_objext conftest.$ac_ext
7849 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7850 echo "${ECHO_T}$ac_header_compiler" >&6
7851
7852 # Is the header present?
7853 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7855 cat >conftest.$ac_ext <<_ACEOF
7856 #line $LINENO "configure"
7857 #include "confdefs.h"
7858 #include <$ac_header>
7859 _ACEOF
7860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7861   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7862   ac_status=$?
7863   egrep -v '^ *\+' conftest.er1 >conftest.err
7864   rm -f conftest.er1
7865   cat conftest.err >&5
7866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867   (exit $ac_status); } >/dev/null; then
7868   if test -s conftest.err; then
7869     ac_cpp_err=$ac_c_preproc_warn_flag
7870   else
7871     ac_cpp_err=
7872   fi
7873 else
7874   ac_cpp_err=yes
7875 fi
7876 if test -z "$ac_cpp_err"; then
7877   ac_header_preproc=yes
7878 else
7879   echo "$as_me: failed program was:" >&5
7880   cat conftest.$ac_ext >&5
7881   ac_header_preproc=no
7882 fi
7883 rm -f conftest.err conftest.$ac_ext
7884 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7885 echo "${ECHO_T}$ac_header_preproc" >&6
7886
7887 # So?  What about this header?
7888 case $ac_header_compiler:$ac_header_preproc in
7889   yes:no )
7890     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7892     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7894   no:yes )
7895     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7896 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7897     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7898 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7899     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7901 esac
7902 echo "$as_me:$LINENO: checking for $ac_header" >&5
7903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7905   echo $ECHO_N "(cached) $ECHO_C" >&6
7906 else
7907   eval "$as_ac_Header=$ac_header_preproc"
7908 fi
7909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7911
7912 fi
7913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7914   cat >>confdefs.h <<_ACEOF
7915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7916 _ACEOF
7917
7918 else
7919
7920 for ac_header in editline/history.h
7921 do
7922 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7924   echo "$as_me:$LINENO: checking for $ac_header" >&5
7925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7927   echo $ECHO_N "(cached) $ECHO_C" >&6
7928 fi
7929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7931 else
7932   # Is the header compilable?
7933 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7934 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7935 cat >conftest.$ac_ext <<_ACEOF
7936 #line $LINENO "configure"
7937 #include "confdefs.h"
7938 $ac_includes_default
7939 #include <$ac_header>
7940 _ACEOF
7941 rm -f conftest.$ac_objext
7942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7943   (eval $ac_compile) 2>&5
7944   ac_status=$?
7945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946   (exit $ac_status); } &&
7947          { ac_try='test -s conftest.$ac_objext'
7948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949   (eval $ac_try) 2>&5
7950   ac_status=$?
7951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952   (exit $ac_status); }; }; then
7953   ac_header_compiler=yes
7954 else
7955   echo "$as_me: failed program was:" >&5
7956 cat conftest.$ac_ext >&5
7957 ac_header_compiler=no
7958 fi
7959 rm -f conftest.$ac_objext conftest.$ac_ext
7960 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7961 echo "${ECHO_T}$ac_header_compiler" >&6
7962
7963 # Is the header present?
7964 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7965 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7966 cat >conftest.$ac_ext <<_ACEOF
7967 #line $LINENO "configure"
7968 #include "confdefs.h"
7969 #include <$ac_header>
7970 _ACEOF
7971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7972   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7973   ac_status=$?
7974   egrep -v '^ *\+' conftest.er1 >conftest.err
7975   rm -f conftest.er1
7976   cat conftest.err >&5
7977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978   (exit $ac_status); } >/dev/null; then
7979   if test -s conftest.err; then
7980     ac_cpp_err=$ac_c_preproc_warn_flag
7981   else
7982     ac_cpp_err=
7983   fi
7984 else
7985   ac_cpp_err=yes
7986 fi
7987 if test -z "$ac_cpp_err"; then
7988   ac_header_preproc=yes
7989 else
7990   echo "$as_me: failed program was:" >&5
7991   cat conftest.$ac_ext >&5
7992   ac_header_preproc=no
7993 fi
7994 rm -f conftest.err conftest.$ac_ext
7995 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7996 echo "${ECHO_T}$ac_header_preproc" >&6
7997
7998 # So?  What about this header?
7999 case $ac_header_compiler:$ac_header_preproc in
8000   yes:no )
8001     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8005   no:yes )
8006     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8008     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8009 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8010     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8012 esac
8013 echo "$as_me:$LINENO: checking for $ac_header" >&5
8014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8016   echo $ECHO_N "(cached) $ECHO_C" >&6
8017 else
8018   eval "$as_ac_Header=$ac_header_preproc"
8019 fi
8020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8022
8023 fi
8024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8025   cat >>confdefs.h <<_ACEOF
8026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8027 _ACEOF
8028
8029 else
8030
8031 for ac_header in history.h
8032 do
8033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8035   echo "$as_me:$LINENO: checking for $ac_header" >&5
8036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8038   echo $ECHO_N "(cached) $ECHO_C" >&6
8039 fi
8040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8042 else
8043   # Is the header compilable?
8044 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8046 cat >conftest.$ac_ext <<_ACEOF
8047 #line $LINENO "configure"
8048 #include "confdefs.h"
8049 $ac_includes_default
8050 #include <$ac_header>
8051 _ACEOF
8052 rm -f conftest.$ac_objext
8053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8054   (eval $ac_compile) 2>&5
8055   ac_status=$?
8056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057   (exit $ac_status); } &&
8058          { ac_try='test -s conftest.$ac_objext'
8059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060   (eval $ac_try) 2>&5
8061   ac_status=$?
8062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063   (exit $ac_status); }; }; then
8064   ac_header_compiler=yes
8065 else
8066   echo "$as_me: failed program was:" >&5
8067 cat conftest.$ac_ext >&5
8068 ac_header_compiler=no
8069 fi
8070 rm -f conftest.$ac_objext conftest.$ac_ext
8071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8072 echo "${ECHO_T}$ac_header_compiler" >&6
8073
8074 # Is the header present?
8075 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8077 cat >conftest.$ac_ext <<_ACEOF
8078 #line $LINENO "configure"
8079 #include "confdefs.h"
8080 #include <$ac_header>
8081 _ACEOF
8082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8083   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8084   ac_status=$?
8085   egrep -v '^ *\+' conftest.er1 >conftest.err
8086   rm -f conftest.er1
8087   cat conftest.err >&5
8088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089   (exit $ac_status); } >/dev/null; then
8090   if test -s conftest.err; then
8091     ac_cpp_err=$ac_c_preproc_warn_flag
8092   else
8093     ac_cpp_err=
8094   fi
8095 else
8096   ac_cpp_err=yes
8097 fi
8098 if test -z "$ac_cpp_err"; then
8099   ac_header_preproc=yes
8100 else
8101   echo "$as_me: failed program was:" >&5
8102   cat conftest.$ac_ext >&5
8103   ac_header_preproc=no
8104 fi
8105 rm -f conftest.err conftest.$ac_ext
8106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8107 echo "${ECHO_T}$ac_header_preproc" >&6
8108
8109 # So?  What about this header?
8110 case $ac_header_compiler:$ac_header_preproc in
8111   yes:no )
8112     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8114     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8116   no:yes )
8117     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8119     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8121     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8123 esac
8124 echo "$as_me:$LINENO: checking for $ac_header" >&5
8125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8127   echo $ECHO_N "(cached) $ECHO_C" >&6
8128 else
8129   eval "$as_ac_Header=$ac_header_preproc"
8130 fi
8131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8133
8134 fi
8135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8136   cat >>confdefs.h <<_ACEOF
8137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8138 _ACEOF
8139
8140 else
8141   { { echo "$as_me:$LINENO: error: history header not found
8142 If you have readline already installed, see config.log for details on the
8143 failure.  It is possible the compiler isn't looking in the proper directory.
8144 Use --without-readline to disable readline support." >&5
8145 echo "$as_me: 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." >&2;}
8149    { (exit 1); exit 1; }; }
8150 fi
8151
8152 done
8153
8154 fi
8155
8156 done
8157
8158 fi
8159
8160 done
8161
8162 fi
8163
8164 if test "$with_zlib" = yes; then
8165   if test "${ac_cv_header_zlib_h+set}" = set; then
8166   echo "$as_me:$LINENO: checking for zlib.h" >&5
8167 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8168 if test "${ac_cv_header_zlib_h+set}" = set; then
8169   echo $ECHO_N "(cached) $ECHO_C" >&6
8170 fi
8171 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8172 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8173 else
8174   # Is the header compilable?
8175 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8176 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8177 cat >conftest.$ac_ext <<_ACEOF
8178 #line $LINENO "configure"
8179 #include "confdefs.h"
8180 $ac_includes_default
8181 #include <zlib.h>
8182 _ACEOF
8183 rm -f conftest.$ac_objext
8184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8185   (eval $ac_compile) 2>&5
8186   ac_status=$?
8187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188   (exit $ac_status); } &&
8189          { ac_try='test -s conftest.$ac_objext'
8190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191   (eval $ac_try) 2>&5
8192   ac_status=$?
8193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194   (exit $ac_status); }; }; then
8195   ac_header_compiler=yes
8196 else
8197   echo "$as_me: failed program was:" >&5
8198 cat conftest.$ac_ext >&5
8199 ac_header_compiler=no
8200 fi
8201 rm -f conftest.$ac_objext conftest.$ac_ext
8202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8203 echo "${ECHO_T}$ac_header_compiler" >&6
8204
8205 # Is the header present?
8206 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8207 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8208 cat >conftest.$ac_ext <<_ACEOF
8209 #line $LINENO "configure"
8210 #include "confdefs.h"
8211 #include <zlib.h>
8212 _ACEOF
8213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8214   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8215   ac_status=$?
8216   egrep -v '^ *\+' conftest.er1 >conftest.err
8217   rm -f conftest.er1
8218   cat conftest.err >&5
8219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220   (exit $ac_status); } >/dev/null; then
8221   if test -s conftest.err; then
8222     ac_cpp_err=$ac_c_preproc_warn_flag
8223   else
8224     ac_cpp_err=
8225   fi
8226 else
8227   ac_cpp_err=yes
8228 fi
8229 if test -z "$ac_cpp_err"; then
8230   ac_header_preproc=yes
8231 else
8232   echo "$as_me: failed program was:" >&5
8233   cat conftest.$ac_ext >&5
8234   ac_header_preproc=no
8235 fi
8236 rm -f conftest.err conftest.$ac_ext
8237 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8238 echo "${ECHO_T}$ac_header_preproc" >&6
8239
8240 # So?  What about this header?
8241 case $ac_header_compiler:$ac_header_preproc in
8242   yes:no )
8243     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8244 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8245     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8246 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8247   no:yes )
8248     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8249 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8250     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8251 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8252     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8253 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8254 esac
8255 echo "$as_me:$LINENO: checking for zlib.h" >&5
8256 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8257 if test "${ac_cv_header_zlib_h+set}" = set; then
8258   echo $ECHO_N "(cached) $ECHO_C" >&6
8259 else
8260   ac_cv_header_zlib_h=$ac_header_preproc
8261 fi
8262 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8263 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8264
8265 fi
8266 if test $ac_cv_header_zlib_h = yes; then
8267   :
8268 else
8269   { { echo "$as_me:$LINENO: error: zlib header not found
8270 If you have zlib already installed, see config.log for details on the
8271 failure.  It is possible the compiler isn't looking in the proper directory.
8272 Use --without-zlib to disable zlib support." >&5
8273 echo "$as_me: 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." >&2;}
8277    { (exit 1); exit 1; }; }
8278 fi
8279
8280
8281 fi
8282
8283 if test "$with_krb4" = yes ; then
8284   if test "${ac_cv_header_krb_h+set}" = set; then
8285   echo "$as_me:$LINENO: checking for krb.h" >&5
8286 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8287 if test "${ac_cv_header_krb_h+set}" = set; then
8288   echo $ECHO_N "(cached) $ECHO_C" >&6
8289 fi
8290 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8291 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8292 else
8293   # Is the header compilable?
8294 echo "$as_me:$LINENO: checking krb.h usability" >&5
8295 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8296 cat >conftest.$ac_ext <<_ACEOF
8297 #line $LINENO "configure"
8298 #include "confdefs.h"
8299 $ac_includes_default
8300 #include <krb.h>
8301 _ACEOF
8302 rm -f conftest.$ac_objext
8303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8304   (eval $ac_compile) 2>&5
8305   ac_status=$?
8306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307   (exit $ac_status); } &&
8308          { ac_try='test -s conftest.$ac_objext'
8309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310   (eval $ac_try) 2>&5
8311   ac_status=$?
8312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313   (exit $ac_status); }; }; then
8314   ac_header_compiler=yes
8315 else
8316   echo "$as_me: failed program was:" >&5
8317 cat conftest.$ac_ext >&5
8318 ac_header_compiler=no
8319 fi
8320 rm -f conftest.$ac_objext conftest.$ac_ext
8321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8322 echo "${ECHO_T}$ac_header_compiler" >&6
8323
8324 # Is the header present?
8325 echo "$as_me:$LINENO: checking krb.h presence" >&5
8326 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8327 cat >conftest.$ac_ext <<_ACEOF
8328 #line $LINENO "configure"
8329 #include "confdefs.h"
8330 #include <krb.h>
8331 _ACEOF
8332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8333   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8334   ac_status=$?
8335   egrep -v '^ *\+' conftest.er1 >conftest.err
8336   rm -f conftest.er1
8337   cat conftest.err >&5
8338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339   (exit $ac_status); } >/dev/null; then
8340   if test -s conftest.err; then
8341     ac_cpp_err=$ac_c_preproc_warn_flag
8342   else
8343     ac_cpp_err=
8344   fi
8345 else
8346   ac_cpp_err=yes
8347 fi
8348 if test -z "$ac_cpp_err"; then
8349   ac_header_preproc=yes
8350 else
8351   echo "$as_me: failed program was:" >&5
8352   cat conftest.$ac_ext >&5
8353   ac_header_preproc=no
8354 fi
8355 rm -f conftest.err conftest.$ac_ext
8356 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8357 echo "${ECHO_T}$ac_header_preproc" >&6
8358
8359 # So?  What about this header?
8360 case $ac_header_compiler:$ac_header_preproc in
8361   yes:no )
8362     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8363 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8364     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8365 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8366   no:yes )
8367     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8368 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8369     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8370 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8371     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8372 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8373 esac
8374 echo "$as_me:$LINENO: checking for krb.h" >&5
8375 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8376 if test "${ac_cv_header_krb_h+set}" = set; then
8377   echo $ECHO_N "(cached) $ECHO_C" >&6
8378 else
8379   ac_cv_header_krb_h=$ac_header_preproc
8380 fi
8381 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8382 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8383
8384 fi
8385 if test $ac_cv_header_krb_h = yes; then
8386   :
8387 else
8388   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8389 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8390    { (exit 1); exit 1; }; }
8391 fi
8392
8393
8394 fi
8395
8396 if test "$with_krb5" = yes ; then
8397   if test "${ac_cv_header_krb5_h+set}" = set; then
8398   echo "$as_me:$LINENO: checking for krb5.h" >&5
8399 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8400 if test "${ac_cv_header_krb5_h+set}" = set; then
8401   echo $ECHO_N "(cached) $ECHO_C" >&6
8402 fi
8403 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8404 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8405 else
8406   # Is the header compilable?
8407 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8408 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8409 cat >conftest.$ac_ext <<_ACEOF
8410 #line $LINENO "configure"
8411 #include "confdefs.h"
8412 $ac_includes_default
8413 #include <krb5.h>
8414 _ACEOF
8415 rm -f conftest.$ac_objext
8416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8417   (eval $ac_compile) 2>&5
8418   ac_status=$?
8419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420   (exit $ac_status); } &&
8421          { ac_try='test -s conftest.$ac_objext'
8422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423   (eval $ac_try) 2>&5
8424   ac_status=$?
8425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426   (exit $ac_status); }; }; then
8427   ac_header_compiler=yes
8428 else
8429   echo "$as_me: failed program was:" >&5
8430 cat conftest.$ac_ext >&5
8431 ac_header_compiler=no
8432 fi
8433 rm -f conftest.$ac_objext conftest.$ac_ext
8434 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8435 echo "${ECHO_T}$ac_header_compiler" >&6
8436
8437 # Is the header present?
8438 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8439 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8440 cat >conftest.$ac_ext <<_ACEOF
8441 #line $LINENO "configure"
8442 #include "confdefs.h"
8443 #include <krb5.h>
8444 _ACEOF
8445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8446   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8447   ac_status=$?
8448   egrep -v '^ *\+' conftest.er1 >conftest.err
8449   rm -f conftest.er1
8450   cat conftest.err >&5
8451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452   (exit $ac_status); } >/dev/null; then
8453   if test -s conftest.err; then
8454     ac_cpp_err=$ac_c_preproc_warn_flag
8455   else
8456     ac_cpp_err=
8457   fi
8458 else
8459   ac_cpp_err=yes
8460 fi
8461 if test -z "$ac_cpp_err"; then
8462   ac_header_preproc=yes
8463 else
8464   echo "$as_me: failed program was:" >&5
8465   cat conftest.$ac_ext >&5
8466   ac_header_preproc=no
8467 fi
8468 rm -f conftest.err conftest.$ac_ext
8469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8470 echo "${ECHO_T}$ac_header_preproc" >&6
8471
8472 # So?  What about this header?
8473 case $ac_header_compiler:$ac_header_preproc in
8474   yes:no )
8475     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8476 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8477     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8478 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8479   no:yes )
8480     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8481 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8482     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8483 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8484     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8485 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8486 esac
8487 echo "$as_me:$LINENO: checking for krb5.h" >&5
8488 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8489 if test "${ac_cv_header_krb5_h+set}" = set; then
8490   echo $ECHO_N "(cached) $ECHO_C" >&6
8491 else
8492   ac_cv_header_krb5_h=$ac_header_preproc
8493 fi
8494 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8495 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8496
8497 fi
8498 if test $ac_cv_header_krb5_h = yes; then
8499   :
8500 else
8501   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8502 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8503    { (exit 1); exit 1; }; }
8504 fi
8505
8506
8507   if test "${ac_cv_header_com_err_h+set}" = set; then
8508   echo "$as_me:$LINENO: checking for com_err.h" >&5
8509 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8510 if test "${ac_cv_header_com_err_h+set}" = set; then
8511   echo $ECHO_N "(cached) $ECHO_C" >&6
8512 fi
8513 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8514 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8515 else
8516   # Is the header compilable?
8517 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8518 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8519 cat >conftest.$ac_ext <<_ACEOF
8520 #line $LINENO "configure"
8521 #include "confdefs.h"
8522 $ac_includes_default
8523 #include <com_err.h>
8524 _ACEOF
8525 rm -f conftest.$ac_objext
8526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8527   (eval $ac_compile) 2>&5
8528   ac_status=$?
8529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530   (exit $ac_status); } &&
8531          { ac_try='test -s conftest.$ac_objext'
8532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533   (eval $ac_try) 2>&5
8534   ac_status=$?
8535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536   (exit $ac_status); }; }; then
8537   ac_header_compiler=yes
8538 else
8539   echo "$as_me: failed program was:" >&5
8540 cat conftest.$ac_ext >&5
8541 ac_header_compiler=no
8542 fi
8543 rm -f conftest.$ac_objext conftest.$ac_ext
8544 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8545 echo "${ECHO_T}$ac_header_compiler" >&6
8546
8547 # Is the header present?
8548 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8549 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8550 cat >conftest.$ac_ext <<_ACEOF
8551 #line $LINENO "configure"
8552 #include "confdefs.h"
8553 #include <com_err.h>
8554 _ACEOF
8555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8556   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8557   ac_status=$?
8558   egrep -v '^ *\+' conftest.er1 >conftest.err
8559   rm -f conftest.er1
8560   cat conftest.err >&5
8561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562   (exit $ac_status); } >/dev/null; then
8563   if test -s conftest.err; then
8564     ac_cpp_err=$ac_c_preproc_warn_flag
8565   else
8566     ac_cpp_err=
8567   fi
8568 else
8569   ac_cpp_err=yes
8570 fi
8571 if test -z "$ac_cpp_err"; then
8572   ac_header_preproc=yes
8573 else
8574   echo "$as_me: failed program was:" >&5
8575   cat conftest.$ac_ext >&5
8576   ac_header_preproc=no
8577 fi
8578 rm -f conftest.err conftest.$ac_ext
8579 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8580 echo "${ECHO_T}$ac_header_preproc" >&6
8581
8582 # So?  What about this header?
8583 case $ac_header_compiler:$ac_header_preproc in
8584   yes:no )
8585     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8586 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8587     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8588 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8589   no:yes )
8590     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8591 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8592     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8593 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8594     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8595 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8596 esac
8597 echo "$as_me:$LINENO: checking for com_err.h" >&5
8598 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8599 if test "${ac_cv_header_com_err_h+set}" = set; then
8600   echo $ECHO_N "(cached) $ECHO_C" >&6
8601 else
8602   ac_cv_header_com_err_h=$ac_header_preproc
8603 fi
8604 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8605 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8606
8607 fi
8608 if test $ac_cv_header_com_err_h = yes; then
8609   :
8610 else
8611   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8612 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8613    { (exit 1); exit 1; }; }
8614 fi
8615
8616
8617 fi
8618
8619 if test "$with_openssl" = yes ; then
8620   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8621   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8622 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8623 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8624   echo $ECHO_N "(cached) $ECHO_C" >&6
8625 fi
8626 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8627 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8628 else
8629   # Is the header compilable?
8630 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8631 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8632 cat >conftest.$ac_ext <<_ACEOF
8633 #line $LINENO "configure"
8634 #include "confdefs.h"
8635 $ac_includes_default
8636 #include <openssl/ssl.h>
8637 _ACEOF
8638 rm -f conftest.$ac_objext
8639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8640   (eval $ac_compile) 2>&5
8641   ac_status=$?
8642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643   (exit $ac_status); } &&
8644          { ac_try='test -s conftest.$ac_objext'
8645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646   (eval $ac_try) 2>&5
8647   ac_status=$?
8648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649   (exit $ac_status); }; }; then
8650   ac_header_compiler=yes
8651 else
8652   echo "$as_me: failed program was:" >&5
8653 cat conftest.$ac_ext >&5
8654 ac_header_compiler=no
8655 fi
8656 rm -f conftest.$ac_objext conftest.$ac_ext
8657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8658 echo "${ECHO_T}$ac_header_compiler" >&6
8659
8660 # Is the header present?
8661 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8662 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8663 cat >conftest.$ac_ext <<_ACEOF
8664 #line $LINENO "configure"
8665 #include "confdefs.h"
8666 #include <openssl/ssl.h>
8667 _ACEOF
8668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8669   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8670   ac_status=$?
8671   egrep -v '^ *\+' conftest.er1 >conftest.err
8672   rm -f conftest.er1
8673   cat conftest.err >&5
8674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675   (exit $ac_status); } >/dev/null; then
8676   if test -s conftest.err; then
8677     ac_cpp_err=$ac_c_preproc_warn_flag
8678   else
8679     ac_cpp_err=
8680   fi
8681 else
8682   ac_cpp_err=yes
8683 fi
8684 if test -z "$ac_cpp_err"; then
8685   ac_header_preproc=yes
8686 else
8687   echo "$as_me: failed program was:" >&5
8688   cat conftest.$ac_ext >&5
8689   ac_header_preproc=no
8690 fi
8691 rm -f conftest.err conftest.$ac_ext
8692 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8693 echo "${ECHO_T}$ac_header_preproc" >&6
8694
8695 # So?  What about this header?
8696 case $ac_header_compiler:$ac_header_preproc in
8697   yes:no )
8698     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8699 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8700     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8701 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8702   no:yes )
8703     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8704 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8705     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8706 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8707     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8708 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8709 esac
8710 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8711 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8712 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8713   echo $ECHO_N "(cached) $ECHO_C" >&6
8714 else
8715   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8716 fi
8717 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8718 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8719
8720 fi
8721 if test $ac_cv_header_openssl_ssl_h = yes; then
8722   :
8723 else
8724   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8725 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8726    { (exit 1); exit 1; }; }
8727 fi
8728
8729
8730   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8731   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8732 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8733 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8734   echo $ECHO_N "(cached) $ECHO_C" >&6
8735 fi
8736 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8737 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8738 else
8739   # Is the header compilable?
8740 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8741 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8742 cat >conftest.$ac_ext <<_ACEOF
8743 #line $LINENO "configure"
8744 #include "confdefs.h"
8745 $ac_includes_default
8746 #include <openssl/err.h>
8747 _ACEOF
8748 rm -f conftest.$ac_objext
8749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8750   (eval $ac_compile) 2>&5
8751   ac_status=$?
8752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753   (exit $ac_status); } &&
8754          { ac_try='test -s conftest.$ac_objext'
8755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756   (eval $ac_try) 2>&5
8757   ac_status=$?
8758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759   (exit $ac_status); }; }; then
8760   ac_header_compiler=yes
8761 else
8762   echo "$as_me: failed program was:" >&5
8763 cat conftest.$ac_ext >&5
8764 ac_header_compiler=no
8765 fi
8766 rm -f conftest.$ac_objext conftest.$ac_ext
8767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8768 echo "${ECHO_T}$ac_header_compiler" >&6
8769
8770 # Is the header present?
8771 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8772 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8773 cat >conftest.$ac_ext <<_ACEOF
8774 #line $LINENO "configure"
8775 #include "confdefs.h"
8776 #include <openssl/err.h>
8777 _ACEOF
8778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8779   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8780   ac_status=$?
8781   egrep -v '^ *\+' conftest.er1 >conftest.err
8782   rm -f conftest.er1
8783   cat conftest.err >&5
8784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); } >/dev/null; then
8786   if test -s conftest.err; then
8787     ac_cpp_err=$ac_c_preproc_warn_flag
8788   else
8789     ac_cpp_err=
8790   fi
8791 else
8792   ac_cpp_err=yes
8793 fi
8794 if test -z "$ac_cpp_err"; then
8795   ac_header_preproc=yes
8796 else
8797   echo "$as_me: failed program was:" >&5
8798   cat conftest.$ac_ext >&5
8799   ac_header_preproc=no
8800 fi
8801 rm -f conftest.err conftest.$ac_ext
8802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8803 echo "${ECHO_T}$ac_header_preproc" >&6
8804
8805 # So?  What about this header?
8806 case $ac_header_compiler:$ac_header_preproc in
8807   yes:no )
8808     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8809 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8810     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8811 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8812   no:yes )
8813     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8814 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8815     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8816 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8817     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8818 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8819 esac
8820 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8821 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8822 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8823   echo $ECHO_N "(cached) $ECHO_C" >&6
8824 else
8825   ac_cv_header_openssl_err_h=$ac_header_preproc
8826 fi
8827 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8828 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8829
8830 fi
8831 if test $ac_cv_header_openssl_err_h = yes; then
8832   :
8833 else
8834   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8835 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8836    { (exit 1); exit 1; }; }
8837 fi
8838
8839
8840 fi
8841
8842 if test "$with_pam" = yes ; then
8843
8844 for ac_header in security/pam_appl.h
8845 do
8846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8848   echo "$as_me:$LINENO: checking for $ac_header" >&5
8849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8851   echo $ECHO_N "(cached) $ECHO_C" >&6
8852 fi
8853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8855 else
8856   # Is the header compilable?
8857 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8859 cat >conftest.$ac_ext <<_ACEOF
8860 #line $LINENO "configure"
8861 #include "confdefs.h"
8862 $ac_includes_default
8863 #include <$ac_header>
8864 _ACEOF
8865 rm -f conftest.$ac_objext
8866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8867   (eval $ac_compile) 2>&5
8868   ac_status=$?
8869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870   (exit $ac_status); } &&
8871          { ac_try='test -s conftest.$ac_objext'
8872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873   (eval $ac_try) 2>&5
8874   ac_status=$?
8875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876   (exit $ac_status); }; }; then
8877   ac_header_compiler=yes
8878 else
8879   echo "$as_me: failed program was:" >&5
8880 cat conftest.$ac_ext >&5
8881 ac_header_compiler=no
8882 fi
8883 rm -f conftest.$ac_objext conftest.$ac_ext
8884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8885 echo "${ECHO_T}$ac_header_compiler" >&6
8886
8887 # Is the header present?
8888 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8890 cat >conftest.$ac_ext <<_ACEOF
8891 #line $LINENO "configure"
8892 #include "confdefs.h"
8893 #include <$ac_header>
8894 _ACEOF
8895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8896   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8897   ac_status=$?
8898   egrep -v '^ *\+' conftest.er1 >conftest.err
8899   rm -f conftest.er1
8900   cat conftest.err >&5
8901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902   (exit $ac_status); } >/dev/null; then
8903   if test -s conftest.err; then
8904     ac_cpp_err=$ac_c_preproc_warn_flag
8905   else
8906     ac_cpp_err=
8907   fi
8908 else
8909   ac_cpp_err=yes
8910 fi
8911 if test -z "$ac_cpp_err"; then
8912   ac_header_preproc=yes
8913 else
8914   echo "$as_me: failed program was:" >&5
8915   cat conftest.$ac_ext >&5
8916   ac_header_preproc=no
8917 fi
8918 rm -f conftest.err conftest.$ac_ext
8919 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8920 echo "${ECHO_T}$ac_header_preproc" >&6
8921
8922 # So?  What about this header?
8923 case $ac_header_compiler:$ac_header_preproc in
8924   yes:no )
8925     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8929   no:yes )
8930     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8932     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8933 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8936 esac
8937 echo "$as_me:$LINENO: checking for $ac_header" >&5
8938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8940   echo $ECHO_N "(cached) $ECHO_C" >&6
8941 else
8942   eval "$as_ac_Header=$ac_header_preproc"
8943 fi
8944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8946
8947 fi
8948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8949   cat >>confdefs.h <<_ACEOF
8950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8951 _ACEOF
8952
8953 else
8954
8955 for ac_header in pam/pam_appl.h
8956 do
8957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8959   echo "$as_me:$LINENO: checking for $ac_header" >&5
8960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8962   echo $ECHO_N "(cached) $ECHO_C" >&6
8963 fi
8964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8966 else
8967   # Is the header compilable?
8968 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8970 cat >conftest.$ac_ext <<_ACEOF
8971 #line $LINENO "configure"
8972 #include "confdefs.h"
8973 $ac_includes_default
8974 #include <$ac_header>
8975 _ACEOF
8976 rm -f conftest.$ac_objext
8977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8978   (eval $ac_compile) 2>&5
8979   ac_status=$?
8980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981   (exit $ac_status); } &&
8982          { ac_try='test -s conftest.$ac_objext'
8983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984   (eval $ac_try) 2>&5
8985   ac_status=$?
8986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987   (exit $ac_status); }; }; then
8988   ac_header_compiler=yes
8989 else
8990   echo "$as_me: failed program was:" >&5
8991 cat conftest.$ac_ext >&5
8992 ac_header_compiler=no
8993 fi
8994 rm -f conftest.$ac_objext conftest.$ac_ext
8995 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8996 echo "${ECHO_T}$ac_header_compiler" >&6
8997
8998 # Is the header present?
8999 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9001 cat >conftest.$ac_ext <<_ACEOF
9002 #line $LINENO "configure"
9003 #include "confdefs.h"
9004 #include <$ac_header>
9005 _ACEOF
9006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9007   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9008   ac_status=$?
9009   egrep -v '^ *\+' conftest.er1 >conftest.err
9010   rm -f conftest.er1
9011   cat conftest.err >&5
9012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013   (exit $ac_status); } >/dev/null; then
9014   if test -s conftest.err; then
9015     ac_cpp_err=$ac_c_preproc_warn_flag
9016   else
9017     ac_cpp_err=
9018   fi
9019 else
9020   ac_cpp_err=yes
9021 fi
9022 if test -z "$ac_cpp_err"; then
9023   ac_header_preproc=yes
9024 else
9025   echo "$as_me: failed program was:" >&5
9026   cat conftest.$ac_ext >&5
9027   ac_header_preproc=no
9028 fi
9029 rm -f conftest.err conftest.$ac_ext
9030 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9031 echo "${ECHO_T}$ac_header_preproc" >&6
9032
9033 # So?  What about this header?
9034 case $ac_header_compiler:$ac_header_preproc in
9035   yes:no )
9036     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9038     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9040   no:yes )
9041     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9043     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9044 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9045     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9047 esac
9048 echo "$as_me:$LINENO: checking for $ac_header" >&5
9049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9051   echo $ECHO_N "(cached) $ECHO_C" >&6
9052 else
9053   eval "$as_ac_Header=$ac_header_preproc"
9054 fi
9055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9057
9058 fi
9059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9060   cat >>confdefs.h <<_ACEOF
9061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9062 _ACEOF
9063
9064 else
9065   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
9066 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
9067    { (exit 1); exit 1; }; }
9068 fi
9069
9070 done
9071
9072 fi
9073
9074 done
9075
9076 fi
9077
9078 if test "$with_rendezvous" = yes ; then
9079   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9080   echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9081 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9082 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9083   echo $ECHO_N "(cached) $ECHO_C" >&6
9084 fi
9085 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9086 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9087 else
9088   # Is the header compilable?
9089 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
9090 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
9091 cat >conftest.$ac_ext <<_ACEOF
9092 #line $LINENO "configure"
9093 #include "confdefs.h"
9094 $ac_includes_default
9095 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9096 _ACEOF
9097 rm -f conftest.$ac_objext
9098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9099   (eval $ac_compile) 2>&5
9100   ac_status=$?
9101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102   (exit $ac_status); } &&
9103          { ac_try='test -s conftest.$ac_objext'
9104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105   (eval $ac_try) 2>&5
9106   ac_status=$?
9107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108   (exit $ac_status); }; }; then
9109   ac_header_compiler=yes
9110 else
9111   echo "$as_me: failed program was:" >&5
9112 cat conftest.$ac_ext >&5
9113 ac_header_compiler=no
9114 fi
9115 rm -f conftest.$ac_objext conftest.$ac_ext
9116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9117 echo "${ECHO_T}$ac_header_compiler" >&6
9118
9119 # Is the header present?
9120 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9121 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9122 cat >conftest.$ac_ext <<_ACEOF
9123 #line $LINENO "configure"
9124 #include "confdefs.h"
9125 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9126 _ACEOF
9127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9128   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9129   ac_status=$?
9130   egrep -v '^ *\+' conftest.er1 >conftest.err
9131   rm -f conftest.er1
9132   cat conftest.err >&5
9133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134   (exit $ac_status); } >/dev/null; then
9135   if test -s conftest.err; then
9136     ac_cpp_err=$ac_c_preproc_warn_flag
9137   else
9138     ac_cpp_err=
9139   fi
9140 else
9141   ac_cpp_err=yes
9142 fi
9143 if test -z "$ac_cpp_err"; then
9144   ac_header_preproc=yes
9145 else
9146   echo "$as_me: failed program was:" >&5
9147   cat conftest.$ac_ext >&5
9148   ac_header_preproc=no
9149 fi
9150 rm -f conftest.err conftest.$ac_ext
9151 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9152 echo "${ECHO_T}$ac_header_preproc" >&6
9153
9154 # So?  What about this header?
9155 case $ac_header_compiler:$ac_header_preproc in
9156   yes:no )
9157     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9158 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9159     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9160 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9161   no:yes )
9162     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9163 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9164     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9165 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9166     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9167 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9168 esac
9169 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9170 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9171 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9172   echo $ECHO_N "(cached) $ECHO_C" >&6
9173 else
9174   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9175 fi
9176 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9177 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9178
9179 fi
9180 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9181   :
9182 else
9183   { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9184 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9185    { (exit 1); exit 1; }; }
9186 fi
9187
9188
9189 fi
9190
9191
9192 ##
9193 ## Types, structures, compiler characteristics
9194 ##
9195
9196
9197 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9198 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9199 if test "${ac_cv_c_const+set}" = set; then
9200   echo $ECHO_N "(cached) $ECHO_C" >&6
9201 else
9202   cat >conftest.$ac_ext <<_ACEOF
9203 #line $LINENO "configure"
9204 #include "confdefs.h"
9205
9206 #ifdef F77_DUMMY_MAIN
9207 #  ifdef __cplusplus
9208      extern "C"
9209 #  endif
9210    int F77_DUMMY_MAIN() { return 1; }
9211 #endif
9212 int
9213 main ()
9214 {
9215 /* FIXME: Include the comments suggested by Paul. */
9216 #ifndef __cplusplus
9217   /* Ultrix mips cc rejects this.  */
9218   typedef int charset[2];
9219   const charset x;
9220   /* SunOS 4.1.1 cc rejects this.  */
9221   char const *const *ccp;
9222   char **p;
9223   /* NEC SVR4.0.2 mips cc rejects this.  */
9224   struct point {int x, y;};
9225   static struct point const zero = {0,0};
9226   /* AIX XL C 1.02.0.0 rejects this.
9227      It does not let you subtract one const X* pointer from another in
9228      an arm of an if-expression whose if-part is not a constant
9229      expression */
9230   const char *g = "string";
9231   ccp = &g + (g ? g-g : 0);
9232   /* HPUX 7.0 cc rejects these. */
9233   ++ccp;
9234   p = (char**) ccp;
9235   ccp = (char const *const *) p;
9236   { /* SCO 3.2v4 cc rejects this.  */
9237     char *t;
9238     char const *s = 0 ? (char *) 0 : (char const *) 0;
9239
9240     *t++ = 0;
9241   }
9242   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9243     int x[] = {25, 17};
9244     const int *foo = &x[0];
9245     ++foo;
9246   }
9247   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9248     typedef const int *iptr;
9249     iptr p = 0;
9250     ++p;
9251   }
9252   { /* AIX XL C 1.02.0.0 rejects this saying
9253        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9254     struct s { int j; const int *ap[3]; };
9255     struct s *b; b->j = 5;
9256   }
9257   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9258     const int foo = 10;
9259   }
9260 #endif
9261
9262   ;
9263   return 0;
9264 }
9265 _ACEOF
9266 rm -f conftest.$ac_objext
9267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9268   (eval $ac_compile) 2>&5
9269   ac_status=$?
9270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271   (exit $ac_status); } &&
9272          { ac_try='test -s conftest.$ac_objext'
9273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9274   (eval $ac_try) 2>&5
9275   ac_status=$?
9276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277   (exit $ac_status); }; }; then
9278   ac_cv_c_const=yes
9279 else
9280   echo "$as_me: failed program was:" >&5
9281 cat conftest.$ac_ext >&5
9282 ac_cv_c_const=no
9283 fi
9284 rm -f conftest.$ac_objext conftest.$ac_ext
9285 fi
9286 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9287 echo "${ECHO_T}$ac_cv_c_const" >&6
9288 if test $ac_cv_c_const = no; then
9289
9290 cat >>confdefs.h <<\_ACEOF
9291 #define const
9292 _ACEOF
9293
9294 fi
9295
9296 echo "$as_me:$LINENO: checking for inline" >&5
9297 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9298 if test "${ac_cv_c_inline+set}" = set; then
9299   echo $ECHO_N "(cached) $ECHO_C" >&6
9300 else
9301   ac_cv_c_inline=no
9302 for ac_kw in inline __inline__ __inline; do
9303   cat >conftest.$ac_ext <<_ACEOF
9304 #line $LINENO "configure"
9305 #include "confdefs.h"
9306 #ifndef __cplusplus
9307 typedef int foo_t;
9308 static $ac_kw foo_t static_foo () {return 0; }
9309 $ac_kw int foo () {return 0; }
9310 #endif
9311
9312 _ACEOF
9313 rm -f conftest.$ac_objext
9314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9315   (eval $ac_compile) 2>&5
9316   ac_status=$?
9317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318   (exit $ac_status); } &&
9319          { ac_try='test -s conftest.$ac_objext'
9320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321   (eval $ac_try) 2>&5
9322   ac_status=$?
9323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324   (exit $ac_status); }; }; then
9325   ac_cv_c_inline=$ac_kw; break
9326 else
9327   echo "$as_me: failed program was:" >&5
9328 cat conftest.$ac_ext >&5
9329 fi
9330 rm -f conftest.$ac_objext conftest.$ac_ext
9331 done
9332
9333 fi
9334 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9335 echo "${ECHO_T}$ac_cv_c_inline" >&6
9336 case $ac_cv_c_inline in
9337   inline | yes) ;;
9338   no)
9339 cat >>confdefs.h <<\_ACEOF
9340 #define inline
9341 _ACEOF
9342  ;;
9343   *)  cat >>confdefs.h <<_ACEOF
9344 #define inline $ac_cv_c_inline
9345 _ACEOF
9346  ;;
9347 esac
9348
9349 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9350 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9351 if test "${ac_cv_c_stringize+set}" = set; then
9352   echo $ECHO_N "(cached) $ECHO_C" >&6
9353 else
9354   cat >conftest.$ac_ext <<_ACEOF
9355 #line $LINENO "configure"
9356 #include "confdefs.h"
9357 #define x(y) #y
9358
9359 char *s = x(teststring);
9360 _ACEOF
9361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9362   egrep "#teststring" >/dev/null 2>&1; then
9363   ac_cv_c_stringize=no
9364 else
9365   ac_cv_c_stringize=yes
9366 fi
9367 rm -f conftest*
9368
9369 fi
9370 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9371 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9372 if test $ac_cv_c_stringize = yes; then
9373
9374 cat >>confdefs.h <<\_ACEOF
9375 #define HAVE_STRINGIZE 1
9376 _ACEOF
9377
9378 fi
9379
9380 echo "$as_me:$LINENO: checking for signed types" >&5
9381 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9382 if test "${pgac_cv_c_signed+set}" = set; then
9383   echo $ECHO_N "(cached) $ECHO_C" >&6
9384 else
9385   cat >conftest.$ac_ext <<_ACEOF
9386 #line $LINENO "configure"
9387 #include "confdefs.h"
9388
9389 #ifdef F77_DUMMY_MAIN
9390 #  ifdef __cplusplus
9391      extern "C"
9392 #  endif
9393    int F77_DUMMY_MAIN() { return 1; }
9394 #endif
9395 int
9396 main ()
9397 {
9398 signed char c; signed short s; signed int i;
9399   ;
9400   return 0;
9401 }
9402 _ACEOF
9403 rm -f conftest.$ac_objext
9404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9405   (eval $ac_compile) 2>&5
9406   ac_status=$?
9407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408   (exit $ac_status); } &&
9409          { ac_try='test -s conftest.$ac_objext'
9410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411   (eval $ac_try) 2>&5
9412   ac_status=$?
9413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414   (exit $ac_status); }; }; then
9415   pgac_cv_c_signed=yes
9416 else
9417   echo "$as_me: failed program was:" >&5
9418 cat conftest.$ac_ext >&5
9419 pgac_cv_c_signed=no
9420 fi
9421 rm -f conftest.$ac_objext conftest.$ac_ext
9422 fi
9423 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9424 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9425 if test x"$pgac_cv_c_signed" = xno ; then
9426
9427 cat >>confdefs.h <<\_ACEOF
9428 #define signed
9429 _ACEOF
9430
9431 fi
9432 echo "$as_me:$LINENO: checking for working volatile" >&5
9433 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9434 if test "${ac_cv_c_volatile+set}" = set; then
9435   echo $ECHO_N "(cached) $ECHO_C" >&6
9436 else
9437   cat >conftest.$ac_ext <<_ACEOF
9438 #line $LINENO "configure"
9439 #include "confdefs.h"
9440
9441 #ifdef F77_DUMMY_MAIN
9442 #  ifdef __cplusplus
9443      extern "C"
9444 #  endif
9445    int F77_DUMMY_MAIN() { return 1; }
9446 #endif
9447 int
9448 main ()
9449 {
9450
9451 volatile int x;
9452 int * volatile y;
9453   ;
9454   return 0;
9455 }
9456 _ACEOF
9457 rm -f conftest.$ac_objext
9458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9459   (eval $ac_compile) 2>&5
9460   ac_status=$?
9461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462   (exit $ac_status); } &&
9463          { ac_try='test -s conftest.$ac_objext'
9464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465   (eval $ac_try) 2>&5
9466   ac_status=$?
9467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468   (exit $ac_status); }; }; then
9469   ac_cv_c_volatile=yes
9470 else
9471   echo "$as_me: failed program was:" >&5
9472 cat conftest.$ac_ext >&5
9473 ac_cv_c_volatile=no
9474 fi
9475 rm -f conftest.$ac_objext conftest.$ac_ext
9476 fi
9477 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9478 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9479 if test $ac_cv_c_volatile = no; then
9480
9481 cat >>confdefs.h <<\_ACEOF
9482 #define volatile
9483 _ACEOF
9484
9485 fi
9486
9487 echo "$as_me:$LINENO: checking for __func__" >&5
9488 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9489 if test "${pgac_cv_funcname_func_support+set}" = set; then
9490   echo $ECHO_N "(cached) $ECHO_C" >&6
9491 else
9492   cat >conftest.$ac_ext <<_ACEOF
9493 #line $LINENO "configure"
9494 #include "confdefs.h"
9495 #include <stdio.h>
9496 #ifdef F77_DUMMY_MAIN
9497 #  ifdef __cplusplus
9498      extern "C"
9499 #  endif
9500    int F77_DUMMY_MAIN() { return 1; }
9501 #endif
9502 int
9503 main ()
9504 {
9505 printf("%s\n", __func__);
9506   ;
9507   return 0;
9508 }
9509 _ACEOF
9510 rm -f conftest.$ac_objext
9511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9512   (eval $ac_compile) 2>&5
9513   ac_status=$?
9514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515   (exit $ac_status); } &&
9516          { ac_try='test -s conftest.$ac_objext'
9517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518   (eval $ac_try) 2>&5
9519   ac_status=$?
9520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521   (exit $ac_status); }; }; then
9522   pgac_cv_funcname_func_support=yes
9523 else
9524   echo "$as_me: failed program was:" >&5
9525 cat conftest.$ac_ext >&5
9526 pgac_cv_funcname_func_support=no
9527 fi
9528 rm -f conftest.$ac_objext conftest.$ac_ext
9529 fi
9530 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9531 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9532 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9533
9534 cat >>confdefs.h <<\_ACEOF
9535 #define HAVE_FUNCNAME__FUNC 1
9536 _ACEOF
9537
9538 else
9539 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9540 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9541 if test "${pgac_cv_funcname_function_support+set}" = set; then
9542   echo $ECHO_N "(cached) $ECHO_C" >&6
9543 else
9544   cat >conftest.$ac_ext <<_ACEOF
9545 #line $LINENO "configure"
9546 #include "confdefs.h"
9547 #include <stdio.h>
9548 #ifdef F77_DUMMY_MAIN
9549 #  ifdef __cplusplus
9550      extern "C"
9551 #  endif
9552    int F77_DUMMY_MAIN() { return 1; }
9553 #endif
9554 int
9555 main ()
9556 {
9557 printf("%s\n", __FUNCTION__);
9558   ;
9559   return 0;
9560 }
9561 _ACEOF
9562 rm -f conftest.$ac_objext
9563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9564   (eval $ac_compile) 2>&5
9565   ac_status=$?
9566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567   (exit $ac_status); } &&
9568          { ac_try='test -s conftest.$ac_objext'
9569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570   (eval $ac_try) 2>&5
9571   ac_status=$?
9572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573   (exit $ac_status); }; }; then
9574   pgac_cv_funcname_function_support=yes
9575 else
9576   echo "$as_me: failed program was:" >&5
9577 cat conftest.$ac_ext >&5
9578 pgac_cv_funcname_function_support=no
9579 fi
9580 rm -f conftest.$ac_objext conftest.$ac_ext
9581 fi
9582 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9583 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9584 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9585
9586 cat >>confdefs.h <<\_ACEOF
9587 #define HAVE_FUNCNAME__FUNCTION 1
9588 _ACEOF
9589
9590 fi
9591 fi
9592 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9593 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9594 if test "${ac_cv_struct_tm+set}" = set; then
9595   echo $ECHO_N "(cached) $ECHO_C" >&6
9596 else
9597   cat >conftest.$ac_ext <<_ACEOF
9598 #line $LINENO "configure"
9599 #include "confdefs.h"
9600 #include <sys/types.h>
9601 #include <time.h>
9602
9603 #ifdef F77_DUMMY_MAIN
9604 #  ifdef __cplusplus
9605      extern "C"
9606 #  endif
9607    int F77_DUMMY_MAIN() { return 1; }
9608 #endif
9609 int
9610 main ()
9611 {
9612 struct tm *tp; tp->tm_sec;
9613   ;
9614   return 0;
9615 }
9616 _ACEOF
9617 rm -f conftest.$ac_objext
9618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9619   (eval $ac_compile) 2>&5
9620   ac_status=$?
9621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622   (exit $ac_status); } &&
9623          { ac_try='test -s conftest.$ac_objext'
9624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9625   (eval $ac_try) 2>&5
9626   ac_status=$?
9627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628   (exit $ac_status); }; }; then
9629   ac_cv_struct_tm=time.h
9630 else
9631   echo "$as_me: failed program was:" >&5
9632 cat conftest.$ac_ext >&5
9633 ac_cv_struct_tm=sys/time.h
9634 fi
9635 rm -f conftest.$ac_objext conftest.$ac_ext
9636 fi
9637 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9638 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9639 if test $ac_cv_struct_tm = sys/time.h; then
9640
9641 cat >>confdefs.h <<\_ACEOF
9642 #define TM_IN_SYS_TIME 1
9643 _ACEOF
9644
9645 fi
9646
9647 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9648 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9649 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9650   echo $ECHO_N "(cached) $ECHO_C" >&6
9651 else
9652   cat >conftest.$ac_ext <<_ACEOF
9653 #line $LINENO "configure"
9654 #include "confdefs.h"
9655 #include <sys/types.h>
9656 #include <$ac_cv_struct_tm>
9657
9658
9659 #ifdef F77_DUMMY_MAIN
9660 #  ifdef __cplusplus
9661      extern "C"
9662 #  endif
9663    int F77_DUMMY_MAIN() { return 1; }
9664 #endif
9665 int
9666 main ()
9667 {
9668 static struct tm ac_aggr;
9669 if (ac_aggr.tm_zone)
9670 return 0;
9671   ;
9672   return 0;
9673 }
9674 _ACEOF
9675 rm -f conftest.$ac_objext
9676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9677   (eval $ac_compile) 2>&5
9678   ac_status=$?
9679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680   (exit $ac_status); } &&
9681          { ac_try='test -s conftest.$ac_objext'
9682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683   (eval $ac_try) 2>&5
9684   ac_status=$?
9685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686   (exit $ac_status); }; }; then
9687   ac_cv_member_struct_tm_tm_zone=yes
9688 else
9689   echo "$as_me: failed program was:" >&5
9690 cat conftest.$ac_ext >&5
9691 ac_cv_member_struct_tm_tm_zone=no
9692 fi
9693 rm -f conftest.$ac_objext conftest.$ac_ext
9694 fi
9695 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9696 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9697 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9698
9699 cat >>confdefs.h <<_ACEOF
9700 #define HAVE_STRUCT_TM_TM_ZONE 1
9701 _ACEOF
9702
9703
9704 fi
9705
9706 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9707
9708 cat >>confdefs.h <<\_ACEOF
9709 #define HAVE_TM_ZONE 1
9710 _ACEOF
9711
9712 fi
9713 echo "$as_me:$LINENO: checking for tzname" >&5
9714 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9715 if test "${ac_cv_var_tzname+set}" = set; then
9716   echo $ECHO_N "(cached) $ECHO_C" >&6
9717 else
9718   cat >conftest.$ac_ext <<_ACEOF
9719 #line $LINENO "configure"
9720 #include "confdefs.h"
9721 #include <time.h>
9722 #ifndef tzname /* For SGI.  */
9723 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9724 #endif
9725
9726 #ifdef F77_DUMMY_MAIN
9727 #  ifdef __cplusplus
9728      extern "C"
9729 #  endif
9730    int F77_DUMMY_MAIN() { return 1; }
9731 #endif
9732 int
9733 main ()
9734 {
9735 atoi(*tzname);
9736   ;
9737   return 0;
9738 }
9739 _ACEOF
9740 rm -f conftest.$ac_objext conftest$ac_exeext
9741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9742   (eval $ac_link) 2>&5
9743   ac_status=$?
9744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745   (exit $ac_status); } &&
9746          { ac_try='test -s conftest$ac_exeext'
9747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748   (eval $ac_try) 2>&5
9749   ac_status=$?
9750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751   (exit $ac_status); }; }; then
9752   ac_cv_var_tzname=yes
9753 else
9754   echo "$as_me: failed program was:" >&5
9755 cat conftest.$ac_ext >&5
9756 ac_cv_var_tzname=no
9757 fi
9758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9759 fi
9760 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9761 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9762 if test $ac_cv_var_tzname = yes; then
9763
9764 cat >>confdefs.h <<\_ACEOF
9765 #define HAVE_TZNAME 1
9766 _ACEOF
9767
9768 fi
9769
9770 echo "$as_me:$LINENO: checking for union semun" >&5
9771 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9772 if test "${ac_cv_type_union_semun+set}" = set; then
9773   echo $ECHO_N "(cached) $ECHO_C" >&6
9774 else
9775   cat >conftest.$ac_ext <<_ACEOF
9776 #line $LINENO "configure"
9777 #include "confdefs.h"
9778 #include <sys/types.h>
9779 #include <sys/ipc.h>
9780 #include <sys/sem.h>
9781
9782 #ifdef F77_DUMMY_MAIN
9783 #  ifdef __cplusplus
9784      extern "C"
9785 #  endif
9786    int F77_DUMMY_MAIN() { return 1; }
9787 #endif
9788 int
9789 main ()
9790 {
9791 if ((union semun *) 0)
9792   return 0;
9793 if (sizeof (union semun))
9794   return 0;
9795   ;
9796   return 0;
9797 }
9798 _ACEOF
9799 rm -f conftest.$ac_objext
9800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9801   (eval $ac_compile) 2>&5
9802   ac_status=$?
9803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804   (exit $ac_status); } &&
9805          { ac_try='test -s conftest.$ac_objext'
9806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807   (eval $ac_try) 2>&5
9808   ac_status=$?
9809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810   (exit $ac_status); }; }; then
9811   ac_cv_type_union_semun=yes
9812 else
9813   echo "$as_me: failed program was:" >&5
9814 cat conftest.$ac_ext >&5
9815 ac_cv_type_union_semun=no
9816 fi
9817 rm -f conftest.$ac_objext conftest.$ac_ext
9818 fi
9819 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9820 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9821 if test $ac_cv_type_union_semun = yes; then
9822
9823 cat >>confdefs.h <<_ACEOF
9824 #define HAVE_UNION_SEMUN 1
9825 _ACEOF
9826
9827
9828 fi
9829
9830 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9831 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9832 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9833   echo $ECHO_N "(cached) $ECHO_C" >&6
9834 else
9835   cat >conftest.$ac_ext <<_ACEOF
9836 #line $LINENO "configure"
9837 #include "confdefs.h"
9838 #include <sys/types.h>
9839 #ifdef HAVE_SYS_UN_H
9840 #include <sys/un.h>
9841 #endif
9842
9843
9844 #ifdef F77_DUMMY_MAIN
9845 #  ifdef __cplusplus
9846      extern "C"
9847 #  endif
9848    int F77_DUMMY_MAIN() { return 1; }
9849 #endif
9850 int
9851 main ()
9852 {
9853 if ((struct sockaddr_un *) 0)
9854   return 0;
9855 if (sizeof (struct sockaddr_un))
9856   return 0;
9857   ;
9858   return 0;
9859 }
9860 _ACEOF
9861 rm -f conftest.$ac_objext
9862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9863   (eval $ac_compile) 2>&5
9864   ac_status=$?
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); } &&
9867          { ac_try='test -s conftest.$ac_objext'
9868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869   (eval $ac_try) 2>&5
9870   ac_status=$?
9871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872   (exit $ac_status); }; }; then
9873   ac_cv_type_struct_sockaddr_un=yes
9874 else
9875   echo "$as_me: failed program was:" >&5
9876 cat conftest.$ac_ext >&5
9877 ac_cv_type_struct_sockaddr_un=no
9878 fi
9879 rm -f conftest.$ac_objext conftest.$ac_ext
9880 fi
9881 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9882 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9883 if test $ac_cv_type_struct_sockaddr_un = yes; then
9884
9885 cat >>confdefs.h <<_ACEOF
9886 #define HAVE_STRUCT_SOCKADDR_UN 1
9887 _ACEOF
9888
9889
9890 cat >>confdefs.h <<\_ACEOF
9891 #define HAVE_UNIX_SOCKETS 1
9892 _ACEOF
9893
9894 fi
9895
9896 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9897 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9898 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9899   echo $ECHO_N "(cached) $ECHO_C" >&6
9900 else
9901   cat >conftest.$ac_ext <<_ACEOF
9902 #line $LINENO "configure"
9903 #include "confdefs.h"
9904 #include <sys/types.h>
9905 #ifdef HAVE_SYS_SOCKET_H
9906 #include <sys/socket.h>
9907 #endif
9908
9909
9910 #ifdef F77_DUMMY_MAIN
9911 #  ifdef __cplusplus
9912      extern "C"
9913 #  endif
9914    int F77_DUMMY_MAIN() { return 1; }
9915 #endif
9916 int
9917 main ()
9918 {
9919 if ((struct sockaddr_storage *) 0)
9920   return 0;
9921 if (sizeof (struct sockaddr_storage))
9922   return 0;
9923   ;
9924   return 0;
9925 }
9926 _ACEOF
9927 rm -f conftest.$ac_objext
9928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9929   (eval $ac_compile) 2>&5
9930   ac_status=$?
9931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932   (exit $ac_status); } &&
9933          { ac_try='test -s conftest.$ac_objext'
9934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9935   (eval $ac_try) 2>&5
9936   ac_status=$?
9937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938   (exit $ac_status); }; }; then
9939   ac_cv_type_struct_sockaddr_storage=yes
9940 else
9941   echo "$as_me: failed program was:" >&5
9942 cat conftest.$ac_ext >&5
9943 ac_cv_type_struct_sockaddr_storage=no
9944 fi
9945 rm -f conftest.$ac_objext conftest.$ac_ext
9946 fi
9947 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
9948 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
9949 if test $ac_cv_type_struct_sockaddr_storage = yes; then
9950
9951 cat >>confdefs.h <<_ACEOF
9952 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9953 _ACEOF
9954
9955
9956 fi
9957
9958 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
9959 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
9960 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
9961   echo $ECHO_N "(cached) $ECHO_C" >&6
9962 else
9963   cat >conftest.$ac_ext <<_ACEOF
9964 #line $LINENO "configure"
9965 #include "confdefs.h"
9966 #include <sys/types.h>
9967 #ifdef HAVE_SYS_SOCKET_H
9968 #include <sys/socket.h>
9969 #endif
9970
9971
9972 #ifdef F77_DUMMY_MAIN
9973 #  ifdef __cplusplus
9974      extern "C"
9975 #  endif
9976    int F77_DUMMY_MAIN() { return 1; }
9977 #endif
9978 int
9979 main ()
9980 {
9981 static struct sockaddr_storage ac_aggr;
9982 if (ac_aggr.ss_family)
9983 return 0;
9984   ;
9985   return 0;
9986 }
9987 _ACEOF
9988 rm -f conftest.$ac_objext
9989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9990   (eval $ac_compile) 2>&5
9991   ac_status=$?
9992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993   (exit $ac_status); } &&
9994          { ac_try='test -s conftest.$ac_objext'
9995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996   (eval $ac_try) 2>&5
9997   ac_status=$?
9998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999   (exit $ac_status); }; }; then
10000   ac_cv_member_struct_sockaddr_storage_ss_family=yes
10001 else
10002   echo "$as_me: failed program was:" >&5
10003 cat conftest.$ac_ext >&5
10004 ac_cv_member_struct_sockaddr_storage_ss_family=no
10005 fi
10006 rm -f conftest.$ac_objext conftest.$ac_ext
10007 fi
10008 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
10009 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
10010 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
10011
10012 cat >>confdefs.h <<_ACEOF
10013 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
10014 _ACEOF
10015
10016
10017 fi
10018 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
10019 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
10020 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
10021   echo $ECHO_N "(cached) $ECHO_C" >&6
10022 else
10023   cat >conftest.$ac_ext <<_ACEOF
10024 #line $LINENO "configure"
10025 #include "confdefs.h"
10026 #include <sys/types.h>
10027 #ifdef HAVE_SYS_SOCKET_H
10028 #include <sys/socket.h>
10029 #endif
10030
10031
10032 #ifdef F77_DUMMY_MAIN
10033 #  ifdef __cplusplus
10034      extern "C"
10035 #  endif
10036    int F77_DUMMY_MAIN() { return 1; }
10037 #endif
10038 int
10039 main ()
10040 {
10041 static struct sockaddr_storage ac_aggr;
10042 if (ac_aggr.__ss_family)
10043 return 0;
10044   ;
10045   return 0;
10046 }
10047 _ACEOF
10048 rm -f conftest.$ac_objext
10049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10050   (eval $ac_compile) 2>&5
10051   ac_status=$?
10052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053   (exit $ac_status); } &&
10054          { ac_try='test -s conftest.$ac_objext'
10055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10056   (eval $ac_try) 2>&5
10057   ac_status=$?
10058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059   (exit $ac_status); }; }; then
10060   ac_cv_member_struct_sockaddr_storage___ss_family=yes
10061 else
10062   echo "$as_me: failed program was:" >&5
10063 cat conftest.$ac_ext >&5
10064 ac_cv_member_struct_sockaddr_storage___ss_family=no
10065 fi
10066 rm -f conftest.$ac_objext conftest.$ac_ext
10067 fi
10068 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
10069 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
10070 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
10071
10072 cat >>confdefs.h <<_ACEOF
10073 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
10074 _ACEOF
10075
10076
10077 fi
10078 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
10079 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
10080 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
10081   echo $ECHO_N "(cached) $ECHO_C" >&6
10082 else
10083   cat >conftest.$ac_ext <<_ACEOF
10084 #line $LINENO "configure"
10085 #include "confdefs.h"
10086 #include <sys/types.h>
10087 #ifdef HAVE_SYS_SOCKET_H
10088 #include <sys/socket.h>
10089 #endif
10090
10091
10092 #ifdef F77_DUMMY_MAIN
10093 #  ifdef __cplusplus
10094      extern "C"
10095 #  endif
10096    int F77_DUMMY_MAIN() { return 1; }
10097 #endif
10098 int
10099 main ()
10100 {
10101 static struct sockaddr_storage ac_aggr;
10102 if (ac_aggr.ss_len)
10103 return 0;
10104   ;
10105   return 0;
10106 }
10107 _ACEOF
10108 rm -f conftest.$ac_objext
10109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10110   (eval $ac_compile) 2>&5
10111   ac_status=$?
10112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113   (exit $ac_status); } &&
10114          { ac_try='test -s conftest.$ac_objext'
10115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116   (eval $ac_try) 2>&5
10117   ac_status=$?
10118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119   (exit $ac_status); }; }; then
10120   ac_cv_member_struct_sockaddr_storage_ss_len=yes
10121 else
10122   echo "$as_me: failed program was:" >&5
10123 cat conftest.$ac_ext >&5
10124 ac_cv_member_struct_sockaddr_storage_ss_len=no
10125 fi
10126 rm -f conftest.$ac_objext conftest.$ac_ext
10127 fi
10128 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
10129 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
10130 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
10131
10132 cat >>confdefs.h <<_ACEOF
10133 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
10134 _ACEOF
10135
10136
10137 fi
10138 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
10139 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
10140 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
10141   echo $ECHO_N "(cached) $ECHO_C" >&6
10142 else
10143   cat >conftest.$ac_ext <<_ACEOF
10144 #line $LINENO "configure"
10145 #include "confdefs.h"
10146 #include <sys/types.h>
10147 #ifdef HAVE_SYS_SOCKET_H
10148 #include <sys/socket.h>
10149 #endif
10150
10151
10152 #ifdef F77_DUMMY_MAIN
10153 #  ifdef __cplusplus
10154      extern "C"
10155 #  endif
10156    int F77_DUMMY_MAIN() { return 1; }
10157 #endif
10158 int
10159 main ()
10160 {
10161 static struct sockaddr_storage ac_aggr;
10162 if (ac_aggr.__ss_len)
10163 return 0;
10164   ;
10165   return 0;
10166 }
10167 _ACEOF
10168 rm -f conftest.$ac_objext
10169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10170   (eval $ac_compile) 2>&5
10171   ac_status=$?
10172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173   (exit $ac_status); } &&
10174          { ac_try='test -s conftest.$ac_objext'
10175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176   (eval $ac_try) 2>&5
10177   ac_status=$?
10178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179   (exit $ac_status); }; }; then
10180   ac_cv_member_struct_sockaddr_storage___ss_len=yes
10181 else
10182   echo "$as_me: failed program was:" >&5
10183 cat conftest.$ac_ext >&5
10184 ac_cv_member_struct_sockaddr_storage___ss_len=no
10185 fi
10186 rm -f conftest.$ac_objext conftest.$ac_ext
10187 fi
10188 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
10189 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
10190 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
10191
10192 cat >>confdefs.h <<_ACEOF
10193 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10194 _ACEOF
10195
10196
10197 fi
10198 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
10199 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
10200 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
10201   echo $ECHO_N "(cached) $ECHO_C" >&6
10202 else
10203   cat >conftest.$ac_ext <<_ACEOF
10204 #line $LINENO "configure"
10205 #include "confdefs.h"
10206 #include <sys/types.h>
10207 #ifdef HAVE_SYS_SOCKET_H
10208 #include <sys/socket.h>
10209 #endif
10210
10211
10212 #ifdef F77_DUMMY_MAIN
10213 #  ifdef __cplusplus
10214      extern "C"
10215 #  endif
10216    int F77_DUMMY_MAIN() { return 1; }
10217 #endif
10218 int
10219 main ()
10220 {
10221 static struct sockaddr ac_aggr;
10222 if (ac_aggr.sa_len)
10223 return 0;
10224   ;
10225   return 0;
10226 }
10227 _ACEOF
10228 rm -f conftest.$ac_objext
10229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10230   (eval $ac_compile) 2>&5
10231   ac_status=$?
10232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233   (exit $ac_status); } &&
10234          { ac_try='test -s conftest.$ac_objext'
10235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236   (eval $ac_try) 2>&5
10237   ac_status=$?
10238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239   (exit $ac_status); }; }; then
10240   ac_cv_member_struct_sockaddr_sa_len=yes
10241 else
10242   echo "$as_me: failed program was:" >&5
10243 cat conftest.$ac_ext >&5
10244 ac_cv_member_struct_sockaddr_sa_len=no
10245 fi
10246 rm -f conftest.$ac_objext conftest.$ac_ext
10247 fi
10248 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10249 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10250 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10251
10252 cat >>confdefs.h <<_ACEOF
10253 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10254 _ACEOF
10255
10256
10257 fi
10258
10259 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10260 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10261 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10262   echo $ECHO_N "(cached) $ECHO_C" >&6
10263 else
10264   cat >conftest.$ac_ext <<_ACEOF
10265 #line $LINENO "configure"
10266 #include "confdefs.h"
10267 #include <sys/types.h>
10268 #include <sys/socket.h>
10269 #include <netdb.h>
10270
10271
10272 #ifdef F77_DUMMY_MAIN
10273 #  ifdef __cplusplus
10274      extern "C"
10275 #  endif
10276    int F77_DUMMY_MAIN() { return 1; }
10277 #endif
10278 int
10279 main ()
10280 {
10281 if ((struct addrinfo *) 0)
10282   return 0;
10283 if (sizeof (struct addrinfo))
10284   return 0;
10285   ;
10286   return 0;
10287 }
10288 _ACEOF
10289 rm -f conftest.$ac_objext
10290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10291   (eval $ac_compile) 2>&5
10292   ac_status=$?
10293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294   (exit $ac_status); } &&
10295          { ac_try='test -s conftest.$ac_objext'
10296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10297   (eval $ac_try) 2>&5
10298   ac_status=$?
10299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); }; }; then
10301   ac_cv_type_struct_addrinfo=yes
10302 else
10303   echo "$as_me: failed program was:" >&5
10304 cat conftest.$ac_ext >&5
10305 ac_cv_type_struct_addrinfo=no
10306 fi
10307 rm -f conftest.$ac_objext conftest.$ac_ext
10308 fi
10309 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10310 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10311 if test $ac_cv_type_struct_addrinfo = yes; then
10312
10313 cat >>confdefs.h <<_ACEOF
10314 #define HAVE_STRUCT_ADDRINFO 1
10315 _ACEOF
10316
10317
10318 fi
10319
10320
10321 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10322 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10323 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10324   echo $ECHO_N "(cached) $ECHO_C" >&6
10325 else
10326   cat >conftest.$ac_ext <<_ACEOF
10327 #line $LINENO "configure"
10328 #include "confdefs.h"
10329 #include <sys/param.h>
10330 #include <sys/types.h>
10331 #include <sys/socket.h>
10332 #include <sys/ucred.h>
10333
10334 #ifdef F77_DUMMY_MAIN
10335 #  ifdef __cplusplus
10336      extern "C"
10337 #  endif
10338    int F77_DUMMY_MAIN() { return 1; }
10339 #endif
10340 int
10341 main ()
10342 {
10343 if ((struct cmsgcred *) 0)
10344   return 0;
10345 if (sizeof (struct cmsgcred))
10346   return 0;
10347   ;
10348   return 0;
10349 }
10350 _ACEOF
10351 rm -f conftest.$ac_objext
10352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10353   (eval $ac_compile) 2>&5
10354   ac_status=$?
10355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356   (exit $ac_status); } &&
10357          { ac_try='test -s conftest.$ac_objext'
10358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359   (eval $ac_try) 2>&5
10360   ac_status=$?
10361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362   (exit $ac_status); }; }; then
10363   ac_cv_type_struct_cmsgcred=yes
10364 else
10365   echo "$as_me: failed program was:" >&5
10366 cat conftest.$ac_ext >&5
10367 ac_cv_type_struct_cmsgcred=no
10368 fi
10369 rm -f conftest.$ac_objext conftest.$ac_ext
10370 fi
10371 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10372 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10373 if test $ac_cv_type_struct_cmsgcred = yes; then
10374
10375 cat >>confdefs.h <<_ACEOF
10376 #define HAVE_STRUCT_CMSGCRED 1
10377 _ACEOF
10378
10379
10380 fi
10381 echo "$as_me:$LINENO: checking for struct fcred" >&5
10382 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10383 if test "${ac_cv_type_struct_fcred+set}" = set; then
10384   echo $ECHO_N "(cached) $ECHO_C" >&6
10385 else
10386   cat >conftest.$ac_ext <<_ACEOF
10387 #line $LINENO "configure"
10388 #include "confdefs.h"
10389 #include <sys/param.h>
10390 #include <sys/types.h>
10391 #include <sys/socket.h>
10392 #include <sys/ucred.h>
10393
10394 #ifdef F77_DUMMY_MAIN
10395 #  ifdef __cplusplus
10396      extern "C"
10397 #  endif
10398    int F77_DUMMY_MAIN() { return 1; }
10399 #endif
10400 int
10401 main ()
10402 {
10403 if ((struct fcred *) 0)
10404   return 0;
10405 if (sizeof (struct fcred))
10406   return 0;
10407   ;
10408   return 0;
10409 }
10410 _ACEOF
10411 rm -f conftest.$ac_objext
10412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10413   (eval $ac_compile) 2>&5
10414   ac_status=$?
10415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416   (exit $ac_status); } &&
10417          { ac_try='test -s conftest.$ac_objext'
10418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419   (eval $ac_try) 2>&5
10420   ac_status=$?
10421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422   (exit $ac_status); }; }; then
10423   ac_cv_type_struct_fcred=yes
10424 else
10425   echo "$as_me: failed program was:" >&5
10426 cat conftest.$ac_ext >&5
10427 ac_cv_type_struct_fcred=no
10428 fi
10429 rm -f conftest.$ac_objext conftest.$ac_ext
10430 fi
10431 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10432 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10433 if test $ac_cv_type_struct_fcred = yes; then
10434
10435 cat >>confdefs.h <<_ACEOF
10436 #define HAVE_STRUCT_FCRED 1
10437 _ACEOF
10438
10439
10440 fi
10441 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10442 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10443 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10444   echo $ECHO_N "(cached) $ECHO_C" >&6
10445 else
10446   cat >conftest.$ac_ext <<_ACEOF
10447 #line $LINENO "configure"
10448 #include "confdefs.h"
10449 #include <sys/param.h>
10450 #include <sys/types.h>
10451 #include <sys/socket.h>
10452 #include <sys/ucred.h>
10453
10454 #ifdef F77_DUMMY_MAIN
10455 #  ifdef __cplusplus
10456      extern "C"
10457 #  endif
10458    int F77_DUMMY_MAIN() { return 1; }
10459 #endif
10460 int
10461 main ()
10462 {
10463 if ((struct sockcred *) 0)
10464   return 0;
10465 if (sizeof (struct sockcred))
10466   return 0;
10467   ;
10468   return 0;
10469 }
10470 _ACEOF
10471 rm -f conftest.$ac_objext
10472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10473   (eval $ac_compile) 2>&5
10474   ac_status=$?
10475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476   (exit $ac_status); } &&
10477          { ac_try='test -s conftest.$ac_objext'
10478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479   (eval $ac_try) 2>&5
10480   ac_status=$?
10481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482   (exit $ac_status); }; }; then
10483   ac_cv_type_struct_sockcred=yes
10484 else
10485   echo "$as_me: failed program was:" >&5
10486 cat conftest.$ac_ext >&5
10487 ac_cv_type_struct_sockcred=no
10488 fi
10489 rm -f conftest.$ac_objext conftest.$ac_ext
10490 fi
10491 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10492 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10493 if test $ac_cv_type_struct_sockcred = yes; then
10494
10495 cat >>confdefs.h <<_ACEOF
10496 #define HAVE_STRUCT_SOCKCRED 1
10497 _ACEOF
10498
10499
10500 fi
10501
10502
10503 echo "$as_me:$LINENO: checking for struct option" >&5
10504 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
10505 if test "${ac_cv_type_struct_option+set}" = set; then
10506   echo $ECHO_N "(cached) $ECHO_C" >&6
10507 else
10508   cat >conftest.$ac_ext <<_ACEOF
10509 #line $LINENO "configure"
10510 #include "confdefs.h"
10511 #ifdef HAVE_GETOPT_H
10512 #include <getopt.h>
10513 #endif
10514
10515 #ifdef F77_DUMMY_MAIN
10516 #  ifdef __cplusplus
10517      extern "C"
10518 #  endif
10519    int F77_DUMMY_MAIN() { return 1; }
10520 #endif
10521 int
10522 main ()
10523 {
10524 if ((struct option *) 0)
10525   return 0;
10526 if (sizeof (struct option))
10527   return 0;
10528   ;
10529   return 0;
10530 }
10531 _ACEOF
10532 rm -f conftest.$ac_objext
10533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10534   (eval $ac_compile) 2>&5
10535   ac_status=$?
10536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537   (exit $ac_status); } &&
10538          { ac_try='test -s conftest.$ac_objext'
10539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10540   (eval $ac_try) 2>&5
10541   ac_status=$?
10542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543   (exit $ac_status); }; }; then
10544   ac_cv_type_struct_option=yes
10545 else
10546   echo "$as_me: failed program was:" >&5
10547 cat conftest.$ac_ext >&5
10548 ac_cv_type_struct_option=no
10549 fi
10550 rm -f conftest.$ac_objext conftest.$ac_ext
10551 fi
10552 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
10553 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
10554 if test $ac_cv_type_struct_option = yes; then
10555
10556 cat >>confdefs.h <<_ACEOF
10557 #define HAVE_STRUCT_OPTION 1
10558 _ACEOF
10559
10560
10561 fi
10562
10563
10564 if test "$with_zlib" = yes; then
10565   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10566   # did not).  While we could work around the lack of z_streamp, it
10567   # seems unwise to encourage people to use such old zlib versions...
10568   echo "$as_me:$LINENO: checking for z_streamp" >&5
10569 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10570 if test "${ac_cv_type_z_streamp+set}" = set; then
10571   echo $ECHO_N "(cached) $ECHO_C" >&6
10572 else
10573   cat >conftest.$ac_ext <<_ACEOF
10574 #line $LINENO "configure"
10575 #include "confdefs.h"
10576 #include <zlib.h>
10577
10578 #ifdef F77_DUMMY_MAIN
10579 #  ifdef __cplusplus
10580      extern "C"
10581 #  endif
10582    int F77_DUMMY_MAIN() { return 1; }
10583 #endif
10584 int
10585 main ()
10586 {
10587 if ((z_streamp *) 0)
10588   return 0;
10589 if (sizeof (z_streamp))
10590   return 0;
10591   ;
10592   return 0;
10593 }
10594 _ACEOF
10595 rm -f conftest.$ac_objext
10596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10597   (eval $ac_compile) 2>&5
10598   ac_status=$?
10599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600   (exit $ac_status); } &&
10601          { ac_try='test -s conftest.$ac_objext'
10602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10603   (eval $ac_try) 2>&5
10604   ac_status=$?
10605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606   (exit $ac_status); }; }; then
10607   ac_cv_type_z_streamp=yes
10608 else
10609   echo "$as_me: failed program was:" >&5
10610 cat conftest.$ac_ext >&5
10611 ac_cv_type_z_streamp=no
10612 fi
10613 rm -f conftest.$ac_objext conftest.$ac_ext
10614 fi
10615 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10616 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10617 if test $ac_cv_type_z_streamp = yes; then
10618   :
10619 else
10620   { { echo "$as_me:$LINENO: error: zlib version is too old
10621 Use --without-zlib to disable zlib support." >&5
10622 echo "$as_me: error: zlib version is too old
10623 Use --without-zlib to disable zlib support." >&2;}
10624    { (exit 1); exit 1; }; }
10625 fi
10626
10627 fi
10628
10629 if test "$with_krb5" = yes; then
10630 # Check for differences between MIT and Heimdal (KTH) releases
10631   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10632 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10633 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10634   echo $ECHO_N "(cached) $ECHO_C" >&6
10635 else
10636   cat >conftest.$ac_ext <<_ACEOF
10637 #line $LINENO "configure"
10638 #include "confdefs.h"
10639 #include <krb5.h>
10640
10641 #ifdef F77_DUMMY_MAIN
10642 #  ifdef __cplusplus
10643      extern "C"
10644 #  endif
10645    int F77_DUMMY_MAIN() { return 1; }
10646 #endif
10647 int
10648 main ()
10649 {
10650 static krb5_ticket ac_aggr;
10651 if (ac_aggr.enc_part2)
10652 return 0;
10653   ;
10654   return 0;
10655 }
10656 _ACEOF
10657 rm -f conftest.$ac_objext
10658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10659   (eval $ac_compile) 2>&5
10660   ac_status=$?
10661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662   (exit $ac_status); } &&
10663          { ac_try='test -s conftest.$ac_objext'
10664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665   (eval $ac_try) 2>&5
10666   ac_status=$?
10667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668   (exit $ac_status); }; }; then
10669   ac_cv_member_krb5_ticket_enc_part2=yes
10670 else
10671   echo "$as_me: failed program was:" >&5
10672 cat conftest.$ac_ext >&5
10673 ac_cv_member_krb5_ticket_enc_part2=no
10674 fi
10675 rm -f conftest.$ac_objext conftest.$ac_ext
10676 fi
10677 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10678 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10679 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10680
10681 cat >>confdefs.h <<_ACEOF
10682 #define HAVE_KRB5_TICKET_ENC_PART2 1
10683 _ACEOF
10684
10685
10686 else
10687   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10688 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10689 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10690   echo $ECHO_N "(cached) $ECHO_C" >&6
10691 else
10692   cat >conftest.$ac_ext <<_ACEOF
10693 #line $LINENO "configure"
10694 #include "confdefs.h"
10695 #include <krb5.h>
10696
10697 #ifdef F77_DUMMY_MAIN
10698 #  ifdef __cplusplus
10699      extern "C"
10700 #  endif
10701    int F77_DUMMY_MAIN() { return 1; }
10702 #endif
10703 int
10704 main ()
10705 {
10706 static krb5_ticket ac_aggr;
10707 if (ac_aggr.client)
10708 return 0;
10709   ;
10710   return 0;
10711 }
10712 _ACEOF
10713 rm -f conftest.$ac_objext
10714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10715   (eval $ac_compile) 2>&5
10716   ac_status=$?
10717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718   (exit $ac_status); } &&
10719          { ac_try='test -s conftest.$ac_objext'
10720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721   (eval $ac_try) 2>&5
10722   ac_status=$?
10723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724   (exit $ac_status); }; }; then
10725   ac_cv_member_krb5_ticket_client=yes
10726 else
10727   echo "$as_me: failed program was:" >&5
10728 cat conftest.$ac_ext >&5
10729 ac_cv_member_krb5_ticket_client=no
10730 fi
10731 rm -f conftest.$ac_objext conftest.$ac_ext
10732 fi
10733 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10734 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10735 if test $ac_cv_member_krb5_ticket_client = yes; then
10736
10737 cat >>confdefs.h <<_ACEOF
10738 #define HAVE_KRB5_TICKET_CLIENT 1
10739 _ACEOF
10740
10741
10742 else
10743   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10744 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10745    { (exit 1); exit 1; }; }
10746 fi
10747
10748 fi
10749
10750   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10751 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10752 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10753   echo $ECHO_N "(cached) $ECHO_C" >&6
10754 else
10755   cat >conftest.$ac_ext <<_ACEOF
10756 #line $LINENO "configure"
10757 #include "confdefs.h"
10758 #include <krb5.h>
10759
10760 #ifdef F77_DUMMY_MAIN
10761 #  ifdef __cplusplus
10762      extern "C"
10763 #  endif
10764    int F77_DUMMY_MAIN() { return 1; }
10765 #endif
10766 int
10767 main ()
10768 {
10769 static krb5_error ac_aggr;
10770 if (ac_aggr.text.data)
10771 return 0;
10772   ;
10773   return 0;
10774 }
10775 _ACEOF
10776 rm -f conftest.$ac_objext
10777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10778   (eval $ac_compile) 2>&5
10779   ac_status=$?
10780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781   (exit $ac_status); } &&
10782          { ac_try='test -s conftest.$ac_objext'
10783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784   (eval $ac_try) 2>&5
10785   ac_status=$?
10786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787   (exit $ac_status); }; }; then
10788   ac_cv_member_krb5_error_text_data=yes
10789 else
10790   echo "$as_me: failed program was:" >&5
10791 cat conftest.$ac_ext >&5
10792 ac_cv_member_krb5_error_text_data=no
10793 fi
10794 rm -f conftest.$ac_objext conftest.$ac_ext
10795 fi
10796 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10797 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10798 if test $ac_cv_member_krb5_error_text_data = yes; then
10799
10800 cat >>confdefs.h <<_ACEOF
10801 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10802 _ACEOF
10803
10804
10805 else
10806   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10807 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10808 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10809   echo $ECHO_N "(cached) $ECHO_C" >&6
10810 else
10811   cat >conftest.$ac_ext <<_ACEOF
10812 #line $LINENO "configure"
10813 #include "confdefs.h"
10814 #include <krb5.h>
10815
10816 #ifdef F77_DUMMY_MAIN
10817 #  ifdef __cplusplus
10818      extern "C"
10819 #  endif
10820    int F77_DUMMY_MAIN() { return 1; }
10821 #endif
10822 int
10823 main ()
10824 {
10825 static krb5_error ac_aggr;
10826 if (ac_aggr.e_data)
10827 return 0;
10828   ;
10829   return 0;
10830 }
10831 _ACEOF
10832 rm -f conftest.$ac_objext
10833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10834   (eval $ac_compile) 2>&5
10835   ac_status=$?
10836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837   (exit $ac_status); } &&
10838          { ac_try='test -s conftest.$ac_objext'
10839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10840   (eval $ac_try) 2>&5
10841   ac_status=$?
10842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843   (exit $ac_status); }; }; then
10844   ac_cv_member_krb5_error_e_data=yes
10845 else
10846   echo "$as_me: failed program was:" >&5
10847 cat conftest.$ac_ext >&5
10848 ac_cv_member_krb5_error_e_data=no
10849 fi
10850 rm -f conftest.$ac_objext conftest.$ac_ext
10851 fi
10852 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10853 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10854 if test $ac_cv_member_krb5_error_e_data = yes; then
10855
10856 cat >>confdefs.h <<_ACEOF
10857 #define HAVE_KRB5_ERROR_E_DATA 1
10858 _ACEOF
10859
10860
10861 else
10862   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10863 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10864    { (exit 1); exit 1; }; }
10865 fi
10866
10867 fi
10868
10869 fi
10870
10871
10872 ##
10873 ## Functions, global variables
10874 ##
10875
10876 echo "$as_me:$LINENO: checking for int timezone" >&5
10877 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10878 if test "${pgac_cv_var_int_timezone+set}" = set; then
10879   echo $ECHO_N "(cached) $ECHO_C" >&6
10880 else
10881   cat >conftest.$ac_ext <<_ACEOF
10882 #line $LINENO "configure"
10883 #include "confdefs.h"
10884 #include <time.h>
10885 int res;
10886 #ifdef F77_DUMMY_MAIN
10887 #  ifdef __cplusplus
10888      extern "C"
10889 #  endif
10890    int F77_DUMMY_MAIN() { return 1; }
10891 #endif
10892 int
10893 main ()
10894 {
10895 res = timezone / 60;
10896   ;
10897   return 0;
10898 }
10899 _ACEOF
10900 rm -f conftest.$ac_objext conftest$ac_exeext
10901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10902   (eval $ac_link) 2>&5
10903   ac_status=$?
10904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905   (exit $ac_status); } &&
10906          { ac_try='test -s conftest$ac_exeext'
10907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10908   (eval $ac_try) 2>&5
10909   ac_status=$?
10910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911   (exit $ac_status); }; }; then
10912   pgac_cv_var_int_timezone=yes
10913 else
10914   echo "$as_me: failed program was:" >&5
10915 cat conftest.$ac_ext >&5
10916 pgac_cv_var_int_timezone=no
10917 fi
10918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10919 fi
10920 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10921 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10922 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10923
10924 cat >>confdefs.h <<\_ACEOF
10925 #define HAVE_INT_TIMEZONE
10926 _ACEOF
10927
10928 fi
10929 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10930 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10931  if test "${ac_cv_func_accept_return+set}" = set; then
10932   echo $ECHO_N "(cached) $ECHO_C" >&6
10933 else
10934    if test "${ac_cv_func_accept_arg1+set}" = set; then
10935   echo $ECHO_N "(cached) $ECHO_C" >&6
10936 else
10937     if test "${ac_cv_func_accept_arg2+set}" = set; then
10938   echo $ECHO_N "(cached) $ECHO_C" >&6
10939 else
10940      if test "${ac_cv_func_accept_arg3+set}" = set; then
10941   echo $ECHO_N "(cached) $ECHO_C" >&6
10942 else
10943       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
10944       for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10945        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10946         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10947          cat >conftest.$ac_ext <<_ACEOF
10948 #line $LINENO "configure"
10949 #include "confdefs.h"
10950 #ifdef HAVE_SYS_TYPES_H
10951 #include <sys/types.h>
10952 #endif
10953 #ifdef HAVE_SYS_SOCKET_H
10954 #include <sys/socket.h>
10955 #endif
10956 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10957 #ifdef F77_DUMMY_MAIN
10958 #  ifdef __cplusplus
10959      extern "C"
10960 #  endif
10961    int F77_DUMMY_MAIN() { return 1; }
10962 #endif
10963 int
10964 main ()
10965 {
10966
10967   ;
10968   return 0;
10969 }
10970 _ACEOF
10971 rm -f conftest.$ac_objext
10972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10973   (eval $ac_compile) 2>&5
10974   ac_status=$?
10975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976   (exit $ac_status); } &&
10977          { ac_try='test -s conftest.$ac_objext'
10978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979   (eval $ac_try) 2>&5
10980   ac_status=$?
10981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982   (exit $ac_status); }; }; then
10983   ac_not_found=no; break 4
10984 else
10985   echo "$as_me: failed program was:" >&5
10986 cat conftest.$ac_ext >&5
10987 ac_not_found=yes
10988 fi
10989 rm -f conftest.$ac_objext conftest.$ac_ext
10990        done
10991       done
10992      done
10993     done
10994     if test "$ac_not_found" = yes; then
10995       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10996 echo "$as_me: error: could not determine argument types" >&2;}
10997    { (exit 1); exit 1; }; }
10998     fi
10999     if test "$ac_cv_func_accept_arg3" = "void"; then
11000       ac_cv_func_accept_arg3=int
11001     fi
11002
11003 fi
11004
11005 fi
11006
11007 fi
11008
11009 fi
11010  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
11011 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
11012
11013 cat >>confdefs.h <<_ACEOF
11014 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
11015 _ACEOF
11016
11017
11018 cat >>confdefs.h <<_ACEOF
11019 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
11020 _ACEOF
11021
11022
11023 cat >>confdefs.h <<_ACEOF
11024 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
11025 _ACEOF
11026
11027
11028 cat >>confdefs.h <<_ACEOF
11029 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
11030 _ACEOF
11031
11032
11033 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
11034 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
11035 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
11036   echo $ECHO_N "(cached) $ECHO_C" >&6
11037 else
11038   cat >conftest.$ac_ext <<_ACEOF
11039 #line $LINENO "configure"
11040 #include "confdefs.h"
11041 #include <sys/time.h>
11042 #ifdef F77_DUMMY_MAIN
11043 #  ifdef __cplusplus
11044      extern "C"
11045 #  endif
11046    int F77_DUMMY_MAIN() { return 1; }
11047 #endif
11048 int
11049 main ()
11050 {
11051 struct timeval *tp;
11052 struct timezone *tzp;
11053 gettimeofday(tp,tzp);
11054   ;
11055   return 0;
11056 }
11057 _ACEOF
11058 rm -f conftest.$ac_objext
11059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11060   (eval $ac_compile) 2>&5
11061   ac_status=$?
11062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063   (exit $ac_status); } &&
11064          { ac_try='test -s conftest.$ac_objext'
11065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066   (eval $ac_try) 2>&5
11067   ac_status=$?
11068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069   (exit $ac_status); }; }; then
11070   pgac_cv_func_gettimeofday_1arg=no
11071 else
11072   echo "$as_me: failed program was:" >&5
11073 cat conftest.$ac_ext >&5
11074 pgac_cv_func_gettimeofday_1arg=yes
11075 fi
11076 rm -f conftest.$ac_objext conftest.$ac_ext
11077 fi
11078 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
11079 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
11080 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
11081
11082 cat >>confdefs.h <<\_ACEOF
11083 #define GETTIMEOFDAY_1ARG
11084 _ACEOF
11085
11086 fi
11087
11088
11089
11090 # SunOS doesn't handle negative byte comparisons properly with +/- return
11091 echo "$as_me:$LINENO: checking for working memcmp" >&5
11092 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
11093 if test "${ac_cv_func_memcmp_working+set}" = set; then
11094   echo $ECHO_N "(cached) $ECHO_C" >&6
11095 else
11096   if test "$cross_compiling" = yes; then
11097   ac_cv_func_memcmp_working=no
11098 else
11099   cat >conftest.$ac_ext <<_ACEOF
11100 #line $LINENO "configure"
11101 #include "confdefs.h"
11102
11103 #ifdef F77_DUMMY_MAIN
11104 #  ifdef __cplusplus
11105      extern "C"
11106 #  endif
11107    int F77_DUMMY_MAIN() { return 1; }
11108 #endif
11109 int
11110 main ()
11111 {
11112
11113   /* Some versions of memcmp are not 8-bit clean.  */
11114   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11115   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11116     exit (1);
11117
11118   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11119      or more and with at least one buffer not starting on a 4-byte boundary.
11120      William Lewis provided this test program.   */
11121   {
11122     char foo[21];
11123     char bar[21];
11124     int i;
11125     for (i = 0; i < 4; i++)
11126       {
11127         char *a = foo + i;
11128         char *b = bar + i;
11129         strcpy (a, "--------01111111");
11130         strcpy (b, "--------10000000");
11131         if (memcmp (a, b, 16) >= 0)
11132           exit (1);
11133       }
11134     exit (0);
11135   }
11136
11137   ;
11138   return 0;
11139 }
11140 _ACEOF
11141 rm -f conftest$ac_exeext
11142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11143   (eval $ac_link) 2>&5
11144   ac_status=$?
11145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148   (eval $ac_try) 2>&5
11149   ac_status=$?
11150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151   (exit $ac_status); }; }; then
11152   ac_cv_func_memcmp_working=yes
11153 else
11154   echo "$as_me: program exited with status $ac_status" >&5
11155 echo "$as_me: failed program was:" >&5
11156 cat conftest.$ac_ext >&5
11157 ( exit $ac_status )
11158 ac_cv_func_memcmp_working=no
11159 fi
11160 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11161 fi
11162 fi
11163 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11164 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
11165 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid
11185 do
11186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11187 echo "$as_me:$LINENO: checking for $ac_func" >&5
11188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11189 if eval "test \"\${$as_ac_var+set}\" = set"; then
11190   echo $ECHO_N "(cached) $ECHO_C" >&6
11191 else
11192   cat >conftest.$ac_ext <<_ACEOF
11193 #line $LINENO "configure"
11194 #include "confdefs.h"
11195 /* System header to define __stub macros and hopefully few prototypes,
11196     which can conflict with char $ac_func (); below.  */
11197 #include <assert.h>
11198 /* Override any gcc2 internal prototype to avoid an error.  */
11199 #ifdef __cplusplus
11200 extern "C"
11201 #endif
11202 /* We use char because int might match the return type of a gcc2
11203    builtin and then its argument prototype would still apply.  */
11204 char $ac_func ();
11205 char (*f) ();
11206
11207 #ifdef F77_DUMMY_MAIN
11208 #  ifdef __cplusplus
11209      extern "C"
11210 #  endif
11211    int F77_DUMMY_MAIN() { return 1; }
11212 #endif
11213 int
11214 main ()
11215 {
11216 /* The GNU C library defines this for functions which it implements
11217     to always fail with ENOSYS.  Some functions are actually named
11218     something starting with __ and the normal name is an alias.  */
11219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11220 choke me
11221 #else
11222 f = $ac_func;
11223 #endif
11224
11225   ;
11226   return 0;
11227 }
11228 _ACEOF
11229 rm -f conftest.$ac_objext conftest$ac_exeext
11230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11231   (eval $ac_link) 2>&5
11232   ac_status=$?
11233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234   (exit $ac_status); } &&
11235          { ac_try='test -s conftest$ac_exeext'
11236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11237   (eval $ac_try) 2>&5
11238   ac_status=$?
11239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240   (exit $ac_status); }; }; then
11241   eval "$as_ac_var=yes"
11242 else
11243   echo "$as_me: failed program was:" >&5
11244 cat conftest.$ac_ext >&5
11245 eval "$as_ac_var=no"
11246 fi
11247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11248 fi
11249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11251 if test `eval echo '${'$as_ac_var'}'` = yes; then
11252   cat >>confdefs.h <<_ACEOF
11253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11254 _ACEOF
11255
11256 fi
11257 done
11258
11259
11260 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11261 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11262 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11263   echo $ECHO_N "(cached) $ECHO_C" >&6
11264 else
11265   cat >conftest.$ac_ext <<_ACEOF
11266 #line $LINENO "configure"
11267 #include "confdefs.h"
11268 #include <unistd.h>
11269
11270 #ifdef F77_DUMMY_MAIN
11271 #  ifdef __cplusplus
11272      extern "C"
11273 #  endif
11274    int F77_DUMMY_MAIN() { return 1; }
11275 #endif
11276 int
11277 main ()
11278 {
11279 #ifndef fdatasync
11280   char *p = (char *) fdatasync;
11281 #endif
11282
11283   ;
11284   return 0;
11285 }
11286 _ACEOF
11287 rm -f conftest.$ac_objext
11288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11289   (eval $ac_compile) 2>&5
11290   ac_status=$?
11291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292   (exit $ac_status); } &&
11293          { ac_try='test -s conftest.$ac_objext'
11294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11295   (eval $ac_try) 2>&5
11296   ac_status=$?
11297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298   (exit $ac_status); }; }; then
11299   ac_cv_have_decl_fdatasync=yes
11300 else
11301   echo "$as_me: failed program was:" >&5
11302 cat conftest.$ac_ext >&5
11303 ac_cv_have_decl_fdatasync=no
11304 fi
11305 rm -f conftest.$ac_objext conftest.$ac_ext
11306 fi
11307 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11308 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11309 if test $ac_cv_have_decl_fdatasync = yes; then
11310
11311 cat >>confdefs.h <<_ACEOF
11312 #define HAVE_DECL_FDATASYNC 1
11313 _ACEOF
11314
11315
11316 else
11317   cat >>confdefs.h <<_ACEOF
11318 #define HAVE_DECL_FDATASYNC 0
11319 _ACEOF
11320
11321
11322 fi
11323
11324
11325
11326 HAVE_IPV6=no
11327 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11328 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11329 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11330   echo $ECHO_N "(cached) $ECHO_C" >&6
11331 else
11332   cat >conftest.$ac_ext <<_ACEOF
11333 #line $LINENO "configure"
11334 #include "confdefs.h"
11335 $ac_includes_default
11336 #include <netinet/in.h>
11337
11338 #ifdef F77_DUMMY_MAIN
11339 #  ifdef __cplusplus
11340      extern "C"
11341 #  endif
11342    int F77_DUMMY_MAIN() { return 1; }
11343 #endif
11344 int
11345 main ()
11346 {
11347 if ((struct sockaddr_in6 *) 0)
11348   return 0;
11349 if (sizeof (struct sockaddr_in6))
11350   return 0;
11351   ;
11352   return 0;
11353 }
11354 _ACEOF
11355 rm -f conftest.$ac_objext
11356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11357   (eval $ac_compile) 2>&5
11358   ac_status=$?
11359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360   (exit $ac_status); } &&
11361          { ac_try='test -s conftest.$ac_objext'
11362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11363   (eval $ac_try) 2>&5
11364   ac_status=$?
11365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366   (exit $ac_status); }; }; then
11367   ac_cv_type_struct_sockaddr_in6=yes
11368 else
11369   echo "$as_me: failed program was:" >&5
11370 cat conftest.$ac_ext >&5
11371 ac_cv_type_struct_sockaddr_in6=no
11372 fi
11373 rm -f conftest.$ac_objext conftest.$ac_ext
11374 fi
11375 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11376 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11377 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11378   echo "$as_me:$LINENO: checking for inet_ntop" >&5
11379 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11380 if test "${ac_cv_func_inet_ntop+set}" = set; then
11381   echo $ECHO_N "(cached) $ECHO_C" >&6
11382 else
11383   cat >conftest.$ac_ext <<_ACEOF
11384 #line $LINENO "configure"
11385 #include "confdefs.h"
11386 /* System header to define __stub macros and hopefully few prototypes,
11387     which can conflict with char inet_ntop (); below.  */
11388 #include <assert.h>
11389 /* Override any gcc2 internal prototype to avoid an error.  */
11390 #ifdef __cplusplus
11391 extern "C"
11392 #endif
11393 /* We use char because int might match the return type of a gcc2
11394    builtin and then its argument prototype would still apply.  */
11395 char inet_ntop ();
11396 char (*f) ();
11397
11398 #ifdef F77_DUMMY_MAIN
11399 #  ifdef __cplusplus
11400      extern "C"
11401 #  endif
11402    int F77_DUMMY_MAIN() { return 1; }
11403 #endif
11404 int
11405 main ()
11406 {
11407 /* The GNU C library defines this for functions which it implements
11408     to always fail with ENOSYS.  Some functions are actually named
11409     something starting with __ and the normal name is an alias.  */
11410 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11411 choke me
11412 #else
11413 f = inet_ntop;
11414 #endif
11415
11416   ;
11417   return 0;
11418 }
11419 _ACEOF
11420 rm -f conftest.$ac_objext conftest$ac_exeext
11421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11422   (eval $ac_link) 2>&5
11423   ac_status=$?
11424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425   (exit $ac_status); } &&
11426          { ac_try='test -s conftest$ac_exeext'
11427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428   (eval $ac_try) 2>&5
11429   ac_status=$?
11430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431   (exit $ac_status); }; }; then
11432   ac_cv_func_inet_ntop=yes
11433 else
11434   echo "$as_me: failed program was:" >&5
11435 cat conftest.$ac_ext >&5
11436 ac_cv_func_inet_ntop=no
11437 fi
11438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11439 fi
11440 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11441 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11442 if test $ac_cv_func_inet_ntop = yes; then
11443
11444 cat >>confdefs.h <<\_ACEOF
11445 #define HAVE_IPV6 1
11446 _ACEOF
11447
11448                                                           HAVE_IPV6=yes
11449 fi
11450
11451 fi
11452
11453
11454
11455 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11456 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11457 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11458   echo $ECHO_N "(cached) $ECHO_C" >&6
11459 else
11460   cat >conftest.$ac_ext <<_ACEOF
11461 #line $LINENO "configure"
11462 #include "confdefs.h"
11463 #include <machine/vmparam.h>
11464 #include <sys/exec.h>
11465
11466 #ifdef F77_DUMMY_MAIN
11467 #  ifdef __cplusplus
11468      extern "C"
11469 #  endif
11470    int F77_DUMMY_MAIN() { return 1; }
11471 #endif
11472 int
11473 main ()
11474 {
11475 PS_STRINGS->ps_nargvstr = 1;
11476 PS_STRINGS->ps_argvstr = "foo";
11477   ;
11478   return 0;
11479 }
11480 _ACEOF
11481 rm -f conftest.$ac_objext conftest$ac_exeext
11482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11483   (eval $ac_link) 2>&5
11484   ac_status=$?
11485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486   (exit $ac_status); } &&
11487          { ac_try='test -s conftest$ac_exeext'
11488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489   (eval $ac_try) 2>&5
11490   ac_status=$?
11491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492   (exit $ac_status); }; }; then
11493   pgac_cv_var_PS_STRINGS=yes
11494 else
11495   echo "$as_me: failed program was:" >&5
11496 cat conftest.$ac_ext >&5
11497 pgac_cv_var_PS_STRINGS=no
11498 fi
11499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11500 fi
11501 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11502 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11503 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11504
11505 cat >>confdefs.h <<\_ACEOF
11506 #define HAVE_PS_STRINGS
11507 _ACEOF
11508
11509 fi
11510
11511
11512 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11513 # is missing.  Yes, there are machines that have only one.  We may
11514 # also decide to use snprintf.c if snprintf() is present but does not
11515 # have working "long long int" support -- see below.
11516
11517 pgac_need_repl_snprintf=no
11518
11519 for ac_func in snprintf
11520 do
11521 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11522 echo "$as_me:$LINENO: checking for $ac_func" >&5
11523 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11524 if eval "test \"\${$as_ac_var+set}\" = set"; then
11525   echo $ECHO_N "(cached) $ECHO_C" >&6
11526 else
11527   cat >conftest.$ac_ext <<_ACEOF
11528 #line $LINENO "configure"
11529 #include "confdefs.h"
11530 /* System header to define __stub macros and hopefully few prototypes,
11531     which can conflict with char $ac_func (); below.  */
11532 #include <assert.h>
11533 /* Override any gcc2 internal prototype to avoid an error.  */
11534 #ifdef __cplusplus
11535 extern "C"
11536 #endif
11537 /* We use char because int might match the return type of a gcc2
11538    builtin and then its argument prototype would still apply.  */
11539 char $ac_func ();
11540 char (*f) ();
11541
11542 #ifdef F77_DUMMY_MAIN
11543 #  ifdef __cplusplus
11544      extern "C"
11545 #  endif
11546    int F77_DUMMY_MAIN() { return 1; }
11547 #endif
11548 int
11549 main ()
11550 {
11551 /* The GNU C library defines this for functions which it implements
11552     to always fail with ENOSYS.  Some functions are actually named
11553     something starting with __ and the normal name is an alias.  */
11554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11555 choke me
11556 #else
11557 f = $ac_func;
11558 #endif
11559
11560   ;
11561   return 0;
11562 }
11563 _ACEOF
11564 rm -f conftest.$ac_objext conftest$ac_exeext
11565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11566   (eval $ac_link) 2>&5
11567   ac_status=$?
11568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569   (exit $ac_status); } &&
11570          { ac_try='test -s conftest$ac_exeext'
11571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572   (eval $ac_try) 2>&5
11573   ac_status=$?
11574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575   (exit $ac_status); }; }; then
11576   eval "$as_ac_var=yes"
11577 else
11578   echo "$as_me: failed program was:" >&5
11579 cat conftest.$ac_ext >&5
11580 eval "$as_ac_var=no"
11581 fi
11582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11583 fi
11584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11585 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11586 if test `eval echo '${'$as_ac_var'}'` = yes; then
11587   cat >>confdefs.h <<_ACEOF
11588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11589 _ACEOF
11590
11591 else
11592   pgac_need_repl_snprintf=yes
11593 fi
11594 done
11595
11596
11597 for ac_func in vsnprintf
11598 do
11599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11600 echo "$as_me:$LINENO: checking for $ac_func" >&5
11601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11602 if eval "test \"\${$as_ac_var+set}\" = set"; then
11603   echo $ECHO_N "(cached) $ECHO_C" >&6
11604 else
11605   cat >conftest.$ac_ext <<_ACEOF
11606 #line $LINENO "configure"
11607 #include "confdefs.h"
11608 /* System header to define __stub macros and hopefully few prototypes,
11609     which can conflict with char $ac_func (); below.  */
11610 #include <assert.h>
11611 /* Override any gcc2 internal prototype to avoid an error.  */
11612 #ifdef __cplusplus
11613 extern "C"
11614 #endif
11615 /* We use char because int might match the return type of a gcc2
11616    builtin and then its argument prototype would still apply.  */
11617 char $ac_func ();
11618 char (*f) ();
11619
11620 #ifdef F77_DUMMY_MAIN
11621 #  ifdef __cplusplus
11622      extern "C"
11623 #  endif
11624    int F77_DUMMY_MAIN() { return 1; }
11625 #endif
11626 int
11627 main ()
11628 {
11629 /* The GNU C library defines this for functions which it implements
11630     to always fail with ENOSYS.  Some functions are actually named
11631     something starting with __ and the normal name is an alias.  */
11632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11633 choke me
11634 #else
11635 f = $ac_func;
11636 #endif
11637
11638   ;
11639   return 0;
11640 }
11641 _ACEOF
11642 rm -f conftest.$ac_objext conftest$ac_exeext
11643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11644   (eval $ac_link) 2>&5
11645   ac_status=$?
11646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647   (exit $ac_status); } &&
11648          { ac_try='test -s conftest$ac_exeext'
11649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11650   (eval $ac_try) 2>&5
11651   ac_status=$?
11652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653   (exit $ac_status); }; }; then
11654   eval "$as_ac_var=yes"
11655 else
11656   echo "$as_me: failed program was:" >&5
11657 cat conftest.$ac_ext >&5
11658 eval "$as_ac_var=no"
11659 fi
11660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11661 fi
11662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11664 if test `eval echo '${'$as_ac_var'}'` = yes; then
11665   cat >>confdefs.h <<_ACEOF
11666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11667 _ACEOF
11668
11669 else
11670   pgac_need_repl_snprintf=yes
11671 fi
11672 done
11673
11674
11675
11676 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11677 # include/c.h will provide declarations.  Note this is a separate test
11678 # from whether the functions exist in the C library --- there are
11679 # systems that have the functions but don't bother to declare them :-(
11680
11681 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11682 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11683 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11684   echo $ECHO_N "(cached) $ECHO_C" >&6
11685 else
11686   cat >conftest.$ac_ext <<_ACEOF
11687 #line $LINENO "configure"
11688 #include "confdefs.h"
11689 $ac_includes_default
11690 #ifdef F77_DUMMY_MAIN
11691 #  ifdef __cplusplus
11692      extern "C"
11693 #  endif
11694    int F77_DUMMY_MAIN() { return 1; }
11695 #endif
11696 int
11697 main ()
11698 {
11699 #ifndef snprintf
11700   char *p = (char *) snprintf;
11701 #endif
11702
11703   ;
11704   return 0;
11705 }
11706 _ACEOF
11707 rm -f conftest.$ac_objext
11708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11709   (eval $ac_compile) 2>&5
11710   ac_status=$?
11711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712   (exit $ac_status); } &&
11713          { ac_try='test -s conftest.$ac_objext'
11714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11715   (eval $ac_try) 2>&5
11716   ac_status=$?
11717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718   (exit $ac_status); }; }; then
11719   ac_cv_have_decl_snprintf=yes
11720 else
11721   echo "$as_me: failed program was:" >&5
11722 cat conftest.$ac_ext >&5
11723 ac_cv_have_decl_snprintf=no
11724 fi
11725 rm -f conftest.$ac_objext conftest.$ac_ext
11726 fi
11727 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11728 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11729 if test $ac_cv_have_decl_snprintf = yes; then
11730
11731 cat >>confdefs.h <<_ACEOF
11732 #define HAVE_DECL_SNPRINTF 1
11733 _ACEOF
11734
11735
11736 else
11737   cat >>confdefs.h <<_ACEOF
11738 #define HAVE_DECL_SNPRINTF 0
11739 _ACEOF
11740
11741
11742 fi
11743 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11744 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11745 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11746   echo $ECHO_N "(cached) $ECHO_C" >&6
11747 else
11748   cat >conftest.$ac_ext <<_ACEOF
11749 #line $LINENO "configure"
11750 #include "confdefs.h"
11751 $ac_includes_default
11752 #ifdef F77_DUMMY_MAIN
11753 #  ifdef __cplusplus
11754      extern "C"
11755 #  endif
11756    int F77_DUMMY_MAIN() { return 1; }
11757 #endif
11758 int
11759 main ()
11760 {
11761 #ifndef vsnprintf
11762   char *p = (char *) vsnprintf;
11763 #endif
11764
11765   ;
11766   return 0;
11767 }
11768 _ACEOF
11769 rm -f conftest.$ac_objext
11770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11771   (eval $ac_compile) 2>&5
11772   ac_status=$?
11773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774   (exit $ac_status); } &&
11775          { ac_try='test -s conftest.$ac_objext'
11776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777   (eval $ac_try) 2>&5
11778   ac_status=$?
11779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780   (exit $ac_status); }; }; then
11781   ac_cv_have_decl_vsnprintf=yes
11782 else
11783   echo "$as_me: failed program was:" >&5
11784 cat conftest.$ac_ext >&5
11785 ac_cv_have_decl_vsnprintf=no
11786 fi
11787 rm -f conftest.$ac_objext conftest.$ac_ext
11788 fi
11789 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11790 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11791 if test $ac_cv_have_decl_vsnprintf = yes; then
11792
11793 cat >>confdefs.h <<_ACEOF
11794 #define HAVE_DECL_VSNPRINTF 1
11795 _ACEOF
11796
11797
11798 else
11799   cat >>confdefs.h <<_ACEOF
11800 #define HAVE_DECL_VSNPRINTF 0
11801 _ACEOF
11802
11803
11804 fi
11805
11806
11807
11808
11809 # do this one the hard way in case isinf() is a macro
11810 echo "$as_me:$LINENO: checking for isinf" >&5
11811 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11812 if test "${ac_cv_func_isinf+set}" = set; then
11813   echo $ECHO_N "(cached) $ECHO_C" >&6
11814 else
11815   cat >conftest.$ac_ext <<_ACEOF
11816 #line $LINENO "configure"
11817 #include "confdefs.h"
11818 #include <math.h>
11819
11820 #ifdef F77_DUMMY_MAIN
11821 #  ifdef __cplusplus
11822      extern "C"
11823 #  endif
11824    int F77_DUMMY_MAIN() { return 1; }
11825 #endif
11826 int
11827 main ()
11828 {
11829 double x = 0.0; int res = isinf(x);
11830   ;
11831   return 0;
11832 }
11833 _ACEOF
11834 rm -f conftest.$ac_objext conftest$ac_exeext
11835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11836   (eval $ac_link) 2>&5
11837   ac_status=$?
11838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839   (exit $ac_status); } &&
11840          { ac_try='test -s conftest$ac_exeext'
11841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11842   (eval $ac_try) 2>&5
11843   ac_status=$?
11844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845   (exit $ac_status); }; }; then
11846   ac_cv_func_isinf=yes
11847 else
11848   echo "$as_me: failed program was:" >&5
11849 cat conftest.$ac_ext >&5
11850 ac_cv_func_isinf=no
11851 fi
11852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11853 fi
11854 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11855 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11856
11857 if test $ac_cv_func_isinf = yes ; then
11858
11859 cat >>confdefs.h <<\_ACEOF
11860 #define HAVE_ISINF 1
11861 _ACEOF
11862
11863 else
11864   LIBOBJS="$LIBOBJS isinf.$ac_objext"
11865   # Look for a way to implement a substitute for isinf()
11866
11867
11868
11869
11870 for ac_func in fpclass fp_class fp_class_d class
11871 do
11872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11873 echo "$as_me:$LINENO: checking for $ac_func" >&5
11874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11875 if eval "test \"\${$as_ac_var+set}\" = set"; then
11876   echo $ECHO_N "(cached) $ECHO_C" >&6
11877 else
11878   cat >conftest.$ac_ext <<_ACEOF
11879 #line $LINENO "configure"
11880 #include "confdefs.h"
11881 /* System header to define __stub macros and hopefully few prototypes,
11882     which can conflict with char $ac_func (); below.  */
11883 #include <assert.h>
11884 /* Override any gcc2 internal prototype to avoid an error.  */
11885 #ifdef __cplusplus
11886 extern "C"
11887 #endif
11888 /* We use char because int might match the return type of a gcc2
11889    builtin and then its argument prototype would still apply.  */
11890 char $ac_func ();
11891 char (*f) ();
11892
11893 #ifdef F77_DUMMY_MAIN
11894 #  ifdef __cplusplus
11895      extern "C"
11896 #  endif
11897    int F77_DUMMY_MAIN() { return 1; }
11898 #endif
11899 int
11900 main ()
11901 {
11902 /* The GNU C library defines this for functions which it implements
11903     to always fail with ENOSYS.  Some functions are actually named
11904     something starting with __ and the normal name is an alias.  */
11905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11906 choke me
11907 #else
11908 f = $ac_func;
11909 #endif
11910
11911   ;
11912   return 0;
11913 }
11914 _ACEOF
11915 rm -f conftest.$ac_objext conftest$ac_exeext
11916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11917   (eval $ac_link) 2>&5
11918   ac_status=$?
11919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920   (exit $ac_status); } &&
11921          { ac_try='test -s conftest$ac_exeext'
11922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11923   (eval $ac_try) 2>&5
11924   ac_status=$?
11925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926   (exit $ac_status); }; }; then
11927   eval "$as_ac_var=yes"
11928 else
11929   echo "$as_me: failed program was:" >&5
11930 cat conftest.$ac_ext >&5
11931 eval "$as_ac_var=no"
11932 fi
11933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11934 fi
11935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11936 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11937 if test `eval echo '${'$as_ac_var'}'` = yes; then
11938   cat >>confdefs.h <<_ACEOF
11939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11940 _ACEOF
11941  break
11942 fi
11943 done
11944
11945 fi
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strcasecmp strdup strerror strtol strtoul
11961 do
11962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11963 echo "$as_me:$LINENO: checking for $ac_func" >&5
11964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11965 if eval "test \"\${$as_ac_var+set}\" = set"; then
11966   echo $ECHO_N "(cached) $ECHO_C" >&6
11967 else
11968   cat >conftest.$ac_ext <<_ACEOF
11969 #line $LINENO "configure"
11970 #include "confdefs.h"
11971 /* System header to define __stub macros and hopefully few prototypes,
11972     which can conflict with char $ac_func (); below.  */
11973 #include <assert.h>
11974 /* Override any gcc2 internal prototype to avoid an error.  */
11975 #ifdef __cplusplus
11976 extern "C"
11977 #endif
11978 /* We use char because int might match the return type of a gcc2
11979    builtin and then its argument prototype would still apply.  */
11980 char $ac_func ();
11981 char (*f) ();
11982
11983 #ifdef F77_DUMMY_MAIN
11984 #  ifdef __cplusplus
11985      extern "C"
11986 #  endif
11987    int F77_DUMMY_MAIN() { return 1; }
11988 #endif
11989 int
11990 main ()
11991 {
11992 /* The GNU C library defines this for functions which it implements
11993     to always fail with ENOSYS.  Some functions are actually named
11994     something starting with __ and the normal name is an alias.  */
11995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11996 choke me
11997 #else
11998 f = $ac_func;
11999 #endif
12000
12001   ;
12002   return 0;
12003 }
12004 _ACEOF
12005 rm -f conftest.$ac_objext conftest$ac_exeext
12006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12007   (eval $ac_link) 2>&5
12008   ac_status=$?
12009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010   (exit $ac_status); } &&
12011          { ac_try='test -s conftest$ac_exeext'
12012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12013   (eval $ac_try) 2>&5
12014   ac_status=$?
12015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016   (exit $ac_status); }; }; then
12017   eval "$as_ac_var=yes"
12018 else
12019   echo "$as_me: failed program was:" >&5
12020 cat conftest.$ac_ext >&5
12021 eval "$as_ac_var=no"
12022 fi
12023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12024 fi
12025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12027 if test `eval echo '${'$as_ac_var'}'` = yes; then
12028   cat >>confdefs.h <<_ACEOF
12029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12030 _ACEOF
12031
12032 else
12033   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12034 fi
12035 done
12036
12037
12038
12039 # system's version of getaddrinfo(), if any, may be used only if we found
12040 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
12041 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
12042
12043 for ac_func in getaddrinfo
12044 do
12045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12046 echo "$as_me:$LINENO: checking for $ac_func" >&5
12047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12048 if eval "test \"\${$as_ac_var+set}\" = set"; then
12049   echo $ECHO_N "(cached) $ECHO_C" >&6
12050 else
12051   cat >conftest.$ac_ext <<_ACEOF
12052 #line $LINENO "configure"
12053 #include "confdefs.h"
12054 /* System header to define __stub macros and hopefully few prototypes,
12055     which can conflict with char $ac_func (); below.  */
12056 #include <assert.h>
12057 /* Override any gcc2 internal prototype to avoid an error.  */
12058 #ifdef __cplusplus
12059 extern "C"
12060 #endif
12061 /* We use char because int might match the return type of a gcc2
12062    builtin and then its argument prototype would still apply.  */
12063 char $ac_func ();
12064 char (*f) ();
12065
12066 #ifdef F77_DUMMY_MAIN
12067 #  ifdef __cplusplus
12068      extern "C"
12069 #  endif
12070    int F77_DUMMY_MAIN() { return 1; }
12071 #endif
12072 int
12073 main ()
12074 {
12075 /* The GNU C library defines this for functions which it implements
12076     to always fail with ENOSYS.  Some functions are actually named
12077     something starting with __ and the normal name is an alias.  */
12078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12079 choke me
12080 #else
12081 f = $ac_func;
12082 #endif
12083
12084   ;
12085   return 0;
12086 }
12087 _ACEOF
12088 rm -f conftest.$ac_objext conftest$ac_exeext
12089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12090   (eval $ac_link) 2>&5
12091   ac_status=$?
12092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093   (exit $ac_status); } &&
12094          { ac_try='test -s conftest$ac_exeext'
12095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12096   (eval $ac_try) 2>&5
12097   ac_status=$?
12098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099   (exit $ac_status); }; }; then
12100   eval "$as_ac_var=yes"
12101 else
12102   echo "$as_me: failed program was:" >&5
12103 cat conftest.$ac_ext >&5
12104 eval "$as_ac_var=no"
12105 fi
12106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12107 fi
12108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12109 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12110 if test `eval echo '${'$as_ac_var'}'` = yes; then
12111   cat >>confdefs.h <<_ACEOF
12112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12113 _ACEOF
12114
12115 else
12116   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12117 fi
12118 done
12119
12120
12121 else
12122   LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
12123 fi
12124
12125 # similarly, use system's getopt_long() only if system provides struct option.
12126 if test x"$ac_cv_type_struct_option" = xyes ; then
12127
12128 for ac_func in getopt_long
12129 do
12130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12131 echo "$as_me:$LINENO: checking for $ac_func" >&5
12132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12133 if eval "test \"\${$as_ac_var+set}\" = set"; then
12134   echo $ECHO_N "(cached) $ECHO_C" >&6
12135 else
12136   cat >conftest.$ac_ext <<_ACEOF
12137 #line $LINENO "configure"
12138 #include "confdefs.h"
12139 /* System header to define __stub macros and hopefully few prototypes,
12140     which can conflict with char $ac_func (); below.  */
12141 #include <assert.h>
12142 /* Override any gcc2 internal prototype to avoid an error.  */
12143 #ifdef __cplusplus
12144 extern "C"
12145 #endif
12146 /* We use char because int might match the return type of a gcc2
12147    builtin and then its argument prototype would still apply.  */
12148 char $ac_func ();
12149 char (*f) ();
12150
12151 #ifdef F77_DUMMY_MAIN
12152 #  ifdef __cplusplus
12153      extern "C"
12154 #  endif
12155    int F77_DUMMY_MAIN() { return 1; }
12156 #endif
12157 int
12158 main ()
12159 {
12160 /* The GNU C library defines this for functions which it implements
12161     to always fail with ENOSYS.  Some functions are actually named
12162     something starting with __ and the normal name is an alias.  */
12163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12164 choke me
12165 #else
12166 f = $ac_func;
12167 #endif
12168
12169   ;
12170   return 0;
12171 }
12172 _ACEOF
12173 rm -f conftest.$ac_objext conftest$ac_exeext
12174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12175   (eval $ac_link) 2>&5
12176   ac_status=$?
12177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178   (exit $ac_status); } &&
12179          { ac_try='test -s conftest$ac_exeext'
12180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12181   (eval $ac_try) 2>&5
12182   ac_status=$?
12183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184   (exit $ac_status); }; }; then
12185   eval "$as_ac_var=yes"
12186 else
12187   echo "$as_me: failed program was:" >&5
12188 cat conftest.$ac_ext >&5
12189 eval "$as_ac_var=no"
12190 fi
12191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12192 fi
12193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12195 if test `eval echo '${'$as_ac_var'}'` = yes; then
12196   cat >>confdefs.h <<_ACEOF
12197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12198 _ACEOF
12199
12200 else
12201   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12202 fi
12203 done
12204
12205
12206 else
12207   LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12208 fi
12209
12210 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
12211 # We override the previous test that said fseeko/ftello didn't exist
12212 # OS tests are also done in include/c.h and port/fseeko.c
12213 case $host_os in bsdi*|netbsd*)
12214 ac_cv_func_fseeko=yes
12215 esac
12216
12217 # Solaris has a very slow qsort in certain cases, so we replace it.
12218 case $host_os in solaris*)
12219 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
12220 esac
12221
12222 # Win32 can't to rename or unlink on an open file
12223 case $host_os in mingw*)
12224 LIBOBJS="$LIBOBJS dirmod.$ac_objext"
12225 LIBOBJS="$LIBOBJS copydir.$ac_objext"
12226 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
12227 esac
12228
12229 if test "$with_readline" = yes; then
12230   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12231 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12232 cat >conftest.$ac_ext <<_ACEOF
12233 #line $LINENO "configure"
12234 #include "confdefs.h"
12235 #include <stdio.h>
12236 #ifdef HAVE_READLINE_READLINE_H
12237 # include <readline/readline.h>
12238 #elif defined(HAVE_READLINE_H)
12239 # include <readline.h>
12240 #endif
12241
12242 #ifdef F77_DUMMY_MAIN
12243 #  ifdef __cplusplus
12244      extern "C"
12245 #  endif
12246    int F77_DUMMY_MAIN() { return 1; }
12247 #endif
12248 int
12249 main ()
12250 {
12251 rl_completion_append_character = 'x';
12252   ;
12253   return 0;
12254 }
12255 _ACEOF
12256 rm -f conftest.$ac_objext conftest$ac_exeext
12257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12258   (eval $ac_link) 2>&5
12259   ac_status=$?
12260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261   (exit $ac_status); } &&
12262          { ac_try='test -s conftest$ac_exeext'
12263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12264   (eval $ac_try) 2>&5
12265   ac_status=$?
12266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267   (exit $ac_status); }; }; then
12268   echo "$as_me:$LINENO: result: yes" >&5
12269 echo "${ECHO_T}yes" >&6
12270
12271 cat >>confdefs.h <<\_ACEOF
12272 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12273 _ACEOF
12274
12275 else
12276   echo "$as_me: failed program was:" >&5
12277 cat conftest.$ac_ext >&5
12278 echo "$as_me:$LINENO: result: no" >&5
12279 echo "${ECHO_T}no" >&6
12280 fi
12281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12282
12283
12284 for ac_func in rl_completion_matches rl_filename_completion_function
12285 do
12286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12287 echo "$as_me:$LINENO: checking for $ac_func" >&5
12288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12289 if eval "test \"\${$as_ac_var+set}\" = set"; then
12290   echo $ECHO_N "(cached) $ECHO_C" >&6
12291 else
12292   cat >conftest.$ac_ext <<_ACEOF
12293 #line $LINENO "configure"
12294 #include "confdefs.h"
12295 /* System header to define __stub macros and hopefully few prototypes,
12296     which can conflict with char $ac_func (); below.  */
12297 #include <assert.h>
12298 /* Override any gcc2 internal prototype to avoid an error.  */
12299 #ifdef __cplusplus
12300 extern "C"
12301 #endif
12302 /* We use char because int might match the return type of a gcc2
12303    builtin and then its argument prototype would still apply.  */
12304 char $ac_func ();
12305 char (*f) ();
12306
12307 #ifdef F77_DUMMY_MAIN
12308 #  ifdef __cplusplus
12309      extern "C"
12310 #  endif
12311    int F77_DUMMY_MAIN() { return 1; }
12312 #endif
12313 int
12314 main ()
12315 {
12316 /* The GNU C library defines this for functions which it implements
12317     to always fail with ENOSYS.  Some functions are actually named
12318     something starting with __ and the normal name is an alias.  */
12319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12320 choke me
12321 #else
12322 f = $ac_func;
12323 #endif
12324
12325   ;
12326   return 0;
12327 }
12328 _ACEOF
12329 rm -f conftest.$ac_objext conftest$ac_exeext
12330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12331   (eval $ac_link) 2>&5
12332   ac_status=$?
12333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334   (exit $ac_status); } &&
12335          { ac_try='test -s conftest$ac_exeext'
12336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12337   (eval $ac_try) 2>&5
12338   ac_status=$?
12339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340   (exit $ac_status); }; }; then
12341   eval "$as_ac_var=yes"
12342 else
12343   echo "$as_me: failed program was:" >&5
12344 cat conftest.$ac_ext >&5
12345 eval "$as_ac_var=no"
12346 fi
12347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12348 fi
12349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12350 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12351 if test `eval echo '${'$as_ac_var'}'` = yes; then
12352   cat >>confdefs.h <<_ACEOF
12353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12354 _ACEOF
12355
12356 fi
12357 done
12358
12359
12360 for ac_func in replace_history_entry
12361 do
12362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12363 echo "$as_me:$LINENO: checking for $ac_func" >&5
12364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12365 if eval "test \"\${$as_ac_var+set}\" = set"; then
12366   echo $ECHO_N "(cached) $ECHO_C" >&6
12367 else
12368   cat >conftest.$ac_ext <<_ACEOF
12369 #line $LINENO "configure"
12370 #include "confdefs.h"
12371 /* System header to define __stub macros and hopefully few prototypes,
12372     which can conflict with char $ac_func (); below.  */
12373 #include <assert.h>
12374 /* Override any gcc2 internal prototype to avoid an error.  */
12375 #ifdef __cplusplus
12376 extern "C"
12377 #endif
12378 /* We use char because int might match the return type of a gcc2
12379    builtin and then its argument prototype would still apply.  */
12380 char $ac_func ();
12381 char (*f) ();
12382
12383 #ifdef F77_DUMMY_MAIN
12384 #  ifdef __cplusplus
12385      extern "C"
12386 #  endif
12387    int F77_DUMMY_MAIN() { return 1; }
12388 #endif
12389 int
12390 main ()
12391 {
12392 /* The GNU C library defines this for functions which it implements
12393     to always fail with ENOSYS.  Some functions are actually named
12394     something starting with __ and the normal name is an alias.  */
12395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12396 choke me
12397 #else
12398 f = $ac_func;
12399 #endif
12400
12401   ;
12402   return 0;
12403 }
12404 _ACEOF
12405 rm -f conftest.$ac_objext conftest$ac_exeext
12406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12407   (eval $ac_link) 2>&5
12408   ac_status=$?
12409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410   (exit $ac_status); } &&
12411          { ac_try='test -s conftest$ac_exeext'
12412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413   (eval $ac_try) 2>&5
12414   ac_status=$?
12415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416   (exit $ac_status); }; }; then
12417   eval "$as_ac_var=yes"
12418 else
12419   echo "$as_me: failed program was:" >&5
12420 cat conftest.$ac_ext >&5
12421 eval "$as_ac_var=no"
12422 fi
12423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12424 fi
12425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12427 if test `eval echo '${'$as_ac_var'}'` = yes; then
12428   cat >>confdefs.h <<_ACEOF
12429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12430 _ACEOF
12431
12432 fi
12433 done
12434
12435 fi
12436
12437
12438 echo "$as_me:$LINENO: checking for finite" >&5
12439 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12440 cat >conftest.$ac_ext <<_ACEOF
12441 #line $LINENO "configure"
12442 #include "confdefs.h"
12443 #include <math.h>
12444 #ifdef F77_DUMMY_MAIN
12445 #  ifdef __cplusplus
12446      extern "C"
12447 #  endif
12448    int F77_DUMMY_MAIN() { return 1; }
12449 #endif
12450 int
12451 main ()
12452 {
12453 int dummy=finite(1.0);
12454   ;
12455   return 0;
12456 }
12457 _ACEOF
12458 rm -f conftest.$ac_objext conftest$ac_exeext
12459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12460   (eval $ac_link) 2>&5
12461   ac_status=$?
12462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463   (exit $ac_status); } &&
12464          { ac_try='test -s conftest$ac_exeext'
12465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466   (eval $ac_try) 2>&5
12467   ac_status=$?
12468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469   (exit $ac_status); }; }; then
12470
12471 cat >>confdefs.h <<\_ACEOF
12472 #define HAVE_FINITE 1
12473 _ACEOF
12474
12475 echo "$as_me:$LINENO: result: yes" >&5
12476 echo "${ECHO_T}yes" >&6
12477 else
12478   echo "$as_me: failed program was:" >&5
12479 cat conftest.$ac_ext >&5
12480 echo "$as_me:$LINENO: result: no" >&5
12481 echo "${ECHO_T}no" >&6
12482 fi
12483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12484
12485 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12486 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12487 cat >conftest.$ac_ext <<_ACEOF
12488 #line $LINENO "configure"
12489 #include "confdefs.h"
12490 #include <setjmp.h>
12491 #ifdef F77_DUMMY_MAIN
12492 #  ifdef __cplusplus
12493      extern "C"
12494 #  endif
12495    int F77_DUMMY_MAIN() { return 1; }
12496 #endif
12497 int
12498 main ()
12499 {
12500 sigjmp_buf x; sigsetjmp(x, 1);
12501   ;
12502   return 0;
12503 }
12504 _ACEOF
12505 rm -f conftest.$ac_objext conftest$ac_exeext
12506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12507   (eval $ac_link) 2>&5
12508   ac_status=$?
12509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510   (exit $ac_status); } &&
12511          { ac_try='test -s conftest$ac_exeext'
12512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12513   (eval $ac_try) 2>&5
12514   ac_status=$?
12515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516   (exit $ac_status); }; }; then
12517
12518 cat >>confdefs.h <<\_ACEOF
12519 #define HAVE_SIGSETJMP 1
12520 _ACEOF
12521
12522 echo "$as_me:$LINENO: result: yes" >&5
12523 echo "${ECHO_T}yes" >&6
12524 else
12525   echo "$as_me: failed program was:" >&5
12526 cat conftest.$ac_ext >&5
12527 echo "$as_me:$LINENO: result: no" >&5
12528 echo "${ECHO_T}no" >&6
12529 fi
12530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12531
12532 echo "$as_me:$LINENO: checking for syslog" >&5
12533 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12534 if test "${ac_cv_func_syslog+set}" = set; then
12535   echo $ECHO_N "(cached) $ECHO_C" >&6
12536 else
12537   cat >conftest.$ac_ext <<_ACEOF
12538 #line $LINENO "configure"
12539 #include "confdefs.h"
12540 /* System header to define __stub macros and hopefully few prototypes,
12541     which can conflict with char syslog (); below.  */
12542 #include <assert.h>
12543 /* Override any gcc2 internal prototype to avoid an error.  */
12544 #ifdef __cplusplus
12545 extern "C"
12546 #endif
12547 /* We use char because int might match the return type of a gcc2
12548    builtin and then its argument prototype would still apply.  */
12549 char syslog ();
12550 char (*f) ();
12551
12552 #ifdef F77_DUMMY_MAIN
12553 #  ifdef __cplusplus
12554      extern "C"
12555 #  endif
12556    int F77_DUMMY_MAIN() { return 1; }
12557 #endif
12558 int
12559 main ()
12560 {
12561 /* The GNU C library defines this for functions which it implements
12562     to always fail with ENOSYS.  Some functions are actually named
12563     something starting with __ and the normal name is an alias.  */
12564 #if defined (__stub_syslog) || defined (__stub___syslog)
12565 choke me
12566 #else
12567 f = syslog;
12568 #endif
12569
12570   ;
12571   return 0;
12572 }
12573 _ACEOF
12574 rm -f conftest.$ac_objext conftest$ac_exeext
12575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12576   (eval $ac_link) 2>&5
12577   ac_status=$?
12578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579   (exit $ac_status); } &&
12580          { ac_try='test -s conftest$ac_exeext'
12581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12582   (eval $ac_try) 2>&5
12583   ac_status=$?
12584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585   (exit $ac_status); }; }; then
12586   ac_cv_func_syslog=yes
12587 else
12588   echo "$as_me: failed program was:" >&5
12589 cat conftest.$ac_ext >&5
12590 ac_cv_func_syslog=no
12591 fi
12592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12593 fi
12594 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12595 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12596 if test $ac_cv_func_syslog = yes; then
12597   if test "${ac_cv_header_syslog_h+set}" = set; then
12598   echo "$as_me:$LINENO: checking for syslog.h" >&5
12599 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12600 if test "${ac_cv_header_syslog_h+set}" = set; then
12601   echo $ECHO_N "(cached) $ECHO_C" >&6
12602 fi
12603 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12604 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12605 else
12606   # Is the header compilable?
12607 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12608 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12609 cat >conftest.$ac_ext <<_ACEOF
12610 #line $LINENO "configure"
12611 #include "confdefs.h"
12612 $ac_includes_default
12613 #include <syslog.h>
12614 _ACEOF
12615 rm -f conftest.$ac_objext
12616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12617   (eval $ac_compile) 2>&5
12618   ac_status=$?
12619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620   (exit $ac_status); } &&
12621          { ac_try='test -s conftest.$ac_objext'
12622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623   (eval $ac_try) 2>&5
12624   ac_status=$?
12625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626   (exit $ac_status); }; }; then
12627   ac_header_compiler=yes
12628 else
12629   echo "$as_me: failed program was:" >&5
12630 cat conftest.$ac_ext >&5
12631 ac_header_compiler=no
12632 fi
12633 rm -f conftest.$ac_objext conftest.$ac_ext
12634 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12635 echo "${ECHO_T}$ac_header_compiler" >&6
12636
12637 # Is the header present?
12638 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12639 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12640 cat >conftest.$ac_ext <<_ACEOF
12641 #line $LINENO "configure"
12642 #include "confdefs.h"
12643 #include <syslog.h>
12644 _ACEOF
12645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12646   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12647   ac_status=$?
12648   egrep -v '^ *\+' conftest.er1 >conftest.err
12649   rm -f conftest.er1
12650   cat conftest.err >&5
12651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652   (exit $ac_status); } >/dev/null; then
12653   if test -s conftest.err; then
12654     ac_cpp_err=$ac_c_preproc_warn_flag
12655   else
12656     ac_cpp_err=
12657   fi
12658 else
12659   ac_cpp_err=yes
12660 fi
12661 if test -z "$ac_cpp_err"; then
12662   ac_header_preproc=yes
12663 else
12664   echo "$as_me: failed program was:" >&5
12665   cat conftest.$ac_ext >&5
12666   ac_header_preproc=no
12667 fi
12668 rm -f conftest.err conftest.$ac_ext
12669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12670 echo "${ECHO_T}$ac_header_preproc" >&6
12671
12672 # So?  What about this header?
12673 case $ac_header_compiler:$ac_header_preproc in
12674   yes:no )
12675     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12676 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12677     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12678 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12679   no:yes )
12680     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12681 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12682     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12683 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12684     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12685 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12686 esac
12687 echo "$as_me:$LINENO: checking for syslog.h" >&5
12688 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12689 if test "${ac_cv_header_syslog_h+set}" = set; then
12690   echo $ECHO_N "(cached) $ECHO_C" >&6
12691 else
12692   ac_cv_header_syslog_h=$ac_header_preproc
12693 fi
12694 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12695 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12696
12697 fi
12698 if test $ac_cv_header_syslog_h = yes; then
12699
12700 cat >>confdefs.h <<\_ACEOF
12701 #define HAVE_SYSLOG 1
12702 _ACEOF
12703
12704 fi
12705
12706
12707 fi
12708
12709
12710 echo "$as_me:$LINENO: checking for optreset" >&5
12711 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12712 if test "${pgac_cv_var_int_optreset+set}" = set; then
12713   echo $ECHO_N "(cached) $ECHO_C" >&6
12714 else
12715   cat >conftest.$ac_ext <<_ACEOF
12716 #line $LINENO "configure"
12717 #include "confdefs.h"
12718 #include <unistd.h>
12719 #ifdef F77_DUMMY_MAIN
12720 #  ifdef __cplusplus
12721      extern "C"
12722 #  endif
12723    int F77_DUMMY_MAIN() { return 1; }
12724 #endif
12725 int
12726 main ()
12727 {
12728 extern int optreset; optreset = 1;
12729   ;
12730   return 0;
12731 }
12732 _ACEOF
12733 rm -f conftest.$ac_objext conftest$ac_exeext
12734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12735   (eval $ac_link) 2>&5
12736   ac_status=$?
12737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738   (exit $ac_status); } &&
12739          { ac_try='test -s conftest$ac_exeext'
12740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741   (eval $ac_try) 2>&5
12742   ac_status=$?
12743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744   (exit $ac_status); }; }; then
12745   pgac_cv_var_int_optreset=yes
12746 else
12747   echo "$as_me: failed program was:" >&5
12748 cat conftest.$ac_ext >&5
12749 pgac_cv_var_int_optreset=no
12750 fi
12751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12752 fi
12753 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12754 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12755 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12756
12757 cat >>confdefs.h <<\_ACEOF
12758 #define HAVE_INT_OPTRESET 1
12759 _ACEOF
12760
12761 fi
12762
12763
12764
12765 for ac_func in strtoll strtoq
12766 do
12767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12768 echo "$as_me:$LINENO: checking for $ac_func" >&5
12769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12770 if eval "test \"\${$as_ac_var+set}\" = set"; then
12771   echo $ECHO_N "(cached) $ECHO_C" >&6
12772 else
12773   cat >conftest.$ac_ext <<_ACEOF
12774 #line $LINENO "configure"
12775 #include "confdefs.h"
12776 /* System header to define __stub macros and hopefully few prototypes,
12777     which can conflict with char $ac_func (); below.  */
12778 #include <assert.h>
12779 /* Override any gcc2 internal prototype to avoid an error.  */
12780 #ifdef __cplusplus
12781 extern "C"
12782 #endif
12783 /* We use char because int might match the return type of a gcc2
12784    builtin and then its argument prototype would still apply.  */
12785 char $ac_func ();
12786 char (*f) ();
12787
12788 #ifdef F77_DUMMY_MAIN
12789 #  ifdef __cplusplus
12790      extern "C"
12791 #  endif
12792    int F77_DUMMY_MAIN() { return 1; }
12793 #endif
12794 int
12795 main ()
12796 {
12797 /* The GNU C library defines this for functions which it implements
12798     to always fail with ENOSYS.  Some functions are actually named
12799     something starting with __ and the normal name is an alias.  */
12800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12801 choke me
12802 #else
12803 f = $ac_func;
12804 #endif
12805
12806   ;
12807   return 0;
12808 }
12809 _ACEOF
12810 rm -f conftest.$ac_objext conftest$ac_exeext
12811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12812   (eval $ac_link) 2>&5
12813   ac_status=$?
12814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815   (exit $ac_status); } &&
12816          { ac_try='test -s conftest$ac_exeext'
12817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818   (eval $ac_try) 2>&5
12819   ac_status=$?
12820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821   (exit $ac_status); }; }; then
12822   eval "$as_ac_var=yes"
12823 else
12824   echo "$as_me: failed program was:" >&5
12825 cat conftest.$ac_ext >&5
12826 eval "$as_ac_var=no"
12827 fi
12828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12829 fi
12830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12832 if test `eval echo '${'$as_ac_var'}'` = yes; then
12833   cat >>confdefs.h <<_ACEOF
12834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12835 _ACEOF
12836  break
12837 fi
12838 done
12839
12840
12841
12842 for ac_func in strtoull strtouq
12843 do
12844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12845 echo "$as_me:$LINENO: checking for $ac_func" >&5
12846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12847 if eval "test \"\${$as_ac_var+set}\" = set"; then
12848   echo $ECHO_N "(cached) $ECHO_C" >&6
12849 else
12850   cat >conftest.$ac_ext <<_ACEOF
12851 #line $LINENO "configure"
12852 #include "confdefs.h"
12853 /* System header to define __stub macros and hopefully few prototypes,
12854     which can conflict with char $ac_func (); below.  */
12855 #include <assert.h>
12856 /* Override any gcc2 internal prototype to avoid an error.  */
12857 #ifdef __cplusplus
12858 extern "C"
12859 #endif
12860 /* We use char because int might match the return type of a gcc2
12861    builtin and then its argument prototype would still apply.  */
12862 char $ac_func ();
12863 char (*f) ();
12864
12865 #ifdef F77_DUMMY_MAIN
12866 #  ifdef __cplusplus
12867      extern "C"
12868 #  endif
12869    int F77_DUMMY_MAIN() { return 1; }
12870 #endif
12871 int
12872 main ()
12873 {
12874 /* The GNU C library defines this for functions which it implements
12875     to always fail with ENOSYS.  Some functions are actually named
12876     something starting with __ and the normal name is an alias.  */
12877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12878 choke me
12879 #else
12880 f = $ac_func;
12881 #endif
12882
12883   ;
12884   return 0;
12885 }
12886 _ACEOF
12887 rm -f conftest.$ac_objext conftest$ac_exeext
12888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12889   (eval $ac_link) 2>&5
12890   ac_status=$?
12891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892   (exit $ac_status); } &&
12893          { ac_try='test -s conftest$ac_exeext'
12894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12895   (eval $ac_try) 2>&5
12896   ac_status=$?
12897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898   (exit $ac_status); }; }; then
12899   eval "$as_ac_var=yes"
12900 else
12901   echo "$as_me: failed program was:" >&5
12902 cat conftest.$ac_ext >&5
12903 eval "$as_ac_var=no"
12904 fi
12905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12906 fi
12907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12909 if test `eval echo '${'$as_ac_var'}'` = yes; then
12910   cat >>confdefs.h <<_ACEOF
12911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12912 _ACEOF
12913  break
12914 fi
12915 done
12916
12917
12918 # Check for one of atexit() or on_exit()
12919
12920 for ac_func in atexit
12921 do
12922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12923 echo "$as_me:$LINENO: checking for $ac_func" >&5
12924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12925 if eval "test \"\${$as_ac_var+set}\" = set"; then
12926   echo $ECHO_N "(cached) $ECHO_C" >&6
12927 else
12928   cat >conftest.$ac_ext <<_ACEOF
12929 #line $LINENO "configure"
12930 #include "confdefs.h"
12931 /* System header to define __stub macros and hopefully few prototypes,
12932     which can conflict with char $ac_func (); below.  */
12933 #include <assert.h>
12934 /* Override any gcc2 internal prototype to avoid an error.  */
12935 #ifdef __cplusplus
12936 extern "C"
12937 #endif
12938 /* We use char because int might match the return type of a gcc2
12939    builtin and then its argument prototype would still apply.  */
12940 char $ac_func ();
12941 char (*f) ();
12942
12943 #ifdef F77_DUMMY_MAIN
12944 #  ifdef __cplusplus
12945      extern "C"
12946 #  endif
12947    int F77_DUMMY_MAIN() { return 1; }
12948 #endif
12949 int
12950 main ()
12951 {
12952 /* The GNU C library defines this for functions which it implements
12953     to always fail with ENOSYS.  Some functions are actually named
12954     something starting with __ and the normal name is an alias.  */
12955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12956 choke me
12957 #else
12958 f = $ac_func;
12959 #endif
12960
12961   ;
12962   return 0;
12963 }
12964 _ACEOF
12965 rm -f conftest.$ac_objext conftest$ac_exeext
12966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12967   (eval $ac_link) 2>&5
12968   ac_status=$?
12969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970   (exit $ac_status); } &&
12971          { ac_try='test -s conftest$ac_exeext'
12972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12973   (eval $ac_try) 2>&5
12974   ac_status=$?
12975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976   (exit $ac_status); }; }; then
12977   eval "$as_ac_var=yes"
12978 else
12979   echo "$as_me: failed program was:" >&5
12980 cat conftest.$ac_ext >&5
12981 eval "$as_ac_var=no"
12982 fi
12983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12984 fi
12985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12987 if test `eval echo '${'$as_ac_var'}'` = yes; then
12988   cat >>confdefs.h <<_ACEOF
12989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12990 _ACEOF
12991
12992 else
12993
12994 for ac_func in on_exit
12995 do
12996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12997 echo "$as_me:$LINENO: checking for $ac_func" >&5
12998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12999 if eval "test \"\${$as_ac_var+set}\" = set"; then
13000   echo $ECHO_N "(cached) $ECHO_C" >&6
13001 else
13002   cat >conftest.$ac_ext <<_ACEOF
13003 #line $LINENO "configure"
13004 #include "confdefs.h"
13005 /* System header to define __stub macros and hopefully few prototypes,
13006     which can conflict with char $ac_func (); below.  */
13007 #include <assert.h>
13008 /* Override any gcc2 internal prototype to avoid an error.  */
13009 #ifdef __cplusplus
13010 extern "C"
13011 #endif
13012 /* We use char because int might match the return type of a gcc2
13013    builtin and then its argument prototype would still apply.  */
13014 char $ac_func ();
13015 char (*f) ();
13016
13017 #ifdef F77_DUMMY_MAIN
13018 #  ifdef __cplusplus
13019      extern "C"
13020 #  endif
13021    int F77_DUMMY_MAIN() { return 1; }
13022 #endif
13023 int
13024 main ()
13025 {
13026 /* The GNU C library defines this for functions which it implements
13027     to always fail with ENOSYS.  Some functions are actually named
13028     something starting with __ and the normal name is an alias.  */
13029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13030 choke me
13031 #else
13032 f = $ac_func;
13033 #endif
13034
13035   ;
13036   return 0;
13037 }
13038 _ACEOF
13039 rm -f conftest.$ac_objext conftest$ac_exeext
13040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13041   (eval $ac_link) 2>&5
13042   ac_status=$?
13043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044   (exit $ac_status); } &&
13045          { ac_try='test -s conftest$ac_exeext'
13046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13047   (eval $ac_try) 2>&5
13048   ac_status=$?
13049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050   (exit $ac_status); }; }; then
13051   eval "$as_ac_var=yes"
13052 else
13053   echo "$as_me: failed program was:" >&5
13054 cat conftest.$ac_ext >&5
13055 eval "$as_ac_var=no"
13056 fi
13057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13058 fi
13059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13061 if test `eval echo '${'$as_ac_var'}'` = yes; then
13062   cat >>confdefs.h <<_ACEOF
13063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13064 _ACEOF
13065
13066 else
13067   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
13068 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
13069    { (exit 1); exit 1; }; }
13070 fi
13071 done
13072
13073 fi
13074 done
13075
13076
13077 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13078 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13079 if test "${ac_cv_sys_largefile_source+set}" = set; then
13080   echo $ECHO_N "(cached) $ECHO_C" >&6
13081 else
13082   while :; do
13083   ac_cv_sys_largefile_source=no
13084   cat >conftest.$ac_ext <<_ACEOF
13085 #line $LINENO "configure"
13086 #include "confdefs.h"
13087 #include <stdio.h>
13088 #ifdef F77_DUMMY_MAIN
13089 #  ifdef __cplusplus
13090      extern "C"
13091 #  endif
13092    int F77_DUMMY_MAIN() { return 1; }
13093 #endif
13094 int
13095 main ()
13096 {
13097 return !fseeko;
13098   ;
13099   return 0;
13100 }
13101 _ACEOF
13102 rm -f conftest.$ac_objext
13103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13104   (eval $ac_compile) 2>&5
13105   ac_status=$?
13106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107   (exit $ac_status); } &&
13108          { ac_try='test -s conftest.$ac_objext'
13109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13110   (eval $ac_try) 2>&5
13111   ac_status=$?
13112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113   (exit $ac_status); }; }; then
13114   break
13115 else
13116   echo "$as_me: failed program was:" >&5
13117 cat conftest.$ac_ext >&5
13118 fi
13119 rm -f conftest.$ac_objext conftest.$ac_ext
13120   cat >conftest.$ac_ext <<_ACEOF
13121 #line $LINENO "configure"
13122 #include "confdefs.h"
13123 #define _LARGEFILE_SOURCE 1
13124 #include <stdio.h>
13125 #ifdef F77_DUMMY_MAIN
13126 #  ifdef __cplusplus
13127      extern "C"
13128 #  endif
13129    int F77_DUMMY_MAIN() { return 1; }
13130 #endif
13131 int
13132 main ()
13133 {
13134 return !fseeko;
13135   ;
13136   return 0;
13137 }
13138 _ACEOF
13139 rm -f conftest.$ac_objext
13140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13141   (eval $ac_compile) 2>&5
13142   ac_status=$?
13143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144   (exit $ac_status); } &&
13145          { ac_try='test -s conftest.$ac_objext'
13146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13147   (eval $ac_try) 2>&5
13148   ac_status=$?
13149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150   (exit $ac_status); }; }; then
13151   ac_cv_sys_largefile_source=1; break
13152 else
13153   echo "$as_me: failed program was:" >&5
13154 cat conftest.$ac_ext >&5
13155 fi
13156 rm -f conftest.$ac_objext conftest.$ac_ext
13157   break
13158 done
13159 fi
13160 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13161 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13162 if test "$ac_cv_sys_largefile_source" != no; then
13163
13164 cat >>confdefs.h <<_ACEOF
13165 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13166 _ACEOF
13167
13168 fi
13169 rm -f conftest*
13170
13171 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13172 # in glibc 2.1.3, but that breaks too many other things.
13173 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13174 echo "$as_me:$LINENO: checking for fseeko" >&5
13175 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13176 if test "${ac_cv_func_fseeko+set}" = set; then
13177   echo $ECHO_N "(cached) $ECHO_C" >&6
13178 else
13179   cat >conftest.$ac_ext <<_ACEOF
13180 #line $LINENO "configure"
13181 #include "confdefs.h"
13182 #include <stdio.h>
13183 #ifdef F77_DUMMY_MAIN
13184 #  ifdef __cplusplus
13185      extern "C"
13186 #  endif
13187    int F77_DUMMY_MAIN() { return 1; }
13188 #endif
13189 int
13190 main ()
13191 {
13192 return fseeko && fseeko (stdin, 0, 0);
13193   ;
13194   return 0;
13195 }
13196 _ACEOF
13197 rm -f conftest.$ac_objext conftest$ac_exeext
13198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13199   (eval $ac_link) 2>&5
13200   ac_status=$?
13201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202   (exit $ac_status); } &&
13203          { ac_try='test -s conftest$ac_exeext'
13204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13205   (eval $ac_try) 2>&5
13206   ac_status=$?
13207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208   (exit $ac_status); }; }; then
13209   ac_cv_func_fseeko=yes
13210 else
13211   echo "$as_me: failed program was:" >&5
13212 cat conftest.$ac_ext >&5
13213 ac_cv_func_fseeko=no
13214 fi
13215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13216 fi
13217 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13218 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13219 if test $ac_cv_func_fseeko = yes; then
13220
13221 cat >>confdefs.h <<\_ACEOF
13222 #define HAVE_FSEEKO 1
13223 _ACEOF
13224
13225 fi
13226
13227
13228 #
13229 # Pthreads
13230 #
13231 # For each platform, we need to know about any special compile and link
13232 # libraries, and whether the normal C function names are thread-safe.
13233 # See the comment at the top of src/port/thread.c for more information.
13234 #
13235 if test "$enable_thread_safety" = yes; then
13236 if test "${ac_cv_header_pthread_h+set}" = set; then
13237   echo "$as_me:$LINENO: checking for pthread.h" >&5
13238 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13239 if test "${ac_cv_header_pthread_h+set}" = set; then
13240   echo $ECHO_N "(cached) $ECHO_C" >&6
13241 fi
13242 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13243 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13244 else
13245   # Is the header compilable?
13246 echo "$as_me:$LINENO: checking pthread.h usability" >&5
13247 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
13248 cat >conftest.$ac_ext <<_ACEOF
13249 #line $LINENO "configure"
13250 #include "confdefs.h"
13251 $ac_includes_default
13252 #include <pthread.h>
13253 _ACEOF
13254 rm -f conftest.$ac_objext
13255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13256   (eval $ac_compile) 2>&5
13257   ac_status=$?
13258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259   (exit $ac_status); } &&
13260          { ac_try='test -s conftest.$ac_objext'
13261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13262   (eval $ac_try) 2>&5
13263   ac_status=$?
13264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265   (exit $ac_status); }; }; then
13266   ac_header_compiler=yes
13267 else
13268   echo "$as_me: failed program was:" >&5
13269 cat conftest.$ac_ext >&5
13270 ac_header_compiler=no
13271 fi
13272 rm -f conftest.$ac_objext conftest.$ac_ext
13273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13274 echo "${ECHO_T}$ac_header_compiler" >&6
13275
13276 # Is the header present?
13277 echo "$as_me:$LINENO: checking pthread.h presence" >&5
13278 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
13279 cat >conftest.$ac_ext <<_ACEOF
13280 #line $LINENO "configure"
13281 #include "confdefs.h"
13282 #include <pthread.h>
13283 _ACEOF
13284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13285   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13286   ac_status=$?
13287   egrep -v '^ *\+' conftest.er1 >conftest.err
13288   rm -f conftest.er1
13289   cat conftest.err >&5
13290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291   (exit $ac_status); } >/dev/null; then
13292   if test -s conftest.err; then
13293     ac_cpp_err=$ac_c_preproc_warn_flag
13294   else
13295     ac_cpp_err=
13296   fi
13297 else
13298   ac_cpp_err=yes
13299 fi
13300 if test -z "$ac_cpp_err"; then
13301   ac_header_preproc=yes
13302 else
13303   echo "$as_me: failed program was:" >&5
13304   cat conftest.$ac_ext >&5
13305   ac_header_preproc=no
13306 fi
13307 rm -f conftest.err conftest.$ac_ext
13308 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13309 echo "${ECHO_T}$ac_header_preproc" >&6
13310
13311 # So?  What about this header?
13312 case $ac_header_compiler:$ac_header_preproc in
13313   yes:no )
13314     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13315 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13316     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13317 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13318   no:yes )
13319     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13320 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13321     { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13322 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13323     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13324 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13325 esac
13326 echo "$as_me:$LINENO: checking for pthread.h" >&5
13327 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13328 if test "${ac_cv_header_pthread_h+set}" = set; then
13329   echo $ECHO_N "(cached) $ECHO_C" >&6
13330 else
13331   ac_cv_header_pthread_h=$ac_header_preproc
13332 fi
13333 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13334 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13335
13336 fi
13337 if test $ac_cv_header_pthread_h = yes; then
13338   :
13339 else
13340   { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safetys" >&5
13341 echo "$as_me: error: pthread.h not found, required for --enable-thread-safetys" >&2;}
13342    { (exit 1); exit 1; }; }
13343 fi
13344
13345
13346
13347 if test "$THREAD_SUPPORT" != yes; then
13348 { { echo "$as_me:$LINENO: error:
13349 Cannot enable threads on your platform.
13350 Please report your platform threading info to the PostgreSQL mailing lists
13351 so it can be added to the next release.  Report all compile flags, link flags,
13352 functions, or libraries required for threading support.
13353 See the comment at the top of src/port/thread.c for more information.
13354 " >&5
13355 echo "$as_me: error:
13356 Cannot enable threads on your platform.
13357 Please report your platform threading info to the PostgreSQL mailing lists
13358 so it can be added to the next release.  Report all compile flags, link flags,
13359 functions, or libraries required for threading support.
13360 See the comment at the top of src/port/thread.c for more information.
13361 " >&2;}
13362    { (exit 1); exit 1; }; }
13363 fi
13364 else
13365 # do not use values from template file
13366 THREAD_CPPFLAGS=
13367 THREAD_LIBS=
13368 fi
13369
13370
13371
13372
13373
13374 #
13375 # Check for re-entrant versions of certain functions
13376 #
13377 # Include special flags if threads are enabled _and_ if required for
13378 # threading on this platform.  Some platforms have *_r functions but
13379 # their natively named funcs are threadsafe, and should be used instead.
13380 #
13381 # One trick here is that if we don't call AC_CHECK_FUNCS, the
13382 # functions are marked "not found", which is perfect.
13383 #
13384 if test "$enable_thread_safety" = yes -a "$NEED_REENTRANT_FUNCS" = yes ; then
13385 _CFLAGS="$CFLAGS"
13386 _LIBS="$LIBS"
13387 CFLAGS="$CFLAGS $THREAD_CPPFLAGS"
13388 LIBS="$LIBS $THREAD_LIBS"
13389
13390
13391
13392 for ac_func in strerror_r getpwuid_r gethostbyname_r
13393 do
13394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13395 echo "$as_me:$LINENO: checking for $ac_func" >&5
13396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13397 if eval "test \"\${$as_ac_var+set}\" = set"; then
13398   echo $ECHO_N "(cached) $ECHO_C" >&6
13399 else
13400   cat >conftest.$ac_ext <<_ACEOF
13401 #line $LINENO "configure"
13402 #include "confdefs.h"
13403 /* System header to define __stub macros and hopefully few prototypes,
13404     which can conflict with char $ac_func (); below.  */
13405 #include <assert.h>
13406 /* Override any gcc2 internal prototype to avoid an error.  */
13407 #ifdef __cplusplus
13408 extern "C"
13409 #endif
13410 /* We use char because int might match the return type of a gcc2
13411    builtin and then its argument prototype would still apply.  */
13412 char $ac_func ();
13413 char (*f) ();
13414
13415 #ifdef F77_DUMMY_MAIN
13416 #  ifdef __cplusplus
13417      extern "C"
13418 #  endif
13419    int F77_DUMMY_MAIN() { return 1; }
13420 #endif
13421 int
13422 main ()
13423 {
13424 /* The GNU C library defines this for functions which it implements
13425     to always fail with ENOSYS.  Some functions are actually named
13426     something starting with __ and the normal name is an alias.  */
13427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13428 choke me
13429 #else
13430 f = $ac_func;
13431 #endif
13432
13433   ;
13434   return 0;
13435 }
13436 _ACEOF
13437 rm -f conftest.$ac_objext conftest$ac_exeext
13438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13439   (eval $ac_link) 2>&5
13440   ac_status=$?
13441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442   (exit $ac_status); } &&
13443          { ac_try='test -s conftest$ac_exeext'
13444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445   (eval $ac_try) 2>&5
13446   ac_status=$?
13447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448   (exit $ac_status); }; }; then
13449   eval "$as_ac_var=yes"
13450 else
13451   echo "$as_me: failed program was:" >&5
13452 cat conftest.$ac_ext >&5
13453 eval "$as_ac_var=no"
13454 fi
13455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13456 fi
13457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13459 if test `eval echo '${'$as_ac_var'}'` = yes; then
13460   cat >>confdefs.h <<_ACEOF
13461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13462 _ACEOF
13463
13464 fi
13465 done
13466
13467 CFLAGS="$_CFLAGS"
13468 LIBS="$_LIBS"
13469 fi
13470
13471
13472 # This test makes sure that run tests work at all.  Sometimes a shared
13473 # library is found by the linker, but the runtime linker can't find it.
13474 # This check should come after all modifications of compiler or linker
13475 # variables, and before any other run tests.
13476 echo "$as_me:$LINENO: checking test program" >&5
13477 echo $ECHO_N "checking test program... $ECHO_C" >&6
13478 if test "$cross_compiling" = yes; then
13479   echo "$as_me:$LINENO: result: cross-compiling" >&5
13480 echo "${ECHO_T}cross-compiling" >&6
13481 else
13482   cat >conftest.$ac_ext <<_ACEOF
13483 #line $LINENO "configure"
13484 #include "confdefs.h"
13485 int main() { return 0; }
13486 _ACEOF
13487 rm -f conftest$ac_exeext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13489   (eval $ac_link) 2>&5
13490   ac_status=$?
13491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494   (eval $ac_try) 2>&5
13495   ac_status=$?
13496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497   (exit $ac_status); }; }; then
13498   echo "$as_me:$LINENO: result: ok" >&5
13499 echo "${ECHO_T}ok" >&6
13500 else
13501   echo "$as_me: program exited with status $ac_status" >&5
13502 echo "$as_me: failed program was:" >&5
13503 cat conftest.$ac_ext >&5
13504 ( exit $ac_status )
13505 echo "$as_me:$LINENO: result: failed" >&5
13506 echo "${ECHO_T}failed" >&6
13507 { { echo "$as_me:$LINENO: error:
13508 *** Could not execute a simple test program.  This may be a problem
13509 *** related to locating shared libraries.  Check the file 'config.log'
13510 *** for the exact reason." >&5
13511 echo "$as_me: 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." >&2;}
13515    { (exit 1); exit 1; }; }
13516 fi
13517 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13518 fi
13519
13520
13521
13522 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
13523 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
13524 if test "${pgac_cv_type_long_int_64+set}" = set; then
13525   echo $ECHO_N "(cached) $ECHO_C" >&6
13526 else
13527   if test "$cross_compiling" = yes; then
13528   # If cross-compiling, check the size reported by the compiler and
13529 # trust that the arithmetic works.
13530 cat >conftest.$ac_ext <<_ACEOF
13531 #line $LINENO "configure"
13532 #include "confdefs.h"
13533
13534 #ifdef F77_DUMMY_MAIN
13535 #  ifdef __cplusplus
13536      extern "C"
13537 #  endif
13538    int F77_DUMMY_MAIN() { return 1; }
13539 #endif
13540 int
13541 main ()
13542 {
13543 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13544 test_array [0] = 0
13545
13546   ;
13547   return 0;
13548 }
13549 _ACEOF
13550 rm -f conftest.$ac_objext
13551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13552   (eval $ac_compile) 2>&5
13553   ac_status=$?
13554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555   (exit $ac_status); } &&
13556          { ac_try='test -s conftest.$ac_objext'
13557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558   (eval $ac_try) 2>&5
13559   ac_status=$?
13560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561   (exit $ac_status); }; }; then
13562   pgac_cv_type_long_int_64=yes
13563 else
13564   echo "$as_me: failed program was:" >&5
13565 cat conftest.$ac_ext >&5
13566 pgac_cv_type_long_int_64=no
13567 fi
13568 rm -f conftest.$ac_objext conftest.$ac_ext
13569 else
13570   cat >conftest.$ac_ext <<_ACEOF
13571 #line $LINENO "configure"
13572 #include "confdefs.h"
13573 typedef long int int64;
13574
13575 /*
13576  * These are globals to discourage the compiler from folding all the
13577  * arithmetic tests down to compile-time constants.
13578  */
13579 int64 a = 20000001;
13580 int64 b = 40000005;
13581
13582 int does_int64_work()
13583 {
13584   int64 c,d;
13585
13586   if (sizeof(int64) != 8)
13587     return 0;                   /* definitely not the right size */
13588
13589   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13590   c = a * b;
13591   d = (c + b) / b;
13592   if (d != a+1)
13593     return 0;
13594   return 1;
13595 }
13596 main() {
13597   exit(! does_int64_work());
13598 }
13599 _ACEOF
13600 rm -f conftest$ac_exeext
13601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13602   (eval $ac_link) 2>&5
13603   ac_status=$?
13604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607   (eval $ac_try) 2>&5
13608   ac_status=$?
13609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610   (exit $ac_status); }; }; then
13611   pgac_cv_type_long_int_64=yes
13612 else
13613   echo "$as_me: program exited with status $ac_status" >&5
13614 echo "$as_me: failed program was:" >&5
13615 cat conftest.$ac_ext >&5
13616 ( exit $ac_status )
13617 pgac_cv_type_long_int_64=no
13618 fi
13619 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13620 fi
13621 fi
13622 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
13623 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
13624
13625 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13626 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13627
13628 cat >>confdefs.h <<\_ACEOF
13629 #define HAVE_LONG_INT_64
13630 _ACEOF
13631
13632 fi
13633
13634
13635 if test x"$HAVE_LONG_INT_64" = x"no" ; then
13636   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
13637 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
13638 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
13639   echo $ECHO_N "(cached) $ECHO_C" >&6
13640 else
13641   if test "$cross_compiling" = yes; then
13642   # If cross-compiling, check the size reported by the compiler and
13643 # trust that the arithmetic works.
13644 cat >conftest.$ac_ext <<_ACEOF
13645 #line $LINENO "configure"
13646 #include "confdefs.h"
13647
13648 #ifdef F77_DUMMY_MAIN
13649 #  ifdef __cplusplus
13650      extern "C"
13651 #  endif
13652    int F77_DUMMY_MAIN() { return 1; }
13653 #endif
13654 int
13655 main ()
13656 {
13657 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13658 test_array [0] = 0
13659
13660   ;
13661   return 0;
13662 }
13663 _ACEOF
13664 rm -f conftest.$ac_objext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13666   (eval $ac_compile) 2>&5
13667   ac_status=$?
13668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669   (exit $ac_status); } &&
13670          { ac_try='test -s conftest.$ac_objext'
13671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672   (eval $ac_try) 2>&5
13673   ac_status=$?
13674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675   (exit $ac_status); }; }; then
13676   pgac_cv_type_long_long_int_64=yes
13677 else
13678   echo "$as_me: failed program was:" >&5
13679 cat conftest.$ac_ext >&5
13680 pgac_cv_type_long_long_int_64=no
13681 fi
13682 rm -f conftest.$ac_objext conftest.$ac_ext
13683 else
13684   cat >conftest.$ac_ext <<_ACEOF
13685 #line $LINENO "configure"
13686 #include "confdefs.h"
13687 typedef long long int int64;
13688
13689 /*
13690  * These are globals to discourage the compiler from folding all the
13691  * arithmetic tests down to compile-time constants.
13692  */
13693 int64 a = 20000001;
13694 int64 b = 40000005;
13695
13696 int does_int64_work()
13697 {
13698   int64 c,d;
13699
13700   if (sizeof(int64) != 8)
13701     return 0;                   /* definitely not the right size */
13702
13703   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13704   c = a * b;
13705   d = (c + b) / b;
13706   if (d != a+1)
13707     return 0;
13708   return 1;
13709 }
13710 main() {
13711   exit(! does_int64_work());
13712 }
13713 _ACEOF
13714 rm -f conftest$ac_exeext
13715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13716   (eval $ac_link) 2>&5
13717   ac_status=$?
13718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721   (eval $ac_try) 2>&5
13722   ac_status=$?
13723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724   (exit $ac_status); }; }; then
13725   pgac_cv_type_long_long_int_64=yes
13726 else
13727   echo "$as_me: program exited with status $ac_status" >&5
13728 echo "$as_me: failed program was:" >&5
13729 cat conftest.$ac_ext >&5
13730 ( exit $ac_status )
13731 pgac_cv_type_long_long_int_64=no
13732 fi
13733 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13734 fi
13735 fi
13736 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
13737 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
13738
13739 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13740 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13741
13742 cat >>confdefs.h <<\_ACEOF
13743 #define HAVE_LONG_LONG_INT_64
13744 _ACEOF
13745
13746 fi
13747
13748 fi
13749
13750
13751
13752 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13753   cat >conftest.$ac_ext <<_ACEOF
13754 #line $LINENO "configure"
13755 #include "confdefs.h"
13756
13757 #define INT64CONST(x)  x##LL
13758 long long int foo = INT64CONST(0x1234567890123456);
13759
13760 #ifdef F77_DUMMY_MAIN
13761 #  ifdef __cplusplus
13762      extern "C"
13763 #  endif
13764    int F77_DUMMY_MAIN() { return 1; }
13765 #endif
13766 int
13767 main ()
13768 {
13769
13770   ;
13771   return 0;
13772 }
13773 _ACEOF
13774 rm -f conftest.$ac_objext
13775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13776   (eval $ac_compile) 2>&5
13777   ac_status=$?
13778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779   (exit $ac_status); } &&
13780          { ac_try='test -s conftest.$ac_objext'
13781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13782   (eval $ac_try) 2>&5
13783   ac_status=$?
13784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785   (exit $ac_status); }; }; then
13786
13787 cat >>confdefs.h <<\_ACEOF
13788 #define HAVE_LL_CONSTANTS 1
13789 _ACEOF
13790
13791 else
13792   echo "$as_me: failed program was:" >&5
13793 cat conftest.$ac_ext >&5
13794 fi
13795 rm -f conftest.$ac_objext conftest.$ac_ext
13796 fi
13797
13798
13799 # If we found "long int" is 64 bits, assume snprintf handles it.  If
13800 # we found we need to use "long long int", better check.  We cope with
13801 # snprintfs that use either %lld, %qd, or %I64d as the format.  If
13802 # neither works, fall back to our own snprintf emulation (which we
13803 # know uses %lld).
13804
13805 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13806   if test $pgac_need_repl_snprintf = no; then
13807     echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
13808 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
13809 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
13810   echo $ECHO_N "(cached) $ECHO_C" >&6
13811 else
13812   for pgac_format in '%lld' '%qd' '%I64d'; do
13813 if test "$cross_compiling" = yes; then
13814   pgac_cv_snprintf_long_long_int_format=cross; break
13815 else
13816   cat >conftest.$ac_ext <<_ACEOF
13817 #line $LINENO "configure"
13818 #include "confdefs.h"
13819 #include <stdio.h>
13820 typedef long long int int64;
13821 #define INT64_FORMAT "$pgac_format"
13822
13823 int64 a = 20000001;
13824 int64 b = 40000005;
13825
13826 int does_int64_snprintf_work()
13827 {
13828   int64 c;
13829   char buf[100];
13830
13831   if (sizeof(int64) != 8)
13832     return 0;                   /* doesn't look like the right size */
13833
13834   c = a * b;
13835   snprintf(buf, 100, INT64_FORMAT, c);
13836   if (strcmp(buf, "800000140000005") != 0)
13837     return 0;                   /* either multiply or snprintf is busted */
13838   return 1;
13839 }
13840 main() {
13841   exit(! does_int64_snprintf_work());
13842 }
13843 _ACEOF
13844 rm -f conftest$ac_exeext
13845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13846   (eval $ac_link) 2>&5
13847   ac_status=$?
13848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851   (eval $ac_try) 2>&5
13852   ac_status=$?
13853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854   (exit $ac_status); }; }; then
13855   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
13856 else
13857   echo "$as_me: program exited with status $ac_status" >&5
13858 echo "$as_me: failed program was:" >&5
13859 cat conftest.$ac_ext >&5
13860 fi
13861 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13862 fi
13863 done
13864 fi
13865
13866 LONG_LONG_INT_FORMAT=''
13867
13868 case $pgac_cv_snprintf_long_long_int_format in
13869   cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
13870 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
13871   ?*)    echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
13872 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
13873          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13874   *)     echo "$as_me:$LINENO: result: none" >&5
13875 echo "${ECHO_T}none" >&6;;
13876 esac
13877     if test "$LONG_LONG_INT_FORMAT" = ""; then
13878       # Force usage of our own snprintf, since system snprintf is broken
13879       pgac_need_repl_snprintf=yes
13880       LONG_LONG_INT_FORMAT='%lld'
13881     fi
13882   else
13883     # Here if we previously decided we needed to use our own snprintf
13884     LONG_LONG_INT_FORMAT='%lld'
13885   fi
13886   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13887 else
13888   # Here if we are not using 'long long int' at all
13889   INT64_FORMAT='"%ld"'
13890 fi
13891
13892
13893 cat >>confdefs.h <<_ACEOF
13894 #define INT64_FORMAT $INT64_FORMAT
13895 _ACEOF
13896
13897
13898 if test $pgac_need_repl_snprintf = yes; then
13899   LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13900 fi
13901
13902 # Need a #define for the size of Datum (unsigned long)
13903 echo "$as_me:$LINENO: checking for unsigned long" >&5
13904 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13905 if test "${ac_cv_type_unsigned_long+set}" = set; then
13906   echo $ECHO_N "(cached) $ECHO_C" >&6
13907 else
13908   cat >conftest.$ac_ext <<_ACEOF
13909 #line $LINENO "configure"
13910 #include "confdefs.h"
13911 $ac_includes_default
13912 #ifdef F77_DUMMY_MAIN
13913 #  ifdef __cplusplus
13914      extern "C"
13915 #  endif
13916    int F77_DUMMY_MAIN() { return 1; }
13917 #endif
13918 int
13919 main ()
13920 {
13921 if ((unsigned long *) 0)
13922   return 0;
13923 if (sizeof (unsigned long))
13924   return 0;
13925   ;
13926   return 0;
13927 }
13928 _ACEOF
13929 rm -f conftest.$ac_objext
13930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13931   (eval $ac_compile) 2>&5
13932   ac_status=$?
13933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934   (exit $ac_status); } &&
13935          { ac_try='test -s conftest.$ac_objext'
13936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13937   (eval $ac_try) 2>&5
13938   ac_status=$?
13939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940   (exit $ac_status); }; }; then
13941   ac_cv_type_unsigned_long=yes
13942 else
13943   echo "$as_me: failed program was:" >&5
13944 cat conftest.$ac_ext >&5
13945 ac_cv_type_unsigned_long=no
13946 fi
13947 rm -f conftest.$ac_objext conftest.$ac_ext
13948 fi
13949 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13950 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13951
13952 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13953 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13954 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13955   echo $ECHO_N "(cached) $ECHO_C" >&6
13956 else
13957   if test "$ac_cv_type_unsigned_long" = yes; then
13958   # The cast to unsigned long works around a bug in the HP C Compiler
13959   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13960   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13961   # This bug is HP SR number 8606223364.
13962   if test "$cross_compiling" = yes; then
13963   # Depending upon the size, compute the lo and hi bounds.
13964 cat >conftest.$ac_ext <<_ACEOF
13965 #line $LINENO "configure"
13966 #include "confdefs.h"
13967 $ac_includes_default
13968 #ifdef F77_DUMMY_MAIN
13969 #  ifdef __cplusplus
13970      extern "C"
13971 #  endif
13972    int F77_DUMMY_MAIN() { return 1; }
13973 #endif
13974 int
13975 main ()
13976 {
13977 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13978 test_array [0] = 0
13979
13980   ;
13981   return 0;
13982 }
13983 _ACEOF
13984 rm -f conftest.$ac_objext
13985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13986   (eval $ac_compile) 2>&5
13987   ac_status=$?
13988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989   (exit $ac_status); } &&
13990          { ac_try='test -s conftest.$ac_objext'
13991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13992   (eval $ac_try) 2>&5
13993   ac_status=$?
13994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995   (exit $ac_status); }; }; then
13996   ac_lo=0 ac_mid=0
13997   while :; do
13998     cat >conftest.$ac_ext <<_ACEOF
13999 #line $LINENO "configure"
14000 #include "confdefs.h"
14001 $ac_includes_default
14002 #ifdef F77_DUMMY_MAIN
14003 #  ifdef __cplusplus
14004      extern "C"
14005 #  endif
14006    int F77_DUMMY_MAIN() { return 1; }
14007 #endif
14008 int
14009 main ()
14010 {
14011 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14012 test_array [0] = 0
14013
14014   ;
14015   return 0;
14016 }
14017 _ACEOF
14018 rm -f conftest.$ac_objext
14019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14020   (eval $ac_compile) 2>&5
14021   ac_status=$?
14022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023   (exit $ac_status); } &&
14024          { ac_try='test -s conftest.$ac_objext'
14025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14026   (eval $ac_try) 2>&5
14027   ac_status=$?
14028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029   (exit $ac_status); }; }; then
14030   ac_hi=$ac_mid; break
14031 else
14032   echo "$as_me: failed program was:" >&5
14033 cat conftest.$ac_ext >&5
14034 ac_lo=`expr $ac_mid + 1`
14035                     if test $ac_lo -le $ac_mid; then
14036                       ac_lo= ac_hi=
14037                       break
14038                     fi
14039                     ac_mid=`expr 2 '*' $ac_mid + 1`
14040 fi
14041 rm -f conftest.$ac_objext conftest.$ac_ext
14042   done
14043 else
14044   echo "$as_me: failed program was:" >&5
14045 cat conftest.$ac_ext >&5
14046 cat >conftest.$ac_ext <<_ACEOF
14047 #line $LINENO "configure"
14048 #include "confdefs.h"
14049 $ac_includes_default
14050 #ifdef F77_DUMMY_MAIN
14051 #  ifdef __cplusplus
14052      extern "C"
14053 #  endif
14054    int F77_DUMMY_MAIN() { return 1; }
14055 #endif
14056 int
14057 main ()
14058 {
14059 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
14060 test_array [0] = 0
14061
14062   ;
14063   return 0;
14064 }
14065 _ACEOF
14066 rm -f conftest.$ac_objext
14067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14068   (eval $ac_compile) 2>&5
14069   ac_status=$?
14070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071   (exit $ac_status); } &&
14072          { ac_try='test -s conftest.$ac_objext'
14073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074   (eval $ac_try) 2>&5
14075   ac_status=$?
14076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077   (exit $ac_status); }; }; then
14078   ac_hi=-1 ac_mid=-1
14079   while :; do
14080     cat >conftest.$ac_ext <<_ACEOF
14081 #line $LINENO "configure"
14082 #include "confdefs.h"
14083 $ac_includes_default
14084 #ifdef F77_DUMMY_MAIN
14085 #  ifdef __cplusplus
14086      extern "C"
14087 #  endif
14088    int F77_DUMMY_MAIN() { return 1; }
14089 #endif
14090 int
14091 main ()
14092 {
14093 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
14094 test_array [0] = 0
14095
14096   ;
14097   return 0;
14098 }
14099 _ACEOF
14100 rm -f conftest.$ac_objext
14101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14102   (eval $ac_compile) 2>&5
14103   ac_status=$?
14104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105   (exit $ac_status); } &&
14106          { ac_try='test -s conftest.$ac_objext'
14107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14108   (eval $ac_try) 2>&5
14109   ac_status=$?
14110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111   (exit $ac_status); }; }; then
14112   ac_lo=$ac_mid; break
14113 else
14114   echo "$as_me: failed program was:" >&5
14115 cat conftest.$ac_ext >&5
14116 ac_hi=`expr '(' $ac_mid ')' - 1`
14117                        if test $ac_mid -le $ac_hi; then
14118                          ac_lo= ac_hi=
14119                          break
14120                        fi
14121                        ac_mid=`expr 2 '*' $ac_mid`
14122 fi
14123 rm -f conftest.$ac_objext conftest.$ac_ext
14124   done
14125 else
14126   echo "$as_me: failed program was:" >&5
14127 cat conftest.$ac_ext >&5
14128 ac_lo= ac_hi=
14129 fi
14130 rm -f conftest.$ac_objext conftest.$ac_ext
14131 fi
14132 rm -f conftest.$ac_objext conftest.$ac_ext
14133 # Binary search between lo and hi bounds.
14134 while test "x$ac_lo" != "x$ac_hi"; do
14135   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14136   cat >conftest.$ac_ext <<_ACEOF
14137 #line $LINENO "configure"
14138 #include "confdefs.h"
14139 $ac_includes_default
14140 #ifdef F77_DUMMY_MAIN
14141 #  ifdef __cplusplus
14142      extern "C"
14143 #  endif
14144    int F77_DUMMY_MAIN() { return 1; }
14145 #endif
14146 int
14147 main ()
14148 {
14149 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14150 test_array [0] = 0
14151
14152   ;
14153   return 0;
14154 }
14155 _ACEOF
14156 rm -f conftest.$ac_objext
14157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14158   (eval $ac_compile) 2>&5
14159   ac_status=$?
14160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161   (exit $ac_status); } &&
14162          { ac_try='test -s conftest.$ac_objext'
14163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14164   (eval $ac_try) 2>&5
14165   ac_status=$?
14166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167   (exit $ac_status); }; }; then
14168   ac_hi=$ac_mid
14169 else
14170   echo "$as_me: failed program was:" >&5
14171 cat conftest.$ac_ext >&5
14172 ac_lo=`expr '(' $ac_mid ')' + 1`
14173 fi
14174 rm -f conftest.$ac_objext conftest.$ac_ext
14175 done
14176 case $ac_lo in
14177 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
14178 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14179 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14180    { (exit 1); exit 1; }; } ;;
14181 esac
14182 else
14183   if test "$cross_compiling" = yes; then
14184   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14185 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14186    { (exit 1); exit 1; }; }
14187 else
14188   cat >conftest.$ac_ext <<_ACEOF
14189 #line $LINENO "configure"
14190 #include "confdefs.h"
14191 $ac_includes_default
14192 long longval () { return (long) (sizeof (unsigned long)); }
14193 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
14194 #include <stdio.h>
14195 #include <stdlib.h>
14196 #ifdef F77_DUMMY_MAIN
14197 #  ifdef __cplusplus
14198      extern "C"
14199 #  endif
14200    int F77_DUMMY_MAIN() { return 1; }
14201 #endif
14202 int
14203 main ()
14204 {
14205
14206   FILE *f = fopen ("conftest.val", "w");
14207   if (! f)
14208     exit (1);
14209   if (((long) (sizeof (unsigned long))) < 0)
14210     {
14211       long i = longval ();
14212       if (i != ((long) (sizeof (unsigned long))))
14213         exit (1);
14214       fprintf (f, "%ld\n", i);
14215     }
14216   else
14217     {
14218       unsigned long i = ulongval ();
14219       if (i != ((long) (sizeof (unsigned long))))
14220         exit (1);
14221       fprintf (f, "%lu\n", i);
14222     }
14223   exit (ferror (f) || fclose (f) != 0);
14224
14225   ;
14226   return 0;
14227 }
14228 _ACEOF
14229 rm -f conftest$ac_exeext
14230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14231   (eval $ac_link) 2>&5
14232   ac_status=$?
14233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236   (eval $ac_try) 2>&5
14237   ac_status=$?
14238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239   (exit $ac_status); }; }; then
14240   ac_cv_sizeof_unsigned_long=`cat conftest.val`
14241 else
14242   echo "$as_me: program exited with status $ac_status" >&5
14243 echo "$as_me: failed program was:" >&5
14244 cat conftest.$ac_ext >&5
14245 ( exit $ac_status )
14246 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14247 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14248    { (exit 1); exit 1; }; }
14249 fi
14250 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14251 fi
14252 fi
14253 rm -f conftest.val
14254 else
14255   ac_cv_sizeof_unsigned_long=0
14256 fi
14257 fi
14258 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
14259 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
14260 cat >>confdefs.h <<_ACEOF
14261 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14262 _ACEOF
14263
14264
14265
14266 # Determine memory alignment requirements for the basic C data types.
14267
14268 echo "$as_me:$LINENO: checking for short" >&5
14269 echo $ECHO_N "checking for short... $ECHO_C" >&6
14270 if test "${ac_cv_type_short+set}" = set; then
14271   echo $ECHO_N "(cached) $ECHO_C" >&6
14272 else
14273   cat >conftest.$ac_ext <<_ACEOF
14274 #line $LINENO "configure"
14275 #include "confdefs.h"
14276 $ac_includes_default
14277 #ifdef F77_DUMMY_MAIN
14278 #  ifdef __cplusplus
14279      extern "C"
14280 #  endif
14281    int F77_DUMMY_MAIN() { return 1; }
14282 #endif
14283 int
14284 main ()
14285 {
14286 if ((short *) 0)
14287   return 0;
14288 if (sizeof (short))
14289   return 0;
14290   ;
14291   return 0;
14292 }
14293 _ACEOF
14294 rm -f conftest.$ac_objext
14295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14296   (eval $ac_compile) 2>&5
14297   ac_status=$?
14298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299   (exit $ac_status); } &&
14300          { ac_try='test -s conftest.$ac_objext'
14301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302   (eval $ac_try) 2>&5
14303   ac_status=$?
14304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305   (exit $ac_status); }; }; then
14306   ac_cv_type_short=yes
14307 else
14308   echo "$as_me: failed program was:" >&5
14309 cat conftest.$ac_ext >&5
14310 ac_cv_type_short=no
14311 fi
14312 rm -f conftest.$ac_objext conftest.$ac_ext
14313 fi
14314 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14315 echo "${ECHO_T}$ac_cv_type_short" >&6
14316
14317 echo "$as_me:$LINENO: checking alignment of short" >&5
14318 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
14319 if test "${pgac_cv_alignof_short+set}" = set; then
14320   echo $ECHO_N "(cached) $ECHO_C" >&6
14321 else
14322   if test "$ac_cv_type_short" = yes; then
14323   if test "$cross_compiling" = yes; then
14324   # Depending upon the size, compute the lo and hi bounds.
14325 cat >conftest.$ac_ext <<_ACEOF
14326 #line $LINENO "configure"
14327 #include "confdefs.h"
14328 $ac_includes_default
14329 struct { char filler; short field; } pgac_struct;
14330 #ifdef F77_DUMMY_MAIN
14331 #  ifdef __cplusplus
14332      extern "C"
14333 #  endif
14334    int F77_DUMMY_MAIN() { return 1; }
14335 #endif
14336 int
14337 main ()
14338 {
14339 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14340 test_array [0] = 0
14341
14342   ;
14343   return 0;
14344 }
14345 _ACEOF
14346 rm -f conftest.$ac_objext
14347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14348   (eval $ac_compile) 2>&5
14349   ac_status=$?
14350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351   (exit $ac_status); } &&
14352          { ac_try='test -s conftest.$ac_objext'
14353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14354   (eval $ac_try) 2>&5
14355   ac_status=$?
14356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357   (exit $ac_status); }; }; then
14358   ac_lo=0 ac_mid=0
14359   while :; do
14360     cat >conftest.$ac_ext <<_ACEOF
14361 #line $LINENO "configure"
14362 #include "confdefs.h"
14363 $ac_includes_default
14364 struct { char filler; short field; } pgac_struct;
14365 #ifdef F77_DUMMY_MAIN
14366 #  ifdef __cplusplus
14367      extern "C"
14368 #  endif
14369    int F77_DUMMY_MAIN() { return 1; }
14370 #endif
14371 int
14372 main ()
14373 {
14374 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14375 test_array [0] = 0
14376
14377   ;
14378   return 0;
14379 }
14380 _ACEOF
14381 rm -f conftest.$ac_objext
14382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14383   (eval $ac_compile) 2>&5
14384   ac_status=$?
14385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386   (exit $ac_status); } &&
14387          { ac_try='test -s conftest.$ac_objext'
14388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14389   (eval $ac_try) 2>&5
14390   ac_status=$?
14391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392   (exit $ac_status); }; }; then
14393   ac_hi=$ac_mid; break
14394 else
14395   echo "$as_me: failed program was:" >&5
14396 cat conftest.$ac_ext >&5
14397 ac_lo=`expr $ac_mid + 1`
14398                     if test $ac_lo -le $ac_mid; then
14399                       ac_lo= ac_hi=
14400                       break
14401                     fi
14402                     ac_mid=`expr 2 '*' $ac_mid + 1`
14403 fi
14404 rm -f conftest.$ac_objext conftest.$ac_ext
14405   done
14406 else
14407   echo "$as_me: failed program was:" >&5
14408 cat conftest.$ac_ext >&5
14409 cat >conftest.$ac_ext <<_ACEOF
14410 #line $LINENO "configure"
14411 #include "confdefs.h"
14412 $ac_includes_default
14413 struct { char filler; short field; } pgac_struct;
14414 #ifdef F77_DUMMY_MAIN
14415 #  ifdef __cplusplus
14416      extern "C"
14417 #  endif
14418    int F77_DUMMY_MAIN() { return 1; }
14419 #endif
14420 int
14421 main ()
14422 {
14423 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14424 test_array [0] = 0
14425
14426   ;
14427   return 0;
14428 }
14429 _ACEOF
14430 rm -f conftest.$ac_objext
14431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14432   (eval $ac_compile) 2>&5
14433   ac_status=$?
14434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435   (exit $ac_status); } &&
14436          { ac_try='test -s conftest.$ac_objext'
14437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438   (eval $ac_try) 2>&5
14439   ac_status=$?
14440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441   (exit $ac_status); }; }; then
14442   ac_hi=-1 ac_mid=-1
14443   while :; do
14444     cat >conftest.$ac_ext <<_ACEOF
14445 #line $LINENO "configure"
14446 #include "confdefs.h"
14447 $ac_includes_default
14448 struct { char filler; short field; } pgac_struct;
14449 #ifdef F77_DUMMY_MAIN
14450 #  ifdef __cplusplus
14451      extern "C"
14452 #  endif
14453    int F77_DUMMY_MAIN() { return 1; }
14454 #endif
14455 int
14456 main ()
14457 {
14458 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14459 test_array [0] = 0
14460
14461   ;
14462   return 0;
14463 }
14464 _ACEOF
14465 rm -f conftest.$ac_objext
14466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14467   (eval $ac_compile) 2>&5
14468   ac_status=$?
14469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470   (exit $ac_status); } &&
14471          { ac_try='test -s conftest.$ac_objext'
14472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14473   (eval $ac_try) 2>&5
14474   ac_status=$?
14475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476   (exit $ac_status); }; }; then
14477   ac_lo=$ac_mid; break
14478 else
14479   echo "$as_me: failed program was:" >&5
14480 cat conftest.$ac_ext >&5
14481 ac_hi=`expr '(' $ac_mid ')' - 1`
14482                        if test $ac_mid -le $ac_hi; then
14483                          ac_lo= ac_hi=
14484                          break
14485                        fi
14486                        ac_mid=`expr 2 '*' $ac_mid`
14487 fi
14488 rm -f conftest.$ac_objext conftest.$ac_ext
14489   done
14490 else
14491   echo "$as_me: failed program was:" >&5
14492 cat conftest.$ac_ext >&5
14493 ac_lo= ac_hi=
14494 fi
14495 rm -f conftest.$ac_objext conftest.$ac_ext
14496 fi
14497 rm -f conftest.$ac_objext conftest.$ac_ext
14498 # Binary search between lo and hi bounds.
14499 while test "x$ac_lo" != "x$ac_hi"; do
14500   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14501   cat >conftest.$ac_ext <<_ACEOF
14502 #line $LINENO "configure"
14503 #include "confdefs.h"
14504 $ac_includes_default
14505 struct { char filler; short field; } pgac_struct;
14506 #ifdef F77_DUMMY_MAIN
14507 #  ifdef __cplusplus
14508      extern "C"
14509 #  endif
14510    int F77_DUMMY_MAIN() { return 1; }
14511 #endif
14512 int
14513 main ()
14514 {
14515 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14516 test_array [0] = 0
14517
14518   ;
14519   return 0;
14520 }
14521 _ACEOF
14522 rm -f conftest.$ac_objext
14523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14524   (eval $ac_compile) 2>&5
14525   ac_status=$?
14526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527   (exit $ac_status); } &&
14528          { ac_try='test -s conftest.$ac_objext'
14529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14530   (eval $ac_try) 2>&5
14531   ac_status=$?
14532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533   (exit $ac_status); }; }; then
14534   ac_hi=$ac_mid
14535 else
14536   echo "$as_me: failed program was:" >&5
14537 cat conftest.$ac_ext >&5
14538 ac_lo=`expr '(' $ac_mid ')' + 1`
14539 fi
14540 rm -f conftest.$ac_objext conftest.$ac_ext
14541 done
14542 case $ac_lo in
14543 ?*) pgac_cv_alignof_short=$ac_lo;;
14544 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14545 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14546    { (exit 1); exit 1; }; } ;;
14547 esac
14548 else
14549   if test "$cross_compiling" = yes; then
14550   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14551 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14552    { (exit 1); exit 1; }; }
14553 else
14554   cat >conftest.$ac_ext <<_ACEOF
14555 #line $LINENO "configure"
14556 #include "confdefs.h"
14557 $ac_includes_default
14558 struct { char filler; short field; } pgac_struct;
14559 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14560 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14561 #include <stdio.h>
14562 #include <stdlib.h>
14563 #ifdef F77_DUMMY_MAIN
14564 #  ifdef __cplusplus
14565      extern "C"
14566 #  endif
14567    int F77_DUMMY_MAIN() { return 1; }
14568 #endif
14569 int
14570 main ()
14571 {
14572
14573   FILE *f = fopen ("conftest.val", "w");
14574   if (! f)
14575     exit (1);
14576   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14577     {
14578       long i = longval ();
14579       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14580         exit (1);
14581       fprintf (f, "%ld\n", i);
14582     }
14583   else
14584     {
14585       unsigned long i = ulongval ();
14586       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14587         exit (1);
14588       fprintf (f, "%lu\n", i);
14589     }
14590   exit (ferror (f) || fclose (f) != 0);
14591
14592   ;
14593   return 0;
14594 }
14595 _ACEOF
14596 rm -f conftest$ac_exeext
14597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14598   (eval $ac_link) 2>&5
14599   ac_status=$?
14600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14603   (eval $ac_try) 2>&5
14604   ac_status=$?
14605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606   (exit $ac_status); }; }; then
14607   pgac_cv_alignof_short=`cat conftest.val`
14608 else
14609   echo "$as_me: program exited with status $ac_status" >&5
14610 echo "$as_me: failed program was:" >&5
14611 cat conftest.$ac_ext >&5
14612 ( exit $ac_status )
14613 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14614 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14615    { (exit 1); exit 1; }; }
14616 fi
14617 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14618 fi
14619 fi
14620 rm -f conftest.val
14621 else
14622   pgac_cv_alignof_short=0
14623 fi
14624 fi
14625 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
14626 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
14627 cat >>confdefs.h <<_ACEOF
14628 #define ALIGNOF_SHORT $pgac_cv_alignof_short
14629 _ACEOF
14630
14631
14632 echo "$as_me:$LINENO: checking for int" >&5
14633 echo $ECHO_N "checking for int... $ECHO_C" >&6
14634 if test "${ac_cv_type_int+set}" = set; then
14635   echo $ECHO_N "(cached) $ECHO_C" >&6
14636 else
14637   cat >conftest.$ac_ext <<_ACEOF
14638 #line $LINENO "configure"
14639 #include "confdefs.h"
14640 $ac_includes_default
14641 #ifdef F77_DUMMY_MAIN
14642 #  ifdef __cplusplus
14643      extern "C"
14644 #  endif
14645    int F77_DUMMY_MAIN() { return 1; }
14646 #endif
14647 int
14648 main ()
14649 {
14650 if ((int *) 0)
14651   return 0;
14652 if (sizeof (int))
14653   return 0;
14654   ;
14655   return 0;
14656 }
14657 _ACEOF
14658 rm -f conftest.$ac_objext
14659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14660   (eval $ac_compile) 2>&5
14661   ac_status=$?
14662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663   (exit $ac_status); } &&
14664          { ac_try='test -s conftest.$ac_objext'
14665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666   (eval $ac_try) 2>&5
14667   ac_status=$?
14668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669   (exit $ac_status); }; }; then
14670   ac_cv_type_int=yes
14671 else
14672   echo "$as_me: failed program was:" >&5
14673 cat conftest.$ac_ext >&5
14674 ac_cv_type_int=no
14675 fi
14676 rm -f conftest.$ac_objext conftest.$ac_ext
14677 fi
14678 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14679 echo "${ECHO_T}$ac_cv_type_int" >&6
14680
14681 echo "$as_me:$LINENO: checking alignment of int" >&5
14682 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14683 if test "${pgac_cv_alignof_int+set}" = set; then
14684   echo $ECHO_N "(cached) $ECHO_C" >&6
14685 else
14686   if test "$ac_cv_type_int" = yes; then
14687   if test "$cross_compiling" = yes; then
14688   # Depending upon the size, compute the lo and hi bounds.
14689 cat >conftest.$ac_ext <<_ACEOF
14690 #line $LINENO "configure"
14691 #include "confdefs.h"
14692 $ac_includes_default
14693 struct { char filler; int field; } pgac_struct;
14694 #ifdef F77_DUMMY_MAIN
14695 #  ifdef __cplusplus
14696      extern "C"
14697 #  endif
14698    int F77_DUMMY_MAIN() { return 1; }
14699 #endif
14700 int
14701 main ()
14702 {
14703 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14704 test_array [0] = 0
14705
14706   ;
14707   return 0;
14708 }
14709 _ACEOF
14710 rm -f conftest.$ac_objext
14711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14712   (eval $ac_compile) 2>&5
14713   ac_status=$?
14714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715   (exit $ac_status); } &&
14716          { ac_try='test -s conftest.$ac_objext'
14717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718   (eval $ac_try) 2>&5
14719   ac_status=$?
14720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721   (exit $ac_status); }; }; then
14722   ac_lo=0 ac_mid=0
14723   while :; do
14724     cat >conftest.$ac_ext <<_ACEOF
14725 #line $LINENO "configure"
14726 #include "confdefs.h"
14727 $ac_includes_default
14728 struct { char filler; int field; } pgac_struct;
14729 #ifdef F77_DUMMY_MAIN
14730 #  ifdef __cplusplus
14731      extern "C"
14732 #  endif
14733    int F77_DUMMY_MAIN() { return 1; }
14734 #endif
14735 int
14736 main ()
14737 {
14738 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14739 test_array [0] = 0
14740
14741   ;
14742   return 0;
14743 }
14744 _ACEOF
14745 rm -f conftest.$ac_objext
14746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14747   (eval $ac_compile) 2>&5
14748   ac_status=$?
14749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750   (exit $ac_status); } &&
14751          { ac_try='test -s conftest.$ac_objext'
14752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753   (eval $ac_try) 2>&5
14754   ac_status=$?
14755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756   (exit $ac_status); }; }; then
14757   ac_hi=$ac_mid; break
14758 else
14759   echo "$as_me: failed program was:" >&5
14760 cat conftest.$ac_ext >&5
14761 ac_lo=`expr $ac_mid + 1`
14762                     if test $ac_lo -le $ac_mid; then
14763                       ac_lo= ac_hi=
14764                       break
14765                     fi
14766                     ac_mid=`expr 2 '*' $ac_mid + 1`
14767 fi
14768 rm -f conftest.$ac_objext conftest.$ac_ext
14769   done
14770 else
14771   echo "$as_me: failed program was:" >&5
14772 cat conftest.$ac_ext >&5
14773 cat >conftest.$ac_ext <<_ACEOF
14774 #line $LINENO "configure"
14775 #include "confdefs.h"
14776 $ac_includes_default
14777 struct { char filler; int field; } pgac_struct;
14778 #ifdef F77_DUMMY_MAIN
14779 #  ifdef __cplusplus
14780      extern "C"
14781 #  endif
14782    int F77_DUMMY_MAIN() { return 1; }
14783 #endif
14784 int
14785 main ()
14786 {
14787 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14788 test_array [0] = 0
14789
14790   ;
14791   return 0;
14792 }
14793 _ACEOF
14794 rm -f conftest.$ac_objext
14795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14796   (eval $ac_compile) 2>&5
14797   ac_status=$?
14798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799   (exit $ac_status); } &&
14800          { ac_try='test -s conftest.$ac_objext'
14801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802   (eval $ac_try) 2>&5
14803   ac_status=$?
14804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805   (exit $ac_status); }; }; then
14806   ac_hi=-1 ac_mid=-1
14807   while :; do
14808     cat >conftest.$ac_ext <<_ACEOF
14809 #line $LINENO "configure"
14810 #include "confdefs.h"
14811 $ac_includes_default
14812 struct { char filler; int field; } pgac_struct;
14813 #ifdef F77_DUMMY_MAIN
14814 #  ifdef __cplusplus
14815      extern "C"
14816 #  endif
14817    int F77_DUMMY_MAIN() { return 1; }
14818 #endif
14819 int
14820 main ()
14821 {
14822 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14823 test_array [0] = 0
14824
14825   ;
14826   return 0;
14827 }
14828 _ACEOF
14829 rm -f conftest.$ac_objext
14830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14831   (eval $ac_compile) 2>&5
14832   ac_status=$?
14833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834   (exit $ac_status); } &&
14835          { ac_try='test -s conftest.$ac_objext'
14836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14837   (eval $ac_try) 2>&5
14838   ac_status=$?
14839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840   (exit $ac_status); }; }; then
14841   ac_lo=$ac_mid; break
14842 else
14843   echo "$as_me: failed program was:" >&5
14844 cat conftest.$ac_ext >&5
14845 ac_hi=`expr '(' $ac_mid ')' - 1`
14846                        if test $ac_mid -le $ac_hi; then
14847                          ac_lo= ac_hi=
14848                          break
14849                        fi
14850                        ac_mid=`expr 2 '*' $ac_mid`
14851 fi
14852 rm -f conftest.$ac_objext conftest.$ac_ext
14853   done
14854 else
14855   echo "$as_me: failed program was:" >&5
14856 cat conftest.$ac_ext >&5
14857 ac_lo= ac_hi=
14858 fi
14859 rm -f conftest.$ac_objext conftest.$ac_ext
14860 fi
14861 rm -f conftest.$ac_objext conftest.$ac_ext
14862 # Binary search between lo and hi bounds.
14863 while test "x$ac_lo" != "x$ac_hi"; do
14864   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14865   cat >conftest.$ac_ext <<_ACEOF
14866 #line $LINENO "configure"
14867 #include "confdefs.h"
14868 $ac_includes_default
14869 struct { char filler; int field; } pgac_struct;
14870 #ifdef F77_DUMMY_MAIN
14871 #  ifdef __cplusplus
14872      extern "C"
14873 #  endif
14874    int F77_DUMMY_MAIN() { return 1; }
14875 #endif
14876 int
14877 main ()
14878 {
14879 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14880 test_array [0] = 0
14881
14882   ;
14883   return 0;
14884 }
14885 _ACEOF
14886 rm -f conftest.$ac_objext
14887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14888   (eval $ac_compile) 2>&5
14889   ac_status=$?
14890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891   (exit $ac_status); } &&
14892          { ac_try='test -s conftest.$ac_objext'
14893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14894   (eval $ac_try) 2>&5
14895   ac_status=$?
14896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897   (exit $ac_status); }; }; then
14898   ac_hi=$ac_mid
14899 else
14900   echo "$as_me: failed program was:" >&5
14901 cat conftest.$ac_ext >&5
14902 ac_lo=`expr '(' $ac_mid ')' + 1`
14903 fi
14904 rm -f conftest.$ac_objext conftest.$ac_ext
14905 done
14906 case $ac_lo in
14907 ?*) pgac_cv_alignof_int=$ac_lo;;
14908 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14909 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14910    { (exit 1); exit 1; }; } ;;
14911 esac
14912 else
14913   if test "$cross_compiling" = yes; then
14914   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14915 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14916    { (exit 1); exit 1; }; }
14917 else
14918   cat >conftest.$ac_ext <<_ACEOF
14919 #line $LINENO "configure"
14920 #include "confdefs.h"
14921 $ac_includes_default
14922 struct { char filler; int field; } pgac_struct;
14923 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14924 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14925 #include <stdio.h>
14926 #include <stdlib.h>
14927 #ifdef F77_DUMMY_MAIN
14928 #  ifdef __cplusplus
14929      extern "C"
14930 #  endif
14931    int F77_DUMMY_MAIN() { return 1; }
14932 #endif
14933 int
14934 main ()
14935 {
14936
14937   FILE *f = fopen ("conftest.val", "w");
14938   if (! f)
14939     exit (1);
14940   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14941     {
14942       long i = longval ();
14943       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14944         exit (1);
14945       fprintf (f, "%ld\n", i);
14946     }
14947   else
14948     {
14949       unsigned long i = ulongval ();
14950       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14951         exit (1);
14952       fprintf (f, "%lu\n", i);
14953     }
14954   exit (ferror (f) || fclose (f) != 0);
14955
14956   ;
14957   return 0;
14958 }
14959 _ACEOF
14960 rm -f conftest$ac_exeext
14961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14962   (eval $ac_link) 2>&5
14963   ac_status=$?
14964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967   (eval $ac_try) 2>&5
14968   ac_status=$?
14969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970   (exit $ac_status); }; }; then
14971   pgac_cv_alignof_int=`cat conftest.val`
14972 else
14973   echo "$as_me: program exited with status $ac_status" >&5
14974 echo "$as_me: failed program was:" >&5
14975 cat conftest.$ac_ext >&5
14976 ( exit $ac_status )
14977 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14978 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14979    { (exit 1); exit 1; }; }
14980 fi
14981 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14982 fi
14983 fi
14984 rm -f conftest.val
14985 else
14986   pgac_cv_alignof_int=0
14987 fi
14988 fi
14989 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14990 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14991 cat >>confdefs.h <<_ACEOF
14992 #define ALIGNOF_INT $pgac_cv_alignof_int
14993 _ACEOF
14994
14995
14996 echo "$as_me:$LINENO: checking for long" >&5
14997 echo $ECHO_N "checking for long... $ECHO_C" >&6
14998 if test "${ac_cv_type_long+set}" = set; then
14999   echo $ECHO_N "(cached) $ECHO_C" >&6
15000 else
15001   cat >conftest.$ac_ext <<_ACEOF
15002 #line $LINENO "configure"
15003 #include "confdefs.h"
15004 $ac_includes_default
15005 #ifdef F77_DUMMY_MAIN
15006 #  ifdef __cplusplus
15007      extern "C"
15008 #  endif
15009    int F77_DUMMY_MAIN() { return 1; }
15010 #endif
15011 int
15012 main ()
15013 {
15014 if ((long *) 0)
15015   return 0;
15016 if (sizeof (long))
15017   return 0;
15018   ;
15019   return 0;
15020 }
15021 _ACEOF
15022 rm -f conftest.$ac_objext
15023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15024   (eval $ac_compile) 2>&5
15025   ac_status=$?
15026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027   (exit $ac_status); } &&
15028          { ac_try='test -s conftest.$ac_objext'
15029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15030   (eval $ac_try) 2>&5
15031   ac_status=$?
15032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033   (exit $ac_status); }; }; then
15034   ac_cv_type_long=yes
15035 else
15036   echo "$as_me: failed program was:" >&5
15037 cat conftest.$ac_ext >&5
15038 ac_cv_type_long=no
15039 fi
15040 rm -f conftest.$ac_objext conftest.$ac_ext
15041 fi
15042 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15043 echo "${ECHO_T}$ac_cv_type_long" >&6
15044
15045 echo "$as_me:$LINENO: checking alignment of long" >&5
15046 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
15047 if test "${pgac_cv_alignof_long+set}" = set; then
15048   echo $ECHO_N "(cached) $ECHO_C" >&6
15049 else
15050   if test "$ac_cv_type_long" = yes; then
15051   if test "$cross_compiling" = yes; then
15052   # Depending upon the size, compute the lo and hi bounds.
15053 cat >conftest.$ac_ext <<_ACEOF
15054 #line $LINENO "configure"
15055 #include "confdefs.h"
15056 $ac_includes_default
15057 struct { char filler; long field; } pgac_struct;
15058 #ifdef F77_DUMMY_MAIN
15059 #  ifdef __cplusplus
15060      extern "C"
15061 #  endif
15062    int F77_DUMMY_MAIN() { return 1; }
15063 #endif
15064 int
15065 main ()
15066 {
15067 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15068 test_array [0] = 0
15069
15070   ;
15071   return 0;
15072 }
15073 _ACEOF
15074 rm -f conftest.$ac_objext
15075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15076   (eval $ac_compile) 2>&5
15077   ac_status=$?
15078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079   (exit $ac_status); } &&
15080          { ac_try='test -s conftest.$ac_objext'
15081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15082   (eval $ac_try) 2>&5
15083   ac_status=$?
15084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085   (exit $ac_status); }; }; then
15086   ac_lo=0 ac_mid=0
15087   while :; do
15088     cat >conftest.$ac_ext <<_ACEOF
15089 #line $LINENO "configure"
15090 #include "confdefs.h"
15091 $ac_includes_default
15092 struct { char filler; long field; } pgac_struct;
15093 #ifdef F77_DUMMY_MAIN
15094 #  ifdef __cplusplus
15095      extern "C"
15096 #  endif
15097    int F77_DUMMY_MAIN() { return 1; }
15098 #endif
15099 int
15100 main ()
15101 {
15102 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15103 test_array [0] = 0
15104
15105   ;
15106   return 0;
15107 }
15108 _ACEOF
15109 rm -f conftest.$ac_objext
15110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15111   (eval $ac_compile) 2>&5
15112   ac_status=$?
15113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114   (exit $ac_status); } &&
15115          { ac_try='test -s conftest.$ac_objext'
15116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117   (eval $ac_try) 2>&5
15118   ac_status=$?
15119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120   (exit $ac_status); }; }; then
15121   ac_hi=$ac_mid; break
15122 else
15123   echo "$as_me: failed program was:" >&5
15124 cat conftest.$ac_ext >&5
15125 ac_lo=`expr $ac_mid + 1`
15126                     if test $ac_lo -le $ac_mid; then
15127                       ac_lo= ac_hi=
15128                       break
15129                     fi
15130                     ac_mid=`expr 2 '*' $ac_mid + 1`
15131 fi
15132 rm -f conftest.$ac_objext conftest.$ac_ext
15133   done
15134 else
15135   echo "$as_me: failed program was:" >&5
15136 cat conftest.$ac_ext >&5
15137 cat >conftest.$ac_ext <<_ACEOF
15138 #line $LINENO "configure"
15139 #include "confdefs.h"
15140 $ac_includes_default
15141 struct { char filler; long field; } pgac_struct;
15142 #ifdef F77_DUMMY_MAIN
15143 #  ifdef __cplusplus
15144      extern "C"
15145 #  endif
15146    int F77_DUMMY_MAIN() { return 1; }
15147 #endif
15148 int
15149 main ()
15150 {
15151 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15152 test_array [0] = 0
15153
15154   ;
15155   return 0;
15156 }
15157 _ACEOF
15158 rm -f conftest.$ac_objext
15159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15160   (eval $ac_compile) 2>&5
15161   ac_status=$?
15162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163   (exit $ac_status); } &&
15164          { ac_try='test -s conftest.$ac_objext'
15165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15166   (eval $ac_try) 2>&5
15167   ac_status=$?
15168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169   (exit $ac_status); }; }; then
15170   ac_hi=-1 ac_mid=-1
15171   while :; do
15172     cat >conftest.$ac_ext <<_ACEOF
15173 #line $LINENO "configure"
15174 #include "confdefs.h"
15175 $ac_includes_default
15176 struct { char filler; long field; } pgac_struct;
15177 #ifdef F77_DUMMY_MAIN
15178 #  ifdef __cplusplus
15179      extern "C"
15180 #  endif
15181    int F77_DUMMY_MAIN() { return 1; }
15182 #endif
15183 int
15184 main ()
15185 {
15186 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15187 test_array [0] = 0
15188
15189   ;
15190   return 0;
15191 }
15192 _ACEOF
15193 rm -f conftest.$ac_objext
15194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15195   (eval $ac_compile) 2>&5
15196   ac_status=$?
15197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198   (exit $ac_status); } &&
15199          { ac_try='test -s conftest.$ac_objext'
15200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15201   (eval $ac_try) 2>&5
15202   ac_status=$?
15203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204   (exit $ac_status); }; }; then
15205   ac_lo=$ac_mid; break
15206 else
15207   echo "$as_me: failed program was:" >&5
15208 cat conftest.$ac_ext >&5
15209 ac_hi=`expr '(' $ac_mid ')' - 1`
15210                        if test $ac_mid -le $ac_hi; then
15211                          ac_lo= ac_hi=
15212                          break
15213                        fi
15214                        ac_mid=`expr 2 '*' $ac_mid`
15215 fi
15216 rm -f conftest.$ac_objext conftest.$ac_ext
15217   done
15218 else
15219   echo "$as_me: failed program was:" >&5
15220 cat conftest.$ac_ext >&5
15221 ac_lo= ac_hi=
15222 fi
15223 rm -f conftest.$ac_objext conftest.$ac_ext
15224 fi
15225 rm -f conftest.$ac_objext conftest.$ac_ext
15226 # Binary search between lo and hi bounds.
15227 while test "x$ac_lo" != "x$ac_hi"; do
15228   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15229   cat >conftest.$ac_ext <<_ACEOF
15230 #line $LINENO "configure"
15231 #include "confdefs.h"
15232 $ac_includes_default
15233 struct { char filler; long field; } pgac_struct;
15234 #ifdef F77_DUMMY_MAIN
15235 #  ifdef __cplusplus
15236      extern "C"
15237 #  endif
15238    int F77_DUMMY_MAIN() { return 1; }
15239 #endif
15240 int
15241 main ()
15242 {
15243 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15244 test_array [0] = 0
15245
15246   ;
15247   return 0;
15248 }
15249 _ACEOF
15250 rm -f conftest.$ac_objext
15251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15252   (eval $ac_compile) 2>&5
15253   ac_status=$?
15254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255   (exit $ac_status); } &&
15256          { ac_try='test -s conftest.$ac_objext'
15257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15258   (eval $ac_try) 2>&5
15259   ac_status=$?
15260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261   (exit $ac_status); }; }; then
15262   ac_hi=$ac_mid
15263 else
15264   echo "$as_me: failed program was:" >&5
15265 cat conftest.$ac_ext >&5
15266 ac_lo=`expr '(' $ac_mid ')' + 1`
15267 fi
15268 rm -f conftest.$ac_objext conftest.$ac_ext
15269 done
15270 case $ac_lo in
15271 ?*) pgac_cv_alignof_long=$ac_lo;;
15272 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15273 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15274    { (exit 1); exit 1; }; } ;;
15275 esac
15276 else
15277   if test "$cross_compiling" = yes; then
15278   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15279 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15280    { (exit 1); exit 1; }; }
15281 else
15282   cat >conftest.$ac_ext <<_ACEOF
15283 #line $LINENO "configure"
15284 #include "confdefs.h"
15285 $ac_includes_default
15286 struct { char filler; long field; } pgac_struct;
15287 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15288 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15289 #include <stdio.h>
15290 #include <stdlib.h>
15291 #ifdef F77_DUMMY_MAIN
15292 #  ifdef __cplusplus
15293      extern "C"
15294 #  endif
15295    int F77_DUMMY_MAIN() { return 1; }
15296 #endif
15297 int
15298 main ()
15299 {
15300
15301   FILE *f = fopen ("conftest.val", "w");
15302   if (! f)
15303     exit (1);
15304   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15305     {
15306       long i = longval ();
15307       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15308         exit (1);
15309       fprintf (f, "%ld\n", i);
15310     }
15311   else
15312     {
15313       unsigned long i = ulongval ();
15314       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15315         exit (1);
15316       fprintf (f, "%lu\n", i);
15317     }
15318   exit (ferror (f) || fclose (f) != 0);
15319
15320   ;
15321   return 0;
15322 }
15323 _ACEOF
15324 rm -f conftest$ac_exeext
15325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15326   (eval $ac_link) 2>&5
15327   ac_status=$?
15328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15331   (eval $ac_try) 2>&5
15332   ac_status=$?
15333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334   (exit $ac_status); }; }; then
15335   pgac_cv_alignof_long=`cat conftest.val`
15336 else
15337   echo "$as_me: program exited with status $ac_status" >&5
15338 echo "$as_me: failed program was:" >&5
15339 cat conftest.$ac_ext >&5
15340 ( exit $ac_status )
15341 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15342 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15343    { (exit 1); exit 1; }; }
15344 fi
15345 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15346 fi
15347 fi
15348 rm -f conftest.val
15349 else
15350   pgac_cv_alignof_long=0
15351 fi
15352 fi
15353 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
15354 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
15355 cat >>confdefs.h <<_ACEOF
15356 #define ALIGNOF_LONG $pgac_cv_alignof_long
15357 _ACEOF
15358
15359
15360 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
15361   echo "$as_me:$LINENO: checking for long long int" >&5
15362 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15363 if test "${ac_cv_type_long_long_int+set}" = set; then
15364   echo $ECHO_N "(cached) $ECHO_C" >&6
15365 else
15366   cat >conftest.$ac_ext <<_ACEOF
15367 #line $LINENO "configure"
15368 #include "confdefs.h"
15369 $ac_includes_default
15370 #ifdef F77_DUMMY_MAIN
15371 #  ifdef __cplusplus
15372      extern "C"
15373 #  endif
15374    int F77_DUMMY_MAIN() { return 1; }
15375 #endif
15376 int
15377 main ()
15378 {
15379 if ((long long int *) 0)
15380   return 0;
15381 if (sizeof (long long int))
15382   return 0;
15383   ;
15384   return 0;
15385 }
15386 _ACEOF
15387 rm -f conftest.$ac_objext
15388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15389   (eval $ac_compile) 2>&5
15390   ac_status=$?
15391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392   (exit $ac_status); } &&
15393          { ac_try='test -s conftest.$ac_objext'
15394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15395   (eval $ac_try) 2>&5
15396   ac_status=$?
15397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398   (exit $ac_status); }; }; then
15399   ac_cv_type_long_long_int=yes
15400 else
15401   echo "$as_me: failed program was:" >&5
15402 cat conftest.$ac_ext >&5
15403 ac_cv_type_long_long_int=no
15404 fi
15405 rm -f conftest.$ac_objext conftest.$ac_ext
15406 fi
15407 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15408 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15409
15410 echo "$as_me:$LINENO: checking alignment of long long int" >&5
15411 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
15412 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
15413   echo $ECHO_N "(cached) $ECHO_C" >&6
15414 else
15415   if test "$ac_cv_type_long_long_int" = yes; then
15416   if test "$cross_compiling" = yes; then
15417   # Depending upon the size, compute the lo and hi bounds.
15418 cat >conftest.$ac_ext <<_ACEOF
15419 #line $LINENO "configure"
15420 #include "confdefs.h"
15421 $ac_includes_default
15422 struct { char filler; long long int field; } pgac_struct;
15423 #ifdef F77_DUMMY_MAIN
15424 #  ifdef __cplusplus
15425      extern "C"
15426 #  endif
15427    int F77_DUMMY_MAIN() { return 1; }
15428 #endif
15429 int
15430 main ()
15431 {
15432 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15433 test_array [0] = 0
15434
15435   ;
15436   return 0;
15437 }
15438 _ACEOF
15439 rm -f conftest.$ac_objext
15440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15441   (eval $ac_compile) 2>&5
15442   ac_status=$?
15443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444   (exit $ac_status); } &&
15445          { ac_try='test -s conftest.$ac_objext'
15446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447   (eval $ac_try) 2>&5
15448   ac_status=$?
15449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450   (exit $ac_status); }; }; then
15451   ac_lo=0 ac_mid=0
15452   while :; do
15453     cat >conftest.$ac_ext <<_ACEOF
15454 #line $LINENO "configure"
15455 #include "confdefs.h"
15456 $ac_includes_default
15457 struct { char filler; long long int field; } pgac_struct;
15458 #ifdef F77_DUMMY_MAIN
15459 #  ifdef __cplusplus
15460      extern "C"
15461 #  endif
15462    int F77_DUMMY_MAIN() { return 1; }
15463 #endif
15464 int
15465 main ()
15466 {
15467 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15468 test_array [0] = 0
15469
15470   ;
15471   return 0;
15472 }
15473 _ACEOF
15474 rm -f conftest.$ac_objext
15475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15476   (eval $ac_compile) 2>&5
15477   ac_status=$?
15478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479   (exit $ac_status); } &&
15480          { ac_try='test -s conftest.$ac_objext'
15481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15482   (eval $ac_try) 2>&5
15483   ac_status=$?
15484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485   (exit $ac_status); }; }; then
15486   ac_hi=$ac_mid; break
15487 else
15488   echo "$as_me: failed program was:" >&5
15489 cat conftest.$ac_ext >&5
15490 ac_lo=`expr $ac_mid + 1`
15491                     if test $ac_lo -le $ac_mid; then
15492                       ac_lo= ac_hi=
15493                       break
15494                     fi
15495                     ac_mid=`expr 2 '*' $ac_mid + 1`
15496 fi
15497 rm -f conftest.$ac_objext conftest.$ac_ext
15498   done
15499 else
15500   echo "$as_me: failed program was:" >&5
15501 cat conftest.$ac_ext >&5
15502 cat >conftest.$ac_ext <<_ACEOF
15503 #line $LINENO "configure"
15504 #include "confdefs.h"
15505 $ac_includes_default
15506 struct { char filler; long long int field; } pgac_struct;
15507 #ifdef F77_DUMMY_MAIN
15508 #  ifdef __cplusplus
15509      extern "C"
15510 #  endif
15511    int F77_DUMMY_MAIN() { return 1; }
15512 #endif
15513 int
15514 main ()
15515 {
15516 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15517 test_array [0] = 0
15518
15519   ;
15520   return 0;
15521 }
15522 _ACEOF
15523 rm -f conftest.$ac_objext
15524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15525   (eval $ac_compile) 2>&5
15526   ac_status=$?
15527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528   (exit $ac_status); } &&
15529          { ac_try='test -s conftest.$ac_objext'
15530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15531   (eval $ac_try) 2>&5
15532   ac_status=$?
15533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534   (exit $ac_status); }; }; then
15535   ac_hi=-1 ac_mid=-1
15536   while :; do
15537     cat >conftest.$ac_ext <<_ACEOF
15538 #line $LINENO "configure"
15539 #include "confdefs.h"
15540 $ac_includes_default
15541 struct { char filler; long long int field; } pgac_struct;
15542 #ifdef F77_DUMMY_MAIN
15543 #  ifdef __cplusplus
15544      extern "C"
15545 #  endif
15546    int F77_DUMMY_MAIN() { return 1; }
15547 #endif
15548 int
15549 main ()
15550 {
15551 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15552 test_array [0] = 0
15553
15554   ;
15555   return 0;
15556 }
15557 _ACEOF
15558 rm -f conftest.$ac_objext
15559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15560   (eval $ac_compile) 2>&5
15561   ac_status=$?
15562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563   (exit $ac_status); } &&
15564          { ac_try='test -s conftest.$ac_objext'
15565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566   (eval $ac_try) 2>&5
15567   ac_status=$?
15568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569   (exit $ac_status); }; }; then
15570   ac_lo=$ac_mid; break
15571 else
15572   echo "$as_me: failed program was:" >&5
15573 cat conftest.$ac_ext >&5
15574 ac_hi=`expr '(' $ac_mid ')' - 1`
15575                        if test $ac_mid -le $ac_hi; then
15576                          ac_lo= ac_hi=
15577                          break
15578                        fi
15579                        ac_mid=`expr 2 '*' $ac_mid`
15580 fi
15581 rm -f conftest.$ac_objext conftest.$ac_ext
15582   done
15583 else
15584   echo "$as_me: failed program was:" >&5
15585 cat conftest.$ac_ext >&5
15586 ac_lo= ac_hi=
15587 fi
15588 rm -f conftest.$ac_objext conftest.$ac_ext
15589 fi
15590 rm -f conftest.$ac_objext conftest.$ac_ext
15591 # Binary search between lo and hi bounds.
15592 while test "x$ac_lo" != "x$ac_hi"; do
15593   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15594   cat >conftest.$ac_ext <<_ACEOF
15595 #line $LINENO "configure"
15596 #include "confdefs.h"
15597 $ac_includes_default
15598 struct { char filler; long long int field; } pgac_struct;
15599 #ifdef F77_DUMMY_MAIN
15600 #  ifdef __cplusplus
15601      extern "C"
15602 #  endif
15603    int F77_DUMMY_MAIN() { return 1; }
15604 #endif
15605 int
15606 main ()
15607 {
15608 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15609 test_array [0] = 0
15610
15611   ;
15612   return 0;
15613 }
15614 _ACEOF
15615 rm -f conftest.$ac_objext
15616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15617   (eval $ac_compile) 2>&5
15618   ac_status=$?
15619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620   (exit $ac_status); } &&
15621          { ac_try='test -s conftest.$ac_objext'
15622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623   (eval $ac_try) 2>&5
15624   ac_status=$?
15625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626   (exit $ac_status); }; }; then
15627   ac_hi=$ac_mid
15628 else
15629   echo "$as_me: failed program was:" >&5
15630 cat conftest.$ac_ext >&5
15631 ac_lo=`expr '(' $ac_mid ')' + 1`
15632 fi
15633 rm -f conftest.$ac_objext conftest.$ac_ext
15634 done
15635 case $ac_lo in
15636 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
15637 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15638 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15639    { (exit 1); exit 1; }; } ;;
15640 esac
15641 else
15642   if test "$cross_compiling" = yes; then
15643   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15644 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15645    { (exit 1); exit 1; }; }
15646 else
15647   cat >conftest.$ac_ext <<_ACEOF
15648 #line $LINENO "configure"
15649 #include "confdefs.h"
15650 $ac_includes_default
15651 struct { char filler; long long int field; } pgac_struct;
15652 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15653 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15654 #include <stdio.h>
15655 #include <stdlib.h>
15656 #ifdef F77_DUMMY_MAIN
15657 #  ifdef __cplusplus
15658      extern "C"
15659 #  endif
15660    int F77_DUMMY_MAIN() { return 1; }
15661 #endif
15662 int
15663 main ()
15664 {
15665
15666   FILE *f = fopen ("conftest.val", "w");
15667   if (! f)
15668     exit (1);
15669   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15670     {
15671       long i = longval ();
15672       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15673         exit (1);
15674       fprintf (f, "%ld\n", i);
15675     }
15676   else
15677     {
15678       unsigned long i = ulongval ();
15679       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15680         exit (1);
15681       fprintf (f, "%lu\n", i);
15682     }
15683   exit (ferror (f) || fclose (f) != 0);
15684
15685   ;
15686   return 0;
15687 }
15688 _ACEOF
15689 rm -f conftest$ac_exeext
15690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15691   (eval $ac_link) 2>&5
15692   ac_status=$?
15693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15696   (eval $ac_try) 2>&5
15697   ac_status=$?
15698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699   (exit $ac_status); }; }; then
15700   pgac_cv_alignof_long_long_int=`cat conftest.val`
15701 else
15702   echo "$as_me: program exited with status $ac_status" >&5
15703 echo "$as_me: failed program was:" >&5
15704 cat conftest.$ac_ext >&5
15705 ( exit $ac_status )
15706 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15707 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15708    { (exit 1); exit 1; }; }
15709 fi
15710 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15711 fi
15712 fi
15713 rm -f conftest.val
15714 else
15715   pgac_cv_alignof_long_long_int=0
15716 fi
15717 fi
15718 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
15719 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
15720 cat >>confdefs.h <<_ACEOF
15721 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
15722 _ACEOF
15723
15724
15725 fi
15726 echo "$as_me:$LINENO: checking for double" >&5
15727 echo $ECHO_N "checking for double... $ECHO_C" >&6
15728 if test "${ac_cv_type_double+set}" = set; then
15729   echo $ECHO_N "(cached) $ECHO_C" >&6
15730 else
15731   cat >conftest.$ac_ext <<_ACEOF
15732 #line $LINENO "configure"
15733 #include "confdefs.h"
15734 $ac_includes_default
15735 #ifdef F77_DUMMY_MAIN
15736 #  ifdef __cplusplus
15737      extern "C"
15738 #  endif
15739    int F77_DUMMY_MAIN() { return 1; }
15740 #endif
15741 int
15742 main ()
15743 {
15744 if ((double *) 0)
15745   return 0;
15746 if (sizeof (double))
15747   return 0;
15748   ;
15749   return 0;
15750 }
15751 _ACEOF
15752 rm -f conftest.$ac_objext
15753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15754   (eval $ac_compile) 2>&5
15755   ac_status=$?
15756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757   (exit $ac_status); } &&
15758          { ac_try='test -s conftest.$ac_objext'
15759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760   (eval $ac_try) 2>&5
15761   ac_status=$?
15762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763   (exit $ac_status); }; }; then
15764   ac_cv_type_double=yes
15765 else
15766   echo "$as_me: failed program was:" >&5
15767 cat conftest.$ac_ext >&5
15768 ac_cv_type_double=no
15769 fi
15770 rm -f conftest.$ac_objext conftest.$ac_ext
15771 fi
15772 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15773 echo "${ECHO_T}$ac_cv_type_double" >&6
15774
15775 echo "$as_me:$LINENO: checking alignment of double" >&5
15776 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15777 if test "${pgac_cv_alignof_double+set}" = set; then
15778   echo $ECHO_N "(cached) $ECHO_C" >&6
15779 else
15780   if test "$ac_cv_type_double" = yes; then
15781   if test "$cross_compiling" = yes; then
15782   # Depending upon the size, compute the lo and hi bounds.
15783 cat >conftest.$ac_ext <<_ACEOF
15784 #line $LINENO "configure"
15785 #include "confdefs.h"
15786 $ac_includes_default
15787 struct { char filler; double field; } pgac_struct;
15788 #ifdef F77_DUMMY_MAIN
15789 #  ifdef __cplusplus
15790      extern "C"
15791 #  endif
15792    int F77_DUMMY_MAIN() { return 1; }
15793 #endif
15794 int
15795 main ()
15796 {
15797 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15798 test_array [0] = 0
15799
15800   ;
15801   return 0;
15802 }
15803 _ACEOF
15804 rm -f conftest.$ac_objext
15805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15806   (eval $ac_compile) 2>&5
15807   ac_status=$?
15808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809   (exit $ac_status); } &&
15810          { ac_try='test -s conftest.$ac_objext'
15811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812   (eval $ac_try) 2>&5
15813   ac_status=$?
15814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815   (exit $ac_status); }; }; then
15816   ac_lo=0 ac_mid=0
15817   while :; do
15818     cat >conftest.$ac_ext <<_ACEOF
15819 #line $LINENO "configure"
15820 #include "confdefs.h"
15821 $ac_includes_default
15822 struct { char filler; double field; } pgac_struct;
15823 #ifdef F77_DUMMY_MAIN
15824 #  ifdef __cplusplus
15825      extern "C"
15826 #  endif
15827    int F77_DUMMY_MAIN() { return 1; }
15828 #endif
15829 int
15830 main ()
15831 {
15832 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15833 test_array [0] = 0
15834
15835   ;
15836   return 0;
15837 }
15838 _ACEOF
15839 rm -f conftest.$ac_objext
15840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15841   (eval $ac_compile) 2>&5
15842   ac_status=$?
15843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844   (exit $ac_status); } &&
15845          { ac_try='test -s conftest.$ac_objext'
15846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847   (eval $ac_try) 2>&5
15848   ac_status=$?
15849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850   (exit $ac_status); }; }; then
15851   ac_hi=$ac_mid; break
15852 else
15853   echo "$as_me: failed program was:" >&5
15854 cat conftest.$ac_ext >&5
15855 ac_lo=`expr $ac_mid + 1`
15856                     if test $ac_lo -le $ac_mid; then
15857                       ac_lo= ac_hi=
15858                       break
15859                     fi
15860                     ac_mid=`expr 2 '*' $ac_mid + 1`
15861 fi
15862 rm -f conftest.$ac_objext conftest.$ac_ext
15863   done
15864 else
15865   echo "$as_me: failed program was:" >&5
15866 cat conftest.$ac_ext >&5
15867 cat >conftest.$ac_ext <<_ACEOF
15868 #line $LINENO "configure"
15869 #include "confdefs.h"
15870 $ac_includes_default
15871 struct { char filler; double field; } pgac_struct;
15872 #ifdef F77_DUMMY_MAIN
15873 #  ifdef __cplusplus
15874      extern "C"
15875 #  endif
15876    int F77_DUMMY_MAIN() { return 1; }
15877 #endif
15878 int
15879 main ()
15880 {
15881 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15882 test_array [0] = 0
15883
15884   ;
15885   return 0;
15886 }
15887 _ACEOF
15888 rm -f conftest.$ac_objext
15889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15890   (eval $ac_compile) 2>&5
15891   ac_status=$?
15892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893   (exit $ac_status); } &&
15894          { ac_try='test -s conftest.$ac_objext'
15895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15896   (eval $ac_try) 2>&5
15897   ac_status=$?
15898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899   (exit $ac_status); }; }; then
15900   ac_hi=-1 ac_mid=-1
15901   while :; do
15902     cat >conftest.$ac_ext <<_ACEOF
15903 #line $LINENO "configure"
15904 #include "confdefs.h"
15905 $ac_includes_default
15906 struct { char filler; double field; } pgac_struct;
15907 #ifdef F77_DUMMY_MAIN
15908 #  ifdef __cplusplus
15909      extern "C"
15910 #  endif
15911    int F77_DUMMY_MAIN() { return 1; }
15912 #endif
15913 int
15914 main ()
15915 {
15916 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15917 test_array [0] = 0
15918
15919   ;
15920   return 0;
15921 }
15922 _ACEOF
15923 rm -f conftest.$ac_objext
15924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15925   (eval $ac_compile) 2>&5
15926   ac_status=$?
15927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928   (exit $ac_status); } &&
15929          { ac_try='test -s conftest.$ac_objext'
15930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15931   (eval $ac_try) 2>&5
15932   ac_status=$?
15933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934   (exit $ac_status); }; }; then
15935   ac_lo=$ac_mid; break
15936 else
15937   echo "$as_me: failed program was:" >&5
15938 cat conftest.$ac_ext >&5
15939 ac_hi=`expr '(' $ac_mid ')' - 1`
15940                        if test $ac_mid -le $ac_hi; then
15941                          ac_lo= ac_hi=
15942                          break
15943                        fi
15944                        ac_mid=`expr 2 '*' $ac_mid`
15945 fi
15946 rm -f conftest.$ac_objext conftest.$ac_ext
15947   done
15948 else
15949   echo "$as_me: failed program was:" >&5
15950 cat conftest.$ac_ext >&5
15951 ac_lo= ac_hi=
15952 fi
15953 rm -f conftest.$ac_objext conftest.$ac_ext
15954 fi
15955 rm -f conftest.$ac_objext conftest.$ac_ext
15956 # Binary search between lo and hi bounds.
15957 while test "x$ac_lo" != "x$ac_hi"; do
15958   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15959   cat >conftest.$ac_ext <<_ACEOF
15960 #line $LINENO "configure"
15961 #include "confdefs.h"
15962 $ac_includes_default
15963 struct { char filler; double field; } pgac_struct;
15964 #ifdef F77_DUMMY_MAIN
15965 #  ifdef __cplusplus
15966      extern "C"
15967 #  endif
15968    int F77_DUMMY_MAIN() { return 1; }
15969 #endif
15970 int
15971 main ()
15972 {
15973 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15974 test_array [0] = 0
15975
15976   ;
15977   return 0;
15978 }
15979 _ACEOF
15980 rm -f conftest.$ac_objext
15981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15982   (eval $ac_compile) 2>&5
15983   ac_status=$?
15984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985   (exit $ac_status); } &&
15986          { ac_try='test -s conftest.$ac_objext'
15987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15988   (eval $ac_try) 2>&5
15989   ac_status=$?
15990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991   (exit $ac_status); }; }; then
15992   ac_hi=$ac_mid
15993 else
15994   echo "$as_me: failed program was:" >&5
15995 cat conftest.$ac_ext >&5
15996 ac_lo=`expr '(' $ac_mid ')' + 1`
15997 fi
15998 rm -f conftest.$ac_objext conftest.$ac_ext
15999 done
16000 case $ac_lo in
16001 ?*) pgac_cv_alignof_double=$ac_lo;;
16002 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16003 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16004    { (exit 1); exit 1; }; } ;;
16005 esac
16006 else
16007   if test "$cross_compiling" = yes; then
16008   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16009 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16010    { (exit 1); exit 1; }; }
16011 else
16012   cat >conftest.$ac_ext <<_ACEOF
16013 #line $LINENO "configure"
16014 #include "confdefs.h"
16015 $ac_includes_default
16016 struct { char filler; double field; } pgac_struct;
16017 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16018 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16019 #include <stdio.h>
16020 #include <stdlib.h>
16021 #ifdef F77_DUMMY_MAIN
16022 #  ifdef __cplusplus
16023      extern "C"
16024 #  endif
16025    int F77_DUMMY_MAIN() { return 1; }
16026 #endif
16027 int
16028 main ()
16029 {
16030
16031   FILE *f = fopen ("conftest.val", "w");
16032   if (! f)
16033     exit (1);
16034   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16035     {
16036       long i = longval ();
16037       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16038         exit (1);
16039       fprintf (f, "%ld\n", i);
16040     }
16041   else
16042     {
16043       unsigned long i = ulongval ();
16044       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16045         exit (1);
16046       fprintf (f, "%lu\n", i);
16047     }
16048   exit (ferror (f) || fclose (f) != 0);
16049
16050   ;
16051   return 0;
16052 }
16053 _ACEOF
16054 rm -f conftest$ac_exeext
16055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16056   (eval $ac_link) 2>&5
16057   ac_status=$?
16058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061   (eval $ac_try) 2>&5
16062   ac_status=$?
16063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064   (exit $ac_status); }; }; then
16065   pgac_cv_alignof_double=`cat conftest.val`
16066 else
16067   echo "$as_me: program exited with status $ac_status" >&5
16068 echo "$as_me: failed program was:" >&5
16069 cat conftest.$ac_ext >&5
16070 ( exit $ac_status )
16071 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16072 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16073    { (exit 1); exit 1; }; }
16074 fi
16075 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16076 fi
16077 fi
16078 rm -f conftest.val
16079 else
16080   pgac_cv_alignof_double=0
16081 fi
16082 fi
16083 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
16084 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
16085 cat >>confdefs.h <<_ACEOF
16086 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
16087 _ACEOF
16088
16089
16090
16091 # Compute maximum alignment of any basic type.
16092 # We assume long's alignment is at least as strong as char, short, or int;
16093 # but we must check long long (if it exists) and double.
16094
16095 MAX_ALIGNOF=$pgac_cv_alignof_long
16096 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
16097   MAX_ALIGNOF=$pgac_cv_alignof_double
16098 fi
16099 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
16100   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
16101 fi
16102
16103 cat >>confdefs.h <<_ACEOF
16104 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16105 _ACEOF
16106
16107
16108
16109 # Some platforms predefine the types int8, int16, etc.  Only check
16110 # a (hopefully) representative subset.
16111 echo "$as_me:$LINENO: checking for int8" >&5
16112 echo $ECHO_N "checking for int8... $ECHO_C" >&6
16113 if test "${ac_cv_type_int8+set}" = set; then
16114   echo $ECHO_N "(cached) $ECHO_C" >&6
16115 else
16116   cat >conftest.$ac_ext <<_ACEOF
16117 #line $LINENO "configure"
16118 #include "confdefs.h"
16119 #include <stdio.h>
16120 #ifdef HAVE_SUPPORTDEFS_H
16121 #include <SupportDefs.h>
16122 #endif
16123
16124 #ifdef F77_DUMMY_MAIN
16125 #  ifdef __cplusplus
16126      extern "C"
16127 #  endif
16128    int F77_DUMMY_MAIN() { return 1; }
16129 #endif
16130 int
16131 main ()
16132 {
16133 if ((int8 *) 0)
16134   return 0;
16135 if (sizeof (int8))
16136   return 0;
16137   ;
16138   return 0;
16139 }
16140 _ACEOF
16141 rm -f conftest.$ac_objext
16142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16143   (eval $ac_compile) 2>&5
16144   ac_status=$?
16145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146   (exit $ac_status); } &&
16147          { ac_try='test -s conftest.$ac_objext'
16148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149   (eval $ac_try) 2>&5
16150   ac_status=$?
16151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152   (exit $ac_status); }; }; then
16153   ac_cv_type_int8=yes
16154 else
16155   echo "$as_me: failed program was:" >&5
16156 cat conftest.$ac_ext >&5
16157 ac_cv_type_int8=no
16158 fi
16159 rm -f conftest.$ac_objext conftest.$ac_ext
16160 fi
16161 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
16162 echo "${ECHO_T}$ac_cv_type_int8" >&6
16163 if test $ac_cv_type_int8 = yes; then
16164
16165 cat >>confdefs.h <<_ACEOF
16166 #define HAVE_INT8 1
16167 _ACEOF
16168
16169
16170 fi
16171 echo "$as_me:$LINENO: checking for uint8" >&5
16172 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
16173 if test "${ac_cv_type_uint8+set}" = set; then
16174   echo $ECHO_N "(cached) $ECHO_C" >&6
16175 else
16176   cat >conftest.$ac_ext <<_ACEOF
16177 #line $LINENO "configure"
16178 #include "confdefs.h"
16179 #include <stdio.h>
16180 #ifdef HAVE_SUPPORTDEFS_H
16181 #include <SupportDefs.h>
16182 #endif
16183
16184 #ifdef F77_DUMMY_MAIN
16185 #  ifdef __cplusplus
16186      extern "C"
16187 #  endif
16188    int F77_DUMMY_MAIN() { return 1; }
16189 #endif
16190 int
16191 main ()
16192 {
16193 if ((uint8 *) 0)
16194   return 0;
16195 if (sizeof (uint8))
16196   return 0;
16197   ;
16198   return 0;
16199 }
16200 _ACEOF
16201 rm -f conftest.$ac_objext
16202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16203   (eval $ac_compile) 2>&5
16204   ac_status=$?
16205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206   (exit $ac_status); } &&
16207          { ac_try='test -s conftest.$ac_objext'
16208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16209   (eval $ac_try) 2>&5
16210   ac_status=$?
16211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212   (exit $ac_status); }; }; then
16213   ac_cv_type_uint8=yes
16214 else
16215   echo "$as_me: failed program was:" >&5
16216 cat conftest.$ac_ext >&5
16217 ac_cv_type_uint8=no
16218 fi
16219 rm -f conftest.$ac_objext conftest.$ac_ext
16220 fi
16221 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
16222 echo "${ECHO_T}$ac_cv_type_uint8" >&6
16223 if test $ac_cv_type_uint8 = yes; then
16224
16225 cat >>confdefs.h <<_ACEOF
16226 #define HAVE_UINT8 1
16227 _ACEOF
16228
16229
16230 fi
16231 echo "$as_me:$LINENO: checking for int64" >&5
16232 echo $ECHO_N "checking for int64... $ECHO_C" >&6
16233 if test "${ac_cv_type_int64+set}" = set; then
16234   echo $ECHO_N "(cached) $ECHO_C" >&6
16235 else
16236   cat >conftest.$ac_ext <<_ACEOF
16237 #line $LINENO "configure"
16238 #include "confdefs.h"
16239 #include <stdio.h>
16240 #ifdef HAVE_SUPPORTDEFS_H
16241 #include <SupportDefs.h>
16242 #endif
16243
16244 #ifdef F77_DUMMY_MAIN
16245 #  ifdef __cplusplus
16246      extern "C"
16247 #  endif
16248    int F77_DUMMY_MAIN() { return 1; }
16249 #endif
16250 int
16251 main ()
16252 {
16253 if ((int64 *) 0)
16254   return 0;
16255 if (sizeof (int64))
16256   return 0;
16257   ;
16258   return 0;
16259 }
16260 _ACEOF
16261 rm -f conftest.$ac_objext
16262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16263   (eval $ac_compile) 2>&5
16264   ac_status=$?
16265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266   (exit $ac_status); } &&
16267          { ac_try='test -s conftest.$ac_objext'
16268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16269   (eval $ac_try) 2>&5
16270   ac_status=$?
16271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272   (exit $ac_status); }; }; then
16273   ac_cv_type_int64=yes
16274 else
16275   echo "$as_me: failed program was:" >&5
16276 cat conftest.$ac_ext >&5
16277 ac_cv_type_int64=no
16278 fi
16279 rm -f conftest.$ac_objext conftest.$ac_ext
16280 fi
16281 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
16282 echo "${ECHO_T}$ac_cv_type_int64" >&6
16283 if test $ac_cv_type_int64 = yes; then
16284
16285 cat >>confdefs.h <<_ACEOF
16286 #define HAVE_INT64 1
16287 _ACEOF
16288
16289
16290 fi
16291 echo "$as_me:$LINENO: checking for uint64" >&5
16292 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
16293 if test "${ac_cv_type_uint64+set}" = set; then
16294   echo $ECHO_N "(cached) $ECHO_C" >&6
16295 else
16296   cat >conftest.$ac_ext <<_ACEOF
16297 #line $LINENO "configure"
16298 #include "confdefs.h"
16299 #include <stdio.h>
16300 #ifdef HAVE_SUPPORTDEFS_H
16301 #include <SupportDefs.h>
16302 #endif
16303
16304 #ifdef F77_DUMMY_MAIN
16305 #  ifdef __cplusplus
16306      extern "C"
16307 #  endif
16308    int F77_DUMMY_MAIN() { return 1; }
16309 #endif
16310 int
16311 main ()
16312 {
16313 if ((uint64 *) 0)
16314   return 0;
16315 if (sizeof (uint64))
16316   return 0;
16317   ;
16318   return 0;
16319 }
16320 _ACEOF
16321 rm -f conftest.$ac_objext
16322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16323   (eval $ac_compile) 2>&5
16324   ac_status=$?
16325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326   (exit $ac_status); } &&
16327          { ac_try='test -s conftest.$ac_objext'
16328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16329   (eval $ac_try) 2>&5
16330   ac_status=$?
16331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332   (exit $ac_status); }; }; then
16333   ac_cv_type_uint64=yes
16334 else
16335   echo "$as_me: failed program was:" >&5
16336 cat conftest.$ac_ext >&5
16337 ac_cv_type_uint64=no
16338 fi
16339 rm -f conftest.$ac_objext conftest.$ac_ext
16340 fi
16341 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
16342 echo "${ECHO_T}$ac_cv_type_uint64" >&6
16343 if test $ac_cv_type_uint64 = yes; then
16344
16345 cat >>confdefs.h <<_ACEOF
16346 #define HAVE_UINT64 1
16347 _ACEOF
16348
16349
16350 fi
16351
16352
16353 # We also check for sig_atomic_t, which *should* be defined per ANSI
16354 # C, but is missing on some old platforms.
16355 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
16356 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
16357 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
16358   echo $ECHO_N "(cached) $ECHO_C" >&6
16359 else
16360   cat >conftest.$ac_ext <<_ACEOF
16361 #line $LINENO "configure"
16362 #include "confdefs.h"
16363 #include <signal.h>
16364
16365 #ifdef F77_DUMMY_MAIN
16366 #  ifdef __cplusplus
16367      extern "C"
16368 #  endif
16369    int F77_DUMMY_MAIN() { return 1; }
16370 #endif
16371 int
16372 main ()
16373 {
16374 if ((sig_atomic_t *) 0)
16375   return 0;
16376 if (sizeof (sig_atomic_t))
16377   return 0;
16378   ;
16379   return 0;
16380 }
16381 _ACEOF
16382 rm -f conftest.$ac_objext
16383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16384   (eval $ac_compile) 2>&5
16385   ac_status=$?
16386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387   (exit $ac_status); } &&
16388          { ac_try='test -s conftest.$ac_objext'
16389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16390   (eval $ac_try) 2>&5
16391   ac_status=$?
16392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393   (exit $ac_status); }; }; then
16394   ac_cv_type_sig_atomic_t=yes
16395 else
16396   echo "$as_me: failed program was:" >&5
16397 cat conftest.$ac_ext >&5
16398 ac_cv_type_sig_atomic_t=no
16399 fi
16400 rm -f conftest.$ac_objext conftest.$ac_ext
16401 fi
16402 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
16403 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
16404 if test $ac_cv_type_sig_atomic_t = yes; then
16405
16406 cat >>confdefs.h <<_ACEOF
16407 #define HAVE_SIG_ATOMIC_T 1
16408 _ACEOF
16409
16410
16411 fi
16412
16413
16414
16415 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
16416 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
16417 if test "${pgac_cv_func_posix_signals+set}" = set; then
16418   echo $ECHO_N "(cached) $ECHO_C" >&6
16419 else
16420   cat >conftest.$ac_ext <<_ACEOF
16421 #line $LINENO "configure"
16422 #include "confdefs.h"
16423 #include <signal.h>
16424
16425 #ifdef F77_DUMMY_MAIN
16426 #  ifdef __cplusplus
16427      extern "C"
16428 #  endif
16429    int F77_DUMMY_MAIN() { return 1; }
16430 #endif
16431 int
16432 main ()
16433 {
16434 struct sigaction act, oact;
16435 sigemptyset(&act.sa_mask);
16436 act.sa_flags = SA_RESTART;
16437 sigaction(0, &act, &oact);
16438   ;
16439   return 0;
16440 }
16441 _ACEOF
16442 rm -f conftest.$ac_objext conftest$ac_exeext
16443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16444   (eval $ac_link) 2>&5
16445   ac_status=$?
16446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447   (exit $ac_status); } &&
16448          { ac_try='test -s conftest$ac_exeext'
16449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16450   (eval $ac_try) 2>&5
16451   ac_status=$?
16452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453   (exit $ac_status); }; }; then
16454   pgac_cv_func_posix_signals=yes
16455 else
16456   echo "$as_me: failed program was:" >&5
16457 cat conftest.$ac_ext >&5
16458 pgac_cv_func_posix_signals=no
16459 fi
16460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16461 fi
16462 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
16463 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
16464 if test x"$pgac_cv_func_posix_signals" = xyes ; then
16465
16466 cat >>confdefs.h <<\_ACEOF
16467 #define HAVE_POSIX_SIGNALS
16468 _ACEOF
16469
16470 fi
16471 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
16472
16473 if test $ac_cv_func_fseeko = yes; then
16474 # Check whether --enable-largefile or --disable-largefile was given.
16475 if test "${enable_largefile+set}" = set; then
16476   enableval="$enable_largefile"
16477
16478 fi;
16479 if test "$enable_largefile" != no; then
16480
16481   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16482 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
16483 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16484   echo $ECHO_N "(cached) $ECHO_C" >&6
16485 else
16486   ac_cv_sys_largefile_CC=no
16487      if test "$GCC" != yes; then
16488        ac_save_CC=$CC
16489        while :; do
16490          # IRIX 6.2 and later do not support large files by default,
16491          # so use the C compiler's -n32 option if that helps.
16492          cat >conftest.$ac_ext <<_ACEOF
16493 #line $LINENO "configure"
16494 #include "confdefs.h"
16495 #include <sys/types.h>
16496  /* Check that off_t can represent 2**63 - 1 correctly.
16497     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16498     since some C++ compilers masquerading as C compilers
16499     incorrectly reject 9223372036854775807.  */
16500 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16501   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16502                        && LARGE_OFF_T % 2147483647 == 1)
16503                       ? 1 : -1];
16504 #ifdef F77_DUMMY_MAIN
16505 #  ifdef __cplusplus
16506      extern "C"
16507 #  endif
16508    int F77_DUMMY_MAIN() { return 1; }
16509 #endif
16510 int
16511 main ()
16512 {
16513
16514   ;
16515   return 0;
16516 }
16517 _ACEOF
16518          rm -f conftest.$ac_objext
16519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16520   (eval $ac_compile) 2>&5
16521   ac_status=$?
16522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523   (exit $ac_status); } &&
16524          { ac_try='test -s conftest.$ac_objext'
16525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16526   (eval $ac_try) 2>&5
16527   ac_status=$?
16528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529   (exit $ac_status); }; }; then
16530   break
16531 else
16532   echo "$as_me: failed program was:" >&5
16533 cat conftest.$ac_ext >&5
16534 fi
16535 rm -f conftest.$ac_objext
16536          CC="$CC -n32"
16537          rm -f conftest.$ac_objext
16538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16539   (eval $ac_compile) 2>&5
16540   ac_status=$?
16541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542   (exit $ac_status); } &&
16543          { ac_try='test -s conftest.$ac_objext'
16544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16545   (eval $ac_try) 2>&5
16546   ac_status=$?
16547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548   (exit $ac_status); }; }; then
16549   ac_cv_sys_largefile_CC=' -n32'; break
16550 else
16551   echo "$as_me: failed program was:" >&5
16552 cat conftest.$ac_ext >&5
16553 fi
16554 rm -f conftest.$ac_objext
16555          break
16556        done
16557        CC=$ac_save_CC
16558        rm -f conftest.$ac_ext
16559     fi
16560 fi
16561 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16562 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16563   if test "$ac_cv_sys_largefile_CC" != no; then
16564     CC=$CC$ac_cv_sys_largefile_CC
16565   fi
16566
16567   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16568 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16569 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16570   echo $ECHO_N "(cached) $ECHO_C" >&6
16571 else
16572   while :; do
16573   ac_cv_sys_file_offset_bits=no
16574   cat >conftest.$ac_ext <<_ACEOF
16575 #line $LINENO "configure"
16576 #include "confdefs.h"
16577 #include <sys/types.h>
16578  /* Check that off_t can represent 2**63 - 1 correctly.
16579     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16580     since some C++ compilers masquerading as C compilers
16581     incorrectly reject 9223372036854775807.  */
16582 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16583   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16584                        && LARGE_OFF_T % 2147483647 == 1)
16585                       ? 1 : -1];
16586 #ifdef F77_DUMMY_MAIN
16587 #  ifdef __cplusplus
16588      extern "C"
16589 #  endif
16590    int F77_DUMMY_MAIN() { return 1; }
16591 #endif
16592 int
16593 main ()
16594 {
16595
16596   ;
16597   return 0;
16598 }
16599 _ACEOF
16600 rm -f conftest.$ac_objext
16601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16602   (eval $ac_compile) 2>&5
16603   ac_status=$?
16604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605   (exit $ac_status); } &&
16606          { ac_try='test -s conftest.$ac_objext'
16607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16608   (eval $ac_try) 2>&5
16609   ac_status=$?
16610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611   (exit $ac_status); }; }; then
16612   break
16613 else
16614   echo "$as_me: failed program was:" >&5
16615 cat conftest.$ac_ext >&5
16616 fi
16617 rm -f conftest.$ac_objext conftest.$ac_ext
16618   cat >conftest.$ac_ext <<_ACEOF
16619 #line $LINENO "configure"
16620 #include "confdefs.h"
16621 #define _FILE_OFFSET_BITS 64
16622 #include <sys/types.h>
16623  /* Check that off_t can represent 2**63 - 1 correctly.
16624     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16625     since some C++ compilers masquerading as C compilers
16626     incorrectly reject 9223372036854775807.  */
16627 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16628   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16629                        && LARGE_OFF_T % 2147483647 == 1)
16630                       ? 1 : -1];
16631 #ifdef F77_DUMMY_MAIN
16632 #  ifdef __cplusplus
16633      extern "C"
16634 #  endif
16635    int F77_DUMMY_MAIN() { return 1; }
16636 #endif
16637 int
16638 main ()
16639 {
16640
16641   ;
16642   return 0;
16643 }
16644 _ACEOF
16645 rm -f conftest.$ac_objext
16646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16647   (eval $ac_compile) 2>&5
16648   ac_status=$?
16649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650   (exit $ac_status); } &&
16651          { ac_try='test -s conftest.$ac_objext'
16652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16653   (eval $ac_try) 2>&5
16654   ac_status=$?
16655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656   (exit $ac_status); }; }; then
16657   ac_cv_sys_file_offset_bits=64; break
16658 else
16659   echo "$as_me: failed program was:" >&5
16660 cat conftest.$ac_ext >&5
16661 fi
16662 rm -f conftest.$ac_objext conftest.$ac_ext
16663   break
16664 done
16665 fi
16666 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16667 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16668 if test "$ac_cv_sys_file_offset_bits" != no; then
16669
16670 cat >>confdefs.h <<_ACEOF
16671 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16672 _ACEOF
16673
16674 fi
16675 rm -f conftest*
16676   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16677 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16678 if test "${ac_cv_sys_large_files+set}" = set; then
16679   echo $ECHO_N "(cached) $ECHO_C" >&6
16680 else
16681   while :; do
16682   ac_cv_sys_large_files=no
16683   cat >conftest.$ac_ext <<_ACEOF
16684 #line $LINENO "configure"
16685 #include "confdefs.h"
16686 #include <sys/types.h>
16687  /* Check that off_t can represent 2**63 - 1 correctly.
16688     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16689     since some C++ compilers masquerading as C compilers
16690     incorrectly reject 9223372036854775807.  */
16691 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16692   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16693                        && LARGE_OFF_T % 2147483647 == 1)
16694                       ? 1 : -1];
16695 #ifdef F77_DUMMY_MAIN
16696 #  ifdef __cplusplus
16697      extern "C"
16698 #  endif
16699    int F77_DUMMY_MAIN() { return 1; }
16700 #endif
16701 int
16702 main ()
16703 {
16704
16705   ;
16706   return 0;
16707 }
16708 _ACEOF
16709 rm -f conftest.$ac_objext
16710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16711   (eval $ac_compile) 2>&5
16712   ac_status=$?
16713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714   (exit $ac_status); } &&
16715          { ac_try='test -s conftest.$ac_objext'
16716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717   (eval $ac_try) 2>&5
16718   ac_status=$?
16719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720   (exit $ac_status); }; }; then
16721   break
16722 else
16723   echo "$as_me: failed program was:" >&5
16724 cat conftest.$ac_ext >&5
16725 fi
16726 rm -f conftest.$ac_objext conftest.$ac_ext
16727   cat >conftest.$ac_ext <<_ACEOF
16728 #line $LINENO "configure"
16729 #include "confdefs.h"
16730 #define _LARGE_FILES 1
16731 #include <sys/types.h>
16732  /* Check that off_t can represent 2**63 - 1 correctly.
16733     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16734     since some C++ compilers masquerading as C compilers
16735     incorrectly reject 9223372036854775807.  */
16736 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16737   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16738                        && LARGE_OFF_T % 2147483647 == 1)
16739                       ? 1 : -1];
16740 #ifdef F77_DUMMY_MAIN
16741 #  ifdef __cplusplus
16742      extern "C"
16743 #  endif
16744    int F77_DUMMY_MAIN() { return 1; }
16745 #endif
16746 int
16747 main ()
16748 {
16749
16750   ;
16751   return 0;
16752 }
16753 _ACEOF
16754 rm -f conftest.$ac_objext
16755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16756   (eval $ac_compile) 2>&5
16757   ac_status=$?
16758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759   (exit $ac_status); } &&
16760          { ac_try='test -s conftest.$ac_objext'
16761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16762   (eval $ac_try) 2>&5
16763   ac_status=$?
16764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765   (exit $ac_status); }; }; then
16766   ac_cv_sys_large_files=1; break
16767 else
16768   echo "$as_me: failed program was:" >&5
16769 cat conftest.$ac_ext >&5
16770 fi
16771 rm -f conftest.$ac_objext conftest.$ac_ext
16772   break
16773 done
16774 fi
16775 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16776 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16777 if test "$ac_cv_sys_large_files" != no; then
16778
16779 cat >>confdefs.h <<_ACEOF
16780 #define _LARGE_FILES $ac_cv_sys_large_files
16781 _ACEOF
16782
16783 fi
16784 rm -f conftest*
16785 fi
16786
16787 fi
16788
16789
16790 # Select semaphore implementation type.
16791 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
16792
16793 cat >>confdefs.h <<\_ACEOF
16794 #define USE_NAMED_POSIX_SEMAPHORES 1
16795 _ACEOF
16796
16797   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16798 else
16799   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
16800
16801 cat >>confdefs.h <<\_ACEOF
16802 #define USE_UNNAMED_POSIX_SEMAPHORES 1
16803 _ACEOF
16804
16805     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16806   else
16807
16808 cat >>confdefs.h <<\_ACEOF
16809 #define USE_SYSV_SEMAPHORES 1
16810 _ACEOF
16811
16812     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
16813   fi
16814 fi
16815
16816
16817 # Select shared-memory implementation type.
16818
16819 cat >>confdefs.h <<\_ACEOF
16820 #define USE_SYSV_SHARED_MEMORY 1
16821 _ACEOF
16822
16823 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
16824
16825
16826 if test "$enable_nls" = yes ; then
16827
16828   echo "$as_me:$LINENO: checking for library containing gettext" >&5
16829 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
16830 if test "${ac_cv_search_gettext+set}" = set; then
16831   echo $ECHO_N "(cached) $ECHO_C" >&6
16832 else
16833   ac_func_search_save_LIBS=$LIBS
16834 ac_cv_search_gettext=no
16835 cat >conftest.$ac_ext <<_ACEOF
16836 #line $LINENO "configure"
16837 #include "confdefs.h"
16838
16839 /* Override any gcc2 internal prototype to avoid an error.  */
16840 #ifdef __cplusplus
16841 extern "C"
16842 #endif
16843 /* We use char because int might match the return type of a gcc2
16844    builtin and then its argument prototype would still apply.  */
16845 char gettext ();
16846 #ifdef F77_DUMMY_MAIN
16847 #  ifdef __cplusplus
16848      extern "C"
16849 #  endif
16850    int F77_DUMMY_MAIN() { return 1; }
16851 #endif
16852 int
16853 main ()
16854 {
16855 gettext ();
16856   ;
16857   return 0;
16858 }
16859 _ACEOF
16860 rm -f conftest.$ac_objext conftest$ac_exeext
16861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16862   (eval $ac_link) 2>&5
16863   ac_status=$?
16864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865   (exit $ac_status); } &&
16866          { ac_try='test -s conftest$ac_exeext'
16867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868   (eval $ac_try) 2>&5
16869   ac_status=$?
16870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871   (exit $ac_status); }; }; then
16872   ac_cv_search_gettext="none required"
16873 else
16874   echo "$as_me: failed program was:" >&5
16875 cat conftest.$ac_ext >&5
16876 fi
16877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16878 if test "$ac_cv_search_gettext" = no; then
16879   for ac_lib in intl; do
16880     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16881     cat >conftest.$ac_ext <<_ACEOF
16882 #line $LINENO "configure"
16883 #include "confdefs.h"
16884
16885 /* Override any gcc2 internal prototype to avoid an error.  */
16886 #ifdef __cplusplus
16887 extern "C"
16888 #endif
16889 /* We use char because int might match the return type of a gcc2
16890    builtin and then its argument prototype would still apply.  */
16891 char gettext ();
16892 #ifdef F77_DUMMY_MAIN
16893 #  ifdef __cplusplus
16894      extern "C"
16895 #  endif
16896    int F77_DUMMY_MAIN() { return 1; }
16897 #endif
16898 int
16899 main ()
16900 {
16901 gettext ();
16902   ;
16903   return 0;
16904 }
16905 _ACEOF
16906 rm -f conftest.$ac_objext conftest$ac_exeext
16907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16908   (eval $ac_link) 2>&5
16909   ac_status=$?
16910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911   (exit $ac_status); } &&
16912          { ac_try='test -s conftest$ac_exeext'
16913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914   (eval $ac_try) 2>&5
16915   ac_status=$?
16916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917   (exit $ac_status); }; }; then
16918   ac_cv_search_gettext="-l$ac_lib"
16919 break
16920 else
16921   echo "$as_me: failed program was:" >&5
16922 cat conftest.$ac_ext >&5
16923 fi
16924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16925   done
16926 fi
16927 LIBS=$ac_func_search_save_LIBS
16928 fi
16929 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
16930 echo "${ECHO_T}$ac_cv_search_gettext" >&6
16931 if test "$ac_cv_search_gettext" != no; then
16932   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
16933
16934 else
16935   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
16936 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
16937    { (exit 1); exit 1; }; }
16938 fi
16939
16940   if test "${ac_cv_header_libintl_h+set}" = set; then
16941   echo "$as_me:$LINENO: checking for libintl.h" >&5
16942 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16943 if test "${ac_cv_header_libintl_h+set}" = set; then
16944   echo $ECHO_N "(cached) $ECHO_C" >&6
16945 fi
16946 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16947 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16948 else
16949   # Is the header compilable?
16950 echo "$as_me:$LINENO: checking libintl.h usability" >&5
16951 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
16952 cat >conftest.$ac_ext <<_ACEOF
16953 #line $LINENO "configure"
16954 #include "confdefs.h"
16955 $ac_includes_default
16956 #include <libintl.h>
16957 _ACEOF
16958 rm -f conftest.$ac_objext
16959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16960   (eval $ac_compile) 2>&5
16961   ac_status=$?
16962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963   (exit $ac_status); } &&
16964          { ac_try='test -s conftest.$ac_objext'
16965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966   (eval $ac_try) 2>&5
16967   ac_status=$?
16968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969   (exit $ac_status); }; }; then
16970   ac_header_compiler=yes
16971 else
16972   echo "$as_me: failed program was:" >&5
16973 cat conftest.$ac_ext >&5
16974 ac_header_compiler=no
16975 fi
16976 rm -f conftest.$ac_objext conftest.$ac_ext
16977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16978 echo "${ECHO_T}$ac_header_compiler" >&6
16979
16980 # Is the header present?
16981 echo "$as_me:$LINENO: checking libintl.h presence" >&5
16982 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
16983 cat >conftest.$ac_ext <<_ACEOF
16984 #line $LINENO "configure"
16985 #include "confdefs.h"
16986 #include <libintl.h>
16987 _ACEOF
16988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16989   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16990   ac_status=$?
16991   egrep -v '^ *\+' conftest.er1 >conftest.err
16992   rm -f conftest.er1
16993   cat conftest.err >&5
16994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995   (exit $ac_status); } >/dev/null; then
16996   if test -s conftest.err; then
16997     ac_cpp_err=$ac_c_preproc_warn_flag
16998   else
16999     ac_cpp_err=
17000   fi
17001 else
17002   ac_cpp_err=yes
17003 fi
17004 if test -z "$ac_cpp_err"; then
17005   ac_header_preproc=yes
17006 else
17007   echo "$as_me: failed program was:" >&5
17008   cat conftest.$ac_ext >&5
17009   ac_header_preproc=no
17010 fi
17011 rm -f conftest.err conftest.$ac_ext
17012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17013 echo "${ECHO_T}$ac_header_preproc" >&6
17014
17015 # So?  What about this header?
17016 case $ac_header_compiler:$ac_header_preproc in
17017   yes:no )
17018     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17019 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17020     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17021 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17022   no:yes )
17023     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
17024 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
17025     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
17026 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
17027     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17028 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17029 esac
17030 echo "$as_me:$LINENO: checking for libintl.h" >&5
17031 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17032 if test "${ac_cv_header_libintl_h+set}" = set; then
17033   echo $ECHO_N "(cached) $ECHO_C" >&6
17034 else
17035   ac_cv_header_libintl_h=$ac_header_preproc
17036 fi
17037 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17038 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17039
17040 fi
17041 if test $ac_cv_header_libintl_h = yes; then
17042   :
17043 else
17044   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
17045 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
17046    { (exit 1); exit 1; }; }
17047 fi
17048
17049
17050   for ac_prog in msgfmt
17051 do
17052   # Extract the first word of "$ac_prog", so it can be a program name with args.
17053 set dummy $ac_prog; ac_word=$2
17054 echo "$as_me:$LINENO: checking for $ac_word" >&5
17055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17056 if test "${ac_cv_prog_MSGFMT+set}" = set; then
17057   echo $ECHO_N "(cached) $ECHO_C" >&6
17058 else
17059   if test -n "$MSGFMT"; then
17060   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
17061 else
17062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17063 for as_dir in $PATH
17064 do
17065   IFS=$as_save_IFS
17066   test -z "$as_dir" && as_dir=.
17067   for ac_exec_ext in '' $ac_executable_extensions; do
17068   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17069     ac_cv_prog_MSGFMT="$ac_prog"
17070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17071     break 2
17072   fi
17073 done
17074 done
17075
17076 fi
17077 fi
17078 MSGFMT=$ac_cv_prog_MSGFMT
17079 if test -n "$MSGFMT"; then
17080   echo "$as_me:$LINENO: result: $MSGFMT" >&5
17081 echo "${ECHO_T}$MSGFMT" >&6
17082 else
17083   echo "$as_me:$LINENO: result: no" >&5
17084 echo "${ECHO_T}no" >&6
17085 fi
17086
17087   test -n "$MSGFMT" && break
17088 done
17089
17090   if test -z "$MSGFMT"; then
17091     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
17092 echo "$as_me: error: msgfmt is required for NLS" >&2;}
17093    { (exit 1); exit 1; }; }
17094   fi
17095   for ac_prog in msgmerge
17096 do
17097   # Extract the first word of "$ac_prog", so it can be a program name with args.
17098 set dummy $ac_prog; ac_word=$2
17099 echo "$as_me:$LINENO: checking for $ac_word" >&5
17100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17101 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
17102   echo $ECHO_N "(cached) $ECHO_C" >&6
17103 else
17104   if test -n "$MSGMERGE"; then
17105   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
17106 else
17107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17108 for as_dir in $PATH
17109 do
17110   IFS=$as_save_IFS
17111   test -z "$as_dir" && as_dir=.
17112   for ac_exec_ext in '' $ac_executable_extensions; do
17113   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17114     ac_cv_prog_MSGMERGE="$ac_prog"
17115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17116     break 2
17117   fi
17118 done
17119 done
17120
17121 fi
17122 fi
17123 MSGMERGE=$ac_cv_prog_MSGMERGE
17124 if test -n "$MSGMERGE"; then
17125   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
17126 echo "${ECHO_T}$MSGMERGE" >&6
17127 else
17128   echo "$as_me:$LINENO: result: no" >&5
17129 echo "${ECHO_T}no" >&6
17130 fi
17131
17132   test -n "$MSGMERGE" && break
17133 done
17134
17135   for ac_prog in xgettext
17136 do
17137   # Extract the first word of "$ac_prog", so it can be a program name with args.
17138 set dummy $ac_prog; ac_word=$2
17139 echo "$as_me:$LINENO: checking for $ac_word" >&5
17140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17141 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
17142   echo $ECHO_N "(cached) $ECHO_C" >&6
17143 else
17144   if test -n "$XGETTEXT"; then
17145   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
17146 else
17147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17148 for as_dir in $PATH
17149 do
17150   IFS=$as_save_IFS
17151   test -z "$as_dir" && as_dir=.
17152   for ac_exec_ext in '' $ac_executable_extensions; do
17153   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17154     ac_cv_prog_XGETTEXT="$ac_prog"
17155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17156     break 2
17157   fi
17158 done
17159 done
17160
17161 fi
17162 fi
17163 XGETTEXT=$ac_cv_prog_XGETTEXT
17164 if test -n "$XGETTEXT"; then
17165   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17166 echo "${ECHO_T}$XGETTEXT" >&6
17167 else
17168   echo "$as_me:$LINENO: result: no" >&5
17169 echo "${ECHO_T}no" >&6
17170 fi
17171
17172   test -n "$XGETTEXT" && break
17173 done
17174
17175
17176   # Note: share/locale is always the default, independent of $datadir
17177   localedir='${prefix}/share/locale'
17178   if test x"$prefix" = x"NONE"; then
17179     exp_localedir="$ac_default_prefix/share/locale"
17180   else
17181     exp_localedir="$prefix/share/locale"
17182   fi
17183
17184
17185
17186 cat >>confdefs.h <<_ACEOF
17187 #define LOCALEDIR "$exp_localedir"
17188 _ACEOF
17189
17190
17191 fi
17192
17193 # Check for Tcl configuration script tclConfig.sh
17194 if test "$with_tcl" = yes; then
17195     for ac_prog in tclsh tcl
17196 do
17197   # Extract the first word of "$ac_prog", so it can be a program name with args.
17198 set dummy $ac_prog; ac_word=$2
17199 echo "$as_me:$LINENO: checking for $ac_word" >&5
17200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17201 if test "${ac_cv_path_TCLSH+set}" = set; then
17202   echo $ECHO_N "(cached) $ECHO_C" >&6
17203 else
17204   case $TCLSH in
17205   [\\/]* | ?:[\\/]*)
17206   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
17207   ;;
17208   *)
17209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17210 for as_dir in $PATH
17211 do
17212   IFS=$as_save_IFS
17213   test -z "$as_dir" && as_dir=.
17214   for ac_exec_ext in '' $ac_executable_extensions; do
17215   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17216     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
17217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17218     break 2
17219   fi
17220 done
17221 done
17222
17223   ;;
17224 esac
17225 fi
17226 TCLSH=$ac_cv_path_TCLSH
17227
17228 if test -n "$TCLSH"; then
17229   echo "$as_me:$LINENO: result: $TCLSH" >&5
17230 echo "${ECHO_T}$TCLSH" >&6
17231 else
17232   echo "$as_me:$LINENO: result: no" >&5
17233 echo "${ECHO_T}no" >&6
17234 fi
17235
17236   test -n "$TCLSH" && break
17237 done
17238
17239 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
17240 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
17241 # Let user override test
17242 if test -z "$TCL_CONFIG_SH"; then
17243     pgac_test_dirs="$with_tclconfig"
17244
17245     set X $pgac_test_dirs; shift
17246     if test $# -eq 0; then
17247         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
17248 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
17249    { (exit 1); exit 1; }; }
17250         set X `echo 'puts $auto_path' | $TCLSH`; shift
17251     fi
17252
17253     for pgac_dir do
17254         if test -r "$pgac_dir/tclConfig.sh"; then
17255             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
17256             break
17257         fi
17258     done
17259 fi
17260
17261 if test -z "$TCL_CONFIG_SH"; then
17262     echo "$as_me:$LINENO: result: no" >&5
17263 echo "${ECHO_T}no" >&6
17264     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
17265 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
17266    { (exit 1); exit 1; }; }
17267 else
17268     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
17269 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
17270 fi
17271
17272
17273
17274     . "$TCL_CONFIG_SH"
17275 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
17276 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
17277 eval TCL_LIBS=\"$TCL_LIBS\"
17278 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
17279 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
17280
17281     fi
17282
17283 # Check for Tk configuration script tkConfig.sh
17284 if test "$with_tk" = yes; then
17285     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
17286 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
17287 # Let user override test
17288 if test -z "$TK_CONFIG_SH"; then
17289     pgac_test_dirs="$with_tkconfig $with_tclconfig"
17290
17291     set X $pgac_test_dirs; shift
17292     if test $# -eq 0; then
17293         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
17294 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
17295    { (exit 1); exit 1; }; }
17296         set X `echo 'puts $auto_path' | $TCLSH`; shift
17297     fi
17298
17299     for pgac_dir do
17300         if test -r "$pgac_dir/tkConfig.sh"; then
17301             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
17302             break
17303         fi
17304     done
17305 fi
17306
17307 if test -z "$TK_CONFIG_SH"; then
17308     echo "$as_me:$LINENO: result: no" >&5
17309 echo "${ECHO_T}no" >&6
17310     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
17311 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
17312    { (exit 1); exit 1; }; }
17313 else
17314     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
17315 echo "${ECHO_T}$TK_CONFIG_SH" >&6
17316 fi
17317
17318
17319
17320     . "$TK_CONFIG_SH"
17321 eval TK_LIBS=\"$TK_LIBS\"
17322 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
17323 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
17324
17325 fi
17326
17327
17328 #
17329 # Check for DocBook and tools
17330 #
17331 for ac_prog in onsgmls nsgmls
17332 do
17333   # Extract the first word of "$ac_prog", so it can be a program name with args.
17334 set dummy $ac_prog; ac_word=$2
17335 echo "$as_me:$LINENO: checking for $ac_word" >&5
17336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17337 if test "${ac_cv_prog_NSGMLS+set}" = set; then
17338   echo $ECHO_N "(cached) $ECHO_C" >&6
17339 else
17340   if test -n "$NSGMLS"; then
17341   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
17342 else
17343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17344 for as_dir in $PATH
17345 do
17346   IFS=$as_save_IFS
17347   test -z "$as_dir" && as_dir=.
17348   for ac_exec_ext in '' $ac_executable_extensions; do
17349   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17350     ac_cv_prog_NSGMLS="$ac_prog"
17351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17352     break 2
17353   fi
17354 done
17355 done
17356
17357 fi
17358 fi
17359 NSGMLS=$ac_cv_prog_NSGMLS
17360 if test -n "$NSGMLS"; then
17361   echo "$as_me:$LINENO: result: $NSGMLS" >&5
17362 echo "${ECHO_T}$NSGMLS" >&6
17363 else
17364   echo "$as_me:$LINENO: result: no" >&5
17365 echo "${ECHO_T}no" >&6
17366 fi
17367
17368   test -n "$NSGMLS" && break
17369 done
17370
17371 for ac_prog in openjade jade
17372 do
17373   # Extract the first word of "$ac_prog", so it can be a program name with args.
17374 set dummy $ac_prog; ac_word=$2
17375 echo "$as_me:$LINENO: checking for $ac_word" >&5
17376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17377 if test "${ac_cv_prog_JADE+set}" = set; then
17378   echo $ECHO_N "(cached) $ECHO_C" >&6
17379 else
17380   if test -n "$JADE"; then
17381   ac_cv_prog_JADE="$JADE" # Let the user override the test.
17382 else
17383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17384 for as_dir in $PATH
17385 do
17386   IFS=$as_save_IFS
17387   test -z "$as_dir" && as_dir=.
17388   for ac_exec_ext in '' $ac_executable_extensions; do
17389   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17390     ac_cv_prog_JADE="$ac_prog"
17391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17392     break 2
17393   fi
17394 done
17395 done
17396
17397 fi
17398 fi
17399 JADE=$ac_cv_prog_JADE
17400 if test -n "$JADE"; then
17401   echo "$as_me:$LINENO: result: $JADE" >&5
17402 echo "${ECHO_T}$JADE" >&6
17403 else
17404   echo "$as_me:$LINENO: result: no" >&5
17405 echo "${ECHO_T}no" >&6
17406 fi
17407
17408   test -n "$JADE" && break
17409 done
17410
17411
17412 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
17413 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
17414 if test "${pgac_cv_check_docbook+set}" = set; then
17415   echo $ECHO_N "(cached) $ECHO_C" >&6
17416 else
17417   cat >conftest.sgml <<EOF
17418 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
17419 <book>
17420  <title>test</title>
17421  <chapter>
17422   <title>random</title>
17423    <sect1>
17424     <title>testsect</title>
17425     <para>text</para>
17426   </sect1>
17427  </chapter>
17428 </book>
17429 EOF
17430
17431 pgac_cv_check_docbook=no
17432
17433 if test -n "$NSGMLS"; then
17434   $NSGMLS -s conftest.sgml 1>&5 2>&1
17435   if test $? -eq 0; then
17436     pgac_cv_check_docbook=yes
17437   fi
17438 fi
17439 rm -f conftest.sgml
17440 fi
17441 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
17442 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
17443
17444 have_docbook=$pgac_cv_check_docbook
17445
17446
17447 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
17448 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
17449 if test "${pgac_cv_path_stylesheets+set}" = set; then
17450   echo $ECHO_N "(cached) $ECHO_C" >&6
17451 else
17452   if test -n "$DOCBOOKSTYLE"; then
17453   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
17454 else
17455   for pgac_prefix in /usr /usr/local /opt; do
17456     for pgac_infix in share lib; do
17457       for pgac_postfix in \
17458         sgml/stylesheets/nwalsh-modular \
17459         sgml/stylesheets/docbook \
17460         sgml/docbook/dsssl/modular \
17461         sgml/docbook/stylesheet/dsssl/modular \
17462         sgml/docbook/dsssl-stylesheets
17463       do
17464         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
17465         if test -r "$pgac_candidate/html/docbook.dsl" \
17466            && test -r "$pgac_candidate/print/docbook.dsl"
17467         then
17468           pgac_cv_path_stylesheets=$pgac_candidate
17469           break 3
17470         fi
17471       done
17472     done
17473   done
17474 fi
17475 fi
17476
17477 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
17478
17479 if test -n "$DOCBOOKSTYLE"; then
17480   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
17481 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
17482 else
17483   echo "$as_me:$LINENO: result: no" >&5
17484 echo "${ECHO_T}no" >&6
17485 fi
17486 if test -n "$DOCBOOKSTYLE"; then
17487   for ac_prog in collateindex.pl
17488 do
17489   # Extract the first word of "$ac_prog", so it can be a program name with args.
17490 set dummy $ac_prog; ac_word=$2
17491 echo "$as_me:$LINENO: checking for $ac_word" >&5
17492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17493 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17494   echo $ECHO_N "(cached) $ECHO_C" >&6
17495 else
17496   case $COLLATEINDEX in
17497   [\\/]* | ?:[\\/]*)
17498   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17499   ;;
17500   *)
17501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17502 for as_dir in $DOCBOOKSTYLE/bin $PATH
17503 do
17504   IFS=$as_save_IFS
17505   test -z "$as_dir" && as_dir=.
17506   for ac_exec_ext in '' $ac_executable_extensions; do
17507   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17508     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17510     break 2
17511   fi
17512 done
17513 done
17514
17515   ;;
17516 esac
17517 fi
17518 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17519
17520 if test -n "$COLLATEINDEX"; then
17521   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17522 echo "${ECHO_T}$COLLATEINDEX" >&6
17523 else
17524   echo "$as_me:$LINENO: result: no" >&5
17525 echo "${ECHO_T}no" >&6
17526 fi
17527
17528   test -n "$COLLATEINDEX" && break
17529 done
17530
17531 else
17532   for ac_prog in collateindex.pl
17533 do
17534   # Extract the first word of "$ac_prog", so it can be a program name with args.
17535 set dummy $ac_prog; ac_word=$2
17536 echo "$as_me:$LINENO: checking for $ac_word" >&5
17537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17538 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17539   echo $ECHO_N "(cached) $ECHO_C" >&6
17540 else
17541   case $COLLATEINDEX in
17542   [\\/]* | ?:[\\/]*)
17543   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17544   ;;
17545   *)
17546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17547 for as_dir in $PATH
17548 do
17549   IFS=$as_save_IFS
17550   test -z "$as_dir" && as_dir=.
17551   for ac_exec_ext in '' $ac_executable_extensions; do
17552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17553     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17555     break 2
17556   fi
17557 done
17558 done
17559
17560   ;;
17561 esac
17562 fi
17563 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17564
17565 if test -n "$COLLATEINDEX"; then
17566   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17567 echo "${ECHO_T}$COLLATEINDEX" >&6
17568 else
17569   echo "$as_me:$LINENO: result: no" >&5
17570 echo "${ECHO_T}no" >&6
17571 fi
17572
17573   test -n "$COLLATEINDEX" && break
17574 done
17575
17576 fi
17577 for ac_prog in sgmlspl
17578 do
17579   # Extract the first word of "$ac_prog", so it can be a program name with args.
17580 set dummy $ac_prog; ac_word=$2
17581 echo "$as_me:$LINENO: checking for $ac_word" >&5
17582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17583 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17584   echo $ECHO_N "(cached) $ECHO_C" >&6
17585 else
17586   if test -n "$SGMLSPL"; then
17587   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17588 else
17589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17590 for as_dir in $PATH
17591 do
17592   IFS=$as_save_IFS
17593   test -z "$as_dir" && as_dir=.
17594   for ac_exec_ext in '' $ac_executable_extensions; do
17595   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17596     ac_cv_prog_SGMLSPL="$ac_prog"
17597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17598     break 2
17599   fi
17600 done
17601 done
17602
17603 fi
17604 fi
17605 SGMLSPL=$ac_cv_prog_SGMLSPL
17606 if test -n "$SGMLSPL"; then
17607   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17608 echo "${ECHO_T}$SGMLSPL" >&6
17609 else
17610   echo "$as_me:$LINENO: result: no" >&5
17611 echo "${ECHO_T}no" >&6
17612 fi
17613
17614   test -n "$SGMLSPL" && break
17615 done
17616
17617
17618
17619 # prepare build tree if outside source tree
17620 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
17621 # Note 2: /bin/pwd might be better than shell's built-in at getting
17622 #         a symlink-free name.
17623 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
17624   vpath_build=no
17625 else
17626   vpath_build=yes
17627   if test "$no_create" != yes; then
17628     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
17629     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
17630     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
17631       || { { echo "$as_me:$LINENO: error: failed" >&5
17632 echo "$as_me: error: failed" >&2;}
17633    { (exit 1); exit 1; }; }
17634     echo "$as_me:$LINENO: result: done" >&5
17635 echo "${ECHO_T}done" >&6
17636   fi
17637 fi
17638
17639
17640
17641 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
17642
17643
17644 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}"
17645
17646
17647 ac_config_headers="$ac_config_headers src/include/pg_config.h"
17648
17649
17650 cat >confcache <<\_ACEOF
17651 # This file is a shell script that caches the results of configure
17652 # tests run on this system so they can be shared between configure
17653 # scripts and configure runs, see configure's option --config-cache.
17654 # It is not useful on other systems.  If it contains results you don't
17655 # want to keep, you may remove or edit it.
17656 #
17657 # config.status only pays attention to the cache file if you give it
17658 # the --recheck option to rerun configure.
17659 #
17660 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17661 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17662 # following values.
17663
17664 _ACEOF
17665
17666 # The following way of writing the cache mishandles newlines in values,
17667 # but we know of no workaround that is simple, portable, and efficient.
17668 # So, don't put newlines in cache variables' values.
17669 # Ultrix sh set writes to stderr and can't be redirected directly,
17670 # and sets the high bit in the cache file unless we assign to the vars.
17671 {
17672   (set) 2>&1 |
17673     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17674     *ac_space=\ *)
17675       # `set' does not quote correctly, so add quotes (double-quote
17676       # substitution turns \\\\ into \\, and sed turns \\ into \).
17677       sed -n \
17678         "s/'/'\\\\''/g;
17679           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17680       ;;
17681     *)
17682       # `set' quotes correctly as required by POSIX, so do not add quotes.
17683       sed -n \
17684         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17685       ;;
17686     esac;
17687 } |
17688   sed '
17689      t clear
17690      : clear
17691      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17692      t end
17693      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17694      : end' >>confcache
17695 if cmp -s $cache_file confcache; then :; else
17696   if test -w $cache_file; then
17697     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17698     cat confcache >$cache_file
17699   else
17700     echo "not updating unwritable cache $cache_file"
17701   fi
17702 fi
17703 rm -f confcache
17704
17705 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17706 # Let make expand exec_prefix.
17707 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17708
17709 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17710 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17711 # trailing colons and then remove the whole line if VPATH becomes empty
17712 # (actually we leave an empty line to preserve line numbers).
17713 if test "x$srcdir" = x.; then
17714   ac_vpsub='/^[         ]*VPATH[        ]*=/{
17715 s/:*\$(srcdir):*/:/;
17716 s/:*\${srcdir}:*/:/;
17717 s/:*@srcdir@:*/:/;
17718 s/^\([^=]*=[    ]*\):*/\1/;
17719 s/:*$//;
17720 s/^[^=]*=[      ]*$//;
17721 }'
17722 fi
17723
17724 DEFS=-DHAVE_CONFIG_H
17725
17726
17727 : ${CONFIG_STATUS=./config.status}
17728 ac_clean_files_save=$ac_clean_files
17729 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17730 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17731 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17732 cat >$CONFIG_STATUS <<_ACEOF
17733 #! $SHELL
17734 # Generated by $as_me.
17735 # Run this file to recreate the current configuration.
17736 # Compiler output produced by configure, useful for debugging
17737 # configure, is in config.log if it exists.
17738
17739 debug=false
17740 SHELL=\${CONFIG_SHELL-$SHELL}
17741 _ACEOF
17742
17743 cat >>$CONFIG_STATUS <<\_ACEOF
17744
17745 ## --------------------- ##
17746 ## M4sh Initialization.  ##
17747 ## --------------------- ##
17748
17749 # Be Bourne compatible
17750 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17751   emulate sh
17752   NULLCMD=:
17753 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17754   set -o posix
17755 fi
17756
17757 # NLS nuisances.
17758 # Support unset when possible.
17759 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17760   as_unset=unset
17761 else
17762   as_unset=false
17763 fi
17764
17765 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17766     { $as_unset LANG || test "${LANG+set}" != set; } ||
17767       { LANG=C; export LANG; }
17768 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17769     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17770       { LC_ALL=C; export LC_ALL; }
17771 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17772     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17773       { LC_TIME=C; export LC_TIME; }
17774 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17775     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17776       { LC_CTYPE=C; export LC_CTYPE; }
17777 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17778     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17779       { LANGUAGE=C; export LANGUAGE; }
17780 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17781     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17782       { LC_COLLATE=C; export LC_COLLATE; }
17783 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17784     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17785       { LC_NUMERIC=C; export LC_NUMERIC; }
17786 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17787     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17788       { LC_MESSAGES=C; export LC_MESSAGES; }
17789
17790
17791 # Name of the executable.
17792 as_me=`(basename "$0") 2>/dev/null ||
17793 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17794          X"$0" : 'X\(//\)$' \| \
17795          X"$0" : 'X\(/\)$' \| \
17796          .     : '\(.\)' 2>/dev/null ||
17797 echo X/"$0" |
17798     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17799           /^X\/\(\/\/\)$/{ s//\1/; q; }
17800           /^X\/\(\/\).*/{ s//\1/; q; }
17801           s/.*/./; q'`
17802
17803 # PATH needs CR, and LINENO needs CR and PATH.
17804 # Avoid depending upon Character Ranges.
17805 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17806 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17807 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17808 as_cr_digits='0123456789'
17809 as_cr_alnum=$as_cr_Letters$as_cr_digits
17810
17811 # The user is always right.
17812 if test "${PATH_SEPARATOR+set}" != set; then
17813   echo "#! /bin/sh" >conftest.sh
17814   echo  "exit 0"   >>conftest.sh
17815   chmod +x conftest.sh
17816   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17817     PATH_SEPARATOR=';'
17818   else
17819     PATH_SEPARATOR=:
17820   fi
17821   rm -f conftest.sh
17822 fi
17823
17824
17825   as_lineno_1=$LINENO
17826   as_lineno_2=$LINENO
17827   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17828   test "x$as_lineno_1" != "x$as_lineno_2" &&
17829   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17830   # Find who we are.  Look in the path if we contain no path at all
17831   # relative or not.
17832   case $0 in
17833     *[\\/]* ) as_myself=$0 ;;
17834     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17835 for as_dir in $PATH
17836 do
17837   IFS=$as_save_IFS
17838   test -z "$as_dir" && as_dir=.
17839   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17840 done
17841
17842        ;;
17843   esac
17844   # We did not find ourselves, most probably we were run as `sh COMMAND'
17845   # in which case we are not to be found in the path.
17846   if test "x$as_myself" = x; then
17847     as_myself=$0
17848   fi
17849   if test ! -f "$as_myself"; then
17850     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17851 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17852    { (exit 1); exit 1; }; }
17853   fi
17854   case $CONFIG_SHELL in
17855   '')
17856     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17857 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17858 do
17859   IFS=$as_save_IFS
17860   test -z "$as_dir" && as_dir=.
17861   for as_base in sh bash ksh sh5; do
17862          case $as_dir in
17863          /*)
17864            if ("$as_dir/$as_base" -c '
17865   as_lineno_1=$LINENO
17866   as_lineno_2=$LINENO
17867   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17868   test "x$as_lineno_1" != "x$as_lineno_2" &&
17869   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17870              CONFIG_SHELL=$as_dir/$as_base
17871              export CONFIG_SHELL
17872              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17873            fi;;
17874          esac
17875        done
17876 done
17877 ;;
17878   esac
17879
17880   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17881   # uniformly replaced by the line number.  The first 'sed' inserts a
17882   # line-number line before each line; the second 'sed' does the real
17883   # work.  The second script uses 'N' to pair each line-number line
17884   # with the numbered line, and appends trailing '-' during
17885   # substitution so that $LINENO is not a special case at line end.
17886   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17887   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17888   sed '=' <$as_myself |
17889     sed '
17890       N
17891       s,$,-,
17892       : loop
17893       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17894       t loop
17895       s,-$,,
17896       s,^['$as_cr_digits']*\n,,
17897     ' >$as_me.lineno &&
17898   chmod +x $as_me.lineno ||
17899     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17900 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17901    { (exit 1); exit 1; }; }
17902
17903   # Don't try to exec as it changes $[0], causing all sort of problems
17904   # (the dirname of $[0] is not the place where we might find the
17905   # original and so on.  Autoconf is especially sensible to this).
17906   . ./$as_me.lineno
17907   # Exit status is that of the last command.
17908   exit
17909 }
17910
17911
17912 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17913   *c*,-n*) ECHO_N= ECHO_C='
17914 ' ECHO_T='      ' ;;
17915   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17916   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17917 esac
17918
17919 if expr a : '\(a\)' >/dev/null 2>&1; then
17920   as_expr=expr
17921 else
17922   as_expr=false
17923 fi
17924
17925 rm -f conf$$ conf$$.exe conf$$.file
17926 echo >conf$$.file
17927 if ln -s conf$$.file conf$$ 2>/dev/null; then
17928   # We could just check for DJGPP; but this test a) works b) is more generic
17929   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17930   if test -f conf$$.exe; then
17931     # Don't use ln at all; we don't have any links
17932     as_ln_s='cp -p'
17933   else
17934     as_ln_s='ln -s'
17935   fi
17936 elif ln conf$$.file conf$$ 2>/dev/null; then
17937   as_ln_s=ln
17938 else
17939   as_ln_s='cp -p'
17940 fi
17941 rm -f conf$$ conf$$.exe conf$$.file
17942
17943 as_executable_p="test -f"
17944
17945 # Sed expression to map a string onto a valid CPP name.
17946 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17947
17948 # Sed expression to map a string onto a valid variable name.
17949 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17950
17951
17952 # IFS
17953 # We need space, tab and new line, in precisely that order.
17954 as_nl='
17955 '
17956 IFS="   $as_nl"
17957
17958 # CDPATH.
17959 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17960
17961 exec 6>&1
17962
17963 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17964 # report actual input values of CONFIG_FILES etc. instead of their
17965 # values after options handling.  Logging --version etc. is OK.
17966 exec 5>>config.log
17967 {
17968   echo
17969   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17970 ## Running $as_me. ##
17971 _ASBOX
17972 } >&5
17973 cat >&5 <<_CSEOF
17974
17975 This file was extended by PostgreSQL $as_me 7.5devel, which was
17976 generated by GNU Autoconf 2.53.  Invocation command line was
17977
17978   CONFIG_FILES    = $CONFIG_FILES
17979   CONFIG_HEADERS  = $CONFIG_HEADERS
17980   CONFIG_LINKS    = $CONFIG_LINKS
17981   CONFIG_COMMANDS = $CONFIG_COMMANDS
17982   $ $0 $@
17983
17984 _CSEOF
17985 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17986 echo >&5
17987 _ACEOF
17988
17989 # Files that config.status was made for.
17990 if test -n "$ac_config_files"; then
17991   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17992 fi
17993
17994 if test -n "$ac_config_headers"; then
17995   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17996 fi
17997
17998 if test -n "$ac_config_links"; then
17999   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18000 fi
18001
18002 if test -n "$ac_config_commands"; then
18003   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18004 fi
18005
18006 cat >>$CONFIG_STATUS <<\_ACEOF
18007
18008 ac_cs_usage="\
18009 \`$as_me' instantiates files from templates according to the
18010 current configuration.
18011
18012 Usage: $0 [OPTIONS] [FILE]...
18013
18014   -h, --help       print this help, then exit
18015   -V, --version    print version number, then exit
18016   -d, --debug      don't remove temporary files
18017       --recheck    update $as_me by reconfiguring in the same conditions
18018   --file=FILE[:TEMPLATE]
18019                    instantiate the configuration file FILE
18020   --header=FILE[:TEMPLATE]
18021                    instantiate the configuration header FILE
18022
18023 Configuration files:
18024 $config_files
18025
18026 Configuration headers:
18027 $config_headers
18028
18029 Configuration links:
18030 $config_links
18031
18032 Report bugs to <bug-autoconf@gnu.org>."
18033 _ACEOF
18034
18035 cat >>$CONFIG_STATUS <<_ACEOF
18036 ac_cs_version="\\
18037 PostgreSQL config.status 7.5devel
18038 configured by $0, generated by GNU Autoconf 2.53,
18039   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18040
18041 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18042 Free Software Foundation, Inc.
18043 This config.status script is free software; the Free Software Foundation
18044 gives unlimited permission to copy, distribute and modify it."
18045 srcdir=$srcdir
18046 _ACEOF
18047
18048 cat >>$CONFIG_STATUS <<\_ACEOF
18049 # If no file are specified by the user, then we need to provide default
18050 # value.  By we need to know if files were specified by the user.
18051 ac_need_defaults=:
18052 while test $# != 0
18053 do
18054   case $1 in
18055   --*=*)
18056     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18057     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18058     shift
18059     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18060     shift
18061     ;;
18062   -*);;
18063   *) # This is not an option, so the user has probably given explicit
18064      # arguments.
18065      ac_need_defaults=false;;
18066   esac
18067
18068   case $1 in
18069   # Handling of the options.
18070 _ACEOF
18071 cat >>$CONFIG_STATUS <<_ACEOF
18072   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18073     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18074     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18075 _ACEOF
18076 cat >>$CONFIG_STATUS <<\_ACEOF
18077   --version | --vers* | -V )
18078     echo "$ac_cs_version"; exit 0 ;;
18079   --he | --h)
18080     # Conflict between --help and --header
18081     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18082 Try \`$0 --help' for more information." >&5
18083 echo "$as_me: error: ambiguous option: $1
18084 Try \`$0 --help' for more information." >&2;}
18085    { (exit 1); exit 1; }; };;
18086   --help | --hel | -h )
18087     echo "$ac_cs_usage"; exit 0 ;;
18088   --debug | --d* | -d )
18089     debug=: ;;
18090   --file | --fil | --fi | --f )
18091     shift
18092     CONFIG_FILES="$CONFIG_FILES $1"
18093     ac_need_defaults=false;;
18094   --header | --heade | --head | --hea )
18095     shift
18096     CONFIG_HEADERS="$CONFIG_HEADERS $1"
18097     ac_need_defaults=false;;
18098
18099   # This is an error.
18100   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18101 Try \`$0 --help' for more information." >&5
18102 echo "$as_me: error: unrecognized option: $1
18103 Try \`$0 --help' for more information." >&2;}
18104    { (exit 1); exit 1; }; } ;;
18105
18106   *) ac_config_targets="$ac_config_targets $1" ;;
18107
18108   esac
18109   shift
18110 done
18111
18112 _ACEOF
18113
18114
18115
18116
18117
18118 cat >>$CONFIG_STATUS <<\_ACEOF
18119 for ac_config_target in $ac_config_targets
18120 do
18121   case "$ac_config_target" in
18122   # Handling of arguments.
18123   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
18124   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
18125   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
18126   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
18127   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
18128   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
18129   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
18130   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
18131   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
18132   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
18133   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18134 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18135    { (exit 1); exit 1; }; };;
18136   esac
18137 done
18138
18139 # If the user did not use the arguments to specify the items to instantiate,
18140 # then the envvar interface is used.  Set only those that are not.
18141 # We use the long form for the default assignment because of an extremely
18142 # bizarre bug on SunOS 4.1.3.
18143 if $ac_need_defaults; then
18144   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18145   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18146   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18147 fi
18148
18149 # Create a temporary directory, and hook for its removal unless debugging.
18150 $debug ||
18151 {
18152   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18153   trap '{ (exit 1); exit 1; }' 1 2 13 15
18154 }
18155
18156 # Create a (secure) tmp directory for tmp files.
18157 : ${TMPDIR=/tmp}
18158 {
18159   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18160   test -n "$tmp" && test -d "$tmp"
18161 }  ||
18162 {
18163   tmp=$TMPDIR/cs$$-$RANDOM
18164   (umask 077 && mkdir $tmp)
18165 } ||
18166 {
18167    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18168    { (exit 1); exit 1; }
18169 }
18170
18171 _ACEOF
18172
18173 cat >>$CONFIG_STATUS <<_ACEOF
18174
18175 #
18176 # CONFIG_FILES section.
18177 #
18178
18179 # No need to generate the scripts if there are no CONFIG_FILES.
18180 # This happens for instance when ./config.status config.h
18181 if test -n "\$CONFIG_FILES"; then
18182   # Protect against being on the right side of a sed subst in config.status.
18183   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18184    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18185 s,@SHELL@,$SHELL,;t t
18186 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18187 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18188 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18189 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18190 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18191 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18192 s,@exec_prefix@,$exec_prefix,;t t
18193 s,@prefix@,$prefix,;t t
18194 s,@program_transform_name@,$program_transform_name,;t t
18195 s,@bindir@,$bindir,;t t
18196 s,@sbindir@,$sbindir,;t t
18197 s,@libexecdir@,$libexecdir,;t t
18198 s,@datadir@,$datadir,;t t
18199 s,@sysconfdir@,$sysconfdir,;t t
18200 s,@sharedstatedir@,$sharedstatedir,;t t
18201 s,@localstatedir@,$localstatedir,;t t
18202 s,@libdir@,$libdir,;t t
18203 s,@includedir@,$includedir,;t t
18204 s,@oldincludedir@,$oldincludedir,;t t
18205 s,@infodir@,$infodir,;t t
18206 s,@mandir@,$mandir,;t t
18207 s,@build_alias@,$build_alias,;t t
18208 s,@host_alias@,$host_alias,;t t
18209 s,@target_alias@,$target_alias,;t t
18210 s,@DEFS@,$DEFS,;t t
18211 s,@ECHO_C@,$ECHO_C,;t t
18212 s,@ECHO_N@,$ECHO_N,;t t
18213 s,@ECHO_T@,$ECHO_T,;t t
18214 s,@LIBS@,$LIBS,;t t
18215 s,@configure_args@,$configure_args,;t t
18216 s,@build@,$build,;t t
18217 s,@build_cpu@,$build_cpu,;t t
18218 s,@build_vendor@,$build_vendor,;t t
18219 s,@build_os@,$build_os,;t t
18220 s,@host@,$host,;t t
18221 s,@host_cpu@,$host_cpu,;t t
18222 s,@host_vendor@,$host_vendor,;t t
18223 s,@host_os@,$host_os,;t t
18224 s,@PORTNAME@,$PORTNAME,;t t
18225 s,@TAS@,$TAS,;t t
18226 s,@docdir@,$docdir,;t t
18227 s,@enable_nls@,$enable_nls,;t t
18228 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
18229 s,@default_port@,$default_port,;t t
18230 s,@enable_shared@,$enable_shared,;t t
18231 s,@enable_rpath@,$enable_rpath,;t t
18232 s,@enable_debug@,$enable_debug,;t t
18233 s,@CC@,$CC,;t t
18234 s,@CFLAGS@,$CFLAGS,;t t
18235 s,@LDFLAGS@,$LDFLAGS,;t t
18236 s,@CPPFLAGS@,$CPPFLAGS,;t t
18237 s,@ac_ct_CC@,$ac_ct_CC,;t t
18238 s,@EXEEXT@,$EXEEXT,;t t
18239 s,@OBJEXT@,$OBJEXT,;t t
18240 s,@CPP@,$CPP,;t t
18241 s,@GCC@,$GCC,;t t
18242 s,@autodepend@,$autodepend,;t t
18243 s,@INCLUDES@,$INCLUDES,;t t
18244 s,@enable_thread_safety@,$enable_thread_safety,;t t
18245 s,@with_tcl@,$with_tcl,;t t
18246 s,@with_tk@,$with_tk,;t t
18247 s,@with_perl@,$with_perl,;t t
18248 s,@with_python@,$with_python,;t t
18249 s,@ANT@,$ANT,;t t
18250 s,@with_java@,$with_java,;t t
18251 s,@with_krb4@,$with_krb4,;t t
18252 s,@with_krb5@,$with_krb5,;t t
18253 s,@krb_srvtab@,$krb_srvtab,;t t
18254 s,@with_pam@,$with_pam,;t t
18255 s,@with_rendezvous@,$with_rendezvous,;t t
18256 s,@with_openssl@,$with_openssl,;t t
18257 s,@ELF_SYS@,$ELF_SYS,;t t
18258 s,@AWK@,$AWK,;t t
18259 s,@FLEX@,$FLEX,;t t
18260 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
18261 s,@LN_S@,$LN_S,;t t
18262 s,@LD@,$LD,;t t
18263 s,@with_gnu_ld@,$with_gnu_ld,;t t
18264 s,@ld_R_works@,$ld_R_works,;t t
18265 s,@RANLIB@,$RANLIB,;t t
18266 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18267 s,@LORDER@,$LORDER,;t t
18268 s,@TAR@,$TAR,;t t
18269 s,@STRIP@,$STRIP,;t t
18270 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18271 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
18272 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
18273 s,@YACC@,$YACC,;t t
18274 s,@YFLAGS@,$YFLAGS,;t t
18275 s,@PERL@,$PERL,;t t
18276 s,@perl_archlibexp@,$perl_archlibexp,;t t
18277 s,@perl_privlibexp@,$perl_privlibexp,;t t
18278 s,@perl_useshrplib@,$perl_useshrplib,;t t
18279 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
18280 s,@PYTHON@,$PYTHON,;t t
18281 s,@python_prefix@,$python_prefix,;t t
18282 s,@python_execprefix@,$python_execprefix,;t t
18283 s,@python_configdir@,$python_configdir,;t t
18284 s,@python_includespec@,$python_includespec,;t t
18285 s,@python_libspec@,$python_libspec,;t t
18286 s,@LIBOBJS@,$LIBOBJS,;t t
18287 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
18288 s,@THREAD_SUPPORT@,$THREAD_SUPPORT,;t t
18289 s,@THREAD_CPPFLAGS@,$THREAD_CPPFLAGS,;t t
18290 s,@THREAD_LIBS@,$THREAD_LIBS,;t t
18291 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
18292 s,@MSGFMT@,$MSGFMT,;t t
18293 s,@MSGMERGE@,$MSGMERGE,;t t
18294 s,@XGETTEXT@,$XGETTEXT,;t t
18295 s,@localedir@,$localedir,;t t
18296 s,@TCLSH@,$TCLSH,;t t
18297 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
18298 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
18299 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
18300 s,@TCL_LIBS@,$TCL_LIBS,;t t
18301 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
18302 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
18303 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
18304 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
18305 s,@TK_LIBS@,$TK_LIBS,;t t
18306 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
18307 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
18308 s,@NSGMLS@,$NSGMLS,;t t
18309 s,@JADE@,$JADE,;t t
18310 s,@have_docbook@,$have_docbook,;t t
18311 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
18312 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
18313 s,@SGMLSPL@,$SGMLSPL,;t t
18314 s,@vpath_build@,$vpath_build,;t t
18315 CEOF
18316
18317 _ACEOF
18318
18319   cat >>$CONFIG_STATUS <<\_ACEOF
18320   # Split the substitutions into bite-sized pieces for seds with
18321   # small command number limits, like on Digital OSF/1 and HP-UX.
18322   ac_max_sed_lines=48
18323   ac_sed_frag=1 # Number of current file.
18324   ac_beg=1 # First line for current file.
18325   ac_end=$ac_max_sed_lines # Line after last line for current file.
18326   ac_more_lines=:
18327   ac_sed_cmds=
18328   while $ac_more_lines; do
18329     if test $ac_beg -gt 1; then
18330       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18331     else
18332       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18333     fi
18334     if test ! -s $tmp/subs.frag; then
18335       ac_more_lines=false
18336     else
18337       # The purpose of the label and of the branching condition is to
18338       # speed up the sed processing (if there are no `@' at all, there
18339       # is no need to browse any of the substitutions).
18340       # These are the two extra sed commands mentioned above.
18341       (echo ':t
18342   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18343       if test -z "$ac_sed_cmds"; then
18344         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18345       else
18346         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18347       fi
18348       ac_sed_frag=`expr $ac_sed_frag + 1`
18349       ac_beg=$ac_end
18350       ac_end=`expr $ac_end + $ac_max_sed_lines`
18351     fi
18352   done
18353   if test -z "$ac_sed_cmds"; then
18354     ac_sed_cmds=cat
18355   fi
18356 fi # test -n "$CONFIG_FILES"
18357
18358 _ACEOF
18359 cat >>$CONFIG_STATUS <<\_ACEOF
18360 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18361   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18362   case $ac_file in
18363   - | *:- | *:-:* ) # input from stdin
18364         cat >$tmp/stdin
18365         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18366         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18367   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18368         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18369   * )   ac_file_in=$ac_file.in ;;
18370   esac
18371
18372   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18373   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18374 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18375          X"$ac_file" : 'X\(//\)[^/]' \| \
18376          X"$ac_file" : 'X\(//\)$' \| \
18377          X"$ac_file" : 'X\(/\)' \| \
18378          .     : '\(.\)' 2>/dev/null ||
18379 echo X"$ac_file" |
18380     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18381           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18382           /^X\(\/\/\)$/{ s//\1/; q; }
18383           /^X\(\/\).*/{ s//\1/; q; }
18384           s/.*/./; q'`
18385   { case "$ac_dir" in
18386   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18387   *)                      as_incr_dir=.;;
18388 esac
18389 as_dummy="$ac_dir"
18390 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18391   case $as_mkdir_dir in
18392     # Skip DOS drivespec
18393     ?:) as_incr_dir=$as_mkdir_dir ;;
18394     *)
18395       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18396       test -d "$as_incr_dir" ||
18397         mkdir "$as_incr_dir" ||
18398         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18399 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18400    { (exit 1); exit 1; }; }
18401     ;;
18402   esac
18403 done; }
18404
18405   ac_builddir=.
18406
18407 if test "$ac_dir" != .; then
18408   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18409   # A "../" for each directory in $ac_dir_suffix.
18410   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18411 else
18412   ac_dir_suffix= ac_top_builddir=
18413 fi
18414
18415 case $srcdir in
18416   .)  # No --srcdir option.  We are building in place.
18417     ac_srcdir=.
18418     if test -z "$ac_top_builddir"; then
18419        ac_top_srcdir=.
18420     else
18421        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18422     fi ;;
18423   [\\/]* | ?:[\\/]* )  # Absolute path.
18424     ac_srcdir=$srcdir$ac_dir_suffix;
18425     ac_top_srcdir=$srcdir ;;
18426   *) # Relative path.
18427     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18428     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18429 esac
18430 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18431 # absolute.
18432 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18433 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18434 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18435 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18436
18437
18438
18439   if test x"$ac_file" != x-; then
18440     { echo "$as_me:$LINENO: creating $ac_file" >&5
18441 echo "$as_me: creating $ac_file" >&6;}
18442     rm -f "$ac_file"
18443   fi
18444   # Let's still pretend it is `configure' which instantiates (i.e., don't
18445   # use $as_me), people would be surprised to read:
18446   #    /* config.h.  Generated by config.status.  */
18447   if test x"$ac_file" = x-; then
18448     configure_input=
18449   else
18450     configure_input="$ac_file.  "
18451   fi
18452   configure_input=$configure_input"Generated from `echo $ac_file_in |
18453                                      sed 's,.*/,,'` by configure."
18454
18455   # First look for the input files in the build tree, otherwise in the
18456   # src tree.
18457   ac_file_inputs=`IFS=:
18458     for f in $ac_file_in; do
18459       case $f in
18460       -) echo $tmp/stdin ;;
18461       [\\/$]*)
18462          # Absolute (can't be DOS-style, as IFS=:)
18463          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18464 echo "$as_me: error: cannot find input file: $f" >&2;}
18465    { (exit 1); exit 1; }; }
18466          echo $f;;
18467       *) # Relative
18468          if test -f "$f"; then
18469            # Build tree
18470            echo $f
18471          elif test -f "$srcdir/$f"; then
18472            # Source tree
18473            echo $srcdir/$f
18474          else
18475            # /dev/null tree
18476            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18477 echo "$as_me: error: cannot find input file: $f" >&2;}
18478    { (exit 1); exit 1; }; }
18479          fi;;
18480       esac
18481     done` || { (exit 1); exit 1; }
18482 _ACEOF
18483 cat >>$CONFIG_STATUS <<_ACEOF
18484   sed "$ac_vpsub
18485 $extrasub
18486 _ACEOF
18487 cat >>$CONFIG_STATUS <<\_ACEOF
18488 :t
18489 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18490 s,@configure_input@,$configure_input,;t t
18491 s,@srcdir@,$ac_srcdir,;t t
18492 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18493 s,@top_srcdir@,$ac_top_srcdir,;t t
18494 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18495 s,@builddir@,$ac_builddir,;t t
18496 s,@abs_builddir@,$ac_abs_builddir,;t t
18497 s,@top_builddir@,$ac_top_builddir,;t t
18498 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18499 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18500   rm -f $tmp/stdin
18501   if test x"$ac_file" != x-; then
18502     mv $tmp/out $ac_file
18503   else
18504     cat $tmp/out
18505     rm -f $tmp/out
18506   fi
18507
18508 done
18509 _ACEOF
18510 cat >>$CONFIG_STATUS <<\_ACEOF
18511
18512 #
18513 # CONFIG_HEADER section.
18514 #
18515
18516 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18517 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18518 #
18519 # ac_d sets the value in "#define NAME VALUE" lines.
18520 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18521 ac_dB='[        ].*$,\1#\2'
18522 ac_dC=' '
18523 ac_dD=',;t'
18524 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18525 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18526 ac_uB='$,\1#\2define\3'
18527 ac_uC=' '
18528 ac_uD=',;t'
18529
18530 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18531   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18532   case $ac_file in
18533   - | *:- | *:-:* ) # input from stdin
18534         cat >$tmp/stdin
18535         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18536         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18537   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18538         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18539   * )   ac_file_in=$ac_file.in ;;
18540   esac
18541
18542   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18543 echo "$as_me: creating $ac_file" >&6;}
18544
18545   # First look for the input files in the build tree, otherwise in the
18546   # src tree.
18547   ac_file_inputs=`IFS=:
18548     for f in $ac_file_in; do
18549       case $f in
18550       -) echo $tmp/stdin ;;
18551       [\\/$]*)
18552          # Absolute (can't be DOS-style, as IFS=:)
18553          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18554 echo "$as_me: error: cannot find input file: $f" >&2;}
18555    { (exit 1); exit 1; }; }
18556          echo $f;;
18557       *) # Relative
18558          if test -f "$f"; then
18559            # Build tree
18560            echo $f
18561          elif test -f "$srcdir/$f"; then
18562            # Source tree
18563            echo $srcdir/$f
18564          else
18565            # /dev/null tree
18566            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18567 echo "$as_me: error: cannot find input file: $f" >&2;}
18568    { (exit 1); exit 1; }; }
18569          fi;;
18570       esac
18571     done` || { (exit 1); exit 1; }
18572   # Remove the trailing spaces.
18573   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
18574
18575 _ACEOF
18576
18577 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18578 # `conftest.undefs', that substitutes the proper values into
18579 # config.h.in to produce config.h.  The first handles `#define'
18580 # templates, and the second `#undef' templates.
18581 # And first: Protect against being on the right side of a sed subst in
18582 # config.status.  Protect against being in an unquoted here document
18583 # in config.status.
18584 rm -f conftest.defines conftest.undefs
18585 # Using a here document instead of a string reduces the quoting nightmare.
18586 # Putting comments in sed scripts is not portable.
18587 #
18588 # `end' is used to avoid that the second main sed command (meant for
18589 # 0-ary CPP macros) applies to n-ary macro definitions.
18590 # See the Autoconf documentation for `clear'.
18591 cat >confdef2sed.sed <<\_ACEOF
18592 s/[\\&,]/\\&/g
18593 s,[\\$`],\\&,g
18594 t clear
18595 : clear
18596 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18597 t end
18598 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18599 : end
18600 _ACEOF
18601 # If some macros were called several times there might be several times
18602 # the same #defines, which is useless.  Nevertheless, we may not want to
18603 # sort them, since we want the *last* AC-DEFINE to be honored.
18604 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18605 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18606 rm -f confdef2sed.sed
18607
18608 # This sed command replaces #undef with comments.  This is necessary, for
18609 # example, in the case of _POSIX_SOURCE, which is predefined and required
18610 # on some systems where configure will not decide to define it.
18611 cat >>conftest.undefs <<\_ACEOF
18612 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18613 _ACEOF
18614
18615 # Break up conftest.defines because some shells have a limit on the size
18616 # of here documents, and old seds have small limits too (100 cmds).
18617 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18618 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18619 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18620 echo '  :' >>$CONFIG_STATUS
18621 rm -f conftest.tail
18622 while grep . conftest.defines >/dev/null
18623 do
18624   # Write a limited-size here document to $tmp/defines.sed.
18625   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18626   # Speed up: don't consider the non `#define' lines.
18627   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
18628   # Work around the forget-to-reset-the-flag bug.
18629   echo 't clr' >>$CONFIG_STATUS
18630   echo ': clr' >>$CONFIG_STATUS
18631   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18632   echo 'CEOF
18633   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18634   rm -f $tmp/in
18635   mv $tmp/out $tmp/in
18636 ' >>$CONFIG_STATUS
18637   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18638   rm -f conftest.defines
18639   mv conftest.tail conftest.defines
18640 done
18641 rm -f conftest.defines
18642 echo '  fi # egrep' >>$CONFIG_STATUS
18643 echo >>$CONFIG_STATUS
18644
18645 # Break up conftest.undefs because some shells have a limit on the size
18646 # of here documents, and old seds have small limits too (100 cmds).
18647 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18648 rm -f conftest.tail
18649 while grep . conftest.undefs >/dev/null
18650 do
18651   # Write a limited-size here document to $tmp/undefs.sed.
18652   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18653   # Speed up: don't consider the non `#undef'
18654   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18655   # Work around the forget-to-reset-the-flag bug.
18656   echo 't clr' >>$CONFIG_STATUS
18657   echo ': clr' >>$CONFIG_STATUS
18658   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18659   echo 'CEOF
18660   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18661   rm -f $tmp/in
18662   mv $tmp/out $tmp/in
18663 ' >>$CONFIG_STATUS
18664   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18665   rm -f conftest.undefs
18666   mv conftest.tail conftest.undefs
18667 done
18668 rm -f conftest.undefs
18669
18670 cat >>$CONFIG_STATUS <<\_ACEOF
18671   # Let's still pretend it is `configure' which instantiates (i.e., don't
18672   # use $as_me), people would be surprised to read:
18673   #    /* config.h.  Generated by config.status.  */
18674   if test x"$ac_file" = x-; then
18675     echo "/* Generated by configure.  */" >$tmp/config.h
18676   else
18677     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18678   fi
18679   cat $tmp/in >>$tmp/config.h
18680   rm -f $tmp/in
18681   if test x"$ac_file" != x-; then
18682     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18683       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18684 echo "$as_me: $ac_file is unchanged" >&6;}
18685     else
18686       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18687 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18688          X"$ac_file" : 'X\(//\)[^/]' \| \
18689          X"$ac_file" : 'X\(//\)$' \| \
18690          X"$ac_file" : 'X\(/\)' \| \
18691          .     : '\(.\)' 2>/dev/null ||
18692 echo X"$ac_file" |
18693     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18694           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18695           /^X\(\/\/\)$/{ s//\1/; q; }
18696           /^X\(\/\).*/{ s//\1/; q; }
18697           s/.*/./; q'`
18698       { case "$ac_dir" in
18699   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18700   *)                      as_incr_dir=.;;
18701 esac
18702 as_dummy="$ac_dir"
18703 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18704   case $as_mkdir_dir in
18705     # Skip DOS drivespec
18706     ?:) as_incr_dir=$as_mkdir_dir ;;
18707     *)
18708       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18709       test -d "$as_incr_dir" ||
18710         mkdir "$as_incr_dir" ||
18711         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18712 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18713    { (exit 1); exit 1; }; }
18714     ;;
18715   esac
18716 done; }
18717
18718       rm -f $ac_file
18719       mv $tmp/config.h $ac_file
18720     fi
18721   else
18722     cat $tmp/config.h
18723     rm -f $tmp/config.h
18724   fi
18725   # Run the commands associated with the file.
18726   case $ac_file in
18727     src/include/pg_config.h )
18728 # Update timestamp for pg_config.h (see Makefile.global)
18729 echo >src/include/stamp-h
18730  ;;
18731   esac
18732 done
18733 _ACEOF
18734 cat >>$CONFIG_STATUS <<\_ACEOF
18735
18736 #
18737 # CONFIG_LINKS section.
18738 #
18739
18740 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18741   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18742   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18743
18744   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18745 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18746
18747   if test ! -r $srcdir/$ac_source; then
18748     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18749 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18750    { (exit 1); exit 1; }; }
18751   fi
18752   rm -f $ac_dest
18753
18754   # Make relative symlinks.
18755   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18756 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18757          X"$ac_dest" : 'X\(//\)[^/]' \| \
18758          X"$ac_dest" : 'X\(//\)$' \| \
18759          X"$ac_dest" : 'X\(/\)' \| \
18760          .     : '\(.\)' 2>/dev/null ||
18761 echo X"$ac_dest" |
18762     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18763           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18764           /^X\(\/\/\)$/{ s//\1/; q; }
18765           /^X\(\/\).*/{ s//\1/; q; }
18766           s/.*/./; q'`
18767   { case "$ac_dest_dir" in
18768   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18769   *)                      as_incr_dir=.;;
18770 esac
18771 as_dummy="$ac_dest_dir"
18772 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18773   case $as_mkdir_dir in
18774     # Skip DOS drivespec
18775     ?:) as_incr_dir=$as_mkdir_dir ;;
18776     *)
18777       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18778       test -d "$as_incr_dir" ||
18779         mkdir "$as_incr_dir" ||
18780         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18781 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18782    { (exit 1); exit 1; }; }
18783     ;;
18784   esac
18785 done; }
18786
18787   ac_builddir=.
18788
18789 if test "$ac_dest_dir" != .; then
18790   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18791   # A "../" for each directory in $ac_dir_suffix.
18792   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18793 else
18794   ac_dir_suffix= ac_top_builddir=
18795 fi
18796
18797 case $srcdir in
18798   .)  # No --srcdir option.  We are building in place.
18799     ac_srcdir=.
18800     if test -z "$ac_top_builddir"; then
18801        ac_top_srcdir=.
18802     else
18803        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18804     fi ;;
18805   [\\/]* | ?:[\\/]* )  # Absolute path.
18806     ac_srcdir=$srcdir$ac_dir_suffix;
18807     ac_top_srcdir=$srcdir ;;
18808   *) # Relative path.
18809     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18810     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18811 esac
18812 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18813 # absolute.
18814 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18815 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18816 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18817 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18818
18819
18820   case $srcdir in
18821   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18822       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18823   esac
18824
18825   # Make a symlink if possible; otherwise try a hard link.
18826   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18827     ln $srcdir/$ac_source $ac_dest ||
18828     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18829 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18830    { (exit 1); exit 1; }; }
18831 done
18832 _ACEOF
18833
18834 cat >>$CONFIG_STATUS <<\_ACEOF
18835
18836 { (exit 0); exit 0; }
18837 _ACEOF
18838 chmod +x $CONFIG_STATUS
18839 ac_clean_files=$ac_clean_files_save
18840
18841
18842 # configure is writing to config.log, and then calls config.status.
18843 # config.status does its own redirection, appending to config.log.
18844 # Unfortunately, on DOS this fails, as config.log is still kept open
18845 # by configure, so config.status won't be able to write to it; its
18846 # output is simply discarded.  So we exec the FD to /dev/null,
18847 # effectively closing config.log, so it can be properly (re)opened and
18848 # appended to by config.status.  When coming back to configure, we
18849 # need to make the FD available again.
18850 if test "$no_create" != yes; then
18851   ac_cs_success=:
18852   exec 5>/dev/null
18853   $SHELL $CONFIG_STATUS || ac_cs_success=false
18854   exec 5>>config.log
18855   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18856   # would make configure fail if this is the last instruction.
18857   $ac_cs_success || { (exit 1); exit 1; }
18858 fi
18859