]> granicus.if.org Git - postgresql/blob - configure
Stamp configure.in with 7.3b1, not just 7.3. Seems Marc does that
[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.3b1.
4 #
5 # Report bugs to <pgsql-bugs@postgresql.org>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright 2002 PostgreSQL Global Development Group
13
14 if expr a : '\(a\)' >/dev/null 2>&1; then
15   as_expr=expr
16 else
17   as_expr=false
18 fi
19
20
21 ## --------------------- ##
22 ## M4sh Initialization.  ##
23 ## --------------------- ##
24
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27   emulate sh
28   NULLCMD=:
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30   set -o posix
31 fi
32
33 # NLS nuisances.
34 # Support unset when possible.
35 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
36   as_unset=unset
37 else
38   as_unset=false
39 fi
40
41 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
42     { $as_unset LANG || test "${LANG+set}" != set; } ||
43       { LANG=C; export LANG; }
44 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
45     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
46       { LC_ALL=C; export LC_ALL; }
47 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
48     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
49       { LC_TIME=C; export LC_TIME; }
50 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
51     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
52       { LC_CTYPE=C; export LC_CTYPE; }
53 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
54     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
55       { LANGUAGE=C; export LANGUAGE; }
56 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
57     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
58       { LC_COLLATE=C; export LC_COLLATE; }
59 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
60     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
61       { LC_NUMERIC=C; export LC_NUMERIC; }
62 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
63     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
64       { LC_MESSAGES=C; export LC_MESSAGES; }
65
66
67 # Name of the executable.
68 as_me=`(basename "$0") 2>/dev/null ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conftest.sh
90   echo  "exit 0"   >>conftest.sh
91   chmod +x conftest.sh
92   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conftest.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              CONFIG_SHELL=$as_dir/$as_base
146              export CONFIG_SHELL
147              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
148            fi;;
149          esac
150        done
151 done
152 ;;
153   esac
154
155   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156   # uniformly replaced by the line number.  The first 'sed' inserts a
157   # line-number line before each line; the second 'sed' does the real
158   # work.  The second script uses 'N' to pair each line-number line
159   # with the numbered line, and appends trailing '-' during
160   # substitution so that $LINENO is not a special case at line end.
161   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
163   sed '=' <$as_myself |
164     sed '
165       N
166       s,$,-,
167       : loop
168       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169       t loop
170       s,-$,,
171       s,^['$as_cr_digits']*\n,,
172     ' >$as_me.lineno &&
173   chmod +x $as_me.lineno ||
174     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175    { (exit 1); exit 1; }; }
176
177   # Don't try to exec as it changes $[0], causing all sort of problems
178   # (the dirname of $[0] is not the place where we might find the
179   # original and so on.  Autoconf is especially sensible to this).
180   . ./$as_me.lineno
181   # Exit status is that of the last command.
182   exit
183 }
184
185
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187   *c*,-n*) ECHO_N= ECHO_C='
188 ' ECHO_T='      ' ;;
189   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 esac
192
193 if expr a : '\(a\)' >/dev/null 2>&1; then
194   as_expr=expr
195 else
196   as_expr=false
197 fi
198
199 rm -f conf$$ conf$$.exe conf$$.file
200 echo >conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202   # We could just check for DJGPP; but this test a) works b) is more generic
203   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204   if test -f conf$$.exe; then
205     # Don't use ln at all; we don't have any links
206     as_ln_s='cp -p'
207   else
208     as_ln_s='ln -s'
209   fi
210 elif ln conf$$.file conf$$ 2>/dev/null; then
211   as_ln_s=ln
212 else
213   as_ln_s='cp -p'
214 fi
215 rm -f conf$$ conf$$.exe conf$$.file
216
217 as_executable_p="test -f"
218
219 # Sed expression to map a string onto a valid CPP name.
220 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
221
222 # Sed expression to map a string onto a valid variable name.
223 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
224
225
226 # IFS
227 # We need space, tab and new line, in precisely that order.
228 as_nl='
229 '
230 IFS="   $as_nl"
231
232 # CDPATH.
233 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
234
235
236 # Name of the host.
237 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
238 # so uname gets run too.
239 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
240
241 exec 6>&1
242
243 #
244 # Initializations.
245 #
246 ac_default_prefix=/usr/local
247 cross_compiling=no
248 subdirs=
249 MFLAGS=
250 MAKEFLAGS=
251 SHELL=${CONFIG_SHELL-/bin/sh}
252
253 # Maximum number of lines to put in a shell here document.
254 # This variable seems obsolete.  It should probably be removed, and
255 # only ac_max_sed_lines should be used.
256 : ${ac_max_here_lines=38}
257
258 # Identity of this package.
259 PACKAGE_NAME='PostgreSQL'
260 PACKAGE_TARNAME='postgresql'
261 PACKAGE_VERSION='7.3b1'
262 PACKAGE_STRING='PostgreSQL 7.3b1'
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.3b1 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.3b1:";;
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-recode         enable character set recode support
842   --enable-nls[=LANGUAGES]  enable Native Language Support
843   --disable-shared        do not build shared libraries
844   --disable-rpath         do not embed shared library search path in executables
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   --disable-largefile     omit support for large files
849
850 Optional Packages:
851   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
852   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
853
854   --with-includes=DIRS    look for additional header files in DIRS
855   --with-libraries=DIRS   look for additional libraries in DIRS
856   --with-libs=DIRS        alternative spelling of --with-libraries
857   --with-pgport=PORTNUM   change default port number 5432
858   --with-maxbackends=N    set default maximum number of connections 32
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 PL/Perl
864   --with-python           build Python interface module
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-openssl[=DIR]    build with OpenSSL support [/usr/local/ssl]
871   --without-readline      do not use Readline
872   --without-zlib          do not use Zlib
873   --with-gnu-ld           assume the C compiler uses GNU ld default=no
874
875 Some influential environment variables:
876   CC          C compiler command
877   CFLAGS      C compiler flags
878   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
879               nonstandard directory <lib dir>
880   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
881               headers in a nonstandard directory <include dir>
882   CPP         C preprocessor
883   DOCBOOKSTYLE
884               location of DocBook stylesheets
885
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
888
889 Report bugs to <pgsql-bugs@postgresql.org>.
890 _ACEOF
891 fi
892
893 if test "$ac_init_help" = "recursive"; then
894   # If there are subdirs, report their specific --help.
895   ac_popdir=`pwd`
896   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897     test -d $ac_dir || continue
898     ac_builddir=.
899
900 if test "$ac_dir" != .; then
901   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902   # A "../" for each directory in $ac_dir_suffix.
903   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904 else
905   ac_dir_suffix= ac_top_builddir=
906 fi
907
908 case $srcdir in
909   .)  # No --srcdir option.  We are building in place.
910     ac_srcdir=.
911     if test -z "$ac_top_builddir"; then
912        ac_top_srcdir=.
913     else
914        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915     fi ;;
916   [\\/]* | ?:[\\/]* )  # Absolute path.
917     ac_srcdir=$srcdir$ac_dir_suffix;
918     ac_top_srcdir=$srcdir ;;
919   *) # Relative path.
920     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921     ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 esac
923 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
924 # absolute.
925 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
926 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
927 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
928 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
929
930     cd $ac_dir
931     # Check for guested configure; otherwise get Cygnus style configure.
932     if test -f $ac_srcdir/configure.gnu; then
933       echo
934       $SHELL $ac_srcdir/configure.gnu  --help=recursive
935     elif test -f $ac_srcdir/configure; then
936       echo
937       $SHELL $ac_srcdir/configure  --help=recursive
938     elif test -f $ac_srcdir/configure.ac ||
939            test -f $ac_srcdir/configure.in; then
940       echo
941       $ac_configure --help
942     else
943       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
944     fi
945     cd $ac_popdir
946   done
947 fi
948
949 test -n "$ac_init_help" && exit 0
950 if $ac_init_version; then
951   cat <<\_ACEOF
952 PostgreSQL configure 7.3b1
953 generated by GNU Autoconf 2.53
954
955 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
956 Free Software Foundation, Inc.
957 This configure script is free software; the Free Software Foundation
958 gives unlimited permission to copy, distribute and modify it.
959
960 Copyright 2002 PostgreSQL Global Development Group
961 _ACEOF
962   exit 0
963 fi
964 exec 5>config.log
965 cat >&5 <<_ACEOF
966 This file contains any messages produced by compilers while
967 running configure, to aid debugging if configure makes a mistake.
968
969 It was created by PostgreSQL $as_me 7.3b1, which was
970 generated by GNU Autoconf 2.53.  Invocation command line was
971
972   $ $0 $@
973
974 _ACEOF
975 {
976 cat <<_ASUNAME
977 ## --------- ##
978 ## Platform. ##
979 ## --------- ##
980
981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
986
987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
988 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
989
990 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
991 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
993 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
994 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
995 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
996 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
997
998 _ASUNAME
999
1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1001 for as_dir in $PATH
1002 do
1003   IFS=$as_save_IFS
1004   test -z "$as_dir" && as_dir=.
1005   echo "PATH: $as_dir"
1006 done
1007
1008 } >&5
1009
1010 cat >&5 <<_ACEOF
1011
1012
1013 ## ----------- ##
1014 ## Core tests. ##
1015 ## ----------- ##
1016
1017 _ACEOF
1018
1019
1020 # Keep a trace of the command line.
1021 # Strip out --no-create and --no-recursion so they do not pile up.
1022 # Also quote any args containing shell meta-characters.
1023 ac_configure_args=
1024 ac_sep=
1025 for ac_arg
1026 do
1027   case $ac_arg in
1028   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029   | --no-cr | --no-c | -n ) continue ;;
1030   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032     continue ;;
1033   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1034     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1035   esac
1036   case " $ac_configure_args " in
1037     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1038     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1039        ac_sep=" " ;;
1040   esac
1041   # Get rid of the leading space.
1042 done
1043
1044 # When interrupted or exit'd, cleanup temporary files, and complete
1045 # config.log.  We remove comments because anyway the quotes in there
1046 # would cause problems or look ugly.
1047 # WARNING: Be sure not to use single quotes in there, as some shells,
1048 # such as our DU 5.0 friend, will then `close' the trap.
1049 trap 'exit_status=$?
1050   # Save into config.log some information that might help in debugging.
1051   {
1052     echo
1053     cat <<\_ASBOX
1054 ## ---------------- ##
1055 ## Cache variables. ##
1056 ## ---------------- ##
1057 _ASBOX
1058     echo
1059     # The following way of writing the cache mishandles newlines in values,
1060 {
1061   (set) 2>&1 |
1062     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1063     *ac_space=\ *)
1064       sed -n \
1065         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1066           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1067       ;;
1068     *)
1069       sed -n \
1070         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1071       ;;
1072     esac;
1073 }
1074     echo
1075     if test -s confdefs.h; then
1076       cat <<\_ASBOX
1077 ## ----------- ##
1078 ## confdefs.h. ##
1079 ## ----------- ##
1080 _ASBOX
1081       echo
1082       sed "/^$/d" confdefs.h
1083       echo
1084     fi
1085     test "$ac_signal" != 0 &&
1086       echo "$as_me: caught signal $ac_signal"
1087     echo "$as_me: exit $exit_status"
1088   } >&5
1089   rm -f core core.* *.core &&
1090   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1091     exit $exit_status
1092      ' 0
1093 for ac_signal in 1 2 13 15; do
1094   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1095 done
1096 ac_signal=0
1097
1098 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1099 rm -rf conftest* confdefs.h
1100 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1101 echo >confdefs.h
1102
1103 # Predefined preprocessor variables.
1104
1105 cat >>confdefs.h <<_ACEOF
1106 #define PACKAGE_NAME "$PACKAGE_NAME"
1107 _ACEOF
1108
1109
1110 cat >>confdefs.h <<_ACEOF
1111 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1112 _ACEOF
1113
1114
1115 cat >>confdefs.h <<_ACEOF
1116 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1117 _ACEOF
1118
1119
1120 cat >>confdefs.h <<_ACEOF
1121 #define PACKAGE_STRING "$PACKAGE_STRING"
1122 _ACEOF
1123
1124
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1127 _ACEOF
1128
1129
1130 # Let the site file select an alternate cache file if it wants to.
1131 # Prefer explicitly selected file to automatically selected ones.
1132 if test -z "$CONFIG_SITE"; then
1133   if test "x$prefix" != xNONE; then
1134     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1135   else
1136     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1137   fi
1138 fi
1139 for ac_site_file in $CONFIG_SITE; do
1140   if test -r "$ac_site_file"; then
1141     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1142 echo "$as_me: loading site script $ac_site_file" >&6;}
1143     sed 's/^/| /' "$ac_site_file" >&5
1144     . "$ac_site_file"
1145   fi
1146 done
1147
1148 if test -r "$cache_file"; then
1149   # Some versions of bash will fail to source /dev/null (special
1150   # files actually), so we avoid doing that.
1151   if test -f "$cache_file"; then
1152     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1153 echo "$as_me: loading cache $cache_file" >&6;}
1154     case $cache_file in
1155       [\\/]* | ?:[\\/]* ) . $cache_file;;
1156       *)                      . ./$cache_file;;
1157     esac
1158   fi
1159 else
1160   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1161 echo "$as_me: creating cache $cache_file" >&6;}
1162   >$cache_file
1163 fi
1164
1165 # Check that the precious variables saved in the cache have kept the same
1166 # value.
1167 ac_cache_corrupted=false
1168 for ac_var in `(set) 2>&1 |
1169                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1170   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1171   eval ac_new_set=\$ac_env_${ac_var}_set
1172   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1173   eval ac_new_val="\$ac_env_${ac_var}_value"
1174   case $ac_old_set,$ac_new_set in
1175     set,)
1176       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1177 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1178       ac_cache_corrupted=: ;;
1179     ,set)
1180       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1181 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1182       ac_cache_corrupted=: ;;
1183     ,);;
1184     *)
1185       if test "x$ac_old_val" != "x$ac_new_val"; then
1186         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1187 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1188         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1189 echo "$as_me:   former value:  $ac_old_val" >&2;}
1190         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1191 echo "$as_me:   current value: $ac_new_val" >&2;}
1192         ac_cache_corrupted=:
1193       fi;;
1194   esac
1195   # Pass precious variables to config.status.
1196   if test "$ac_new_set" = set; then
1197     case $ac_new_val in
1198     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1199       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1200     *) ac_arg=$ac_var=$ac_new_val ;;
1201     esac
1202     case " $ac_configure_args " in
1203       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1204       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1205     esac
1206   fi
1207 done
1208 if $ac_cache_corrupted; then
1209   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1210 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1211   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1212 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1213    { (exit 1); exit 1; }; }
1214 fi
1215
1216 ac_ext=c
1217 ac_cpp='$CPP $CPPFLAGS'
1218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1221
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 ac_aux_dir=
1255 for ac_dir in config $srcdir/config; do
1256   if test -f $ac_dir/install-sh; then
1257     ac_aux_dir=$ac_dir
1258     ac_install_sh="$ac_aux_dir/install-sh -c"
1259     break
1260   elif test -f $ac_dir/install.sh; then
1261     ac_aux_dir=$ac_dir
1262     ac_install_sh="$ac_aux_dir/install.sh -c"
1263     break
1264   elif test -f $ac_dir/shtool; then
1265     ac_aux_dir=$ac_dir
1266     ac_install_sh="$ac_aux_dir/shtool install -c"
1267     break
1268   fi
1269 done
1270 if test -z "$ac_aux_dir"; then
1271   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1272 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1273    { (exit 1); exit 1; }; }
1274 fi
1275 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1276 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1277 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1278
1279
1280 configure_args=$ac_configure_args
1281
1282
1283
1284 cat >>confdefs.h <<_ACEOF
1285 #define PG_VERSION "$PACKAGE_VERSION"
1286 _ACEOF
1287
1288
1289 # Make sure we can run config.sub.
1290 $ac_config_sub sun4 >/dev/null 2>&1 ||
1291   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1292 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1293    { (exit 1); exit 1; }; }
1294
1295 echo "$as_me:$LINENO: checking build system type" >&5
1296 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1297 if test "${ac_cv_build+set}" = set; then
1298   echo $ECHO_N "(cached) $ECHO_C" >&6
1299 else
1300   ac_cv_build_alias=$build_alias
1301 test -z "$ac_cv_build_alias" &&
1302   ac_cv_build_alias=`$ac_config_guess`
1303 test -z "$ac_cv_build_alias" &&
1304   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1305 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1306    { (exit 1); exit 1; }; }
1307 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1308   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1309 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1310    { (exit 1); exit 1; }; }
1311
1312 fi
1313 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1314 echo "${ECHO_T}$ac_cv_build" >&6
1315 build=$ac_cv_build
1316 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1317 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1318 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1319
1320
1321 echo "$as_me:$LINENO: checking host system type" >&5
1322 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1323 if test "${ac_cv_host+set}" = set; then
1324   echo $ECHO_N "(cached) $ECHO_C" >&6
1325 else
1326   ac_cv_host_alias=$host_alias
1327 test -z "$ac_cv_host_alias" &&
1328   ac_cv_host_alias=$ac_cv_build_alias
1329 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1330   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1331 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1332    { (exit 1); exit 1; }; }
1333
1334 fi
1335 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1336 echo "${ECHO_T}$ac_cv_host" >&6
1337 host=$ac_cv_host
1338 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1339 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1340 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1341
1342
1343
1344 template=
1345 echo "$as_me:$LINENO: checking which template to use" >&5
1346 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1347
1348
1349
1350
1351 # Check whether --with-template or --without-template was given.
1352 if test "${with_template+set}" = set; then
1353   withval="$with_template"
1354
1355   case $withval in
1356     yes)
1357       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1358 echo "$as_me: error: argument required for --with-template option" >&2;}
1359    { (exit 1); exit 1; }; }
1360       ;;
1361     no)
1362       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1363 echo "$as_me: error: argument required for --with-template option" >&2;}
1364    { (exit 1); exit 1; }; }
1365       ;;
1366     *)
1367
1368   case $withval in
1369     list)   echo; ls "$srcdir/src/template"; exit;;
1370     *)      if test -f "$srcdir/src/template/$with_template" ; then
1371               template=$withval
1372             else
1373               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1374 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1375    { (exit 1); exit 1; }; }
1376             fi;;
1377   esac
1378
1379       ;;
1380   esac
1381
1382 else
1383
1384   # --with-template not given
1385
1386 case $host_os in
1387      aix*) template=aix ;;
1388     beos*) template=beos ;;
1389     bsdi*) template=bsdi ;;
1390   cygwin*) template=win ;;
1391   darwin*) template=darwin ;;
1392     dgux*) template=dgux ;;
1393  freebsd*) template=freebsd ;;
1394     hpux*) template=hpux ;;
1395     irix*) template=irix5 ;;
1396    linux*) template=linux ;;
1397   netbsd*) template=netbsd ;;
1398 nextstep*) template=nextstep ;;
1399  openbsd*) template=openbsd ;;
1400      osf*) template=osf ;;
1401      qnx*) template=qnx4 ;;
1402      sco*) template=sco ;;
1403  solaris*) template=solaris ;;
1404    sunos*) template=sunos4 ;;
1405  sysv4.2*)
1406         case $host_vendor in
1407           univel) template=univel ;;
1408         esac ;;
1409    sysv4*) template=svr4 ;;
1410    sysv5*) template=unixware ;;
1411   ultrix*) template=ultrix4 ;;
1412 esac
1413
1414   if test x"$template" = x"" ; then
1415     { { echo "$as_me:$LINENO: error:
1416 *******************************************************************
1417 PostgreSQL has apparently not been ported to your platform yet.
1418 To try a manual configuration, look into the src/template directory
1419 for a similar platform and use the '--with-template=' option.
1420
1421 Please also contact <pgsql-ports@postgresql.org> to see about
1422 rectifying this.  Include the above 'checking host system type...'
1423 line.
1424 *******************************************************************
1425 " >&5
1426 echo "$as_me: error:
1427 *******************************************************************
1428 PostgreSQL has apparently not been ported to your platform yet.
1429 To try a manual configuration, look into the src/template directory
1430 for a similar platform and use the '--with-template=' option.
1431
1432 Please also contact <pgsql-ports@postgresql.org> to see about
1433 rectifying this.  Include the above 'checking host system type...'
1434 line.
1435 *******************************************************************
1436 " >&2;}
1437    { (exit 1); exit 1; }; }
1438   fi
1439
1440
1441 fi;
1442
1443
1444 echo "$as_me:$LINENO: result: $template" >&5
1445 echo "${ECHO_T}$template" >&6
1446
1447 PORTNAME=$template
1448
1449
1450 # Pick right test-and-set (TAS) code.  Most platforms have inline
1451 # assembler code in src/include/storage/s_lock.h, so we just use
1452 # a dummy file here.
1453 case $host in
1454   *-*-hpux*)        need_tas=yes; tas_file=hpux.s ;;
1455   sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1456   i?86-*-solaris*)   need_tas=yes; tas_file=solaris_i386.s ;;
1457   *)                need_tas=no;  tas_file=dummy.s ;;
1458 esac
1459 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1460
1461
1462 if test "$need_tas" = yes ; then
1463   TAS=tas.o
1464 fi
1465
1466
1467
1468
1469 ##
1470 ## Command line options
1471 ##
1472
1473
1474 #
1475 # Add non-standard directories to the include path
1476 #
1477
1478
1479
1480 # Check whether --with-includes or --without-includes was given.
1481 if test "${with_includes+set}" = set; then
1482   withval="$with_includes"
1483
1484   case $withval in
1485     yes)
1486       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1487 echo "$as_me: error: argument required for --with-includes option" >&2;}
1488    { (exit 1); exit 1; }; }
1489       ;;
1490     no)
1491       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1492 echo "$as_me: error: argument required for --with-includes option" >&2;}
1493    { (exit 1); exit 1; }; }
1494       ;;
1495     *)
1496
1497       ;;
1498   esac
1499
1500 fi;
1501
1502
1503
1504 #
1505 # Add non-standard directories to the library search path
1506 #
1507
1508
1509
1510 # Check whether --with-libraries or --without-libraries was given.
1511 if test "${with_libraries+set}" = set; then
1512   withval="$with_libraries"
1513
1514   case $withval in
1515     yes)
1516       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1517 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1518    { (exit 1); exit 1; }; }
1519       ;;
1520     no)
1521       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1522 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1523    { (exit 1); exit 1; }; }
1524       ;;
1525     *)
1526       LIBRARY_DIRS=$withval
1527       ;;
1528   esac
1529
1530 fi;
1531
1532
1533
1534
1535
1536 # Check whether --with-libs or --without-libs was given.
1537 if test "${with_libs+set}" = set; then
1538   withval="$with_libs"
1539
1540   case $withval in
1541     yes)
1542       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1543 echo "$as_me: error: argument required for --with-libs option" >&2;}
1544    { (exit 1); exit 1; }; }
1545       ;;
1546     no)
1547       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1548 echo "$as_me: error: argument required for --with-libs option" >&2;}
1549    { (exit 1); exit 1; }; }
1550       ;;
1551     *)
1552       LIBRARY_DIRS=$withval
1553       ;;
1554   esac
1555
1556 fi;
1557
1558
1559
1560 #
1561 # 64-bit integer date/time storage (--enable-integer-datetimes)
1562 #
1563 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1564 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1565
1566
1567 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1568 if test "${enable_integer_datetimes+set}" = set; then
1569   enableval="$enable_integer_datetimes"
1570
1571   case $enableval in
1572     yes)
1573
1574 cat >>confdefs.h <<\_ACEOF
1575 #define USE_INTEGER_DATETIMES 1
1576 _ACEOF
1577
1578       ;;
1579     no)
1580       :
1581       ;;
1582     *)
1583       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1584 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1585    { (exit 1); exit 1; }; }
1586       ;;
1587   esac
1588
1589 else
1590   enable_integer_datetimes=no
1591
1592 fi;
1593
1594 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1595 echo "${ECHO_T}$enable_integer_datetimes" >&6
1596
1597
1598 # Character set recode (--enable-recode)
1599 #
1600 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1601 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1602
1603
1604 # Check whether --enable-recode or --disable-recode was given.
1605 if test "${enable_recode+set}" = set; then
1606   enableval="$enable_recode"
1607
1608   case $enableval in
1609     yes)
1610
1611 cat >>confdefs.h <<\_ACEOF
1612 #define CYR_RECODE 1
1613 _ACEOF
1614
1615       ;;
1616     no)
1617       :
1618       ;;
1619     *)
1620       { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1621 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1622    { (exit 1); exit 1; }; }
1623       ;;
1624   esac
1625
1626 else
1627   enable_recode=no
1628
1629 fi;
1630
1631 echo "$as_me:$LINENO: result: $enable_recode" >&5
1632 echo "${ECHO_T}$enable_recode" >&6
1633
1634
1635 #
1636 # NLS
1637 #
1638 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1639 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1640
1641
1642 # Check whether --enable-nls or --disable-nls was given.
1643 if test "${enable_nls+set}" = set; then
1644   enableval="$enable_nls"
1645
1646   case $enableval in
1647     yes)
1648       :
1649       ;;
1650     no)
1651       :
1652       ;;
1653     *)
1654       enable_nls=yes
1655 WANTED_LANGUAGES=$enableval
1656       ;;
1657   esac
1658
1659 else
1660   enable_nls=no
1661 fi;
1662
1663
1664 if test "$enable_nls" = yes; then
1665
1666 cat >>confdefs.h <<\_ACEOF
1667 #define ENABLE_NLS 1
1668 _ACEOF
1669
1670 fi
1671
1672 echo "$as_me:$LINENO: result: $enable_nls" >&5
1673 echo "${ECHO_T}$enable_nls" >&6
1674
1675
1676
1677 #
1678 # Default port number (--with-pgport), default 5432
1679 #
1680 echo "$as_me:$LINENO: checking for default port number" >&5
1681 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1682
1683
1684
1685 # Check whether --with-pgport or --without-pgport was given.
1686 if test "${with_pgport+set}" = set; then
1687   withval="$with_pgport"
1688
1689   case $withval in
1690     yes)
1691       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1692 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1693    { (exit 1); exit 1; }; }
1694       ;;
1695     no)
1696       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1697 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1698    { (exit 1); exit 1; }; }
1699       ;;
1700     *)
1701       default_port=$withval
1702       ;;
1703   esac
1704
1705 else
1706   default_port=5432
1707 fi;
1708
1709 echo "$as_me:$LINENO: result: $default_port" >&5
1710 echo "${ECHO_T}$default_port" >&6
1711 # Need both of these because some places want an integer and some a string
1712
1713 cat >>confdefs.h <<_ACEOF
1714 #define DEF_PGPORT ${default_port}
1715 _ACEOF
1716
1717
1718 cat >>confdefs.h <<_ACEOF
1719 #define DEF_PGPORT_STR "${default_port}"
1720 _ACEOF
1721
1722
1723
1724 #
1725 # Maximum number of allowed connections (--with-maxbackends), default 32
1726 #
1727 echo "$as_me:$LINENO: checking for default soft limit on number of connections" >&5
1728 echo $ECHO_N "checking for default soft limit on number of connections... $ECHO_C" >&6
1729
1730
1731
1732 # Check whether --with-maxbackends or --without-maxbackends was given.
1733 if test "${with_maxbackends+set}" = set; then
1734   withval="$with_maxbackends"
1735
1736   case $withval in
1737     yes)
1738       { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1739 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1740    { (exit 1); exit 1; }; }
1741       ;;
1742     no)
1743       { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1744 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1745    { (exit 1); exit 1; }; }
1746       ;;
1747     *)
1748
1749       ;;
1750   esac
1751
1752 else
1753   with_maxbackends=32
1754 fi;
1755
1756 echo "$as_me:$LINENO: result: $with_maxbackends" >&5
1757 echo "${ECHO_T}$with_maxbackends" >&6
1758
1759 cat >>confdefs.h <<_ACEOF
1760 #define DEF_MAXBACKENDS $with_maxbackends
1761 _ACEOF
1762
1763
1764
1765 #
1766 # Option to disable shared libraries
1767 #
1768
1769
1770 # Check whether --enable-shared or --disable-shared was given.
1771 if test "${enable_shared+set}" = set; then
1772   enableval="$enable_shared"
1773
1774   case $enableval in
1775     yes)
1776       :
1777       ;;
1778     no)
1779       :
1780       ;;
1781     *)
1782       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1783 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1784    { (exit 1); exit 1; }; }
1785       ;;
1786   esac
1787
1788 else
1789   enable_shared=yes
1790
1791 fi;
1792
1793
1794
1795 #
1796 # '-rpath'-like feature can be disabled
1797 #
1798
1799
1800 # Check whether --enable-rpath or --disable-rpath was given.
1801 if test "${enable_rpath+set}" = set; then
1802   enableval="$enable_rpath"
1803
1804   case $enableval in
1805     yes)
1806       :
1807       ;;
1808     no)
1809       :
1810       ;;
1811     *)
1812       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1813 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1814    { (exit 1); exit 1; }; }
1815       ;;
1816   esac
1817
1818 else
1819   enable_rpath=yes
1820
1821 fi;
1822
1823
1824
1825
1826 #
1827 # --enable-debug adds -g to compiler flags
1828 #
1829
1830
1831 # Check whether --enable-debug or --disable-debug was given.
1832 if test "${enable_debug+set}" = set; then
1833   enableval="$enable_debug"
1834
1835   case $enableval in
1836     yes)
1837       :
1838       ;;
1839     no)
1840       :
1841       ;;
1842     *)
1843       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1844 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1845    { (exit 1); exit 1; }; }
1846       ;;
1847   esac
1848
1849 else
1850   enable_debug=no
1851
1852 fi;
1853
1854
1855
1856 #
1857 # C compiler
1858 #
1859
1860 # For historical reasons you can also use --with-CC to specify the C compiler
1861 # to use, although the standard way to do this is to set the CC environment
1862 # variable.
1863
1864
1865
1866 # Check whether --with-CC or --without-CC was given.
1867 if test "${with_CC+set}" = set; then
1868   withval="$with_CC"
1869
1870   case $withval in
1871     yes)
1872       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1873 echo "$as_me: error: argument required for --with-CC option" >&2;}
1874    { (exit 1); exit 1; }; }
1875       ;;
1876     no)
1877       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1878 echo "$as_me: error: argument required for --with-CC option" >&2;}
1879    { (exit 1); exit 1; }; }
1880       ;;
1881     *)
1882       CC=$with_CC
1883       ;;
1884   esac
1885
1886 fi;
1887
1888
1889 case $template in
1890   aix) pgac_cc_list="gcc xlc";;
1891  irix) pgac_cc_list="cc";; # no gcc
1892     *) pgac_cc_list="gcc cc";;
1893 esac
1894
1895 ac_ext=c
1896 ac_cpp='$CPP $CPPFLAGS'
1897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1900 if test -n "$ac_tool_prefix"; then
1901   for ac_prog in $pgac_cc_list
1902   do
1903     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1905 echo "$as_me:$LINENO: checking for $ac_word" >&5
1906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1907 if test "${ac_cv_prog_CC+set}" = set; then
1908   echo $ECHO_N "(cached) $ECHO_C" >&6
1909 else
1910   if test -n "$CC"; then
1911   ac_cv_prog_CC="$CC" # Let the user override the test.
1912 else
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914 for as_dir in $PATH
1915 do
1916   IFS=$as_save_IFS
1917   test -z "$as_dir" && as_dir=.
1918   for ac_exec_ext in '' $ac_executable_extensions; do
1919   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1920     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1922     break 2
1923   fi
1924 done
1925 done
1926
1927 fi
1928 fi
1929 CC=$ac_cv_prog_CC
1930 if test -n "$CC"; then
1931   echo "$as_me:$LINENO: result: $CC" >&5
1932 echo "${ECHO_T}$CC" >&6
1933 else
1934   echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6
1936 fi
1937
1938     test -n "$CC" && break
1939   done
1940 fi
1941 if test -z "$CC"; then
1942   ac_ct_CC=$CC
1943   for ac_prog in $pgac_cc_list
1944 do
1945   # Extract the first word of "$ac_prog", so it can be a program name with args.
1946 set dummy $ac_prog; ac_word=$2
1947 echo "$as_me:$LINENO: checking for $ac_word" >&5
1948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1949 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1950   echo $ECHO_N "(cached) $ECHO_C" >&6
1951 else
1952   if test -n "$ac_ct_CC"; then
1953   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1954 else
1955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956 for as_dir in $PATH
1957 do
1958   IFS=$as_save_IFS
1959   test -z "$as_dir" && as_dir=.
1960   for ac_exec_ext in '' $ac_executable_extensions; do
1961   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1962     ac_cv_prog_ac_ct_CC="$ac_prog"
1963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1964     break 2
1965   fi
1966 done
1967 done
1968
1969 fi
1970 fi
1971 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1972 if test -n "$ac_ct_CC"; then
1973   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1974 echo "${ECHO_T}$ac_ct_CC" >&6
1975 else
1976   echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6
1978 fi
1979
1980   test -n "$ac_ct_CC" && break
1981 done
1982
1983   CC=$ac_ct_CC
1984 fi
1985
1986
1987 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1988 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1989    { (exit 1); exit 1; }; }
1990
1991 # Provide some information about the compiler.
1992 echo "$as_me:$LINENO:" \
1993      "checking for C compiler version" >&5
1994 ac_compiler=`set X $ac_compile; echo $2`
1995 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1996   (eval $ac_compiler --version </dev/null >&5) 2>&5
1997   ac_status=$?
1998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999   (exit $ac_status); }
2000 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2001   (eval $ac_compiler -v </dev/null >&5) 2>&5
2002   ac_status=$?
2003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004   (exit $ac_status); }
2005 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2006   (eval $ac_compiler -V </dev/null >&5) 2>&5
2007   ac_status=$?
2008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009   (exit $ac_status); }
2010
2011 cat >conftest.$ac_ext <<_ACEOF
2012 #line $LINENO "configure"
2013 #include "confdefs.h"
2014
2015 #ifdef F77_DUMMY_MAIN
2016 #  ifdef __cplusplus
2017      extern "C"
2018 #  endif
2019    int F77_DUMMY_MAIN() { return 1; }
2020 #endif
2021 int
2022 main ()
2023 {
2024
2025   ;
2026   return 0;
2027 }
2028 _ACEOF
2029 ac_clean_files_save=$ac_clean_files
2030 ac_clean_files="$ac_clean_files a.out a.exe"
2031 # Try to create an executable without -o first, disregard a.out.
2032 # It will help us diagnose broken compilers, and finding out an intuition
2033 # of exeext.
2034 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2035 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2036 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2037 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2038   (eval $ac_link_default) 2>&5
2039   ac_status=$?
2040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041   (exit $ac_status); }; then
2042   # Find the output, starting from the most likely.  This scheme is
2043 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2044 # resort.
2045
2046 # Be careful to initialize this variable, since it used to be cached.
2047 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2048 ac_cv_exeext=
2049 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2050                 ls a.out conftest 2>/dev/null;
2051                 ls a.* conftest.* 2>/dev/null`; do
2052   case $ac_file in
2053     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2054     a.out ) # We found the default executable, but exeext='' is most
2055             # certainly right.
2056             break;;
2057     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2058           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2059           export ac_cv_exeext
2060           break;;
2061     * ) break;;
2062   esac
2063 done
2064 else
2065   echo "$as_me: failed program was:" >&5
2066 cat conftest.$ac_ext >&5
2067 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2068 echo "$as_me: error: C compiler cannot create executables" >&2;}
2069    { (exit 77); exit 77; }; }
2070 fi
2071
2072 ac_exeext=$ac_cv_exeext
2073 echo "$as_me:$LINENO: result: $ac_file" >&5
2074 echo "${ECHO_T}$ac_file" >&6
2075
2076 # Check the compiler produces executables we can run.  If not, either
2077 # the compiler is broken, or we cross compile.
2078 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2079 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2080 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2081 # If not cross compiling, check that we can run a simple program.
2082 if test "$cross_compiling" != yes; then
2083   if { ac_try='./$ac_file'
2084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2085   (eval $ac_try) 2>&5
2086   ac_status=$?
2087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088   (exit $ac_status); }; }; then
2089     cross_compiling=no
2090   else
2091     if test "$cross_compiling" = maybe; then
2092         cross_compiling=yes
2093     else
2094         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2095 If you meant to cross compile, use \`--host'." >&5
2096 echo "$as_me: error: cannot run C compiled programs.
2097 If you meant to cross compile, use \`--host'." >&2;}
2098    { (exit 1); exit 1; }; }
2099     fi
2100   fi
2101 fi
2102 echo "$as_me:$LINENO: result: yes" >&5
2103 echo "${ECHO_T}yes" >&6
2104
2105 rm -f a.out a.exe conftest$ac_cv_exeext
2106 ac_clean_files=$ac_clean_files_save
2107 # Check the compiler produces executables we can run.  If not, either
2108 # the compiler is broken, or we cross compile.
2109 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2110 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2111 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2112 echo "${ECHO_T}$cross_compiling" >&6
2113
2114 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2115 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2117   (eval $ac_link) 2>&5
2118   ac_status=$?
2119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120   (exit $ac_status); }; then
2121   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2122 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2123 # work properly (i.e., refer to `conftest.exe'), while it won't with
2124 # `rm'.
2125 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2126   case $ac_file in
2127     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2128     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2129           export ac_cv_exeext
2130           break;;
2131     * ) break;;
2132   esac
2133 done
2134 else
2135   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2136 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2137    { (exit 1); exit 1; }; }
2138 fi
2139
2140 rm -f conftest$ac_cv_exeext
2141 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2142 echo "${ECHO_T}$ac_cv_exeext" >&6
2143
2144 rm -f conftest.$ac_ext
2145 EXEEXT=$ac_cv_exeext
2146 ac_exeext=$EXEEXT
2147 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2148 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2149 if test "${ac_cv_objext+set}" = set; then
2150   echo $ECHO_N "(cached) $ECHO_C" >&6
2151 else
2152   cat >conftest.$ac_ext <<_ACEOF
2153 #line $LINENO "configure"
2154 #include "confdefs.h"
2155
2156 #ifdef F77_DUMMY_MAIN
2157 #  ifdef __cplusplus
2158      extern "C"
2159 #  endif
2160    int F77_DUMMY_MAIN() { return 1; }
2161 #endif
2162 int
2163 main ()
2164 {
2165
2166   ;
2167   return 0;
2168 }
2169 _ACEOF
2170 rm -f conftest.o conftest.obj
2171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172   (eval $ac_compile) 2>&5
2173   ac_status=$?
2174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175   (exit $ac_status); }; then
2176   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2177   case $ac_file in
2178     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2179     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2180        break;;
2181   esac
2182 done
2183 else
2184   echo "$as_me: failed program was:" >&5
2185 cat conftest.$ac_ext >&5
2186 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2187 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2188    { (exit 1); exit 1; }; }
2189 fi
2190
2191 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2192 fi
2193 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2194 echo "${ECHO_T}$ac_cv_objext" >&6
2195 OBJEXT=$ac_cv_objext
2196 ac_objext=$OBJEXT
2197 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2198 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2199 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2200   echo $ECHO_N "(cached) $ECHO_C" >&6
2201 else
2202   cat >conftest.$ac_ext <<_ACEOF
2203 #line $LINENO "configure"
2204 #include "confdefs.h"
2205
2206 #ifdef F77_DUMMY_MAIN
2207 #  ifdef __cplusplus
2208      extern "C"
2209 #  endif
2210    int F77_DUMMY_MAIN() { return 1; }
2211 #endif
2212 int
2213 main ()
2214 {
2215 #ifndef __GNUC__
2216        choke me
2217 #endif
2218
2219   ;
2220   return 0;
2221 }
2222 _ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225   (eval $ac_compile) 2>&5
2226   ac_status=$?
2227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228   (exit $ac_status); } &&
2229          { ac_try='test -s conftest.$ac_objext'
2230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231   (eval $ac_try) 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); }; }; then
2235   ac_compiler_gnu=yes
2236 else
2237   echo "$as_me: failed program was:" >&5
2238 cat conftest.$ac_ext >&5
2239 ac_compiler_gnu=no
2240 fi
2241 rm -f conftest.$ac_objext conftest.$ac_ext
2242 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2243
2244 fi
2245 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2246 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2247 GCC=`test $ac_compiler_gnu = yes && echo yes`
2248 ac_test_CFLAGS=${CFLAGS+set}
2249 ac_save_CFLAGS=$CFLAGS
2250 CFLAGS="-g"
2251 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2252 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2253 if test "${ac_cv_prog_cc_g+set}" = set; then
2254   echo $ECHO_N "(cached) $ECHO_C" >&6
2255 else
2256   cat >conftest.$ac_ext <<_ACEOF
2257 #line $LINENO "configure"
2258 #include "confdefs.h"
2259
2260 #ifdef F77_DUMMY_MAIN
2261 #  ifdef __cplusplus
2262      extern "C"
2263 #  endif
2264    int F77_DUMMY_MAIN() { return 1; }
2265 #endif
2266 int
2267 main ()
2268 {
2269
2270   ;
2271   return 0;
2272 }
2273 _ACEOF
2274 rm -f conftest.$ac_objext
2275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2276   (eval $ac_compile) 2>&5
2277   ac_status=$?
2278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279   (exit $ac_status); } &&
2280          { ac_try='test -s conftest.$ac_objext'
2281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282   (eval $ac_try) 2>&5
2283   ac_status=$?
2284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285   (exit $ac_status); }; }; then
2286   ac_cv_prog_cc_g=yes
2287 else
2288   echo "$as_me: failed program was:" >&5
2289 cat conftest.$ac_ext >&5
2290 ac_cv_prog_cc_g=no
2291 fi
2292 rm -f conftest.$ac_objext conftest.$ac_ext
2293 fi
2294 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2295 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2296 if test "$ac_test_CFLAGS" = set; then
2297   CFLAGS=$ac_save_CFLAGS
2298 elif test $ac_cv_prog_cc_g = yes; then
2299   if test "$GCC" = yes; then
2300     CFLAGS="-g -O2"
2301   else
2302     CFLAGS="-g"
2303   fi
2304 else
2305   if test "$GCC" = yes; then
2306     CFLAGS="-O2"
2307   else
2308     CFLAGS=
2309   fi
2310 fi
2311 # Some people use a C++ compiler to compile C.  Since we use `exit',
2312 # in C++ we need to declare it.  In case someone uses the same compiler
2313 # for both compiling C and C++ we need to have the C++ compiler decide
2314 # the declaration of exit, since it's the most demanding environment.
2315 cat >conftest.$ac_ext <<_ACEOF
2316 #ifndef __cplusplus
2317   choke me
2318 #endif
2319 _ACEOF
2320 rm -f conftest.$ac_objext
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322   (eval $ac_compile) 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); } &&
2326          { ac_try='test -s conftest.$ac_objext'
2327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328   (eval $ac_try) 2>&5
2329   ac_status=$?
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); }; }; then
2332   for ac_declaration in \
2333    ''\
2334    '#include <stdlib.h>' \
2335    'extern "C" void std::exit (int) throw (); using std::exit;' \
2336    'extern "C" void std::exit (int); using std::exit;' \
2337    'extern "C" void exit (int) throw ();' \
2338    'extern "C" void exit (int);' \
2339    'void exit (int);'
2340 do
2341   cat >conftest.$ac_ext <<_ACEOF
2342 #line $LINENO "configure"
2343 #include "confdefs.h"
2344 #include <stdlib.h>
2345 $ac_declaration
2346 #ifdef F77_DUMMY_MAIN
2347 #  ifdef __cplusplus
2348      extern "C"
2349 #  endif
2350    int F77_DUMMY_MAIN() { return 1; }
2351 #endif
2352 int
2353 main ()
2354 {
2355 exit (42);
2356   ;
2357   return 0;
2358 }
2359 _ACEOF
2360 rm -f conftest.$ac_objext
2361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362   (eval $ac_compile) 2>&5
2363   ac_status=$?
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); } &&
2366          { ac_try='test -s conftest.$ac_objext'
2367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368   (eval $ac_try) 2>&5
2369   ac_status=$?
2370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371   (exit $ac_status); }; }; then
2372   :
2373 else
2374   echo "$as_me: failed program was:" >&5
2375 cat conftest.$ac_ext >&5
2376 continue
2377 fi
2378 rm -f conftest.$ac_objext conftest.$ac_ext
2379   cat >conftest.$ac_ext <<_ACEOF
2380 #line $LINENO "configure"
2381 #include "confdefs.h"
2382 $ac_declaration
2383 #ifdef F77_DUMMY_MAIN
2384 #  ifdef __cplusplus
2385      extern "C"
2386 #  endif
2387    int F77_DUMMY_MAIN() { return 1; }
2388 #endif
2389 int
2390 main ()
2391 {
2392 exit (42);
2393   ;
2394   return 0;
2395 }
2396 _ACEOF
2397 rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399   (eval $ac_compile) 2>&5
2400   ac_status=$?
2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402   (exit $ac_status); } &&
2403          { ac_try='test -s conftest.$ac_objext'
2404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405   (eval $ac_try) 2>&5
2406   ac_status=$?
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); }; }; then
2409   break
2410 else
2411   echo "$as_me: failed program was:" >&5
2412 cat conftest.$ac_ext >&5
2413 fi
2414 rm -f conftest.$ac_objext conftest.$ac_ext
2415 done
2416 rm -f conftest*
2417 if test -n "$ac_declaration"; then
2418   echo '#ifdef __cplusplus' >>confdefs.h
2419   echo $ac_declaration      >>confdefs.h
2420   echo '#endif'             >>confdefs.h
2421 fi
2422
2423 else
2424   echo "$as_me: failed program was:" >&5
2425 cat conftest.$ac_ext >&5
2426 fi
2427 rm -f conftest.$ac_objext conftest.$ac_ext
2428 ac_ext=c
2429 ac_cpp='$CPP $CPPFLAGS'
2430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2433
2434 # Read the template
2435 . "$srcdir/src/template/$template" || exit
2436
2437 if test "$ac_env_CFLAGS_set" = set; then
2438   CFLAGS=$ac_env_CFLAGS_value
2439 fi
2440 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2441   CFLAGS="$CFLAGS -g"
2442 fi
2443 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2444 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2445 # Check if the compiler still works with the template settings
2446 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2447 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2448
2449 cat >conftest.$ac_ext <<_ACEOF
2450 #line $LINENO "configure"
2451 #include "confdefs.h"
2452
2453 #ifdef F77_DUMMY_MAIN
2454 #  ifdef __cplusplus
2455      extern "C"
2456 #  endif
2457    int F77_DUMMY_MAIN() { return 1; }
2458 #endif
2459 int
2460 main ()
2461 {
2462 return 0;
2463   ;
2464   return 0;
2465 }
2466 _ACEOF
2467 rm -f conftest.$ac_objext conftest$ac_exeext
2468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2469   (eval $ac_link) 2>&5
2470   ac_status=$?
2471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472   (exit $ac_status); } &&
2473          { ac_try='test -s conftest$ac_exeext'
2474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475   (eval $ac_try) 2>&5
2476   ac_status=$?
2477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478   (exit $ac_status); }; }; then
2479   echo "$as_me:$LINENO: result: yes" >&5
2480 echo "${ECHO_T}yes" >&6
2481 else
2482   echo "$as_me: failed program was:" >&5
2483 cat conftest.$ac_ext >&5
2484 echo "$as_me:$LINENO: result: no" >&5
2485 echo "${ECHO_T}no" >&6
2486    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2487 echo "$as_me: error: cannot proceed" >&2;}
2488    { (exit 1); exit 1; }; }
2489 fi
2490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2491 ac_ext=c
2492 ac_cpp='$CPP $CPPFLAGS'
2493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2496 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2497 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2498 # On Suns, sometimes $CPP names a directory.
2499 if test -n "$CPP" && test -d "$CPP"; then
2500   CPP=
2501 fi
2502 if test -z "$CPP"; then
2503   if test "${ac_cv_prog_CPP+set}" = set; then
2504   echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506       # Double quotes because CPP needs to be expanded
2507     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2508     do
2509       ac_preproc_ok=false
2510 for ac_c_preproc_warn_flag in '' yes
2511 do
2512   # Use a header file that comes with gcc, so configuring glibc
2513   # with a fresh cross-compiler works.
2514   # On the NeXT, cc -E runs the code through the compiler's parser,
2515   # not just through cpp. "Syntax error" is here to catch this case.
2516   cat >conftest.$ac_ext <<_ACEOF
2517 #line $LINENO "configure"
2518 #include "confdefs.h"
2519 #include <assert.h>
2520                      Syntax error
2521 _ACEOF
2522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2523   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2524   ac_status=$?
2525   egrep -v '^ *\+' conftest.er1 >conftest.err
2526   rm -f conftest.er1
2527   cat conftest.err >&5
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); } >/dev/null; then
2530   if test -s conftest.err; then
2531     ac_cpp_err=$ac_c_preproc_warn_flag
2532   else
2533     ac_cpp_err=
2534   fi
2535 else
2536   ac_cpp_err=yes
2537 fi
2538 if test -z "$ac_cpp_err"; then
2539   :
2540 else
2541   echo "$as_me: failed program was:" >&5
2542   cat conftest.$ac_ext >&5
2543   # Broken: fails on valid input.
2544 continue
2545 fi
2546 rm -f conftest.err conftest.$ac_ext
2547
2548   # OK, works on sane cases.  Now check whether non-existent headers
2549   # can be detected and how.
2550   cat >conftest.$ac_ext <<_ACEOF
2551 #line $LINENO "configure"
2552 #include "confdefs.h"
2553 #include <ac_nonexistent.h>
2554 _ACEOF
2555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2556   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2557   ac_status=$?
2558   egrep -v '^ *\+' conftest.er1 >conftest.err
2559   rm -f conftest.er1
2560   cat conftest.err >&5
2561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562   (exit $ac_status); } >/dev/null; then
2563   if test -s conftest.err; then
2564     ac_cpp_err=$ac_c_preproc_warn_flag
2565   else
2566     ac_cpp_err=
2567   fi
2568 else
2569   ac_cpp_err=yes
2570 fi
2571 if test -z "$ac_cpp_err"; then
2572   # Broken: success on invalid input.
2573 continue
2574 else
2575   echo "$as_me: failed program was:" >&5
2576   cat conftest.$ac_ext >&5
2577   # Passes both tests.
2578 ac_preproc_ok=:
2579 break
2580 fi
2581 rm -f conftest.err conftest.$ac_ext
2582
2583 done
2584 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2585 rm -f conftest.err conftest.$ac_ext
2586 if $ac_preproc_ok; then
2587   break
2588 fi
2589
2590     done
2591     ac_cv_prog_CPP=$CPP
2592
2593 fi
2594   CPP=$ac_cv_prog_CPP
2595 else
2596   ac_cv_prog_CPP=$CPP
2597 fi
2598 echo "$as_me:$LINENO: result: $CPP" >&5
2599 echo "${ECHO_T}$CPP" >&6
2600 ac_preproc_ok=false
2601 for ac_c_preproc_warn_flag in '' yes
2602 do
2603   # Use a header file that comes with gcc, so configuring glibc
2604   # with a fresh cross-compiler works.
2605   # On the NeXT, cc -E runs the code through the compiler's parser,
2606   # not just through cpp. "Syntax error" is here to catch this case.
2607   cat >conftest.$ac_ext <<_ACEOF
2608 #line $LINENO "configure"
2609 #include "confdefs.h"
2610 #include <assert.h>
2611                      Syntax error
2612 _ACEOF
2613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2614   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2615   ac_status=$?
2616   egrep -v '^ *\+' conftest.er1 >conftest.err
2617   rm -f conftest.er1
2618   cat conftest.err >&5
2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620   (exit $ac_status); } >/dev/null; then
2621   if test -s conftest.err; then
2622     ac_cpp_err=$ac_c_preproc_warn_flag
2623   else
2624     ac_cpp_err=
2625   fi
2626 else
2627   ac_cpp_err=yes
2628 fi
2629 if test -z "$ac_cpp_err"; then
2630   :
2631 else
2632   echo "$as_me: failed program was:" >&5
2633   cat conftest.$ac_ext >&5
2634   # Broken: fails on valid input.
2635 continue
2636 fi
2637 rm -f conftest.err conftest.$ac_ext
2638
2639   # OK, works on sane cases.  Now check whether non-existent headers
2640   # can be detected and how.
2641   cat >conftest.$ac_ext <<_ACEOF
2642 #line $LINENO "configure"
2643 #include "confdefs.h"
2644 #include <ac_nonexistent.h>
2645 _ACEOF
2646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2647   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2648   ac_status=$?
2649   egrep -v '^ *\+' conftest.er1 >conftest.err
2650   rm -f conftest.er1
2651   cat conftest.err >&5
2652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653   (exit $ac_status); } >/dev/null; then
2654   if test -s conftest.err; then
2655     ac_cpp_err=$ac_c_preproc_warn_flag
2656   else
2657     ac_cpp_err=
2658   fi
2659 else
2660   ac_cpp_err=yes
2661 fi
2662 if test -z "$ac_cpp_err"; then
2663   # Broken: success on invalid input.
2664 continue
2665 else
2666   echo "$as_me: failed program was:" >&5
2667   cat conftest.$ac_ext >&5
2668   # Passes both tests.
2669 ac_preproc_ok=:
2670 break
2671 fi
2672 rm -f conftest.err conftest.$ac_ext
2673
2674 done
2675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2676 rm -f conftest.err conftest.$ac_ext
2677 if $ac_preproc_ok; then
2678   :
2679 else
2680   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2681 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2682    { (exit 1); exit 1; }; }
2683 fi
2684
2685 ac_ext=c
2686 ac_cpp='$CPP $CPPFLAGS'
2687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2690
2691
2692
2693 # Create compiler version string
2694 if test x"$GCC" = x"yes" ; then
2695   cc_string="GCC `${CC} --version | sed q`"
2696 else
2697   cc_string=$CC
2698 fi
2699
2700 cat >>confdefs.h <<_ACEOF
2701 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2702 _ACEOF
2703
2704
2705
2706 #
2707 # Automatic dependency tracking
2708 #
2709
2710
2711 # Check whether --enable-depend or --disable-depend was given.
2712 if test "${enable_depend+set}" = set; then
2713   enableval="$enable_depend"
2714
2715   case $enableval in
2716     yes)
2717       autodepend=yes
2718       ;;
2719     no)
2720       :
2721       ;;
2722     *)
2723       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2724 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2725    { (exit 1); exit 1; }; }
2726       ;;
2727   esac
2728
2729 else
2730   enable_depend=no
2731
2732 fi;
2733
2734
2735
2736
2737 #
2738 # Enable assert checks
2739 #
2740
2741
2742 # Check whether --enable-cassert or --disable-cassert was given.
2743 if test "${enable_cassert+set}" = set; then
2744   enableval="$enable_cassert"
2745
2746   case $enableval in
2747     yes)
2748
2749 cat >>confdefs.h <<\_ACEOF
2750 #define USE_ASSERT_CHECKING 1
2751 _ACEOF
2752
2753       ;;
2754     no)
2755       :
2756       ;;
2757     *)
2758       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2759 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2760    { (exit 1); exit 1; }; }
2761       ;;
2762   esac
2763
2764 else
2765   enable_cassert=no
2766
2767 fi;
2768
2769
2770
2771 #
2772 # Include directories
2773 #
2774 ac_save_IFS=$IFS
2775 IFS="${IFS}:"
2776 # SRCH_INC comes from the template file
2777 for dir in $with_includes $SRCH_INC; do
2778   if test -d "$dir"; then
2779     INCLUDES="$INCLUDES -I$dir"
2780   else
2781     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2782 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2783   fi
2784 done
2785 IFS=$ac_save_IFS
2786
2787
2788
2789 #
2790 # Library directories
2791 #
2792 ac_save_IFS=$IFS
2793 IFS="${IFS}:"
2794 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2795 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2796   if test -d "$dir"; then
2797     LIBDIRS="$LIBDIRS -L$dir"
2798   else
2799     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2800 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2801   fi
2802 done
2803 IFS=$ac_save_IFS
2804
2805
2806 #
2807 # Tcl/Tk
2808 #
2809 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2810 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2811
2812
2813
2814 # Check whether --with-tcl or --without-tcl was given.
2815 if test "${with_tcl+set}" = set; then
2816   withval="$with_tcl"
2817
2818   case $withval in
2819     yes)
2820       :
2821       ;;
2822     no)
2823       :
2824       ;;
2825     *)
2826       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2827 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2828    { (exit 1); exit 1; }; }
2829       ;;
2830   esac
2831
2832 else
2833   with_tcl=no
2834
2835 fi;
2836
2837 echo "$as_me:$LINENO: result: $with_tcl" >&5
2838 echo "${ECHO_T}$with_tcl" >&6
2839
2840
2841 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2842 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2843 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2844 if test "$with_tcl" = yes; then
2845
2846
2847
2848 # Check whether --with-tk or --without-tk was given.
2849 if test "${with_tk+set}" = set; then
2850   withval="$with_tk"
2851
2852   case $withval in
2853     yes)
2854       :
2855       ;;
2856     no)
2857       :
2858       ;;
2859     *)
2860       { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2861 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2862    { (exit 1); exit 1; }; }
2863       ;;
2864   esac
2865
2866 else
2867   with_tk=yes
2868
2869 fi;
2870
2871 else
2872   with_tk=no
2873 fi
2874 echo "$as_me:$LINENO: result: $with_tk" >&5
2875 echo "${ECHO_T}$with_tk" >&6
2876
2877
2878
2879 # We see if the path to the Tcl/Tk configuration scripts is specified.
2880 # This will override the use of tclsh to find the paths to search.
2881
2882
2883
2884
2885 # Check whether --with-tclconfig or --without-tclconfig was given.
2886 if test "${with_tclconfig+set}" = set; then
2887   withval="$with_tclconfig"
2888
2889   case $withval in
2890     yes)
2891       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2892 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2893    { (exit 1); exit 1; }; }
2894       ;;
2895     no)
2896       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2897 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2898    { (exit 1); exit 1; }; }
2899       ;;
2900     *)
2901
2902       ;;
2903   esac
2904
2905 fi;
2906
2907
2908 # We see if the path to the Tk configuration scripts is specified.
2909 # This will override the use of tclsh to find the paths to search.
2910
2911
2912
2913
2914 # Check whether --with-tkconfig or --without-tkconfig was given.
2915 if test "${with_tkconfig+set}" = set; then
2916   withval="$with_tkconfig"
2917
2918   case $withval in
2919     yes)
2920       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2921 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2922    { (exit 1); exit 1; }; }
2923       ;;
2924     no)
2925       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2926 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2927    { (exit 1); exit 1; }; }
2928       ;;
2929     *)
2930
2931       ;;
2932   esac
2933
2934 fi;
2935
2936
2937 #
2938 # Optionally build Perl modules (Pg.pm and PL/Perl)
2939 #
2940 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2941 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2942
2943
2944
2945 # Check whether --with-perl or --without-perl was given.
2946 if test "${with_perl+set}" = set; then
2947   withval="$with_perl"
2948
2949   case $withval in
2950     yes)
2951       :
2952       ;;
2953     no)
2954       :
2955       ;;
2956     *)
2957       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
2958 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
2959    { (exit 1); exit 1; }; }
2960       ;;
2961   esac
2962
2963 else
2964   with_perl=no
2965
2966 fi;
2967
2968 echo "$as_me:$LINENO: result: $with_perl" >&5
2969 echo "${ECHO_T}$with_perl" >&6
2970
2971
2972 #
2973 # Optionally build Python interface module
2974 #
2975 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
2976 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
2977
2978
2979
2980 # Check whether --with-python or --without-python was given.
2981 if test "${with_python+set}" = set; then
2982   withval="$with_python"
2983
2984   case $withval in
2985     yes)
2986       :
2987       ;;
2988     no)
2989       :
2990       ;;
2991     *)
2992       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
2993 echo "$as_me: error: no argument expected for --with-python option" >&2;}
2994    { (exit 1); exit 1; }; }
2995       ;;
2996   esac
2997
2998 else
2999   with_python=no
3000
3001 fi;
3002
3003 echo "$as_me:$LINENO: result: $with_python" >&5
3004 echo "${ECHO_T}$with_python" >&6
3005
3006
3007 #
3008 # Optionally build the Java/JDBC tools
3009 #
3010 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3011 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3012
3013
3014
3015 # Check whether --with-java or --without-java was given.
3016 if test "${with_java+set}" = set; then
3017   withval="$with_java"
3018
3019   case $withval in
3020     yes)
3021       echo "$as_me:$LINENO: result: yes" >&5
3022 echo "${ECHO_T}yes" >&6
3023
3024   for ac_prog in jakarta-ant ant ant.sh ant.bat
3025 do
3026   # Extract the first word of "$ac_prog", so it can be a program name with args.
3027 set dummy $ac_prog; ac_word=$2
3028 echo "$as_me:$LINENO: checking for $ac_word" >&5
3029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3030 if test "${ac_cv_path_ANT+set}" = set; then
3031   echo $ECHO_N "(cached) $ECHO_C" >&6
3032 else
3033   case $ANT in
3034   [\\/]* | ?:[\\/]*)
3035   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3036   ;;
3037   *)
3038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3040 do
3041   IFS=$as_save_IFS
3042   test -z "$as_dir" && as_dir=.
3043   for ac_exec_ext in '' $ac_executable_extensions; do
3044   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3045     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3047     break 2
3048   fi
3049 done
3050 done
3051
3052   ;;
3053 esac
3054 fi
3055 ANT=$ac_cv_path_ANT
3056
3057 if test -n "$ANT"; then
3058   echo "$as_me:$LINENO: result: $ANT" >&5
3059 echo "${ECHO_T}$ANT" >&6
3060 else
3061   echo "$as_me:$LINENO: result: no" >&5
3062 echo "${ECHO_T}no" >&6
3063 fi
3064
3065   test -n "$ANT" && break
3066 done
3067
3068
3069   echo "$as_me:$LINENO: checking whether $ANT works" >&5
3070 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3071 if test "${pgac_cv_prog_ant_works+set}" = set; then
3072   echo $ECHO_N "(cached) $ECHO_C" >&6
3073 else
3074
3075     cat > conftest.java << EOF
3076 public class conftest {
3077     int testmethod(int a, int b) {
3078         return a + b;
3079     }
3080 }
3081 EOF
3082
3083     cat > conftest.xml << EOF
3084 <project name="conftest" default="conftest">
3085  <target name="conftest">
3086   <javac srcdir="." includes="conftest.java">
3087   </javac>
3088  </target>
3089 </project>
3090 EOF
3091
3092     pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3093     { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3094   (eval $pgac_cmd) 2>&5
3095   ac_status=$?
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); }
3098     pgac_save_status=$?
3099     if test $? = 0 && test -f ./conftest.class ; then
3100       pgac_cv_prog_ant_works=yes
3101     else
3102       echo "configure: failed java program was:" >&5
3103       cat conftest.java >&5
3104       echo "configure: failed build file was:" >&5
3105       cat conftest.xml >&5
3106       pgac_cv_prog_ant_works=no
3107     fi
3108
3109     rm -f conftest* core core.* *.core
3110
3111 fi
3112 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3113 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3114
3115   if test "$pgac_cv_prog_ant_works" != yes; then
3116     { { echo "$as_me:$LINENO: error: ant does not work" >&5
3117 echo "$as_me: error: ant does not work" >&2;}
3118    { (exit 1); exit 1; }; }
3119   fi
3120
3121
3122 if test -z "$ANT"; then
3123   { { echo "$as_me:$LINENO: error: Ant is required to build Java components" >&5
3124 echo "$as_me: error: Ant is required to build Java components" >&2;}
3125    { (exit 1); exit 1; }; }
3126 fi
3127 if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3128   { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3129 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3130    { (exit 1); exit 1; }; }
3131 fi
3132       ;;
3133     no)
3134       echo "$as_me:$LINENO: result: no" >&5
3135 echo "${ECHO_T}no" >&6
3136       ;;
3137     *)
3138       { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3139 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3140    { (exit 1); exit 1; }; }
3141       ;;
3142   esac
3143
3144 else
3145   with_java=no
3146 echo "$as_me:$LINENO: result: no" >&5
3147 echo "${ECHO_T}no" >&6
3148 fi;
3149
3150
3151
3152
3153 #
3154 # Kerberos 4
3155 #
3156 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3157 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3158
3159
3160
3161 # Check whether --with-krb4 or --without-krb4 was given.
3162 if test "${with_krb4+set}" = set; then
3163   withval="$with_krb4"
3164
3165   case $withval in
3166     yes)
3167       krb4_prefix=/usr/athena
3168       ;;
3169     no)
3170       :
3171       ;;
3172     *)
3173       with_krb4=yes
3174 krb4_prefix=$withval
3175       ;;
3176   esac
3177
3178 else
3179   with_krb4=no
3180 fi;
3181
3182
3183 if test "$with_krb4" = yes; then
3184
3185   echo "$as_me:$LINENO: result: yes" >&5
3186 echo "${ECHO_T}yes" >&6
3187
3188 cat >>confdefs.h <<\_ACEOF
3189 #define KRB4 1
3190 _ACEOF
3191
3192
3193   if test -d "$krb4_prefix/include"; then
3194     INCLUDES="$INCLUDES -I$krb4_prefix/include"
3195   fi
3196   if test -d "$krb4_prefix/lib"; then
3197     LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3198   fi
3199
3200   krb_srvtab="/etc/srvtab"
3201
3202 else
3203   echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3205 fi
3206
3207
3208
3209
3210
3211 #
3212 # Kerberos 5
3213 #
3214 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3215 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3216
3217
3218
3219 # Check whether --with-krb5 or --without-krb5 was given.
3220 if test "${with_krb5+set}" = set; then
3221   withval="$with_krb5"
3222
3223   case $withval in
3224     yes)
3225       krb5_prefix=/usr/athena
3226       ;;
3227     no)
3228       :
3229       ;;
3230     *)
3231       with_krb5=yes
3232 krb5_prefix=$withval
3233       ;;
3234   esac
3235
3236 else
3237   with_krb5=no
3238 fi;
3239
3240
3241 if test "$with_krb5" = yes; then
3242
3243   echo "$as_me:$LINENO: result: yes" >&5
3244 echo "${ECHO_T}yes" >&6
3245
3246 cat >>confdefs.h <<\_ACEOF
3247 #define KRB5 1
3248 _ACEOF
3249
3250
3251   if test -d "$krb5_prefix/include"; then
3252     INCLUDES="$INCLUDES -I$krb5_prefix/include"
3253   fi
3254   if test -d "$krb5_prefix/lib"; then
3255     LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3256   fi
3257
3258   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3259
3260 else
3261   echo "$as_me:$LINENO: result: no" >&5
3262 echo "${ECHO_T}no" >&6
3263 fi
3264
3265
3266
3267
3268
3269 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3270 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3271   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3272 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3273    { (exit 1); exit 1; }; }
3274 fi
3275
3276
3277
3278
3279 #
3280 # Kerberos configuration parameters
3281 #
3282
3283
3284
3285 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3286 if test "${with_krb_srvnam+set}" = set; then
3287   withval="$with_krb_srvnam"
3288
3289   case $withval in
3290     yes)
3291       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3292 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3293    { (exit 1); exit 1; }; }
3294       ;;
3295     no)
3296       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3297 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3298    { (exit 1); exit 1; }; }
3299       ;;
3300     *)
3301
3302       ;;
3303   esac
3304
3305 else
3306   with_krb_srvnam="postgres"
3307 fi;
3308
3309
3310 cat >>confdefs.h <<_ACEOF
3311 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3312 _ACEOF
3313
3314
3315
3316 #
3317 # PAM
3318 #
3319 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3320 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3321
3322
3323
3324 # Check whether --with-pam or --without-pam was given.
3325 if test "${with_pam+set}" = set; then
3326   withval="$with_pam"
3327
3328   case $withval in
3329     yes)
3330
3331 cat >>confdefs.h <<\_ACEOF
3332 #define USE_PAM 1
3333 _ACEOF
3334
3335       ;;
3336     no)
3337       :
3338       ;;
3339     *)
3340       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3341 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3342    { (exit 1); exit 1; }; }
3343       ;;
3344   esac
3345
3346 else
3347   with_pam=no
3348
3349 fi;
3350
3351 echo "$as_me:$LINENO: result: $with_pam" >&5
3352 echo "${ECHO_T}$with_pam" >&6
3353
3354
3355
3356 #
3357 # OpenSSL
3358 #
3359
3360
3361
3362 # Check whether --with-openssl or --without-openssl was given.
3363 if test "${with_openssl+set}" = set; then
3364   withval="$with_openssl"
3365
3366   case $withval in
3367     yes)
3368       openssl_prefix=/usr/local/ssl
3369       ;;
3370     no)
3371       :
3372       ;;
3373     *)
3374       with_openssl=yes
3375 openssl_prefix=$withval
3376       ;;
3377   esac
3378
3379 else
3380   with_openssl=no
3381 fi;
3382
3383
3384 if test "$with_openssl" = yes; then
3385
3386   echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3387 echo "${ECHO_T}building with OpenSSL support" >&6
3388
3389 cat >>confdefs.h <<\_ACEOF
3390 #define USE_SSL 1
3391 _ACEOF
3392
3393
3394   if test -d "${openssl_prefix}/include" ; then
3395     INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3396   fi
3397   if test -d "${openssl_prefix}/lib" ; then
3398     LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3399   fi
3400
3401 fi
3402
3403
3404
3405
3406
3407 #
3408 # Readline
3409 #
3410
3411
3412
3413 # Check whether --with-readline or --without-readline was given.
3414 if test "${with_readline+set}" = set; then
3415   withval="$with_readline"
3416
3417   case $withval in
3418     yes)
3419       :
3420       ;;
3421     no)
3422       :
3423       ;;
3424     *)
3425       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3426 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3427    { (exit 1); exit 1; }; }
3428       ;;
3429   esac
3430
3431 else
3432   with_readline=yes
3433
3434 fi;
3435
3436
3437 #
3438 # Zlib
3439 #
3440
3441
3442
3443 # Check whether --with-zlib or --without-zlib was given.
3444 if test "${with_zlib+set}" = set; then
3445   withval="$with_zlib"
3446
3447   case $withval in
3448     yes)
3449       :
3450       ;;
3451     no)
3452       :
3453       ;;
3454     *)
3455       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3456 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3457    { (exit 1); exit 1; }; }
3458       ;;
3459   esac
3460
3461 else
3462   with_zlib=yes
3463
3464 fi;
3465
3466
3467
3468
3469 # Assume system is ELF if it predefines __ELF__ as 1,
3470 # otherwise believe host_os based default.
3471 case $host_os in
3472     freebsd1*|freebsd2*) elf=no;;
3473     freebsd3*|freebsd4*) elf=yes;;
3474 esac
3475
3476
3477 cat >conftest.$ac_ext <<_ACEOF
3478 #line $LINENO "configure"
3479 #include "confdefs.h"
3480 #if __ELF__
3481   yes
3482 #endif
3483
3484 _ACEOF
3485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3486   egrep "yes" >/dev/null 2>&1; then
3487   ELF_SYS=true
3488 else
3489   if test "X$elf" = "Xyes" ; then
3490   ELF_SYS=true
3491 else
3492   ELF_SYS=
3493 fi
3494 fi
3495 rm -f conftest*
3496
3497
3498
3499
3500
3501 CPPFLAGS="$CPPFLAGS $INCLUDES"
3502 LDFLAGS="$LDFLAGS $LIBDIRS"
3503
3504 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3505 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3506 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3507 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3508
3509
3510 for ac_prog in gawk mawk nawk awk
3511 do
3512   # Extract the first word of "$ac_prog", so it can be a program name with args.
3513 set dummy $ac_prog; ac_word=$2
3514 echo "$as_me:$LINENO: checking for $ac_word" >&5
3515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3516 if test "${ac_cv_prog_AWK+set}" = set; then
3517   echo $ECHO_N "(cached) $ECHO_C" >&6
3518 else
3519   if test -n "$AWK"; then
3520   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3521 else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3524 do
3525   IFS=$as_save_IFS
3526   test -z "$as_dir" && as_dir=.
3527   for ac_exec_ext in '' $ac_executable_extensions; do
3528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529     ac_cv_prog_AWK="$ac_prog"
3530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3531     break 2
3532   fi
3533 done
3534 done
3535
3536 fi
3537 fi
3538 AWK=$ac_cv_prog_AWK
3539 if test -n "$AWK"; then
3540   echo "$as_me:$LINENO: result: $AWK" >&5
3541 echo "${ECHO_T}$AWK" >&6
3542 else
3543   echo "$as_me:$LINENO: result: no" >&5
3544 echo "${ECHO_T}no" >&6
3545 fi
3546
3547   test -n "$AWK" && break
3548 done
3549
3550 echo "$as_me:$LINENO: checking for flex" >&5
3551 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3552 if test "${pgac_cv_path_flex+set}" = set; then
3553   echo $ECHO_N "(cached) $ECHO_C" >&6
3554 else
3555   # Let the user override the test
3556 if test -n "$FLEX"; then
3557   pgac_cv_path_flex=$FLEX
3558 else
3559   pgac_save_IFS=$IFS
3560   IFS=:
3561   for pgac_dir in $PATH; do
3562     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3563       pgac_dir=`pwd`
3564     fi
3565     for pgac_prog in flex lex; do
3566       pgac_candidate="$pgac_dir/$pgac_prog"
3567       if test -f "$pgac_candidate" \
3568         && $pgac_candidate --version </dev/null >/dev/null 2>&1
3569       then
3570         echo '%%'  > conftest.l
3571         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3572           if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
3573             pgac_broken_flex=$pgac_candidate
3574             continue
3575           fi
3576
3577           pgac_cv_path_flex=$pgac_candidate
3578           break 2
3579         fi
3580       fi
3581     done
3582   done
3583   IFS=$pgac_save_IFS
3584   rm -f conftest.l
3585   : ${pgac_cv_path_flex=no}
3586 fi
3587
3588 fi
3589 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3590 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3591 if test x"$pgac_cv_path_flex" = x"no"; then
3592   if test -n "$pgac_broken_flex"; then
3593     { echo "$as_me:$LINENO: WARNING:
3594 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3595 *** should get version 2.5.4 or later." >&5
3596 echo "$as_me: WARNING:
3597 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3598 *** should get version 2.5.4 or later." >&2;}
3599   fi
3600
3601   { echo "$as_me:$LINENO: WARNING:
3602 *** Without Flex you will not be able to build PostgreSQL from CVS or
3603 *** change any of the scanner definition files.  You can obtain Flex from
3604 *** a GNU mirror site.  (If you are using the official distribution of
3605 *** PostgreSQL then you do not need to worry about this because the Flex
3606 *** output is pre-generated.)" >&5
3607 echo "$as_me: WARNING:
3608 *** Without Flex you will not be able to build PostgreSQL from CVS or
3609 *** change any of the scanner definition files.  You can obtain Flex from
3610 *** a GNU mirror site.  (If you are using the official distribution of
3611 *** PostgreSQL then you do not need to worry about this because the Flex
3612 *** output is pre-generated.)" >&2;}
3613 fi
3614
3615 if test x"$pgac_cv_path_flex" = x"no"; then
3616   FLEX=
3617 else
3618   FLEX=$pgac_cv_path_flex
3619 fi
3620
3621
3622
3623
3624 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3625 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3626 LN_S=$as_ln_s
3627 if test "$LN_S" = "ln -s"; then
3628   echo "$as_me:$LINENO: result: yes" >&5
3629 echo "${ECHO_T}yes" >&6
3630 else
3631   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3632 echo "${ECHO_T}no, using $LN_S" >&6
3633 fi
3634
3635
3636 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3637 if test "${with_gnu_ld+set}" = set; then
3638   withval="$with_gnu_ld"
3639   test "$withval" = no || with_gnu_ld=yes
3640 else
3641   with_gnu_ld=no
3642 fi;
3643 ac_prog=ld
3644 if test "$GCC" = yes; then
3645   # Check if gcc -print-prog-name=ld gives a path.
3646   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3647 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3648   case $host in
3649   *-*-mingw*)
3650     # gcc leaves a trailing carriage return which upsets mingw
3651     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3652   *)
3653     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3654   esac
3655   case "$ac_prog" in
3656     # Accept absolute paths.
3657     [\\/]* | [A-Za-z]:[\\/]*)
3658       re_direlt='/[^/][^/]*/\.\./'
3659       # Canonicalize the path of ld
3660       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3661       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3662         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3663       done
3664       test -z "$LD" && LD="$ac_prog"
3665       ;;
3666   "")
3667     # If it fails, then pretend we aren't using GCC.
3668     ac_prog=ld
3669     ;;
3670   *)
3671     # If it is relative, then search for the first ld in PATH.
3672     with_gnu_ld=unknown
3673     ;;
3674   esac
3675 elif test "$with_gnu_ld" = yes; then
3676   echo "$as_me:$LINENO: checking for GNU ld" >&5
3677 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3678 else
3679   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3680 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3681 fi
3682 if test "${ac_cv_path_LD+set}" = set; then
3683   echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685   if test -z "$LD"; then
3686   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3687   for ac_dir in $PATH; do
3688     test -z "$ac_dir" && ac_dir=.
3689     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3690       ac_cv_path_LD="$ac_dir/$ac_prog"
3691       # Check to see if the program is GNU ld.  I'd rather use --version,
3692       # but apparently some GNU ld's only accept -v.
3693       # Break only if it was the GNU/non-GNU ld that we prefer.
3694       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3695         test "$with_gnu_ld" != no && break
3696       else
3697         test "$with_gnu_ld" != yes && break
3698       fi
3699     fi
3700   done
3701   IFS="$ac_save_ifs"
3702 else
3703   ac_cv_path_LD="$LD" # Let the user override the test with a path.
3704 fi
3705 fi
3706
3707 LD="$ac_cv_path_LD"
3708 if test -n "$LD"; then
3709   echo "$as_me:$LINENO: result: $LD" >&5
3710 echo "${ECHO_T}$LD" >&6
3711 else
3712   echo "$as_me:$LINENO: result: no" >&5
3713 echo "${ECHO_T}no" >&6
3714 fi
3715 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3716 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3717    { (exit 1); exit 1; }; }
3718 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3719 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3720 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3721   echo $ECHO_N "(cached) $ECHO_C" >&6
3722 else
3723   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3724 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3725   ac_cv_prog_gnu_ld=yes
3726 else
3727   ac_cv_prog_gnu_ld=no
3728 fi
3729 fi
3730 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3731 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3732 with_gnu_ld=$ac_cv_prog_gnu_ld
3733
3734
3735
3736
3737 case $host_os in sysv5*)
3738   echo "$as_me:$LINENO: checking whether ld -R works" >&5
3739 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3740 if test "${pgac_cv_prog_ld_R+set}" = set; then
3741   echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743
3744     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3745     cat >conftest.$ac_ext <<_ACEOF
3746 #line $LINENO "configure"
3747 #include "confdefs.h"
3748
3749 #ifdef F77_DUMMY_MAIN
3750 #  ifdef __cplusplus
3751      extern "C"
3752 #  endif
3753    int F77_DUMMY_MAIN() { return 1; }
3754 #endif
3755 int
3756 main ()
3757 {
3758
3759   ;
3760   return 0;
3761 }
3762 _ACEOF
3763 rm -f conftest.$ac_objext conftest$ac_exeext
3764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3765   (eval $ac_link) 2>&5
3766   ac_status=$?
3767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768   (exit $ac_status); } &&
3769          { ac_try='test -s conftest$ac_exeext'
3770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771   (eval $ac_try) 2>&5
3772   ac_status=$?
3773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774   (exit $ac_status); }; }; then
3775   pgac_cv_prog_ld_R=yes
3776 else
3777   echo "$as_me: failed program was:" >&5
3778 cat conftest.$ac_ext >&5
3779 pgac_cv_prog_ld_R=no
3780 fi
3781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3782     LDFLAGS=$pgac_save_LDFLAGS
3783
3784 fi
3785 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3786 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3787   ld_R_works=$pgac_cv_prog_ld_R
3788
3789 esac
3790 if test -n "$ac_tool_prefix"; then
3791   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3792 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3793 echo "$as_me:$LINENO: checking for $ac_word" >&5
3794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3795 if test "${ac_cv_prog_RANLIB+set}" = set; then
3796   echo $ECHO_N "(cached) $ECHO_C" >&6
3797 else
3798   if test -n "$RANLIB"; then
3799   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3800 else
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802 for as_dir in $PATH
3803 do
3804   IFS=$as_save_IFS
3805   test -z "$as_dir" && as_dir=.
3806   for ac_exec_ext in '' $ac_executable_extensions; do
3807   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3808     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3810     break 2
3811   fi
3812 done
3813 done
3814
3815 fi
3816 fi
3817 RANLIB=$ac_cv_prog_RANLIB
3818 if test -n "$RANLIB"; then
3819   echo "$as_me:$LINENO: result: $RANLIB" >&5
3820 echo "${ECHO_T}$RANLIB" >&6
3821 else
3822   echo "$as_me:$LINENO: result: no" >&5
3823 echo "${ECHO_T}no" >&6
3824 fi
3825
3826 fi
3827 if test -z "$ac_cv_prog_RANLIB"; then
3828   ac_ct_RANLIB=$RANLIB
3829   # Extract the first word of "ranlib", so it can be a program name with args.
3830 set dummy ranlib; ac_word=$2
3831 echo "$as_me:$LINENO: checking for $ac_word" >&5
3832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3833 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3834   echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836   if test -n "$ac_ct_RANLIB"; then
3837   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3838 else
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 for as_dir in $PATH
3841 do
3842   IFS=$as_save_IFS
3843   test -z "$as_dir" && as_dir=.
3844   for ac_exec_ext in '' $ac_executable_extensions; do
3845   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3846     ac_cv_prog_ac_ct_RANLIB="ranlib"
3847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3848     break 2
3849   fi
3850 done
3851 done
3852
3853   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3854 fi
3855 fi
3856 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3857 if test -n "$ac_ct_RANLIB"; then
3858   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3859 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3860 else
3861   echo "$as_me:$LINENO: result: no" >&5
3862 echo "${ECHO_T}no" >&6
3863 fi
3864
3865   RANLIB=$ac_ct_RANLIB
3866 else
3867   RANLIB="$ac_cv_prog_RANLIB"
3868 fi
3869
3870 for ac_prog in lorder
3871 do
3872   # Extract the first word of "$ac_prog", so it can be a program name with args.
3873 set dummy $ac_prog; ac_word=$2
3874 echo "$as_me:$LINENO: checking for $ac_word" >&5
3875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3876 if test "${ac_cv_prog_LORDER+set}" = set; then
3877   echo $ECHO_N "(cached) $ECHO_C" >&6
3878 else
3879   if test -n "$LORDER"; then
3880   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3881 else
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 for as_dir in $PATH
3884 do
3885   IFS=$as_save_IFS
3886   test -z "$as_dir" && as_dir=.
3887   for ac_exec_ext in '' $ac_executable_extensions; do
3888   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3889     ac_cv_prog_LORDER="$ac_prog"
3890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3891     break 2
3892   fi
3893 done
3894 done
3895
3896 fi
3897 fi
3898 LORDER=$ac_cv_prog_LORDER
3899 if test -n "$LORDER"; then
3900   echo "$as_me:$LINENO: result: $LORDER" >&5
3901 echo "${ECHO_T}$LORDER" >&6
3902 else
3903   echo "$as_me:$LINENO: result: no" >&5
3904 echo "${ECHO_T}no" >&6
3905 fi
3906
3907   test -n "$LORDER" && break
3908 done
3909
3910 # Extract the first word of "tar", so it can be a program name with args.
3911 set dummy tar; ac_word=$2
3912 echo "$as_me:$LINENO: checking for $ac_word" >&5
3913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3914 if test "${ac_cv_path_TAR+set}" = set; then
3915   echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917   case $TAR in
3918   [\\/]* | ?:[\\/]*)
3919   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3920   ;;
3921   *)
3922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH
3924 do
3925   IFS=$as_save_IFS
3926   test -z "$as_dir" && as_dir=.
3927   for ac_exec_ext in '' $ac_executable_extensions; do
3928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3929     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3931     break 2
3932   fi
3933 done
3934 done
3935
3936   ;;
3937 esac
3938 fi
3939 TAR=$ac_cv_path_TAR
3940
3941 if test -n "$TAR"; then
3942   echo "$as_me:$LINENO: result: $TAR" >&5
3943 echo "${ECHO_T}$TAR" >&6
3944 else
3945   echo "$as_me:$LINENO: result: no" >&5
3946 echo "${ECHO_T}no" >&6
3947 fi
3948
3949
3950   if test -n "$ac_tool_prefix"; then
3951   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3952 set dummy ${ac_tool_prefix}strip; ac_word=$2
3953 echo "$as_me:$LINENO: checking for $ac_word" >&5
3954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3955 if test "${ac_cv_prog_STRIP+set}" = set; then
3956   echo $ECHO_N "(cached) $ECHO_C" >&6
3957 else
3958   if test -n "$STRIP"; then
3959   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3960 else
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3963 do
3964   IFS=$as_save_IFS
3965   test -z "$as_dir" && as_dir=.
3966   for ac_exec_ext in '' $ac_executable_extensions; do
3967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3968     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3970     break 2
3971   fi
3972 done
3973 done
3974
3975 fi
3976 fi
3977 STRIP=$ac_cv_prog_STRIP
3978 if test -n "$STRIP"; then
3979   echo "$as_me:$LINENO: result: $STRIP" >&5
3980 echo "${ECHO_T}$STRIP" >&6
3981 else
3982   echo "$as_me:$LINENO: result: no" >&5
3983 echo "${ECHO_T}no" >&6
3984 fi
3985
3986 fi
3987 if test -z "$ac_cv_prog_STRIP"; then
3988   ac_ct_STRIP=$STRIP
3989   # Extract the first word of "strip", so it can be a program name with args.
3990 set dummy strip; ac_word=$2
3991 echo "$as_me:$LINENO: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3993 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3994   echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996   if test -n "$ac_ct_STRIP"; then
3997   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3998 else
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 for as_dir in $PATH
4001 do
4002   IFS=$as_save_IFS
4003   test -z "$as_dir" && as_dir=.
4004   for ac_exec_ext in '' $ac_executable_extensions; do
4005   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4006     ac_cv_prog_ac_ct_STRIP="strip"
4007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4008     break 2
4009   fi
4010 done
4011 done
4012
4013   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4014 fi
4015 fi
4016 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4017 if test -n "$ac_ct_STRIP"; then
4018   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4019 echo "${ECHO_T}$ac_ct_STRIP" >&6
4020 else
4021   echo "$as_me:$LINENO: result: no" >&5
4022 echo "${ECHO_T}no" >&6
4023 fi
4024
4025   STRIP=$ac_ct_STRIP
4026 else
4027   STRIP="$ac_cv_prog_STRIP"
4028 fi
4029
4030
4031   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4032 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4033   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4034     STRIP_STATIC_LIB="$STRIP -x"
4035     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4036     echo "$as_me:$LINENO: result: yes" >&5
4037 echo "${ECHO_T}yes" >&6
4038   else
4039     STRIP_STATIC_LIB=:
4040     STRIP_SHARED_LIB=:
4041     echo "$as_me:$LINENO: result: no" >&5
4042 echo "${ECHO_T}no" >&6
4043   fi
4044
4045
4046
4047
4048 for ac_prog in 'bison -y'
4049 do
4050   # Extract the first word of "$ac_prog", so it can be a program name with args.
4051 set dummy $ac_prog; ac_word=$2
4052 echo "$as_me:$LINENO: checking for $ac_word" >&5
4053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4054 if test "${ac_cv_prog_YACC+set}" = set; then
4055   echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057   if test -n "$YACC"; then
4058   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4059 else
4060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061 for as_dir in $PATH
4062 do
4063   IFS=$as_save_IFS
4064   test -z "$as_dir" && as_dir=.
4065   for ac_exec_ext in '' $ac_executable_extensions; do
4066   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4067     ac_cv_prog_YACC="$ac_prog"
4068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4069     break 2
4070   fi
4071 done
4072 done
4073
4074 fi
4075 fi
4076 YACC=$ac_cv_prog_YACC
4077 if test -n "$YACC"; then
4078   echo "$as_me:$LINENO: result: $YACC" >&5
4079 echo "${ECHO_T}$YACC" >&6
4080 else
4081   echo "$as_me:$LINENO: result: no" >&5
4082 echo "${ECHO_T}no" >&6
4083 fi
4084
4085   test -n "$YACC" && break
4086 done
4087
4088 if test -z "$YACC"; then
4089   { echo "$as_me:$LINENO: WARNING:
4090 *** Without Bison you will not be able to build PostgreSQL from CVS or
4091 *** change any of the parser definition files.  You can obtain Bison from
4092 *** a GNU mirror site.  (If you are using the official distribution of
4093 *** PostgreSQL then you do not need to worry about this because the Bison
4094 *** output is pre-generated.)  To use a different yacc program (possible,
4095 *** but not recommended), set the environment variable YACC before running
4096 *** 'configure'." >&5
4097 echo "$as_me: WARNING:
4098 *** Without Bison you will not be able to build PostgreSQL from CVS or
4099 *** change any of the parser definition files.  You can obtain Bison from
4100 *** a GNU mirror site.  (If you are using the official distribution of
4101 *** PostgreSQL then you do not need to worry about this because the Bison
4102 *** output is pre-generated.)  To use a different yacc program (possible,
4103 *** but not recommended), set the environment variable YACC before running
4104 *** 'configure'." >&2;}
4105 fi
4106
4107
4108 if test "$with_tk" = yes; then
4109     # Extract the first word of "wish", so it can be a program name with args.
4110 set dummy wish; ac_word=$2
4111 echo "$as_me:$LINENO: checking for $ac_word" >&5
4112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4113 if test "${ac_cv_path_WISH+set}" = set; then
4114   echo $ECHO_N "(cached) $ECHO_C" >&6
4115 else
4116   case $WISH in
4117   [\\/]* | ?:[\\/]*)
4118   ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
4119   ;;
4120   *)
4121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 for as_dir in $PATH
4123 do
4124   IFS=$as_save_IFS
4125   test -z "$as_dir" && as_dir=.
4126   for ac_exec_ext in '' $ac_executable_extensions; do
4127   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4128     ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext"
4129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4130     break 2
4131   fi
4132 done
4133 done
4134
4135   ;;
4136 esac
4137 fi
4138 WISH=$ac_cv_path_WISH
4139
4140 if test -n "$WISH"; then
4141   echo "$as_me:$LINENO: result: $WISH" >&5
4142 echo "${ECHO_T}$WISH" >&6
4143 else
4144   echo "$as_me:$LINENO: result: no" >&5
4145 echo "${ECHO_T}no" >&6
4146 fi
4147
4148     test -z "$WISH" && { { echo "$as_me:$LINENO: error: 'wish' is required for Tk support" >&5
4149 echo "$as_me: error: 'wish' is required for Tk support" >&2;}
4150    { (exit 1); exit 1; }; }
4151 fi
4152
4153 # Extract the first word of "perl", so it can be a program name with args.
4154 set dummy perl; ac_word=$2
4155 echo "$as_me:$LINENO: checking for $ac_word" >&5
4156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4157 if test "${ac_cv_path_PERL+set}" = set; then
4158   echo $ECHO_N "(cached) $ECHO_C" >&6
4159 else
4160   case $PERL in
4161   [\\/]* | ?:[\\/]*)
4162   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4163   ;;
4164   *)
4165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH
4167 do
4168   IFS=$as_save_IFS
4169   test -z "$as_dir" && as_dir=.
4170   for ac_exec_ext in '' $ac_executable_extensions; do
4171   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4172     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4174     break 2
4175   fi
4176 done
4177 done
4178
4179   ;;
4180 esac
4181 fi
4182 PERL=$ac_cv_path_PERL
4183
4184 if test -n "$PERL"; then
4185   echo "$as_me:$LINENO: result: $PERL" >&5
4186 echo "${ECHO_T}$PERL" >&6
4187 else
4188   echo "$as_me:$LINENO: result: no" >&5
4189 echo "${ECHO_T}no" >&6
4190 fi
4191
4192 if test "$with_perl" = yes; then
4193
4194 echo "$as_me:$LINENO: checking for Perl installsitearch" >&5
4195 echo $ECHO_N "checking for Perl installsitearch... $ECHO_C" >&6
4196 perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
4197 echo "$as_me:$LINENO: result: $perl_installsitearch" >&5
4198 echo "${ECHO_T}$perl_installsitearch" >&6
4199 echo "$as_me:$LINENO: checking for Perl installman3dir" >&5
4200 echo $ECHO_N "checking for Perl installman3dir... $ECHO_C" >&6
4201 perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
4202 echo "$as_me:$LINENO: result: $perl_installman3dir" >&5
4203 echo "${ECHO_T}$perl_installman3dir" >&6
4204 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4205 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4206 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4207 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4208 echo "${ECHO_T}$perl_archlibexp" >&6
4209 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4210 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4211 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4212 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4213 echo "${ECHO_T}$perl_privlibexp" >&6
4214 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4215 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4216 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4217 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4218 echo "${ECHO_T}$perl_useshrplib" >&6
4219 echo "$as_me:$LINENO: checking for Perl man3ext" >&5
4220 echo $ECHO_N "checking for Perl man3ext... $ECHO_C" >&6
4221 perl_man3ext=`$PERL -MConfig -e 'print $Config{man3ext}'`
4222 echo "$as_me:$LINENO: result: $perl_man3ext" >&5
4223 echo "${ECHO_T}$perl_man3ext" >&6
4224
4225 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4226 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4227 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4228 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4229 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4230 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4231 echo "${ECHO_T}$perl_embed_ldflags" >&6
4232 fi
4233
4234 if test "$with_python" = yes; then
4235   # Extract the first word of "python", so it can be a program name with args.
4236 set dummy python; ac_word=$2
4237 echo "$as_me:$LINENO: checking for $ac_word" >&5
4238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4239 if test "${ac_cv_path_PYTHON+set}" = set; then
4240   echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242   case $PYTHON in
4243   [\\/]* | ?:[\\/]*)
4244   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4245   ;;
4246   *)
4247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 for as_dir in $PATH
4249 do
4250   IFS=$as_save_IFS
4251   test -z "$as_dir" && as_dir=.
4252   for ac_exec_ext in '' $ac_executable_extensions; do
4253   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4254     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4256     break 2
4257   fi
4258 done
4259 done
4260
4261   ;;
4262 esac
4263 fi
4264 PYTHON=$ac_cv_path_PYTHON
4265
4266 if test -n "$PYTHON"; then
4267   echo "$as_me:$LINENO: result: $PYTHON" >&5
4268 echo "${ECHO_T}$PYTHON" >&6
4269 else
4270   echo "$as_me:$LINENO: result: no" >&5
4271 echo "${ECHO_T}no" >&6
4272 fi
4273
4274 if test x"$PYTHON" = x""; then
4275   { { echo "$as_me:$LINENO: error: Python not found" >&5
4276 echo "$as_me: error: Python not found" >&2;}
4277    { (exit 1); exit 1; }; }
4278 fi
4279
4280
4281 echo "$as_me:$LINENO: checking Python installation directories" >&5
4282 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4283 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4284 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4285 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4286 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4287 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
4288 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
4289 python_includespec="-I${python_prefix}/include/python${python_version}"
4290 if test "$python_prefix" != "$python_execprefix"; then
4291   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4292 fi
4293
4294 # This should be enough of a message.
4295 if test "$python_prefix" != "$python_execprefix"; then
4296   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4297 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4298 else
4299   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4300 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4301 fi
4302
4303
4304
4305
4306
4307 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4308 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4309
4310 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4311 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4312 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4313 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4314 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4315
4316 pgac_tab="      " # tab character
4317 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"`
4318
4319 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4320 echo "${ECHO_T}${python_libspec}" >&6
4321
4322
4323 fi
4324
4325
4326 ##
4327 ## Libraries
4328 ##
4329
4330 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4331 then
4332
4333 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4334 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4335 if test "${ac_cv_lib_bsd_main+set}" = set; then
4336   echo $ECHO_N "(cached) $ECHO_C" >&6
4337 else
4338   ac_check_lib_save_LIBS=$LIBS
4339 LIBS="-lbsd  $LIBS"
4340 cat >conftest.$ac_ext <<_ACEOF
4341 #line $LINENO "configure"
4342 #include "confdefs.h"
4343
4344
4345 #ifdef F77_DUMMY_MAIN
4346 #  ifdef __cplusplus
4347      extern "C"
4348 #  endif
4349    int F77_DUMMY_MAIN() { return 1; }
4350 #endif
4351 int
4352 main ()
4353 {
4354 main ();
4355   ;
4356   return 0;
4357 }
4358 _ACEOF
4359 rm -f conftest.$ac_objext conftest$ac_exeext
4360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4361   (eval $ac_link) 2>&5
4362   ac_status=$?
4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); } &&
4365          { ac_try='test -s conftest$ac_exeext'
4366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367   (eval $ac_try) 2>&5
4368   ac_status=$?
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); }; }; then
4371   ac_cv_lib_bsd_main=yes
4372 else
4373   echo "$as_me: failed program was:" >&5
4374 cat conftest.$ac_ext >&5
4375 ac_cv_lib_bsd_main=no
4376 fi
4377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4378 LIBS=$ac_check_lib_save_LIBS
4379 fi
4380 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4381 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4382 if test $ac_cv_lib_bsd_main = yes; then
4383   cat >>confdefs.h <<_ACEOF
4384 #define HAVE_LIBBSD 1
4385 _ACEOF
4386
4387   LIBS="-lbsd $LIBS"
4388
4389 fi
4390
4391 fi
4392
4393 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4394 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4395 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4396   echo $ECHO_N "(cached) $ECHO_C" >&6
4397 else
4398   ac_check_lib_save_LIBS=$LIBS
4399 LIBS="-lutil  $LIBS"
4400 cat >conftest.$ac_ext <<_ACEOF
4401 #line $LINENO "configure"
4402 #include "confdefs.h"
4403
4404 /* Override any gcc2 internal prototype to avoid an error.  */
4405 #ifdef __cplusplus
4406 extern "C"
4407 #endif
4408 /* We use char because int might match the return type of a gcc2
4409    builtin and then its argument prototype would still apply.  */
4410 char setproctitle ();
4411 #ifdef F77_DUMMY_MAIN
4412 #  ifdef __cplusplus
4413      extern "C"
4414 #  endif
4415    int F77_DUMMY_MAIN() { return 1; }
4416 #endif
4417 int
4418 main ()
4419 {
4420 setproctitle ();
4421   ;
4422   return 0;
4423 }
4424 _ACEOF
4425 rm -f conftest.$ac_objext conftest$ac_exeext
4426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4427   (eval $ac_link) 2>&5
4428   ac_status=$?
4429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); } &&
4431          { ac_try='test -s conftest$ac_exeext'
4432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433   (eval $ac_try) 2>&5
4434   ac_status=$?
4435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436   (exit $ac_status); }; }; then
4437   ac_cv_lib_util_setproctitle=yes
4438 else
4439   echo "$as_me: failed program was:" >&5
4440 cat conftest.$ac_ext >&5
4441 ac_cv_lib_util_setproctitle=no
4442 fi
4443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4444 LIBS=$ac_check_lib_save_LIBS
4445 fi
4446 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4447 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4448 if test $ac_cv_lib_util_setproctitle = yes; then
4449   cat >>confdefs.h <<_ACEOF
4450 #define HAVE_LIBUTIL 1
4451 _ACEOF
4452
4453   LIBS="-lutil $LIBS"
4454
4455 fi
4456
4457
4458 echo "$as_me:$LINENO: checking for main in -lm" >&5
4459 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4460 if test "${ac_cv_lib_m_main+set}" = set; then
4461   echo $ECHO_N "(cached) $ECHO_C" >&6
4462 else
4463   ac_check_lib_save_LIBS=$LIBS
4464 LIBS="-lm  $LIBS"
4465 cat >conftest.$ac_ext <<_ACEOF
4466 #line $LINENO "configure"
4467 #include "confdefs.h"
4468
4469
4470 #ifdef F77_DUMMY_MAIN
4471 #  ifdef __cplusplus
4472      extern "C"
4473 #  endif
4474    int F77_DUMMY_MAIN() { return 1; }
4475 #endif
4476 int
4477 main ()
4478 {
4479 main ();
4480   ;
4481   return 0;
4482 }
4483 _ACEOF
4484 rm -f conftest.$ac_objext conftest$ac_exeext
4485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4486   (eval $ac_link) 2>&5
4487   ac_status=$?
4488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489   (exit $ac_status); } &&
4490          { ac_try='test -s conftest$ac_exeext'
4491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492   (eval $ac_try) 2>&5
4493   ac_status=$?
4494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495   (exit $ac_status); }; }; then
4496   ac_cv_lib_m_main=yes
4497 else
4498   echo "$as_me: failed program was:" >&5
4499 cat conftest.$ac_ext >&5
4500 ac_cv_lib_m_main=no
4501 fi
4502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4503 LIBS=$ac_check_lib_save_LIBS
4504 fi
4505 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4506 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4507 if test $ac_cv_lib_m_main = yes; then
4508   cat >>confdefs.h <<_ACEOF
4509 #define HAVE_LIBM 1
4510 _ACEOF
4511
4512   LIBS="-lm $LIBS"
4513
4514 fi
4515
4516
4517 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4518 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4519 if test "${ac_cv_lib_dl_main+set}" = set; then
4520   echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522   ac_check_lib_save_LIBS=$LIBS
4523 LIBS="-ldl  $LIBS"
4524 cat >conftest.$ac_ext <<_ACEOF
4525 #line $LINENO "configure"
4526 #include "confdefs.h"
4527
4528
4529 #ifdef F77_DUMMY_MAIN
4530 #  ifdef __cplusplus
4531      extern "C"
4532 #  endif
4533    int F77_DUMMY_MAIN() { return 1; }
4534 #endif
4535 int
4536 main ()
4537 {
4538 main ();
4539   ;
4540   return 0;
4541 }
4542 _ACEOF
4543 rm -f conftest.$ac_objext conftest$ac_exeext
4544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4545   (eval $ac_link) 2>&5
4546   ac_status=$?
4547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548   (exit $ac_status); } &&
4549          { ac_try='test -s conftest$ac_exeext'
4550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551   (eval $ac_try) 2>&5
4552   ac_status=$?
4553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554   (exit $ac_status); }; }; then
4555   ac_cv_lib_dl_main=yes
4556 else
4557   echo "$as_me: failed program was:" >&5
4558 cat conftest.$ac_ext >&5
4559 ac_cv_lib_dl_main=no
4560 fi
4561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4562 LIBS=$ac_check_lib_save_LIBS
4563 fi
4564 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4565 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4566 if test $ac_cv_lib_dl_main = yes; then
4567   cat >>confdefs.h <<_ACEOF
4568 #define HAVE_LIBDL 1
4569 _ACEOF
4570
4571   LIBS="-ldl $LIBS"
4572
4573 fi
4574
4575
4576 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4577 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4578 if test "${ac_cv_lib_nsl_main+set}" = set; then
4579   echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581   ac_check_lib_save_LIBS=$LIBS
4582 LIBS="-lnsl  $LIBS"
4583 cat >conftest.$ac_ext <<_ACEOF
4584 #line $LINENO "configure"
4585 #include "confdefs.h"
4586
4587
4588 #ifdef F77_DUMMY_MAIN
4589 #  ifdef __cplusplus
4590      extern "C"
4591 #  endif
4592    int F77_DUMMY_MAIN() { return 1; }
4593 #endif
4594 int
4595 main ()
4596 {
4597 main ();
4598   ;
4599   return 0;
4600 }
4601 _ACEOF
4602 rm -f conftest.$ac_objext conftest$ac_exeext
4603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4604   (eval $ac_link) 2>&5
4605   ac_status=$?
4606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607   (exit $ac_status); } &&
4608          { ac_try='test -s conftest$ac_exeext'
4609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610   (eval $ac_try) 2>&5
4611   ac_status=$?
4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613   (exit $ac_status); }; }; then
4614   ac_cv_lib_nsl_main=yes
4615 else
4616   echo "$as_me: failed program was:" >&5
4617 cat conftest.$ac_ext >&5
4618 ac_cv_lib_nsl_main=no
4619 fi
4620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4621 LIBS=$ac_check_lib_save_LIBS
4622 fi
4623 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4624 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4625 if test $ac_cv_lib_nsl_main = yes; then
4626   cat >>confdefs.h <<_ACEOF
4627 #define HAVE_LIBNSL 1
4628 _ACEOF
4629
4630   LIBS="-lnsl $LIBS"
4631
4632 fi
4633
4634
4635 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4636 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4637 if test "${ac_cv_lib_socket_main+set}" = set; then
4638   echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640   ac_check_lib_save_LIBS=$LIBS
4641 LIBS="-lsocket  $LIBS"
4642 cat >conftest.$ac_ext <<_ACEOF
4643 #line $LINENO "configure"
4644 #include "confdefs.h"
4645
4646
4647 #ifdef F77_DUMMY_MAIN
4648 #  ifdef __cplusplus
4649      extern "C"
4650 #  endif
4651    int F77_DUMMY_MAIN() { return 1; }
4652 #endif
4653 int
4654 main ()
4655 {
4656 main ();
4657   ;
4658   return 0;
4659 }
4660 _ACEOF
4661 rm -f conftest.$ac_objext conftest$ac_exeext
4662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4663   (eval $ac_link) 2>&5
4664   ac_status=$?
4665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666   (exit $ac_status); } &&
4667          { ac_try='test -s conftest$ac_exeext'
4668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669   (eval $ac_try) 2>&5
4670   ac_status=$?
4671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672   (exit $ac_status); }; }; then
4673   ac_cv_lib_socket_main=yes
4674 else
4675   echo "$as_me: failed program was:" >&5
4676 cat conftest.$ac_ext >&5
4677 ac_cv_lib_socket_main=no
4678 fi
4679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4680 LIBS=$ac_check_lib_save_LIBS
4681 fi
4682 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4683 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4684 if test $ac_cv_lib_socket_main = yes; then
4685   cat >>confdefs.h <<_ACEOF
4686 #define HAVE_LIBSOCKET 1
4687 _ACEOF
4688
4689   LIBS="-lsocket $LIBS"
4690
4691 fi
4692
4693
4694 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4695 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4696 if test "${ac_cv_lib_ipc_main+set}" = set; then
4697   echo $ECHO_N "(cached) $ECHO_C" >&6
4698 else
4699   ac_check_lib_save_LIBS=$LIBS
4700 LIBS="-lipc  $LIBS"
4701 cat >conftest.$ac_ext <<_ACEOF
4702 #line $LINENO "configure"
4703 #include "confdefs.h"
4704
4705
4706 #ifdef F77_DUMMY_MAIN
4707 #  ifdef __cplusplus
4708      extern "C"
4709 #  endif
4710    int F77_DUMMY_MAIN() { return 1; }
4711 #endif
4712 int
4713 main ()
4714 {
4715 main ();
4716   ;
4717   return 0;
4718 }
4719 _ACEOF
4720 rm -f conftest.$ac_objext conftest$ac_exeext
4721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4722   (eval $ac_link) 2>&5
4723   ac_status=$?
4724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725   (exit $ac_status); } &&
4726          { ac_try='test -s conftest$ac_exeext'
4727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728   (eval $ac_try) 2>&5
4729   ac_status=$?
4730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731   (exit $ac_status); }; }; then
4732   ac_cv_lib_ipc_main=yes
4733 else
4734   echo "$as_me: failed program was:" >&5
4735 cat conftest.$ac_ext >&5
4736 ac_cv_lib_ipc_main=no
4737 fi
4738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4739 LIBS=$ac_check_lib_save_LIBS
4740 fi
4741 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4742 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4743 if test $ac_cv_lib_ipc_main = yes; then
4744   cat >>confdefs.h <<_ACEOF
4745 #define HAVE_LIBIPC 1
4746 _ACEOF
4747
4748   LIBS="-lipc $LIBS"
4749
4750 fi
4751
4752
4753 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4754 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4755 if test "${ac_cv_lib_IPC_main+set}" = set; then
4756   echo $ECHO_N "(cached) $ECHO_C" >&6
4757 else
4758   ac_check_lib_save_LIBS=$LIBS
4759 LIBS="-lIPC  $LIBS"
4760 cat >conftest.$ac_ext <<_ACEOF
4761 #line $LINENO "configure"
4762 #include "confdefs.h"
4763
4764
4765 #ifdef F77_DUMMY_MAIN
4766 #  ifdef __cplusplus
4767      extern "C"
4768 #  endif
4769    int F77_DUMMY_MAIN() { return 1; }
4770 #endif
4771 int
4772 main ()
4773 {
4774 main ();
4775   ;
4776   return 0;
4777 }
4778 _ACEOF
4779 rm -f conftest.$ac_objext conftest$ac_exeext
4780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4781   (eval $ac_link) 2>&5
4782   ac_status=$?
4783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784   (exit $ac_status); } &&
4785          { ac_try='test -s conftest$ac_exeext'
4786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787   (eval $ac_try) 2>&5
4788   ac_status=$?
4789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790   (exit $ac_status); }; }; then
4791   ac_cv_lib_IPC_main=yes
4792 else
4793   echo "$as_me: failed program was:" >&5
4794 cat conftest.$ac_ext >&5
4795 ac_cv_lib_IPC_main=no
4796 fi
4797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4798 LIBS=$ac_check_lib_save_LIBS
4799 fi
4800 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4801 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4802 if test $ac_cv_lib_IPC_main = yes; then
4803   cat >>confdefs.h <<_ACEOF
4804 #define HAVE_LIBIPC 1
4805 _ACEOF
4806
4807   LIBS="-lIPC $LIBS"
4808
4809 fi
4810
4811
4812 echo "$as_me:$LINENO: checking for main in -llc" >&5
4813 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4814 if test "${ac_cv_lib_lc_main+set}" = set; then
4815   echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817   ac_check_lib_save_LIBS=$LIBS
4818 LIBS="-llc  $LIBS"
4819 cat >conftest.$ac_ext <<_ACEOF
4820 #line $LINENO "configure"
4821 #include "confdefs.h"
4822
4823
4824 #ifdef F77_DUMMY_MAIN
4825 #  ifdef __cplusplus
4826      extern "C"
4827 #  endif
4828    int F77_DUMMY_MAIN() { return 1; }
4829 #endif
4830 int
4831 main ()
4832 {
4833 main ();
4834   ;
4835   return 0;
4836 }
4837 _ACEOF
4838 rm -f conftest.$ac_objext conftest$ac_exeext
4839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4840   (eval $ac_link) 2>&5
4841   ac_status=$?
4842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843   (exit $ac_status); } &&
4844          { ac_try='test -s conftest$ac_exeext'
4845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846   (eval $ac_try) 2>&5
4847   ac_status=$?
4848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849   (exit $ac_status); }; }; then
4850   ac_cv_lib_lc_main=yes
4851 else
4852   echo "$as_me: failed program was:" >&5
4853 cat conftest.$ac_ext >&5
4854 ac_cv_lib_lc_main=no
4855 fi
4856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4857 LIBS=$ac_check_lib_save_LIBS
4858 fi
4859 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4860 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4861 if test $ac_cv_lib_lc_main = yes; then
4862   cat >>confdefs.h <<_ACEOF
4863 #define HAVE_LIBLC 1
4864 _ACEOF
4865
4866   LIBS="-llc $LIBS"
4867
4868 fi
4869
4870
4871 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4872 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4873 if test "${ac_cv_lib_dld_main+set}" = set; then
4874   echo $ECHO_N "(cached) $ECHO_C" >&6
4875 else
4876   ac_check_lib_save_LIBS=$LIBS
4877 LIBS="-ldld  $LIBS"
4878 cat >conftest.$ac_ext <<_ACEOF
4879 #line $LINENO "configure"
4880 #include "confdefs.h"
4881
4882
4883 #ifdef F77_DUMMY_MAIN
4884 #  ifdef __cplusplus
4885      extern "C"
4886 #  endif
4887    int F77_DUMMY_MAIN() { return 1; }
4888 #endif
4889 int
4890 main ()
4891 {
4892 main ();
4893   ;
4894   return 0;
4895 }
4896 _ACEOF
4897 rm -f conftest.$ac_objext conftest$ac_exeext
4898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4899   (eval $ac_link) 2>&5
4900   ac_status=$?
4901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902   (exit $ac_status); } &&
4903          { ac_try='test -s conftest$ac_exeext'
4904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905   (eval $ac_try) 2>&5
4906   ac_status=$?
4907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908   (exit $ac_status); }; }; then
4909   ac_cv_lib_dld_main=yes
4910 else
4911   echo "$as_me: failed program was:" >&5
4912 cat conftest.$ac_ext >&5
4913 ac_cv_lib_dld_main=no
4914 fi
4915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4916 LIBS=$ac_check_lib_save_LIBS
4917 fi
4918 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4919 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4920 if test $ac_cv_lib_dld_main = yes; then
4921   cat >>confdefs.h <<_ACEOF
4922 #define HAVE_LIBDLD 1
4923 _ACEOF
4924
4925   LIBS="-ldld $LIBS"
4926
4927 fi
4928
4929
4930 echo "$as_me:$LINENO: checking for main in -lld" >&5
4931 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4932 if test "${ac_cv_lib_ld_main+set}" = set; then
4933   echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935   ac_check_lib_save_LIBS=$LIBS
4936 LIBS="-lld  $LIBS"
4937 cat >conftest.$ac_ext <<_ACEOF
4938 #line $LINENO "configure"
4939 #include "confdefs.h"
4940
4941
4942 #ifdef F77_DUMMY_MAIN
4943 #  ifdef __cplusplus
4944      extern "C"
4945 #  endif
4946    int F77_DUMMY_MAIN() { return 1; }
4947 #endif
4948 int
4949 main ()
4950 {
4951 main ();
4952   ;
4953   return 0;
4954 }
4955 _ACEOF
4956 rm -f conftest.$ac_objext conftest$ac_exeext
4957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4958   (eval $ac_link) 2>&5
4959   ac_status=$?
4960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961   (exit $ac_status); } &&
4962          { ac_try='test -s conftest$ac_exeext'
4963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964   (eval $ac_try) 2>&5
4965   ac_status=$?
4966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967   (exit $ac_status); }; }; then
4968   ac_cv_lib_ld_main=yes
4969 else
4970   echo "$as_me: failed program was:" >&5
4971 cat conftest.$ac_ext >&5
4972 ac_cv_lib_ld_main=no
4973 fi
4974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4975 LIBS=$ac_check_lib_save_LIBS
4976 fi
4977 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
4978 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
4979 if test $ac_cv_lib_ld_main = yes; then
4980   cat >>confdefs.h <<_ACEOF
4981 #define HAVE_LIBLD 1
4982 _ACEOF
4983
4984   LIBS="-lld $LIBS"
4985
4986 fi
4987
4988
4989 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
4990 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
4991 if test "${ac_cv_lib_compat_main+set}" = set; then
4992   echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994   ac_check_lib_save_LIBS=$LIBS
4995 LIBS="-lcompat  $LIBS"
4996 cat >conftest.$ac_ext <<_ACEOF
4997 #line $LINENO "configure"
4998 #include "confdefs.h"
4999
5000
5001 #ifdef F77_DUMMY_MAIN
5002 #  ifdef __cplusplus
5003      extern "C"
5004 #  endif
5005    int F77_DUMMY_MAIN() { return 1; }
5006 #endif
5007 int
5008 main ()
5009 {
5010 main ();
5011   ;
5012   return 0;
5013 }
5014 _ACEOF
5015 rm -f conftest.$ac_objext conftest$ac_exeext
5016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5017   (eval $ac_link) 2>&5
5018   ac_status=$?
5019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020   (exit $ac_status); } &&
5021          { ac_try='test -s conftest$ac_exeext'
5022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023   (eval $ac_try) 2>&5
5024   ac_status=$?
5025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026   (exit $ac_status); }; }; then
5027   ac_cv_lib_compat_main=yes
5028 else
5029   echo "$as_me: failed program was:" >&5
5030 cat conftest.$ac_ext >&5
5031 ac_cv_lib_compat_main=no
5032 fi
5033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5034 LIBS=$ac_check_lib_save_LIBS
5035 fi
5036 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5037 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5038 if test $ac_cv_lib_compat_main = yes; then
5039   cat >>confdefs.h <<_ACEOF
5040 #define HAVE_LIBCOMPAT 1
5041 _ACEOF
5042
5043   LIBS="-lcompat $LIBS"
5044
5045 fi
5046
5047
5048 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5049 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5050 if test "${ac_cv_lib_BSD_main+set}" = set; then
5051   echo $ECHO_N "(cached) $ECHO_C" >&6
5052 else
5053   ac_check_lib_save_LIBS=$LIBS
5054 LIBS="-lBSD  $LIBS"
5055 cat >conftest.$ac_ext <<_ACEOF
5056 #line $LINENO "configure"
5057 #include "confdefs.h"
5058
5059
5060 #ifdef F77_DUMMY_MAIN
5061 #  ifdef __cplusplus
5062      extern "C"
5063 #  endif
5064    int F77_DUMMY_MAIN() { return 1; }
5065 #endif
5066 int
5067 main ()
5068 {
5069 main ();
5070   ;
5071   return 0;
5072 }
5073 _ACEOF
5074 rm -f conftest.$ac_objext conftest$ac_exeext
5075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5076   (eval $ac_link) 2>&5
5077   ac_status=$?
5078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079   (exit $ac_status); } &&
5080          { ac_try='test -s conftest$ac_exeext'
5081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082   (eval $ac_try) 2>&5
5083   ac_status=$?
5084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085   (exit $ac_status); }; }; then
5086   ac_cv_lib_BSD_main=yes
5087 else
5088   echo "$as_me: failed program was:" >&5
5089 cat conftest.$ac_ext >&5
5090 ac_cv_lib_BSD_main=no
5091 fi
5092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5093 LIBS=$ac_check_lib_save_LIBS
5094 fi
5095 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5096 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5097 if test $ac_cv_lib_BSD_main = yes; then
5098   cat >>confdefs.h <<_ACEOF
5099 #define HAVE_LIBBSD 1
5100 _ACEOF
5101
5102   LIBS="-lBSD $LIBS"
5103
5104 fi
5105
5106
5107 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5108 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5109 if test "${ac_cv_lib_gen_main+set}" = set; then
5110   echo $ECHO_N "(cached) $ECHO_C" >&6
5111 else
5112   ac_check_lib_save_LIBS=$LIBS
5113 LIBS="-lgen  $LIBS"
5114 cat >conftest.$ac_ext <<_ACEOF
5115 #line $LINENO "configure"
5116 #include "confdefs.h"
5117
5118
5119 #ifdef F77_DUMMY_MAIN
5120 #  ifdef __cplusplus
5121      extern "C"
5122 #  endif
5123    int F77_DUMMY_MAIN() { return 1; }
5124 #endif
5125 int
5126 main ()
5127 {
5128 main ();
5129   ;
5130   return 0;
5131 }
5132 _ACEOF
5133 rm -f conftest.$ac_objext conftest$ac_exeext
5134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5135   (eval $ac_link) 2>&5
5136   ac_status=$?
5137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138   (exit $ac_status); } &&
5139          { ac_try='test -s conftest$ac_exeext'
5140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141   (eval $ac_try) 2>&5
5142   ac_status=$?
5143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144   (exit $ac_status); }; }; then
5145   ac_cv_lib_gen_main=yes
5146 else
5147   echo "$as_me: failed program was:" >&5
5148 cat conftest.$ac_ext >&5
5149 ac_cv_lib_gen_main=no
5150 fi
5151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5152 LIBS=$ac_check_lib_save_LIBS
5153 fi
5154 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5155 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5156 if test $ac_cv_lib_gen_main = yes; then
5157   cat >>confdefs.h <<_ACEOF
5158 #define HAVE_LIBGEN 1
5159 _ACEOF
5160
5161   LIBS="-lgen $LIBS"
5162
5163 fi
5164
5165
5166 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5167 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5168 if test "${ac_cv_lib_PW_main+set}" = set; then
5169   echo $ECHO_N "(cached) $ECHO_C" >&6
5170 else
5171   ac_check_lib_save_LIBS=$LIBS
5172 LIBS="-lPW  $LIBS"
5173 cat >conftest.$ac_ext <<_ACEOF
5174 #line $LINENO "configure"
5175 #include "confdefs.h"
5176
5177
5178 #ifdef F77_DUMMY_MAIN
5179 #  ifdef __cplusplus
5180      extern "C"
5181 #  endif
5182    int F77_DUMMY_MAIN() { return 1; }
5183 #endif
5184 int
5185 main ()
5186 {
5187 main ();
5188   ;
5189   return 0;
5190 }
5191 _ACEOF
5192 rm -f conftest.$ac_objext conftest$ac_exeext
5193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5194   (eval $ac_link) 2>&5
5195   ac_status=$?
5196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197   (exit $ac_status); } &&
5198          { ac_try='test -s conftest$ac_exeext'
5199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200   (eval $ac_try) 2>&5
5201   ac_status=$?
5202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203   (exit $ac_status); }; }; then
5204   ac_cv_lib_PW_main=yes
5205 else
5206   echo "$as_me: failed program was:" >&5
5207 cat conftest.$ac_ext >&5
5208 ac_cv_lib_PW_main=no
5209 fi
5210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5211 LIBS=$ac_check_lib_save_LIBS
5212 fi
5213 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5214 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5215 if test $ac_cv_lib_PW_main = yes; then
5216   cat >>confdefs.h <<_ACEOF
5217 #define HAVE_LIBPW 1
5218 _ACEOF
5219
5220   LIBS="-lPW $LIBS"
5221
5222 fi
5223
5224
5225 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5226 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5227 if test "${ac_cv_lib_resolv_main+set}" = set; then
5228   echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230   ac_check_lib_save_LIBS=$LIBS
5231 LIBS="-lresolv  $LIBS"
5232 cat >conftest.$ac_ext <<_ACEOF
5233 #line $LINENO "configure"
5234 #include "confdefs.h"
5235
5236
5237 #ifdef F77_DUMMY_MAIN
5238 #  ifdef __cplusplus
5239      extern "C"
5240 #  endif
5241    int F77_DUMMY_MAIN() { return 1; }
5242 #endif
5243 int
5244 main ()
5245 {
5246 main ();
5247   ;
5248   return 0;
5249 }
5250 _ACEOF
5251 rm -f conftest.$ac_objext conftest$ac_exeext
5252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5253   (eval $ac_link) 2>&5
5254   ac_status=$?
5255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256   (exit $ac_status); } &&
5257          { ac_try='test -s conftest$ac_exeext'
5258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5259   (eval $ac_try) 2>&5
5260   ac_status=$?
5261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262   (exit $ac_status); }; }; then
5263   ac_cv_lib_resolv_main=yes
5264 else
5265   echo "$as_me: failed program was:" >&5
5266 cat conftest.$ac_ext >&5
5267 ac_cv_lib_resolv_main=no
5268 fi
5269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5270 LIBS=$ac_check_lib_save_LIBS
5271 fi
5272 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5273 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5274 if test $ac_cv_lib_resolv_main = yes; then
5275   cat >>confdefs.h <<_ACEOF
5276 #define HAVE_LIBRESOLV 1
5277 _ACEOF
5278
5279   LIBS="-lresolv $LIBS"
5280
5281 fi
5282
5283 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5284 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5285 if test "${ac_cv_search_getopt_long+set}" = set; then
5286   echo $ECHO_N "(cached) $ECHO_C" >&6
5287 else
5288   ac_func_search_save_LIBS=$LIBS
5289 ac_cv_search_getopt_long=no
5290 cat >conftest.$ac_ext <<_ACEOF
5291 #line $LINENO "configure"
5292 #include "confdefs.h"
5293
5294 /* Override any gcc2 internal prototype to avoid an error.  */
5295 #ifdef __cplusplus
5296 extern "C"
5297 #endif
5298 /* We use char because int might match the return type of a gcc2
5299    builtin and then its argument prototype would still apply.  */
5300 char getopt_long ();
5301 #ifdef F77_DUMMY_MAIN
5302 #  ifdef __cplusplus
5303      extern "C"
5304 #  endif
5305    int F77_DUMMY_MAIN() { return 1; }
5306 #endif
5307 int
5308 main ()
5309 {
5310 getopt_long ();
5311   ;
5312   return 0;
5313 }
5314 _ACEOF
5315 rm -f conftest.$ac_objext conftest$ac_exeext
5316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5317   (eval $ac_link) 2>&5
5318   ac_status=$?
5319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320   (exit $ac_status); } &&
5321          { ac_try='test -s conftest$ac_exeext'
5322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5323   (eval $ac_try) 2>&5
5324   ac_status=$?
5325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326   (exit $ac_status); }; }; then
5327   ac_cv_search_getopt_long="none required"
5328 else
5329   echo "$as_me: failed program was:" >&5
5330 cat conftest.$ac_ext >&5
5331 fi
5332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5333 if test "$ac_cv_search_getopt_long" = no; then
5334   for ac_lib in getopt; do
5335     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5336     cat >conftest.$ac_ext <<_ACEOF
5337 #line $LINENO "configure"
5338 #include "confdefs.h"
5339
5340 /* Override any gcc2 internal prototype to avoid an error.  */
5341 #ifdef __cplusplus
5342 extern "C"
5343 #endif
5344 /* We use char because int might match the return type of a gcc2
5345    builtin and then its argument prototype would still apply.  */
5346 char getopt_long ();
5347 #ifdef F77_DUMMY_MAIN
5348 #  ifdef __cplusplus
5349      extern "C"
5350 #  endif
5351    int F77_DUMMY_MAIN() { return 1; }
5352 #endif
5353 int
5354 main ()
5355 {
5356 getopt_long ();
5357   ;
5358   return 0;
5359 }
5360 _ACEOF
5361 rm -f conftest.$ac_objext conftest$ac_exeext
5362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5363   (eval $ac_link) 2>&5
5364   ac_status=$?
5365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366   (exit $ac_status); } &&
5367          { ac_try='test -s conftest$ac_exeext'
5368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369   (eval $ac_try) 2>&5
5370   ac_status=$?
5371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372   (exit $ac_status); }; }; then
5373   ac_cv_search_getopt_long="-l$ac_lib"
5374 break
5375 else
5376   echo "$as_me: failed program was:" >&5
5377 cat conftest.$ac_ext >&5
5378 fi
5379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5380   done
5381 fi
5382 LIBS=$ac_func_search_save_LIBS
5383 fi
5384 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5385 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5386 if test "$ac_cv_search_getopt_long" != no; then
5387   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5388
5389 fi
5390
5391 # QNX:
5392
5393 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5394 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5395 if test "${ac_cv_lib_unix_main+set}" = set; then
5396   echo $ECHO_N "(cached) $ECHO_C" >&6
5397 else
5398   ac_check_lib_save_LIBS=$LIBS
5399 LIBS="-lunix  $LIBS"
5400 cat >conftest.$ac_ext <<_ACEOF
5401 #line $LINENO "configure"
5402 #include "confdefs.h"
5403
5404
5405 #ifdef F77_DUMMY_MAIN
5406 #  ifdef __cplusplus
5407      extern "C"
5408 #  endif
5409    int F77_DUMMY_MAIN() { return 1; }
5410 #endif
5411 int
5412 main ()
5413 {
5414 main ();
5415   ;
5416   return 0;
5417 }
5418 _ACEOF
5419 rm -f conftest.$ac_objext conftest$ac_exeext
5420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5421   (eval $ac_link) 2>&5
5422   ac_status=$?
5423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424   (exit $ac_status); } &&
5425          { ac_try='test -s conftest$ac_exeext'
5426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5427   (eval $ac_try) 2>&5
5428   ac_status=$?
5429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430   (exit $ac_status); }; }; then
5431   ac_cv_lib_unix_main=yes
5432 else
5433   echo "$as_me: failed program was:" >&5
5434 cat conftest.$ac_ext >&5
5435 ac_cv_lib_unix_main=no
5436 fi
5437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5438 LIBS=$ac_check_lib_save_LIBS
5439 fi
5440 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5441 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5442 if test $ac_cv_lib_unix_main = yes; then
5443   cat >>confdefs.h <<_ACEOF
5444 #define HAVE_LIBUNIX 1
5445 _ACEOF
5446
5447   LIBS="-lunix $LIBS"
5448
5449 fi
5450
5451 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5452 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5453 if test "${ac_cv_search_crypt+set}" = set; then
5454   echo $ECHO_N "(cached) $ECHO_C" >&6
5455 else
5456   ac_func_search_save_LIBS=$LIBS
5457 ac_cv_search_crypt=no
5458 cat >conftest.$ac_ext <<_ACEOF
5459 #line $LINENO "configure"
5460 #include "confdefs.h"
5461
5462 /* Override any gcc2 internal prototype to avoid an error.  */
5463 #ifdef __cplusplus
5464 extern "C"
5465 #endif
5466 /* We use char because int might match the return type of a gcc2
5467    builtin and then its argument prototype would still apply.  */
5468 char crypt ();
5469 #ifdef F77_DUMMY_MAIN
5470 #  ifdef __cplusplus
5471      extern "C"
5472 #  endif
5473    int F77_DUMMY_MAIN() { return 1; }
5474 #endif
5475 int
5476 main ()
5477 {
5478 crypt ();
5479   ;
5480   return 0;
5481 }
5482 _ACEOF
5483 rm -f conftest.$ac_objext conftest$ac_exeext
5484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5485   (eval $ac_link) 2>&5
5486   ac_status=$?
5487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488   (exit $ac_status); } &&
5489          { ac_try='test -s conftest$ac_exeext'
5490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491   (eval $ac_try) 2>&5
5492   ac_status=$?
5493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494   (exit $ac_status); }; }; then
5495   ac_cv_search_crypt="none required"
5496 else
5497   echo "$as_me: failed program was:" >&5
5498 cat conftest.$ac_ext >&5
5499 fi
5500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5501 if test "$ac_cv_search_crypt" = no; then
5502   for ac_lib in crypt; do
5503     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5504     cat >conftest.$ac_ext <<_ACEOF
5505 #line $LINENO "configure"
5506 #include "confdefs.h"
5507
5508 /* Override any gcc2 internal prototype to avoid an error.  */
5509 #ifdef __cplusplus
5510 extern "C"
5511 #endif
5512 /* We use char because int might match the return type of a gcc2
5513    builtin and then its argument prototype would still apply.  */
5514 char crypt ();
5515 #ifdef F77_DUMMY_MAIN
5516 #  ifdef __cplusplus
5517      extern "C"
5518 #  endif
5519    int F77_DUMMY_MAIN() { return 1; }
5520 #endif
5521 int
5522 main ()
5523 {
5524 crypt ();
5525   ;
5526   return 0;
5527 }
5528 _ACEOF
5529 rm -f conftest.$ac_objext conftest$ac_exeext
5530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5531   (eval $ac_link) 2>&5
5532   ac_status=$?
5533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534   (exit $ac_status); } &&
5535          { ac_try='test -s conftest$ac_exeext'
5536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5537   (eval $ac_try) 2>&5
5538   ac_status=$?
5539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540   (exit $ac_status); }; }; then
5541   ac_cv_search_crypt="-l$ac_lib"
5542 break
5543 else
5544   echo "$as_me: failed program was:" >&5
5545 cat conftest.$ac_ext >&5
5546 fi
5547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5548   done
5549 fi
5550 LIBS=$ac_func_search_save_LIBS
5551 fi
5552 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5553 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5554 if test "$ac_cv_search_crypt" != no; then
5555   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5556
5557 fi
5558
5559 # BeOS:
5560
5561 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5562 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5563 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5564   echo $ECHO_N "(cached) $ECHO_C" >&6
5565 else
5566   ac_check_lib_save_LIBS=$LIBS
5567 LIBS="-lbind  $LIBS"
5568 cat >conftest.$ac_ext <<_ACEOF
5569 #line $LINENO "configure"
5570 #include "confdefs.h"
5571
5572 /* Override any gcc2 internal prototype to avoid an error.  */
5573 #ifdef __cplusplus
5574 extern "C"
5575 #endif
5576 /* We use char because int might match the return type of a gcc2
5577    builtin and then its argument prototype would still apply.  */
5578 char __inet_ntoa ();
5579 #ifdef F77_DUMMY_MAIN
5580 #  ifdef __cplusplus
5581      extern "C"
5582 #  endif
5583    int F77_DUMMY_MAIN() { return 1; }
5584 #endif
5585 int
5586 main ()
5587 {
5588 __inet_ntoa ();
5589   ;
5590   return 0;
5591 }
5592 _ACEOF
5593 rm -f conftest.$ac_objext conftest$ac_exeext
5594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5595   (eval $ac_link) 2>&5
5596   ac_status=$?
5597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598   (exit $ac_status); } &&
5599          { ac_try='test -s conftest$ac_exeext'
5600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601   (eval $ac_try) 2>&5
5602   ac_status=$?
5603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604   (exit $ac_status); }; }; then
5605   ac_cv_lib_bind___inet_ntoa=yes
5606 else
5607   echo "$as_me: failed program was:" >&5
5608 cat conftest.$ac_ext >&5
5609 ac_cv_lib_bind___inet_ntoa=no
5610 fi
5611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5612 LIBS=$ac_check_lib_save_LIBS
5613 fi
5614 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5615 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5616 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5617   cat >>confdefs.h <<_ACEOF
5618 #define HAVE_LIBBIND 1
5619 _ACEOF
5620
5621   LIBS="-lbind $LIBS"
5622
5623 fi
5624
5625 # Solaris:
5626 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5627 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5628 if test "${ac_cv_search_fdatasync+set}" = set; then
5629   echo $ECHO_N "(cached) $ECHO_C" >&6
5630 else
5631   ac_func_search_save_LIBS=$LIBS
5632 ac_cv_search_fdatasync=no
5633 cat >conftest.$ac_ext <<_ACEOF
5634 #line $LINENO "configure"
5635 #include "confdefs.h"
5636
5637 /* Override any gcc2 internal prototype to avoid an error.  */
5638 #ifdef __cplusplus
5639 extern "C"
5640 #endif
5641 /* We use char because int might match the return type of a gcc2
5642    builtin and then its argument prototype would still apply.  */
5643 char fdatasync ();
5644 #ifdef F77_DUMMY_MAIN
5645 #  ifdef __cplusplus
5646      extern "C"
5647 #  endif
5648    int F77_DUMMY_MAIN() { return 1; }
5649 #endif
5650 int
5651 main ()
5652 {
5653 fdatasync ();
5654   ;
5655   return 0;
5656 }
5657 _ACEOF
5658 rm -f conftest.$ac_objext conftest$ac_exeext
5659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5660   (eval $ac_link) 2>&5
5661   ac_status=$?
5662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663   (exit $ac_status); } &&
5664          { ac_try='test -s conftest$ac_exeext'
5665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666   (eval $ac_try) 2>&5
5667   ac_status=$?
5668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669   (exit $ac_status); }; }; then
5670   ac_cv_search_fdatasync="none required"
5671 else
5672   echo "$as_me: failed program was:" >&5
5673 cat conftest.$ac_ext >&5
5674 fi
5675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5676 if test "$ac_cv_search_fdatasync" = no; then
5677   for ac_lib in rt posix4; do
5678     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5679     cat >conftest.$ac_ext <<_ACEOF
5680 #line $LINENO "configure"
5681 #include "confdefs.h"
5682
5683 /* Override any gcc2 internal prototype to avoid an error.  */
5684 #ifdef __cplusplus
5685 extern "C"
5686 #endif
5687 /* We use char because int might match the return type of a gcc2
5688    builtin and then its argument prototype would still apply.  */
5689 char fdatasync ();
5690 #ifdef F77_DUMMY_MAIN
5691 #  ifdef __cplusplus
5692      extern "C"
5693 #  endif
5694    int F77_DUMMY_MAIN() { return 1; }
5695 #endif
5696 int
5697 main ()
5698 {
5699 fdatasync ();
5700   ;
5701   return 0;
5702 }
5703 _ACEOF
5704 rm -f conftest.$ac_objext conftest$ac_exeext
5705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5706   (eval $ac_link) 2>&5
5707   ac_status=$?
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); } &&
5710          { ac_try='test -s conftest$ac_exeext'
5711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5712   (eval $ac_try) 2>&5
5713   ac_status=$?
5714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715   (exit $ac_status); }; }; then
5716   ac_cv_search_fdatasync="-l$ac_lib"
5717 break
5718 else
5719   echo "$as_me: failed program was:" >&5
5720 cat conftest.$ac_ext >&5
5721 fi
5722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5723   done
5724 fi
5725 LIBS=$ac_func_search_save_LIBS
5726 fi
5727 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5728 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5729 if test "$ac_cv_search_fdatasync" != no; then
5730   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5731
5732 fi
5733
5734
5735 if test "$with_readline" = yes; then
5736
5737 echo "$as_me:$LINENO: checking for readline" >&5
5738 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5739
5740 if test "${pgac_cv_check_readline+set}" = set; then
5741   echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743   pgac_cv_check_readline=no
5744 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5745   for pgac_rllib in -lreadline -ledit ; do
5746     pgac_save_LIBS=$LIBS
5747     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5748     cat >conftest.$ac_ext <<_ACEOF
5749 #line $LINENO "configure"
5750 #include "confdefs.h"
5751
5752 /* Override any gcc2 internal prototype to avoid an error.  */
5753 #ifdef __cplusplus
5754 extern "C"
5755 #endif
5756 /* We use char because int might match the return type of a gcc2
5757    builtin and then its argument prototype would still apply.  */
5758 char readline ();
5759 #ifdef F77_DUMMY_MAIN
5760 #  ifdef __cplusplus
5761      extern "C"
5762 #  endif
5763    int F77_DUMMY_MAIN() { return 1; }
5764 #endif
5765 int
5766 main ()
5767 {
5768 readline ();
5769   ;
5770   return 0;
5771 }
5772 _ACEOF
5773 rm -f conftest.$ac_objext conftest$ac_exeext
5774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5775   (eval $ac_link) 2>&5
5776   ac_status=$?
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); } &&
5779          { ac_try='test -s conftest$ac_exeext'
5780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781   (eval $ac_try) 2>&5
5782   ac_status=$?
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); }; }; then
5785
5786       # NetBSD and OpenBSD have a broken linker that does not
5787       # recognize dependent libraries
5788       case $host_os in netbsd* | openbsd* )
5789         case $pgac_lib in
5790           *curses*) ;;
5791           *) pgac_lib=" -lcurses" ;;
5792         esac
5793       esac
5794
5795       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5796       break 2
5797
5798 else
5799   echo "$as_me: failed program was:" >&5
5800 cat conftest.$ac_ext >&5
5801 fi
5802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5803     LIBS=$pgac_save_LIBS
5804   done
5805 done
5806 LIBS=$pgac_save_LIBS
5807
5808 fi
5809
5810 if test "$pgac_cv_check_readline" != no ; then
5811
5812 cat >>confdefs.h <<\_ACEOF
5813 #define HAVE_LIBREADLINE 1
5814 _ACEOF
5815
5816   LIBS="$pgac_cv_check_readline $LIBS"
5817   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5818 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5819 else
5820   echo "$as_me:$LINENO: result: no" >&5
5821 echo "${ECHO_T}no" >&6
5822 fi
5823   if test x"$pgac_cv_check_readline" = x"no"; then
5824     { { echo "$as_me:$LINENO: error: readline library not found
5825 Use --without-readline to disable readline support." >&5
5826 echo "$as_me: error: readline library not found
5827 Use --without-readline to disable readline support." >&2;}
5828    { (exit 1); exit 1; }; }
5829   fi
5830 fi
5831
5832 if test "$with_zlib" = yes; then
5833
5834 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5835 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5836 if test "${ac_cv_lib_z_inflate+set}" = set; then
5837   echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839   ac_check_lib_save_LIBS=$LIBS
5840 LIBS="-lz  $LIBS"
5841 cat >conftest.$ac_ext <<_ACEOF
5842 #line $LINENO "configure"
5843 #include "confdefs.h"
5844
5845 /* Override any gcc2 internal prototype to avoid an error.  */
5846 #ifdef __cplusplus
5847 extern "C"
5848 #endif
5849 /* We use char because int might match the return type of a gcc2
5850    builtin and then its argument prototype would still apply.  */
5851 char inflate ();
5852 #ifdef F77_DUMMY_MAIN
5853 #  ifdef __cplusplus
5854      extern "C"
5855 #  endif
5856    int F77_DUMMY_MAIN() { return 1; }
5857 #endif
5858 int
5859 main ()
5860 {
5861 inflate ();
5862   ;
5863   return 0;
5864 }
5865 _ACEOF
5866 rm -f conftest.$ac_objext conftest$ac_exeext
5867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5868   (eval $ac_link) 2>&5
5869   ac_status=$?
5870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871   (exit $ac_status); } &&
5872          { ac_try='test -s conftest$ac_exeext'
5873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874   (eval $ac_try) 2>&5
5875   ac_status=$?
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); }; }; then
5878   ac_cv_lib_z_inflate=yes
5879 else
5880   echo "$as_me: failed program was:" >&5
5881 cat conftest.$ac_ext >&5
5882 ac_cv_lib_z_inflate=no
5883 fi
5884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5885 LIBS=$ac_check_lib_save_LIBS
5886 fi
5887 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
5888 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
5889 if test $ac_cv_lib_z_inflate = yes; then
5890   cat >>confdefs.h <<_ACEOF
5891 #define HAVE_LIBZ 1
5892 _ACEOF
5893
5894   LIBS="-lz $LIBS"
5895
5896 else
5897   { { echo "$as_me:$LINENO: error: zlib library not found
5898 Use --without-zlib to disable zlib support." >&5
5899 echo "$as_me: error: zlib library not found
5900 Use --without-zlib to disable zlib support." >&2;}
5901    { (exit 1); exit 1; }; }
5902 fi
5903
5904 fi
5905
5906 if test "$with_krb4" = yes ; then
5907
5908 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
5909 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
5910 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
5911   echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913   ac_check_lib_save_LIBS=$LIBS
5914 LIBS="-ldes  $LIBS"
5915 cat >conftest.$ac_ext <<_ACEOF
5916 #line $LINENO "configure"
5917 #include "confdefs.h"
5918
5919 /* Override any gcc2 internal prototype to avoid an error.  */
5920 #ifdef __cplusplus
5921 extern "C"
5922 #endif
5923 /* We use char because int might match the return type of a gcc2
5924    builtin and then its argument prototype would still apply.  */
5925 char des_encrypt ();
5926 #ifdef F77_DUMMY_MAIN
5927 #  ifdef __cplusplus
5928      extern "C"
5929 #  endif
5930    int F77_DUMMY_MAIN() { return 1; }
5931 #endif
5932 int
5933 main ()
5934 {
5935 des_encrypt ();
5936   ;
5937   return 0;
5938 }
5939 _ACEOF
5940 rm -f conftest.$ac_objext conftest$ac_exeext
5941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5942   (eval $ac_link) 2>&5
5943   ac_status=$?
5944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945   (exit $ac_status); } &&
5946          { ac_try='test -s conftest$ac_exeext'
5947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948   (eval $ac_try) 2>&5
5949   ac_status=$?
5950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951   (exit $ac_status); }; }; then
5952   ac_cv_lib_des_des_encrypt=yes
5953 else
5954   echo "$as_me: failed program was:" >&5
5955 cat conftest.$ac_ext >&5
5956 ac_cv_lib_des_des_encrypt=no
5957 fi
5958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5959 LIBS=$ac_check_lib_save_LIBS
5960 fi
5961 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
5962 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
5963 if test $ac_cv_lib_des_des_encrypt = yes; then
5964   cat >>confdefs.h <<_ACEOF
5965 #define HAVE_LIBDES 1
5966 _ACEOF
5967
5968   LIBS="-ldes $LIBS"
5969
5970 else
5971   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
5972 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
5973    { (exit 1); exit 1; }; }
5974 fi
5975
5976
5977 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
5978 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
5979 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
5980   echo $ECHO_N "(cached) $ECHO_C" >&6
5981 else
5982   ac_check_lib_save_LIBS=$LIBS
5983 LIBS="-lkrb  $LIBS"
5984 cat >conftest.$ac_ext <<_ACEOF
5985 #line $LINENO "configure"
5986 #include "confdefs.h"
5987
5988 /* Override any gcc2 internal prototype to avoid an error.  */
5989 #ifdef __cplusplus
5990 extern "C"
5991 #endif
5992 /* We use char because int might match the return type of a gcc2
5993    builtin and then its argument prototype would still apply.  */
5994 char krb_sendauth ();
5995 #ifdef F77_DUMMY_MAIN
5996 #  ifdef __cplusplus
5997      extern "C"
5998 #  endif
5999    int F77_DUMMY_MAIN() { return 1; }
6000 #endif
6001 int
6002 main ()
6003 {
6004 krb_sendauth ();
6005   ;
6006   return 0;
6007 }
6008 _ACEOF
6009 rm -f conftest.$ac_objext conftest$ac_exeext
6010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6011   (eval $ac_link) 2>&5
6012   ac_status=$?
6013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014   (exit $ac_status); } &&
6015          { ac_try='test -s conftest$ac_exeext'
6016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017   (eval $ac_try) 2>&5
6018   ac_status=$?
6019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020   (exit $ac_status); }; }; then
6021   ac_cv_lib_krb_krb_sendauth=yes
6022 else
6023   echo "$as_me: failed program was:" >&5
6024 cat conftest.$ac_ext >&5
6025 ac_cv_lib_krb_krb_sendauth=no
6026 fi
6027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6028 LIBS=$ac_check_lib_save_LIBS
6029 fi
6030 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6031 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6032 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6033   cat >>confdefs.h <<_ACEOF
6034 #define HAVE_LIBKRB 1
6035 _ACEOF
6036
6037   LIBS="-lkrb $LIBS"
6038
6039 else
6040   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6041 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6042    { (exit 1); exit 1; }; }
6043 fi
6044
6045 fi
6046
6047 if test "$with_krb5" = yes ; then
6048   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6049 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6050 if test "${ac_cv_search_com_err+set}" = set; then
6051   echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053   ac_func_search_save_LIBS=$LIBS
6054 ac_cv_search_com_err=no
6055 cat >conftest.$ac_ext <<_ACEOF
6056 #line $LINENO "configure"
6057 #include "confdefs.h"
6058
6059 /* Override any gcc2 internal prototype to avoid an error.  */
6060 #ifdef __cplusplus
6061 extern "C"
6062 #endif
6063 /* We use char because int might match the return type of a gcc2
6064    builtin and then its argument prototype would still apply.  */
6065 char com_err ();
6066 #ifdef F77_DUMMY_MAIN
6067 #  ifdef __cplusplus
6068      extern "C"
6069 #  endif
6070    int F77_DUMMY_MAIN() { return 1; }
6071 #endif
6072 int
6073 main ()
6074 {
6075 com_err ();
6076   ;
6077   return 0;
6078 }
6079 _ACEOF
6080 rm -f conftest.$ac_objext conftest$ac_exeext
6081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6082   (eval $ac_link) 2>&5
6083   ac_status=$?
6084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085   (exit $ac_status); } &&
6086          { ac_try='test -s conftest$ac_exeext'
6087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088   (eval $ac_try) 2>&5
6089   ac_status=$?
6090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091   (exit $ac_status); }; }; then
6092   ac_cv_search_com_err="none required"
6093 else
6094   echo "$as_me: failed program was:" >&5
6095 cat conftest.$ac_ext >&5
6096 fi
6097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6098 if test "$ac_cv_search_com_err" = no; then
6099   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6100     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6101     cat >conftest.$ac_ext <<_ACEOF
6102 #line $LINENO "configure"
6103 #include "confdefs.h"
6104
6105 /* Override any gcc2 internal prototype to avoid an error.  */
6106 #ifdef __cplusplus
6107 extern "C"
6108 #endif
6109 /* We use char because int might match the return type of a gcc2
6110    builtin and then its argument prototype would still apply.  */
6111 char com_err ();
6112 #ifdef F77_DUMMY_MAIN
6113 #  ifdef __cplusplus
6114      extern "C"
6115 #  endif
6116    int F77_DUMMY_MAIN() { return 1; }
6117 #endif
6118 int
6119 main ()
6120 {
6121 com_err ();
6122   ;
6123   return 0;
6124 }
6125 _ACEOF
6126 rm -f conftest.$ac_objext conftest$ac_exeext
6127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6128   (eval $ac_link) 2>&5
6129   ac_status=$?
6130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131   (exit $ac_status); } &&
6132          { ac_try='test -s conftest$ac_exeext'
6133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134   (eval $ac_try) 2>&5
6135   ac_status=$?
6136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137   (exit $ac_status); }; }; then
6138   ac_cv_search_com_err="-l$ac_lib"
6139 break
6140 else
6141   echo "$as_me: failed program was:" >&5
6142 cat conftest.$ac_ext >&5
6143 fi
6144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6145   done
6146 fi
6147 LIBS=$ac_func_search_save_LIBS
6148 fi
6149 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6150 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6151 if test "$ac_cv_search_com_err" != no; then
6152   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6153
6154 else
6155   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6156 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6157    { (exit 1); exit 1; }; }
6158 fi
6159
6160   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6161 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6162 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6163   echo $ECHO_N "(cached) $ECHO_C" >&6
6164 else
6165   ac_func_search_save_LIBS=$LIBS
6166 ac_cv_search_krb5_encrypt=no
6167 cat >conftest.$ac_ext <<_ACEOF
6168 #line $LINENO "configure"
6169 #include "confdefs.h"
6170
6171 /* Override any gcc2 internal prototype to avoid an error.  */
6172 #ifdef __cplusplus
6173 extern "C"
6174 #endif
6175 /* We use char because int might match the return type of a gcc2
6176    builtin and then its argument prototype would still apply.  */
6177 char krb5_encrypt ();
6178 #ifdef F77_DUMMY_MAIN
6179 #  ifdef __cplusplus
6180      extern "C"
6181 #  endif
6182    int F77_DUMMY_MAIN() { return 1; }
6183 #endif
6184 int
6185 main ()
6186 {
6187 krb5_encrypt ();
6188   ;
6189   return 0;
6190 }
6191 _ACEOF
6192 rm -f conftest.$ac_objext conftest$ac_exeext
6193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6194   (eval $ac_link) 2>&5
6195   ac_status=$?
6196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197   (exit $ac_status); } &&
6198          { ac_try='test -s conftest$ac_exeext'
6199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200   (eval $ac_try) 2>&5
6201   ac_status=$?
6202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203   (exit $ac_status); }; }; then
6204   ac_cv_search_krb5_encrypt="none required"
6205 else
6206   echo "$as_me: failed program was:" >&5
6207 cat conftest.$ac_ext >&5
6208 fi
6209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6210 if test "$ac_cv_search_krb5_encrypt" = no; then
6211   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6212     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6213     cat >conftest.$ac_ext <<_ACEOF
6214 #line $LINENO "configure"
6215 #include "confdefs.h"
6216
6217 /* Override any gcc2 internal prototype to avoid an error.  */
6218 #ifdef __cplusplus
6219 extern "C"
6220 #endif
6221 /* We use char because int might match the return type of a gcc2
6222    builtin and then its argument prototype would still apply.  */
6223 char krb5_encrypt ();
6224 #ifdef F77_DUMMY_MAIN
6225 #  ifdef __cplusplus
6226      extern "C"
6227 #  endif
6228    int F77_DUMMY_MAIN() { return 1; }
6229 #endif
6230 int
6231 main ()
6232 {
6233 krb5_encrypt ();
6234   ;
6235   return 0;
6236 }
6237 _ACEOF
6238 rm -f conftest.$ac_objext conftest$ac_exeext
6239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6240   (eval $ac_link) 2>&5
6241   ac_status=$?
6242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243   (exit $ac_status); } &&
6244          { ac_try='test -s conftest$ac_exeext'
6245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246   (eval $ac_try) 2>&5
6247   ac_status=$?
6248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249   (exit $ac_status); }; }; then
6250   ac_cv_search_krb5_encrypt="-l$ac_lib"
6251 break
6252 else
6253   echo "$as_me: failed program was:" >&5
6254 cat conftest.$ac_ext >&5
6255 fi
6256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6257   done
6258 fi
6259 LIBS=$ac_func_search_save_LIBS
6260 fi
6261 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6262 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6263 if test "$ac_cv_search_krb5_encrypt" != no; then
6264   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6265
6266 else
6267   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6268 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6269    { (exit 1); exit 1; }; }
6270 fi
6271
6272   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6273 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6274 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6275   echo $ECHO_N "(cached) $ECHO_C" >&6
6276 else
6277   ac_func_search_save_LIBS=$LIBS
6278 ac_cv_search_krb5_sendauth=no
6279 cat >conftest.$ac_ext <<_ACEOF
6280 #line $LINENO "configure"
6281 #include "confdefs.h"
6282
6283 /* Override any gcc2 internal prototype to avoid an error.  */
6284 #ifdef __cplusplus
6285 extern "C"
6286 #endif
6287 /* We use char because int might match the return type of a gcc2
6288    builtin and then its argument prototype would still apply.  */
6289 char krb5_sendauth ();
6290 #ifdef F77_DUMMY_MAIN
6291 #  ifdef __cplusplus
6292      extern "C"
6293 #  endif
6294    int F77_DUMMY_MAIN() { return 1; }
6295 #endif
6296 int
6297 main ()
6298 {
6299 krb5_sendauth ();
6300   ;
6301   return 0;
6302 }
6303 _ACEOF
6304 rm -f conftest.$ac_objext conftest$ac_exeext
6305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6306   (eval $ac_link) 2>&5
6307   ac_status=$?
6308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309   (exit $ac_status); } &&
6310          { ac_try='test -s conftest$ac_exeext'
6311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312   (eval $ac_try) 2>&5
6313   ac_status=$?
6314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315   (exit $ac_status); }; }; then
6316   ac_cv_search_krb5_sendauth="none required"
6317 else
6318   echo "$as_me: failed program was:" >&5
6319 cat conftest.$ac_ext >&5
6320 fi
6321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6322 if test "$ac_cv_search_krb5_sendauth" = no; then
6323   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6324     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6325     cat >conftest.$ac_ext <<_ACEOF
6326 #line $LINENO "configure"
6327 #include "confdefs.h"
6328
6329 /* Override any gcc2 internal prototype to avoid an error.  */
6330 #ifdef __cplusplus
6331 extern "C"
6332 #endif
6333 /* We use char because int might match the return type of a gcc2
6334    builtin and then its argument prototype would still apply.  */
6335 char krb5_sendauth ();
6336 #ifdef F77_DUMMY_MAIN
6337 #  ifdef __cplusplus
6338      extern "C"
6339 #  endif
6340    int F77_DUMMY_MAIN() { return 1; }
6341 #endif
6342 int
6343 main ()
6344 {
6345 krb5_sendauth ();
6346   ;
6347   return 0;
6348 }
6349 _ACEOF
6350 rm -f conftest.$ac_objext conftest$ac_exeext
6351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6352   (eval $ac_link) 2>&5
6353   ac_status=$?
6354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355   (exit $ac_status); } &&
6356          { ac_try='test -s conftest$ac_exeext'
6357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358   (eval $ac_try) 2>&5
6359   ac_status=$?
6360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361   (exit $ac_status); }; }; then
6362   ac_cv_search_krb5_sendauth="-l$ac_lib"
6363 break
6364 else
6365   echo "$as_me: failed program was:" >&5
6366 cat conftest.$ac_ext >&5
6367 fi
6368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6369   done
6370 fi
6371 LIBS=$ac_func_search_save_LIBS
6372 fi
6373 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6374 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6375 if test "$ac_cv_search_krb5_sendauth" != no; then
6376   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6377
6378 else
6379   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6380 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6381    { (exit 1); exit 1; }; }
6382 fi
6383
6384 fi
6385
6386 if test "$with_openssl" = yes ; then
6387
6388 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6389 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6390 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6391   echo $ECHO_N "(cached) $ECHO_C" >&6
6392 else
6393   ac_check_lib_save_LIBS=$LIBS
6394 LIBS="-lcrypto  $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 CRYPTO_new_ex_data ();
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 CRYPTO_new_ex_data ();
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_lib_crypto_CRYPTO_new_ex_data=yes
6433 else
6434   echo "$as_me: failed program was:" >&5
6435 cat conftest.$ac_ext >&5
6436 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6437 fi
6438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6439 LIBS=$ac_check_lib_save_LIBS
6440 fi
6441 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6442 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6443 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6444   cat >>confdefs.h <<_ACEOF
6445 #define HAVE_LIBCRYPTO 1
6446 _ACEOF
6447
6448   LIBS="-lcrypto $LIBS"
6449
6450 else
6451   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6452 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6453    { (exit 1); exit 1; }; }
6454 fi
6455
6456
6457 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6458 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6459 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6460   echo $ECHO_N "(cached) $ECHO_C" >&6
6461 else
6462   ac_check_lib_save_LIBS=$LIBS
6463 LIBS="-lssl  $LIBS"
6464 cat >conftest.$ac_ext <<_ACEOF
6465 #line $LINENO "configure"
6466 #include "confdefs.h"
6467
6468 /* Override any gcc2 internal prototype to avoid an error.  */
6469 #ifdef __cplusplus
6470 extern "C"
6471 #endif
6472 /* We use char because int might match the return type of a gcc2
6473    builtin and then its argument prototype would still apply.  */
6474 char SSL_library_init ();
6475 #ifdef F77_DUMMY_MAIN
6476 #  ifdef __cplusplus
6477      extern "C"
6478 #  endif
6479    int F77_DUMMY_MAIN() { return 1; }
6480 #endif
6481 int
6482 main ()
6483 {
6484 SSL_library_init ();
6485   ;
6486   return 0;
6487 }
6488 _ACEOF
6489 rm -f conftest.$ac_objext conftest$ac_exeext
6490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6491   (eval $ac_link) 2>&5
6492   ac_status=$?
6493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494   (exit $ac_status); } &&
6495          { ac_try='test -s conftest$ac_exeext'
6496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497   (eval $ac_try) 2>&5
6498   ac_status=$?
6499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500   (exit $ac_status); }; }; then
6501   ac_cv_lib_ssl_SSL_library_init=yes
6502 else
6503   echo "$as_me: failed program was:" >&5
6504 cat conftest.$ac_ext >&5
6505 ac_cv_lib_ssl_SSL_library_init=no
6506 fi
6507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6508 LIBS=$ac_check_lib_save_LIBS
6509 fi
6510 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6511 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6512 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6513   cat >>confdefs.h <<_ACEOF
6514 #define HAVE_LIBSSL 1
6515 _ACEOF
6516
6517   LIBS="-lssl $LIBS"
6518
6519 else
6520   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6521 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6522    { (exit 1); exit 1; }; }
6523 fi
6524
6525 fi
6526
6527 if test "$with_pam" = yes ; then
6528
6529 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6530 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6531 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6532   echo $ECHO_N "(cached) $ECHO_C" >&6
6533 else
6534   ac_check_lib_save_LIBS=$LIBS
6535 LIBS="-lpam  $LIBS"
6536 cat >conftest.$ac_ext <<_ACEOF
6537 #line $LINENO "configure"
6538 #include "confdefs.h"
6539
6540 /* Override any gcc2 internal prototype to avoid an error.  */
6541 #ifdef __cplusplus
6542 extern "C"
6543 #endif
6544 /* We use char because int might match the return type of a gcc2
6545    builtin and then its argument prototype would still apply.  */
6546 char pam_start ();
6547 #ifdef F77_DUMMY_MAIN
6548 #  ifdef __cplusplus
6549      extern "C"
6550 #  endif
6551    int F77_DUMMY_MAIN() { return 1; }
6552 #endif
6553 int
6554 main ()
6555 {
6556 pam_start ();
6557   ;
6558   return 0;
6559 }
6560 _ACEOF
6561 rm -f conftest.$ac_objext conftest$ac_exeext
6562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6563   (eval $ac_link) 2>&5
6564   ac_status=$?
6565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566   (exit $ac_status); } &&
6567          { ac_try='test -s conftest$ac_exeext'
6568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6569   (eval $ac_try) 2>&5
6570   ac_status=$?
6571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572   (exit $ac_status); }; }; then
6573   ac_cv_lib_pam_pam_start=yes
6574 else
6575   echo "$as_me: failed program was:" >&5
6576 cat conftest.$ac_ext >&5
6577 ac_cv_lib_pam_pam_start=no
6578 fi
6579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6580 LIBS=$ac_check_lib_save_LIBS
6581 fi
6582 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6583 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6584 if test $ac_cv_lib_pam_pam_start = yes; then
6585   cat >>confdefs.h <<_ACEOF
6586 #define HAVE_LIBPAM 1
6587 _ACEOF
6588
6589   LIBS="-lpam $LIBS"
6590
6591 else
6592   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6593 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6594    { (exit 1); exit 1; }; }
6595 fi
6596
6597 fi
6598
6599
6600 ##
6601 ## Header files
6602 ##
6603
6604 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6605 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6606 if test "${ac_cv_header_stdc+set}" = set; then
6607   echo $ECHO_N "(cached) $ECHO_C" >&6
6608 else
6609   cat >conftest.$ac_ext <<_ACEOF
6610 #line $LINENO "configure"
6611 #include "confdefs.h"
6612 #include <stdlib.h>
6613 #include <stdarg.h>
6614 #include <string.h>
6615 #include <float.h>
6616
6617 _ACEOF
6618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6619   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6620   ac_status=$?
6621   egrep -v '^ *\+' conftest.er1 >conftest.err
6622   rm -f conftest.er1
6623   cat conftest.err >&5
6624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625   (exit $ac_status); } >/dev/null; then
6626   if test -s conftest.err; then
6627     ac_cpp_err=$ac_c_preproc_warn_flag
6628   else
6629     ac_cpp_err=
6630   fi
6631 else
6632   ac_cpp_err=yes
6633 fi
6634 if test -z "$ac_cpp_err"; then
6635   ac_cv_header_stdc=yes
6636 else
6637   echo "$as_me: failed program was:" >&5
6638   cat conftest.$ac_ext >&5
6639   ac_cv_header_stdc=no
6640 fi
6641 rm -f conftest.err conftest.$ac_ext
6642
6643 if test $ac_cv_header_stdc = yes; then
6644   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6645   cat >conftest.$ac_ext <<_ACEOF
6646 #line $LINENO "configure"
6647 #include "confdefs.h"
6648 #include <string.h>
6649
6650 _ACEOF
6651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6652   egrep "memchr" >/dev/null 2>&1; then
6653   :
6654 else
6655   ac_cv_header_stdc=no
6656 fi
6657 rm -f conftest*
6658
6659 fi
6660
6661 if test $ac_cv_header_stdc = yes; then
6662   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6663   cat >conftest.$ac_ext <<_ACEOF
6664 #line $LINENO "configure"
6665 #include "confdefs.h"
6666 #include <stdlib.h>
6667
6668 _ACEOF
6669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6670   egrep "free" >/dev/null 2>&1; then
6671   :
6672 else
6673   ac_cv_header_stdc=no
6674 fi
6675 rm -f conftest*
6676
6677 fi
6678
6679 if test $ac_cv_header_stdc = yes; then
6680   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6681   if test "$cross_compiling" = yes; then
6682   :
6683 else
6684   cat >conftest.$ac_ext <<_ACEOF
6685 #line $LINENO "configure"
6686 #include "confdefs.h"
6687 #include <ctype.h>
6688 #if ((' ' & 0x0FF) == 0x020)
6689 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6690 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6691 #else
6692 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6693                      || ('j' <= (c) && (c) <= 'r') \
6694                      || ('s' <= (c) && (c) <= 'z'))
6695 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6696 #endif
6697
6698 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6699 int
6700 main ()
6701 {
6702   int i;
6703   for (i = 0; i < 256; i++)
6704     if (XOR (islower (i), ISLOWER (i))
6705         || toupper (i) != TOUPPER (i))
6706       exit(2);
6707   exit (0);
6708 }
6709 _ACEOF
6710 rm -f conftest$ac_exeext
6711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6712   (eval $ac_link) 2>&5
6713   ac_status=$?
6714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717   (eval $ac_try) 2>&5
6718   ac_status=$?
6719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720   (exit $ac_status); }; }; then
6721   :
6722 else
6723   echo "$as_me: program exited with status $ac_status" >&5
6724 echo "$as_me: failed program was:" >&5
6725 cat conftest.$ac_ext >&5
6726 ( exit $ac_status )
6727 ac_cv_header_stdc=no
6728 fi
6729 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6730 fi
6731 fi
6732 fi
6733 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6734 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6735 if test $ac_cv_header_stdc = yes; then
6736
6737 cat >>confdefs.h <<\_ACEOF
6738 #define STDC_HEADERS 1
6739 _ACEOF
6740
6741 fi
6742
6743 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6754                   inttypes.h stdint.h unistd.h
6755 do
6756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6757 echo "$as_me:$LINENO: checking for $ac_header" >&5
6758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6760   echo $ECHO_N "(cached) $ECHO_C" >&6
6761 else
6762   cat >conftest.$ac_ext <<_ACEOF
6763 #line $LINENO "configure"
6764 #include "confdefs.h"
6765 $ac_includes_default
6766
6767 #include <$ac_header>
6768 _ACEOF
6769 rm -f conftest.$ac_objext
6770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6771   (eval $ac_compile) 2>&5
6772   ac_status=$?
6773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774   (exit $ac_status); } &&
6775          { ac_try='test -s conftest.$ac_objext'
6776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777   (eval $ac_try) 2>&5
6778   ac_status=$?
6779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780   (exit $ac_status); }; }; then
6781   eval "$as_ac_Header=yes"
6782 else
6783   echo "$as_me: failed program was:" >&5
6784 cat conftest.$ac_ext >&5
6785 eval "$as_ac_Header=no"
6786 fi
6787 rm -f conftest.$ac_objext conftest.$ac_ext
6788 fi
6789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6792   cat >>confdefs.h <<_ACEOF
6793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6794 _ACEOF
6795
6796 fi
6797
6798 done
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/ipc.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h kernel/OS.h kernel/image.h SupportDefs.h
6820 do
6821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6823   echo "$as_me:$LINENO: checking for $ac_header" >&5
6824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6826   echo $ECHO_N "(cached) $ECHO_C" >&6
6827 fi
6828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6830 else
6831   # Is the header compilable?
6832 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6834 cat >conftest.$ac_ext <<_ACEOF
6835 #line $LINENO "configure"
6836 #include "confdefs.h"
6837 $ac_includes_default
6838 #include <$ac_header>
6839 _ACEOF
6840 rm -f conftest.$ac_objext
6841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6842   (eval $ac_compile) 2>&5
6843   ac_status=$?
6844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845   (exit $ac_status); } &&
6846          { ac_try='test -s conftest.$ac_objext'
6847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848   (eval $ac_try) 2>&5
6849   ac_status=$?
6850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851   (exit $ac_status); }; }; then
6852   ac_header_compiler=yes
6853 else
6854   echo "$as_me: failed program was:" >&5
6855 cat conftest.$ac_ext >&5
6856 ac_header_compiler=no
6857 fi
6858 rm -f conftest.$ac_objext conftest.$ac_ext
6859 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6860 echo "${ECHO_T}$ac_header_compiler" >&6
6861
6862 # Is the header present?
6863 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6865 cat >conftest.$ac_ext <<_ACEOF
6866 #line $LINENO "configure"
6867 #include "confdefs.h"
6868 #include <$ac_header>
6869 _ACEOF
6870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6871   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6872   ac_status=$?
6873   egrep -v '^ *\+' conftest.er1 >conftest.err
6874   rm -f conftest.er1
6875   cat conftest.err >&5
6876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877   (exit $ac_status); } >/dev/null; then
6878   if test -s conftest.err; then
6879     ac_cpp_err=$ac_c_preproc_warn_flag
6880   else
6881     ac_cpp_err=
6882   fi
6883 else
6884   ac_cpp_err=yes
6885 fi
6886 if test -z "$ac_cpp_err"; then
6887   ac_header_preproc=yes
6888 else
6889   echo "$as_me: failed program was:" >&5
6890   cat conftest.$ac_ext >&5
6891   ac_header_preproc=no
6892 fi
6893 rm -f conftest.err conftest.$ac_ext
6894 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6895 echo "${ECHO_T}$ac_header_preproc" >&6
6896
6897 # So?  What about this header?
6898 case $ac_header_compiler:$ac_header_preproc in
6899   yes:no )
6900     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6902     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6904   no:yes )
6905     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6907     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6909     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6911 esac
6912 echo "$as_me:$LINENO: checking for $ac_header" >&5
6913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6915   echo $ECHO_N "(cached) $ECHO_C" >&6
6916 else
6917   eval "$as_ac_Header=$ac_header_preproc"
6918 fi
6919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6921
6922 fi
6923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6924   cat >>confdefs.h <<_ACEOF
6925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6926 _ACEOF
6927
6928 fi
6929
6930 done
6931
6932
6933 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
6934 # netinet/in.h is included first.
6935
6936 for ac_header in netinet/in.h
6937 do
6938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6940   echo "$as_me:$LINENO: checking for $ac_header" >&5
6941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6943   echo $ECHO_N "(cached) $ECHO_C" >&6
6944 fi
6945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6947 else
6948   # Is the header compilable?
6949 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6951 cat >conftest.$ac_ext <<_ACEOF
6952 #line $LINENO "configure"
6953 #include "confdefs.h"
6954 $ac_includes_default
6955 #include <$ac_header>
6956 _ACEOF
6957 rm -f conftest.$ac_objext
6958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6959   (eval $ac_compile) 2>&5
6960   ac_status=$?
6961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962   (exit $ac_status); } &&
6963          { ac_try='test -s conftest.$ac_objext'
6964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965   (eval $ac_try) 2>&5
6966   ac_status=$?
6967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968   (exit $ac_status); }; }; then
6969   ac_header_compiler=yes
6970 else
6971   echo "$as_me: failed program was:" >&5
6972 cat conftest.$ac_ext >&5
6973 ac_header_compiler=no
6974 fi
6975 rm -f conftest.$ac_objext conftest.$ac_ext
6976 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6977 echo "${ECHO_T}$ac_header_compiler" >&6
6978
6979 # Is the header present?
6980 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6981 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6982 cat >conftest.$ac_ext <<_ACEOF
6983 #line $LINENO "configure"
6984 #include "confdefs.h"
6985 #include <$ac_header>
6986 _ACEOF
6987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6988   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6989   ac_status=$?
6990   egrep -v '^ *\+' conftest.er1 >conftest.err
6991   rm -f conftest.er1
6992   cat conftest.err >&5
6993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994   (exit $ac_status); } >/dev/null; then
6995   if test -s conftest.err; then
6996     ac_cpp_err=$ac_c_preproc_warn_flag
6997   else
6998     ac_cpp_err=
6999   fi
7000 else
7001   ac_cpp_err=yes
7002 fi
7003 if test -z "$ac_cpp_err"; then
7004   ac_header_preproc=yes
7005 else
7006   echo "$as_me: failed program was:" >&5
7007   cat conftest.$ac_ext >&5
7008   ac_header_preproc=no
7009 fi
7010 rm -f conftest.err conftest.$ac_ext
7011 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7012 echo "${ECHO_T}$ac_header_preproc" >&6
7013
7014 # So?  What about this header?
7015 case $ac_header_compiler:$ac_header_preproc in
7016   yes:no )
7017     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7019     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7020 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7021   no:yes )
7022     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7024     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7026     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7028 esac
7029 echo "$as_me:$LINENO: checking for $ac_header" >&5
7030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7032   echo $ECHO_N "(cached) $ECHO_C" >&6
7033 else
7034   eval "$as_ac_Header=$ac_header_preproc"
7035 fi
7036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7038
7039 fi
7040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7041   cat >>confdefs.h <<_ACEOF
7042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7043 _ACEOF
7044
7045 fi
7046
7047 done
7048
7049
7050 for ac_header in netinet/tcp.h
7051 do
7052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7053 echo "$as_me:$LINENO: checking for $ac_header" >&5
7054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7056   echo $ECHO_N "(cached) $ECHO_C" >&6
7057 else
7058   cat >conftest.$ac_ext <<_ACEOF
7059 #line $LINENO "configure"
7060 #include "confdefs.h"
7061 $ac_includes_default
7062 #ifdef HAVE_NETINET_IN_H
7063 #include <netinet/in.h>
7064 #endif
7065
7066
7067 #include <$ac_header>
7068 _ACEOF
7069 rm -f conftest.$ac_objext
7070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7071   (eval $ac_compile) 2>&5
7072   ac_status=$?
7073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074   (exit $ac_status); } &&
7075          { ac_try='test -s conftest.$ac_objext'
7076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077   (eval $ac_try) 2>&5
7078   ac_status=$?
7079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080   (exit $ac_status); }; }; then
7081   eval "$as_ac_Header=yes"
7082 else
7083   echo "$as_me: failed program was:" >&5
7084 cat conftest.$ac_ext >&5
7085 eval "$as_ac_Header=no"
7086 fi
7087 rm -f conftest.$ac_objext conftest.$ac_ext
7088 fi
7089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7092   cat >>confdefs.h <<_ACEOF
7093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7094 _ACEOF
7095
7096 fi
7097
7098 done
7099
7100
7101 if test "$with_readline" = yes; then
7102
7103 for ac_header in readline/readline.h
7104 do
7105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7107   echo "$as_me:$LINENO: checking for $ac_header" >&5
7108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7110   echo $ECHO_N "(cached) $ECHO_C" >&6
7111 fi
7112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7114 else
7115   # Is the header compilable?
7116 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7118 cat >conftest.$ac_ext <<_ACEOF
7119 #line $LINENO "configure"
7120 #include "confdefs.h"
7121 $ac_includes_default
7122 #include <$ac_header>
7123 _ACEOF
7124 rm -f conftest.$ac_objext
7125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7126   (eval $ac_compile) 2>&5
7127   ac_status=$?
7128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129   (exit $ac_status); } &&
7130          { ac_try='test -s conftest.$ac_objext'
7131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132   (eval $ac_try) 2>&5
7133   ac_status=$?
7134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135   (exit $ac_status); }; }; then
7136   ac_header_compiler=yes
7137 else
7138   echo "$as_me: failed program was:" >&5
7139 cat conftest.$ac_ext >&5
7140 ac_header_compiler=no
7141 fi
7142 rm -f conftest.$ac_objext conftest.$ac_ext
7143 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7144 echo "${ECHO_T}$ac_header_compiler" >&6
7145
7146 # Is the header present?
7147 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7149 cat >conftest.$ac_ext <<_ACEOF
7150 #line $LINENO "configure"
7151 #include "confdefs.h"
7152 #include <$ac_header>
7153 _ACEOF
7154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7155   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7156   ac_status=$?
7157   egrep -v '^ *\+' conftest.er1 >conftest.err
7158   rm -f conftest.er1
7159   cat conftest.err >&5
7160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161   (exit $ac_status); } >/dev/null; then
7162   if test -s conftest.err; then
7163     ac_cpp_err=$ac_c_preproc_warn_flag
7164   else
7165     ac_cpp_err=
7166   fi
7167 else
7168   ac_cpp_err=yes
7169 fi
7170 if test -z "$ac_cpp_err"; then
7171   ac_header_preproc=yes
7172 else
7173   echo "$as_me: failed program was:" >&5
7174   cat conftest.$ac_ext >&5
7175   ac_header_preproc=no
7176 fi
7177 rm -f conftest.err conftest.$ac_ext
7178 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7179 echo "${ECHO_T}$ac_header_preproc" >&6
7180
7181 # So?  What about this header?
7182 case $ac_header_compiler:$ac_header_preproc in
7183   yes:no )
7184     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7186     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7188   no:yes )
7189     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7191     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7192 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7195 esac
7196 echo "$as_me:$LINENO: checking for $ac_header" >&5
7197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7199   echo $ECHO_N "(cached) $ECHO_C" >&6
7200 else
7201   eval "$as_ac_Header=$ac_header_preproc"
7202 fi
7203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7205
7206 fi
7207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7208   cat >>confdefs.h <<_ACEOF
7209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7210 _ACEOF
7211
7212 else
7213
7214 for ac_header in readline.h
7215 do
7216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7218   echo "$as_me:$LINENO: checking for $ac_header" >&5
7219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7221   echo $ECHO_N "(cached) $ECHO_C" >&6
7222 fi
7223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7225 else
7226   # Is the header compilable?
7227 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7228 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7229 cat >conftest.$ac_ext <<_ACEOF
7230 #line $LINENO "configure"
7231 #include "confdefs.h"
7232 $ac_includes_default
7233 #include <$ac_header>
7234 _ACEOF
7235 rm -f conftest.$ac_objext
7236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7237   (eval $ac_compile) 2>&5
7238   ac_status=$?
7239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240   (exit $ac_status); } &&
7241          { ac_try='test -s conftest.$ac_objext'
7242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243   (eval $ac_try) 2>&5
7244   ac_status=$?
7245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246   (exit $ac_status); }; }; then
7247   ac_header_compiler=yes
7248 else
7249   echo "$as_me: failed program was:" >&5
7250 cat conftest.$ac_ext >&5
7251 ac_header_compiler=no
7252 fi
7253 rm -f conftest.$ac_objext conftest.$ac_ext
7254 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7255 echo "${ECHO_T}$ac_header_compiler" >&6
7256
7257 # Is the header present?
7258 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7260 cat >conftest.$ac_ext <<_ACEOF
7261 #line $LINENO "configure"
7262 #include "confdefs.h"
7263 #include <$ac_header>
7264 _ACEOF
7265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7266   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7267   ac_status=$?
7268   egrep -v '^ *\+' conftest.er1 >conftest.err
7269   rm -f conftest.er1
7270   cat conftest.err >&5
7271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272   (exit $ac_status); } >/dev/null; then
7273   if test -s conftest.err; then
7274     ac_cpp_err=$ac_c_preproc_warn_flag
7275   else
7276     ac_cpp_err=
7277   fi
7278 else
7279   ac_cpp_err=yes
7280 fi
7281 if test -z "$ac_cpp_err"; then
7282   ac_header_preproc=yes
7283 else
7284   echo "$as_me: failed program was:" >&5
7285   cat conftest.$ac_ext >&5
7286   ac_header_preproc=no
7287 fi
7288 rm -f conftest.err conftest.$ac_ext
7289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7290 echo "${ECHO_T}$ac_header_preproc" >&6
7291
7292 # So?  What about this header?
7293 case $ac_header_compiler:$ac_header_preproc in
7294   yes:no )
7295     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7299   no:yes )
7300     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7302     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7303 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7304     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7306 esac
7307 echo "$as_me:$LINENO: checking for $ac_header" >&5
7308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7310   echo $ECHO_N "(cached) $ECHO_C" >&6
7311 else
7312   eval "$as_ac_Header=$ac_header_preproc"
7313 fi
7314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7316
7317 fi
7318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7319   cat >>confdefs.h <<_ACEOF
7320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7321 _ACEOF
7322
7323 else
7324   { { echo "$as_me:$LINENO: error: readline header not found
7325 Use --without-readline to disable readline support." >&5
7326 echo "$as_me: error: readline header not found
7327 Use --without-readline to disable readline support." >&2;}
7328    { (exit 1); exit 1; }; }
7329 fi
7330
7331 done
7332
7333 fi
7334
7335 done
7336
7337
7338 for ac_header in readline/history.h
7339 do
7340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7342   echo "$as_me:$LINENO: checking for $ac_header" >&5
7343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7345   echo $ECHO_N "(cached) $ECHO_C" >&6
7346 fi
7347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7349 else
7350   # Is the header compilable?
7351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7353 cat >conftest.$ac_ext <<_ACEOF
7354 #line $LINENO "configure"
7355 #include "confdefs.h"
7356 $ac_includes_default
7357 #include <$ac_header>
7358 _ACEOF
7359 rm -f conftest.$ac_objext
7360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7361   (eval $ac_compile) 2>&5
7362   ac_status=$?
7363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364   (exit $ac_status); } &&
7365          { ac_try='test -s conftest.$ac_objext'
7366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367   (eval $ac_try) 2>&5
7368   ac_status=$?
7369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370   (exit $ac_status); }; }; then
7371   ac_header_compiler=yes
7372 else
7373   echo "$as_me: failed program was:" >&5
7374 cat conftest.$ac_ext >&5
7375 ac_header_compiler=no
7376 fi
7377 rm -f conftest.$ac_objext conftest.$ac_ext
7378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7379 echo "${ECHO_T}$ac_header_compiler" >&6
7380
7381 # Is the header present?
7382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7384 cat >conftest.$ac_ext <<_ACEOF
7385 #line $LINENO "configure"
7386 #include "confdefs.h"
7387 #include <$ac_header>
7388 _ACEOF
7389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7390   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7391   ac_status=$?
7392   egrep -v '^ *\+' conftest.er1 >conftest.err
7393   rm -f conftest.er1
7394   cat conftest.err >&5
7395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396   (exit $ac_status); } >/dev/null; then
7397   if test -s conftest.err; then
7398     ac_cpp_err=$ac_c_preproc_warn_flag
7399   else
7400     ac_cpp_err=
7401   fi
7402 else
7403   ac_cpp_err=yes
7404 fi
7405 if test -z "$ac_cpp_err"; then
7406   ac_header_preproc=yes
7407 else
7408   echo "$as_me: failed program was:" >&5
7409   cat conftest.$ac_ext >&5
7410   ac_header_preproc=no
7411 fi
7412 rm -f conftest.err conftest.$ac_ext
7413 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7414 echo "${ECHO_T}$ac_header_preproc" >&6
7415
7416 # So?  What about this header?
7417 case $ac_header_compiler:$ac_header_preproc in
7418   yes:no )
7419     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7421     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7423   no:yes )
7424     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7426     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7428     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7430 esac
7431 echo "$as_me:$LINENO: checking for $ac_header" >&5
7432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7434   echo $ECHO_N "(cached) $ECHO_C" >&6
7435 else
7436   eval "$as_ac_Header=$ac_header_preproc"
7437 fi
7438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7440
7441 fi
7442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7443   cat >>confdefs.h <<_ACEOF
7444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7445 _ACEOF
7446
7447 else
7448
7449 for ac_header in history.h
7450 do
7451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7453   echo "$as_me:$LINENO: checking for $ac_header" >&5
7454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7456   echo $ECHO_N "(cached) $ECHO_C" >&6
7457 fi
7458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7460 else
7461   # Is the header compilable?
7462 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7464 cat >conftest.$ac_ext <<_ACEOF
7465 #line $LINENO "configure"
7466 #include "confdefs.h"
7467 $ac_includes_default
7468 #include <$ac_header>
7469 _ACEOF
7470 rm -f conftest.$ac_objext
7471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7472   (eval $ac_compile) 2>&5
7473   ac_status=$?
7474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475   (exit $ac_status); } &&
7476          { ac_try='test -s conftest.$ac_objext'
7477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478   (eval $ac_try) 2>&5
7479   ac_status=$?
7480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481   (exit $ac_status); }; }; then
7482   ac_header_compiler=yes
7483 else
7484   echo "$as_me: failed program was:" >&5
7485 cat conftest.$ac_ext >&5
7486 ac_header_compiler=no
7487 fi
7488 rm -f conftest.$ac_objext conftest.$ac_ext
7489 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7490 echo "${ECHO_T}$ac_header_compiler" >&6
7491
7492 # Is the header present?
7493 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7494 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7495 cat >conftest.$ac_ext <<_ACEOF
7496 #line $LINENO "configure"
7497 #include "confdefs.h"
7498 #include <$ac_header>
7499 _ACEOF
7500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7501   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7502   ac_status=$?
7503   egrep -v '^ *\+' conftest.er1 >conftest.err
7504   rm -f conftest.er1
7505   cat conftest.err >&5
7506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507   (exit $ac_status); } >/dev/null; then
7508   if test -s conftest.err; then
7509     ac_cpp_err=$ac_c_preproc_warn_flag
7510   else
7511     ac_cpp_err=
7512   fi
7513 else
7514   ac_cpp_err=yes
7515 fi
7516 if test -z "$ac_cpp_err"; then
7517   ac_header_preproc=yes
7518 else
7519   echo "$as_me: failed program was:" >&5
7520   cat conftest.$ac_ext >&5
7521   ac_header_preproc=no
7522 fi
7523 rm -f conftest.err conftest.$ac_ext
7524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7525 echo "${ECHO_T}$ac_header_preproc" >&6
7526
7527 # So?  What about this header?
7528 case $ac_header_compiler:$ac_header_preproc in
7529   yes:no )
7530     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7532     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7534   no:yes )
7535     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7536 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7537     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7538 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7539     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7541 esac
7542 echo "$as_me:$LINENO: checking for $ac_header" >&5
7543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7545   echo $ECHO_N "(cached) $ECHO_C" >&6
7546 else
7547   eval "$as_ac_Header=$ac_header_preproc"
7548 fi
7549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7551
7552 fi
7553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7554   cat >>confdefs.h <<_ACEOF
7555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7556 _ACEOF
7557
7558 else
7559   { { echo "$as_me:$LINENO: error: history header not found
7560 Use --without-readline to disable readline support." >&5
7561 echo "$as_me: error: history header not found
7562 Use --without-readline to disable readline support." >&2;}
7563    { (exit 1); exit 1; }; }
7564 fi
7565
7566 done
7567
7568 fi
7569
7570 done
7571
7572 fi
7573
7574 if test "$with_zlib" = yes; then
7575   if test "${ac_cv_header_zlib_h+set}" = set; then
7576   echo "$as_me:$LINENO: checking for zlib.h" >&5
7577 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7578 if test "${ac_cv_header_zlib_h+set}" = set; then
7579   echo $ECHO_N "(cached) $ECHO_C" >&6
7580 fi
7581 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7582 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7583 else
7584   # Is the header compilable?
7585 echo "$as_me:$LINENO: checking zlib.h usability" >&5
7586 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
7587 cat >conftest.$ac_ext <<_ACEOF
7588 #line $LINENO "configure"
7589 #include "confdefs.h"
7590 $ac_includes_default
7591 #include <zlib.h>
7592 _ACEOF
7593 rm -f conftest.$ac_objext
7594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7595   (eval $ac_compile) 2>&5
7596   ac_status=$?
7597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598   (exit $ac_status); } &&
7599          { ac_try='test -s conftest.$ac_objext'
7600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601   (eval $ac_try) 2>&5
7602   ac_status=$?
7603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604   (exit $ac_status); }; }; then
7605   ac_header_compiler=yes
7606 else
7607   echo "$as_me: failed program was:" >&5
7608 cat conftest.$ac_ext >&5
7609 ac_header_compiler=no
7610 fi
7611 rm -f conftest.$ac_objext conftest.$ac_ext
7612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7613 echo "${ECHO_T}$ac_header_compiler" >&6
7614
7615 # Is the header present?
7616 echo "$as_me:$LINENO: checking zlib.h presence" >&5
7617 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
7618 cat >conftest.$ac_ext <<_ACEOF
7619 #line $LINENO "configure"
7620 #include "confdefs.h"
7621 #include <zlib.h>
7622 _ACEOF
7623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7624   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7625   ac_status=$?
7626   egrep -v '^ *\+' conftest.er1 >conftest.err
7627   rm -f conftest.er1
7628   cat conftest.err >&5
7629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630   (exit $ac_status); } >/dev/null; then
7631   if test -s conftest.err; then
7632     ac_cpp_err=$ac_c_preproc_warn_flag
7633   else
7634     ac_cpp_err=
7635   fi
7636 else
7637   ac_cpp_err=yes
7638 fi
7639 if test -z "$ac_cpp_err"; then
7640   ac_header_preproc=yes
7641 else
7642   echo "$as_me: failed program was:" >&5
7643   cat conftest.$ac_ext >&5
7644   ac_header_preproc=no
7645 fi
7646 rm -f conftest.err conftest.$ac_ext
7647 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7648 echo "${ECHO_T}$ac_header_preproc" >&6
7649
7650 # So?  What about this header?
7651 case $ac_header_compiler:$ac_header_preproc in
7652   yes:no )
7653     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7654 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7655     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7656 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7657   no:yes )
7658     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
7659 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
7660     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
7661 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
7662     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7663 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7664 esac
7665 echo "$as_me:$LINENO: checking for zlib.h" >&5
7666 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7667 if test "${ac_cv_header_zlib_h+set}" = set; then
7668   echo $ECHO_N "(cached) $ECHO_C" >&6
7669 else
7670   ac_cv_header_zlib_h=$ac_header_preproc
7671 fi
7672 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7673 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7674
7675 fi
7676 if test $ac_cv_header_zlib_h = yes; then
7677   :
7678 else
7679   { { echo "$as_me:$LINENO: error: zlib header not found
7680 Use --without-zlib to disable zlib support." >&5
7681 echo "$as_me: error: zlib header not found
7682 Use --without-zlib to disable zlib support." >&2;}
7683    { (exit 1); exit 1; }; }
7684 fi
7685
7686
7687 fi
7688
7689 if test "$with_krb4" = yes ; then
7690   if test "${ac_cv_header_krb_h+set}" = set; then
7691   echo "$as_me:$LINENO: checking for krb.h" >&5
7692 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
7693 if test "${ac_cv_header_krb_h+set}" = set; then
7694   echo $ECHO_N "(cached) $ECHO_C" >&6
7695 fi
7696 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
7697 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
7698 else
7699   # Is the header compilable?
7700 echo "$as_me:$LINENO: checking krb.h usability" >&5
7701 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
7702 cat >conftest.$ac_ext <<_ACEOF
7703 #line $LINENO "configure"
7704 #include "confdefs.h"
7705 $ac_includes_default
7706 #include <krb.h>
7707 _ACEOF
7708 rm -f conftest.$ac_objext
7709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7710   (eval $ac_compile) 2>&5
7711   ac_status=$?
7712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713   (exit $ac_status); } &&
7714          { ac_try='test -s conftest.$ac_objext'
7715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716   (eval $ac_try) 2>&5
7717   ac_status=$?
7718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719   (exit $ac_status); }; }; then
7720   ac_header_compiler=yes
7721 else
7722   echo "$as_me: failed program was:" >&5
7723 cat conftest.$ac_ext >&5
7724 ac_header_compiler=no
7725 fi
7726 rm -f conftest.$ac_objext conftest.$ac_ext
7727 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7728 echo "${ECHO_T}$ac_header_compiler" >&6
7729
7730 # Is the header present?
7731 echo "$as_me:$LINENO: checking krb.h presence" >&5
7732 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
7733 cat >conftest.$ac_ext <<_ACEOF
7734 #line $LINENO "configure"
7735 #include "confdefs.h"
7736 #include <krb.h>
7737 _ACEOF
7738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7739   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7740   ac_status=$?
7741   egrep -v '^ *\+' conftest.er1 >conftest.err
7742   rm -f conftest.er1
7743   cat conftest.err >&5
7744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745   (exit $ac_status); } >/dev/null; then
7746   if test -s conftest.err; then
7747     ac_cpp_err=$ac_c_preproc_warn_flag
7748   else
7749     ac_cpp_err=
7750   fi
7751 else
7752   ac_cpp_err=yes
7753 fi
7754 if test -z "$ac_cpp_err"; then
7755   ac_header_preproc=yes
7756 else
7757   echo "$as_me: failed program was:" >&5
7758   cat conftest.$ac_ext >&5
7759   ac_header_preproc=no
7760 fi
7761 rm -f conftest.err conftest.$ac_ext
7762 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7763 echo "${ECHO_T}$ac_header_preproc" >&6
7764
7765 # So?  What about this header?
7766 case $ac_header_compiler:$ac_header_preproc in
7767   yes:no )
7768     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
7769 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7770     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
7771 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
7772   no:yes )
7773     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
7774 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
7775     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
7776 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
7777     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
7778 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
7779 esac
7780 echo "$as_me:$LINENO: checking for krb.h" >&5
7781 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
7782 if test "${ac_cv_header_krb_h+set}" = set; then
7783   echo $ECHO_N "(cached) $ECHO_C" >&6
7784 else
7785   ac_cv_header_krb_h=$ac_header_preproc
7786 fi
7787 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
7788 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
7789
7790 fi
7791 if test $ac_cv_header_krb_h = yes; then
7792   :
7793 else
7794   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
7795 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
7796    { (exit 1); exit 1; }; }
7797 fi
7798
7799
7800 fi
7801
7802 if test "$with_krb5" = yes ; then
7803   if test "${ac_cv_header_krb5_h+set}" = set; then
7804   echo "$as_me:$LINENO: checking for krb5.h" >&5
7805 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
7806 if test "${ac_cv_header_krb5_h+set}" = set; then
7807   echo $ECHO_N "(cached) $ECHO_C" >&6
7808 fi
7809 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
7810 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
7811 else
7812   # Is the header compilable?
7813 echo "$as_me:$LINENO: checking krb5.h usability" >&5
7814 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
7815 cat >conftest.$ac_ext <<_ACEOF
7816 #line $LINENO "configure"
7817 #include "confdefs.h"
7818 $ac_includes_default
7819 #include <krb5.h>
7820 _ACEOF
7821 rm -f conftest.$ac_objext
7822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7823   (eval $ac_compile) 2>&5
7824   ac_status=$?
7825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826   (exit $ac_status); } &&
7827          { ac_try='test -s conftest.$ac_objext'
7828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829   (eval $ac_try) 2>&5
7830   ac_status=$?
7831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832   (exit $ac_status); }; }; then
7833   ac_header_compiler=yes
7834 else
7835   echo "$as_me: failed program was:" >&5
7836 cat conftest.$ac_ext >&5
7837 ac_header_compiler=no
7838 fi
7839 rm -f conftest.$ac_objext conftest.$ac_ext
7840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7841 echo "${ECHO_T}$ac_header_compiler" >&6
7842
7843 # Is the header present?
7844 echo "$as_me:$LINENO: checking krb5.h presence" >&5
7845 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
7846 cat >conftest.$ac_ext <<_ACEOF
7847 #line $LINENO "configure"
7848 #include "confdefs.h"
7849 #include <krb5.h>
7850 _ACEOF
7851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7852   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7853   ac_status=$?
7854   egrep -v '^ *\+' conftest.er1 >conftest.err
7855   rm -f conftest.er1
7856   cat conftest.err >&5
7857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858   (exit $ac_status); } >/dev/null; then
7859   if test -s conftest.err; then
7860     ac_cpp_err=$ac_c_preproc_warn_flag
7861   else
7862     ac_cpp_err=
7863   fi
7864 else
7865   ac_cpp_err=yes
7866 fi
7867 if test -z "$ac_cpp_err"; then
7868   ac_header_preproc=yes
7869 else
7870   echo "$as_me: failed program was:" >&5
7871   cat conftest.$ac_ext >&5
7872   ac_header_preproc=no
7873 fi
7874 rm -f conftest.err conftest.$ac_ext
7875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7876 echo "${ECHO_T}$ac_header_preproc" >&6
7877
7878 # So?  What about this header?
7879 case $ac_header_compiler:$ac_header_preproc in
7880   yes:no )
7881     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
7882 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7883     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
7884 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
7885   no:yes )
7886     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
7887 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
7888     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
7889 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
7890     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
7891 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
7892 esac
7893 echo "$as_me:$LINENO: checking for krb5.h" >&5
7894 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
7895 if test "${ac_cv_header_krb5_h+set}" = set; then
7896   echo $ECHO_N "(cached) $ECHO_C" >&6
7897 else
7898   ac_cv_header_krb5_h=$ac_header_preproc
7899 fi
7900 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
7901 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
7902
7903 fi
7904 if test $ac_cv_header_krb5_h = yes; then
7905   :
7906 else
7907   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
7908 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
7909    { (exit 1); exit 1; }; }
7910 fi
7911
7912
7913   if test "${ac_cv_header_com_err_h+set}" = set; then
7914   echo "$as_me:$LINENO: checking for com_err.h" >&5
7915 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
7916 if test "${ac_cv_header_com_err_h+set}" = set; then
7917   echo $ECHO_N "(cached) $ECHO_C" >&6
7918 fi
7919 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
7920 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
7921 else
7922   # Is the header compilable?
7923 echo "$as_me:$LINENO: checking com_err.h usability" >&5
7924 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
7925 cat >conftest.$ac_ext <<_ACEOF
7926 #line $LINENO "configure"
7927 #include "confdefs.h"
7928 $ac_includes_default
7929 #include <com_err.h>
7930 _ACEOF
7931 rm -f conftest.$ac_objext
7932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7933   (eval $ac_compile) 2>&5
7934   ac_status=$?
7935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936   (exit $ac_status); } &&
7937          { ac_try='test -s conftest.$ac_objext'
7938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7939   (eval $ac_try) 2>&5
7940   ac_status=$?
7941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942   (exit $ac_status); }; }; then
7943   ac_header_compiler=yes
7944 else
7945   echo "$as_me: failed program was:" >&5
7946 cat conftest.$ac_ext >&5
7947 ac_header_compiler=no
7948 fi
7949 rm -f conftest.$ac_objext conftest.$ac_ext
7950 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7951 echo "${ECHO_T}$ac_header_compiler" >&6
7952
7953 # Is the header present?
7954 echo "$as_me:$LINENO: checking com_err.h presence" >&5
7955 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
7956 cat >conftest.$ac_ext <<_ACEOF
7957 #line $LINENO "configure"
7958 #include "confdefs.h"
7959 #include <com_err.h>
7960 _ACEOF
7961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7962   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7963   ac_status=$?
7964   egrep -v '^ *\+' conftest.er1 >conftest.err
7965   rm -f conftest.er1
7966   cat conftest.err >&5
7967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968   (exit $ac_status); } >/dev/null; then
7969   if test -s conftest.err; then
7970     ac_cpp_err=$ac_c_preproc_warn_flag
7971   else
7972     ac_cpp_err=
7973   fi
7974 else
7975   ac_cpp_err=yes
7976 fi
7977 if test -z "$ac_cpp_err"; then
7978   ac_header_preproc=yes
7979 else
7980   echo "$as_me: failed program was:" >&5
7981   cat conftest.$ac_ext >&5
7982   ac_header_preproc=no
7983 fi
7984 rm -f conftest.err conftest.$ac_ext
7985 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7986 echo "${ECHO_T}$ac_header_preproc" >&6
7987
7988 # So?  What about this header?
7989 case $ac_header_compiler:$ac_header_preproc in
7990   yes:no )
7991     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
7992 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7993     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
7994 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
7995   no:yes )
7996     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
7997 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
7998     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
7999 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8000     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8001 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8002 esac
8003 echo "$as_me:$LINENO: checking for com_err.h" >&5
8004 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8005 if test "${ac_cv_header_com_err_h+set}" = set; then
8006   echo $ECHO_N "(cached) $ECHO_C" >&6
8007 else
8008   ac_cv_header_com_err_h=$ac_header_preproc
8009 fi
8010 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8011 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8012
8013 fi
8014 if test $ac_cv_header_com_err_h = yes; then
8015   :
8016 else
8017   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8018 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8019    { (exit 1); exit 1; }; }
8020 fi
8021
8022
8023 fi
8024
8025 if test "$with_openssl" = yes ; then
8026   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8027   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8028 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8029 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8030   echo $ECHO_N "(cached) $ECHO_C" >&6
8031 fi
8032 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8033 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8034 else
8035   # Is the header compilable?
8036 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8037 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8038 cat >conftest.$ac_ext <<_ACEOF
8039 #line $LINENO "configure"
8040 #include "confdefs.h"
8041 $ac_includes_default
8042 #include <openssl/ssl.h>
8043 _ACEOF
8044 rm -f conftest.$ac_objext
8045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8046   (eval $ac_compile) 2>&5
8047   ac_status=$?
8048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049   (exit $ac_status); } &&
8050          { ac_try='test -s conftest.$ac_objext'
8051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052   (eval $ac_try) 2>&5
8053   ac_status=$?
8054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055   (exit $ac_status); }; }; then
8056   ac_header_compiler=yes
8057 else
8058   echo "$as_me: failed program was:" >&5
8059 cat conftest.$ac_ext >&5
8060 ac_header_compiler=no
8061 fi
8062 rm -f conftest.$ac_objext conftest.$ac_ext
8063 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8064 echo "${ECHO_T}$ac_header_compiler" >&6
8065
8066 # Is the header present?
8067 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8068 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8069 cat >conftest.$ac_ext <<_ACEOF
8070 #line $LINENO "configure"
8071 #include "confdefs.h"
8072 #include <openssl/ssl.h>
8073 _ACEOF
8074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8075   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8076   ac_status=$?
8077   egrep -v '^ *\+' conftest.er1 >conftest.err
8078   rm -f conftest.er1
8079   cat conftest.err >&5
8080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081   (exit $ac_status); } >/dev/null; then
8082   if test -s conftest.err; then
8083     ac_cpp_err=$ac_c_preproc_warn_flag
8084   else
8085     ac_cpp_err=
8086   fi
8087 else
8088   ac_cpp_err=yes
8089 fi
8090 if test -z "$ac_cpp_err"; then
8091   ac_header_preproc=yes
8092 else
8093   echo "$as_me: failed program was:" >&5
8094   cat conftest.$ac_ext >&5
8095   ac_header_preproc=no
8096 fi
8097 rm -f conftest.err conftest.$ac_ext
8098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8099 echo "${ECHO_T}$ac_header_preproc" >&6
8100
8101 # So?  What about this header?
8102 case $ac_header_compiler:$ac_header_preproc in
8103   yes:no )
8104     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8105 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8106     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8107 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8108   no:yes )
8109     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8110 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8111     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8112 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8113     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8114 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8115 esac
8116 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8117 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8118 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8119   echo $ECHO_N "(cached) $ECHO_C" >&6
8120 else
8121   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8122 fi
8123 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8124 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8125
8126 fi
8127 if test $ac_cv_header_openssl_ssl_h = yes; then
8128   :
8129 else
8130   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8131 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8132    { (exit 1); exit 1; }; }
8133 fi
8134
8135
8136   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8137   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8138 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8139 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8140   echo $ECHO_N "(cached) $ECHO_C" >&6
8141 fi
8142 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8143 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8144 else
8145   # Is the header compilable?
8146 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8147 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8148 cat >conftest.$ac_ext <<_ACEOF
8149 #line $LINENO "configure"
8150 #include "confdefs.h"
8151 $ac_includes_default
8152 #include <openssl/err.h>
8153 _ACEOF
8154 rm -f conftest.$ac_objext
8155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8156   (eval $ac_compile) 2>&5
8157   ac_status=$?
8158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159   (exit $ac_status); } &&
8160          { ac_try='test -s conftest.$ac_objext'
8161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8162   (eval $ac_try) 2>&5
8163   ac_status=$?
8164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165   (exit $ac_status); }; }; then
8166   ac_header_compiler=yes
8167 else
8168   echo "$as_me: failed program was:" >&5
8169 cat conftest.$ac_ext >&5
8170 ac_header_compiler=no
8171 fi
8172 rm -f conftest.$ac_objext conftest.$ac_ext
8173 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8174 echo "${ECHO_T}$ac_header_compiler" >&6
8175
8176 # Is the header present?
8177 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8178 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8179 cat >conftest.$ac_ext <<_ACEOF
8180 #line $LINENO "configure"
8181 #include "confdefs.h"
8182 #include <openssl/err.h>
8183 _ACEOF
8184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8185   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8186   ac_status=$?
8187   egrep -v '^ *\+' conftest.er1 >conftest.err
8188   rm -f conftest.er1
8189   cat conftest.err >&5
8190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191   (exit $ac_status); } >/dev/null; then
8192   if test -s conftest.err; then
8193     ac_cpp_err=$ac_c_preproc_warn_flag
8194   else
8195     ac_cpp_err=
8196   fi
8197 else
8198   ac_cpp_err=yes
8199 fi
8200 if test -z "$ac_cpp_err"; then
8201   ac_header_preproc=yes
8202 else
8203   echo "$as_me: failed program was:" >&5
8204   cat conftest.$ac_ext >&5
8205   ac_header_preproc=no
8206 fi
8207 rm -f conftest.err conftest.$ac_ext
8208 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8209 echo "${ECHO_T}$ac_header_preproc" >&6
8210
8211 # So?  What about this header?
8212 case $ac_header_compiler:$ac_header_preproc in
8213   yes:no )
8214     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8215 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8216     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8217 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8218   no:yes )
8219     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8220 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8221     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8222 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8223     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8224 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8225 esac
8226 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8227 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8228 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8229   echo $ECHO_N "(cached) $ECHO_C" >&6
8230 else
8231   ac_cv_header_openssl_err_h=$ac_header_preproc
8232 fi
8233 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8234 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8235
8236 fi
8237 if test $ac_cv_header_openssl_err_h = yes; then
8238   :
8239 else
8240   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8241 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8242    { (exit 1); exit 1; }; }
8243 fi
8244
8245
8246 fi
8247
8248 if test "$with_pam" = yes ; then
8249   if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8250   echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8251 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8252 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8253   echo $ECHO_N "(cached) $ECHO_C" >&6
8254 fi
8255 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8256 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8257 else
8258   # Is the header compilable?
8259 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
8260 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
8261 cat >conftest.$ac_ext <<_ACEOF
8262 #line $LINENO "configure"
8263 #include "confdefs.h"
8264 $ac_includes_default
8265 #include <security/pam_appl.h>
8266 _ACEOF
8267 rm -f conftest.$ac_objext
8268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8269   (eval $ac_compile) 2>&5
8270   ac_status=$?
8271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272   (exit $ac_status); } &&
8273          { ac_try='test -s conftest.$ac_objext'
8274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8275   (eval $ac_try) 2>&5
8276   ac_status=$?
8277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278   (exit $ac_status); }; }; then
8279   ac_header_compiler=yes
8280 else
8281   echo "$as_me: failed program was:" >&5
8282 cat conftest.$ac_ext >&5
8283 ac_header_compiler=no
8284 fi
8285 rm -f conftest.$ac_objext conftest.$ac_ext
8286 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8287 echo "${ECHO_T}$ac_header_compiler" >&6
8288
8289 # Is the header present?
8290 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
8291 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
8292 cat >conftest.$ac_ext <<_ACEOF
8293 #line $LINENO "configure"
8294 #include "confdefs.h"
8295 #include <security/pam_appl.h>
8296 _ACEOF
8297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8298   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8299   ac_status=$?
8300   egrep -v '^ *\+' conftest.er1 >conftest.err
8301   rm -f conftest.er1
8302   cat conftest.err >&5
8303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304   (exit $ac_status); } >/dev/null; then
8305   if test -s conftest.err; then
8306     ac_cpp_err=$ac_c_preproc_warn_flag
8307   else
8308     ac_cpp_err=
8309   fi
8310 else
8311   ac_cpp_err=yes
8312 fi
8313 if test -z "$ac_cpp_err"; then
8314   ac_header_preproc=yes
8315 else
8316   echo "$as_me: failed program was:" >&5
8317   cat conftest.$ac_ext >&5
8318   ac_header_preproc=no
8319 fi
8320 rm -f conftest.err conftest.$ac_ext
8321 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8322 echo "${ECHO_T}$ac_header_preproc" >&6
8323
8324 # So?  What about this header?
8325 case $ac_header_compiler:$ac_header_preproc in
8326   yes:no )
8327     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8328 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8329     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8330 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8331   no:yes )
8332     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
8333 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
8334     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
8335 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
8336     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8337 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8338 esac
8339 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8340 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8341 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8342   echo $ECHO_N "(cached) $ECHO_C" >&6
8343 else
8344   ac_cv_header_security_pam_appl_h=$ac_header_preproc
8345 fi
8346 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8347 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8348
8349 fi
8350 if test $ac_cv_header_security_pam_appl_h = yes; then
8351   :
8352 else
8353   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
8354 echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
8355    { (exit 1); exit 1; }; }
8356 fi
8357
8358
8359 fi
8360
8361
8362 ##
8363 ## Types, structures, compiler characteristics
8364 ##
8365
8366
8367 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8368 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8369 if test "${ac_cv_c_const+set}" = set; then
8370   echo $ECHO_N "(cached) $ECHO_C" >&6
8371 else
8372   cat >conftest.$ac_ext <<_ACEOF
8373 #line $LINENO "configure"
8374 #include "confdefs.h"
8375
8376 #ifdef F77_DUMMY_MAIN
8377 #  ifdef __cplusplus
8378      extern "C"
8379 #  endif
8380    int F77_DUMMY_MAIN() { return 1; }
8381 #endif
8382 int
8383 main ()
8384 {
8385 /* FIXME: Include the comments suggested by Paul. */
8386 #ifndef __cplusplus
8387   /* Ultrix mips cc rejects this.  */
8388   typedef int charset[2];
8389   const charset x;
8390   /* SunOS 4.1.1 cc rejects this.  */
8391   char const *const *ccp;
8392   char **p;
8393   /* NEC SVR4.0.2 mips cc rejects this.  */
8394   struct point {int x, y;};
8395   static struct point const zero = {0,0};
8396   /* AIX XL C 1.02.0.0 rejects this.
8397      It does not let you subtract one const X* pointer from another in
8398      an arm of an if-expression whose if-part is not a constant
8399      expression */
8400   const char *g = "string";
8401   ccp = &g + (g ? g-g : 0);
8402   /* HPUX 7.0 cc rejects these. */
8403   ++ccp;
8404   p = (char**) ccp;
8405   ccp = (char const *const *) p;
8406   { /* SCO 3.2v4 cc rejects this.  */
8407     char *t;
8408     char const *s = 0 ? (char *) 0 : (char const *) 0;
8409
8410     *t++ = 0;
8411   }
8412   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8413     int x[] = {25, 17};
8414     const int *foo = &x[0];
8415     ++foo;
8416   }
8417   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8418     typedef const int *iptr;
8419     iptr p = 0;
8420     ++p;
8421   }
8422   { /* AIX XL C 1.02.0.0 rejects this saying
8423        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8424     struct s { int j; const int *ap[3]; };
8425     struct s *b; b->j = 5;
8426   }
8427   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8428     const int foo = 10;
8429   }
8430 #endif
8431
8432   ;
8433   return 0;
8434 }
8435 _ACEOF
8436 rm -f conftest.$ac_objext
8437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8438   (eval $ac_compile) 2>&5
8439   ac_status=$?
8440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441   (exit $ac_status); } &&
8442          { ac_try='test -s conftest.$ac_objext'
8443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8444   (eval $ac_try) 2>&5
8445   ac_status=$?
8446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447   (exit $ac_status); }; }; then
8448   ac_cv_c_const=yes
8449 else
8450   echo "$as_me: failed program was:" >&5
8451 cat conftest.$ac_ext >&5
8452 ac_cv_c_const=no
8453 fi
8454 rm -f conftest.$ac_objext conftest.$ac_ext
8455 fi
8456 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8457 echo "${ECHO_T}$ac_cv_c_const" >&6
8458 if test $ac_cv_c_const = no; then
8459
8460 cat >>confdefs.h <<\_ACEOF
8461 #define const
8462 _ACEOF
8463
8464 fi
8465
8466 echo "$as_me:$LINENO: checking for inline" >&5
8467 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8468 if test "${ac_cv_c_inline+set}" = set; then
8469   echo $ECHO_N "(cached) $ECHO_C" >&6
8470 else
8471   ac_cv_c_inline=no
8472 for ac_kw in inline __inline__ __inline; do
8473   cat >conftest.$ac_ext <<_ACEOF
8474 #line $LINENO "configure"
8475 #include "confdefs.h"
8476 #ifndef __cplusplus
8477 static $ac_kw int static_foo () {return 0; }
8478 $ac_kw int foo () {return 0; }
8479 #endif
8480
8481 _ACEOF
8482 rm -f conftest.$ac_objext
8483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8484   (eval $ac_compile) 2>&5
8485   ac_status=$?
8486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487   (exit $ac_status); } &&
8488          { ac_try='test -s conftest.$ac_objext'
8489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490   (eval $ac_try) 2>&5
8491   ac_status=$?
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); }; }; then
8494   ac_cv_c_inline=$ac_kw; break
8495 else
8496   echo "$as_me: failed program was:" >&5
8497 cat conftest.$ac_ext >&5
8498 fi
8499 rm -f conftest.$ac_objext conftest.$ac_ext
8500 done
8501
8502 fi
8503 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8504 echo "${ECHO_T}$ac_cv_c_inline" >&6
8505 case $ac_cv_c_inline in
8506   inline | yes) ;;
8507   no)
8508 cat >>confdefs.h <<\_ACEOF
8509 #define inline
8510 _ACEOF
8511  ;;
8512   *)  cat >>confdefs.h <<_ACEOF
8513 #define inline $ac_cv_c_inline
8514 _ACEOF
8515  ;;
8516 esac
8517
8518 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8519 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8520 if test "${ac_cv_c_stringize+set}" = set; then
8521   echo $ECHO_N "(cached) $ECHO_C" >&6
8522 else
8523   cat >conftest.$ac_ext <<_ACEOF
8524 #line $LINENO "configure"
8525 #include "confdefs.h"
8526 #define x(y) #y
8527
8528 char *s = x(teststring);
8529 _ACEOF
8530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8531   egrep "#teststring" >/dev/null 2>&1; then
8532   ac_cv_c_stringize=no
8533 else
8534   ac_cv_c_stringize=yes
8535 fi
8536 rm -f conftest*
8537
8538 fi
8539 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8540 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8541 if test $ac_cv_c_stringize = yes; then
8542
8543 cat >>confdefs.h <<\_ACEOF
8544 #define HAVE_STRINGIZE 1
8545 _ACEOF
8546
8547 fi
8548
8549 echo "$as_me:$LINENO: checking for signed types" >&5
8550 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
8551 if test "${pgac_cv_c_signed+set}" = set; then
8552   echo $ECHO_N "(cached) $ECHO_C" >&6
8553 else
8554   cat >conftest.$ac_ext <<_ACEOF
8555 #line $LINENO "configure"
8556 #include "confdefs.h"
8557
8558 #ifdef F77_DUMMY_MAIN
8559 #  ifdef __cplusplus
8560      extern "C"
8561 #  endif
8562    int F77_DUMMY_MAIN() { return 1; }
8563 #endif
8564 int
8565 main ()
8566 {
8567 signed char c; signed short s; signed int i;
8568   ;
8569   return 0;
8570 }
8571 _ACEOF
8572 rm -f conftest.$ac_objext
8573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8574   (eval $ac_compile) 2>&5
8575   ac_status=$?
8576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577   (exit $ac_status); } &&
8578          { ac_try='test -s conftest.$ac_objext'
8579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580   (eval $ac_try) 2>&5
8581   ac_status=$?
8582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583   (exit $ac_status); }; }; then
8584   pgac_cv_c_signed=yes
8585 else
8586   echo "$as_me: failed program was:" >&5
8587 cat conftest.$ac_ext >&5
8588 pgac_cv_c_signed=no
8589 fi
8590 rm -f conftest.$ac_objext conftest.$ac_ext
8591 fi
8592 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
8593 echo "${ECHO_T}$pgac_cv_c_signed" >&6
8594 if test x"$pgac_cv_c_signed" = xno ; then
8595
8596 cat >>confdefs.h <<\_ACEOF
8597 #define signed
8598 _ACEOF
8599
8600 fi
8601 echo "$as_me:$LINENO: checking for working volatile" >&5
8602 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8603 if test "${ac_cv_c_volatile+set}" = set; then
8604   echo $ECHO_N "(cached) $ECHO_C" >&6
8605 else
8606   cat >conftest.$ac_ext <<_ACEOF
8607 #line $LINENO "configure"
8608 #include "confdefs.h"
8609
8610 #ifdef F77_DUMMY_MAIN
8611 #  ifdef __cplusplus
8612      extern "C"
8613 #  endif
8614    int F77_DUMMY_MAIN() { return 1; }
8615 #endif
8616 int
8617 main ()
8618 {
8619
8620 volatile int x;
8621 int * volatile y;
8622   ;
8623   return 0;
8624 }
8625 _ACEOF
8626 rm -f conftest.$ac_objext
8627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8628   (eval $ac_compile) 2>&5
8629   ac_status=$?
8630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631   (exit $ac_status); } &&
8632          { ac_try='test -s conftest.$ac_objext'
8633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8634   (eval $ac_try) 2>&5
8635   ac_status=$?
8636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637   (exit $ac_status); }; }; then
8638   ac_cv_c_volatile=yes
8639 else
8640   echo "$as_me: failed program was:" >&5
8641 cat conftest.$ac_ext >&5
8642 ac_cv_c_volatile=no
8643 fi
8644 rm -f conftest.$ac_objext conftest.$ac_ext
8645 fi
8646 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8647 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8648 if test $ac_cv_c_volatile = no; then
8649
8650 cat >>confdefs.h <<\_ACEOF
8651 #define volatile
8652 _ACEOF
8653
8654 fi
8655
8656 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8657 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8658 if test "${ac_cv_struct_tm+set}" = set; then
8659   echo $ECHO_N "(cached) $ECHO_C" >&6
8660 else
8661   cat >conftest.$ac_ext <<_ACEOF
8662 #line $LINENO "configure"
8663 #include "confdefs.h"
8664 #include <sys/types.h>
8665 #include <time.h>
8666
8667 #ifdef F77_DUMMY_MAIN
8668 #  ifdef __cplusplus
8669      extern "C"
8670 #  endif
8671    int F77_DUMMY_MAIN() { return 1; }
8672 #endif
8673 int
8674 main ()
8675 {
8676 struct tm *tp; tp->tm_sec;
8677   ;
8678   return 0;
8679 }
8680 _ACEOF
8681 rm -f conftest.$ac_objext
8682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8683   (eval $ac_compile) 2>&5
8684   ac_status=$?
8685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686   (exit $ac_status); } &&
8687          { ac_try='test -s conftest.$ac_objext'
8688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689   (eval $ac_try) 2>&5
8690   ac_status=$?
8691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692   (exit $ac_status); }; }; then
8693   ac_cv_struct_tm=time.h
8694 else
8695   echo "$as_me: failed program was:" >&5
8696 cat conftest.$ac_ext >&5
8697 ac_cv_struct_tm=sys/time.h
8698 fi
8699 rm -f conftest.$ac_objext conftest.$ac_ext
8700 fi
8701 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8702 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8703 if test $ac_cv_struct_tm = sys/time.h; then
8704
8705 cat >>confdefs.h <<\_ACEOF
8706 #define TM_IN_SYS_TIME 1
8707 _ACEOF
8708
8709 fi
8710
8711 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8712 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
8713 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8714   echo $ECHO_N "(cached) $ECHO_C" >&6
8715 else
8716   cat >conftest.$ac_ext <<_ACEOF
8717 #line $LINENO "configure"
8718 #include "confdefs.h"
8719 #include <sys/types.h>
8720 #include <$ac_cv_struct_tm>
8721
8722
8723 #ifdef F77_DUMMY_MAIN
8724 #  ifdef __cplusplus
8725      extern "C"
8726 #  endif
8727    int F77_DUMMY_MAIN() { return 1; }
8728 #endif
8729 int
8730 main ()
8731 {
8732 static struct tm ac_aggr;
8733 if (ac_aggr.tm_zone)
8734 return 0;
8735   ;
8736   return 0;
8737 }
8738 _ACEOF
8739 rm -f conftest.$ac_objext
8740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8741   (eval $ac_compile) 2>&5
8742   ac_status=$?
8743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744   (exit $ac_status); } &&
8745          { ac_try='test -s conftest.$ac_objext'
8746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8747   (eval $ac_try) 2>&5
8748   ac_status=$?
8749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750   (exit $ac_status); }; }; then
8751   ac_cv_member_struct_tm_tm_zone=yes
8752 else
8753   echo "$as_me: failed program was:" >&5
8754 cat conftest.$ac_ext >&5
8755 ac_cv_member_struct_tm_tm_zone=no
8756 fi
8757 rm -f conftest.$ac_objext conftest.$ac_ext
8758 fi
8759 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8760 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
8761 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8762
8763 cat >>confdefs.h <<_ACEOF
8764 #define HAVE_STRUCT_TM_TM_ZONE 1
8765 _ACEOF
8766
8767
8768 fi
8769
8770 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8771
8772 cat >>confdefs.h <<\_ACEOF
8773 #define HAVE_TM_ZONE 1
8774 _ACEOF
8775
8776 else
8777   echo "$as_me:$LINENO: checking for tzname" >&5
8778 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
8779 if test "${ac_cv_var_tzname+set}" = set; then
8780   echo $ECHO_N "(cached) $ECHO_C" >&6
8781 else
8782   cat >conftest.$ac_ext <<_ACEOF
8783 #line $LINENO "configure"
8784 #include "confdefs.h"
8785 #include <time.h>
8786 #ifndef tzname /* For SGI.  */
8787 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
8788 #endif
8789
8790 #ifdef F77_DUMMY_MAIN
8791 #  ifdef __cplusplus
8792      extern "C"
8793 #  endif
8794    int F77_DUMMY_MAIN() { return 1; }
8795 #endif
8796 int
8797 main ()
8798 {
8799 atoi(*tzname);
8800   ;
8801   return 0;
8802 }
8803 _ACEOF
8804 rm -f conftest.$ac_objext conftest$ac_exeext
8805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8806   (eval $ac_link) 2>&5
8807   ac_status=$?
8808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809   (exit $ac_status); } &&
8810          { ac_try='test -s conftest$ac_exeext'
8811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8812   (eval $ac_try) 2>&5
8813   ac_status=$?
8814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815   (exit $ac_status); }; }; then
8816   ac_cv_var_tzname=yes
8817 else
8818   echo "$as_me: failed program was:" >&5
8819 cat conftest.$ac_ext >&5
8820 ac_cv_var_tzname=no
8821 fi
8822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8823 fi
8824 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8825 echo "${ECHO_T}$ac_cv_var_tzname" >&6
8826   if test $ac_cv_var_tzname = yes; then
8827
8828 cat >>confdefs.h <<\_ACEOF
8829 #define HAVE_TZNAME 1
8830 _ACEOF
8831
8832   fi
8833 fi
8834
8835 echo "$as_me:$LINENO: checking for union semun" >&5
8836 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
8837 if test "${ac_cv_type_union_semun+set}" = set; then
8838   echo $ECHO_N "(cached) $ECHO_C" >&6
8839 else
8840   cat >conftest.$ac_ext <<_ACEOF
8841 #line $LINENO "configure"
8842 #include "confdefs.h"
8843 #include <sys/types.h>
8844 #include <sys/ipc.h>
8845 #include <sys/sem.h>
8846
8847 #ifdef F77_DUMMY_MAIN
8848 #  ifdef __cplusplus
8849      extern "C"
8850 #  endif
8851    int F77_DUMMY_MAIN() { return 1; }
8852 #endif
8853 int
8854 main ()
8855 {
8856 if ((union semun *) 0)
8857   return 0;
8858 if (sizeof (union semun))
8859   return 0;
8860   ;
8861   return 0;
8862 }
8863 _ACEOF
8864 rm -f conftest.$ac_objext
8865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8866   (eval $ac_compile) 2>&5
8867   ac_status=$?
8868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869   (exit $ac_status); } &&
8870          { ac_try='test -s conftest.$ac_objext'
8871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8872   (eval $ac_try) 2>&5
8873   ac_status=$?
8874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875   (exit $ac_status); }; }; then
8876   ac_cv_type_union_semun=yes
8877 else
8878   echo "$as_me: failed program was:" >&5
8879 cat conftest.$ac_ext >&5
8880 ac_cv_type_union_semun=no
8881 fi
8882 rm -f conftest.$ac_objext conftest.$ac_ext
8883 fi
8884 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
8885 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
8886 if test $ac_cv_type_union_semun = yes; then
8887
8888 cat >>confdefs.h <<_ACEOF
8889 #define HAVE_UNION_SEMUN 1
8890 _ACEOF
8891
8892
8893 fi
8894
8895 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
8896 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
8897 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
8898   echo $ECHO_N "(cached) $ECHO_C" >&6
8899 else
8900   cat >conftest.$ac_ext <<_ACEOF
8901 #line $LINENO "configure"
8902 #include "confdefs.h"
8903 #include <sys/types.h>
8904 #ifdef HAVE_SYS_UN_H
8905 #include <sys/un.h>
8906 #endif
8907
8908
8909 #ifdef F77_DUMMY_MAIN
8910 #  ifdef __cplusplus
8911      extern "C"
8912 #  endif
8913    int F77_DUMMY_MAIN() { return 1; }
8914 #endif
8915 int
8916 main ()
8917 {
8918 if ((struct sockaddr_un *) 0)
8919   return 0;
8920 if (sizeof (struct sockaddr_un))
8921   return 0;
8922   ;
8923   return 0;
8924 }
8925 _ACEOF
8926 rm -f conftest.$ac_objext
8927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8928   (eval $ac_compile) 2>&5
8929   ac_status=$?
8930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931   (exit $ac_status); } &&
8932          { ac_try='test -s conftest.$ac_objext'
8933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934   (eval $ac_try) 2>&5
8935   ac_status=$?
8936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937   (exit $ac_status); }; }; then
8938   ac_cv_type_struct_sockaddr_un=yes
8939 else
8940   echo "$as_me: failed program was:" >&5
8941 cat conftest.$ac_ext >&5
8942 ac_cv_type_struct_sockaddr_un=no
8943 fi
8944 rm -f conftest.$ac_objext conftest.$ac_ext
8945 fi
8946 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
8947 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
8948 if test $ac_cv_type_struct_sockaddr_un = yes; then
8949
8950 cat >>confdefs.h <<_ACEOF
8951 #define HAVE_STRUCT_SOCKADDR_UN 1
8952 _ACEOF
8953
8954
8955 fi
8956
8957
8958 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
8959 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
8960 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
8961   echo $ECHO_N "(cached) $ECHO_C" >&6
8962 else
8963   cat >conftest.$ac_ext <<_ACEOF
8964 #line $LINENO "configure"
8965 #include "confdefs.h"
8966 #include <sys/param.h>
8967 #include <sys/socket.h>
8968 #include <sys/ucred.h>
8969
8970 #ifdef F77_DUMMY_MAIN
8971 #  ifdef __cplusplus
8972      extern "C"
8973 #  endif
8974    int F77_DUMMY_MAIN() { return 1; }
8975 #endif
8976 int
8977 main ()
8978 {
8979 if ((struct cmsgcred *) 0)
8980   return 0;
8981 if (sizeof (struct cmsgcred))
8982   return 0;
8983   ;
8984   return 0;
8985 }
8986 _ACEOF
8987 rm -f conftest.$ac_objext
8988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8989   (eval $ac_compile) 2>&5
8990   ac_status=$?
8991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992   (exit $ac_status); } &&
8993          { ac_try='test -s conftest.$ac_objext'
8994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995   (eval $ac_try) 2>&5
8996   ac_status=$?
8997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998   (exit $ac_status); }; }; then
8999   ac_cv_type_struct_cmsgcred=yes
9000 else
9001   echo "$as_me: failed program was:" >&5
9002 cat conftest.$ac_ext >&5
9003 ac_cv_type_struct_cmsgcred=no
9004 fi
9005 rm -f conftest.$ac_objext conftest.$ac_ext
9006 fi
9007 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9008 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9009 if test $ac_cv_type_struct_cmsgcred = yes; then
9010
9011 cat >>confdefs.h <<_ACEOF
9012 #define HAVE_STRUCT_CMSGCRED 1
9013 _ACEOF
9014
9015
9016 fi
9017 echo "$as_me:$LINENO: checking for struct fcred" >&5
9018 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9019 if test "${ac_cv_type_struct_fcred+set}" = set; then
9020   echo $ECHO_N "(cached) $ECHO_C" >&6
9021 else
9022   cat >conftest.$ac_ext <<_ACEOF
9023 #line $LINENO "configure"
9024 #include "confdefs.h"
9025 #include <sys/param.h>
9026 #include <sys/socket.h>
9027 #include <sys/ucred.h>
9028
9029 #ifdef F77_DUMMY_MAIN
9030 #  ifdef __cplusplus
9031      extern "C"
9032 #  endif
9033    int F77_DUMMY_MAIN() { return 1; }
9034 #endif
9035 int
9036 main ()
9037 {
9038 if ((struct fcred *) 0)
9039   return 0;
9040 if (sizeof (struct fcred))
9041   return 0;
9042   ;
9043   return 0;
9044 }
9045 _ACEOF
9046 rm -f conftest.$ac_objext
9047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9048   (eval $ac_compile) 2>&5
9049   ac_status=$?
9050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051   (exit $ac_status); } &&
9052          { ac_try='test -s conftest.$ac_objext'
9053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054   (eval $ac_try) 2>&5
9055   ac_status=$?
9056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057   (exit $ac_status); }; }; then
9058   ac_cv_type_struct_fcred=yes
9059 else
9060   echo "$as_me: failed program was:" >&5
9061 cat conftest.$ac_ext >&5
9062 ac_cv_type_struct_fcred=no
9063 fi
9064 rm -f conftest.$ac_objext conftest.$ac_ext
9065 fi
9066 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9067 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9068 if test $ac_cv_type_struct_fcred = yes; then
9069
9070 cat >>confdefs.h <<_ACEOF
9071 #define HAVE_STRUCT_FCRED 1
9072 _ACEOF
9073
9074
9075 fi
9076 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9077 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9078 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9079   echo $ECHO_N "(cached) $ECHO_C" >&6
9080 else
9081   cat >conftest.$ac_ext <<_ACEOF
9082 #line $LINENO "configure"
9083 #include "confdefs.h"
9084 #include <sys/param.h>
9085 #include <sys/socket.h>
9086 #include <sys/ucred.h>
9087
9088 #ifdef F77_DUMMY_MAIN
9089 #  ifdef __cplusplus
9090      extern "C"
9091 #  endif
9092    int F77_DUMMY_MAIN() { return 1; }
9093 #endif
9094 int
9095 main ()
9096 {
9097 if ((struct sockcred *) 0)
9098   return 0;
9099 if (sizeof (struct sockcred))
9100   return 0;
9101   ;
9102   return 0;
9103 }
9104 _ACEOF
9105 rm -f conftest.$ac_objext
9106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9107   (eval $ac_compile) 2>&5
9108   ac_status=$?
9109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110   (exit $ac_status); } &&
9111          { ac_try='test -s conftest.$ac_objext'
9112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9113   (eval $ac_try) 2>&5
9114   ac_status=$?
9115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116   (exit $ac_status); }; }; then
9117   ac_cv_type_struct_sockcred=yes
9118 else
9119   echo "$as_me: failed program was:" >&5
9120 cat conftest.$ac_ext >&5
9121 ac_cv_type_struct_sockcred=no
9122 fi
9123 rm -f conftest.$ac_objext conftest.$ac_ext
9124 fi
9125 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9126 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9127 if test $ac_cv_type_struct_sockcred = yes; then
9128
9129 cat >>confdefs.h <<_ACEOF
9130 #define HAVE_STRUCT_SOCKCRED 1
9131 _ACEOF
9132
9133
9134 fi
9135
9136
9137 if test "$with_zlib" = yes; then
9138   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9139   # did not).  While we could work around the lack of z_streamp, it
9140   # seems unwise to encourage people to use such old zlib versions...
9141   echo "$as_me:$LINENO: checking for z_streamp" >&5
9142 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9143 if test "${ac_cv_type_z_streamp+set}" = set; then
9144   echo $ECHO_N "(cached) $ECHO_C" >&6
9145 else
9146   cat >conftest.$ac_ext <<_ACEOF
9147 #line $LINENO "configure"
9148 #include "confdefs.h"
9149 #include <zlib.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 if ((z_streamp *) 0)
9161   return 0;
9162 if (sizeof (z_streamp))
9163   return 0;
9164   ;
9165   return 0;
9166 }
9167 _ACEOF
9168 rm -f conftest.$ac_objext
9169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9170   (eval $ac_compile) 2>&5
9171   ac_status=$?
9172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173   (exit $ac_status); } &&
9174          { ac_try='test -s conftest.$ac_objext'
9175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9176   (eval $ac_try) 2>&5
9177   ac_status=$?
9178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179   (exit $ac_status); }; }; then
9180   ac_cv_type_z_streamp=yes
9181 else
9182   echo "$as_me: failed program was:" >&5
9183 cat conftest.$ac_ext >&5
9184 ac_cv_type_z_streamp=no
9185 fi
9186 rm -f conftest.$ac_objext conftest.$ac_ext
9187 fi
9188 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9189 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9190 if test $ac_cv_type_z_streamp = yes; then
9191   :
9192 else
9193   { { echo "$as_me:$LINENO: error: zlib version is too old
9194 Use --without-zlib to disable zlib support." >&5
9195 echo "$as_me: error: zlib version is too old
9196 Use --without-zlib to disable zlib support." >&2;}
9197    { (exit 1); exit 1; }; }
9198 fi
9199
9200 fi
9201
9202 if test "$with_krb5" = yes; then
9203 # Check for differences between MIT and Heimdal (KTH) releases
9204   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9205 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9206 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9207   echo $ECHO_N "(cached) $ECHO_C" >&6
9208 else
9209   cat >conftest.$ac_ext <<_ACEOF
9210 #line $LINENO "configure"
9211 #include "confdefs.h"
9212 #include <krb5.h>
9213
9214 #ifdef F77_DUMMY_MAIN
9215 #  ifdef __cplusplus
9216      extern "C"
9217 #  endif
9218    int F77_DUMMY_MAIN() { return 1; }
9219 #endif
9220 int
9221 main ()
9222 {
9223 static krb5_ticket ac_aggr;
9224 if (ac_aggr.enc_part2)
9225 return 0;
9226   ;
9227   return 0;
9228 }
9229 _ACEOF
9230 rm -f conftest.$ac_objext
9231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9232   (eval $ac_compile) 2>&5
9233   ac_status=$?
9234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235   (exit $ac_status); } &&
9236          { ac_try='test -s conftest.$ac_objext'
9237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238   (eval $ac_try) 2>&5
9239   ac_status=$?
9240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241   (exit $ac_status); }; }; then
9242   ac_cv_member_krb5_ticket_enc_part2=yes
9243 else
9244   echo "$as_me: failed program was:" >&5
9245 cat conftest.$ac_ext >&5
9246 ac_cv_member_krb5_ticket_enc_part2=no
9247 fi
9248 rm -f conftest.$ac_objext conftest.$ac_ext
9249 fi
9250 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9251 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9252 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
9253
9254 cat >>confdefs.h <<_ACEOF
9255 #define HAVE_KRB5_TICKET_ENC_PART2 1
9256 _ACEOF
9257
9258
9259 else
9260   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9261 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9262 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9263   echo $ECHO_N "(cached) $ECHO_C" >&6
9264 else
9265   cat >conftest.$ac_ext <<_ACEOF
9266 #line $LINENO "configure"
9267 #include "confdefs.h"
9268 #include <krb5.h>
9269
9270 #ifdef F77_DUMMY_MAIN
9271 #  ifdef __cplusplus
9272      extern "C"
9273 #  endif
9274    int F77_DUMMY_MAIN() { return 1; }
9275 #endif
9276 int
9277 main ()
9278 {
9279 static krb5_ticket ac_aggr;
9280 if (ac_aggr.client)
9281 return 0;
9282   ;
9283   return 0;
9284 }
9285 _ACEOF
9286 rm -f conftest.$ac_objext
9287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9288   (eval $ac_compile) 2>&5
9289   ac_status=$?
9290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291   (exit $ac_status); } &&
9292          { ac_try='test -s conftest.$ac_objext'
9293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294   (eval $ac_try) 2>&5
9295   ac_status=$?
9296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297   (exit $ac_status); }; }; then
9298   ac_cv_member_krb5_ticket_client=yes
9299 else
9300   echo "$as_me: failed program was:" >&5
9301 cat conftest.$ac_ext >&5
9302 ac_cv_member_krb5_ticket_client=no
9303 fi
9304 rm -f conftest.$ac_objext conftest.$ac_ext
9305 fi
9306 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
9307 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
9308 if test $ac_cv_member_krb5_ticket_client = yes; then
9309
9310 cat >>confdefs.h <<_ACEOF
9311 #define HAVE_KRB5_TICKET_CLIENT 1
9312 _ACEOF
9313
9314
9315 else
9316   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
9317 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
9318    { (exit 1); exit 1; }; }
9319 fi
9320
9321 fi
9322
9323   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
9324 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
9325 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
9326   echo $ECHO_N "(cached) $ECHO_C" >&6
9327 else
9328   cat >conftest.$ac_ext <<_ACEOF
9329 #line $LINENO "configure"
9330 #include "confdefs.h"
9331 #include <krb5.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 static krb5_error ac_aggr;
9343 if (ac_aggr.text.data)
9344 return 0;
9345   ;
9346   return 0;
9347 }
9348 _ACEOF
9349 rm -f conftest.$ac_objext
9350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9351   (eval $ac_compile) 2>&5
9352   ac_status=$?
9353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354   (exit $ac_status); } &&
9355          { ac_try='test -s conftest.$ac_objext'
9356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357   (eval $ac_try) 2>&5
9358   ac_status=$?
9359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360   (exit $ac_status); }; }; then
9361   ac_cv_member_krb5_error_text_data=yes
9362 else
9363   echo "$as_me: failed program was:" >&5
9364 cat conftest.$ac_ext >&5
9365 ac_cv_member_krb5_error_text_data=no
9366 fi
9367 rm -f conftest.$ac_objext conftest.$ac_ext
9368 fi
9369 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
9370 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
9371 if test $ac_cv_member_krb5_error_text_data = yes; then
9372
9373 cat >>confdefs.h <<_ACEOF
9374 #define HAVE_KRB5_ERROR_TEXT_DATA 1
9375 _ACEOF
9376
9377
9378 else
9379   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
9380 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
9381 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
9382   echo $ECHO_N "(cached) $ECHO_C" >&6
9383 else
9384   cat >conftest.$ac_ext <<_ACEOF
9385 #line $LINENO "configure"
9386 #include "confdefs.h"
9387 #include <krb5.h>
9388
9389 #ifdef F77_DUMMY_MAIN
9390 #  ifdef __cplusplus
9391      extern "C"
9392 #  endif
9393    int F77_DUMMY_MAIN() { return 1; }
9394 #endif
9395 int
9396 main ()
9397 {
9398 static krb5_error ac_aggr;
9399 if (ac_aggr.e_data)
9400 return 0;
9401   ;
9402   return 0;
9403 }
9404 _ACEOF
9405 rm -f conftest.$ac_objext
9406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9407   (eval $ac_compile) 2>&5
9408   ac_status=$?
9409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410   (exit $ac_status); } &&
9411          { ac_try='test -s conftest.$ac_objext'
9412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413   (eval $ac_try) 2>&5
9414   ac_status=$?
9415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416   (exit $ac_status); }; }; then
9417   ac_cv_member_krb5_error_e_data=yes
9418 else
9419   echo "$as_me: failed program was:" >&5
9420 cat conftest.$ac_ext >&5
9421 ac_cv_member_krb5_error_e_data=no
9422 fi
9423 rm -f conftest.$ac_objext conftest.$ac_ext
9424 fi
9425 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
9426 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
9427 if test $ac_cv_member_krb5_error_e_data = yes; then
9428   :
9429 else
9430   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
9431 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
9432    { (exit 1); exit 1; }; }
9433 fi
9434
9435 fi
9436
9437 fi
9438
9439
9440 ##
9441 ## Functions, global variables
9442 ##
9443
9444 echo "$as_me:$LINENO: checking for int timezone" >&5
9445 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
9446 if test "${pgac_cv_var_int_timezone+set}" = set; then
9447   echo $ECHO_N "(cached) $ECHO_C" >&6
9448 else
9449   cat >conftest.$ac_ext <<_ACEOF
9450 #line $LINENO "configure"
9451 #include "confdefs.h"
9452 #include <time.h>
9453 int res;
9454 #ifdef F77_DUMMY_MAIN
9455 #  ifdef __cplusplus
9456      extern "C"
9457 #  endif
9458    int F77_DUMMY_MAIN() { return 1; }
9459 #endif
9460 int
9461 main ()
9462 {
9463 res = timezone / 60;
9464   ;
9465   return 0;
9466 }
9467 _ACEOF
9468 rm -f conftest.$ac_objext conftest$ac_exeext
9469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9470   (eval $ac_link) 2>&5
9471   ac_status=$?
9472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473   (exit $ac_status); } &&
9474          { ac_try='test -s conftest$ac_exeext'
9475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476   (eval $ac_try) 2>&5
9477   ac_status=$?
9478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479   (exit $ac_status); }; }; then
9480   pgac_cv_var_int_timezone=yes
9481 else
9482   echo "$as_me: failed program was:" >&5
9483 cat conftest.$ac_ext >&5
9484 pgac_cv_var_int_timezone=no
9485 fi
9486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9487 fi
9488 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
9489 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
9490 if test x"$pgac_cv_var_int_timezone" = xyes ; then
9491
9492 cat >>confdefs.h <<\_ACEOF
9493 #define HAVE_INT_TIMEZONE
9494 _ACEOF
9495
9496 fi
9497 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
9498 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
9499  if test "${ac_cv_func_accept_arg1+set}" = set; then
9500   echo $ECHO_N "(cached) $ECHO_C" >&6
9501 else
9502    if test "${ac_cv_func_accept_arg2+set}" = set; then
9503   echo $ECHO_N "(cached) $ECHO_C" >&6
9504 else
9505     if test "${ac_cv_func_accept_arg3+set}" = set; then
9506   echo $ECHO_N "(cached) $ECHO_C" >&6
9507 else
9508      for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
9509      for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
9510       for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
9511        cat >conftest.$ac_ext <<_ACEOF
9512 #line $LINENO "configure"
9513 #include "confdefs.h"
9514 #ifdef HAVE_SYS_TYPES_H
9515 #include <sys/types.h>
9516 #endif
9517 #ifdef HAVE_SYS_SOCKET_H
9518 #include <sys/socket.h>
9519 #endif
9520 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
9521 #ifdef F77_DUMMY_MAIN
9522 #  ifdef __cplusplus
9523      extern "C"
9524 #  endif
9525    int F77_DUMMY_MAIN() { return 1; }
9526 #endif
9527 int
9528 main ()
9529 {
9530
9531   ;
9532   return 0;
9533 }
9534 _ACEOF
9535 rm -f conftest.$ac_objext
9536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9537   (eval $ac_compile) 2>&5
9538   ac_status=$?
9539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540   (exit $ac_status); } &&
9541          { ac_try='test -s conftest.$ac_objext'
9542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9543   (eval $ac_try) 2>&5
9544   ac_status=$?
9545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546   (exit $ac_status); }; }; then
9547   ac_not_found=no; break 3
9548 else
9549   echo "$as_me: failed program was:" >&5
9550 cat conftest.$ac_ext >&5
9551 ac_not_found=yes
9552 fi
9553 rm -f conftest.$ac_objext conftest.$ac_ext
9554       done
9555      done
9556     done
9557     if test "$ac_not_found" = yes; then
9558       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
9559 echo "$as_me: error: could not determine argument types" >&2;}
9560    { (exit 1); exit 1; }; }
9561     fi
9562     if test "$ac_cv_func_accept_arg3" = "void"; then
9563       ac_cv_func_accept_arg3=int
9564     fi
9565
9566 fi
9567
9568 fi
9569
9570 fi
9571  echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
9572 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
9573
9574 cat >>confdefs.h <<_ACEOF
9575 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
9576 _ACEOF
9577
9578
9579 cat >>confdefs.h <<_ACEOF
9580 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
9581 _ACEOF
9582
9583
9584 cat >>confdefs.h <<_ACEOF
9585 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
9586 _ACEOF
9587
9588
9589 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
9590 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
9591 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
9592   echo $ECHO_N "(cached) $ECHO_C" >&6
9593 else
9594   cat >conftest.$ac_ext <<_ACEOF
9595 #line $LINENO "configure"
9596 #include "confdefs.h"
9597 #include <sys/time.h>
9598 #ifdef F77_DUMMY_MAIN
9599 #  ifdef __cplusplus
9600      extern "C"
9601 #  endif
9602    int F77_DUMMY_MAIN() { return 1; }
9603 #endif
9604 int
9605 main ()
9606 {
9607 struct timeval *tp;
9608 struct timezone *tzp;
9609 gettimeofday(tp,tzp);
9610   ;
9611   return 0;
9612 }
9613 _ACEOF
9614 rm -f conftest.$ac_objext
9615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9616   (eval $ac_compile) 2>&5
9617   ac_status=$?
9618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619   (exit $ac_status); } &&
9620          { ac_try='test -s conftest.$ac_objext'
9621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622   (eval $ac_try) 2>&5
9623   ac_status=$?
9624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625   (exit $ac_status); }; }; then
9626   pgac_cv_func_gettimeofday_1arg=no
9627 else
9628   echo "$as_me: failed program was:" >&5
9629 cat conftest.$ac_ext >&5
9630 pgac_cv_func_gettimeofday_1arg=yes
9631 fi
9632 rm -f conftest.$ac_objext conftest.$ac_ext
9633 fi
9634 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
9635 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
9636 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
9637
9638 cat >>confdefs.h <<\_ACEOF
9639 #define GETTIMEOFDAY_1ARG
9640 _ACEOF
9641
9642 fi
9643
9644 # SunOS doesn't handle negative byte comparisons properly with +/- return
9645 echo "$as_me:$LINENO: checking for working memcmp" >&5
9646 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9647 if test "${ac_cv_func_memcmp_working+set}" = set; then
9648   echo $ECHO_N "(cached) $ECHO_C" >&6
9649 else
9650   if test "$cross_compiling" = yes; then
9651   ac_cv_func_memcmp_working=no
9652 else
9653   cat >conftest.$ac_ext <<_ACEOF
9654 #line $LINENO "configure"
9655 #include "confdefs.h"
9656
9657 #ifdef F77_DUMMY_MAIN
9658 #  ifdef __cplusplus
9659      extern "C"
9660 #  endif
9661    int F77_DUMMY_MAIN() { return 1; }
9662 #endif
9663 int
9664 main ()
9665 {
9666
9667   /* Some versions of memcmp are not 8-bit clean.  */
9668   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9669   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9670     exit (1);
9671
9672   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9673      or more and with at least one buffer not starting on a 4-byte boundary.
9674      William Lewis provided this test program.   */
9675   {
9676     char foo[21];
9677     char bar[21];
9678     int i;
9679     for (i = 0; i < 4; i++)
9680       {
9681         char *a = foo + i;
9682         char *b = bar + i;
9683         strcpy (a, "--------01111111");
9684         strcpy (b, "--------10000000");
9685         if (memcmp (a, b, 16) >= 0)
9686           exit (1);
9687       }
9688     exit (0);
9689   }
9690
9691   ;
9692   return 0;
9693 }
9694 _ACEOF
9695 rm -f conftest$ac_exeext
9696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9697   (eval $ac_link) 2>&5
9698   ac_status=$?
9699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702   (eval $ac_try) 2>&5
9703   ac_status=$?
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); }; }; then
9706   ac_cv_func_memcmp_working=yes
9707 else
9708   echo "$as_me: program exited with status $ac_status" >&5
9709 echo "$as_me: failed program was:" >&5
9710 cat conftest.$ac_ext >&5
9711 ( exit $ac_status )
9712 ac_cv_func_memcmp_working=no
9713 fi
9714 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9715 fi
9716 fi
9717 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9718 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9719 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734 for ac_func in cbrt fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
9735 do
9736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9737 echo "$as_me:$LINENO: checking for $ac_func" >&5
9738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9739 if eval "test \"\${$as_ac_var+set}\" = set"; then
9740   echo $ECHO_N "(cached) $ECHO_C" >&6
9741 else
9742   cat >conftest.$ac_ext <<_ACEOF
9743 #line $LINENO "configure"
9744 #include "confdefs.h"
9745 /* System header to define __stub macros and hopefully few prototypes,
9746     which can conflict with char $ac_func (); below.  */
9747 #include <assert.h>
9748 /* Override any gcc2 internal prototype to avoid an error.  */
9749 #ifdef __cplusplus
9750 extern "C"
9751 #endif
9752 /* We use char because int might match the return type of a gcc2
9753    builtin and then its argument prototype would still apply.  */
9754 char $ac_func ();
9755 char (*f) ();
9756
9757 #ifdef F77_DUMMY_MAIN
9758 #  ifdef __cplusplus
9759      extern "C"
9760 #  endif
9761    int F77_DUMMY_MAIN() { return 1; }
9762 #endif
9763 int
9764 main ()
9765 {
9766 /* The GNU C library defines this for functions which it implements
9767     to always fail with ENOSYS.  Some functions are actually named
9768     something starting with __ and the normal name is an alias.  */
9769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9770 choke me
9771 #else
9772 f = $ac_func;
9773 #endif
9774
9775   ;
9776   return 0;
9777 }
9778 _ACEOF
9779 rm -f conftest.$ac_objext conftest$ac_exeext
9780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9781   (eval $ac_link) 2>&5
9782   ac_status=$?
9783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784   (exit $ac_status); } &&
9785          { ac_try='test -s conftest$ac_exeext'
9786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9787   (eval $ac_try) 2>&5
9788   ac_status=$?
9789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790   (exit $ac_status); }; }; then
9791   eval "$as_ac_var=yes"
9792 else
9793   echo "$as_me: failed program was:" >&5
9794 cat conftest.$ac_ext >&5
9795 eval "$as_ac_var=no"
9796 fi
9797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9798 fi
9799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9801 if test `eval echo '${'$as_ac_var'}'` = yes; then
9802   cat >>confdefs.h <<_ACEOF
9803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9804 _ACEOF
9805
9806 fi
9807 done
9808
9809
9810 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
9811 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
9812 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
9813   echo $ECHO_N "(cached) $ECHO_C" >&6
9814 else
9815   cat >conftest.$ac_ext <<_ACEOF
9816 #line $LINENO "configure"
9817 #include "confdefs.h"
9818 #include <unistd.h>
9819
9820 #ifdef F77_DUMMY_MAIN
9821 #  ifdef __cplusplus
9822      extern "C"
9823 #  endif
9824    int F77_DUMMY_MAIN() { return 1; }
9825 #endif
9826 int
9827 main ()
9828 {
9829 #ifndef fdatasync
9830   char *p = (char *) fdatasync;
9831 #endif
9832
9833   ;
9834   return 0;
9835 }
9836 _ACEOF
9837 rm -f conftest.$ac_objext
9838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9839   (eval $ac_compile) 2>&5
9840   ac_status=$?
9841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842   (exit $ac_status); } &&
9843          { ac_try='test -s conftest.$ac_objext'
9844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845   (eval $ac_try) 2>&5
9846   ac_status=$?
9847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848   (exit $ac_status); }; }; then
9849   ac_cv_have_decl_fdatasync=yes
9850 else
9851   echo "$as_me: failed program was:" >&5
9852 cat conftest.$ac_ext >&5
9853 ac_cv_have_decl_fdatasync=no
9854 fi
9855 rm -f conftest.$ac_objext conftest.$ac_ext
9856 fi
9857 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
9858 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
9859 if test $ac_cv_have_decl_fdatasync = yes; then
9860
9861 cat >>confdefs.h <<_ACEOF
9862 #define HAVE_DECL_FDATASYNC 1
9863 _ACEOF
9864
9865
9866 else
9867   cat >>confdefs.h <<_ACEOF
9868 #define HAVE_DECL_FDATASYNC 0
9869 _ACEOF
9870
9871
9872 fi
9873
9874
9875
9876 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
9877 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
9878 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
9879   echo $ECHO_N "(cached) $ECHO_C" >&6
9880 else
9881   cat >conftest.$ac_ext <<_ACEOF
9882 #line $LINENO "configure"
9883 #include "confdefs.h"
9884 #include <machine/vmparam.h>
9885 #include <sys/exec.h>
9886
9887 #ifdef F77_DUMMY_MAIN
9888 #  ifdef __cplusplus
9889      extern "C"
9890 #  endif
9891    int F77_DUMMY_MAIN() { return 1; }
9892 #endif
9893 int
9894 main ()
9895 {
9896 PS_STRINGS->ps_nargvstr = 1;
9897 PS_STRINGS->ps_argvstr = "foo";
9898   ;
9899   return 0;
9900 }
9901 _ACEOF
9902 rm -f conftest.$ac_objext conftest$ac_exeext
9903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9904   (eval $ac_link) 2>&5
9905   ac_status=$?
9906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907   (exit $ac_status); } &&
9908          { ac_try='test -s conftest$ac_exeext'
9909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910   (eval $ac_try) 2>&5
9911   ac_status=$?
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); }; }; then
9914   pgac_cv_var_PS_STRINGS=yes
9915 else
9916   echo "$as_me: failed program was:" >&5
9917 cat conftest.$ac_ext >&5
9918 pgac_cv_var_PS_STRINGS=no
9919 fi
9920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9921 fi
9922 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
9923 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
9924 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
9925
9926 cat >>confdefs.h <<\_ACEOF
9927 #define HAVE_PS_STRINGS
9928 _ACEOF
9929
9930 fi
9931
9932
9933 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
9934 # is missing.  Yes, there are machines that have only one.  We may
9935 # also decide to use snprintf.c if snprintf() is present but does not
9936 # have working "long long int" support -- see below.
9937
9938 pgac_need_repl_snprintf=no
9939
9940 for ac_func in snprintf
9941 do
9942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9943 echo "$as_me:$LINENO: checking for $ac_func" >&5
9944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9945 if eval "test \"\${$as_ac_var+set}\" = set"; then
9946   echo $ECHO_N "(cached) $ECHO_C" >&6
9947 else
9948   cat >conftest.$ac_ext <<_ACEOF
9949 #line $LINENO "configure"
9950 #include "confdefs.h"
9951 /* System header to define __stub macros and hopefully few prototypes,
9952     which can conflict with char $ac_func (); below.  */
9953 #include <assert.h>
9954 /* Override any gcc2 internal prototype to avoid an error.  */
9955 #ifdef __cplusplus
9956 extern "C"
9957 #endif
9958 /* We use char because int might match the return type of a gcc2
9959    builtin and then its argument prototype would still apply.  */
9960 char $ac_func ();
9961 char (*f) ();
9962
9963 #ifdef F77_DUMMY_MAIN
9964 #  ifdef __cplusplus
9965      extern "C"
9966 #  endif
9967    int F77_DUMMY_MAIN() { return 1; }
9968 #endif
9969 int
9970 main ()
9971 {
9972 /* The GNU C library defines this for functions which it implements
9973     to always fail with ENOSYS.  Some functions are actually named
9974     something starting with __ and the normal name is an alias.  */
9975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9976 choke me
9977 #else
9978 f = $ac_func;
9979 #endif
9980
9981   ;
9982   return 0;
9983 }
9984 _ACEOF
9985 rm -f conftest.$ac_objext conftest$ac_exeext
9986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9987   (eval $ac_link) 2>&5
9988   ac_status=$?
9989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990   (exit $ac_status); } &&
9991          { ac_try='test -s conftest$ac_exeext'
9992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993   (eval $ac_try) 2>&5
9994   ac_status=$?
9995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996   (exit $ac_status); }; }; then
9997   eval "$as_ac_var=yes"
9998 else
9999   echo "$as_me: failed program was:" >&5
10000 cat conftest.$ac_ext >&5
10001 eval "$as_ac_var=no"
10002 fi
10003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10004 fi
10005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10006 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10007 if test `eval echo '${'$as_ac_var'}'` = yes; then
10008   cat >>confdefs.h <<_ACEOF
10009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10010 _ACEOF
10011
10012 else
10013   pgac_need_repl_snprintf=yes
10014 fi
10015 done
10016
10017
10018 for ac_func in vsnprintf
10019 do
10020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10021 echo "$as_me:$LINENO: checking for $ac_func" >&5
10022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10023 if eval "test \"\${$as_ac_var+set}\" = set"; then
10024   echo $ECHO_N "(cached) $ECHO_C" >&6
10025 else
10026   cat >conftest.$ac_ext <<_ACEOF
10027 #line $LINENO "configure"
10028 #include "confdefs.h"
10029 /* System header to define __stub macros and hopefully few prototypes,
10030     which can conflict with char $ac_func (); below.  */
10031 #include <assert.h>
10032 /* Override any gcc2 internal prototype to avoid an error.  */
10033 #ifdef __cplusplus
10034 extern "C"
10035 #endif
10036 /* We use char because int might match the return type of a gcc2
10037    builtin and then its argument prototype would still apply.  */
10038 char $ac_func ();
10039 char (*f) ();
10040
10041 #ifdef F77_DUMMY_MAIN
10042 #  ifdef __cplusplus
10043      extern "C"
10044 #  endif
10045    int F77_DUMMY_MAIN() { return 1; }
10046 #endif
10047 int
10048 main ()
10049 {
10050 /* The GNU C library defines this for functions which it implements
10051     to always fail with ENOSYS.  Some functions are actually named
10052     something starting with __ and the normal name is an alias.  */
10053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10054 choke me
10055 #else
10056 f = $ac_func;
10057 #endif
10058
10059   ;
10060   return 0;
10061 }
10062 _ACEOF
10063 rm -f conftest.$ac_objext conftest$ac_exeext
10064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10065   (eval $ac_link) 2>&5
10066   ac_status=$?
10067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068   (exit $ac_status); } &&
10069          { ac_try='test -s conftest$ac_exeext'
10070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071   (eval $ac_try) 2>&5
10072   ac_status=$?
10073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074   (exit $ac_status); }; }; then
10075   eval "$as_ac_var=yes"
10076 else
10077   echo "$as_me: failed program was:" >&5
10078 cat conftest.$ac_ext >&5
10079 eval "$as_ac_var=no"
10080 fi
10081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10082 fi
10083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10085 if test `eval echo '${'$as_ac_var'}'` = yes; then
10086   cat >>confdefs.h <<_ACEOF
10087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10088 _ACEOF
10089
10090 else
10091   pgac_need_repl_snprintf=yes
10092 fi
10093 done
10094
10095
10096
10097 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10098 # include/c.h will provide declarations.  Note this is a separate test
10099 # from whether the functions exist in the C library --- there are
10100 # systems that have the functions but don't bother to declare them :-(
10101
10102 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10103 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10104 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10105   echo $ECHO_N "(cached) $ECHO_C" >&6
10106 else
10107   cat >conftest.$ac_ext <<_ACEOF
10108 #line $LINENO "configure"
10109 #include "confdefs.h"
10110 $ac_includes_default
10111 #ifdef F77_DUMMY_MAIN
10112 #  ifdef __cplusplus
10113      extern "C"
10114 #  endif
10115    int F77_DUMMY_MAIN() { return 1; }
10116 #endif
10117 int
10118 main ()
10119 {
10120 #ifndef snprintf
10121   char *p = (char *) snprintf;
10122 #endif
10123
10124   ;
10125   return 0;
10126 }
10127 _ACEOF
10128 rm -f conftest.$ac_objext
10129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10130   (eval $ac_compile) 2>&5
10131   ac_status=$?
10132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133   (exit $ac_status); } &&
10134          { ac_try='test -s conftest.$ac_objext'
10135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10136   (eval $ac_try) 2>&5
10137   ac_status=$?
10138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139   (exit $ac_status); }; }; then
10140   ac_cv_have_decl_snprintf=yes
10141 else
10142   echo "$as_me: failed program was:" >&5
10143 cat conftest.$ac_ext >&5
10144 ac_cv_have_decl_snprintf=no
10145 fi
10146 rm -f conftest.$ac_objext conftest.$ac_ext
10147 fi
10148 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10149 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10150 if test $ac_cv_have_decl_snprintf = yes; then
10151
10152 cat >>confdefs.h <<_ACEOF
10153 #define HAVE_DECL_SNPRINTF 1
10154 _ACEOF
10155
10156
10157 else
10158   cat >>confdefs.h <<_ACEOF
10159 #define HAVE_DECL_SNPRINTF 0
10160 _ACEOF
10161
10162
10163 fi
10164 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10165 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10166 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10167   echo $ECHO_N "(cached) $ECHO_C" >&6
10168 else
10169   cat >conftest.$ac_ext <<_ACEOF
10170 #line $LINENO "configure"
10171 #include "confdefs.h"
10172 $ac_includes_default
10173 #ifdef F77_DUMMY_MAIN
10174 #  ifdef __cplusplus
10175      extern "C"
10176 #  endif
10177    int F77_DUMMY_MAIN() { return 1; }
10178 #endif
10179 int
10180 main ()
10181 {
10182 #ifndef vsnprintf
10183   char *p = (char *) vsnprintf;
10184 #endif
10185
10186   ;
10187   return 0;
10188 }
10189 _ACEOF
10190 rm -f conftest.$ac_objext
10191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10192   (eval $ac_compile) 2>&5
10193   ac_status=$?
10194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195   (exit $ac_status); } &&
10196          { ac_try='test -s conftest.$ac_objext'
10197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198   (eval $ac_try) 2>&5
10199   ac_status=$?
10200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201   (exit $ac_status); }; }; then
10202   ac_cv_have_decl_vsnprintf=yes
10203 else
10204   echo "$as_me: failed program was:" >&5
10205 cat conftest.$ac_ext >&5
10206 ac_cv_have_decl_vsnprintf=no
10207 fi
10208 rm -f conftest.$ac_objext conftest.$ac_ext
10209 fi
10210 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10211 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10212 if test $ac_cv_have_decl_vsnprintf = yes; then
10213
10214 cat >>confdefs.h <<_ACEOF
10215 #define HAVE_DECL_VSNPRINTF 1
10216 _ACEOF
10217
10218
10219 else
10220   cat >>confdefs.h <<_ACEOF
10221 #define HAVE_DECL_VSNPRINTF 0
10222 _ACEOF
10223
10224
10225 fi
10226
10227
10228
10229
10230 # do this one the hard way in case isinf() is a macro
10231 echo "$as_me:$LINENO: checking for isinf" >&5
10232 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10233 if test "${ac_cv_func_isinf+set}" = set; then
10234   echo $ECHO_N "(cached) $ECHO_C" >&6
10235 else
10236   cat >conftest.$ac_ext <<_ACEOF
10237 #line $LINENO "configure"
10238 #include "confdefs.h"
10239 #include <math.h>
10240
10241 #ifdef F77_DUMMY_MAIN
10242 #  ifdef __cplusplus
10243      extern "C"
10244 #  endif
10245    int F77_DUMMY_MAIN() { return 1; }
10246 #endif
10247 int
10248 main ()
10249 {
10250 double x = 0.0; int res = isinf(x);
10251   ;
10252   return 0;
10253 }
10254 _ACEOF
10255 rm -f conftest.$ac_objext conftest$ac_exeext
10256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10257   (eval $ac_link) 2>&5
10258   ac_status=$?
10259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260   (exit $ac_status); } &&
10261          { ac_try='test -s conftest$ac_exeext'
10262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263   (eval $ac_try) 2>&5
10264   ac_status=$?
10265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266   (exit $ac_status); }; }; then
10267   ac_cv_func_isinf=yes
10268 else
10269   echo "$as_me: failed program was:" >&5
10270 cat conftest.$ac_ext >&5
10271 ac_cv_func_isinf=no
10272 fi
10273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10274 fi
10275 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10276 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10277
10278 if test $ac_cv_func_isinf = yes ; then
10279
10280 cat >>confdefs.h <<\_ACEOF
10281 #define HAVE_ISINF 1
10282 _ACEOF
10283
10284 else
10285   LIBOBJS="$LIBOBJS isinf.$ac_objext"
10286   # Look for a way to implement a substitute for isinf()
10287
10288
10289
10290
10291 for ac_func in fpclass fp_class fp_class_d class
10292 do
10293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10294 echo "$as_me:$LINENO: checking for $ac_func" >&5
10295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10296 if eval "test \"\${$as_ac_var+set}\" = set"; then
10297   echo $ECHO_N "(cached) $ECHO_C" >&6
10298 else
10299   cat >conftest.$ac_ext <<_ACEOF
10300 #line $LINENO "configure"
10301 #include "confdefs.h"
10302 /* System header to define __stub macros and hopefully few prototypes,
10303     which can conflict with char $ac_func (); below.  */
10304 #include <assert.h>
10305 /* Override any gcc2 internal prototype to avoid an error.  */
10306 #ifdef __cplusplus
10307 extern "C"
10308 #endif
10309 /* We use char because int might match the return type of a gcc2
10310    builtin and then its argument prototype would still apply.  */
10311 char $ac_func ();
10312 char (*f) ();
10313
10314 #ifdef F77_DUMMY_MAIN
10315 #  ifdef __cplusplus
10316      extern "C"
10317 #  endif
10318    int F77_DUMMY_MAIN() { return 1; }
10319 #endif
10320 int
10321 main ()
10322 {
10323 /* The GNU C library defines this for functions which it implements
10324     to always fail with ENOSYS.  Some functions are actually named
10325     something starting with __ and the normal name is an alias.  */
10326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10327 choke me
10328 #else
10329 f = $ac_func;
10330 #endif
10331
10332   ;
10333   return 0;
10334 }
10335 _ACEOF
10336 rm -f conftest.$ac_objext conftest$ac_exeext
10337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10338   (eval $ac_link) 2>&5
10339   ac_status=$?
10340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341   (exit $ac_status); } &&
10342          { ac_try='test -s conftest$ac_exeext'
10343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10344   (eval $ac_try) 2>&5
10345   ac_status=$?
10346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347   (exit $ac_status); }; }; then
10348   eval "$as_ac_var=yes"
10349 else
10350   echo "$as_me: failed program was:" >&5
10351 cat conftest.$ac_ext >&5
10352 eval "$as_ac_var=no"
10353 fi
10354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10355 fi
10356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10357 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10358 if test `eval echo '${'$as_ac_var'}'` = yes; then
10359   cat >>confdefs.h <<_ACEOF
10360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10361 _ACEOF
10362  break
10363 fi
10364 done
10365
10366 fi
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378 for ac_func in gethostname getrusage inet_aton random srandom strcasecmp strdup strerror strtol strtoul
10379 do
10380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10381 echo "$as_me:$LINENO: checking for $ac_func" >&5
10382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10383 if eval "test \"\${$as_ac_var+set}\" = set"; then
10384   echo $ECHO_N "(cached) $ECHO_C" >&6
10385 else
10386   cat >conftest.$ac_ext <<_ACEOF
10387 #line $LINENO "configure"
10388 #include "confdefs.h"
10389 /* System header to define __stub macros and hopefully few prototypes,
10390     which can conflict with char $ac_func (); below.  */
10391 #include <assert.h>
10392 /* Override any gcc2 internal prototype to avoid an error.  */
10393 #ifdef __cplusplus
10394 extern "C"
10395 #endif
10396 /* We use char because int might match the return type of a gcc2
10397    builtin and then its argument prototype would still apply.  */
10398 char $ac_func ();
10399 char (*f) ();
10400
10401 #ifdef F77_DUMMY_MAIN
10402 #  ifdef __cplusplus
10403      extern "C"
10404 #  endif
10405    int F77_DUMMY_MAIN() { return 1; }
10406 #endif
10407 int
10408 main ()
10409 {
10410 /* The GNU C library defines this for functions which it implements
10411     to always fail with ENOSYS.  Some functions are actually named
10412     something starting with __ and the normal name is an alias.  */
10413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10414 choke me
10415 #else
10416 f = $ac_func;
10417 #endif
10418
10419   ;
10420   return 0;
10421 }
10422 _ACEOF
10423 rm -f conftest.$ac_objext conftest$ac_exeext
10424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10425   (eval $ac_link) 2>&5
10426   ac_status=$?
10427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428   (exit $ac_status); } &&
10429          { ac_try='test -s conftest$ac_exeext'
10430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10431   (eval $ac_try) 2>&5
10432   ac_status=$?
10433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434   (exit $ac_status); }; }; then
10435   eval "$as_ac_var=yes"
10436 else
10437   echo "$as_me: failed program was:" >&5
10438 cat conftest.$ac_ext >&5
10439 eval "$as_ac_var=no"
10440 fi
10441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10442 fi
10443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10444 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10445 if test `eval echo '${'$as_ac_var'}'` = yes; then
10446   cat >>confdefs.h <<_ACEOF
10447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10448 _ACEOF
10449
10450 else
10451   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
10452 fi
10453 done
10454
10455
10456
10457 # Solaris has a very slow qsort in certain cases.
10458 case $host_os in
10459   solaris*) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
10460 esac
10461
10462 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
10463 # this hackery with HPUXMATHLIB allows us to cope.
10464 HPUXMATHLIB=""
10465 case $host_cpu in
10466   hppa1.1)
10467         if test -r /lib/pa1.1/libm.a ; then
10468             HPUXMATHLIB="-L /lib/pa1.1 -lm"
10469         fi ;;
10470 esac
10471
10472
10473
10474 for ac_func in rint
10475 do
10476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10477 echo "$as_me:$LINENO: checking for $ac_func" >&5
10478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10479 if eval "test \"\${$as_ac_var+set}\" = set"; then
10480   echo $ECHO_N "(cached) $ECHO_C" >&6
10481 else
10482   cat >conftest.$ac_ext <<_ACEOF
10483 #line $LINENO "configure"
10484 #include "confdefs.h"
10485 /* System header to define __stub macros and hopefully few prototypes,
10486     which can conflict with char $ac_func (); below.  */
10487 #include <assert.h>
10488 /* Override any gcc2 internal prototype to avoid an error.  */
10489 #ifdef __cplusplus
10490 extern "C"
10491 #endif
10492 /* We use char because int might match the return type of a gcc2
10493    builtin and then its argument prototype would still apply.  */
10494 char $ac_func ();
10495 char (*f) ();
10496
10497 #ifdef F77_DUMMY_MAIN
10498 #  ifdef __cplusplus
10499      extern "C"
10500 #  endif
10501    int F77_DUMMY_MAIN() { return 1; }
10502 #endif
10503 int
10504 main ()
10505 {
10506 /* The GNU C library defines this for functions which it implements
10507     to always fail with ENOSYS.  Some functions are actually named
10508     something starting with __ and the normal name is an alias.  */
10509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10510 choke me
10511 #else
10512 f = $ac_func;
10513 #endif
10514
10515   ;
10516   return 0;
10517 }
10518 _ACEOF
10519 rm -f conftest.$ac_objext conftest$ac_exeext
10520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10521   (eval $ac_link) 2>&5
10522   ac_status=$?
10523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524   (exit $ac_status); } &&
10525          { ac_try='test -s conftest$ac_exeext'
10526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10527   (eval $ac_try) 2>&5
10528   ac_status=$?
10529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530   (exit $ac_status); }; }; then
10531   eval "$as_ac_var=yes"
10532 else
10533   echo "$as_me: failed program was:" >&5
10534 cat conftest.$ac_ext >&5
10535 eval "$as_ac_var=no"
10536 fi
10537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10538 fi
10539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10541 if test `eval echo '${'$as_ac_var'}'` = yes; then
10542   cat >>confdefs.h <<_ACEOF
10543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10544 _ACEOF
10545
10546 else
10547   echo "$as_me:$LINENO: checking for rint in -lm" >&5
10548 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
10549 if test "${ac_cv_lib_m_rint+set}" = set; then
10550   echo $ECHO_N "(cached) $ECHO_C" >&6
10551 else
10552   ac_check_lib_save_LIBS=$LIBS
10553 LIBS="-lm $HPUXMATHLIB $LIBS"
10554 cat >conftest.$ac_ext <<_ACEOF
10555 #line $LINENO "configure"
10556 #include "confdefs.h"
10557
10558 /* Override any gcc2 internal prototype to avoid an error.  */
10559 #ifdef __cplusplus
10560 extern "C"
10561 #endif
10562 /* We use char because int might match the return type of a gcc2
10563    builtin and then its argument prototype would still apply.  */
10564 char rint ();
10565 #ifdef F77_DUMMY_MAIN
10566 #  ifdef __cplusplus
10567      extern "C"
10568 #  endif
10569    int F77_DUMMY_MAIN() { return 1; }
10570 #endif
10571 int
10572 main ()
10573 {
10574 rint ();
10575   ;
10576   return 0;
10577 }
10578 _ACEOF
10579 rm -f conftest.$ac_objext conftest$ac_exeext
10580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10581   (eval $ac_link) 2>&5
10582   ac_status=$?
10583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584   (exit $ac_status); } &&
10585          { ac_try='test -s conftest$ac_exeext'
10586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587   (eval $ac_try) 2>&5
10588   ac_status=$?
10589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590   (exit $ac_status); }; }; then
10591   ac_cv_lib_m_rint=yes
10592 else
10593   echo "$as_me: failed program was:" >&5
10594 cat conftest.$ac_ext >&5
10595 ac_cv_lib_m_rint=no
10596 fi
10597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10598 LIBS=$ac_check_lib_save_LIBS
10599 fi
10600 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
10601 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
10602 if test $ac_cv_lib_m_rint = yes; then
10603   cat >>confdefs.h <<\_ACEOF
10604 #define HAVE_RINT 1
10605 _ACEOF
10606
10607 fi
10608
10609 fi
10610 done
10611
10612
10613
10614 if test "$with_readline" = yes; then
10615   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
10616 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
10617 cat >conftest.$ac_ext <<_ACEOF
10618 #line $LINENO "configure"
10619 #include "confdefs.h"
10620 #include <stdio.h>
10621 #ifdef HAVE_READLINE_READLINE_H
10622 # include <readline/readline.h>
10623 #elif defined(HAVE_READLINE_H)
10624 # include <readline.h>
10625 #endif
10626
10627 #ifdef F77_DUMMY_MAIN
10628 #  ifdef __cplusplus
10629      extern "C"
10630 #  endif
10631    int F77_DUMMY_MAIN() { return 1; }
10632 #endif
10633 int
10634 main ()
10635 {
10636 rl_completion_append_character = 'x';
10637   ;
10638   return 0;
10639 }
10640 _ACEOF
10641 rm -f conftest.$ac_objext conftest$ac_exeext
10642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10643   (eval $ac_link) 2>&5
10644   ac_status=$?
10645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646   (exit $ac_status); } &&
10647          { ac_try='test -s conftest$ac_exeext'
10648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649   (eval $ac_try) 2>&5
10650   ac_status=$?
10651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652   (exit $ac_status); }; }; then
10653   echo "$as_me:$LINENO: result: yes" >&5
10654 echo "${ECHO_T}yes" >&6
10655
10656 cat >>confdefs.h <<\_ACEOF
10657 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
10658 _ACEOF
10659
10660 else
10661   echo "$as_me: failed program was:" >&5
10662 cat conftest.$ac_ext >&5
10663 echo "$as_me:$LINENO: result: no" >&5
10664 echo "${ECHO_T}no" >&6
10665 fi
10666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10667
10668
10669 for ac_func in rl_completion_matches rl_filename_completion_function
10670 do
10671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10672 echo "$as_me:$LINENO: checking for $ac_func" >&5
10673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10674 if eval "test \"\${$as_ac_var+set}\" = set"; then
10675   echo $ECHO_N "(cached) $ECHO_C" >&6
10676 else
10677   cat >conftest.$ac_ext <<_ACEOF
10678 #line $LINENO "configure"
10679 #include "confdefs.h"
10680 /* System header to define __stub macros and hopefully few prototypes,
10681     which can conflict with char $ac_func (); below.  */
10682 #include <assert.h>
10683 /* Override any gcc2 internal prototype to avoid an error.  */
10684 #ifdef __cplusplus
10685 extern "C"
10686 #endif
10687 /* We use char because int might match the return type of a gcc2
10688    builtin and then its argument prototype would still apply.  */
10689 char $ac_func ();
10690 char (*f) ();
10691
10692 #ifdef F77_DUMMY_MAIN
10693 #  ifdef __cplusplus
10694      extern "C"
10695 #  endif
10696    int F77_DUMMY_MAIN() { return 1; }
10697 #endif
10698 int
10699 main ()
10700 {
10701 /* The GNU C library defines this for functions which it implements
10702     to always fail with ENOSYS.  Some functions are actually named
10703     something starting with __ and the normal name is an alias.  */
10704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10705 choke me
10706 #else
10707 f = $ac_func;
10708 #endif
10709
10710   ;
10711   return 0;
10712 }
10713 _ACEOF
10714 rm -f conftest.$ac_objext conftest$ac_exeext
10715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10716   (eval $ac_link) 2>&5
10717   ac_status=$?
10718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719   (exit $ac_status); } &&
10720          { ac_try='test -s conftest$ac_exeext'
10721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722   (eval $ac_try) 2>&5
10723   ac_status=$?
10724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725   (exit $ac_status); }; }; then
10726   eval "$as_ac_var=yes"
10727 else
10728   echo "$as_me: failed program was:" >&5
10729 cat conftest.$ac_ext >&5
10730 eval "$as_ac_var=no"
10731 fi
10732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10733 fi
10734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10735 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10736 if test `eval echo '${'$as_ac_var'}'` = yes; then
10737   cat >>confdefs.h <<_ACEOF
10738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10739 _ACEOF
10740
10741 fi
10742 done
10743
10744 fi
10745
10746
10747 echo "$as_me:$LINENO: checking for finite" >&5
10748 echo $ECHO_N "checking for finite... $ECHO_C" >&6
10749 cat >conftest.$ac_ext <<_ACEOF
10750 #line $LINENO "configure"
10751 #include "confdefs.h"
10752 #include <math.h>
10753 #ifdef F77_DUMMY_MAIN
10754 #  ifdef __cplusplus
10755      extern "C"
10756 #  endif
10757    int F77_DUMMY_MAIN() { return 1; }
10758 #endif
10759 int
10760 main ()
10761 {
10762 int dummy=finite(1.0);
10763   ;
10764   return 0;
10765 }
10766 _ACEOF
10767 rm -f conftest.$ac_objext conftest$ac_exeext
10768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10769   (eval $ac_link) 2>&5
10770   ac_status=$?
10771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772   (exit $ac_status); } &&
10773          { ac_try='test -s conftest$ac_exeext'
10774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10775   (eval $ac_try) 2>&5
10776   ac_status=$?
10777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778   (exit $ac_status); }; }; then
10779
10780 cat >>confdefs.h <<\_ACEOF
10781 #define HAVE_FINITE 1
10782 _ACEOF
10783
10784 echo "$as_me:$LINENO: result: yes" >&5
10785 echo "${ECHO_T}yes" >&6
10786 else
10787   echo "$as_me: failed program was:" >&5
10788 cat conftest.$ac_ext >&5
10789 echo "$as_me:$LINENO: result: no" >&5
10790 echo "${ECHO_T}no" >&6
10791 fi
10792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10793
10794 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10795 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10796 cat >conftest.$ac_ext <<_ACEOF
10797 #line $LINENO "configure"
10798 #include "confdefs.h"
10799 #include <setjmp.h>
10800 #ifdef F77_DUMMY_MAIN
10801 #  ifdef __cplusplus
10802      extern "C"
10803 #  endif
10804    int F77_DUMMY_MAIN() { return 1; }
10805 #endif
10806 int
10807 main ()
10808 {
10809 sigjmp_buf x; sigsetjmp(x, 1);
10810   ;
10811   return 0;
10812 }
10813 _ACEOF
10814 rm -f conftest.$ac_objext conftest$ac_exeext
10815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10816   (eval $ac_link) 2>&5
10817   ac_status=$?
10818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819   (exit $ac_status); } &&
10820          { ac_try='test -s conftest$ac_exeext'
10821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10822   (eval $ac_try) 2>&5
10823   ac_status=$?
10824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825   (exit $ac_status); }; }; then
10826
10827 cat >>confdefs.h <<\_ACEOF
10828 #define HAVE_SIGSETJMP 1
10829 _ACEOF
10830
10831 echo "$as_me:$LINENO: result: yes" >&5
10832 echo "${ECHO_T}yes" >&6
10833 else
10834   echo "$as_me: failed program was:" >&5
10835 cat conftest.$ac_ext >&5
10836 echo "$as_me:$LINENO: result: no" >&5
10837 echo "${ECHO_T}no" >&6
10838 fi
10839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10840
10841 echo "$as_me:$LINENO: checking for syslog" >&5
10842 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
10843 if test "${ac_cv_func_syslog+set}" = set; then
10844   echo $ECHO_N "(cached) $ECHO_C" >&6
10845 else
10846   cat >conftest.$ac_ext <<_ACEOF
10847 #line $LINENO "configure"
10848 #include "confdefs.h"
10849 /* System header to define __stub macros and hopefully few prototypes,
10850     which can conflict with char syslog (); below.  */
10851 #include <assert.h>
10852 /* Override any gcc2 internal prototype to avoid an error.  */
10853 #ifdef __cplusplus
10854 extern "C"
10855 #endif
10856 /* We use char because int might match the return type of a gcc2
10857    builtin and then its argument prototype would still apply.  */
10858 char syslog ();
10859 char (*f) ();
10860
10861 #ifdef F77_DUMMY_MAIN
10862 #  ifdef __cplusplus
10863      extern "C"
10864 #  endif
10865    int F77_DUMMY_MAIN() { return 1; }
10866 #endif
10867 int
10868 main ()
10869 {
10870 /* The GNU C library defines this for functions which it implements
10871     to always fail with ENOSYS.  Some functions are actually named
10872     something starting with __ and the normal name is an alias.  */
10873 #if defined (__stub_syslog) || defined (__stub___syslog)
10874 choke me
10875 #else
10876 f = syslog;
10877 #endif
10878
10879   ;
10880   return 0;
10881 }
10882 _ACEOF
10883 rm -f conftest.$ac_objext conftest$ac_exeext
10884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10885   (eval $ac_link) 2>&5
10886   ac_status=$?
10887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888   (exit $ac_status); } &&
10889          { ac_try='test -s conftest$ac_exeext'
10890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891   (eval $ac_try) 2>&5
10892   ac_status=$?
10893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894   (exit $ac_status); }; }; then
10895   ac_cv_func_syslog=yes
10896 else
10897   echo "$as_me: failed program was:" >&5
10898 cat conftest.$ac_ext >&5
10899 ac_cv_func_syslog=no
10900 fi
10901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10902 fi
10903 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
10904 echo "${ECHO_T}$ac_cv_func_syslog" >&6
10905 if test $ac_cv_func_syslog = yes; then
10906   if test "${ac_cv_header_syslog_h+set}" = set; then
10907   echo "$as_me:$LINENO: checking for syslog.h" >&5
10908 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
10909 if test "${ac_cv_header_syslog_h+set}" = set; then
10910   echo $ECHO_N "(cached) $ECHO_C" >&6
10911 fi
10912 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
10913 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
10914 else
10915   # Is the header compilable?
10916 echo "$as_me:$LINENO: checking syslog.h usability" >&5
10917 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
10918 cat >conftest.$ac_ext <<_ACEOF
10919 #line $LINENO "configure"
10920 #include "confdefs.h"
10921 $ac_includes_default
10922 #include <syslog.h>
10923 _ACEOF
10924 rm -f conftest.$ac_objext
10925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10926   (eval $ac_compile) 2>&5
10927   ac_status=$?
10928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929   (exit $ac_status); } &&
10930          { ac_try='test -s conftest.$ac_objext'
10931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10932   (eval $ac_try) 2>&5
10933   ac_status=$?
10934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935   (exit $ac_status); }; }; then
10936   ac_header_compiler=yes
10937 else
10938   echo "$as_me: failed program was:" >&5
10939 cat conftest.$ac_ext >&5
10940 ac_header_compiler=no
10941 fi
10942 rm -f conftest.$ac_objext conftest.$ac_ext
10943 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10944 echo "${ECHO_T}$ac_header_compiler" >&6
10945
10946 # Is the header present?
10947 echo "$as_me:$LINENO: checking syslog.h presence" >&5
10948 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
10949 cat >conftest.$ac_ext <<_ACEOF
10950 #line $LINENO "configure"
10951 #include "confdefs.h"
10952 #include <syslog.h>
10953 _ACEOF
10954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10955   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10956   ac_status=$?
10957   egrep -v '^ *\+' conftest.er1 >conftest.err
10958   rm -f conftest.er1
10959   cat conftest.err >&5
10960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961   (exit $ac_status); } >/dev/null; then
10962   if test -s conftest.err; then
10963     ac_cpp_err=$ac_c_preproc_warn_flag
10964   else
10965     ac_cpp_err=
10966   fi
10967 else
10968   ac_cpp_err=yes
10969 fi
10970 if test -z "$ac_cpp_err"; then
10971   ac_header_preproc=yes
10972 else
10973   echo "$as_me: failed program was:" >&5
10974   cat conftest.$ac_ext >&5
10975   ac_header_preproc=no
10976 fi
10977 rm -f conftest.err conftest.$ac_ext
10978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10979 echo "${ECHO_T}$ac_header_preproc" >&6
10980
10981 # So?  What about this header?
10982 case $ac_header_compiler:$ac_header_preproc in
10983   yes:no )
10984     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
10985 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10986     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
10987 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
10988   no:yes )
10989     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
10990 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
10991     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
10992 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
10993     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
10994 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
10995 esac
10996 echo "$as_me:$LINENO: checking for syslog.h" >&5
10997 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
10998 if test "${ac_cv_header_syslog_h+set}" = set; then
10999   echo $ECHO_N "(cached) $ECHO_C" >&6
11000 else
11001   ac_cv_header_syslog_h=$ac_header_preproc
11002 fi
11003 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11004 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11005
11006 fi
11007 if test $ac_cv_header_syslog_h = yes; then
11008   cat >>confdefs.h <<\_ACEOF
11009 #define HAVE_SYSLOG 1
11010 _ACEOF
11011
11012 fi
11013
11014
11015 fi
11016
11017
11018 echo "$as_me:$LINENO: checking for optreset" >&5
11019 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
11020 if test "${pgac_cv_var_int_optreset+set}" = set; then
11021   echo $ECHO_N "(cached) $ECHO_C" >&6
11022 else
11023   cat >conftest.$ac_ext <<_ACEOF
11024 #line $LINENO "configure"
11025 #include "confdefs.h"
11026 #include <unistd.h>
11027 #ifdef F77_DUMMY_MAIN
11028 #  ifdef __cplusplus
11029      extern "C"
11030 #  endif
11031    int F77_DUMMY_MAIN() { return 1; }
11032 #endif
11033 int
11034 main ()
11035 {
11036 extern int optreset; optreset = 1;
11037   ;
11038   return 0;
11039 }
11040 _ACEOF
11041 rm -f conftest.$ac_objext conftest$ac_exeext
11042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11043   (eval $ac_link) 2>&5
11044   ac_status=$?
11045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046   (exit $ac_status); } &&
11047          { ac_try='test -s conftest$ac_exeext'
11048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049   (eval $ac_try) 2>&5
11050   ac_status=$?
11051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052   (exit $ac_status); }; }; then
11053   pgac_cv_var_int_optreset=yes
11054 else
11055   echo "$as_me: failed program was:" >&5
11056 cat conftest.$ac_ext >&5
11057 pgac_cv_var_int_optreset=no
11058 fi
11059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11060 fi
11061 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
11062 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
11063 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
11064
11065 cat >>confdefs.h <<\_ACEOF
11066 #define HAVE_INT_OPTRESET 1
11067 _ACEOF
11068
11069 fi
11070
11071
11072
11073 for ac_func in strtoll strtoq
11074 do
11075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11076 echo "$as_me:$LINENO: checking for $ac_func" >&5
11077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11078 if eval "test \"\${$as_ac_var+set}\" = set"; then
11079   echo $ECHO_N "(cached) $ECHO_C" >&6
11080 else
11081   cat >conftest.$ac_ext <<_ACEOF
11082 #line $LINENO "configure"
11083 #include "confdefs.h"
11084 /* System header to define __stub macros and hopefully few prototypes,
11085     which can conflict with char $ac_func (); below.  */
11086 #include <assert.h>
11087 /* Override any gcc2 internal prototype to avoid an error.  */
11088 #ifdef __cplusplus
11089 extern "C"
11090 #endif
11091 /* We use char because int might match the return type of a gcc2
11092    builtin and then its argument prototype would still apply.  */
11093 char $ac_func ();
11094 char (*f) ();
11095
11096 #ifdef F77_DUMMY_MAIN
11097 #  ifdef __cplusplus
11098      extern "C"
11099 #  endif
11100    int F77_DUMMY_MAIN() { return 1; }
11101 #endif
11102 int
11103 main ()
11104 {
11105 /* The GNU C library defines this for functions which it implements
11106     to always fail with ENOSYS.  Some functions are actually named
11107     something starting with __ and the normal name is an alias.  */
11108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11109 choke me
11110 #else
11111 f = $ac_func;
11112 #endif
11113
11114   ;
11115   return 0;
11116 }
11117 _ACEOF
11118 rm -f conftest.$ac_objext conftest$ac_exeext
11119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11120   (eval $ac_link) 2>&5
11121   ac_status=$?
11122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123   (exit $ac_status); } &&
11124          { ac_try='test -s conftest$ac_exeext'
11125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11126   (eval $ac_try) 2>&5
11127   ac_status=$?
11128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129   (exit $ac_status); }; }; then
11130   eval "$as_ac_var=yes"
11131 else
11132   echo "$as_me: failed program was:" >&5
11133 cat conftest.$ac_ext >&5
11134 eval "$as_ac_var=no"
11135 fi
11136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11137 fi
11138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11140 if test `eval echo '${'$as_ac_var'}'` = yes; then
11141   cat >>confdefs.h <<_ACEOF
11142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11143 _ACEOF
11144  break
11145 fi
11146 done
11147
11148
11149
11150 for ac_func in strtoull strtouq
11151 do
11152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11153 echo "$as_me:$LINENO: checking for $ac_func" >&5
11154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11155 if eval "test \"\${$as_ac_var+set}\" = set"; then
11156   echo $ECHO_N "(cached) $ECHO_C" >&6
11157 else
11158   cat >conftest.$ac_ext <<_ACEOF
11159 #line $LINENO "configure"
11160 #include "confdefs.h"
11161 /* System header to define __stub macros and hopefully few prototypes,
11162     which can conflict with char $ac_func (); below.  */
11163 #include <assert.h>
11164 /* Override any gcc2 internal prototype to avoid an error.  */
11165 #ifdef __cplusplus
11166 extern "C"
11167 #endif
11168 /* We use char because int might match the return type of a gcc2
11169    builtin and then its argument prototype would still apply.  */
11170 char $ac_func ();
11171 char (*f) ();
11172
11173 #ifdef F77_DUMMY_MAIN
11174 #  ifdef __cplusplus
11175      extern "C"
11176 #  endif
11177    int F77_DUMMY_MAIN() { return 1; }
11178 #endif
11179 int
11180 main ()
11181 {
11182 /* The GNU C library defines this for functions which it implements
11183     to always fail with ENOSYS.  Some functions are actually named
11184     something starting with __ and the normal name is an alias.  */
11185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11186 choke me
11187 #else
11188 f = $ac_func;
11189 #endif
11190
11191   ;
11192   return 0;
11193 }
11194 _ACEOF
11195 rm -f conftest.$ac_objext conftest$ac_exeext
11196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11197   (eval $ac_link) 2>&5
11198   ac_status=$?
11199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200   (exit $ac_status); } &&
11201          { ac_try='test -s conftest$ac_exeext'
11202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203   (eval $ac_try) 2>&5
11204   ac_status=$?
11205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206   (exit $ac_status); }; }; then
11207   eval "$as_ac_var=yes"
11208 else
11209   echo "$as_me: failed program was:" >&5
11210 cat conftest.$ac_ext >&5
11211 eval "$as_ac_var=no"
11212 fi
11213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11214 fi
11215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11216 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11217 if test `eval echo '${'$as_ac_var'}'` = yes; then
11218   cat >>confdefs.h <<_ACEOF
11219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11220 _ACEOF
11221  break
11222 fi
11223 done
11224
11225
11226 # Check for one of atexit() or on_exit()
11227
11228 for ac_func in atexit
11229 do
11230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11231 echo "$as_me:$LINENO: checking for $ac_func" >&5
11232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11233 if eval "test \"\${$as_ac_var+set}\" = set"; then
11234   echo $ECHO_N "(cached) $ECHO_C" >&6
11235 else
11236   cat >conftest.$ac_ext <<_ACEOF
11237 #line $LINENO "configure"
11238 #include "confdefs.h"
11239 /* System header to define __stub macros and hopefully few prototypes,
11240     which can conflict with char $ac_func (); below.  */
11241 #include <assert.h>
11242 /* Override any gcc2 internal prototype to avoid an error.  */
11243 #ifdef __cplusplus
11244 extern "C"
11245 #endif
11246 /* We use char because int might match the return type of a gcc2
11247    builtin and then its argument prototype would still apply.  */
11248 char $ac_func ();
11249 char (*f) ();
11250
11251 #ifdef F77_DUMMY_MAIN
11252 #  ifdef __cplusplus
11253      extern "C"
11254 #  endif
11255    int F77_DUMMY_MAIN() { return 1; }
11256 #endif
11257 int
11258 main ()
11259 {
11260 /* The GNU C library defines this for functions which it implements
11261     to always fail with ENOSYS.  Some functions are actually named
11262     something starting with __ and the normal name is an alias.  */
11263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11264 choke me
11265 #else
11266 f = $ac_func;
11267 #endif
11268
11269   ;
11270   return 0;
11271 }
11272 _ACEOF
11273 rm -f conftest.$ac_objext conftest$ac_exeext
11274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11275   (eval $ac_link) 2>&5
11276   ac_status=$?
11277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278   (exit $ac_status); } &&
11279          { ac_try='test -s conftest$ac_exeext'
11280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11281   (eval $ac_try) 2>&5
11282   ac_status=$?
11283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284   (exit $ac_status); }; }; then
11285   eval "$as_ac_var=yes"
11286 else
11287   echo "$as_me: failed program was:" >&5
11288 cat conftest.$ac_ext >&5
11289 eval "$as_ac_var=no"
11290 fi
11291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11292 fi
11293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11295 if test `eval echo '${'$as_ac_var'}'` = yes; then
11296   cat >>confdefs.h <<_ACEOF
11297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11298 _ACEOF
11299
11300 else
11301
11302 for ac_func in on_exit
11303 do
11304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11305 echo "$as_me:$LINENO: checking for $ac_func" >&5
11306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11307 if eval "test \"\${$as_ac_var+set}\" = set"; then
11308   echo $ECHO_N "(cached) $ECHO_C" >&6
11309 else
11310   cat >conftest.$ac_ext <<_ACEOF
11311 #line $LINENO "configure"
11312 #include "confdefs.h"
11313 /* System header to define __stub macros and hopefully few prototypes,
11314     which can conflict with char $ac_func (); below.  */
11315 #include <assert.h>
11316 /* Override any gcc2 internal prototype to avoid an error.  */
11317 #ifdef __cplusplus
11318 extern "C"
11319 #endif
11320 /* We use char because int might match the return type of a gcc2
11321    builtin and then its argument prototype would still apply.  */
11322 char $ac_func ();
11323 char (*f) ();
11324
11325 #ifdef F77_DUMMY_MAIN
11326 #  ifdef __cplusplus
11327      extern "C"
11328 #  endif
11329    int F77_DUMMY_MAIN() { return 1; }
11330 #endif
11331 int
11332 main ()
11333 {
11334 /* The GNU C library defines this for functions which it implements
11335     to always fail with ENOSYS.  Some functions are actually named
11336     something starting with __ and the normal name is an alias.  */
11337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11338 choke me
11339 #else
11340 f = $ac_func;
11341 #endif
11342
11343   ;
11344   return 0;
11345 }
11346 _ACEOF
11347 rm -f conftest.$ac_objext conftest$ac_exeext
11348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11349   (eval $ac_link) 2>&5
11350   ac_status=$?
11351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352   (exit $ac_status); } &&
11353          { ac_try='test -s conftest$ac_exeext'
11354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11355   (eval $ac_try) 2>&5
11356   ac_status=$?
11357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358   (exit $ac_status); }; }; then
11359   eval "$as_ac_var=yes"
11360 else
11361   echo "$as_me: failed program was:" >&5
11362 cat conftest.$ac_ext >&5
11363 eval "$as_ac_var=no"
11364 fi
11365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11366 fi
11367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11369 if test `eval echo '${'$as_ac_var'}'` = yes; then
11370   cat >>confdefs.h <<_ACEOF
11371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11372 _ACEOF
11373
11374 else
11375   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
11376 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
11377    { (exit 1); exit 1; }; }
11378 fi
11379 done
11380
11381 fi
11382 done
11383
11384
11385 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11386 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
11387 if test "${ac_cv_sys_largefile_source+set}" = set; then
11388   echo $ECHO_N "(cached) $ECHO_C" >&6
11389 else
11390   while :; do
11391   ac_cv_sys_largefile_source=no
11392   cat >conftest.$ac_ext <<_ACEOF
11393 #line $LINENO "configure"
11394 #include "confdefs.h"
11395 #include <stdio.h>
11396 #ifdef F77_DUMMY_MAIN
11397 #  ifdef __cplusplus
11398      extern "C"
11399 #  endif
11400    int F77_DUMMY_MAIN() { return 1; }
11401 #endif
11402 int
11403 main ()
11404 {
11405 return !fseeko;
11406   ;
11407   return 0;
11408 }
11409 _ACEOF
11410 rm -f conftest.$ac_objext
11411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11412   (eval $ac_compile) 2>&5
11413   ac_status=$?
11414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415   (exit $ac_status); } &&
11416          { ac_try='test -s conftest.$ac_objext'
11417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418   (eval $ac_try) 2>&5
11419   ac_status=$?
11420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421   (exit $ac_status); }; }; then
11422   break
11423 else
11424   echo "$as_me: failed program was:" >&5
11425 cat conftest.$ac_ext >&5
11426 fi
11427 rm -f conftest.$ac_objext conftest.$ac_ext
11428   cat >conftest.$ac_ext <<_ACEOF
11429 #line $LINENO "configure"
11430 #include "confdefs.h"
11431 #define _LARGEFILE_SOURCE 1
11432 #include <stdio.h>
11433 #ifdef F77_DUMMY_MAIN
11434 #  ifdef __cplusplus
11435      extern "C"
11436 #  endif
11437    int F77_DUMMY_MAIN() { return 1; }
11438 #endif
11439 int
11440 main ()
11441 {
11442 return !fseeko;
11443   ;
11444   return 0;
11445 }
11446 _ACEOF
11447 rm -f conftest.$ac_objext
11448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11449   (eval $ac_compile) 2>&5
11450   ac_status=$?
11451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452   (exit $ac_status); } &&
11453          { ac_try='test -s conftest.$ac_objext'
11454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11455   (eval $ac_try) 2>&5
11456   ac_status=$?
11457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458   (exit $ac_status); }; }; then
11459   ac_cv_sys_largefile_source=1; break
11460 else
11461   echo "$as_me: failed program was:" >&5
11462 cat conftest.$ac_ext >&5
11463 fi
11464 rm -f conftest.$ac_objext conftest.$ac_ext
11465   break
11466 done
11467 fi
11468 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11469 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
11470 if test "$ac_cv_sys_largefile_source" != no; then
11471
11472 cat >>confdefs.h <<_ACEOF
11473 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11474 _ACEOF
11475
11476 fi
11477 rm -f conftest*
11478
11479 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11480 # in glibc 2.1.3, but that breaks too many other things.
11481 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11482 echo "$as_me:$LINENO: checking for fseeko" >&5
11483 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
11484 if test "${ac_cv_func_fseeko+set}" = set; then
11485   echo $ECHO_N "(cached) $ECHO_C" >&6
11486 else
11487   cat >conftest.$ac_ext <<_ACEOF
11488 #line $LINENO "configure"
11489 #include "confdefs.h"
11490 #include <stdio.h>
11491 #ifdef F77_DUMMY_MAIN
11492 #  ifdef __cplusplus
11493      extern "C"
11494 #  endif
11495    int F77_DUMMY_MAIN() { return 1; }
11496 #endif
11497 int
11498 main ()
11499 {
11500 return fseeko && fseeko (stdin, 0, 0);
11501   ;
11502   return 0;
11503 }
11504 _ACEOF
11505 rm -f conftest.$ac_objext conftest$ac_exeext
11506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11507   (eval $ac_link) 2>&5
11508   ac_status=$?
11509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510   (exit $ac_status); } &&
11511          { ac_try='test -s conftest$ac_exeext'
11512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513   (eval $ac_try) 2>&5
11514   ac_status=$?
11515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516   (exit $ac_status); }; }; then
11517   ac_cv_func_fseeko=yes
11518 else
11519   echo "$as_me: failed program was:" >&5
11520 cat conftest.$ac_ext >&5
11521 ac_cv_func_fseeko=no
11522 fi
11523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11524 fi
11525 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
11526 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
11527 if test $ac_cv_func_fseeko = yes; then
11528
11529 cat >>confdefs.h <<\_ACEOF
11530 #define HAVE_FSEEKO 1
11531 _ACEOF
11532
11533 fi
11534
11535
11536
11537 # This test makes sure that run tests work at all.  Sometimes a shared
11538 # library is found by the linker, but the runtime linker can't find it.
11539 # This check should come after all modifications of compiler or linker
11540 # variables, and before any other run tests.
11541 echo "$as_me:$LINENO: checking test program" >&5
11542 echo $ECHO_N "checking test program... $ECHO_C" >&6
11543 if test "$cross_compiling" = yes; then
11544   echo "$as_me:$LINENO: result: cross-compiling" >&5
11545 echo "${ECHO_T}cross-compiling" >&6
11546 else
11547   cat >conftest.$ac_ext <<_ACEOF
11548 #line $LINENO "configure"
11549 #include "confdefs.h"
11550 int main() { return 0; }
11551 _ACEOF
11552 rm -f conftest$ac_exeext
11553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11554   (eval $ac_link) 2>&5
11555   ac_status=$?
11556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11559   (eval $ac_try) 2>&5
11560   ac_status=$?
11561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562   (exit $ac_status); }; }; then
11563   echo "$as_me:$LINENO: result: ok" >&5
11564 echo "${ECHO_T}ok" >&6
11565 else
11566   echo "$as_me: program exited with status $ac_status" >&5
11567 echo "$as_me: failed program was:" >&5
11568 cat conftest.$ac_ext >&5
11569 ( exit $ac_status )
11570 echo "$as_me:$LINENO: result: failed" >&5
11571 echo "${ECHO_T}failed" >&6
11572 { { echo "$as_me:$LINENO: error:
11573 *** Could not execute a simple test program.  This may be a problem
11574 *** related to locating shared libraries.  Check the file 'config.log'
11575 *** for the exact reason." >&5
11576 echo "$as_me: error:
11577 *** Could not execute a simple test program.  This may be a problem
11578 *** related to locating shared libraries.  Check the file 'config.log'
11579 *** for the exact reason." >&2;}
11580    { (exit 1); exit 1; }; }
11581 fi
11582 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11583 fi
11584
11585
11586
11587 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
11588 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
11589 if test "${pgac_cv_type_long_int_64+set}" = set; then
11590   echo $ECHO_N "(cached) $ECHO_C" >&6
11591 else
11592   if test "$cross_compiling" = yes; then
11593   pgac_cv_type_long_int_64=no
11594 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
11595 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
11596 else
11597   cat >conftest.$ac_ext <<_ACEOF
11598 #line $LINENO "configure"
11599 #include "confdefs.h"
11600 typedef long int int64;
11601
11602 /*
11603  * These are globals to discourage the compiler from folding all the
11604  * arithmetic tests down to compile-time constants.
11605  */
11606 int64 a = 20000001;
11607 int64 b = 40000005;
11608
11609 int does_int64_work()
11610 {
11611   int64 c,d;
11612
11613   if (sizeof(int64) != 8)
11614     return 0;                   /* definitely not the right size */
11615
11616   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
11617   c = a * b;
11618   d = (c + b) / b;
11619   if (d != a+1)
11620     return 0;
11621   return 1;
11622 }
11623 main() {
11624   exit(! does_int64_work());
11625 }
11626 _ACEOF
11627 rm -f conftest$ac_exeext
11628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11629   (eval $ac_link) 2>&5
11630   ac_status=$?
11631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634   (eval $ac_try) 2>&5
11635   ac_status=$?
11636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637   (exit $ac_status); }; }; then
11638   pgac_cv_type_long_int_64=yes
11639 else
11640   echo "$as_me: program exited with status $ac_status" >&5
11641 echo "$as_me: failed program was:" >&5
11642 cat conftest.$ac_ext >&5
11643 ( exit $ac_status )
11644 pgac_cv_type_long_int_64=no
11645 fi
11646 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11647 fi
11648 fi
11649 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
11650 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
11651
11652 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
11653 if test x"$pgac_cv_type_long_int_64" = xyes ; then
11654
11655 cat >>confdefs.h <<\_ACEOF
11656 #define HAVE_LONG_INT_64
11657 _ACEOF
11658
11659 fi
11660
11661
11662 if test x"$HAVE_LONG_INT_64" = x"no" ; then
11663   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
11664 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
11665 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
11666   echo $ECHO_N "(cached) $ECHO_C" >&6
11667 else
11668   if test "$cross_compiling" = yes; then
11669   pgac_cv_type_long_long_int_64=no
11670 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
11671 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
11672 else
11673   cat >conftest.$ac_ext <<_ACEOF
11674 #line $LINENO "configure"
11675 #include "confdefs.h"
11676 typedef long long int int64;
11677
11678 /*
11679  * These are globals to discourage the compiler from folding all the
11680  * arithmetic tests down to compile-time constants.
11681  */
11682 int64 a = 20000001;
11683 int64 b = 40000005;
11684
11685 int does_int64_work()
11686 {
11687   int64 c,d;
11688
11689   if (sizeof(int64) != 8)
11690     return 0;                   /* definitely not the right size */
11691
11692   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
11693   c = a * b;
11694   d = (c + b) / b;
11695   if (d != a+1)
11696     return 0;
11697   return 1;
11698 }
11699 main() {
11700   exit(! does_int64_work());
11701 }
11702 _ACEOF
11703 rm -f conftest$ac_exeext
11704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11705   (eval $ac_link) 2>&5
11706   ac_status=$?
11707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710   (eval $ac_try) 2>&5
11711   ac_status=$?
11712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713   (exit $ac_status); }; }; then
11714   pgac_cv_type_long_long_int_64=yes
11715 else
11716   echo "$as_me: program exited with status $ac_status" >&5
11717 echo "$as_me: failed program was:" >&5
11718 cat conftest.$ac_ext >&5
11719 ( exit $ac_status )
11720 pgac_cv_type_long_long_int_64=no
11721 fi
11722 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11723 fi
11724 fi
11725 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
11726 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
11727
11728 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
11729 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
11730
11731 cat >>confdefs.h <<\_ACEOF
11732 #define HAVE_LONG_LONG_INT_64
11733 _ACEOF
11734
11735 fi
11736
11737 fi
11738
11739
11740
11741 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
11742   cat >conftest.$ac_ext <<_ACEOF
11743 #line $LINENO "configure"
11744 #include "confdefs.h"
11745
11746 #define INT64CONST(x)  x##LL
11747 long long int foo = INT64CONST(0x1234567890123456);
11748
11749 #ifdef F77_DUMMY_MAIN
11750 #  ifdef __cplusplus
11751      extern "C"
11752 #  endif
11753    int F77_DUMMY_MAIN() { return 1; }
11754 #endif
11755 int
11756 main ()
11757 {
11758
11759   ;
11760   return 0;
11761 }
11762 _ACEOF
11763 rm -f conftest.$ac_objext
11764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11765   (eval $ac_compile) 2>&5
11766   ac_status=$?
11767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768   (exit $ac_status); } &&
11769          { ac_try='test -s conftest.$ac_objext'
11770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771   (eval $ac_try) 2>&5
11772   ac_status=$?
11773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774   (exit $ac_status); }; }; then
11775
11776 cat >>confdefs.h <<\_ACEOF
11777 #define HAVE_LL_CONSTANTS 1
11778 _ACEOF
11779
11780 else
11781   echo "$as_me: failed program was:" >&5
11782 cat conftest.$ac_ext >&5
11783 fi
11784 rm -f conftest.$ac_objext conftest.$ac_ext
11785 fi
11786
11787
11788
11789 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
11790   if test $pgac_need_repl_snprintf = no; then
11791     echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
11792 echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
11793     if test "$cross_compiling" = yes; then
11794    echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
11795 echo "${ECHO_T}cannot test (not on host machine)" >&6
11796         # Force usage of our own snprintf, since we cannot test foreign snprintf
11797         pgac_need_repl_snprintf=yes
11798         INT64_FORMAT='"%lld"'
11799
11800 else
11801   cat >conftest.$ac_ext <<_ACEOF
11802 #line $LINENO "configure"
11803 #include "confdefs.h"
11804 #include <stdio.h>
11805 typedef long long int int64;
11806 #define INT64_FORMAT "%lld"
11807
11808 int64 a = 20000001;
11809 int64 b = 40000005;
11810
11811 int does_int64_snprintf_work()
11812 {
11813   int64 c;
11814   char buf[100];
11815
11816   if (sizeof(int64) != 8)
11817     return 0;                   /* doesn't look like the right size */
11818
11819   c = a * b;
11820   snprintf(buf, 100, INT64_FORMAT, c);
11821   if (strcmp(buf, "800000140000005") != 0)
11822     return 0;                   /* either multiply or snprintf is busted */
11823   return 1;
11824 }
11825 main() {
11826   exit(! does_int64_snprintf_work());
11827 }
11828 _ACEOF
11829 rm -f conftest$ac_exeext
11830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11831   (eval $ac_link) 2>&5
11832   ac_status=$?
11833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836   (eval $ac_try) 2>&5
11837   ac_status=$?
11838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839   (exit $ac_status); }; }; then
11840    echo "$as_me:$LINENO: result: yes" >&5
11841 echo "${ECHO_T}yes" >&6
11842           INT64_FORMAT='"%lld"'
11843
11844 else
11845   echo "$as_me: program exited with status $ac_status" >&5
11846 echo "$as_me: failed program was:" >&5
11847 cat conftest.$ac_ext >&5
11848 ( exit $ac_status )
11849  echo "$as_me:$LINENO: result: no" >&5
11850 echo "${ECHO_T}no" >&6
11851     echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
11852 echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
11853     if test "$cross_compiling" = yes; then
11854    echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
11855 echo "${ECHO_T}cannot test (not on host machine)" >&6
11856         # Force usage of our own snprintf, since we cannot test foreign snprintf
11857         pgac_need_repl_snprintf=yes
11858         INT64_FORMAT='"%lld"'
11859
11860 else
11861   cat >conftest.$ac_ext <<_ACEOF
11862 #line $LINENO "configure"
11863 #include "confdefs.h"
11864 #include <stdio.h>
11865 typedef long long int int64;
11866 #define INT64_FORMAT "%qd"
11867
11868 int64 a = 20000001;
11869 int64 b = 40000005;
11870
11871 int does_int64_snprintf_work()
11872 {
11873   int64 c;
11874   char buf[100];
11875
11876   if (sizeof(int64) != 8)
11877     return 0;     /* doesn't look like the right size */
11878
11879   c = a * b;
11880   snprintf(buf, 100, INT64_FORMAT, c);
11881   if (strcmp(buf, "800000140000005") != 0)
11882     return 0;     /* either multiply or snprintf is busted */
11883   return 1;
11884 }
11885 main() {
11886   exit(! does_int64_snprintf_work());
11887 }
11888 _ACEOF
11889 rm -f conftest$ac_exeext
11890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11891   (eval $ac_link) 2>&5
11892   ac_status=$?
11893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896   (eval $ac_try) 2>&5
11897   ac_status=$?
11898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899   (exit $ac_status); }; }; then
11900    echo "$as_me:$LINENO: result: yes" >&5
11901 echo "${ECHO_T}yes" >&6
11902     INT64_FORMAT='"%qd"'
11903
11904 else
11905   echo "$as_me: program exited with status $ac_status" >&5
11906 echo "$as_me: failed program was:" >&5
11907 cat conftest.$ac_ext >&5
11908 ( exit $ac_status )
11909  echo "$as_me:$LINENO: result: no" >&5
11910 echo "${ECHO_T}no" >&6
11911         # Force usage of our own snprintf, since system snprintf is broken
11912         pgac_need_repl_snprintf=yes
11913         INT64_FORMAT='"%lld"'
11914
11915 fi
11916 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11917 fi
11918 fi
11919 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11920 fi
11921   else
11922     # here if we previously decided we needed to use our own snprintf
11923     INT64_FORMAT='"%lld"'
11924   fi
11925 else
11926   # Here if we are not using 'long long int' at all
11927   INT64_FORMAT='"%ld"'
11928 fi
11929
11930
11931 cat >>confdefs.h <<_ACEOF
11932 #define INT64_FORMAT $INT64_FORMAT
11933 _ACEOF
11934
11935
11936 if test $pgac_need_repl_snprintf = yes; then
11937   LIBOBJS="$LIBOBJS snprintf.$ac_objext"
11938 fi
11939
11940
11941 echo "$as_me:$LINENO: checking for unsigned long" >&5
11942 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
11943 if test "${ac_cv_type_unsigned_long+set}" = set; then
11944   echo $ECHO_N "(cached) $ECHO_C" >&6
11945 else
11946   cat >conftest.$ac_ext <<_ACEOF
11947 #line $LINENO "configure"
11948 #include "confdefs.h"
11949 $ac_includes_default
11950 #ifdef F77_DUMMY_MAIN
11951 #  ifdef __cplusplus
11952      extern "C"
11953 #  endif
11954    int F77_DUMMY_MAIN() { return 1; }
11955 #endif
11956 int
11957 main ()
11958 {
11959 if ((unsigned long *) 0)
11960   return 0;
11961 if (sizeof (unsigned long))
11962   return 0;
11963   ;
11964   return 0;
11965 }
11966 _ACEOF
11967 rm -f conftest.$ac_objext
11968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11969   (eval $ac_compile) 2>&5
11970   ac_status=$?
11971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972   (exit $ac_status); } &&
11973          { ac_try='test -s conftest.$ac_objext'
11974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975   (eval $ac_try) 2>&5
11976   ac_status=$?
11977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978   (exit $ac_status); }; }; then
11979   ac_cv_type_unsigned_long=yes
11980 else
11981   echo "$as_me: failed program was:" >&5
11982 cat conftest.$ac_ext >&5
11983 ac_cv_type_unsigned_long=no
11984 fi
11985 rm -f conftest.$ac_objext conftest.$ac_ext
11986 fi
11987 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
11988 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
11989
11990 echo "$as_me:$LINENO: checking size of unsigned long" >&5
11991 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
11992 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
11993   echo $ECHO_N "(cached) $ECHO_C" >&6
11994 else
11995   if test "$ac_cv_type_unsigned_long" = yes; then
11996   # The cast to unsigned long works around a bug in the HP C Compiler
11997   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11998   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11999   # This bug is HP SR number 8606223364.
12000   if test "$cross_compiling" = yes; then
12001   # Depending upon the size, compute the lo and hi bounds.
12002 cat >conftest.$ac_ext <<_ACEOF
12003 #line $LINENO "configure"
12004 #include "confdefs.h"
12005 $ac_includes_default
12006 #ifdef F77_DUMMY_MAIN
12007 #  ifdef __cplusplus
12008      extern "C"
12009 #  endif
12010    int F77_DUMMY_MAIN() { return 1; }
12011 #endif
12012 int
12013 main ()
12014 {
12015 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
12016 test_array [0] = 0
12017
12018   ;
12019   return 0;
12020 }
12021 _ACEOF
12022 rm -f conftest.$ac_objext
12023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12024   (eval $ac_compile) 2>&5
12025   ac_status=$?
12026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027   (exit $ac_status); } &&
12028          { ac_try='test -s conftest.$ac_objext'
12029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030   (eval $ac_try) 2>&5
12031   ac_status=$?
12032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033   (exit $ac_status); }; }; then
12034   ac_lo=0 ac_mid=0
12035   while :; do
12036     cat >conftest.$ac_ext <<_ACEOF
12037 #line $LINENO "configure"
12038 #include "confdefs.h"
12039 $ac_includes_default
12040 #ifdef F77_DUMMY_MAIN
12041 #  ifdef __cplusplus
12042      extern "C"
12043 #  endif
12044    int F77_DUMMY_MAIN() { return 1; }
12045 #endif
12046 int
12047 main ()
12048 {
12049 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12050 test_array [0] = 0
12051
12052   ;
12053   return 0;
12054 }
12055 _ACEOF
12056 rm -f conftest.$ac_objext
12057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12058   (eval $ac_compile) 2>&5
12059   ac_status=$?
12060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061   (exit $ac_status); } &&
12062          { ac_try='test -s conftest.$ac_objext'
12063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12064   (eval $ac_try) 2>&5
12065   ac_status=$?
12066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067   (exit $ac_status); }; }; then
12068   ac_hi=$ac_mid; break
12069 else
12070   echo "$as_me: failed program was:" >&5
12071 cat conftest.$ac_ext >&5
12072 ac_lo=`expr $ac_mid + 1`
12073                     if test $ac_lo -le $ac_mid; then
12074                       ac_lo= ac_hi=
12075                       break
12076                     fi
12077                     ac_mid=`expr 2 '*' $ac_mid + 1`
12078 fi
12079 rm -f conftest.$ac_objext conftest.$ac_ext
12080   done
12081 else
12082   echo "$as_me: failed program was:" >&5
12083 cat conftest.$ac_ext >&5
12084 cat >conftest.$ac_ext <<_ACEOF
12085 #line $LINENO "configure"
12086 #include "confdefs.h"
12087 $ac_includes_default
12088 #ifdef F77_DUMMY_MAIN
12089 #  ifdef __cplusplus
12090      extern "C"
12091 #  endif
12092    int F77_DUMMY_MAIN() { return 1; }
12093 #endif
12094 int
12095 main ()
12096 {
12097 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
12098 test_array [0] = 0
12099
12100   ;
12101   return 0;
12102 }
12103 _ACEOF
12104 rm -f conftest.$ac_objext
12105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12106   (eval $ac_compile) 2>&5
12107   ac_status=$?
12108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109   (exit $ac_status); } &&
12110          { ac_try='test -s conftest.$ac_objext'
12111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112   (eval $ac_try) 2>&5
12113   ac_status=$?
12114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115   (exit $ac_status); }; }; then
12116   ac_hi=-1 ac_mid=-1
12117   while :; do
12118     cat >conftest.$ac_ext <<_ACEOF
12119 #line $LINENO "configure"
12120 #include "confdefs.h"
12121 $ac_includes_default
12122 #ifdef F77_DUMMY_MAIN
12123 #  ifdef __cplusplus
12124      extern "C"
12125 #  endif
12126    int F77_DUMMY_MAIN() { return 1; }
12127 #endif
12128 int
12129 main ()
12130 {
12131 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
12132 test_array [0] = 0
12133
12134   ;
12135   return 0;
12136 }
12137 _ACEOF
12138 rm -f conftest.$ac_objext
12139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12140   (eval $ac_compile) 2>&5
12141   ac_status=$?
12142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143   (exit $ac_status); } &&
12144          { ac_try='test -s conftest.$ac_objext'
12145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146   (eval $ac_try) 2>&5
12147   ac_status=$?
12148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149   (exit $ac_status); }; }; then
12150   ac_lo=$ac_mid; break
12151 else
12152   echo "$as_me: failed program was:" >&5
12153 cat conftest.$ac_ext >&5
12154 ac_hi=`expr '(' $ac_mid ')' - 1`
12155                        if test $ac_mid -le $ac_hi; then
12156                          ac_lo= ac_hi=
12157                          break
12158                        fi
12159                        ac_mid=`expr 2 '*' $ac_mid`
12160 fi
12161 rm -f conftest.$ac_objext conftest.$ac_ext
12162   done
12163 else
12164   echo "$as_me: failed program was:" >&5
12165 cat conftest.$ac_ext >&5
12166 ac_lo= ac_hi=
12167 fi
12168 rm -f conftest.$ac_objext conftest.$ac_ext
12169 fi
12170 rm -f conftest.$ac_objext conftest.$ac_ext
12171 # Binary search between lo and hi bounds.
12172 while test "x$ac_lo" != "x$ac_hi"; do
12173   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12174   cat >conftest.$ac_ext <<_ACEOF
12175 #line $LINENO "configure"
12176 #include "confdefs.h"
12177 $ac_includes_default
12178 #ifdef F77_DUMMY_MAIN
12179 #  ifdef __cplusplus
12180      extern "C"
12181 #  endif
12182    int F77_DUMMY_MAIN() { return 1; }
12183 #endif
12184 int
12185 main ()
12186 {
12187 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12188 test_array [0] = 0
12189
12190   ;
12191   return 0;
12192 }
12193 _ACEOF
12194 rm -f conftest.$ac_objext
12195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12196   (eval $ac_compile) 2>&5
12197   ac_status=$?
12198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199   (exit $ac_status); } &&
12200          { ac_try='test -s conftest.$ac_objext'
12201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202   (eval $ac_try) 2>&5
12203   ac_status=$?
12204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205   (exit $ac_status); }; }; then
12206   ac_hi=$ac_mid
12207 else
12208   echo "$as_me: failed program was:" >&5
12209 cat conftest.$ac_ext >&5
12210 ac_lo=`expr '(' $ac_mid ')' + 1`
12211 fi
12212 rm -f conftest.$ac_objext conftest.$ac_ext
12213 done
12214 case $ac_lo in
12215 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
12216 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12217 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12218    { (exit 1); exit 1; }; } ;;
12219 esac
12220 else
12221   if test "$cross_compiling" = yes; then
12222   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12223 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12224    { (exit 1); exit 1; }; }
12225 else
12226   cat >conftest.$ac_ext <<_ACEOF
12227 #line $LINENO "configure"
12228 #include "confdefs.h"
12229 $ac_includes_default
12230 long longval () { return (long) (sizeof (unsigned long)); }
12231 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
12232 #include <stdio.h>
12233 #include <stdlib.h>
12234 #ifdef F77_DUMMY_MAIN
12235 #  ifdef __cplusplus
12236      extern "C"
12237 #  endif
12238    int F77_DUMMY_MAIN() { return 1; }
12239 #endif
12240 int
12241 main ()
12242 {
12243
12244   FILE *f = fopen ("conftest.val", "w");
12245   if (! f)
12246     exit (1);
12247   if (((long) (sizeof (unsigned long))) < 0)
12248     {
12249       long i = longval ();
12250       if (i != ((long) (sizeof (unsigned long))))
12251         exit (1);
12252       fprintf (f, "%ld\n", i);
12253     }
12254   else
12255     {
12256       unsigned long i = ulongval ();
12257       if (i != ((long) (sizeof (unsigned long))))
12258         exit (1);
12259       fprintf (f, "%lu\n", i);
12260     }
12261   exit (ferror (f) || fclose (f) != 0);
12262
12263   ;
12264   return 0;
12265 }
12266 _ACEOF
12267 rm -f conftest$ac_exeext
12268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12269   (eval $ac_link) 2>&5
12270   ac_status=$?
12271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274   (eval $ac_try) 2>&5
12275   ac_status=$?
12276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277   (exit $ac_status); }; }; then
12278   ac_cv_sizeof_unsigned_long=`cat conftest.val`
12279 else
12280   echo "$as_me: program exited with status $ac_status" >&5
12281 echo "$as_me: failed program was:" >&5
12282 cat conftest.$ac_ext >&5
12283 ( exit $ac_status )
12284 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12285 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12286    { (exit 1); exit 1; }; }
12287 fi
12288 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12289 fi
12290 fi
12291 rm -f conftest.val
12292 else
12293   ac_cv_sizeof_unsigned_long=0
12294 fi
12295 fi
12296 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
12297 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
12298 cat >>confdefs.h <<_ACEOF
12299 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
12300 _ACEOF
12301
12302
12303
12304 cat >>confdefs.h <<_ACEOF
12305 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
12306 _ACEOF
12307
12308
12309 # Determine memory alignment requirements for the basic C data types.
12310
12311 echo "$as_me:$LINENO: checking for short" >&5
12312 echo $ECHO_N "checking for short... $ECHO_C" >&6
12313 if test "${ac_cv_type_short+set}" = set; then
12314   echo $ECHO_N "(cached) $ECHO_C" >&6
12315 else
12316   cat >conftest.$ac_ext <<_ACEOF
12317 #line $LINENO "configure"
12318 #include "confdefs.h"
12319 $ac_includes_default
12320 #ifdef F77_DUMMY_MAIN
12321 #  ifdef __cplusplus
12322      extern "C"
12323 #  endif
12324    int F77_DUMMY_MAIN() { return 1; }
12325 #endif
12326 int
12327 main ()
12328 {
12329 if ((short *) 0)
12330   return 0;
12331 if (sizeof (short))
12332   return 0;
12333   ;
12334   return 0;
12335 }
12336 _ACEOF
12337 rm -f conftest.$ac_objext
12338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12339   (eval $ac_compile) 2>&5
12340   ac_status=$?
12341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342   (exit $ac_status); } &&
12343          { ac_try='test -s conftest.$ac_objext'
12344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345   (eval $ac_try) 2>&5
12346   ac_status=$?
12347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348   (exit $ac_status); }; }; then
12349   ac_cv_type_short=yes
12350 else
12351   echo "$as_me: failed program was:" >&5
12352 cat conftest.$ac_ext >&5
12353 ac_cv_type_short=no
12354 fi
12355 rm -f conftest.$ac_objext conftest.$ac_ext
12356 fi
12357 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12358 echo "${ECHO_T}$ac_cv_type_short" >&6
12359
12360 echo "$as_me:$LINENO: checking alignment of short" >&5
12361 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
12362 if test "${pgac_cv_alignof_short+set}" = set; then
12363   echo $ECHO_N "(cached) $ECHO_C" >&6
12364 else
12365   if test "$ac_cv_type_short" = yes; then
12366   if test "$cross_compiling" = yes; then
12367   # Depending upon the size, compute the lo and hi bounds.
12368 cat >conftest.$ac_ext <<_ACEOF
12369 #line $LINENO "configure"
12370 #include "confdefs.h"
12371 $ac_includes_default
12372 struct { char filler; short field; } pgac_struct;
12373 #ifdef F77_DUMMY_MAIN
12374 #  ifdef __cplusplus
12375      extern "C"
12376 #  endif
12377    int F77_DUMMY_MAIN() { return 1; }
12378 #endif
12379 int
12380 main ()
12381 {
12382 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
12383 test_array [0] = 0
12384
12385   ;
12386   return 0;
12387 }
12388 _ACEOF
12389 rm -f conftest.$ac_objext
12390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12391   (eval $ac_compile) 2>&5
12392   ac_status=$?
12393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394   (exit $ac_status); } &&
12395          { ac_try='test -s conftest.$ac_objext'
12396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397   (eval $ac_try) 2>&5
12398   ac_status=$?
12399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400   (exit $ac_status); }; }; then
12401   ac_lo=0 ac_mid=0
12402   while :; do
12403     cat >conftest.$ac_ext <<_ACEOF
12404 #line $LINENO "configure"
12405 #include "confdefs.h"
12406 $ac_includes_default
12407 struct { char filler; short field; } pgac_struct;
12408 #ifdef F77_DUMMY_MAIN
12409 #  ifdef __cplusplus
12410      extern "C"
12411 #  endif
12412    int F77_DUMMY_MAIN() { return 1; }
12413 #endif
12414 int
12415 main ()
12416 {
12417 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12418 test_array [0] = 0
12419
12420   ;
12421   return 0;
12422 }
12423 _ACEOF
12424 rm -f conftest.$ac_objext
12425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12426   (eval $ac_compile) 2>&5
12427   ac_status=$?
12428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429   (exit $ac_status); } &&
12430          { ac_try='test -s conftest.$ac_objext'
12431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432   (eval $ac_try) 2>&5
12433   ac_status=$?
12434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435   (exit $ac_status); }; }; then
12436   ac_hi=$ac_mid; break
12437 else
12438   echo "$as_me: failed program was:" >&5
12439 cat conftest.$ac_ext >&5
12440 ac_lo=`expr $ac_mid + 1`
12441                     if test $ac_lo -le $ac_mid; then
12442                       ac_lo= ac_hi=
12443                       break
12444                     fi
12445                     ac_mid=`expr 2 '*' $ac_mid + 1`
12446 fi
12447 rm -f conftest.$ac_objext conftest.$ac_ext
12448   done
12449 else
12450   echo "$as_me: failed program was:" >&5
12451 cat conftest.$ac_ext >&5
12452 cat >conftest.$ac_ext <<_ACEOF
12453 #line $LINENO "configure"
12454 #include "confdefs.h"
12455 $ac_includes_default
12456 struct { char filler; short field; } pgac_struct;
12457 #ifdef F77_DUMMY_MAIN
12458 #  ifdef __cplusplus
12459      extern "C"
12460 #  endif
12461    int F77_DUMMY_MAIN() { return 1; }
12462 #endif
12463 int
12464 main ()
12465 {
12466 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
12467 test_array [0] = 0
12468
12469   ;
12470   return 0;
12471 }
12472 _ACEOF
12473 rm -f conftest.$ac_objext
12474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12475   (eval $ac_compile) 2>&5
12476   ac_status=$?
12477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478   (exit $ac_status); } &&
12479          { ac_try='test -s conftest.$ac_objext'
12480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481   (eval $ac_try) 2>&5
12482   ac_status=$?
12483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484   (exit $ac_status); }; }; then
12485   ac_hi=-1 ac_mid=-1
12486   while :; do
12487     cat >conftest.$ac_ext <<_ACEOF
12488 #line $LINENO "configure"
12489 #include "confdefs.h"
12490 $ac_includes_default
12491 struct { char filler; short field; } pgac_struct;
12492 #ifdef F77_DUMMY_MAIN
12493 #  ifdef __cplusplus
12494      extern "C"
12495 #  endif
12496    int F77_DUMMY_MAIN() { return 1; }
12497 #endif
12498 int
12499 main ()
12500 {
12501 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
12502 test_array [0] = 0
12503
12504   ;
12505   return 0;
12506 }
12507 _ACEOF
12508 rm -f conftest.$ac_objext
12509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12510   (eval $ac_compile) 2>&5
12511   ac_status=$?
12512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513   (exit $ac_status); } &&
12514          { ac_try='test -s conftest.$ac_objext'
12515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516   (eval $ac_try) 2>&5
12517   ac_status=$?
12518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519   (exit $ac_status); }; }; then
12520   ac_lo=$ac_mid; break
12521 else
12522   echo "$as_me: failed program was:" >&5
12523 cat conftest.$ac_ext >&5
12524 ac_hi=`expr '(' $ac_mid ')' - 1`
12525                        if test $ac_mid -le $ac_hi; then
12526                          ac_lo= ac_hi=
12527                          break
12528                        fi
12529                        ac_mid=`expr 2 '*' $ac_mid`
12530 fi
12531 rm -f conftest.$ac_objext conftest.$ac_ext
12532   done
12533 else
12534   echo "$as_me: failed program was:" >&5
12535 cat conftest.$ac_ext >&5
12536 ac_lo= ac_hi=
12537 fi
12538 rm -f conftest.$ac_objext conftest.$ac_ext
12539 fi
12540 rm -f conftest.$ac_objext conftest.$ac_ext
12541 # Binary search between lo and hi bounds.
12542 while test "x$ac_lo" != "x$ac_hi"; do
12543   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12544   cat >conftest.$ac_ext <<_ACEOF
12545 #line $LINENO "configure"
12546 #include "confdefs.h"
12547 $ac_includes_default
12548 struct { char filler; short field; } pgac_struct;
12549 #ifdef F77_DUMMY_MAIN
12550 #  ifdef __cplusplus
12551      extern "C"
12552 #  endif
12553    int F77_DUMMY_MAIN() { return 1; }
12554 #endif
12555 int
12556 main ()
12557 {
12558 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12559 test_array [0] = 0
12560
12561   ;
12562   return 0;
12563 }
12564 _ACEOF
12565 rm -f conftest.$ac_objext
12566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12567   (eval $ac_compile) 2>&5
12568   ac_status=$?
12569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570   (exit $ac_status); } &&
12571          { ac_try='test -s conftest.$ac_objext'
12572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573   (eval $ac_try) 2>&5
12574   ac_status=$?
12575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576   (exit $ac_status); }; }; then
12577   ac_hi=$ac_mid
12578 else
12579   echo "$as_me: failed program was:" >&5
12580 cat conftest.$ac_ext >&5
12581 ac_lo=`expr '(' $ac_mid ')' + 1`
12582 fi
12583 rm -f conftest.$ac_objext conftest.$ac_ext
12584 done
12585 case $ac_lo in
12586 ?*) pgac_cv_alignof_short=$ac_lo;;
12587 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
12588 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
12589    { (exit 1); exit 1; }; } ;;
12590 esac
12591 else
12592   if test "$cross_compiling" = yes; then
12593   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12594 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12595    { (exit 1); exit 1; }; }
12596 else
12597   cat >conftest.$ac_ext <<_ACEOF
12598 #line $LINENO "configure"
12599 #include "confdefs.h"
12600 $ac_includes_default
12601 struct { char filler; short field; } pgac_struct;
12602 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12603 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12604 #include <stdio.h>
12605 #include <stdlib.h>
12606 #ifdef F77_DUMMY_MAIN
12607 #  ifdef __cplusplus
12608      extern "C"
12609 #  endif
12610    int F77_DUMMY_MAIN() { return 1; }
12611 #endif
12612 int
12613 main ()
12614 {
12615
12616   FILE *f = fopen ("conftest.val", "w");
12617   if (! f)
12618     exit (1);
12619   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
12620     {
12621       long i = longval ();
12622       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12623         exit (1);
12624       fprintf (f, "%ld\n", i);
12625     }
12626   else
12627     {
12628       unsigned long i = ulongval ();
12629       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12630         exit (1);
12631       fprintf (f, "%lu\n", i);
12632     }
12633   exit (ferror (f) || fclose (f) != 0);
12634
12635   ;
12636   return 0;
12637 }
12638 _ACEOF
12639 rm -f conftest$ac_exeext
12640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12641   (eval $ac_link) 2>&5
12642   ac_status=$?
12643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12646   (eval $ac_try) 2>&5
12647   ac_status=$?
12648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649   (exit $ac_status); }; }; then
12650   pgac_cv_alignof_short=`cat conftest.val`
12651 else
12652   echo "$as_me: program exited with status $ac_status" >&5
12653 echo "$as_me: failed program was:" >&5
12654 cat conftest.$ac_ext >&5
12655 ( exit $ac_status )
12656 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
12657 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
12658    { (exit 1); exit 1; }; }
12659 fi
12660 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12661 fi
12662 fi
12663 rm -f conftest.val
12664 else
12665   pgac_cv_alignof_short=0
12666 fi
12667 fi
12668 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
12669 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
12670 cat >>confdefs.h <<_ACEOF
12671 #define ALIGNOF_SHORT $pgac_cv_alignof_short
12672 _ACEOF
12673
12674
12675 echo "$as_me:$LINENO: checking for int" >&5
12676 echo $ECHO_N "checking for int... $ECHO_C" >&6
12677 if test "${ac_cv_type_int+set}" = set; then
12678   echo $ECHO_N "(cached) $ECHO_C" >&6
12679 else
12680   cat >conftest.$ac_ext <<_ACEOF
12681 #line $LINENO "configure"
12682 #include "confdefs.h"
12683 $ac_includes_default
12684 #ifdef F77_DUMMY_MAIN
12685 #  ifdef __cplusplus
12686      extern "C"
12687 #  endif
12688    int F77_DUMMY_MAIN() { return 1; }
12689 #endif
12690 int
12691 main ()
12692 {
12693 if ((int *) 0)
12694   return 0;
12695 if (sizeof (int))
12696   return 0;
12697   ;
12698   return 0;
12699 }
12700 _ACEOF
12701 rm -f conftest.$ac_objext
12702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12703   (eval $ac_compile) 2>&5
12704   ac_status=$?
12705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706   (exit $ac_status); } &&
12707          { ac_try='test -s conftest.$ac_objext'
12708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709   (eval $ac_try) 2>&5
12710   ac_status=$?
12711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712   (exit $ac_status); }; }; then
12713   ac_cv_type_int=yes
12714 else
12715   echo "$as_me: failed program was:" >&5
12716 cat conftest.$ac_ext >&5
12717 ac_cv_type_int=no
12718 fi
12719 rm -f conftest.$ac_objext conftest.$ac_ext
12720 fi
12721 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12722 echo "${ECHO_T}$ac_cv_type_int" >&6
12723
12724 echo "$as_me:$LINENO: checking alignment of int" >&5
12725 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
12726 if test "${pgac_cv_alignof_int+set}" = set; then
12727   echo $ECHO_N "(cached) $ECHO_C" >&6
12728 else
12729   if test "$ac_cv_type_int" = yes; then
12730   if test "$cross_compiling" = yes; then
12731   # Depending upon the size, compute the lo and hi bounds.
12732 cat >conftest.$ac_ext <<_ACEOF
12733 #line $LINENO "configure"
12734 #include "confdefs.h"
12735 $ac_includes_default
12736 struct { char filler; int field; } pgac_struct;
12737 #ifdef F77_DUMMY_MAIN
12738 #  ifdef __cplusplus
12739      extern "C"
12740 #  endif
12741    int F77_DUMMY_MAIN() { return 1; }
12742 #endif
12743 int
12744 main ()
12745 {
12746 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
12747 test_array [0] = 0
12748
12749   ;
12750   return 0;
12751 }
12752 _ACEOF
12753 rm -f conftest.$ac_objext
12754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12755   (eval $ac_compile) 2>&5
12756   ac_status=$?
12757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758   (exit $ac_status); } &&
12759          { ac_try='test -s conftest.$ac_objext'
12760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761   (eval $ac_try) 2>&5
12762   ac_status=$?
12763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764   (exit $ac_status); }; }; then
12765   ac_lo=0 ac_mid=0
12766   while :; do
12767     cat >conftest.$ac_ext <<_ACEOF
12768 #line $LINENO "configure"
12769 #include "confdefs.h"
12770 $ac_includes_default
12771 struct { char filler; int field; } pgac_struct;
12772 #ifdef F77_DUMMY_MAIN
12773 #  ifdef __cplusplus
12774      extern "C"
12775 #  endif
12776    int F77_DUMMY_MAIN() { return 1; }
12777 #endif
12778 int
12779 main ()
12780 {
12781 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12782 test_array [0] = 0
12783
12784   ;
12785   return 0;
12786 }
12787 _ACEOF
12788 rm -f conftest.$ac_objext
12789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12790   (eval $ac_compile) 2>&5
12791   ac_status=$?
12792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793   (exit $ac_status); } &&
12794          { ac_try='test -s conftest.$ac_objext'
12795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796   (eval $ac_try) 2>&5
12797   ac_status=$?
12798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799   (exit $ac_status); }; }; then
12800   ac_hi=$ac_mid; break
12801 else
12802   echo "$as_me: failed program was:" >&5
12803 cat conftest.$ac_ext >&5
12804 ac_lo=`expr $ac_mid + 1`
12805                     if test $ac_lo -le $ac_mid; then
12806                       ac_lo= ac_hi=
12807                       break
12808                     fi
12809                     ac_mid=`expr 2 '*' $ac_mid + 1`
12810 fi
12811 rm -f conftest.$ac_objext conftest.$ac_ext
12812   done
12813 else
12814   echo "$as_me: failed program was:" >&5
12815 cat conftest.$ac_ext >&5
12816 cat >conftest.$ac_ext <<_ACEOF
12817 #line $LINENO "configure"
12818 #include "confdefs.h"
12819 $ac_includes_default
12820 struct { char filler; int field; } pgac_struct;
12821 #ifdef F77_DUMMY_MAIN
12822 #  ifdef __cplusplus
12823      extern "C"
12824 #  endif
12825    int F77_DUMMY_MAIN() { return 1; }
12826 #endif
12827 int
12828 main ()
12829 {
12830 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
12831 test_array [0] = 0
12832
12833   ;
12834   return 0;
12835 }
12836 _ACEOF
12837 rm -f conftest.$ac_objext
12838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12839   (eval $ac_compile) 2>&5
12840   ac_status=$?
12841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842   (exit $ac_status); } &&
12843          { ac_try='test -s conftest.$ac_objext'
12844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845   (eval $ac_try) 2>&5
12846   ac_status=$?
12847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848   (exit $ac_status); }; }; then
12849   ac_hi=-1 ac_mid=-1
12850   while :; do
12851     cat >conftest.$ac_ext <<_ACEOF
12852 #line $LINENO "configure"
12853 #include "confdefs.h"
12854 $ac_includes_default
12855 struct { char filler; int field; } pgac_struct;
12856 #ifdef F77_DUMMY_MAIN
12857 #  ifdef __cplusplus
12858      extern "C"
12859 #  endif
12860    int F77_DUMMY_MAIN() { return 1; }
12861 #endif
12862 int
12863 main ()
12864 {
12865 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
12866 test_array [0] = 0
12867
12868   ;
12869   return 0;
12870 }
12871 _ACEOF
12872 rm -f conftest.$ac_objext
12873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12874   (eval $ac_compile) 2>&5
12875   ac_status=$?
12876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877   (exit $ac_status); } &&
12878          { ac_try='test -s conftest.$ac_objext'
12879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12880   (eval $ac_try) 2>&5
12881   ac_status=$?
12882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883   (exit $ac_status); }; }; then
12884   ac_lo=$ac_mid; break
12885 else
12886   echo "$as_me: failed program was:" >&5
12887 cat conftest.$ac_ext >&5
12888 ac_hi=`expr '(' $ac_mid ')' - 1`
12889                        if test $ac_mid -le $ac_hi; then
12890                          ac_lo= ac_hi=
12891                          break
12892                        fi
12893                        ac_mid=`expr 2 '*' $ac_mid`
12894 fi
12895 rm -f conftest.$ac_objext conftest.$ac_ext
12896   done
12897 else
12898   echo "$as_me: failed program was:" >&5
12899 cat conftest.$ac_ext >&5
12900 ac_lo= ac_hi=
12901 fi
12902 rm -f conftest.$ac_objext conftest.$ac_ext
12903 fi
12904 rm -f conftest.$ac_objext conftest.$ac_ext
12905 # Binary search between lo and hi bounds.
12906 while test "x$ac_lo" != "x$ac_hi"; do
12907   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12908   cat >conftest.$ac_ext <<_ACEOF
12909 #line $LINENO "configure"
12910 #include "confdefs.h"
12911 $ac_includes_default
12912 struct { char filler; int field; } pgac_struct;
12913 #ifdef F77_DUMMY_MAIN
12914 #  ifdef __cplusplus
12915      extern "C"
12916 #  endif
12917    int F77_DUMMY_MAIN() { return 1; }
12918 #endif
12919 int
12920 main ()
12921 {
12922 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12923 test_array [0] = 0
12924
12925   ;
12926   return 0;
12927 }
12928 _ACEOF
12929 rm -f conftest.$ac_objext
12930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12931   (eval $ac_compile) 2>&5
12932   ac_status=$?
12933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934   (exit $ac_status); } &&
12935          { ac_try='test -s conftest.$ac_objext'
12936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12937   (eval $ac_try) 2>&5
12938   ac_status=$?
12939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940   (exit $ac_status); }; }; then
12941   ac_hi=$ac_mid
12942 else
12943   echo "$as_me: failed program was:" >&5
12944 cat conftest.$ac_ext >&5
12945 ac_lo=`expr '(' $ac_mid ')' + 1`
12946 fi
12947 rm -f conftest.$ac_objext conftest.$ac_ext
12948 done
12949 case $ac_lo in
12950 ?*) pgac_cv_alignof_int=$ac_lo;;
12951 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
12952 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
12953    { (exit 1); exit 1; }; } ;;
12954 esac
12955 else
12956   if test "$cross_compiling" = yes; then
12957   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12958 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12959    { (exit 1); exit 1; }; }
12960 else
12961   cat >conftest.$ac_ext <<_ACEOF
12962 #line $LINENO "configure"
12963 #include "confdefs.h"
12964 $ac_includes_default
12965 struct { char filler; int field; } pgac_struct;
12966 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12967 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12968 #include <stdio.h>
12969 #include <stdlib.h>
12970 #ifdef F77_DUMMY_MAIN
12971 #  ifdef __cplusplus
12972      extern "C"
12973 #  endif
12974    int F77_DUMMY_MAIN() { return 1; }
12975 #endif
12976 int
12977 main ()
12978 {
12979
12980   FILE *f = fopen ("conftest.val", "w");
12981   if (! f)
12982     exit (1);
12983   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
12984     {
12985       long i = longval ();
12986       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12987         exit (1);
12988       fprintf (f, "%ld\n", i);
12989     }
12990   else
12991     {
12992       unsigned long i = ulongval ();
12993       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12994         exit (1);
12995       fprintf (f, "%lu\n", i);
12996     }
12997   exit (ferror (f) || fclose (f) != 0);
12998
12999   ;
13000   return 0;
13001 }
13002 _ACEOF
13003 rm -f conftest$ac_exeext
13004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13005   (eval $ac_link) 2>&5
13006   ac_status=$?
13007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13010   (eval $ac_try) 2>&5
13011   ac_status=$?
13012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013   (exit $ac_status); }; }; then
13014   pgac_cv_alignof_int=`cat conftest.val`
13015 else
13016   echo "$as_me: program exited with status $ac_status" >&5
13017 echo "$as_me: failed program was:" >&5
13018 cat conftest.$ac_ext >&5
13019 ( exit $ac_status )
13020 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13021 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13022    { (exit 1); exit 1; }; }
13023 fi
13024 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13025 fi
13026 fi
13027 rm -f conftest.val
13028 else
13029   pgac_cv_alignof_int=0
13030 fi
13031 fi
13032 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
13033 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
13034 cat >>confdefs.h <<_ACEOF
13035 #define ALIGNOF_INT $pgac_cv_alignof_int
13036 _ACEOF
13037
13038
13039 echo "$as_me:$LINENO: checking for long" >&5
13040 echo $ECHO_N "checking for long... $ECHO_C" >&6
13041 if test "${ac_cv_type_long+set}" = set; then
13042   echo $ECHO_N "(cached) $ECHO_C" >&6
13043 else
13044   cat >conftest.$ac_ext <<_ACEOF
13045 #line $LINENO "configure"
13046 #include "confdefs.h"
13047 $ac_includes_default
13048 #ifdef F77_DUMMY_MAIN
13049 #  ifdef __cplusplus
13050      extern "C"
13051 #  endif
13052    int F77_DUMMY_MAIN() { return 1; }
13053 #endif
13054 int
13055 main ()
13056 {
13057 if ((long *) 0)
13058   return 0;
13059 if (sizeof (long))
13060   return 0;
13061   ;
13062   return 0;
13063 }
13064 _ACEOF
13065 rm -f conftest.$ac_objext
13066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13067   (eval $ac_compile) 2>&5
13068   ac_status=$?
13069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070   (exit $ac_status); } &&
13071          { ac_try='test -s conftest.$ac_objext'
13072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073   (eval $ac_try) 2>&5
13074   ac_status=$?
13075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076   (exit $ac_status); }; }; then
13077   ac_cv_type_long=yes
13078 else
13079   echo "$as_me: failed program was:" >&5
13080 cat conftest.$ac_ext >&5
13081 ac_cv_type_long=no
13082 fi
13083 rm -f conftest.$ac_objext conftest.$ac_ext
13084 fi
13085 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13086 echo "${ECHO_T}$ac_cv_type_long" >&6
13087
13088 echo "$as_me:$LINENO: checking alignment of long" >&5
13089 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
13090 if test "${pgac_cv_alignof_long+set}" = set; then
13091   echo $ECHO_N "(cached) $ECHO_C" >&6
13092 else
13093   if test "$ac_cv_type_long" = yes; then
13094   if test "$cross_compiling" = yes; then
13095   # Depending upon the size, compute the lo and hi bounds.
13096 cat >conftest.$ac_ext <<_ACEOF
13097 #line $LINENO "configure"
13098 #include "confdefs.h"
13099 $ac_includes_default
13100 struct { char filler; long field; } pgac_struct;
13101 #ifdef F77_DUMMY_MAIN
13102 #  ifdef __cplusplus
13103      extern "C"
13104 #  endif
13105    int F77_DUMMY_MAIN() { return 1; }
13106 #endif
13107 int
13108 main ()
13109 {
13110 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13111 test_array [0] = 0
13112
13113   ;
13114   return 0;
13115 }
13116 _ACEOF
13117 rm -f conftest.$ac_objext
13118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13119   (eval $ac_compile) 2>&5
13120   ac_status=$?
13121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122   (exit $ac_status); } &&
13123          { ac_try='test -s conftest.$ac_objext'
13124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13125   (eval $ac_try) 2>&5
13126   ac_status=$?
13127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128   (exit $ac_status); }; }; then
13129   ac_lo=0 ac_mid=0
13130   while :; do
13131     cat >conftest.$ac_ext <<_ACEOF
13132 #line $LINENO "configure"
13133 #include "confdefs.h"
13134 $ac_includes_default
13135 struct { char filler; long field; } pgac_struct;
13136 #ifdef F77_DUMMY_MAIN
13137 #  ifdef __cplusplus
13138      extern "C"
13139 #  endif
13140    int F77_DUMMY_MAIN() { return 1; }
13141 #endif
13142 int
13143 main ()
13144 {
13145 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13146 test_array [0] = 0
13147
13148   ;
13149   return 0;
13150 }
13151 _ACEOF
13152 rm -f conftest.$ac_objext
13153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13154   (eval $ac_compile) 2>&5
13155   ac_status=$?
13156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157   (exit $ac_status); } &&
13158          { ac_try='test -s conftest.$ac_objext'
13159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160   (eval $ac_try) 2>&5
13161   ac_status=$?
13162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163   (exit $ac_status); }; }; then
13164   ac_hi=$ac_mid; break
13165 else
13166   echo "$as_me: failed program was:" >&5
13167 cat conftest.$ac_ext >&5
13168 ac_lo=`expr $ac_mid + 1`
13169                     if test $ac_lo -le $ac_mid; then
13170                       ac_lo= ac_hi=
13171                       break
13172                     fi
13173                     ac_mid=`expr 2 '*' $ac_mid + 1`
13174 fi
13175 rm -f conftest.$ac_objext conftest.$ac_ext
13176   done
13177 else
13178   echo "$as_me: failed program was:" >&5
13179 cat conftest.$ac_ext >&5
13180 cat >conftest.$ac_ext <<_ACEOF
13181 #line $LINENO "configure"
13182 #include "confdefs.h"
13183 $ac_includes_default
13184 struct { char filler; long field; } pgac_struct;
13185 #ifdef F77_DUMMY_MAIN
13186 #  ifdef __cplusplus
13187      extern "C"
13188 #  endif
13189    int F77_DUMMY_MAIN() { return 1; }
13190 #endif
13191 int
13192 main ()
13193 {
13194 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13195 test_array [0] = 0
13196
13197   ;
13198   return 0;
13199 }
13200 _ACEOF
13201 rm -f conftest.$ac_objext
13202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13203   (eval $ac_compile) 2>&5
13204   ac_status=$?
13205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206   (exit $ac_status); } &&
13207          { ac_try='test -s conftest.$ac_objext'
13208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209   (eval $ac_try) 2>&5
13210   ac_status=$?
13211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212   (exit $ac_status); }; }; then
13213   ac_hi=-1 ac_mid=-1
13214   while :; do
13215     cat >conftest.$ac_ext <<_ACEOF
13216 #line $LINENO "configure"
13217 #include "confdefs.h"
13218 $ac_includes_default
13219 struct { char filler; long field; } pgac_struct;
13220 #ifdef F77_DUMMY_MAIN
13221 #  ifdef __cplusplus
13222      extern "C"
13223 #  endif
13224    int F77_DUMMY_MAIN() { return 1; }
13225 #endif
13226 int
13227 main ()
13228 {
13229 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13230 test_array [0] = 0
13231
13232   ;
13233   return 0;
13234 }
13235 _ACEOF
13236 rm -f conftest.$ac_objext
13237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13238   (eval $ac_compile) 2>&5
13239   ac_status=$?
13240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241   (exit $ac_status); } &&
13242          { ac_try='test -s conftest.$ac_objext'
13243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244   (eval $ac_try) 2>&5
13245   ac_status=$?
13246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247   (exit $ac_status); }; }; then
13248   ac_lo=$ac_mid; break
13249 else
13250   echo "$as_me: failed program was:" >&5
13251 cat conftest.$ac_ext >&5
13252 ac_hi=`expr '(' $ac_mid ')' - 1`
13253                        if test $ac_mid -le $ac_hi; then
13254                          ac_lo= ac_hi=
13255                          break
13256                        fi
13257                        ac_mid=`expr 2 '*' $ac_mid`
13258 fi
13259 rm -f conftest.$ac_objext conftest.$ac_ext
13260   done
13261 else
13262   echo "$as_me: failed program was:" >&5
13263 cat conftest.$ac_ext >&5
13264 ac_lo= ac_hi=
13265 fi
13266 rm -f conftest.$ac_objext conftest.$ac_ext
13267 fi
13268 rm -f conftest.$ac_objext conftest.$ac_ext
13269 # Binary search between lo and hi bounds.
13270 while test "x$ac_lo" != "x$ac_hi"; do
13271   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13272   cat >conftest.$ac_ext <<_ACEOF
13273 #line $LINENO "configure"
13274 #include "confdefs.h"
13275 $ac_includes_default
13276 struct { char filler; long field; } pgac_struct;
13277 #ifdef F77_DUMMY_MAIN
13278 #  ifdef __cplusplus
13279      extern "C"
13280 #  endif
13281    int F77_DUMMY_MAIN() { return 1; }
13282 #endif
13283 int
13284 main ()
13285 {
13286 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13287 test_array [0] = 0
13288
13289   ;
13290   return 0;
13291 }
13292 _ACEOF
13293 rm -f conftest.$ac_objext
13294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13295   (eval $ac_compile) 2>&5
13296   ac_status=$?
13297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298   (exit $ac_status); } &&
13299          { ac_try='test -s conftest.$ac_objext'
13300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13301   (eval $ac_try) 2>&5
13302   ac_status=$?
13303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304   (exit $ac_status); }; }; then
13305   ac_hi=$ac_mid
13306 else
13307   echo "$as_me: failed program was:" >&5
13308 cat conftest.$ac_ext >&5
13309 ac_lo=`expr '(' $ac_mid ')' + 1`
13310 fi
13311 rm -f conftest.$ac_objext conftest.$ac_ext
13312 done
13313 case $ac_lo in
13314 ?*) pgac_cv_alignof_long=$ac_lo;;
13315 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
13316 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
13317    { (exit 1); exit 1; }; } ;;
13318 esac
13319 else
13320   if test "$cross_compiling" = yes; then
13321   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13322 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13323    { (exit 1); exit 1; }; }
13324 else
13325   cat >conftest.$ac_ext <<_ACEOF
13326 #line $LINENO "configure"
13327 #include "confdefs.h"
13328 $ac_includes_default
13329 struct { char filler; long field; } pgac_struct;
13330 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13331 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13332 #include <stdio.h>
13333 #include <stdlib.h>
13334 #ifdef F77_DUMMY_MAIN
13335 #  ifdef __cplusplus
13336      extern "C"
13337 #  endif
13338    int F77_DUMMY_MAIN() { return 1; }
13339 #endif
13340 int
13341 main ()
13342 {
13343
13344   FILE *f = fopen ("conftest.val", "w");
13345   if (! f)
13346     exit (1);
13347   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13348     {
13349       long i = longval ();
13350       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13351         exit (1);
13352       fprintf (f, "%ld\n", i);
13353     }
13354   else
13355     {
13356       unsigned long i = ulongval ();
13357       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13358         exit (1);
13359       fprintf (f, "%lu\n", i);
13360     }
13361   exit (ferror (f) || fclose (f) != 0);
13362
13363   ;
13364   return 0;
13365 }
13366 _ACEOF
13367 rm -f conftest$ac_exeext
13368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13369   (eval $ac_link) 2>&5
13370   ac_status=$?
13371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374   (eval $ac_try) 2>&5
13375   ac_status=$?
13376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377   (exit $ac_status); }; }; then
13378   pgac_cv_alignof_long=`cat conftest.val`
13379 else
13380   echo "$as_me: program exited with status $ac_status" >&5
13381 echo "$as_me: failed program was:" >&5
13382 cat conftest.$ac_ext >&5
13383 ( exit $ac_status )
13384 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
13385 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
13386    { (exit 1); exit 1; }; }
13387 fi
13388 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13389 fi
13390 fi
13391 rm -f conftest.val
13392 else
13393   pgac_cv_alignof_long=0
13394 fi
13395 fi
13396 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
13397 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
13398 cat >>confdefs.h <<_ACEOF
13399 #define ALIGNOF_LONG $pgac_cv_alignof_long
13400 _ACEOF
13401
13402
13403 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
13404   echo "$as_me:$LINENO: checking for long long int" >&5
13405 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13406 if test "${ac_cv_type_long_long_int+set}" = set; then
13407   echo $ECHO_N "(cached) $ECHO_C" >&6
13408 else
13409   cat >conftest.$ac_ext <<_ACEOF
13410 #line $LINENO "configure"
13411 #include "confdefs.h"
13412 $ac_includes_default
13413 #ifdef F77_DUMMY_MAIN
13414 #  ifdef __cplusplus
13415      extern "C"
13416 #  endif
13417    int F77_DUMMY_MAIN() { return 1; }
13418 #endif
13419 int
13420 main ()
13421 {
13422 if ((long long int *) 0)
13423   return 0;
13424 if (sizeof (long long int))
13425   return 0;
13426   ;
13427   return 0;
13428 }
13429 _ACEOF
13430 rm -f conftest.$ac_objext
13431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13432   (eval $ac_compile) 2>&5
13433   ac_status=$?
13434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435   (exit $ac_status); } &&
13436          { ac_try='test -s conftest.$ac_objext'
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   ac_cv_type_long_long_int=yes
13443 else
13444   echo "$as_me: failed program was:" >&5
13445 cat conftest.$ac_ext >&5
13446 ac_cv_type_long_long_int=no
13447 fi
13448 rm -f conftest.$ac_objext conftest.$ac_ext
13449 fi
13450 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13451 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13452
13453 echo "$as_me:$LINENO: checking alignment of long long int" >&5
13454 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
13455 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
13456   echo $ECHO_N "(cached) $ECHO_C" >&6
13457 else
13458   if test "$ac_cv_type_long_long_int" = yes; then
13459   if test "$cross_compiling" = yes; then
13460   # Depending upon the size, compute the lo and hi bounds.
13461 cat >conftest.$ac_ext <<_ACEOF
13462 #line $LINENO "configure"
13463 #include "confdefs.h"
13464 $ac_includes_default
13465 struct { char filler; long long int field; } pgac_struct;
13466 #ifdef F77_DUMMY_MAIN
13467 #  ifdef __cplusplus
13468      extern "C"
13469 #  endif
13470    int F77_DUMMY_MAIN() { return 1; }
13471 #endif
13472 int
13473 main ()
13474 {
13475 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13476 test_array [0] = 0
13477
13478   ;
13479   return 0;
13480 }
13481 _ACEOF
13482 rm -f conftest.$ac_objext
13483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13484   (eval $ac_compile) 2>&5
13485   ac_status=$?
13486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487   (exit $ac_status); } &&
13488          { ac_try='test -s conftest.$ac_objext'
13489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13490   (eval $ac_try) 2>&5
13491   ac_status=$?
13492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493   (exit $ac_status); }; }; then
13494   ac_lo=0 ac_mid=0
13495   while :; do
13496     cat >conftest.$ac_ext <<_ACEOF
13497 #line $LINENO "configure"
13498 #include "confdefs.h"
13499 $ac_includes_default
13500 struct { char filler; long long int field; } pgac_struct;
13501 #ifdef F77_DUMMY_MAIN
13502 #  ifdef __cplusplus
13503      extern "C"
13504 #  endif
13505    int F77_DUMMY_MAIN() { return 1; }
13506 #endif
13507 int
13508 main ()
13509 {
13510 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13511 test_array [0] = 0
13512
13513   ;
13514   return 0;
13515 }
13516 _ACEOF
13517 rm -f conftest.$ac_objext
13518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13519   (eval $ac_compile) 2>&5
13520   ac_status=$?
13521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); } &&
13523          { ac_try='test -s conftest.$ac_objext'
13524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525   (eval $ac_try) 2>&5
13526   ac_status=$?
13527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528   (exit $ac_status); }; }; then
13529   ac_hi=$ac_mid; break
13530 else
13531   echo "$as_me: failed program was:" >&5
13532 cat conftest.$ac_ext >&5
13533 ac_lo=`expr $ac_mid + 1`
13534                     if test $ac_lo -le $ac_mid; then
13535                       ac_lo= ac_hi=
13536                       break
13537                     fi
13538                     ac_mid=`expr 2 '*' $ac_mid + 1`
13539 fi
13540 rm -f conftest.$ac_objext conftest.$ac_ext
13541   done
13542 else
13543   echo "$as_me: failed program was:" >&5
13544 cat conftest.$ac_ext >&5
13545 cat >conftest.$ac_ext <<_ACEOF
13546 #line $LINENO "configure"
13547 #include "confdefs.h"
13548 $ac_includes_default
13549 struct { char filler; long long int field; } pgac_struct;
13550 #ifdef F77_DUMMY_MAIN
13551 #  ifdef __cplusplus
13552      extern "C"
13553 #  endif
13554    int F77_DUMMY_MAIN() { return 1; }
13555 #endif
13556 int
13557 main ()
13558 {
13559 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13560 test_array [0] = 0
13561
13562   ;
13563   return 0;
13564 }
13565 _ACEOF
13566 rm -f conftest.$ac_objext
13567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13568   (eval $ac_compile) 2>&5
13569   ac_status=$?
13570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571   (exit $ac_status); } &&
13572          { ac_try='test -s conftest.$ac_objext'
13573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574   (eval $ac_try) 2>&5
13575   ac_status=$?
13576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577   (exit $ac_status); }; }; then
13578   ac_hi=-1 ac_mid=-1
13579   while :; do
13580     cat >conftest.$ac_ext <<_ACEOF
13581 #line $LINENO "configure"
13582 #include "confdefs.h"
13583 $ac_includes_default
13584 struct { char filler; long long int field; } pgac_struct;
13585 #ifdef F77_DUMMY_MAIN
13586 #  ifdef __cplusplus
13587      extern "C"
13588 #  endif
13589    int F77_DUMMY_MAIN() { return 1; }
13590 #endif
13591 int
13592 main ()
13593 {
13594 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13595 test_array [0] = 0
13596
13597   ;
13598   return 0;
13599 }
13600 _ACEOF
13601 rm -f conftest.$ac_objext
13602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13603   (eval $ac_compile) 2>&5
13604   ac_status=$?
13605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606   (exit $ac_status); } &&
13607          { ac_try='test -s conftest.$ac_objext'
13608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13609   (eval $ac_try) 2>&5
13610   ac_status=$?
13611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612   (exit $ac_status); }; }; then
13613   ac_lo=$ac_mid; break
13614 else
13615   echo "$as_me: failed program was:" >&5
13616 cat conftest.$ac_ext >&5
13617 ac_hi=`expr '(' $ac_mid ')' - 1`
13618                        if test $ac_mid -le $ac_hi; then
13619                          ac_lo= ac_hi=
13620                          break
13621                        fi
13622                        ac_mid=`expr 2 '*' $ac_mid`
13623 fi
13624 rm -f conftest.$ac_objext conftest.$ac_ext
13625   done
13626 else
13627   echo "$as_me: failed program was:" >&5
13628 cat conftest.$ac_ext >&5
13629 ac_lo= ac_hi=
13630 fi
13631 rm -f conftest.$ac_objext conftest.$ac_ext
13632 fi
13633 rm -f conftest.$ac_objext conftest.$ac_ext
13634 # Binary search between lo and hi bounds.
13635 while test "x$ac_lo" != "x$ac_hi"; do
13636   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13637   cat >conftest.$ac_ext <<_ACEOF
13638 #line $LINENO "configure"
13639 #include "confdefs.h"
13640 $ac_includes_default
13641 struct { char filler; long long int field; } pgac_struct;
13642 #ifdef F77_DUMMY_MAIN
13643 #  ifdef __cplusplus
13644      extern "C"
13645 #  endif
13646    int F77_DUMMY_MAIN() { return 1; }
13647 #endif
13648 int
13649 main ()
13650 {
13651 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13652 test_array [0] = 0
13653
13654   ;
13655   return 0;
13656 }
13657 _ACEOF
13658 rm -f conftest.$ac_objext
13659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13660   (eval $ac_compile) 2>&5
13661   ac_status=$?
13662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663   (exit $ac_status); } &&
13664          { ac_try='test -s conftest.$ac_objext'
13665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13666   (eval $ac_try) 2>&5
13667   ac_status=$?
13668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669   (exit $ac_status); }; }; then
13670   ac_hi=$ac_mid
13671 else
13672   echo "$as_me: failed program was:" >&5
13673 cat conftest.$ac_ext >&5
13674 ac_lo=`expr '(' $ac_mid ')' + 1`
13675 fi
13676 rm -f conftest.$ac_objext conftest.$ac_ext
13677 done
13678 case $ac_lo in
13679 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
13680 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
13681 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
13682    { (exit 1); exit 1; }; } ;;
13683 esac
13684 else
13685   if test "$cross_compiling" = yes; then
13686   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13687 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13688    { (exit 1); exit 1; }; }
13689 else
13690   cat >conftest.$ac_ext <<_ACEOF
13691 #line $LINENO "configure"
13692 #include "confdefs.h"
13693 $ac_includes_default
13694 struct { char filler; long long int field; } pgac_struct;
13695 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13696 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13697 #include <stdio.h>
13698 #include <stdlib.h>
13699 #ifdef F77_DUMMY_MAIN
13700 #  ifdef __cplusplus
13701      extern "C"
13702 #  endif
13703    int F77_DUMMY_MAIN() { return 1; }
13704 #endif
13705 int
13706 main ()
13707 {
13708
13709   FILE *f = fopen ("conftest.val", "w");
13710   if (! f)
13711     exit (1);
13712   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13713     {
13714       long i = longval ();
13715       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13716         exit (1);
13717       fprintf (f, "%ld\n", i);
13718     }
13719   else
13720     {
13721       unsigned long i = ulongval ();
13722       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13723         exit (1);
13724       fprintf (f, "%lu\n", i);
13725     }
13726   exit (ferror (f) || fclose (f) != 0);
13727
13728   ;
13729   return 0;
13730 }
13731 _ACEOF
13732 rm -f conftest$ac_exeext
13733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13734   (eval $ac_link) 2>&5
13735   ac_status=$?
13736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739   (eval $ac_try) 2>&5
13740   ac_status=$?
13741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742   (exit $ac_status); }; }; then
13743   pgac_cv_alignof_long_long_int=`cat conftest.val`
13744 else
13745   echo "$as_me: program exited with status $ac_status" >&5
13746 echo "$as_me: failed program was:" >&5
13747 cat conftest.$ac_ext >&5
13748 ( exit $ac_status )
13749 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
13750 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
13751    { (exit 1); exit 1; }; }
13752 fi
13753 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13754 fi
13755 fi
13756 rm -f conftest.val
13757 else
13758   pgac_cv_alignof_long_long_int=0
13759 fi
13760 fi
13761 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
13762 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
13763 cat >>confdefs.h <<_ACEOF
13764 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
13765 _ACEOF
13766
13767
13768 fi
13769 echo "$as_me:$LINENO: checking for double" >&5
13770 echo $ECHO_N "checking for double... $ECHO_C" >&6
13771 if test "${ac_cv_type_double+set}" = set; then
13772   echo $ECHO_N "(cached) $ECHO_C" >&6
13773 else
13774   cat >conftest.$ac_ext <<_ACEOF
13775 #line $LINENO "configure"
13776 #include "confdefs.h"
13777 $ac_includes_default
13778 #ifdef F77_DUMMY_MAIN
13779 #  ifdef __cplusplus
13780      extern "C"
13781 #  endif
13782    int F77_DUMMY_MAIN() { return 1; }
13783 #endif
13784 int
13785 main ()
13786 {
13787 if ((double *) 0)
13788   return 0;
13789 if (sizeof (double))
13790   return 0;
13791   ;
13792   return 0;
13793 }
13794 _ACEOF
13795 rm -f conftest.$ac_objext
13796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13797   (eval $ac_compile) 2>&5
13798   ac_status=$?
13799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800   (exit $ac_status); } &&
13801          { ac_try='test -s conftest.$ac_objext'
13802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13803   (eval $ac_try) 2>&5
13804   ac_status=$?
13805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806   (exit $ac_status); }; }; then
13807   ac_cv_type_double=yes
13808 else
13809   echo "$as_me: failed program was:" >&5
13810 cat conftest.$ac_ext >&5
13811 ac_cv_type_double=no
13812 fi
13813 rm -f conftest.$ac_objext conftest.$ac_ext
13814 fi
13815 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
13816 echo "${ECHO_T}$ac_cv_type_double" >&6
13817
13818 echo "$as_me:$LINENO: checking alignment of double" >&5
13819 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
13820 if test "${pgac_cv_alignof_double+set}" = set; then
13821   echo $ECHO_N "(cached) $ECHO_C" >&6
13822 else
13823   if test "$ac_cv_type_double" = yes; then
13824   if test "$cross_compiling" = yes; then
13825   # Depending upon the size, compute the lo and hi bounds.
13826 cat >conftest.$ac_ext <<_ACEOF
13827 #line $LINENO "configure"
13828 #include "confdefs.h"
13829 $ac_includes_default
13830 struct { char filler; double field; } pgac_struct;
13831 #ifdef F77_DUMMY_MAIN
13832 #  ifdef __cplusplus
13833      extern "C"
13834 #  endif
13835    int F77_DUMMY_MAIN() { return 1; }
13836 #endif
13837 int
13838 main ()
13839 {
13840 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13841 test_array [0] = 0
13842
13843   ;
13844   return 0;
13845 }
13846 _ACEOF
13847 rm -f conftest.$ac_objext
13848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13849   (eval $ac_compile) 2>&5
13850   ac_status=$?
13851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852   (exit $ac_status); } &&
13853          { ac_try='test -s conftest.$ac_objext'
13854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855   (eval $ac_try) 2>&5
13856   ac_status=$?
13857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858   (exit $ac_status); }; }; then
13859   ac_lo=0 ac_mid=0
13860   while :; do
13861     cat >conftest.$ac_ext <<_ACEOF
13862 #line $LINENO "configure"
13863 #include "confdefs.h"
13864 $ac_includes_default
13865 struct { char filler; double field; } pgac_struct;
13866 #ifdef F77_DUMMY_MAIN
13867 #  ifdef __cplusplus
13868      extern "C"
13869 #  endif
13870    int F77_DUMMY_MAIN() { return 1; }
13871 #endif
13872 int
13873 main ()
13874 {
13875 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13876 test_array [0] = 0
13877
13878   ;
13879   return 0;
13880 }
13881 _ACEOF
13882 rm -f conftest.$ac_objext
13883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13884   (eval $ac_compile) 2>&5
13885   ac_status=$?
13886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887   (exit $ac_status); } &&
13888          { ac_try='test -s conftest.$ac_objext'
13889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890   (eval $ac_try) 2>&5
13891   ac_status=$?
13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893   (exit $ac_status); }; }; then
13894   ac_hi=$ac_mid; break
13895 else
13896   echo "$as_me: failed program was:" >&5
13897 cat conftest.$ac_ext >&5
13898 ac_lo=`expr $ac_mid + 1`
13899                     if test $ac_lo -le $ac_mid; then
13900                       ac_lo= ac_hi=
13901                       break
13902                     fi
13903                     ac_mid=`expr 2 '*' $ac_mid + 1`
13904 fi
13905 rm -f conftest.$ac_objext conftest.$ac_ext
13906   done
13907 else
13908   echo "$as_me: failed program was:" >&5
13909 cat conftest.$ac_ext >&5
13910 cat >conftest.$ac_ext <<_ACEOF
13911 #line $LINENO "configure"
13912 #include "confdefs.h"
13913 $ac_includes_default
13914 struct { char filler; double field; } pgac_struct;
13915 #ifdef F77_DUMMY_MAIN
13916 #  ifdef __cplusplus
13917      extern "C"
13918 #  endif
13919    int F77_DUMMY_MAIN() { return 1; }
13920 #endif
13921 int
13922 main ()
13923 {
13924 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13925 test_array [0] = 0
13926
13927   ;
13928   return 0;
13929 }
13930 _ACEOF
13931 rm -f conftest.$ac_objext
13932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13933   (eval $ac_compile) 2>&5
13934   ac_status=$?
13935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936   (exit $ac_status); } &&
13937          { ac_try='test -s conftest.$ac_objext'
13938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939   (eval $ac_try) 2>&5
13940   ac_status=$?
13941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942   (exit $ac_status); }; }; then
13943   ac_hi=-1 ac_mid=-1
13944   while :; do
13945     cat >conftest.$ac_ext <<_ACEOF
13946 #line $LINENO "configure"
13947 #include "confdefs.h"
13948 $ac_includes_default
13949 struct { char filler; double field; } pgac_struct;
13950 #ifdef F77_DUMMY_MAIN
13951 #  ifdef __cplusplus
13952      extern "C"
13953 #  endif
13954    int F77_DUMMY_MAIN() { return 1; }
13955 #endif
13956 int
13957 main ()
13958 {
13959 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13960 test_array [0] = 0
13961
13962   ;
13963   return 0;
13964 }
13965 _ACEOF
13966 rm -f conftest.$ac_objext
13967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13968   (eval $ac_compile) 2>&5
13969   ac_status=$?
13970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971   (exit $ac_status); } &&
13972          { ac_try='test -s conftest.$ac_objext'
13973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974   (eval $ac_try) 2>&5
13975   ac_status=$?
13976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977   (exit $ac_status); }; }; then
13978   ac_lo=$ac_mid; break
13979 else
13980   echo "$as_me: failed program was:" >&5
13981 cat conftest.$ac_ext >&5
13982 ac_hi=`expr '(' $ac_mid ')' - 1`
13983                        if test $ac_mid -le $ac_hi; then
13984                          ac_lo= ac_hi=
13985                          break
13986                        fi
13987                        ac_mid=`expr 2 '*' $ac_mid`
13988 fi
13989 rm -f conftest.$ac_objext conftest.$ac_ext
13990   done
13991 else
13992   echo "$as_me: failed program was:" >&5
13993 cat conftest.$ac_ext >&5
13994 ac_lo= ac_hi=
13995 fi
13996 rm -f conftest.$ac_objext conftest.$ac_ext
13997 fi
13998 rm -f conftest.$ac_objext conftest.$ac_ext
13999 # Binary search between lo and hi bounds.
14000 while test "x$ac_lo" != "x$ac_hi"; do
14001   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14002   cat >conftest.$ac_ext <<_ACEOF
14003 #line $LINENO "configure"
14004 #include "confdefs.h"
14005 $ac_includes_default
14006 struct { char filler; double field; } pgac_struct;
14007 #ifdef F77_DUMMY_MAIN
14008 #  ifdef __cplusplus
14009      extern "C"
14010 #  endif
14011    int F77_DUMMY_MAIN() { return 1; }
14012 #endif
14013 int
14014 main ()
14015 {
14016 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14017 test_array [0] = 0
14018
14019   ;
14020   return 0;
14021 }
14022 _ACEOF
14023 rm -f conftest.$ac_objext
14024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14025   (eval $ac_compile) 2>&5
14026   ac_status=$?
14027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028   (exit $ac_status); } &&
14029          { ac_try='test -s conftest.$ac_objext'
14030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031   (eval $ac_try) 2>&5
14032   ac_status=$?
14033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034   (exit $ac_status); }; }; then
14035   ac_hi=$ac_mid
14036 else
14037   echo "$as_me: failed program was:" >&5
14038 cat conftest.$ac_ext >&5
14039 ac_lo=`expr '(' $ac_mid ')' + 1`
14040 fi
14041 rm -f conftest.$ac_objext conftest.$ac_ext
14042 done
14043 case $ac_lo in
14044 ?*) pgac_cv_alignof_double=$ac_lo;;
14045 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14046 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14047    { (exit 1); exit 1; }; } ;;
14048 esac
14049 else
14050   if test "$cross_compiling" = yes; then
14051   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14052 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14053    { (exit 1); exit 1; }; }
14054 else
14055   cat >conftest.$ac_ext <<_ACEOF
14056 #line $LINENO "configure"
14057 #include "confdefs.h"
14058 $ac_includes_default
14059 struct { char filler; double field; } pgac_struct;
14060 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14061 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14062 #include <stdio.h>
14063 #include <stdlib.h>
14064 #ifdef F77_DUMMY_MAIN
14065 #  ifdef __cplusplus
14066      extern "C"
14067 #  endif
14068    int F77_DUMMY_MAIN() { return 1; }
14069 #endif
14070 int
14071 main ()
14072 {
14073
14074   FILE *f = fopen ("conftest.val", "w");
14075   if (! f)
14076     exit (1);
14077   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14078     {
14079       long i = longval ();
14080       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14081         exit (1);
14082       fprintf (f, "%ld\n", i);
14083     }
14084   else
14085     {
14086       unsigned long i = ulongval ();
14087       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14088         exit (1);
14089       fprintf (f, "%lu\n", i);
14090     }
14091   exit (ferror (f) || fclose (f) != 0);
14092
14093   ;
14094   return 0;
14095 }
14096 _ACEOF
14097 rm -f conftest$ac_exeext
14098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14099   (eval $ac_link) 2>&5
14100   ac_status=$?
14101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104   (eval $ac_try) 2>&5
14105   ac_status=$?
14106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107   (exit $ac_status); }; }; then
14108   pgac_cv_alignof_double=`cat conftest.val`
14109 else
14110   echo "$as_me: program exited with status $ac_status" >&5
14111 echo "$as_me: failed program was:" >&5
14112 cat conftest.$ac_ext >&5
14113 ( exit $ac_status )
14114 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14115 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14116    { (exit 1); exit 1; }; }
14117 fi
14118 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14119 fi
14120 fi
14121 rm -f conftest.val
14122 else
14123   pgac_cv_alignof_double=0
14124 fi
14125 fi
14126 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
14127 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
14128 cat >>confdefs.h <<_ACEOF
14129 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
14130 _ACEOF
14131
14132
14133
14134 # Compute maximum alignment of any basic type.
14135 # We assume long's alignment is at least as strong as char, short, or int;
14136 # but we must check long long (if it exists) and double.
14137
14138 MAX_ALIGNOF=$pgac_cv_alignof_long
14139 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
14140   MAX_ALIGNOF=$pgac_cv_alignof_double
14141 fi
14142 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
14143   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
14144 fi
14145
14146 cat >>confdefs.h <<_ACEOF
14147 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
14148 _ACEOF
14149
14150
14151
14152 # Some platforms predefine the types int8, int16, etc.  Only check
14153 # a (hopefully) representative subset.
14154 echo "$as_me:$LINENO: checking for int8" >&5
14155 echo $ECHO_N "checking for int8... $ECHO_C" >&6
14156 if test "${ac_cv_type_int8+set}" = set; then
14157   echo $ECHO_N "(cached) $ECHO_C" >&6
14158 else
14159   cat >conftest.$ac_ext <<_ACEOF
14160 #line $LINENO "configure"
14161 #include "confdefs.h"
14162 #include <stdio.h>
14163 #ifdef HAVE_SUPPORTDEFS_H
14164 #include <SupportDefs.h>
14165 #endif
14166
14167 #ifdef F77_DUMMY_MAIN
14168 #  ifdef __cplusplus
14169      extern "C"
14170 #  endif
14171    int F77_DUMMY_MAIN() { return 1; }
14172 #endif
14173 int
14174 main ()
14175 {
14176 if ((int8 *) 0)
14177   return 0;
14178 if (sizeof (int8))
14179   return 0;
14180   ;
14181   return 0;
14182 }
14183 _ACEOF
14184 rm -f conftest.$ac_objext
14185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14186   (eval $ac_compile) 2>&5
14187   ac_status=$?
14188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189   (exit $ac_status); } &&
14190          { ac_try='test -s conftest.$ac_objext'
14191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192   (eval $ac_try) 2>&5
14193   ac_status=$?
14194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195   (exit $ac_status); }; }; then
14196   ac_cv_type_int8=yes
14197 else
14198   echo "$as_me: failed program was:" >&5
14199 cat conftest.$ac_ext >&5
14200 ac_cv_type_int8=no
14201 fi
14202 rm -f conftest.$ac_objext conftest.$ac_ext
14203 fi
14204 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
14205 echo "${ECHO_T}$ac_cv_type_int8" >&6
14206 if test $ac_cv_type_int8 = yes; then
14207
14208 cat >>confdefs.h <<_ACEOF
14209 #define HAVE_INT8 1
14210 _ACEOF
14211
14212
14213 fi
14214 echo "$as_me:$LINENO: checking for uint8" >&5
14215 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
14216 if test "${ac_cv_type_uint8+set}" = set; then
14217   echo $ECHO_N "(cached) $ECHO_C" >&6
14218 else
14219   cat >conftest.$ac_ext <<_ACEOF
14220 #line $LINENO "configure"
14221 #include "confdefs.h"
14222 #include <stdio.h>
14223 #ifdef HAVE_SUPPORTDEFS_H
14224 #include <SupportDefs.h>
14225 #endif
14226
14227 #ifdef F77_DUMMY_MAIN
14228 #  ifdef __cplusplus
14229      extern "C"
14230 #  endif
14231    int F77_DUMMY_MAIN() { return 1; }
14232 #endif
14233 int
14234 main ()
14235 {
14236 if ((uint8 *) 0)
14237   return 0;
14238 if (sizeof (uint8))
14239   return 0;
14240   ;
14241   return 0;
14242 }
14243 _ACEOF
14244 rm -f conftest.$ac_objext
14245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14246   (eval $ac_compile) 2>&5
14247   ac_status=$?
14248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249   (exit $ac_status); } &&
14250          { ac_try='test -s conftest.$ac_objext'
14251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14252   (eval $ac_try) 2>&5
14253   ac_status=$?
14254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255   (exit $ac_status); }; }; then
14256   ac_cv_type_uint8=yes
14257 else
14258   echo "$as_me: failed program was:" >&5
14259 cat conftest.$ac_ext >&5
14260 ac_cv_type_uint8=no
14261 fi
14262 rm -f conftest.$ac_objext conftest.$ac_ext
14263 fi
14264 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
14265 echo "${ECHO_T}$ac_cv_type_uint8" >&6
14266 if test $ac_cv_type_uint8 = yes; then
14267
14268 cat >>confdefs.h <<_ACEOF
14269 #define HAVE_UINT8 1
14270 _ACEOF
14271
14272
14273 fi
14274 echo "$as_me:$LINENO: checking for int64" >&5
14275 echo $ECHO_N "checking for int64... $ECHO_C" >&6
14276 if test "${ac_cv_type_int64+set}" = set; then
14277   echo $ECHO_N "(cached) $ECHO_C" >&6
14278 else
14279   cat >conftest.$ac_ext <<_ACEOF
14280 #line $LINENO "configure"
14281 #include "confdefs.h"
14282 #include <stdio.h>
14283 #ifdef HAVE_SUPPORTDEFS_H
14284 #include <SupportDefs.h>
14285 #endif
14286
14287 #ifdef F77_DUMMY_MAIN
14288 #  ifdef __cplusplus
14289      extern "C"
14290 #  endif
14291    int F77_DUMMY_MAIN() { return 1; }
14292 #endif
14293 int
14294 main ()
14295 {
14296 if ((int64 *) 0)
14297   return 0;
14298 if (sizeof (int64))
14299   return 0;
14300   ;
14301   return 0;
14302 }
14303 _ACEOF
14304 rm -f conftest.$ac_objext
14305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14306   (eval $ac_compile) 2>&5
14307   ac_status=$?
14308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309   (exit $ac_status); } &&
14310          { ac_try='test -s conftest.$ac_objext'
14311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14312   (eval $ac_try) 2>&5
14313   ac_status=$?
14314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315   (exit $ac_status); }; }; then
14316   ac_cv_type_int64=yes
14317 else
14318   echo "$as_me: failed program was:" >&5
14319 cat conftest.$ac_ext >&5
14320 ac_cv_type_int64=no
14321 fi
14322 rm -f conftest.$ac_objext conftest.$ac_ext
14323 fi
14324 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
14325 echo "${ECHO_T}$ac_cv_type_int64" >&6
14326 if test $ac_cv_type_int64 = yes; then
14327
14328 cat >>confdefs.h <<_ACEOF
14329 #define HAVE_INT64 1
14330 _ACEOF
14331
14332
14333 fi
14334 echo "$as_me:$LINENO: checking for uint64" >&5
14335 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
14336 if test "${ac_cv_type_uint64+set}" = set; then
14337   echo $ECHO_N "(cached) $ECHO_C" >&6
14338 else
14339   cat >conftest.$ac_ext <<_ACEOF
14340 #line $LINENO "configure"
14341 #include "confdefs.h"
14342 #include <stdio.h>
14343 #ifdef HAVE_SUPPORTDEFS_H
14344 #include <SupportDefs.h>
14345 #endif
14346
14347 #ifdef F77_DUMMY_MAIN
14348 #  ifdef __cplusplus
14349      extern "C"
14350 #  endif
14351    int F77_DUMMY_MAIN() { return 1; }
14352 #endif
14353 int
14354 main ()
14355 {
14356 if ((uint64 *) 0)
14357   return 0;
14358 if (sizeof (uint64))
14359   return 0;
14360   ;
14361   return 0;
14362 }
14363 _ACEOF
14364 rm -f conftest.$ac_objext
14365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14366   (eval $ac_compile) 2>&5
14367   ac_status=$?
14368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369   (exit $ac_status); } &&
14370          { ac_try='test -s conftest.$ac_objext'
14371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372   (eval $ac_try) 2>&5
14373   ac_status=$?
14374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375   (exit $ac_status); }; }; then
14376   ac_cv_type_uint64=yes
14377 else
14378   echo "$as_me: failed program was:" >&5
14379 cat conftest.$ac_ext >&5
14380 ac_cv_type_uint64=no
14381 fi
14382 rm -f conftest.$ac_objext conftest.$ac_ext
14383 fi
14384 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
14385 echo "${ECHO_T}$ac_cv_type_uint64" >&6
14386 if test $ac_cv_type_uint64 = yes; then
14387
14388 cat >>confdefs.h <<_ACEOF
14389 #define HAVE_UINT64 1
14390 _ACEOF
14391
14392
14393 fi
14394
14395
14396 # We also check for sig_atomic_t, which *should* be defined per ANSI
14397 # C, but is missing on some old platforms.
14398 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
14399 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
14400 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
14401   echo $ECHO_N "(cached) $ECHO_C" >&6
14402 else
14403   cat >conftest.$ac_ext <<_ACEOF
14404 #line $LINENO "configure"
14405 #include "confdefs.h"
14406 #include <signal.h>
14407
14408 #ifdef F77_DUMMY_MAIN
14409 #  ifdef __cplusplus
14410      extern "C"
14411 #  endif
14412    int F77_DUMMY_MAIN() { return 1; }
14413 #endif
14414 int
14415 main ()
14416 {
14417 if ((sig_atomic_t *) 0)
14418   return 0;
14419 if (sizeof (sig_atomic_t))
14420   return 0;
14421   ;
14422   return 0;
14423 }
14424 _ACEOF
14425 rm -f conftest.$ac_objext
14426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14427   (eval $ac_compile) 2>&5
14428   ac_status=$?
14429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430   (exit $ac_status); } &&
14431          { ac_try='test -s conftest.$ac_objext'
14432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14433   (eval $ac_try) 2>&5
14434   ac_status=$?
14435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436   (exit $ac_status); }; }; then
14437   ac_cv_type_sig_atomic_t=yes
14438 else
14439   echo "$as_me: failed program was:" >&5
14440 cat conftest.$ac_ext >&5
14441 ac_cv_type_sig_atomic_t=no
14442 fi
14443 rm -f conftest.$ac_objext conftest.$ac_ext
14444 fi
14445 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
14446 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
14447 if test $ac_cv_type_sig_atomic_t = yes; then
14448
14449 cat >>confdefs.h <<_ACEOF
14450 #define HAVE_SIG_ATOMIC_T 1
14451 _ACEOF
14452
14453
14454 fi
14455
14456
14457
14458 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
14459 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
14460 if test "${pgac_cv_func_posix_signals+set}" = set; then
14461   echo $ECHO_N "(cached) $ECHO_C" >&6
14462 else
14463   cat >conftest.$ac_ext <<_ACEOF
14464 #line $LINENO "configure"
14465 #include "confdefs.h"
14466 #include <signal.h>
14467
14468 #ifdef F77_DUMMY_MAIN
14469 #  ifdef __cplusplus
14470      extern "C"
14471 #  endif
14472    int F77_DUMMY_MAIN() { return 1; }
14473 #endif
14474 int
14475 main ()
14476 {
14477 struct sigaction act, oact;
14478 sigemptyset(&act.sa_mask);
14479 act.sa_flags = SA_RESTART;
14480 sigaction(0, &act, &oact);
14481   ;
14482   return 0;
14483 }
14484 _ACEOF
14485 rm -f conftest.$ac_objext conftest$ac_exeext
14486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14487   (eval $ac_link) 2>&5
14488   ac_status=$?
14489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490   (exit $ac_status); } &&
14491          { ac_try='test -s conftest$ac_exeext'
14492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493   (eval $ac_try) 2>&5
14494   ac_status=$?
14495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496   (exit $ac_status); }; }; then
14497   pgac_cv_func_posix_signals=yes
14498 else
14499   echo "$as_me: failed program was:" >&5
14500 cat conftest.$ac_ext >&5
14501 pgac_cv_func_posix_signals=no
14502 fi
14503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14504 fi
14505 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
14506 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
14507 if test x"$pgac_cv_func_posix_signals" = xyes ; then
14508
14509 cat >>confdefs.h <<\_ACEOF
14510 #define HAVE_POSIX_SIGNALS
14511 _ACEOF
14512
14513 fi
14514 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
14515
14516 if test $ac_cv_func_fseeko = yes; then
14517 # Check whether --enable-largefile or --disable-largefile was given.
14518 if test "${enable_largefile+set}" = set; then
14519   enableval="$enable_largefile"
14520
14521 fi;
14522 if test "$enable_largefile" != no; then
14523
14524   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
14525 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
14526 if test "${ac_cv_sys_largefile_CC+set}" = set; then
14527   echo $ECHO_N "(cached) $ECHO_C" >&6
14528 else
14529   ac_cv_sys_largefile_CC=no
14530      if test "$GCC" != yes; then
14531        ac_save_CC=$CC
14532        while :; do
14533          # IRIX 6.2 and later do not support large files by default,
14534          # so use the C compiler's -n32 option if that helps.
14535          cat >conftest.$ac_ext <<_ACEOF
14536 #line $LINENO "configure"
14537 #include "confdefs.h"
14538 #include <sys/types.h>
14539  /* Check that off_t can represent 2**63 - 1 correctly.
14540     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14541     since some C++ compilers masquerading as C compilers
14542     incorrectly reject 9223372036854775807.  */
14543 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14544   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14545                        && LARGE_OFF_T % 2147483647 == 1)
14546                       ? 1 : -1];
14547 #ifdef F77_DUMMY_MAIN
14548 #  ifdef __cplusplus
14549      extern "C"
14550 #  endif
14551    int F77_DUMMY_MAIN() { return 1; }
14552 #endif
14553 int
14554 main ()
14555 {
14556
14557   ;
14558   return 0;
14559 }
14560 _ACEOF
14561          rm -f conftest.$ac_objext
14562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14563   (eval $ac_compile) 2>&5
14564   ac_status=$?
14565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566   (exit $ac_status); } &&
14567          { ac_try='test -s conftest.$ac_objext'
14568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569   (eval $ac_try) 2>&5
14570   ac_status=$?
14571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572   (exit $ac_status); }; }; then
14573   break
14574 else
14575   echo "$as_me: failed program was:" >&5
14576 cat conftest.$ac_ext >&5
14577 fi
14578 rm -f conftest.$ac_objext
14579          CC="$CC -n32"
14580          rm -f conftest.$ac_objext
14581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14582   (eval $ac_compile) 2>&5
14583   ac_status=$?
14584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585   (exit $ac_status); } &&
14586          { ac_try='test -s conftest.$ac_objext'
14587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588   (eval $ac_try) 2>&5
14589   ac_status=$?
14590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591   (exit $ac_status); }; }; then
14592   ac_cv_sys_largefile_CC=' -n32'; break
14593 else
14594   echo "$as_me: failed program was:" >&5
14595 cat conftest.$ac_ext >&5
14596 fi
14597 rm -f conftest.$ac_objext
14598          break
14599        done
14600        CC=$ac_save_CC
14601        rm -f conftest.$ac_ext
14602     fi
14603 fi
14604 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
14605 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
14606   if test "$ac_cv_sys_largefile_CC" != no; then
14607     CC=$CC$ac_cv_sys_largefile_CC
14608   fi
14609
14610   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14611 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
14612 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
14613   echo $ECHO_N "(cached) $ECHO_C" >&6
14614 else
14615   while :; do
14616   ac_cv_sys_file_offset_bits=no
14617   cat >conftest.$ac_ext <<_ACEOF
14618 #line $LINENO "configure"
14619 #include "confdefs.h"
14620 #include <sys/types.h>
14621  /* Check that off_t can represent 2**63 - 1 correctly.
14622     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14623     since some C++ compilers masquerading as C compilers
14624     incorrectly reject 9223372036854775807.  */
14625 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14626   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14627                        && LARGE_OFF_T % 2147483647 == 1)
14628                       ? 1 : -1];
14629 #ifdef F77_DUMMY_MAIN
14630 #  ifdef __cplusplus
14631      extern "C"
14632 #  endif
14633    int F77_DUMMY_MAIN() { return 1; }
14634 #endif
14635 int
14636 main ()
14637 {
14638
14639   ;
14640   return 0;
14641 }
14642 _ACEOF
14643 rm -f conftest.$ac_objext
14644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14645   (eval $ac_compile) 2>&5
14646   ac_status=$?
14647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648   (exit $ac_status); } &&
14649          { ac_try='test -s conftest.$ac_objext'
14650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651   (eval $ac_try) 2>&5
14652   ac_status=$?
14653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654   (exit $ac_status); }; }; then
14655   break
14656 else
14657   echo "$as_me: failed program was:" >&5
14658 cat conftest.$ac_ext >&5
14659 fi
14660 rm -f conftest.$ac_objext conftest.$ac_ext
14661   cat >conftest.$ac_ext <<_ACEOF
14662 #line $LINENO "configure"
14663 #include "confdefs.h"
14664 #define _FILE_OFFSET_BITS 64
14665 #include <sys/types.h>
14666  /* Check that off_t can represent 2**63 - 1 correctly.
14667     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14668     since some C++ compilers masquerading as C compilers
14669     incorrectly reject 9223372036854775807.  */
14670 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14671   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14672                        && LARGE_OFF_T % 2147483647 == 1)
14673                       ? 1 : -1];
14674 #ifdef F77_DUMMY_MAIN
14675 #  ifdef __cplusplus
14676      extern "C"
14677 #  endif
14678    int F77_DUMMY_MAIN() { return 1; }
14679 #endif
14680 int
14681 main ()
14682 {
14683
14684   ;
14685   return 0;
14686 }
14687 _ACEOF
14688 rm -f conftest.$ac_objext
14689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14690   (eval $ac_compile) 2>&5
14691   ac_status=$?
14692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693   (exit $ac_status); } &&
14694          { ac_try='test -s conftest.$ac_objext'
14695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14696   (eval $ac_try) 2>&5
14697   ac_status=$?
14698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699   (exit $ac_status); }; }; then
14700   ac_cv_sys_file_offset_bits=64; break
14701 else
14702   echo "$as_me: failed program was:" >&5
14703 cat conftest.$ac_ext >&5
14704 fi
14705 rm -f conftest.$ac_objext conftest.$ac_ext
14706   break
14707 done
14708 fi
14709 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
14710 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
14711 if test "$ac_cv_sys_file_offset_bits" != no; then
14712
14713 cat >>confdefs.h <<_ACEOF
14714 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14715 _ACEOF
14716
14717 fi
14718 rm -f conftest*
14719   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
14720 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
14721 if test "${ac_cv_sys_large_files+set}" = set; then
14722   echo $ECHO_N "(cached) $ECHO_C" >&6
14723 else
14724   while :; do
14725   ac_cv_sys_large_files=no
14726   cat >conftest.$ac_ext <<_ACEOF
14727 #line $LINENO "configure"
14728 #include "confdefs.h"
14729 #include <sys/types.h>
14730  /* Check that off_t can represent 2**63 - 1 correctly.
14731     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14732     since some C++ compilers masquerading as C compilers
14733     incorrectly reject 9223372036854775807.  */
14734 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14735   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14736                        && LARGE_OFF_T % 2147483647 == 1)
14737                       ? 1 : -1];
14738 #ifdef F77_DUMMY_MAIN
14739 #  ifdef __cplusplus
14740      extern "C"
14741 #  endif
14742    int F77_DUMMY_MAIN() { return 1; }
14743 #endif
14744 int
14745 main ()
14746 {
14747
14748   ;
14749   return 0;
14750 }
14751 _ACEOF
14752 rm -f conftest.$ac_objext
14753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14754   (eval $ac_compile) 2>&5
14755   ac_status=$?
14756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757   (exit $ac_status); } &&
14758          { ac_try='test -s conftest.$ac_objext'
14759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760   (eval $ac_try) 2>&5
14761   ac_status=$?
14762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763   (exit $ac_status); }; }; then
14764   break
14765 else
14766   echo "$as_me: failed program was:" >&5
14767 cat conftest.$ac_ext >&5
14768 fi
14769 rm -f conftest.$ac_objext conftest.$ac_ext
14770   cat >conftest.$ac_ext <<_ACEOF
14771 #line $LINENO "configure"
14772 #include "confdefs.h"
14773 #define _LARGE_FILES 1
14774 #include <sys/types.h>
14775  /* Check that off_t can represent 2**63 - 1 correctly.
14776     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14777     since some C++ compilers masquerading as C compilers
14778     incorrectly reject 9223372036854775807.  */
14779 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14780   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14781                        && LARGE_OFF_T % 2147483647 == 1)
14782                       ? 1 : -1];
14783 #ifdef F77_DUMMY_MAIN
14784 #  ifdef __cplusplus
14785      extern "C"
14786 #  endif
14787    int F77_DUMMY_MAIN() { return 1; }
14788 #endif
14789 int
14790 main ()
14791 {
14792
14793   ;
14794   return 0;
14795 }
14796 _ACEOF
14797 rm -f conftest.$ac_objext
14798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14799   (eval $ac_compile) 2>&5
14800   ac_status=$?
14801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802   (exit $ac_status); } &&
14803          { ac_try='test -s conftest.$ac_objext'
14804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805   (eval $ac_try) 2>&5
14806   ac_status=$?
14807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808   (exit $ac_status); }; }; then
14809   ac_cv_sys_large_files=1; break
14810 else
14811   echo "$as_me: failed program was:" >&5
14812 cat conftest.$ac_ext >&5
14813 fi
14814 rm -f conftest.$ac_objext conftest.$ac_ext
14815   break
14816 done
14817 fi
14818 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
14819 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
14820 if test "$ac_cv_sys_large_files" != no; then
14821
14822 cat >>confdefs.h <<_ACEOF
14823 #define _LARGE_FILES $ac_cv_sys_large_files
14824 _ACEOF
14825
14826 fi
14827 rm -f conftest*
14828 fi
14829
14830 fi
14831
14832
14833 # Select semaphore implementation type.
14834 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
14835
14836 cat >>confdefs.h <<\_ACEOF
14837 #define USE_NAMED_POSIX_SEMAPHORES 1
14838 _ACEOF
14839
14840   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
14841 else
14842   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
14843
14844 cat >>confdefs.h <<\_ACEOF
14845 #define USE_UNNAMED_POSIX_SEMAPHORES 1
14846 _ACEOF
14847
14848     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
14849   else
14850
14851 cat >>confdefs.h <<\_ACEOF
14852 #define USE_SYSV_SEMAPHORES 1
14853 _ACEOF
14854
14855     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
14856   fi
14857 fi
14858
14859
14860 # Select shared-memory implementation type.
14861
14862 cat >>confdefs.h <<\_ACEOF
14863 #define USE_SYSV_SHARED_MEMORY 1
14864 _ACEOF
14865
14866 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
14867
14868
14869 if test "$enable_nls" = yes ; then
14870
14871   echo "$as_me:$LINENO: checking for library containing gettext" >&5
14872 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
14873 if test "${ac_cv_search_gettext+set}" = set; then
14874   echo $ECHO_N "(cached) $ECHO_C" >&6
14875 else
14876   ac_func_search_save_LIBS=$LIBS
14877 ac_cv_search_gettext=no
14878 cat >conftest.$ac_ext <<_ACEOF
14879 #line $LINENO "configure"
14880 #include "confdefs.h"
14881
14882 /* Override any gcc2 internal prototype to avoid an error.  */
14883 #ifdef __cplusplus
14884 extern "C"
14885 #endif
14886 /* We use char because int might match the return type of a gcc2
14887    builtin and then its argument prototype would still apply.  */
14888 char gettext ();
14889 #ifdef F77_DUMMY_MAIN
14890 #  ifdef __cplusplus
14891      extern "C"
14892 #  endif
14893    int F77_DUMMY_MAIN() { return 1; }
14894 #endif
14895 int
14896 main ()
14897 {
14898 gettext ();
14899   ;
14900   return 0;
14901 }
14902 _ACEOF
14903 rm -f conftest.$ac_objext conftest$ac_exeext
14904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14905   (eval $ac_link) 2>&5
14906   ac_status=$?
14907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908   (exit $ac_status); } &&
14909          { ac_try='test -s 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   ac_cv_search_gettext="none required"
14916 else
14917   echo "$as_me: failed program was:" >&5
14918 cat conftest.$ac_ext >&5
14919 fi
14920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14921 if test "$ac_cv_search_gettext" = no; then
14922   for ac_lib in intl; do
14923     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14924     cat >conftest.$ac_ext <<_ACEOF
14925 #line $LINENO "configure"
14926 #include "confdefs.h"
14927
14928 /* Override any gcc2 internal prototype to avoid an error.  */
14929 #ifdef __cplusplus
14930 extern "C"
14931 #endif
14932 /* We use char because int might match the return type of a gcc2
14933    builtin and then its argument prototype would still apply.  */
14934 char gettext ();
14935 #ifdef F77_DUMMY_MAIN
14936 #  ifdef __cplusplus
14937      extern "C"
14938 #  endif
14939    int F77_DUMMY_MAIN() { return 1; }
14940 #endif
14941 int
14942 main ()
14943 {
14944 gettext ();
14945   ;
14946   return 0;
14947 }
14948 _ACEOF
14949 rm -f conftest.$ac_objext conftest$ac_exeext
14950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14951   (eval $ac_link) 2>&5
14952   ac_status=$?
14953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954   (exit $ac_status); } &&
14955          { ac_try='test -s conftest$ac_exeext'
14956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14957   (eval $ac_try) 2>&5
14958   ac_status=$?
14959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960   (exit $ac_status); }; }; then
14961   ac_cv_search_gettext="-l$ac_lib"
14962 break
14963 else
14964   echo "$as_me: failed program was:" >&5
14965 cat conftest.$ac_ext >&5
14966 fi
14967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14968   done
14969 fi
14970 LIBS=$ac_func_search_save_LIBS
14971 fi
14972 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
14973 echo "${ECHO_T}$ac_cv_search_gettext" >&6
14974 if test "$ac_cv_search_gettext" != no; then
14975   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
14976
14977 else
14978   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
14979 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
14980    { (exit 1); exit 1; }; }
14981 fi
14982
14983   if test "${ac_cv_header_libintl_h+set}" = set; then
14984   echo "$as_me:$LINENO: checking for libintl.h" >&5
14985 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
14986 if test "${ac_cv_header_libintl_h+set}" = set; then
14987   echo $ECHO_N "(cached) $ECHO_C" >&6
14988 fi
14989 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14990 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
14991 else
14992   # Is the header compilable?
14993 echo "$as_me:$LINENO: checking libintl.h usability" >&5
14994 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
14995 cat >conftest.$ac_ext <<_ACEOF
14996 #line $LINENO "configure"
14997 #include "confdefs.h"
14998 $ac_includes_default
14999 #include <libintl.h>
15000 _ACEOF
15001 rm -f conftest.$ac_objext
15002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15003   (eval $ac_compile) 2>&5
15004   ac_status=$?
15005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006   (exit $ac_status); } &&
15007          { ac_try='test -s conftest.$ac_objext'
15008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15009   (eval $ac_try) 2>&5
15010   ac_status=$?
15011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012   (exit $ac_status); }; }; then
15013   ac_header_compiler=yes
15014 else
15015   echo "$as_me: failed program was:" >&5
15016 cat conftest.$ac_ext >&5
15017 ac_header_compiler=no
15018 fi
15019 rm -f conftest.$ac_objext conftest.$ac_ext
15020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15021 echo "${ECHO_T}$ac_header_compiler" >&6
15022
15023 # Is the header present?
15024 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15025 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15026 cat >conftest.$ac_ext <<_ACEOF
15027 #line $LINENO "configure"
15028 #include "confdefs.h"
15029 #include <libintl.h>
15030 _ACEOF
15031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15032   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15033   ac_status=$?
15034   egrep -v '^ *\+' conftest.er1 >conftest.err
15035   rm -f conftest.er1
15036   cat conftest.err >&5
15037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038   (exit $ac_status); } >/dev/null; then
15039   if test -s conftest.err; then
15040     ac_cpp_err=$ac_c_preproc_warn_flag
15041   else
15042     ac_cpp_err=
15043   fi
15044 else
15045   ac_cpp_err=yes
15046 fi
15047 if test -z "$ac_cpp_err"; then
15048   ac_header_preproc=yes
15049 else
15050   echo "$as_me: failed program was:" >&5
15051   cat conftest.$ac_ext >&5
15052   ac_header_preproc=no
15053 fi
15054 rm -f conftest.err conftest.$ac_ext
15055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15056 echo "${ECHO_T}$ac_header_preproc" >&6
15057
15058 # So?  What about this header?
15059 case $ac_header_compiler:$ac_header_preproc in
15060   yes:no )
15061     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15062 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15063     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15064 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15065   no:yes )
15066     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15067 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15068     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15069 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15070     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15071 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15072 esac
15073 echo "$as_me:$LINENO: checking for libintl.h" >&5
15074 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15075 if test "${ac_cv_header_libintl_h+set}" = set; then
15076   echo $ECHO_N "(cached) $ECHO_C" >&6
15077 else
15078   ac_cv_header_libintl_h=$ac_header_preproc
15079 fi
15080 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15081 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15082
15083 fi
15084 if test $ac_cv_header_libintl_h = yes; then
15085   :
15086 else
15087   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15088 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15089    { (exit 1); exit 1; }; }
15090 fi
15091
15092
15093   for ac_prog in msgfmt
15094 do
15095   # Extract the first word of "$ac_prog", so it can be a program name with args.
15096 set dummy $ac_prog; ac_word=$2
15097 echo "$as_me:$LINENO: checking for $ac_word" >&5
15098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15099 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15100   echo $ECHO_N "(cached) $ECHO_C" >&6
15101 else
15102   if test -n "$MSGFMT"; then
15103   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15104 else
15105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15106 for as_dir in $PATH
15107 do
15108   IFS=$as_save_IFS
15109   test -z "$as_dir" && as_dir=.
15110   for ac_exec_ext in '' $ac_executable_extensions; do
15111   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15112     ac_cv_prog_MSGFMT="$ac_prog"
15113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15114     break 2
15115   fi
15116 done
15117 done
15118
15119 fi
15120 fi
15121 MSGFMT=$ac_cv_prog_MSGFMT
15122 if test -n "$MSGFMT"; then
15123   echo "$as_me:$LINENO: result: $MSGFMT" >&5
15124 echo "${ECHO_T}$MSGFMT" >&6
15125 else
15126   echo "$as_me:$LINENO: result: no" >&5
15127 echo "${ECHO_T}no" >&6
15128 fi
15129
15130   test -n "$MSGFMT" && break
15131 done
15132
15133   if test -z "$MSGFMT"; then
15134     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15135 echo "$as_me: error: msgfmt is required for NLS" >&2;}
15136    { (exit 1); exit 1; }; }
15137   fi
15138   for ac_prog in msgmerge
15139 do
15140   # Extract the first word of "$ac_prog", so it can be a program name with args.
15141 set dummy $ac_prog; ac_word=$2
15142 echo "$as_me:$LINENO: checking for $ac_word" >&5
15143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15144 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
15145   echo $ECHO_N "(cached) $ECHO_C" >&6
15146 else
15147   if test -n "$MSGMERGE"; then
15148   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15149 else
15150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15151 for as_dir in $PATH
15152 do
15153   IFS=$as_save_IFS
15154   test -z "$as_dir" && as_dir=.
15155   for ac_exec_ext in '' $ac_executable_extensions; do
15156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15157     ac_cv_prog_MSGMERGE="$ac_prog"
15158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15159     break 2
15160   fi
15161 done
15162 done
15163
15164 fi
15165 fi
15166 MSGMERGE=$ac_cv_prog_MSGMERGE
15167 if test -n "$MSGMERGE"; then
15168   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15169 echo "${ECHO_T}$MSGMERGE" >&6
15170 else
15171   echo "$as_me:$LINENO: result: no" >&5
15172 echo "${ECHO_T}no" >&6
15173 fi
15174
15175   test -n "$MSGMERGE" && break
15176 done
15177
15178   for ac_prog in xgettext
15179 do
15180   # Extract the first word of "$ac_prog", so it can be a program name with args.
15181 set dummy $ac_prog; ac_word=$2
15182 echo "$as_me:$LINENO: checking for $ac_word" >&5
15183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15184 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
15185   echo $ECHO_N "(cached) $ECHO_C" >&6
15186 else
15187   if test -n "$XGETTEXT"; then
15188   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
15189 else
15190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15191 for as_dir in $PATH
15192 do
15193   IFS=$as_save_IFS
15194   test -z "$as_dir" && as_dir=.
15195   for ac_exec_ext in '' $ac_executable_extensions; do
15196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15197     ac_cv_prog_XGETTEXT="$ac_prog"
15198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15199     break 2
15200   fi
15201 done
15202 done
15203
15204 fi
15205 fi
15206 XGETTEXT=$ac_cv_prog_XGETTEXT
15207 if test -n "$XGETTEXT"; then
15208   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15209 echo "${ECHO_T}$XGETTEXT" >&6
15210 else
15211   echo "$as_me:$LINENO: result: no" >&5
15212 echo "${ECHO_T}no" >&6
15213 fi
15214
15215   test -n "$XGETTEXT" && break
15216 done
15217
15218
15219   # Note: share/locale is always the default, independent of $datadir
15220   localedir='${prefix}/share/locale'
15221   if test x"$prefix" = x"NONE"; then
15222     exp_localedir="$ac_default_prefix/share/locale"
15223   else
15224     exp_localedir="$prefix/share/locale"
15225   fi
15226
15227
15228
15229 cat >>confdefs.h <<_ACEOF
15230 #define LOCALEDIR "$exp_localedir"
15231 _ACEOF
15232
15233
15234 fi
15235
15236 # Check for Tcl configuration script tclConfig.sh
15237 if test "$with_tcl" = yes; then
15238     for ac_prog in tclsh tcl
15239 do
15240   # Extract the first word of "$ac_prog", so it can be a program name with args.
15241 set dummy $ac_prog; ac_word=$2
15242 echo "$as_me:$LINENO: checking for $ac_word" >&5
15243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15244 if test "${ac_cv_path_TCLSH+set}" = set; then
15245   echo $ECHO_N "(cached) $ECHO_C" >&6
15246 else
15247   case $TCLSH in
15248   [\\/]* | ?:[\\/]*)
15249   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
15250   ;;
15251   *)
15252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15253 for as_dir in $PATH
15254 do
15255   IFS=$as_save_IFS
15256   test -z "$as_dir" && as_dir=.
15257   for ac_exec_ext in '' $ac_executable_extensions; do
15258   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15259     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
15260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15261     break 2
15262   fi
15263 done
15264 done
15265
15266   ;;
15267 esac
15268 fi
15269 TCLSH=$ac_cv_path_TCLSH
15270
15271 if test -n "$TCLSH"; then
15272   echo "$as_me:$LINENO: result: $TCLSH" >&5
15273 echo "${ECHO_T}$TCLSH" >&6
15274 else
15275   echo "$as_me:$LINENO: result: no" >&5
15276 echo "${ECHO_T}no" >&6
15277 fi
15278
15279   test -n "$TCLSH" && break
15280 done
15281
15282 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
15283 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
15284 # Let user override test
15285 if test -z "$TCL_CONFIG_SH"; then
15286     pgac_test_dirs="$with_tclconfig"
15287
15288     set X $pgac_test_dirs; shift
15289     if test $# -eq 0; then
15290         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
15291 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
15292    { (exit 1); exit 1; }; }
15293         set X `echo 'puts $auto_path' | $TCLSH`; shift
15294     fi
15295
15296     for pgac_dir do
15297         if test -r "$pgac_dir/tclConfig.sh"; then
15298             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
15299             break
15300         fi
15301     done
15302 fi
15303
15304 if test -z "$TCL_CONFIG_SH"; then
15305     echo "$as_me:$LINENO: result: no" >&5
15306 echo "${ECHO_T}no" >&6
15307     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
15308 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
15309    { (exit 1); exit 1; }; }
15310 else
15311     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
15312 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
15313 fi
15314
15315
15316
15317     . "$TCL_CONFIG_SH"
15318 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
15319 eval TCL_LIBS=\"$TCL_LIBS\"
15320 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
15321 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
15322
15323     fi
15324
15325 # Check for Tk configuration script tkConfig.sh
15326 if test "$with_tk" = yes; then
15327     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
15328 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
15329 # Let user override test
15330 if test -z "$TK_CONFIG_SH"; then
15331     pgac_test_dirs="$with_tkconfig $with_tclconfig"
15332
15333     set X $pgac_test_dirs; shift
15334     if test $# -eq 0; then
15335         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
15336 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
15337    { (exit 1); exit 1; }; }
15338         set X `echo 'puts $auto_path' | $TCLSH`; shift
15339     fi
15340
15341     for pgac_dir do
15342         if test -r "$pgac_dir/tkConfig.sh"; then
15343             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
15344             break
15345         fi
15346     done
15347 fi
15348
15349 if test -z "$TK_CONFIG_SH"; then
15350     echo "$as_me:$LINENO: result: no" >&5
15351 echo "${ECHO_T}no" >&6
15352     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
15353 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
15354    { (exit 1); exit 1; }; }
15355 else
15356     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
15357 echo "${ECHO_T}$TK_CONFIG_SH" >&6
15358 fi
15359
15360
15361
15362     . "$TK_CONFIG_SH"
15363 eval TK_LIBS=\"$TK_LIBS\"
15364 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
15365 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
15366
15367 fi
15368
15369
15370 #
15371 # Check for DocBook and tools
15372 #
15373 for ac_prog in onsgmls nsgmls
15374 do
15375   # Extract the first word of "$ac_prog", so it can be a program name with args.
15376 set dummy $ac_prog; ac_word=$2
15377 echo "$as_me:$LINENO: checking for $ac_word" >&5
15378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15379 if test "${ac_cv_prog_NSGMLS+set}" = set; then
15380   echo $ECHO_N "(cached) $ECHO_C" >&6
15381 else
15382   if test -n "$NSGMLS"; then
15383   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
15384 else
15385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15386 for as_dir in $PATH
15387 do
15388   IFS=$as_save_IFS
15389   test -z "$as_dir" && as_dir=.
15390   for ac_exec_ext in '' $ac_executable_extensions; do
15391   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15392     ac_cv_prog_NSGMLS="$ac_prog"
15393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15394     break 2
15395   fi
15396 done
15397 done
15398
15399 fi
15400 fi
15401 NSGMLS=$ac_cv_prog_NSGMLS
15402 if test -n "$NSGMLS"; then
15403   echo "$as_me:$LINENO: result: $NSGMLS" >&5
15404 echo "${ECHO_T}$NSGMLS" >&6
15405 else
15406   echo "$as_me:$LINENO: result: no" >&5
15407 echo "${ECHO_T}no" >&6
15408 fi
15409
15410   test -n "$NSGMLS" && break
15411 done
15412
15413 for ac_prog in openjade jade
15414 do
15415   # Extract the first word of "$ac_prog", so it can be a program name with args.
15416 set dummy $ac_prog; ac_word=$2
15417 echo "$as_me:$LINENO: checking for $ac_word" >&5
15418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15419 if test "${ac_cv_prog_JADE+set}" = set; then
15420   echo $ECHO_N "(cached) $ECHO_C" >&6
15421 else
15422   if test -n "$JADE"; then
15423   ac_cv_prog_JADE="$JADE" # Let the user override the test.
15424 else
15425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15426 for as_dir in $PATH
15427 do
15428   IFS=$as_save_IFS
15429   test -z "$as_dir" && as_dir=.
15430   for ac_exec_ext in '' $ac_executable_extensions; do
15431   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15432     ac_cv_prog_JADE="$ac_prog"
15433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15434     break 2
15435   fi
15436 done
15437 done
15438
15439 fi
15440 fi
15441 JADE=$ac_cv_prog_JADE
15442 if test -n "$JADE"; then
15443   echo "$as_me:$LINENO: result: $JADE" >&5
15444 echo "${ECHO_T}$JADE" >&6
15445 else
15446   echo "$as_me:$LINENO: result: no" >&5
15447 echo "${ECHO_T}no" >&6
15448 fi
15449
15450   test -n "$JADE" && break
15451 done
15452
15453
15454 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
15455 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
15456 if test "${pgac_cv_check_docbook+set}" = set; then
15457   echo $ECHO_N "(cached) $ECHO_C" >&6
15458 else
15459   cat >conftest.sgml <<EOF
15460 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
15461 <book>
15462  <title>test</title>
15463  <chapter>
15464   <title>random</title>
15465    <sect1>
15466     <title>testsect</title>
15467     <para>text</para>
15468   </sect1>
15469  </chapter>
15470 </book>
15471 EOF
15472
15473 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
15474 if test $? -eq 0; then
15475   pgac_cv_check_docbook=yes
15476 else
15477   pgac_cv_check_docbook=no
15478 fi
15479 rm -f conftest.sgml
15480 fi
15481 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
15482 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
15483
15484 have_docbook=$pgac_cv_check_docbook
15485
15486
15487 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
15488 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
15489 if test "${pgac_cv_path_stylesheets+set}" = set; then
15490   echo $ECHO_N "(cached) $ECHO_C" >&6
15491 else
15492   if test -n "$DOCBOOKSTYLE"; then
15493   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
15494 else
15495   for pgac_prefix in /usr /usr/local /opt; do
15496     for pgac_infix in share lib; do
15497       for pgac_postfix in \
15498         sgml/stylesheets/nwalsh-modular \
15499         sgml/stylesheets/docbook \
15500         sgml/docbook/dsssl/modular \
15501         sgml/docbook/stylesheet/dsssl/modular \
15502         sgml/docbook/dsssl-stylesheets
15503       do
15504         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
15505         if test -r "$pgac_candidate/html/docbook.dsl" \
15506            && test -r "$pgac_candidate/print/docbook.dsl"
15507         then
15508           pgac_cv_path_stylesheets=$pgac_candidate
15509           break 3
15510         fi
15511       done
15512     done
15513   done
15514 fi
15515 fi
15516
15517 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
15518
15519 if test -n "$DOCBOOKSTYLE"; then
15520   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
15521 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
15522 else
15523   echo "$as_me:$LINENO: result: no" >&5
15524 echo "${ECHO_T}no" >&6
15525 fi
15526 if test -n "$DOCBOOKSTYLE"; then
15527   for ac_prog in collateindex.pl
15528 do
15529   # Extract the first word of "$ac_prog", so it can be a program name with args.
15530 set dummy $ac_prog; ac_word=$2
15531 echo "$as_me:$LINENO: checking for $ac_word" >&5
15532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15533 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
15534   echo $ECHO_N "(cached) $ECHO_C" >&6
15535 else
15536   case $COLLATEINDEX in
15537   [\\/]* | ?:[\\/]*)
15538   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
15539   ;;
15540   *)
15541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15542 for as_dir in $DOCBOOKSTYLE/bin $PATH
15543 do
15544   IFS=$as_save_IFS
15545   test -z "$as_dir" && as_dir=.
15546   for ac_exec_ext in '' $ac_executable_extensions; do
15547   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15548     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
15549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15550     break 2
15551   fi
15552 done
15553 done
15554
15555   ;;
15556 esac
15557 fi
15558 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
15559
15560 if test -n "$COLLATEINDEX"; then
15561   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
15562 echo "${ECHO_T}$COLLATEINDEX" >&6
15563 else
15564   echo "$as_me:$LINENO: result: no" >&5
15565 echo "${ECHO_T}no" >&6
15566 fi
15567
15568   test -n "$COLLATEINDEX" && break
15569 done
15570
15571 else
15572   for ac_prog in collateindex.pl
15573 do
15574   # Extract the first word of "$ac_prog", so it can be a program name with args.
15575 set dummy $ac_prog; ac_word=$2
15576 echo "$as_me:$LINENO: checking for $ac_word" >&5
15577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15578 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
15579   echo $ECHO_N "(cached) $ECHO_C" >&6
15580 else
15581   case $COLLATEINDEX in
15582   [\\/]* | ?:[\\/]*)
15583   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
15584   ;;
15585   *)
15586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15587 for as_dir in $PATH
15588 do
15589   IFS=$as_save_IFS
15590   test -z "$as_dir" && as_dir=.
15591   for ac_exec_ext in '' $ac_executable_extensions; do
15592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15593     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
15594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15595     break 2
15596   fi
15597 done
15598 done
15599
15600   ;;
15601 esac
15602 fi
15603 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
15604
15605 if test -n "$COLLATEINDEX"; then
15606   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
15607 echo "${ECHO_T}$COLLATEINDEX" >&6
15608 else
15609   echo "$as_me:$LINENO: result: no" >&5
15610 echo "${ECHO_T}no" >&6
15611 fi
15612
15613   test -n "$COLLATEINDEX" && break
15614 done
15615
15616 fi
15617 for ac_prog in sgmlspl
15618 do
15619   # Extract the first word of "$ac_prog", so it can be a program name with args.
15620 set dummy $ac_prog; ac_word=$2
15621 echo "$as_me:$LINENO: checking for $ac_word" >&5
15622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15623 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
15624   echo $ECHO_N "(cached) $ECHO_C" >&6
15625 else
15626   if test -n "$SGMLSPL"; then
15627   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
15628 else
15629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15630 for as_dir in $PATH
15631 do
15632   IFS=$as_save_IFS
15633   test -z "$as_dir" && as_dir=.
15634   for ac_exec_ext in '' $ac_executable_extensions; do
15635   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15636     ac_cv_prog_SGMLSPL="$ac_prog"
15637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15638     break 2
15639   fi
15640 done
15641 done
15642
15643 fi
15644 fi
15645 SGMLSPL=$ac_cv_prog_SGMLSPL
15646 if test -n "$SGMLSPL"; then
15647   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
15648 echo "${ECHO_T}$SGMLSPL" >&6
15649 else
15650   echo "$as_me:$LINENO: result: no" >&5
15651 echo "${ECHO_T}no" >&6
15652 fi
15653
15654   test -n "$SGMLSPL" && break
15655 done
15656
15657
15658
15659 # prepare build tree if outside source tree
15660 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
15661 # Note 2: /bin/pwd might be better than shell's built-in at getting
15662 #         a symlink-free name.
15663 if test "$no_create" != yes; then
15664   if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
15665     :
15666   else
15667     vpath_build=yes
15668
15669     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
15670     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
15671     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
15672       || { { echo "$as_me:$LINENO: error: failed" >&5
15673 echo "$as_me: error: failed" >&2;}
15674    { (exit 1); exit 1; }; }
15675     echo "$as_me:$LINENO: result: done" >&5
15676 echo "${ECHO_T}done" >&6
15677   fi
15678 fi
15679
15680
15681 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
15682
15683
15684 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}"
15685
15686
15687 ac_config_headers="$ac_config_headers src/include/pg_config.h"
15688
15689
15690 cat >confcache <<\_ACEOF
15691 # This file is a shell script that caches the results of configure
15692 # tests run on this system so they can be shared between configure
15693 # scripts and configure runs, see configure's option --config-cache.
15694 # It is not useful on other systems.  If it contains results you don't
15695 # want to keep, you may remove or edit it.
15696 #
15697 # config.status only pays attention to the cache file if you give it
15698 # the --recheck option to rerun configure.
15699 #
15700 # `ac_cv_env_foo' variables (set or unset) will be overriden when
15701 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15702 # following values.
15703
15704 _ACEOF
15705
15706 # The following way of writing the cache mishandles newlines in values,
15707 # but we know of no workaround that is simple, portable, and efficient.
15708 # So, don't put newlines in cache variables' values.
15709 # Ultrix sh set writes to stderr and can't be redirected directly,
15710 # and sets the high bit in the cache file unless we assign to the vars.
15711 {
15712   (set) 2>&1 |
15713     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15714     *ac_space=\ *)
15715       # `set' does not quote correctly, so add quotes (double-quote
15716       # substitution turns \\\\ into \\, and sed turns \\ into \).
15717       sed -n \
15718         "s/'/'\\\\''/g;
15719           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15720       ;;
15721     *)
15722       # `set' quotes correctly as required by POSIX, so do not add quotes.
15723       sed -n \
15724         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15725       ;;
15726     esac;
15727 } |
15728   sed '
15729      t clear
15730      : clear
15731      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15732      t end
15733      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15734      : end' >>confcache
15735 if cmp -s $cache_file confcache; then :; else
15736   if test -w $cache_file; then
15737     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15738     cat confcache >$cache_file
15739   else
15740     echo "not updating unwritable cache $cache_file"
15741   fi
15742 fi
15743 rm -f confcache
15744
15745 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15746 # Let make expand exec_prefix.
15747 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15748
15749 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15750 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15751 # trailing colons and then remove the whole line if VPATH becomes empty
15752 # (actually we leave an empty line to preserve line numbers).
15753 if test "x$srcdir" = x.; then
15754   ac_vpsub='/^[         ]*VPATH[        ]*=/{
15755 s/:*\$(srcdir):*/:/;
15756 s/:*\${srcdir}:*/:/;
15757 s/:*@srcdir@:*/:/;
15758 s/^\([^=]*=[    ]*\):*/\1/;
15759 s/:*$//;
15760 s/^[^=]*=[      ]*$//;
15761 }'
15762 fi
15763
15764 DEFS=-DHAVE_CONFIG_H
15765
15766
15767 : ${CONFIG_STATUS=./config.status}
15768 ac_clean_files_save=$ac_clean_files
15769 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15770 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15771 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15772 cat >$CONFIG_STATUS <<_ACEOF
15773 #! $SHELL
15774 # Generated by $as_me.
15775 # Run this file to recreate the current configuration.
15776 # Compiler output produced by configure, useful for debugging
15777 # configure, is in config.log if it exists.
15778
15779 debug=false
15780 SHELL=\${CONFIG_SHELL-$SHELL}
15781 _ACEOF
15782
15783 cat >>$CONFIG_STATUS <<\_ACEOF
15784
15785 ## --------------------- ##
15786 ## M4sh Initialization.  ##
15787 ## --------------------- ##
15788
15789 # Be Bourne compatible
15790 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15791   emulate sh
15792   NULLCMD=:
15793 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15794   set -o posix
15795 fi
15796
15797 # NLS nuisances.
15798 # Support unset when possible.
15799 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15800   as_unset=unset
15801 else
15802   as_unset=false
15803 fi
15804
15805 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
15806     { $as_unset LANG || test "${LANG+set}" != set; } ||
15807       { LANG=C; export LANG; }
15808 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
15809     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
15810       { LC_ALL=C; export LC_ALL; }
15811 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
15812     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
15813       { LC_TIME=C; export LC_TIME; }
15814 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
15815     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
15816       { LC_CTYPE=C; export LC_CTYPE; }
15817 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
15818     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
15819       { LANGUAGE=C; export LANGUAGE; }
15820 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
15821     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
15822       { LC_COLLATE=C; export LC_COLLATE; }
15823 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
15824     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
15825       { LC_NUMERIC=C; export LC_NUMERIC; }
15826 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
15827     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
15828       { LC_MESSAGES=C; export LC_MESSAGES; }
15829
15830
15831 # Name of the executable.
15832 as_me=`(basename "$0") 2>/dev/null ||
15833 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15834          X"$0" : 'X\(//\)$' \| \
15835          X"$0" : 'X\(/\)$' \| \
15836          .     : '\(.\)' 2>/dev/null ||
15837 echo X/"$0" |
15838     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15839           /^X\/\(\/\/\)$/{ s//\1/; q; }
15840           /^X\/\(\/\).*/{ s//\1/; q; }
15841           s/.*/./; q'`
15842
15843 # PATH needs CR, and LINENO needs CR and PATH.
15844 # Avoid depending upon Character Ranges.
15845 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15846 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15847 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15848 as_cr_digits='0123456789'
15849 as_cr_alnum=$as_cr_Letters$as_cr_digits
15850
15851 # The user is always right.
15852 if test "${PATH_SEPARATOR+set}" != set; then
15853   echo "#! /bin/sh" >conftest.sh
15854   echo  "exit 0"   >>conftest.sh
15855   chmod +x conftest.sh
15856   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
15857     PATH_SEPARATOR=';'
15858   else
15859     PATH_SEPARATOR=:
15860   fi
15861   rm -f conftest.sh
15862 fi
15863
15864
15865   as_lineno_1=$LINENO
15866   as_lineno_2=$LINENO
15867   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15868   test "x$as_lineno_1" != "x$as_lineno_2" &&
15869   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15870   # Find who we are.  Look in the path if we contain no path at all
15871   # relative or not.
15872   case $0 in
15873     *[\\/]* ) as_myself=$0 ;;
15874     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15875 for as_dir in $PATH
15876 do
15877   IFS=$as_save_IFS
15878   test -z "$as_dir" && as_dir=.
15879   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15880 done
15881
15882        ;;
15883   esac
15884   # We did not find ourselves, most probably we were run as `sh COMMAND'
15885   # in which case we are not to be found in the path.
15886   if test "x$as_myself" = x; then
15887     as_myself=$0
15888   fi
15889   if test ! -f "$as_myself"; then
15890     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15891 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15892    { (exit 1); exit 1; }; }
15893   fi
15894   case $CONFIG_SHELL in
15895   '')
15896     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15897 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15898 do
15899   IFS=$as_save_IFS
15900   test -z "$as_dir" && as_dir=.
15901   for as_base in sh bash ksh sh5; do
15902          case $as_dir in
15903          /*)
15904            if ("$as_dir/$as_base" -c '
15905   as_lineno_1=$LINENO
15906   as_lineno_2=$LINENO
15907   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15908   test "x$as_lineno_1" != "x$as_lineno_2" &&
15909   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15910              CONFIG_SHELL=$as_dir/$as_base
15911              export CONFIG_SHELL
15912              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15913            fi;;
15914          esac
15915        done
15916 done
15917 ;;
15918   esac
15919
15920   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15921   # uniformly replaced by the line number.  The first 'sed' inserts a
15922   # line-number line before each line; the second 'sed' does the real
15923   # work.  The second script uses 'N' to pair each line-number line
15924   # with the numbered line, and appends trailing '-' during
15925   # substitution so that $LINENO is not a special case at line end.
15926   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15927   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15928   sed '=' <$as_myself |
15929     sed '
15930       N
15931       s,$,-,
15932       : loop
15933       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15934       t loop
15935       s,-$,,
15936       s,^['$as_cr_digits']*\n,,
15937     ' >$as_me.lineno &&
15938   chmod +x $as_me.lineno ||
15939     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15940 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15941    { (exit 1); exit 1; }; }
15942
15943   # Don't try to exec as it changes $[0], causing all sort of problems
15944   # (the dirname of $[0] is not the place where we might find the
15945   # original and so on.  Autoconf is especially sensible to this).
15946   . ./$as_me.lineno
15947   # Exit status is that of the last command.
15948   exit
15949 }
15950
15951
15952 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15953   *c*,-n*) ECHO_N= ECHO_C='
15954 ' ECHO_T='      ' ;;
15955   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15956   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15957 esac
15958
15959 if expr a : '\(a\)' >/dev/null 2>&1; then
15960   as_expr=expr
15961 else
15962   as_expr=false
15963 fi
15964
15965 rm -f conf$$ conf$$.exe conf$$.file
15966 echo >conf$$.file
15967 if ln -s conf$$.file conf$$ 2>/dev/null; then
15968   # We could just check for DJGPP; but this test a) works b) is more generic
15969   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15970   if test -f conf$$.exe; then
15971     # Don't use ln at all; we don't have any links
15972     as_ln_s='cp -p'
15973   else
15974     as_ln_s='ln -s'
15975   fi
15976 elif ln conf$$.file conf$$ 2>/dev/null; then
15977   as_ln_s=ln
15978 else
15979   as_ln_s='cp -p'
15980 fi
15981 rm -f conf$$ conf$$.exe conf$$.file
15982
15983 as_executable_p="test -f"
15984
15985 # Sed expression to map a string onto a valid CPP name.
15986 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15987
15988 # Sed expression to map a string onto a valid variable name.
15989 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15990
15991
15992 # IFS
15993 # We need space, tab and new line, in precisely that order.
15994 as_nl='
15995 '
15996 IFS="   $as_nl"
15997
15998 # CDPATH.
15999 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16000
16001 exec 6>&1
16002
16003 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16004 # report actual input values of CONFIG_FILES etc. instead of their
16005 # values after options handling.  Logging --version etc. is OK.
16006 exec 5>>config.log
16007 {
16008   echo
16009   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16010 ## Running $as_me. ##
16011 _ASBOX
16012 } >&5
16013 cat >&5 <<_CSEOF
16014
16015 This file was extended by PostgreSQL $as_me 7.3b1, which was
16016 generated by GNU Autoconf 2.53.  Invocation command line was
16017
16018   CONFIG_FILES    = $CONFIG_FILES
16019   CONFIG_HEADERS  = $CONFIG_HEADERS
16020   CONFIG_LINKS    = $CONFIG_LINKS
16021   CONFIG_COMMANDS = $CONFIG_COMMANDS
16022   $ $0 $@
16023
16024 _CSEOF
16025 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16026 echo >&5
16027 _ACEOF
16028
16029 # Files that config.status was made for.
16030 if test -n "$ac_config_files"; then
16031   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16032 fi
16033
16034 if test -n "$ac_config_headers"; then
16035   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16036 fi
16037
16038 if test -n "$ac_config_links"; then
16039   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16040 fi
16041
16042 if test -n "$ac_config_commands"; then
16043   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16044 fi
16045
16046 cat >>$CONFIG_STATUS <<\_ACEOF
16047
16048 ac_cs_usage="\
16049 \`$as_me' instantiates files from templates according to the
16050 current configuration.
16051
16052 Usage: $0 [OPTIONS] [FILE]...
16053
16054   -h, --help       print this help, then exit
16055   -V, --version    print version number, then exit
16056   -d, --debug      don't remove temporary files
16057       --recheck    update $as_me by reconfiguring in the same conditions
16058   --file=FILE[:TEMPLATE]
16059                    instantiate the configuration file FILE
16060   --header=FILE[:TEMPLATE]
16061                    instantiate the configuration header FILE
16062
16063 Configuration files:
16064 $config_files
16065
16066 Configuration headers:
16067 $config_headers
16068
16069 Configuration links:
16070 $config_links
16071
16072 Report bugs to <bug-autoconf@gnu.org>."
16073 _ACEOF
16074
16075 cat >>$CONFIG_STATUS <<_ACEOF
16076 ac_cs_version="\\
16077 PostgreSQL config.status 7.3b1
16078 configured by $0, generated by GNU Autoconf 2.53,
16079   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16080
16081 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16082 Free Software Foundation, Inc.
16083 This config.status script is free software; the Free Software Foundation
16084 gives unlimited permission to copy, distribute and modify it."
16085 srcdir=$srcdir
16086 _ACEOF
16087
16088 cat >>$CONFIG_STATUS <<\_ACEOF
16089 # If no file are specified by the user, then we need to provide default
16090 # value.  By we need to know if files were specified by the user.
16091 ac_need_defaults=:
16092 while test $# != 0
16093 do
16094   case $1 in
16095   --*=*)
16096     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16097     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16098     shift
16099     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16100     shift
16101     ;;
16102   -*);;
16103   *) # This is not an option, so the user has probably given explicit
16104      # arguments.
16105      ac_need_defaults=false;;
16106   esac
16107
16108   case $1 in
16109   # Handling of the options.
16110 _ACEOF
16111 cat >>$CONFIG_STATUS <<_ACEOF
16112   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16113     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16114     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16115 _ACEOF
16116 cat >>$CONFIG_STATUS <<\_ACEOF
16117   --version | --vers* | -V )
16118     echo "$ac_cs_version"; exit 0 ;;
16119   --he | --h)
16120     # Conflict between --help and --header
16121     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16122 Try \`$0 --help' for more information." >&5
16123 echo "$as_me: error: ambiguous option: $1
16124 Try \`$0 --help' for more information." >&2;}
16125    { (exit 1); exit 1; }; };;
16126   --help | --hel | -h )
16127     echo "$ac_cs_usage"; exit 0 ;;
16128   --debug | --d* | -d )
16129     debug=: ;;
16130   --file | --fil | --fi | --f )
16131     shift
16132     CONFIG_FILES="$CONFIG_FILES $1"
16133     ac_need_defaults=false;;
16134   --header | --heade | --head | --hea )
16135     shift
16136     CONFIG_HEADERS="$CONFIG_HEADERS $1"
16137     ac_need_defaults=false;;
16138
16139   # This is an error.
16140   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16141 Try \`$0 --help' for more information." >&5
16142 echo "$as_me: error: unrecognized option: $1
16143 Try \`$0 --help' for more information." >&2;}
16144    { (exit 1); exit 1; }; } ;;
16145
16146   *) ac_config_targets="$ac_config_targets $1" ;;
16147
16148   esac
16149   shift
16150 done
16151
16152 _ACEOF
16153
16154
16155
16156
16157
16158 cat >>$CONFIG_STATUS <<\_ACEOF
16159 for ac_config_target in $ac_config_targets
16160 do
16161   case "$ac_config_target" in
16162   # Handling of arguments.
16163   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
16164   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
16165   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
16166   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
16167   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
16168   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
16169   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
16170   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
16171   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
16172   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
16173   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16174 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16175    { (exit 1); exit 1; }; };;
16176   esac
16177 done
16178
16179 # If the user did not use the arguments to specify the items to instantiate,
16180 # then the envvar interface is used.  Set only those that are not.
16181 # We use the long form for the default assignment because of an extremely
16182 # bizarre bug on SunOS 4.1.3.
16183 if $ac_need_defaults; then
16184   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16185   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16186   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16187 fi
16188
16189 # Create a temporary directory, and hook for its removal unless debugging.
16190 $debug ||
16191 {
16192   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16193   trap '{ (exit 1); exit 1; }' 1 2 13 15
16194 }
16195
16196 # Create a (secure) tmp directory for tmp files.
16197 : ${TMPDIR=/tmp}
16198 {
16199   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16200   test -n "$tmp" && test -d "$tmp"
16201 }  ||
16202 {
16203   tmp=$TMPDIR/cs$$-$RANDOM
16204   (umask 077 && mkdir $tmp)
16205 } ||
16206 {
16207    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16208    { (exit 1); exit 1; }
16209 }
16210
16211 _ACEOF
16212
16213 cat >>$CONFIG_STATUS <<_ACEOF
16214
16215 #
16216 # CONFIG_FILES section.
16217 #
16218
16219 # No need to generate the scripts if there are no CONFIG_FILES.
16220 # This happens for instance when ./config.status config.h
16221 if test -n "\$CONFIG_FILES"; then
16222   # Protect against being on the right side of a sed subst in config.status.
16223   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16224    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16225 s,@SHELL@,$SHELL,;t t
16226 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16227 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16228 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16229 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16230 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16231 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16232 s,@exec_prefix@,$exec_prefix,;t t
16233 s,@prefix@,$prefix,;t t
16234 s,@program_transform_name@,$program_transform_name,;t t
16235 s,@bindir@,$bindir,;t t
16236 s,@sbindir@,$sbindir,;t t
16237 s,@libexecdir@,$libexecdir,;t t
16238 s,@datadir@,$datadir,;t t
16239 s,@sysconfdir@,$sysconfdir,;t t
16240 s,@sharedstatedir@,$sharedstatedir,;t t
16241 s,@localstatedir@,$localstatedir,;t t
16242 s,@libdir@,$libdir,;t t
16243 s,@includedir@,$includedir,;t t
16244 s,@oldincludedir@,$oldincludedir,;t t
16245 s,@infodir@,$infodir,;t t
16246 s,@mandir@,$mandir,;t t
16247 s,@build_alias@,$build_alias,;t t
16248 s,@host_alias@,$host_alias,;t t
16249 s,@target_alias@,$target_alias,;t t
16250 s,@DEFS@,$DEFS,;t t
16251 s,@ECHO_C@,$ECHO_C,;t t
16252 s,@ECHO_N@,$ECHO_N,;t t
16253 s,@ECHO_T@,$ECHO_T,;t t
16254 s,@LIBS@,$LIBS,;t t
16255 s,@docdir@,$docdir,;t t
16256 s,@configure_args@,$configure_args,;t t
16257 s,@build@,$build,;t t
16258 s,@build_cpu@,$build_cpu,;t t
16259 s,@build_vendor@,$build_vendor,;t t
16260 s,@build_os@,$build_os,;t t
16261 s,@host@,$host,;t t
16262 s,@host_cpu@,$host_cpu,;t t
16263 s,@host_vendor@,$host_vendor,;t t
16264 s,@host_os@,$host_os,;t t
16265 s,@PORTNAME@,$PORTNAME,;t t
16266 s,@TAS@,$TAS,;t t
16267 s,@enable_nls@,$enable_nls,;t t
16268 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
16269 s,@default_port@,$default_port,;t t
16270 s,@enable_shared@,$enable_shared,;t t
16271 s,@enable_rpath@,$enable_rpath,;t t
16272 s,@enable_debug@,$enable_debug,;t t
16273 s,@CC@,$CC,;t t
16274 s,@CFLAGS@,$CFLAGS,;t t
16275 s,@LDFLAGS@,$LDFLAGS,;t t
16276 s,@CPPFLAGS@,$CPPFLAGS,;t t
16277 s,@ac_ct_CC@,$ac_ct_CC,;t t
16278 s,@EXEEXT@,$EXEEXT,;t t
16279 s,@OBJEXT@,$OBJEXT,;t t
16280 s,@CPP@,$CPP,;t t
16281 s,@GCC@,$GCC,;t t
16282 s,@autodepend@,$autodepend,;t t
16283 s,@INCLUDES@,$INCLUDES,;t t
16284 s,@with_tcl@,$with_tcl,;t t
16285 s,@with_tk@,$with_tk,;t t
16286 s,@with_perl@,$with_perl,;t t
16287 s,@with_python@,$with_python,;t t
16288 s,@ANT@,$ANT,;t t
16289 s,@with_java@,$with_java,;t t
16290 s,@with_krb4@,$with_krb4,;t t
16291 s,@with_krb5@,$with_krb5,;t t
16292 s,@krb_srvtab@,$krb_srvtab,;t t
16293 s,@with_pam@,$with_pam,;t t
16294 s,@with_openssl@,$with_openssl,;t t
16295 s,@ELF_SYS@,$ELF_SYS,;t t
16296 s,@AWK@,$AWK,;t t
16297 s,@FLEX@,$FLEX,;t t
16298 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
16299 s,@LN_S@,$LN_S,;t t
16300 s,@LD@,$LD,;t t
16301 s,@with_gnu_ld@,$with_gnu_ld,;t t
16302 s,@ld_R_works@,$ld_R_works,;t t
16303 s,@RANLIB@,$RANLIB,;t t
16304 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16305 s,@LORDER@,$LORDER,;t t
16306 s,@TAR@,$TAR,;t t
16307 s,@STRIP@,$STRIP,;t t
16308 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16309 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
16310 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
16311 s,@YACC@,$YACC,;t t
16312 s,@YFLAGS@,$YFLAGS,;t t
16313 s,@WISH@,$WISH,;t t
16314 s,@PERL@,$PERL,;t t
16315 s,@perl_installsitearch@,$perl_installsitearch,;t t
16316 s,@perl_installman3dir@,$perl_installman3dir,;t t
16317 s,@perl_archlibexp@,$perl_archlibexp,;t t
16318 s,@perl_privlibexp@,$perl_privlibexp,;t t
16319 s,@perl_useshrplib@,$perl_useshrplib,;t t
16320 s,@perl_man3ext@,$perl_man3ext,;t t
16321 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
16322 s,@PYTHON@,$PYTHON,;t t
16323 s,@python_version@,$python_version,;t t
16324 s,@python_prefix@,$python_prefix,;t t
16325 s,@python_execprefix@,$python_execprefix,;t t
16326 s,@python_configdir@,$python_configdir,;t t
16327 s,@python_moduledir@,$python_moduledir,;t t
16328 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
16329 s,@python_includespec@,$python_includespec,;t t
16330 s,@python_libspec@,$python_libspec,;t t
16331 s,@LIBOBJS@,$LIBOBJS,;t t
16332 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
16333 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
16334 s,@MSGFMT@,$MSGFMT,;t t
16335 s,@MSGMERGE@,$MSGMERGE,;t t
16336 s,@XGETTEXT@,$XGETTEXT,;t t
16337 s,@localedir@,$localedir,;t t
16338 s,@TCLSH@,$TCLSH,;t t
16339 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
16340 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
16341 s,@TCL_LIBS@,$TCL_LIBS,;t t
16342 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
16343 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
16344 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
16345 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
16346 s,@TK_LIBS@,$TK_LIBS,;t t
16347 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
16348 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
16349 s,@NSGMLS@,$NSGMLS,;t t
16350 s,@JADE@,$JADE,;t t
16351 s,@have_docbook@,$have_docbook,;t t
16352 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
16353 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
16354 s,@SGMLSPL@,$SGMLSPL,;t t
16355 s,@vpath_build@,$vpath_build,;t t
16356 CEOF
16357
16358 _ACEOF
16359
16360   cat >>$CONFIG_STATUS <<\_ACEOF
16361   # Split the substitutions into bite-sized pieces for seds with
16362   # small command number limits, like on Digital OSF/1 and HP-UX.
16363   ac_max_sed_lines=48
16364   ac_sed_frag=1 # Number of current file.
16365   ac_beg=1 # First line for current file.
16366   ac_end=$ac_max_sed_lines # Line after last line for current file.
16367   ac_more_lines=:
16368   ac_sed_cmds=
16369   while $ac_more_lines; do
16370     if test $ac_beg -gt 1; then
16371       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16372     else
16373       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16374     fi
16375     if test ! -s $tmp/subs.frag; then
16376       ac_more_lines=false
16377     else
16378       # The purpose of the label and of the branching condition is to
16379       # speed up the sed processing (if there are no `@' at all, there
16380       # is no need to browse any of the substitutions).
16381       # These are the two extra sed commands mentioned above.
16382       (echo ':t
16383   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16384       if test -z "$ac_sed_cmds"; then
16385         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16386       else
16387         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16388       fi
16389       ac_sed_frag=`expr $ac_sed_frag + 1`
16390       ac_beg=$ac_end
16391       ac_end=`expr $ac_end + $ac_max_sed_lines`
16392     fi
16393   done
16394   if test -z "$ac_sed_cmds"; then
16395     ac_sed_cmds=cat
16396   fi
16397 fi # test -n "$CONFIG_FILES"
16398
16399 _ACEOF
16400 cat >>$CONFIG_STATUS <<\_ACEOF
16401 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16402   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16403   case $ac_file in
16404   - | *:- | *:-:* ) # input from stdin
16405         cat >$tmp/stdin
16406         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16407         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16408   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16409         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16410   * )   ac_file_in=$ac_file.in ;;
16411   esac
16412
16413   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16414   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16415 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16416          X"$ac_file" : 'X\(//\)[^/]' \| \
16417          X"$ac_file" : 'X\(//\)$' \| \
16418          X"$ac_file" : 'X\(/\)' \| \
16419          .     : '\(.\)' 2>/dev/null ||
16420 echo X"$ac_file" |
16421     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16422           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16423           /^X\(\/\/\)$/{ s//\1/; q; }
16424           /^X\(\/\).*/{ s//\1/; q; }
16425           s/.*/./; q'`
16426   { case "$ac_dir" in
16427   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16428   *)                      as_incr_dir=.;;
16429 esac
16430 as_dummy="$ac_dir"
16431 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16432   case $as_mkdir_dir in
16433     # Skip DOS drivespec
16434     ?:) as_incr_dir=$as_mkdir_dir ;;
16435     *)
16436       as_incr_dir=$as_incr_dir/$as_mkdir_dir
16437       test -d "$as_incr_dir" ||
16438         mkdir "$as_incr_dir" ||
16439         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16440 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16441    { (exit 1); exit 1; }; }
16442     ;;
16443   esac
16444 done; }
16445
16446   ac_builddir=.
16447
16448 if test "$ac_dir" != .; then
16449   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16450   # A "../" for each directory in $ac_dir_suffix.
16451   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16452 else
16453   ac_dir_suffix= ac_top_builddir=
16454 fi
16455
16456 case $srcdir in
16457   .)  # No --srcdir option.  We are building in place.
16458     ac_srcdir=.
16459     if test -z "$ac_top_builddir"; then
16460        ac_top_srcdir=.
16461     else
16462        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16463     fi ;;
16464   [\\/]* | ?:[\\/]* )  # Absolute path.
16465     ac_srcdir=$srcdir$ac_dir_suffix;
16466     ac_top_srcdir=$srcdir ;;
16467   *) # Relative path.
16468     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16469     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16470 esac
16471 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16472 # absolute.
16473 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16474 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16475 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16476 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16477
16478
16479
16480   if test x"$ac_file" != x-; then
16481     { echo "$as_me:$LINENO: creating $ac_file" >&5
16482 echo "$as_me: creating $ac_file" >&6;}
16483     rm -f "$ac_file"
16484   fi
16485   # Let's still pretend it is `configure' which instantiates (i.e., don't
16486   # use $as_me), people would be surprised to read:
16487   #    /* config.h.  Generated by config.status.  */
16488   if test x"$ac_file" = x-; then
16489     configure_input=
16490   else
16491     configure_input="$ac_file.  "
16492   fi
16493   configure_input=$configure_input"Generated from `echo $ac_file_in |
16494                                      sed 's,.*/,,'` by configure."
16495
16496   # First look for the input files in the build tree, otherwise in the
16497   # src tree.
16498   ac_file_inputs=`IFS=:
16499     for f in $ac_file_in; do
16500       case $f in
16501       -) echo $tmp/stdin ;;
16502       [\\/$]*)
16503          # Absolute (can't be DOS-style, as IFS=:)
16504          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16505 echo "$as_me: error: cannot find input file: $f" >&2;}
16506    { (exit 1); exit 1; }; }
16507          echo $f;;
16508       *) # Relative
16509          if test -f "$f"; then
16510            # Build tree
16511            echo $f
16512          elif test -f "$srcdir/$f"; then
16513            # Source tree
16514            echo $srcdir/$f
16515          else
16516            # /dev/null tree
16517            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16518 echo "$as_me: error: cannot find input file: $f" >&2;}
16519    { (exit 1); exit 1; }; }
16520          fi;;
16521       esac
16522     done` || { (exit 1); exit 1; }
16523 _ACEOF
16524 cat >>$CONFIG_STATUS <<_ACEOF
16525   sed "$ac_vpsub
16526 $extrasub
16527 _ACEOF
16528 cat >>$CONFIG_STATUS <<\_ACEOF
16529 :t
16530 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16531 s,@configure_input@,$configure_input,;t t
16532 s,@srcdir@,$ac_srcdir,;t t
16533 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16534 s,@top_srcdir@,$ac_top_srcdir,;t t
16535 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16536 s,@builddir@,$ac_builddir,;t t
16537 s,@abs_builddir@,$ac_abs_builddir,;t t
16538 s,@top_builddir@,$ac_top_builddir,;t t
16539 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16540 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16541   rm -f $tmp/stdin
16542   if test x"$ac_file" != x-; then
16543     mv $tmp/out $ac_file
16544   else
16545     cat $tmp/out
16546     rm -f $tmp/out
16547   fi
16548
16549 done
16550 _ACEOF
16551 cat >>$CONFIG_STATUS <<\_ACEOF
16552
16553 #
16554 # CONFIG_HEADER section.
16555 #
16556
16557 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16558 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16559 #
16560 # ac_d sets the value in "#define NAME VALUE" lines.
16561 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
16562 ac_dB='[        ].*$,\1#\2'
16563 ac_dC=' '
16564 ac_dD=',;t'
16565 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16566 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16567 ac_uB='$,\1#\2define\3'
16568 ac_uC=' '
16569 ac_uD=',;t'
16570
16571 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16572   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16573   case $ac_file in
16574   - | *:- | *:-:* ) # input from stdin
16575         cat >$tmp/stdin
16576         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16577         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16578   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16579         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16580   * )   ac_file_in=$ac_file.in ;;
16581   esac
16582
16583   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16584 echo "$as_me: creating $ac_file" >&6;}
16585
16586   # First look for the input files in the build tree, otherwise in the
16587   # src tree.
16588   ac_file_inputs=`IFS=:
16589     for f in $ac_file_in; do
16590       case $f in
16591       -) echo $tmp/stdin ;;
16592       [\\/$]*)
16593          # Absolute (can't be DOS-style, as IFS=:)
16594          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16595 echo "$as_me: error: cannot find input file: $f" >&2;}
16596    { (exit 1); exit 1; }; }
16597          echo $f;;
16598       *) # Relative
16599          if test -f "$f"; then
16600            # Build tree
16601            echo $f
16602          elif test -f "$srcdir/$f"; then
16603            # Source tree
16604            echo $srcdir/$f
16605          else
16606            # /dev/null tree
16607            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16608 echo "$as_me: error: cannot find input file: $f" >&2;}
16609    { (exit 1); exit 1; }; }
16610          fi;;
16611       esac
16612     done` || { (exit 1); exit 1; }
16613   # Remove the trailing spaces.
16614   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
16615
16616 _ACEOF
16617
16618 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16619 # `conftest.undefs', that substitutes the proper values into
16620 # config.h.in to produce config.h.  The first handles `#define'
16621 # templates, and the second `#undef' templates.
16622 # And first: Protect against being on the right side of a sed subst in
16623 # config.status.  Protect against being in an unquoted here document
16624 # in config.status.
16625 rm -f conftest.defines conftest.undefs
16626 # Using a here document instead of a string reduces the quoting nightmare.
16627 # Putting comments in sed scripts is not portable.
16628 #
16629 # `end' is used to avoid that the second main sed command (meant for
16630 # 0-ary CPP macros) applies to n-ary macro definitions.
16631 # See the Autoconf documentation for `clear'.
16632 cat >confdef2sed.sed <<\_ACEOF
16633 s/[\\&,]/\\&/g
16634 s,[\\$`],\\&,g
16635 t clear
16636 : clear
16637 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16638 t end
16639 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16640 : end
16641 _ACEOF
16642 # If some macros were called several times there might be several times
16643 # the same #defines, which is useless.  Nevertheless, we may not want to
16644 # sort them, since we want the *last* AC-DEFINE to be honored.
16645 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16646 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16647 rm -f confdef2sed.sed
16648
16649 # This sed command replaces #undef with comments.  This is necessary, for
16650 # example, in the case of _POSIX_SOURCE, which is predefined and required
16651 # on some systems where configure will not decide to define it.
16652 cat >>conftest.undefs <<\_ACEOF
16653 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16654 _ACEOF
16655
16656 # Break up conftest.defines because some shells have a limit on the size
16657 # of here documents, and old seds have small limits too (100 cmds).
16658 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16659 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16660 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16661 echo '  :' >>$CONFIG_STATUS
16662 rm -f conftest.tail
16663 while grep . conftest.defines >/dev/null
16664 do
16665   # Write a limited-size here document to $tmp/defines.sed.
16666   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16667   # Speed up: don't consider the non `#define' lines.
16668   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
16669   # Work around the forget-to-reset-the-flag bug.
16670   echo 't clr' >>$CONFIG_STATUS
16671   echo ': clr' >>$CONFIG_STATUS
16672   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16673   echo 'CEOF
16674   sed -f $tmp/defines.sed $tmp/in >$tmp/out
16675   rm -f $tmp/in
16676   mv $tmp/out $tmp/in
16677 ' >>$CONFIG_STATUS
16678   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16679   rm -f conftest.defines
16680   mv conftest.tail conftest.defines
16681 done
16682 rm -f conftest.defines
16683 echo '  fi # egrep' >>$CONFIG_STATUS
16684 echo >>$CONFIG_STATUS
16685
16686 # Break up conftest.undefs because some shells have a limit on the size
16687 # of here documents, and old seds have small limits too (100 cmds).
16688 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16689 rm -f conftest.tail
16690 while grep . conftest.undefs >/dev/null
16691 do
16692   # Write a limited-size here document to $tmp/undefs.sed.
16693   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16694   # Speed up: don't consider the non `#undef'
16695   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16696   # Work around the forget-to-reset-the-flag bug.
16697   echo 't clr' >>$CONFIG_STATUS
16698   echo ': clr' >>$CONFIG_STATUS
16699   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16700   echo 'CEOF
16701   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16702   rm -f $tmp/in
16703   mv $tmp/out $tmp/in
16704 ' >>$CONFIG_STATUS
16705   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16706   rm -f conftest.undefs
16707   mv conftest.tail conftest.undefs
16708 done
16709 rm -f conftest.undefs
16710
16711 cat >>$CONFIG_STATUS <<\_ACEOF
16712   # Let's still pretend it is `configure' which instantiates (i.e., don't
16713   # use $as_me), people would be surprised to read:
16714   #    /* config.h.  Generated by config.status.  */
16715   if test x"$ac_file" = x-; then
16716     echo "/* Generated by configure.  */" >$tmp/config.h
16717   else
16718     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16719   fi
16720   cat $tmp/in >>$tmp/config.h
16721   rm -f $tmp/in
16722   if test x"$ac_file" != x-; then
16723     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
16724       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16725 echo "$as_me: $ac_file is unchanged" >&6;}
16726     else
16727       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16728 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16729          X"$ac_file" : 'X\(//\)[^/]' \| \
16730          X"$ac_file" : 'X\(//\)$' \| \
16731          X"$ac_file" : 'X\(/\)' \| \
16732          .     : '\(.\)' 2>/dev/null ||
16733 echo X"$ac_file" |
16734     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16735           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16736           /^X\(\/\/\)$/{ s//\1/; q; }
16737           /^X\(\/\).*/{ s//\1/; q; }
16738           s/.*/./; q'`
16739       { case "$ac_dir" in
16740   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16741   *)                      as_incr_dir=.;;
16742 esac
16743 as_dummy="$ac_dir"
16744 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16745   case $as_mkdir_dir in
16746     # Skip DOS drivespec
16747     ?:) as_incr_dir=$as_mkdir_dir ;;
16748     *)
16749       as_incr_dir=$as_incr_dir/$as_mkdir_dir
16750       test -d "$as_incr_dir" ||
16751         mkdir "$as_incr_dir" ||
16752         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16753 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16754    { (exit 1); exit 1; }; }
16755     ;;
16756   esac
16757 done; }
16758
16759       rm -f $ac_file
16760       mv $tmp/config.h $ac_file
16761     fi
16762   else
16763     cat $tmp/config.h
16764     rm -f $tmp/config.h
16765   fi
16766   # Run the commands associated with the file.
16767   case $ac_file in
16768     src/include/pg_config.h )
16769 # Update timestamp for pg_config.h (see Makefile.global)
16770 echo >src/include/stamp-h
16771  ;;
16772   esac
16773 done
16774 _ACEOF
16775 cat >>$CONFIG_STATUS <<\_ACEOF
16776
16777 #
16778 # CONFIG_LINKS section.
16779 #
16780
16781 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
16782   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16783   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16784
16785   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
16786 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
16787
16788   if test ! -r $srcdir/$ac_source; then
16789     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
16790 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
16791    { (exit 1); exit 1; }; }
16792   fi
16793   rm -f $ac_dest
16794
16795   # Make relative symlinks.
16796   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
16797 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16798          X"$ac_dest" : 'X\(//\)[^/]' \| \
16799          X"$ac_dest" : 'X\(//\)$' \| \
16800          X"$ac_dest" : 'X\(/\)' \| \
16801          .     : '\(.\)' 2>/dev/null ||
16802 echo X"$ac_dest" |
16803     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16804           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16805           /^X\(\/\/\)$/{ s//\1/; q; }
16806           /^X\(\/\).*/{ s//\1/; q; }
16807           s/.*/./; q'`
16808   { case "$ac_dest_dir" in
16809   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16810   *)                      as_incr_dir=.;;
16811 esac
16812 as_dummy="$ac_dest_dir"
16813 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16814   case $as_mkdir_dir in
16815     # Skip DOS drivespec
16816     ?:) as_incr_dir=$as_mkdir_dir ;;
16817     *)
16818       as_incr_dir=$as_incr_dir/$as_mkdir_dir
16819       test -d "$as_incr_dir" ||
16820         mkdir "$as_incr_dir" ||
16821         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
16822 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
16823    { (exit 1); exit 1; }; }
16824     ;;
16825   esac
16826 done; }
16827
16828   ac_builddir=.
16829
16830 if test "$ac_dest_dir" != .; then
16831   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
16832   # A "../" for each directory in $ac_dir_suffix.
16833   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16834 else
16835   ac_dir_suffix= ac_top_builddir=
16836 fi
16837
16838 case $srcdir in
16839   .)  # No --srcdir option.  We are building in place.
16840     ac_srcdir=.
16841     if test -z "$ac_top_builddir"; then
16842        ac_top_srcdir=.
16843     else
16844        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16845     fi ;;
16846   [\\/]* | ?:[\\/]* )  # Absolute path.
16847     ac_srcdir=$srcdir$ac_dir_suffix;
16848     ac_top_srcdir=$srcdir ;;
16849   *) # Relative path.
16850     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16851     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16852 esac
16853 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
16854 # absolute.
16855 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
16856 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
16857 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
16858 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
16859
16860
16861   case $srcdir in
16862   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
16863       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
16864   esac
16865
16866   # Make a symlink if possible; otherwise try a hard link.
16867   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
16868     ln $srcdir/$ac_source $ac_dest ||
16869     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
16870 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
16871    { (exit 1); exit 1; }; }
16872 done
16873 _ACEOF
16874
16875 cat >>$CONFIG_STATUS <<\_ACEOF
16876
16877 { (exit 0); exit 0; }
16878 _ACEOF
16879 chmod +x $CONFIG_STATUS
16880 ac_clean_files=$ac_clean_files_save
16881
16882
16883 # configure is writing to config.log, and then calls config.status.
16884 # config.status does its own redirection, appending to config.log.
16885 # Unfortunately, on DOS this fails, as config.log is still kept open
16886 # by configure, so config.status won't be able to write to it; its
16887 # output is simply discarded.  So we exec the FD to /dev/null,
16888 # effectively closing config.log, so it can be properly (re)opened and
16889 # appended to by config.status.  When coming back to configure, we
16890 # need to make the FD available again.
16891 if test "$no_create" != yes; then
16892   ac_cs_success=:
16893   exec 5>/dev/null
16894   $SHELL $CONFIG_STATUS || ac_cs_success=false
16895   exec 5>>config.log
16896   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16897   # would make configure fail if this is the last instruction.
16898   $ac_cs_success || { (exit 1); exit 1; }
16899 fi
16900