]> granicus.if.org Git - postgresql/blob - configure
up configure to beta5
[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.4beta5.
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.4beta5'
262 PACKAGE_STRING='PostgreSQL 7.4beta5'
263 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
264
265 ac_unique_file="src/backend/access/common/heaptuple.c"
266 ac_default_prefix=/usr/local/pgsql
267 # Factoring default headers for most tests.
268 ac_includes_default="\
269 #include <stdio.h>
270 #if HAVE_SYS_TYPES_H
271 # include <sys/types.h>
272 #endif
273 #if HAVE_SYS_STAT_H
274 # include <sys/stat.h>
275 #endif
276 #if STDC_HEADERS
277 # include <stdlib.h>
278 # include <stddef.h>
279 #else
280 # if HAVE_STDLIB_H
281 #  include <stdlib.h>
282 # endif
283 #endif
284 #if HAVE_STRING_H
285 # if !STDC_HEADERS && HAVE_MEMORY_H
286 #  include <memory.h>
287 # endif
288 # include <string.h>
289 #endif
290 #if HAVE_STRINGS_H
291 # include <strings.h>
292 #endif
293 #if HAVE_INTTYPES_H
294 # include <inttypes.h>
295 #else
296 # if HAVE_STDINT_H
297 #  include <stdint.h>
298 # endif
299 #endif
300 #if HAVE_UNISTD_H
301 # include <unistd.h>
302 #endif"
303
304
305 # Initialize some variables set by options.
306 ac_init_help=
307 ac_init_version=false
308 # The variables have the same names as the options, with
309 # dashes changed to underlines.
310 cache_file=/dev/null
311 exec_prefix=NONE
312 no_create=
313 no_recursion=
314 prefix=NONE
315 program_prefix=NONE
316 program_suffix=NONE
317 program_transform_name=s,x,x,
318 silent=
319 site=
320 srcdir=
321 verbose=
322 x_includes=NONE
323 x_libraries=NONE
324
325 # Installation directory options.
326 # These are left unexpanded so users can "make install exec_prefix=/foo"
327 # and all the variables that are supposed to be based on exec_prefix
328 # by default will actually change.
329 # Use braces instead of parens because sh, perl, etc. also accept them.
330 bindir='${exec_prefix}/bin'
331 sbindir='${exec_prefix}/sbin'
332 libexecdir='${exec_prefix}/libexec'
333 datadir='${prefix}/share'
334 sysconfdir='${prefix}/etc'
335 sharedstatedir='${prefix}/com'
336 localstatedir='${prefix}/var'
337 libdir='${exec_prefix}/lib'
338 includedir='${prefix}/include'
339 oldincludedir='/usr/include'
340 docdir='${prefix}/doc'
341 mandir='${prefix}/man'
342
343 ac_prev=
344 for ac_option
345 do
346   # If the previous option needs an argument, assign it.
347   if test -n "$ac_prev"; then
348     eval "$ac_prev=\$ac_option"
349     ac_prev=
350     continue
351   fi
352
353   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
354
355   # Accept the important Cygnus configure options, so we can diagnose typos.
356
357   case $ac_option in
358
359   -bindir | --bindir | --bindi | --bind | --bin | --bi)
360     ac_prev=bindir ;;
361   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
362     bindir=$ac_optarg ;;
363
364   -build | --build | --buil | --bui | --bu)
365     ac_prev=build_alias ;;
366   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
367     build_alias=$ac_optarg ;;
368
369   -cache-file | --cache-file | --cache-fil | --cache-fi \
370   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
371     ac_prev=cache_file ;;
372   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
373   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
374     cache_file=$ac_optarg ;;
375
376   --config-cache | -C)
377     cache_file=config.cache ;;
378
379   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
380     ac_prev=datadir ;;
381   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
382   | --da=*)
383     datadir=$ac_optarg ;;
384
385   -disable-* | --disable-*)
386     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
387     # Reject names that are not valid shell variable names.
388     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
389       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
390    { (exit 1); exit 1; }; }
391     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
392     eval "enable_$ac_feature=no" ;;
393
394   -enable-* | --enable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     case $ac_option in
402       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
403       *) ac_optarg=yes ;;
404     esac
405     eval "enable_$ac_feature='$ac_optarg'" ;;
406
407   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
408   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
409   | --exec | --exe | --ex)
410     ac_prev=exec_prefix ;;
411   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
412   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
413   | --exec=* | --exe=* | --ex=*)
414     exec_prefix=$ac_optarg ;;
415
416   -gas | --gas | --ga | --g)
417     # Obsolete; use --with-gas.
418     with_gas=yes ;;
419
420   -help | --help | --hel | --he | -h)
421     ac_init_help=long ;;
422   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
423     ac_init_help=recursive ;;
424   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
425     ac_init_help=short ;;
426
427   -host | --host | --hos | --ho)
428     ac_prev=host_alias ;;
429   -host=* | --host=* | --hos=* | --ho=*)
430     host_alias=$ac_optarg ;;
431
432   -includedir | --includedir | --includedi | --included | --include \
433   | --includ | --inclu | --incl | --inc)
434     ac_prev=includedir ;;
435   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
436   | --includ=* | --inclu=* | --incl=* | --inc=*)
437     includedir=$ac_optarg ;;
438
439   -docdir | --docdir | --infodi | --infod | --doc | --inf)
440     ac_prev=docdir ;;
441   -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
442     docdir=$ac_optarg ;;
443
444   -libdir | --libdir | --libdi | --libd)
445     ac_prev=libdir ;;
446   -libdir=* | --libdir=* | --libdi=* | --libd=*)
447     libdir=$ac_optarg ;;
448
449   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
450   | --libexe | --libex | --libe)
451     ac_prev=libexecdir ;;
452   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
453   | --libexe=* | --libex=* | --libe=*)
454     libexecdir=$ac_optarg ;;
455
456   -localstatedir | --localstatedir | --localstatedi | --localstated \
457   | --localstate | --localstat | --localsta | --localst \
458   | --locals | --local | --loca | --loc | --lo)
459     ac_prev=localstatedir ;;
460   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
461   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
462   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
463     localstatedir=$ac_optarg ;;
464
465   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
466     ac_prev=mandir ;;
467   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
468     mandir=$ac_optarg ;;
469
470   -nfp | --nfp | --nf)
471     # Obsolete; use --without-fp.
472     with_fp=no ;;
473
474   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475   | --no-cr | --no-c | -n)
476     no_create=yes ;;
477
478   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
480     no_recursion=yes ;;
481
482   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
483   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
484   | --oldin | --oldi | --old | --ol | --o)
485     ac_prev=oldincludedir ;;
486   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
487   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
488   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
489     oldincludedir=$ac_optarg ;;
490
491   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
492     ac_prev=prefix ;;
493   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
494     prefix=$ac_optarg ;;
495
496   -program-prefix | --program-prefix | --program-prefi | --program-pref \
497   | --program-pre | --program-pr | --program-p)
498     ac_prev=program_prefix ;;
499   -program-prefix=* | --program-prefix=* | --program-prefi=* \
500   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
501     program_prefix=$ac_optarg ;;
502
503   -program-suffix | --program-suffix | --program-suffi | --program-suff \
504   | --program-suf | --program-su | --program-s)
505     ac_prev=program_suffix ;;
506   -program-suffix=* | --program-suffix=* | --program-suffi=* \
507   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
508     program_suffix=$ac_optarg ;;
509
510   -program-transform-name | --program-transform-name \
511   | --program-transform-nam | --program-transform-na \
512   | --program-transform-n | --program-transform- \
513   | --program-transform | --program-transfor \
514   | --program-transfo | --program-transf \
515   | --program-trans | --program-tran \
516   | --progr-tra | --program-tr | --program-t)
517     ac_prev=program_transform_name ;;
518   -program-transform-name=* | --program-transform-name=* \
519   | --program-transform-nam=* | --program-transform-na=* \
520   | --program-transform-n=* | --program-transform-=* \
521   | --program-transform=* | --program-transfor=* \
522   | --program-transfo=* | --program-transf=* \
523   | --program-trans=* | --program-tran=* \
524   | --progr-tra=* | --program-tr=* | --program-t=*)
525     program_transform_name=$ac_optarg ;;
526
527   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
528   | -silent | --silent | --silen | --sile | --sil)
529     silent=yes ;;
530
531   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
532     ac_prev=sbindir ;;
533   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
534   | --sbi=* | --sb=*)
535     sbindir=$ac_optarg ;;
536
537   -sharedstatedir | --sharedstatedir | --sharedstatedi \
538   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
539   | --sharedst | --shareds | --shared | --share | --shar \
540   | --sha | --sh)
541     ac_prev=sharedstatedir ;;
542   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
543   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
544   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
545   | --sha=* | --sh=*)
546     sharedstatedir=$ac_optarg ;;
547
548   -site | --site | --sit)
549     ac_prev=site ;;
550   -site=* | --site=* | --sit=*)
551     site=$ac_optarg ;;
552
553   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
554     ac_prev=srcdir ;;
555   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
556     srcdir=$ac_optarg ;;
557
558   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
559   | --syscon | --sysco | --sysc | --sys | --sy)
560     ac_prev=sysconfdir ;;
561   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
562   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
563     sysconfdir=$ac_optarg ;;
564
565   -target | --target | --targe | --targ | --tar | --ta | --t)
566     ac_prev=target_alias ;;
567   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
568     target_alias=$ac_optarg ;;
569
570   -v | -verbose | --verbose | --verbos | --verbo | --verb)
571     verbose=yes ;;
572
573   -version | --version | --versio | --versi | --vers | -V)
574     ac_init_version=: ;;
575
576   -with-* | --with-*)
577     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
578     # Reject names that are not valid shell variable names.
579     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
580       { echo "$as_me: error: invalid package name: $ac_package" >&2
581    { (exit 1); exit 1; }; }
582     ac_package=`echo $ac_package| sed 's/-/_/g'`
583     case $ac_option in
584       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
585       *) ac_optarg=yes ;;
586     esac
587     eval "with_$ac_package='$ac_optarg'" ;;
588
589   -without-* | --without-*)
590     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
591     # Reject names that are not valid shell variable names.
592     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593       { echo "$as_me: error: invalid package name: $ac_package" >&2
594    { (exit 1); exit 1; }; }
595     ac_package=`echo $ac_package | sed 's/-/_/g'`
596     eval "with_$ac_package=no" ;;
597
598   --x)
599     # Obsolete; use --with-x.
600     with_x=yes ;;
601
602   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
603   | --x-incl | --x-inc | --x-in | --x-i)
604     ac_prev=x_includes ;;
605   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
606   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
607     x_includes=$ac_optarg ;;
608
609   -x-libraries | --x-libraries | --x-librarie | --x-librari \
610   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
611     ac_prev=x_libraries ;;
612   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
613   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
614     x_libraries=$ac_optarg ;;
615
616   -*) { echo "$as_me: error: unrecognized option: $ac_option
617 Try \`$0 --help' for more information." >&2
618    { (exit 1); exit 1; }; }
619     ;;
620
621   *=*)
622     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
623     # Reject names that are not valid shell variable names.
624     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
625       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
626    { (exit 1); exit 1; }; }
627     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
628     eval "$ac_envvar='$ac_optarg'"
629     export $ac_envvar ;;
630
631   *)
632     # FIXME: should be removed in autoconf 3.0.
633     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
634     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
635       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
636     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
637     ;;
638
639   esac
640 done
641
642 if test -n "$ac_prev"; then
643   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
644   { echo "$as_me: error: missing argument to $ac_option" >&2
645    { (exit 1); exit 1; }; }
646 fi
647
648 # Be sure to have absolute paths.
649 for ac_var in exec_prefix prefix
650 do
651   eval ac_val=$`echo $ac_var`
652   case $ac_val in
653     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
654     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
655    { (exit 1); exit 1; }; };;
656   esac
657 done
658
659 # Be sure to have absolute paths.
660 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
661               localstatedir libdir includedir oldincludedir docdir mandir
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # There might be people who depend on the old broken behavior: `$host'
672 # used to hold the argument of --host etc.
673 # FIXME: To remove some day.
674 build=$build_alias
675 host=$host_alias
676 target=$target_alias
677
678 # FIXME: To remove some day.
679 if test "x$host_alias" != x; then
680   if test "x$build_alias" = x; then
681     cross_compiling=maybe
682     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
683     If a cross compiler is detected then cross compile mode will be used." >&2
684   elif test "x$build_alias" != "x$host_alias"; then
685     cross_compiling=yes
686   fi
687 fi
688
689 ac_tool_prefix=
690 test -n "$host_alias" && ac_tool_prefix=$host_alias-
691
692 test "$silent" = yes && exec 6>/dev/null
693
694
695 # Find the source files, if location was not specified.
696 if test -z "$srcdir"; then
697   ac_srcdir_defaulted=yes
698   # Try the directory containing this script, then its parent.
699   ac_confdir=`(dirname "$0") 2>/dev/null ||
700 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
701          X"$0" : 'X\(//\)[^/]' \| \
702          X"$0" : 'X\(//\)$' \| \
703          X"$0" : 'X\(/\)' \| \
704          .     : '\(.\)' 2>/dev/null ||
705 echo X"$0" |
706     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
707           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
708           /^X\(\/\/\)$/{ s//\1/; q; }
709           /^X\(\/\).*/{ s//\1/; q; }
710           s/.*/./; q'`
711   srcdir=$ac_confdir
712   if test ! -r $srcdir/$ac_unique_file; then
713     srcdir=..
714   fi
715 else
716   ac_srcdir_defaulted=no
717 fi
718 if test ! -r $srcdir/$ac_unique_file; then
719   if test "$ac_srcdir_defaulted" = yes; then
720     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
721    { (exit 1); exit 1; }; }
722   else
723     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
724    { (exit 1); exit 1; }; }
725   fi
726 fi
727 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
728 ac_env_build_alias_set=${build_alias+set}
729 ac_env_build_alias_value=$build_alias
730 ac_cv_env_build_alias_set=${build_alias+set}
731 ac_cv_env_build_alias_value=$build_alias
732 ac_env_host_alias_set=${host_alias+set}
733 ac_env_host_alias_value=$host_alias
734 ac_cv_env_host_alias_set=${host_alias+set}
735 ac_cv_env_host_alias_value=$host_alias
736 ac_env_target_alias_set=${target_alias+set}
737 ac_env_target_alias_value=$target_alias
738 ac_cv_env_target_alias_set=${target_alias+set}
739 ac_cv_env_target_alias_value=$target_alias
740 ac_env_CC_set=${CC+set}
741 ac_env_CC_value=$CC
742 ac_cv_env_CC_set=${CC+set}
743 ac_cv_env_CC_value=$CC
744 ac_env_CFLAGS_set=${CFLAGS+set}
745 ac_env_CFLAGS_value=$CFLAGS
746 ac_cv_env_CFLAGS_set=${CFLAGS+set}
747 ac_cv_env_CFLAGS_value=$CFLAGS
748 ac_env_LDFLAGS_set=${LDFLAGS+set}
749 ac_env_LDFLAGS_value=$LDFLAGS
750 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
751 ac_cv_env_LDFLAGS_value=$LDFLAGS
752 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
753 ac_env_CPPFLAGS_value=$CPPFLAGS
754 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
755 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
756 ac_env_CPP_set=${CPP+set}
757 ac_env_CPP_value=$CPP
758 ac_cv_env_CPP_set=${CPP+set}
759 ac_cv_env_CPP_value=$CPP
760 ac_env_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.4beta5 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.4beta5:";;
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-includes=DIRS    look for additional header files in DIRS
856   --with-libraries=DIRS   look for additional libraries in DIRS
857   --with-libs=DIRS        alternative spelling of --with-libraries
858   --with-pgport=PORTNUM   change default port number 5432
859   --with-tcl              build Tcl and Tk interfaces
860   --without-tk            do not build Tk interfaces if Tcl is enabled
861   --with-tclconfig=DIR    tclConfig.sh and tkConfig.sh are in DIR
862   --with-tkconfig=DIR     tkConfig.sh is in DIR
863   --with-perl             build Perl modules (PL/Perl)
864   --with-python           build Python modules (PL/Python)
865   --with-java             build JDBC interface and Java tools
866   --with-krb4[=DIR]       build with Kerberos 4 support [/usr/athena]
867   --with-krb5[=DIR]       build with Kerberos 5 support [/usr/athena]
868   --with-krb-srvnam=NAME  name of the service principal in Kerberos postgres
869   --with-pam              build with PAM support
870   --with-rendezvous       build with Rendezvous support
871   --with-openssl[=DIR]    build with OpenSSL support [/usr/local/ssl]
872   --without-readline      do not use Readline
873   --without-zlib          do not use Zlib
874   --with-gnu-ld           assume the C compiler uses GNU ld default=no
875
876 Some influential environment variables:
877   CC          C compiler command
878   CFLAGS      C compiler flags
879   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
880               nonstandard directory <lib dir>
881   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
882               headers in a nonstandard directory <include dir>
883   CPP         C preprocessor
884   DOCBOOKSTYLE
885               location of DocBook stylesheets
886
887 Use these variables to override the choices made by `configure' or to help
888 it to find libraries and programs with nonstandard names/locations.
889
890 Report bugs to <pgsql-bugs@postgresql.org>.
891 _ACEOF
892 fi
893
894 if test "$ac_init_help" = "recursive"; then
895   # If there are subdirs, report their specific --help.
896   ac_popdir=`pwd`
897   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898     test -d $ac_dir || continue
899     ac_builddir=.
900
901 if test "$ac_dir" != .; then
902   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903   # A "../" for each directory in $ac_dir_suffix.
904   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905 else
906   ac_dir_suffix= ac_top_builddir=
907 fi
908
909 case $srcdir in
910   .)  # No --srcdir option.  We are building in place.
911     ac_srcdir=.
912     if test -z "$ac_top_builddir"; then
913        ac_top_srcdir=.
914     else
915        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916     fi ;;
917   [\\/]* | ?:[\\/]* )  # Absolute path.
918     ac_srcdir=$srcdir$ac_dir_suffix;
919     ac_top_srcdir=$srcdir ;;
920   *) # Relative path.
921     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922     ac_top_srcdir=$ac_top_builddir$srcdir ;;
923 esac
924 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
925 # absolute.
926 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
927 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
928 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
929 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
930
931     cd $ac_dir
932     # Check for guested configure; otherwise get Cygnus style configure.
933     if test -f $ac_srcdir/configure.gnu; then
934       echo
935       $SHELL $ac_srcdir/configure.gnu  --help=recursive
936     elif test -f $ac_srcdir/configure; then
937       echo
938       $SHELL $ac_srcdir/configure  --help=recursive
939     elif test -f $ac_srcdir/configure.ac ||
940            test -f $ac_srcdir/configure.in; then
941       echo
942       $ac_configure --help
943     else
944       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
945     fi
946     cd $ac_popdir
947   done
948 fi
949
950 test -n "$ac_init_help" && exit 0
951 if $ac_init_version; then
952   cat <<\_ACEOF
953 PostgreSQL configure 7.4beta5
954 generated by GNU Autoconf 2.53
955
956 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
957 Free Software Foundation, Inc.
958 This configure script is free software; the Free Software Foundation
959 gives unlimited permission to copy, distribute and modify it.
960
961 Copyright 2003 PostgreSQL Global Development Group
962 _ACEOF
963   exit 0
964 fi
965 exec 5>config.log
966 cat >&5 <<_ACEOF
967 This file contains any messages produced by compilers while
968 running configure, to aid debugging if configure makes a mistake.
969
970 It was created by PostgreSQL $as_me 7.4beta5, which was
971 generated by GNU Autoconf 2.53.  Invocation command line was
972
973   $ $0 $@
974
975 _ACEOF
976 {
977 cat <<_ASUNAME
978 ## --------- ##
979 ## Platform. ##
980 ## --------- ##
981
982 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
983 uname -m = `(uname -m) 2>/dev/null || echo unknown`
984 uname -r = `(uname -r) 2>/dev/null || echo unknown`
985 uname -s = `(uname -s) 2>/dev/null || echo unknown`
986 uname -v = `(uname -v) 2>/dev/null || echo unknown`
987
988 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
989 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
990
991 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
992 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
993 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
994 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
995 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
996 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
997 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
998
999 _ASUNAME
1000
1001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1002 for as_dir in $PATH
1003 do
1004   IFS=$as_save_IFS
1005   test -z "$as_dir" && as_dir=.
1006   echo "PATH: $as_dir"
1007 done
1008
1009 } >&5
1010
1011 cat >&5 <<_ACEOF
1012
1013
1014 ## ----------- ##
1015 ## Core tests. ##
1016 ## ----------- ##
1017
1018 _ACEOF
1019
1020
1021 # Keep a trace of the command line.
1022 # Strip out --no-create and --no-recursion so they do not pile up.
1023 # Also quote any args containing shell meta-characters.
1024 ac_configure_args=
1025 ac_sep=
1026 for ac_arg
1027 do
1028   case $ac_arg in
1029   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030   | --no-cr | --no-c | -n ) continue ;;
1031   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033     continue ;;
1034   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1035     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1036   esac
1037   case " $ac_configure_args " in
1038     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1039     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1040        ac_sep=" " ;;
1041   esac
1042   # Get rid of the leading space.
1043 done
1044
1045 # When interrupted or exit'd, cleanup temporary files, and complete
1046 # config.log.  We remove comments because anyway the quotes in there
1047 # would cause problems or look ugly.
1048 # WARNING: Be sure not to use single quotes in there, as some shells,
1049 # such as our DU 5.0 friend, will then `close' the trap.
1050 trap 'exit_status=$?
1051   # Save into config.log some information that might help in debugging.
1052   {
1053     echo
1054     cat <<\_ASBOX
1055 ## ---------------- ##
1056 ## Cache variables. ##
1057 ## ---------------- ##
1058 _ASBOX
1059     echo
1060     # The following way of writing the cache mishandles newlines in values,
1061 {
1062   (set) 2>&1 |
1063     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1064     *ac_space=\ *)
1065       sed -n \
1066         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1067           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1068       ;;
1069     *)
1070       sed -n \
1071         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1072       ;;
1073     esac;
1074 }
1075     echo
1076     if test -s confdefs.h; then
1077       cat <<\_ASBOX
1078 ## ----------- ##
1079 ## confdefs.h. ##
1080 ## ----------- ##
1081 _ASBOX
1082       echo
1083       sed "/^$/d" confdefs.h
1084       echo
1085     fi
1086     test "$ac_signal" != 0 &&
1087       echo "$as_me: caught signal $ac_signal"
1088     echo "$as_me: exit $exit_status"
1089   } >&5
1090   rm -f core core.* *.core &&
1091   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1092     exit $exit_status
1093      ' 0
1094 for ac_signal in 1 2 13 15; do
1095   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1096 done
1097 ac_signal=0
1098
1099 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1100 rm -rf conftest* confdefs.h
1101 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1102 echo >confdefs.h
1103
1104 # Predefined preprocessor variables.
1105
1106 cat >>confdefs.h <<_ACEOF
1107 #define PACKAGE_NAME "$PACKAGE_NAME"
1108 _ACEOF
1109
1110
1111 cat >>confdefs.h <<_ACEOF
1112 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1113 _ACEOF
1114
1115
1116 cat >>confdefs.h <<_ACEOF
1117 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1118 _ACEOF
1119
1120
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_STRING "$PACKAGE_STRING"
1123 _ACEOF
1124
1125
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1128 _ACEOF
1129
1130
1131 # Let the site file select an alternate cache file if it wants to.
1132 # Prefer explicitly selected file to automatically selected ones.
1133 if test -z "$CONFIG_SITE"; then
1134   if test "x$prefix" != xNONE; then
1135     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1136   else
1137     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1138   fi
1139 fi
1140 for ac_site_file in $CONFIG_SITE; do
1141   if test -r "$ac_site_file"; then
1142     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1143 echo "$as_me: loading site script $ac_site_file" >&6;}
1144     sed 's/^/| /' "$ac_site_file" >&5
1145     . "$ac_site_file"
1146   fi
1147 done
1148
1149 if test -r "$cache_file"; then
1150   # Some versions of bash will fail to source /dev/null (special
1151   # files actually), so we avoid doing that.
1152   if test -f "$cache_file"; then
1153     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1154 echo "$as_me: loading cache $cache_file" >&6;}
1155     case $cache_file in
1156       [\\/]* | ?:[\\/]* ) . $cache_file;;
1157       *)                      . ./$cache_file;;
1158     esac
1159   fi
1160 else
1161   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1162 echo "$as_me: creating cache $cache_file" >&6;}
1163   >$cache_file
1164 fi
1165
1166 # Check that the precious variables saved in the cache have kept the same
1167 # value.
1168 ac_cache_corrupted=false
1169 for ac_var in `(set) 2>&1 |
1170                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1171   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1172   eval ac_new_set=\$ac_env_${ac_var}_set
1173   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1174   eval ac_new_val="\$ac_env_${ac_var}_value"
1175   case $ac_old_set,$ac_new_set in
1176     set,)
1177       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1178 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1179       ac_cache_corrupted=: ;;
1180     ,set)
1181       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1182 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1183       ac_cache_corrupted=: ;;
1184     ,);;
1185     *)
1186       if test "x$ac_old_val" != "x$ac_new_val"; then
1187         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1188 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1189         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1190 echo "$as_me:   former value:  $ac_old_val" >&2;}
1191         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1192 echo "$as_me:   current value: $ac_new_val" >&2;}
1193         ac_cache_corrupted=:
1194       fi;;
1195   esac
1196   # Pass precious variables to config.status.
1197   if test "$ac_new_set" = set; then
1198     case $ac_new_val in
1199     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1200       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1201     *) ac_arg=$ac_var=$ac_new_val ;;
1202     esac
1203     case " $ac_configure_args " in
1204       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1205       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1206     esac
1207   fi
1208 done
1209 if $ac_cache_corrupted; then
1210   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1211 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1212   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1213 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1214    { (exit 1); exit 1; }; }
1215 fi
1216
1217 ac_ext=c
1218 ac_cpp='$CPP $CPPFLAGS'
1219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1222
1223
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
1255 ac_aux_dir=
1256 for ac_dir in config $srcdir/config; do
1257   if test -f $ac_dir/install-sh; then
1258     ac_aux_dir=$ac_dir
1259     ac_install_sh="$ac_aux_dir/install-sh -c"
1260     break
1261   elif test -f $ac_dir/install.sh; then
1262     ac_aux_dir=$ac_dir
1263     ac_install_sh="$ac_aux_dir/install.sh -c"
1264     break
1265   elif test -f $ac_dir/shtool; then
1266     ac_aux_dir=$ac_dir
1267     ac_install_sh="$ac_aux_dir/shtool install -c"
1268     break
1269   fi
1270 done
1271 if test -z "$ac_aux_dir"; then
1272   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1273 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1274    { (exit 1); exit 1; }; }
1275 fi
1276 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1277 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1278 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1279
1280
1281 configure_args=$ac_configure_args
1282
1283
1284
1285 cat >>confdefs.h <<_ACEOF
1286 #define PG_VERSION "$PACKAGE_VERSION"
1287 _ACEOF
1288
1289
1290 # Make sure we can run config.sub.
1291 $ac_config_sub sun4 >/dev/null 2>&1 ||
1292   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1293 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1294    { (exit 1); exit 1; }; }
1295
1296 echo "$as_me:$LINENO: checking build system type" >&5
1297 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1298 if test "${ac_cv_build+set}" = set; then
1299   echo $ECHO_N "(cached) $ECHO_C" >&6
1300 else
1301   ac_cv_build_alias=$build_alias
1302 test -z "$ac_cv_build_alias" &&
1303   ac_cv_build_alias=`$ac_config_guess`
1304 test -z "$ac_cv_build_alias" &&
1305   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1306 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1307    { (exit 1); exit 1; }; }
1308 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1309   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1310 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1311    { (exit 1); exit 1; }; }
1312
1313 fi
1314 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1315 echo "${ECHO_T}$ac_cv_build" >&6
1316 build=$ac_cv_build
1317 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1318 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1319 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1320
1321
1322 echo "$as_me:$LINENO: checking host system type" >&5
1323 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1324 if test "${ac_cv_host+set}" = set; then
1325   echo $ECHO_N "(cached) $ECHO_C" >&6
1326 else
1327   ac_cv_host_alias=$host_alias
1328 test -z "$ac_cv_host_alias" &&
1329   ac_cv_host_alias=$ac_cv_build_alias
1330 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1331   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1332 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1333    { (exit 1); exit 1; }; }
1334
1335 fi
1336 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1337 echo "${ECHO_T}$ac_cv_host" >&6
1338 host=$ac_cv_host
1339 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1340 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1341 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1342
1343
1344
1345 template=
1346 echo "$as_me:$LINENO: checking which template to use" >&5
1347 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1348
1349
1350
1351
1352 # Check whether --with-template or --without-template was given.
1353 if test "${with_template+set}" = set; then
1354   withval="$with_template"
1355
1356   case $withval in
1357     yes)
1358       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1359 echo "$as_me: error: argument required for --with-template option" >&2;}
1360    { (exit 1); exit 1; }; }
1361       ;;
1362     no)
1363       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1364 echo "$as_me: error: argument required for --with-template option" >&2;}
1365    { (exit 1); exit 1; }; }
1366       ;;
1367     *)
1368
1369   case $withval in
1370     list)   echo; ls "$srcdir/src/template"; exit;;
1371     *)      if test -f "$srcdir/src/template/$with_template" ; then
1372               template=$withval
1373             else
1374               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1375 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1376    { (exit 1); exit 1; }; }
1377             fi;;
1378   esac
1379
1380       ;;
1381   esac
1382
1383 else
1384
1385 # --with-template not given
1386
1387 case $host_os in
1388      aix*) template=aix ;;
1389     beos*) template=beos ;;
1390     bsdi*) template=bsdi ;;
1391   cygwin*) template=cygwin ;;
1392   darwin*) template=darwin ;;
1393     dgux*) template=dgux ;;
1394  freebsd*) template=freebsd ;;
1395     hpux*) template=hpux ;;
1396     irix*) template=irix5 ;;
1397    linux*) template=linux ;;
1398    mingw*) template=win32 ;;
1399   netbsd*) template=netbsd ;;
1400 nextstep*) template=nextstep ;;
1401  openbsd*) template=openbsd ;;
1402      osf*) template=osf ;;
1403      qnx*) template=qnx4 ;;
1404      sco*) template=sco ;;
1405  solaris*) template=solaris ;;
1406    sunos*) template=sunos4 ;;
1407  sysv4.2*)
1408         case $host_vendor in
1409           univel) template=univel ;;
1410         esac ;;
1411    sysv4*) template=svr4 ;;
1412    sysv5*) template=unixware ;;
1413   ultrix*) template=ultrix4 ;;
1414 esac
1415
1416   if test x"$template" = x"" ; then
1417     { { echo "$as_me:$LINENO: error:
1418 *******************************************************************
1419 PostgreSQL has apparently not been ported to your platform yet.
1420 To try a manual configuration, look into the src/template directory
1421 for a similar platform and use the '--with-template=' option.
1422
1423 Please also contact <pgsql-ports@postgresql.org> to see about
1424 rectifying this.  Include the above 'checking host system type...'
1425 line.
1426 *******************************************************************
1427 " >&5
1428 echo "$as_me: error:
1429 *******************************************************************
1430 PostgreSQL has apparently not been ported to your platform yet.
1431 To try a manual configuration, look into the src/template directory
1432 for a similar platform and use the '--with-template=' option.
1433
1434 Please also contact <pgsql-ports@postgresql.org> to see about
1435 rectifying this.  Include the above 'checking host system type...'
1436 line.
1437 *******************************************************************
1438 " >&2;}
1439    { (exit 1); exit 1; }; }
1440   fi
1441
1442
1443 fi;
1444
1445
1446 echo "$as_me:$LINENO: result: $template" >&5
1447 echo "${ECHO_T}$template" >&6
1448
1449 PORTNAME=$template
1450
1451
1452 # Pick right test-and-set (TAS) code.  Most platforms have inline
1453 # assembler code in src/include/storage/s_lock.h, so we just use
1454 # a dummy file here.
1455 case $host in
1456   hppa*-*-hpux*)        need_tas=yes; tas_file=hpux_hppa.s ;;
1457   sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1458   i?86-*-solaris*)   need_tas=yes; tas_file=solaris_i386.s ;;
1459   *)                need_tas=no;  tas_file=dummy.s ;;
1460 esac
1461 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1462
1463
1464 if test "$need_tas" = yes ; then
1465   TAS=tas.o
1466 fi
1467
1468
1469
1470
1471 ##
1472 ## Command line options
1473 ##
1474
1475
1476 #
1477 # Add non-standard directories to the include path
1478 #
1479
1480
1481
1482 # Check whether --with-includes or --without-includes was given.
1483 if test "${with_includes+set}" = set; then
1484   withval="$with_includes"
1485
1486   case $withval in
1487     yes)
1488       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1489 echo "$as_me: error: argument required for --with-includes option" >&2;}
1490    { (exit 1); exit 1; }; }
1491       ;;
1492     no)
1493       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1494 echo "$as_me: error: argument required for --with-includes option" >&2;}
1495    { (exit 1); exit 1; }; }
1496       ;;
1497     *)
1498
1499       ;;
1500   esac
1501
1502 fi;
1503
1504
1505
1506 #
1507 # Add non-standard directories to the library search path
1508 #
1509
1510
1511
1512 # Check whether --with-libraries or --without-libraries was given.
1513 if test "${with_libraries+set}" = set; then
1514   withval="$with_libraries"
1515
1516   case $withval in
1517     yes)
1518       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1519 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1520    { (exit 1); exit 1; }; }
1521       ;;
1522     no)
1523       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1524 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1525    { (exit 1); exit 1; }; }
1526       ;;
1527     *)
1528       LIBRARY_DIRS=$withval
1529       ;;
1530   esac
1531
1532 fi;
1533
1534
1535
1536
1537
1538 # Check whether --with-libs or --without-libs was given.
1539 if test "${with_libs+set}" = set; then
1540   withval="$with_libs"
1541
1542   case $withval in
1543     yes)
1544       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1545 echo "$as_me: error: argument required for --with-libs option" >&2;}
1546    { (exit 1); exit 1; }; }
1547       ;;
1548     no)
1549       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1550 echo "$as_me: error: argument required for --with-libs option" >&2;}
1551    { (exit 1); exit 1; }; }
1552       ;;
1553     *)
1554       LIBRARY_DIRS=$withval
1555       ;;
1556   esac
1557
1558 fi;
1559
1560
1561
1562 #
1563 # 64-bit integer date/time storage (--enable-integer-datetimes)
1564 #
1565 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1566 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1567
1568
1569 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1570 if test "${enable_integer_datetimes+set}" = set; then
1571   enableval="$enable_integer_datetimes"
1572
1573   case $enableval in
1574     yes)
1575
1576 cat >>confdefs.h <<\_ACEOF
1577 #define USE_INTEGER_DATETIMES 1
1578 _ACEOF
1579
1580       ;;
1581     no)
1582       :
1583       ;;
1584     *)
1585       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1586 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1587    { (exit 1); exit 1; }; }
1588       ;;
1589   esac
1590
1591 else
1592   enable_integer_datetimes=no
1593
1594 fi;
1595
1596 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1597 echo "${ECHO_T}$enable_integer_datetimes" >&6
1598
1599
1600 #
1601 # NLS
1602 #
1603 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1604 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1605
1606
1607 # Check whether --enable-nls or --disable-nls was given.
1608 if test "${enable_nls+set}" = set; then
1609   enableval="$enable_nls"
1610
1611   case $enableval in
1612     yes)
1613       :
1614       ;;
1615     no)
1616       :
1617       ;;
1618     *)
1619       enable_nls=yes
1620 WANTED_LANGUAGES=$enableval
1621       ;;
1622   esac
1623
1624 else
1625   enable_nls=no
1626 fi;
1627
1628
1629 if test "$enable_nls" = yes; then
1630
1631 cat >>confdefs.h <<\_ACEOF
1632 #define ENABLE_NLS 1
1633 _ACEOF
1634
1635 fi
1636
1637 echo "$as_me:$LINENO: result: $enable_nls" >&5
1638 echo "${ECHO_T}$enable_nls" >&6
1639
1640
1641
1642 #
1643 # Default port number (--with-pgport), default 5432
1644 #
1645 echo "$as_me:$LINENO: checking for default port number" >&5
1646 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1647
1648
1649
1650 # Check whether --with-pgport or --without-pgport was given.
1651 if test "${with_pgport+set}" = set; then
1652   withval="$with_pgport"
1653
1654   case $withval in
1655     yes)
1656       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1657 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1658    { (exit 1); exit 1; }; }
1659       ;;
1660     no)
1661       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1662 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1663    { (exit 1); exit 1; }; }
1664       ;;
1665     *)
1666       default_port=$withval
1667       ;;
1668   esac
1669
1670 else
1671   default_port=5432
1672 fi;
1673
1674 echo "$as_me:$LINENO: result: $default_port" >&5
1675 echo "${ECHO_T}$default_port" >&6
1676 # Need both of these because some places want an integer and some a string
1677
1678 cat >>confdefs.h <<_ACEOF
1679 #define DEF_PGPORT ${default_port}
1680 _ACEOF
1681
1682
1683 cat >>confdefs.h <<_ACEOF
1684 #define DEF_PGPORT_STR "${default_port}"
1685 _ACEOF
1686
1687
1688
1689 #
1690 # Option to disable shared libraries
1691 #
1692
1693
1694 # Check whether --enable-shared or --disable-shared was given.
1695 if test "${enable_shared+set}" = set; then
1696   enableval="$enable_shared"
1697
1698   case $enableval in
1699     yes)
1700       :
1701       ;;
1702     no)
1703       :
1704       ;;
1705     *)
1706       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1707 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1708    { (exit 1); exit 1; }; }
1709       ;;
1710   esac
1711
1712 else
1713   enable_shared=yes
1714
1715 fi;
1716
1717
1718
1719 #
1720 # '-rpath'-like feature can be disabled
1721 #
1722
1723
1724 # Check whether --enable-rpath or --disable-rpath was given.
1725 if test "${enable_rpath+set}" = set; then
1726   enableval="$enable_rpath"
1727
1728   case $enableval in
1729     yes)
1730       :
1731       ;;
1732     no)
1733       :
1734       ;;
1735     *)
1736       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1737 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1738    { (exit 1); exit 1; }; }
1739       ;;
1740   esac
1741
1742 else
1743   enable_rpath=yes
1744
1745 fi;
1746
1747
1748
1749 #
1750 # Spinlocks
1751 #
1752
1753
1754 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1755 if test "${enable_spinlocks+set}" = set; then
1756   enableval="$enable_spinlocks"
1757
1758   case $enableval in
1759     yes)
1760       :
1761       ;;
1762     no)
1763       :
1764       ;;
1765     *)
1766       { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1767 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1768    { (exit 1); exit 1; }; }
1769       ;;
1770   esac
1771
1772 else
1773   enable_spinlocks=yes
1774
1775 fi;
1776
1777
1778 #
1779 # --enable-debug adds -g to compiler flags
1780 #
1781
1782
1783 # Check whether --enable-debug or --disable-debug was given.
1784 if test "${enable_debug+set}" = set; then
1785   enableval="$enable_debug"
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-debug option" >&5
1796 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1797    { (exit 1); exit 1; }; }
1798       ;;
1799   esac
1800
1801 else
1802   enable_debug=no
1803
1804 fi;
1805
1806
1807
1808 #
1809 # C compiler
1810 #
1811
1812 # For historical reasons you can also use --with-CC to specify the C compiler
1813 # to use, although the standard way to do this is to set the CC environment
1814 # variable.
1815
1816
1817
1818 # Check whether --with-CC or --without-CC was given.
1819 if test "${with_CC+set}" = set; then
1820   withval="$with_CC"
1821
1822   case $withval in
1823     yes)
1824       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1825 echo "$as_me: error: argument required for --with-CC option" >&2;}
1826    { (exit 1); exit 1; }; }
1827       ;;
1828     no)
1829       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1830 echo "$as_me: error: argument required for --with-CC option" >&2;}
1831    { (exit 1); exit 1; }; }
1832       ;;
1833     *)
1834       CC=$with_CC
1835       ;;
1836   esac
1837
1838 fi;
1839
1840
1841 case $template in
1842   aix) pgac_cc_list="gcc xlc";;
1843  irix) pgac_cc_list="cc";; # no gcc
1844     *) pgac_cc_list="gcc cc";;
1845 esac
1846
1847 ac_ext=c
1848 ac_cpp='$CPP $CPPFLAGS'
1849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1852 if test -n "$ac_tool_prefix"; then
1853   for ac_prog in $pgac_cc_list
1854   do
1855     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1856 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1857 echo "$as_me:$LINENO: checking for $ac_word" >&5
1858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859 if test "${ac_cv_prog_CC+set}" = set; then
1860   echo $ECHO_N "(cached) $ECHO_C" >&6
1861 else
1862   if test -n "$CC"; then
1863   ac_cv_prog_CC="$CC" # Let the user override the test.
1864 else
1865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866 for as_dir in $PATH
1867 do
1868   IFS=$as_save_IFS
1869   test -z "$as_dir" && as_dir=.
1870   for ac_exec_ext in '' $ac_executable_extensions; do
1871   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874     break 2
1875   fi
1876 done
1877 done
1878
1879 fi
1880 fi
1881 CC=$ac_cv_prog_CC
1882 if test -n "$CC"; then
1883   echo "$as_me:$LINENO: result: $CC" >&5
1884 echo "${ECHO_T}$CC" >&6
1885 else
1886   echo "$as_me:$LINENO: result: no" >&5
1887 echo "${ECHO_T}no" >&6
1888 fi
1889
1890     test -n "$CC" && break
1891   done
1892 fi
1893 if test -z "$CC"; then
1894   ac_ct_CC=$CC
1895   for ac_prog in $pgac_cc_list
1896 do
1897   # Extract the first word of "$ac_prog", so it can be a program name with args.
1898 set dummy $ac_prog; ac_word=$2
1899 echo "$as_me:$LINENO: checking for $ac_word" >&5
1900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1902   echo $ECHO_N "(cached) $ECHO_C" >&6
1903 else
1904   if test -n "$ac_ct_CC"; then
1905   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1906 else
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908 for as_dir in $PATH
1909 do
1910   IFS=$as_save_IFS
1911   test -z "$as_dir" && as_dir=.
1912   for ac_exec_ext in '' $ac_executable_extensions; do
1913   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914     ac_cv_prog_ac_ct_CC="$ac_prog"
1915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1916     break 2
1917   fi
1918 done
1919 done
1920
1921 fi
1922 fi
1923 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1924 if test -n "$ac_ct_CC"; then
1925   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1926 echo "${ECHO_T}$ac_ct_CC" >&6
1927 else
1928   echo "$as_me:$LINENO: result: no" >&5
1929 echo "${ECHO_T}no" >&6
1930 fi
1931
1932   test -n "$ac_ct_CC" && break
1933 done
1934
1935   CC=$ac_ct_CC
1936 fi
1937
1938
1939 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1940 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1941    { (exit 1); exit 1; }; }
1942
1943 # Provide some information about the compiler.
1944 echo "$as_me:$LINENO:" \
1945      "checking for C compiler version" >&5
1946 ac_compiler=`set X $ac_compile; echo $2`
1947 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1948   (eval $ac_compiler --version </dev/null >&5) 2>&5
1949   ac_status=$?
1950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951   (exit $ac_status); }
1952 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1953   (eval $ac_compiler -v </dev/null >&5) 2>&5
1954   ac_status=$?
1955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956   (exit $ac_status); }
1957 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1958   (eval $ac_compiler -V </dev/null >&5) 2>&5
1959   ac_status=$?
1960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1961   (exit $ac_status); }
1962
1963 cat >conftest.$ac_ext <<_ACEOF
1964 #line $LINENO "configure"
1965 #include "confdefs.h"
1966
1967 #ifdef F77_DUMMY_MAIN
1968 #  ifdef __cplusplus
1969      extern "C"
1970 #  endif
1971    int F77_DUMMY_MAIN() { return 1; }
1972 #endif
1973 int
1974 main ()
1975 {
1976
1977   ;
1978   return 0;
1979 }
1980 _ACEOF
1981 ac_clean_files_save=$ac_clean_files
1982 ac_clean_files="$ac_clean_files a.out a.exe"
1983 # Try to create an executable without -o first, disregard a.out.
1984 # It will help us diagnose broken compilers, and finding out an intuition
1985 # of exeext.
1986 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1987 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1988 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1989 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1990   (eval $ac_link_default) 2>&5
1991   ac_status=$?
1992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993   (exit $ac_status); }; then
1994   # Find the output, starting from the most likely.  This scheme is
1995 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1996 # resort.
1997
1998 # Be careful to initialize this variable, since it used to be cached.
1999 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2000 ac_cv_exeext=
2001 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2002                 ls a.out conftest 2>/dev/null;
2003                 ls a.* conftest.* 2>/dev/null`; do
2004   case $ac_file in
2005     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2006     a.out ) # We found the default executable, but exeext='' is most
2007             # certainly right.
2008             break;;
2009     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2010           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2011           export ac_cv_exeext
2012           break;;
2013     * ) break;;
2014   esac
2015 done
2016 else
2017   echo "$as_me: failed program was:" >&5
2018 cat conftest.$ac_ext >&5
2019 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2020 echo "$as_me: error: C compiler cannot create executables" >&2;}
2021    { (exit 77); exit 77; }; }
2022 fi
2023
2024 ac_exeext=$ac_cv_exeext
2025 echo "$as_me:$LINENO: result: $ac_file" >&5
2026 echo "${ECHO_T}$ac_file" >&6
2027
2028 # Check the compiler produces executables we can run.  If not, either
2029 # the compiler is broken, or we cross compile.
2030 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2031 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2032 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2033 # If not cross compiling, check that we can run a simple program.
2034 if test "$cross_compiling" != yes; then
2035   if { ac_try='./$ac_file'
2036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037   (eval $ac_try) 2>&5
2038   ac_status=$?
2039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040   (exit $ac_status); }; }; then
2041     cross_compiling=no
2042   else
2043     if test "$cross_compiling" = maybe; then
2044         cross_compiling=yes
2045     else
2046         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2047 If you meant to cross compile, use \`--host'." >&5
2048 echo "$as_me: error: cannot run C compiled programs.
2049 If you meant to cross compile, use \`--host'." >&2;}
2050    { (exit 1); exit 1; }; }
2051     fi
2052   fi
2053 fi
2054 echo "$as_me:$LINENO: result: yes" >&5
2055 echo "${ECHO_T}yes" >&6
2056
2057 rm -f a.out a.exe conftest$ac_cv_exeext
2058 ac_clean_files=$ac_clean_files_save
2059 # Check the compiler produces executables we can run.  If not, either
2060 # the compiler is broken, or we cross compile.
2061 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2062 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2063 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2064 echo "${ECHO_T}$cross_compiling" >&6
2065
2066 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2067 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2069   (eval $ac_link) 2>&5
2070   ac_status=$?
2071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072   (exit $ac_status); }; then
2073   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2074 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2075 # work properly (i.e., refer to `conftest.exe'), while it won't with
2076 # `rm'.
2077 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2078   case $ac_file in
2079     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2080     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2081           export ac_cv_exeext
2082           break;;
2083     * ) break;;
2084   esac
2085 done
2086 else
2087   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2088 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2089    { (exit 1); exit 1; }; }
2090 fi
2091
2092 rm -f conftest$ac_cv_exeext
2093 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2094 echo "${ECHO_T}$ac_cv_exeext" >&6
2095
2096 rm -f conftest.$ac_ext
2097 EXEEXT=$ac_cv_exeext
2098 ac_exeext=$EXEEXT
2099 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2100 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2101 if test "${ac_cv_objext+set}" = set; then
2102   echo $ECHO_N "(cached) $ECHO_C" >&6
2103 else
2104   cat >conftest.$ac_ext <<_ACEOF
2105 #line $LINENO "configure"
2106 #include "confdefs.h"
2107
2108 #ifdef F77_DUMMY_MAIN
2109 #  ifdef __cplusplus
2110      extern "C"
2111 #  endif
2112    int F77_DUMMY_MAIN() { return 1; }
2113 #endif
2114 int
2115 main ()
2116 {
2117
2118   ;
2119   return 0;
2120 }
2121 _ACEOF
2122 rm -f conftest.o conftest.obj
2123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2124   (eval $ac_compile) 2>&5
2125   ac_status=$?
2126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127   (exit $ac_status); }; then
2128   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2129   case $ac_file in
2130     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2131     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2132        break;;
2133   esac
2134 done
2135 else
2136   echo "$as_me: failed program was:" >&5
2137 cat conftest.$ac_ext >&5
2138 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2139 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2140    { (exit 1); exit 1; }; }
2141 fi
2142
2143 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2144 fi
2145 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2146 echo "${ECHO_T}$ac_cv_objext" >&6
2147 OBJEXT=$ac_cv_objext
2148 ac_objext=$OBJEXT
2149 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2150 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2151 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2152   echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154   cat >conftest.$ac_ext <<_ACEOF
2155 #line $LINENO "configure"
2156 #include "confdefs.h"
2157
2158 #ifdef F77_DUMMY_MAIN
2159 #  ifdef __cplusplus
2160      extern "C"
2161 #  endif
2162    int F77_DUMMY_MAIN() { return 1; }
2163 #endif
2164 int
2165 main ()
2166 {
2167 #ifndef __GNUC__
2168        choke me
2169 #endif
2170
2171   ;
2172   return 0;
2173 }
2174 _ACEOF
2175 rm -f conftest.$ac_objext
2176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2177   (eval $ac_compile) 2>&5
2178   ac_status=$?
2179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180   (exit $ac_status); } &&
2181          { ac_try='test -s conftest.$ac_objext'
2182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183   (eval $ac_try) 2>&5
2184   ac_status=$?
2185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186   (exit $ac_status); }; }; then
2187   ac_compiler_gnu=yes
2188 else
2189   echo "$as_me: failed program was:" >&5
2190 cat conftest.$ac_ext >&5
2191 ac_compiler_gnu=no
2192 fi
2193 rm -f conftest.$ac_objext conftest.$ac_ext
2194 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2195
2196 fi
2197 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2198 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2199 GCC=`test $ac_compiler_gnu = yes && echo yes`
2200 ac_test_CFLAGS=${CFLAGS+set}
2201 ac_save_CFLAGS=$CFLAGS
2202 CFLAGS="-g"
2203 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2204 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2205 if test "${ac_cv_prog_cc_g+set}" = set; then
2206   echo $ECHO_N "(cached) $ECHO_C" >&6
2207 else
2208   cat >conftest.$ac_ext <<_ACEOF
2209 #line $LINENO "configure"
2210 #include "confdefs.h"
2211
2212 #ifdef F77_DUMMY_MAIN
2213 #  ifdef __cplusplus
2214      extern "C"
2215 #  endif
2216    int F77_DUMMY_MAIN() { return 1; }
2217 #endif
2218 int
2219 main ()
2220 {
2221
2222   ;
2223   return 0;
2224 }
2225 _ACEOF
2226 rm -f conftest.$ac_objext
2227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228   (eval $ac_compile) 2>&5
2229   ac_status=$?
2230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231   (exit $ac_status); } &&
2232          { ac_try='test -s conftest.$ac_objext'
2233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234   (eval $ac_try) 2>&5
2235   ac_status=$?
2236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237   (exit $ac_status); }; }; then
2238   ac_cv_prog_cc_g=yes
2239 else
2240   echo "$as_me: failed program was:" >&5
2241 cat conftest.$ac_ext >&5
2242 ac_cv_prog_cc_g=no
2243 fi
2244 rm -f conftest.$ac_objext conftest.$ac_ext
2245 fi
2246 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2247 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2248 if test "$ac_test_CFLAGS" = set; then
2249   CFLAGS=$ac_save_CFLAGS
2250 elif test $ac_cv_prog_cc_g = yes; then
2251   if test "$GCC" = yes; then
2252     CFLAGS="-g -O2"
2253   else
2254     CFLAGS="-g"
2255   fi
2256 else
2257   if test "$GCC" = yes; then
2258     CFLAGS="-O2"
2259   else
2260     CFLAGS=
2261   fi
2262 fi
2263 # Some people use a C++ compiler to compile C.  Since we use `exit',
2264 # in C++ we need to declare it.  In case someone uses the same compiler
2265 # for both compiling C and C++ we need to have the C++ compiler decide
2266 # the declaration of exit, since it's the most demanding environment.
2267 cat >conftest.$ac_ext <<_ACEOF
2268 #ifndef __cplusplus
2269   choke me
2270 #endif
2271 _ACEOF
2272 rm -f conftest.$ac_objext
2273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274   (eval $ac_compile) 2>&5
2275   ac_status=$?
2276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277   (exit $ac_status); } &&
2278          { ac_try='test -s conftest.$ac_objext'
2279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280   (eval $ac_try) 2>&5
2281   ac_status=$?
2282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283   (exit $ac_status); }; }; then
2284   for ac_declaration in \
2285    ''\
2286    '#include <stdlib.h>' \
2287    'extern "C" void std::exit (int) throw (); using std::exit;' \
2288    'extern "C" void std::exit (int); using std::exit;' \
2289    'extern "C" void exit (int) throw ();' \
2290    'extern "C" void exit (int);' \
2291    'void exit (int);'
2292 do
2293   cat >conftest.$ac_ext <<_ACEOF
2294 #line $LINENO "configure"
2295 #include "confdefs.h"
2296 #include <stdlib.h>
2297 $ac_declaration
2298 #ifdef F77_DUMMY_MAIN
2299 #  ifdef __cplusplus
2300      extern "C"
2301 #  endif
2302    int F77_DUMMY_MAIN() { return 1; }
2303 #endif
2304 int
2305 main ()
2306 {
2307 exit (42);
2308   ;
2309   return 0;
2310 }
2311 _ACEOF
2312 rm -f conftest.$ac_objext
2313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314   (eval $ac_compile) 2>&5
2315   ac_status=$?
2316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317   (exit $ac_status); } &&
2318          { ac_try='test -s conftest.$ac_objext'
2319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2320   (eval $ac_try) 2>&5
2321   ac_status=$?
2322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323   (exit $ac_status); }; }; then
2324   :
2325 else
2326   echo "$as_me: failed program was:" >&5
2327 cat conftest.$ac_ext >&5
2328 continue
2329 fi
2330 rm -f conftest.$ac_objext conftest.$ac_ext
2331   cat >conftest.$ac_ext <<_ACEOF
2332 #line $LINENO "configure"
2333 #include "confdefs.h"
2334 $ac_declaration
2335 #ifdef F77_DUMMY_MAIN
2336 #  ifdef __cplusplus
2337      extern "C"
2338 #  endif
2339    int F77_DUMMY_MAIN() { return 1; }
2340 #endif
2341 int
2342 main ()
2343 {
2344 exit (42);
2345   ;
2346   return 0;
2347 }
2348 _ACEOF
2349 rm -f conftest.$ac_objext
2350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351   (eval $ac_compile) 2>&5
2352   ac_status=$?
2353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354   (exit $ac_status); } &&
2355          { ac_try='test -s conftest.$ac_objext'
2356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357   (eval $ac_try) 2>&5
2358   ac_status=$?
2359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360   (exit $ac_status); }; }; then
2361   break
2362 else
2363   echo "$as_me: failed program was:" >&5
2364 cat conftest.$ac_ext >&5
2365 fi
2366 rm -f conftest.$ac_objext conftest.$ac_ext
2367 done
2368 rm -f conftest*
2369 if test -n "$ac_declaration"; then
2370   echo '#ifdef __cplusplus' >>confdefs.h
2371   echo $ac_declaration      >>confdefs.h
2372   echo '#endif'             >>confdefs.h
2373 fi
2374
2375 else
2376   echo "$as_me: failed program was:" >&5
2377 cat conftest.$ac_ext >&5
2378 fi
2379 rm -f conftest.$ac_objext conftest.$ac_ext
2380 ac_ext=c
2381 ac_cpp='$CPP $CPPFLAGS'
2382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2385
2386
2387 #
2388 # Read the template
2389 #
2390 . "$srcdir/src/template/$template" || exit
2391
2392 # The template may have supplied a default setting for CFLAGS.
2393 # Override this if CFLAGS was set in the original environment.
2394 if test "$ac_env_CFLAGS_set" = set; then
2395   CFLAGS=$ac_env_CFLAGS_value
2396 else
2397   # autoconf already set the default CFLAGS for gcc to be -O2, but we
2398   # need to specify -fno-strict-aliasing too in case it's gcc 3.3 or later.
2399   if test "$GCC" = yes; then
2400     CFLAGS="$CFLAGS -fno-strict-aliasing"
2401   fi
2402 fi
2403 # supply -g if --enable-debug
2404 if test "$enable_debug" = yes -a "$ac_cv_prog_cc_g" = yes; then
2405   CFLAGS="$CFLAGS -g"
2406 fi
2407 # default to -O rather than empty CFLAGS; this path will not be taken for
2408 # gcc (since autoconf supplies -O2), nor if --enable-debug (because -O -g
2409 # doesn't work on most non-gcc compilers), nor if the template provided
2410 # some CFLAGS.
2411 if test "$ac_env_CFLAGS_set" != set -a x"$CFLAGS" = x""; then
2412   CFLAGS="-O"
2413 fi
2414 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2415 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2416
2417 # We already have this in Makefile.win32, but configure needs it too
2418 if test "$PORTNAME" = "win32"
2419 then
2420         CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32"
2421 fi
2422
2423 # Check if the compiler still works with the template settings
2424 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2425 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2426
2427 cat >conftest.$ac_ext <<_ACEOF
2428 #line $LINENO "configure"
2429 #include "confdefs.h"
2430
2431 #ifdef F77_DUMMY_MAIN
2432 #  ifdef __cplusplus
2433      extern "C"
2434 #  endif
2435    int F77_DUMMY_MAIN() { return 1; }
2436 #endif
2437 int
2438 main ()
2439 {
2440 return 0;
2441   ;
2442   return 0;
2443 }
2444 _ACEOF
2445 rm -f conftest.$ac_objext conftest$ac_exeext
2446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2447   (eval $ac_link) 2>&5
2448   ac_status=$?
2449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450   (exit $ac_status); } &&
2451          { ac_try='test -s conftest$ac_exeext'
2452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453   (eval $ac_try) 2>&5
2454   ac_status=$?
2455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456   (exit $ac_status); }; }; then
2457   echo "$as_me:$LINENO: result: yes" >&5
2458 echo "${ECHO_T}yes" >&6
2459 else
2460   echo "$as_me: failed program was:" >&5
2461 cat conftest.$ac_ext >&5
2462 echo "$as_me:$LINENO: result: no" >&5
2463 echo "${ECHO_T}no" >&6
2464    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2465 echo "$as_me: error: cannot proceed" >&2;}
2466    { (exit 1); exit 1; }; }
2467 fi
2468 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2469
2470 # Defend against gcc -ffast-math
2471 if test "$GCC" = yes; then
2472 cat >conftest.$ac_ext <<_ACEOF
2473 #line $LINENO "configure"
2474 #include "confdefs.h"
2475
2476 #ifdef F77_DUMMY_MAIN
2477 #  ifdef __cplusplus
2478      extern "C"
2479 #  endif
2480    int F77_DUMMY_MAIN() { return 1; }
2481 #endif
2482 int
2483 main ()
2484 {
2485 #ifdef __FAST_MATH__
2486 choke me
2487 #endif
2488   ;
2489   return 0;
2490 }
2491 _ACEOF
2492 rm -f conftest.$ac_objext
2493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2494   (eval $ac_compile) 2>&5
2495   ac_status=$?
2496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497   (exit $ac_status); } &&
2498          { ac_try='test -s conftest.$ac_objext'
2499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500   (eval $ac_try) 2>&5
2501   ac_status=$?
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); }; }; then
2504   :
2505 else
2506   echo "$as_me: failed program was:" >&5
2507 cat conftest.$ac_ext >&5
2508 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2509 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2510    { (exit 1); exit 1; }; }
2511 fi
2512 rm -f conftest.$ac_objext conftest.$ac_ext
2513 fi
2514
2515 ac_ext=c
2516 ac_cpp='$CPP $CPPFLAGS'
2517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2520 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2521 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2522 # On Suns, sometimes $CPP names a directory.
2523 if test -n "$CPP" && test -d "$CPP"; then
2524   CPP=
2525 fi
2526 if test -z "$CPP"; then
2527   if test "${ac_cv_prog_CPP+set}" = set; then
2528   echo $ECHO_N "(cached) $ECHO_C" >&6
2529 else
2530       # Double quotes because CPP needs to be expanded
2531     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2532     do
2533       ac_preproc_ok=false
2534 for ac_c_preproc_warn_flag in '' yes
2535 do
2536   # Use a header file that comes with gcc, so configuring glibc
2537   # with a fresh cross-compiler works.
2538   # On the NeXT, cc -E runs the code through the compiler's parser,
2539   # not just through cpp. "Syntax error" is here to catch this case.
2540   cat >conftest.$ac_ext <<_ACEOF
2541 #line $LINENO "configure"
2542 #include "confdefs.h"
2543 #include <assert.h>
2544                      Syntax error
2545 _ACEOF
2546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2547   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2548   ac_status=$?
2549   egrep -v '^ *\+' conftest.er1 >conftest.err
2550   rm -f conftest.er1
2551   cat conftest.err >&5
2552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553   (exit $ac_status); } >/dev/null; then
2554   if test -s conftest.err; then
2555     ac_cpp_err=$ac_c_preproc_warn_flag
2556   else
2557     ac_cpp_err=
2558   fi
2559 else
2560   ac_cpp_err=yes
2561 fi
2562 if test -z "$ac_cpp_err"; then
2563   :
2564 else
2565   echo "$as_me: failed program was:" >&5
2566   cat conftest.$ac_ext >&5
2567   # Broken: fails on valid input.
2568 continue
2569 fi
2570 rm -f conftest.err conftest.$ac_ext
2571
2572   # OK, works on sane cases.  Now check whether non-existent headers
2573   # can be detected and how.
2574   cat >conftest.$ac_ext <<_ACEOF
2575 #line $LINENO "configure"
2576 #include "confdefs.h"
2577 #include <ac_nonexistent.h>
2578 _ACEOF
2579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2580   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2581   ac_status=$?
2582   egrep -v '^ *\+' conftest.er1 >conftest.err
2583   rm -f conftest.er1
2584   cat conftest.err >&5
2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586   (exit $ac_status); } >/dev/null; then
2587   if test -s conftest.err; then
2588     ac_cpp_err=$ac_c_preproc_warn_flag
2589   else
2590     ac_cpp_err=
2591   fi
2592 else
2593   ac_cpp_err=yes
2594 fi
2595 if test -z "$ac_cpp_err"; then
2596   # Broken: success on invalid input.
2597 continue
2598 else
2599   echo "$as_me: failed program was:" >&5
2600   cat conftest.$ac_ext >&5
2601   # Passes both tests.
2602 ac_preproc_ok=:
2603 break
2604 fi
2605 rm -f conftest.err conftest.$ac_ext
2606
2607 done
2608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2609 rm -f conftest.err conftest.$ac_ext
2610 if $ac_preproc_ok; then
2611   break
2612 fi
2613
2614     done
2615     ac_cv_prog_CPP=$CPP
2616
2617 fi
2618   CPP=$ac_cv_prog_CPP
2619 else
2620   ac_cv_prog_CPP=$CPP
2621 fi
2622 echo "$as_me:$LINENO: result: $CPP" >&5
2623 echo "${ECHO_T}$CPP" >&6
2624 ac_preproc_ok=false
2625 for ac_c_preproc_warn_flag in '' yes
2626 do
2627   # Use a header file that comes with gcc, so configuring glibc
2628   # with a fresh cross-compiler works.
2629   # On the NeXT, cc -E runs the code through the compiler's parser,
2630   # not just through cpp. "Syntax error" is here to catch this case.
2631   cat >conftest.$ac_ext <<_ACEOF
2632 #line $LINENO "configure"
2633 #include "confdefs.h"
2634 #include <assert.h>
2635                      Syntax error
2636 _ACEOF
2637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2638   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2639   ac_status=$?
2640   egrep -v '^ *\+' conftest.er1 >conftest.err
2641   rm -f conftest.er1
2642   cat conftest.err >&5
2643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644   (exit $ac_status); } >/dev/null; then
2645   if test -s conftest.err; then
2646     ac_cpp_err=$ac_c_preproc_warn_flag
2647   else
2648     ac_cpp_err=
2649   fi
2650 else
2651   ac_cpp_err=yes
2652 fi
2653 if test -z "$ac_cpp_err"; then
2654   :
2655 else
2656   echo "$as_me: failed program was:" >&5
2657   cat conftest.$ac_ext >&5
2658   # Broken: fails on valid input.
2659 continue
2660 fi
2661 rm -f conftest.err conftest.$ac_ext
2662
2663   # OK, works on sane cases.  Now check whether non-existent headers
2664   # can be detected and how.
2665   cat >conftest.$ac_ext <<_ACEOF
2666 #line $LINENO "configure"
2667 #include "confdefs.h"
2668 #include <ac_nonexistent.h>
2669 _ACEOF
2670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2671   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2672   ac_status=$?
2673   egrep -v '^ *\+' conftest.er1 >conftest.err
2674   rm -f conftest.er1
2675   cat conftest.err >&5
2676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677   (exit $ac_status); } >/dev/null; then
2678   if test -s conftest.err; then
2679     ac_cpp_err=$ac_c_preproc_warn_flag
2680   else
2681     ac_cpp_err=
2682   fi
2683 else
2684   ac_cpp_err=yes
2685 fi
2686 if test -z "$ac_cpp_err"; then
2687   # Broken: success on invalid input.
2688 continue
2689 else
2690   echo "$as_me: failed program was:" >&5
2691   cat conftest.$ac_ext >&5
2692   # Passes both tests.
2693 ac_preproc_ok=:
2694 break
2695 fi
2696 rm -f conftest.err conftest.$ac_ext
2697
2698 done
2699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2700 rm -f conftest.err conftest.$ac_ext
2701 if $ac_preproc_ok; then
2702   :
2703 else
2704   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2705 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2706    { (exit 1); exit 1; }; }
2707 fi
2708
2709 ac_ext=c
2710 ac_cpp='$CPP $CPPFLAGS'
2711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2714
2715
2716
2717 # Create compiler version string
2718 if test x"$GCC" = x"yes" ; then
2719   cc_string="GCC `${CC} --version | sed q`"
2720 else
2721   cc_string=$CC
2722 fi
2723
2724 cat >>confdefs.h <<_ACEOF
2725 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2726 _ACEOF
2727
2728
2729
2730 #
2731 # Automatic dependency tracking
2732 #
2733
2734
2735 # Check whether --enable-depend or --disable-depend was given.
2736 if test "${enable_depend+set}" = set; then
2737   enableval="$enable_depend"
2738
2739   case $enableval in
2740     yes)
2741       autodepend=yes
2742       ;;
2743     no)
2744       :
2745       ;;
2746     *)
2747       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2748 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2749    { (exit 1); exit 1; }; }
2750       ;;
2751   esac
2752
2753 else
2754   enable_depend=no
2755
2756 fi;
2757
2758
2759
2760
2761 #
2762 # Enable assert checks
2763 #
2764
2765
2766 # Check whether --enable-cassert or --disable-cassert was given.
2767 if test "${enable_cassert+set}" = set; then
2768   enableval="$enable_cassert"
2769
2770   case $enableval in
2771     yes)
2772
2773 cat >>confdefs.h <<\_ACEOF
2774 #define USE_ASSERT_CHECKING 1
2775 _ACEOF
2776
2777       ;;
2778     no)
2779       :
2780       ;;
2781     *)
2782       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2783 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2784    { (exit 1); exit 1; }; }
2785       ;;
2786   esac
2787
2788 else
2789   enable_cassert=no
2790
2791 fi;
2792
2793
2794
2795 #
2796 # Include directories
2797 #
2798 ac_save_IFS=$IFS
2799 IFS="${IFS}:"
2800 # SRCH_INC comes from the template file
2801 for dir in $with_includes $SRCH_INC; do
2802   if test -d "$dir"; then
2803     INCLUDES="$INCLUDES -I$dir"
2804   else
2805     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2806 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2807   fi
2808 done
2809 IFS=$ac_save_IFS
2810
2811
2812
2813 #
2814 # Library directories
2815 #
2816 ac_save_IFS=$IFS
2817 IFS="${IFS}:"
2818 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2819 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2820   if test -d "$dir"; then
2821     LIBDIRS="$LIBDIRS -L$dir"
2822   else
2823     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2824 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2825   fi
2826 done
2827 IFS=$ac_save_IFS
2828
2829 #
2830 # Enable thread-safe client libraries
2831 #
2832 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
2833 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
2834
2835
2836 # Check whether --enable-thread-safety or --disable-thread-safety was given.
2837 if test "${enable_thread_safety+set}" = set; then
2838   enableval="$enable_thread_safety"
2839
2840   case $enableval in
2841     yes)
2842
2843 cat >>confdefs.h <<\_ACEOF
2844 #define USE_THREADS 1
2845 _ACEOF
2846
2847       ;;
2848     no)
2849       :
2850       ;;
2851     *)
2852       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
2853 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
2854    { (exit 1); exit 1; }; }
2855       ;;
2856   esac
2857
2858 else
2859   enable_thread_safety=no
2860
2861 fi;
2862
2863 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
2864 echo "${ECHO_T}$enable_thread_safety" >&6
2865
2866
2867 #
2868 # Tcl/Tk
2869 #
2870 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2871 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2872
2873
2874
2875 # Check whether --with-tcl or --without-tcl was given.
2876 if test "${with_tcl+set}" = set; then
2877   withval="$with_tcl"
2878
2879   case $withval in
2880     yes)
2881       :
2882       ;;
2883     no)
2884       :
2885       ;;
2886     *)
2887       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2888 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2889    { (exit 1); exit 1; }; }
2890       ;;
2891   esac
2892
2893 else
2894   with_tcl=no
2895
2896 fi;
2897
2898 echo "$as_me:$LINENO: result: $with_tcl" >&5
2899 echo "${ECHO_T}$with_tcl" >&6
2900
2901
2902 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2903 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2904 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2905 if test "$with_tcl" = yes; then
2906
2907
2908
2909 # Check whether --with-tk or --without-tk was given.
2910 if test "${with_tk+set}" = set; then
2911   withval="$with_tk"
2912
2913   case $withval in
2914     yes)
2915       :
2916       ;;
2917     no)
2918       :
2919       ;;
2920     *)
2921       { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2922 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2923    { (exit 1); exit 1; }; }
2924       ;;
2925   esac
2926
2927 else
2928   with_tk=yes
2929
2930 fi;
2931
2932 else
2933   with_tk=no
2934 fi
2935 echo "$as_me:$LINENO: result: $with_tk" >&5
2936 echo "${ECHO_T}$with_tk" >&6
2937
2938
2939
2940 # We see if the path to the Tcl/Tk configuration scripts is specified.
2941 # This will override the use of tclsh to find the paths to search.
2942
2943
2944
2945
2946 # Check whether --with-tclconfig or --without-tclconfig was given.
2947 if test "${with_tclconfig+set}" = set; then
2948   withval="$with_tclconfig"
2949
2950   case $withval in
2951     yes)
2952       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2953 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2954    { (exit 1); exit 1; }; }
2955       ;;
2956     no)
2957       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2958 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2959    { (exit 1); exit 1; }; }
2960       ;;
2961     *)
2962
2963       ;;
2964   esac
2965
2966 fi;
2967
2968
2969 # We see if the path to the Tk configuration scripts is specified.
2970 # This will override the use of tclsh to find the paths to search.
2971
2972
2973
2974
2975 # Check whether --with-tkconfig or --without-tkconfig was given.
2976 if test "${with_tkconfig+set}" = set; then
2977   withval="$with_tkconfig"
2978
2979   case $withval in
2980     yes)
2981       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2982 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2983    { (exit 1); exit 1; }; }
2984       ;;
2985     no)
2986       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2987 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2988    { (exit 1); exit 1; }; }
2989       ;;
2990     *)
2991
2992       ;;
2993   esac
2994
2995 fi;
2996
2997
2998 #
2999 # Optionally build Perl modules (PL/Perl)
3000 #
3001 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3002 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3003
3004
3005
3006 # Check whether --with-perl or --without-perl was given.
3007 if test "${with_perl+set}" = set; then
3008   withval="$with_perl"
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-perl option" >&5
3019 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3020    { (exit 1); exit 1; }; }
3021       ;;
3022   esac
3023
3024 else
3025   with_perl=no
3026
3027 fi;
3028
3029 echo "$as_me:$LINENO: result: $with_perl" >&5
3030 echo "${ECHO_T}$with_perl" >&6
3031
3032
3033 #
3034 # Optionally build Python modules (PL/Python)
3035 #
3036 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3037 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3038
3039
3040
3041 # Check whether --with-python or --without-python was given.
3042 if test "${with_python+set}" = set; then
3043   withval="$with_python"
3044
3045   case $withval in
3046     yes)
3047       :
3048       ;;
3049     no)
3050       :
3051       ;;
3052     *)
3053       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3054 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3055    { (exit 1); exit 1; }; }
3056       ;;
3057   esac
3058
3059 else
3060   with_python=no
3061
3062 fi;
3063
3064 echo "$as_me:$LINENO: result: $with_python" >&5
3065 echo "${ECHO_T}$with_python" >&6
3066
3067
3068 #
3069 # Optionally build the Java/JDBC tools
3070 #
3071 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3072 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3073
3074
3075
3076 # Check whether --with-java or --without-java was given.
3077 if test "${with_java+set}" = set; then
3078   withval="$with_java"
3079
3080   case $withval in
3081     yes)
3082       echo "$as_me:$LINENO: result: yes" >&5
3083 echo "${ECHO_T}yes" >&6
3084
3085   for ac_prog in jakarta-ant ant ant.sh ant.bat
3086 do
3087   # Extract the first word of "$ac_prog", so it can be a program name with args.
3088 set dummy $ac_prog; ac_word=$2
3089 echo "$as_me:$LINENO: checking for $ac_word" >&5
3090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3091 if test "${ac_cv_path_ANT+set}" = set; then
3092   echo $ECHO_N "(cached) $ECHO_C" >&6
3093 else
3094   case $ANT in
3095   [\\/]* | ?:[\\/]*)
3096   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3097   ;;
3098   *)
3099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH
3101 do
3102   IFS=$as_save_IFS
3103   test -z "$as_dir" && as_dir=.
3104   for ac_exec_ext in '' $ac_executable_extensions; do
3105   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3108     break 2
3109   fi
3110 done
3111 done
3112
3113   ;;
3114 esac
3115 fi
3116 ANT=$ac_cv_path_ANT
3117
3118 if test -n "$ANT"; then
3119   echo "$as_me:$LINENO: result: $ANT" >&5
3120 echo "${ECHO_T}$ANT" >&6
3121 else
3122   echo "$as_me:$LINENO: result: no" >&5
3123 echo "${ECHO_T}no" >&6
3124 fi
3125
3126   test -n "$ANT" && break
3127 done
3128
3129
3130   echo "$as_me:$LINENO: checking whether $ANT works" >&5
3131 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3132 if test "${pgac_cv_prog_ant_works+set}" = set; then
3133   echo $ECHO_N "(cached) $ECHO_C" >&6
3134 else
3135
3136     cat > conftest.java << EOF
3137 public class conftest {
3138     int testmethod(int a, int b) {
3139         return a + b;
3140     }
3141 }
3142 EOF
3143
3144     cat > conftest.xml << EOF
3145 <project name="conftest" default="conftest">
3146  <target name="conftest">
3147   <javac srcdir="." includes="conftest.java">
3148   </javac>
3149  </target>
3150 </project>
3151 EOF
3152
3153     pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3154     { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3155   (eval $pgac_cmd) 2>&5
3156   ac_status=$?
3157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); }
3159     pgac_save_status=$?
3160     if test $? = 0 && test -f ./conftest.class ; then
3161       pgac_cv_prog_ant_works=yes
3162     else
3163       echo "configure: failed java program was:" >&5
3164       cat conftest.java >&5
3165       echo "configure: failed build file was:" >&5
3166       cat conftest.xml >&5
3167       pgac_cv_prog_ant_works=no
3168     fi
3169
3170     rm -f conftest* core core.* *.core
3171
3172 fi
3173 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3174 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3175
3176   if test "$pgac_cv_prog_ant_works" != yes; then
3177     { { echo "$as_me:$LINENO: error: ant does not work" >&5
3178 echo "$as_me: error: ant does not work" >&2;}
3179    { (exit 1); exit 1; }; }
3180   fi
3181
3182
3183 if test -z "$ANT"; then
3184   { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3185 If you have Ant already installed, see config.log for details on the failure." >&5
3186 echo "$as_me: error: Ant is required to build Java components
3187 If you have Ant already installed, see config.log for details on the failure." >&2;}
3188    { (exit 1); exit 1; }; }
3189 fi
3190 if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3191   { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3192 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3193    { (exit 1); exit 1; }; }
3194 fi
3195       ;;
3196     no)
3197       echo "$as_me:$LINENO: result: no" >&5
3198 echo "${ECHO_T}no" >&6
3199       ;;
3200     *)
3201       { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3202 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3203    { (exit 1); exit 1; }; }
3204       ;;
3205   esac
3206
3207 else
3208   with_java=no
3209 echo "$as_me:$LINENO: result: no" >&5
3210 echo "${ECHO_T}no" >&6
3211 fi;
3212
3213
3214
3215
3216 #
3217 # Kerberos 4
3218 #
3219 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3220 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3221
3222
3223
3224 # Check whether --with-krb4 or --without-krb4 was given.
3225 if test "${with_krb4+set}" = set; then
3226   withval="$with_krb4"
3227
3228   case $withval in
3229     yes)
3230       krb4_prefix=/usr/athena
3231       ;;
3232     no)
3233       :
3234       ;;
3235     *)
3236       with_krb4=yes
3237 krb4_prefix=$withval
3238       ;;
3239   esac
3240
3241 else
3242   with_krb4=no
3243 fi;
3244
3245
3246 if test "$with_krb4" = yes; then
3247
3248   echo "$as_me:$LINENO: result: yes" >&5
3249 echo "${ECHO_T}yes" >&6
3250
3251 cat >>confdefs.h <<\_ACEOF
3252 #define KRB4 1
3253 _ACEOF
3254
3255
3256   if test -d "$krb4_prefix/include"; then
3257     INCLUDES="$INCLUDES -I$krb4_prefix/include"
3258   fi
3259   if test -d "$krb4_prefix/lib"; then
3260     LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3261   fi
3262
3263   krb_srvtab="/etc/srvtab"
3264
3265 else
3266   echo "$as_me:$LINENO: result: no" >&5
3267 echo "${ECHO_T}no" >&6
3268 fi
3269
3270
3271
3272
3273
3274 #
3275 # Kerberos 5
3276 #
3277 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3278 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3279
3280
3281
3282 # Check whether --with-krb5 or --without-krb5 was given.
3283 if test "${with_krb5+set}" = set; then
3284   withval="$with_krb5"
3285
3286   case $withval in
3287     yes)
3288       krb5_prefix=/usr/athena
3289       ;;
3290     no)
3291       :
3292       ;;
3293     *)
3294       with_krb5=yes
3295 krb5_prefix=$withval
3296       ;;
3297   esac
3298
3299 else
3300   with_krb5=no
3301 fi;
3302
3303
3304 if test "$with_krb5" = yes; then
3305
3306   echo "$as_me:$LINENO: result: yes" >&5
3307 echo "${ECHO_T}yes" >&6
3308
3309 cat >>confdefs.h <<\_ACEOF
3310 #define KRB5 1
3311 _ACEOF
3312
3313
3314   if test -d "$krb5_prefix/include"; then
3315     INCLUDES="$INCLUDES -I$krb5_prefix/include"
3316   fi
3317   if test -d "$krb5_prefix/lib"; then
3318     LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3319   fi
3320
3321   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3322
3323 else
3324   echo "$as_me:$LINENO: result: no" >&5
3325 echo "${ECHO_T}no" >&6
3326 fi
3327
3328
3329
3330
3331
3332 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3333 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3334   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3335 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3336    { (exit 1); exit 1; }; }
3337 fi
3338
3339
3340
3341
3342 #
3343 # Kerberos configuration parameters
3344 #
3345
3346
3347
3348 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3349 if test "${with_krb_srvnam+set}" = set; then
3350   withval="$with_krb_srvnam"
3351
3352   case $withval in
3353     yes)
3354       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3355 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3356    { (exit 1); exit 1; }; }
3357       ;;
3358     no)
3359       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3360 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3361    { (exit 1); exit 1; }; }
3362       ;;
3363     *)
3364
3365       ;;
3366   esac
3367
3368 else
3369   with_krb_srvnam="postgres"
3370 fi;
3371
3372
3373 cat >>confdefs.h <<_ACEOF
3374 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3375 _ACEOF
3376
3377
3378
3379 #
3380 # PAM
3381 #
3382 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3383 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3384
3385
3386
3387 # Check whether --with-pam or --without-pam was given.
3388 if test "${with_pam+set}" = set; then
3389   withval="$with_pam"
3390
3391   case $withval in
3392     yes)
3393
3394 cat >>confdefs.h <<\_ACEOF
3395 #define USE_PAM 1
3396 _ACEOF
3397
3398       ;;
3399     no)
3400       :
3401       ;;
3402     *)
3403       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3404 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3405    { (exit 1); exit 1; }; }
3406       ;;
3407   esac
3408
3409 else
3410   with_pam=no
3411
3412 fi;
3413
3414 echo "$as_me:$LINENO: result: $with_pam" >&5
3415 echo "${ECHO_T}$with_pam" >&6
3416
3417
3418
3419 #
3420 # Rendezvous
3421 #
3422 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3423 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3424
3425
3426
3427 # Check whether --with-rendezvous or --without-rendezvous was given.
3428 if test "${with_rendezvous+set}" = set; then
3429   withval="$with_rendezvous"
3430
3431   case $withval in
3432     yes)
3433
3434 cat >>confdefs.h <<\_ACEOF
3435 #define USE_RENDEZVOUS 1
3436 _ACEOF
3437
3438       ;;
3439     no)
3440       :
3441       ;;
3442     *)
3443       { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3444 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3445    { (exit 1); exit 1; }; }
3446       ;;
3447   esac
3448
3449 else
3450   with_rendezvous=no
3451
3452 fi;
3453
3454 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3455 echo "${ECHO_T}$with_rendezvous" >&6
3456
3457
3458
3459 #
3460 # OpenSSL
3461 #
3462
3463
3464
3465 # Check whether --with-openssl or --without-openssl was given.
3466 if test "${with_openssl+set}" = set; then
3467   withval="$with_openssl"
3468
3469   case $withval in
3470     yes)
3471       openssl_prefix=/usr/local/ssl
3472       ;;
3473     no)
3474       :
3475       ;;
3476     *)
3477       with_openssl=yes
3478 openssl_prefix=$withval
3479       ;;
3480   esac
3481
3482 else
3483   with_openssl=no
3484 fi;
3485
3486
3487 if test "$with_openssl" = yes; then
3488
3489   echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3490 echo "${ECHO_T}building with OpenSSL support" >&6
3491
3492 cat >>confdefs.h <<\_ACEOF
3493 #define USE_SSL 1
3494 _ACEOF
3495
3496
3497   if test -d "${openssl_prefix}/include" ; then
3498     INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3499   fi
3500   if test -d "${openssl_prefix}/lib" ; then
3501     LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3502   fi
3503
3504 fi
3505
3506
3507
3508
3509
3510 #
3511 # Readline
3512 #
3513
3514
3515
3516 # Check whether --with-readline or --without-readline was given.
3517 if test "${with_readline+set}" = set; then
3518   withval="$with_readline"
3519
3520   case $withval in
3521     yes)
3522       :
3523       ;;
3524     no)
3525       :
3526       ;;
3527     *)
3528       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3529 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3530    { (exit 1); exit 1; }; }
3531       ;;
3532   esac
3533
3534 else
3535   with_readline=yes
3536
3537 fi;
3538
3539
3540 #
3541 # Zlib
3542 #
3543
3544
3545
3546 # Check whether --with-zlib or --without-zlib was given.
3547 if test "${with_zlib+set}" = set; then
3548   withval="$with_zlib"
3549
3550   case $withval in
3551     yes)
3552       :
3553       ;;
3554     no)
3555       :
3556       ;;
3557     *)
3558       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3559 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3560    { (exit 1); exit 1; }; }
3561       ;;
3562   esac
3563
3564 else
3565   with_zlib=yes
3566
3567 fi;
3568
3569
3570 #
3571 # Elf
3572 #
3573
3574 # Assume system is ELF if it predefines __ELF__ as 1,
3575 # otherwise believe host_os based default.
3576 case $host_os in
3577     freebsd1*|freebsd2*) elf=no;;
3578     freebsd3*|freebsd4*) elf=yes;;
3579 esac
3580
3581
3582 cat >conftest.$ac_ext <<_ACEOF
3583 #line $LINENO "configure"
3584 #include "confdefs.h"
3585 #if __ELF__
3586   yes
3587 #endif
3588
3589 _ACEOF
3590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3591   egrep "yes" >/dev/null 2>&1; then
3592   ELF_SYS=true
3593 else
3594   if test "X$elf" = "Xyes" ; then
3595   ELF_SYS=true
3596 else
3597   ELF_SYS=
3598 fi
3599 fi
3600 rm -f conftest*
3601
3602
3603
3604 #
3605 # Assignments
3606 #
3607
3608 CPPFLAGS="$CPPFLAGS $INCLUDES"
3609 LDFLAGS="$LDFLAGS $LIBDIRS"
3610
3611 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3612 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3613 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3614 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3615
3616
3617 for ac_prog in gawk mawk nawk awk
3618 do
3619   # Extract the first word of "$ac_prog", so it can be a program name with args.
3620 set dummy $ac_prog; ac_word=$2
3621 echo "$as_me:$LINENO: checking for $ac_word" >&5
3622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3623 if test "${ac_cv_prog_AWK+set}" = set; then
3624   echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626   if test -n "$AWK"; then
3627   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3628 else
3629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 for as_dir in $PATH
3631 do
3632   IFS=$as_save_IFS
3633   test -z "$as_dir" && as_dir=.
3634   for ac_exec_ext in '' $ac_executable_extensions; do
3635   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3636     ac_cv_prog_AWK="$ac_prog"
3637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3638     break 2
3639   fi
3640 done
3641 done
3642
3643 fi
3644 fi
3645 AWK=$ac_cv_prog_AWK
3646 if test -n "$AWK"; then
3647   echo "$as_me:$LINENO: result: $AWK" >&5
3648 echo "${ECHO_T}$AWK" >&6
3649 else
3650   echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6
3652 fi
3653
3654   test -n "$AWK" && break
3655 done
3656
3657 echo "$as_me:$LINENO: checking for flex" >&5
3658 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3659 if test "${pgac_cv_path_flex+set}" = set; then
3660   echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662   # Let the user override the test
3663 if test -n "$FLEX"; then
3664   pgac_cv_path_flex=$FLEX
3665 else
3666   pgac_save_IFS=$IFS
3667   IFS=:
3668   for pgac_dir in $PATH; do
3669     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3670       pgac_dir=`pwd`
3671     fi
3672     for pgac_prog in flex lex; do
3673       pgac_candidate="$pgac_dir/$pgac_prog"
3674       if test -f "$pgac_candidate" \
3675         && $pgac_candidate --version </dev/null >/dev/null 2>&1
3676       then
3677         echo '%%'  > conftest.l
3678         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3679           if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3680             pgac_broken_flex=$pgac_candidate
3681             continue
3682           fi
3683
3684           pgac_cv_path_flex=$pgac_candidate
3685           break 2
3686         fi
3687       fi
3688     done
3689   done
3690   IFS=$pgac_save_IFS
3691   rm -f conftest.l
3692   : ${pgac_cv_path_flex=no}
3693 fi
3694
3695 fi
3696 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3697 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3698 if test x"$pgac_cv_path_flex" = x"no"; then
3699   if test -n "$pgac_broken_flex"; then
3700     { echo "$as_me:$LINENO: WARNING:
3701 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3702 *** should get version 2.5.4 or later." >&5
3703 echo "$as_me: WARNING:
3704 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3705 *** should get version 2.5.4 or later." >&2;}
3706   fi
3707
3708   { echo "$as_me:$LINENO: WARNING:
3709 *** Without Flex you will not be able to build PostgreSQL from CVS or
3710 *** change any of the scanner definition files.  You can obtain Flex from
3711 *** a GNU mirror site.  (If you are using the official distribution of
3712 *** PostgreSQL then you do not need to worry about this because the Flex
3713 *** output is pre-generated.)" >&5
3714 echo "$as_me: WARNING:
3715 *** Without Flex you will not be able to build PostgreSQL from CVS or
3716 *** change any of the scanner definition files.  You can obtain Flex from
3717 *** a GNU mirror site.  (If you are using the official distribution of
3718 *** PostgreSQL then you do not need to worry about this because the Flex
3719 *** output is pre-generated.)" >&2;}
3720 fi
3721
3722 if test x"$pgac_cv_path_flex" = x"no"; then
3723   FLEX=
3724 else
3725   FLEX=$pgac_cv_path_flex
3726 fi
3727
3728
3729
3730
3731 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3732 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3733 LN_S=$as_ln_s
3734 if test "$LN_S" = "ln -s"; then
3735   echo "$as_me:$LINENO: result: yes" >&5
3736 echo "${ECHO_T}yes" >&6
3737 else
3738   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3739 echo "${ECHO_T}no, using $LN_S" >&6
3740 fi
3741
3742
3743 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3744 if test "${with_gnu_ld+set}" = set; then
3745   withval="$with_gnu_ld"
3746   test "$withval" = no || with_gnu_ld=yes
3747 else
3748   with_gnu_ld=no
3749 fi;
3750 ac_prog=ld
3751 if test "$GCC" = yes; then
3752   # Check if gcc -print-prog-name=ld gives a path.
3753   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3754 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3755   case $host in
3756   *-*-mingw*)
3757     # gcc leaves a trailing carriage return which upsets mingw
3758     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3759   *)
3760     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3761   esac
3762   case "$ac_prog" in
3763     # Accept absolute paths.
3764     [\\/]* | [A-Za-z]:[\\/]*)
3765       re_direlt='/[^/][^/]*/\.\./'
3766       # Canonicalize the path of ld
3767       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3768       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3769         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3770       done
3771       test -z "$LD" && LD="$ac_prog"
3772       ;;
3773   "")
3774     # If it fails, then pretend we aren't using GCC.
3775     ac_prog=ld
3776     ;;
3777   *)
3778     # If it is relative, then search for the first ld in PATH.
3779     with_gnu_ld=unknown
3780     ;;
3781   esac
3782 elif test "$with_gnu_ld" = yes; then
3783   echo "$as_me:$LINENO: checking for GNU ld" >&5
3784 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3785 else
3786   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3787 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3788 fi
3789 if test "${ac_cv_path_LD+set}" = set; then
3790   echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792   if test -z "$LD"; then
3793   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3794   for ac_dir in $PATH; do
3795     test -z "$ac_dir" && ac_dir=.
3796     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3797       ac_cv_path_LD="$ac_dir/$ac_prog"
3798       # Check to see if the program is GNU ld.  I'd rather use --version,
3799       # but apparently some GNU ld's only accept -v.
3800       # Break only if it was the GNU/non-GNU ld that we prefer.
3801       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3802         test "$with_gnu_ld" != no && break
3803       else
3804         test "$with_gnu_ld" != yes && break
3805       fi
3806     fi
3807   done
3808   IFS="$ac_save_ifs"
3809 else
3810   ac_cv_path_LD="$LD" # Let the user override the test with a path.
3811 fi
3812 fi
3813
3814 LD="$ac_cv_path_LD"
3815 if test -n "$LD"; then
3816   echo "$as_me:$LINENO: result: $LD" >&5
3817 echo "${ECHO_T}$LD" >&6
3818 else
3819   echo "$as_me:$LINENO: result: no" >&5
3820 echo "${ECHO_T}no" >&6
3821 fi
3822 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3823 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3824    { (exit 1); exit 1; }; }
3825 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3826 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3827 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3828   echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3831 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3832   ac_cv_prog_gnu_ld=yes
3833 else
3834   ac_cv_prog_gnu_ld=no
3835 fi
3836 fi
3837 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3838 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3839 with_gnu_ld=$ac_cv_prog_gnu_ld
3840
3841
3842
3843
3844 case $host_os in sysv5*)
3845   echo "$as_me:$LINENO: checking whether ld -R works" >&5
3846 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3847 if test "${pgac_cv_prog_ld_R+set}" = set; then
3848   echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850
3851     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3852     cat >conftest.$ac_ext <<_ACEOF
3853 #line $LINENO "configure"
3854 #include "confdefs.h"
3855
3856 #ifdef F77_DUMMY_MAIN
3857 #  ifdef __cplusplus
3858      extern "C"
3859 #  endif
3860    int F77_DUMMY_MAIN() { return 1; }
3861 #endif
3862 int
3863 main ()
3864 {
3865
3866   ;
3867   return 0;
3868 }
3869 _ACEOF
3870 rm -f conftest.$ac_objext conftest$ac_exeext
3871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3872   (eval $ac_link) 2>&5
3873   ac_status=$?
3874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875   (exit $ac_status); } &&
3876          { ac_try='test -s conftest$ac_exeext'
3877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878   (eval $ac_try) 2>&5
3879   ac_status=$?
3880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881   (exit $ac_status); }; }; then
3882   pgac_cv_prog_ld_R=yes
3883 else
3884   echo "$as_me: failed program was:" >&5
3885 cat conftest.$ac_ext >&5
3886 pgac_cv_prog_ld_R=no
3887 fi
3888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3889     LDFLAGS=$pgac_save_LDFLAGS
3890
3891 fi
3892 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3893 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3894   ld_R_works=$pgac_cv_prog_ld_R
3895
3896 esac
3897 if test -n "$ac_tool_prefix"; then
3898   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3899 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3900 echo "$as_me:$LINENO: checking for $ac_word" >&5
3901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3902 if test "${ac_cv_prog_RANLIB+set}" = set; then
3903   echo $ECHO_N "(cached) $ECHO_C" >&6
3904 else
3905   if test -n "$RANLIB"; then
3906   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3907 else
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 for as_dir in $PATH
3910 do
3911   IFS=$as_save_IFS
3912   test -z "$as_dir" && as_dir=.
3913   for ac_exec_ext in '' $ac_executable_extensions; do
3914   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3915     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3917     break 2
3918   fi
3919 done
3920 done
3921
3922 fi
3923 fi
3924 RANLIB=$ac_cv_prog_RANLIB
3925 if test -n "$RANLIB"; then
3926   echo "$as_me:$LINENO: result: $RANLIB" >&5
3927 echo "${ECHO_T}$RANLIB" >&6
3928 else
3929   echo "$as_me:$LINENO: result: no" >&5
3930 echo "${ECHO_T}no" >&6
3931 fi
3932
3933 fi
3934 if test -z "$ac_cv_prog_RANLIB"; then
3935   ac_ct_RANLIB=$RANLIB
3936   # Extract the first word of "ranlib", so it can be a program name with args.
3937 set dummy ranlib; ac_word=$2
3938 echo "$as_me:$LINENO: checking for $ac_word" >&5
3939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3940 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3941   echo $ECHO_N "(cached) $ECHO_C" >&6
3942 else
3943   if test -n "$ac_ct_RANLIB"; then
3944   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3945 else
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH
3948 do
3949   IFS=$as_save_IFS
3950   test -z "$as_dir" && as_dir=.
3951   for ac_exec_ext in '' $ac_executable_extensions; do
3952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953     ac_cv_prog_ac_ct_RANLIB="ranlib"
3954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3955     break 2
3956   fi
3957 done
3958 done
3959
3960   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3961 fi
3962 fi
3963 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3964 if test -n "$ac_ct_RANLIB"; then
3965   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3966 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3967 else
3968   echo "$as_me:$LINENO: result: no" >&5
3969 echo "${ECHO_T}no" >&6
3970 fi
3971
3972   RANLIB=$ac_ct_RANLIB
3973 else
3974   RANLIB="$ac_cv_prog_RANLIB"
3975 fi
3976
3977 for ac_prog in lorder
3978 do
3979   # Extract the first word of "$ac_prog", so it can be a program name with args.
3980 set dummy $ac_prog; ac_word=$2
3981 echo "$as_me:$LINENO: checking for $ac_word" >&5
3982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3983 if test "${ac_cv_prog_LORDER+set}" = set; then
3984   echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986   if test -n "$LORDER"; then
3987   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3988 else
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH
3991 do
3992   IFS=$as_save_IFS
3993   test -z "$as_dir" && as_dir=.
3994   for ac_exec_ext in '' $ac_executable_extensions; do
3995   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3996     ac_cv_prog_LORDER="$ac_prog"
3997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3998     break 2
3999   fi
4000 done
4001 done
4002
4003 fi
4004 fi
4005 LORDER=$ac_cv_prog_LORDER
4006 if test -n "$LORDER"; then
4007   echo "$as_me:$LINENO: result: $LORDER" >&5
4008 echo "${ECHO_T}$LORDER" >&6
4009 else
4010   echo "$as_me:$LINENO: result: no" >&5
4011 echo "${ECHO_T}no" >&6
4012 fi
4013
4014   test -n "$LORDER" && break
4015 done
4016
4017 # Extract the first word of "tar", so it can be a program name with args.
4018 set dummy tar; ac_word=$2
4019 echo "$as_me:$LINENO: checking for $ac_word" >&5
4020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4021 if test "${ac_cv_path_TAR+set}" = set; then
4022   echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024   case $TAR in
4025   [\\/]* | ?:[\\/]*)
4026   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4027   ;;
4028   *)
4029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 for as_dir in $PATH
4031 do
4032   IFS=$as_save_IFS
4033   test -z "$as_dir" && as_dir=.
4034   for ac_exec_ext in '' $ac_executable_extensions; do
4035   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4036     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4038     break 2
4039   fi
4040 done
4041 done
4042
4043   ;;
4044 esac
4045 fi
4046 TAR=$ac_cv_path_TAR
4047
4048 if test -n "$TAR"; then
4049   echo "$as_me:$LINENO: result: $TAR" >&5
4050 echo "${ECHO_T}$TAR" >&6
4051 else
4052   echo "$as_me:$LINENO: result: no" >&5
4053 echo "${ECHO_T}no" >&6
4054 fi
4055
4056
4057   if test -n "$ac_tool_prefix"; then
4058   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4059 set dummy ${ac_tool_prefix}strip; ac_word=$2
4060 echo "$as_me:$LINENO: checking for $ac_word" >&5
4061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4062 if test "${ac_cv_prog_STRIP+set}" = set; then
4063   echo $ECHO_N "(cached) $ECHO_C" >&6
4064 else
4065   if test -n "$STRIP"; then
4066   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4067 else
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH
4070 do
4071   IFS=$as_save_IFS
4072   test -z "$as_dir" && as_dir=.
4073   for ac_exec_ext in '' $ac_executable_extensions; do
4074   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4075     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4077     break 2
4078   fi
4079 done
4080 done
4081
4082 fi
4083 fi
4084 STRIP=$ac_cv_prog_STRIP
4085 if test -n "$STRIP"; then
4086   echo "$as_me:$LINENO: result: $STRIP" >&5
4087 echo "${ECHO_T}$STRIP" >&6
4088 else
4089   echo "$as_me:$LINENO: result: no" >&5
4090 echo "${ECHO_T}no" >&6
4091 fi
4092
4093 fi
4094 if test -z "$ac_cv_prog_STRIP"; then
4095   ac_ct_STRIP=$STRIP
4096   # Extract the first word of "strip", so it can be a program name with args.
4097 set dummy strip; ac_word=$2
4098 echo "$as_me:$LINENO: checking for $ac_word" >&5
4099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4100 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4101   echo $ECHO_N "(cached) $ECHO_C" >&6
4102 else
4103   if test -n "$ac_ct_STRIP"; then
4104   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4105 else
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 for as_dir in $PATH
4108 do
4109   IFS=$as_save_IFS
4110   test -z "$as_dir" && as_dir=.
4111   for ac_exec_ext in '' $ac_executable_extensions; do
4112   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4113     ac_cv_prog_ac_ct_STRIP="strip"
4114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4115     break 2
4116   fi
4117 done
4118 done
4119
4120   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4121 fi
4122 fi
4123 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4124 if test -n "$ac_ct_STRIP"; then
4125   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4126 echo "${ECHO_T}$ac_ct_STRIP" >&6
4127 else
4128   echo "$as_me:$LINENO: result: no" >&5
4129 echo "${ECHO_T}no" >&6
4130 fi
4131
4132   STRIP=$ac_ct_STRIP
4133 else
4134   STRIP="$ac_cv_prog_STRIP"
4135 fi
4136
4137
4138   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4139 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4140   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4141     STRIP_STATIC_LIB="$STRIP -x"
4142     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4143     echo "$as_me:$LINENO: result: yes" >&5
4144 echo "${ECHO_T}yes" >&6
4145   else
4146     STRIP_STATIC_LIB=:
4147     STRIP_SHARED_LIB=:
4148     echo "$as_me:$LINENO: result: no" >&5
4149 echo "${ECHO_T}no" >&6
4150   fi
4151
4152
4153
4154
4155 for ac_prog in 'bison -y'
4156 do
4157   # Extract the first word of "$ac_prog", so it can be a program name with args.
4158 set dummy $ac_prog; ac_word=$2
4159 echo "$as_me:$LINENO: checking for $ac_word" >&5
4160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4161 if test "${ac_cv_prog_YACC+set}" = set; then
4162   echo $ECHO_N "(cached) $ECHO_C" >&6
4163 else
4164   if test -n "$YACC"; then
4165   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4166 else
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH
4169 do
4170   IFS=$as_save_IFS
4171   test -z "$as_dir" && as_dir=.
4172   for ac_exec_ext in '' $ac_executable_extensions; do
4173   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174     ac_cv_prog_YACC="$ac_prog"
4175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4176     break 2
4177   fi
4178 done
4179 done
4180
4181 fi
4182 fi
4183 YACC=$ac_cv_prog_YACC
4184 if test -n "$YACC"; then
4185   echo "$as_me:$LINENO: result: $YACC" >&5
4186 echo "${ECHO_T}$YACC" >&6
4187 else
4188   echo "$as_me:$LINENO: result: no" >&5
4189 echo "${ECHO_T}no" >&6
4190 fi
4191
4192   test -n "$YACC" && break
4193 done
4194
4195
4196 if test "$YACC"; then
4197   if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4198     { echo "$as_me:$LINENO: WARNING:
4199 *** The installed version of Bison is too old.  PostgreSQL needs
4200 *** Bison version 1.875 or later." >&5
4201 echo "$as_me: WARNING:
4202 *** The installed version of Bison is too old.  PostgreSQL needs
4203 *** Bison version 1.875 or later." >&2;}
4204   fi
4205 fi
4206
4207 if test -z "$YACC"; then
4208   { echo "$as_me:$LINENO: WARNING:
4209 *** Without Bison you will not be able to build PostgreSQL from CVS or
4210 *** change any of the parser definition files.  You can obtain Bison from
4211 *** a GNU mirror site.  (If you are using the official distribution of
4212 *** PostgreSQL then you do not need to worry about this because the Bison
4213 *** output is pre-generated.)  To use a different yacc program (possible,
4214 *** but not recommended), set the environment variable YACC before running
4215 *** 'configure'." >&5
4216 echo "$as_me: WARNING:
4217 *** Without Bison you will not be able to build PostgreSQL from CVS or
4218 *** change any of the parser definition files.  You can obtain Bison from
4219 *** a GNU mirror site.  (If you are using the official distribution of
4220 *** PostgreSQL then you do not need to worry about this because the Bison
4221 *** output is pre-generated.)  To use a different yacc program (possible,
4222 *** but not recommended), set the environment variable YACC before running
4223 *** 'configure'." >&2;}
4224 fi
4225
4226
4227 # Extract the first word of "perl", so it can be a program name with args.
4228 set dummy perl; ac_word=$2
4229 echo "$as_me:$LINENO: checking for $ac_word" >&5
4230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4231 if test "${ac_cv_path_PERL+set}" = set; then
4232   echo $ECHO_N "(cached) $ECHO_C" >&6
4233 else
4234   case $PERL in
4235   [\\/]* | ?:[\\/]*)
4236   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4237   ;;
4238   *)
4239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 for as_dir in $PATH
4241 do
4242   IFS=$as_save_IFS
4243   test -z "$as_dir" && as_dir=.
4244   for ac_exec_ext in '' $ac_executable_extensions; do
4245   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4246     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4248     break 2
4249   fi
4250 done
4251 done
4252
4253   ;;
4254 esac
4255 fi
4256 PERL=$ac_cv_path_PERL
4257
4258 if test -n "$PERL"; then
4259   echo "$as_me:$LINENO: result: $PERL" >&5
4260 echo "${ECHO_T}$PERL" >&6
4261 else
4262   echo "$as_me:$LINENO: result: no" >&5
4263 echo "${ECHO_T}no" >&6
4264 fi
4265
4266 if test "$with_perl" = yes; then
4267
4268 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4269 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4270 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4271 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4272 echo "${ECHO_T}$perl_archlibexp" >&6
4273 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4274 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4275 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4276 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4277 echo "${ECHO_T}$perl_privlibexp" >&6
4278 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4279 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4280 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4281 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4282 echo "${ECHO_T}$perl_useshrplib" >&6
4283
4284 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4285 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4286 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4287 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4288 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4289 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4290 echo "${ECHO_T}$perl_embed_ldflags" >&6
4291 fi
4292
4293 if test "$with_python" = yes; then
4294   # Extract the first word of "python", so it can be a program name with args.
4295 set dummy python; ac_word=$2
4296 echo "$as_me:$LINENO: checking for $ac_word" >&5
4297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4298 if test "${ac_cv_path_PYTHON+set}" = set; then
4299   echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301   case $PYTHON in
4302   [\\/]* | ?:[\\/]*)
4303   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4304   ;;
4305   *)
4306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 for as_dir in $PATH
4308 do
4309   IFS=$as_save_IFS
4310   test -z "$as_dir" && as_dir=.
4311   for ac_exec_ext in '' $ac_executable_extensions; do
4312   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4313     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4315     break 2
4316   fi
4317 done
4318 done
4319
4320   ;;
4321 esac
4322 fi
4323 PYTHON=$ac_cv_path_PYTHON
4324
4325 if test -n "$PYTHON"; then
4326   echo "$as_me:$LINENO: result: $PYTHON" >&5
4327 echo "${ECHO_T}$PYTHON" >&6
4328 else
4329   echo "$as_me:$LINENO: result: no" >&5
4330 echo "${ECHO_T}no" >&6
4331 fi
4332
4333 if test x"$PYTHON" = x""; then
4334   { { echo "$as_me:$LINENO: error: Python not found" >&5
4335 echo "$as_me: error: Python not found" >&2;}
4336    { (exit 1); exit 1; }; }
4337 fi
4338
4339
4340 echo "$as_me:$LINENO: checking Python installation directories" >&5
4341 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4342 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4343 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4344 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4345 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4346 python_includespec="-I${python_prefix}/include/python${python_version}"
4347 if test "$python_prefix" != "$python_execprefix"; then
4348   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4349 fi
4350
4351 # This should be enough of a message.
4352 if test "$python_prefix" != "$python_execprefix"; then
4353   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4354 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4355 else
4356   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4357 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4358 fi
4359
4360
4361 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4362 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4363
4364 if test ! -f "$python_configdir/Makefile"; then
4365   echo "$as_me:$LINENO: result: no" >&5
4366 echo "${ECHO_T}no" >&6
4367   { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4368 echo "$as_me: error: Python Makefile not found" >&2;}
4369    { (exit 1); exit 1; }; }
4370 fi
4371
4372 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4373 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4374 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4375 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4376 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4377
4378 pgac_tab="      " # tab character
4379 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"`
4380
4381 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4382 echo "${ECHO_T}${python_libspec}" >&6
4383
4384
4385 fi
4386
4387
4388 ##
4389 ## Libraries
4390 ##
4391
4392 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4393 then
4394
4395 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4396 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4397 if test "${ac_cv_lib_bsd_main+set}" = set; then
4398   echo $ECHO_N "(cached) $ECHO_C" >&6
4399 else
4400   ac_check_lib_save_LIBS=$LIBS
4401 LIBS="-lbsd  $LIBS"
4402 cat >conftest.$ac_ext <<_ACEOF
4403 #line $LINENO "configure"
4404 #include "confdefs.h"
4405
4406
4407 #ifdef F77_DUMMY_MAIN
4408 #  ifdef __cplusplus
4409      extern "C"
4410 #  endif
4411    int F77_DUMMY_MAIN() { return 1; }
4412 #endif
4413 int
4414 main ()
4415 {
4416 main ();
4417   ;
4418   return 0;
4419 }
4420 _ACEOF
4421 rm -f conftest.$ac_objext conftest$ac_exeext
4422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4423   (eval $ac_link) 2>&5
4424   ac_status=$?
4425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426   (exit $ac_status); } &&
4427          { ac_try='test -s conftest$ac_exeext'
4428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429   (eval $ac_try) 2>&5
4430   ac_status=$?
4431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432   (exit $ac_status); }; }; then
4433   ac_cv_lib_bsd_main=yes
4434 else
4435   echo "$as_me: failed program was:" >&5
4436 cat conftest.$ac_ext >&5
4437 ac_cv_lib_bsd_main=no
4438 fi
4439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4440 LIBS=$ac_check_lib_save_LIBS
4441 fi
4442 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4443 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4444 if test $ac_cv_lib_bsd_main = yes; then
4445   cat >>confdefs.h <<_ACEOF
4446 #define HAVE_LIBBSD 1
4447 _ACEOF
4448
4449   LIBS="-lbsd $LIBS"
4450
4451 fi
4452
4453 fi
4454
4455 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4456 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4457 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4458   echo $ECHO_N "(cached) $ECHO_C" >&6
4459 else
4460   ac_check_lib_save_LIBS=$LIBS
4461 LIBS="-lutil  $LIBS"
4462 cat >conftest.$ac_ext <<_ACEOF
4463 #line $LINENO "configure"
4464 #include "confdefs.h"
4465
4466 /* Override any gcc2 internal prototype to avoid an error.  */
4467 #ifdef __cplusplus
4468 extern "C"
4469 #endif
4470 /* We use char because int might match the return type of a gcc2
4471    builtin and then its argument prototype would still apply.  */
4472 char setproctitle ();
4473 #ifdef F77_DUMMY_MAIN
4474 #  ifdef __cplusplus
4475      extern "C"
4476 #  endif
4477    int F77_DUMMY_MAIN() { return 1; }
4478 #endif
4479 int
4480 main ()
4481 {
4482 setproctitle ();
4483   ;
4484   return 0;
4485 }
4486 _ACEOF
4487 rm -f conftest.$ac_objext conftest$ac_exeext
4488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4489   (eval $ac_link) 2>&5
4490   ac_status=$?
4491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492   (exit $ac_status); } &&
4493          { ac_try='test -s conftest$ac_exeext'
4494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495   (eval $ac_try) 2>&5
4496   ac_status=$?
4497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498   (exit $ac_status); }; }; then
4499   ac_cv_lib_util_setproctitle=yes
4500 else
4501   echo "$as_me: failed program was:" >&5
4502 cat conftest.$ac_ext >&5
4503 ac_cv_lib_util_setproctitle=no
4504 fi
4505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4506 LIBS=$ac_check_lib_save_LIBS
4507 fi
4508 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4509 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4510 if test $ac_cv_lib_util_setproctitle = yes; then
4511   cat >>confdefs.h <<_ACEOF
4512 #define HAVE_LIBUTIL 1
4513 _ACEOF
4514
4515   LIBS="-lutil $LIBS"
4516
4517 fi
4518
4519
4520 echo "$as_me:$LINENO: checking for main in -lm" >&5
4521 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4522 if test "${ac_cv_lib_m_main+set}" = set; then
4523   echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525   ac_check_lib_save_LIBS=$LIBS
4526 LIBS="-lm  $LIBS"
4527 cat >conftest.$ac_ext <<_ACEOF
4528 #line $LINENO "configure"
4529 #include "confdefs.h"
4530
4531
4532 #ifdef F77_DUMMY_MAIN
4533 #  ifdef __cplusplus
4534      extern "C"
4535 #  endif
4536    int F77_DUMMY_MAIN() { return 1; }
4537 #endif
4538 int
4539 main ()
4540 {
4541 main ();
4542   ;
4543   return 0;
4544 }
4545 _ACEOF
4546 rm -f conftest.$ac_objext conftest$ac_exeext
4547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4548   (eval $ac_link) 2>&5
4549   ac_status=$?
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); } &&
4552          { ac_try='test -s conftest$ac_exeext'
4553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554   (eval $ac_try) 2>&5
4555   ac_status=$?
4556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557   (exit $ac_status); }; }; then
4558   ac_cv_lib_m_main=yes
4559 else
4560   echo "$as_me: failed program was:" >&5
4561 cat conftest.$ac_ext >&5
4562 ac_cv_lib_m_main=no
4563 fi
4564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4565 LIBS=$ac_check_lib_save_LIBS
4566 fi
4567 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4568 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4569 if test $ac_cv_lib_m_main = yes; then
4570   cat >>confdefs.h <<_ACEOF
4571 #define HAVE_LIBM 1
4572 _ACEOF
4573
4574   LIBS="-lm $LIBS"
4575
4576 fi
4577
4578
4579 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4580 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4581 if test "${ac_cv_lib_dl_main+set}" = set; then
4582   echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584   ac_check_lib_save_LIBS=$LIBS
4585 LIBS="-ldl  $LIBS"
4586 cat >conftest.$ac_ext <<_ACEOF
4587 #line $LINENO "configure"
4588 #include "confdefs.h"
4589
4590
4591 #ifdef F77_DUMMY_MAIN
4592 #  ifdef __cplusplus
4593      extern "C"
4594 #  endif
4595    int F77_DUMMY_MAIN() { return 1; }
4596 #endif
4597 int
4598 main ()
4599 {
4600 main ();
4601   ;
4602   return 0;
4603 }
4604 _ACEOF
4605 rm -f conftest.$ac_objext conftest$ac_exeext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4607   (eval $ac_link) 2>&5
4608   ac_status=$?
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); } &&
4611          { ac_try='test -s conftest$ac_exeext'
4612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613   (eval $ac_try) 2>&5
4614   ac_status=$?
4615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616   (exit $ac_status); }; }; then
4617   ac_cv_lib_dl_main=yes
4618 else
4619   echo "$as_me: failed program was:" >&5
4620 cat conftest.$ac_ext >&5
4621 ac_cv_lib_dl_main=no
4622 fi
4623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4624 LIBS=$ac_check_lib_save_LIBS
4625 fi
4626 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4627 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4628 if test $ac_cv_lib_dl_main = yes; then
4629   cat >>confdefs.h <<_ACEOF
4630 #define HAVE_LIBDL 1
4631 _ACEOF
4632
4633   LIBS="-ldl $LIBS"
4634
4635 fi
4636
4637
4638 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4639 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4640 if test "${ac_cv_lib_nsl_main+set}" = set; then
4641   echo $ECHO_N "(cached) $ECHO_C" >&6
4642 else
4643   ac_check_lib_save_LIBS=$LIBS
4644 LIBS="-lnsl  $LIBS"
4645 cat >conftest.$ac_ext <<_ACEOF
4646 #line $LINENO "configure"
4647 #include "confdefs.h"
4648
4649
4650 #ifdef F77_DUMMY_MAIN
4651 #  ifdef __cplusplus
4652      extern "C"
4653 #  endif
4654    int F77_DUMMY_MAIN() { return 1; }
4655 #endif
4656 int
4657 main ()
4658 {
4659 main ();
4660   ;
4661   return 0;
4662 }
4663 _ACEOF
4664 rm -f conftest.$ac_objext conftest$ac_exeext
4665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4666   (eval $ac_link) 2>&5
4667   ac_status=$?
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); } &&
4670          { ac_try='test -s conftest$ac_exeext'
4671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672   (eval $ac_try) 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); }; }; then
4676   ac_cv_lib_nsl_main=yes
4677 else
4678   echo "$as_me: failed program was:" >&5
4679 cat conftest.$ac_ext >&5
4680 ac_cv_lib_nsl_main=no
4681 fi
4682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4683 LIBS=$ac_check_lib_save_LIBS
4684 fi
4685 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4686 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4687 if test $ac_cv_lib_nsl_main = yes; then
4688   cat >>confdefs.h <<_ACEOF
4689 #define HAVE_LIBNSL 1
4690 _ACEOF
4691
4692   LIBS="-lnsl $LIBS"
4693
4694 fi
4695
4696
4697 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4698 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4699 if test "${ac_cv_lib_socket_main+set}" = set; then
4700   echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702   ac_check_lib_save_LIBS=$LIBS
4703 LIBS="-lsocket  $LIBS"
4704 cat >conftest.$ac_ext <<_ACEOF
4705 #line $LINENO "configure"
4706 #include "confdefs.h"
4707
4708
4709 #ifdef F77_DUMMY_MAIN
4710 #  ifdef __cplusplus
4711      extern "C"
4712 #  endif
4713    int F77_DUMMY_MAIN() { return 1; }
4714 #endif
4715 int
4716 main ()
4717 {
4718 main ();
4719   ;
4720   return 0;
4721 }
4722 _ACEOF
4723 rm -f conftest.$ac_objext conftest$ac_exeext
4724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4725   (eval $ac_link) 2>&5
4726   ac_status=$?
4727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728   (exit $ac_status); } &&
4729          { ac_try='test -s conftest$ac_exeext'
4730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731   (eval $ac_try) 2>&5
4732   ac_status=$?
4733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734   (exit $ac_status); }; }; then
4735   ac_cv_lib_socket_main=yes
4736 else
4737   echo "$as_me: failed program was:" >&5
4738 cat conftest.$ac_ext >&5
4739 ac_cv_lib_socket_main=no
4740 fi
4741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4742 LIBS=$ac_check_lib_save_LIBS
4743 fi
4744 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4745 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4746 if test $ac_cv_lib_socket_main = yes; then
4747   cat >>confdefs.h <<_ACEOF
4748 #define HAVE_LIBSOCKET 1
4749 _ACEOF
4750
4751   LIBS="-lsocket $LIBS"
4752
4753 fi
4754
4755
4756 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4757 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4758 if test "${ac_cv_lib_ipc_main+set}" = set; then
4759   echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761   ac_check_lib_save_LIBS=$LIBS
4762 LIBS="-lipc  $LIBS"
4763 cat >conftest.$ac_ext <<_ACEOF
4764 #line $LINENO "configure"
4765 #include "confdefs.h"
4766
4767
4768 #ifdef F77_DUMMY_MAIN
4769 #  ifdef __cplusplus
4770      extern "C"
4771 #  endif
4772    int F77_DUMMY_MAIN() { return 1; }
4773 #endif
4774 int
4775 main ()
4776 {
4777 main ();
4778   ;
4779   return 0;
4780 }
4781 _ACEOF
4782 rm -f conftest.$ac_objext conftest$ac_exeext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4784   (eval $ac_link) 2>&5
4785   ac_status=$?
4786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787   (exit $ac_status); } &&
4788          { ac_try='test -s conftest$ac_exeext'
4789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790   (eval $ac_try) 2>&5
4791   ac_status=$?
4792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793   (exit $ac_status); }; }; then
4794   ac_cv_lib_ipc_main=yes
4795 else
4796   echo "$as_me: failed program was:" >&5
4797 cat conftest.$ac_ext >&5
4798 ac_cv_lib_ipc_main=no
4799 fi
4800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4801 LIBS=$ac_check_lib_save_LIBS
4802 fi
4803 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4804 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4805 if test $ac_cv_lib_ipc_main = yes; then
4806   cat >>confdefs.h <<_ACEOF
4807 #define HAVE_LIBIPC 1
4808 _ACEOF
4809
4810   LIBS="-lipc $LIBS"
4811
4812 fi
4813
4814
4815 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4816 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4817 if test "${ac_cv_lib_IPC_main+set}" = set; then
4818   echo $ECHO_N "(cached) $ECHO_C" >&6
4819 else
4820   ac_check_lib_save_LIBS=$LIBS
4821 LIBS="-lIPC  $LIBS"
4822 cat >conftest.$ac_ext <<_ACEOF
4823 #line $LINENO "configure"
4824 #include "confdefs.h"
4825
4826
4827 #ifdef F77_DUMMY_MAIN
4828 #  ifdef __cplusplus
4829      extern "C"
4830 #  endif
4831    int F77_DUMMY_MAIN() { return 1; }
4832 #endif
4833 int
4834 main ()
4835 {
4836 main ();
4837   ;
4838   return 0;
4839 }
4840 _ACEOF
4841 rm -f conftest.$ac_objext conftest$ac_exeext
4842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4843   (eval $ac_link) 2>&5
4844   ac_status=$?
4845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846   (exit $ac_status); } &&
4847          { ac_try='test -s conftest$ac_exeext'
4848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849   (eval $ac_try) 2>&5
4850   ac_status=$?
4851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852   (exit $ac_status); }; }; then
4853   ac_cv_lib_IPC_main=yes
4854 else
4855   echo "$as_me: failed program was:" >&5
4856 cat conftest.$ac_ext >&5
4857 ac_cv_lib_IPC_main=no
4858 fi
4859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4860 LIBS=$ac_check_lib_save_LIBS
4861 fi
4862 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4863 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4864 if test $ac_cv_lib_IPC_main = yes; then
4865   cat >>confdefs.h <<_ACEOF
4866 #define HAVE_LIBIPC 1
4867 _ACEOF
4868
4869   LIBS="-lIPC $LIBS"
4870
4871 fi
4872
4873
4874 echo "$as_me:$LINENO: checking for main in -llc" >&5
4875 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4876 if test "${ac_cv_lib_lc_main+set}" = set; then
4877   echo $ECHO_N "(cached) $ECHO_C" >&6
4878 else
4879   ac_check_lib_save_LIBS=$LIBS
4880 LIBS="-llc  $LIBS"
4881 cat >conftest.$ac_ext <<_ACEOF
4882 #line $LINENO "configure"
4883 #include "confdefs.h"
4884
4885
4886 #ifdef F77_DUMMY_MAIN
4887 #  ifdef __cplusplus
4888      extern "C"
4889 #  endif
4890    int F77_DUMMY_MAIN() { return 1; }
4891 #endif
4892 int
4893 main ()
4894 {
4895 main ();
4896   ;
4897   return 0;
4898 }
4899 _ACEOF
4900 rm -f conftest.$ac_objext conftest$ac_exeext
4901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4902   (eval $ac_link) 2>&5
4903   ac_status=$?
4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905   (exit $ac_status); } &&
4906          { ac_try='test -s conftest$ac_exeext'
4907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908   (eval $ac_try) 2>&5
4909   ac_status=$?
4910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911   (exit $ac_status); }; }; then
4912   ac_cv_lib_lc_main=yes
4913 else
4914   echo "$as_me: failed program was:" >&5
4915 cat conftest.$ac_ext >&5
4916 ac_cv_lib_lc_main=no
4917 fi
4918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4919 LIBS=$ac_check_lib_save_LIBS
4920 fi
4921 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4922 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4923 if test $ac_cv_lib_lc_main = yes; then
4924   cat >>confdefs.h <<_ACEOF
4925 #define HAVE_LIBLC 1
4926 _ACEOF
4927
4928   LIBS="-llc $LIBS"
4929
4930 fi
4931
4932
4933 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4934 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4935 if test "${ac_cv_lib_dld_main+set}" = set; then
4936   echo $ECHO_N "(cached) $ECHO_C" >&6
4937 else
4938   ac_check_lib_save_LIBS=$LIBS
4939 LIBS="-ldld  $LIBS"
4940 cat >conftest.$ac_ext <<_ACEOF
4941 #line $LINENO "configure"
4942 #include "confdefs.h"
4943
4944
4945 #ifdef F77_DUMMY_MAIN
4946 #  ifdef __cplusplus
4947      extern "C"
4948 #  endif
4949    int F77_DUMMY_MAIN() { return 1; }
4950 #endif
4951 int
4952 main ()
4953 {
4954 main ();
4955   ;
4956   return 0;
4957 }
4958 _ACEOF
4959 rm -f conftest.$ac_objext conftest$ac_exeext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4961   (eval $ac_link) 2>&5
4962   ac_status=$?
4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964   (exit $ac_status); } &&
4965          { ac_try='test -s conftest$ac_exeext'
4966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967   (eval $ac_try) 2>&5
4968   ac_status=$?
4969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970   (exit $ac_status); }; }; then
4971   ac_cv_lib_dld_main=yes
4972 else
4973   echo "$as_me: failed program was:" >&5
4974 cat conftest.$ac_ext >&5
4975 ac_cv_lib_dld_main=no
4976 fi
4977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4978 LIBS=$ac_check_lib_save_LIBS
4979 fi
4980 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4981 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4982 if test $ac_cv_lib_dld_main = yes; then
4983   cat >>confdefs.h <<_ACEOF
4984 #define HAVE_LIBDLD 1
4985 _ACEOF
4986
4987   LIBS="-ldld $LIBS"
4988
4989 fi
4990
4991
4992 echo "$as_me:$LINENO: checking for main in -lld" >&5
4993 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4994 if test "${ac_cv_lib_ld_main+set}" = set; then
4995   echo $ECHO_N "(cached) $ECHO_C" >&6
4996 else
4997   ac_check_lib_save_LIBS=$LIBS
4998 LIBS="-lld  $LIBS"
4999 cat >conftest.$ac_ext <<_ACEOF
5000 #line $LINENO "configure"
5001 #include "confdefs.h"
5002
5003
5004 #ifdef F77_DUMMY_MAIN
5005 #  ifdef __cplusplus
5006      extern "C"
5007 #  endif
5008    int F77_DUMMY_MAIN() { return 1; }
5009 #endif
5010 int
5011 main ()
5012 {
5013 main ();
5014   ;
5015   return 0;
5016 }
5017 _ACEOF
5018 rm -f conftest.$ac_objext conftest$ac_exeext
5019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5020   (eval $ac_link) 2>&5
5021   ac_status=$?
5022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023   (exit $ac_status); } &&
5024          { ac_try='test -s conftest$ac_exeext'
5025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026   (eval $ac_try) 2>&5
5027   ac_status=$?
5028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029   (exit $ac_status); }; }; then
5030   ac_cv_lib_ld_main=yes
5031 else
5032   echo "$as_me: failed program was:" >&5
5033 cat conftest.$ac_ext >&5
5034 ac_cv_lib_ld_main=no
5035 fi
5036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5037 LIBS=$ac_check_lib_save_LIBS
5038 fi
5039 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5040 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5041 if test $ac_cv_lib_ld_main = yes; then
5042   cat >>confdefs.h <<_ACEOF
5043 #define HAVE_LIBLD 1
5044 _ACEOF
5045
5046   LIBS="-lld $LIBS"
5047
5048 fi
5049
5050
5051 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5052 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5053 if test "${ac_cv_lib_compat_main+set}" = set; then
5054   echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056   ac_check_lib_save_LIBS=$LIBS
5057 LIBS="-lcompat  $LIBS"
5058 cat >conftest.$ac_ext <<_ACEOF
5059 #line $LINENO "configure"
5060 #include "confdefs.h"
5061
5062
5063 #ifdef F77_DUMMY_MAIN
5064 #  ifdef __cplusplus
5065      extern "C"
5066 #  endif
5067    int F77_DUMMY_MAIN() { return 1; }
5068 #endif
5069 int
5070 main ()
5071 {
5072 main ();
5073   ;
5074   return 0;
5075 }
5076 _ACEOF
5077 rm -f conftest.$ac_objext conftest$ac_exeext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5079   (eval $ac_link) 2>&5
5080   ac_status=$?
5081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082   (exit $ac_status); } &&
5083          { ac_try='test -s conftest$ac_exeext'
5084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085   (eval $ac_try) 2>&5
5086   ac_status=$?
5087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088   (exit $ac_status); }; }; then
5089   ac_cv_lib_compat_main=yes
5090 else
5091   echo "$as_me: failed program was:" >&5
5092 cat conftest.$ac_ext >&5
5093 ac_cv_lib_compat_main=no
5094 fi
5095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5096 LIBS=$ac_check_lib_save_LIBS
5097 fi
5098 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5099 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5100 if test $ac_cv_lib_compat_main = yes; then
5101   cat >>confdefs.h <<_ACEOF
5102 #define HAVE_LIBCOMPAT 1
5103 _ACEOF
5104
5105   LIBS="-lcompat $LIBS"
5106
5107 fi
5108
5109
5110 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5111 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5112 if test "${ac_cv_lib_BSD_main+set}" = set; then
5113   echo $ECHO_N "(cached) $ECHO_C" >&6
5114 else
5115   ac_check_lib_save_LIBS=$LIBS
5116 LIBS="-lBSD  $LIBS"
5117 cat >conftest.$ac_ext <<_ACEOF
5118 #line $LINENO "configure"
5119 #include "confdefs.h"
5120
5121
5122 #ifdef F77_DUMMY_MAIN
5123 #  ifdef __cplusplus
5124      extern "C"
5125 #  endif
5126    int F77_DUMMY_MAIN() { return 1; }
5127 #endif
5128 int
5129 main ()
5130 {
5131 main ();
5132   ;
5133   return 0;
5134 }
5135 _ACEOF
5136 rm -f conftest.$ac_objext conftest$ac_exeext
5137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5138   (eval $ac_link) 2>&5
5139   ac_status=$?
5140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141   (exit $ac_status); } &&
5142          { ac_try='test -s conftest$ac_exeext'
5143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144   (eval $ac_try) 2>&5
5145   ac_status=$?
5146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147   (exit $ac_status); }; }; then
5148   ac_cv_lib_BSD_main=yes
5149 else
5150   echo "$as_me: failed program was:" >&5
5151 cat conftest.$ac_ext >&5
5152 ac_cv_lib_BSD_main=no
5153 fi
5154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5155 LIBS=$ac_check_lib_save_LIBS
5156 fi
5157 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5158 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5159 if test $ac_cv_lib_BSD_main = yes; then
5160   cat >>confdefs.h <<_ACEOF
5161 #define HAVE_LIBBSD 1
5162 _ACEOF
5163
5164   LIBS="-lBSD $LIBS"
5165
5166 fi
5167
5168
5169 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5170 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5171 if test "${ac_cv_lib_gen_main+set}" = set; then
5172   echo $ECHO_N "(cached) $ECHO_C" >&6
5173 else
5174   ac_check_lib_save_LIBS=$LIBS
5175 LIBS="-lgen  $LIBS"
5176 cat >conftest.$ac_ext <<_ACEOF
5177 #line $LINENO "configure"
5178 #include "confdefs.h"
5179
5180
5181 #ifdef F77_DUMMY_MAIN
5182 #  ifdef __cplusplus
5183      extern "C"
5184 #  endif
5185    int F77_DUMMY_MAIN() { return 1; }
5186 #endif
5187 int
5188 main ()
5189 {
5190 main ();
5191   ;
5192   return 0;
5193 }
5194 _ACEOF
5195 rm -f conftest.$ac_objext conftest$ac_exeext
5196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5197   (eval $ac_link) 2>&5
5198   ac_status=$?
5199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200   (exit $ac_status); } &&
5201          { ac_try='test -s conftest$ac_exeext'
5202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203   (eval $ac_try) 2>&5
5204   ac_status=$?
5205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206   (exit $ac_status); }; }; then
5207   ac_cv_lib_gen_main=yes
5208 else
5209   echo "$as_me: failed program was:" >&5
5210 cat conftest.$ac_ext >&5
5211 ac_cv_lib_gen_main=no
5212 fi
5213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5214 LIBS=$ac_check_lib_save_LIBS
5215 fi
5216 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5217 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5218 if test $ac_cv_lib_gen_main = yes; then
5219   cat >>confdefs.h <<_ACEOF
5220 #define HAVE_LIBGEN 1
5221 _ACEOF
5222
5223   LIBS="-lgen $LIBS"
5224
5225 fi
5226
5227
5228 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5229 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5230 if test "${ac_cv_lib_PW_main+set}" = set; then
5231   echo $ECHO_N "(cached) $ECHO_C" >&6
5232 else
5233   ac_check_lib_save_LIBS=$LIBS
5234 LIBS="-lPW  $LIBS"
5235 cat >conftest.$ac_ext <<_ACEOF
5236 #line $LINENO "configure"
5237 #include "confdefs.h"
5238
5239
5240 #ifdef F77_DUMMY_MAIN
5241 #  ifdef __cplusplus
5242      extern "C"
5243 #  endif
5244    int F77_DUMMY_MAIN() { return 1; }
5245 #endif
5246 int
5247 main ()
5248 {
5249 main ();
5250   ;
5251   return 0;
5252 }
5253 _ACEOF
5254 rm -f conftest.$ac_objext conftest$ac_exeext
5255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5256   (eval $ac_link) 2>&5
5257   ac_status=$?
5258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259   (exit $ac_status); } &&
5260          { ac_try='test -s conftest$ac_exeext'
5261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262   (eval $ac_try) 2>&5
5263   ac_status=$?
5264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265   (exit $ac_status); }; }; then
5266   ac_cv_lib_PW_main=yes
5267 else
5268   echo "$as_me: failed program was:" >&5
5269 cat conftest.$ac_ext >&5
5270 ac_cv_lib_PW_main=no
5271 fi
5272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5273 LIBS=$ac_check_lib_save_LIBS
5274 fi
5275 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5276 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5277 if test $ac_cv_lib_PW_main = yes; then
5278   cat >>confdefs.h <<_ACEOF
5279 #define HAVE_LIBPW 1
5280 _ACEOF
5281
5282   LIBS="-lPW $LIBS"
5283
5284 fi
5285
5286
5287 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5288 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5289 if test "${ac_cv_lib_resolv_main+set}" = set; then
5290   echo $ECHO_N "(cached) $ECHO_C" >&6
5291 else
5292   ac_check_lib_save_LIBS=$LIBS
5293 LIBS="-lresolv  $LIBS"
5294 cat >conftest.$ac_ext <<_ACEOF
5295 #line $LINENO "configure"
5296 #include "confdefs.h"
5297
5298
5299 #ifdef F77_DUMMY_MAIN
5300 #  ifdef __cplusplus
5301      extern "C"
5302 #  endif
5303    int F77_DUMMY_MAIN() { return 1; }
5304 #endif
5305 int
5306 main ()
5307 {
5308 main ();
5309   ;
5310   return 0;
5311 }
5312 _ACEOF
5313 rm -f conftest.$ac_objext conftest$ac_exeext
5314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5315   (eval $ac_link) 2>&5
5316   ac_status=$?
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); } &&
5319          { ac_try='test -s conftest$ac_exeext'
5320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321   (eval $ac_try) 2>&5
5322   ac_status=$?
5323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324   (exit $ac_status); }; }; then
5325   ac_cv_lib_resolv_main=yes
5326 else
5327   echo "$as_me: failed program was:" >&5
5328 cat conftest.$ac_ext >&5
5329 ac_cv_lib_resolv_main=no
5330 fi
5331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5332 LIBS=$ac_check_lib_save_LIBS
5333 fi
5334 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5335 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5336 if test $ac_cv_lib_resolv_main = yes; then
5337   cat >>confdefs.h <<_ACEOF
5338 #define HAVE_LIBRESOLV 1
5339 _ACEOF
5340
5341   LIBS="-lresolv $LIBS"
5342
5343 fi
5344
5345 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5346 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5347 if test "${ac_cv_search_getopt_long+set}" = set; then
5348   echo $ECHO_N "(cached) $ECHO_C" >&6
5349 else
5350   ac_func_search_save_LIBS=$LIBS
5351 ac_cv_search_getopt_long=no
5352 cat >conftest.$ac_ext <<_ACEOF
5353 #line $LINENO "configure"
5354 #include "confdefs.h"
5355
5356 /* Override any gcc2 internal prototype to avoid an error.  */
5357 #ifdef __cplusplus
5358 extern "C"
5359 #endif
5360 /* We use char because int might match the return type of a gcc2
5361    builtin and then its argument prototype would still apply.  */
5362 char getopt_long ();
5363 #ifdef F77_DUMMY_MAIN
5364 #  ifdef __cplusplus
5365      extern "C"
5366 #  endif
5367    int F77_DUMMY_MAIN() { return 1; }
5368 #endif
5369 int
5370 main ()
5371 {
5372 getopt_long ();
5373   ;
5374   return 0;
5375 }
5376 _ACEOF
5377 rm -f conftest.$ac_objext conftest$ac_exeext
5378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5379   (eval $ac_link) 2>&5
5380   ac_status=$?
5381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382   (exit $ac_status); } &&
5383          { ac_try='test -s conftest$ac_exeext'
5384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385   (eval $ac_try) 2>&5
5386   ac_status=$?
5387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388   (exit $ac_status); }; }; then
5389   ac_cv_search_getopt_long="none required"
5390 else
5391   echo "$as_me: failed program was:" >&5
5392 cat conftest.$ac_ext >&5
5393 fi
5394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5395 if test "$ac_cv_search_getopt_long" = no; then
5396   for ac_lib in getopt gnugetopt; do
5397     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5398     cat >conftest.$ac_ext <<_ACEOF
5399 #line $LINENO "configure"
5400 #include "confdefs.h"
5401
5402 /* Override any gcc2 internal prototype to avoid an error.  */
5403 #ifdef __cplusplus
5404 extern "C"
5405 #endif
5406 /* We use char because int might match the return type of a gcc2
5407    builtin and then its argument prototype would still apply.  */
5408 char getopt_long ();
5409 #ifdef F77_DUMMY_MAIN
5410 #  ifdef __cplusplus
5411      extern "C"
5412 #  endif
5413    int F77_DUMMY_MAIN() { return 1; }
5414 #endif
5415 int
5416 main ()
5417 {
5418 getopt_long ();
5419   ;
5420   return 0;
5421 }
5422 _ACEOF
5423 rm -f conftest.$ac_objext conftest$ac_exeext
5424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5425   (eval $ac_link) 2>&5
5426   ac_status=$?
5427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428   (exit $ac_status); } &&
5429          { ac_try='test -s conftest$ac_exeext'
5430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431   (eval $ac_try) 2>&5
5432   ac_status=$?
5433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434   (exit $ac_status); }; }; then
5435   ac_cv_search_getopt_long="-l$ac_lib"
5436 break
5437 else
5438   echo "$as_me: failed program was:" >&5
5439 cat conftest.$ac_ext >&5
5440 fi
5441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5442   done
5443 fi
5444 LIBS=$ac_func_search_save_LIBS
5445 fi
5446 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5447 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5448 if test "$ac_cv_search_getopt_long" != no; then
5449   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5450
5451 fi
5452
5453 # QNX:
5454
5455 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5456 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5457 if test "${ac_cv_lib_unix_main+set}" = set; then
5458   echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460   ac_check_lib_save_LIBS=$LIBS
5461 LIBS="-lunix  $LIBS"
5462 cat >conftest.$ac_ext <<_ACEOF
5463 #line $LINENO "configure"
5464 #include "confdefs.h"
5465
5466
5467 #ifdef F77_DUMMY_MAIN
5468 #  ifdef __cplusplus
5469      extern "C"
5470 #  endif
5471    int F77_DUMMY_MAIN() { return 1; }
5472 #endif
5473 int
5474 main ()
5475 {
5476 main ();
5477   ;
5478   return 0;
5479 }
5480 _ACEOF
5481 rm -f conftest.$ac_objext conftest$ac_exeext
5482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5483   (eval $ac_link) 2>&5
5484   ac_status=$?
5485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486   (exit $ac_status); } &&
5487          { ac_try='test -s conftest$ac_exeext'
5488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489   (eval $ac_try) 2>&5
5490   ac_status=$?
5491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492   (exit $ac_status); }; }; then
5493   ac_cv_lib_unix_main=yes
5494 else
5495   echo "$as_me: failed program was:" >&5
5496 cat conftest.$ac_ext >&5
5497 ac_cv_lib_unix_main=no
5498 fi
5499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5500 LIBS=$ac_check_lib_save_LIBS
5501 fi
5502 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5503 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5504 if test $ac_cv_lib_unix_main = yes; then
5505   cat >>confdefs.h <<_ACEOF
5506 #define HAVE_LIBUNIX 1
5507 _ACEOF
5508
5509   LIBS="-lunix $LIBS"
5510
5511 fi
5512
5513 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5514 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5515 if test "${ac_cv_search_crypt+set}" = set; then
5516   echo $ECHO_N "(cached) $ECHO_C" >&6
5517 else
5518   ac_func_search_save_LIBS=$LIBS
5519 ac_cv_search_crypt=no
5520 cat >conftest.$ac_ext <<_ACEOF
5521 #line $LINENO "configure"
5522 #include "confdefs.h"
5523
5524 /* Override any gcc2 internal prototype to avoid an error.  */
5525 #ifdef __cplusplus
5526 extern "C"
5527 #endif
5528 /* We use char because int might match the return type of a gcc2
5529    builtin and then its argument prototype would still apply.  */
5530 char crypt ();
5531 #ifdef F77_DUMMY_MAIN
5532 #  ifdef __cplusplus
5533      extern "C"
5534 #  endif
5535    int F77_DUMMY_MAIN() { return 1; }
5536 #endif
5537 int
5538 main ()
5539 {
5540 crypt ();
5541   ;
5542   return 0;
5543 }
5544 _ACEOF
5545 rm -f conftest.$ac_objext conftest$ac_exeext
5546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5547   (eval $ac_link) 2>&5
5548   ac_status=$?
5549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550   (exit $ac_status); } &&
5551          { ac_try='test -s conftest$ac_exeext'
5552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5553   (eval $ac_try) 2>&5
5554   ac_status=$?
5555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556   (exit $ac_status); }; }; then
5557   ac_cv_search_crypt="none required"
5558 else
5559   echo "$as_me: failed program was:" >&5
5560 cat conftest.$ac_ext >&5
5561 fi
5562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5563 if test "$ac_cv_search_crypt" = no; then
5564   for ac_lib in crypt; do
5565     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5566     cat >conftest.$ac_ext <<_ACEOF
5567 #line $LINENO "configure"
5568 #include "confdefs.h"
5569
5570 /* Override any gcc2 internal prototype to avoid an error.  */
5571 #ifdef __cplusplus
5572 extern "C"
5573 #endif
5574 /* We use char because int might match the return type of a gcc2
5575    builtin and then its argument prototype would still apply.  */
5576 char crypt ();
5577 #ifdef F77_DUMMY_MAIN
5578 #  ifdef __cplusplus
5579      extern "C"
5580 #  endif
5581    int F77_DUMMY_MAIN() { return 1; }
5582 #endif
5583 int
5584 main ()
5585 {
5586 crypt ();
5587   ;
5588   return 0;
5589 }
5590 _ACEOF
5591 rm -f conftest.$ac_objext conftest$ac_exeext
5592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5593   (eval $ac_link) 2>&5
5594   ac_status=$?
5595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596   (exit $ac_status); } &&
5597          { ac_try='test -s conftest$ac_exeext'
5598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599   (eval $ac_try) 2>&5
5600   ac_status=$?
5601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602   (exit $ac_status); }; }; then
5603   ac_cv_search_crypt="-l$ac_lib"
5604 break
5605 else
5606   echo "$as_me: failed program was:" >&5
5607 cat conftest.$ac_ext >&5
5608 fi
5609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5610   done
5611 fi
5612 LIBS=$ac_func_search_save_LIBS
5613 fi
5614 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5615 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5616 if test "$ac_cv_search_crypt" != no; then
5617   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5618
5619 fi
5620
5621 # BeOS:
5622 if test "$PORTNAME" = "beos"
5623 then
5624
5625 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5626 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5627 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5628   echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630   ac_check_lib_save_LIBS=$LIBS
5631 LIBS="-lbind  $LIBS"
5632 cat >conftest.$ac_ext <<_ACEOF
5633 #line $LINENO "configure"
5634 #include "confdefs.h"
5635
5636 /* Override any gcc2 internal prototype to avoid an error.  */
5637 #ifdef __cplusplus
5638 extern "C"
5639 #endif
5640 /* We use char because int might match the return type of a gcc2
5641    builtin and then its argument prototype would still apply.  */
5642 char __inet_ntoa ();
5643 #ifdef F77_DUMMY_MAIN
5644 #  ifdef __cplusplus
5645      extern "C"
5646 #  endif
5647    int F77_DUMMY_MAIN() { return 1; }
5648 #endif
5649 int
5650 main ()
5651 {
5652 __inet_ntoa ();
5653   ;
5654   return 0;
5655 }
5656 _ACEOF
5657 rm -f conftest.$ac_objext conftest$ac_exeext
5658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5659   (eval $ac_link) 2>&5
5660   ac_status=$?
5661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662   (exit $ac_status); } &&
5663          { ac_try='test -s conftest$ac_exeext'
5664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665   (eval $ac_try) 2>&5
5666   ac_status=$?
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); }; }; then
5669   ac_cv_lib_bind___inet_ntoa=yes
5670 else
5671   echo "$as_me: failed program was:" >&5
5672 cat conftest.$ac_ext >&5
5673 ac_cv_lib_bind___inet_ntoa=no
5674 fi
5675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5676 LIBS=$ac_check_lib_save_LIBS
5677 fi
5678 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5679 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5680 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5681   cat >>confdefs.h <<_ACEOF
5682 #define HAVE_LIBBIND 1
5683 _ACEOF
5684
5685   LIBS="-lbind $LIBS"
5686
5687 fi
5688
5689 fi
5690 # Solaris:
5691 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5692 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5693 if test "${ac_cv_search_fdatasync+set}" = set; then
5694   echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696   ac_func_search_save_LIBS=$LIBS
5697 ac_cv_search_fdatasync=no
5698 cat >conftest.$ac_ext <<_ACEOF
5699 #line $LINENO "configure"
5700 #include "confdefs.h"
5701
5702 /* Override any gcc2 internal prototype to avoid an error.  */
5703 #ifdef __cplusplus
5704 extern "C"
5705 #endif
5706 /* We use char because int might match the return type of a gcc2
5707    builtin and then its argument prototype would still apply.  */
5708 char fdatasync ();
5709 #ifdef F77_DUMMY_MAIN
5710 #  ifdef __cplusplus
5711      extern "C"
5712 #  endif
5713    int F77_DUMMY_MAIN() { return 1; }
5714 #endif
5715 int
5716 main ()
5717 {
5718 fdatasync ();
5719   ;
5720   return 0;
5721 }
5722 _ACEOF
5723 rm -f conftest.$ac_objext conftest$ac_exeext
5724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5725   (eval $ac_link) 2>&5
5726   ac_status=$?
5727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728   (exit $ac_status); } &&
5729          { ac_try='test -s conftest$ac_exeext'
5730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731   (eval $ac_try) 2>&5
5732   ac_status=$?
5733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734   (exit $ac_status); }; }; then
5735   ac_cv_search_fdatasync="none required"
5736 else
5737   echo "$as_me: failed program was:" >&5
5738 cat conftest.$ac_ext >&5
5739 fi
5740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5741 if test "$ac_cv_search_fdatasync" = no; then
5742   for ac_lib in rt posix4; do
5743     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5744     cat >conftest.$ac_ext <<_ACEOF
5745 #line $LINENO "configure"
5746 #include "confdefs.h"
5747
5748 /* Override any gcc2 internal prototype to avoid an error.  */
5749 #ifdef __cplusplus
5750 extern "C"
5751 #endif
5752 /* We use char because int might match the return type of a gcc2
5753    builtin and then its argument prototype would still apply.  */
5754 char fdatasync ();
5755 #ifdef F77_DUMMY_MAIN
5756 #  ifdef __cplusplus
5757      extern "C"
5758 #  endif
5759    int F77_DUMMY_MAIN() { return 1; }
5760 #endif
5761 int
5762 main ()
5763 {
5764 fdatasync ();
5765   ;
5766   return 0;
5767 }
5768 _ACEOF
5769 rm -f conftest.$ac_objext conftest$ac_exeext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5771   (eval $ac_link) 2>&5
5772   ac_status=$?
5773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774   (exit $ac_status); } &&
5775          { ac_try='test -s conftest$ac_exeext'
5776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777   (eval $ac_try) 2>&5
5778   ac_status=$?
5779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780   (exit $ac_status); }; }; then
5781   ac_cv_search_fdatasync="-l$ac_lib"
5782 break
5783 else
5784   echo "$as_me: failed program was:" >&5
5785 cat conftest.$ac_ext >&5
5786 fi
5787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5788   done
5789 fi
5790 LIBS=$ac_func_search_save_LIBS
5791 fi
5792 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5793 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5794 if test "$ac_cv_search_fdatasync" != no; then
5795   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5796
5797 fi
5798
5799 # Cygwin:
5800
5801 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5802 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5803 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5804   echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5806   ac_check_lib_save_LIBS=$LIBS
5807 LIBS="-lcygipc  $LIBS"
5808 cat >conftest.$ac_ext <<_ACEOF
5809 #line $LINENO "configure"
5810 #include "confdefs.h"
5811
5812 /* Override any gcc2 internal prototype to avoid an error.  */
5813 #ifdef __cplusplus
5814 extern "C"
5815 #endif
5816 /* We use char because int might match the return type of a gcc2
5817    builtin and then its argument prototype would still apply.  */
5818 char shmget ();
5819 #ifdef F77_DUMMY_MAIN
5820 #  ifdef __cplusplus
5821      extern "C"
5822 #  endif
5823    int F77_DUMMY_MAIN() { return 1; }
5824 #endif
5825 int
5826 main ()
5827 {
5828 shmget ();
5829   ;
5830   return 0;
5831 }
5832 _ACEOF
5833 rm -f conftest.$ac_objext conftest$ac_exeext
5834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5835   (eval $ac_link) 2>&5
5836   ac_status=$?
5837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838   (exit $ac_status); } &&
5839          { ac_try='test -s conftest$ac_exeext'
5840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841   (eval $ac_try) 2>&5
5842   ac_status=$?
5843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844   (exit $ac_status); }; }; then
5845   ac_cv_lib_cygipc_shmget=yes
5846 else
5847   echo "$as_me: failed program was:" >&5
5848 cat conftest.$ac_ext >&5
5849 ac_cv_lib_cygipc_shmget=no
5850 fi
5851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5852 LIBS=$ac_check_lib_save_LIBS
5853 fi
5854 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5855 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5856 if test $ac_cv_lib_cygipc_shmget = yes; then
5857   cat >>confdefs.h <<_ACEOF
5858 #define HAVE_LIBCYGIPC 1
5859 _ACEOF
5860
5861   LIBS="-lcygipc $LIBS"
5862
5863 fi
5864
5865 # WIN32:
5866 if test "$PORTNAME" = "win32"
5867 then
5868
5869 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5870 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5871 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5872   echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874   ac_check_lib_save_LIBS=$LIBS
5875 LIBS="-lwsock32  $LIBS"
5876 cat >conftest.$ac_ext <<_ACEOF
5877 #line $LINENO "configure"
5878 #include "confdefs.h"
5879
5880
5881 #ifdef F77_DUMMY_MAIN
5882 #  ifdef __cplusplus
5883      extern "C"
5884 #  endif
5885    int F77_DUMMY_MAIN() { return 1; }
5886 #endif
5887 int
5888 main ()
5889 {
5890 main ();
5891   ;
5892   return 0;
5893 }
5894 _ACEOF
5895 rm -f conftest.$ac_objext conftest$ac_exeext
5896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5897   (eval $ac_link) 2>&5
5898   ac_status=$?
5899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900   (exit $ac_status); } &&
5901          { ac_try='test -s conftest$ac_exeext'
5902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5903   (eval $ac_try) 2>&5
5904   ac_status=$?
5905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906   (exit $ac_status); }; }; then
5907   ac_cv_lib_wsock32_main=yes
5908 else
5909   echo "$as_me: failed program was:" >&5
5910 cat conftest.$ac_ext >&5
5911 ac_cv_lib_wsock32_main=no
5912 fi
5913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5914 LIBS=$ac_check_lib_save_LIBS
5915 fi
5916 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5917 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5918 if test $ac_cv_lib_wsock32_main = yes; then
5919   cat >>confdefs.h <<_ACEOF
5920 #define HAVE_LIBWSOCK32 1
5921 _ACEOF
5922
5923   LIBS="-lwsock32 $LIBS"
5924
5925 fi
5926
5927 fi
5928
5929 if test "$with_readline" = yes; then
5930
5931 echo "$as_me:$LINENO: checking for readline" >&5
5932 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5933
5934 if test "${pgac_cv_check_readline+set}" = set; then
5935   echo $ECHO_N "(cached) $ECHO_C" >&6
5936 else
5937   pgac_cv_check_readline=no
5938 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5939   for pgac_rllib in -lreadline -ledit ; do
5940     pgac_save_LIBS=$LIBS
5941     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5942     cat >conftest.$ac_ext <<_ACEOF
5943 #line $LINENO "configure"
5944 #include "confdefs.h"
5945
5946 /* Override any gcc2 internal prototype to avoid an error.  */
5947 #ifdef __cplusplus
5948 extern "C"
5949 #endif
5950 /* We use char because int might match the return type of a gcc2
5951    builtin and then its argument prototype would still apply.  */
5952 char readline ();
5953 #ifdef F77_DUMMY_MAIN
5954 #  ifdef __cplusplus
5955      extern "C"
5956 #  endif
5957    int F77_DUMMY_MAIN() { return 1; }
5958 #endif
5959 int
5960 main ()
5961 {
5962 readline ();
5963   ;
5964   return 0;
5965 }
5966 _ACEOF
5967 rm -f conftest.$ac_objext conftest$ac_exeext
5968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5969   (eval $ac_link) 2>&5
5970   ac_status=$?
5971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972   (exit $ac_status); } &&
5973          { ac_try='test -s conftest$ac_exeext'
5974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5975   (eval $ac_try) 2>&5
5976   ac_status=$?
5977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978   (exit $ac_status); }; }; then
5979
5980       # NetBSD and OpenBSD have a broken linker that does not
5981       # recognize dependent libraries
5982       case $host_os in netbsd* | openbsd* )
5983         case $pgac_lib in
5984           *curses*) ;;
5985           *) pgac_lib=" -lcurses" ;;
5986         esac
5987       esac
5988
5989       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5990       break 2
5991
5992 else
5993   echo "$as_me: failed program was:" >&5
5994 cat conftest.$ac_ext >&5
5995 fi
5996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5997     LIBS=$pgac_save_LIBS
5998   done
5999 done
6000 LIBS=$pgac_save_LIBS
6001
6002 fi
6003
6004 if test "$pgac_cv_check_readline" != no ; then
6005
6006 cat >>confdefs.h <<\_ACEOF
6007 #define HAVE_LIBREADLINE 1
6008 _ACEOF
6009
6010   LIBS="$pgac_cv_check_readline $LIBS"
6011   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6012 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6013 else
6014   echo "$as_me:$LINENO: result: no" >&5
6015 echo "${ECHO_T}no" >&6
6016 fi
6017   if test x"$pgac_cv_check_readline" = x"no"; then
6018     { { echo "$as_me:$LINENO: error: readline library not found
6019 If you have readline already installed, see config.log for details on the
6020 failure.  It is possible the compiler isn't looking in the proper directory.
6021 Use --without-readline to disable readline support." >&5
6022 echo "$as_me: error: readline library not found
6023 If you have readline already installed, see config.log for details on the
6024 failure.  It is possible the compiler isn't looking in the proper directory.
6025 Use --without-readline to disable readline support." >&2;}
6026    { (exit 1); exit 1; }; }
6027   fi
6028 fi
6029
6030 if test "$with_zlib" = yes; then
6031
6032 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6033 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6034 if test "${ac_cv_lib_z_inflate+set}" = set; then
6035   echo $ECHO_N "(cached) $ECHO_C" >&6
6036 else
6037   ac_check_lib_save_LIBS=$LIBS
6038 LIBS="-lz  $LIBS"
6039 cat >conftest.$ac_ext <<_ACEOF
6040 #line $LINENO "configure"
6041 #include "confdefs.h"
6042
6043 /* Override any gcc2 internal prototype to avoid an error.  */
6044 #ifdef __cplusplus
6045 extern "C"
6046 #endif
6047 /* We use char because int might match the return type of a gcc2
6048    builtin and then its argument prototype would still apply.  */
6049 char inflate ();
6050 #ifdef F77_DUMMY_MAIN
6051 #  ifdef __cplusplus
6052      extern "C"
6053 #  endif
6054    int F77_DUMMY_MAIN() { return 1; }
6055 #endif
6056 int
6057 main ()
6058 {
6059 inflate ();
6060   ;
6061   return 0;
6062 }
6063 _ACEOF
6064 rm -f conftest.$ac_objext conftest$ac_exeext
6065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6066   (eval $ac_link) 2>&5
6067   ac_status=$?
6068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069   (exit $ac_status); } &&
6070          { ac_try='test -s conftest$ac_exeext'
6071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072   (eval $ac_try) 2>&5
6073   ac_status=$?
6074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075   (exit $ac_status); }; }; then
6076   ac_cv_lib_z_inflate=yes
6077 else
6078   echo "$as_me: failed program was:" >&5
6079 cat conftest.$ac_ext >&5
6080 ac_cv_lib_z_inflate=no
6081 fi
6082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6083 LIBS=$ac_check_lib_save_LIBS
6084 fi
6085 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6086 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6087 if test $ac_cv_lib_z_inflate = yes; then
6088   cat >>confdefs.h <<_ACEOF
6089 #define HAVE_LIBZ 1
6090 _ACEOF
6091
6092   LIBS="-lz $LIBS"
6093
6094 else
6095   { { echo "$as_me:$LINENO: error: zlib library not found
6096 If you have zlib already installed, see config.log for details on the
6097 failure.  It is possible the compiler isn't looking in the proper directory.
6098 Use --without-zlib to disable zlib support." >&5
6099 echo "$as_me: error: zlib library not found
6100 If you have zlib already installed, see config.log for details on the
6101 failure.  It is possible the compiler isn't looking in the proper directory.
6102 Use --without-zlib to disable zlib support." >&2;}
6103    { (exit 1); exit 1; }; }
6104 fi
6105
6106 fi
6107
6108 if test "$enable_spinlocks" = yes; then
6109
6110 cat >>confdefs.h <<\_ACEOF
6111 #define HAVE_SPINLOCKS 1
6112 _ACEOF
6113
6114 else
6115   { echo "$as_me:$LINENO: WARNING:
6116 *** Not using spinlocks will cause poor performance." >&5
6117 echo "$as_me: WARNING:
6118 *** Not using spinlocks will cause poor performance." >&2;}
6119 fi
6120
6121 if test "$with_krb4" = yes ; then
6122
6123 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6124 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6125 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6126   echo $ECHO_N "(cached) $ECHO_C" >&6
6127 else
6128   ac_check_lib_save_LIBS=$LIBS
6129 LIBS="-ldes  $LIBS"
6130 cat >conftest.$ac_ext <<_ACEOF
6131 #line $LINENO "configure"
6132 #include "confdefs.h"
6133
6134 /* Override any gcc2 internal prototype to avoid an error.  */
6135 #ifdef __cplusplus
6136 extern "C"
6137 #endif
6138 /* We use char because int might match the return type of a gcc2
6139    builtin and then its argument prototype would still apply.  */
6140 char des_encrypt ();
6141 #ifdef F77_DUMMY_MAIN
6142 #  ifdef __cplusplus
6143      extern "C"
6144 #  endif
6145    int F77_DUMMY_MAIN() { return 1; }
6146 #endif
6147 int
6148 main ()
6149 {
6150 des_encrypt ();
6151   ;
6152   return 0;
6153 }
6154 _ACEOF
6155 rm -f conftest.$ac_objext conftest$ac_exeext
6156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6157   (eval $ac_link) 2>&5
6158   ac_status=$?
6159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160   (exit $ac_status); } &&
6161          { ac_try='test -s conftest$ac_exeext'
6162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6163   (eval $ac_try) 2>&5
6164   ac_status=$?
6165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166   (exit $ac_status); }; }; then
6167   ac_cv_lib_des_des_encrypt=yes
6168 else
6169   echo "$as_me: failed program was:" >&5
6170 cat conftest.$ac_ext >&5
6171 ac_cv_lib_des_des_encrypt=no
6172 fi
6173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6174 LIBS=$ac_check_lib_save_LIBS
6175 fi
6176 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6177 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6178 if test $ac_cv_lib_des_des_encrypt = yes; then
6179   cat >>confdefs.h <<_ACEOF
6180 #define HAVE_LIBDES 1
6181 _ACEOF
6182
6183   LIBS="-ldes $LIBS"
6184
6185 else
6186   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6187 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6188    { (exit 1); exit 1; }; }
6189 fi
6190
6191
6192 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6193 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6194 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6195   echo $ECHO_N "(cached) $ECHO_C" >&6
6196 else
6197   ac_check_lib_save_LIBS=$LIBS
6198 LIBS="-lkrb  $LIBS"
6199 cat >conftest.$ac_ext <<_ACEOF
6200 #line $LINENO "configure"
6201 #include "confdefs.h"
6202
6203 /* Override any gcc2 internal prototype to avoid an error.  */
6204 #ifdef __cplusplus
6205 extern "C"
6206 #endif
6207 /* We use char because int might match the return type of a gcc2
6208    builtin and then its argument prototype would still apply.  */
6209 char krb_sendauth ();
6210 #ifdef F77_DUMMY_MAIN
6211 #  ifdef __cplusplus
6212      extern "C"
6213 #  endif
6214    int F77_DUMMY_MAIN() { return 1; }
6215 #endif
6216 int
6217 main ()
6218 {
6219 krb_sendauth ();
6220   ;
6221   return 0;
6222 }
6223 _ACEOF
6224 rm -f conftest.$ac_objext conftest$ac_exeext
6225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6226   (eval $ac_link) 2>&5
6227   ac_status=$?
6228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229   (exit $ac_status); } &&
6230          { ac_try='test -s conftest$ac_exeext'
6231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6232   (eval $ac_try) 2>&5
6233   ac_status=$?
6234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235   (exit $ac_status); }; }; then
6236   ac_cv_lib_krb_krb_sendauth=yes
6237 else
6238   echo "$as_me: failed program was:" >&5
6239 cat conftest.$ac_ext >&5
6240 ac_cv_lib_krb_krb_sendauth=no
6241 fi
6242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6243 LIBS=$ac_check_lib_save_LIBS
6244 fi
6245 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6246 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6247 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6248   cat >>confdefs.h <<_ACEOF
6249 #define HAVE_LIBKRB 1
6250 _ACEOF
6251
6252   LIBS="-lkrb $LIBS"
6253
6254 else
6255   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6256 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6257    { (exit 1); exit 1; }; }
6258 fi
6259
6260
6261 for ac_func in gethostname
6262 do
6263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6264 echo "$as_me:$LINENO: checking for $ac_func" >&5
6265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6266 if eval "test \"\${$as_ac_var+set}\" = set"; then
6267   echo $ECHO_N "(cached) $ECHO_C" >&6
6268 else
6269   cat >conftest.$ac_ext <<_ACEOF
6270 #line $LINENO "configure"
6271 #include "confdefs.h"
6272 /* System header to define __stub macros and hopefully few prototypes,
6273     which can conflict with char $ac_func (); below.  */
6274 #include <assert.h>
6275 /* Override any gcc2 internal prototype to avoid an error.  */
6276 #ifdef __cplusplus
6277 extern "C"
6278 #endif
6279 /* We use char because int might match the return type of a gcc2
6280    builtin and then its argument prototype would still apply.  */
6281 char $ac_func ();
6282 char (*f) ();
6283
6284 #ifdef F77_DUMMY_MAIN
6285 #  ifdef __cplusplus
6286      extern "C"
6287 #  endif
6288    int F77_DUMMY_MAIN() { return 1; }
6289 #endif
6290 int
6291 main ()
6292 {
6293 /* The GNU C library defines this for functions which it implements
6294     to always fail with ENOSYS.  Some functions are actually named
6295     something starting with __ and the normal name is an alias.  */
6296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6297 choke me
6298 #else
6299 f = $ac_func;
6300 #endif
6301
6302   ;
6303   return 0;
6304 }
6305 _ACEOF
6306 rm -f conftest.$ac_objext conftest$ac_exeext
6307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6308   (eval $ac_link) 2>&5
6309   ac_status=$?
6310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311   (exit $ac_status); } &&
6312          { ac_try='test -s conftest$ac_exeext'
6313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314   (eval $ac_try) 2>&5
6315   ac_status=$?
6316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317   (exit $ac_status); }; }; then
6318   eval "$as_ac_var=yes"
6319 else
6320   echo "$as_me: failed program was:" >&5
6321 cat conftest.$ac_ext >&5
6322 eval "$as_ac_var=no"
6323 fi
6324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6325 fi
6326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6328 if test `eval echo '${'$as_ac_var'}'` = yes; then
6329   cat >>confdefs.h <<_ACEOF
6330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6331 _ACEOF
6332
6333 else
6334   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6335 fi
6336 done
6337
6338
6339 fi
6340
6341 if test "$with_krb5" = yes ; then
6342   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6343 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6344 if test "${ac_cv_search_com_err+set}" = set; then
6345   echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6347   ac_func_search_save_LIBS=$LIBS
6348 ac_cv_search_com_err=no
6349 cat >conftest.$ac_ext <<_ACEOF
6350 #line $LINENO "configure"
6351 #include "confdefs.h"
6352
6353 /* Override any gcc2 internal prototype to avoid an error.  */
6354 #ifdef __cplusplus
6355 extern "C"
6356 #endif
6357 /* We use char because int might match the return type of a gcc2
6358    builtin and then its argument prototype would still apply.  */
6359 char com_err ();
6360 #ifdef F77_DUMMY_MAIN
6361 #  ifdef __cplusplus
6362      extern "C"
6363 #  endif
6364    int F77_DUMMY_MAIN() { return 1; }
6365 #endif
6366 int
6367 main ()
6368 {
6369 com_err ();
6370   ;
6371   return 0;
6372 }
6373 _ACEOF
6374 rm -f conftest.$ac_objext conftest$ac_exeext
6375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6376   (eval $ac_link) 2>&5
6377   ac_status=$?
6378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379   (exit $ac_status); } &&
6380          { ac_try='test -s conftest$ac_exeext'
6381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382   (eval $ac_try) 2>&5
6383   ac_status=$?
6384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385   (exit $ac_status); }; }; then
6386   ac_cv_search_com_err="none required"
6387 else
6388   echo "$as_me: failed program was:" >&5
6389 cat conftest.$ac_ext >&5
6390 fi
6391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6392 if test "$ac_cv_search_com_err" = no; then
6393   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6394     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6395     cat >conftest.$ac_ext <<_ACEOF
6396 #line $LINENO "configure"
6397 #include "confdefs.h"
6398
6399 /* Override any gcc2 internal prototype to avoid an error.  */
6400 #ifdef __cplusplus
6401 extern "C"
6402 #endif
6403 /* We use char because int might match the return type of a gcc2
6404    builtin and then its argument prototype would still apply.  */
6405 char com_err ();
6406 #ifdef F77_DUMMY_MAIN
6407 #  ifdef __cplusplus
6408      extern "C"
6409 #  endif
6410    int F77_DUMMY_MAIN() { return 1; }
6411 #endif
6412 int
6413 main ()
6414 {
6415 com_err ();
6416   ;
6417   return 0;
6418 }
6419 _ACEOF
6420 rm -f conftest.$ac_objext conftest$ac_exeext
6421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6422   (eval $ac_link) 2>&5
6423   ac_status=$?
6424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425   (exit $ac_status); } &&
6426          { ac_try='test -s conftest$ac_exeext'
6427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428   (eval $ac_try) 2>&5
6429   ac_status=$?
6430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431   (exit $ac_status); }; }; then
6432   ac_cv_search_com_err="-l$ac_lib"
6433 break
6434 else
6435   echo "$as_me: failed program was:" >&5
6436 cat conftest.$ac_ext >&5
6437 fi
6438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6439   done
6440 fi
6441 LIBS=$ac_func_search_save_LIBS
6442 fi
6443 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6444 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6445 if test "$ac_cv_search_com_err" != no; then
6446   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6447
6448 else
6449   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6450 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6451    { (exit 1); exit 1; }; }
6452 fi
6453
6454   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6455 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6456 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6457   echo $ECHO_N "(cached) $ECHO_C" >&6
6458 else
6459   ac_func_search_save_LIBS=$LIBS
6460 ac_cv_search_krb5_encrypt=no
6461 cat >conftest.$ac_ext <<_ACEOF
6462 #line $LINENO "configure"
6463 #include "confdefs.h"
6464
6465 /* Override any gcc2 internal prototype to avoid an error.  */
6466 #ifdef __cplusplus
6467 extern "C"
6468 #endif
6469 /* We use char because int might match the return type of a gcc2
6470    builtin and then its argument prototype would still apply.  */
6471 char krb5_encrypt ();
6472 #ifdef F77_DUMMY_MAIN
6473 #  ifdef __cplusplus
6474      extern "C"
6475 #  endif
6476    int F77_DUMMY_MAIN() { return 1; }
6477 #endif
6478 int
6479 main ()
6480 {
6481 krb5_encrypt ();
6482   ;
6483   return 0;
6484 }
6485 _ACEOF
6486 rm -f conftest.$ac_objext conftest$ac_exeext
6487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6488   (eval $ac_link) 2>&5
6489   ac_status=$?
6490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491   (exit $ac_status); } &&
6492          { ac_try='test -s conftest$ac_exeext'
6493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494   (eval $ac_try) 2>&5
6495   ac_status=$?
6496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497   (exit $ac_status); }; }; then
6498   ac_cv_search_krb5_encrypt="none required"
6499 else
6500   echo "$as_me: failed program was:" >&5
6501 cat conftest.$ac_ext >&5
6502 fi
6503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6504 if test "$ac_cv_search_krb5_encrypt" = no; then
6505   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6506     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6507     cat >conftest.$ac_ext <<_ACEOF
6508 #line $LINENO "configure"
6509 #include "confdefs.h"
6510
6511 /* Override any gcc2 internal prototype to avoid an error.  */
6512 #ifdef __cplusplus
6513 extern "C"
6514 #endif
6515 /* We use char because int might match the return type of a gcc2
6516    builtin and then its argument prototype would still apply.  */
6517 char krb5_encrypt ();
6518 #ifdef F77_DUMMY_MAIN
6519 #  ifdef __cplusplus
6520      extern "C"
6521 #  endif
6522    int F77_DUMMY_MAIN() { return 1; }
6523 #endif
6524 int
6525 main ()
6526 {
6527 krb5_encrypt ();
6528   ;
6529   return 0;
6530 }
6531 _ACEOF
6532 rm -f conftest.$ac_objext conftest$ac_exeext
6533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6534   (eval $ac_link) 2>&5
6535   ac_status=$?
6536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537   (exit $ac_status); } &&
6538          { ac_try='test -s conftest$ac_exeext'
6539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540   (eval $ac_try) 2>&5
6541   ac_status=$?
6542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543   (exit $ac_status); }; }; then
6544   ac_cv_search_krb5_encrypt="-l$ac_lib"
6545 break
6546 else
6547   echo "$as_me: failed program was:" >&5
6548 cat conftest.$ac_ext >&5
6549 fi
6550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6551   done
6552 fi
6553 LIBS=$ac_func_search_save_LIBS
6554 fi
6555 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6556 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6557 if test "$ac_cv_search_krb5_encrypt" != no; then
6558   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6559
6560 else
6561   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6562 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6563    { (exit 1); exit 1; }; }
6564 fi
6565
6566   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6567 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6568 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6569   echo $ECHO_N "(cached) $ECHO_C" >&6
6570 else
6571   ac_func_search_save_LIBS=$LIBS
6572 ac_cv_search_krb5_sendauth=no
6573 cat >conftest.$ac_ext <<_ACEOF
6574 #line $LINENO "configure"
6575 #include "confdefs.h"
6576
6577 /* Override any gcc2 internal prototype to avoid an error.  */
6578 #ifdef __cplusplus
6579 extern "C"
6580 #endif
6581 /* We use char because int might match the return type of a gcc2
6582    builtin and then its argument prototype would still apply.  */
6583 char krb5_sendauth ();
6584 #ifdef F77_DUMMY_MAIN
6585 #  ifdef __cplusplus
6586      extern "C"
6587 #  endif
6588    int F77_DUMMY_MAIN() { return 1; }
6589 #endif
6590 int
6591 main ()
6592 {
6593 krb5_sendauth ();
6594   ;
6595   return 0;
6596 }
6597 _ACEOF
6598 rm -f conftest.$ac_objext conftest$ac_exeext
6599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6600   (eval $ac_link) 2>&5
6601   ac_status=$?
6602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603   (exit $ac_status); } &&
6604          { ac_try='test -s conftest$ac_exeext'
6605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606   (eval $ac_try) 2>&5
6607   ac_status=$?
6608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609   (exit $ac_status); }; }; then
6610   ac_cv_search_krb5_sendauth="none required"
6611 else
6612   echo "$as_me: failed program was:" >&5
6613 cat conftest.$ac_ext >&5
6614 fi
6615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6616 if test "$ac_cv_search_krb5_sendauth" = no; then
6617   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6618     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6619     cat >conftest.$ac_ext <<_ACEOF
6620 #line $LINENO "configure"
6621 #include "confdefs.h"
6622
6623 /* Override any gcc2 internal prototype to avoid an error.  */
6624 #ifdef __cplusplus
6625 extern "C"
6626 #endif
6627 /* We use char because int might match the return type of a gcc2
6628    builtin and then its argument prototype would still apply.  */
6629 char krb5_sendauth ();
6630 #ifdef F77_DUMMY_MAIN
6631 #  ifdef __cplusplus
6632      extern "C"
6633 #  endif
6634    int F77_DUMMY_MAIN() { return 1; }
6635 #endif
6636 int
6637 main ()
6638 {
6639 krb5_sendauth ();
6640   ;
6641   return 0;
6642 }
6643 _ACEOF
6644 rm -f conftest.$ac_objext conftest$ac_exeext
6645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6646   (eval $ac_link) 2>&5
6647   ac_status=$?
6648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649   (exit $ac_status); } &&
6650          { ac_try='test -s conftest$ac_exeext'
6651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652   (eval $ac_try) 2>&5
6653   ac_status=$?
6654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655   (exit $ac_status); }; }; then
6656   ac_cv_search_krb5_sendauth="-l$ac_lib"
6657 break
6658 else
6659   echo "$as_me: failed program was:" >&5
6660 cat conftest.$ac_ext >&5
6661 fi
6662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6663   done
6664 fi
6665 LIBS=$ac_func_search_save_LIBS
6666 fi
6667 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6668 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6669 if test "$ac_cv_search_krb5_sendauth" != no; then
6670   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6671
6672 else
6673   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6674 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6675    { (exit 1); exit 1; }; }
6676 fi
6677
6678 fi
6679
6680 if test "$with_openssl" = yes ; then
6681
6682 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6683 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6684 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6685   echo $ECHO_N "(cached) $ECHO_C" >&6
6686 else
6687   ac_check_lib_save_LIBS=$LIBS
6688 LIBS="-lcrypto  $LIBS"
6689 cat >conftest.$ac_ext <<_ACEOF
6690 #line $LINENO "configure"
6691 #include "confdefs.h"
6692
6693 /* Override any gcc2 internal prototype to avoid an error.  */
6694 #ifdef __cplusplus
6695 extern "C"
6696 #endif
6697 /* We use char because int might match the return type of a gcc2
6698    builtin and then its argument prototype would still apply.  */
6699 char CRYPTO_new_ex_data ();
6700 #ifdef F77_DUMMY_MAIN
6701 #  ifdef __cplusplus
6702      extern "C"
6703 #  endif
6704    int F77_DUMMY_MAIN() { return 1; }
6705 #endif
6706 int
6707 main ()
6708 {
6709 CRYPTO_new_ex_data ();
6710   ;
6711   return 0;
6712 }
6713 _ACEOF
6714 rm -f conftest.$ac_objext conftest$ac_exeext
6715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6716   (eval $ac_link) 2>&5
6717   ac_status=$?
6718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719   (exit $ac_status); } &&
6720          { ac_try='test -s conftest$ac_exeext'
6721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722   (eval $ac_try) 2>&5
6723   ac_status=$?
6724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725   (exit $ac_status); }; }; then
6726   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6727 else
6728   echo "$as_me: failed program was:" >&5
6729 cat conftest.$ac_ext >&5
6730 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6731 fi
6732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6733 LIBS=$ac_check_lib_save_LIBS
6734 fi
6735 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6736 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6737 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6738   cat >>confdefs.h <<_ACEOF
6739 #define HAVE_LIBCRYPTO 1
6740 _ACEOF
6741
6742   LIBS="-lcrypto $LIBS"
6743
6744 else
6745   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6746 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6747    { (exit 1); exit 1; }; }
6748 fi
6749
6750
6751 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6752 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6753 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6754   echo $ECHO_N "(cached) $ECHO_C" >&6
6755 else
6756   ac_check_lib_save_LIBS=$LIBS
6757 LIBS="-lssl  $LIBS"
6758 cat >conftest.$ac_ext <<_ACEOF
6759 #line $LINENO "configure"
6760 #include "confdefs.h"
6761
6762 /* Override any gcc2 internal prototype to avoid an error.  */
6763 #ifdef __cplusplus
6764 extern "C"
6765 #endif
6766 /* We use char because int might match the return type of a gcc2
6767    builtin and then its argument prototype would still apply.  */
6768 char SSL_library_init ();
6769 #ifdef F77_DUMMY_MAIN
6770 #  ifdef __cplusplus
6771      extern "C"
6772 #  endif
6773    int F77_DUMMY_MAIN() { return 1; }
6774 #endif
6775 int
6776 main ()
6777 {
6778 SSL_library_init ();
6779   ;
6780   return 0;
6781 }
6782 _ACEOF
6783 rm -f conftest.$ac_objext conftest$ac_exeext
6784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6785   (eval $ac_link) 2>&5
6786   ac_status=$?
6787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788   (exit $ac_status); } &&
6789          { ac_try='test -s conftest$ac_exeext'
6790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791   (eval $ac_try) 2>&5
6792   ac_status=$?
6793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794   (exit $ac_status); }; }; then
6795   ac_cv_lib_ssl_SSL_library_init=yes
6796 else
6797   echo "$as_me: failed program was:" >&5
6798 cat conftest.$ac_ext >&5
6799 ac_cv_lib_ssl_SSL_library_init=no
6800 fi
6801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6802 LIBS=$ac_check_lib_save_LIBS
6803 fi
6804 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6805 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6806 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6807   cat >>confdefs.h <<_ACEOF
6808 #define HAVE_LIBSSL 1
6809 _ACEOF
6810
6811   LIBS="-lssl $LIBS"
6812
6813 else
6814   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6815 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6816    { (exit 1); exit 1; }; }
6817 fi
6818
6819 fi
6820
6821 if test "$with_pam" = yes ; then
6822
6823 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6824 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6825 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6826   echo $ECHO_N "(cached) $ECHO_C" >&6
6827 else
6828   ac_check_lib_save_LIBS=$LIBS
6829 LIBS="-lpam  $LIBS"
6830 cat >conftest.$ac_ext <<_ACEOF
6831 #line $LINENO "configure"
6832 #include "confdefs.h"
6833
6834 /* Override any gcc2 internal prototype to avoid an error.  */
6835 #ifdef __cplusplus
6836 extern "C"
6837 #endif
6838 /* We use char because int might match the return type of a gcc2
6839    builtin and then its argument prototype would still apply.  */
6840 char pam_start ();
6841 #ifdef F77_DUMMY_MAIN
6842 #  ifdef __cplusplus
6843      extern "C"
6844 #  endif
6845    int F77_DUMMY_MAIN() { return 1; }
6846 #endif
6847 int
6848 main ()
6849 {
6850 pam_start ();
6851   ;
6852   return 0;
6853 }
6854 _ACEOF
6855 rm -f conftest.$ac_objext conftest$ac_exeext
6856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6857   (eval $ac_link) 2>&5
6858   ac_status=$?
6859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860   (exit $ac_status); } &&
6861          { ac_try='test -s conftest$ac_exeext'
6862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6863   (eval $ac_try) 2>&5
6864   ac_status=$?
6865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866   (exit $ac_status); }; }; then
6867   ac_cv_lib_pam_pam_start=yes
6868 else
6869   echo "$as_me: failed program was:" >&5
6870 cat conftest.$ac_ext >&5
6871 ac_cv_lib_pam_pam_start=no
6872 fi
6873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6874 LIBS=$ac_check_lib_save_LIBS
6875 fi
6876 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6877 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6878 if test $ac_cv_lib_pam_pam_start = yes; then
6879   cat >>confdefs.h <<_ACEOF
6880 #define HAVE_LIBPAM 1
6881 _ACEOF
6882
6883   LIBS="-lpam $LIBS"
6884
6885 else
6886   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6887 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6888    { (exit 1); exit 1; }; }
6889 fi
6890
6891 fi
6892
6893
6894 ##
6895 ## Header files
6896 ##
6897
6898 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6899 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6900 if test "${ac_cv_header_stdc+set}" = set; then
6901   echo $ECHO_N "(cached) $ECHO_C" >&6
6902 else
6903   cat >conftest.$ac_ext <<_ACEOF
6904 #line $LINENO "configure"
6905 #include "confdefs.h"
6906 #include <stdlib.h>
6907 #include <stdarg.h>
6908 #include <string.h>
6909 #include <float.h>
6910
6911 _ACEOF
6912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6913   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6914   ac_status=$?
6915   egrep -v '^ *\+' conftest.er1 >conftest.err
6916   rm -f conftest.er1
6917   cat conftest.err >&5
6918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919   (exit $ac_status); } >/dev/null; then
6920   if test -s conftest.err; then
6921     ac_cpp_err=$ac_c_preproc_warn_flag
6922   else
6923     ac_cpp_err=
6924   fi
6925 else
6926   ac_cpp_err=yes
6927 fi
6928 if test -z "$ac_cpp_err"; then
6929   ac_cv_header_stdc=yes
6930 else
6931   echo "$as_me: failed program was:" >&5
6932   cat conftest.$ac_ext >&5
6933   ac_cv_header_stdc=no
6934 fi
6935 rm -f conftest.err conftest.$ac_ext
6936
6937 if test $ac_cv_header_stdc = yes; then
6938   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6939   cat >conftest.$ac_ext <<_ACEOF
6940 #line $LINENO "configure"
6941 #include "confdefs.h"
6942 #include <string.h>
6943
6944 _ACEOF
6945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6946   egrep "memchr" >/dev/null 2>&1; then
6947   :
6948 else
6949   ac_cv_header_stdc=no
6950 fi
6951 rm -f conftest*
6952
6953 fi
6954
6955 if test $ac_cv_header_stdc = yes; then
6956   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6957   cat >conftest.$ac_ext <<_ACEOF
6958 #line $LINENO "configure"
6959 #include "confdefs.h"
6960 #include <stdlib.h>
6961
6962 _ACEOF
6963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6964   egrep "free" >/dev/null 2>&1; then
6965   :
6966 else
6967   ac_cv_header_stdc=no
6968 fi
6969 rm -f conftest*
6970
6971 fi
6972
6973 if test $ac_cv_header_stdc = yes; then
6974   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6975   if test "$cross_compiling" = yes; then
6976   :
6977 else
6978   cat >conftest.$ac_ext <<_ACEOF
6979 #line $LINENO "configure"
6980 #include "confdefs.h"
6981 #include <ctype.h>
6982 #if ((' ' & 0x0FF) == 0x020)
6983 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6984 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6985 #else
6986 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6987                      || ('j' <= (c) && (c) <= 'r') \
6988                      || ('s' <= (c) && (c) <= 'z'))
6989 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6990 #endif
6991
6992 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6993 int
6994 main ()
6995 {
6996   int i;
6997   for (i = 0; i < 256; i++)
6998     if (XOR (islower (i), ISLOWER (i))
6999         || toupper (i) != TOUPPER (i))
7000       exit(2);
7001   exit (0);
7002 }
7003 _ACEOF
7004 rm -f conftest$ac_exeext
7005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7006   (eval $ac_link) 2>&5
7007   ac_status=$?
7008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011   (eval $ac_try) 2>&5
7012   ac_status=$?
7013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014   (exit $ac_status); }; }; then
7015   :
7016 else
7017   echo "$as_me: program exited with status $ac_status" >&5
7018 echo "$as_me: failed program was:" >&5
7019 cat conftest.$ac_ext >&5
7020 ( exit $ac_status )
7021 ac_cv_header_stdc=no
7022 fi
7023 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7024 fi
7025 fi
7026 fi
7027 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7028 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7029 if test $ac_cv_header_stdc = yes; then
7030
7031 cat >>confdefs.h <<\_ACEOF
7032 #define STDC_HEADERS 1
7033 _ACEOF
7034
7035 fi
7036
7037 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7048                   inttypes.h stdint.h unistd.h
7049 do
7050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7051 echo "$as_me:$LINENO: checking for $ac_header" >&5
7052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7054   echo $ECHO_N "(cached) $ECHO_C" >&6
7055 else
7056   cat >conftest.$ac_ext <<_ACEOF
7057 #line $LINENO "configure"
7058 #include "confdefs.h"
7059 $ac_includes_default
7060
7061 #include <$ac_header>
7062 _ACEOF
7063 rm -f conftest.$ac_objext
7064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7065   (eval $ac_compile) 2>&5
7066   ac_status=$?
7067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068   (exit $ac_status); } &&
7069          { ac_try='test -s conftest.$ac_objext'
7070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071   (eval $ac_try) 2>&5
7072   ac_status=$?
7073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074   (exit $ac_status); }; }; then
7075   eval "$as_ac_Header=yes"
7076 else
7077   echo "$as_me: failed program was:" >&5
7078 cat conftest.$ac_ext >&5
7079 eval "$as_ac_Header=no"
7080 fi
7081 rm -f conftest.$ac_objext conftest.$ac_ext
7082 fi
7083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7086   cat >>confdefs.h <<_ACEOF
7087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7088 _ACEOF
7089
7090 fi
7091
7092 done
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116 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
7117 do
7118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7120   echo "$as_me:$LINENO: checking for $ac_header" >&5
7121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7123   echo $ECHO_N "(cached) $ECHO_C" >&6
7124 fi
7125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7127 else
7128   # Is the header compilable?
7129 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7131 cat >conftest.$ac_ext <<_ACEOF
7132 #line $LINENO "configure"
7133 #include "confdefs.h"
7134 $ac_includes_default
7135 #include <$ac_header>
7136 _ACEOF
7137 rm -f conftest.$ac_objext
7138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7139   (eval $ac_compile) 2>&5
7140   ac_status=$?
7141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142   (exit $ac_status); } &&
7143          { ac_try='test -s conftest.$ac_objext'
7144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7145   (eval $ac_try) 2>&5
7146   ac_status=$?
7147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148   (exit $ac_status); }; }; then
7149   ac_header_compiler=yes
7150 else
7151   echo "$as_me: failed program was:" >&5
7152 cat conftest.$ac_ext >&5
7153 ac_header_compiler=no
7154 fi
7155 rm -f conftest.$ac_objext conftest.$ac_ext
7156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7157 echo "${ECHO_T}$ac_header_compiler" >&6
7158
7159 # Is the header present?
7160 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7162 cat >conftest.$ac_ext <<_ACEOF
7163 #line $LINENO "configure"
7164 #include "confdefs.h"
7165 #include <$ac_header>
7166 _ACEOF
7167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7168   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7169   ac_status=$?
7170   egrep -v '^ *\+' conftest.er1 >conftest.err
7171   rm -f conftest.er1
7172   cat conftest.err >&5
7173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174   (exit $ac_status); } >/dev/null; then
7175   if test -s conftest.err; then
7176     ac_cpp_err=$ac_c_preproc_warn_flag
7177   else
7178     ac_cpp_err=
7179   fi
7180 else
7181   ac_cpp_err=yes
7182 fi
7183 if test -z "$ac_cpp_err"; then
7184   ac_header_preproc=yes
7185 else
7186   echo "$as_me: failed program was:" >&5
7187   cat conftest.$ac_ext >&5
7188   ac_header_preproc=no
7189 fi
7190 rm -f conftest.err conftest.$ac_ext
7191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7192 echo "${ECHO_T}$ac_header_preproc" >&6
7193
7194 # So?  What about this header?
7195 case $ac_header_compiler:$ac_header_preproc in
7196   yes:no )
7197     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7199     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7201   no:yes )
7202     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7204     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7206     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7208 esac
7209 echo "$as_me:$LINENO: checking for $ac_header" >&5
7210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7212   echo $ECHO_N "(cached) $ECHO_C" >&6
7213 else
7214   eval "$as_ac_Header=$ac_header_preproc"
7215 fi
7216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7218
7219 fi
7220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7221   cat >>confdefs.h <<_ACEOF
7222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7223 _ACEOF
7224
7225 fi
7226
7227 done
7228
7229
7230 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7231 # netinet/in.h is included first.
7232
7233 for ac_header in netinet/in.h
7234 do
7235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7237   echo "$as_me:$LINENO: checking for $ac_header" >&5
7238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7240   echo $ECHO_N "(cached) $ECHO_C" >&6
7241 fi
7242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7244 else
7245   # Is the header compilable?
7246 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7247 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7248 cat >conftest.$ac_ext <<_ACEOF
7249 #line $LINENO "configure"
7250 #include "confdefs.h"
7251 $ac_includes_default
7252 #include <$ac_header>
7253 _ACEOF
7254 rm -f conftest.$ac_objext
7255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7256   (eval $ac_compile) 2>&5
7257   ac_status=$?
7258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259   (exit $ac_status); } &&
7260          { ac_try='test -s conftest.$ac_objext'
7261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262   (eval $ac_try) 2>&5
7263   ac_status=$?
7264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265   (exit $ac_status); }; }; then
7266   ac_header_compiler=yes
7267 else
7268   echo "$as_me: failed program was:" >&5
7269 cat conftest.$ac_ext >&5
7270 ac_header_compiler=no
7271 fi
7272 rm -f conftest.$ac_objext conftest.$ac_ext
7273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7274 echo "${ECHO_T}$ac_header_compiler" >&6
7275
7276 # Is the header present?
7277 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7279 cat >conftest.$ac_ext <<_ACEOF
7280 #line $LINENO "configure"
7281 #include "confdefs.h"
7282 #include <$ac_header>
7283 _ACEOF
7284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7285   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7286   ac_status=$?
7287   egrep -v '^ *\+' conftest.er1 >conftest.err
7288   rm -f conftest.er1
7289   cat conftest.err >&5
7290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291   (exit $ac_status); } >/dev/null; then
7292   if test -s conftest.err; then
7293     ac_cpp_err=$ac_c_preproc_warn_flag
7294   else
7295     ac_cpp_err=
7296   fi
7297 else
7298   ac_cpp_err=yes
7299 fi
7300 if test -z "$ac_cpp_err"; then
7301   ac_header_preproc=yes
7302 else
7303   echo "$as_me: failed program was:" >&5
7304   cat conftest.$ac_ext >&5
7305   ac_header_preproc=no
7306 fi
7307 rm -f conftest.err conftest.$ac_ext
7308 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7309 echo "${ECHO_T}$ac_header_preproc" >&6
7310
7311 # So?  What about this header?
7312 case $ac_header_compiler:$ac_header_preproc in
7313   yes:no )
7314     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7316     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7318   no:yes )
7319     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7320 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7321     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7322 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7323     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7325 esac
7326 echo "$as_me:$LINENO: checking for $ac_header" >&5
7327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7329   echo $ECHO_N "(cached) $ECHO_C" >&6
7330 else
7331   eval "$as_ac_Header=$ac_header_preproc"
7332 fi
7333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7335
7336 fi
7337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7338   cat >>confdefs.h <<_ACEOF
7339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7340 _ACEOF
7341
7342 fi
7343
7344 done
7345
7346
7347 for ac_header in netinet/tcp.h
7348 do
7349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7350 echo "$as_me:$LINENO: checking for $ac_header" >&5
7351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7353   echo $ECHO_N "(cached) $ECHO_C" >&6
7354 else
7355   cat >conftest.$ac_ext <<_ACEOF
7356 #line $LINENO "configure"
7357 #include "confdefs.h"
7358 $ac_includes_default
7359 #ifdef HAVE_NETINET_IN_H
7360 #include <netinet/in.h>
7361 #endif
7362
7363
7364 #include <$ac_header>
7365 _ACEOF
7366 rm -f conftest.$ac_objext
7367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7368   (eval $ac_compile) 2>&5
7369   ac_status=$?
7370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371   (exit $ac_status); } &&
7372          { ac_try='test -s conftest.$ac_objext'
7373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374   (eval $ac_try) 2>&5
7375   ac_status=$?
7376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377   (exit $ac_status); }; }; then
7378   eval "$as_ac_Header=yes"
7379 else
7380   echo "$as_me: failed program was:" >&5
7381 cat conftest.$ac_ext >&5
7382 eval "$as_ac_Header=no"
7383 fi
7384 rm -f conftest.$ac_objext conftest.$ac_ext
7385 fi
7386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7389   cat >>confdefs.h <<_ACEOF
7390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7391 _ACEOF
7392
7393 fi
7394
7395 done
7396
7397
7398 if test "$with_readline" = yes; then
7399
7400 for ac_header in readline/readline.h
7401 do
7402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7404   echo "$as_me:$LINENO: checking for $ac_header" >&5
7405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7407   echo $ECHO_N "(cached) $ECHO_C" >&6
7408 fi
7409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7411 else
7412   # Is the header compilable?
7413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7415 cat >conftest.$ac_ext <<_ACEOF
7416 #line $LINENO "configure"
7417 #include "confdefs.h"
7418 $ac_includes_default
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   ac_header_compiler=yes
7434 else
7435   echo "$as_me: failed program was:" >&5
7436 cat conftest.$ac_ext >&5
7437 ac_header_compiler=no
7438 fi
7439 rm -f conftest.$ac_objext conftest.$ac_ext
7440 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7441 echo "${ECHO_T}$ac_header_compiler" >&6
7442
7443 # Is the header present?
7444 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7446 cat >conftest.$ac_ext <<_ACEOF
7447 #line $LINENO "configure"
7448 #include "confdefs.h"
7449 #include <$ac_header>
7450 _ACEOF
7451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7452   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7453   ac_status=$?
7454   egrep -v '^ *\+' conftest.er1 >conftest.err
7455   rm -f conftest.er1
7456   cat conftest.err >&5
7457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458   (exit $ac_status); } >/dev/null; then
7459   if test -s conftest.err; then
7460     ac_cpp_err=$ac_c_preproc_warn_flag
7461   else
7462     ac_cpp_err=
7463   fi
7464 else
7465   ac_cpp_err=yes
7466 fi
7467 if test -z "$ac_cpp_err"; then
7468   ac_header_preproc=yes
7469 else
7470   echo "$as_me: failed program was:" >&5
7471   cat conftest.$ac_ext >&5
7472   ac_header_preproc=no
7473 fi
7474 rm -f conftest.err conftest.$ac_ext
7475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7476 echo "${ECHO_T}$ac_header_preproc" >&6
7477
7478 # So?  What about this header?
7479 case $ac_header_compiler:$ac_header_preproc in
7480   yes:no )
7481     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7483     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7485   no:yes )
7486     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7488     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7489 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7490     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7492 esac
7493 echo "$as_me:$LINENO: checking for $ac_header" >&5
7494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7496   echo $ECHO_N "(cached) $ECHO_C" >&6
7497 else
7498   eval "$as_ac_Header=$ac_header_preproc"
7499 fi
7500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7502
7503 fi
7504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7505   cat >>confdefs.h <<_ACEOF
7506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7507 _ACEOF
7508
7509 else
7510
7511 for ac_header in editline/readline.h
7512 do
7513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7515   echo "$as_me:$LINENO: checking for $ac_header" >&5
7516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7518   echo $ECHO_N "(cached) $ECHO_C" >&6
7519 fi
7520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7522 else
7523   # Is the header compilable?
7524 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7526 cat >conftest.$ac_ext <<_ACEOF
7527 #line $LINENO "configure"
7528 #include "confdefs.h"
7529 $ac_includes_default
7530 #include <$ac_header>
7531 _ACEOF
7532 rm -f conftest.$ac_objext
7533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7534   (eval $ac_compile) 2>&5
7535   ac_status=$?
7536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537   (exit $ac_status); } &&
7538          { ac_try='test -s conftest.$ac_objext'
7539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7540   (eval $ac_try) 2>&5
7541   ac_status=$?
7542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543   (exit $ac_status); }; }; then
7544   ac_header_compiler=yes
7545 else
7546   echo "$as_me: failed program was:" >&5
7547 cat conftest.$ac_ext >&5
7548 ac_header_compiler=no
7549 fi
7550 rm -f conftest.$ac_objext conftest.$ac_ext
7551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7552 echo "${ECHO_T}$ac_header_compiler" >&6
7553
7554 # Is the header present?
7555 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7556 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7557 cat >conftest.$ac_ext <<_ACEOF
7558 #line $LINENO "configure"
7559 #include "confdefs.h"
7560 #include <$ac_header>
7561 _ACEOF
7562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7563   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7564   ac_status=$?
7565   egrep -v '^ *\+' conftest.er1 >conftest.err
7566   rm -f conftest.er1
7567   cat conftest.err >&5
7568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569   (exit $ac_status); } >/dev/null; then
7570   if test -s conftest.err; then
7571     ac_cpp_err=$ac_c_preproc_warn_flag
7572   else
7573     ac_cpp_err=
7574   fi
7575 else
7576   ac_cpp_err=yes
7577 fi
7578 if test -z "$ac_cpp_err"; then
7579   ac_header_preproc=yes
7580 else
7581   echo "$as_me: failed program was:" >&5
7582   cat conftest.$ac_ext >&5
7583   ac_header_preproc=no
7584 fi
7585 rm -f conftest.err conftest.$ac_ext
7586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7587 echo "${ECHO_T}$ac_header_preproc" >&6
7588
7589 # So?  What about this header?
7590 case $ac_header_compiler:$ac_header_preproc in
7591   yes:no )
7592     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7594     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7596   no:yes )
7597     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7599     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7600 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7601     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7603 esac
7604 echo "$as_me:$LINENO: checking for $ac_header" >&5
7605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7607   echo $ECHO_N "(cached) $ECHO_C" >&6
7608 else
7609   eval "$as_ac_Header=$ac_header_preproc"
7610 fi
7611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7613
7614 fi
7615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7616   cat >>confdefs.h <<_ACEOF
7617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7618 _ACEOF
7619
7620 else
7621
7622 for ac_header in readline.h
7623 do
7624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7626   echo "$as_me:$LINENO: checking for $ac_header" >&5
7627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7629   echo $ECHO_N "(cached) $ECHO_C" >&6
7630 fi
7631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7633 else
7634   # Is the header compilable?
7635 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7637 cat >conftest.$ac_ext <<_ACEOF
7638 #line $LINENO "configure"
7639 #include "confdefs.h"
7640 $ac_includes_default
7641 #include <$ac_header>
7642 _ACEOF
7643 rm -f conftest.$ac_objext
7644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7645   (eval $ac_compile) 2>&5
7646   ac_status=$?
7647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648   (exit $ac_status); } &&
7649          { ac_try='test -s conftest.$ac_objext'
7650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651   (eval $ac_try) 2>&5
7652   ac_status=$?
7653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654   (exit $ac_status); }; }; then
7655   ac_header_compiler=yes
7656 else
7657   echo "$as_me: failed program was:" >&5
7658 cat conftest.$ac_ext >&5
7659 ac_header_compiler=no
7660 fi
7661 rm -f conftest.$ac_objext conftest.$ac_ext
7662 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7663 echo "${ECHO_T}$ac_header_compiler" >&6
7664
7665 # Is the header present?
7666 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7668 cat >conftest.$ac_ext <<_ACEOF
7669 #line $LINENO "configure"
7670 #include "confdefs.h"
7671 #include <$ac_header>
7672 _ACEOF
7673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7674   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7675   ac_status=$?
7676   egrep -v '^ *\+' conftest.er1 >conftest.err
7677   rm -f conftest.er1
7678   cat conftest.err >&5
7679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680   (exit $ac_status); } >/dev/null; then
7681   if test -s conftest.err; then
7682     ac_cpp_err=$ac_c_preproc_warn_flag
7683   else
7684     ac_cpp_err=
7685   fi
7686 else
7687   ac_cpp_err=yes
7688 fi
7689 if test -z "$ac_cpp_err"; then
7690   ac_header_preproc=yes
7691 else
7692   echo "$as_me: failed program was:" >&5
7693   cat conftest.$ac_ext >&5
7694   ac_header_preproc=no
7695 fi
7696 rm -f conftest.err conftest.$ac_ext
7697 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7698 echo "${ECHO_T}$ac_header_preproc" >&6
7699
7700 # So?  What about this header?
7701 case $ac_header_compiler:$ac_header_preproc in
7702   yes:no )
7703     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7705     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7707   no:yes )
7708     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7710     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7711 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7712     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7714 esac
7715 echo "$as_me:$LINENO: checking for $ac_header" >&5
7716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7718   echo $ECHO_N "(cached) $ECHO_C" >&6
7719 else
7720   eval "$as_ac_Header=$ac_header_preproc"
7721 fi
7722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7724
7725 fi
7726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7727   cat >>confdefs.h <<_ACEOF
7728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7729 _ACEOF
7730
7731 else
7732   { { echo "$as_me:$LINENO: error: readline header not found
7733 If you have readline already installed, see config.log for details on the
7734 failure.  It is possible the compiler isn't looking in the proper directory.
7735 Use --without-readline to disable readline support." >&5
7736 echo "$as_me: error: readline header not found
7737 If you have readline already installed, see config.log for details on the
7738 failure.  It is possible the compiler isn't looking in the proper directory.
7739 Use --without-readline to disable readline support." >&2;}
7740    { (exit 1); exit 1; }; }
7741 fi
7742
7743 done
7744
7745 fi
7746
7747 done
7748
7749 fi
7750
7751 done
7752
7753
7754 for ac_header in readline/history.h
7755 do
7756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7758   echo "$as_me:$LINENO: checking for $ac_header" >&5
7759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7761   echo $ECHO_N "(cached) $ECHO_C" >&6
7762 fi
7763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7765 else
7766   # Is the header compilable?
7767 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7769 cat >conftest.$ac_ext <<_ACEOF
7770 #line $LINENO "configure"
7771 #include "confdefs.h"
7772 $ac_includes_default
7773 #include <$ac_header>
7774 _ACEOF
7775 rm -f conftest.$ac_objext
7776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7777   (eval $ac_compile) 2>&5
7778   ac_status=$?
7779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780   (exit $ac_status); } &&
7781          { ac_try='test -s conftest.$ac_objext'
7782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783   (eval $ac_try) 2>&5
7784   ac_status=$?
7785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786   (exit $ac_status); }; }; then
7787   ac_header_compiler=yes
7788 else
7789   echo "$as_me: failed program was:" >&5
7790 cat conftest.$ac_ext >&5
7791 ac_header_compiler=no
7792 fi
7793 rm -f conftest.$ac_objext conftest.$ac_ext
7794 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7795 echo "${ECHO_T}$ac_header_compiler" >&6
7796
7797 # Is the header present?
7798 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7800 cat >conftest.$ac_ext <<_ACEOF
7801 #line $LINENO "configure"
7802 #include "confdefs.h"
7803 #include <$ac_header>
7804 _ACEOF
7805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7806   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7807   ac_status=$?
7808   egrep -v '^ *\+' conftest.er1 >conftest.err
7809   rm -f conftest.er1
7810   cat conftest.err >&5
7811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812   (exit $ac_status); } >/dev/null; then
7813   if test -s conftest.err; then
7814     ac_cpp_err=$ac_c_preproc_warn_flag
7815   else
7816     ac_cpp_err=
7817   fi
7818 else
7819   ac_cpp_err=yes
7820 fi
7821 if test -z "$ac_cpp_err"; then
7822   ac_header_preproc=yes
7823 else
7824   echo "$as_me: failed program was:" >&5
7825   cat conftest.$ac_ext >&5
7826   ac_header_preproc=no
7827 fi
7828 rm -f conftest.err conftest.$ac_ext
7829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7830 echo "${ECHO_T}$ac_header_preproc" >&6
7831
7832 # So?  What about this header?
7833 case $ac_header_compiler:$ac_header_preproc in
7834   yes:no )
7835     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7839   no:yes )
7840     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7842     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7843 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7844     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7846 esac
7847 echo "$as_me:$LINENO: checking for $ac_header" >&5
7848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7850   echo $ECHO_N "(cached) $ECHO_C" >&6
7851 else
7852   eval "$as_ac_Header=$ac_header_preproc"
7853 fi
7854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7856
7857 fi
7858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7859   cat >>confdefs.h <<_ACEOF
7860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7861 _ACEOF
7862
7863 else
7864
7865 for ac_header in editline/history.h
7866 do
7867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7869   echo "$as_me:$LINENO: checking for $ac_header" >&5
7870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7872   echo $ECHO_N "(cached) $ECHO_C" >&6
7873 fi
7874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7876 else
7877   # Is the header compilable?
7878 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7880 cat >conftest.$ac_ext <<_ACEOF
7881 #line $LINENO "configure"
7882 #include "confdefs.h"
7883 $ac_includes_default
7884 #include <$ac_header>
7885 _ACEOF
7886 rm -f conftest.$ac_objext
7887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7888   (eval $ac_compile) 2>&5
7889   ac_status=$?
7890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891   (exit $ac_status); } &&
7892          { ac_try='test -s conftest.$ac_objext'
7893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894   (eval $ac_try) 2>&5
7895   ac_status=$?
7896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897   (exit $ac_status); }; }; then
7898   ac_header_compiler=yes
7899 else
7900   echo "$as_me: failed program was:" >&5
7901 cat conftest.$ac_ext >&5
7902 ac_header_compiler=no
7903 fi
7904 rm -f conftest.$ac_objext conftest.$ac_ext
7905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7906 echo "${ECHO_T}$ac_header_compiler" >&6
7907
7908 # Is the header present?
7909 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7911 cat >conftest.$ac_ext <<_ACEOF
7912 #line $LINENO "configure"
7913 #include "confdefs.h"
7914 #include <$ac_header>
7915 _ACEOF
7916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7917   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7918   ac_status=$?
7919   egrep -v '^ *\+' conftest.er1 >conftest.err
7920   rm -f conftest.er1
7921   cat conftest.err >&5
7922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923   (exit $ac_status); } >/dev/null; then
7924   if test -s conftest.err; then
7925     ac_cpp_err=$ac_c_preproc_warn_flag
7926   else
7927     ac_cpp_err=
7928   fi
7929 else
7930   ac_cpp_err=yes
7931 fi
7932 if test -z "$ac_cpp_err"; then
7933   ac_header_preproc=yes
7934 else
7935   echo "$as_me: failed program was:" >&5
7936   cat conftest.$ac_ext >&5
7937   ac_header_preproc=no
7938 fi
7939 rm -f conftest.err conftest.$ac_ext
7940 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7941 echo "${ECHO_T}$ac_header_preproc" >&6
7942
7943 # So?  What about this header?
7944 case $ac_header_compiler:$ac_header_preproc in
7945   yes:no )
7946     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7948     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7950   no:yes )
7951     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7953     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7954 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7955     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7957 esac
7958 echo "$as_me:$LINENO: checking for $ac_header" >&5
7959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7961   echo $ECHO_N "(cached) $ECHO_C" >&6
7962 else
7963   eval "$as_ac_Header=$ac_header_preproc"
7964 fi
7965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7966 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7967
7968 fi
7969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7970   cat >>confdefs.h <<_ACEOF
7971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7972 _ACEOF
7973
7974 else
7975
7976 for ac_header in history.h
7977 do
7978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7980   echo "$as_me:$LINENO: checking for $ac_header" >&5
7981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7983   echo $ECHO_N "(cached) $ECHO_C" >&6
7984 fi
7985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7987 else
7988   # Is the header compilable?
7989 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7991 cat >conftest.$ac_ext <<_ACEOF
7992 #line $LINENO "configure"
7993 #include "confdefs.h"
7994 $ac_includes_default
7995 #include <$ac_header>
7996 _ACEOF
7997 rm -f conftest.$ac_objext
7998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7999   (eval $ac_compile) 2>&5
8000   ac_status=$?
8001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002   (exit $ac_status); } &&
8003          { ac_try='test -s conftest.$ac_objext'
8004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8005   (eval $ac_try) 2>&5
8006   ac_status=$?
8007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008   (exit $ac_status); }; }; then
8009   ac_header_compiler=yes
8010 else
8011   echo "$as_me: failed program was:" >&5
8012 cat conftest.$ac_ext >&5
8013 ac_header_compiler=no
8014 fi
8015 rm -f conftest.$ac_objext conftest.$ac_ext
8016 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8017 echo "${ECHO_T}$ac_header_compiler" >&6
8018
8019 # Is the header present?
8020 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8022 cat >conftest.$ac_ext <<_ACEOF
8023 #line $LINENO "configure"
8024 #include "confdefs.h"
8025 #include <$ac_header>
8026 _ACEOF
8027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8028   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8029   ac_status=$?
8030   egrep -v '^ *\+' conftest.er1 >conftest.err
8031   rm -f conftest.er1
8032   cat conftest.err >&5
8033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034   (exit $ac_status); } >/dev/null; then
8035   if test -s conftest.err; then
8036     ac_cpp_err=$ac_c_preproc_warn_flag
8037   else
8038     ac_cpp_err=
8039   fi
8040 else
8041   ac_cpp_err=yes
8042 fi
8043 if test -z "$ac_cpp_err"; then
8044   ac_header_preproc=yes
8045 else
8046   echo "$as_me: failed program was:" >&5
8047   cat conftest.$ac_ext >&5
8048   ac_header_preproc=no
8049 fi
8050 rm -f conftest.err conftest.$ac_ext
8051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8052 echo "${ECHO_T}$ac_header_preproc" >&6
8053
8054 # So?  What about this header?
8055 case $ac_header_compiler:$ac_header_preproc in
8056   yes:no )
8057     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8059     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8060 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8061   no:yes )
8062     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8064     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8065 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8066     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8068 esac
8069 echo "$as_me:$LINENO: checking for $ac_header" >&5
8070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8072   echo $ECHO_N "(cached) $ECHO_C" >&6
8073 else
8074   eval "$as_ac_Header=$ac_header_preproc"
8075 fi
8076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8078
8079 fi
8080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8081   cat >>confdefs.h <<_ACEOF
8082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8083 _ACEOF
8084
8085 else
8086   { { echo "$as_me:$LINENO: error: history header not found
8087 If you have readline already installed, see config.log for details on the
8088 failure.  It is possible the compiler isn't looking in the proper directory.
8089 Use --without-readline to disable readline support." >&5
8090 echo "$as_me: error: history header not found
8091 If you have readline already installed, see config.log for details on the
8092 failure.  It is possible the compiler isn't looking in the proper directory.
8093 Use --without-readline to disable readline support." >&2;}
8094    { (exit 1); exit 1; }; }
8095 fi
8096
8097 done
8098
8099 fi
8100
8101 done
8102
8103 fi
8104
8105 done
8106
8107 fi
8108
8109 if test "$with_zlib" = yes; then
8110   if test "${ac_cv_header_zlib_h+set}" = set; then
8111   echo "$as_me:$LINENO: checking for zlib.h" >&5
8112 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8113 if test "${ac_cv_header_zlib_h+set}" = set; then
8114   echo $ECHO_N "(cached) $ECHO_C" >&6
8115 fi
8116 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8117 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8118 else
8119   # Is the header compilable?
8120 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8121 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8122 cat >conftest.$ac_ext <<_ACEOF
8123 #line $LINENO "configure"
8124 #include "confdefs.h"
8125 $ac_includes_default
8126 #include <zlib.h>
8127 _ACEOF
8128 rm -f conftest.$ac_objext
8129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8130   (eval $ac_compile) 2>&5
8131   ac_status=$?
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); } &&
8134          { ac_try='test -s conftest.$ac_objext'
8135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136   (eval $ac_try) 2>&5
8137   ac_status=$?
8138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139   (exit $ac_status); }; }; then
8140   ac_header_compiler=yes
8141 else
8142   echo "$as_me: failed program was:" >&5
8143 cat conftest.$ac_ext >&5
8144 ac_header_compiler=no
8145 fi
8146 rm -f conftest.$ac_objext conftest.$ac_ext
8147 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8148 echo "${ECHO_T}$ac_header_compiler" >&6
8149
8150 # Is the header present?
8151 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8152 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8153 cat >conftest.$ac_ext <<_ACEOF
8154 #line $LINENO "configure"
8155 #include "confdefs.h"
8156 #include <zlib.h>
8157 _ACEOF
8158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8159   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8160   ac_status=$?
8161   egrep -v '^ *\+' conftest.er1 >conftest.err
8162   rm -f conftest.er1
8163   cat conftest.err >&5
8164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165   (exit $ac_status); } >/dev/null; then
8166   if test -s conftest.err; then
8167     ac_cpp_err=$ac_c_preproc_warn_flag
8168   else
8169     ac_cpp_err=
8170   fi
8171 else
8172   ac_cpp_err=yes
8173 fi
8174 if test -z "$ac_cpp_err"; then
8175   ac_header_preproc=yes
8176 else
8177   echo "$as_me: failed program was:" >&5
8178   cat conftest.$ac_ext >&5
8179   ac_header_preproc=no
8180 fi
8181 rm -f conftest.err conftest.$ac_ext
8182 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8183 echo "${ECHO_T}$ac_header_preproc" >&6
8184
8185 # So?  What about this header?
8186 case $ac_header_compiler:$ac_header_preproc in
8187   yes:no )
8188     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8189 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8190     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8191 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8192   no:yes )
8193     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8194 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8195     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8196 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8197     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8198 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8199 esac
8200 echo "$as_me:$LINENO: checking for zlib.h" >&5
8201 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8202 if test "${ac_cv_header_zlib_h+set}" = set; then
8203   echo $ECHO_N "(cached) $ECHO_C" >&6
8204 else
8205   ac_cv_header_zlib_h=$ac_header_preproc
8206 fi
8207 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8208 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8209
8210 fi
8211 if test $ac_cv_header_zlib_h = yes; then
8212   :
8213 else
8214   { { echo "$as_me:$LINENO: error: zlib header not found
8215 If you have zlib already installed, see config.log for details on the
8216 failure.  It is possible the compiler isn't looking in the proper directory.
8217 Use --without-zlib to disable zlib support." >&5
8218 echo "$as_me: error: zlib header not found
8219 If you have zlib already installed, see config.log for details on the
8220 failure.  It is possible the compiler isn't looking in the proper directory.
8221 Use --without-zlib to disable zlib support." >&2;}
8222    { (exit 1); exit 1; }; }
8223 fi
8224
8225
8226 fi
8227
8228 if test "$with_krb4" = yes ; then
8229   if test "${ac_cv_header_krb_h+set}" = set; then
8230   echo "$as_me:$LINENO: checking for krb.h" >&5
8231 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8232 if test "${ac_cv_header_krb_h+set}" = set; then
8233   echo $ECHO_N "(cached) $ECHO_C" >&6
8234 fi
8235 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8236 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8237 else
8238   # Is the header compilable?
8239 echo "$as_me:$LINENO: checking krb.h usability" >&5
8240 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8241 cat >conftest.$ac_ext <<_ACEOF
8242 #line $LINENO "configure"
8243 #include "confdefs.h"
8244 $ac_includes_default
8245 #include <krb.h>
8246 _ACEOF
8247 rm -f conftest.$ac_objext
8248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8249   (eval $ac_compile) 2>&5
8250   ac_status=$?
8251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252   (exit $ac_status); } &&
8253          { ac_try='test -s conftest.$ac_objext'
8254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8255   (eval $ac_try) 2>&5
8256   ac_status=$?
8257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258   (exit $ac_status); }; }; then
8259   ac_header_compiler=yes
8260 else
8261   echo "$as_me: failed program was:" >&5
8262 cat conftest.$ac_ext >&5
8263 ac_header_compiler=no
8264 fi
8265 rm -f conftest.$ac_objext conftest.$ac_ext
8266 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8267 echo "${ECHO_T}$ac_header_compiler" >&6
8268
8269 # Is the header present?
8270 echo "$as_me:$LINENO: checking krb.h presence" >&5
8271 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8272 cat >conftest.$ac_ext <<_ACEOF
8273 #line $LINENO "configure"
8274 #include "confdefs.h"
8275 #include <krb.h>
8276 _ACEOF
8277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8278   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8279   ac_status=$?
8280   egrep -v '^ *\+' conftest.er1 >conftest.err
8281   rm -f conftest.er1
8282   cat conftest.err >&5
8283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284   (exit $ac_status); } >/dev/null; then
8285   if test -s conftest.err; then
8286     ac_cpp_err=$ac_c_preproc_warn_flag
8287   else
8288     ac_cpp_err=
8289   fi
8290 else
8291   ac_cpp_err=yes
8292 fi
8293 if test -z "$ac_cpp_err"; then
8294   ac_header_preproc=yes
8295 else
8296   echo "$as_me: failed program was:" >&5
8297   cat conftest.$ac_ext >&5
8298   ac_header_preproc=no
8299 fi
8300 rm -f conftest.err conftest.$ac_ext
8301 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8302 echo "${ECHO_T}$ac_header_preproc" >&6
8303
8304 # So?  What about this header?
8305 case $ac_header_compiler:$ac_header_preproc in
8306   yes:no )
8307     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8308 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8309     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8310 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8311   no:yes )
8312     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8313 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8314     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8315 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8316     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8317 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8318 esac
8319 echo "$as_me:$LINENO: checking for krb.h" >&5
8320 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8321 if test "${ac_cv_header_krb_h+set}" = set; then
8322   echo $ECHO_N "(cached) $ECHO_C" >&6
8323 else
8324   ac_cv_header_krb_h=$ac_header_preproc
8325 fi
8326 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8327 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8328
8329 fi
8330 if test $ac_cv_header_krb_h = yes; then
8331   :
8332 else
8333   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8334 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8335    { (exit 1); exit 1; }; }
8336 fi
8337
8338
8339 fi
8340
8341 if test "$with_krb5" = yes ; then
8342   if test "${ac_cv_header_krb5_h+set}" = set; then
8343   echo "$as_me:$LINENO: checking for krb5.h" >&5
8344 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8345 if test "${ac_cv_header_krb5_h+set}" = set; then
8346   echo $ECHO_N "(cached) $ECHO_C" >&6
8347 fi
8348 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8349 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8350 else
8351   # Is the header compilable?
8352 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8353 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8354 cat >conftest.$ac_ext <<_ACEOF
8355 #line $LINENO "configure"
8356 #include "confdefs.h"
8357 $ac_includes_default
8358 #include <krb5.h>
8359 _ACEOF
8360 rm -f conftest.$ac_objext
8361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8362   (eval $ac_compile) 2>&5
8363   ac_status=$?
8364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365   (exit $ac_status); } &&
8366          { ac_try='test -s conftest.$ac_objext'
8367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368   (eval $ac_try) 2>&5
8369   ac_status=$?
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); }; }; then
8372   ac_header_compiler=yes
8373 else
8374   echo "$as_me: failed program was:" >&5
8375 cat conftest.$ac_ext >&5
8376 ac_header_compiler=no
8377 fi
8378 rm -f conftest.$ac_objext conftest.$ac_ext
8379 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8380 echo "${ECHO_T}$ac_header_compiler" >&6
8381
8382 # Is the header present?
8383 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8384 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8385 cat >conftest.$ac_ext <<_ACEOF
8386 #line $LINENO "configure"
8387 #include "confdefs.h"
8388 #include <krb5.h>
8389 _ACEOF
8390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8391   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8392   ac_status=$?
8393   egrep -v '^ *\+' conftest.er1 >conftest.err
8394   rm -f conftest.er1
8395   cat conftest.err >&5
8396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397   (exit $ac_status); } >/dev/null; then
8398   if test -s conftest.err; then
8399     ac_cpp_err=$ac_c_preproc_warn_flag
8400   else
8401     ac_cpp_err=
8402   fi
8403 else
8404   ac_cpp_err=yes
8405 fi
8406 if test -z "$ac_cpp_err"; then
8407   ac_header_preproc=yes
8408 else
8409   echo "$as_me: failed program was:" >&5
8410   cat conftest.$ac_ext >&5
8411   ac_header_preproc=no
8412 fi
8413 rm -f conftest.err conftest.$ac_ext
8414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8415 echo "${ECHO_T}$ac_header_preproc" >&6
8416
8417 # So?  What about this header?
8418 case $ac_header_compiler:$ac_header_preproc in
8419   yes:no )
8420     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8421 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8422     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8423 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8424   no:yes )
8425     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8426 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8427     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8428 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8429     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8430 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8431 esac
8432 echo "$as_me:$LINENO: checking for krb5.h" >&5
8433 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8434 if test "${ac_cv_header_krb5_h+set}" = set; then
8435   echo $ECHO_N "(cached) $ECHO_C" >&6
8436 else
8437   ac_cv_header_krb5_h=$ac_header_preproc
8438 fi
8439 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8440 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8441
8442 fi
8443 if test $ac_cv_header_krb5_h = yes; then
8444   :
8445 else
8446   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8447 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8448    { (exit 1); exit 1; }; }
8449 fi
8450
8451
8452   if test "${ac_cv_header_com_err_h+set}" = set; then
8453   echo "$as_me:$LINENO: checking for com_err.h" >&5
8454 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8455 if test "${ac_cv_header_com_err_h+set}" = set; then
8456   echo $ECHO_N "(cached) $ECHO_C" >&6
8457 fi
8458 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8459 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8460 else
8461   # Is the header compilable?
8462 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8463 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8464 cat >conftest.$ac_ext <<_ACEOF
8465 #line $LINENO "configure"
8466 #include "confdefs.h"
8467 $ac_includes_default
8468 #include <com_err.h>
8469 _ACEOF
8470 rm -f conftest.$ac_objext
8471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8472   (eval $ac_compile) 2>&5
8473   ac_status=$?
8474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475   (exit $ac_status); } &&
8476          { ac_try='test -s conftest.$ac_objext'
8477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478   (eval $ac_try) 2>&5
8479   ac_status=$?
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); }; }; then
8482   ac_header_compiler=yes
8483 else
8484   echo "$as_me: failed program was:" >&5
8485 cat conftest.$ac_ext >&5
8486 ac_header_compiler=no
8487 fi
8488 rm -f conftest.$ac_objext conftest.$ac_ext
8489 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8490 echo "${ECHO_T}$ac_header_compiler" >&6
8491
8492 # Is the header present?
8493 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8494 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8495 cat >conftest.$ac_ext <<_ACEOF
8496 #line $LINENO "configure"
8497 #include "confdefs.h"
8498 #include <com_err.h>
8499 _ACEOF
8500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8501   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8502   ac_status=$?
8503   egrep -v '^ *\+' conftest.er1 >conftest.err
8504   rm -f conftest.er1
8505   cat conftest.err >&5
8506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507   (exit $ac_status); } >/dev/null; then
8508   if test -s conftest.err; then
8509     ac_cpp_err=$ac_c_preproc_warn_flag
8510   else
8511     ac_cpp_err=
8512   fi
8513 else
8514   ac_cpp_err=yes
8515 fi
8516 if test -z "$ac_cpp_err"; then
8517   ac_header_preproc=yes
8518 else
8519   echo "$as_me: failed program was:" >&5
8520   cat conftest.$ac_ext >&5
8521   ac_header_preproc=no
8522 fi
8523 rm -f conftest.err conftest.$ac_ext
8524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8525 echo "${ECHO_T}$ac_header_preproc" >&6
8526
8527 # So?  What about this header?
8528 case $ac_header_compiler:$ac_header_preproc in
8529   yes:no )
8530     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8531 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8532     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8533 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8534   no:yes )
8535     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8536 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8537     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8538 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8539     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8540 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8541 esac
8542 echo "$as_me:$LINENO: checking for com_err.h" >&5
8543 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8544 if test "${ac_cv_header_com_err_h+set}" = set; then
8545   echo $ECHO_N "(cached) $ECHO_C" >&6
8546 else
8547   ac_cv_header_com_err_h=$ac_header_preproc
8548 fi
8549 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8550 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8551
8552 fi
8553 if test $ac_cv_header_com_err_h = yes; then
8554   :
8555 else
8556   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8557 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8558    { (exit 1); exit 1; }; }
8559 fi
8560
8561
8562 fi
8563
8564 if test "$with_openssl" = yes ; then
8565   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8566   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8567 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8568 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8569   echo $ECHO_N "(cached) $ECHO_C" >&6
8570 fi
8571 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8572 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8573 else
8574   # Is the header compilable?
8575 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8576 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8577 cat >conftest.$ac_ext <<_ACEOF
8578 #line $LINENO "configure"
8579 #include "confdefs.h"
8580 $ac_includes_default
8581 #include <openssl/ssl.h>
8582 _ACEOF
8583 rm -f conftest.$ac_objext
8584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8585   (eval $ac_compile) 2>&5
8586   ac_status=$?
8587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588   (exit $ac_status); } &&
8589          { ac_try='test -s conftest.$ac_objext'
8590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591   (eval $ac_try) 2>&5
8592   ac_status=$?
8593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594   (exit $ac_status); }; }; then
8595   ac_header_compiler=yes
8596 else
8597   echo "$as_me: failed program was:" >&5
8598 cat conftest.$ac_ext >&5
8599 ac_header_compiler=no
8600 fi
8601 rm -f conftest.$ac_objext conftest.$ac_ext
8602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8603 echo "${ECHO_T}$ac_header_compiler" >&6
8604
8605 # Is the header present?
8606 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8607 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8608 cat >conftest.$ac_ext <<_ACEOF
8609 #line $LINENO "configure"
8610 #include "confdefs.h"
8611 #include <openssl/ssl.h>
8612 _ACEOF
8613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8614   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8615   ac_status=$?
8616   egrep -v '^ *\+' conftest.er1 >conftest.err
8617   rm -f conftest.er1
8618   cat conftest.err >&5
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); } >/dev/null; then
8621   if test -s conftest.err; then
8622     ac_cpp_err=$ac_c_preproc_warn_flag
8623   else
8624     ac_cpp_err=
8625   fi
8626 else
8627   ac_cpp_err=yes
8628 fi
8629 if test -z "$ac_cpp_err"; then
8630   ac_header_preproc=yes
8631 else
8632   echo "$as_me: failed program was:" >&5
8633   cat conftest.$ac_ext >&5
8634   ac_header_preproc=no
8635 fi
8636 rm -f conftest.err conftest.$ac_ext
8637 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8638 echo "${ECHO_T}$ac_header_preproc" >&6
8639
8640 # So?  What about this header?
8641 case $ac_header_compiler:$ac_header_preproc in
8642   yes:no )
8643     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8644 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8645     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8646 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8647   no:yes )
8648     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8649 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8650     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8651 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8652     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8653 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8654 esac
8655 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8656 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8657 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8658   echo $ECHO_N "(cached) $ECHO_C" >&6
8659 else
8660   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8661 fi
8662 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8663 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8664
8665 fi
8666 if test $ac_cv_header_openssl_ssl_h = yes; then
8667   :
8668 else
8669   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8670 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8671    { (exit 1); exit 1; }; }
8672 fi
8673
8674
8675   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8676   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8677 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8678 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8679   echo $ECHO_N "(cached) $ECHO_C" >&6
8680 fi
8681 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8682 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8683 else
8684   # Is the header compilable?
8685 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8686 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8687 cat >conftest.$ac_ext <<_ACEOF
8688 #line $LINENO "configure"
8689 #include "confdefs.h"
8690 $ac_includes_default
8691 #include <openssl/err.h>
8692 _ACEOF
8693 rm -f conftest.$ac_objext
8694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8695   (eval $ac_compile) 2>&5
8696   ac_status=$?
8697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698   (exit $ac_status); } &&
8699          { ac_try='test -s conftest.$ac_objext'
8700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701   (eval $ac_try) 2>&5
8702   ac_status=$?
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); }; }; then
8705   ac_header_compiler=yes
8706 else
8707   echo "$as_me: failed program was:" >&5
8708 cat conftest.$ac_ext >&5
8709 ac_header_compiler=no
8710 fi
8711 rm -f conftest.$ac_objext conftest.$ac_ext
8712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8713 echo "${ECHO_T}$ac_header_compiler" >&6
8714
8715 # Is the header present?
8716 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8717 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8718 cat >conftest.$ac_ext <<_ACEOF
8719 #line $LINENO "configure"
8720 #include "confdefs.h"
8721 #include <openssl/err.h>
8722 _ACEOF
8723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8724   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8725   ac_status=$?
8726   egrep -v '^ *\+' conftest.er1 >conftest.err
8727   rm -f conftest.er1
8728   cat conftest.err >&5
8729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730   (exit $ac_status); } >/dev/null; then
8731   if test -s conftest.err; then
8732     ac_cpp_err=$ac_c_preproc_warn_flag
8733   else
8734     ac_cpp_err=
8735   fi
8736 else
8737   ac_cpp_err=yes
8738 fi
8739 if test -z "$ac_cpp_err"; then
8740   ac_header_preproc=yes
8741 else
8742   echo "$as_me: failed program was:" >&5
8743   cat conftest.$ac_ext >&5
8744   ac_header_preproc=no
8745 fi
8746 rm -f conftest.err conftest.$ac_ext
8747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8748 echo "${ECHO_T}$ac_header_preproc" >&6
8749
8750 # So?  What about this header?
8751 case $ac_header_compiler:$ac_header_preproc in
8752   yes:no )
8753     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8754 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8755     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8756 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8757   no:yes )
8758     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8759 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8760     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8761 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8762     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8763 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8764 esac
8765 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8766 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8767 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8768   echo $ECHO_N "(cached) $ECHO_C" >&6
8769 else
8770   ac_cv_header_openssl_err_h=$ac_header_preproc
8771 fi
8772 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8773 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8774
8775 fi
8776 if test $ac_cv_header_openssl_err_h = yes; then
8777   :
8778 else
8779   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8780 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8781    { (exit 1); exit 1; }; }
8782 fi
8783
8784
8785 fi
8786
8787 if test "$with_pam" = yes ; then
8788
8789 for ac_header in security/pam_appl.h
8790 do
8791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8793   echo "$as_me:$LINENO: checking for $ac_header" >&5
8794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8796   echo $ECHO_N "(cached) $ECHO_C" >&6
8797 fi
8798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8800 else
8801   # Is the header compilable?
8802 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8804 cat >conftest.$ac_ext <<_ACEOF
8805 #line $LINENO "configure"
8806 #include "confdefs.h"
8807 $ac_includes_default
8808 #include <$ac_header>
8809 _ACEOF
8810 rm -f conftest.$ac_objext
8811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8812   (eval $ac_compile) 2>&5
8813   ac_status=$?
8814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815   (exit $ac_status); } &&
8816          { ac_try='test -s conftest.$ac_objext'
8817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818   (eval $ac_try) 2>&5
8819   ac_status=$?
8820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821   (exit $ac_status); }; }; then
8822   ac_header_compiler=yes
8823 else
8824   echo "$as_me: failed program was:" >&5
8825 cat conftest.$ac_ext >&5
8826 ac_header_compiler=no
8827 fi
8828 rm -f conftest.$ac_objext conftest.$ac_ext
8829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8830 echo "${ECHO_T}$ac_header_compiler" >&6
8831
8832 # Is the header present?
8833 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8835 cat >conftest.$ac_ext <<_ACEOF
8836 #line $LINENO "configure"
8837 #include "confdefs.h"
8838 #include <$ac_header>
8839 _ACEOF
8840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8841   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8842   ac_status=$?
8843   egrep -v '^ *\+' conftest.er1 >conftest.err
8844   rm -f conftest.er1
8845   cat conftest.err >&5
8846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847   (exit $ac_status); } >/dev/null; then
8848   if test -s conftest.err; then
8849     ac_cpp_err=$ac_c_preproc_warn_flag
8850   else
8851     ac_cpp_err=
8852   fi
8853 else
8854   ac_cpp_err=yes
8855 fi
8856 if test -z "$ac_cpp_err"; then
8857   ac_header_preproc=yes
8858 else
8859   echo "$as_me: failed program was:" >&5
8860   cat conftest.$ac_ext >&5
8861   ac_header_preproc=no
8862 fi
8863 rm -f conftest.err conftest.$ac_ext
8864 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8865 echo "${ECHO_T}$ac_header_preproc" >&6
8866
8867 # So?  What about this header?
8868 case $ac_header_compiler:$ac_header_preproc in
8869   yes:no )
8870     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8871 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8872     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8874   no:yes )
8875     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8877     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8878 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8879     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8881 esac
8882 echo "$as_me:$LINENO: checking for $ac_header" >&5
8883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8885   echo $ECHO_N "(cached) $ECHO_C" >&6
8886 else
8887   eval "$as_ac_Header=$ac_header_preproc"
8888 fi
8889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8891
8892 fi
8893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8894   cat >>confdefs.h <<_ACEOF
8895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8896 _ACEOF
8897
8898 else
8899
8900 for ac_header in pam/pam_appl.h
8901 do
8902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8904   echo "$as_me:$LINENO: checking for $ac_header" >&5
8905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8907   echo $ECHO_N "(cached) $ECHO_C" >&6
8908 fi
8909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8911 else
8912   # Is the header compilable?
8913 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8914 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8915 cat >conftest.$ac_ext <<_ACEOF
8916 #line $LINENO "configure"
8917 #include "confdefs.h"
8918 $ac_includes_default
8919 #include <$ac_header>
8920 _ACEOF
8921 rm -f conftest.$ac_objext
8922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8923   (eval $ac_compile) 2>&5
8924   ac_status=$?
8925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926   (exit $ac_status); } &&
8927          { ac_try='test -s conftest.$ac_objext'
8928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8929   (eval $ac_try) 2>&5
8930   ac_status=$?
8931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932   (exit $ac_status); }; }; then
8933   ac_header_compiler=yes
8934 else
8935   echo "$as_me: failed program was:" >&5
8936 cat conftest.$ac_ext >&5
8937 ac_header_compiler=no
8938 fi
8939 rm -f conftest.$ac_objext conftest.$ac_ext
8940 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8941 echo "${ECHO_T}$ac_header_compiler" >&6
8942
8943 # Is the header present?
8944 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8946 cat >conftest.$ac_ext <<_ACEOF
8947 #line $LINENO "configure"
8948 #include "confdefs.h"
8949 #include <$ac_header>
8950 _ACEOF
8951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8952   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8953   ac_status=$?
8954   egrep -v '^ *\+' conftest.er1 >conftest.err
8955   rm -f conftest.er1
8956   cat conftest.err >&5
8957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958   (exit $ac_status); } >/dev/null; then
8959   if test -s conftest.err; then
8960     ac_cpp_err=$ac_c_preproc_warn_flag
8961   else
8962     ac_cpp_err=
8963   fi
8964 else
8965   ac_cpp_err=yes
8966 fi
8967 if test -z "$ac_cpp_err"; then
8968   ac_header_preproc=yes
8969 else
8970   echo "$as_me: failed program was:" >&5
8971   cat conftest.$ac_ext >&5
8972   ac_header_preproc=no
8973 fi
8974 rm -f conftest.err conftest.$ac_ext
8975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8976 echo "${ECHO_T}$ac_header_preproc" >&6
8977
8978 # So?  What about this header?
8979 case $ac_header_compiler:$ac_header_preproc in
8980   yes:no )
8981     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8983     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8985   no:yes )
8986     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8987 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8988     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8989 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8992 esac
8993 echo "$as_me:$LINENO: checking for $ac_header" >&5
8994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8996   echo $ECHO_N "(cached) $ECHO_C" >&6
8997 else
8998   eval "$as_ac_Header=$ac_header_preproc"
8999 fi
9000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9002
9003 fi
9004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9005   cat >>confdefs.h <<_ACEOF
9006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9007 _ACEOF
9008
9009 else
9010   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
9011 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
9012    { (exit 1); exit 1; }; }
9013 fi
9014
9015 done
9016
9017 fi
9018
9019 done
9020
9021 fi
9022
9023 if test "$with_rendezvous" = yes ; then
9024   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9025   echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9026 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9027 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9028   echo $ECHO_N "(cached) $ECHO_C" >&6
9029 fi
9030 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9031 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9032 else
9033   # Is the header compilable?
9034 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
9035 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
9036 cat >conftest.$ac_ext <<_ACEOF
9037 #line $LINENO "configure"
9038 #include "confdefs.h"
9039 $ac_includes_default
9040 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9041 _ACEOF
9042 rm -f conftest.$ac_objext
9043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9044   (eval $ac_compile) 2>&5
9045   ac_status=$?
9046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047   (exit $ac_status); } &&
9048          { ac_try='test -s conftest.$ac_objext'
9049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050   (eval $ac_try) 2>&5
9051   ac_status=$?
9052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053   (exit $ac_status); }; }; then
9054   ac_header_compiler=yes
9055 else
9056   echo "$as_me: failed program was:" >&5
9057 cat conftest.$ac_ext >&5
9058 ac_header_compiler=no
9059 fi
9060 rm -f conftest.$ac_objext conftest.$ac_ext
9061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9062 echo "${ECHO_T}$ac_header_compiler" >&6
9063
9064 # Is the header present?
9065 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9066 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9067 cat >conftest.$ac_ext <<_ACEOF
9068 #line $LINENO "configure"
9069 #include "confdefs.h"
9070 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9071 _ACEOF
9072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9073   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9074   ac_status=$?
9075   egrep -v '^ *\+' conftest.er1 >conftest.err
9076   rm -f conftest.er1
9077   cat conftest.err >&5
9078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079   (exit $ac_status); } >/dev/null; then
9080   if test -s conftest.err; then
9081     ac_cpp_err=$ac_c_preproc_warn_flag
9082   else
9083     ac_cpp_err=
9084   fi
9085 else
9086   ac_cpp_err=yes
9087 fi
9088 if test -z "$ac_cpp_err"; then
9089   ac_header_preproc=yes
9090 else
9091   echo "$as_me: failed program was:" >&5
9092   cat conftest.$ac_ext >&5
9093   ac_header_preproc=no
9094 fi
9095 rm -f conftest.err conftest.$ac_ext
9096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9097 echo "${ECHO_T}$ac_header_preproc" >&6
9098
9099 # So?  What about this header?
9100 case $ac_header_compiler:$ac_header_preproc in
9101   yes:no )
9102     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9103 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9104     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9105 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9106   no:yes )
9107     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9108 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9109     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9110 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9111     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9112 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9113 esac
9114 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9115 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9116 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9117   echo $ECHO_N "(cached) $ECHO_C" >&6
9118 else
9119   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9120 fi
9121 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9122 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9123
9124 fi
9125 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9126   :
9127 else
9128   { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9129 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9130    { (exit 1); exit 1; }; }
9131 fi
9132
9133
9134 fi
9135
9136
9137 ##
9138 ## Types, structures, compiler characteristics
9139 ##
9140
9141
9142 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9143 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9144 if test "${ac_cv_c_const+set}" = set; then
9145   echo $ECHO_N "(cached) $ECHO_C" >&6
9146 else
9147   cat >conftest.$ac_ext <<_ACEOF
9148 #line $LINENO "configure"
9149 #include "confdefs.h"
9150
9151 #ifdef F77_DUMMY_MAIN
9152 #  ifdef __cplusplus
9153      extern "C"
9154 #  endif
9155    int F77_DUMMY_MAIN() { return 1; }
9156 #endif
9157 int
9158 main ()
9159 {
9160 /* FIXME: Include the comments suggested by Paul. */
9161 #ifndef __cplusplus
9162   /* Ultrix mips cc rejects this.  */
9163   typedef int charset[2];
9164   const charset x;
9165   /* SunOS 4.1.1 cc rejects this.  */
9166   char const *const *ccp;
9167   char **p;
9168   /* NEC SVR4.0.2 mips cc rejects this.  */
9169   struct point {int x, y;};
9170   static struct point const zero = {0,0};
9171   /* AIX XL C 1.02.0.0 rejects this.
9172      It does not let you subtract one const X* pointer from another in
9173      an arm of an if-expression whose if-part is not a constant
9174      expression */
9175   const char *g = "string";
9176   ccp = &g + (g ? g-g : 0);
9177   /* HPUX 7.0 cc rejects these. */
9178   ++ccp;
9179   p = (char**) ccp;
9180   ccp = (char const *const *) p;
9181   { /* SCO 3.2v4 cc rejects this.  */
9182     char *t;
9183     char const *s = 0 ? (char *) 0 : (char const *) 0;
9184
9185     *t++ = 0;
9186   }
9187   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9188     int x[] = {25, 17};
9189     const int *foo = &x[0];
9190     ++foo;
9191   }
9192   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9193     typedef const int *iptr;
9194     iptr p = 0;
9195     ++p;
9196   }
9197   { /* AIX XL C 1.02.0.0 rejects this saying
9198        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9199     struct s { int j; const int *ap[3]; };
9200     struct s *b; b->j = 5;
9201   }
9202   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9203     const int foo = 10;
9204   }
9205 #endif
9206
9207   ;
9208   return 0;
9209 }
9210 _ACEOF
9211 rm -f conftest.$ac_objext
9212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9213   (eval $ac_compile) 2>&5
9214   ac_status=$?
9215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216   (exit $ac_status); } &&
9217          { ac_try='test -s conftest.$ac_objext'
9218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219   (eval $ac_try) 2>&5
9220   ac_status=$?
9221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222   (exit $ac_status); }; }; then
9223   ac_cv_c_const=yes
9224 else
9225   echo "$as_me: failed program was:" >&5
9226 cat conftest.$ac_ext >&5
9227 ac_cv_c_const=no
9228 fi
9229 rm -f conftest.$ac_objext conftest.$ac_ext
9230 fi
9231 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9232 echo "${ECHO_T}$ac_cv_c_const" >&6
9233 if test $ac_cv_c_const = no; then
9234
9235 cat >>confdefs.h <<\_ACEOF
9236 #define const
9237 _ACEOF
9238
9239 fi
9240
9241 echo "$as_me:$LINENO: checking for inline" >&5
9242 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9243 if test "${ac_cv_c_inline+set}" = set; then
9244   echo $ECHO_N "(cached) $ECHO_C" >&6
9245 else
9246   ac_cv_c_inline=no
9247 for ac_kw in inline __inline__ __inline; do
9248   cat >conftest.$ac_ext <<_ACEOF
9249 #line $LINENO "configure"
9250 #include "confdefs.h"
9251 #ifndef __cplusplus
9252 static $ac_kw int static_foo () {return 0; }
9253 $ac_kw int foo () {return 0; }
9254 #endif
9255
9256 _ACEOF
9257 rm -f conftest.$ac_objext
9258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9259   (eval $ac_compile) 2>&5
9260   ac_status=$?
9261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262   (exit $ac_status); } &&
9263          { ac_try='test -s conftest.$ac_objext'
9264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9265   (eval $ac_try) 2>&5
9266   ac_status=$?
9267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268   (exit $ac_status); }; }; then
9269   ac_cv_c_inline=$ac_kw; break
9270 else
9271   echo "$as_me: failed program was:" >&5
9272 cat conftest.$ac_ext >&5
9273 fi
9274 rm -f conftest.$ac_objext conftest.$ac_ext
9275 done
9276
9277 fi
9278 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9279 echo "${ECHO_T}$ac_cv_c_inline" >&6
9280 case $ac_cv_c_inline in
9281   inline | yes) ;;
9282   no)
9283 cat >>confdefs.h <<\_ACEOF
9284 #define inline
9285 _ACEOF
9286  ;;
9287   *)  cat >>confdefs.h <<_ACEOF
9288 #define inline $ac_cv_c_inline
9289 _ACEOF
9290  ;;
9291 esac
9292
9293 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9294 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9295 if test "${ac_cv_c_stringize+set}" = set; then
9296   echo $ECHO_N "(cached) $ECHO_C" >&6
9297 else
9298   cat >conftest.$ac_ext <<_ACEOF
9299 #line $LINENO "configure"
9300 #include "confdefs.h"
9301 #define x(y) #y
9302
9303 char *s = x(teststring);
9304 _ACEOF
9305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9306   egrep "#teststring" >/dev/null 2>&1; then
9307   ac_cv_c_stringize=no
9308 else
9309   ac_cv_c_stringize=yes
9310 fi
9311 rm -f conftest*
9312
9313 fi
9314 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9315 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9316 if test $ac_cv_c_stringize = yes; then
9317
9318 cat >>confdefs.h <<\_ACEOF
9319 #define HAVE_STRINGIZE 1
9320 _ACEOF
9321
9322 fi
9323
9324 echo "$as_me:$LINENO: checking for signed types" >&5
9325 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9326 if test "${pgac_cv_c_signed+set}" = set; then
9327   echo $ECHO_N "(cached) $ECHO_C" >&6
9328 else
9329   cat >conftest.$ac_ext <<_ACEOF
9330 #line $LINENO "configure"
9331 #include "confdefs.h"
9332
9333 #ifdef F77_DUMMY_MAIN
9334 #  ifdef __cplusplus
9335      extern "C"
9336 #  endif
9337    int F77_DUMMY_MAIN() { return 1; }
9338 #endif
9339 int
9340 main ()
9341 {
9342 signed char c; signed short s; signed int i;
9343   ;
9344   return 0;
9345 }
9346 _ACEOF
9347 rm -f conftest.$ac_objext
9348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9349   (eval $ac_compile) 2>&5
9350   ac_status=$?
9351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352   (exit $ac_status); } &&
9353          { ac_try='test -s conftest.$ac_objext'
9354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9355   (eval $ac_try) 2>&5
9356   ac_status=$?
9357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358   (exit $ac_status); }; }; then
9359   pgac_cv_c_signed=yes
9360 else
9361   echo "$as_me: failed program was:" >&5
9362 cat conftest.$ac_ext >&5
9363 pgac_cv_c_signed=no
9364 fi
9365 rm -f conftest.$ac_objext conftest.$ac_ext
9366 fi
9367 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9368 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9369 if test x"$pgac_cv_c_signed" = xno ; then
9370
9371 cat >>confdefs.h <<\_ACEOF
9372 #define signed
9373 _ACEOF
9374
9375 fi
9376 echo "$as_me:$LINENO: checking for working volatile" >&5
9377 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9378 if test "${ac_cv_c_volatile+set}" = set; then
9379   echo $ECHO_N "(cached) $ECHO_C" >&6
9380 else
9381   cat >conftest.$ac_ext <<_ACEOF
9382 #line $LINENO "configure"
9383 #include "confdefs.h"
9384
9385 #ifdef F77_DUMMY_MAIN
9386 #  ifdef __cplusplus
9387      extern "C"
9388 #  endif
9389    int F77_DUMMY_MAIN() { return 1; }
9390 #endif
9391 int
9392 main ()
9393 {
9394
9395 volatile int x;
9396 int * volatile y;
9397   ;
9398   return 0;
9399 }
9400 _ACEOF
9401 rm -f conftest.$ac_objext
9402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9403   (eval $ac_compile) 2>&5
9404   ac_status=$?
9405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406   (exit $ac_status); } &&
9407          { ac_try='test -s conftest.$ac_objext'
9408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409   (eval $ac_try) 2>&5
9410   ac_status=$?
9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412   (exit $ac_status); }; }; then
9413   ac_cv_c_volatile=yes
9414 else
9415   echo "$as_me: failed program was:" >&5
9416 cat conftest.$ac_ext >&5
9417 ac_cv_c_volatile=no
9418 fi
9419 rm -f conftest.$ac_objext conftest.$ac_ext
9420 fi
9421 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9422 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9423 if test $ac_cv_c_volatile = no; then
9424
9425 cat >>confdefs.h <<\_ACEOF
9426 #define volatile
9427 _ACEOF
9428
9429 fi
9430
9431 echo "$as_me:$LINENO: checking for __func__" >&5
9432 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9433 if test "${pgac_cv_funcname_func_support+set}" = set; then
9434   echo $ECHO_N "(cached) $ECHO_C" >&6
9435 else
9436   cat >conftest.$ac_ext <<_ACEOF
9437 #line $LINENO "configure"
9438 #include "confdefs.h"
9439 #include <stdio.h>
9440 #ifdef F77_DUMMY_MAIN
9441 #  ifdef __cplusplus
9442      extern "C"
9443 #  endif
9444    int F77_DUMMY_MAIN() { return 1; }
9445 #endif
9446 int
9447 main ()
9448 {
9449 printf("%s\n", __func__);
9450   ;
9451   return 0;
9452 }
9453 _ACEOF
9454 rm -f conftest.$ac_objext
9455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9456   (eval $ac_compile) 2>&5
9457   ac_status=$?
9458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459   (exit $ac_status); } &&
9460          { ac_try='test -s conftest.$ac_objext'
9461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9462   (eval $ac_try) 2>&5
9463   ac_status=$?
9464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465   (exit $ac_status); }; }; then
9466   pgac_cv_funcname_func_support=yes
9467 else
9468   echo "$as_me: failed program was:" >&5
9469 cat conftest.$ac_ext >&5
9470 pgac_cv_funcname_func_support=no
9471 fi
9472 rm -f conftest.$ac_objext conftest.$ac_ext
9473 fi
9474 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9475 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9476 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9477
9478 cat >>confdefs.h <<\_ACEOF
9479 #define HAVE_FUNCNAME__FUNC 1
9480 _ACEOF
9481
9482 else
9483 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9484 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9485 if test "${pgac_cv_funcname_function_support+set}" = set; then
9486   echo $ECHO_N "(cached) $ECHO_C" >&6
9487 else
9488   cat >conftest.$ac_ext <<_ACEOF
9489 #line $LINENO "configure"
9490 #include "confdefs.h"
9491 #include <stdio.h>
9492 #ifdef F77_DUMMY_MAIN
9493 #  ifdef __cplusplus
9494      extern "C"
9495 #  endif
9496    int F77_DUMMY_MAIN() { return 1; }
9497 #endif
9498 int
9499 main ()
9500 {
9501 printf("%s\n", __FUNCTION__);
9502   ;
9503   return 0;
9504 }
9505 _ACEOF
9506 rm -f conftest.$ac_objext
9507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9508   (eval $ac_compile) 2>&5
9509   ac_status=$?
9510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511   (exit $ac_status); } &&
9512          { ac_try='test -s conftest.$ac_objext'
9513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514   (eval $ac_try) 2>&5
9515   ac_status=$?
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); }; }; then
9518   pgac_cv_funcname_function_support=yes
9519 else
9520   echo "$as_me: failed program was:" >&5
9521 cat conftest.$ac_ext >&5
9522 pgac_cv_funcname_function_support=no
9523 fi
9524 rm -f conftest.$ac_objext conftest.$ac_ext
9525 fi
9526 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9527 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9528 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9529
9530 cat >>confdefs.h <<\_ACEOF
9531 #define HAVE_FUNCNAME__FUNCTION 1
9532 _ACEOF
9533
9534 fi
9535 fi
9536 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9537 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9538 if test "${ac_cv_struct_tm+set}" = set; then
9539   echo $ECHO_N "(cached) $ECHO_C" >&6
9540 else
9541   cat >conftest.$ac_ext <<_ACEOF
9542 #line $LINENO "configure"
9543 #include "confdefs.h"
9544 #include <sys/types.h>
9545 #include <time.h>
9546
9547 #ifdef F77_DUMMY_MAIN
9548 #  ifdef __cplusplus
9549      extern "C"
9550 #  endif
9551    int F77_DUMMY_MAIN() { return 1; }
9552 #endif
9553 int
9554 main ()
9555 {
9556 struct tm *tp; tp->tm_sec;
9557   ;
9558   return 0;
9559 }
9560 _ACEOF
9561 rm -f conftest.$ac_objext
9562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9563   (eval $ac_compile) 2>&5
9564   ac_status=$?
9565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566   (exit $ac_status); } &&
9567          { ac_try='test -s conftest.$ac_objext'
9568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9569   (eval $ac_try) 2>&5
9570   ac_status=$?
9571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572   (exit $ac_status); }; }; then
9573   ac_cv_struct_tm=time.h
9574 else
9575   echo "$as_me: failed program was:" >&5
9576 cat conftest.$ac_ext >&5
9577 ac_cv_struct_tm=sys/time.h
9578 fi
9579 rm -f conftest.$ac_objext conftest.$ac_ext
9580 fi
9581 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9582 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9583 if test $ac_cv_struct_tm = sys/time.h; then
9584
9585 cat >>confdefs.h <<\_ACEOF
9586 #define TM_IN_SYS_TIME 1
9587 _ACEOF
9588
9589 fi
9590
9591 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9592 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9593 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9594   echo $ECHO_N "(cached) $ECHO_C" >&6
9595 else
9596   cat >conftest.$ac_ext <<_ACEOF
9597 #line $LINENO "configure"
9598 #include "confdefs.h"
9599 #include <sys/types.h>
9600 #include <$ac_cv_struct_tm>
9601
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 static struct tm ac_aggr;
9613 if (ac_aggr.tm_zone)
9614 return 0;
9615   ;
9616   return 0;
9617 }
9618 _ACEOF
9619 rm -f conftest.$ac_objext
9620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9621   (eval $ac_compile) 2>&5
9622   ac_status=$?
9623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624   (exit $ac_status); } &&
9625          { ac_try='test -s conftest.$ac_objext'
9626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9627   (eval $ac_try) 2>&5
9628   ac_status=$?
9629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630   (exit $ac_status); }; }; then
9631   ac_cv_member_struct_tm_tm_zone=yes
9632 else
9633   echo "$as_me: failed program was:" >&5
9634 cat conftest.$ac_ext >&5
9635 ac_cv_member_struct_tm_tm_zone=no
9636 fi
9637 rm -f conftest.$ac_objext conftest.$ac_ext
9638 fi
9639 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9640 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9641 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9642
9643 cat >>confdefs.h <<_ACEOF
9644 #define HAVE_STRUCT_TM_TM_ZONE 1
9645 _ACEOF
9646
9647
9648 fi
9649
9650 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9651
9652 cat >>confdefs.h <<\_ACEOF
9653 #define HAVE_TM_ZONE 1
9654 _ACEOF
9655
9656 fi
9657 echo "$as_me:$LINENO: checking for tzname" >&5
9658 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9659 if test "${ac_cv_var_tzname+set}" = set; then
9660   echo $ECHO_N "(cached) $ECHO_C" >&6
9661 else
9662   cat >conftest.$ac_ext <<_ACEOF
9663 #line $LINENO "configure"
9664 #include "confdefs.h"
9665 #include <time.h>
9666 #ifndef tzname /* For SGI.  */
9667 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9668 #endif
9669
9670 #ifdef F77_DUMMY_MAIN
9671 #  ifdef __cplusplus
9672      extern "C"
9673 #  endif
9674    int F77_DUMMY_MAIN() { return 1; }
9675 #endif
9676 int
9677 main ()
9678 {
9679 atoi(*tzname);
9680   ;
9681   return 0;
9682 }
9683 _ACEOF
9684 rm -f conftest.$ac_objext conftest$ac_exeext
9685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9686   (eval $ac_link) 2>&5
9687   ac_status=$?
9688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689   (exit $ac_status); } &&
9690          { ac_try='test -s conftest$ac_exeext'
9691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692   (eval $ac_try) 2>&5
9693   ac_status=$?
9694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695   (exit $ac_status); }; }; then
9696   ac_cv_var_tzname=yes
9697 else
9698   echo "$as_me: failed program was:" >&5
9699 cat conftest.$ac_ext >&5
9700 ac_cv_var_tzname=no
9701 fi
9702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9703 fi
9704 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9705 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9706 if test $ac_cv_var_tzname = yes; then
9707
9708 cat >>confdefs.h <<\_ACEOF
9709 #define HAVE_TZNAME 1
9710 _ACEOF
9711
9712 fi
9713
9714 echo "$as_me:$LINENO: checking for union semun" >&5
9715 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9716 if test "${ac_cv_type_union_semun+set}" = set; then
9717   echo $ECHO_N "(cached) $ECHO_C" >&6
9718 else
9719   cat >conftest.$ac_ext <<_ACEOF
9720 #line $LINENO "configure"
9721 #include "confdefs.h"
9722 #include <sys/types.h>
9723 #include <sys/ipc.h>
9724 #include <sys/sem.h>
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 if ((union semun *) 0)
9736   return 0;
9737 if (sizeof (union semun))
9738   return 0;
9739   ;
9740   return 0;
9741 }
9742 _ACEOF
9743 rm -f conftest.$ac_objext
9744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9745   (eval $ac_compile) 2>&5
9746   ac_status=$?
9747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748   (exit $ac_status); } &&
9749          { ac_try='test -s conftest.$ac_objext'
9750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751   (eval $ac_try) 2>&5
9752   ac_status=$?
9753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754   (exit $ac_status); }; }; then
9755   ac_cv_type_union_semun=yes
9756 else
9757   echo "$as_me: failed program was:" >&5
9758 cat conftest.$ac_ext >&5
9759 ac_cv_type_union_semun=no
9760 fi
9761 rm -f conftest.$ac_objext conftest.$ac_ext
9762 fi
9763 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9764 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9765 if test $ac_cv_type_union_semun = yes; then
9766
9767 cat >>confdefs.h <<_ACEOF
9768 #define HAVE_UNION_SEMUN 1
9769 _ACEOF
9770
9771
9772 fi
9773
9774 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9775 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9776 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9777   echo $ECHO_N "(cached) $ECHO_C" >&6
9778 else
9779   cat >conftest.$ac_ext <<_ACEOF
9780 #line $LINENO "configure"
9781 #include "confdefs.h"
9782 #include <sys/types.h>
9783 #ifdef HAVE_SYS_UN_H
9784 #include <sys/un.h>
9785 #endif
9786
9787
9788 #ifdef F77_DUMMY_MAIN
9789 #  ifdef __cplusplus
9790      extern "C"
9791 #  endif
9792    int F77_DUMMY_MAIN() { return 1; }
9793 #endif
9794 int
9795 main ()
9796 {
9797 if ((struct sockaddr_un *) 0)
9798   return 0;
9799 if (sizeof (struct sockaddr_un))
9800   return 0;
9801   ;
9802   return 0;
9803 }
9804 _ACEOF
9805 rm -f conftest.$ac_objext
9806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9807   (eval $ac_compile) 2>&5
9808   ac_status=$?
9809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810   (exit $ac_status); } &&
9811          { ac_try='test -s conftest.$ac_objext'
9812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813   (eval $ac_try) 2>&5
9814   ac_status=$?
9815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816   (exit $ac_status); }; }; then
9817   ac_cv_type_struct_sockaddr_un=yes
9818 else
9819   echo "$as_me: failed program was:" >&5
9820 cat conftest.$ac_ext >&5
9821 ac_cv_type_struct_sockaddr_un=no
9822 fi
9823 rm -f conftest.$ac_objext conftest.$ac_ext
9824 fi
9825 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9826 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9827 if test $ac_cv_type_struct_sockaddr_un = yes; then
9828
9829 cat >>confdefs.h <<_ACEOF
9830 #define HAVE_STRUCT_SOCKADDR_UN 1
9831 _ACEOF
9832
9833
9834 cat >>confdefs.h <<\_ACEOF
9835 #define HAVE_UNIX_SOCKETS 1
9836 _ACEOF
9837
9838 fi
9839
9840 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9841 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9842 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9843   echo $ECHO_N "(cached) $ECHO_C" >&6
9844 else
9845   cat >conftest.$ac_ext <<_ACEOF
9846 #line $LINENO "configure"
9847 #include "confdefs.h"
9848 #include <sys/types.h>
9849 #ifdef HAVE_SYS_SOCKET_H
9850 #include <sys/socket.h>
9851 #endif
9852
9853
9854 #ifdef F77_DUMMY_MAIN
9855 #  ifdef __cplusplus
9856      extern "C"
9857 #  endif
9858    int F77_DUMMY_MAIN() { return 1; }
9859 #endif
9860 int
9861 main ()
9862 {
9863 if ((struct sockaddr_storage *) 0)
9864   return 0;
9865 if (sizeof (struct sockaddr_storage))
9866   return 0;
9867   ;
9868   return 0;
9869 }
9870 _ACEOF
9871 rm -f conftest.$ac_objext
9872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9873   (eval $ac_compile) 2>&5
9874   ac_status=$?
9875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876   (exit $ac_status); } &&
9877          { ac_try='test -s conftest.$ac_objext'
9878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879   (eval $ac_try) 2>&5
9880   ac_status=$?
9881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882   (exit $ac_status); }; }; then
9883   ac_cv_type_struct_sockaddr_storage=yes
9884 else
9885   echo "$as_me: failed program was:" >&5
9886 cat conftest.$ac_ext >&5
9887 ac_cv_type_struct_sockaddr_storage=no
9888 fi
9889 rm -f conftest.$ac_objext conftest.$ac_ext
9890 fi
9891 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
9892 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
9893 if test $ac_cv_type_struct_sockaddr_storage = yes; then
9894
9895 cat >>confdefs.h <<_ACEOF
9896 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9897 _ACEOF
9898
9899
9900 fi
9901
9902 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
9903 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
9904 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
9905   echo $ECHO_N "(cached) $ECHO_C" >&6
9906 else
9907   cat >conftest.$ac_ext <<_ACEOF
9908 #line $LINENO "configure"
9909 #include "confdefs.h"
9910 #include <sys/types.h>
9911 #ifdef HAVE_SYS_SOCKET_H
9912 #include <sys/socket.h>
9913 #endif
9914
9915
9916 #ifdef F77_DUMMY_MAIN
9917 #  ifdef __cplusplus
9918      extern "C"
9919 #  endif
9920    int F77_DUMMY_MAIN() { return 1; }
9921 #endif
9922 int
9923 main ()
9924 {
9925 static struct sockaddr_storage ac_aggr;
9926 if (ac_aggr.ss_family)
9927 return 0;
9928   ;
9929   return 0;
9930 }
9931 _ACEOF
9932 rm -f conftest.$ac_objext
9933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9934   (eval $ac_compile) 2>&5
9935   ac_status=$?
9936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937   (exit $ac_status); } &&
9938          { ac_try='test -s conftest.$ac_objext'
9939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940   (eval $ac_try) 2>&5
9941   ac_status=$?
9942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943   (exit $ac_status); }; }; then
9944   ac_cv_member_struct_sockaddr_storage_ss_family=yes
9945 else
9946   echo "$as_me: failed program was:" >&5
9947 cat conftest.$ac_ext >&5
9948 ac_cv_member_struct_sockaddr_storage_ss_family=no
9949 fi
9950 rm -f conftest.$ac_objext conftest.$ac_ext
9951 fi
9952 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
9953 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
9954 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
9955
9956 cat >>confdefs.h <<_ACEOF
9957 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
9958 _ACEOF
9959
9960
9961 fi
9962 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
9963 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
9964 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
9965   echo $ECHO_N "(cached) $ECHO_C" >&6
9966 else
9967   cat >conftest.$ac_ext <<_ACEOF
9968 #line $LINENO "configure"
9969 #include "confdefs.h"
9970 #include <sys/types.h>
9971 #ifdef HAVE_SYS_SOCKET_H
9972 #include <sys/socket.h>
9973 #endif
9974
9975
9976 #ifdef F77_DUMMY_MAIN
9977 #  ifdef __cplusplus
9978      extern "C"
9979 #  endif
9980    int F77_DUMMY_MAIN() { return 1; }
9981 #endif
9982 int
9983 main ()
9984 {
9985 static struct sockaddr_storage ac_aggr;
9986 if (ac_aggr.__ss_family)
9987 return 0;
9988   ;
9989   return 0;
9990 }
9991 _ACEOF
9992 rm -f conftest.$ac_objext
9993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9994   (eval $ac_compile) 2>&5
9995   ac_status=$?
9996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997   (exit $ac_status); } &&
9998          { ac_try='test -s conftest.$ac_objext'
9999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000   (eval $ac_try) 2>&5
10001   ac_status=$?
10002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003   (exit $ac_status); }; }; then
10004   ac_cv_member_struct_sockaddr_storage___ss_family=yes
10005 else
10006   echo "$as_me: failed program was:" >&5
10007 cat conftest.$ac_ext >&5
10008 ac_cv_member_struct_sockaddr_storage___ss_family=no
10009 fi
10010 rm -f conftest.$ac_objext conftest.$ac_ext
10011 fi
10012 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
10013 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
10014 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
10015
10016 cat >>confdefs.h <<_ACEOF
10017 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
10018 _ACEOF
10019
10020
10021 fi
10022 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
10023 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
10024 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
10025   echo $ECHO_N "(cached) $ECHO_C" >&6
10026 else
10027   cat >conftest.$ac_ext <<_ACEOF
10028 #line $LINENO "configure"
10029 #include "confdefs.h"
10030 #include <sys/types.h>
10031 #ifdef HAVE_SYS_SOCKET_H
10032 #include <sys/socket.h>
10033 #endif
10034
10035
10036 #ifdef F77_DUMMY_MAIN
10037 #  ifdef __cplusplus
10038      extern "C"
10039 #  endif
10040    int F77_DUMMY_MAIN() { return 1; }
10041 #endif
10042 int
10043 main ()
10044 {
10045 static struct sockaddr_storage ac_aggr;
10046 if (ac_aggr.ss_len)
10047 return 0;
10048   ;
10049   return 0;
10050 }
10051 _ACEOF
10052 rm -f conftest.$ac_objext
10053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10054   (eval $ac_compile) 2>&5
10055   ac_status=$?
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); } &&
10058          { ac_try='test -s conftest.$ac_objext'
10059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060   (eval $ac_try) 2>&5
10061   ac_status=$?
10062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063   (exit $ac_status); }; }; then
10064   ac_cv_member_struct_sockaddr_storage_ss_len=yes
10065 else
10066   echo "$as_me: failed program was:" >&5
10067 cat conftest.$ac_ext >&5
10068 ac_cv_member_struct_sockaddr_storage_ss_len=no
10069 fi
10070 rm -f conftest.$ac_objext conftest.$ac_ext
10071 fi
10072 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
10073 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
10074 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
10075
10076 cat >>confdefs.h <<_ACEOF
10077 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
10078 _ACEOF
10079
10080
10081 fi
10082 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
10083 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
10084 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
10085   echo $ECHO_N "(cached) $ECHO_C" >&6
10086 else
10087   cat >conftest.$ac_ext <<_ACEOF
10088 #line $LINENO "configure"
10089 #include "confdefs.h"
10090 #include <sys/types.h>
10091 #ifdef HAVE_SYS_SOCKET_H
10092 #include <sys/socket.h>
10093 #endif
10094
10095
10096 #ifdef F77_DUMMY_MAIN
10097 #  ifdef __cplusplus
10098      extern "C"
10099 #  endif
10100    int F77_DUMMY_MAIN() { return 1; }
10101 #endif
10102 int
10103 main ()
10104 {
10105 static struct sockaddr_storage ac_aggr;
10106 if (ac_aggr.__ss_len)
10107 return 0;
10108   ;
10109   return 0;
10110 }
10111 _ACEOF
10112 rm -f conftest.$ac_objext
10113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10114   (eval $ac_compile) 2>&5
10115   ac_status=$?
10116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117   (exit $ac_status); } &&
10118          { ac_try='test -s conftest.$ac_objext'
10119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120   (eval $ac_try) 2>&5
10121   ac_status=$?
10122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123   (exit $ac_status); }; }; then
10124   ac_cv_member_struct_sockaddr_storage___ss_len=yes
10125 else
10126   echo "$as_me: failed program was:" >&5
10127 cat conftest.$ac_ext >&5
10128 ac_cv_member_struct_sockaddr_storage___ss_len=no
10129 fi
10130 rm -f conftest.$ac_objext conftest.$ac_ext
10131 fi
10132 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
10133 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
10134 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
10135
10136 cat >>confdefs.h <<_ACEOF
10137 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10138 _ACEOF
10139
10140
10141 fi
10142 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
10143 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
10144 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
10145   echo $ECHO_N "(cached) $ECHO_C" >&6
10146 else
10147   cat >conftest.$ac_ext <<_ACEOF
10148 #line $LINENO "configure"
10149 #include "confdefs.h"
10150 #include <sys/types.h>
10151 #ifdef HAVE_SYS_SOCKET_H
10152 #include <sys/socket.h>
10153 #endif
10154
10155
10156 #ifdef F77_DUMMY_MAIN
10157 #  ifdef __cplusplus
10158      extern "C"
10159 #  endif
10160    int F77_DUMMY_MAIN() { return 1; }
10161 #endif
10162 int
10163 main ()
10164 {
10165 static struct sockaddr ac_aggr;
10166 if (ac_aggr.sa_len)
10167 return 0;
10168   ;
10169   return 0;
10170 }
10171 _ACEOF
10172 rm -f conftest.$ac_objext
10173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10174   (eval $ac_compile) 2>&5
10175   ac_status=$?
10176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177   (exit $ac_status); } &&
10178          { ac_try='test -s conftest.$ac_objext'
10179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180   (eval $ac_try) 2>&5
10181   ac_status=$?
10182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183   (exit $ac_status); }; }; then
10184   ac_cv_member_struct_sockaddr_sa_len=yes
10185 else
10186   echo "$as_me: failed program was:" >&5
10187 cat conftest.$ac_ext >&5
10188 ac_cv_member_struct_sockaddr_sa_len=no
10189 fi
10190 rm -f conftest.$ac_objext conftest.$ac_ext
10191 fi
10192 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10193 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10194 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10195
10196 cat >>confdefs.h <<_ACEOF
10197 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10198 _ACEOF
10199
10200
10201 fi
10202
10203 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10204 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10205 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10206   echo $ECHO_N "(cached) $ECHO_C" >&6
10207 else
10208   cat >conftest.$ac_ext <<_ACEOF
10209 #line $LINENO "configure"
10210 #include "confdefs.h"
10211 #include <sys/types.h>
10212 #include <sys/socket.h>
10213 #include <netdb.h>
10214
10215
10216 #ifdef F77_DUMMY_MAIN
10217 #  ifdef __cplusplus
10218      extern "C"
10219 #  endif
10220    int F77_DUMMY_MAIN() { return 1; }
10221 #endif
10222 int
10223 main ()
10224 {
10225 if ((struct addrinfo *) 0)
10226   return 0;
10227 if (sizeof (struct addrinfo))
10228   return 0;
10229   ;
10230   return 0;
10231 }
10232 _ACEOF
10233 rm -f conftest.$ac_objext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10235   (eval $ac_compile) 2>&5
10236   ac_status=$?
10237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238   (exit $ac_status); } &&
10239          { ac_try='test -s conftest.$ac_objext'
10240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10241   (eval $ac_try) 2>&5
10242   ac_status=$?
10243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244   (exit $ac_status); }; }; then
10245   ac_cv_type_struct_addrinfo=yes
10246 else
10247   echo "$as_me: failed program was:" >&5
10248 cat conftest.$ac_ext >&5
10249 ac_cv_type_struct_addrinfo=no
10250 fi
10251 rm -f conftest.$ac_objext conftest.$ac_ext
10252 fi
10253 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10254 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10255 if test $ac_cv_type_struct_addrinfo = yes; then
10256
10257 cat >>confdefs.h <<_ACEOF
10258 #define HAVE_STRUCT_ADDRINFO 1
10259 _ACEOF
10260
10261
10262 fi
10263
10264
10265 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10266 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10267 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10268   echo $ECHO_N "(cached) $ECHO_C" >&6
10269 else
10270   cat >conftest.$ac_ext <<_ACEOF
10271 #line $LINENO "configure"
10272 #include "confdefs.h"
10273 #include <sys/param.h>
10274 #include <sys/types.h>
10275 #include <sys/socket.h>
10276 #include <sys/ucred.h>
10277
10278 #ifdef F77_DUMMY_MAIN
10279 #  ifdef __cplusplus
10280      extern "C"
10281 #  endif
10282    int F77_DUMMY_MAIN() { return 1; }
10283 #endif
10284 int
10285 main ()
10286 {
10287 if ((struct cmsgcred *) 0)
10288   return 0;
10289 if (sizeof (struct cmsgcred))
10290   return 0;
10291   ;
10292   return 0;
10293 }
10294 _ACEOF
10295 rm -f conftest.$ac_objext
10296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10297   (eval $ac_compile) 2>&5
10298   ac_status=$?
10299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); } &&
10301          { ac_try='test -s conftest.$ac_objext'
10302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303   (eval $ac_try) 2>&5
10304   ac_status=$?
10305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306   (exit $ac_status); }; }; then
10307   ac_cv_type_struct_cmsgcred=yes
10308 else
10309   echo "$as_me: failed program was:" >&5
10310 cat conftest.$ac_ext >&5
10311 ac_cv_type_struct_cmsgcred=no
10312 fi
10313 rm -f conftest.$ac_objext conftest.$ac_ext
10314 fi
10315 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10316 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10317 if test $ac_cv_type_struct_cmsgcred = yes; then
10318
10319 cat >>confdefs.h <<_ACEOF
10320 #define HAVE_STRUCT_CMSGCRED 1
10321 _ACEOF
10322
10323
10324 fi
10325 echo "$as_me:$LINENO: checking for struct fcred" >&5
10326 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10327 if test "${ac_cv_type_struct_fcred+set}" = set; then
10328   echo $ECHO_N "(cached) $ECHO_C" >&6
10329 else
10330   cat >conftest.$ac_ext <<_ACEOF
10331 #line $LINENO "configure"
10332 #include "confdefs.h"
10333 #include <sys/param.h>
10334 #include <sys/types.h>
10335 #include <sys/socket.h>
10336 #include <sys/ucred.h>
10337
10338 #ifdef F77_DUMMY_MAIN
10339 #  ifdef __cplusplus
10340      extern "C"
10341 #  endif
10342    int F77_DUMMY_MAIN() { return 1; }
10343 #endif
10344 int
10345 main ()
10346 {
10347 if ((struct fcred *) 0)
10348   return 0;
10349 if (sizeof (struct fcred))
10350   return 0;
10351   ;
10352   return 0;
10353 }
10354 _ACEOF
10355 rm -f conftest.$ac_objext
10356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10357   (eval $ac_compile) 2>&5
10358   ac_status=$?
10359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360   (exit $ac_status); } &&
10361          { ac_try='test -s conftest.$ac_objext'
10362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363   (eval $ac_try) 2>&5
10364   ac_status=$?
10365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366   (exit $ac_status); }; }; then
10367   ac_cv_type_struct_fcred=yes
10368 else
10369   echo "$as_me: failed program was:" >&5
10370 cat conftest.$ac_ext >&5
10371 ac_cv_type_struct_fcred=no
10372 fi
10373 rm -f conftest.$ac_objext conftest.$ac_ext
10374 fi
10375 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10376 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10377 if test $ac_cv_type_struct_fcred = yes; then
10378
10379 cat >>confdefs.h <<_ACEOF
10380 #define HAVE_STRUCT_FCRED 1
10381 _ACEOF
10382
10383
10384 fi
10385 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10386 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10387 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10388   echo $ECHO_N "(cached) $ECHO_C" >&6
10389 else
10390   cat >conftest.$ac_ext <<_ACEOF
10391 #line $LINENO "configure"
10392 #include "confdefs.h"
10393 #include <sys/param.h>
10394 #include <sys/types.h>
10395 #include <sys/socket.h>
10396 #include <sys/ucred.h>
10397
10398 #ifdef F77_DUMMY_MAIN
10399 #  ifdef __cplusplus
10400      extern "C"
10401 #  endif
10402    int F77_DUMMY_MAIN() { return 1; }
10403 #endif
10404 int
10405 main ()
10406 {
10407 if ((struct sockcred *) 0)
10408   return 0;
10409 if (sizeof (struct sockcred))
10410   return 0;
10411   ;
10412   return 0;
10413 }
10414 _ACEOF
10415 rm -f conftest.$ac_objext
10416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10417   (eval $ac_compile) 2>&5
10418   ac_status=$?
10419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420   (exit $ac_status); } &&
10421          { ac_try='test -s conftest.$ac_objext'
10422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10423   (eval $ac_try) 2>&5
10424   ac_status=$?
10425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426   (exit $ac_status); }; }; then
10427   ac_cv_type_struct_sockcred=yes
10428 else
10429   echo "$as_me: failed program was:" >&5
10430 cat conftest.$ac_ext >&5
10431 ac_cv_type_struct_sockcred=no
10432 fi
10433 rm -f conftest.$ac_objext conftest.$ac_ext
10434 fi
10435 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10436 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10437 if test $ac_cv_type_struct_sockcred = yes; then
10438
10439 cat >>confdefs.h <<_ACEOF
10440 #define HAVE_STRUCT_SOCKCRED 1
10441 _ACEOF
10442
10443
10444 fi
10445
10446
10447 echo "$as_me:$LINENO: checking for struct option" >&5
10448 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
10449 if test "${ac_cv_type_struct_option+set}" = set; then
10450   echo $ECHO_N "(cached) $ECHO_C" >&6
10451 else
10452   cat >conftest.$ac_ext <<_ACEOF
10453 #line $LINENO "configure"
10454 #include "confdefs.h"
10455 #ifdef HAVE_GETOPT_H
10456 #include <getopt.h>
10457 #endif
10458
10459 #ifdef F77_DUMMY_MAIN
10460 #  ifdef __cplusplus
10461      extern "C"
10462 #  endif
10463    int F77_DUMMY_MAIN() { return 1; }
10464 #endif
10465 int
10466 main ()
10467 {
10468 if ((struct option *) 0)
10469   return 0;
10470 if (sizeof (struct option))
10471   return 0;
10472   ;
10473   return 0;
10474 }
10475 _ACEOF
10476 rm -f conftest.$ac_objext
10477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10478   (eval $ac_compile) 2>&5
10479   ac_status=$?
10480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481   (exit $ac_status); } &&
10482          { ac_try='test -s conftest.$ac_objext'
10483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484   (eval $ac_try) 2>&5
10485   ac_status=$?
10486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487   (exit $ac_status); }; }; then
10488   ac_cv_type_struct_option=yes
10489 else
10490   echo "$as_me: failed program was:" >&5
10491 cat conftest.$ac_ext >&5
10492 ac_cv_type_struct_option=no
10493 fi
10494 rm -f conftest.$ac_objext conftest.$ac_ext
10495 fi
10496 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
10497 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
10498 if test $ac_cv_type_struct_option = yes; then
10499
10500 cat >>confdefs.h <<_ACEOF
10501 #define HAVE_STRUCT_OPTION 1
10502 _ACEOF
10503
10504
10505 fi
10506
10507
10508 if test "$with_zlib" = yes; then
10509   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10510   # did not).  While we could work around the lack of z_streamp, it
10511   # seems unwise to encourage people to use such old zlib versions...
10512   echo "$as_me:$LINENO: checking for z_streamp" >&5
10513 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10514 if test "${ac_cv_type_z_streamp+set}" = set; then
10515   echo $ECHO_N "(cached) $ECHO_C" >&6
10516 else
10517   cat >conftest.$ac_ext <<_ACEOF
10518 #line $LINENO "configure"
10519 #include "confdefs.h"
10520 #include <zlib.h>
10521
10522 #ifdef F77_DUMMY_MAIN
10523 #  ifdef __cplusplus
10524      extern "C"
10525 #  endif
10526    int F77_DUMMY_MAIN() { return 1; }
10527 #endif
10528 int
10529 main ()
10530 {
10531 if ((z_streamp *) 0)
10532   return 0;
10533 if (sizeof (z_streamp))
10534   return 0;
10535   ;
10536   return 0;
10537 }
10538 _ACEOF
10539 rm -f conftest.$ac_objext
10540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10541   (eval $ac_compile) 2>&5
10542   ac_status=$?
10543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544   (exit $ac_status); } &&
10545          { ac_try='test -s conftest.$ac_objext'
10546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547   (eval $ac_try) 2>&5
10548   ac_status=$?
10549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550   (exit $ac_status); }; }; then
10551   ac_cv_type_z_streamp=yes
10552 else
10553   echo "$as_me: failed program was:" >&5
10554 cat conftest.$ac_ext >&5
10555 ac_cv_type_z_streamp=no
10556 fi
10557 rm -f conftest.$ac_objext conftest.$ac_ext
10558 fi
10559 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10560 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10561 if test $ac_cv_type_z_streamp = yes; then
10562   :
10563 else
10564   { { echo "$as_me:$LINENO: error: zlib version is too old
10565 Use --without-zlib to disable zlib support." >&5
10566 echo "$as_me: error: zlib version is too old
10567 Use --without-zlib to disable zlib support." >&2;}
10568    { (exit 1); exit 1; }; }
10569 fi
10570
10571 fi
10572
10573 if test "$with_krb5" = yes; then
10574 # Check for differences between MIT and Heimdal (KTH) releases
10575   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10576 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10577 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10578   echo $ECHO_N "(cached) $ECHO_C" >&6
10579 else
10580   cat >conftest.$ac_ext <<_ACEOF
10581 #line $LINENO "configure"
10582 #include "confdefs.h"
10583 #include <krb5.h>
10584
10585 #ifdef F77_DUMMY_MAIN
10586 #  ifdef __cplusplus
10587      extern "C"
10588 #  endif
10589    int F77_DUMMY_MAIN() { return 1; }
10590 #endif
10591 int
10592 main ()
10593 {
10594 static krb5_ticket ac_aggr;
10595 if (ac_aggr.enc_part2)
10596 return 0;
10597   ;
10598   return 0;
10599 }
10600 _ACEOF
10601 rm -f conftest.$ac_objext
10602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10603   (eval $ac_compile) 2>&5
10604   ac_status=$?
10605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606   (exit $ac_status); } &&
10607          { ac_try='test -s conftest.$ac_objext'
10608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10609   (eval $ac_try) 2>&5
10610   ac_status=$?
10611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612   (exit $ac_status); }; }; then
10613   ac_cv_member_krb5_ticket_enc_part2=yes
10614 else
10615   echo "$as_me: failed program was:" >&5
10616 cat conftest.$ac_ext >&5
10617 ac_cv_member_krb5_ticket_enc_part2=no
10618 fi
10619 rm -f conftest.$ac_objext conftest.$ac_ext
10620 fi
10621 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10622 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10623 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10624
10625 cat >>confdefs.h <<_ACEOF
10626 #define HAVE_KRB5_TICKET_ENC_PART2 1
10627 _ACEOF
10628
10629
10630 else
10631   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10632 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10633 if test "${ac_cv_member_krb5_ticket_client+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.client)
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_client=yes
10670 else
10671   echo "$as_me: failed program was:" >&5
10672 cat conftest.$ac_ext >&5
10673 ac_cv_member_krb5_ticket_client=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_client" >&5
10678 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10679 if test $ac_cv_member_krb5_ticket_client = yes; then
10680
10681 cat >>confdefs.h <<_ACEOF
10682 #define HAVE_KRB5_TICKET_CLIENT 1
10683 _ACEOF
10684
10685
10686 else
10687   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10688 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10689    { (exit 1); exit 1; }; }
10690 fi
10691
10692 fi
10693
10694   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10695 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10696 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10697   echo $ECHO_N "(cached) $ECHO_C" >&6
10698 else
10699   cat >conftest.$ac_ext <<_ACEOF
10700 #line $LINENO "configure"
10701 #include "confdefs.h"
10702 #include <krb5.h>
10703
10704 #ifdef F77_DUMMY_MAIN
10705 #  ifdef __cplusplus
10706      extern "C"
10707 #  endif
10708    int F77_DUMMY_MAIN() { return 1; }
10709 #endif
10710 int
10711 main ()
10712 {
10713 static krb5_error ac_aggr;
10714 if (ac_aggr.text.data)
10715 return 0;
10716   ;
10717   return 0;
10718 }
10719 _ACEOF
10720 rm -f conftest.$ac_objext
10721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10722   (eval $ac_compile) 2>&5
10723   ac_status=$?
10724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725   (exit $ac_status); } &&
10726          { ac_try='test -s conftest.$ac_objext'
10727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728   (eval $ac_try) 2>&5
10729   ac_status=$?
10730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731   (exit $ac_status); }; }; then
10732   ac_cv_member_krb5_error_text_data=yes
10733 else
10734   echo "$as_me: failed program was:" >&5
10735 cat conftest.$ac_ext >&5
10736 ac_cv_member_krb5_error_text_data=no
10737 fi
10738 rm -f conftest.$ac_objext conftest.$ac_ext
10739 fi
10740 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10741 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10742 if test $ac_cv_member_krb5_error_text_data = yes; then
10743
10744 cat >>confdefs.h <<_ACEOF
10745 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10746 _ACEOF
10747
10748
10749 else
10750   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10751 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10752 if test "${ac_cv_member_krb5_error_e_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.e_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_e_data=yes
10789 else
10790   echo "$as_me: failed program was:" >&5
10791 cat conftest.$ac_ext >&5
10792 ac_cv_member_krb5_error_e_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_e_data" >&5
10797 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10798 if test $ac_cv_member_krb5_error_e_data = yes; then
10799
10800 cat >>confdefs.h <<_ACEOF
10801 #define HAVE_KRB5_ERROR_E_DATA 1
10802 _ACEOF
10803
10804
10805 else
10806   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10807 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10808    { (exit 1); exit 1; }; }
10809 fi
10810
10811 fi
10812
10813 fi
10814
10815
10816 ##
10817 ## Functions, global variables
10818 ##
10819
10820 echo "$as_me:$LINENO: checking for int timezone" >&5
10821 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10822 if test "${pgac_cv_var_int_timezone+set}" = set; then
10823   echo $ECHO_N "(cached) $ECHO_C" >&6
10824 else
10825   cat >conftest.$ac_ext <<_ACEOF
10826 #line $LINENO "configure"
10827 #include "confdefs.h"
10828 #include <time.h>
10829 int res;
10830 #ifdef F77_DUMMY_MAIN
10831 #  ifdef __cplusplus
10832      extern "C"
10833 #  endif
10834    int F77_DUMMY_MAIN() { return 1; }
10835 #endif
10836 int
10837 main ()
10838 {
10839 res = timezone / 60;
10840   ;
10841   return 0;
10842 }
10843 _ACEOF
10844 rm -f conftest.$ac_objext conftest$ac_exeext
10845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10846   (eval $ac_link) 2>&5
10847   ac_status=$?
10848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849   (exit $ac_status); } &&
10850          { ac_try='test -s conftest$ac_exeext'
10851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10852   (eval $ac_try) 2>&5
10853   ac_status=$?
10854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855   (exit $ac_status); }; }; then
10856   pgac_cv_var_int_timezone=yes
10857 else
10858   echo "$as_me: failed program was:" >&5
10859 cat conftest.$ac_ext >&5
10860 pgac_cv_var_int_timezone=no
10861 fi
10862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10863 fi
10864 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10865 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10866 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10867
10868 cat >>confdefs.h <<\_ACEOF
10869 #define HAVE_INT_TIMEZONE
10870 _ACEOF
10871
10872 fi
10873 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10874 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10875  if test "${ac_cv_func_accept_return+set}" = set; then
10876   echo $ECHO_N "(cached) $ECHO_C" >&6
10877 else
10878    if test "${ac_cv_func_accept_arg1+set}" = set; then
10879   echo $ECHO_N "(cached) $ECHO_C" >&6
10880 else
10881     if test "${ac_cv_func_accept_arg2+set}" = set; then
10882   echo $ECHO_N "(cached) $ECHO_C" >&6
10883 else
10884      if test "${ac_cv_func_accept_arg3+set}" = set; then
10885   echo $ECHO_N "(cached) $ECHO_C" >&6
10886 else
10887       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
10888       for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10889        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10890         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10891          cat >conftest.$ac_ext <<_ACEOF
10892 #line $LINENO "configure"
10893 #include "confdefs.h"
10894 #ifdef HAVE_SYS_TYPES_H
10895 #include <sys/types.h>
10896 #endif
10897 #ifdef HAVE_SYS_SOCKET_H
10898 #include <sys/socket.h>
10899 #endif
10900 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10901 #ifdef F77_DUMMY_MAIN
10902 #  ifdef __cplusplus
10903      extern "C"
10904 #  endif
10905    int F77_DUMMY_MAIN() { return 1; }
10906 #endif
10907 int
10908 main ()
10909 {
10910
10911   ;
10912   return 0;
10913 }
10914 _ACEOF
10915 rm -f conftest.$ac_objext
10916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10917   (eval $ac_compile) 2>&5
10918   ac_status=$?
10919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920   (exit $ac_status); } &&
10921          { ac_try='test -s conftest.$ac_objext'
10922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923   (eval $ac_try) 2>&5
10924   ac_status=$?
10925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926   (exit $ac_status); }; }; then
10927   ac_not_found=no; break 4
10928 else
10929   echo "$as_me: failed program was:" >&5
10930 cat conftest.$ac_ext >&5
10931 ac_not_found=yes
10932 fi
10933 rm -f conftest.$ac_objext conftest.$ac_ext
10934        done
10935       done
10936      done
10937     done
10938     if test "$ac_not_found" = yes; then
10939       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10940 echo "$as_me: error: could not determine argument types" >&2;}
10941    { (exit 1); exit 1; }; }
10942     fi
10943     if test "$ac_cv_func_accept_arg3" = "void"; then
10944       ac_cv_func_accept_arg3=int
10945     fi
10946
10947 fi
10948
10949 fi
10950
10951 fi
10952
10953 fi
10954  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
10955 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10956
10957 cat >>confdefs.h <<_ACEOF
10958 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
10959 _ACEOF
10960
10961
10962 cat >>confdefs.h <<_ACEOF
10963 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10964 _ACEOF
10965
10966
10967 cat >>confdefs.h <<_ACEOF
10968 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10969 _ACEOF
10970
10971
10972 cat >>confdefs.h <<_ACEOF
10973 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10974 _ACEOF
10975
10976
10977 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10978 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10979 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10980   echo $ECHO_N "(cached) $ECHO_C" >&6
10981 else
10982   cat >conftest.$ac_ext <<_ACEOF
10983 #line $LINENO "configure"
10984 #include "confdefs.h"
10985 #include <sys/time.h>
10986 #ifdef F77_DUMMY_MAIN
10987 #  ifdef __cplusplus
10988      extern "C"
10989 #  endif
10990    int F77_DUMMY_MAIN() { return 1; }
10991 #endif
10992 int
10993 main ()
10994 {
10995 struct timeval *tp;
10996 struct timezone *tzp;
10997 gettimeofday(tp,tzp);
10998   ;
10999   return 0;
11000 }
11001 _ACEOF
11002 rm -f conftest.$ac_objext
11003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11004   (eval $ac_compile) 2>&5
11005   ac_status=$?
11006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007   (exit $ac_status); } &&
11008          { ac_try='test -s conftest.$ac_objext'
11009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010   (eval $ac_try) 2>&5
11011   ac_status=$?
11012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013   (exit $ac_status); }; }; then
11014   pgac_cv_func_gettimeofday_1arg=no
11015 else
11016   echo "$as_me: failed program was:" >&5
11017 cat conftest.$ac_ext >&5
11018 pgac_cv_func_gettimeofday_1arg=yes
11019 fi
11020 rm -f conftest.$ac_objext conftest.$ac_ext
11021 fi
11022 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
11023 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
11024 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
11025
11026 cat >>confdefs.h <<\_ACEOF
11027 #define GETTIMEOFDAY_1ARG
11028 _ACEOF
11029
11030 fi
11031
11032
11033
11034 # SunOS doesn't handle negative byte comparisons properly with +/- return
11035 echo "$as_me:$LINENO: checking for working memcmp" >&5
11036 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
11037 if test "${ac_cv_func_memcmp_working+set}" = set; then
11038   echo $ECHO_N "(cached) $ECHO_C" >&6
11039 else
11040   if test "$cross_compiling" = yes; then
11041   ac_cv_func_memcmp_working=no
11042 else
11043   cat >conftest.$ac_ext <<_ACEOF
11044 #line $LINENO "configure"
11045 #include "confdefs.h"
11046
11047 #ifdef F77_DUMMY_MAIN
11048 #  ifdef __cplusplus
11049      extern "C"
11050 #  endif
11051    int F77_DUMMY_MAIN() { return 1; }
11052 #endif
11053 int
11054 main ()
11055 {
11056
11057   /* Some versions of memcmp are not 8-bit clean.  */
11058   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11059   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11060     exit (1);
11061
11062   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11063      or more and with at least one buffer not starting on a 4-byte boundary.
11064      William Lewis provided this test program.   */
11065   {
11066     char foo[21];
11067     char bar[21];
11068     int i;
11069     for (i = 0; i < 4; i++)
11070       {
11071         char *a = foo + i;
11072         char *b = bar + i;
11073         strcpy (a, "--------01111111");
11074         strcpy (b, "--------10000000");
11075         if (memcmp (a, b, 16) >= 0)
11076           exit (1);
11077       }
11078     exit (0);
11079   }
11080
11081   ;
11082   return 0;
11083 }
11084 _ACEOF
11085 rm -f conftest$ac_exeext
11086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11087   (eval $ac_link) 2>&5
11088   ac_status=$?
11089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11092   (eval $ac_try) 2>&5
11093   ac_status=$?
11094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095   (exit $ac_status); }; }; then
11096   ac_cv_func_memcmp_working=yes
11097 else
11098   echo "$as_me: program exited with status $ac_status" >&5
11099 echo "$as_me: failed program was:" >&5
11100 cat conftest.$ac_ext >&5
11101 ( exit $ac_status )
11102 ac_cv_func_memcmp_working=no
11103 fi
11104 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11105 fi
11106 fi
11107 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11108 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
11109 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid
11129 do
11130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11131 echo "$as_me:$LINENO: checking for $ac_func" >&5
11132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11133 if eval "test \"\${$as_ac_var+set}\" = set"; then
11134   echo $ECHO_N "(cached) $ECHO_C" >&6
11135 else
11136   cat >conftest.$ac_ext <<_ACEOF
11137 #line $LINENO "configure"
11138 #include "confdefs.h"
11139 /* System header to define __stub macros and hopefully few prototypes,
11140     which can conflict with char $ac_func (); below.  */
11141 #include <assert.h>
11142 /* Override any gcc2 internal prototype to avoid an error.  */
11143 #ifdef __cplusplus
11144 extern "C"
11145 #endif
11146 /* We use char because int might match the return type of a gcc2
11147    builtin and then its argument prototype would still apply.  */
11148 char $ac_func ();
11149 char (*f) ();
11150
11151 #ifdef F77_DUMMY_MAIN
11152 #  ifdef __cplusplus
11153      extern "C"
11154 #  endif
11155    int F77_DUMMY_MAIN() { return 1; }
11156 #endif
11157 int
11158 main ()
11159 {
11160 /* The GNU C library defines this for functions which it implements
11161     to always fail with ENOSYS.  Some functions are actually named
11162     something starting with __ and the normal name is an alias.  */
11163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11164 choke me
11165 #else
11166 f = $ac_func;
11167 #endif
11168
11169   ;
11170   return 0;
11171 }
11172 _ACEOF
11173 rm -f conftest.$ac_objext conftest$ac_exeext
11174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11175   (eval $ac_link) 2>&5
11176   ac_status=$?
11177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178   (exit $ac_status); } &&
11179          { ac_try='test -s conftest$ac_exeext'
11180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181   (eval $ac_try) 2>&5
11182   ac_status=$?
11183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184   (exit $ac_status); }; }; then
11185   eval "$as_ac_var=yes"
11186 else
11187   echo "$as_me: failed program was:" >&5
11188 cat conftest.$ac_ext >&5
11189 eval "$as_ac_var=no"
11190 fi
11191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11192 fi
11193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11195 if test `eval echo '${'$as_ac_var'}'` = yes; then
11196   cat >>confdefs.h <<_ACEOF
11197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11198 _ACEOF
11199
11200 fi
11201 done
11202
11203
11204 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11205 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11206 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11207   echo $ECHO_N "(cached) $ECHO_C" >&6
11208 else
11209   cat >conftest.$ac_ext <<_ACEOF
11210 #line $LINENO "configure"
11211 #include "confdefs.h"
11212 #include <unistd.h>
11213
11214 #ifdef F77_DUMMY_MAIN
11215 #  ifdef __cplusplus
11216      extern "C"
11217 #  endif
11218    int F77_DUMMY_MAIN() { return 1; }
11219 #endif
11220 int
11221 main ()
11222 {
11223 #ifndef fdatasync
11224   char *p = (char *) fdatasync;
11225 #endif
11226
11227   ;
11228   return 0;
11229 }
11230 _ACEOF
11231 rm -f conftest.$ac_objext
11232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11233   (eval $ac_compile) 2>&5
11234   ac_status=$?
11235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236   (exit $ac_status); } &&
11237          { ac_try='test -s conftest.$ac_objext'
11238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239   (eval $ac_try) 2>&5
11240   ac_status=$?
11241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242   (exit $ac_status); }; }; then
11243   ac_cv_have_decl_fdatasync=yes
11244 else
11245   echo "$as_me: failed program was:" >&5
11246 cat conftest.$ac_ext >&5
11247 ac_cv_have_decl_fdatasync=no
11248 fi
11249 rm -f conftest.$ac_objext conftest.$ac_ext
11250 fi
11251 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11252 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11253 if test $ac_cv_have_decl_fdatasync = yes; then
11254
11255 cat >>confdefs.h <<_ACEOF
11256 #define HAVE_DECL_FDATASYNC 1
11257 _ACEOF
11258
11259
11260 else
11261   cat >>confdefs.h <<_ACEOF
11262 #define HAVE_DECL_FDATASYNC 0
11263 _ACEOF
11264
11265
11266 fi
11267
11268
11269
11270 HAVE_IPV6=no
11271 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11272 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11273 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11274   echo $ECHO_N "(cached) $ECHO_C" >&6
11275 else
11276   cat >conftest.$ac_ext <<_ACEOF
11277 #line $LINENO "configure"
11278 #include "confdefs.h"
11279 $ac_includes_default
11280 #include <netinet/in.h>
11281
11282 #ifdef F77_DUMMY_MAIN
11283 #  ifdef __cplusplus
11284      extern "C"
11285 #  endif
11286    int F77_DUMMY_MAIN() { return 1; }
11287 #endif
11288 int
11289 main ()
11290 {
11291 if ((struct sockaddr_in6 *) 0)
11292   return 0;
11293 if (sizeof (struct sockaddr_in6))
11294   return 0;
11295   ;
11296   return 0;
11297 }
11298 _ACEOF
11299 rm -f conftest.$ac_objext
11300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11301   (eval $ac_compile) 2>&5
11302   ac_status=$?
11303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304   (exit $ac_status); } &&
11305          { ac_try='test -s conftest.$ac_objext'
11306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307   (eval $ac_try) 2>&5
11308   ac_status=$?
11309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310   (exit $ac_status); }; }; then
11311   ac_cv_type_struct_sockaddr_in6=yes
11312 else
11313   echo "$as_me: failed program was:" >&5
11314 cat conftest.$ac_ext >&5
11315 ac_cv_type_struct_sockaddr_in6=no
11316 fi
11317 rm -f conftest.$ac_objext conftest.$ac_ext
11318 fi
11319 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11320 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11321 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11322   echo "$as_me:$LINENO: checking for inet_ntop" >&5
11323 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11324 if test "${ac_cv_func_inet_ntop+set}" = set; then
11325   echo $ECHO_N "(cached) $ECHO_C" >&6
11326 else
11327   cat >conftest.$ac_ext <<_ACEOF
11328 #line $LINENO "configure"
11329 #include "confdefs.h"
11330 /* System header to define __stub macros and hopefully few prototypes,
11331     which can conflict with char inet_ntop (); below.  */
11332 #include <assert.h>
11333 /* Override any gcc2 internal prototype to avoid an error.  */
11334 #ifdef __cplusplus
11335 extern "C"
11336 #endif
11337 /* We use char because int might match the return type of a gcc2
11338    builtin and then its argument prototype would still apply.  */
11339 char inet_ntop ();
11340 char (*f) ();
11341
11342 #ifdef F77_DUMMY_MAIN
11343 #  ifdef __cplusplus
11344      extern "C"
11345 #  endif
11346    int F77_DUMMY_MAIN() { return 1; }
11347 #endif
11348 int
11349 main ()
11350 {
11351 /* The GNU C library defines this for functions which it implements
11352     to always fail with ENOSYS.  Some functions are actually named
11353     something starting with __ and the normal name is an alias.  */
11354 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11355 choke me
11356 #else
11357 f = inet_ntop;
11358 #endif
11359
11360   ;
11361   return 0;
11362 }
11363 _ACEOF
11364 rm -f conftest.$ac_objext conftest$ac_exeext
11365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11366   (eval $ac_link) 2>&5
11367   ac_status=$?
11368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369   (exit $ac_status); } &&
11370          { ac_try='test -s conftest$ac_exeext'
11371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372   (eval $ac_try) 2>&5
11373   ac_status=$?
11374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375   (exit $ac_status); }; }; then
11376   ac_cv_func_inet_ntop=yes
11377 else
11378   echo "$as_me: failed program was:" >&5
11379 cat conftest.$ac_ext >&5
11380 ac_cv_func_inet_ntop=no
11381 fi
11382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11383 fi
11384 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11385 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11386 if test $ac_cv_func_inet_ntop = yes; then
11387
11388 cat >>confdefs.h <<\_ACEOF
11389 #define HAVE_IPV6 1
11390 _ACEOF
11391
11392                                                           HAVE_IPV6=yes
11393 fi
11394
11395 fi
11396
11397
11398
11399 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11400 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11401 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11402   echo $ECHO_N "(cached) $ECHO_C" >&6
11403 else
11404   cat >conftest.$ac_ext <<_ACEOF
11405 #line $LINENO "configure"
11406 #include "confdefs.h"
11407 #include <machine/vmparam.h>
11408 #include <sys/exec.h>
11409
11410 #ifdef F77_DUMMY_MAIN
11411 #  ifdef __cplusplus
11412      extern "C"
11413 #  endif
11414    int F77_DUMMY_MAIN() { return 1; }
11415 #endif
11416 int
11417 main ()
11418 {
11419 PS_STRINGS->ps_nargvstr = 1;
11420 PS_STRINGS->ps_argvstr = "foo";
11421   ;
11422   return 0;
11423 }
11424 _ACEOF
11425 rm -f conftest.$ac_objext conftest$ac_exeext
11426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11427   (eval $ac_link) 2>&5
11428   ac_status=$?
11429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430   (exit $ac_status); } &&
11431          { ac_try='test -s conftest$ac_exeext'
11432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11433   (eval $ac_try) 2>&5
11434   ac_status=$?
11435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436   (exit $ac_status); }; }; then
11437   pgac_cv_var_PS_STRINGS=yes
11438 else
11439   echo "$as_me: failed program was:" >&5
11440 cat conftest.$ac_ext >&5
11441 pgac_cv_var_PS_STRINGS=no
11442 fi
11443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11444 fi
11445 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11446 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11447 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11448
11449 cat >>confdefs.h <<\_ACEOF
11450 #define HAVE_PS_STRINGS
11451 _ACEOF
11452
11453 fi
11454
11455
11456 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11457 # is missing.  Yes, there are machines that have only one.  We may
11458 # also decide to use snprintf.c if snprintf() is present but does not
11459 # have working "long long int" support -- see below.
11460
11461 pgac_need_repl_snprintf=no
11462
11463 for ac_func in snprintf
11464 do
11465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11466 echo "$as_me:$LINENO: checking for $ac_func" >&5
11467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11468 if eval "test \"\${$as_ac_var+set}\" = set"; then
11469   echo $ECHO_N "(cached) $ECHO_C" >&6
11470 else
11471   cat >conftest.$ac_ext <<_ACEOF
11472 #line $LINENO "configure"
11473 #include "confdefs.h"
11474 /* System header to define __stub macros and hopefully few prototypes,
11475     which can conflict with char $ac_func (); below.  */
11476 #include <assert.h>
11477 /* Override any gcc2 internal prototype to avoid an error.  */
11478 #ifdef __cplusplus
11479 extern "C"
11480 #endif
11481 /* We use char because int might match the return type of a gcc2
11482    builtin and then its argument prototype would still apply.  */
11483 char $ac_func ();
11484 char (*f) ();
11485
11486 #ifdef F77_DUMMY_MAIN
11487 #  ifdef __cplusplus
11488      extern "C"
11489 #  endif
11490    int F77_DUMMY_MAIN() { return 1; }
11491 #endif
11492 int
11493 main ()
11494 {
11495 /* The GNU C library defines this for functions which it implements
11496     to always fail with ENOSYS.  Some functions are actually named
11497     something starting with __ and the normal name is an alias.  */
11498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11499 choke me
11500 #else
11501 f = $ac_func;
11502 #endif
11503
11504   ;
11505   return 0;
11506 }
11507 _ACEOF
11508 rm -f conftest.$ac_objext conftest$ac_exeext
11509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11510   (eval $ac_link) 2>&5
11511   ac_status=$?
11512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513   (exit $ac_status); } &&
11514          { ac_try='test -s conftest$ac_exeext'
11515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11516   (eval $ac_try) 2>&5
11517   ac_status=$?
11518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519   (exit $ac_status); }; }; then
11520   eval "$as_ac_var=yes"
11521 else
11522   echo "$as_me: failed program was:" >&5
11523 cat conftest.$ac_ext >&5
11524 eval "$as_ac_var=no"
11525 fi
11526 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11527 fi
11528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11530 if test `eval echo '${'$as_ac_var'}'` = yes; then
11531   cat >>confdefs.h <<_ACEOF
11532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11533 _ACEOF
11534
11535 else
11536   pgac_need_repl_snprintf=yes
11537 fi
11538 done
11539
11540
11541 for ac_func in vsnprintf
11542 do
11543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11544 echo "$as_me:$LINENO: checking for $ac_func" >&5
11545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11546 if eval "test \"\${$as_ac_var+set}\" = set"; then
11547   echo $ECHO_N "(cached) $ECHO_C" >&6
11548 else
11549   cat >conftest.$ac_ext <<_ACEOF
11550 #line $LINENO "configure"
11551 #include "confdefs.h"
11552 /* System header to define __stub macros and hopefully few prototypes,
11553     which can conflict with char $ac_func (); below.  */
11554 #include <assert.h>
11555 /* Override any gcc2 internal prototype to avoid an error.  */
11556 #ifdef __cplusplus
11557 extern "C"
11558 #endif
11559 /* We use char because int might match the return type of a gcc2
11560    builtin and then its argument prototype would still apply.  */
11561 char $ac_func ();
11562 char (*f) ();
11563
11564 #ifdef F77_DUMMY_MAIN
11565 #  ifdef __cplusplus
11566      extern "C"
11567 #  endif
11568    int F77_DUMMY_MAIN() { return 1; }
11569 #endif
11570 int
11571 main ()
11572 {
11573 /* The GNU C library defines this for functions which it implements
11574     to always fail with ENOSYS.  Some functions are actually named
11575     something starting with __ and the normal name is an alias.  */
11576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11577 choke me
11578 #else
11579 f = $ac_func;
11580 #endif
11581
11582   ;
11583   return 0;
11584 }
11585 _ACEOF
11586 rm -f conftest.$ac_objext conftest$ac_exeext
11587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11588   (eval $ac_link) 2>&5
11589   ac_status=$?
11590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591   (exit $ac_status); } &&
11592          { ac_try='test -s conftest$ac_exeext'
11593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11594   (eval $ac_try) 2>&5
11595   ac_status=$?
11596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597   (exit $ac_status); }; }; then
11598   eval "$as_ac_var=yes"
11599 else
11600   echo "$as_me: failed program was:" >&5
11601 cat conftest.$ac_ext >&5
11602 eval "$as_ac_var=no"
11603 fi
11604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11605 fi
11606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11607 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11608 if test `eval echo '${'$as_ac_var'}'` = yes; then
11609   cat >>confdefs.h <<_ACEOF
11610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11611 _ACEOF
11612
11613 else
11614   pgac_need_repl_snprintf=yes
11615 fi
11616 done
11617
11618
11619
11620 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11621 # include/c.h will provide declarations.  Note this is a separate test
11622 # from whether the functions exist in the C library --- there are
11623 # systems that have the functions but don't bother to declare them :-(
11624
11625 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11626 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11627 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11628   echo $ECHO_N "(cached) $ECHO_C" >&6
11629 else
11630   cat >conftest.$ac_ext <<_ACEOF
11631 #line $LINENO "configure"
11632 #include "confdefs.h"
11633 $ac_includes_default
11634 #ifdef F77_DUMMY_MAIN
11635 #  ifdef __cplusplus
11636      extern "C"
11637 #  endif
11638    int F77_DUMMY_MAIN() { return 1; }
11639 #endif
11640 int
11641 main ()
11642 {
11643 #ifndef snprintf
11644   char *p = (char *) snprintf;
11645 #endif
11646
11647   ;
11648   return 0;
11649 }
11650 _ACEOF
11651 rm -f conftest.$ac_objext
11652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11653   (eval $ac_compile) 2>&5
11654   ac_status=$?
11655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656   (exit $ac_status); } &&
11657          { ac_try='test -s conftest.$ac_objext'
11658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659   (eval $ac_try) 2>&5
11660   ac_status=$?
11661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662   (exit $ac_status); }; }; then
11663   ac_cv_have_decl_snprintf=yes
11664 else
11665   echo "$as_me: failed program was:" >&5
11666 cat conftest.$ac_ext >&5
11667 ac_cv_have_decl_snprintf=no
11668 fi
11669 rm -f conftest.$ac_objext conftest.$ac_ext
11670 fi
11671 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11672 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11673 if test $ac_cv_have_decl_snprintf = yes; then
11674
11675 cat >>confdefs.h <<_ACEOF
11676 #define HAVE_DECL_SNPRINTF 1
11677 _ACEOF
11678
11679
11680 else
11681   cat >>confdefs.h <<_ACEOF
11682 #define HAVE_DECL_SNPRINTF 0
11683 _ACEOF
11684
11685
11686 fi
11687 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11688 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11689 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11690   echo $ECHO_N "(cached) $ECHO_C" >&6
11691 else
11692   cat >conftest.$ac_ext <<_ACEOF
11693 #line $LINENO "configure"
11694 #include "confdefs.h"
11695 $ac_includes_default
11696 #ifdef F77_DUMMY_MAIN
11697 #  ifdef __cplusplus
11698      extern "C"
11699 #  endif
11700    int F77_DUMMY_MAIN() { return 1; }
11701 #endif
11702 int
11703 main ()
11704 {
11705 #ifndef vsnprintf
11706   char *p = (char *) vsnprintf;
11707 #endif
11708
11709   ;
11710   return 0;
11711 }
11712 _ACEOF
11713 rm -f conftest.$ac_objext
11714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11715   (eval $ac_compile) 2>&5
11716   ac_status=$?
11717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718   (exit $ac_status); } &&
11719          { ac_try='test -s conftest.$ac_objext'
11720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721   (eval $ac_try) 2>&5
11722   ac_status=$?
11723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724   (exit $ac_status); }; }; then
11725   ac_cv_have_decl_vsnprintf=yes
11726 else
11727   echo "$as_me: failed program was:" >&5
11728 cat conftest.$ac_ext >&5
11729 ac_cv_have_decl_vsnprintf=no
11730 fi
11731 rm -f conftest.$ac_objext conftest.$ac_ext
11732 fi
11733 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11734 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11735 if test $ac_cv_have_decl_vsnprintf = yes; then
11736
11737 cat >>confdefs.h <<_ACEOF
11738 #define HAVE_DECL_VSNPRINTF 1
11739 _ACEOF
11740
11741
11742 else
11743   cat >>confdefs.h <<_ACEOF
11744 #define HAVE_DECL_VSNPRINTF 0
11745 _ACEOF
11746
11747
11748 fi
11749
11750
11751
11752
11753 # do this one the hard way in case isinf() is a macro
11754 echo "$as_me:$LINENO: checking for isinf" >&5
11755 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11756 if test "${ac_cv_func_isinf+set}" = set; then
11757   echo $ECHO_N "(cached) $ECHO_C" >&6
11758 else
11759   cat >conftest.$ac_ext <<_ACEOF
11760 #line $LINENO "configure"
11761 #include "confdefs.h"
11762 #include <math.h>
11763
11764 #ifdef F77_DUMMY_MAIN
11765 #  ifdef __cplusplus
11766      extern "C"
11767 #  endif
11768    int F77_DUMMY_MAIN() { return 1; }
11769 #endif
11770 int
11771 main ()
11772 {
11773 double x = 0.0; int res = isinf(x);
11774   ;
11775   return 0;
11776 }
11777 _ACEOF
11778 rm -f conftest.$ac_objext conftest$ac_exeext
11779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11780   (eval $ac_link) 2>&5
11781   ac_status=$?
11782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783   (exit $ac_status); } &&
11784          { ac_try='test -s conftest$ac_exeext'
11785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786   (eval $ac_try) 2>&5
11787   ac_status=$?
11788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789   (exit $ac_status); }; }; then
11790   ac_cv_func_isinf=yes
11791 else
11792   echo "$as_me: failed program was:" >&5
11793 cat conftest.$ac_ext >&5
11794 ac_cv_func_isinf=no
11795 fi
11796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11797 fi
11798 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11799 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11800
11801 if test $ac_cv_func_isinf = yes ; then
11802
11803 cat >>confdefs.h <<\_ACEOF
11804 #define HAVE_ISINF 1
11805 _ACEOF
11806
11807 else
11808   LIBOBJS="$LIBOBJS isinf.$ac_objext"
11809   # Look for a way to implement a substitute for isinf()
11810
11811
11812
11813
11814 for ac_func in fpclass fp_class fp_class_d class
11815 do
11816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11817 echo "$as_me:$LINENO: checking for $ac_func" >&5
11818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11819 if eval "test \"\${$as_ac_var+set}\" = set"; then
11820   echo $ECHO_N "(cached) $ECHO_C" >&6
11821 else
11822   cat >conftest.$ac_ext <<_ACEOF
11823 #line $LINENO "configure"
11824 #include "confdefs.h"
11825 /* System header to define __stub macros and hopefully few prototypes,
11826     which can conflict with char $ac_func (); below.  */
11827 #include <assert.h>
11828 /* Override any gcc2 internal prototype to avoid an error.  */
11829 #ifdef __cplusplus
11830 extern "C"
11831 #endif
11832 /* We use char because int might match the return type of a gcc2
11833    builtin and then its argument prototype would still apply.  */
11834 char $ac_func ();
11835 char (*f) ();
11836
11837 #ifdef F77_DUMMY_MAIN
11838 #  ifdef __cplusplus
11839      extern "C"
11840 #  endif
11841    int F77_DUMMY_MAIN() { return 1; }
11842 #endif
11843 int
11844 main ()
11845 {
11846 /* The GNU C library defines this for functions which it implements
11847     to always fail with ENOSYS.  Some functions are actually named
11848     something starting with __ and the normal name is an alias.  */
11849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11850 choke me
11851 #else
11852 f = $ac_func;
11853 #endif
11854
11855   ;
11856   return 0;
11857 }
11858 _ACEOF
11859 rm -f conftest.$ac_objext conftest$ac_exeext
11860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11861   (eval $ac_link) 2>&5
11862   ac_status=$?
11863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864   (exit $ac_status); } &&
11865          { ac_try='test -s conftest$ac_exeext'
11866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11867   (eval $ac_try) 2>&5
11868   ac_status=$?
11869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870   (exit $ac_status); }; }; then
11871   eval "$as_ac_var=yes"
11872 else
11873   echo "$as_me: failed program was:" >&5
11874 cat conftest.$ac_ext >&5
11875 eval "$as_ac_var=no"
11876 fi
11877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11878 fi
11879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11881 if test `eval echo '${'$as_ac_var'}'` = yes; then
11882   cat >>confdefs.h <<_ACEOF
11883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11884 _ACEOF
11885  break
11886 fi
11887 done
11888
11889 fi
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strcasecmp strdup strerror strtol strtoul
11905 do
11906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11907 echo "$as_me:$LINENO: checking for $ac_func" >&5
11908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11909 if eval "test \"\${$as_ac_var+set}\" = set"; then
11910   echo $ECHO_N "(cached) $ECHO_C" >&6
11911 else
11912   cat >conftest.$ac_ext <<_ACEOF
11913 #line $LINENO "configure"
11914 #include "confdefs.h"
11915 /* System header to define __stub macros and hopefully few prototypes,
11916     which can conflict with char $ac_func (); below.  */
11917 #include <assert.h>
11918 /* Override any gcc2 internal prototype to avoid an error.  */
11919 #ifdef __cplusplus
11920 extern "C"
11921 #endif
11922 /* We use char because int might match the return type of a gcc2
11923    builtin and then its argument prototype would still apply.  */
11924 char $ac_func ();
11925 char (*f) ();
11926
11927 #ifdef F77_DUMMY_MAIN
11928 #  ifdef __cplusplus
11929      extern "C"
11930 #  endif
11931    int F77_DUMMY_MAIN() { return 1; }
11932 #endif
11933 int
11934 main ()
11935 {
11936 /* The GNU C library defines this for functions which it implements
11937     to always fail with ENOSYS.  Some functions are actually named
11938     something starting with __ and the normal name is an alias.  */
11939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11940 choke me
11941 #else
11942 f = $ac_func;
11943 #endif
11944
11945   ;
11946   return 0;
11947 }
11948 _ACEOF
11949 rm -f conftest.$ac_objext conftest$ac_exeext
11950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11951   (eval $ac_link) 2>&5
11952   ac_status=$?
11953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954   (exit $ac_status); } &&
11955          { ac_try='test -s conftest$ac_exeext'
11956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11957   (eval $ac_try) 2>&5
11958   ac_status=$?
11959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960   (exit $ac_status); }; }; then
11961   eval "$as_ac_var=yes"
11962 else
11963   echo "$as_me: failed program was:" >&5
11964 cat conftest.$ac_ext >&5
11965 eval "$as_ac_var=no"
11966 fi
11967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11968 fi
11969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11971 if test `eval echo '${'$as_ac_var'}'` = yes; then
11972   cat >>confdefs.h <<_ACEOF
11973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11974 _ACEOF
11975
11976 else
11977   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11978 fi
11979 done
11980
11981
11982
11983 # system's version of getaddrinfo(), if any, may be used only if we found
11984 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
11985 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11986
11987 for ac_func in getaddrinfo
11988 do
11989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11990 echo "$as_me:$LINENO: checking for $ac_func" >&5
11991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11992 if eval "test \"\${$as_ac_var+set}\" = set"; then
11993   echo $ECHO_N "(cached) $ECHO_C" >&6
11994 else
11995   cat >conftest.$ac_ext <<_ACEOF
11996 #line $LINENO "configure"
11997 #include "confdefs.h"
11998 /* System header to define __stub macros and hopefully few prototypes,
11999     which can conflict with char $ac_func (); below.  */
12000 #include <assert.h>
12001 /* Override any gcc2 internal prototype to avoid an error.  */
12002 #ifdef __cplusplus
12003 extern "C"
12004 #endif
12005 /* We use char because int might match the return type of a gcc2
12006    builtin and then its argument prototype would still apply.  */
12007 char $ac_func ();
12008 char (*f) ();
12009
12010 #ifdef F77_DUMMY_MAIN
12011 #  ifdef __cplusplus
12012      extern "C"
12013 #  endif
12014    int F77_DUMMY_MAIN() { return 1; }
12015 #endif
12016 int
12017 main ()
12018 {
12019 /* The GNU C library defines this for functions which it implements
12020     to always fail with ENOSYS.  Some functions are actually named
12021     something starting with __ and the normal name is an alias.  */
12022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12023 choke me
12024 #else
12025 f = $ac_func;
12026 #endif
12027
12028   ;
12029   return 0;
12030 }
12031 _ACEOF
12032 rm -f conftest.$ac_objext conftest$ac_exeext
12033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12034   (eval $ac_link) 2>&5
12035   ac_status=$?
12036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037   (exit $ac_status); } &&
12038          { ac_try='test -s conftest$ac_exeext'
12039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040   (eval $ac_try) 2>&5
12041   ac_status=$?
12042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043   (exit $ac_status); }; }; then
12044   eval "$as_ac_var=yes"
12045 else
12046   echo "$as_me: failed program was:" >&5
12047 cat conftest.$ac_ext >&5
12048 eval "$as_ac_var=no"
12049 fi
12050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12051 fi
12052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12054 if test `eval echo '${'$as_ac_var'}'` = yes; then
12055   cat >>confdefs.h <<_ACEOF
12056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12057 _ACEOF
12058
12059 else
12060   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12061 fi
12062 done
12063
12064
12065 else
12066   LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
12067 fi
12068
12069 # similarly, use system's getopt_long() only if system provides struct option.
12070 if test x"$ac_cv_type_struct_option" = xyes ; then
12071
12072 for ac_func in getopt_long
12073 do
12074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12075 echo "$as_me:$LINENO: checking for $ac_func" >&5
12076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12077 if eval "test \"\${$as_ac_var+set}\" = set"; then
12078   echo $ECHO_N "(cached) $ECHO_C" >&6
12079 else
12080   cat >conftest.$ac_ext <<_ACEOF
12081 #line $LINENO "configure"
12082 #include "confdefs.h"
12083 /* System header to define __stub macros and hopefully few prototypes,
12084     which can conflict with char $ac_func (); below.  */
12085 #include <assert.h>
12086 /* Override any gcc2 internal prototype to avoid an error.  */
12087 #ifdef __cplusplus
12088 extern "C"
12089 #endif
12090 /* We use char because int might match the return type of a gcc2
12091    builtin and then its argument prototype would still apply.  */
12092 char $ac_func ();
12093 char (*f) ();
12094
12095 #ifdef F77_DUMMY_MAIN
12096 #  ifdef __cplusplus
12097      extern "C"
12098 #  endif
12099    int F77_DUMMY_MAIN() { return 1; }
12100 #endif
12101 int
12102 main ()
12103 {
12104 /* The GNU C library defines this for functions which it implements
12105     to always fail with ENOSYS.  Some functions are actually named
12106     something starting with __ and the normal name is an alias.  */
12107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12108 choke me
12109 #else
12110 f = $ac_func;
12111 #endif
12112
12113   ;
12114   return 0;
12115 }
12116 _ACEOF
12117 rm -f conftest.$ac_objext conftest$ac_exeext
12118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12119   (eval $ac_link) 2>&5
12120   ac_status=$?
12121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122   (exit $ac_status); } &&
12123          { ac_try='test -s conftest$ac_exeext'
12124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125   (eval $ac_try) 2>&5
12126   ac_status=$?
12127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128   (exit $ac_status); }; }; then
12129   eval "$as_ac_var=yes"
12130 else
12131   echo "$as_me: failed program was:" >&5
12132 cat conftest.$ac_ext >&5
12133 eval "$as_ac_var=no"
12134 fi
12135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12136 fi
12137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12139 if test `eval echo '${'$as_ac_var'}'` = yes; then
12140   cat >>confdefs.h <<_ACEOF
12141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12142 _ACEOF
12143
12144 else
12145   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12146 fi
12147 done
12148
12149
12150 else
12151   LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12152 fi
12153
12154 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
12155 # We override the previous test that said fseeko/ftello didn't exist
12156 # OS tests are also done in include/c.h and port/fseeko.c
12157 case $host_os in bsdi*|netbsd*)
12158 ac_cv_func_fseeko=yes
12159 esac
12160
12161 # Solaris has a very slow qsort in certain cases, so we replace it.
12162 case $host_os in solaris*)
12163 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
12164 esac
12165
12166 # Win32 can't to rename or unlink on an open file
12167 case $host_os in mingw*)
12168 LIBOBJS="$LIBOBJS dirmod.$ac_objext"
12169 LIBOBJS="$LIBOBJS copydir.$ac_objext"
12170 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
12171 esac
12172
12173 if test "$with_readline" = yes; then
12174   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12175 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12176 cat >conftest.$ac_ext <<_ACEOF
12177 #line $LINENO "configure"
12178 #include "confdefs.h"
12179 #include <stdio.h>
12180 #ifdef HAVE_READLINE_READLINE_H
12181 # include <readline/readline.h>
12182 #elif defined(HAVE_READLINE_H)
12183 # include <readline.h>
12184 #endif
12185
12186 #ifdef F77_DUMMY_MAIN
12187 #  ifdef __cplusplus
12188      extern "C"
12189 #  endif
12190    int F77_DUMMY_MAIN() { return 1; }
12191 #endif
12192 int
12193 main ()
12194 {
12195 rl_completion_append_character = 'x';
12196   ;
12197   return 0;
12198 }
12199 _ACEOF
12200 rm -f conftest.$ac_objext conftest$ac_exeext
12201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12202   (eval $ac_link) 2>&5
12203   ac_status=$?
12204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205   (exit $ac_status); } &&
12206          { ac_try='test -s conftest$ac_exeext'
12207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208   (eval $ac_try) 2>&5
12209   ac_status=$?
12210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211   (exit $ac_status); }; }; then
12212   echo "$as_me:$LINENO: result: yes" >&5
12213 echo "${ECHO_T}yes" >&6
12214
12215 cat >>confdefs.h <<\_ACEOF
12216 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12217 _ACEOF
12218
12219 else
12220   echo "$as_me: failed program was:" >&5
12221 cat conftest.$ac_ext >&5
12222 echo "$as_me:$LINENO: result: no" >&5
12223 echo "${ECHO_T}no" >&6
12224 fi
12225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12226
12227
12228 for ac_func in rl_completion_matches rl_filename_completion_function
12229 do
12230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12231 echo "$as_me:$LINENO: checking for $ac_func" >&5
12232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12233 if eval "test \"\${$as_ac_var+set}\" = set"; then
12234   echo $ECHO_N "(cached) $ECHO_C" >&6
12235 else
12236   cat >conftest.$ac_ext <<_ACEOF
12237 #line $LINENO "configure"
12238 #include "confdefs.h"
12239 /* System header to define __stub macros and hopefully few prototypes,
12240     which can conflict with char $ac_func (); below.  */
12241 #include <assert.h>
12242 /* Override any gcc2 internal prototype to avoid an error.  */
12243 #ifdef __cplusplus
12244 extern "C"
12245 #endif
12246 /* We use char because int might match the return type of a gcc2
12247    builtin and then its argument prototype would still apply.  */
12248 char $ac_func ();
12249 char (*f) ();
12250
12251 #ifdef F77_DUMMY_MAIN
12252 #  ifdef __cplusplus
12253      extern "C"
12254 #  endif
12255    int F77_DUMMY_MAIN() { return 1; }
12256 #endif
12257 int
12258 main ()
12259 {
12260 /* The GNU C library defines this for functions which it implements
12261     to always fail with ENOSYS.  Some functions are actually named
12262     something starting with __ and the normal name is an alias.  */
12263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12264 choke me
12265 #else
12266 f = $ac_func;
12267 #endif
12268
12269   ;
12270   return 0;
12271 }
12272 _ACEOF
12273 rm -f conftest.$ac_objext conftest$ac_exeext
12274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12275   (eval $ac_link) 2>&5
12276   ac_status=$?
12277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278   (exit $ac_status); } &&
12279          { ac_try='test -s conftest$ac_exeext'
12280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281   (eval $ac_try) 2>&5
12282   ac_status=$?
12283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284   (exit $ac_status); }; }; then
12285   eval "$as_ac_var=yes"
12286 else
12287   echo "$as_me: failed program was:" >&5
12288 cat conftest.$ac_ext >&5
12289 eval "$as_ac_var=no"
12290 fi
12291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12292 fi
12293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12295 if test `eval echo '${'$as_ac_var'}'` = yes; then
12296   cat >>confdefs.h <<_ACEOF
12297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12298 _ACEOF
12299
12300 fi
12301 done
12302
12303
12304 for ac_func in replace_history_entry
12305 do
12306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12307 echo "$as_me:$LINENO: checking for $ac_func" >&5
12308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12309 if eval "test \"\${$as_ac_var+set}\" = set"; then
12310   echo $ECHO_N "(cached) $ECHO_C" >&6
12311 else
12312   cat >conftest.$ac_ext <<_ACEOF
12313 #line $LINENO "configure"
12314 #include "confdefs.h"
12315 /* System header to define __stub macros and hopefully few prototypes,
12316     which can conflict with char $ac_func (); below.  */
12317 #include <assert.h>
12318 /* Override any gcc2 internal prototype to avoid an error.  */
12319 #ifdef __cplusplus
12320 extern "C"
12321 #endif
12322 /* We use char because int might match the return type of a gcc2
12323    builtin and then its argument prototype would still apply.  */
12324 char $ac_func ();
12325 char (*f) ();
12326
12327 #ifdef F77_DUMMY_MAIN
12328 #  ifdef __cplusplus
12329      extern "C"
12330 #  endif
12331    int F77_DUMMY_MAIN() { return 1; }
12332 #endif
12333 int
12334 main ()
12335 {
12336 /* The GNU C library defines this for functions which it implements
12337     to always fail with ENOSYS.  Some functions are actually named
12338     something starting with __ and the normal name is an alias.  */
12339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12340 choke me
12341 #else
12342 f = $ac_func;
12343 #endif
12344
12345   ;
12346   return 0;
12347 }
12348 _ACEOF
12349 rm -f conftest.$ac_objext conftest$ac_exeext
12350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12351   (eval $ac_link) 2>&5
12352   ac_status=$?
12353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354   (exit $ac_status); } &&
12355          { ac_try='test -s conftest$ac_exeext'
12356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12357   (eval $ac_try) 2>&5
12358   ac_status=$?
12359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360   (exit $ac_status); }; }; then
12361   eval "$as_ac_var=yes"
12362 else
12363   echo "$as_me: failed program was:" >&5
12364 cat conftest.$ac_ext >&5
12365 eval "$as_ac_var=no"
12366 fi
12367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12368 fi
12369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12371 if test `eval echo '${'$as_ac_var'}'` = yes; then
12372   cat >>confdefs.h <<_ACEOF
12373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12374 _ACEOF
12375
12376 fi
12377 done
12378
12379 fi
12380
12381
12382 echo "$as_me:$LINENO: checking for finite" >&5
12383 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12384 cat >conftest.$ac_ext <<_ACEOF
12385 #line $LINENO "configure"
12386 #include "confdefs.h"
12387 #include <math.h>
12388 #ifdef F77_DUMMY_MAIN
12389 #  ifdef __cplusplus
12390      extern "C"
12391 #  endif
12392    int F77_DUMMY_MAIN() { return 1; }
12393 #endif
12394 int
12395 main ()
12396 {
12397 int dummy=finite(1.0);
12398   ;
12399   return 0;
12400 }
12401 _ACEOF
12402 rm -f conftest.$ac_objext conftest$ac_exeext
12403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12404   (eval $ac_link) 2>&5
12405   ac_status=$?
12406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407   (exit $ac_status); } &&
12408          { ac_try='test -s conftest$ac_exeext'
12409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410   (eval $ac_try) 2>&5
12411   ac_status=$?
12412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413   (exit $ac_status); }; }; then
12414
12415 cat >>confdefs.h <<\_ACEOF
12416 #define HAVE_FINITE 1
12417 _ACEOF
12418
12419 echo "$as_me:$LINENO: result: yes" >&5
12420 echo "${ECHO_T}yes" >&6
12421 else
12422   echo "$as_me: failed program was:" >&5
12423 cat conftest.$ac_ext >&5
12424 echo "$as_me:$LINENO: result: no" >&5
12425 echo "${ECHO_T}no" >&6
12426 fi
12427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12428
12429 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12430 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12431 cat >conftest.$ac_ext <<_ACEOF
12432 #line $LINENO "configure"
12433 #include "confdefs.h"
12434 #include <setjmp.h>
12435 #ifdef F77_DUMMY_MAIN
12436 #  ifdef __cplusplus
12437      extern "C"
12438 #  endif
12439    int F77_DUMMY_MAIN() { return 1; }
12440 #endif
12441 int
12442 main ()
12443 {
12444 sigjmp_buf x; sigsetjmp(x, 1);
12445   ;
12446   return 0;
12447 }
12448 _ACEOF
12449 rm -f conftest.$ac_objext conftest$ac_exeext
12450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12451   (eval $ac_link) 2>&5
12452   ac_status=$?
12453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454   (exit $ac_status); } &&
12455          { ac_try='test -s conftest$ac_exeext'
12456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12457   (eval $ac_try) 2>&5
12458   ac_status=$?
12459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460   (exit $ac_status); }; }; then
12461
12462 cat >>confdefs.h <<\_ACEOF
12463 #define HAVE_SIGSETJMP 1
12464 _ACEOF
12465
12466 echo "$as_me:$LINENO: result: yes" >&5
12467 echo "${ECHO_T}yes" >&6
12468 else
12469   echo "$as_me: failed program was:" >&5
12470 cat conftest.$ac_ext >&5
12471 echo "$as_me:$LINENO: result: no" >&5
12472 echo "${ECHO_T}no" >&6
12473 fi
12474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12475
12476 echo "$as_me:$LINENO: checking for syslog" >&5
12477 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12478 if test "${ac_cv_func_syslog+set}" = set; then
12479   echo $ECHO_N "(cached) $ECHO_C" >&6
12480 else
12481   cat >conftest.$ac_ext <<_ACEOF
12482 #line $LINENO "configure"
12483 #include "confdefs.h"
12484 /* System header to define __stub macros and hopefully few prototypes,
12485     which can conflict with char syslog (); below.  */
12486 #include <assert.h>
12487 /* Override any gcc2 internal prototype to avoid an error.  */
12488 #ifdef __cplusplus
12489 extern "C"
12490 #endif
12491 /* We use char because int might match the return type of a gcc2
12492    builtin and then its argument prototype would still apply.  */
12493 char syslog ();
12494 char (*f) ();
12495
12496 #ifdef F77_DUMMY_MAIN
12497 #  ifdef __cplusplus
12498      extern "C"
12499 #  endif
12500    int F77_DUMMY_MAIN() { return 1; }
12501 #endif
12502 int
12503 main ()
12504 {
12505 /* The GNU C library defines this for functions which it implements
12506     to always fail with ENOSYS.  Some functions are actually named
12507     something starting with __ and the normal name is an alias.  */
12508 #if defined (__stub_syslog) || defined (__stub___syslog)
12509 choke me
12510 #else
12511 f = syslog;
12512 #endif
12513
12514   ;
12515   return 0;
12516 }
12517 _ACEOF
12518 rm -f conftest.$ac_objext conftest$ac_exeext
12519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12520   (eval $ac_link) 2>&5
12521   ac_status=$?
12522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523   (exit $ac_status); } &&
12524          { ac_try='test -s conftest$ac_exeext'
12525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526   (eval $ac_try) 2>&5
12527   ac_status=$?
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); }; }; then
12530   ac_cv_func_syslog=yes
12531 else
12532   echo "$as_me: failed program was:" >&5
12533 cat conftest.$ac_ext >&5
12534 ac_cv_func_syslog=no
12535 fi
12536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12537 fi
12538 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12539 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12540 if test $ac_cv_func_syslog = yes; then
12541   if test "${ac_cv_header_syslog_h+set}" = set; then
12542   echo "$as_me:$LINENO: checking for syslog.h" >&5
12543 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12544 if test "${ac_cv_header_syslog_h+set}" = set; then
12545   echo $ECHO_N "(cached) $ECHO_C" >&6
12546 fi
12547 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12548 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12549 else
12550   # Is the header compilable?
12551 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12552 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12553 cat >conftest.$ac_ext <<_ACEOF
12554 #line $LINENO "configure"
12555 #include "confdefs.h"
12556 $ac_includes_default
12557 #include <syslog.h>
12558 _ACEOF
12559 rm -f conftest.$ac_objext
12560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12561   (eval $ac_compile) 2>&5
12562   ac_status=$?
12563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564   (exit $ac_status); } &&
12565          { ac_try='test -s conftest.$ac_objext'
12566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567   (eval $ac_try) 2>&5
12568   ac_status=$?
12569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570   (exit $ac_status); }; }; then
12571   ac_header_compiler=yes
12572 else
12573   echo "$as_me: failed program was:" >&5
12574 cat conftest.$ac_ext >&5
12575 ac_header_compiler=no
12576 fi
12577 rm -f conftest.$ac_objext conftest.$ac_ext
12578 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12579 echo "${ECHO_T}$ac_header_compiler" >&6
12580
12581 # Is the header present?
12582 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12583 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12584 cat >conftest.$ac_ext <<_ACEOF
12585 #line $LINENO "configure"
12586 #include "confdefs.h"
12587 #include <syslog.h>
12588 _ACEOF
12589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12590   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12591   ac_status=$?
12592   egrep -v '^ *\+' conftest.er1 >conftest.err
12593   rm -f conftest.er1
12594   cat conftest.err >&5
12595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596   (exit $ac_status); } >/dev/null; then
12597   if test -s conftest.err; then
12598     ac_cpp_err=$ac_c_preproc_warn_flag
12599   else
12600     ac_cpp_err=
12601   fi
12602 else
12603   ac_cpp_err=yes
12604 fi
12605 if test -z "$ac_cpp_err"; then
12606   ac_header_preproc=yes
12607 else
12608   echo "$as_me: failed program was:" >&5
12609   cat conftest.$ac_ext >&5
12610   ac_header_preproc=no
12611 fi
12612 rm -f conftest.err conftest.$ac_ext
12613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12614 echo "${ECHO_T}$ac_header_preproc" >&6
12615
12616 # So?  What about this header?
12617 case $ac_header_compiler:$ac_header_preproc in
12618   yes:no )
12619     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12620 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12621     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12622 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12623   no:yes )
12624     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12625 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12626     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12627 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12628     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12629 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12630 esac
12631 echo "$as_me:$LINENO: checking for syslog.h" >&5
12632 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12633 if test "${ac_cv_header_syslog_h+set}" = set; then
12634   echo $ECHO_N "(cached) $ECHO_C" >&6
12635 else
12636   ac_cv_header_syslog_h=$ac_header_preproc
12637 fi
12638 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12639 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12640
12641 fi
12642 if test $ac_cv_header_syslog_h = yes; then
12643
12644 cat >>confdefs.h <<\_ACEOF
12645 #define HAVE_SYSLOG 1
12646 _ACEOF
12647
12648 fi
12649
12650
12651 fi
12652
12653
12654 echo "$as_me:$LINENO: checking for optreset" >&5
12655 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12656 if test "${pgac_cv_var_int_optreset+set}" = set; then
12657   echo $ECHO_N "(cached) $ECHO_C" >&6
12658 else
12659   cat >conftest.$ac_ext <<_ACEOF
12660 #line $LINENO "configure"
12661 #include "confdefs.h"
12662 #include <unistd.h>
12663 #ifdef F77_DUMMY_MAIN
12664 #  ifdef __cplusplus
12665      extern "C"
12666 #  endif
12667    int F77_DUMMY_MAIN() { return 1; }
12668 #endif
12669 int
12670 main ()
12671 {
12672 extern int optreset; optreset = 1;
12673   ;
12674   return 0;
12675 }
12676 _ACEOF
12677 rm -f conftest.$ac_objext conftest$ac_exeext
12678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12679   (eval $ac_link) 2>&5
12680   ac_status=$?
12681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682   (exit $ac_status); } &&
12683          { ac_try='test -s conftest$ac_exeext'
12684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685   (eval $ac_try) 2>&5
12686   ac_status=$?
12687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688   (exit $ac_status); }; }; then
12689   pgac_cv_var_int_optreset=yes
12690 else
12691   echo "$as_me: failed program was:" >&5
12692 cat conftest.$ac_ext >&5
12693 pgac_cv_var_int_optreset=no
12694 fi
12695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12696 fi
12697 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12698 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12699 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12700
12701 cat >>confdefs.h <<\_ACEOF
12702 #define HAVE_INT_OPTRESET 1
12703 _ACEOF
12704
12705 fi
12706
12707
12708
12709 for ac_func in strtoll strtoq
12710 do
12711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12712 echo "$as_me:$LINENO: checking for $ac_func" >&5
12713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12714 if eval "test \"\${$as_ac_var+set}\" = set"; then
12715   echo $ECHO_N "(cached) $ECHO_C" >&6
12716 else
12717   cat >conftest.$ac_ext <<_ACEOF
12718 #line $LINENO "configure"
12719 #include "confdefs.h"
12720 /* System header to define __stub macros and hopefully few prototypes,
12721     which can conflict with char $ac_func (); below.  */
12722 #include <assert.h>
12723 /* Override any gcc2 internal prototype to avoid an error.  */
12724 #ifdef __cplusplus
12725 extern "C"
12726 #endif
12727 /* We use char because int might match the return type of a gcc2
12728    builtin and then its argument prototype would still apply.  */
12729 char $ac_func ();
12730 char (*f) ();
12731
12732 #ifdef F77_DUMMY_MAIN
12733 #  ifdef __cplusplus
12734      extern "C"
12735 #  endif
12736    int F77_DUMMY_MAIN() { return 1; }
12737 #endif
12738 int
12739 main ()
12740 {
12741 /* The GNU C library defines this for functions which it implements
12742     to always fail with ENOSYS.  Some functions are actually named
12743     something starting with __ and the normal name is an alias.  */
12744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12745 choke me
12746 #else
12747 f = $ac_func;
12748 #endif
12749
12750   ;
12751   return 0;
12752 }
12753 _ACEOF
12754 rm -f conftest.$ac_objext conftest$ac_exeext
12755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12756   (eval $ac_link) 2>&5
12757   ac_status=$?
12758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759   (exit $ac_status); } &&
12760          { ac_try='test -s conftest$ac_exeext'
12761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762   (eval $ac_try) 2>&5
12763   ac_status=$?
12764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765   (exit $ac_status); }; }; then
12766   eval "$as_ac_var=yes"
12767 else
12768   echo "$as_me: failed program was:" >&5
12769 cat conftest.$ac_ext >&5
12770 eval "$as_ac_var=no"
12771 fi
12772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12773 fi
12774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12776 if test `eval echo '${'$as_ac_var'}'` = yes; then
12777   cat >>confdefs.h <<_ACEOF
12778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12779 _ACEOF
12780  break
12781 fi
12782 done
12783
12784
12785
12786 for ac_func in strtoull strtouq
12787 do
12788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12789 echo "$as_me:$LINENO: checking for $ac_func" >&5
12790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12791 if eval "test \"\${$as_ac_var+set}\" = set"; then
12792   echo $ECHO_N "(cached) $ECHO_C" >&6
12793 else
12794   cat >conftest.$ac_ext <<_ACEOF
12795 #line $LINENO "configure"
12796 #include "confdefs.h"
12797 /* System header to define __stub macros and hopefully few prototypes,
12798     which can conflict with char $ac_func (); below.  */
12799 #include <assert.h>
12800 /* Override any gcc2 internal prototype to avoid an error.  */
12801 #ifdef __cplusplus
12802 extern "C"
12803 #endif
12804 /* We use char because int might match the return type of a gcc2
12805    builtin and then its argument prototype would still apply.  */
12806 char $ac_func ();
12807 char (*f) ();
12808
12809 #ifdef F77_DUMMY_MAIN
12810 #  ifdef __cplusplus
12811      extern "C"
12812 #  endif
12813    int F77_DUMMY_MAIN() { return 1; }
12814 #endif
12815 int
12816 main ()
12817 {
12818 /* The GNU C library defines this for functions which it implements
12819     to always fail with ENOSYS.  Some functions are actually named
12820     something starting with __ and the normal name is an alias.  */
12821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12822 choke me
12823 #else
12824 f = $ac_func;
12825 #endif
12826
12827   ;
12828   return 0;
12829 }
12830 _ACEOF
12831 rm -f conftest.$ac_objext conftest$ac_exeext
12832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12833   (eval $ac_link) 2>&5
12834   ac_status=$?
12835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836   (exit $ac_status); } &&
12837          { ac_try='test -s conftest$ac_exeext'
12838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12839   (eval $ac_try) 2>&5
12840   ac_status=$?
12841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842   (exit $ac_status); }; }; then
12843   eval "$as_ac_var=yes"
12844 else
12845   echo "$as_me: failed program was:" >&5
12846 cat conftest.$ac_ext >&5
12847 eval "$as_ac_var=no"
12848 fi
12849 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12850 fi
12851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12853 if test `eval echo '${'$as_ac_var'}'` = yes; then
12854   cat >>confdefs.h <<_ACEOF
12855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12856 _ACEOF
12857  break
12858 fi
12859 done
12860
12861
12862 # Check for one of atexit() or on_exit()
12863
12864 for ac_func in atexit
12865 do
12866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12867 echo "$as_me:$LINENO: checking for $ac_func" >&5
12868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12869 if eval "test \"\${$as_ac_var+set}\" = set"; then
12870   echo $ECHO_N "(cached) $ECHO_C" >&6
12871 else
12872   cat >conftest.$ac_ext <<_ACEOF
12873 #line $LINENO "configure"
12874 #include "confdefs.h"
12875 /* System header to define __stub macros and hopefully few prototypes,
12876     which can conflict with char $ac_func (); below.  */
12877 #include <assert.h>
12878 /* Override any gcc2 internal prototype to avoid an error.  */
12879 #ifdef __cplusplus
12880 extern "C"
12881 #endif
12882 /* We use char because int might match the return type of a gcc2
12883    builtin and then its argument prototype would still apply.  */
12884 char $ac_func ();
12885 char (*f) ();
12886
12887 #ifdef F77_DUMMY_MAIN
12888 #  ifdef __cplusplus
12889      extern "C"
12890 #  endif
12891    int F77_DUMMY_MAIN() { return 1; }
12892 #endif
12893 int
12894 main ()
12895 {
12896 /* The GNU C library defines this for functions which it implements
12897     to always fail with ENOSYS.  Some functions are actually named
12898     something starting with __ and the normal name is an alias.  */
12899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12900 choke me
12901 #else
12902 f = $ac_func;
12903 #endif
12904
12905   ;
12906   return 0;
12907 }
12908 _ACEOF
12909 rm -f conftest.$ac_objext conftest$ac_exeext
12910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12911   (eval $ac_link) 2>&5
12912   ac_status=$?
12913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914   (exit $ac_status); } &&
12915          { ac_try='test -s conftest$ac_exeext'
12916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917   (eval $ac_try) 2>&5
12918   ac_status=$?
12919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920   (exit $ac_status); }; }; then
12921   eval "$as_ac_var=yes"
12922 else
12923   echo "$as_me: failed program was:" >&5
12924 cat conftest.$ac_ext >&5
12925 eval "$as_ac_var=no"
12926 fi
12927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12928 fi
12929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12931 if test `eval echo '${'$as_ac_var'}'` = yes; then
12932   cat >>confdefs.h <<_ACEOF
12933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12934 _ACEOF
12935
12936 else
12937
12938 for ac_func in on_exit
12939 do
12940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12941 echo "$as_me:$LINENO: checking for $ac_func" >&5
12942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12943 if eval "test \"\${$as_ac_var+set}\" = set"; then
12944   echo $ECHO_N "(cached) $ECHO_C" >&6
12945 else
12946   cat >conftest.$ac_ext <<_ACEOF
12947 #line $LINENO "configure"
12948 #include "confdefs.h"
12949 /* System header to define __stub macros and hopefully few prototypes,
12950     which can conflict with char $ac_func (); below.  */
12951 #include <assert.h>
12952 /* Override any gcc2 internal prototype to avoid an error.  */
12953 #ifdef __cplusplus
12954 extern "C"
12955 #endif
12956 /* We use char because int might match the return type of a gcc2
12957    builtin and then its argument prototype would still apply.  */
12958 char $ac_func ();
12959 char (*f) ();
12960
12961 #ifdef F77_DUMMY_MAIN
12962 #  ifdef __cplusplus
12963      extern "C"
12964 #  endif
12965    int F77_DUMMY_MAIN() { return 1; }
12966 #endif
12967 int
12968 main ()
12969 {
12970 /* The GNU C library defines this for functions which it implements
12971     to always fail with ENOSYS.  Some functions are actually named
12972     something starting with __ and the normal name is an alias.  */
12973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12974 choke me
12975 #else
12976 f = $ac_func;
12977 #endif
12978
12979   ;
12980   return 0;
12981 }
12982 _ACEOF
12983 rm -f conftest.$ac_objext conftest$ac_exeext
12984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12985   (eval $ac_link) 2>&5
12986   ac_status=$?
12987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988   (exit $ac_status); } &&
12989          { ac_try='test -s conftest$ac_exeext'
12990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991   (eval $ac_try) 2>&5
12992   ac_status=$?
12993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994   (exit $ac_status); }; }; then
12995   eval "$as_ac_var=yes"
12996 else
12997   echo "$as_me: failed program was:" >&5
12998 cat conftest.$ac_ext >&5
12999 eval "$as_ac_var=no"
13000 fi
13001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13002 fi
13003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13004 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13005 if test `eval echo '${'$as_ac_var'}'` = yes; then
13006   cat >>confdefs.h <<_ACEOF
13007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13008 _ACEOF
13009
13010 else
13011   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
13012 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
13013    { (exit 1); exit 1; }; }
13014 fi
13015 done
13016
13017 fi
13018 done
13019
13020
13021 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13022 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13023 if test "${ac_cv_sys_largefile_source+set}" = set; then
13024   echo $ECHO_N "(cached) $ECHO_C" >&6
13025 else
13026   while :; do
13027   ac_cv_sys_largefile_source=no
13028   cat >conftest.$ac_ext <<_ACEOF
13029 #line $LINENO "configure"
13030 #include "confdefs.h"
13031 #include <stdio.h>
13032 #ifdef F77_DUMMY_MAIN
13033 #  ifdef __cplusplus
13034      extern "C"
13035 #  endif
13036    int F77_DUMMY_MAIN() { return 1; }
13037 #endif
13038 int
13039 main ()
13040 {
13041 return !fseeko;
13042   ;
13043   return 0;
13044 }
13045 _ACEOF
13046 rm -f conftest.$ac_objext
13047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13048   (eval $ac_compile) 2>&5
13049   ac_status=$?
13050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051   (exit $ac_status); } &&
13052          { ac_try='test -s conftest.$ac_objext'
13053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054   (eval $ac_try) 2>&5
13055   ac_status=$?
13056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057   (exit $ac_status); }; }; then
13058   break
13059 else
13060   echo "$as_me: failed program was:" >&5
13061 cat conftest.$ac_ext >&5
13062 fi
13063 rm -f conftest.$ac_objext conftest.$ac_ext
13064   cat >conftest.$ac_ext <<_ACEOF
13065 #line $LINENO "configure"
13066 #include "confdefs.h"
13067 #define _LARGEFILE_SOURCE 1
13068 #include <stdio.h>
13069 #ifdef F77_DUMMY_MAIN
13070 #  ifdef __cplusplus
13071      extern "C"
13072 #  endif
13073    int F77_DUMMY_MAIN() { return 1; }
13074 #endif
13075 int
13076 main ()
13077 {
13078 return !fseeko;
13079   ;
13080   return 0;
13081 }
13082 _ACEOF
13083 rm -f conftest.$ac_objext
13084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13085   (eval $ac_compile) 2>&5
13086   ac_status=$?
13087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088   (exit $ac_status); } &&
13089          { ac_try='test -s conftest.$ac_objext'
13090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13091   (eval $ac_try) 2>&5
13092   ac_status=$?
13093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094   (exit $ac_status); }; }; then
13095   ac_cv_sys_largefile_source=1; break
13096 else
13097   echo "$as_me: failed program was:" >&5
13098 cat conftest.$ac_ext >&5
13099 fi
13100 rm -f conftest.$ac_objext conftest.$ac_ext
13101   break
13102 done
13103 fi
13104 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13105 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13106 if test "$ac_cv_sys_largefile_source" != no; then
13107
13108 cat >>confdefs.h <<_ACEOF
13109 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13110 _ACEOF
13111
13112 fi
13113 rm -f conftest*
13114
13115 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13116 # in glibc 2.1.3, but that breaks too many other things.
13117 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13118 echo "$as_me:$LINENO: checking for fseeko" >&5
13119 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13120 if test "${ac_cv_func_fseeko+set}" = set; then
13121   echo $ECHO_N "(cached) $ECHO_C" >&6
13122 else
13123   cat >conftest.$ac_ext <<_ACEOF
13124 #line $LINENO "configure"
13125 #include "confdefs.h"
13126 #include <stdio.h>
13127 #ifdef F77_DUMMY_MAIN
13128 #  ifdef __cplusplus
13129      extern "C"
13130 #  endif
13131    int F77_DUMMY_MAIN() { return 1; }
13132 #endif
13133 int
13134 main ()
13135 {
13136 return fseeko && fseeko (stdin, 0, 0);
13137   ;
13138   return 0;
13139 }
13140 _ACEOF
13141 rm -f conftest.$ac_objext conftest$ac_exeext
13142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13143   (eval $ac_link) 2>&5
13144   ac_status=$?
13145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146   (exit $ac_status); } &&
13147          { ac_try='test -s conftest$ac_exeext'
13148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13149   (eval $ac_try) 2>&5
13150   ac_status=$?
13151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152   (exit $ac_status); }; }; then
13153   ac_cv_func_fseeko=yes
13154 else
13155   echo "$as_me: failed program was:" >&5
13156 cat conftest.$ac_ext >&5
13157 ac_cv_func_fseeko=no
13158 fi
13159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13160 fi
13161 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13162 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13163 if test $ac_cv_func_fseeko = yes; then
13164
13165 cat >>confdefs.h <<\_ACEOF
13166 #define HAVE_FSEEKO 1
13167 _ACEOF
13168
13169 fi
13170
13171
13172 #
13173 # Pthreads
13174 #
13175 # For each platform, we need to know about any special compile and link
13176 # libraries, and whether the normal C function names are thread-safe.
13177 # See the comment at the top of src/port/thread.c for more information.
13178 #
13179 if test "$enable_thread_safety" = yes; then
13180 if test "${ac_cv_header_pthread_h+set}" = set; then
13181   echo "$as_me:$LINENO: checking for pthread.h" >&5
13182 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13183 if test "${ac_cv_header_pthread_h+set}" = set; then
13184   echo $ECHO_N "(cached) $ECHO_C" >&6
13185 fi
13186 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13187 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13188 else
13189   # Is the header compilable?
13190 echo "$as_me:$LINENO: checking pthread.h usability" >&5
13191 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
13192 cat >conftest.$ac_ext <<_ACEOF
13193 #line $LINENO "configure"
13194 #include "confdefs.h"
13195 $ac_includes_default
13196 #include <pthread.h>
13197 _ACEOF
13198 rm -f conftest.$ac_objext
13199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13200   (eval $ac_compile) 2>&5
13201   ac_status=$?
13202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203   (exit $ac_status); } &&
13204          { ac_try='test -s conftest.$ac_objext'
13205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13206   (eval $ac_try) 2>&5
13207   ac_status=$?
13208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209   (exit $ac_status); }; }; then
13210   ac_header_compiler=yes
13211 else
13212   echo "$as_me: failed program was:" >&5
13213 cat conftest.$ac_ext >&5
13214 ac_header_compiler=no
13215 fi
13216 rm -f conftest.$ac_objext conftest.$ac_ext
13217 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13218 echo "${ECHO_T}$ac_header_compiler" >&6
13219
13220 # Is the header present?
13221 echo "$as_me:$LINENO: checking pthread.h presence" >&5
13222 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
13223 cat >conftest.$ac_ext <<_ACEOF
13224 #line $LINENO "configure"
13225 #include "confdefs.h"
13226 #include <pthread.h>
13227 _ACEOF
13228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13229   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13230   ac_status=$?
13231   egrep -v '^ *\+' conftest.er1 >conftest.err
13232   rm -f conftest.er1
13233   cat conftest.err >&5
13234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235   (exit $ac_status); } >/dev/null; then
13236   if test -s conftest.err; then
13237     ac_cpp_err=$ac_c_preproc_warn_flag
13238   else
13239     ac_cpp_err=
13240   fi
13241 else
13242   ac_cpp_err=yes
13243 fi
13244 if test -z "$ac_cpp_err"; then
13245   ac_header_preproc=yes
13246 else
13247   echo "$as_me: failed program was:" >&5
13248   cat conftest.$ac_ext >&5
13249   ac_header_preproc=no
13250 fi
13251 rm -f conftest.err conftest.$ac_ext
13252 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13253 echo "${ECHO_T}$ac_header_preproc" >&6
13254
13255 # So?  What about this header?
13256 case $ac_header_compiler:$ac_header_preproc in
13257   yes:no )
13258     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13259 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13260     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13261 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13262   no:yes )
13263     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13264 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13265     { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13266 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13267     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13268 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13269 esac
13270 echo "$as_me:$LINENO: checking for pthread.h" >&5
13271 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13272 if test "${ac_cv_header_pthread_h+set}" = set; then
13273   echo $ECHO_N "(cached) $ECHO_C" >&6
13274 else
13275   ac_cv_header_pthread_h=$ac_header_preproc
13276 fi
13277 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13278 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13279
13280 fi
13281 if test $ac_cv_header_pthread_h = yes; then
13282   :
13283 else
13284   { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safetys" >&5
13285 echo "$as_me: error: pthread.h not found, required for --enable-thread-safetys" >&2;}
13286    { (exit 1); exit 1; }; }
13287 fi
13288
13289
13290
13291 if test "$THREAD_SUPPORT" != yes; then
13292 { { echo "$as_me:$LINENO: error:
13293 Cannot enable threads on your platform.
13294 Please report your platform threading info to the PostgreSQL mailing lists
13295 so it can be added to the next release.  Report all compile flags, link flags,
13296 functions, or libraries required for threading support.
13297 See the comment at the top of src/port/thread.c for more information.
13298 " >&5
13299 echo "$as_me: error:
13300 Cannot enable threads on your platform.
13301 Please report your platform threading info to the PostgreSQL mailing lists
13302 so it can be added to the next release.  Report all compile flags, link flags,
13303 functions, or libraries required for threading support.
13304 See the comment at the top of src/port/thread.c for more information.
13305 " >&2;}
13306    { (exit 1); exit 1; }; }
13307 fi
13308 else
13309 # do not use values from template file
13310 THREAD_CPPFLAGS=
13311 THREAD_LIBS=
13312 fi
13313
13314
13315
13316
13317
13318 #
13319 # Check for re-entrant versions of certain functions
13320 #
13321 # Include special flags if threads are enabled _and_ if required for
13322 # threading on this platform.  Some platforms have *_r functions but
13323 # their natively named funcs are threadsafe, and should be used instead.
13324 #
13325 # One trick here is that if we don't call AC_CHECK_FUNCS, the
13326 # functions are marked "not found", which is perfect.
13327 #
13328 if test "$enable_thread_safety" = yes -a "$NEED_REENTRANT_FUNCS" = yes ; then
13329 _CFLAGS="$CFLAGS"
13330 _LIBS="$LIBS"
13331 CFLAGS="$CFLAGS $THREAD_CPPFLAGS"
13332 LIBS="$LIBS $THREAD_LIBS"
13333
13334
13335
13336 for ac_func in strerror_r getpwuid_r gethostbyname_r
13337 do
13338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13339 echo "$as_me:$LINENO: checking for $ac_func" >&5
13340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13341 if eval "test \"\${$as_ac_var+set}\" = set"; then
13342   echo $ECHO_N "(cached) $ECHO_C" >&6
13343 else
13344   cat >conftest.$ac_ext <<_ACEOF
13345 #line $LINENO "configure"
13346 #include "confdefs.h"
13347 /* System header to define __stub macros and hopefully few prototypes,
13348     which can conflict with char $ac_func (); below.  */
13349 #include <assert.h>
13350 /* Override any gcc2 internal prototype to avoid an error.  */
13351 #ifdef __cplusplus
13352 extern "C"
13353 #endif
13354 /* We use char because int might match the return type of a gcc2
13355    builtin and then its argument prototype would still apply.  */
13356 char $ac_func ();
13357 char (*f) ();
13358
13359 #ifdef F77_DUMMY_MAIN
13360 #  ifdef __cplusplus
13361      extern "C"
13362 #  endif
13363    int F77_DUMMY_MAIN() { return 1; }
13364 #endif
13365 int
13366 main ()
13367 {
13368 /* The GNU C library defines this for functions which it implements
13369     to always fail with ENOSYS.  Some functions are actually named
13370     something starting with __ and the normal name is an alias.  */
13371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13372 choke me
13373 #else
13374 f = $ac_func;
13375 #endif
13376
13377   ;
13378   return 0;
13379 }
13380 _ACEOF
13381 rm -f conftest.$ac_objext conftest$ac_exeext
13382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13383   (eval $ac_link) 2>&5
13384   ac_status=$?
13385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386   (exit $ac_status); } &&
13387          { ac_try='test -s conftest$ac_exeext'
13388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13389   (eval $ac_try) 2>&5
13390   ac_status=$?
13391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392   (exit $ac_status); }; }; then
13393   eval "$as_ac_var=yes"
13394 else
13395   echo "$as_me: failed program was:" >&5
13396 cat conftest.$ac_ext >&5
13397 eval "$as_ac_var=no"
13398 fi
13399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13400 fi
13401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13402 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13403 if test `eval echo '${'$as_ac_var'}'` = yes; then
13404   cat >>confdefs.h <<_ACEOF
13405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13406 _ACEOF
13407
13408 fi
13409 done
13410
13411 CFLAGS="$_CFLAGS"
13412 LIBS="$_LIBS"
13413 fi
13414
13415
13416 # This test makes sure that run tests work at all.  Sometimes a shared
13417 # library is found by the linker, but the runtime linker can't find it.
13418 # This check should come after all modifications of compiler or linker
13419 # variables, and before any other run tests.
13420 echo "$as_me:$LINENO: checking test program" >&5
13421 echo $ECHO_N "checking test program... $ECHO_C" >&6
13422 if test "$cross_compiling" = yes; then
13423   echo "$as_me:$LINENO: result: cross-compiling" >&5
13424 echo "${ECHO_T}cross-compiling" >&6
13425 else
13426   cat >conftest.$ac_ext <<_ACEOF
13427 #line $LINENO "configure"
13428 #include "confdefs.h"
13429 int main() { return 0; }
13430 _ACEOF
13431 rm -f conftest$ac_exeext
13432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13433   (eval $ac_link) 2>&5
13434   ac_status=$?
13435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438   (eval $ac_try) 2>&5
13439   ac_status=$?
13440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441   (exit $ac_status); }; }; then
13442   echo "$as_me:$LINENO: result: ok" >&5
13443 echo "${ECHO_T}ok" >&6
13444 else
13445   echo "$as_me: program exited with status $ac_status" >&5
13446 echo "$as_me: failed program was:" >&5
13447 cat conftest.$ac_ext >&5
13448 ( exit $ac_status )
13449 echo "$as_me:$LINENO: result: failed" >&5
13450 echo "${ECHO_T}failed" >&6
13451 { { echo "$as_me:$LINENO: error:
13452 *** Could not execute a simple test program.  This may be a problem
13453 *** related to locating shared libraries.  Check the file 'config.log'
13454 *** for the exact reason." >&5
13455 echo "$as_me: error:
13456 *** Could not execute a simple test program.  This may be a problem
13457 *** related to locating shared libraries.  Check the file 'config.log'
13458 *** for the exact reason." >&2;}
13459    { (exit 1); exit 1; }; }
13460 fi
13461 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13462 fi
13463
13464
13465
13466 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
13467 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
13468 if test "${pgac_cv_type_long_int_64+set}" = set; then
13469   echo $ECHO_N "(cached) $ECHO_C" >&6
13470 else
13471   if test "$cross_compiling" = yes; then
13472   # If cross-compiling, check the size reported by the compiler and
13473 # trust that the arithmetic works.
13474 cat >conftest.$ac_ext <<_ACEOF
13475 #line $LINENO "configure"
13476 #include "confdefs.h"
13477
13478 #ifdef F77_DUMMY_MAIN
13479 #  ifdef __cplusplus
13480      extern "C"
13481 #  endif
13482    int F77_DUMMY_MAIN() { return 1; }
13483 #endif
13484 int
13485 main ()
13486 {
13487 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13488 test_array [0] = 0
13489
13490   ;
13491   return 0;
13492 }
13493 _ACEOF
13494 rm -f conftest.$ac_objext
13495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13496   (eval $ac_compile) 2>&5
13497   ac_status=$?
13498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499   (exit $ac_status); } &&
13500          { ac_try='test -s conftest.$ac_objext'
13501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13502   (eval $ac_try) 2>&5
13503   ac_status=$?
13504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505   (exit $ac_status); }; }; then
13506   pgac_cv_type_long_int_64=yes
13507 else
13508   echo "$as_me: failed program was:" >&5
13509 cat conftest.$ac_ext >&5
13510 pgac_cv_type_long_int_64=no
13511 fi
13512 rm -f conftest.$ac_objext conftest.$ac_ext
13513 else
13514   cat >conftest.$ac_ext <<_ACEOF
13515 #line $LINENO "configure"
13516 #include "confdefs.h"
13517 typedef long int int64;
13518
13519 /*
13520  * These are globals to discourage the compiler from folding all the
13521  * arithmetic tests down to compile-time constants.
13522  */
13523 int64 a = 20000001;
13524 int64 b = 40000005;
13525
13526 int does_int64_work()
13527 {
13528   int64 c,d;
13529
13530   if (sizeof(int64) != 8)
13531     return 0;                   /* definitely not the right size */
13532
13533   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13534   c = a * b;
13535   d = (c + b) / b;
13536   if (d != a+1)
13537     return 0;
13538   return 1;
13539 }
13540 main() {
13541   exit(! does_int64_work());
13542 }
13543 _ACEOF
13544 rm -f conftest$ac_exeext
13545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13546   (eval $ac_link) 2>&5
13547   ac_status=$?
13548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551   (eval $ac_try) 2>&5
13552   ac_status=$?
13553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554   (exit $ac_status); }; }; then
13555   pgac_cv_type_long_int_64=yes
13556 else
13557   echo "$as_me: program exited with status $ac_status" >&5
13558 echo "$as_me: failed program was:" >&5
13559 cat conftest.$ac_ext >&5
13560 ( exit $ac_status )
13561 pgac_cv_type_long_int_64=no
13562 fi
13563 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13564 fi
13565 fi
13566 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
13567 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
13568
13569 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13570 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13571
13572 cat >>confdefs.h <<\_ACEOF
13573 #define HAVE_LONG_INT_64
13574 _ACEOF
13575
13576 fi
13577
13578
13579 if test x"$HAVE_LONG_INT_64" = x"no" ; then
13580   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
13581 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
13582 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
13583   echo $ECHO_N "(cached) $ECHO_C" >&6
13584 else
13585   if test "$cross_compiling" = yes; then
13586   # If cross-compiling, check the size reported by the compiler and
13587 # trust that the arithmetic works.
13588 cat >conftest.$ac_ext <<_ACEOF
13589 #line $LINENO "configure"
13590 #include "confdefs.h"
13591
13592 #ifdef F77_DUMMY_MAIN
13593 #  ifdef __cplusplus
13594      extern "C"
13595 #  endif
13596    int F77_DUMMY_MAIN() { return 1; }
13597 #endif
13598 int
13599 main ()
13600 {
13601 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13602 test_array [0] = 0
13603
13604   ;
13605   return 0;
13606 }
13607 _ACEOF
13608 rm -f conftest.$ac_objext
13609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13610   (eval $ac_compile) 2>&5
13611   ac_status=$?
13612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613   (exit $ac_status); } &&
13614          { ac_try='test -s conftest.$ac_objext'
13615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13616   (eval $ac_try) 2>&5
13617   ac_status=$?
13618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619   (exit $ac_status); }; }; then
13620   pgac_cv_type_long_long_int_64=yes
13621 else
13622   echo "$as_me: failed program was:" >&5
13623 cat conftest.$ac_ext >&5
13624 pgac_cv_type_long_long_int_64=no
13625 fi
13626 rm -f conftest.$ac_objext conftest.$ac_ext
13627 else
13628   cat >conftest.$ac_ext <<_ACEOF
13629 #line $LINENO "configure"
13630 #include "confdefs.h"
13631 typedef long long int int64;
13632
13633 /*
13634  * These are globals to discourage the compiler from folding all the
13635  * arithmetic tests down to compile-time constants.
13636  */
13637 int64 a = 20000001;
13638 int64 b = 40000005;
13639
13640 int does_int64_work()
13641 {
13642   int64 c,d;
13643
13644   if (sizeof(int64) != 8)
13645     return 0;                   /* definitely not the right size */
13646
13647   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13648   c = a * b;
13649   d = (c + b) / b;
13650   if (d != a+1)
13651     return 0;
13652   return 1;
13653 }
13654 main() {
13655   exit(! does_int64_work());
13656 }
13657 _ACEOF
13658 rm -f conftest$ac_exeext
13659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13660   (eval $ac_link) 2>&5
13661   ac_status=$?
13662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13665   (eval $ac_try) 2>&5
13666   ac_status=$?
13667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668   (exit $ac_status); }; }; then
13669   pgac_cv_type_long_long_int_64=yes
13670 else
13671   echo "$as_me: program exited with status $ac_status" >&5
13672 echo "$as_me: failed program was:" >&5
13673 cat conftest.$ac_ext >&5
13674 ( exit $ac_status )
13675 pgac_cv_type_long_long_int_64=no
13676 fi
13677 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13678 fi
13679 fi
13680 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
13681 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
13682
13683 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13684 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13685
13686 cat >>confdefs.h <<\_ACEOF
13687 #define HAVE_LONG_LONG_INT_64
13688 _ACEOF
13689
13690 fi
13691
13692 fi
13693
13694
13695
13696 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13697   cat >conftest.$ac_ext <<_ACEOF
13698 #line $LINENO "configure"
13699 #include "confdefs.h"
13700
13701 #define INT64CONST(x)  x##LL
13702 long long int foo = INT64CONST(0x1234567890123456);
13703
13704 #ifdef F77_DUMMY_MAIN
13705 #  ifdef __cplusplus
13706      extern "C"
13707 #  endif
13708    int F77_DUMMY_MAIN() { return 1; }
13709 #endif
13710 int
13711 main ()
13712 {
13713
13714   ;
13715   return 0;
13716 }
13717 _ACEOF
13718 rm -f conftest.$ac_objext
13719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13720   (eval $ac_compile) 2>&5
13721   ac_status=$?
13722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723   (exit $ac_status); } &&
13724          { ac_try='test -s conftest.$ac_objext'
13725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726   (eval $ac_try) 2>&5
13727   ac_status=$?
13728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729   (exit $ac_status); }; }; then
13730
13731 cat >>confdefs.h <<\_ACEOF
13732 #define HAVE_LL_CONSTANTS 1
13733 _ACEOF
13734
13735 else
13736   echo "$as_me: failed program was:" >&5
13737 cat conftest.$ac_ext >&5
13738 fi
13739 rm -f conftest.$ac_objext conftest.$ac_ext
13740 fi
13741
13742
13743 # If we found "long int" is 64 bits, assume snprintf handles it.  If
13744 # we found we need to use "long long int", better check.  We cope with
13745 # snprintfs that use either %lld, %qd, or %I64d as the format.  If
13746 # neither works, fall back to our own snprintf emulation (which we
13747 # know uses %lld).
13748
13749 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13750   if test $pgac_need_repl_snprintf = no; then
13751     echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
13752 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
13753 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
13754   echo $ECHO_N "(cached) $ECHO_C" >&6
13755 else
13756   for pgac_format in '%lld' '%qd' '%I64d'; do
13757 if test "$cross_compiling" = yes; then
13758   pgac_cv_snprintf_long_long_int_format=cross; break
13759 else
13760   cat >conftest.$ac_ext <<_ACEOF
13761 #line $LINENO "configure"
13762 #include "confdefs.h"
13763 #include <stdio.h>
13764 typedef long long int int64;
13765 #define INT64_FORMAT "$pgac_format"
13766
13767 int64 a = 20000001;
13768 int64 b = 40000005;
13769
13770 int does_int64_snprintf_work()
13771 {
13772   int64 c;
13773   char buf[100];
13774
13775   if (sizeof(int64) != 8)
13776     return 0;                   /* doesn't look like the right size */
13777
13778   c = a * b;
13779   snprintf(buf, 100, INT64_FORMAT, c);
13780   if (strcmp(buf, "800000140000005") != 0)
13781     return 0;                   /* either multiply or snprintf is busted */
13782   return 1;
13783 }
13784 main() {
13785   exit(! does_int64_snprintf_work());
13786 }
13787 _ACEOF
13788 rm -f conftest$ac_exeext
13789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13790   (eval $ac_link) 2>&5
13791   ac_status=$?
13792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795   (eval $ac_try) 2>&5
13796   ac_status=$?
13797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798   (exit $ac_status); }; }; then
13799   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
13800 else
13801   echo "$as_me: program exited with status $ac_status" >&5
13802 echo "$as_me: failed program was:" >&5
13803 cat conftest.$ac_ext >&5
13804 fi
13805 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13806 fi
13807 done
13808 fi
13809
13810 LONG_LONG_INT_FORMAT=''
13811
13812 case $pgac_cv_snprintf_long_long_int_format in
13813   cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
13814 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
13815   ?*)    echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
13816 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
13817          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13818   *)     echo "$as_me:$LINENO: result: none" >&5
13819 echo "${ECHO_T}none" >&6;;
13820 esac
13821     if test "$LONG_LONG_INT_FORMAT" = ""; then
13822       # Force usage of our own snprintf, since system snprintf is broken
13823       pgac_need_repl_snprintf=yes
13824       LONG_LONG_INT_FORMAT='%lld'
13825     fi
13826   else
13827     # Here if we previously decided we needed to use our own snprintf
13828     LONG_LONG_INT_FORMAT='%lld'
13829   fi
13830   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13831 else
13832   # Here if we are not using 'long long int' at all
13833   INT64_FORMAT='"%ld"'
13834 fi
13835
13836
13837 cat >>confdefs.h <<_ACEOF
13838 #define INT64_FORMAT $INT64_FORMAT
13839 _ACEOF
13840
13841
13842 if test $pgac_need_repl_snprintf = yes; then
13843   LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13844 fi
13845
13846 # Need a #define for the size of Datum (unsigned long)
13847 echo "$as_me:$LINENO: checking for unsigned long" >&5
13848 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13849 if test "${ac_cv_type_unsigned_long+set}" = set; then
13850   echo $ECHO_N "(cached) $ECHO_C" >&6
13851 else
13852   cat >conftest.$ac_ext <<_ACEOF
13853 #line $LINENO "configure"
13854 #include "confdefs.h"
13855 $ac_includes_default
13856 #ifdef F77_DUMMY_MAIN
13857 #  ifdef __cplusplus
13858      extern "C"
13859 #  endif
13860    int F77_DUMMY_MAIN() { return 1; }
13861 #endif
13862 int
13863 main ()
13864 {
13865 if ((unsigned long *) 0)
13866   return 0;
13867 if (sizeof (unsigned long))
13868   return 0;
13869   ;
13870   return 0;
13871 }
13872 _ACEOF
13873 rm -f conftest.$ac_objext
13874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13875   (eval $ac_compile) 2>&5
13876   ac_status=$?
13877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878   (exit $ac_status); } &&
13879          { ac_try='test -s conftest.$ac_objext'
13880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13881   (eval $ac_try) 2>&5
13882   ac_status=$?
13883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884   (exit $ac_status); }; }; then
13885   ac_cv_type_unsigned_long=yes
13886 else
13887   echo "$as_me: failed program was:" >&5
13888 cat conftest.$ac_ext >&5
13889 ac_cv_type_unsigned_long=no
13890 fi
13891 rm -f conftest.$ac_objext conftest.$ac_ext
13892 fi
13893 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13894 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13895
13896 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13897 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13898 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13899   echo $ECHO_N "(cached) $ECHO_C" >&6
13900 else
13901   if test "$ac_cv_type_unsigned_long" = yes; then
13902   # The cast to unsigned long works around a bug in the HP C Compiler
13903   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13904   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13905   # This bug is HP SR number 8606223364.
13906   if test "$cross_compiling" = yes; then
13907   # Depending upon the size, compute the lo and hi bounds.
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 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13922 test_array [0] = 0
13923
13924   ;
13925   return 0;
13926 }
13927 _ACEOF
13928 rm -f conftest.$ac_objext
13929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13930   (eval $ac_compile) 2>&5
13931   ac_status=$?
13932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933   (exit $ac_status); } &&
13934          { ac_try='test -s conftest.$ac_objext'
13935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936   (eval $ac_try) 2>&5
13937   ac_status=$?
13938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939   (exit $ac_status); }; }; then
13940   ac_lo=0 ac_mid=0
13941   while :; do
13942     cat >conftest.$ac_ext <<_ACEOF
13943 #line $LINENO "configure"
13944 #include "confdefs.h"
13945 $ac_includes_default
13946 #ifdef F77_DUMMY_MAIN
13947 #  ifdef __cplusplus
13948      extern "C"
13949 #  endif
13950    int F77_DUMMY_MAIN() { return 1; }
13951 #endif
13952 int
13953 main ()
13954 {
13955 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13956 test_array [0] = 0
13957
13958   ;
13959   return 0;
13960 }
13961 _ACEOF
13962 rm -f conftest.$ac_objext
13963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13964   (eval $ac_compile) 2>&5
13965   ac_status=$?
13966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967   (exit $ac_status); } &&
13968          { ac_try='test -s conftest.$ac_objext'
13969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970   (eval $ac_try) 2>&5
13971   ac_status=$?
13972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973   (exit $ac_status); }; }; then
13974   ac_hi=$ac_mid; break
13975 else
13976   echo "$as_me: failed program was:" >&5
13977 cat conftest.$ac_ext >&5
13978 ac_lo=`expr $ac_mid + 1`
13979                     if test $ac_lo -le $ac_mid; then
13980                       ac_lo= ac_hi=
13981                       break
13982                     fi
13983                     ac_mid=`expr 2 '*' $ac_mid + 1`
13984 fi
13985 rm -f conftest.$ac_objext conftest.$ac_ext
13986   done
13987 else
13988   echo "$as_me: failed program was:" >&5
13989 cat conftest.$ac_ext >&5
13990 cat >conftest.$ac_ext <<_ACEOF
13991 #line $LINENO "configure"
13992 #include "confdefs.h"
13993 $ac_includes_default
13994 #ifdef F77_DUMMY_MAIN
13995 #  ifdef __cplusplus
13996      extern "C"
13997 #  endif
13998    int F77_DUMMY_MAIN() { return 1; }
13999 #endif
14000 int
14001 main ()
14002 {
14003 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
14004 test_array [0] = 0
14005
14006   ;
14007   return 0;
14008 }
14009 _ACEOF
14010 rm -f conftest.$ac_objext
14011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14012   (eval $ac_compile) 2>&5
14013   ac_status=$?
14014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015   (exit $ac_status); } &&
14016          { ac_try='test -s conftest.$ac_objext'
14017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14018   (eval $ac_try) 2>&5
14019   ac_status=$?
14020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021   (exit $ac_status); }; }; then
14022   ac_hi=-1 ac_mid=-1
14023   while :; do
14024     cat >conftest.$ac_ext <<_ACEOF
14025 #line $LINENO "configure"
14026 #include "confdefs.h"
14027 $ac_includes_default
14028 #ifdef F77_DUMMY_MAIN
14029 #  ifdef __cplusplus
14030      extern "C"
14031 #  endif
14032    int F77_DUMMY_MAIN() { return 1; }
14033 #endif
14034 int
14035 main ()
14036 {
14037 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
14038 test_array [0] = 0
14039
14040   ;
14041   return 0;
14042 }
14043 _ACEOF
14044 rm -f conftest.$ac_objext
14045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14046   (eval $ac_compile) 2>&5
14047   ac_status=$?
14048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049   (exit $ac_status); } &&
14050          { ac_try='test -s conftest.$ac_objext'
14051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052   (eval $ac_try) 2>&5
14053   ac_status=$?
14054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055   (exit $ac_status); }; }; then
14056   ac_lo=$ac_mid; break
14057 else
14058   echo "$as_me: failed program was:" >&5
14059 cat conftest.$ac_ext >&5
14060 ac_hi=`expr '(' $ac_mid ')' - 1`
14061                        if test $ac_mid -le $ac_hi; then
14062                          ac_lo= ac_hi=
14063                          break
14064                        fi
14065                        ac_mid=`expr 2 '*' $ac_mid`
14066 fi
14067 rm -f conftest.$ac_objext conftest.$ac_ext
14068   done
14069 else
14070   echo "$as_me: failed program was:" >&5
14071 cat conftest.$ac_ext >&5
14072 ac_lo= ac_hi=
14073 fi
14074 rm -f conftest.$ac_objext conftest.$ac_ext
14075 fi
14076 rm -f conftest.$ac_objext conftest.$ac_ext
14077 # Binary search between lo and hi bounds.
14078 while test "x$ac_lo" != "x$ac_hi"; do
14079   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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_hi=$ac_mid
14113 else
14114   echo "$as_me: failed program was:" >&5
14115 cat conftest.$ac_ext >&5
14116 ac_lo=`expr '(' $ac_mid ')' + 1`
14117 fi
14118 rm -f conftest.$ac_objext conftest.$ac_ext
14119 done
14120 case $ac_lo in
14121 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
14122 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14123 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14124    { (exit 1); exit 1; }; } ;;
14125 esac
14126 else
14127   if test "$cross_compiling" = yes; then
14128   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14129 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14130    { (exit 1); exit 1; }; }
14131 else
14132   cat >conftest.$ac_ext <<_ACEOF
14133 #line $LINENO "configure"
14134 #include "confdefs.h"
14135 $ac_includes_default
14136 long longval () { return (long) (sizeof (unsigned long)); }
14137 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
14138 #include <stdio.h>
14139 #include <stdlib.h>
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
14150   FILE *f = fopen ("conftest.val", "w");
14151   if (! f)
14152     exit (1);
14153   if (((long) (sizeof (unsigned long))) < 0)
14154     {
14155       long i = longval ();
14156       if (i != ((long) (sizeof (unsigned long))))
14157         exit (1);
14158       fprintf (f, "%ld\n", i);
14159     }
14160   else
14161     {
14162       unsigned long i = ulongval ();
14163       if (i != ((long) (sizeof (unsigned long))))
14164         exit (1);
14165       fprintf (f, "%lu\n", i);
14166     }
14167   exit (ferror (f) || fclose (f) != 0);
14168
14169   ;
14170   return 0;
14171 }
14172 _ACEOF
14173 rm -f conftest$ac_exeext
14174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14175   (eval $ac_link) 2>&5
14176   ac_status=$?
14177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180   (eval $ac_try) 2>&5
14181   ac_status=$?
14182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183   (exit $ac_status); }; }; then
14184   ac_cv_sizeof_unsigned_long=`cat conftest.val`
14185 else
14186   echo "$as_me: program exited with status $ac_status" >&5
14187 echo "$as_me: failed program was:" >&5
14188 cat conftest.$ac_ext >&5
14189 ( exit $ac_status )
14190 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14191 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14192    { (exit 1); exit 1; }; }
14193 fi
14194 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14195 fi
14196 fi
14197 rm -f conftest.val
14198 else
14199   ac_cv_sizeof_unsigned_long=0
14200 fi
14201 fi
14202 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
14203 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
14204 cat >>confdefs.h <<_ACEOF
14205 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14206 _ACEOF
14207
14208
14209
14210 # Determine memory alignment requirements for the basic C data types.
14211
14212 echo "$as_me:$LINENO: checking for short" >&5
14213 echo $ECHO_N "checking for short... $ECHO_C" >&6
14214 if test "${ac_cv_type_short+set}" = set; then
14215   echo $ECHO_N "(cached) $ECHO_C" >&6
14216 else
14217   cat >conftest.$ac_ext <<_ACEOF
14218 #line $LINENO "configure"
14219 #include "confdefs.h"
14220 $ac_includes_default
14221 #ifdef F77_DUMMY_MAIN
14222 #  ifdef __cplusplus
14223      extern "C"
14224 #  endif
14225    int F77_DUMMY_MAIN() { return 1; }
14226 #endif
14227 int
14228 main ()
14229 {
14230 if ((short *) 0)
14231   return 0;
14232 if (sizeof (short))
14233   return 0;
14234   ;
14235   return 0;
14236 }
14237 _ACEOF
14238 rm -f conftest.$ac_objext
14239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14240   (eval $ac_compile) 2>&5
14241   ac_status=$?
14242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243   (exit $ac_status); } &&
14244          { ac_try='test -s conftest.$ac_objext'
14245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14246   (eval $ac_try) 2>&5
14247   ac_status=$?
14248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249   (exit $ac_status); }; }; then
14250   ac_cv_type_short=yes
14251 else
14252   echo "$as_me: failed program was:" >&5
14253 cat conftest.$ac_ext >&5
14254 ac_cv_type_short=no
14255 fi
14256 rm -f conftest.$ac_objext conftest.$ac_ext
14257 fi
14258 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14259 echo "${ECHO_T}$ac_cv_type_short" >&6
14260
14261 echo "$as_me:$LINENO: checking alignment of short" >&5
14262 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
14263 if test "${pgac_cv_alignof_short+set}" = set; then
14264   echo $ECHO_N "(cached) $ECHO_C" >&6
14265 else
14266   if test "$ac_cv_type_short" = yes; then
14267   if test "$cross_compiling" = yes; then
14268   # Depending upon the size, compute the lo and hi bounds.
14269 cat >conftest.$ac_ext <<_ACEOF
14270 #line $LINENO "configure"
14271 #include "confdefs.h"
14272 $ac_includes_default
14273 struct { char filler; short field; } pgac_struct;
14274 #ifdef F77_DUMMY_MAIN
14275 #  ifdef __cplusplus
14276      extern "C"
14277 #  endif
14278    int F77_DUMMY_MAIN() { return 1; }
14279 #endif
14280 int
14281 main ()
14282 {
14283 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14284 test_array [0] = 0
14285
14286   ;
14287   return 0;
14288 }
14289 _ACEOF
14290 rm -f conftest.$ac_objext
14291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14292   (eval $ac_compile) 2>&5
14293   ac_status=$?
14294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295   (exit $ac_status); } &&
14296          { ac_try='test -s conftest.$ac_objext'
14297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14298   (eval $ac_try) 2>&5
14299   ac_status=$?
14300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301   (exit $ac_status); }; }; then
14302   ac_lo=0 ac_mid=0
14303   while :; do
14304     cat >conftest.$ac_ext <<_ACEOF
14305 #line $LINENO "configure"
14306 #include "confdefs.h"
14307 $ac_includes_default
14308 struct { char filler; short field; } pgac_struct;
14309 #ifdef F77_DUMMY_MAIN
14310 #  ifdef __cplusplus
14311      extern "C"
14312 #  endif
14313    int F77_DUMMY_MAIN() { return 1; }
14314 #endif
14315 int
14316 main ()
14317 {
14318 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14319 test_array [0] = 0
14320
14321   ;
14322   return 0;
14323 }
14324 _ACEOF
14325 rm -f conftest.$ac_objext
14326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14327   (eval $ac_compile) 2>&5
14328   ac_status=$?
14329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330   (exit $ac_status); } &&
14331          { ac_try='test -s conftest.$ac_objext'
14332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333   (eval $ac_try) 2>&5
14334   ac_status=$?
14335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336   (exit $ac_status); }; }; then
14337   ac_hi=$ac_mid; break
14338 else
14339   echo "$as_me: failed program was:" >&5
14340 cat conftest.$ac_ext >&5
14341 ac_lo=`expr $ac_mid + 1`
14342                     if test $ac_lo -le $ac_mid; then
14343                       ac_lo= ac_hi=
14344                       break
14345                     fi
14346                     ac_mid=`expr 2 '*' $ac_mid + 1`
14347 fi
14348 rm -f conftest.$ac_objext conftest.$ac_ext
14349   done
14350 else
14351   echo "$as_me: failed program was:" >&5
14352 cat conftest.$ac_ext >&5
14353 cat >conftest.$ac_ext <<_ACEOF
14354 #line $LINENO "configure"
14355 #include "confdefs.h"
14356 $ac_includes_default
14357 struct { char filler; short field; } pgac_struct;
14358 #ifdef F77_DUMMY_MAIN
14359 #  ifdef __cplusplus
14360      extern "C"
14361 #  endif
14362    int F77_DUMMY_MAIN() { return 1; }
14363 #endif
14364 int
14365 main ()
14366 {
14367 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14368 test_array [0] = 0
14369
14370   ;
14371   return 0;
14372 }
14373 _ACEOF
14374 rm -f conftest.$ac_objext
14375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14376   (eval $ac_compile) 2>&5
14377   ac_status=$?
14378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379   (exit $ac_status); } &&
14380          { ac_try='test -s conftest.$ac_objext'
14381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382   (eval $ac_try) 2>&5
14383   ac_status=$?
14384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385   (exit $ac_status); }; }; then
14386   ac_hi=-1 ac_mid=-1
14387   while :; do
14388     cat >conftest.$ac_ext <<_ACEOF
14389 #line $LINENO "configure"
14390 #include "confdefs.h"
14391 $ac_includes_default
14392 struct { char filler; short field; } pgac_struct;
14393 #ifdef F77_DUMMY_MAIN
14394 #  ifdef __cplusplus
14395      extern "C"
14396 #  endif
14397    int F77_DUMMY_MAIN() { return 1; }
14398 #endif
14399 int
14400 main ()
14401 {
14402 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14403 test_array [0] = 0
14404
14405   ;
14406   return 0;
14407 }
14408 _ACEOF
14409 rm -f conftest.$ac_objext
14410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14411   (eval $ac_compile) 2>&5
14412   ac_status=$?
14413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414   (exit $ac_status); } &&
14415          { ac_try='test -s conftest.$ac_objext'
14416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417   (eval $ac_try) 2>&5
14418   ac_status=$?
14419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420   (exit $ac_status); }; }; then
14421   ac_lo=$ac_mid; break
14422 else
14423   echo "$as_me: failed program was:" >&5
14424 cat conftest.$ac_ext >&5
14425 ac_hi=`expr '(' $ac_mid ')' - 1`
14426                        if test $ac_mid -le $ac_hi; then
14427                          ac_lo= ac_hi=
14428                          break
14429                        fi
14430                        ac_mid=`expr 2 '*' $ac_mid`
14431 fi
14432 rm -f conftest.$ac_objext conftest.$ac_ext
14433   done
14434 else
14435   echo "$as_me: failed program was:" >&5
14436 cat conftest.$ac_ext >&5
14437 ac_lo= ac_hi=
14438 fi
14439 rm -f conftest.$ac_objext conftest.$ac_ext
14440 fi
14441 rm -f conftest.$ac_objext conftest.$ac_ext
14442 # Binary search between lo and hi bounds.
14443 while test "x$ac_lo" != "x$ac_hi"; do
14444   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14445   cat >conftest.$ac_ext <<_ACEOF
14446 #line $LINENO "configure"
14447 #include "confdefs.h"
14448 $ac_includes_default
14449 struct { char filler; short field; } pgac_struct;
14450 #ifdef F77_DUMMY_MAIN
14451 #  ifdef __cplusplus
14452      extern "C"
14453 #  endif
14454    int F77_DUMMY_MAIN() { return 1; }
14455 #endif
14456 int
14457 main ()
14458 {
14459 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14460 test_array [0] = 0
14461
14462   ;
14463   return 0;
14464 }
14465 _ACEOF
14466 rm -f conftest.$ac_objext
14467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14468   (eval $ac_compile) 2>&5
14469   ac_status=$?
14470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471   (exit $ac_status); } &&
14472          { ac_try='test -s conftest.$ac_objext'
14473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14474   (eval $ac_try) 2>&5
14475   ac_status=$?
14476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477   (exit $ac_status); }; }; then
14478   ac_hi=$ac_mid
14479 else
14480   echo "$as_me: failed program was:" >&5
14481 cat conftest.$ac_ext >&5
14482 ac_lo=`expr '(' $ac_mid ')' + 1`
14483 fi
14484 rm -f conftest.$ac_objext conftest.$ac_ext
14485 done
14486 case $ac_lo in
14487 ?*) pgac_cv_alignof_short=$ac_lo;;
14488 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14489 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14490    { (exit 1); exit 1; }; } ;;
14491 esac
14492 else
14493   if test "$cross_compiling" = yes; then
14494   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14495 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14496    { (exit 1); exit 1; }; }
14497 else
14498   cat >conftest.$ac_ext <<_ACEOF
14499 #line $LINENO "configure"
14500 #include "confdefs.h"
14501 $ac_includes_default
14502 struct { char filler; short field; } pgac_struct;
14503 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14504 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14505 #include <stdio.h>
14506 #include <stdlib.h>
14507 #ifdef F77_DUMMY_MAIN
14508 #  ifdef __cplusplus
14509      extern "C"
14510 #  endif
14511    int F77_DUMMY_MAIN() { return 1; }
14512 #endif
14513 int
14514 main ()
14515 {
14516
14517   FILE *f = fopen ("conftest.val", "w");
14518   if (! f)
14519     exit (1);
14520   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14521     {
14522       long i = longval ();
14523       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14524         exit (1);
14525       fprintf (f, "%ld\n", i);
14526     }
14527   else
14528     {
14529       unsigned long i = ulongval ();
14530       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14531         exit (1);
14532       fprintf (f, "%lu\n", i);
14533     }
14534   exit (ferror (f) || fclose (f) != 0);
14535
14536   ;
14537   return 0;
14538 }
14539 _ACEOF
14540 rm -f conftest$ac_exeext
14541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14542   (eval $ac_link) 2>&5
14543   ac_status=$?
14544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14547   (eval $ac_try) 2>&5
14548   ac_status=$?
14549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550   (exit $ac_status); }; }; then
14551   pgac_cv_alignof_short=`cat conftest.val`
14552 else
14553   echo "$as_me: program exited with status $ac_status" >&5
14554 echo "$as_me: failed program was:" >&5
14555 cat conftest.$ac_ext >&5
14556 ( exit $ac_status )
14557 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14558 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14559    { (exit 1); exit 1; }; }
14560 fi
14561 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14562 fi
14563 fi
14564 rm -f conftest.val
14565 else
14566   pgac_cv_alignof_short=0
14567 fi
14568 fi
14569 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
14570 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
14571 cat >>confdefs.h <<_ACEOF
14572 #define ALIGNOF_SHORT $pgac_cv_alignof_short
14573 _ACEOF
14574
14575
14576 echo "$as_me:$LINENO: checking for int" >&5
14577 echo $ECHO_N "checking for int... $ECHO_C" >&6
14578 if test "${ac_cv_type_int+set}" = set; then
14579   echo $ECHO_N "(cached) $ECHO_C" >&6
14580 else
14581   cat >conftest.$ac_ext <<_ACEOF
14582 #line $LINENO "configure"
14583 #include "confdefs.h"
14584 $ac_includes_default
14585 #ifdef F77_DUMMY_MAIN
14586 #  ifdef __cplusplus
14587      extern "C"
14588 #  endif
14589    int F77_DUMMY_MAIN() { return 1; }
14590 #endif
14591 int
14592 main ()
14593 {
14594 if ((int *) 0)
14595   return 0;
14596 if (sizeof (int))
14597   return 0;
14598   ;
14599   return 0;
14600 }
14601 _ACEOF
14602 rm -f conftest.$ac_objext
14603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14604   (eval $ac_compile) 2>&5
14605   ac_status=$?
14606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607   (exit $ac_status); } &&
14608          { ac_try='test -s conftest.$ac_objext'
14609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14610   (eval $ac_try) 2>&5
14611   ac_status=$?
14612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613   (exit $ac_status); }; }; then
14614   ac_cv_type_int=yes
14615 else
14616   echo "$as_me: failed program was:" >&5
14617 cat conftest.$ac_ext >&5
14618 ac_cv_type_int=no
14619 fi
14620 rm -f conftest.$ac_objext conftest.$ac_ext
14621 fi
14622 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14623 echo "${ECHO_T}$ac_cv_type_int" >&6
14624
14625 echo "$as_me:$LINENO: checking alignment of int" >&5
14626 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14627 if test "${pgac_cv_alignof_int+set}" = set; then
14628   echo $ECHO_N "(cached) $ECHO_C" >&6
14629 else
14630   if test "$ac_cv_type_int" = yes; then
14631   if test "$cross_compiling" = yes; then
14632   # Depending upon the size, compute the lo and hi bounds.
14633 cat >conftest.$ac_ext <<_ACEOF
14634 #line $LINENO "configure"
14635 #include "confdefs.h"
14636 $ac_includes_default
14637 struct { char filler; int field; } pgac_struct;
14638 #ifdef F77_DUMMY_MAIN
14639 #  ifdef __cplusplus
14640      extern "C"
14641 #  endif
14642    int F77_DUMMY_MAIN() { return 1; }
14643 #endif
14644 int
14645 main ()
14646 {
14647 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14648 test_array [0] = 0
14649
14650   ;
14651   return 0;
14652 }
14653 _ACEOF
14654 rm -f conftest.$ac_objext
14655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14656   (eval $ac_compile) 2>&5
14657   ac_status=$?
14658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659   (exit $ac_status); } &&
14660          { ac_try='test -s conftest.$ac_objext'
14661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14662   (eval $ac_try) 2>&5
14663   ac_status=$?
14664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665   (exit $ac_status); }; }; then
14666   ac_lo=0 ac_mid=0
14667   while :; do
14668     cat >conftest.$ac_ext <<_ACEOF
14669 #line $LINENO "configure"
14670 #include "confdefs.h"
14671 $ac_includes_default
14672 struct { char filler; int field; } pgac_struct;
14673 #ifdef F77_DUMMY_MAIN
14674 #  ifdef __cplusplus
14675      extern "C"
14676 #  endif
14677    int F77_DUMMY_MAIN() { return 1; }
14678 #endif
14679 int
14680 main ()
14681 {
14682 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14683 test_array [0] = 0
14684
14685   ;
14686   return 0;
14687 }
14688 _ACEOF
14689 rm -f conftest.$ac_objext
14690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14691   (eval $ac_compile) 2>&5
14692   ac_status=$?
14693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694   (exit $ac_status); } &&
14695          { ac_try='test -s conftest.$ac_objext'
14696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14697   (eval $ac_try) 2>&5
14698   ac_status=$?
14699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700   (exit $ac_status); }; }; then
14701   ac_hi=$ac_mid; break
14702 else
14703   echo "$as_me: failed program was:" >&5
14704 cat conftest.$ac_ext >&5
14705 ac_lo=`expr $ac_mid + 1`
14706                     if test $ac_lo -le $ac_mid; then
14707                       ac_lo= ac_hi=
14708                       break
14709                     fi
14710                     ac_mid=`expr 2 '*' $ac_mid + 1`
14711 fi
14712 rm -f conftest.$ac_objext conftest.$ac_ext
14713   done
14714 else
14715   echo "$as_me: failed program was:" >&5
14716 cat conftest.$ac_ext >&5
14717 cat >conftest.$ac_ext <<_ACEOF
14718 #line $LINENO "configure"
14719 #include "confdefs.h"
14720 $ac_includes_default
14721 struct { char filler; int field; } pgac_struct;
14722 #ifdef F77_DUMMY_MAIN
14723 #  ifdef __cplusplus
14724      extern "C"
14725 #  endif
14726    int F77_DUMMY_MAIN() { return 1; }
14727 #endif
14728 int
14729 main ()
14730 {
14731 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14732 test_array [0] = 0
14733
14734   ;
14735   return 0;
14736 }
14737 _ACEOF
14738 rm -f conftest.$ac_objext
14739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14740   (eval $ac_compile) 2>&5
14741   ac_status=$?
14742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743   (exit $ac_status); } &&
14744          { ac_try='test -s conftest.$ac_objext'
14745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14746   (eval $ac_try) 2>&5
14747   ac_status=$?
14748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749   (exit $ac_status); }; }; then
14750   ac_hi=-1 ac_mid=-1
14751   while :; do
14752     cat >conftest.$ac_ext <<_ACEOF
14753 #line $LINENO "configure"
14754 #include "confdefs.h"
14755 $ac_includes_default
14756 struct { char filler; int field; } pgac_struct;
14757 #ifdef F77_DUMMY_MAIN
14758 #  ifdef __cplusplus
14759      extern "C"
14760 #  endif
14761    int F77_DUMMY_MAIN() { return 1; }
14762 #endif
14763 int
14764 main ()
14765 {
14766 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14767 test_array [0] = 0
14768
14769   ;
14770   return 0;
14771 }
14772 _ACEOF
14773 rm -f conftest.$ac_objext
14774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14775   (eval $ac_compile) 2>&5
14776   ac_status=$?
14777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778   (exit $ac_status); } &&
14779          { ac_try='test -s conftest.$ac_objext'
14780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14781   (eval $ac_try) 2>&5
14782   ac_status=$?
14783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784   (exit $ac_status); }; }; then
14785   ac_lo=$ac_mid; break
14786 else
14787   echo "$as_me: failed program was:" >&5
14788 cat conftest.$ac_ext >&5
14789 ac_hi=`expr '(' $ac_mid ')' - 1`
14790                        if test $ac_mid -le $ac_hi; then
14791                          ac_lo= ac_hi=
14792                          break
14793                        fi
14794                        ac_mid=`expr 2 '*' $ac_mid`
14795 fi
14796 rm -f conftest.$ac_objext conftest.$ac_ext
14797   done
14798 else
14799   echo "$as_me: failed program was:" >&5
14800 cat conftest.$ac_ext >&5
14801 ac_lo= ac_hi=
14802 fi
14803 rm -f conftest.$ac_objext conftest.$ac_ext
14804 fi
14805 rm -f conftest.$ac_objext conftest.$ac_ext
14806 # Binary search between lo and hi bounds.
14807 while test "x$ac_lo" != "x$ac_hi"; do
14808   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14809   cat >conftest.$ac_ext <<_ACEOF
14810 #line $LINENO "configure"
14811 #include "confdefs.h"
14812 $ac_includes_default
14813 struct { char filler; int field; } pgac_struct;
14814 #ifdef F77_DUMMY_MAIN
14815 #  ifdef __cplusplus
14816      extern "C"
14817 #  endif
14818    int F77_DUMMY_MAIN() { return 1; }
14819 #endif
14820 int
14821 main ()
14822 {
14823 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14824 test_array [0] = 0
14825
14826   ;
14827   return 0;
14828 }
14829 _ACEOF
14830 rm -f conftest.$ac_objext
14831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14832   (eval $ac_compile) 2>&5
14833   ac_status=$?
14834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835   (exit $ac_status); } &&
14836          { ac_try='test -s conftest.$ac_objext'
14837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14838   (eval $ac_try) 2>&5
14839   ac_status=$?
14840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841   (exit $ac_status); }; }; then
14842   ac_hi=$ac_mid
14843 else
14844   echo "$as_me: failed program was:" >&5
14845 cat conftest.$ac_ext >&5
14846 ac_lo=`expr '(' $ac_mid ')' + 1`
14847 fi
14848 rm -f conftest.$ac_objext conftest.$ac_ext
14849 done
14850 case $ac_lo in
14851 ?*) pgac_cv_alignof_int=$ac_lo;;
14852 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14853 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14854    { (exit 1); exit 1; }; } ;;
14855 esac
14856 else
14857   if test "$cross_compiling" = yes; then
14858   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14859 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14860    { (exit 1); exit 1; }; }
14861 else
14862   cat >conftest.$ac_ext <<_ACEOF
14863 #line $LINENO "configure"
14864 #include "confdefs.h"
14865 $ac_includes_default
14866 struct { char filler; int field; } pgac_struct;
14867 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14868 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14869 #include <stdio.h>
14870 #include <stdlib.h>
14871 #ifdef F77_DUMMY_MAIN
14872 #  ifdef __cplusplus
14873      extern "C"
14874 #  endif
14875    int F77_DUMMY_MAIN() { return 1; }
14876 #endif
14877 int
14878 main ()
14879 {
14880
14881   FILE *f = fopen ("conftest.val", "w");
14882   if (! f)
14883     exit (1);
14884   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14885     {
14886       long i = longval ();
14887       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14888         exit (1);
14889       fprintf (f, "%ld\n", i);
14890     }
14891   else
14892     {
14893       unsigned long i = ulongval ();
14894       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14895         exit (1);
14896       fprintf (f, "%lu\n", i);
14897     }
14898   exit (ferror (f) || fclose (f) != 0);
14899
14900   ;
14901   return 0;
14902 }
14903 _ACEOF
14904 rm -f conftest$ac_exeext
14905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14906   (eval $ac_link) 2>&5
14907   ac_status=$?
14908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14911   (eval $ac_try) 2>&5
14912   ac_status=$?
14913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914   (exit $ac_status); }; }; then
14915   pgac_cv_alignof_int=`cat conftest.val`
14916 else
14917   echo "$as_me: program exited with status $ac_status" >&5
14918 echo "$as_me: failed program was:" >&5
14919 cat conftest.$ac_ext >&5
14920 ( exit $ac_status )
14921 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14922 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14923    { (exit 1); exit 1; }; }
14924 fi
14925 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14926 fi
14927 fi
14928 rm -f conftest.val
14929 else
14930   pgac_cv_alignof_int=0
14931 fi
14932 fi
14933 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14934 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14935 cat >>confdefs.h <<_ACEOF
14936 #define ALIGNOF_INT $pgac_cv_alignof_int
14937 _ACEOF
14938
14939
14940 echo "$as_me:$LINENO: checking for long" >&5
14941 echo $ECHO_N "checking for long... $ECHO_C" >&6
14942 if test "${ac_cv_type_long+set}" = set; then
14943   echo $ECHO_N "(cached) $ECHO_C" >&6
14944 else
14945   cat >conftest.$ac_ext <<_ACEOF
14946 #line $LINENO "configure"
14947 #include "confdefs.h"
14948 $ac_includes_default
14949 #ifdef F77_DUMMY_MAIN
14950 #  ifdef __cplusplus
14951      extern "C"
14952 #  endif
14953    int F77_DUMMY_MAIN() { return 1; }
14954 #endif
14955 int
14956 main ()
14957 {
14958 if ((long *) 0)
14959   return 0;
14960 if (sizeof (long))
14961   return 0;
14962   ;
14963   return 0;
14964 }
14965 _ACEOF
14966 rm -f conftest.$ac_objext
14967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14968   (eval $ac_compile) 2>&5
14969   ac_status=$?
14970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971   (exit $ac_status); } &&
14972          { ac_try='test -s conftest.$ac_objext'
14973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974   (eval $ac_try) 2>&5
14975   ac_status=$?
14976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977   (exit $ac_status); }; }; then
14978   ac_cv_type_long=yes
14979 else
14980   echo "$as_me: failed program was:" >&5
14981 cat conftest.$ac_ext >&5
14982 ac_cv_type_long=no
14983 fi
14984 rm -f conftest.$ac_objext conftest.$ac_ext
14985 fi
14986 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14987 echo "${ECHO_T}$ac_cv_type_long" >&6
14988
14989 echo "$as_me:$LINENO: checking alignment of long" >&5
14990 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14991 if test "${pgac_cv_alignof_long+set}" = set; then
14992   echo $ECHO_N "(cached) $ECHO_C" >&6
14993 else
14994   if test "$ac_cv_type_long" = yes; then
14995   if test "$cross_compiling" = yes; then
14996   # Depending upon the size, compute the lo and hi bounds.
14997 cat >conftest.$ac_ext <<_ACEOF
14998 #line $LINENO "configure"
14999 #include "confdefs.h"
15000 $ac_includes_default
15001 struct { char filler; long field; } pgac_struct;
15002 #ifdef F77_DUMMY_MAIN
15003 #  ifdef __cplusplus
15004      extern "C"
15005 #  endif
15006    int F77_DUMMY_MAIN() { return 1; }
15007 #endif
15008 int
15009 main ()
15010 {
15011 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15012 test_array [0] = 0
15013
15014   ;
15015   return 0;
15016 }
15017 _ACEOF
15018 rm -f conftest.$ac_objext
15019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15020   (eval $ac_compile) 2>&5
15021   ac_status=$?
15022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023   (exit $ac_status); } &&
15024          { ac_try='test -s conftest.$ac_objext'
15025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15026   (eval $ac_try) 2>&5
15027   ac_status=$?
15028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029   (exit $ac_status); }; }; then
15030   ac_lo=0 ac_mid=0
15031   while :; do
15032     cat >conftest.$ac_ext <<_ACEOF
15033 #line $LINENO "configure"
15034 #include "confdefs.h"
15035 $ac_includes_default
15036 struct { char filler; long field; } pgac_struct;
15037 #ifdef F77_DUMMY_MAIN
15038 #  ifdef __cplusplus
15039      extern "C"
15040 #  endif
15041    int F77_DUMMY_MAIN() { return 1; }
15042 #endif
15043 int
15044 main ()
15045 {
15046 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15047 test_array [0] = 0
15048
15049   ;
15050   return 0;
15051 }
15052 _ACEOF
15053 rm -f conftest.$ac_objext
15054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15055   (eval $ac_compile) 2>&5
15056   ac_status=$?
15057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058   (exit $ac_status); } &&
15059          { ac_try='test -s conftest.$ac_objext'
15060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15061   (eval $ac_try) 2>&5
15062   ac_status=$?
15063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064   (exit $ac_status); }; }; then
15065   ac_hi=$ac_mid; break
15066 else
15067   echo "$as_me: failed program was:" >&5
15068 cat conftest.$ac_ext >&5
15069 ac_lo=`expr $ac_mid + 1`
15070                     if test $ac_lo -le $ac_mid; then
15071                       ac_lo= ac_hi=
15072                       break
15073                     fi
15074                     ac_mid=`expr 2 '*' $ac_mid + 1`
15075 fi
15076 rm -f conftest.$ac_objext conftest.$ac_ext
15077   done
15078 else
15079   echo "$as_me: failed program was:" >&5
15080 cat conftest.$ac_ext >&5
15081 cat >conftest.$ac_ext <<_ACEOF
15082 #line $LINENO "configure"
15083 #include "confdefs.h"
15084 $ac_includes_default
15085 struct { char filler; long field; } pgac_struct;
15086 #ifdef F77_DUMMY_MAIN
15087 #  ifdef __cplusplus
15088      extern "C"
15089 #  endif
15090    int F77_DUMMY_MAIN() { return 1; }
15091 #endif
15092 int
15093 main ()
15094 {
15095 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15096 test_array [0] = 0
15097
15098   ;
15099   return 0;
15100 }
15101 _ACEOF
15102 rm -f conftest.$ac_objext
15103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15104   (eval $ac_compile) 2>&5
15105   ac_status=$?
15106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107   (exit $ac_status); } &&
15108          { ac_try='test -s conftest.$ac_objext'
15109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110   (eval $ac_try) 2>&5
15111   ac_status=$?
15112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113   (exit $ac_status); }; }; then
15114   ac_hi=-1 ac_mid=-1
15115   while :; do
15116     cat >conftest.$ac_ext <<_ACEOF
15117 #line $LINENO "configure"
15118 #include "confdefs.h"
15119 $ac_includes_default
15120 struct { char filler; long field; } pgac_struct;
15121 #ifdef F77_DUMMY_MAIN
15122 #  ifdef __cplusplus
15123      extern "C"
15124 #  endif
15125    int F77_DUMMY_MAIN() { return 1; }
15126 #endif
15127 int
15128 main ()
15129 {
15130 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15131 test_array [0] = 0
15132
15133   ;
15134   return 0;
15135 }
15136 _ACEOF
15137 rm -f conftest.$ac_objext
15138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15139   (eval $ac_compile) 2>&5
15140   ac_status=$?
15141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142   (exit $ac_status); } &&
15143          { ac_try='test -s conftest.$ac_objext'
15144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15145   (eval $ac_try) 2>&5
15146   ac_status=$?
15147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148   (exit $ac_status); }; }; then
15149   ac_lo=$ac_mid; break
15150 else
15151   echo "$as_me: failed program was:" >&5
15152 cat conftest.$ac_ext >&5
15153 ac_hi=`expr '(' $ac_mid ')' - 1`
15154                        if test $ac_mid -le $ac_hi; then
15155                          ac_lo= ac_hi=
15156                          break
15157                        fi
15158                        ac_mid=`expr 2 '*' $ac_mid`
15159 fi
15160 rm -f conftest.$ac_objext conftest.$ac_ext
15161   done
15162 else
15163   echo "$as_me: failed program was:" >&5
15164 cat conftest.$ac_ext >&5
15165 ac_lo= ac_hi=
15166 fi
15167 rm -f conftest.$ac_objext conftest.$ac_ext
15168 fi
15169 rm -f conftest.$ac_objext conftest.$ac_ext
15170 # Binary search between lo and hi bounds.
15171 while test "x$ac_lo" != "x$ac_hi"; do
15172   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15173   cat >conftest.$ac_ext <<_ACEOF
15174 #line $LINENO "configure"
15175 #include "confdefs.h"
15176 $ac_includes_default
15177 struct { char filler; long field; } pgac_struct;
15178 #ifdef F77_DUMMY_MAIN
15179 #  ifdef __cplusplus
15180      extern "C"
15181 #  endif
15182    int F77_DUMMY_MAIN() { return 1; }
15183 #endif
15184 int
15185 main ()
15186 {
15187 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15188 test_array [0] = 0
15189
15190   ;
15191   return 0;
15192 }
15193 _ACEOF
15194 rm -f conftest.$ac_objext
15195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15196   (eval $ac_compile) 2>&5
15197   ac_status=$?
15198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199   (exit $ac_status); } &&
15200          { ac_try='test -s conftest.$ac_objext'
15201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15202   (eval $ac_try) 2>&5
15203   ac_status=$?
15204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205   (exit $ac_status); }; }; then
15206   ac_hi=$ac_mid
15207 else
15208   echo "$as_me: failed program was:" >&5
15209 cat conftest.$ac_ext >&5
15210 ac_lo=`expr '(' $ac_mid ')' + 1`
15211 fi
15212 rm -f conftest.$ac_objext conftest.$ac_ext
15213 done
15214 case $ac_lo in
15215 ?*) pgac_cv_alignof_long=$ac_lo;;
15216 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15217 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15218    { (exit 1); exit 1; }; } ;;
15219 esac
15220 else
15221   if test "$cross_compiling" = yes; then
15222   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15223 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15224    { (exit 1); exit 1; }; }
15225 else
15226   cat >conftest.$ac_ext <<_ACEOF
15227 #line $LINENO "configure"
15228 #include "confdefs.h"
15229 $ac_includes_default
15230 struct { char filler; long field; } pgac_struct;
15231 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15232 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15233 #include <stdio.h>
15234 #include <stdlib.h>
15235 #ifdef F77_DUMMY_MAIN
15236 #  ifdef __cplusplus
15237      extern "C"
15238 #  endif
15239    int F77_DUMMY_MAIN() { return 1; }
15240 #endif
15241 int
15242 main ()
15243 {
15244
15245   FILE *f = fopen ("conftest.val", "w");
15246   if (! f)
15247     exit (1);
15248   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15249     {
15250       long i = longval ();
15251       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15252         exit (1);
15253       fprintf (f, "%ld\n", i);
15254     }
15255   else
15256     {
15257       unsigned long i = ulongval ();
15258       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15259         exit (1);
15260       fprintf (f, "%lu\n", i);
15261     }
15262   exit (ferror (f) || fclose (f) != 0);
15263
15264   ;
15265   return 0;
15266 }
15267 _ACEOF
15268 rm -f conftest$ac_exeext
15269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15270   (eval $ac_link) 2>&5
15271   ac_status=$?
15272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15275   (eval $ac_try) 2>&5
15276   ac_status=$?
15277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278   (exit $ac_status); }; }; then
15279   pgac_cv_alignof_long=`cat conftest.val`
15280 else
15281   echo "$as_me: program exited with status $ac_status" >&5
15282 echo "$as_me: failed program was:" >&5
15283 cat conftest.$ac_ext >&5
15284 ( exit $ac_status )
15285 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15286 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15287    { (exit 1); exit 1; }; }
15288 fi
15289 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15290 fi
15291 fi
15292 rm -f conftest.val
15293 else
15294   pgac_cv_alignof_long=0
15295 fi
15296 fi
15297 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
15298 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
15299 cat >>confdefs.h <<_ACEOF
15300 #define ALIGNOF_LONG $pgac_cv_alignof_long
15301 _ACEOF
15302
15303
15304 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
15305   echo "$as_me:$LINENO: checking for long long int" >&5
15306 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15307 if test "${ac_cv_type_long_long_int+set}" = set; then
15308   echo $ECHO_N "(cached) $ECHO_C" >&6
15309 else
15310   cat >conftest.$ac_ext <<_ACEOF
15311 #line $LINENO "configure"
15312 #include "confdefs.h"
15313 $ac_includes_default
15314 #ifdef F77_DUMMY_MAIN
15315 #  ifdef __cplusplus
15316      extern "C"
15317 #  endif
15318    int F77_DUMMY_MAIN() { return 1; }
15319 #endif
15320 int
15321 main ()
15322 {
15323 if ((long long int *) 0)
15324   return 0;
15325 if (sizeof (long long int))
15326   return 0;
15327   ;
15328   return 0;
15329 }
15330 _ACEOF
15331 rm -f conftest.$ac_objext
15332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15333   (eval $ac_compile) 2>&5
15334   ac_status=$?
15335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336   (exit $ac_status); } &&
15337          { ac_try='test -s conftest.$ac_objext'
15338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339   (eval $ac_try) 2>&5
15340   ac_status=$?
15341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342   (exit $ac_status); }; }; then
15343   ac_cv_type_long_long_int=yes
15344 else
15345   echo "$as_me: failed program was:" >&5
15346 cat conftest.$ac_ext >&5
15347 ac_cv_type_long_long_int=no
15348 fi
15349 rm -f conftest.$ac_objext conftest.$ac_ext
15350 fi
15351 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15352 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15353
15354 echo "$as_me:$LINENO: checking alignment of long long int" >&5
15355 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
15356 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
15357   echo $ECHO_N "(cached) $ECHO_C" >&6
15358 else
15359   if test "$ac_cv_type_long_long_int" = yes; then
15360   if test "$cross_compiling" = yes; then
15361   # Depending upon the size, compute the lo and hi bounds.
15362 cat >conftest.$ac_ext <<_ACEOF
15363 #line $LINENO "configure"
15364 #include "confdefs.h"
15365 $ac_includes_default
15366 struct { char filler; long long int field; } pgac_struct;
15367 #ifdef F77_DUMMY_MAIN
15368 #  ifdef __cplusplus
15369      extern "C"
15370 #  endif
15371    int F77_DUMMY_MAIN() { return 1; }
15372 #endif
15373 int
15374 main ()
15375 {
15376 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15377 test_array [0] = 0
15378
15379   ;
15380   return 0;
15381 }
15382 _ACEOF
15383 rm -f conftest.$ac_objext
15384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15385   (eval $ac_compile) 2>&5
15386   ac_status=$?
15387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388   (exit $ac_status); } &&
15389          { ac_try='test -s conftest.$ac_objext'
15390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15391   (eval $ac_try) 2>&5
15392   ac_status=$?
15393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394   (exit $ac_status); }; }; then
15395   ac_lo=0 ac_mid=0
15396   while :; do
15397     cat >conftest.$ac_ext <<_ACEOF
15398 #line $LINENO "configure"
15399 #include "confdefs.h"
15400 $ac_includes_default
15401 struct { char filler; long long int field; } pgac_struct;
15402 #ifdef F77_DUMMY_MAIN
15403 #  ifdef __cplusplus
15404      extern "C"
15405 #  endif
15406    int F77_DUMMY_MAIN() { return 1; }
15407 #endif
15408 int
15409 main ()
15410 {
15411 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15412 test_array [0] = 0
15413
15414   ;
15415   return 0;
15416 }
15417 _ACEOF
15418 rm -f conftest.$ac_objext
15419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15420   (eval $ac_compile) 2>&5
15421   ac_status=$?
15422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423   (exit $ac_status); } &&
15424          { ac_try='test -s conftest.$ac_objext'
15425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426   (eval $ac_try) 2>&5
15427   ac_status=$?
15428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429   (exit $ac_status); }; }; then
15430   ac_hi=$ac_mid; break
15431 else
15432   echo "$as_me: failed program was:" >&5
15433 cat conftest.$ac_ext >&5
15434 ac_lo=`expr $ac_mid + 1`
15435                     if test $ac_lo -le $ac_mid; then
15436                       ac_lo= ac_hi=
15437                       break
15438                     fi
15439                     ac_mid=`expr 2 '*' $ac_mid + 1`
15440 fi
15441 rm -f conftest.$ac_objext conftest.$ac_ext
15442   done
15443 else
15444   echo "$as_me: failed program was:" >&5
15445 cat conftest.$ac_ext >&5
15446 cat >conftest.$ac_ext <<_ACEOF
15447 #line $LINENO "configure"
15448 #include "confdefs.h"
15449 $ac_includes_default
15450 struct { char filler; long long int field; } pgac_struct;
15451 #ifdef F77_DUMMY_MAIN
15452 #  ifdef __cplusplus
15453      extern "C"
15454 #  endif
15455    int F77_DUMMY_MAIN() { return 1; }
15456 #endif
15457 int
15458 main ()
15459 {
15460 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15461 test_array [0] = 0
15462
15463   ;
15464   return 0;
15465 }
15466 _ACEOF
15467 rm -f conftest.$ac_objext
15468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15469   (eval $ac_compile) 2>&5
15470   ac_status=$?
15471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472   (exit $ac_status); } &&
15473          { ac_try='test -s conftest.$ac_objext'
15474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15475   (eval $ac_try) 2>&5
15476   ac_status=$?
15477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478   (exit $ac_status); }; }; then
15479   ac_hi=-1 ac_mid=-1
15480   while :; do
15481     cat >conftest.$ac_ext <<_ACEOF
15482 #line $LINENO "configure"
15483 #include "confdefs.h"
15484 $ac_includes_default
15485 struct { char filler; long long int field; } pgac_struct;
15486 #ifdef F77_DUMMY_MAIN
15487 #  ifdef __cplusplus
15488      extern "C"
15489 #  endif
15490    int F77_DUMMY_MAIN() { return 1; }
15491 #endif
15492 int
15493 main ()
15494 {
15495 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15496 test_array [0] = 0
15497
15498   ;
15499   return 0;
15500 }
15501 _ACEOF
15502 rm -f conftest.$ac_objext
15503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15504   (eval $ac_compile) 2>&5
15505   ac_status=$?
15506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507   (exit $ac_status); } &&
15508          { ac_try='test -s conftest.$ac_objext'
15509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15510   (eval $ac_try) 2>&5
15511   ac_status=$?
15512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513   (exit $ac_status); }; }; then
15514   ac_lo=$ac_mid; break
15515 else
15516   echo "$as_me: failed program was:" >&5
15517 cat conftest.$ac_ext >&5
15518 ac_hi=`expr '(' $ac_mid ')' - 1`
15519                        if test $ac_mid -le $ac_hi; then
15520                          ac_lo= ac_hi=
15521                          break
15522                        fi
15523                        ac_mid=`expr 2 '*' $ac_mid`
15524 fi
15525 rm -f conftest.$ac_objext conftest.$ac_ext
15526   done
15527 else
15528   echo "$as_me: failed program was:" >&5
15529 cat conftest.$ac_ext >&5
15530 ac_lo= ac_hi=
15531 fi
15532 rm -f conftest.$ac_objext conftest.$ac_ext
15533 fi
15534 rm -f conftest.$ac_objext conftest.$ac_ext
15535 # Binary search between lo and hi bounds.
15536 while test "x$ac_lo" != "x$ac_hi"; do
15537   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15538   cat >conftest.$ac_ext <<_ACEOF
15539 #line $LINENO "configure"
15540 #include "confdefs.h"
15541 $ac_includes_default
15542 struct { char filler; long long int field; } pgac_struct;
15543 #ifdef F77_DUMMY_MAIN
15544 #  ifdef __cplusplus
15545      extern "C"
15546 #  endif
15547    int F77_DUMMY_MAIN() { return 1; }
15548 #endif
15549 int
15550 main ()
15551 {
15552 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15553 test_array [0] = 0
15554
15555   ;
15556   return 0;
15557 }
15558 _ACEOF
15559 rm -f conftest.$ac_objext
15560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15561   (eval $ac_compile) 2>&5
15562   ac_status=$?
15563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564   (exit $ac_status); } &&
15565          { ac_try='test -s conftest.$ac_objext'
15566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15567   (eval $ac_try) 2>&5
15568   ac_status=$?
15569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570   (exit $ac_status); }; }; then
15571   ac_hi=$ac_mid
15572 else
15573   echo "$as_me: failed program was:" >&5
15574 cat conftest.$ac_ext >&5
15575 ac_lo=`expr '(' $ac_mid ')' + 1`
15576 fi
15577 rm -f conftest.$ac_objext conftest.$ac_ext
15578 done
15579 case $ac_lo in
15580 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
15581 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15582 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15583    { (exit 1); exit 1; }; } ;;
15584 esac
15585 else
15586   if test "$cross_compiling" = yes; then
15587   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15588 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15589    { (exit 1); exit 1; }; }
15590 else
15591   cat >conftest.$ac_ext <<_ACEOF
15592 #line $LINENO "configure"
15593 #include "confdefs.h"
15594 $ac_includes_default
15595 struct { char filler; long long int field; } pgac_struct;
15596 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15597 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15598 #include <stdio.h>
15599 #include <stdlib.h>
15600 #ifdef F77_DUMMY_MAIN
15601 #  ifdef __cplusplus
15602      extern "C"
15603 #  endif
15604    int F77_DUMMY_MAIN() { return 1; }
15605 #endif
15606 int
15607 main ()
15608 {
15609
15610   FILE *f = fopen ("conftest.val", "w");
15611   if (! f)
15612     exit (1);
15613   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15614     {
15615       long i = longval ();
15616       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15617         exit (1);
15618       fprintf (f, "%ld\n", i);
15619     }
15620   else
15621     {
15622       unsigned long i = ulongval ();
15623       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15624         exit (1);
15625       fprintf (f, "%lu\n", i);
15626     }
15627   exit (ferror (f) || fclose (f) != 0);
15628
15629   ;
15630   return 0;
15631 }
15632 _ACEOF
15633 rm -f conftest$ac_exeext
15634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15635   (eval $ac_link) 2>&5
15636   ac_status=$?
15637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15640   (eval $ac_try) 2>&5
15641   ac_status=$?
15642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643   (exit $ac_status); }; }; then
15644   pgac_cv_alignof_long_long_int=`cat conftest.val`
15645 else
15646   echo "$as_me: program exited with status $ac_status" >&5
15647 echo "$as_me: failed program was:" >&5
15648 cat conftest.$ac_ext >&5
15649 ( exit $ac_status )
15650 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15651 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15652    { (exit 1); exit 1; }; }
15653 fi
15654 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15655 fi
15656 fi
15657 rm -f conftest.val
15658 else
15659   pgac_cv_alignof_long_long_int=0
15660 fi
15661 fi
15662 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
15663 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
15664 cat >>confdefs.h <<_ACEOF
15665 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
15666 _ACEOF
15667
15668
15669 fi
15670 echo "$as_me:$LINENO: checking for double" >&5
15671 echo $ECHO_N "checking for double... $ECHO_C" >&6
15672 if test "${ac_cv_type_double+set}" = set; then
15673   echo $ECHO_N "(cached) $ECHO_C" >&6
15674 else
15675   cat >conftest.$ac_ext <<_ACEOF
15676 #line $LINENO "configure"
15677 #include "confdefs.h"
15678 $ac_includes_default
15679 #ifdef F77_DUMMY_MAIN
15680 #  ifdef __cplusplus
15681      extern "C"
15682 #  endif
15683    int F77_DUMMY_MAIN() { return 1; }
15684 #endif
15685 int
15686 main ()
15687 {
15688 if ((double *) 0)
15689   return 0;
15690 if (sizeof (double))
15691   return 0;
15692   ;
15693   return 0;
15694 }
15695 _ACEOF
15696 rm -f conftest.$ac_objext
15697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15698   (eval $ac_compile) 2>&5
15699   ac_status=$?
15700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701   (exit $ac_status); } &&
15702          { ac_try='test -s conftest.$ac_objext'
15703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704   (eval $ac_try) 2>&5
15705   ac_status=$?
15706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707   (exit $ac_status); }; }; then
15708   ac_cv_type_double=yes
15709 else
15710   echo "$as_me: failed program was:" >&5
15711 cat conftest.$ac_ext >&5
15712 ac_cv_type_double=no
15713 fi
15714 rm -f conftest.$ac_objext conftest.$ac_ext
15715 fi
15716 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15717 echo "${ECHO_T}$ac_cv_type_double" >&6
15718
15719 echo "$as_me:$LINENO: checking alignment of double" >&5
15720 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15721 if test "${pgac_cv_alignof_double+set}" = set; then
15722   echo $ECHO_N "(cached) $ECHO_C" >&6
15723 else
15724   if test "$ac_cv_type_double" = yes; then
15725   if test "$cross_compiling" = yes; then
15726   # Depending upon the size, compute the lo and hi bounds.
15727 cat >conftest.$ac_ext <<_ACEOF
15728 #line $LINENO "configure"
15729 #include "confdefs.h"
15730 $ac_includes_default
15731 struct { char filler; double field; } pgac_struct;
15732 #ifdef F77_DUMMY_MAIN
15733 #  ifdef __cplusplus
15734      extern "C"
15735 #  endif
15736    int F77_DUMMY_MAIN() { return 1; }
15737 #endif
15738 int
15739 main ()
15740 {
15741 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15742 test_array [0] = 0
15743
15744   ;
15745   return 0;
15746 }
15747 _ACEOF
15748 rm -f conftest.$ac_objext
15749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15750   (eval $ac_compile) 2>&5
15751   ac_status=$?
15752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753   (exit $ac_status); } &&
15754          { ac_try='test -s conftest.$ac_objext'
15755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15756   (eval $ac_try) 2>&5
15757   ac_status=$?
15758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759   (exit $ac_status); }; }; then
15760   ac_lo=0 ac_mid=0
15761   while :; do
15762     cat >conftest.$ac_ext <<_ACEOF
15763 #line $LINENO "configure"
15764 #include "confdefs.h"
15765 $ac_includes_default
15766 struct { char filler; double field; } pgac_struct;
15767 #ifdef F77_DUMMY_MAIN
15768 #  ifdef __cplusplus
15769      extern "C"
15770 #  endif
15771    int F77_DUMMY_MAIN() { return 1; }
15772 #endif
15773 int
15774 main ()
15775 {
15776 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15777 test_array [0] = 0
15778
15779   ;
15780   return 0;
15781 }
15782 _ACEOF
15783 rm -f conftest.$ac_objext
15784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15785   (eval $ac_compile) 2>&5
15786   ac_status=$?
15787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788   (exit $ac_status); } &&
15789          { ac_try='test -s conftest.$ac_objext'
15790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791   (eval $ac_try) 2>&5
15792   ac_status=$?
15793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794   (exit $ac_status); }; }; then
15795   ac_hi=$ac_mid; break
15796 else
15797   echo "$as_me: failed program was:" >&5
15798 cat conftest.$ac_ext >&5
15799 ac_lo=`expr $ac_mid + 1`
15800                     if test $ac_lo -le $ac_mid; then
15801                       ac_lo= ac_hi=
15802                       break
15803                     fi
15804                     ac_mid=`expr 2 '*' $ac_mid + 1`
15805 fi
15806 rm -f conftest.$ac_objext conftest.$ac_ext
15807   done
15808 else
15809   echo "$as_me: failed program was:" >&5
15810 cat conftest.$ac_ext >&5
15811 cat >conftest.$ac_ext <<_ACEOF
15812 #line $LINENO "configure"
15813 #include "confdefs.h"
15814 $ac_includes_default
15815 struct { char filler; double field; } pgac_struct;
15816 #ifdef F77_DUMMY_MAIN
15817 #  ifdef __cplusplus
15818      extern "C"
15819 #  endif
15820    int F77_DUMMY_MAIN() { return 1; }
15821 #endif
15822 int
15823 main ()
15824 {
15825 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15826 test_array [0] = 0
15827
15828   ;
15829   return 0;
15830 }
15831 _ACEOF
15832 rm -f conftest.$ac_objext
15833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15834   (eval $ac_compile) 2>&5
15835   ac_status=$?
15836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837   (exit $ac_status); } &&
15838          { ac_try='test -s conftest.$ac_objext'
15839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15840   (eval $ac_try) 2>&5
15841   ac_status=$?
15842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843   (exit $ac_status); }; }; then
15844   ac_hi=-1 ac_mid=-1
15845   while :; do
15846     cat >conftest.$ac_ext <<_ACEOF
15847 #line $LINENO "configure"
15848 #include "confdefs.h"
15849 $ac_includes_default
15850 struct { char filler; double field; } pgac_struct;
15851 #ifdef F77_DUMMY_MAIN
15852 #  ifdef __cplusplus
15853      extern "C"
15854 #  endif
15855    int F77_DUMMY_MAIN() { return 1; }
15856 #endif
15857 int
15858 main ()
15859 {
15860 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15861 test_array [0] = 0
15862
15863   ;
15864   return 0;
15865 }
15866 _ACEOF
15867 rm -f conftest.$ac_objext
15868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15869   (eval $ac_compile) 2>&5
15870   ac_status=$?
15871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872   (exit $ac_status); } &&
15873          { ac_try='test -s conftest.$ac_objext'
15874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875   (eval $ac_try) 2>&5
15876   ac_status=$?
15877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878   (exit $ac_status); }; }; then
15879   ac_lo=$ac_mid; break
15880 else
15881   echo "$as_me: failed program was:" >&5
15882 cat conftest.$ac_ext >&5
15883 ac_hi=`expr '(' $ac_mid ')' - 1`
15884                        if test $ac_mid -le $ac_hi; then
15885                          ac_lo= ac_hi=
15886                          break
15887                        fi
15888                        ac_mid=`expr 2 '*' $ac_mid`
15889 fi
15890 rm -f conftest.$ac_objext conftest.$ac_ext
15891   done
15892 else
15893   echo "$as_me: failed program was:" >&5
15894 cat conftest.$ac_ext >&5
15895 ac_lo= ac_hi=
15896 fi
15897 rm -f conftest.$ac_objext conftest.$ac_ext
15898 fi
15899 rm -f conftest.$ac_objext conftest.$ac_ext
15900 # Binary search between lo and hi bounds.
15901 while test "x$ac_lo" != "x$ac_hi"; do
15902   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15903   cat >conftest.$ac_ext <<_ACEOF
15904 #line $LINENO "configure"
15905 #include "confdefs.h"
15906 $ac_includes_default
15907 struct { char filler; double field; } pgac_struct;
15908 #ifdef F77_DUMMY_MAIN
15909 #  ifdef __cplusplus
15910      extern "C"
15911 #  endif
15912    int F77_DUMMY_MAIN() { return 1; }
15913 #endif
15914 int
15915 main ()
15916 {
15917 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15918 test_array [0] = 0
15919
15920   ;
15921   return 0;
15922 }
15923 _ACEOF
15924 rm -f conftest.$ac_objext
15925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15926   (eval $ac_compile) 2>&5
15927   ac_status=$?
15928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929   (exit $ac_status); } &&
15930          { ac_try='test -s conftest.$ac_objext'
15931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932   (eval $ac_try) 2>&5
15933   ac_status=$?
15934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935   (exit $ac_status); }; }; then
15936   ac_hi=$ac_mid
15937 else
15938   echo "$as_me: failed program was:" >&5
15939 cat conftest.$ac_ext >&5
15940 ac_lo=`expr '(' $ac_mid ')' + 1`
15941 fi
15942 rm -f conftest.$ac_objext conftest.$ac_ext
15943 done
15944 case $ac_lo in
15945 ?*) pgac_cv_alignof_double=$ac_lo;;
15946 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15947 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15948    { (exit 1); exit 1; }; } ;;
15949 esac
15950 else
15951   if test "$cross_compiling" = yes; then
15952   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15953 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15954    { (exit 1); exit 1; }; }
15955 else
15956   cat >conftest.$ac_ext <<_ACEOF
15957 #line $LINENO "configure"
15958 #include "confdefs.h"
15959 $ac_includes_default
15960 struct { char filler; double field; } pgac_struct;
15961 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15962 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15963 #include <stdio.h>
15964 #include <stdlib.h>
15965 #ifdef F77_DUMMY_MAIN
15966 #  ifdef __cplusplus
15967      extern "C"
15968 #  endif
15969    int F77_DUMMY_MAIN() { return 1; }
15970 #endif
15971 int
15972 main ()
15973 {
15974
15975   FILE *f = fopen ("conftest.val", "w");
15976   if (! f)
15977     exit (1);
15978   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15979     {
15980       long i = longval ();
15981       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15982         exit (1);
15983       fprintf (f, "%ld\n", i);
15984     }
15985   else
15986     {
15987       unsigned long i = ulongval ();
15988       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15989         exit (1);
15990       fprintf (f, "%lu\n", i);
15991     }
15992   exit (ferror (f) || fclose (f) != 0);
15993
15994   ;
15995   return 0;
15996 }
15997 _ACEOF
15998 rm -f conftest$ac_exeext
15999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16000   (eval $ac_link) 2>&5
16001   ac_status=$?
16002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16005   (eval $ac_try) 2>&5
16006   ac_status=$?
16007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008   (exit $ac_status); }; }; then
16009   pgac_cv_alignof_double=`cat conftest.val`
16010 else
16011   echo "$as_me: program exited with status $ac_status" >&5
16012 echo "$as_me: failed program was:" >&5
16013 cat conftest.$ac_ext >&5
16014 ( exit $ac_status )
16015 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16016 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16017    { (exit 1); exit 1; }; }
16018 fi
16019 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16020 fi
16021 fi
16022 rm -f conftest.val
16023 else
16024   pgac_cv_alignof_double=0
16025 fi
16026 fi
16027 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
16028 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
16029 cat >>confdefs.h <<_ACEOF
16030 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
16031 _ACEOF
16032
16033
16034
16035 # Compute maximum alignment of any basic type.
16036 # We assume long's alignment is at least as strong as char, short, or int;
16037 # but we must check long long (if it exists) and double.
16038
16039 MAX_ALIGNOF=$pgac_cv_alignof_long
16040 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
16041   MAX_ALIGNOF=$pgac_cv_alignof_double
16042 fi
16043 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
16044   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
16045 fi
16046
16047 cat >>confdefs.h <<_ACEOF
16048 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16049 _ACEOF
16050
16051
16052
16053 # Some platforms predefine the types int8, int16, etc.  Only check
16054 # a (hopefully) representative subset.
16055 echo "$as_me:$LINENO: checking for int8" >&5
16056 echo $ECHO_N "checking for int8... $ECHO_C" >&6
16057 if test "${ac_cv_type_int8+set}" = set; then
16058   echo $ECHO_N "(cached) $ECHO_C" >&6
16059 else
16060   cat >conftest.$ac_ext <<_ACEOF
16061 #line $LINENO "configure"
16062 #include "confdefs.h"
16063 #include <stdio.h>
16064 #ifdef HAVE_SUPPORTDEFS_H
16065 #include <SupportDefs.h>
16066 #endif
16067
16068 #ifdef F77_DUMMY_MAIN
16069 #  ifdef __cplusplus
16070      extern "C"
16071 #  endif
16072    int F77_DUMMY_MAIN() { return 1; }
16073 #endif
16074 int
16075 main ()
16076 {
16077 if ((int8 *) 0)
16078   return 0;
16079 if (sizeof (int8))
16080   return 0;
16081   ;
16082   return 0;
16083 }
16084 _ACEOF
16085 rm -f conftest.$ac_objext
16086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16087   (eval $ac_compile) 2>&5
16088   ac_status=$?
16089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090   (exit $ac_status); } &&
16091          { ac_try='test -s conftest.$ac_objext'
16092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16093   (eval $ac_try) 2>&5
16094   ac_status=$?
16095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096   (exit $ac_status); }; }; then
16097   ac_cv_type_int8=yes
16098 else
16099   echo "$as_me: failed program was:" >&5
16100 cat conftest.$ac_ext >&5
16101 ac_cv_type_int8=no
16102 fi
16103 rm -f conftest.$ac_objext conftest.$ac_ext
16104 fi
16105 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
16106 echo "${ECHO_T}$ac_cv_type_int8" >&6
16107 if test $ac_cv_type_int8 = yes; then
16108
16109 cat >>confdefs.h <<_ACEOF
16110 #define HAVE_INT8 1
16111 _ACEOF
16112
16113
16114 fi
16115 echo "$as_me:$LINENO: checking for uint8" >&5
16116 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
16117 if test "${ac_cv_type_uint8+set}" = set; then
16118   echo $ECHO_N "(cached) $ECHO_C" >&6
16119 else
16120   cat >conftest.$ac_ext <<_ACEOF
16121 #line $LINENO "configure"
16122 #include "confdefs.h"
16123 #include <stdio.h>
16124 #ifdef HAVE_SUPPORTDEFS_H
16125 #include <SupportDefs.h>
16126 #endif
16127
16128 #ifdef F77_DUMMY_MAIN
16129 #  ifdef __cplusplus
16130      extern "C"
16131 #  endif
16132    int F77_DUMMY_MAIN() { return 1; }
16133 #endif
16134 int
16135 main ()
16136 {
16137 if ((uint8 *) 0)
16138   return 0;
16139 if (sizeof (uint8))
16140   return 0;
16141   ;
16142   return 0;
16143 }
16144 _ACEOF
16145 rm -f conftest.$ac_objext
16146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16147   (eval $ac_compile) 2>&5
16148   ac_status=$?
16149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150   (exit $ac_status); } &&
16151          { ac_try='test -s conftest.$ac_objext'
16152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153   (eval $ac_try) 2>&5
16154   ac_status=$?
16155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156   (exit $ac_status); }; }; then
16157   ac_cv_type_uint8=yes
16158 else
16159   echo "$as_me: failed program was:" >&5
16160 cat conftest.$ac_ext >&5
16161 ac_cv_type_uint8=no
16162 fi
16163 rm -f conftest.$ac_objext conftest.$ac_ext
16164 fi
16165 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
16166 echo "${ECHO_T}$ac_cv_type_uint8" >&6
16167 if test $ac_cv_type_uint8 = yes; then
16168
16169 cat >>confdefs.h <<_ACEOF
16170 #define HAVE_UINT8 1
16171 _ACEOF
16172
16173
16174 fi
16175 echo "$as_me:$LINENO: checking for int64" >&5
16176 echo $ECHO_N "checking for int64... $ECHO_C" >&6
16177 if test "${ac_cv_type_int64+set}" = set; then
16178   echo $ECHO_N "(cached) $ECHO_C" >&6
16179 else
16180   cat >conftest.$ac_ext <<_ACEOF
16181 #line $LINENO "configure"
16182 #include "confdefs.h"
16183 #include <stdio.h>
16184 #ifdef HAVE_SUPPORTDEFS_H
16185 #include <SupportDefs.h>
16186 #endif
16187
16188 #ifdef F77_DUMMY_MAIN
16189 #  ifdef __cplusplus
16190      extern "C"
16191 #  endif
16192    int F77_DUMMY_MAIN() { return 1; }
16193 #endif
16194 int
16195 main ()
16196 {
16197 if ((int64 *) 0)
16198   return 0;
16199 if (sizeof (int64))
16200   return 0;
16201   ;
16202   return 0;
16203 }
16204 _ACEOF
16205 rm -f conftest.$ac_objext
16206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16207   (eval $ac_compile) 2>&5
16208   ac_status=$?
16209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210   (exit $ac_status); } &&
16211          { ac_try='test -s conftest.$ac_objext'
16212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16213   (eval $ac_try) 2>&5
16214   ac_status=$?
16215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216   (exit $ac_status); }; }; then
16217   ac_cv_type_int64=yes
16218 else
16219   echo "$as_me: failed program was:" >&5
16220 cat conftest.$ac_ext >&5
16221 ac_cv_type_int64=no
16222 fi
16223 rm -f conftest.$ac_objext conftest.$ac_ext
16224 fi
16225 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
16226 echo "${ECHO_T}$ac_cv_type_int64" >&6
16227 if test $ac_cv_type_int64 = yes; then
16228
16229 cat >>confdefs.h <<_ACEOF
16230 #define HAVE_INT64 1
16231 _ACEOF
16232
16233
16234 fi
16235 echo "$as_me:$LINENO: checking for uint64" >&5
16236 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
16237 if test "${ac_cv_type_uint64+set}" = set; then
16238   echo $ECHO_N "(cached) $ECHO_C" >&6
16239 else
16240   cat >conftest.$ac_ext <<_ACEOF
16241 #line $LINENO "configure"
16242 #include "confdefs.h"
16243 #include <stdio.h>
16244 #ifdef HAVE_SUPPORTDEFS_H
16245 #include <SupportDefs.h>
16246 #endif
16247
16248 #ifdef F77_DUMMY_MAIN
16249 #  ifdef __cplusplus
16250      extern "C"
16251 #  endif
16252    int F77_DUMMY_MAIN() { return 1; }
16253 #endif
16254 int
16255 main ()
16256 {
16257 if ((uint64 *) 0)
16258   return 0;
16259 if (sizeof (uint64))
16260   return 0;
16261   ;
16262   return 0;
16263 }
16264 _ACEOF
16265 rm -f conftest.$ac_objext
16266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16267   (eval $ac_compile) 2>&5
16268   ac_status=$?
16269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270   (exit $ac_status); } &&
16271          { ac_try='test -s conftest.$ac_objext'
16272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273   (eval $ac_try) 2>&5
16274   ac_status=$?
16275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276   (exit $ac_status); }; }; then
16277   ac_cv_type_uint64=yes
16278 else
16279   echo "$as_me: failed program was:" >&5
16280 cat conftest.$ac_ext >&5
16281 ac_cv_type_uint64=no
16282 fi
16283 rm -f conftest.$ac_objext conftest.$ac_ext
16284 fi
16285 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
16286 echo "${ECHO_T}$ac_cv_type_uint64" >&6
16287 if test $ac_cv_type_uint64 = yes; then
16288
16289 cat >>confdefs.h <<_ACEOF
16290 #define HAVE_UINT64 1
16291 _ACEOF
16292
16293
16294 fi
16295
16296
16297 # We also check for sig_atomic_t, which *should* be defined per ANSI
16298 # C, but is missing on some old platforms.
16299 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
16300 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
16301 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
16302   echo $ECHO_N "(cached) $ECHO_C" >&6
16303 else
16304   cat >conftest.$ac_ext <<_ACEOF
16305 #line $LINENO "configure"
16306 #include "confdefs.h"
16307 #include <signal.h>
16308
16309 #ifdef F77_DUMMY_MAIN
16310 #  ifdef __cplusplus
16311      extern "C"
16312 #  endif
16313    int F77_DUMMY_MAIN() { return 1; }
16314 #endif
16315 int
16316 main ()
16317 {
16318 if ((sig_atomic_t *) 0)
16319   return 0;
16320 if (sizeof (sig_atomic_t))
16321   return 0;
16322   ;
16323   return 0;
16324 }
16325 _ACEOF
16326 rm -f conftest.$ac_objext
16327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16328   (eval $ac_compile) 2>&5
16329   ac_status=$?
16330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331   (exit $ac_status); } &&
16332          { ac_try='test -s conftest.$ac_objext'
16333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334   (eval $ac_try) 2>&5
16335   ac_status=$?
16336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337   (exit $ac_status); }; }; then
16338   ac_cv_type_sig_atomic_t=yes
16339 else
16340   echo "$as_me: failed program was:" >&5
16341 cat conftest.$ac_ext >&5
16342 ac_cv_type_sig_atomic_t=no
16343 fi
16344 rm -f conftest.$ac_objext conftest.$ac_ext
16345 fi
16346 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
16347 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
16348 if test $ac_cv_type_sig_atomic_t = yes; then
16349
16350 cat >>confdefs.h <<_ACEOF
16351 #define HAVE_SIG_ATOMIC_T 1
16352 _ACEOF
16353
16354
16355 fi
16356
16357
16358
16359 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
16360 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
16361 if test "${pgac_cv_func_posix_signals+set}" = set; then
16362   echo $ECHO_N "(cached) $ECHO_C" >&6
16363 else
16364   cat >conftest.$ac_ext <<_ACEOF
16365 #line $LINENO "configure"
16366 #include "confdefs.h"
16367 #include <signal.h>
16368
16369 #ifdef F77_DUMMY_MAIN
16370 #  ifdef __cplusplus
16371      extern "C"
16372 #  endif
16373    int F77_DUMMY_MAIN() { return 1; }
16374 #endif
16375 int
16376 main ()
16377 {
16378 struct sigaction act, oact;
16379 sigemptyset(&act.sa_mask);
16380 act.sa_flags = SA_RESTART;
16381 sigaction(0, &act, &oact);
16382   ;
16383   return 0;
16384 }
16385 _ACEOF
16386 rm -f conftest.$ac_objext conftest$ac_exeext
16387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16388   (eval $ac_link) 2>&5
16389   ac_status=$?
16390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391   (exit $ac_status); } &&
16392          { ac_try='test -s conftest$ac_exeext'
16393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16394   (eval $ac_try) 2>&5
16395   ac_status=$?
16396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397   (exit $ac_status); }; }; then
16398   pgac_cv_func_posix_signals=yes
16399 else
16400   echo "$as_me: failed program was:" >&5
16401 cat conftest.$ac_ext >&5
16402 pgac_cv_func_posix_signals=no
16403 fi
16404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16405 fi
16406 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
16407 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
16408 if test x"$pgac_cv_func_posix_signals" = xyes ; then
16409
16410 cat >>confdefs.h <<\_ACEOF
16411 #define HAVE_POSIX_SIGNALS
16412 _ACEOF
16413
16414 fi
16415 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
16416
16417 if test $ac_cv_func_fseeko = yes; then
16418 # Check whether --enable-largefile or --disable-largefile was given.
16419 if test "${enable_largefile+set}" = set; then
16420   enableval="$enable_largefile"
16421
16422 fi;
16423 if test "$enable_largefile" != no; then
16424
16425   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16426 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
16427 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16428   echo $ECHO_N "(cached) $ECHO_C" >&6
16429 else
16430   ac_cv_sys_largefile_CC=no
16431      if test "$GCC" != yes; then
16432        ac_save_CC=$CC
16433        while :; do
16434          # IRIX 6.2 and later do not support large files by default,
16435          # so use the C compiler's -n32 option if that helps.
16436          cat >conftest.$ac_ext <<_ACEOF
16437 #line $LINENO "configure"
16438 #include "confdefs.h"
16439 #include <sys/types.h>
16440  /* Check that off_t can represent 2**63 - 1 correctly.
16441     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16442     since some C++ compilers masquerading as C compilers
16443     incorrectly reject 9223372036854775807.  */
16444 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16445   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16446                        && LARGE_OFF_T % 2147483647 == 1)
16447                       ? 1 : -1];
16448 #ifdef F77_DUMMY_MAIN
16449 #  ifdef __cplusplus
16450      extern "C"
16451 #  endif
16452    int F77_DUMMY_MAIN() { return 1; }
16453 #endif
16454 int
16455 main ()
16456 {
16457
16458   ;
16459   return 0;
16460 }
16461 _ACEOF
16462          rm -f conftest.$ac_objext
16463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16464   (eval $ac_compile) 2>&5
16465   ac_status=$?
16466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467   (exit $ac_status); } &&
16468          { ac_try='test -s conftest.$ac_objext'
16469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16470   (eval $ac_try) 2>&5
16471   ac_status=$?
16472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473   (exit $ac_status); }; }; then
16474   break
16475 else
16476   echo "$as_me: failed program was:" >&5
16477 cat conftest.$ac_ext >&5
16478 fi
16479 rm -f conftest.$ac_objext
16480          CC="$CC -n32"
16481          rm -f conftest.$ac_objext
16482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16483   (eval $ac_compile) 2>&5
16484   ac_status=$?
16485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486   (exit $ac_status); } &&
16487          { ac_try='test -s conftest.$ac_objext'
16488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489   (eval $ac_try) 2>&5
16490   ac_status=$?
16491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492   (exit $ac_status); }; }; then
16493   ac_cv_sys_largefile_CC=' -n32'; break
16494 else
16495   echo "$as_me: failed program was:" >&5
16496 cat conftest.$ac_ext >&5
16497 fi
16498 rm -f conftest.$ac_objext
16499          break
16500        done
16501        CC=$ac_save_CC
16502        rm -f conftest.$ac_ext
16503     fi
16504 fi
16505 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16506 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16507   if test "$ac_cv_sys_largefile_CC" != no; then
16508     CC=$CC$ac_cv_sys_largefile_CC
16509   fi
16510
16511   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16512 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16513 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16514   echo $ECHO_N "(cached) $ECHO_C" >&6
16515 else
16516   while :; do
16517   ac_cv_sys_file_offset_bits=no
16518   cat >conftest.$ac_ext <<_ACEOF
16519 #line $LINENO "configure"
16520 #include "confdefs.h"
16521 #include <sys/types.h>
16522  /* Check that off_t can represent 2**63 - 1 correctly.
16523     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16524     since some C++ compilers masquerading as C compilers
16525     incorrectly reject 9223372036854775807.  */
16526 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16527   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16528                        && LARGE_OFF_T % 2147483647 == 1)
16529                       ? 1 : -1];
16530 #ifdef F77_DUMMY_MAIN
16531 #  ifdef __cplusplus
16532      extern "C"
16533 #  endif
16534    int F77_DUMMY_MAIN() { return 1; }
16535 #endif
16536 int
16537 main ()
16538 {
16539
16540   ;
16541   return 0;
16542 }
16543 _ACEOF
16544 rm -f conftest.$ac_objext
16545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16546   (eval $ac_compile) 2>&5
16547   ac_status=$?
16548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549   (exit $ac_status); } &&
16550          { ac_try='test -s conftest.$ac_objext'
16551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16552   (eval $ac_try) 2>&5
16553   ac_status=$?
16554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555   (exit $ac_status); }; }; then
16556   break
16557 else
16558   echo "$as_me: failed program was:" >&5
16559 cat conftest.$ac_ext >&5
16560 fi
16561 rm -f conftest.$ac_objext conftest.$ac_ext
16562   cat >conftest.$ac_ext <<_ACEOF
16563 #line $LINENO "configure"
16564 #include "confdefs.h"
16565 #define _FILE_OFFSET_BITS 64
16566 #include <sys/types.h>
16567  /* Check that off_t can represent 2**63 - 1 correctly.
16568     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16569     since some C++ compilers masquerading as C compilers
16570     incorrectly reject 9223372036854775807.  */
16571 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16572   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16573                        && LARGE_OFF_T % 2147483647 == 1)
16574                       ? 1 : -1];
16575 #ifdef F77_DUMMY_MAIN
16576 #  ifdef __cplusplus
16577      extern "C"
16578 #  endif
16579    int F77_DUMMY_MAIN() { return 1; }
16580 #endif
16581 int
16582 main ()
16583 {
16584
16585   ;
16586   return 0;
16587 }
16588 _ACEOF
16589 rm -f conftest.$ac_objext
16590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16591   (eval $ac_compile) 2>&5
16592   ac_status=$?
16593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594   (exit $ac_status); } &&
16595          { ac_try='test -s conftest.$ac_objext'
16596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597   (eval $ac_try) 2>&5
16598   ac_status=$?
16599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600   (exit $ac_status); }; }; then
16601   ac_cv_sys_file_offset_bits=64; break
16602 else
16603   echo "$as_me: failed program was:" >&5
16604 cat conftest.$ac_ext >&5
16605 fi
16606 rm -f conftest.$ac_objext conftest.$ac_ext
16607   break
16608 done
16609 fi
16610 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16611 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16612 if test "$ac_cv_sys_file_offset_bits" != no; then
16613
16614 cat >>confdefs.h <<_ACEOF
16615 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16616 _ACEOF
16617
16618 fi
16619 rm -f conftest*
16620   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16621 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16622 if test "${ac_cv_sys_large_files+set}" = set; then
16623   echo $ECHO_N "(cached) $ECHO_C" >&6
16624 else
16625   while :; do
16626   ac_cv_sys_large_files=no
16627   cat >conftest.$ac_ext <<_ACEOF
16628 #line $LINENO "configure"
16629 #include "confdefs.h"
16630 #include <sys/types.h>
16631  /* Check that off_t can represent 2**63 - 1 correctly.
16632     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16633     since some C++ compilers masquerading as C compilers
16634     incorrectly reject 9223372036854775807.  */
16635 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16636   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16637                        && LARGE_OFF_T % 2147483647 == 1)
16638                       ? 1 : -1];
16639 #ifdef F77_DUMMY_MAIN
16640 #  ifdef __cplusplus
16641      extern "C"
16642 #  endif
16643    int F77_DUMMY_MAIN() { return 1; }
16644 #endif
16645 int
16646 main ()
16647 {
16648
16649   ;
16650   return 0;
16651 }
16652 _ACEOF
16653 rm -f conftest.$ac_objext
16654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16655   (eval $ac_compile) 2>&5
16656   ac_status=$?
16657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658   (exit $ac_status); } &&
16659          { ac_try='test -s conftest.$ac_objext'
16660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16661   (eval $ac_try) 2>&5
16662   ac_status=$?
16663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664   (exit $ac_status); }; }; then
16665   break
16666 else
16667   echo "$as_me: failed program was:" >&5
16668 cat conftest.$ac_ext >&5
16669 fi
16670 rm -f conftest.$ac_objext conftest.$ac_ext
16671   cat >conftest.$ac_ext <<_ACEOF
16672 #line $LINENO "configure"
16673 #include "confdefs.h"
16674 #define _LARGE_FILES 1
16675 #include <sys/types.h>
16676  /* Check that off_t can represent 2**63 - 1 correctly.
16677     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16678     since some C++ compilers masquerading as C compilers
16679     incorrectly reject 9223372036854775807.  */
16680 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16681   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16682                        && LARGE_OFF_T % 2147483647 == 1)
16683                       ? 1 : -1];
16684 #ifdef F77_DUMMY_MAIN
16685 #  ifdef __cplusplus
16686      extern "C"
16687 #  endif
16688    int F77_DUMMY_MAIN() { return 1; }
16689 #endif
16690 int
16691 main ()
16692 {
16693
16694   ;
16695   return 0;
16696 }
16697 _ACEOF
16698 rm -f conftest.$ac_objext
16699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16700   (eval $ac_compile) 2>&5
16701   ac_status=$?
16702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703   (exit $ac_status); } &&
16704          { ac_try='test -s conftest.$ac_objext'
16705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16706   (eval $ac_try) 2>&5
16707   ac_status=$?
16708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709   (exit $ac_status); }; }; then
16710   ac_cv_sys_large_files=1; break
16711 else
16712   echo "$as_me: failed program was:" >&5
16713 cat conftest.$ac_ext >&5
16714 fi
16715 rm -f conftest.$ac_objext conftest.$ac_ext
16716   break
16717 done
16718 fi
16719 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16720 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16721 if test "$ac_cv_sys_large_files" != no; then
16722
16723 cat >>confdefs.h <<_ACEOF
16724 #define _LARGE_FILES $ac_cv_sys_large_files
16725 _ACEOF
16726
16727 fi
16728 rm -f conftest*
16729 fi
16730
16731 fi
16732
16733
16734 # Select semaphore implementation type.
16735 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
16736
16737 cat >>confdefs.h <<\_ACEOF
16738 #define USE_NAMED_POSIX_SEMAPHORES 1
16739 _ACEOF
16740
16741   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16742 else
16743   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
16744
16745 cat >>confdefs.h <<\_ACEOF
16746 #define USE_UNNAMED_POSIX_SEMAPHORES 1
16747 _ACEOF
16748
16749     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16750   else
16751
16752 cat >>confdefs.h <<\_ACEOF
16753 #define USE_SYSV_SEMAPHORES 1
16754 _ACEOF
16755
16756     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
16757   fi
16758 fi
16759
16760
16761 # Select shared-memory implementation type.
16762
16763 cat >>confdefs.h <<\_ACEOF
16764 #define USE_SYSV_SHARED_MEMORY 1
16765 _ACEOF
16766
16767 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
16768
16769
16770 if test "$enable_nls" = yes ; then
16771
16772   echo "$as_me:$LINENO: checking for library containing gettext" >&5
16773 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
16774 if test "${ac_cv_search_gettext+set}" = set; then
16775   echo $ECHO_N "(cached) $ECHO_C" >&6
16776 else
16777   ac_func_search_save_LIBS=$LIBS
16778 ac_cv_search_gettext=no
16779 cat >conftest.$ac_ext <<_ACEOF
16780 #line $LINENO "configure"
16781 #include "confdefs.h"
16782
16783 /* Override any gcc2 internal prototype to avoid an error.  */
16784 #ifdef __cplusplus
16785 extern "C"
16786 #endif
16787 /* We use char because int might match the return type of a gcc2
16788    builtin and then its argument prototype would still apply.  */
16789 char gettext ();
16790 #ifdef F77_DUMMY_MAIN
16791 #  ifdef __cplusplus
16792      extern "C"
16793 #  endif
16794    int F77_DUMMY_MAIN() { return 1; }
16795 #endif
16796 int
16797 main ()
16798 {
16799 gettext ();
16800   ;
16801   return 0;
16802 }
16803 _ACEOF
16804 rm -f conftest.$ac_objext conftest$ac_exeext
16805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16806   (eval $ac_link) 2>&5
16807   ac_status=$?
16808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809   (exit $ac_status); } &&
16810          { ac_try='test -s conftest$ac_exeext'
16811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16812   (eval $ac_try) 2>&5
16813   ac_status=$?
16814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815   (exit $ac_status); }; }; then
16816   ac_cv_search_gettext="none required"
16817 else
16818   echo "$as_me: failed program was:" >&5
16819 cat conftest.$ac_ext >&5
16820 fi
16821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16822 if test "$ac_cv_search_gettext" = no; then
16823   for ac_lib in intl; do
16824     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16825     cat >conftest.$ac_ext <<_ACEOF
16826 #line $LINENO "configure"
16827 #include "confdefs.h"
16828
16829 /* Override any gcc2 internal prototype to avoid an error.  */
16830 #ifdef __cplusplus
16831 extern "C"
16832 #endif
16833 /* We use char because int might match the return type of a gcc2
16834    builtin and then its argument prototype would still apply.  */
16835 char gettext ();
16836 #ifdef F77_DUMMY_MAIN
16837 #  ifdef __cplusplus
16838      extern "C"
16839 #  endif
16840    int F77_DUMMY_MAIN() { return 1; }
16841 #endif
16842 int
16843 main ()
16844 {
16845 gettext ();
16846   ;
16847   return 0;
16848 }
16849 _ACEOF
16850 rm -f conftest.$ac_objext conftest$ac_exeext
16851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16852   (eval $ac_link) 2>&5
16853   ac_status=$?
16854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855   (exit $ac_status); } &&
16856          { ac_try='test -s conftest$ac_exeext'
16857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16858   (eval $ac_try) 2>&5
16859   ac_status=$?
16860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861   (exit $ac_status); }; }; then
16862   ac_cv_search_gettext="-l$ac_lib"
16863 break
16864 else
16865   echo "$as_me: failed program was:" >&5
16866 cat conftest.$ac_ext >&5
16867 fi
16868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16869   done
16870 fi
16871 LIBS=$ac_func_search_save_LIBS
16872 fi
16873 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
16874 echo "${ECHO_T}$ac_cv_search_gettext" >&6
16875 if test "$ac_cv_search_gettext" != no; then
16876   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
16877
16878 else
16879   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
16880 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
16881    { (exit 1); exit 1; }; }
16882 fi
16883
16884   if test "${ac_cv_header_libintl_h+set}" = set; then
16885   echo "$as_me:$LINENO: checking for libintl.h" >&5
16886 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16887 if test "${ac_cv_header_libintl_h+set}" = set; then
16888   echo $ECHO_N "(cached) $ECHO_C" >&6
16889 fi
16890 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16891 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16892 else
16893   # Is the header compilable?
16894 echo "$as_me:$LINENO: checking libintl.h usability" >&5
16895 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
16896 cat >conftest.$ac_ext <<_ACEOF
16897 #line $LINENO "configure"
16898 #include "confdefs.h"
16899 $ac_includes_default
16900 #include <libintl.h>
16901 _ACEOF
16902 rm -f conftest.$ac_objext
16903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16904   (eval $ac_compile) 2>&5
16905   ac_status=$?
16906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907   (exit $ac_status); } &&
16908          { ac_try='test -s conftest.$ac_objext'
16909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16910   (eval $ac_try) 2>&5
16911   ac_status=$?
16912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913   (exit $ac_status); }; }; then
16914   ac_header_compiler=yes
16915 else
16916   echo "$as_me: failed program was:" >&5
16917 cat conftest.$ac_ext >&5
16918 ac_header_compiler=no
16919 fi
16920 rm -f conftest.$ac_objext conftest.$ac_ext
16921 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16922 echo "${ECHO_T}$ac_header_compiler" >&6
16923
16924 # Is the header present?
16925 echo "$as_me:$LINENO: checking libintl.h presence" >&5
16926 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
16927 cat >conftest.$ac_ext <<_ACEOF
16928 #line $LINENO "configure"
16929 #include "confdefs.h"
16930 #include <libintl.h>
16931 _ACEOF
16932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16933   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16934   ac_status=$?
16935   egrep -v '^ *\+' conftest.er1 >conftest.err
16936   rm -f conftest.er1
16937   cat conftest.err >&5
16938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939   (exit $ac_status); } >/dev/null; then
16940   if test -s conftest.err; then
16941     ac_cpp_err=$ac_c_preproc_warn_flag
16942   else
16943     ac_cpp_err=
16944   fi
16945 else
16946   ac_cpp_err=yes
16947 fi
16948 if test -z "$ac_cpp_err"; then
16949   ac_header_preproc=yes
16950 else
16951   echo "$as_me: failed program was:" >&5
16952   cat conftest.$ac_ext >&5
16953   ac_header_preproc=no
16954 fi
16955 rm -f conftest.err conftest.$ac_ext
16956 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16957 echo "${ECHO_T}$ac_header_preproc" >&6
16958
16959 # So?  What about this header?
16960 case $ac_header_compiler:$ac_header_preproc in
16961   yes:no )
16962     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16963 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16964     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16965 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16966   no:yes )
16967     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
16968 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
16969     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
16970 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
16971     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16972 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16973 esac
16974 echo "$as_me:$LINENO: checking for libintl.h" >&5
16975 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16976 if test "${ac_cv_header_libintl_h+set}" = set; then
16977   echo $ECHO_N "(cached) $ECHO_C" >&6
16978 else
16979   ac_cv_header_libintl_h=$ac_header_preproc
16980 fi
16981 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16982 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16983
16984 fi
16985 if test $ac_cv_header_libintl_h = yes; then
16986   :
16987 else
16988   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
16989 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
16990    { (exit 1); exit 1; }; }
16991 fi
16992
16993
16994   for ac_prog in msgfmt
16995 do
16996   # Extract the first word of "$ac_prog", so it can be a program name with args.
16997 set dummy $ac_prog; ac_word=$2
16998 echo "$as_me:$LINENO: checking for $ac_word" >&5
16999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17000 if test "${ac_cv_prog_MSGFMT+set}" = set; then
17001   echo $ECHO_N "(cached) $ECHO_C" >&6
17002 else
17003   if test -n "$MSGFMT"; then
17004   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
17005 else
17006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17007 for as_dir in $PATH
17008 do
17009   IFS=$as_save_IFS
17010   test -z "$as_dir" && as_dir=.
17011   for ac_exec_ext in '' $ac_executable_extensions; do
17012   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17013     ac_cv_prog_MSGFMT="$ac_prog"
17014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17015     break 2
17016   fi
17017 done
17018 done
17019
17020 fi
17021 fi
17022 MSGFMT=$ac_cv_prog_MSGFMT
17023 if test -n "$MSGFMT"; then
17024   echo "$as_me:$LINENO: result: $MSGFMT" >&5
17025 echo "${ECHO_T}$MSGFMT" >&6
17026 else
17027   echo "$as_me:$LINENO: result: no" >&5
17028 echo "${ECHO_T}no" >&6
17029 fi
17030
17031   test -n "$MSGFMT" && break
17032 done
17033
17034   if test -z "$MSGFMT"; then
17035     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
17036 echo "$as_me: error: msgfmt is required for NLS" >&2;}
17037    { (exit 1); exit 1; }; }
17038   fi
17039   for ac_prog in msgmerge
17040 do
17041   # Extract the first word of "$ac_prog", so it can be a program name with args.
17042 set dummy $ac_prog; ac_word=$2
17043 echo "$as_me:$LINENO: checking for $ac_word" >&5
17044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17045 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
17046   echo $ECHO_N "(cached) $ECHO_C" >&6
17047 else
17048   if test -n "$MSGMERGE"; then
17049   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
17050 else
17051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17052 for as_dir in $PATH
17053 do
17054   IFS=$as_save_IFS
17055   test -z "$as_dir" && as_dir=.
17056   for ac_exec_ext in '' $ac_executable_extensions; do
17057   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17058     ac_cv_prog_MSGMERGE="$ac_prog"
17059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17060     break 2
17061   fi
17062 done
17063 done
17064
17065 fi
17066 fi
17067 MSGMERGE=$ac_cv_prog_MSGMERGE
17068 if test -n "$MSGMERGE"; then
17069   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
17070 echo "${ECHO_T}$MSGMERGE" >&6
17071 else
17072   echo "$as_me:$LINENO: result: no" >&5
17073 echo "${ECHO_T}no" >&6
17074 fi
17075
17076   test -n "$MSGMERGE" && break
17077 done
17078
17079   for ac_prog in xgettext
17080 do
17081   # Extract the first word of "$ac_prog", so it can be a program name with args.
17082 set dummy $ac_prog; ac_word=$2
17083 echo "$as_me:$LINENO: checking for $ac_word" >&5
17084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17085 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
17086   echo $ECHO_N "(cached) $ECHO_C" >&6
17087 else
17088   if test -n "$XGETTEXT"; then
17089   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
17090 else
17091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17092 for as_dir in $PATH
17093 do
17094   IFS=$as_save_IFS
17095   test -z "$as_dir" && as_dir=.
17096   for ac_exec_ext in '' $ac_executable_extensions; do
17097   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17098     ac_cv_prog_XGETTEXT="$ac_prog"
17099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17100     break 2
17101   fi
17102 done
17103 done
17104
17105 fi
17106 fi
17107 XGETTEXT=$ac_cv_prog_XGETTEXT
17108 if test -n "$XGETTEXT"; then
17109   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17110 echo "${ECHO_T}$XGETTEXT" >&6
17111 else
17112   echo "$as_me:$LINENO: result: no" >&5
17113 echo "${ECHO_T}no" >&6
17114 fi
17115
17116   test -n "$XGETTEXT" && break
17117 done
17118
17119
17120   # Note: share/locale is always the default, independent of $datadir
17121   localedir='${prefix}/share/locale'
17122   if test x"$prefix" = x"NONE"; then
17123     exp_localedir="$ac_default_prefix/share/locale"
17124   else
17125     exp_localedir="$prefix/share/locale"
17126   fi
17127
17128
17129
17130 cat >>confdefs.h <<_ACEOF
17131 #define LOCALEDIR "$exp_localedir"
17132 _ACEOF
17133
17134
17135 fi
17136
17137 # Check for Tcl configuration script tclConfig.sh
17138 if test "$with_tcl" = yes; then
17139     for ac_prog in tclsh tcl
17140 do
17141   # Extract the first word of "$ac_prog", so it can be a program name with args.
17142 set dummy $ac_prog; ac_word=$2
17143 echo "$as_me:$LINENO: checking for $ac_word" >&5
17144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17145 if test "${ac_cv_path_TCLSH+set}" = set; then
17146   echo $ECHO_N "(cached) $ECHO_C" >&6
17147 else
17148   case $TCLSH in
17149   [\\/]* | ?:[\\/]*)
17150   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
17151   ;;
17152   *)
17153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17154 for as_dir in $PATH
17155 do
17156   IFS=$as_save_IFS
17157   test -z "$as_dir" && as_dir=.
17158   for ac_exec_ext in '' $ac_executable_extensions; do
17159   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17160     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
17161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17162     break 2
17163   fi
17164 done
17165 done
17166
17167   ;;
17168 esac
17169 fi
17170 TCLSH=$ac_cv_path_TCLSH
17171
17172 if test -n "$TCLSH"; then
17173   echo "$as_me:$LINENO: result: $TCLSH" >&5
17174 echo "${ECHO_T}$TCLSH" >&6
17175 else
17176   echo "$as_me:$LINENO: result: no" >&5
17177 echo "${ECHO_T}no" >&6
17178 fi
17179
17180   test -n "$TCLSH" && break
17181 done
17182
17183 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
17184 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
17185 # Let user override test
17186 if test -z "$TCL_CONFIG_SH"; then
17187     pgac_test_dirs="$with_tclconfig"
17188
17189     set X $pgac_test_dirs; shift
17190     if test $# -eq 0; then
17191         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
17192 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
17193    { (exit 1); exit 1; }; }
17194         set X `echo 'puts $auto_path' | $TCLSH`; shift
17195     fi
17196
17197     for pgac_dir do
17198         if test -r "$pgac_dir/tclConfig.sh"; then
17199             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
17200             break
17201         fi
17202     done
17203 fi
17204
17205 if test -z "$TCL_CONFIG_SH"; then
17206     echo "$as_me:$LINENO: result: no" >&5
17207 echo "${ECHO_T}no" >&6
17208     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
17209 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
17210    { (exit 1); exit 1; }; }
17211 else
17212     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
17213 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
17214 fi
17215
17216
17217
17218     . "$TCL_CONFIG_SH"
17219 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
17220 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
17221 eval TCL_LIBS=\"$TCL_LIBS\"
17222 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
17223 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
17224
17225     fi
17226
17227 # Check for Tk configuration script tkConfig.sh
17228 if test "$with_tk" = yes; then
17229     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
17230 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
17231 # Let user override test
17232 if test -z "$TK_CONFIG_SH"; then
17233     pgac_test_dirs="$with_tkconfig $with_tclconfig"
17234
17235     set X $pgac_test_dirs; shift
17236     if test $# -eq 0; then
17237         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
17238 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
17239    { (exit 1); exit 1; }; }
17240         set X `echo 'puts $auto_path' | $TCLSH`; shift
17241     fi
17242
17243     for pgac_dir do
17244         if test -r "$pgac_dir/tkConfig.sh"; then
17245             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
17246             break
17247         fi
17248     done
17249 fi
17250
17251 if test -z "$TK_CONFIG_SH"; then
17252     echo "$as_me:$LINENO: result: no" >&5
17253 echo "${ECHO_T}no" >&6
17254     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
17255 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
17256    { (exit 1); exit 1; }; }
17257 else
17258     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
17259 echo "${ECHO_T}$TK_CONFIG_SH" >&6
17260 fi
17261
17262
17263
17264     . "$TK_CONFIG_SH"
17265 eval TK_LIBS=\"$TK_LIBS\"
17266 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
17267 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
17268
17269 fi
17270
17271
17272 #
17273 # Check for DocBook and tools
17274 #
17275 for ac_prog in onsgmls nsgmls
17276 do
17277   # Extract the first word of "$ac_prog", so it can be a program name with args.
17278 set dummy $ac_prog; ac_word=$2
17279 echo "$as_me:$LINENO: checking for $ac_word" >&5
17280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17281 if test "${ac_cv_prog_NSGMLS+set}" = set; then
17282   echo $ECHO_N "(cached) $ECHO_C" >&6
17283 else
17284   if test -n "$NSGMLS"; then
17285   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
17286 else
17287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17288 for as_dir in $PATH
17289 do
17290   IFS=$as_save_IFS
17291   test -z "$as_dir" && as_dir=.
17292   for ac_exec_ext in '' $ac_executable_extensions; do
17293   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17294     ac_cv_prog_NSGMLS="$ac_prog"
17295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17296     break 2
17297   fi
17298 done
17299 done
17300
17301 fi
17302 fi
17303 NSGMLS=$ac_cv_prog_NSGMLS
17304 if test -n "$NSGMLS"; then
17305   echo "$as_me:$LINENO: result: $NSGMLS" >&5
17306 echo "${ECHO_T}$NSGMLS" >&6
17307 else
17308   echo "$as_me:$LINENO: result: no" >&5
17309 echo "${ECHO_T}no" >&6
17310 fi
17311
17312   test -n "$NSGMLS" && break
17313 done
17314
17315 for ac_prog in openjade jade
17316 do
17317   # Extract the first word of "$ac_prog", so it can be a program name with args.
17318 set dummy $ac_prog; ac_word=$2
17319 echo "$as_me:$LINENO: checking for $ac_word" >&5
17320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17321 if test "${ac_cv_prog_JADE+set}" = set; then
17322   echo $ECHO_N "(cached) $ECHO_C" >&6
17323 else
17324   if test -n "$JADE"; then
17325   ac_cv_prog_JADE="$JADE" # Let the user override the test.
17326 else
17327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17328 for as_dir in $PATH
17329 do
17330   IFS=$as_save_IFS
17331   test -z "$as_dir" && as_dir=.
17332   for ac_exec_ext in '' $ac_executable_extensions; do
17333   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17334     ac_cv_prog_JADE="$ac_prog"
17335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17336     break 2
17337   fi
17338 done
17339 done
17340
17341 fi
17342 fi
17343 JADE=$ac_cv_prog_JADE
17344 if test -n "$JADE"; then
17345   echo "$as_me:$LINENO: result: $JADE" >&5
17346 echo "${ECHO_T}$JADE" >&6
17347 else
17348   echo "$as_me:$LINENO: result: no" >&5
17349 echo "${ECHO_T}no" >&6
17350 fi
17351
17352   test -n "$JADE" && break
17353 done
17354
17355
17356 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
17357 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
17358 if test "${pgac_cv_check_docbook+set}" = set; then
17359   echo $ECHO_N "(cached) $ECHO_C" >&6
17360 else
17361   cat >conftest.sgml <<EOF
17362 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
17363 <book>
17364  <title>test</title>
17365  <chapter>
17366   <title>random</title>
17367    <sect1>
17368     <title>testsect</title>
17369     <para>text</para>
17370   </sect1>
17371  </chapter>
17372 </book>
17373 EOF
17374
17375 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
17376 if test $? -eq 0; then
17377   pgac_cv_check_docbook=yes
17378 else
17379   pgac_cv_check_docbook=no
17380 fi
17381 rm -f conftest.sgml
17382 fi
17383 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
17384 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
17385
17386 have_docbook=$pgac_cv_check_docbook
17387
17388
17389 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
17390 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
17391 if test "${pgac_cv_path_stylesheets+set}" = set; then
17392   echo $ECHO_N "(cached) $ECHO_C" >&6
17393 else
17394   if test -n "$DOCBOOKSTYLE"; then
17395   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
17396 else
17397   for pgac_prefix in /usr /usr/local /opt; do
17398     for pgac_infix in share lib; do
17399       for pgac_postfix in \
17400         sgml/stylesheets/nwalsh-modular \
17401         sgml/stylesheets/docbook \
17402         sgml/docbook/dsssl/modular \
17403         sgml/docbook/stylesheet/dsssl/modular \
17404         sgml/docbook/dsssl-stylesheets
17405       do
17406         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
17407         if test -r "$pgac_candidate/html/docbook.dsl" \
17408            && test -r "$pgac_candidate/print/docbook.dsl"
17409         then
17410           pgac_cv_path_stylesheets=$pgac_candidate
17411           break 3
17412         fi
17413       done
17414     done
17415   done
17416 fi
17417 fi
17418
17419 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
17420
17421 if test -n "$DOCBOOKSTYLE"; then
17422   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
17423 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
17424 else
17425   echo "$as_me:$LINENO: result: no" >&5
17426 echo "${ECHO_T}no" >&6
17427 fi
17428 if test -n "$DOCBOOKSTYLE"; then
17429   for ac_prog in collateindex.pl
17430 do
17431   # Extract the first word of "$ac_prog", so it can be a program name with args.
17432 set dummy $ac_prog; ac_word=$2
17433 echo "$as_me:$LINENO: checking for $ac_word" >&5
17434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17435 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17436   echo $ECHO_N "(cached) $ECHO_C" >&6
17437 else
17438   case $COLLATEINDEX in
17439   [\\/]* | ?:[\\/]*)
17440   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17441   ;;
17442   *)
17443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17444 for as_dir in $DOCBOOKSTYLE/bin $PATH
17445 do
17446   IFS=$as_save_IFS
17447   test -z "$as_dir" && as_dir=.
17448   for ac_exec_ext in '' $ac_executable_extensions; do
17449   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17450     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17452     break 2
17453   fi
17454 done
17455 done
17456
17457   ;;
17458 esac
17459 fi
17460 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17461
17462 if test -n "$COLLATEINDEX"; then
17463   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17464 echo "${ECHO_T}$COLLATEINDEX" >&6
17465 else
17466   echo "$as_me:$LINENO: result: no" >&5
17467 echo "${ECHO_T}no" >&6
17468 fi
17469
17470   test -n "$COLLATEINDEX" && break
17471 done
17472
17473 else
17474   for ac_prog in collateindex.pl
17475 do
17476   # Extract the first word of "$ac_prog", so it can be a program name with args.
17477 set dummy $ac_prog; ac_word=$2
17478 echo "$as_me:$LINENO: checking for $ac_word" >&5
17479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17480 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17481   echo $ECHO_N "(cached) $ECHO_C" >&6
17482 else
17483   case $COLLATEINDEX in
17484   [\\/]* | ?:[\\/]*)
17485   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17486   ;;
17487   *)
17488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17489 for as_dir in $PATH
17490 do
17491   IFS=$as_save_IFS
17492   test -z "$as_dir" && as_dir=.
17493   for ac_exec_ext in '' $ac_executable_extensions; do
17494   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17495     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17497     break 2
17498   fi
17499 done
17500 done
17501
17502   ;;
17503 esac
17504 fi
17505 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17506
17507 if test -n "$COLLATEINDEX"; then
17508   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17509 echo "${ECHO_T}$COLLATEINDEX" >&6
17510 else
17511   echo "$as_me:$LINENO: result: no" >&5
17512 echo "${ECHO_T}no" >&6
17513 fi
17514
17515   test -n "$COLLATEINDEX" && break
17516 done
17517
17518 fi
17519 for ac_prog in sgmlspl
17520 do
17521   # Extract the first word of "$ac_prog", so it can be a program name with args.
17522 set dummy $ac_prog; ac_word=$2
17523 echo "$as_me:$LINENO: checking for $ac_word" >&5
17524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17525 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17526   echo $ECHO_N "(cached) $ECHO_C" >&6
17527 else
17528   if test -n "$SGMLSPL"; then
17529   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17530 else
17531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17532 for as_dir in $PATH
17533 do
17534   IFS=$as_save_IFS
17535   test -z "$as_dir" && as_dir=.
17536   for ac_exec_ext in '' $ac_executable_extensions; do
17537   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17538     ac_cv_prog_SGMLSPL="$ac_prog"
17539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17540     break 2
17541   fi
17542 done
17543 done
17544
17545 fi
17546 fi
17547 SGMLSPL=$ac_cv_prog_SGMLSPL
17548 if test -n "$SGMLSPL"; then
17549   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17550 echo "${ECHO_T}$SGMLSPL" >&6
17551 else
17552   echo "$as_me:$LINENO: result: no" >&5
17553 echo "${ECHO_T}no" >&6
17554 fi
17555
17556   test -n "$SGMLSPL" && break
17557 done
17558
17559
17560
17561 # prepare build tree if outside source tree
17562 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
17563 # Note 2: /bin/pwd might be better than shell's built-in at getting
17564 #         a symlink-free name.
17565 if test "$no_create" != yes; then
17566   if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
17567     :
17568   else
17569     vpath_build=yes
17570
17571     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
17572     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
17573     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
17574       || { { echo "$as_me:$LINENO: error: failed" >&5
17575 echo "$as_me: error: failed" >&2;}
17576    { (exit 1); exit 1; }; }
17577     echo "$as_me:$LINENO: result: done" >&5
17578 echo "${ECHO_T}done" >&6
17579   fi
17580 fi
17581
17582
17583 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
17584
17585
17586 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}"
17587
17588
17589 ac_config_headers="$ac_config_headers src/include/pg_config.h"
17590
17591
17592 cat >confcache <<\_ACEOF
17593 # This file is a shell script that caches the results of configure
17594 # tests run on this system so they can be shared between configure
17595 # scripts and configure runs, see configure's option --config-cache.
17596 # It is not useful on other systems.  If it contains results you don't
17597 # want to keep, you may remove or edit it.
17598 #
17599 # config.status only pays attention to the cache file if you give it
17600 # the --recheck option to rerun configure.
17601 #
17602 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17603 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17604 # following values.
17605
17606 _ACEOF
17607
17608 # The following way of writing the cache mishandles newlines in values,
17609 # but we know of no workaround that is simple, portable, and efficient.
17610 # So, don't put newlines in cache variables' values.
17611 # Ultrix sh set writes to stderr and can't be redirected directly,
17612 # and sets the high bit in the cache file unless we assign to the vars.
17613 {
17614   (set) 2>&1 |
17615     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17616     *ac_space=\ *)
17617       # `set' does not quote correctly, so add quotes (double-quote
17618       # substitution turns \\\\ into \\, and sed turns \\ into \).
17619       sed -n \
17620         "s/'/'\\\\''/g;
17621           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17622       ;;
17623     *)
17624       # `set' quotes correctly as required by POSIX, so do not add quotes.
17625       sed -n \
17626         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17627       ;;
17628     esac;
17629 } |
17630   sed '
17631      t clear
17632      : clear
17633      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17634      t end
17635      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17636      : end' >>confcache
17637 if cmp -s $cache_file confcache; then :; else
17638   if test -w $cache_file; then
17639     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17640     cat confcache >$cache_file
17641   else
17642     echo "not updating unwritable cache $cache_file"
17643   fi
17644 fi
17645 rm -f confcache
17646
17647 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17648 # Let make expand exec_prefix.
17649 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17650
17651 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17652 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17653 # trailing colons and then remove the whole line if VPATH becomes empty
17654 # (actually we leave an empty line to preserve line numbers).
17655 if test "x$srcdir" = x.; then
17656   ac_vpsub='/^[         ]*VPATH[        ]*=/{
17657 s/:*\$(srcdir):*/:/;
17658 s/:*\${srcdir}:*/:/;
17659 s/:*@srcdir@:*/:/;
17660 s/^\([^=]*=[    ]*\):*/\1/;
17661 s/:*$//;
17662 s/^[^=]*=[      ]*$//;
17663 }'
17664 fi
17665
17666 DEFS=-DHAVE_CONFIG_H
17667
17668
17669 : ${CONFIG_STATUS=./config.status}
17670 ac_clean_files_save=$ac_clean_files
17671 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17672 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17673 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17674 cat >$CONFIG_STATUS <<_ACEOF
17675 #! $SHELL
17676 # Generated by $as_me.
17677 # Run this file to recreate the current configuration.
17678 # Compiler output produced by configure, useful for debugging
17679 # configure, is in config.log if it exists.
17680
17681 debug=false
17682 SHELL=\${CONFIG_SHELL-$SHELL}
17683 _ACEOF
17684
17685 cat >>$CONFIG_STATUS <<\_ACEOF
17686
17687 ## --------------------- ##
17688 ## M4sh Initialization.  ##
17689 ## --------------------- ##
17690
17691 # Be Bourne compatible
17692 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17693   emulate sh
17694   NULLCMD=:
17695 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17696   set -o posix
17697 fi
17698
17699 # NLS nuisances.
17700 # Support unset when possible.
17701 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17702   as_unset=unset
17703 else
17704   as_unset=false
17705 fi
17706
17707 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17708     { $as_unset LANG || test "${LANG+set}" != set; } ||
17709       { LANG=C; export LANG; }
17710 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17711     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17712       { LC_ALL=C; export LC_ALL; }
17713 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17714     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17715       { LC_TIME=C; export LC_TIME; }
17716 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17717     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17718       { LC_CTYPE=C; export LC_CTYPE; }
17719 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17720     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17721       { LANGUAGE=C; export LANGUAGE; }
17722 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17723     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17724       { LC_COLLATE=C; export LC_COLLATE; }
17725 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17726     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17727       { LC_NUMERIC=C; export LC_NUMERIC; }
17728 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17729     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17730       { LC_MESSAGES=C; export LC_MESSAGES; }
17731
17732
17733 # Name of the executable.
17734 as_me=`(basename "$0") 2>/dev/null ||
17735 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17736          X"$0" : 'X\(//\)$' \| \
17737          X"$0" : 'X\(/\)$' \| \
17738          .     : '\(.\)' 2>/dev/null ||
17739 echo X/"$0" |
17740     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17741           /^X\/\(\/\/\)$/{ s//\1/; q; }
17742           /^X\/\(\/\).*/{ s//\1/; q; }
17743           s/.*/./; q'`
17744
17745 # PATH needs CR, and LINENO needs CR and PATH.
17746 # Avoid depending upon Character Ranges.
17747 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17748 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17749 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17750 as_cr_digits='0123456789'
17751 as_cr_alnum=$as_cr_Letters$as_cr_digits
17752
17753 # The user is always right.
17754 if test "${PATH_SEPARATOR+set}" != set; then
17755   echo "#! /bin/sh" >conftest.sh
17756   echo  "exit 0"   >>conftest.sh
17757   chmod +x conftest.sh
17758   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17759     PATH_SEPARATOR=';'
17760   else
17761     PATH_SEPARATOR=:
17762   fi
17763   rm -f conftest.sh
17764 fi
17765
17766
17767   as_lineno_1=$LINENO
17768   as_lineno_2=$LINENO
17769   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17770   test "x$as_lineno_1" != "x$as_lineno_2" &&
17771   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17772   # Find who we are.  Look in the path if we contain no path at all
17773   # relative or not.
17774   case $0 in
17775     *[\\/]* ) as_myself=$0 ;;
17776     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17777 for as_dir in $PATH
17778 do
17779   IFS=$as_save_IFS
17780   test -z "$as_dir" && as_dir=.
17781   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17782 done
17783
17784        ;;
17785   esac
17786   # We did not find ourselves, most probably we were run as `sh COMMAND'
17787   # in which case we are not to be found in the path.
17788   if test "x$as_myself" = x; then
17789     as_myself=$0
17790   fi
17791   if test ! -f "$as_myself"; then
17792     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17793 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17794    { (exit 1); exit 1; }; }
17795   fi
17796   case $CONFIG_SHELL in
17797   '')
17798     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17799 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17800 do
17801   IFS=$as_save_IFS
17802   test -z "$as_dir" && as_dir=.
17803   for as_base in sh bash ksh sh5; do
17804          case $as_dir in
17805          /*)
17806            if ("$as_dir/$as_base" -c '
17807   as_lineno_1=$LINENO
17808   as_lineno_2=$LINENO
17809   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17810   test "x$as_lineno_1" != "x$as_lineno_2" &&
17811   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17812              CONFIG_SHELL=$as_dir/$as_base
17813              export CONFIG_SHELL
17814              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17815            fi;;
17816          esac
17817        done
17818 done
17819 ;;
17820   esac
17821
17822   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17823   # uniformly replaced by the line number.  The first 'sed' inserts a
17824   # line-number line before each line; the second 'sed' does the real
17825   # work.  The second script uses 'N' to pair each line-number line
17826   # with the numbered line, and appends trailing '-' during
17827   # substitution so that $LINENO is not a special case at line end.
17828   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17829   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17830   sed '=' <$as_myself |
17831     sed '
17832       N
17833       s,$,-,
17834       : loop
17835       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17836       t loop
17837       s,-$,,
17838       s,^['$as_cr_digits']*\n,,
17839     ' >$as_me.lineno &&
17840   chmod +x $as_me.lineno ||
17841     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17842 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17843    { (exit 1); exit 1; }; }
17844
17845   # Don't try to exec as it changes $[0], causing all sort of problems
17846   # (the dirname of $[0] is not the place where we might find the
17847   # original and so on.  Autoconf is especially sensible to this).
17848   . ./$as_me.lineno
17849   # Exit status is that of the last command.
17850   exit
17851 }
17852
17853
17854 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17855   *c*,-n*) ECHO_N= ECHO_C='
17856 ' ECHO_T='      ' ;;
17857   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17858   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17859 esac
17860
17861 if expr a : '\(a\)' >/dev/null 2>&1; then
17862   as_expr=expr
17863 else
17864   as_expr=false
17865 fi
17866
17867 rm -f conf$$ conf$$.exe conf$$.file
17868 echo >conf$$.file
17869 if ln -s conf$$.file conf$$ 2>/dev/null; then
17870   # We could just check for DJGPP; but this test a) works b) is more generic
17871   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17872   if test -f conf$$.exe; then
17873     # Don't use ln at all; we don't have any links
17874     as_ln_s='cp -p'
17875   else
17876     as_ln_s='ln -s'
17877   fi
17878 elif ln conf$$.file conf$$ 2>/dev/null; then
17879   as_ln_s=ln
17880 else
17881   as_ln_s='cp -p'
17882 fi
17883 rm -f conf$$ conf$$.exe conf$$.file
17884
17885 as_executable_p="test -f"
17886
17887 # Sed expression to map a string onto a valid CPP name.
17888 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17889
17890 # Sed expression to map a string onto a valid variable name.
17891 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17892
17893
17894 # IFS
17895 # We need space, tab and new line, in precisely that order.
17896 as_nl='
17897 '
17898 IFS="   $as_nl"
17899
17900 # CDPATH.
17901 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17902
17903 exec 6>&1
17904
17905 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17906 # report actual input values of CONFIG_FILES etc. instead of their
17907 # values after options handling.  Logging --version etc. is OK.
17908 exec 5>>config.log
17909 {
17910   echo
17911   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17912 ## Running $as_me. ##
17913 _ASBOX
17914 } >&5
17915 cat >&5 <<_CSEOF
17916
17917 This file was extended by PostgreSQL $as_me 7.4beta5, which was
17918 generated by GNU Autoconf 2.53.  Invocation command line was
17919
17920   CONFIG_FILES    = $CONFIG_FILES
17921   CONFIG_HEADERS  = $CONFIG_HEADERS
17922   CONFIG_LINKS    = $CONFIG_LINKS
17923   CONFIG_COMMANDS = $CONFIG_COMMANDS
17924   $ $0 $@
17925
17926 _CSEOF
17927 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17928 echo >&5
17929 _ACEOF
17930
17931 # Files that config.status was made for.
17932 if test -n "$ac_config_files"; then
17933   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17934 fi
17935
17936 if test -n "$ac_config_headers"; then
17937   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17938 fi
17939
17940 if test -n "$ac_config_links"; then
17941   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17942 fi
17943
17944 if test -n "$ac_config_commands"; then
17945   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17946 fi
17947
17948 cat >>$CONFIG_STATUS <<\_ACEOF
17949
17950 ac_cs_usage="\
17951 \`$as_me' instantiates files from templates according to the
17952 current configuration.
17953
17954 Usage: $0 [OPTIONS] [FILE]...
17955
17956   -h, --help       print this help, then exit
17957   -V, --version    print version number, then exit
17958   -d, --debug      don't remove temporary files
17959       --recheck    update $as_me by reconfiguring in the same conditions
17960   --file=FILE[:TEMPLATE]
17961                    instantiate the configuration file FILE
17962   --header=FILE[:TEMPLATE]
17963                    instantiate the configuration header FILE
17964
17965 Configuration files:
17966 $config_files
17967
17968 Configuration headers:
17969 $config_headers
17970
17971 Configuration links:
17972 $config_links
17973
17974 Report bugs to <bug-autoconf@gnu.org>."
17975 _ACEOF
17976
17977 cat >>$CONFIG_STATUS <<_ACEOF
17978 ac_cs_version="\\
17979 PostgreSQL config.status 7.4beta5
17980 configured by $0, generated by GNU Autoconf 2.53,
17981   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17982
17983 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17984 Free Software Foundation, Inc.
17985 This config.status script is free software; the Free Software Foundation
17986 gives unlimited permission to copy, distribute and modify it."
17987 srcdir=$srcdir
17988 _ACEOF
17989
17990 cat >>$CONFIG_STATUS <<\_ACEOF
17991 # If no file are specified by the user, then we need to provide default
17992 # value.  By we need to know if files were specified by the user.
17993 ac_need_defaults=:
17994 while test $# != 0
17995 do
17996   case $1 in
17997   --*=*)
17998     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17999     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18000     shift
18001     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18002     shift
18003     ;;
18004   -*);;
18005   *) # This is not an option, so the user has probably given explicit
18006      # arguments.
18007      ac_need_defaults=false;;
18008   esac
18009
18010   case $1 in
18011   # Handling of the options.
18012 _ACEOF
18013 cat >>$CONFIG_STATUS <<_ACEOF
18014   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18015     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18016     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18017 _ACEOF
18018 cat >>$CONFIG_STATUS <<\_ACEOF
18019   --version | --vers* | -V )
18020     echo "$ac_cs_version"; exit 0 ;;
18021   --he | --h)
18022     # Conflict between --help and --header
18023     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18024 Try \`$0 --help' for more information." >&5
18025 echo "$as_me: error: ambiguous option: $1
18026 Try \`$0 --help' for more information." >&2;}
18027    { (exit 1); exit 1; }; };;
18028   --help | --hel | -h )
18029     echo "$ac_cs_usage"; exit 0 ;;
18030   --debug | --d* | -d )
18031     debug=: ;;
18032   --file | --fil | --fi | --f )
18033     shift
18034     CONFIG_FILES="$CONFIG_FILES $1"
18035     ac_need_defaults=false;;
18036   --header | --heade | --head | --hea )
18037     shift
18038     CONFIG_HEADERS="$CONFIG_HEADERS $1"
18039     ac_need_defaults=false;;
18040
18041   # This is an error.
18042   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18043 Try \`$0 --help' for more information." >&5
18044 echo "$as_me: error: unrecognized option: $1
18045 Try \`$0 --help' for more information." >&2;}
18046    { (exit 1); exit 1; }; } ;;
18047
18048   *) ac_config_targets="$ac_config_targets $1" ;;
18049
18050   esac
18051   shift
18052 done
18053
18054 _ACEOF
18055
18056
18057
18058
18059
18060 cat >>$CONFIG_STATUS <<\_ACEOF
18061 for ac_config_target in $ac_config_targets
18062 do
18063   case "$ac_config_target" in
18064   # Handling of arguments.
18065   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
18066   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
18067   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
18068   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
18069   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
18070   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
18071   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
18072   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
18073   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
18074   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
18075   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18076 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18077    { (exit 1); exit 1; }; };;
18078   esac
18079 done
18080
18081 # If the user did not use the arguments to specify the items to instantiate,
18082 # then the envvar interface is used.  Set only those that are not.
18083 # We use the long form for the default assignment because of an extremely
18084 # bizarre bug on SunOS 4.1.3.
18085 if $ac_need_defaults; then
18086   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18087   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18088   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18089 fi
18090
18091 # Create a temporary directory, and hook for its removal unless debugging.
18092 $debug ||
18093 {
18094   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18095   trap '{ (exit 1); exit 1; }' 1 2 13 15
18096 }
18097
18098 # Create a (secure) tmp directory for tmp files.
18099 : ${TMPDIR=/tmp}
18100 {
18101   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18102   test -n "$tmp" && test -d "$tmp"
18103 }  ||
18104 {
18105   tmp=$TMPDIR/cs$$-$RANDOM
18106   (umask 077 && mkdir $tmp)
18107 } ||
18108 {
18109    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18110    { (exit 1); exit 1; }
18111 }
18112
18113 _ACEOF
18114
18115 cat >>$CONFIG_STATUS <<_ACEOF
18116
18117 #
18118 # CONFIG_FILES section.
18119 #
18120
18121 # No need to generate the scripts if there are no CONFIG_FILES.
18122 # This happens for instance when ./config.status config.h
18123 if test -n "\$CONFIG_FILES"; then
18124   # Protect against being on the right side of a sed subst in config.status.
18125   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18126    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18127 s,@SHELL@,$SHELL,;t t
18128 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18129 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18130 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18131 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18132 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18133 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18134 s,@exec_prefix@,$exec_prefix,;t t
18135 s,@prefix@,$prefix,;t t
18136 s,@program_transform_name@,$program_transform_name,;t t
18137 s,@bindir@,$bindir,;t t
18138 s,@sbindir@,$sbindir,;t t
18139 s,@libexecdir@,$libexecdir,;t t
18140 s,@datadir@,$datadir,;t t
18141 s,@sysconfdir@,$sysconfdir,;t t
18142 s,@sharedstatedir@,$sharedstatedir,;t t
18143 s,@localstatedir@,$localstatedir,;t t
18144 s,@libdir@,$libdir,;t t
18145 s,@includedir@,$includedir,;t t
18146 s,@oldincludedir@,$oldincludedir,;t t
18147 s,@infodir@,$infodir,;t t
18148 s,@mandir@,$mandir,;t t
18149 s,@build_alias@,$build_alias,;t t
18150 s,@host_alias@,$host_alias,;t t
18151 s,@target_alias@,$target_alias,;t t
18152 s,@DEFS@,$DEFS,;t t
18153 s,@ECHO_C@,$ECHO_C,;t t
18154 s,@ECHO_N@,$ECHO_N,;t t
18155 s,@ECHO_T@,$ECHO_T,;t t
18156 s,@LIBS@,$LIBS,;t t
18157 s,@docdir@,$docdir,;t t
18158 s,@configure_args@,$configure_args,;t t
18159 s,@build@,$build,;t t
18160 s,@build_cpu@,$build_cpu,;t t
18161 s,@build_vendor@,$build_vendor,;t t
18162 s,@build_os@,$build_os,;t t
18163 s,@host@,$host,;t t
18164 s,@host_cpu@,$host_cpu,;t t
18165 s,@host_vendor@,$host_vendor,;t t
18166 s,@host_os@,$host_os,;t t
18167 s,@PORTNAME@,$PORTNAME,;t t
18168 s,@TAS@,$TAS,;t t
18169 s,@enable_nls@,$enable_nls,;t t
18170 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
18171 s,@default_port@,$default_port,;t t
18172 s,@enable_shared@,$enable_shared,;t t
18173 s,@enable_rpath@,$enable_rpath,;t t
18174 s,@enable_debug@,$enable_debug,;t t
18175 s,@CC@,$CC,;t t
18176 s,@CFLAGS@,$CFLAGS,;t t
18177 s,@LDFLAGS@,$LDFLAGS,;t t
18178 s,@CPPFLAGS@,$CPPFLAGS,;t t
18179 s,@ac_ct_CC@,$ac_ct_CC,;t t
18180 s,@EXEEXT@,$EXEEXT,;t t
18181 s,@OBJEXT@,$OBJEXT,;t t
18182 s,@CPP@,$CPP,;t t
18183 s,@GCC@,$GCC,;t t
18184 s,@autodepend@,$autodepend,;t t
18185 s,@INCLUDES@,$INCLUDES,;t t
18186 s,@enable_thread_safety@,$enable_thread_safety,;t t
18187 s,@with_tcl@,$with_tcl,;t t
18188 s,@with_tk@,$with_tk,;t t
18189 s,@with_perl@,$with_perl,;t t
18190 s,@with_python@,$with_python,;t t
18191 s,@ANT@,$ANT,;t t
18192 s,@with_java@,$with_java,;t t
18193 s,@with_krb4@,$with_krb4,;t t
18194 s,@with_krb5@,$with_krb5,;t t
18195 s,@krb_srvtab@,$krb_srvtab,;t t
18196 s,@with_pam@,$with_pam,;t t
18197 s,@with_rendezvous@,$with_rendezvous,;t t
18198 s,@with_openssl@,$with_openssl,;t t
18199 s,@ELF_SYS@,$ELF_SYS,;t t
18200 s,@AWK@,$AWK,;t t
18201 s,@FLEX@,$FLEX,;t t
18202 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
18203 s,@LN_S@,$LN_S,;t t
18204 s,@LD@,$LD,;t t
18205 s,@with_gnu_ld@,$with_gnu_ld,;t t
18206 s,@ld_R_works@,$ld_R_works,;t t
18207 s,@RANLIB@,$RANLIB,;t t
18208 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18209 s,@LORDER@,$LORDER,;t t
18210 s,@TAR@,$TAR,;t t
18211 s,@STRIP@,$STRIP,;t t
18212 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18213 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
18214 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
18215 s,@YACC@,$YACC,;t t
18216 s,@YFLAGS@,$YFLAGS,;t t
18217 s,@PERL@,$PERL,;t t
18218 s,@perl_archlibexp@,$perl_archlibexp,;t t
18219 s,@perl_privlibexp@,$perl_privlibexp,;t t
18220 s,@perl_useshrplib@,$perl_useshrplib,;t t
18221 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
18222 s,@PYTHON@,$PYTHON,;t t
18223 s,@python_prefix@,$python_prefix,;t t
18224 s,@python_execprefix@,$python_execprefix,;t t
18225 s,@python_configdir@,$python_configdir,;t t
18226 s,@python_includespec@,$python_includespec,;t t
18227 s,@python_libspec@,$python_libspec,;t t
18228 s,@LIBOBJS@,$LIBOBJS,;t t
18229 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
18230 s,@THREAD_SUPPORT@,$THREAD_SUPPORT,;t t
18231 s,@THREAD_CPPFLAGS@,$THREAD_CPPFLAGS,;t t
18232 s,@THREAD_LIBS@,$THREAD_LIBS,;t t
18233 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
18234 s,@MSGFMT@,$MSGFMT,;t t
18235 s,@MSGMERGE@,$MSGMERGE,;t t
18236 s,@XGETTEXT@,$XGETTEXT,;t t
18237 s,@localedir@,$localedir,;t t
18238 s,@TCLSH@,$TCLSH,;t t
18239 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
18240 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
18241 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
18242 s,@TCL_LIBS@,$TCL_LIBS,;t t
18243 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
18244 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
18245 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
18246 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
18247 s,@TK_LIBS@,$TK_LIBS,;t t
18248 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
18249 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
18250 s,@NSGMLS@,$NSGMLS,;t t
18251 s,@JADE@,$JADE,;t t
18252 s,@have_docbook@,$have_docbook,;t t
18253 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
18254 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
18255 s,@SGMLSPL@,$SGMLSPL,;t t
18256 s,@vpath_build@,$vpath_build,;t t
18257 CEOF
18258
18259 _ACEOF
18260
18261   cat >>$CONFIG_STATUS <<\_ACEOF
18262   # Split the substitutions into bite-sized pieces for seds with
18263   # small command number limits, like on Digital OSF/1 and HP-UX.
18264   ac_max_sed_lines=48
18265   ac_sed_frag=1 # Number of current file.
18266   ac_beg=1 # First line for current file.
18267   ac_end=$ac_max_sed_lines # Line after last line for current file.
18268   ac_more_lines=:
18269   ac_sed_cmds=
18270   while $ac_more_lines; do
18271     if test $ac_beg -gt 1; then
18272       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18273     else
18274       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18275     fi
18276     if test ! -s $tmp/subs.frag; then
18277       ac_more_lines=false
18278     else
18279       # The purpose of the label and of the branching condition is to
18280       # speed up the sed processing (if there are no `@' at all, there
18281       # is no need to browse any of the substitutions).
18282       # These are the two extra sed commands mentioned above.
18283       (echo ':t
18284   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18285       if test -z "$ac_sed_cmds"; then
18286         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18287       else
18288         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18289       fi
18290       ac_sed_frag=`expr $ac_sed_frag + 1`
18291       ac_beg=$ac_end
18292       ac_end=`expr $ac_end + $ac_max_sed_lines`
18293     fi
18294   done
18295   if test -z "$ac_sed_cmds"; then
18296     ac_sed_cmds=cat
18297   fi
18298 fi # test -n "$CONFIG_FILES"
18299
18300 _ACEOF
18301 cat >>$CONFIG_STATUS <<\_ACEOF
18302 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18303   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18304   case $ac_file in
18305   - | *:- | *:-:* ) # input from stdin
18306         cat >$tmp/stdin
18307         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18308         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18309   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18310         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18311   * )   ac_file_in=$ac_file.in ;;
18312   esac
18313
18314   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18315   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18316 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18317          X"$ac_file" : 'X\(//\)[^/]' \| \
18318          X"$ac_file" : 'X\(//\)$' \| \
18319          X"$ac_file" : 'X\(/\)' \| \
18320          .     : '\(.\)' 2>/dev/null ||
18321 echo X"$ac_file" |
18322     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18323           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18324           /^X\(\/\/\)$/{ s//\1/; q; }
18325           /^X\(\/\).*/{ s//\1/; q; }
18326           s/.*/./; q'`
18327   { case "$ac_dir" in
18328   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18329   *)                      as_incr_dir=.;;
18330 esac
18331 as_dummy="$ac_dir"
18332 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18333   case $as_mkdir_dir in
18334     # Skip DOS drivespec
18335     ?:) as_incr_dir=$as_mkdir_dir ;;
18336     *)
18337       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18338       test -d "$as_incr_dir" ||
18339         mkdir "$as_incr_dir" ||
18340         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18341 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18342    { (exit 1); exit 1; }; }
18343     ;;
18344   esac
18345 done; }
18346
18347   ac_builddir=.
18348
18349 if test "$ac_dir" != .; then
18350   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18351   # A "../" for each directory in $ac_dir_suffix.
18352   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18353 else
18354   ac_dir_suffix= ac_top_builddir=
18355 fi
18356
18357 case $srcdir in
18358   .)  # No --srcdir option.  We are building in place.
18359     ac_srcdir=.
18360     if test -z "$ac_top_builddir"; then
18361        ac_top_srcdir=.
18362     else
18363        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18364     fi ;;
18365   [\\/]* | ?:[\\/]* )  # Absolute path.
18366     ac_srcdir=$srcdir$ac_dir_suffix;
18367     ac_top_srcdir=$srcdir ;;
18368   *) # Relative path.
18369     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18370     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18371 esac
18372 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18373 # absolute.
18374 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18375 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18376 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18377 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18378
18379
18380
18381   if test x"$ac_file" != x-; then
18382     { echo "$as_me:$LINENO: creating $ac_file" >&5
18383 echo "$as_me: creating $ac_file" >&6;}
18384     rm -f "$ac_file"
18385   fi
18386   # Let's still pretend it is `configure' which instantiates (i.e., don't
18387   # use $as_me), people would be surprised to read:
18388   #    /* config.h.  Generated by config.status.  */
18389   if test x"$ac_file" = x-; then
18390     configure_input=
18391   else
18392     configure_input="$ac_file.  "
18393   fi
18394   configure_input=$configure_input"Generated from `echo $ac_file_in |
18395                                      sed 's,.*/,,'` by configure."
18396
18397   # First look for the input files in the build tree, otherwise in the
18398   # src tree.
18399   ac_file_inputs=`IFS=:
18400     for f in $ac_file_in; do
18401       case $f in
18402       -) echo $tmp/stdin ;;
18403       [\\/$]*)
18404          # Absolute (can't be DOS-style, as IFS=:)
18405          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18406 echo "$as_me: error: cannot find input file: $f" >&2;}
18407    { (exit 1); exit 1; }; }
18408          echo $f;;
18409       *) # Relative
18410          if test -f "$f"; then
18411            # Build tree
18412            echo $f
18413          elif test -f "$srcdir/$f"; then
18414            # Source tree
18415            echo $srcdir/$f
18416          else
18417            # /dev/null tree
18418            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18419 echo "$as_me: error: cannot find input file: $f" >&2;}
18420    { (exit 1); exit 1; }; }
18421          fi;;
18422       esac
18423     done` || { (exit 1); exit 1; }
18424 _ACEOF
18425 cat >>$CONFIG_STATUS <<_ACEOF
18426   sed "$ac_vpsub
18427 $extrasub
18428 _ACEOF
18429 cat >>$CONFIG_STATUS <<\_ACEOF
18430 :t
18431 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18432 s,@configure_input@,$configure_input,;t t
18433 s,@srcdir@,$ac_srcdir,;t t
18434 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18435 s,@top_srcdir@,$ac_top_srcdir,;t t
18436 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18437 s,@builddir@,$ac_builddir,;t t
18438 s,@abs_builddir@,$ac_abs_builddir,;t t
18439 s,@top_builddir@,$ac_top_builddir,;t t
18440 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18441 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18442   rm -f $tmp/stdin
18443   if test x"$ac_file" != x-; then
18444     mv $tmp/out $ac_file
18445   else
18446     cat $tmp/out
18447     rm -f $tmp/out
18448   fi
18449
18450 done
18451 _ACEOF
18452 cat >>$CONFIG_STATUS <<\_ACEOF
18453
18454 #
18455 # CONFIG_HEADER section.
18456 #
18457
18458 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18459 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18460 #
18461 # ac_d sets the value in "#define NAME VALUE" lines.
18462 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18463 ac_dB='[        ].*$,\1#\2'
18464 ac_dC=' '
18465 ac_dD=',;t'
18466 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18467 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18468 ac_uB='$,\1#\2define\3'
18469 ac_uC=' '
18470 ac_uD=',;t'
18471
18472 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18473   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18474   case $ac_file in
18475   - | *:- | *:-:* ) # input from stdin
18476         cat >$tmp/stdin
18477         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18478         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18479   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18480         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18481   * )   ac_file_in=$ac_file.in ;;
18482   esac
18483
18484   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18485 echo "$as_me: creating $ac_file" >&6;}
18486
18487   # First look for the input files in the build tree, otherwise in the
18488   # src tree.
18489   ac_file_inputs=`IFS=:
18490     for f in $ac_file_in; do
18491       case $f in
18492       -) echo $tmp/stdin ;;
18493       [\\/$]*)
18494          # Absolute (can't be DOS-style, as IFS=:)
18495          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18496 echo "$as_me: error: cannot find input file: $f" >&2;}
18497    { (exit 1); exit 1; }; }
18498          echo $f;;
18499       *) # Relative
18500          if test -f "$f"; then
18501            # Build tree
18502            echo $f
18503          elif test -f "$srcdir/$f"; then
18504            # Source tree
18505            echo $srcdir/$f
18506          else
18507            # /dev/null tree
18508            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18509 echo "$as_me: error: cannot find input file: $f" >&2;}
18510    { (exit 1); exit 1; }; }
18511          fi;;
18512       esac
18513     done` || { (exit 1); exit 1; }
18514   # Remove the trailing spaces.
18515   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
18516
18517 _ACEOF
18518
18519 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18520 # `conftest.undefs', that substitutes the proper values into
18521 # config.h.in to produce config.h.  The first handles `#define'
18522 # templates, and the second `#undef' templates.
18523 # And first: Protect against being on the right side of a sed subst in
18524 # config.status.  Protect against being in an unquoted here document
18525 # in config.status.
18526 rm -f conftest.defines conftest.undefs
18527 # Using a here document instead of a string reduces the quoting nightmare.
18528 # Putting comments in sed scripts is not portable.
18529 #
18530 # `end' is used to avoid that the second main sed command (meant for
18531 # 0-ary CPP macros) applies to n-ary macro definitions.
18532 # See the Autoconf documentation for `clear'.
18533 cat >confdef2sed.sed <<\_ACEOF
18534 s/[\\&,]/\\&/g
18535 s,[\\$`],\\&,g
18536 t clear
18537 : clear
18538 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18539 t end
18540 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18541 : end
18542 _ACEOF
18543 # If some macros were called several times there might be several times
18544 # the same #defines, which is useless.  Nevertheless, we may not want to
18545 # sort them, since we want the *last* AC-DEFINE to be honored.
18546 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18547 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18548 rm -f confdef2sed.sed
18549
18550 # This sed command replaces #undef with comments.  This is necessary, for
18551 # example, in the case of _POSIX_SOURCE, which is predefined and required
18552 # on some systems where configure will not decide to define it.
18553 cat >>conftest.undefs <<\_ACEOF
18554 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18555 _ACEOF
18556
18557 # Break up conftest.defines because some shells have a limit on the size
18558 # of here documents, and old seds have small limits too (100 cmds).
18559 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18560 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18561 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18562 echo '  :' >>$CONFIG_STATUS
18563 rm -f conftest.tail
18564 while grep . conftest.defines >/dev/null
18565 do
18566   # Write a limited-size here document to $tmp/defines.sed.
18567   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18568   # Speed up: don't consider the non `#define' lines.
18569   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
18570   # Work around the forget-to-reset-the-flag bug.
18571   echo 't clr' >>$CONFIG_STATUS
18572   echo ': clr' >>$CONFIG_STATUS
18573   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18574   echo 'CEOF
18575   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18576   rm -f $tmp/in
18577   mv $tmp/out $tmp/in
18578 ' >>$CONFIG_STATUS
18579   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18580   rm -f conftest.defines
18581   mv conftest.tail conftest.defines
18582 done
18583 rm -f conftest.defines
18584 echo '  fi # egrep' >>$CONFIG_STATUS
18585 echo >>$CONFIG_STATUS
18586
18587 # Break up conftest.undefs because some shells have a limit on the size
18588 # of here documents, and old seds have small limits too (100 cmds).
18589 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18590 rm -f conftest.tail
18591 while grep . conftest.undefs >/dev/null
18592 do
18593   # Write a limited-size here document to $tmp/undefs.sed.
18594   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18595   # Speed up: don't consider the non `#undef'
18596   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18597   # Work around the forget-to-reset-the-flag bug.
18598   echo 't clr' >>$CONFIG_STATUS
18599   echo ': clr' >>$CONFIG_STATUS
18600   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18601   echo 'CEOF
18602   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18603   rm -f $tmp/in
18604   mv $tmp/out $tmp/in
18605 ' >>$CONFIG_STATUS
18606   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18607   rm -f conftest.undefs
18608   mv conftest.tail conftest.undefs
18609 done
18610 rm -f conftest.undefs
18611
18612 cat >>$CONFIG_STATUS <<\_ACEOF
18613   # Let's still pretend it is `configure' which instantiates (i.e., don't
18614   # use $as_me), people would be surprised to read:
18615   #    /* config.h.  Generated by config.status.  */
18616   if test x"$ac_file" = x-; then
18617     echo "/* Generated by configure.  */" >$tmp/config.h
18618   else
18619     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18620   fi
18621   cat $tmp/in >>$tmp/config.h
18622   rm -f $tmp/in
18623   if test x"$ac_file" != x-; then
18624     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18625       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18626 echo "$as_me: $ac_file is unchanged" >&6;}
18627     else
18628       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18629 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18630          X"$ac_file" : 'X\(//\)[^/]' \| \
18631          X"$ac_file" : 'X\(//\)$' \| \
18632          X"$ac_file" : 'X\(/\)' \| \
18633          .     : '\(.\)' 2>/dev/null ||
18634 echo X"$ac_file" |
18635     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18636           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18637           /^X\(\/\/\)$/{ s//\1/; q; }
18638           /^X\(\/\).*/{ s//\1/; q; }
18639           s/.*/./; q'`
18640       { case "$ac_dir" in
18641   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18642   *)                      as_incr_dir=.;;
18643 esac
18644 as_dummy="$ac_dir"
18645 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18646   case $as_mkdir_dir in
18647     # Skip DOS drivespec
18648     ?:) as_incr_dir=$as_mkdir_dir ;;
18649     *)
18650       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18651       test -d "$as_incr_dir" ||
18652         mkdir "$as_incr_dir" ||
18653         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18654 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18655    { (exit 1); exit 1; }; }
18656     ;;
18657   esac
18658 done; }
18659
18660       rm -f $ac_file
18661       mv $tmp/config.h $ac_file
18662     fi
18663   else
18664     cat $tmp/config.h
18665     rm -f $tmp/config.h
18666   fi
18667   # Run the commands associated with the file.
18668   case $ac_file in
18669     src/include/pg_config.h )
18670 # Update timestamp for pg_config.h (see Makefile.global)
18671 echo >src/include/stamp-h
18672  ;;
18673   esac
18674 done
18675 _ACEOF
18676 cat >>$CONFIG_STATUS <<\_ACEOF
18677
18678 #
18679 # CONFIG_LINKS section.
18680 #
18681
18682 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18683   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18684   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18685
18686   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18687 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18688
18689   if test ! -r $srcdir/$ac_source; then
18690     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18691 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18692    { (exit 1); exit 1; }; }
18693   fi
18694   rm -f $ac_dest
18695
18696   # Make relative symlinks.
18697   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18698 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18699          X"$ac_dest" : 'X\(//\)[^/]' \| \
18700          X"$ac_dest" : 'X\(//\)$' \| \
18701          X"$ac_dest" : 'X\(/\)' \| \
18702          .     : '\(.\)' 2>/dev/null ||
18703 echo X"$ac_dest" |
18704     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18705           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18706           /^X\(\/\/\)$/{ s//\1/; q; }
18707           /^X\(\/\).*/{ s//\1/; q; }
18708           s/.*/./; q'`
18709   { case "$ac_dest_dir" in
18710   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18711   *)                      as_incr_dir=.;;
18712 esac
18713 as_dummy="$ac_dest_dir"
18714 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18715   case $as_mkdir_dir in
18716     # Skip DOS drivespec
18717     ?:) as_incr_dir=$as_mkdir_dir ;;
18718     *)
18719       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18720       test -d "$as_incr_dir" ||
18721         mkdir "$as_incr_dir" ||
18722         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18723 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18724    { (exit 1); exit 1; }; }
18725     ;;
18726   esac
18727 done; }
18728
18729   ac_builddir=.
18730
18731 if test "$ac_dest_dir" != .; then
18732   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18733   # A "../" for each directory in $ac_dir_suffix.
18734   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18735 else
18736   ac_dir_suffix= ac_top_builddir=
18737 fi
18738
18739 case $srcdir in
18740   .)  # No --srcdir option.  We are building in place.
18741     ac_srcdir=.
18742     if test -z "$ac_top_builddir"; then
18743        ac_top_srcdir=.
18744     else
18745        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18746     fi ;;
18747   [\\/]* | ?:[\\/]* )  # Absolute path.
18748     ac_srcdir=$srcdir$ac_dir_suffix;
18749     ac_top_srcdir=$srcdir ;;
18750   *) # Relative path.
18751     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18752     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18753 esac
18754 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18755 # absolute.
18756 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18757 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18758 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18759 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18760
18761
18762   case $srcdir in
18763   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18764       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18765   esac
18766
18767   # Make a symlink if possible; otherwise try a hard link.
18768   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18769     ln $srcdir/$ac_source $ac_dest ||
18770     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18771 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18772    { (exit 1); exit 1; }; }
18773 done
18774 _ACEOF
18775
18776 cat >>$CONFIG_STATUS <<\_ACEOF
18777
18778 { (exit 0); exit 0; }
18779 _ACEOF
18780 chmod +x $CONFIG_STATUS
18781 ac_clean_files=$ac_clean_files_save
18782
18783
18784 # configure is writing to config.log, and then calls config.status.
18785 # config.status does its own redirection, appending to config.log.
18786 # Unfortunately, on DOS this fails, as config.log is still kept open
18787 # by configure, so config.status won't be able to write to it; its
18788 # output is simply discarded.  So we exec the FD to /dev/null,
18789 # effectively closing config.log, so it can be properly (re)opened and
18790 # appended to by config.status.  When coming back to configure, we
18791 # need to make the FD available again.
18792 if test "$no_create" != yes; then
18793   ac_cs_success=:
18794   exec 5>/dev/null
18795   $SHELL $CONFIG_STATUS || ac_cs_success=false
18796   exec 5>>config.log
18797   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18798   # would make configure fail if this is the last instruction.
18799   $ac_cs_success || { (exit 1); exit 1; }
18800 fi
18801