]> granicus.if.org Git - postgresql/blob - configure
Stamp for 7.3 beta3.
[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.3b3.
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.3b3'
262 PACKAGE_STRING='PostgreSQL 7.3b3'
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.3b3 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.3b3:";;
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 single-byte 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 Perl modules (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.3b3
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.3b3, 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
2446 # Check if the compiler still works with the template settings
2447 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2448 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2449
2450 cat >conftest.$ac_ext <<_ACEOF
2451 #line $LINENO "configure"
2452 #include "confdefs.h"
2453
2454 #ifdef F77_DUMMY_MAIN
2455 #  ifdef __cplusplus
2456      extern "C"
2457 #  endif
2458    int F77_DUMMY_MAIN() { return 1; }
2459 #endif
2460 int
2461 main ()
2462 {
2463 return 0;
2464   ;
2465   return 0;
2466 }
2467 _ACEOF
2468 rm -f conftest.$ac_objext conftest$ac_exeext
2469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2470   (eval $ac_link) 2>&5
2471   ac_status=$?
2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473   (exit $ac_status); } &&
2474          { ac_try='test -s conftest$ac_exeext'
2475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476   (eval $ac_try) 2>&5
2477   ac_status=$?
2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); }; }; then
2480   echo "$as_me:$LINENO: result: yes" >&5
2481 echo "${ECHO_T}yes" >&6
2482 else
2483   echo "$as_me: failed program was:" >&5
2484 cat conftest.$ac_ext >&5
2485 echo "$as_me:$LINENO: result: no" >&5
2486 echo "${ECHO_T}no" >&6
2487    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2488 echo "$as_me: error: cannot proceed" >&2;}
2489    { (exit 1); exit 1; }; }
2490 fi
2491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2492
2493 # Defend against gcc -ffastmath
2494 if test "$GCC" = yes; then
2495 cat >conftest.$ac_ext <<_ACEOF
2496 #line $LINENO "configure"
2497 #include "confdefs.h"
2498
2499 #ifdef F77_DUMMY_MAIN
2500 #  ifdef __cplusplus
2501      extern "C"
2502 #  endif
2503    int F77_DUMMY_MAIN() { return 1; }
2504 #endif
2505 int
2506 main ()
2507 {
2508 #ifdef __FAST_MATH__
2509 choke me
2510 #endif
2511   ;
2512   return 0;
2513 }
2514 _ACEOF
2515 rm -f conftest.$ac_objext
2516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2517   (eval $ac_compile) 2>&5
2518   ac_status=$?
2519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520   (exit $ac_status); } &&
2521          { ac_try='test -s conftest.$ac_objext'
2522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523   (eval $ac_try) 2>&5
2524   ac_status=$?
2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526   (exit $ac_status); }; }; then
2527   :
2528 else
2529   echo "$as_me: failed program was:" >&5
2530 cat conftest.$ac_ext >&5
2531 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2532 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2533    { (exit 1); exit 1; }; }
2534 fi
2535 rm -f conftest.$ac_objext conftest.$ac_ext
2536 fi
2537
2538 ac_ext=c
2539 ac_cpp='$CPP $CPPFLAGS'
2540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2543 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2544 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2545 # On Suns, sometimes $CPP names a directory.
2546 if test -n "$CPP" && test -d "$CPP"; then
2547   CPP=
2548 fi
2549 if test -z "$CPP"; then
2550   if test "${ac_cv_prog_CPP+set}" = set; then
2551   echo $ECHO_N "(cached) $ECHO_C" >&6
2552 else
2553       # Double quotes because CPP needs to be expanded
2554     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2555     do
2556       ac_preproc_ok=false
2557 for ac_c_preproc_warn_flag in '' yes
2558 do
2559   # Use a header file that comes with gcc, so configuring glibc
2560   # with a fresh cross-compiler works.
2561   # On the NeXT, cc -E runs the code through the compiler's parser,
2562   # not just through cpp. "Syntax error" is here to catch this case.
2563   cat >conftest.$ac_ext <<_ACEOF
2564 #line $LINENO "configure"
2565 #include "confdefs.h"
2566 #include <assert.h>
2567                      Syntax error
2568 _ACEOF
2569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2570   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2571   ac_status=$?
2572   egrep -v '^ *\+' conftest.er1 >conftest.err
2573   rm -f conftest.er1
2574   cat conftest.err >&5
2575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576   (exit $ac_status); } >/dev/null; then
2577   if test -s conftest.err; then
2578     ac_cpp_err=$ac_c_preproc_warn_flag
2579   else
2580     ac_cpp_err=
2581   fi
2582 else
2583   ac_cpp_err=yes
2584 fi
2585 if test -z "$ac_cpp_err"; then
2586   :
2587 else
2588   echo "$as_me: failed program was:" >&5
2589   cat conftest.$ac_ext >&5
2590   # Broken: fails on valid input.
2591 continue
2592 fi
2593 rm -f conftest.err conftest.$ac_ext
2594
2595   # OK, works on sane cases.  Now check whether non-existent headers
2596   # can be detected and how.
2597   cat >conftest.$ac_ext <<_ACEOF
2598 #line $LINENO "configure"
2599 #include "confdefs.h"
2600 #include <ac_nonexistent.h>
2601 _ACEOF
2602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2603   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2604   ac_status=$?
2605   egrep -v '^ *\+' conftest.er1 >conftest.err
2606   rm -f conftest.er1
2607   cat conftest.err >&5
2608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609   (exit $ac_status); } >/dev/null; then
2610   if test -s conftest.err; then
2611     ac_cpp_err=$ac_c_preproc_warn_flag
2612   else
2613     ac_cpp_err=
2614   fi
2615 else
2616   ac_cpp_err=yes
2617 fi
2618 if test -z "$ac_cpp_err"; then
2619   # Broken: success on invalid input.
2620 continue
2621 else
2622   echo "$as_me: failed program was:" >&5
2623   cat conftest.$ac_ext >&5
2624   # Passes both tests.
2625 ac_preproc_ok=:
2626 break
2627 fi
2628 rm -f conftest.err conftest.$ac_ext
2629
2630 done
2631 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2632 rm -f conftest.err conftest.$ac_ext
2633 if $ac_preproc_ok; then
2634   break
2635 fi
2636
2637     done
2638     ac_cv_prog_CPP=$CPP
2639
2640 fi
2641   CPP=$ac_cv_prog_CPP
2642 else
2643   ac_cv_prog_CPP=$CPP
2644 fi
2645 echo "$as_me:$LINENO: result: $CPP" >&5
2646 echo "${ECHO_T}$CPP" >&6
2647 ac_preproc_ok=false
2648 for ac_c_preproc_warn_flag in '' yes
2649 do
2650   # Use a header file that comes with gcc, so configuring glibc
2651   # with a fresh cross-compiler works.
2652   # On the NeXT, cc -E runs the code through the compiler's parser,
2653   # not just through cpp. "Syntax error" is here to catch this case.
2654   cat >conftest.$ac_ext <<_ACEOF
2655 #line $LINENO "configure"
2656 #include "confdefs.h"
2657 #include <assert.h>
2658                      Syntax error
2659 _ACEOF
2660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2661   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2662   ac_status=$?
2663   egrep -v '^ *\+' conftest.er1 >conftest.err
2664   rm -f conftest.er1
2665   cat conftest.err >&5
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); } >/dev/null; then
2668   if test -s conftest.err; then
2669     ac_cpp_err=$ac_c_preproc_warn_flag
2670   else
2671     ac_cpp_err=
2672   fi
2673 else
2674   ac_cpp_err=yes
2675 fi
2676 if test -z "$ac_cpp_err"; then
2677   :
2678 else
2679   echo "$as_me: failed program was:" >&5
2680   cat conftest.$ac_ext >&5
2681   # Broken: fails on valid input.
2682 continue
2683 fi
2684 rm -f conftest.err conftest.$ac_ext
2685
2686   # OK, works on sane cases.  Now check whether non-existent headers
2687   # can be detected and how.
2688   cat >conftest.$ac_ext <<_ACEOF
2689 #line $LINENO "configure"
2690 #include "confdefs.h"
2691 #include <ac_nonexistent.h>
2692 _ACEOF
2693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2694   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2695   ac_status=$?
2696   egrep -v '^ *\+' conftest.er1 >conftest.err
2697   rm -f conftest.er1
2698   cat conftest.err >&5
2699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700   (exit $ac_status); } >/dev/null; then
2701   if test -s conftest.err; then
2702     ac_cpp_err=$ac_c_preproc_warn_flag
2703   else
2704     ac_cpp_err=
2705   fi
2706 else
2707   ac_cpp_err=yes
2708 fi
2709 if test -z "$ac_cpp_err"; then
2710   # Broken: success on invalid input.
2711 continue
2712 else
2713   echo "$as_me: failed program was:" >&5
2714   cat conftest.$ac_ext >&5
2715   # Passes both tests.
2716 ac_preproc_ok=:
2717 break
2718 fi
2719 rm -f conftest.err conftest.$ac_ext
2720
2721 done
2722 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2723 rm -f conftest.err conftest.$ac_ext
2724 if $ac_preproc_ok; then
2725   :
2726 else
2727   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2728 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2729    { (exit 1); exit 1; }; }
2730 fi
2731
2732 ac_ext=c
2733 ac_cpp='$CPP $CPPFLAGS'
2734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2737
2738
2739
2740 # Create compiler version string
2741 if test x"$GCC" = x"yes" ; then
2742   cc_string="GCC `${CC} --version | sed q`"
2743 else
2744   cc_string=$CC
2745 fi
2746
2747 cat >>confdefs.h <<_ACEOF
2748 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2749 _ACEOF
2750
2751
2752
2753 #
2754 # Automatic dependency tracking
2755 #
2756
2757
2758 # Check whether --enable-depend or --disable-depend was given.
2759 if test "${enable_depend+set}" = set; then
2760   enableval="$enable_depend"
2761
2762   case $enableval in
2763     yes)
2764       autodepend=yes
2765       ;;
2766     no)
2767       :
2768       ;;
2769     *)
2770       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2771 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2772    { (exit 1); exit 1; }; }
2773       ;;
2774   esac
2775
2776 else
2777   enable_depend=no
2778
2779 fi;
2780
2781
2782
2783
2784 #
2785 # Enable assert checks
2786 #
2787
2788
2789 # Check whether --enable-cassert or --disable-cassert was given.
2790 if test "${enable_cassert+set}" = set; then
2791   enableval="$enable_cassert"
2792
2793   case $enableval in
2794     yes)
2795
2796 cat >>confdefs.h <<\_ACEOF
2797 #define USE_ASSERT_CHECKING 1
2798 _ACEOF
2799
2800       ;;
2801     no)
2802       :
2803       ;;
2804     *)
2805       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2806 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2807    { (exit 1); exit 1; }; }
2808       ;;
2809   esac
2810
2811 else
2812   enable_cassert=no
2813
2814 fi;
2815
2816
2817
2818 #
2819 # Include directories
2820 #
2821 ac_save_IFS=$IFS
2822 IFS="${IFS}:"
2823 # SRCH_INC comes from the template file
2824 for dir in $with_includes $SRCH_INC; do
2825   if test -d "$dir"; then
2826     INCLUDES="$INCLUDES -I$dir"
2827   else
2828     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2829 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2830   fi
2831 done
2832 IFS=$ac_save_IFS
2833
2834
2835
2836 #
2837 # Library directories
2838 #
2839 ac_save_IFS=$IFS
2840 IFS="${IFS}:"
2841 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2842 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2843   if test -d "$dir"; then
2844     LIBDIRS="$LIBDIRS -L$dir"
2845   else
2846     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2847 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2848   fi
2849 done
2850 IFS=$ac_save_IFS
2851
2852
2853 #
2854 # Tcl/Tk
2855 #
2856 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2857 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2858
2859
2860
2861 # Check whether --with-tcl or --without-tcl was given.
2862 if test "${with_tcl+set}" = set; then
2863   withval="$with_tcl"
2864
2865   case $withval in
2866     yes)
2867       :
2868       ;;
2869     no)
2870       :
2871       ;;
2872     *)
2873       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2874 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2875    { (exit 1); exit 1; }; }
2876       ;;
2877   esac
2878
2879 else
2880   with_tcl=no
2881
2882 fi;
2883
2884 echo "$as_me:$LINENO: result: $with_tcl" >&5
2885 echo "${ECHO_T}$with_tcl" >&6
2886
2887
2888 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2889 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2890 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2891 if test "$with_tcl" = yes; then
2892
2893
2894
2895 # Check whether --with-tk or --without-tk was given.
2896 if test "${with_tk+set}" = set; then
2897   withval="$with_tk"
2898
2899   case $withval in
2900     yes)
2901       :
2902       ;;
2903     no)
2904       :
2905       ;;
2906     *)
2907       { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2908 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2909    { (exit 1); exit 1; }; }
2910       ;;
2911   esac
2912
2913 else
2914   with_tk=yes
2915
2916 fi;
2917
2918 else
2919   with_tk=no
2920 fi
2921 echo "$as_me:$LINENO: result: $with_tk" >&5
2922 echo "${ECHO_T}$with_tk" >&6
2923
2924
2925
2926 # We see if the path to the Tcl/Tk configuration scripts is specified.
2927 # This will override the use of tclsh to find the paths to search.
2928
2929
2930
2931
2932 # Check whether --with-tclconfig or --without-tclconfig was given.
2933 if test "${with_tclconfig+set}" = set; then
2934   withval="$with_tclconfig"
2935
2936   case $withval in
2937     yes)
2938       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2939 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2940    { (exit 1); exit 1; }; }
2941       ;;
2942     no)
2943       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2944 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2945    { (exit 1); exit 1; }; }
2946       ;;
2947     *)
2948
2949       ;;
2950   esac
2951
2952 fi;
2953
2954
2955 # We see if the path to the Tk configuration scripts is specified.
2956 # This will override the use of tclsh to find the paths to search.
2957
2958
2959
2960
2961 # Check whether --with-tkconfig or --without-tkconfig was given.
2962 if test "${with_tkconfig+set}" = set; then
2963   withval="$with_tkconfig"
2964
2965   case $withval in
2966     yes)
2967       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2968 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2969    { (exit 1); exit 1; }; }
2970       ;;
2971     no)
2972       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2973 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2974    { (exit 1); exit 1; }; }
2975       ;;
2976     *)
2977
2978       ;;
2979   esac
2980
2981 fi;
2982
2983
2984 #
2985 # Optionally build Perl modules (PL/Perl)
2986 #
2987 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2988 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2989
2990
2991
2992 # Check whether --with-perl or --without-perl was given.
2993 if test "${with_perl+set}" = set; then
2994   withval="$with_perl"
2995
2996   case $withval in
2997     yes)
2998       :
2999       ;;
3000     no)
3001       :
3002       ;;
3003     *)
3004       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3005 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3006    { (exit 1); exit 1; }; }
3007       ;;
3008   esac
3009
3010 else
3011   with_perl=no
3012
3013 fi;
3014
3015 echo "$as_me:$LINENO: result: $with_perl" >&5
3016 echo "${ECHO_T}$with_perl" >&6
3017
3018
3019 #
3020 # Optionally build Python interface module
3021 #
3022 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3023 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3024
3025
3026
3027 # Check whether --with-python or --without-python was given.
3028 if test "${with_python+set}" = set; then
3029   withval="$with_python"
3030
3031   case $withval in
3032     yes)
3033       :
3034       ;;
3035     no)
3036       :
3037       ;;
3038     *)
3039       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3040 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3041    { (exit 1); exit 1; }; }
3042       ;;
3043   esac
3044
3045 else
3046   with_python=no
3047
3048 fi;
3049
3050 echo "$as_me:$LINENO: result: $with_python" >&5
3051 echo "${ECHO_T}$with_python" >&6
3052
3053
3054 #
3055 # Optionally build the Java/JDBC tools
3056 #
3057 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3058 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3059
3060
3061
3062 # Check whether --with-java or --without-java was given.
3063 if test "${with_java+set}" = set; then
3064   withval="$with_java"
3065
3066   case $withval in
3067     yes)
3068       echo "$as_me:$LINENO: result: yes" >&5
3069 echo "${ECHO_T}yes" >&6
3070
3071   for ac_prog in jakarta-ant ant ant.sh ant.bat
3072 do
3073   # Extract the first word of "$ac_prog", so it can be a program name with args.
3074 set dummy $ac_prog; ac_word=$2
3075 echo "$as_me:$LINENO: checking for $ac_word" >&5
3076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3077 if test "${ac_cv_path_ANT+set}" = set; then
3078   echo $ECHO_N "(cached) $ECHO_C" >&6
3079 else
3080   case $ANT in
3081   [\\/]* | ?:[\\/]*)
3082   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3083   ;;
3084   *)
3085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3087 do
3088   IFS=$as_save_IFS
3089   test -z "$as_dir" && as_dir=.
3090   for ac_exec_ext in '' $ac_executable_extensions; do
3091   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3094     break 2
3095   fi
3096 done
3097 done
3098
3099   ;;
3100 esac
3101 fi
3102 ANT=$ac_cv_path_ANT
3103
3104 if test -n "$ANT"; then
3105   echo "$as_me:$LINENO: result: $ANT" >&5
3106 echo "${ECHO_T}$ANT" >&6
3107 else
3108   echo "$as_me:$LINENO: result: no" >&5
3109 echo "${ECHO_T}no" >&6
3110 fi
3111
3112   test -n "$ANT" && break
3113 done
3114
3115
3116   echo "$as_me:$LINENO: checking whether $ANT works" >&5
3117 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3118 if test "${pgac_cv_prog_ant_works+set}" = set; then
3119   echo $ECHO_N "(cached) $ECHO_C" >&6
3120 else
3121
3122     cat > conftest.java << EOF
3123 public class conftest {
3124     int testmethod(int a, int b) {
3125         return a + b;
3126     }
3127 }
3128 EOF
3129
3130     cat > conftest.xml << EOF
3131 <project name="conftest" default="conftest">
3132  <target name="conftest">
3133   <javac srcdir="." includes="conftest.java">
3134   </javac>
3135  </target>
3136 </project>
3137 EOF
3138
3139     pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3140     { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3141   (eval $pgac_cmd) 2>&5
3142   ac_status=$?
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); }
3145     pgac_save_status=$?
3146     if test $? = 0 && test -f ./conftest.class ; then
3147       pgac_cv_prog_ant_works=yes
3148     else
3149       echo "configure: failed java program was:" >&5
3150       cat conftest.java >&5
3151       echo "configure: failed build file was:" >&5
3152       cat conftest.xml >&5
3153       pgac_cv_prog_ant_works=no
3154     fi
3155
3156     rm -f conftest* core core.* *.core
3157
3158 fi
3159 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3160 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3161
3162   if test "$pgac_cv_prog_ant_works" != yes; then
3163     { { echo "$as_me:$LINENO: error: ant does not work" >&5
3164 echo "$as_me: error: ant does not work" >&2;}
3165    { (exit 1); exit 1; }; }
3166   fi
3167
3168
3169 if test -z "$ANT"; then
3170   { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3171 If you have Ant already installed, see config.log for details on the failure." >&5
3172 echo "$as_me: error: Ant is required to build Java components
3173 If you have Ant already installed, see config.log for details on the failure." >&2;}
3174    { (exit 1); exit 1; }; }
3175 fi
3176 if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3177   { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3178 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3179    { (exit 1); exit 1; }; }
3180 fi
3181       ;;
3182     no)
3183       echo "$as_me:$LINENO: result: no" >&5
3184 echo "${ECHO_T}no" >&6
3185       ;;
3186     *)
3187       { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3188 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3189    { (exit 1); exit 1; }; }
3190       ;;
3191   esac
3192
3193 else
3194   with_java=no
3195 echo "$as_me:$LINENO: result: no" >&5
3196 echo "${ECHO_T}no" >&6
3197 fi;
3198
3199
3200
3201
3202 #
3203 # Kerberos 4
3204 #
3205 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3206 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3207
3208
3209
3210 # Check whether --with-krb4 or --without-krb4 was given.
3211 if test "${with_krb4+set}" = set; then
3212   withval="$with_krb4"
3213
3214   case $withval in
3215     yes)
3216       krb4_prefix=/usr/athena
3217       ;;
3218     no)
3219       :
3220       ;;
3221     *)
3222       with_krb4=yes
3223 krb4_prefix=$withval
3224       ;;
3225   esac
3226
3227 else
3228   with_krb4=no
3229 fi;
3230
3231
3232 if test "$with_krb4" = yes; then
3233
3234   echo "$as_me:$LINENO: result: yes" >&5
3235 echo "${ECHO_T}yes" >&6
3236
3237 cat >>confdefs.h <<\_ACEOF
3238 #define KRB4 1
3239 _ACEOF
3240
3241
3242   if test -d "$krb4_prefix/include"; then
3243     INCLUDES="$INCLUDES -I$krb4_prefix/include"
3244   fi
3245   if test -d "$krb4_prefix/lib"; then
3246     LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3247   fi
3248
3249   krb_srvtab="/etc/srvtab"
3250
3251 else
3252   echo "$as_me:$LINENO: result: no" >&5
3253 echo "${ECHO_T}no" >&6
3254 fi
3255
3256
3257
3258
3259
3260 #
3261 # Kerberos 5
3262 #
3263 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3264 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3265
3266
3267
3268 # Check whether --with-krb5 or --without-krb5 was given.
3269 if test "${with_krb5+set}" = set; then
3270   withval="$with_krb5"
3271
3272   case $withval in
3273     yes)
3274       krb5_prefix=/usr/athena
3275       ;;
3276     no)
3277       :
3278       ;;
3279     *)
3280       with_krb5=yes
3281 krb5_prefix=$withval
3282       ;;
3283   esac
3284
3285 else
3286   with_krb5=no
3287 fi;
3288
3289
3290 if test "$with_krb5" = yes; then
3291
3292   echo "$as_me:$LINENO: result: yes" >&5
3293 echo "${ECHO_T}yes" >&6
3294
3295 cat >>confdefs.h <<\_ACEOF
3296 #define KRB5 1
3297 _ACEOF
3298
3299
3300   if test -d "$krb5_prefix/include"; then
3301     INCLUDES="$INCLUDES -I$krb5_prefix/include"
3302   fi
3303   if test -d "$krb5_prefix/lib"; then
3304     LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3305   fi
3306
3307   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3308
3309 else
3310   echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6
3312 fi
3313
3314
3315
3316
3317
3318 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3319 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3320   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3321 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3322    { (exit 1); exit 1; }; }
3323 fi
3324
3325
3326
3327
3328 #
3329 # Kerberos configuration parameters
3330 #
3331
3332
3333
3334 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3335 if test "${with_krb_srvnam+set}" = set; then
3336   withval="$with_krb_srvnam"
3337
3338   case $withval in
3339     yes)
3340       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3341 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3342    { (exit 1); exit 1; }; }
3343       ;;
3344     no)
3345       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3346 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3347    { (exit 1); exit 1; }; }
3348       ;;
3349     *)
3350
3351       ;;
3352   esac
3353
3354 else
3355   with_krb_srvnam="postgres"
3356 fi;
3357
3358
3359 cat >>confdefs.h <<_ACEOF
3360 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3361 _ACEOF
3362
3363
3364
3365 #
3366 # PAM
3367 #
3368 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3369 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3370
3371
3372
3373 # Check whether --with-pam or --without-pam was given.
3374 if test "${with_pam+set}" = set; then
3375   withval="$with_pam"
3376
3377   case $withval in
3378     yes)
3379
3380 cat >>confdefs.h <<\_ACEOF
3381 #define USE_PAM 1
3382 _ACEOF
3383
3384       ;;
3385     no)
3386       :
3387       ;;
3388     *)
3389       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3390 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3391    { (exit 1); exit 1; }; }
3392       ;;
3393   esac
3394
3395 else
3396   with_pam=no
3397
3398 fi;
3399
3400 echo "$as_me:$LINENO: result: $with_pam" >&5
3401 echo "${ECHO_T}$with_pam" >&6
3402
3403
3404
3405 #
3406 # OpenSSL
3407 #
3408
3409
3410
3411 # Check whether --with-openssl or --without-openssl was given.
3412 if test "${with_openssl+set}" = set; then
3413   withval="$with_openssl"
3414
3415   case $withval in
3416     yes)
3417       openssl_prefix=/usr/local/ssl
3418       ;;
3419     no)
3420       :
3421       ;;
3422     *)
3423       with_openssl=yes
3424 openssl_prefix=$withval
3425       ;;
3426   esac
3427
3428 else
3429   with_openssl=no
3430 fi;
3431
3432
3433 if test "$with_openssl" = yes; then
3434
3435   echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3436 echo "${ECHO_T}building with OpenSSL support" >&6
3437
3438 cat >>confdefs.h <<\_ACEOF
3439 #define USE_SSL 1
3440 _ACEOF
3441
3442
3443   if test -d "${openssl_prefix}/include" ; then
3444     INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3445   fi
3446   if test -d "${openssl_prefix}/lib" ; then
3447     LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3448   fi
3449
3450 fi
3451
3452
3453
3454
3455
3456 #
3457 # Readline
3458 #
3459
3460
3461
3462 # Check whether --with-readline or --without-readline was given.
3463 if test "${with_readline+set}" = set; then
3464   withval="$with_readline"
3465
3466   case $withval in
3467     yes)
3468       :
3469       ;;
3470     no)
3471       :
3472       ;;
3473     *)
3474       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3475 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3476    { (exit 1); exit 1; }; }
3477       ;;
3478   esac
3479
3480 else
3481   with_readline=yes
3482
3483 fi;
3484
3485
3486 #
3487 # Zlib
3488 #
3489
3490
3491
3492 # Check whether --with-zlib or --without-zlib was given.
3493 if test "${with_zlib+set}" = set; then
3494   withval="$with_zlib"
3495
3496   case $withval in
3497     yes)
3498       :
3499       ;;
3500     no)
3501       :
3502       ;;
3503     *)
3504       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3505 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3506    { (exit 1); exit 1; }; }
3507       ;;
3508   esac
3509
3510 else
3511   with_zlib=yes
3512
3513 fi;
3514
3515
3516
3517
3518 # Assume system is ELF if it predefines __ELF__ as 1,
3519 # otherwise believe host_os based default.
3520 case $host_os in
3521     freebsd1*|freebsd2*) elf=no;;
3522     freebsd3*|freebsd4*) elf=yes;;
3523 esac
3524
3525
3526 cat >conftest.$ac_ext <<_ACEOF
3527 #line $LINENO "configure"
3528 #include "confdefs.h"
3529 #if __ELF__
3530   yes
3531 #endif
3532
3533 _ACEOF
3534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3535   egrep "yes" >/dev/null 2>&1; then
3536   ELF_SYS=true
3537 else
3538   if test "X$elf" = "Xyes" ; then
3539   ELF_SYS=true
3540 else
3541   ELF_SYS=
3542 fi
3543 fi
3544 rm -f conftest*
3545
3546
3547
3548
3549
3550 CPPFLAGS="$CPPFLAGS $INCLUDES"
3551 LDFLAGS="$LDFLAGS $LIBDIRS"
3552
3553 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3554 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3555 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3556 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3557
3558
3559 for ac_prog in gawk mawk nawk awk
3560 do
3561   # Extract the first word of "$ac_prog", so it can be a program name with args.
3562 set dummy $ac_prog; ac_word=$2
3563 echo "$as_me:$LINENO: checking for $ac_word" >&5
3564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3565 if test "${ac_cv_prog_AWK+set}" = set; then
3566   echo $ECHO_N "(cached) $ECHO_C" >&6
3567 else
3568   if test -n "$AWK"; then
3569   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3570 else
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 for as_dir in $PATH
3573 do
3574   IFS=$as_save_IFS
3575   test -z "$as_dir" && as_dir=.
3576   for ac_exec_ext in '' $ac_executable_extensions; do
3577   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3578     ac_cv_prog_AWK="$ac_prog"
3579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3580     break 2
3581   fi
3582 done
3583 done
3584
3585 fi
3586 fi
3587 AWK=$ac_cv_prog_AWK
3588 if test -n "$AWK"; then
3589   echo "$as_me:$LINENO: result: $AWK" >&5
3590 echo "${ECHO_T}$AWK" >&6
3591 else
3592   echo "$as_me:$LINENO: result: no" >&5
3593 echo "${ECHO_T}no" >&6
3594 fi
3595
3596   test -n "$AWK" && break
3597 done
3598
3599 echo "$as_me:$LINENO: checking for flex" >&5
3600 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3601 if test "${pgac_cv_path_flex+set}" = set; then
3602   echo $ECHO_N "(cached) $ECHO_C" >&6
3603 else
3604   # Let the user override the test
3605 if test -n "$FLEX"; then
3606   pgac_cv_path_flex=$FLEX
3607 else
3608   pgac_save_IFS=$IFS
3609   IFS=:
3610   for pgac_dir in $PATH; do
3611     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3612       pgac_dir=`pwd`
3613     fi
3614     for pgac_prog in flex lex; do
3615       pgac_candidate="$pgac_dir/$pgac_prog"
3616       if test -f "$pgac_candidate" \
3617         && $pgac_candidate --version </dev/null >/dev/null 2>&1
3618       then
3619         echo '%%'  > conftest.l
3620         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3621           if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
3622             pgac_broken_flex=$pgac_candidate
3623             continue
3624           fi
3625
3626           pgac_cv_path_flex=$pgac_candidate
3627           break 2
3628         fi
3629       fi
3630     done
3631   done
3632   IFS=$pgac_save_IFS
3633   rm -f conftest.l
3634   : ${pgac_cv_path_flex=no}
3635 fi
3636
3637 fi
3638 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3639 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3640 if test x"$pgac_cv_path_flex" = x"no"; then
3641   if test -n "$pgac_broken_flex"; then
3642     { echo "$as_me:$LINENO: WARNING:
3643 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3644 *** should get version 2.5.4 or later." >&5
3645 echo "$as_me: WARNING:
3646 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3647 *** should get version 2.5.4 or later." >&2;}
3648   fi
3649
3650   { echo "$as_me:$LINENO: WARNING:
3651 *** Without Flex you will not be able to build PostgreSQL from CVS or
3652 *** change any of the scanner definition files.  You can obtain Flex from
3653 *** a GNU mirror site.  (If you are using the official distribution of
3654 *** PostgreSQL then you do not need to worry about this because the Flex
3655 *** output is pre-generated.)" >&5
3656 echo "$as_me: WARNING:
3657 *** Without Flex you will not be able to build PostgreSQL from CVS or
3658 *** change any of the scanner definition files.  You can obtain Flex from
3659 *** a GNU mirror site.  (If you are using the official distribution of
3660 *** PostgreSQL then you do not need to worry about this because the Flex
3661 *** output is pre-generated.)" >&2;}
3662 fi
3663
3664 if test x"$pgac_cv_path_flex" = x"no"; then
3665   FLEX=
3666 else
3667   FLEX=$pgac_cv_path_flex
3668 fi
3669
3670
3671
3672
3673 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3674 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3675 LN_S=$as_ln_s
3676 if test "$LN_S" = "ln -s"; then
3677   echo "$as_me:$LINENO: result: yes" >&5
3678 echo "${ECHO_T}yes" >&6
3679 else
3680   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3681 echo "${ECHO_T}no, using $LN_S" >&6
3682 fi
3683
3684
3685 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3686 if test "${with_gnu_ld+set}" = set; then
3687   withval="$with_gnu_ld"
3688   test "$withval" = no || with_gnu_ld=yes
3689 else
3690   with_gnu_ld=no
3691 fi;
3692 ac_prog=ld
3693 if test "$GCC" = yes; then
3694   # Check if gcc -print-prog-name=ld gives a path.
3695   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3696 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3697   case $host in
3698   *-*-mingw*)
3699     # gcc leaves a trailing carriage return which upsets mingw
3700     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3701   *)
3702     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3703   esac
3704   case "$ac_prog" in
3705     # Accept absolute paths.
3706     [\\/]* | [A-Za-z]:[\\/]*)
3707       re_direlt='/[^/][^/]*/\.\./'
3708       # Canonicalize the path of ld
3709       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3710       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3711         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3712       done
3713       test -z "$LD" && LD="$ac_prog"
3714       ;;
3715   "")
3716     # If it fails, then pretend we aren't using GCC.
3717     ac_prog=ld
3718     ;;
3719   *)
3720     # If it is relative, then search for the first ld in PATH.
3721     with_gnu_ld=unknown
3722     ;;
3723   esac
3724 elif test "$with_gnu_ld" = yes; then
3725   echo "$as_me:$LINENO: checking for GNU ld" >&5
3726 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3727 else
3728   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3729 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3730 fi
3731 if test "${ac_cv_path_LD+set}" = set; then
3732   echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734   if test -z "$LD"; then
3735   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3736   for ac_dir in $PATH; do
3737     test -z "$ac_dir" && ac_dir=.
3738     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3739       ac_cv_path_LD="$ac_dir/$ac_prog"
3740       # Check to see if the program is GNU ld.  I'd rather use --version,
3741       # but apparently some GNU ld's only accept -v.
3742       # Break only if it was the GNU/non-GNU ld that we prefer.
3743       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3744         test "$with_gnu_ld" != no && break
3745       else
3746         test "$with_gnu_ld" != yes && break
3747       fi
3748     fi
3749   done
3750   IFS="$ac_save_ifs"
3751 else
3752   ac_cv_path_LD="$LD" # Let the user override the test with a path.
3753 fi
3754 fi
3755
3756 LD="$ac_cv_path_LD"
3757 if test -n "$LD"; then
3758   echo "$as_me:$LINENO: result: $LD" >&5
3759 echo "${ECHO_T}$LD" >&6
3760 else
3761   echo "$as_me:$LINENO: result: no" >&5
3762 echo "${ECHO_T}no" >&6
3763 fi
3764 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3765 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3766    { (exit 1); exit 1; }; }
3767 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3768 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3769 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3770   echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3773 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3774   ac_cv_prog_gnu_ld=yes
3775 else
3776   ac_cv_prog_gnu_ld=no
3777 fi
3778 fi
3779 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3780 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3781 with_gnu_ld=$ac_cv_prog_gnu_ld
3782
3783
3784
3785
3786 case $host_os in sysv5*)
3787   echo "$as_me:$LINENO: checking whether ld -R works" >&5
3788 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3789 if test "${pgac_cv_prog_ld_R+set}" = set; then
3790   echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792
3793     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3794     cat >conftest.$ac_ext <<_ACEOF
3795 #line $LINENO "configure"
3796 #include "confdefs.h"
3797
3798 #ifdef F77_DUMMY_MAIN
3799 #  ifdef __cplusplus
3800      extern "C"
3801 #  endif
3802    int F77_DUMMY_MAIN() { return 1; }
3803 #endif
3804 int
3805 main ()
3806 {
3807
3808   ;
3809   return 0;
3810 }
3811 _ACEOF
3812 rm -f conftest.$ac_objext conftest$ac_exeext
3813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3814   (eval $ac_link) 2>&5
3815   ac_status=$?
3816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817   (exit $ac_status); } &&
3818          { ac_try='test -s conftest$ac_exeext'
3819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820   (eval $ac_try) 2>&5
3821   ac_status=$?
3822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823   (exit $ac_status); }; }; then
3824   pgac_cv_prog_ld_R=yes
3825 else
3826   echo "$as_me: failed program was:" >&5
3827 cat conftest.$ac_ext >&5
3828 pgac_cv_prog_ld_R=no
3829 fi
3830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3831     LDFLAGS=$pgac_save_LDFLAGS
3832
3833 fi
3834 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3835 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3836   ld_R_works=$pgac_cv_prog_ld_R
3837
3838 esac
3839 if test -n "$ac_tool_prefix"; then
3840   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3841 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3842 echo "$as_me:$LINENO: checking for $ac_word" >&5
3843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3844 if test "${ac_cv_prog_RANLIB+set}" = set; then
3845   echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847   if test -n "$RANLIB"; then
3848   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3849 else
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 for as_dir in $PATH
3852 do
3853   IFS=$as_save_IFS
3854   test -z "$as_dir" && as_dir=.
3855   for ac_exec_ext in '' $ac_executable_extensions; do
3856   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3857     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3859     break 2
3860   fi
3861 done
3862 done
3863
3864 fi
3865 fi
3866 RANLIB=$ac_cv_prog_RANLIB
3867 if test -n "$RANLIB"; then
3868   echo "$as_me:$LINENO: result: $RANLIB" >&5
3869 echo "${ECHO_T}$RANLIB" >&6
3870 else
3871   echo "$as_me:$LINENO: result: no" >&5
3872 echo "${ECHO_T}no" >&6
3873 fi
3874
3875 fi
3876 if test -z "$ac_cv_prog_RANLIB"; then
3877   ac_ct_RANLIB=$RANLIB
3878   # Extract the first word of "ranlib", so it can be a program name with args.
3879 set dummy ranlib; ac_word=$2
3880 echo "$as_me:$LINENO: checking for $ac_word" >&5
3881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3882 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3883   echo $ECHO_N "(cached) $ECHO_C" >&6
3884 else
3885   if test -n "$ac_ct_RANLIB"; then
3886   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3887 else
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 for as_dir in $PATH
3890 do
3891   IFS=$as_save_IFS
3892   test -z "$as_dir" && as_dir=.
3893   for ac_exec_ext in '' $ac_executable_extensions; do
3894   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3895     ac_cv_prog_ac_ct_RANLIB="ranlib"
3896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3897     break 2
3898   fi
3899 done
3900 done
3901
3902   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3903 fi
3904 fi
3905 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3906 if test -n "$ac_ct_RANLIB"; then
3907   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3908 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3909 else
3910   echo "$as_me:$LINENO: result: no" >&5
3911 echo "${ECHO_T}no" >&6
3912 fi
3913
3914   RANLIB=$ac_ct_RANLIB
3915 else
3916   RANLIB="$ac_cv_prog_RANLIB"
3917 fi
3918
3919 for ac_prog in lorder
3920 do
3921   # Extract the first word of "$ac_prog", so it can be a program name with args.
3922 set dummy $ac_prog; ac_word=$2
3923 echo "$as_me:$LINENO: checking for $ac_word" >&5
3924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3925 if test "${ac_cv_prog_LORDER+set}" = set; then
3926   echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928   if test -n "$LORDER"; then
3929   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3930 else
3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 for as_dir in $PATH
3933 do
3934   IFS=$as_save_IFS
3935   test -z "$as_dir" && as_dir=.
3936   for ac_exec_ext in '' $ac_executable_extensions; do
3937   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3938     ac_cv_prog_LORDER="$ac_prog"
3939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3940     break 2
3941   fi
3942 done
3943 done
3944
3945 fi
3946 fi
3947 LORDER=$ac_cv_prog_LORDER
3948 if test -n "$LORDER"; then
3949   echo "$as_me:$LINENO: result: $LORDER" >&5
3950 echo "${ECHO_T}$LORDER" >&6
3951 else
3952   echo "$as_me:$LINENO: result: no" >&5
3953 echo "${ECHO_T}no" >&6
3954 fi
3955
3956   test -n "$LORDER" && break
3957 done
3958
3959 # Extract the first word of "tar", so it can be a program name with args.
3960 set dummy tar; ac_word=$2
3961 echo "$as_me:$LINENO: checking for $ac_word" >&5
3962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3963 if test "${ac_cv_path_TAR+set}" = set; then
3964   echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966   case $TAR in
3967   [\\/]* | ?:[\\/]*)
3968   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3969   ;;
3970   *)
3971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3973 do
3974   IFS=$as_save_IFS
3975   test -z "$as_dir" && as_dir=.
3976   for ac_exec_ext in '' $ac_executable_extensions; do
3977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3980     break 2
3981   fi
3982 done
3983 done
3984
3985   ;;
3986 esac
3987 fi
3988 TAR=$ac_cv_path_TAR
3989
3990 if test -n "$TAR"; then
3991   echo "$as_me:$LINENO: result: $TAR" >&5
3992 echo "${ECHO_T}$TAR" >&6
3993 else
3994   echo "$as_me:$LINENO: result: no" >&5
3995 echo "${ECHO_T}no" >&6
3996 fi
3997
3998
3999   if test -n "$ac_tool_prefix"; then
4000   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4001 set dummy ${ac_tool_prefix}strip; ac_word=$2
4002 echo "$as_me:$LINENO: checking for $ac_word" >&5
4003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4004 if test "${ac_cv_prog_STRIP+set}" = set; then
4005   echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007   if test -n "$STRIP"; then
4008   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4009 else
4010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011 for as_dir in $PATH
4012 do
4013   IFS=$as_save_IFS
4014   test -z "$as_dir" && as_dir=.
4015   for ac_exec_ext in '' $ac_executable_extensions; do
4016   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4017     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4019     break 2
4020   fi
4021 done
4022 done
4023
4024 fi
4025 fi
4026 STRIP=$ac_cv_prog_STRIP
4027 if test -n "$STRIP"; then
4028   echo "$as_me:$LINENO: result: $STRIP" >&5
4029 echo "${ECHO_T}$STRIP" >&6
4030 else
4031   echo "$as_me:$LINENO: result: no" >&5
4032 echo "${ECHO_T}no" >&6
4033 fi
4034
4035 fi
4036 if test -z "$ac_cv_prog_STRIP"; then
4037   ac_ct_STRIP=$STRIP
4038   # Extract the first word of "strip", so it can be a program name with args.
4039 set dummy strip; ac_word=$2
4040 echo "$as_me:$LINENO: checking for $ac_word" >&5
4041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4042 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4043   echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045   if test -n "$ac_ct_STRIP"; then
4046   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4047 else
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 for as_dir in $PATH
4050 do
4051   IFS=$as_save_IFS
4052   test -z "$as_dir" && as_dir=.
4053   for ac_exec_ext in '' $ac_executable_extensions; do
4054   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4055     ac_cv_prog_ac_ct_STRIP="strip"
4056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4057     break 2
4058   fi
4059 done
4060 done
4061
4062   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4063 fi
4064 fi
4065 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4066 if test -n "$ac_ct_STRIP"; then
4067   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4068 echo "${ECHO_T}$ac_ct_STRIP" >&6
4069 else
4070   echo "$as_me:$LINENO: result: no" >&5
4071 echo "${ECHO_T}no" >&6
4072 fi
4073
4074   STRIP=$ac_ct_STRIP
4075 else
4076   STRIP="$ac_cv_prog_STRIP"
4077 fi
4078
4079
4080   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4081 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4082   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4083     STRIP_STATIC_LIB="$STRIP -x"
4084     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4085     echo "$as_me:$LINENO: result: yes" >&5
4086 echo "${ECHO_T}yes" >&6
4087   else
4088     STRIP_STATIC_LIB=:
4089     STRIP_SHARED_LIB=:
4090     echo "$as_me:$LINENO: result: no" >&5
4091 echo "${ECHO_T}no" >&6
4092   fi
4093
4094
4095
4096
4097 for ac_prog in 'bison -y'
4098 do
4099   # Extract the first word of "$ac_prog", so it can be a program name with args.
4100 set dummy $ac_prog; ac_word=$2
4101 echo "$as_me:$LINENO: checking for $ac_word" >&5
4102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4103 if test "${ac_cv_prog_YACC+set}" = set; then
4104   echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106   if test -n "$YACC"; then
4107   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4108 else
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH
4111 do
4112   IFS=$as_save_IFS
4113   test -z "$as_dir" && as_dir=.
4114   for ac_exec_ext in '' $ac_executable_extensions; do
4115   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4116     ac_cv_prog_YACC="$ac_prog"
4117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4118     break 2
4119   fi
4120 done
4121 done
4122
4123 fi
4124 fi
4125 YACC=$ac_cv_prog_YACC
4126 if test -n "$YACC"; then
4127   echo "$as_me:$LINENO: result: $YACC" >&5
4128 echo "${ECHO_T}$YACC" >&6
4129 else
4130   echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4132 fi
4133
4134   test -n "$YACC" && break
4135 done
4136
4137 if test -z "$YACC"; then
4138   { echo "$as_me:$LINENO: WARNING:
4139 *** Without Bison you will not be able to build PostgreSQL from CVS or
4140 *** change any of the parser definition files.  You can obtain Bison from
4141 *** a GNU mirror site.  (If you are using the official distribution of
4142 *** PostgreSQL then you do not need to worry about this because the Bison
4143 *** output is pre-generated.)  To use a different yacc program (possible,
4144 *** but not recommended), set the environment variable YACC before running
4145 *** 'configure'." >&5
4146 echo "$as_me: WARNING:
4147 *** Without Bison you will not be able to build PostgreSQL from CVS or
4148 *** change any of the parser definition files.  You can obtain Bison from
4149 *** a GNU mirror site.  (If you are using the official distribution of
4150 *** PostgreSQL then you do not need to worry about this because the Bison
4151 *** output is pre-generated.)  To use a different yacc program (possible,
4152 *** but not recommended), set the environment variable YACC before running
4153 *** 'configure'." >&2;}
4154 fi
4155
4156
4157 # Extract the first word of "perl", so it can be a program name with args.
4158 set dummy perl; ac_word=$2
4159 echo "$as_me:$LINENO: checking for $ac_word" >&5
4160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4161 if test "${ac_cv_path_PERL+set}" = set; then
4162   echo $ECHO_N "(cached) $ECHO_C" >&6
4163 else
4164   case $PERL in
4165   [\\/]* | ?:[\\/]*)
4166   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4167   ;;
4168   *)
4169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 for as_dir in $PATH
4171 do
4172   IFS=$as_save_IFS
4173   test -z "$as_dir" && as_dir=.
4174   for ac_exec_ext in '' $ac_executable_extensions; do
4175   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4176     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4178     break 2
4179   fi
4180 done
4181 done
4182
4183   ;;
4184 esac
4185 fi
4186 PERL=$ac_cv_path_PERL
4187
4188 if test -n "$PERL"; then
4189   echo "$as_me:$LINENO: result: $PERL" >&5
4190 echo "${ECHO_T}$PERL" >&6
4191 else
4192   echo "$as_me:$LINENO: result: no" >&5
4193 echo "${ECHO_T}no" >&6
4194 fi
4195
4196 if test "$with_perl" = yes; then
4197
4198 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4199 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4200 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4201 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4202 echo "${ECHO_T}$perl_archlibexp" >&6
4203 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4204 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4205 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4206 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4207 echo "${ECHO_T}$perl_privlibexp" >&6
4208 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4209 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4210 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4211 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4212 echo "${ECHO_T}$perl_useshrplib" >&6
4213
4214 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4215 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4216 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4217 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4218 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4219 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4220 echo "${ECHO_T}$perl_embed_ldflags" >&6
4221 fi
4222
4223 if test "$with_python" = yes; then
4224   # Extract the first word of "python", so it can be a program name with args.
4225 set dummy python; ac_word=$2
4226 echo "$as_me:$LINENO: checking for $ac_word" >&5
4227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4228 if test "${ac_cv_path_PYTHON+set}" = set; then
4229   echo $ECHO_N "(cached) $ECHO_C" >&6
4230 else
4231   case $PYTHON in
4232   [\\/]* | ?:[\\/]*)
4233   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4234   ;;
4235   *)
4236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH
4238 do
4239   IFS=$as_save_IFS
4240   test -z "$as_dir" && as_dir=.
4241   for ac_exec_ext in '' $ac_executable_extensions; do
4242   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4243     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4245     break 2
4246   fi
4247 done
4248 done
4249
4250   ;;
4251 esac
4252 fi
4253 PYTHON=$ac_cv_path_PYTHON
4254
4255 if test -n "$PYTHON"; then
4256   echo "$as_me:$LINENO: result: $PYTHON" >&5
4257 echo "${ECHO_T}$PYTHON" >&6
4258 else
4259   echo "$as_me:$LINENO: result: no" >&5
4260 echo "${ECHO_T}no" >&6
4261 fi
4262
4263 if test x"$PYTHON" = x""; then
4264   { { echo "$as_me:$LINENO: error: Python not found" >&5
4265 echo "$as_me: error: Python not found" >&2;}
4266    { (exit 1); exit 1; }; }
4267 fi
4268
4269
4270 echo "$as_me:$LINENO: checking Python installation directories" >&5
4271 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4272 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4273 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4274 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4275 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4276 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
4277 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
4278 python_includespec="-I${python_prefix}/include/python${python_version}"
4279 if test "$python_prefix" != "$python_execprefix"; then
4280   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4281 fi
4282
4283 # This should be enough of a message.
4284 if test "$python_prefix" != "$python_execprefix"; then
4285   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4286 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4287 else
4288   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4289 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4290 fi
4291
4292
4293
4294
4295
4296 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4297 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4298
4299 if test ! -f "$python_configdir/Makefile"; then
4300   echo "$as_me:$LINENO: result: no" >&5
4301 echo "${ECHO_T}no" >&6
4302   { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4303 echo "$as_me: error: Python Makefile not found" >&2;}
4304    { (exit 1); exit 1; }; }
4305 fi
4306
4307 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4308 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4309 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4310 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4311 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4312
4313 pgac_tab="      " # tab character
4314 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"`
4315
4316 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4317 echo "${ECHO_T}${python_libspec}" >&6
4318
4319
4320 fi
4321
4322
4323 ##
4324 ## Libraries
4325 ##
4326
4327 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4328 then
4329
4330 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4331 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4332 if test "${ac_cv_lib_bsd_main+set}" = set; then
4333   echo $ECHO_N "(cached) $ECHO_C" >&6
4334 else
4335   ac_check_lib_save_LIBS=$LIBS
4336 LIBS="-lbsd  $LIBS"
4337 cat >conftest.$ac_ext <<_ACEOF
4338 #line $LINENO "configure"
4339 #include "confdefs.h"
4340
4341
4342 #ifdef F77_DUMMY_MAIN
4343 #  ifdef __cplusplus
4344      extern "C"
4345 #  endif
4346    int F77_DUMMY_MAIN() { return 1; }
4347 #endif
4348 int
4349 main ()
4350 {
4351 main ();
4352   ;
4353   return 0;
4354 }
4355 _ACEOF
4356 rm -f conftest.$ac_objext conftest$ac_exeext
4357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4358   (eval $ac_link) 2>&5
4359   ac_status=$?
4360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361   (exit $ac_status); } &&
4362          { ac_try='test -s conftest$ac_exeext'
4363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364   (eval $ac_try) 2>&5
4365   ac_status=$?
4366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367   (exit $ac_status); }; }; then
4368   ac_cv_lib_bsd_main=yes
4369 else
4370   echo "$as_me: failed program was:" >&5
4371 cat conftest.$ac_ext >&5
4372 ac_cv_lib_bsd_main=no
4373 fi
4374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4375 LIBS=$ac_check_lib_save_LIBS
4376 fi
4377 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4378 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4379 if test $ac_cv_lib_bsd_main = yes; then
4380   cat >>confdefs.h <<_ACEOF
4381 #define HAVE_LIBBSD 1
4382 _ACEOF
4383
4384   LIBS="-lbsd $LIBS"
4385
4386 fi
4387
4388 fi
4389
4390 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4391 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4392 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4393   echo $ECHO_N "(cached) $ECHO_C" >&6
4394 else
4395   ac_check_lib_save_LIBS=$LIBS
4396 LIBS="-lutil  $LIBS"
4397 cat >conftest.$ac_ext <<_ACEOF
4398 #line $LINENO "configure"
4399 #include "confdefs.h"
4400
4401 /* Override any gcc2 internal prototype to avoid an error.  */
4402 #ifdef __cplusplus
4403 extern "C"
4404 #endif
4405 /* We use char because int might match the return type of a gcc2
4406    builtin and then its argument prototype would still apply.  */
4407 char setproctitle ();
4408 #ifdef F77_DUMMY_MAIN
4409 #  ifdef __cplusplus
4410      extern "C"
4411 #  endif
4412    int F77_DUMMY_MAIN() { return 1; }
4413 #endif
4414 int
4415 main ()
4416 {
4417 setproctitle ();
4418   ;
4419   return 0;
4420 }
4421 _ACEOF
4422 rm -f conftest.$ac_objext conftest$ac_exeext
4423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4424   (eval $ac_link) 2>&5
4425   ac_status=$?
4426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); } &&
4428          { ac_try='test -s conftest$ac_exeext'
4429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430   (eval $ac_try) 2>&5
4431   ac_status=$?
4432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433   (exit $ac_status); }; }; then
4434   ac_cv_lib_util_setproctitle=yes
4435 else
4436   echo "$as_me: failed program was:" >&5
4437 cat conftest.$ac_ext >&5
4438 ac_cv_lib_util_setproctitle=no
4439 fi
4440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4441 LIBS=$ac_check_lib_save_LIBS
4442 fi
4443 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4444 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4445 if test $ac_cv_lib_util_setproctitle = yes; then
4446   cat >>confdefs.h <<_ACEOF
4447 #define HAVE_LIBUTIL 1
4448 _ACEOF
4449
4450   LIBS="-lutil $LIBS"
4451
4452 fi
4453
4454
4455 echo "$as_me:$LINENO: checking for main in -lm" >&5
4456 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4457 if test "${ac_cv_lib_m_main+set}" = set; then
4458   echo $ECHO_N "(cached) $ECHO_C" >&6
4459 else
4460   ac_check_lib_save_LIBS=$LIBS
4461 LIBS="-lm  $LIBS"
4462 cat >conftest.$ac_ext <<_ACEOF
4463 #line $LINENO "configure"
4464 #include "confdefs.h"
4465
4466
4467 #ifdef F77_DUMMY_MAIN
4468 #  ifdef __cplusplus
4469      extern "C"
4470 #  endif
4471    int F77_DUMMY_MAIN() { return 1; }
4472 #endif
4473 int
4474 main ()
4475 {
4476 main ();
4477   ;
4478   return 0;
4479 }
4480 _ACEOF
4481 rm -f conftest.$ac_objext conftest$ac_exeext
4482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4483   (eval $ac_link) 2>&5
4484   ac_status=$?
4485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486   (exit $ac_status); } &&
4487          { ac_try='test -s conftest$ac_exeext'
4488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489   (eval $ac_try) 2>&5
4490   ac_status=$?
4491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492   (exit $ac_status); }; }; then
4493   ac_cv_lib_m_main=yes
4494 else
4495   echo "$as_me: failed program was:" >&5
4496 cat conftest.$ac_ext >&5
4497 ac_cv_lib_m_main=no
4498 fi
4499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4500 LIBS=$ac_check_lib_save_LIBS
4501 fi
4502 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4503 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4504 if test $ac_cv_lib_m_main = yes; then
4505   cat >>confdefs.h <<_ACEOF
4506 #define HAVE_LIBM 1
4507 _ACEOF
4508
4509   LIBS="-lm $LIBS"
4510
4511 fi
4512
4513
4514 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4515 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4516 if test "${ac_cv_lib_dl_main+set}" = set; then
4517   echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519   ac_check_lib_save_LIBS=$LIBS
4520 LIBS="-ldl  $LIBS"
4521 cat >conftest.$ac_ext <<_ACEOF
4522 #line $LINENO "configure"
4523 #include "confdefs.h"
4524
4525
4526 #ifdef F77_DUMMY_MAIN
4527 #  ifdef __cplusplus
4528      extern "C"
4529 #  endif
4530    int F77_DUMMY_MAIN() { return 1; }
4531 #endif
4532 int
4533 main ()
4534 {
4535 main ();
4536   ;
4537   return 0;
4538 }
4539 _ACEOF
4540 rm -f conftest.$ac_objext conftest$ac_exeext
4541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4542   (eval $ac_link) 2>&5
4543   ac_status=$?
4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545   (exit $ac_status); } &&
4546          { ac_try='test -s conftest$ac_exeext'
4547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548   (eval $ac_try) 2>&5
4549   ac_status=$?
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); }; }; then
4552   ac_cv_lib_dl_main=yes
4553 else
4554   echo "$as_me: failed program was:" >&5
4555 cat conftest.$ac_ext >&5
4556 ac_cv_lib_dl_main=no
4557 fi
4558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4559 LIBS=$ac_check_lib_save_LIBS
4560 fi
4561 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4562 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4563 if test $ac_cv_lib_dl_main = yes; then
4564   cat >>confdefs.h <<_ACEOF
4565 #define HAVE_LIBDL 1
4566 _ACEOF
4567
4568   LIBS="-ldl $LIBS"
4569
4570 fi
4571
4572
4573 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4574 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4575 if test "${ac_cv_lib_nsl_main+set}" = set; then
4576   echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578   ac_check_lib_save_LIBS=$LIBS
4579 LIBS="-lnsl  $LIBS"
4580 cat >conftest.$ac_ext <<_ACEOF
4581 #line $LINENO "configure"
4582 #include "confdefs.h"
4583
4584
4585 #ifdef F77_DUMMY_MAIN
4586 #  ifdef __cplusplus
4587      extern "C"
4588 #  endif
4589    int F77_DUMMY_MAIN() { return 1; }
4590 #endif
4591 int
4592 main ()
4593 {
4594 main ();
4595   ;
4596   return 0;
4597 }
4598 _ACEOF
4599 rm -f conftest.$ac_objext conftest$ac_exeext
4600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4601   (eval $ac_link) 2>&5
4602   ac_status=$?
4603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604   (exit $ac_status); } &&
4605          { ac_try='test -s conftest$ac_exeext'
4606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607   (eval $ac_try) 2>&5
4608   ac_status=$?
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); }; }; then
4611   ac_cv_lib_nsl_main=yes
4612 else
4613   echo "$as_me: failed program was:" >&5
4614 cat conftest.$ac_ext >&5
4615 ac_cv_lib_nsl_main=no
4616 fi
4617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4618 LIBS=$ac_check_lib_save_LIBS
4619 fi
4620 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4621 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4622 if test $ac_cv_lib_nsl_main = yes; then
4623   cat >>confdefs.h <<_ACEOF
4624 #define HAVE_LIBNSL 1
4625 _ACEOF
4626
4627   LIBS="-lnsl $LIBS"
4628
4629 fi
4630
4631
4632 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4633 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4634 if test "${ac_cv_lib_socket_main+set}" = set; then
4635   echo $ECHO_N "(cached) $ECHO_C" >&6
4636 else
4637   ac_check_lib_save_LIBS=$LIBS
4638 LIBS="-lsocket  $LIBS"
4639 cat >conftest.$ac_ext <<_ACEOF
4640 #line $LINENO "configure"
4641 #include "confdefs.h"
4642
4643
4644 #ifdef F77_DUMMY_MAIN
4645 #  ifdef __cplusplus
4646      extern "C"
4647 #  endif
4648    int F77_DUMMY_MAIN() { return 1; }
4649 #endif
4650 int
4651 main ()
4652 {
4653 main ();
4654   ;
4655   return 0;
4656 }
4657 _ACEOF
4658 rm -f conftest.$ac_objext conftest$ac_exeext
4659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4660   (eval $ac_link) 2>&5
4661   ac_status=$?
4662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); } &&
4664          { ac_try='test -s conftest$ac_exeext'
4665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666   (eval $ac_try) 2>&5
4667   ac_status=$?
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); }; }; then
4670   ac_cv_lib_socket_main=yes
4671 else
4672   echo "$as_me: failed program was:" >&5
4673 cat conftest.$ac_ext >&5
4674 ac_cv_lib_socket_main=no
4675 fi
4676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4677 LIBS=$ac_check_lib_save_LIBS
4678 fi
4679 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4680 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4681 if test $ac_cv_lib_socket_main = yes; then
4682   cat >>confdefs.h <<_ACEOF
4683 #define HAVE_LIBSOCKET 1
4684 _ACEOF
4685
4686   LIBS="-lsocket $LIBS"
4687
4688 fi
4689
4690
4691 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4692 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4693 if test "${ac_cv_lib_ipc_main+set}" = set; then
4694   echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696   ac_check_lib_save_LIBS=$LIBS
4697 LIBS="-lipc  $LIBS"
4698 cat >conftest.$ac_ext <<_ACEOF
4699 #line $LINENO "configure"
4700 #include "confdefs.h"
4701
4702
4703 #ifdef F77_DUMMY_MAIN
4704 #  ifdef __cplusplus
4705      extern "C"
4706 #  endif
4707    int F77_DUMMY_MAIN() { return 1; }
4708 #endif
4709 int
4710 main ()
4711 {
4712 main ();
4713   ;
4714   return 0;
4715 }
4716 _ACEOF
4717 rm -f conftest.$ac_objext conftest$ac_exeext
4718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4719   (eval $ac_link) 2>&5
4720   ac_status=$?
4721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722   (exit $ac_status); } &&
4723          { ac_try='test -s conftest$ac_exeext'
4724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725   (eval $ac_try) 2>&5
4726   ac_status=$?
4727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728   (exit $ac_status); }; }; then
4729   ac_cv_lib_ipc_main=yes
4730 else
4731   echo "$as_me: failed program was:" >&5
4732 cat conftest.$ac_ext >&5
4733 ac_cv_lib_ipc_main=no
4734 fi
4735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4736 LIBS=$ac_check_lib_save_LIBS
4737 fi
4738 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4739 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4740 if test $ac_cv_lib_ipc_main = yes; then
4741   cat >>confdefs.h <<_ACEOF
4742 #define HAVE_LIBIPC 1
4743 _ACEOF
4744
4745   LIBS="-lipc $LIBS"
4746
4747 fi
4748
4749
4750 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4751 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4752 if test "${ac_cv_lib_IPC_main+set}" = set; then
4753   echo $ECHO_N "(cached) $ECHO_C" >&6
4754 else
4755   ac_check_lib_save_LIBS=$LIBS
4756 LIBS="-lIPC  $LIBS"
4757 cat >conftest.$ac_ext <<_ACEOF
4758 #line $LINENO "configure"
4759 #include "confdefs.h"
4760
4761
4762 #ifdef F77_DUMMY_MAIN
4763 #  ifdef __cplusplus
4764      extern "C"
4765 #  endif
4766    int F77_DUMMY_MAIN() { return 1; }
4767 #endif
4768 int
4769 main ()
4770 {
4771 main ();
4772   ;
4773   return 0;
4774 }
4775 _ACEOF
4776 rm -f conftest.$ac_objext conftest$ac_exeext
4777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4778   (eval $ac_link) 2>&5
4779   ac_status=$?
4780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); } &&
4782          { ac_try='test -s conftest$ac_exeext'
4783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784   (eval $ac_try) 2>&5
4785   ac_status=$?
4786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787   (exit $ac_status); }; }; then
4788   ac_cv_lib_IPC_main=yes
4789 else
4790   echo "$as_me: failed program was:" >&5
4791 cat conftest.$ac_ext >&5
4792 ac_cv_lib_IPC_main=no
4793 fi
4794 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4795 LIBS=$ac_check_lib_save_LIBS
4796 fi
4797 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4798 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4799 if test $ac_cv_lib_IPC_main = yes; then
4800   cat >>confdefs.h <<_ACEOF
4801 #define HAVE_LIBIPC 1
4802 _ACEOF
4803
4804   LIBS="-lIPC $LIBS"
4805
4806 fi
4807
4808
4809 echo "$as_me:$LINENO: checking for main in -llc" >&5
4810 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4811 if test "${ac_cv_lib_lc_main+set}" = set; then
4812   echo $ECHO_N "(cached) $ECHO_C" >&6
4813 else
4814   ac_check_lib_save_LIBS=$LIBS
4815 LIBS="-llc  $LIBS"
4816 cat >conftest.$ac_ext <<_ACEOF
4817 #line $LINENO "configure"
4818 #include "confdefs.h"
4819
4820
4821 #ifdef F77_DUMMY_MAIN
4822 #  ifdef __cplusplus
4823      extern "C"
4824 #  endif
4825    int F77_DUMMY_MAIN() { return 1; }
4826 #endif
4827 int
4828 main ()
4829 {
4830 main ();
4831   ;
4832   return 0;
4833 }
4834 _ACEOF
4835 rm -f conftest.$ac_objext conftest$ac_exeext
4836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4837   (eval $ac_link) 2>&5
4838   ac_status=$?
4839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840   (exit $ac_status); } &&
4841          { ac_try='test -s conftest$ac_exeext'
4842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843   (eval $ac_try) 2>&5
4844   ac_status=$?
4845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846   (exit $ac_status); }; }; then
4847   ac_cv_lib_lc_main=yes
4848 else
4849   echo "$as_me: failed program was:" >&5
4850 cat conftest.$ac_ext >&5
4851 ac_cv_lib_lc_main=no
4852 fi
4853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4854 LIBS=$ac_check_lib_save_LIBS
4855 fi
4856 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4857 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4858 if test $ac_cv_lib_lc_main = yes; then
4859   cat >>confdefs.h <<_ACEOF
4860 #define HAVE_LIBLC 1
4861 _ACEOF
4862
4863   LIBS="-llc $LIBS"
4864
4865 fi
4866
4867
4868 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4869 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4870 if test "${ac_cv_lib_dld_main+set}" = set; then
4871   echo $ECHO_N "(cached) $ECHO_C" >&6
4872 else
4873   ac_check_lib_save_LIBS=$LIBS
4874 LIBS="-ldld  $LIBS"
4875 cat >conftest.$ac_ext <<_ACEOF
4876 #line $LINENO "configure"
4877 #include "confdefs.h"
4878
4879
4880 #ifdef F77_DUMMY_MAIN
4881 #  ifdef __cplusplus
4882      extern "C"
4883 #  endif
4884    int F77_DUMMY_MAIN() { return 1; }
4885 #endif
4886 int
4887 main ()
4888 {
4889 main ();
4890   ;
4891   return 0;
4892 }
4893 _ACEOF
4894 rm -f conftest.$ac_objext conftest$ac_exeext
4895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4896   (eval $ac_link) 2>&5
4897   ac_status=$?
4898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899   (exit $ac_status); } &&
4900          { ac_try='test -s conftest$ac_exeext'
4901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902   (eval $ac_try) 2>&5
4903   ac_status=$?
4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905   (exit $ac_status); }; }; then
4906   ac_cv_lib_dld_main=yes
4907 else
4908   echo "$as_me: failed program was:" >&5
4909 cat conftest.$ac_ext >&5
4910 ac_cv_lib_dld_main=no
4911 fi
4912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4913 LIBS=$ac_check_lib_save_LIBS
4914 fi
4915 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4916 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4917 if test $ac_cv_lib_dld_main = yes; then
4918   cat >>confdefs.h <<_ACEOF
4919 #define HAVE_LIBDLD 1
4920 _ACEOF
4921
4922   LIBS="-ldld $LIBS"
4923
4924 fi
4925
4926
4927 echo "$as_me:$LINENO: checking for main in -lld" >&5
4928 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4929 if test "${ac_cv_lib_ld_main+set}" = set; then
4930   echo $ECHO_N "(cached) $ECHO_C" >&6
4931 else
4932   ac_check_lib_save_LIBS=$LIBS
4933 LIBS="-lld  $LIBS"
4934 cat >conftest.$ac_ext <<_ACEOF
4935 #line $LINENO "configure"
4936 #include "confdefs.h"
4937
4938
4939 #ifdef F77_DUMMY_MAIN
4940 #  ifdef __cplusplus
4941      extern "C"
4942 #  endif
4943    int F77_DUMMY_MAIN() { return 1; }
4944 #endif
4945 int
4946 main ()
4947 {
4948 main ();
4949   ;
4950   return 0;
4951 }
4952 _ACEOF
4953 rm -f conftest.$ac_objext conftest$ac_exeext
4954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4955   (eval $ac_link) 2>&5
4956   ac_status=$?
4957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958   (exit $ac_status); } &&
4959          { ac_try='test -s conftest$ac_exeext'
4960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961   (eval $ac_try) 2>&5
4962   ac_status=$?
4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964   (exit $ac_status); }; }; then
4965   ac_cv_lib_ld_main=yes
4966 else
4967   echo "$as_me: failed program was:" >&5
4968 cat conftest.$ac_ext >&5
4969 ac_cv_lib_ld_main=no
4970 fi
4971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4972 LIBS=$ac_check_lib_save_LIBS
4973 fi
4974 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
4975 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
4976 if test $ac_cv_lib_ld_main = yes; then
4977   cat >>confdefs.h <<_ACEOF
4978 #define HAVE_LIBLD 1
4979 _ACEOF
4980
4981   LIBS="-lld $LIBS"
4982
4983 fi
4984
4985
4986 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
4987 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
4988 if test "${ac_cv_lib_compat_main+set}" = set; then
4989   echo $ECHO_N "(cached) $ECHO_C" >&6
4990 else
4991   ac_check_lib_save_LIBS=$LIBS
4992 LIBS="-lcompat  $LIBS"
4993 cat >conftest.$ac_ext <<_ACEOF
4994 #line $LINENO "configure"
4995 #include "confdefs.h"
4996
4997
4998 #ifdef F77_DUMMY_MAIN
4999 #  ifdef __cplusplus
5000      extern "C"
5001 #  endif
5002    int F77_DUMMY_MAIN() { return 1; }
5003 #endif
5004 int
5005 main ()
5006 {
5007 main ();
5008   ;
5009   return 0;
5010 }
5011 _ACEOF
5012 rm -f conftest.$ac_objext conftest$ac_exeext
5013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5014   (eval $ac_link) 2>&5
5015   ac_status=$?
5016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017   (exit $ac_status); } &&
5018          { ac_try='test -s conftest$ac_exeext'
5019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020   (eval $ac_try) 2>&5
5021   ac_status=$?
5022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023   (exit $ac_status); }; }; then
5024   ac_cv_lib_compat_main=yes
5025 else
5026   echo "$as_me: failed program was:" >&5
5027 cat conftest.$ac_ext >&5
5028 ac_cv_lib_compat_main=no
5029 fi
5030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5031 LIBS=$ac_check_lib_save_LIBS
5032 fi
5033 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5034 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5035 if test $ac_cv_lib_compat_main = yes; then
5036   cat >>confdefs.h <<_ACEOF
5037 #define HAVE_LIBCOMPAT 1
5038 _ACEOF
5039
5040   LIBS="-lcompat $LIBS"
5041
5042 fi
5043
5044
5045 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5046 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5047 if test "${ac_cv_lib_BSD_main+set}" = set; then
5048   echo $ECHO_N "(cached) $ECHO_C" >&6
5049 else
5050   ac_check_lib_save_LIBS=$LIBS
5051 LIBS="-lBSD  $LIBS"
5052 cat >conftest.$ac_ext <<_ACEOF
5053 #line $LINENO "configure"
5054 #include "confdefs.h"
5055
5056
5057 #ifdef F77_DUMMY_MAIN
5058 #  ifdef __cplusplus
5059      extern "C"
5060 #  endif
5061    int F77_DUMMY_MAIN() { return 1; }
5062 #endif
5063 int
5064 main ()
5065 {
5066 main ();
5067   ;
5068   return 0;
5069 }
5070 _ACEOF
5071 rm -f conftest.$ac_objext conftest$ac_exeext
5072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5073   (eval $ac_link) 2>&5
5074   ac_status=$?
5075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076   (exit $ac_status); } &&
5077          { ac_try='test -s conftest$ac_exeext'
5078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079   (eval $ac_try) 2>&5
5080   ac_status=$?
5081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082   (exit $ac_status); }; }; then
5083   ac_cv_lib_BSD_main=yes
5084 else
5085   echo "$as_me: failed program was:" >&5
5086 cat conftest.$ac_ext >&5
5087 ac_cv_lib_BSD_main=no
5088 fi
5089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5090 LIBS=$ac_check_lib_save_LIBS
5091 fi
5092 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5093 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5094 if test $ac_cv_lib_BSD_main = yes; then
5095   cat >>confdefs.h <<_ACEOF
5096 #define HAVE_LIBBSD 1
5097 _ACEOF
5098
5099   LIBS="-lBSD $LIBS"
5100
5101 fi
5102
5103
5104 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5105 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5106 if test "${ac_cv_lib_gen_main+set}" = set; then
5107   echo $ECHO_N "(cached) $ECHO_C" >&6
5108 else
5109   ac_check_lib_save_LIBS=$LIBS
5110 LIBS="-lgen  $LIBS"
5111 cat >conftest.$ac_ext <<_ACEOF
5112 #line $LINENO "configure"
5113 #include "confdefs.h"
5114
5115
5116 #ifdef F77_DUMMY_MAIN
5117 #  ifdef __cplusplus
5118      extern "C"
5119 #  endif
5120    int F77_DUMMY_MAIN() { return 1; }
5121 #endif
5122 int
5123 main ()
5124 {
5125 main ();
5126   ;
5127   return 0;
5128 }
5129 _ACEOF
5130 rm -f conftest.$ac_objext conftest$ac_exeext
5131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5132   (eval $ac_link) 2>&5
5133   ac_status=$?
5134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135   (exit $ac_status); } &&
5136          { ac_try='test -s conftest$ac_exeext'
5137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138   (eval $ac_try) 2>&5
5139   ac_status=$?
5140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141   (exit $ac_status); }; }; then
5142   ac_cv_lib_gen_main=yes
5143 else
5144   echo "$as_me: failed program was:" >&5
5145 cat conftest.$ac_ext >&5
5146 ac_cv_lib_gen_main=no
5147 fi
5148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5149 LIBS=$ac_check_lib_save_LIBS
5150 fi
5151 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5152 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5153 if test $ac_cv_lib_gen_main = yes; then
5154   cat >>confdefs.h <<_ACEOF
5155 #define HAVE_LIBGEN 1
5156 _ACEOF
5157
5158   LIBS="-lgen $LIBS"
5159
5160 fi
5161
5162
5163 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5164 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5165 if test "${ac_cv_lib_PW_main+set}" = set; then
5166   echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168   ac_check_lib_save_LIBS=$LIBS
5169 LIBS="-lPW  $LIBS"
5170 cat >conftest.$ac_ext <<_ACEOF
5171 #line $LINENO "configure"
5172 #include "confdefs.h"
5173
5174
5175 #ifdef F77_DUMMY_MAIN
5176 #  ifdef __cplusplus
5177      extern "C"
5178 #  endif
5179    int F77_DUMMY_MAIN() { return 1; }
5180 #endif
5181 int
5182 main ()
5183 {
5184 main ();
5185   ;
5186   return 0;
5187 }
5188 _ACEOF
5189 rm -f conftest.$ac_objext conftest$ac_exeext
5190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5191   (eval $ac_link) 2>&5
5192   ac_status=$?
5193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194   (exit $ac_status); } &&
5195          { ac_try='test -s conftest$ac_exeext'
5196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197   (eval $ac_try) 2>&5
5198   ac_status=$?
5199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200   (exit $ac_status); }; }; then
5201   ac_cv_lib_PW_main=yes
5202 else
5203   echo "$as_me: failed program was:" >&5
5204 cat conftest.$ac_ext >&5
5205 ac_cv_lib_PW_main=no
5206 fi
5207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5208 LIBS=$ac_check_lib_save_LIBS
5209 fi
5210 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5211 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5212 if test $ac_cv_lib_PW_main = yes; then
5213   cat >>confdefs.h <<_ACEOF
5214 #define HAVE_LIBPW 1
5215 _ACEOF
5216
5217   LIBS="-lPW $LIBS"
5218
5219 fi
5220
5221
5222 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5223 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5224 if test "${ac_cv_lib_resolv_main+set}" = set; then
5225   echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227   ac_check_lib_save_LIBS=$LIBS
5228 LIBS="-lresolv  $LIBS"
5229 cat >conftest.$ac_ext <<_ACEOF
5230 #line $LINENO "configure"
5231 #include "confdefs.h"
5232
5233
5234 #ifdef F77_DUMMY_MAIN
5235 #  ifdef __cplusplus
5236      extern "C"
5237 #  endif
5238    int F77_DUMMY_MAIN() { return 1; }
5239 #endif
5240 int
5241 main ()
5242 {
5243 main ();
5244   ;
5245   return 0;
5246 }
5247 _ACEOF
5248 rm -f conftest.$ac_objext conftest$ac_exeext
5249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5250   (eval $ac_link) 2>&5
5251   ac_status=$?
5252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253   (exit $ac_status); } &&
5254          { ac_try='test -s conftest$ac_exeext'
5255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256   (eval $ac_try) 2>&5
5257   ac_status=$?
5258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259   (exit $ac_status); }; }; then
5260   ac_cv_lib_resolv_main=yes
5261 else
5262   echo "$as_me: failed program was:" >&5
5263 cat conftest.$ac_ext >&5
5264 ac_cv_lib_resolv_main=no
5265 fi
5266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5267 LIBS=$ac_check_lib_save_LIBS
5268 fi
5269 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5270 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5271 if test $ac_cv_lib_resolv_main = yes; then
5272   cat >>confdefs.h <<_ACEOF
5273 #define HAVE_LIBRESOLV 1
5274 _ACEOF
5275
5276   LIBS="-lresolv $LIBS"
5277
5278 fi
5279
5280 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5281 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5282 if test "${ac_cv_search_getopt_long+set}" = set; then
5283   echo $ECHO_N "(cached) $ECHO_C" >&6
5284 else
5285   ac_func_search_save_LIBS=$LIBS
5286 ac_cv_search_getopt_long=no
5287 cat >conftest.$ac_ext <<_ACEOF
5288 #line $LINENO "configure"
5289 #include "confdefs.h"
5290
5291 /* Override any gcc2 internal prototype to avoid an error.  */
5292 #ifdef __cplusplus
5293 extern "C"
5294 #endif
5295 /* We use char because int might match the return type of a gcc2
5296    builtin and then its argument prototype would still apply.  */
5297 char getopt_long ();
5298 #ifdef F77_DUMMY_MAIN
5299 #  ifdef __cplusplus
5300      extern "C"
5301 #  endif
5302    int F77_DUMMY_MAIN() { return 1; }
5303 #endif
5304 int
5305 main ()
5306 {
5307 getopt_long ();
5308   ;
5309   return 0;
5310 }
5311 _ACEOF
5312 rm -f conftest.$ac_objext conftest$ac_exeext
5313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5314   (eval $ac_link) 2>&5
5315   ac_status=$?
5316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317   (exit $ac_status); } &&
5318          { ac_try='test -s conftest$ac_exeext'
5319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320   (eval $ac_try) 2>&5
5321   ac_status=$?
5322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323   (exit $ac_status); }; }; then
5324   ac_cv_search_getopt_long="none required"
5325 else
5326   echo "$as_me: failed program was:" >&5
5327 cat conftest.$ac_ext >&5
5328 fi
5329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5330 if test "$ac_cv_search_getopt_long" = no; then
5331   for ac_lib in getopt gnugetopt; do
5332     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5333     cat >conftest.$ac_ext <<_ACEOF
5334 #line $LINENO "configure"
5335 #include "confdefs.h"
5336
5337 /* Override any gcc2 internal prototype to avoid an error.  */
5338 #ifdef __cplusplus
5339 extern "C"
5340 #endif
5341 /* We use char because int might match the return type of a gcc2
5342    builtin and then its argument prototype would still apply.  */
5343 char getopt_long ();
5344 #ifdef F77_DUMMY_MAIN
5345 #  ifdef __cplusplus
5346      extern "C"
5347 #  endif
5348    int F77_DUMMY_MAIN() { return 1; }
5349 #endif
5350 int
5351 main ()
5352 {
5353 getopt_long ();
5354   ;
5355   return 0;
5356 }
5357 _ACEOF
5358 rm -f conftest.$ac_objext conftest$ac_exeext
5359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5360   (eval $ac_link) 2>&5
5361   ac_status=$?
5362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363   (exit $ac_status); } &&
5364          { ac_try='test -s conftest$ac_exeext'
5365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366   (eval $ac_try) 2>&5
5367   ac_status=$?
5368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369   (exit $ac_status); }; }; then
5370   ac_cv_search_getopt_long="-l$ac_lib"
5371 break
5372 else
5373   echo "$as_me: failed program was:" >&5
5374 cat conftest.$ac_ext >&5
5375 fi
5376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5377   done
5378 fi
5379 LIBS=$ac_func_search_save_LIBS
5380 fi
5381 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5382 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5383 if test "$ac_cv_search_getopt_long" != no; then
5384   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5385
5386 fi
5387
5388 # QNX:
5389
5390 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5391 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5392 if test "${ac_cv_lib_unix_main+set}" = set; then
5393   echo $ECHO_N "(cached) $ECHO_C" >&6
5394 else
5395   ac_check_lib_save_LIBS=$LIBS
5396 LIBS="-lunix  $LIBS"
5397 cat >conftest.$ac_ext <<_ACEOF
5398 #line $LINENO "configure"
5399 #include "confdefs.h"
5400
5401
5402 #ifdef F77_DUMMY_MAIN
5403 #  ifdef __cplusplus
5404      extern "C"
5405 #  endif
5406    int F77_DUMMY_MAIN() { return 1; }
5407 #endif
5408 int
5409 main ()
5410 {
5411 main ();
5412   ;
5413   return 0;
5414 }
5415 _ACEOF
5416 rm -f conftest.$ac_objext conftest$ac_exeext
5417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5418   (eval $ac_link) 2>&5
5419   ac_status=$?
5420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421   (exit $ac_status); } &&
5422          { ac_try='test -s conftest$ac_exeext'
5423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5424   (eval $ac_try) 2>&5
5425   ac_status=$?
5426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427   (exit $ac_status); }; }; then
5428   ac_cv_lib_unix_main=yes
5429 else
5430   echo "$as_me: failed program was:" >&5
5431 cat conftest.$ac_ext >&5
5432 ac_cv_lib_unix_main=no
5433 fi
5434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5435 LIBS=$ac_check_lib_save_LIBS
5436 fi
5437 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5438 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5439 if test $ac_cv_lib_unix_main = yes; then
5440   cat >>confdefs.h <<_ACEOF
5441 #define HAVE_LIBUNIX 1
5442 _ACEOF
5443
5444   LIBS="-lunix $LIBS"
5445
5446 fi
5447
5448 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5449 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5450 if test "${ac_cv_search_crypt+set}" = set; then
5451   echo $ECHO_N "(cached) $ECHO_C" >&6
5452 else
5453   ac_func_search_save_LIBS=$LIBS
5454 ac_cv_search_crypt=no
5455 cat >conftest.$ac_ext <<_ACEOF
5456 #line $LINENO "configure"
5457 #include "confdefs.h"
5458
5459 /* Override any gcc2 internal prototype to avoid an error.  */
5460 #ifdef __cplusplus
5461 extern "C"
5462 #endif
5463 /* We use char because int might match the return type of a gcc2
5464    builtin and then its argument prototype would still apply.  */
5465 char crypt ();
5466 #ifdef F77_DUMMY_MAIN
5467 #  ifdef __cplusplus
5468      extern "C"
5469 #  endif
5470    int F77_DUMMY_MAIN() { return 1; }
5471 #endif
5472 int
5473 main ()
5474 {
5475 crypt ();
5476   ;
5477   return 0;
5478 }
5479 _ACEOF
5480 rm -f conftest.$ac_objext conftest$ac_exeext
5481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5482   (eval $ac_link) 2>&5
5483   ac_status=$?
5484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485   (exit $ac_status); } &&
5486          { ac_try='test -s conftest$ac_exeext'
5487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488   (eval $ac_try) 2>&5
5489   ac_status=$?
5490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491   (exit $ac_status); }; }; then
5492   ac_cv_search_crypt="none required"
5493 else
5494   echo "$as_me: failed program was:" >&5
5495 cat conftest.$ac_ext >&5
5496 fi
5497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5498 if test "$ac_cv_search_crypt" = no; then
5499   for ac_lib in crypt; do
5500     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5501     cat >conftest.$ac_ext <<_ACEOF
5502 #line $LINENO "configure"
5503 #include "confdefs.h"
5504
5505 /* Override any gcc2 internal prototype to avoid an error.  */
5506 #ifdef __cplusplus
5507 extern "C"
5508 #endif
5509 /* We use char because int might match the return type of a gcc2
5510    builtin and then its argument prototype would still apply.  */
5511 char crypt ();
5512 #ifdef F77_DUMMY_MAIN
5513 #  ifdef __cplusplus
5514      extern "C"
5515 #  endif
5516    int F77_DUMMY_MAIN() { return 1; }
5517 #endif
5518 int
5519 main ()
5520 {
5521 crypt ();
5522   ;
5523   return 0;
5524 }
5525 _ACEOF
5526 rm -f conftest.$ac_objext conftest$ac_exeext
5527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5528   (eval $ac_link) 2>&5
5529   ac_status=$?
5530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531   (exit $ac_status); } &&
5532          { ac_try='test -s conftest$ac_exeext'
5533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534   (eval $ac_try) 2>&5
5535   ac_status=$?
5536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537   (exit $ac_status); }; }; then
5538   ac_cv_search_crypt="-l$ac_lib"
5539 break
5540 else
5541   echo "$as_me: failed program was:" >&5
5542 cat conftest.$ac_ext >&5
5543 fi
5544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5545   done
5546 fi
5547 LIBS=$ac_func_search_save_LIBS
5548 fi
5549 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5550 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5551 if test "$ac_cv_search_crypt" != no; then
5552   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5553
5554 fi
5555
5556 # BeOS:
5557
5558 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5559 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5560 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5561   echo $ECHO_N "(cached) $ECHO_C" >&6
5562 else
5563   ac_check_lib_save_LIBS=$LIBS
5564 LIBS="-lbind  $LIBS"
5565 cat >conftest.$ac_ext <<_ACEOF
5566 #line $LINENO "configure"
5567 #include "confdefs.h"
5568
5569 /* Override any gcc2 internal prototype to avoid an error.  */
5570 #ifdef __cplusplus
5571 extern "C"
5572 #endif
5573 /* We use char because int might match the return type of a gcc2
5574    builtin and then its argument prototype would still apply.  */
5575 char __inet_ntoa ();
5576 #ifdef F77_DUMMY_MAIN
5577 #  ifdef __cplusplus
5578      extern "C"
5579 #  endif
5580    int F77_DUMMY_MAIN() { return 1; }
5581 #endif
5582 int
5583 main ()
5584 {
5585 __inet_ntoa ();
5586   ;
5587   return 0;
5588 }
5589 _ACEOF
5590 rm -f conftest.$ac_objext conftest$ac_exeext
5591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5592   (eval $ac_link) 2>&5
5593   ac_status=$?
5594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595   (exit $ac_status); } &&
5596          { ac_try='test -s conftest$ac_exeext'
5597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5598   (eval $ac_try) 2>&5
5599   ac_status=$?
5600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601   (exit $ac_status); }; }; then
5602   ac_cv_lib_bind___inet_ntoa=yes
5603 else
5604   echo "$as_me: failed program was:" >&5
5605 cat conftest.$ac_ext >&5
5606 ac_cv_lib_bind___inet_ntoa=no
5607 fi
5608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5609 LIBS=$ac_check_lib_save_LIBS
5610 fi
5611 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5612 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5613 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5614   cat >>confdefs.h <<_ACEOF
5615 #define HAVE_LIBBIND 1
5616 _ACEOF
5617
5618   LIBS="-lbind $LIBS"
5619
5620 fi
5621
5622 # Solaris:
5623 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5624 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5625 if test "${ac_cv_search_fdatasync+set}" = set; then
5626   echo $ECHO_N "(cached) $ECHO_C" >&6
5627 else
5628   ac_func_search_save_LIBS=$LIBS
5629 ac_cv_search_fdatasync=no
5630 cat >conftest.$ac_ext <<_ACEOF
5631 #line $LINENO "configure"
5632 #include "confdefs.h"
5633
5634 /* Override any gcc2 internal prototype to avoid an error.  */
5635 #ifdef __cplusplus
5636 extern "C"
5637 #endif
5638 /* We use char because int might match the return type of a gcc2
5639    builtin and then its argument prototype would still apply.  */
5640 char fdatasync ();
5641 #ifdef F77_DUMMY_MAIN
5642 #  ifdef __cplusplus
5643      extern "C"
5644 #  endif
5645    int F77_DUMMY_MAIN() { return 1; }
5646 #endif
5647 int
5648 main ()
5649 {
5650 fdatasync ();
5651   ;
5652   return 0;
5653 }
5654 _ACEOF
5655 rm -f conftest.$ac_objext conftest$ac_exeext
5656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5657   (eval $ac_link) 2>&5
5658   ac_status=$?
5659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660   (exit $ac_status); } &&
5661          { ac_try='test -s conftest$ac_exeext'
5662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663   (eval $ac_try) 2>&5
5664   ac_status=$?
5665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666   (exit $ac_status); }; }; then
5667   ac_cv_search_fdatasync="none required"
5668 else
5669   echo "$as_me: failed program was:" >&5
5670 cat conftest.$ac_ext >&5
5671 fi
5672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5673 if test "$ac_cv_search_fdatasync" = no; then
5674   for ac_lib in rt posix4; do
5675     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5676     cat >conftest.$ac_ext <<_ACEOF
5677 #line $LINENO "configure"
5678 #include "confdefs.h"
5679
5680 /* Override any gcc2 internal prototype to avoid an error.  */
5681 #ifdef __cplusplus
5682 extern "C"
5683 #endif
5684 /* We use char because int might match the return type of a gcc2
5685    builtin and then its argument prototype would still apply.  */
5686 char fdatasync ();
5687 #ifdef F77_DUMMY_MAIN
5688 #  ifdef __cplusplus
5689      extern "C"
5690 #  endif
5691    int F77_DUMMY_MAIN() { return 1; }
5692 #endif
5693 int
5694 main ()
5695 {
5696 fdatasync ();
5697   ;
5698   return 0;
5699 }
5700 _ACEOF
5701 rm -f conftest.$ac_objext conftest$ac_exeext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5703   (eval $ac_link) 2>&5
5704   ac_status=$?
5705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706   (exit $ac_status); } &&
5707          { ac_try='test -s conftest$ac_exeext'
5708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5709   (eval $ac_try) 2>&5
5710   ac_status=$?
5711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712   (exit $ac_status); }; }; then
5713   ac_cv_search_fdatasync="-l$ac_lib"
5714 break
5715 else
5716   echo "$as_me: failed program was:" >&5
5717 cat conftest.$ac_ext >&5
5718 fi
5719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5720   done
5721 fi
5722 LIBS=$ac_func_search_save_LIBS
5723 fi
5724 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5725 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5726 if test "$ac_cv_search_fdatasync" != no; then
5727   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5728
5729 fi
5730
5731 # Cygwin:
5732
5733 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5734 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5735 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5736   echo $ECHO_N "(cached) $ECHO_C" >&6
5737 else
5738   ac_check_lib_save_LIBS=$LIBS
5739 LIBS="-lcygipc  $LIBS"
5740 cat >conftest.$ac_ext <<_ACEOF
5741 #line $LINENO "configure"
5742 #include "confdefs.h"
5743
5744 /* Override any gcc2 internal prototype to avoid an error.  */
5745 #ifdef __cplusplus
5746 extern "C"
5747 #endif
5748 /* We use char because int might match the return type of a gcc2
5749    builtin and then its argument prototype would still apply.  */
5750 char shmget ();
5751 #ifdef F77_DUMMY_MAIN
5752 #  ifdef __cplusplus
5753      extern "C"
5754 #  endif
5755    int F77_DUMMY_MAIN() { return 1; }
5756 #endif
5757 int
5758 main ()
5759 {
5760 shmget ();
5761   ;
5762   return 0;
5763 }
5764 _ACEOF
5765 rm -f conftest.$ac_objext conftest$ac_exeext
5766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5767   (eval $ac_link) 2>&5
5768   ac_status=$?
5769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770   (exit $ac_status); } &&
5771          { ac_try='test -s conftest$ac_exeext'
5772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773   (eval $ac_try) 2>&5
5774   ac_status=$?
5775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776   (exit $ac_status); }; }; then
5777   ac_cv_lib_cygipc_shmget=yes
5778 else
5779   echo "$as_me: failed program was:" >&5
5780 cat conftest.$ac_ext >&5
5781 ac_cv_lib_cygipc_shmget=no
5782 fi
5783 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5784 LIBS=$ac_check_lib_save_LIBS
5785 fi
5786 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5787 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5788 if test $ac_cv_lib_cygipc_shmget = yes; then
5789   cat >>confdefs.h <<_ACEOF
5790 #define HAVE_LIBCYGIPC 1
5791 _ACEOF
5792
5793   LIBS="-lcygipc $LIBS"
5794
5795 fi
5796
5797
5798 if test "$with_readline" = yes; then
5799
5800 echo "$as_me:$LINENO: checking for readline" >&5
5801 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5802
5803 if test "${pgac_cv_check_readline+set}" = set; then
5804   echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5806   pgac_cv_check_readline=no
5807 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5808   for pgac_rllib in -lreadline -ledit ; do
5809     pgac_save_LIBS=$LIBS
5810     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5811     cat >conftest.$ac_ext <<_ACEOF
5812 #line $LINENO "configure"
5813 #include "confdefs.h"
5814
5815 /* Override any gcc2 internal prototype to avoid an error.  */
5816 #ifdef __cplusplus
5817 extern "C"
5818 #endif
5819 /* We use char because int might match the return type of a gcc2
5820    builtin and then its argument prototype would still apply.  */
5821 char readline ();
5822 #ifdef F77_DUMMY_MAIN
5823 #  ifdef __cplusplus
5824      extern "C"
5825 #  endif
5826    int F77_DUMMY_MAIN() { return 1; }
5827 #endif
5828 int
5829 main ()
5830 {
5831 readline ();
5832   ;
5833   return 0;
5834 }
5835 _ACEOF
5836 rm -f conftest.$ac_objext conftest$ac_exeext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5838   (eval $ac_link) 2>&5
5839   ac_status=$?
5840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841   (exit $ac_status); } &&
5842          { ac_try='test -s conftest$ac_exeext'
5843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844   (eval $ac_try) 2>&5
5845   ac_status=$?
5846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847   (exit $ac_status); }; }; then
5848
5849       # NetBSD and OpenBSD have a broken linker that does not
5850       # recognize dependent libraries
5851       case $host_os in netbsd* | openbsd* )
5852         case $pgac_lib in
5853           *curses*) ;;
5854           *) pgac_lib=" -lcurses" ;;
5855         esac
5856       esac
5857
5858       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5859       break 2
5860
5861 else
5862   echo "$as_me: failed program was:" >&5
5863 cat conftest.$ac_ext >&5
5864 fi
5865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5866     LIBS=$pgac_save_LIBS
5867   done
5868 done
5869 LIBS=$pgac_save_LIBS
5870
5871 fi
5872
5873 if test "$pgac_cv_check_readline" != no ; then
5874
5875 cat >>confdefs.h <<\_ACEOF
5876 #define HAVE_LIBREADLINE 1
5877 _ACEOF
5878
5879   LIBS="$pgac_cv_check_readline $LIBS"
5880   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5881 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5882 else
5883   echo "$as_me:$LINENO: result: no" >&5
5884 echo "${ECHO_T}no" >&6
5885 fi
5886   if test x"$pgac_cv_check_readline" = x"no"; then
5887     { { echo "$as_me:$LINENO: error: readline library not found
5888 If you have readline already installed, see config.log for details on the
5889 failure.  It is possible the compiler isn't looking in the proper directory.
5890 Use --without-readline to disable readline support." >&5
5891 echo "$as_me: error: readline library not found
5892 If you have readline already installed, see config.log for details on the
5893 failure.  It is possible the compiler isn't looking in the proper directory.
5894 Use --without-readline to disable readline support." >&2;}
5895    { (exit 1); exit 1; }; }
5896   fi
5897 fi
5898
5899 if test "$with_zlib" = yes; then
5900
5901 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5902 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5903 if test "${ac_cv_lib_z_inflate+set}" = set; then
5904   echo $ECHO_N "(cached) $ECHO_C" >&6
5905 else
5906   ac_check_lib_save_LIBS=$LIBS
5907 LIBS="-lz  $LIBS"
5908 cat >conftest.$ac_ext <<_ACEOF
5909 #line $LINENO "configure"
5910 #include "confdefs.h"
5911
5912 /* Override any gcc2 internal prototype to avoid an error.  */
5913 #ifdef __cplusplus
5914 extern "C"
5915 #endif
5916 /* We use char because int might match the return type of a gcc2
5917    builtin and then its argument prototype would still apply.  */
5918 char inflate ();
5919 #ifdef F77_DUMMY_MAIN
5920 #  ifdef __cplusplus
5921      extern "C"
5922 #  endif
5923    int F77_DUMMY_MAIN() { return 1; }
5924 #endif
5925 int
5926 main ()
5927 {
5928 inflate ();
5929   ;
5930   return 0;
5931 }
5932 _ACEOF
5933 rm -f conftest.$ac_objext conftest$ac_exeext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5935   (eval $ac_link) 2>&5
5936   ac_status=$?
5937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938   (exit $ac_status); } &&
5939          { ac_try='test -s conftest$ac_exeext'
5940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941   (eval $ac_try) 2>&5
5942   ac_status=$?
5943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944   (exit $ac_status); }; }; then
5945   ac_cv_lib_z_inflate=yes
5946 else
5947   echo "$as_me: failed program was:" >&5
5948 cat conftest.$ac_ext >&5
5949 ac_cv_lib_z_inflate=no
5950 fi
5951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5952 LIBS=$ac_check_lib_save_LIBS
5953 fi
5954 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
5955 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
5956 if test $ac_cv_lib_z_inflate = yes; then
5957   cat >>confdefs.h <<_ACEOF
5958 #define HAVE_LIBZ 1
5959 _ACEOF
5960
5961   LIBS="-lz $LIBS"
5962
5963 else
5964   { { echo "$as_me:$LINENO: error: zlib library not found
5965 If you have zlib already installed, see config.log for details on the
5966 failure.  It is possible the compiler isn't looking in the proper directory.
5967 Use --without-zlib to disable zlib support." >&5
5968 echo "$as_me: error: zlib library not found
5969 If you have zlib already installed, see config.log for details on the
5970 failure.  It is possible the compiler isn't looking in the proper directory.
5971 Use --without-zlib to disable zlib support." >&2;}
5972    { (exit 1); exit 1; }; }
5973 fi
5974
5975 fi
5976
5977 if test "$with_krb4" = yes ; then
5978
5979 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
5980 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
5981 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
5982   echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984   ac_check_lib_save_LIBS=$LIBS
5985 LIBS="-ldes  $LIBS"
5986 cat >conftest.$ac_ext <<_ACEOF
5987 #line $LINENO "configure"
5988 #include "confdefs.h"
5989
5990 /* Override any gcc2 internal prototype to avoid an error.  */
5991 #ifdef __cplusplus
5992 extern "C"
5993 #endif
5994 /* We use char because int might match the return type of a gcc2
5995    builtin and then its argument prototype would still apply.  */
5996 char des_encrypt ();
5997 #ifdef F77_DUMMY_MAIN
5998 #  ifdef __cplusplus
5999      extern "C"
6000 #  endif
6001    int F77_DUMMY_MAIN() { return 1; }
6002 #endif
6003 int
6004 main ()
6005 {
6006 des_encrypt ();
6007   ;
6008   return 0;
6009 }
6010 _ACEOF
6011 rm -f conftest.$ac_objext conftest$ac_exeext
6012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6013   (eval $ac_link) 2>&5
6014   ac_status=$?
6015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016   (exit $ac_status); } &&
6017          { ac_try='test -s conftest$ac_exeext'
6018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019   (eval $ac_try) 2>&5
6020   ac_status=$?
6021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022   (exit $ac_status); }; }; then
6023   ac_cv_lib_des_des_encrypt=yes
6024 else
6025   echo "$as_me: failed program was:" >&5
6026 cat conftest.$ac_ext >&5
6027 ac_cv_lib_des_des_encrypt=no
6028 fi
6029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6030 LIBS=$ac_check_lib_save_LIBS
6031 fi
6032 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6033 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6034 if test $ac_cv_lib_des_des_encrypt = yes; then
6035   cat >>confdefs.h <<_ACEOF
6036 #define HAVE_LIBDES 1
6037 _ACEOF
6038
6039   LIBS="-ldes $LIBS"
6040
6041 else
6042   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6043 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6044    { (exit 1); exit 1; }; }
6045 fi
6046
6047
6048 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6049 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6050 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6051   echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053   ac_check_lib_save_LIBS=$LIBS
6054 LIBS="-lkrb  $LIBS"
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 krb_sendauth ();
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 krb_sendauth ();
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_lib_krb_krb_sendauth=yes
6093 else
6094   echo "$as_me: failed program was:" >&5
6095 cat conftest.$ac_ext >&5
6096 ac_cv_lib_krb_krb_sendauth=no
6097 fi
6098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6099 LIBS=$ac_check_lib_save_LIBS
6100 fi
6101 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6102 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6103 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6104   cat >>confdefs.h <<_ACEOF
6105 #define HAVE_LIBKRB 1
6106 _ACEOF
6107
6108   LIBS="-lkrb $LIBS"
6109
6110 else
6111   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6112 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6113    { (exit 1); exit 1; }; }
6114 fi
6115
6116 fi
6117
6118 if test "$with_krb5" = yes ; then
6119   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6120 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6121 if test "${ac_cv_search_com_err+set}" = set; then
6122   echo $ECHO_N "(cached) $ECHO_C" >&6
6123 else
6124   ac_func_search_save_LIBS=$LIBS
6125 ac_cv_search_com_err=no
6126 cat >conftest.$ac_ext <<_ACEOF
6127 #line $LINENO "configure"
6128 #include "confdefs.h"
6129
6130 /* Override any gcc2 internal prototype to avoid an error.  */
6131 #ifdef __cplusplus
6132 extern "C"
6133 #endif
6134 /* We use char because int might match the return type of a gcc2
6135    builtin and then its argument prototype would still apply.  */
6136 char com_err ();
6137 #ifdef F77_DUMMY_MAIN
6138 #  ifdef __cplusplus
6139      extern "C"
6140 #  endif
6141    int F77_DUMMY_MAIN() { return 1; }
6142 #endif
6143 int
6144 main ()
6145 {
6146 com_err ();
6147   ;
6148   return 0;
6149 }
6150 _ACEOF
6151 rm -f conftest.$ac_objext conftest$ac_exeext
6152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6153   (eval $ac_link) 2>&5
6154   ac_status=$?
6155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156   (exit $ac_status); } &&
6157          { ac_try='test -s conftest$ac_exeext'
6158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159   (eval $ac_try) 2>&5
6160   ac_status=$?
6161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162   (exit $ac_status); }; }; then
6163   ac_cv_search_com_err="none required"
6164 else
6165   echo "$as_me: failed program was:" >&5
6166 cat conftest.$ac_ext >&5
6167 fi
6168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6169 if test "$ac_cv_search_com_err" = no; then
6170   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6171     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6172     cat >conftest.$ac_ext <<_ACEOF
6173 #line $LINENO "configure"
6174 #include "confdefs.h"
6175
6176 /* Override any gcc2 internal prototype to avoid an error.  */
6177 #ifdef __cplusplus
6178 extern "C"
6179 #endif
6180 /* We use char because int might match the return type of a gcc2
6181    builtin and then its argument prototype would still apply.  */
6182 char com_err ();
6183 #ifdef F77_DUMMY_MAIN
6184 #  ifdef __cplusplus
6185      extern "C"
6186 #  endif
6187    int F77_DUMMY_MAIN() { return 1; }
6188 #endif
6189 int
6190 main ()
6191 {
6192 com_err ();
6193   ;
6194   return 0;
6195 }
6196 _ACEOF
6197 rm -f conftest.$ac_objext conftest$ac_exeext
6198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6199   (eval $ac_link) 2>&5
6200   ac_status=$?
6201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202   (exit $ac_status); } &&
6203          { ac_try='test -s conftest$ac_exeext'
6204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205   (eval $ac_try) 2>&5
6206   ac_status=$?
6207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208   (exit $ac_status); }; }; then
6209   ac_cv_search_com_err="-l$ac_lib"
6210 break
6211 else
6212   echo "$as_me: failed program was:" >&5
6213 cat conftest.$ac_ext >&5
6214 fi
6215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6216   done
6217 fi
6218 LIBS=$ac_func_search_save_LIBS
6219 fi
6220 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6221 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6222 if test "$ac_cv_search_com_err" != no; then
6223   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6224
6225 else
6226   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6227 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6228    { (exit 1); exit 1; }; }
6229 fi
6230
6231   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6232 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6233 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6234   echo $ECHO_N "(cached) $ECHO_C" >&6
6235 else
6236   ac_func_search_save_LIBS=$LIBS
6237 ac_cv_search_krb5_encrypt=no
6238 cat >conftest.$ac_ext <<_ACEOF
6239 #line $LINENO "configure"
6240 #include "confdefs.h"
6241
6242 /* Override any gcc2 internal prototype to avoid an error.  */
6243 #ifdef __cplusplus
6244 extern "C"
6245 #endif
6246 /* We use char because int might match the return type of a gcc2
6247    builtin and then its argument prototype would still apply.  */
6248 char krb5_encrypt ();
6249 #ifdef F77_DUMMY_MAIN
6250 #  ifdef __cplusplus
6251      extern "C"
6252 #  endif
6253    int F77_DUMMY_MAIN() { return 1; }
6254 #endif
6255 int
6256 main ()
6257 {
6258 krb5_encrypt ();
6259   ;
6260   return 0;
6261 }
6262 _ACEOF
6263 rm -f conftest.$ac_objext conftest$ac_exeext
6264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6265   (eval $ac_link) 2>&5
6266   ac_status=$?
6267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268   (exit $ac_status); } &&
6269          { ac_try='test -s conftest$ac_exeext'
6270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271   (eval $ac_try) 2>&5
6272   ac_status=$?
6273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274   (exit $ac_status); }; }; then
6275   ac_cv_search_krb5_encrypt="none required"
6276 else
6277   echo "$as_me: failed program was:" >&5
6278 cat conftest.$ac_ext >&5
6279 fi
6280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6281 if test "$ac_cv_search_krb5_encrypt" = no; then
6282   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6283     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6284     cat >conftest.$ac_ext <<_ACEOF
6285 #line $LINENO "configure"
6286 #include "confdefs.h"
6287
6288 /* Override any gcc2 internal prototype to avoid an error.  */
6289 #ifdef __cplusplus
6290 extern "C"
6291 #endif
6292 /* We use char because int might match the return type of a gcc2
6293    builtin and then its argument prototype would still apply.  */
6294 char krb5_encrypt ();
6295 #ifdef F77_DUMMY_MAIN
6296 #  ifdef __cplusplus
6297      extern "C"
6298 #  endif
6299    int F77_DUMMY_MAIN() { return 1; }
6300 #endif
6301 int
6302 main ()
6303 {
6304 krb5_encrypt ();
6305   ;
6306   return 0;
6307 }
6308 _ACEOF
6309 rm -f conftest.$ac_objext conftest$ac_exeext
6310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6311   (eval $ac_link) 2>&5
6312   ac_status=$?
6313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314   (exit $ac_status); } &&
6315          { ac_try='test -s conftest$ac_exeext'
6316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317   (eval $ac_try) 2>&5
6318   ac_status=$?
6319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320   (exit $ac_status); }; }; then
6321   ac_cv_search_krb5_encrypt="-l$ac_lib"
6322 break
6323 else
6324   echo "$as_me: failed program was:" >&5
6325 cat conftest.$ac_ext >&5
6326 fi
6327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6328   done
6329 fi
6330 LIBS=$ac_func_search_save_LIBS
6331 fi
6332 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6333 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6334 if test "$ac_cv_search_krb5_encrypt" != no; then
6335   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6336
6337 else
6338   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6339 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6340    { (exit 1); exit 1; }; }
6341 fi
6342
6343   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6344 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6345 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6346   echo $ECHO_N "(cached) $ECHO_C" >&6
6347 else
6348   ac_func_search_save_LIBS=$LIBS
6349 ac_cv_search_krb5_sendauth=no
6350 cat >conftest.$ac_ext <<_ACEOF
6351 #line $LINENO "configure"
6352 #include "confdefs.h"
6353
6354 /* Override any gcc2 internal prototype to avoid an error.  */
6355 #ifdef __cplusplus
6356 extern "C"
6357 #endif
6358 /* We use char because int might match the return type of a gcc2
6359    builtin and then its argument prototype would still apply.  */
6360 char krb5_sendauth ();
6361 #ifdef F77_DUMMY_MAIN
6362 #  ifdef __cplusplus
6363      extern "C"
6364 #  endif
6365    int F77_DUMMY_MAIN() { return 1; }
6366 #endif
6367 int
6368 main ()
6369 {
6370 krb5_sendauth ();
6371   ;
6372   return 0;
6373 }
6374 _ACEOF
6375 rm -f conftest.$ac_objext conftest$ac_exeext
6376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6377   (eval $ac_link) 2>&5
6378   ac_status=$?
6379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380   (exit $ac_status); } &&
6381          { ac_try='test -s conftest$ac_exeext'
6382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383   (eval $ac_try) 2>&5
6384   ac_status=$?
6385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386   (exit $ac_status); }; }; then
6387   ac_cv_search_krb5_sendauth="none required"
6388 else
6389   echo "$as_me: failed program was:" >&5
6390 cat conftest.$ac_ext >&5
6391 fi
6392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6393 if test "$ac_cv_search_krb5_sendauth" = no; then
6394   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6395     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6396     cat >conftest.$ac_ext <<_ACEOF
6397 #line $LINENO "configure"
6398 #include "confdefs.h"
6399
6400 /* Override any gcc2 internal prototype to avoid an error.  */
6401 #ifdef __cplusplus
6402 extern "C"
6403 #endif
6404 /* We use char because int might match the return type of a gcc2
6405    builtin and then its argument prototype would still apply.  */
6406 char krb5_sendauth ();
6407 #ifdef F77_DUMMY_MAIN
6408 #  ifdef __cplusplus
6409      extern "C"
6410 #  endif
6411    int F77_DUMMY_MAIN() { return 1; }
6412 #endif
6413 int
6414 main ()
6415 {
6416 krb5_sendauth ();
6417   ;
6418   return 0;
6419 }
6420 _ACEOF
6421 rm -f conftest.$ac_objext conftest$ac_exeext
6422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6423   (eval $ac_link) 2>&5
6424   ac_status=$?
6425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426   (exit $ac_status); } &&
6427          { ac_try='test -s conftest$ac_exeext'
6428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429   (eval $ac_try) 2>&5
6430   ac_status=$?
6431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432   (exit $ac_status); }; }; then
6433   ac_cv_search_krb5_sendauth="-l$ac_lib"
6434 break
6435 else
6436   echo "$as_me: failed program was:" >&5
6437 cat conftest.$ac_ext >&5
6438 fi
6439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6440   done
6441 fi
6442 LIBS=$ac_func_search_save_LIBS
6443 fi
6444 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6445 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6446 if test "$ac_cv_search_krb5_sendauth" != no; then
6447   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6448
6449 else
6450   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6451 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6452    { (exit 1); exit 1; }; }
6453 fi
6454
6455 fi
6456
6457 if test "$with_openssl" = yes ; then
6458
6459 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6460 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6461 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6462   echo $ECHO_N "(cached) $ECHO_C" >&6
6463 else
6464   ac_check_lib_save_LIBS=$LIBS
6465 LIBS="-lcrypto  $LIBS"
6466 cat >conftest.$ac_ext <<_ACEOF
6467 #line $LINENO "configure"
6468 #include "confdefs.h"
6469
6470 /* Override any gcc2 internal prototype to avoid an error.  */
6471 #ifdef __cplusplus
6472 extern "C"
6473 #endif
6474 /* We use char because int might match the return type of a gcc2
6475    builtin and then its argument prototype would still apply.  */
6476 char CRYPTO_new_ex_data ();
6477 #ifdef F77_DUMMY_MAIN
6478 #  ifdef __cplusplus
6479      extern "C"
6480 #  endif
6481    int F77_DUMMY_MAIN() { return 1; }
6482 #endif
6483 int
6484 main ()
6485 {
6486 CRYPTO_new_ex_data ();
6487   ;
6488   return 0;
6489 }
6490 _ACEOF
6491 rm -f conftest.$ac_objext conftest$ac_exeext
6492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6493   (eval $ac_link) 2>&5
6494   ac_status=$?
6495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496   (exit $ac_status); } &&
6497          { ac_try='test -s conftest$ac_exeext'
6498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499   (eval $ac_try) 2>&5
6500   ac_status=$?
6501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502   (exit $ac_status); }; }; then
6503   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6504 else
6505   echo "$as_me: failed program was:" >&5
6506 cat conftest.$ac_ext >&5
6507 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6508 fi
6509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6510 LIBS=$ac_check_lib_save_LIBS
6511 fi
6512 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6513 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6514 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6515   cat >>confdefs.h <<_ACEOF
6516 #define HAVE_LIBCRYPTO 1
6517 _ACEOF
6518
6519   LIBS="-lcrypto $LIBS"
6520
6521 else
6522   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6523 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6524    { (exit 1); exit 1; }; }
6525 fi
6526
6527
6528 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6529 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6530 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6531   echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533   ac_check_lib_save_LIBS=$LIBS
6534 LIBS="-lssl  $LIBS"
6535 cat >conftest.$ac_ext <<_ACEOF
6536 #line $LINENO "configure"
6537 #include "confdefs.h"
6538
6539 /* Override any gcc2 internal prototype to avoid an error.  */
6540 #ifdef __cplusplus
6541 extern "C"
6542 #endif
6543 /* We use char because int might match the return type of a gcc2
6544    builtin and then its argument prototype would still apply.  */
6545 char SSL_library_init ();
6546 #ifdef F77_DUMMY_MAIN
6547 #  ifdef __cplusplus
6548      extern "C"
6549 #  endif
6550    int F77_DUMMY_MAIN() { return 1; }
6551 #endif
6552 int
6553 main ()
6554 {
6555 SSL_library_init ();
6556   ;
6557   return 0;
6558 }
6559 _ACEOF
6560 rm -f conftest.$ac_objext conftest$ac_exeext
6561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6562   (eval $ac_link) 2>&5
6563   ac_status=$?
6564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565   (exit $ac_status); } &&
6566          { ac_try='test -s conftest$ac_exeext'
6567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568   (eval $ac_try) 2>&5
6569   ac_status=$?
6570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571   (exit $ac_status); }; }; then
6572   ac_cv_lib_ssl_SSL_library_init=yes
6573 else
6574   echo "$as_me: failed program was:" >&5
6575 cat conftest.$ac_ext >&5
6576 ac_cv_lib_ssl_SSL_library_init=no
6577 fi
6578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6579 LIBS=$ac_check_lib_save_LIBS
6580 fi
6581 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6582 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6583 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6584   cat >>confdefs.h <<_ACEOF
6585 #define HAVE_LIBSSL 1
6586 _ACEOF
6587
6588   LIBS="-lssl $LIBS"
6589
6590 else
6591   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6592 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6593    { (exit 1); exit 1; }; }
6594 fi
6595
6596 fi
6597
6598 if test "$with_pam" = yes ; then
6599
6600 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6601 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6602 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6603   echo $ECHO_N "(cached) $ECHO_C" >&6
6604 else
6605   ac_check_lib_save_LIBS=$LIBS
6606 LIBS="-lpam  $LIBS"
6607 cat >conftest.$ac_ext <<_ACEOF
6608 #line $LINENO "configure"
6609 #include "confdefs.h"
6610
6611 /* Override any gcc2 internal prototype to avoid an error.  */
6612 #ifdef __cplusplus
6613 extern "C"
6614 #endif
6615 /* We use char because int might match the return type of a gcc2
6616    builtin and then its argument prototype would still apply.  */
6617 char pam_start ();
6618 #ifdef F77_DUMMY_MAIN
6619 #  ifdef __cplusplus
6620      extern "C"
6621 #  endif
6622    int F77_DUMMY_MAIN() { return 1; }
6623 #endif
6624 int
6625 main ()
6626 {
6627 pam_start ();
6628   ;
6629   return 0;
6630 }
6631 _ACEOF
6632 rm -f conftest.$ac_objext conftest$ac_exeext
6633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6634   (eval $ac_link) 2>&5
6635   ac_status=$?
6636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637   (exit $ac_status); } &&
6638          { ac_try='test -s conftest$ac_exeext'
6639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640   (eval $ac_try) 2>&5
6641   ac_status=$?
6642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643   (exit $ac_status); }; }; then
6644   ac_cv_lib_pam_pam_start=yes
6645 else
6646   echo "$as_me: failed program was:" >&5
6647 cat conftest.$ac_ext >&5
6648 ac_cv_lib_pam_pam_start=no
6649 fi
6650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6651 LIBS=$ac_check_lib_save_LIBS
6652 fi
6653 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6654 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6655 if test $ac_cv_lib_pam_pam_start = yes; then
6656   cat >>confdefs.h <<_ACEOF
6657 #define HAVE_LIBPAM 1
6658 _ACEOF
6659
6660   LIBS="-lpam $LIBS"
6661
6662 else
6663   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6664 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6665    { (exit 1); exit 1; }; }
6666 fi
6667
6668 fi
6669
6670
6671 ##
6672 ## Header files
6673 ##
6674
6675 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6676 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6677 if test "${ac_cv_header_stdc+set}" = set; then
6678   echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680   cat >conftest.$ac_ext <<_ACEOF
6681 #line $LINENO "configure"
6682 #include "confdefs.h"
6683 #include <stdlib.h>
6684 #include <stdarg.h>
6685 #include <string.h>
6686 #include <float.h>
6687
6688 _ACEOF
6689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6690   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6691   ac_status=$?
6692   egrep -v '^ *\+' conftest.er1 >conftest.err
6693   rm -f conftest.er1
6694   cat conftest.err >&5
6695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696   (exit $ac_status); } >/dev/null; then
6697   if test -s conftest.err; then
6698     ac_cpp_err=$ac_c_preproc_warn_flag
6699   else
6700     ac_cpp_err=
6701   fi
6702 else
6703   ac_cpp_err=yes
6704 fi
6705 if test -z "$ac_cpp_err"; then
6706   ac_cv_header_stdc=yes
6707 else
6708   echo "$as_me: failed program was:" >&5
6709   cat conftest.$ac_ext >&5
6710   ac_cv_header_stdc=no
6711 fi
6712 rm -f conftest.err conftest.$ac_ext
6713
6714 if test $ac_cv_header_stdc = yes; then
6715   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6716   cat >conftest.$ac_ext <<_ACEOF
6717 #line $LINENO "configure"
6718 #include "confdefs.h"
6719 #include <string.h>
6720
6721 _ACEOF
6722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6723   egrep "memchr" >/dev/null 2>&1; then
6724   :
6725 else
6726   ac_cv_header_stdc=no
6727 fi
6728 rm -f conftest*
6729
6730 fi
6731
6732 if test $ac_cv_header_stdc = yes; then
6733   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6734   cat >conftest.$ac_ext <<_ACEOF
6735 #line $LINENO "configure"
6736 #include "confdefs.h"
6737 #include <stdlib.h>
6738
6739 _ACEOF
6740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6741   egrep "free" >/dev/null 2>&1; then
6742   :
6743 else
6744   ac_cv_header_stdc=no
6745 fi
6746 rm -f conftest*
6747
6748 fi
6749
6750 if test $ac_cv_header_stdc = yes; then
6751   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6752   if test "$cross_compiling" = yes; then
6753   :
6754 else
6755   cat >conftest.$ac_ext <<_ACEOF
6756 #line $LINENO "configure"
6757 #include "confdefs.h"
6758 #include <ctype.h>
6759 #if ((' ' & 0x0FF) == 0x020)
6760 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6761 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6762 #else
6763 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6764                      || ('j' <= (c) && (c) <= 'r') \
6765                      || ('s' <= (c) && (c) <= 'z'))
6766 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6767 #endif
6768
6769 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6770 int
6771 main ()
6772 {
6773   int i;
6774   for (i = 0; i < 256; i++)
6775     if (XOR (islower (i), ISLOWER (i))
6776         || toupper (i) != TOUPPER (i))
6777       exit(2);
6778   exit (0);
6779 }
6780 _ACEOF
6781 rm -f conftest$ac_exeext
6782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6783   (eval $ac_link) 2>&5
6784   ac_status=$?
6785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6788   (eval $ac_try) 2>&5
6789   ac_status=$?
6790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791   (exit $ac_status); }; }; then
6792   :
6793 else
6794   echo "$as_me: program exited with status $ac_status" >&5
6795 echo "$as_me: failed program was:" >&5
6796 cat conftest.$ac_ext >&5
6797 ( exit $ac_status )
6798 ac_cv_header_stdc=no
6799 fi
6800 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6801 fi
6802 fi
6803 fi
6804 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6805 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6806 if test $ac_cv_header_stdc = yes; then
6807
6808 cat >>confdefs.h <<\_ACEOF
6809 #define STDC_HEADERS 1
6810 _ACEOF
6811
6812 fi
6813
6814 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6825                   inttypes.h stdint.h unistd.h
6826 do
6827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6828 echo "$as_me:$LINENO: checking for $ac_header" >&5
6829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6831   echo $ECHO_N "(cached) $ECHO_C" >&6
6832 else
6833   cat >conftest.$ac_ext <<_ACEOF
6834 #line $LINENO "configure"
6835 #include "confdefs.h"
6836 $ac_includes_default
6837
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   eval "$as_ac_Header=yes"
6853 else
6854   echo "$as_me: failed program was:" >&5
6855 cat conftest.$ac_ext >&5
6856 eval "$as_ac_Header=no"
6857 fi
6858 rm -f conftest.$ac_objext conftest.$ac_ext
6859 fi
6860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6863   cat >>confdefs.h <<_ACEOF
6864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6865 _ACEOF
6866
6867 fi
6868
6869 done
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890 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
6891 do
6892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6894   echo "$as_me:$LINENO: checking for $ac_header" >&5
6895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6897   echo $ECHO_N "(cached) $ECHO_C" >&6
6898 fi
6899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6901 else
6902   # Is the header compilable?
6903 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6904 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6905 cat >conftest.$ac_ext <<_ACEOF
6906 #line $LINENO "configure"
6907 #include "confdefs.h"
6908 $ac_includes_default
6909 #include <$ac_header>
6910 _ACEOF
6911 rm -f conftest.$ac_objext
6912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6913   (eval $ac_compile) 2>&5
6914   ac_status=$?
6915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916   (exit $ac_status); } &&
6917          { ac_try='test -s conftest.$ac_objext'
6918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919   (eval $ac_try) 2>&5
6920   ac_status=$?
6921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922   (exit $ac_status); }; }; then
6923   ac_header_compiler=yes
6924 else
6925   echo "$as_me: failed program was:" >&5
6926 cat conftest.$ac_ext >&5
6927 ac_header_compiler=no
6928 fi
6929 rm -f conftest.$ac_objext conftest.$ac_ext
6930 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6931 echo "${ECHO_T}$ac_header_compiler" >&6
6932
6933 # Is the header present?
6934 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6935 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6936 cat >conftest.$ac_ext <<_ACEOF
6937 #line $LINENO "configure"
6938 #include "confdefs.h"
6939 #include <$ac_header>
6940 _ACEOF
6941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6942   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6943   ac_status=$?
6944   egrep -v '^ *\+' conftest.er1 >conftest.err
6945   rm -f conftest.er1
6946   cat conftest.err >&5
6947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948   (exit $ac_status); } >/dev/null; then
6949   if test -s conftest.err; then
6950     ac_cpp_err=$ac_c_preproc_warn_flag
6951   else
6952     ac_cpp_err=
6953   fi
6954 else
6955   ac_cpp_err=yes
6956 fi
6957 if test -z "$ac_cpp_err"; then
6958   ac_header_preproc=yes
6959 else
6960   echo "$as_me: failed program was:" >&5
6961   cat conftest.$ac_ext >&5
6962   ac_header_preproc=no
6963 fi
6964 rm -f conftest.err conftest.$ac_ext
6965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6966 echo "${ECHO_T}$ac_header_preproc" >&6
6967
6968 # So?  What about this header?
6969 case $ac_header_compiler:$ac_header_preproc in
6970   yes:no )
6971     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6973     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6975   no:yes )
6976     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6977 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6978     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6979 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6980     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6982 esac
6983 echo "$as_me:$LINENO: checking for $ac_header" >&5
6984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6986   echo $ECHO_N "(cached) $ECHO_C" >&6
6987 else
6988   eval "$as_ac_Header=$ac_header_preproc"
6989 fi
6990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6992
6993 fi
6994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6995   cat >>confdefs.h <<_ACEOF
6996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6997 _ACEOF
6998
6999 fi
7000
7001 done
7002
7003
7004 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7005 # netinet/in.h is included first.
7006
7007 for ac_header in netinet/in.h
7008 do
7009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7011   echo "$as_me:$LINENO: checking for $ac_header" >&5
7012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7014   echo $ECHO_N "(cached) $ECHO_C" >&6
7015 fi
7016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7018 else
7019   # Is the header compilable?
7020 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7022 cat >conftest.$ac_ext <<_ACEOF
7023 #line $LINENO "configure"
7024 #include "confdefs.h"
7025 $ac_includes_default
7026 #include <$ac_header>
7027 _ACEOF
7028 rm -f conftest.$ac_objext
7029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7030   (eval $ac_compile) 2>&5
7031   ac_status=$?
7032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033   (exit $ac_status); } &&
7034          { ac_try='test -s conftest.$ac_objext'
7035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036   (eval $ac_try) 2>&5
7037   ac_status=$?
7038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039   (exit $ac_status); }; }; then
7040   ac_header_compiler=yes
7041 else
7042   echo "$as_me: failed program was:" >&5
7043 cat conftest.$ac_ext >&5
7044 ac_header_compiler=no
7045 fi
7046 rm -f conftest.$ac_objext conftest.$ac_ext
7047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7048 echo "${ECHO_T}$ac_header_compiler" >&6
7049
7050 # Is the header present?
7051 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7053 cat >conftest.$ac_ext <<_ACEOF
7054 #line $LINENO "configure"
7055 #include "confdefs.h"
7056 #include <$ac_header>
7057 _ACEOF
7058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7059   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7060   ac_status=$?
7061   egrep -v '^ *\+' conftest.er1 >conftest.err
7062   rm -f conftest.er1
7063   cat conftest.err >&5
7064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065   (exit $ac_status); } >/dev/null; then
7066   if test -s conftest.err; then
7067     ac_cpp_err=$ac_c_preproc_warn_flag
7068   else
7069     ac_cpp_err=
7070   fi
7071 else
7072   ac_cpp_err=yes
7073 fi
7074 if test -z "$ac_cpp_err"; then
7075   ac_header_preproc=yes
7076 else
7077   echo "$as_me: failed program was:" >&5
7078   cat conftest.$ac_ext >&5
7079   ac_header_preproc=no
7080 fi
7081 rm -f conftest.err conftest.$ac_ext
7082 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7083 echo "${ECHO_T}$ac_header_preproc" >&6
7084
7085 # So?  What about this header?
7086 case $ac_header_compiler:$ac_header_preproc in
7087   yes:no )
7088     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7090     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7091 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7092   no:yes )
7093     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7095     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7096 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7097     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7099 esac
7100 echo "$as_me:$LINENO: checking for $ac_header" >&5
7101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7103   echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105   eval "$as_ac_Header=$ac_header_preproc"
7106 fi
7107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7109
7110 fi
7111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7112   cat >>confdefs.h <<_ACEOF
7113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7114 _ACEOF
7115
7116 fi
7117
7118 done
7119
7120
7121 for ac_header in netinet/tcp.h
7122 do
7123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7124 echo "$as_me:$LINENO: checking for $ac_header" >&5
7125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7127   echo $ECHO_N "(cached) $ECHO_C" >&6
7128 else
7129   cat >conftest.$ac_ext <<_ACEOF
7130 #line $LINENO "configure"
7131 #include "confdefs.h"
7132 $ac_includes_default
7133 #ifdef HAVE_NETINET_IN_H
7134 #include <netinet/in.h>
7135 #endif
7136
7137
7138 #include <$ac_header>
7139 _ACEOF
7140 rm -f conftest.$ac_objext
7141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7142   (eval $ac_compile) 2>&5
7143   ac_status=$?
7144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145   (exit $ac_status); } &&
7146          { ac_try='test -s conftest.$ac_objext'
7147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7148   (eval $ac_try) 2>&5
7149   ac_status=$?
7150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151   (exit $ac_status); }; }; then
7152   eval "$as_ac_Header=yes"
7153 else
7154   echo "$as_me: failed program was:" >&5
7155 cat conftest.$ac_ext >&5
7156 eval "$as_ac_Header=no"
7157 fi
7158 rm -f conftest.$ac_objext conftest.$ac_ext
7159 fi
7160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7163   cat >>confdefs.h <<_ACEOF
7164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7165 _ACEOF
7166
7167 fi
7168
7169 done
7170
7171
7172 if test "$with_readline" = yes; then
7173
7174 for ac_header in readline/readline.h
7175 do
7176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7178   echo "$as_me:$LINENO: checking for $ac_header" >&5
7179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7181   echo $ECHO_N "(cached) $ECHO_C" >&6
7182 fi
7183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7185 else
7186   # Is the header compilable?
7187 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7189 cat >conftest.$ac_ext <<_ACEOF
7190 #line $LINENO "configure"
7191 #include "confdefs.h"
7192 $ac_includes_default
7193 #include <$ac_header>
7194 _ACEOF
7195 rm -f conftest.$ac_objext
7196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7197   (eval $ac_compile) 2>&5
7198   ac_status=$?
7199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200   (exit $ac_status); } &&
7201          { ac_try='test -s conftest.$ac_objext'
7202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203   (eval $ac_try) 2>&5
7204   ac_status=$?
7205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206   (exit $ac_status); }; }; then
7207   ac_header_compiler=yes
7208 else
7209   echo "$as_me: failed program was:" >&5
7210 cat conftest.$ac_ext >&5
7211 ac_header_compiler=no
7212 fi
7213 rm -f conftest.$ac_objext conftest.$ac_ext
7214 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7215 echo "${ECHO_T}$ac_header_compiler" >&6
7216
7217 # Is the header present?
7218 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7220 cat >conftest.$ac_ext <<_ACEOF
7221 #line $LINENO "configure"
7222 #include "confdefs.h"
7223 #include <$ac_header>
7224 _ACEOF
7225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7226   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7227   ac_status=$?
7228   egrep -v '^ *\+' conftest.er1 >conftest.err
7229   rm -f conftest.er1
7230   cat conftest.err >&5
7231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232   (exit $ac_status); } >/dev/null; then
7233   if test -s conftest.err; then
7234     ac_cpp_err=$ac_c_preproc_warn_flag
7235   else
7236     ac_cpp_err=
7237   fi
7238 else
7239   ac_cpp_err=yes
7240 fi
7241 if test -z "$ac_cpp_err"; then
7242   ac_header_preproc=yes
7243 else
7244   echo "$as_me: failed program was:" >&5
7245   cat conftest.$ac_ext >&5
7246   ac_header_preproc=no
7247 fi
7248 rm -f conftest.err conftest.$ac_ext
7249 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7250 echo "${ECHO_T}$ac_header_preproc" >&6
7251
7252 # So?  What about this header?
7253 case $ac_header_compiler:$ac_header_preproc in
7254   yes:no )
7255     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7256 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7257     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7259   no:yes )
7260     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7262     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7263 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7264     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7266 esac
7267 echo "$as_me:$LINENO: checking for $ac_header" >&5
7268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7270   echo $ECHO_N "(cached) $ECHO_C" >&6
7271 else
7272   eval "$as_ac_Header=$ac_header_preproc"
7273 fi
7274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7276
7277 fi
7278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7279   cat >>confdefs.h <<_ACEOF
7280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7281 _ACEOF
7282
7283 else
7284
7285 for ac_header in readline.h
7286 do
7287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7289   echo "$as_me:$LINENO: checking for $ac_header" >&5
7290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7292   echo $ECHO_N "(cached) $ECHO_C" >&6
7293 fi
7294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7296 else
7297   # Is the header compilable?
7298 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7299 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7300 cat >conftest.$ac_ext <<_ACEOF
7301 #line $LINENO "configure"
7302 #include "confdefs.h"
7303 $ac_includes_default
7304 #include <$ac_header>
7305 _ACEOF
7306 rm -f conftest.$ac_objext
7307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7308   (eval $ac_compile) 2>&5
7309   ac_status=$?
7310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311   (exit $ac_status); } &&
7312          { ac_try='test -s conftest.$ac_objext'
7313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314   (eval $ac_try) 2>&5
7315   ac_status=$?
7316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317   (exit $ac_status); }; }; then
7318   ac_header_compiler=yes
7319 else
7320   echo "$as_me: failed program was:" >&5
7321 cat conftest.$ac_ext >&5
7322 ac_header_compiler=no
7323 fi
7324 rm -f conftest.$ac_objext conftest.$ac_ext
7325 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7326 echo "${ECHO_T}$ac_header_compiler" >&6
7327
7328 # Is the header present?
7329 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7330 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7331 cat >conftest.$ac_ext <<_ACEOF
7332 #line $LINENO "configure"
7333 #include "confdefs.h"
7334 #include <$ac_header>
7335 _ACEOF
7336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7337   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7338   ac_status=$?
7339   egrep -v '^ *\+' conftest.er1 >conftest.err
7340   rm -f conftest.er1
7341   cat conftest.err >&5
7342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343   (exit $ac_status); } >/dev/null; then
7344   if test -s conftest.err; then
7345     ac_cpp_err=$ac_c_preproc_warn_flag
7346   else
7347     ac_cpp_err=
7348   fi
7349 else
7350   ac_cpp_err=yes
7351 fi
7352 if test -z "$ac_cpp_err"; then
7353   ac_header_preproc=yes
7354 else
7355   echo "$as_me: failed program was:" >&5
7356   cat conftest.$ac_ext >&5
7357   ac_header_preproc=no
7358 fi
7359 rm -f conftest.err conftest.$ac_ext
7360 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7361 echo "${ECHO_T}$ac_header_preproc" >&6
7362
7363 # So?  What about this header?
7364 case $ac_header_compiler:$ac_header_preproc in
7365   yes:no )
7366     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7368     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7370   no:yes )
7371     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7373     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7374 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7375     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7377 esac
7378 echo "$as_me:$LINENO: checking for $ac_header" >&5
7379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7381   echo $ECHO_N "(cached) $ECHO_C" >&6
7382 else
7383   eval "$as_ac_Header=$ac_header_preproc"
7384 fi
7385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7387
7388 fi
7389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7390   cat >>confdefs.h <<_ACEOF
7391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7392 _ACEOF
7393
7394 else
7395   { { echo "$as_me:$LINENO: error: readline header not found
7396 If you have readline already installed, see config.log for details on the
7397 failure.  It is possible the compiler isn't looking in the proper directory.
7398 Use --without-readline to disable readline support." >&5
7399 echo "$as_me: error: readline header not found
7400 If you have readline already installed, see config.log for details on the
7401 failure.  It is possible the compiler isn't looking in the proper directory.
7402 Use --without-readline to disable readline support." >&2;}
7403    { (exit 1); exit 1; }; }
7404 fi
7405
7406 done
7407
7408 fi
7409
7410 done
7411
7412
7413 for ac_header in readline/history.h
7414 do
7415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7417   echo "$as_me:$LINENO: checking for $ac_header" >&5
7418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7420   echo $ECHO_N "(cached) $ECHO_C" >&6
7421 fi
7422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7424 else
7425   # Is the header compilable?
7426 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7428 cat >conftest.$ac_ext <<_ACEOF
7429 #line $LINENO "configure"
7430 #include "confdefs.h"
7431 $ac_includes_default
7432 #include <$ac_header>
7433 _ACEOF
7434 rm -f conftest.$ac_objext
7435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7436   (eval $ac_compile) 2>&5
7437   ac_status=$?
7438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439   (exit $ac_status); } &&
7440          { ac_try='test -s conftest.$ac_objext'
7441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7442   (eval $ac_try) 2>&5
7443   ac_status=$?
7444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445   (exit $ac_status); }; }; then
7446   ac_header_compiler=yes
7447 else
7448   echo "$as_me: failed program was:" >&5
7449 cat conftest.$ac_ext >&5
7450 ac_header_compiler=no
7451 fi
7452 rm -f conftest.$ac_objext conftest.$ac_ext
7453 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7454 echo "${ECHO_T}$ac_header_compiler" >&6
7455
7456 # Is the header present?
7457 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7458 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7459 cat >conftest.$ac_ext <<_ACEOF
7460 #line $LINENO "configure"
7461 #include "confdefs.h"
7462 #include <$ac_header>
7463 _ACEOF
7464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7465   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7466   ac_status=$?
7467   egrep -v '^ *\+' conftest.er1 >conftest.err
7468   rm -f conftest.er1
7469   cat conftest.err >&5
7470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471   (exit $ac_status); } >/dev/null; then
7472   if test -s conftest.err; then
7473     ac_cpp_err=$ac_c_preproc_warn_flag
7474   else
7475     ac_cpp_err=
7476   fi
7477 else
7478   ac_cpp_err=yes
7479 fi
7480 if test -z "$ac_cpp_err"; then
7481   ac_header_preproc=yes
7482 else
7483   echo "$as_me: failed program was:" >&5
7484   cat conftest.$ac_ext >&5
7485   ac_header_preproc=no
7486 fi
7487 rm -f conftest.err conftest.$ac_ext
7488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7489 echo "${ECHO_T}$ac_header_preproc" >&6
7490
7491 # So?  What about this header?
7492 case $ac_header_compiler:$ac_header_preproc in
7493   yes:no )
7494     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7496     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7498   no:yes )
7499     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7501     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7502 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7503     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7505 esac
7506 echo "$as_me:$LINENO: checking for $ac_header" >&5
7507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7509   echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511   eval "$as_ac_Header=$ac_header_preproc"
7512 fi
7513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7515
7516 fi
7517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7518   cat >>confdefs.h <<_ACEOF
7519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7520 _ACEOF
7521
7522 else
7523
7524 for ac_header in history.h
7525 do
7526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7528   echo "$as_me:$LINENO: checking for $ac_header" >&5
7529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7531   echo $ECHO_N "(cached) $ECHO_C" >&6
7532 fi
7533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7535 else
7536   # Is the header compilable?
7537 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7539 cat >conftest.$ac_ext <<_ACEOF
7540 #line $LINENO "configure"
7541 #include "confdefs.h"
7542 $ac_includes_default
7543 #include <$ac_header>
7544 _ACEOF
7545 rm -f conftest.$ac_objext
7546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7547   (eval $ac_compile) 2>&5
7548   ac_status=$?
7549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550   (exit $ac_status); } &&
7551          { ac_try='test -s conftest.$ac_objext'
7552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7553   (eval $ac_try) 2>&5
7554   ac_status=$?
7555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556   (exit $ac_status); }; }; then
7557   ac_header_compiler=yes
7558 else
7559   echo "$as_me: failed program was:" >&5
7560 cat conftest.$ac_ext >&5
7561 ac_header_compiler=no
7562 fi
7563 rm -f conftest.$ac_objext conftest.$ac_ext
7564 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7565 echo "${ECHO_T}$ac_header_compiler" >&6
7566
7567 # Is the header present?
7568 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7570 cat >conftest.$ac_ext <<_ACEOF
7571 #line $LINENO "configure"
7572 #include "confdefs.h"
7573 #include <$ac_header>
7574 _ACEOF
7575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7576   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7577   ac_status=$?
7578   egrep -v '^ *\+' conftest.er1 >conftest.err
7579   rm -f conftest.er1
7580   cat conftest.err >&5
7581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582   (exit $ac_status); } >/dev/null; then
7583   if test -s conftest.err; then
7584     ac_cpp_err=$ac_c_preproc_warn_flag
7585   else
7586     ac_cpp_err=
7587   fi
7588 else
7589   ac_cpp_err=yes
7590 fi
7591 if test -z "$ac_cpp_err"; then
7592   ac_header_preproc=yes
7593 else
7594   echo "$as_me: failed program was:" >&5
7595   cat conftest.$ac_ext >&5
7596   ac_header_preproc=no
7597 fi
7598 rm -f conftest.err conftest.$ac_ext
7599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7600 echo "${ECHO_T}$ac_header_preproc" >&6
7601
7602 # So?  What about this header?
7603 case $ac_header_compiler:$ac_header_preproc in
7604   yes:no )
7605     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7607     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7609   no:yes )
7610     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7611 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7612     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7613 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7616 esac
7617 echo "$as_me:$LINENO: checking for $ac_header" >&5
7618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7620   echo $ECHO_N "(cached) $ECHO_C" >&6
7621 else
7622   eval "$as_ac_Header=$ac_header_preproc"
7623 fi
7624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7626
7627 fi
7628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7629   cat >>confdefs.h <<_ACEOF
7630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7631 _ACEOF
7632
7633 else
7634   { { echo "$as_me:$LINENO: error: history header not found
7635 If you have readline already installed, see config.log for details on the
7636 failure.  It is possible the compiler isn't looking in the proper directory.
7637 Use --without-readline to disable readline support." >&5
7638 echo "$as_me: error: history header not found
7639 If you have readline already installed, see config.log for details on the
7640 failure.  It is possible the compiler isn't looking in the proper directory.
7641 Use --without-readline to disable readline support." >&2;}
7642    { (exit 1); exit 1; }; }
7643 fi
7644
7645 done
7646
7647 fi
7648
7649 done
7650
7651 fi
7652
7653 if test "$with_zlib" = yes; then
7654   if test "${ac_cv_header_zlib_h+set}" = set; then
7655   echo "$as_me:$LINENO: checking for zlib.h" >&5
7656 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7657 if test "${ac_cv_header_zlib_h+set}" = set; then
7658   echo $ECHO_N "(cached) $ECHO_C" >&6
7659 fi
7660 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7661 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7662 else
7663   # Is the header compilable?
7664 echo "$as_me:$LINENO: checking zlib.h usability" >&5
7665 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
7666 cat >conftest.$ac_ext <<_ACEOF
7667 #line $LINENO "configure"
7668 #include "confdefs.h"
7669 $ac_includes_default
7670 #include <zlib.h>
7671 _ACEOF
7672 rm -f conftest.$ac_objext
7673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7674   (eval $ac_compile) 2>&5
7675   ac_status=$?
7676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677   (exit $ac_status); } &&
7678          { ac_try='test -s conftest.$ac_objext'
7679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7680   (eval $ac_try) 2>&5
7681   ac_status=$?
7682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683   (exit $ac_status); }; }; then
7684   ac_header_compiler=yes
7685 else
7686   echo "$as_me: failed program was:" >&5
7687 cat conftest.$ac_ext >&5
7688 ac_header_compiler=no
7689 fi
7690 rm -f conftest.$ac_objext conftest.$ac_ext
7691 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7692 echo "${ECHO_T}$ac_header_compiler" >&6
7693
7694 # Is the header present?
7695 echo "$as_me:$LINENO: checking zlib.h presence" >&5
7696 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
7697 cat >conftest.$ac_ext <<_ACEOF
7698 #line $LINENO "configure"
7699 #include "confdefs.h"
7700 #include <zlib.h>
7701 _ACEOF
7702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7703   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7704   ac_status=$?
7705   egrep -v '^ *\+' conftest.er1 >conftest.err
7706   rm -f conftest.er1
7707   cat conftest.err >&5
7708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709   (exit $ac_status); } >/dev/null; then
7710   if test -s conftest.err; then
7711     ac_cpp_err=$ac_c_preproc_warn_flag
7712   else
7713     ac_cpp_err=
7714   fi
7715 else
7716   ac_cpp_err=yes
7717 fi
7718 if test -z "$ac_cpp_err"; then
7719   ac_header_preproc=yes
7720 else
7721   echo "$as_me: failed program was:" >&5
7722   cat conftest.$ac_ext >&5
7723   ac_header_preproc=no
7724 fi
7725 rm -f conftest.err conftest.$ac_ext
7726 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7727 echo "${ECHO_T}$ac_header_preproc" >&6
7728
7729 # So?  What about this header?
7730 case $ac_header_compiler:$ac_header_preproc in
7731   yes:no )
7732     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7733 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7734     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7735 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7736   no:yes )
7737     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
7738 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
7739     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
7740 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
7741     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7742 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7743 esac
7744 echo "$as_me:$LINENO: checking for zlib.h" >&5
7745 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7746 if test "${ac_cv_header_zlib_h+set}" = set; then
7747   echo $ECHO_N "(cached) $ECHO_C" >&6
7748 else
7749   ac_cv_header_zlib_h=$ac_header_preproc
7750 fi
7751 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7752 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7753
7754 fi
7755 if test $ac_cv_header_zlib_h = yes; then
7756   :
7757 else
7758   { { echo "$as_me:$LINENO: error: zlib header not found
7759 If you have readline already installed, see config.log for details on the
7760 failure.  It is possible the compiler isn't looking in the proper directory.
7761 Use --without-zlib to disable zlib support." >&5
7762 echo "$as_me: error: zlib header not found
7763 If you have readline already installed, see config.log for details on the
7764 failure.  It is possible the compiler isn't looking in the proper directory.
7765 Use --without-zlib to disable zlib support." >&2;}
7766    { (exit 1); exit 1; }; }
7767 fi
7768
7769
7770 fi
7771
7772 if test "$with_krb4" = yes ; then
7773   if test "${ac_cv_header_krb_h+set}" = set; then
7774   echo "$as_me:$LINENO: checking for krb.h" >&5
7775 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
7776 if test "${ac_cv_header_krb_h+set}" = set; then
7777   echo $ECHO_N "(cached) $ECHO_C" >&6
7778 fi
7779 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
7780 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
7781 else
7782   # Is the header compilable?
7783 echo "$as_me:$LINENO: checking krb.h usability" >&5
7784 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
7785 cat >conftest.$ac_ext <<_ACEOF
7786 #line $LINENO "configure"
7787 #include "confdefs.h"
7788 $ac_includes_default
7789 #include <krb.h>
7790 _ACEOF
7791 rm -f conftest.$ac_objext
7792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7793   (eval $ac_compile) 2>&5
7794   ac_status=$?
7795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796   (exit $ac_status); } &&
7797          { ac_try='test -s conftest.$ac_objext'
7798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7799   (eval $ac_try) 2>&5
7800   ac_status=$?
7801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802   (exit $ac_status); }; }; then
7803   ac_header_compiler=yes
7804 else
7805   echo "$as_me: failed program was:" >&5
7806 cat conftest.$ac_ext >&5
7807 ac_header_compiler=no
7808 fi
7809 rm -f conftest.$ac_objext conftest.$ac_ext
7810 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7811 echo "${ECHO_T}$ac_header_compiler" >&6
7812
7813 # Is the header present?
7814 echo "$as_me:$LINENO: checking krb.h presence" >&5
7815 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
7816 cat >conftest.$ac_ext <<_ACEOF
7817 #line $LINENO "configure"
7818 #include "confdefs.h"
7819 #include <krb.h>
7820 _ACEOF
7821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7822   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7823   ac_status=$?
7824   egrep -v '^ *\+' conftest.er1 >conftest.err
7825   rm -f conftest.er1
7826   cat conftest.err >&5
7827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828   (exit $ac_status); } >/dev/null; then
7829   if test -s conftest.err; then
7830     ac_cpp_err=$ac_c_preproc_warn_flag
7831   else
7832     ac_cpp_err=
7833   fi
7834 else
7835   ac_cpp_err=yes
7836 fi
7837 if test -z "$ac_cpp_err"; then
7838   ac_header_preproc=yes
7839 else
7840   echo "$as_me: failed program was:" >&5
7841   cat conftest.$ac_ext >&5
7842   ac_header_preproc=no
7843 fi
7844 rm -f conftest.err conftest.$ac_ext
7845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7846 echo "${ECHO_T}$ac_header_preproc" >&6
7847
7848 # So?  What about this header?
7849 case $ac_header_compiler:$ac_header_preproc in
7850   yes:no )
7851     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
7852 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7853     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
7854 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
7855   no:yes )
7856     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
7857 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
7858     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
7859 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
7860     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
7861 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
7862 esac
7863 echo "$as_me:$LINENO: checking for krb.h" >&5
7864 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
7865 if test "${ac_cv_header_krb_h+set}" = set; then
7866   echo $ECHO_N "(cached) $ECHO_C" >&6
7867 else
7868   ac_cv_header_krb_h=$ac_header_preproc
7869 fi
7870 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
7871 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
7872
7873 fi
7874 if test $ac_cv_header_krb_h = yes; then
7875   :
7876 else
7877   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
7878 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
7879    { (exit 1); exit 1; }; }
7880 fi
7881
7882
7883 fi
7884
7885 if test "$with_krb5" = yes ; then
7886   if test "${ac_cv_header_krb5_h+set}" = set; then
7887   echo "$as_me:$LINENO: checking for krb5.h" >&5
7888 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
7889 if test "${ac_cv_header_krb5_h+set}" = set; then
7890   echo $ECHO_N "(cached) $ECHO_C" >&6
7891 fi
7892 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
7893 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
7894 else
7895   # Is the header compilable?
7896 echo "$as_me:$LINENO: checking krb5.h usability" >&5
7897 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
7898 cat >conftest.$ac_ext <<_ACEOF
7899 #line $LINENO "configure"
7900 #include "confdefs.h"
7901 $ac_includes_default
7902 #include <krb5.h>
7903 _ACEOF
7904 rm -f conftest.$ac_objext
7905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7906   (eval $ac_compile) 2>&5
7907   ac_status=$?
7908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909   (exit $ac_status); } &&
7910          { ac_try='test -s conftest.$ac_objext'
7911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912   (eval $ac_try) 2>&5
7913   ac_status=$?
7914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915   (exit $ac_status); }; }; then
7916   ac_header_compiler=yes
7917 else
7918   echo "$as_me: failed program was:" >&5
7919 cat conftest.$ac_ext >&5
7920 ac_header_compiler=no
7921 fi
7922 rm -f conftest.$ac_objext conftest.$ac_ext
7923 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7924 echo "${ECHO_T}$ac_header_compiler" >&6
7925
7926 # Is the header present?
7927 echo "$as_me:$LINENO: checking krb5.h presence" >&5
7928 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
7929 cat >conftest.$ac_ext <<_ACEOF
7930 #line $LINENO "configure"
7931 #include "confdefs.h"
7932 #include <krb5.h>
7933 _ACEOF
7934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7935   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7936   ac_status=$?
7937   egrep -v '^ *\+' conftest.er1 >conftest.err
7938   rm -f conftest.er1
7939   cat conftest.err >&5
7940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941   (exit $ac_status); } >/dev/null; then
7942   if test -s conftest.err; then
7943     ac_cpp_err=$ac_c_preproc_warn_flag
7944   else
7945     ac_cpp_err=
7946   fi
7947 else
7948   ac_cpp_err=yes
7949 fi
7950 if test -z "$ac_cpp_err"; then
7951   ac_header_preproc=yes
7952 else
7953   echo "$as_me: failed program was:" >&5
7954   cat conftest.$ac_ext >&5
7955   ac_header_preproc=no
7956 fi
7957 rm -f conftest.err conftest.$ac_ext
7958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7959 echo "${ECHO_T}$ac_header_preproc" >&6
7960
7961 # So?  What about this header?
7962 case $ac_header_compiler:$ac_header_preproc in
7963   yes:no )
7964     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
7965 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7966     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
7967 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
7968   no:yes )
7969     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
7970 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
7971     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
7972 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
7973     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
7974 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
7975 esac
7976 echo "$as_me:$LINENO: checking for krb5.h" >&5
7977 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
7978 if test "${ac_cv_header_krb5_h+set}" = set; then
7979   echo $ECHO_N "(cached) $ECHO_C" >&6
7980 else
7981   ac_cv_header_krb5_h=$ac_header_preproc
7982 fi
7983 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
7984 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
7985
7986 fi
7987 if test $ac_cv_header_krb5_h = yes; then
7988   :
7989 else
7990   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
7991 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
7992    { (exit 1); exit 1; }; }
7993 fi
7994
7995
7996   if test "${ac_cv_header_com_err_h+set}" = set; then
7997   echo "$as_me:$LINENO: checking for com_err.h" >&5
7998 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
7999 if test "${ac_cv_header_com_err_h+set}" = set; then
8000   echo $ECHO_N "(cached) $ECHO_C" >&6
8001 fi
8002 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8003 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8004 else
8005   # Is the header compilable?
8006 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8007 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8008 cat >conftest.$ac_ext <<_ACEOF
8009 #line $LINENO "configure"
8010 #include "confdefs.h"
8011 $ac_includes_default
8012 #include <com_err.h>
8013 _ACEOF
8014 rm -f conftest.$ac_objext
8015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8016   (eval $ac_compile) 2>&5
8017   ac_status=$?
8018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019   (exit $ac_status); } &&
8020          { ac_try='test -s conftest.$ac_objext'
8021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022   (eval $ac_try) 2>&5
8023   ac_status=$?
8024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025   (exit $ac_status); }; }; then
8026   ac_header_compiler=yes
8027 else
8028   echo "$as_me: failed program was:" >&5
8029 cat conftest.$ac_ext >&5
8030 ac_header_compiler=no
8031 fi
8032 rm -f conftest.$ac_objext conftest.$ac_ext
8033 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8034 echo "${ECHO_T}$ac_header_compiler" >&6
8035
8036 # Is the header present?
8037 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8038 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8039 cat >conftest.$ac_ext <<_ACEOF
8040 #line $LINENO "configure"
8041 #include "confdefs.h"
8042 #include <com_err.h>
8043 _ACEOF
8044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8045   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8046   ac_status=$?
8047   egrep -v '^ *\+' conftest.er1 >conftest.err
8048   rm -f conftest.er1
8049   cat conftest.err >&5
8050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051   (exit $ac_status); } >/dev/null; then
8052   if test -s conftest.err; then
8053     ac_cpp_err=$ac_c_preproc_warn_flag
8054   else
8055     ac_cpp_err=
8056   fi
8057 else
8058   ac_cpp_err=yes
8059 fi
8060 if test -z "$ac_cpp_err"; then
8061   ac_header_preproc=yes
8062 else
8063   echo "$as_me: failed program was:" >&5
8064   cat conftest.$ac_ext >&5
8065   ac_header_preproc=no
8066 fi
8067 rm -f conftest.err conftest.$ac_ext
8068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8069 echo "${ECHO_T}$ac_header_preproc" >&6
8070
8071 # So?  What about this header?
8072 case $ac_header_compiler:$ac_header_preproc in
8073   yes:no )
8074     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8075 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8076     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8077 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8078   no:yes )
8079     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8080 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8081     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8082 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8083     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8084 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8085 esac
8086 echo "$as_me:$LINENO: checking for com_err.h" >&5
8087 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8088 if test "${ac_cv_header_com_err_h+set}" = set; then
8089   echo $ECHO_N "(cached) $ECHO_C" >&6
8090 else
8091   ac_cv_header_com_err_h=$ac_header_preproc
8092 fi
8093 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8094 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8095
8096 fi
8097 if test $ac_cv_header_com_err_h = yes; then
8098   :
8099 else
8100   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8101 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8102    { (exit 1); exit 1; }; }
8103 fi
8104
8105
8106 fi
8107
8108 if test "$with_openssl" = yes ; then
8109   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8110   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8111 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8112 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8113   echo $ECHO_N "(cached) $ECHO_C" >&6
8114 fi
8115 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8116 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8117 else
8118   # Is the header compilable?
8119 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8120 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8121 cat >conftest.$ac_ext <<_ACEOF
8122 #line $LINENO "configure"
8123 #include "confdefs.h"
8124 $ac_includes_default
8125 #include <openssl/ssl.h>
8126 _ACEOF
8127 rm -f conftest.$ac_objext
8128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8129   (eval $ac_compile) 2>&5
8130   ac_status=$?
8131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132   (exit $ac_status); } &&
8133          { ac_try='test -s conftest.$ac_objext'
8134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135   (eval $ac_try) 2>&5
8136   ac_status=$?
8137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); }; }; then
8139   ac_header_compiler=yes
8140 else
8141   echo "$as_me: failed program was:" >&5
8142 cat conftest.$ac_ext >&5
8143 ac_header_compiler=no
8144 fi
8145 rm -f conftest.$ac_objext conftest.$ac_ext
8146 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8147 echo "${ECHO_T}$ac_header_compiler" >&6
8148
8149 # Is the header present?
8150 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8151 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8152 cat >conftest.$ac_ext <<_ACEOF
8153 #line $LINENO "configure"
8154 #include "confdefs.h"
8155 #include <openssl/ssl.h>
8156 _ACEOF
8157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8158   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8159   ac_status=$?
8160   egrep -v '^ *\+' conftest.er1 >conftest.err
8161   rm -f conftest.er1
8162   cat conftest.err >&5
8163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164   (exit $ac_status); } >/dev/null; then
8165   if test -s conftest.err; then
8166     ac_cpp_err=$ac_c_preproc_warn_flag
8167   else
8168     ac_cpp_err=
8169   fi
8170 else
8171   ac_cpp_err=yes
8172 fi
8173 if test -z "$ac_cpp_err"; then
8174   ac_header_preproc=yes
8175 else
8176   echo "$as_me: failed program was:" >&5
8177   cat conftest.$ac_ext >&5
8178   ac_header_preproc=no
8179 fi
8180 rm -f conftest.err conftest.$ac_ext
8181 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8182 echo "${ECHO_T}$ac_header_preproc" >&6
8183
8184 # So?  What about this header?
8185 case $ac_header_compiler:$ac_header_preproc in
8186   yes:no )
8187     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8188 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8189     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8190 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8191   no:yes )
8192     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8193 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8194     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8195 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8196     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8197 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8198 esac
8199 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8200 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8201 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8202   echo $ECHO_N "(cached) $ECHO_C" >&6
8203 else
8204   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8205 fi
8206 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8207 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8208
8209 fi
8210 if test $ac_cv_header_openssl_ssl_h = yes; then
8211   :
8212 else
8213   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8214 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8215    { (exit 1); exit 1; }; }
8216 fi
8217
8218
8219   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8220   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8221 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8222 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8223   echo $ECHO_N "(cached) $ECHO_C" >&6
8224 fi
8225 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8226 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8227 else
8228   # Is the header compilable?
8229 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8230 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8231 cat >conftest.$ac_ext <<_ACEOF
8232 #line $LINENO "configure"
8233 #include "confdefs.h"
8234 $ac_includes_default
8235 #include <openssl/err.h>
8236 _ACEOF
8237 rm -f conftest.$ac_objext
8238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8239   (eval $ac_compile) 2>&5
8240   ac_status=$?
8241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242   (exit $ac_status); } &&
8243          { ac_try='test -s conftest.$ac_objext'
8244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245   (eval $ac_try) 2>&5
8246   ac_status=$?
8247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248   (exit $ac_status); }; }; then
8249   ac_header_compiler=yes
8250 else
8251   echo "$as_me: failed program was:" >&5
8252 cat conftest.$ac_ext >&5
8253 ac_header_compiler=no
8254 fi
8255 rm -f conftest.$ac_objext conftest.$ac_ext
8256 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8257 echo "${ECHO_T}$ac_header_compiler" >&6
8258
8259 # Is the header present?
8260 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8261 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8262 cat >conftest.$ac_ext <<_ACEOF
8263 #line $LINENO "configure"
8264 #include "confdefs.h"
8265 #include <openssl/err.h>
8266 _ACEOF
8267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8268   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8269   ac_status=$?
8270   egrep -v '^ *\+' conftest.er1 >conftest.err
8271   rm -f conftest.er1
8272   cat conftest.err >&5
8273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274   (exit $ac_status); } >/dev/null; then
8275   if test -s conftest.err; then
8276     ac_cpp_err=$ac_c_preproc_warn_flag
8277   else
8278     ac_cpp_err=
8279   fi
8280 else
8281   ac_cpp_err=yes
8282 fi
8283 if test -z "$ac_cpp_err"; then
8284   ac_header_preproc=yes
8285 else
8286   echo "$as_me: failed program was:" >&5
8287   cat conftest.$ac_ext >&5
8288   ac_header_preproc=no
8289 fi
8290 rm -f conftest.err conftest.$ac_ext
8291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8292 echo "${ECHO_T}$ac_header_preproc" >&6
8293
8294 # So?  What about this header?
8295 case $ac_header_compiler:$ac_header_preproc in
8296   yes:no )
8297     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8298 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8299     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8300 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8301   no:yes )
8302     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8303 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8304     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8305 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8306     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8307 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8308 esac
8309 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8310 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8311 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8312   echo $ECHO_N "(cached) $ECHO_C" >&6
8313 else
8314   ac_cv_header_openssl_err_h=$ac_header_preproc
8315 fi
8316 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8317 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8318
8319 fi
8320 if test $ac_cv_header_openssl_err_h = yes; then
8321   :
8322 else
8323   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8324 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8325    { (exit 1); exit 1; }; }
8326 fi
8327
8328
8329 fi
8330
8331 if test "$with_pam" = yes ; then
8332   if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8333   echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8334 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8335 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8336   echo $ECHO_N "(cached) $ECHO_C" >&6
8337 fi
8338 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8339 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8340 else
8341   # Is the header compilable?
8342 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
8343 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
8344 cat >conftest.$ac_ext <<_ACEOF
8345 #line $LINENO "configure"
8346 #include "confdefs.h"
8347 $ac_includes_default
8348 #include <security/pam_appl.h>
8349 _ACEOF
8350 rm -f conftest.$ac_objext
8351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8352   (eval $ac_compile) 2>&5
8353   ac_status=$?
8354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355   (exit $ac_status); } &&
8356          { ac_try='test -s conftest.$ac_objext'
8357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358   (eval $ac_try) 2>&5
8359   ac_status=$?
8360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361   (exit $ac_status); }; }; then
8362   ac_header_compiler=yes
8363 else
8364   echo "$as_me: failed program was:" >&5
8365 cat conftest.$ac_ext >&5
8366 ac_header_compiler=no
8367 fi
8368 rm -f conftest.$ac_objext conftest.$ac_ext
8369 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8370 echo "${ECHO_T}$ac_header_compiler" >&6
8371
8372 # Is the header present?
8373 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
8374 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
8375 cat >conftest.$ac_ext <<_ACEOF
8376 #line $LINENO "configure"
8377 #include "confdefs.h"
8378 #include <security/pam_appl.h>
8379 _ACEOF
8380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8381   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8382   ac_status=$?
8383   egrep -v '^ *\+' conftest.er1 >conftest.err
8384   rm -f conftest.er1
8385   cat conftest.err >&5
8386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387   (exit $ac_status); } >/dev/null; then
8388   if test -s conftest.err; then
8389     ac_cpp_err=$ac_c_preproc_warn_flag
8390   else
8391     ac_cpp_err=
8392   fi
8393 else
8394   ac_cpp_err=yes
8395 fi
8396 if test -z "$ac_cpp_err"; then
8397   ac_header_preproc=yes
8398 else
8399   echo "$as_me: failed program was:" >&5
8400   cat conftest.$ac_ext >&5
8401   ac_header_preproc=no
8402 fi
8403 rm -f conftest.err conftest.$ac_ext
8404 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8405 echo "${ECHO_T}$ac_header_preproc" >&6
8406
8407 # So?  What about this header?
8408 case $ac_header_compiler:$ac_header_preproc in
8409   yes:no )
8410     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8411 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8412     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8413 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8414   no:yes )
8415     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
8416 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
8417     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
8418 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
8419     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8420 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8421 esac
8422 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8423 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8424 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8425   echo $ECHO_N "(cached) $ECHO_C" >&6
8426 else
8427   ac_cv_header_security_pam_appl_h=$ac_header_preproc
8428 fi
8429 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8430 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8431
8432 fi
8433 if test $ac_cv_header_security_pam_appl_h = yes; then
8434   :
8435 else
8436   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
8437 echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
8438    { (exit 1); exit 1; }; }
8439 fi
8440
8441
8442 fi
8443
8444
8445 ##
8446 ## Types, structures, compiler characteristics
8447 ##
8448
8449
8450 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8451 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8452 if test "${ac_cv_c_const+set}" = set; then
8453   echo $ECHO_N "(cached) $ECHO_C" >&6
8454 else
8455   cat >conftest.$ac_ext <<_ACEOF
8456 #line $LINENO "configure"
8457 #include "confdefs.h"
8458
8459 #ifdef F77_DUMMY_MAIN
8460 #  ifdef __cplusplus
8461      extern "C"
8462 #  endif
8463    int F77_DUMMY_MAIN() { return 1; }
8464 #endif
8465 int
8466 main ()
8467 {
8468 /* FIXME: Include the comments suggested by Paul. */
8469 #ifndef __cplusplus
8470   /* Ultrix mips cc rejects this.  */
8471   typedef int charset[2];
8472   const charset x;
8473   /* SunOS 4.1.1 cc rejects this.  */
8474   char const *const *ccp;
8475   char **p;
8476   /* NEC SVR4.0.2 mips cc rejects this.  */
8477   struct point {int x, y;};
8478   static struct point const zero = {0,0};
8479   /* AIX XL C 1.02.0.0 rejects this.
8480      It does not let you subtract one const X* pointer from another in
8481      an arm of an if-expression whose if-part is not a constant
8482      expression */
8483   const char *g = "string";
8484   ccp = &g + (g ? g-g : 0);
8485   /* HPUX 7.0 cc rejects these. */
8486   ++ccp;
8487   p = (char**) ccp;
8488   ccp = (char const *const *) p;
8489   { /* SCO 3.2v4 cc rejects this.  */
8490     char *t;
8491     char const *s = 0 ? (char *) 0 : (char const *) 0;
8492
8493     *t++ = 0;
8494   }
8495   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8496     int x[] = {25, 17};
8497     const int *foo = &x[0];
8498     ++foo;
8499   }
8500   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8501     typedef const int *iptr;
8502     iptr p = 0;
8503     ++p;
8504   }
8505   { /* AIX XL C 1.02.0.0 rejects this saying
8506        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8507     struct s { int j; const int *ap[3]; };
8508     struct s *b; b->j = 5;
8509   }
8510   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8511     const int foo = 10;
8512   }
8513 #endif
8514
8515   ;
8516   return 0;
8517 }
8518 _ACEOF
8519 rm -f conftest.$ac_objext
8520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8521   (eval $ac_compile) 2>&5
8522   ac_status=$?
8523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524   (exit $ac_status); } &&
8525          { ac_try='test -s conftest.$ac_objext'
8526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527   (eval $ac_try) 2>&5
8528   ac_status=$?
8529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530   (exit $ac_status); }; }; then
8531   ac_cv_c_const=yes
8532 else
8533   echo "$as_me: failed program was:" >&5
8534 cat conftest.$ac_ext >&5
8535 ac_cv_c_const=no
8536 fi
8537 rm -f conftest.$ac_objext conftest.$ac_ext
8538 fi
8539 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8540 echo "${ECHO_T}$ac_cv_c_const" >&6
8541 if test $ac_cv_c_const = no; then
8542
8543 cat >>confdefs.h <<\_ACEOF
8544 #define const
8545 _ACEOF
8546
8547 fi
8548
8549 echo "$as_me:$LINENO: checking for inline" >&5
8550 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8551 if test "${ac_cv_c_inline+set}" = set; then
8552   echo $ECHO_N "(cached) $ECHO_C" >&6
8553 else
8554   ac_cv_c_inline=no
8555 for ac_kw in inline __inline__ __inline; do
8556   cat >conftest.$ac_ext <<_ACEOF
8557 #line $LINENO "configure"
8558 #include "confdefs.h"
8559 #ifndef __cplusplus
8560 static $ac_kw int static_foo () {return 0; }
8561 $ac_kw int foo () {return 0; }
8562 #endif
8563
8564 _ACEOF
8565 rm -f conftest.$ac_objext
8566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8567   (eval $ac_compile) 2>&5
8568   ac_status=$?
8569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570   (exit $ac_status); } &&
8571          { ac_try='test -s conftest.$ac_objext'
8572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573   (eval $ac_try) 2>&5
8574   ac_status=$?
8575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576   (exit $ac_status); }; }; then
8577   ac_cv_c_inline=$ac_kw; break
8578 else
8579   echo "$as_me: failed program was:" >&5
8580 cat conftest.$ac_ext >&5
8581 fi
8582 rm -f conftest.$ac_objext conftest.$ac_ext
8583 done
8584
8585 fi
8586 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8587 echo "${ECHO_T}$ac_cv_c_inline" >&6
8588 case $ac_cv_c_inline in
8589   inline | yes) ;;
8590   no)
8591 cat >>confdefs.h <<\_ACEOF
8592 #define inline
8593 _ACEOF
8594  ;;
8595   *)  cat >>confdefs.h <<_ACEOF
8596 #define inline $ac_cv_c_inline
8597 _ACEOF
8598  ;;
8599 esac
8600
8601 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8602 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8603 if test "${ac_cv_c_stringize+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 #define x(y) #y
8610
8611 char *s = x(teststring);
8612 _ACEOF
8613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8614   egrep "#teststring" >/dev/null 2>&1; then
8615   ac_cv_c_stringize=no
8616 else
8617   ac_cv_c_stringize=yes
8618 fi
8619 rm -f conftest*
8620
8621 fi
8622 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8623 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8624 if test $ac_cv_c_stringize = yes; then
8625
8626 cat >>confdefs.h <<\_ACEOF
8627 #define HAVE_STRINGIZE 1
8628 _ACEOF
8629
8630 fi
8631
8632 echo "$as_me:$LINENO: checking for signed types" >&5
8633 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
8634 if test "${pgac_cv_c_signed+set}" = set; then
8635   echo $ECHO_N "(cached) $ECHO_C" >&6
8636 else
8637   cat >conftest.$ac_ext <<_ACEOF
8638 #line $LINENO "configure"
8639 #include "confdefs.h"
8640
8641 #ifdef F77_DUMMY_MAIN
8642 #  ifdef __cplusplus
8643      extern "C"
8644 #  endif
8645    int F77_DUMMY_MAIN() { return 1; }
8646 #endif
8647 int
8648 main ()
8649 {
8650 signed char c; signed short s; signed int i;
8651   ;
8652   return 0;
8653 }
8654 _ACEOF
8655 rm -f conftest.$ac_objext
8656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8657   (eval $ac_compile) 2>&5
8658   ac_status=$?
8659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660   (exit $ac_status); } &&
8661          { ac_try='test -s conftest.$ac_objext'
8662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663   (eval $ac_try) 2>&5
8664   ac_status=$?
8665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666   (exit $ac_status); }; }; then
8667   pgac_cv_c_signed=yes
8668 else
8669   echo "$as_me: failed program was:" >&5
8670 cat conftest.$ac_ext >&5
8671 pgac_cv_c_signed=no
8672 fi
8673 rm -f conftest.$ac_objext conftest.$ac_ext
8674 fi
8675 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
8676 echo "${ECHO_T}$pgac_cv_c_signed" >&6
8677 if test x"$pgac_cv_c_signed" = xno ; then
8678
8679 cat >>confdefs.h <<\_ACEOF
8680 #define signed
8681 _ACEOF
8682
8683 fi
8684 echo "$as_me:$LINENO: checking for working volatile" >&5
8685 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8686 if test "${ac_cv_c_volatile+set}" = set; then
8687   echo $ECHO_N "(cached) $ECHO_C" >&6
8688 else
8689   cat >conftest.$ac_ext <<_ACEOF
8690 #line $LINENO "configure"
8691 #include "confdefs.h"
8692
8693 #ifdef F77_DUMMY_MAIN
8694 #  ifdef __cplusplus
8695      extern "C"
8696 #  endif
8697    int F77_DUMMY_MAIN() { return 1; }
8698 #endif
8699 int
8700 main ()
8701 {
8702
8703 volatile int x;
8704 int * volatile y;
8705   ;
8706   return 0;
8707 }
8708 _ACEOF
8709 rm -f conftest.$ac_objext
8710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8711   (eval $ac_compile) 2>&5
8712   ac_status=$?
8713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714   (exit $ac_status); } &&
8715          { ac_try='test -s conftest.$ac_objext'
8716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8717   (eval $ac_try) 2>&5
8718   ac_status=$?
8719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720   (exit $ac_status); }; }; then
8721   ac_cv_c_volatile=yes
8722 else
8723   echo "$as_me: failed program was:" >&5
8724 cat conftest.$ac_ext >&5
8725 ac_cv_c_volatile=no
8726 fi
8727 rm -f conftest.$ac_objext conftest.$ac_ext
8728 fi
8729 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8730 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8731 if test $ac_cv_c_volatile = no; then
8732
8733 cat >>confdefs.h <<\_ACEOF
8734 #define volatile
8735 _ACEOF
8736
8737 fi
8738
8739 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8740 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8741 if test "${ac_cv_struct_tm+set}" = set; then
8742   echo $ECHO_N "(cached) $ECHO_C" >&6
8743 else
8744   cat >conftest.$ac_ext <<_ACEOF
8745 #line $LINENO "configure"
8746 #include "confdefs.h"
8747 #include <sys/types.h>
8748 #include <time.h>
8749
8750 #ifdef F77_DUMMY_MAIN
8751 #  ifdef __cplusplus
8752      extern "C"
8753 #  endif
8754    int F77_DUMMY_MAIN() { return 1; }
8755 #endif
8756 int
8757 main ()
8758 {
8759 struct tm *tp; tp->tm_sec;
8760   ;
8761   return 0;
8762 }
8763 _ACEOF
8764 rm -f conftest.$ac_objext
8765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8766   (eval $ac_compile) 2>&5
8767   ac_status=$?
8768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769   (exit $ac_status); } &&
8770          { ac_try='test -s conftest.$ac_objext'
8771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772   (eval $ac_try) 2>&5
8773   ac_status=$?
8774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775   (exit $ac_status); }; }; then
8776   ac_cv_struct_tm=time.h
8777 else
8778   echo "$as_me: failed program was:" >&5
8779 cat conftest.$ac_ext >&5
8780 ac_cv_struct_tm=sys/time.h
8781 fi
8782 rm -f conftest.$ac_objext conftest.$ac_ext
8783 fi
8784 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8785 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8786 if test $ac_cv_struct_tm = sys/time.h; then
8787
8788 cat >>confdefs.h <<\_ACEOF
8789 #define TM_IN_SYS_TIME 1
8790 _ACEOF
8791
8792 fi
8793
8794 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8795 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
8796 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8797   echo $ECHO_N "(cached) $ECHO_C" >&6
8798 else
8799   cat >conftest.$ac_ext <<_ACEOF
8800 #line $LINENO "configure"
8801 #include "confdefs.h"
8802 #include <sys/types.h>
8803 #include <$ac_cv_struct_tm>
8804
8805
8806 #ifdef F77_DUMMY_MAIN
8807 #  ifdef __cplusplus
8808      extern "C"
8809 #  endif
8810    int F77_DUMMY_MAIN() { return 1; }
8811 #endif
8812 int
8813 main ()
8814 {
8815 static struct tm ac_aggr;
8816 if (ac_aggr.tm_zone)
8817 return 0;
8818   ;
8819   return 0;
8820 }
8821 _ACEOF
8822 rm -f conftest.$ac_objext
8823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8824   (eval $ac_compile) 2>&5
8825   ac_status=$?
8826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827   (exit $ac_status); } &&
8828          { ac_try='test -s conftest.$ac_objext'
8829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830   (eval $ac_try) 2>&5
8831   ac_status=$?
8832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833   (exit $ac_status); }; }; then
8834   ac_cv_member_struct_tm_tm_zone=yes
8835 else
8836   echo "$as_me: failed program was:" >&5
8837 cat conftest.$ac_ext >&5
8838 ac_cv_member_struct_tm_tm_zone=no
8839 fi
8840 rm -f conftest.$ac_objext conftest.$ac_ext
8841 fi
8842 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8843 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
8844 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8845
8846 cat >>confdefs.h <<_ACEOF
8847 #define HAVE_STRUCT_TM_TM_ZONE 1
8848 _ACEOF
8849
8850
8851 fi
8852
8853 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8854
8855 cat >>confdefs.h <<\_ACEOF
8856 #define HAVE_TM_ZONE 1
8857 _ACEOF
8858
8859 else
8860   echo "$as_me:$LINENO: checking for tzname" >&5
8861 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
8862 if test "${ac_cv_var_tzname+set}" = set; then
8863   echo $ECHO_N "(cached) $ECHO_C" >&6
8864 else
8865   cat >conftest.$ac_ext <<_ACEOF
8866 #line $LINENO "configure"
8867 #include "confdefs.h"
8868 #include <time.h>
8869 #ifndef tzname /* For SGI.  */
8870 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
8871 #endif
8872
8873 #ifdef F77_DUMMY_MAIN
8874 #  ifdef __cplusplus
8875      extern "C"
8876 #  endif
8877    int F77_DUMMY_MAIN() { return 1; }
8878 #endif
8879 int
8880 main ()
8881 {
8882 atoi(*tzname);
8883   ;
8884   return 0;
8885 }
8886 _ACEOF
8887 rm -f conftest.$ac_objext conftest$ac_exeext
8888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8889   (eval $ac_link) 2>&5
8890   ac_status=$?
8891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892   (exit $ac_status); } &&
8893          { ac_try='test -s conftest$ac_exeext'
8894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8895   (eval $ac_try) 2>&5
8896   ac_status=$?
8897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898   (exit $ac_status); }; }; then
8899   ac_cv_var_tzname=yes
8900 else
8901   echo "$as_me: failed program was:" >&5
8902 cat conftest.$ac_ext >&5
8903 ac_cv_var_tzname=no
8904 fi
8905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8906 fi
8907 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8908 echo "${ECHO_T}$ac_cv_var_tzname" >&6
8909   if test $ac_cv_var_tzname = yes; then
8910
8911 cat >>confdefs.h <<\_ACEOF
8912 #define HAVE_TZNAME 1
8913 _ACEOF
8914
8915   fi
8916 fi
8917
8918 echo "$as_me:$LINENO: checking for union semun" >&5
8919 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
8920 if test "${ac_cv_type_union_semun+set}" = set; then
8921   echo $ECHO_N "(cached) $ECHO_C" >&6
8922 else
8923   cat >conftest.$ac_ext <<_ACEOF
8924 #line $LINENO "configure"
8925 #include "confdefs.h"
8926 #include <sys/types.h>
8927 #include <sys/ipc.h>
8928 #include <sys/sem.h>
8929
8930 #ifdef F77_DUMMY_MAIN
8931 #  ifdef __cplusplus
8932      extern "C"
8933 #  endif
8934    int F77_DUMMY_MAIN() { return 1; }
8935 #endif
8936 int
8937 main ()
8938 {
8939 if ((union semun *) 0)
8940   return 0;
8941 if (sizeof (union semun))
8942   return 0;
8943   ;
8944   return 0;
8945 }
8946 _ACEOF
8947 rm -f conftest.$ac_objext
8948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8949   (eval $ac_compile) 2>&5
8950   ac_status=$?
8951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952   (exit $ac_status); } &&
8953          { ac_try='test -s conftest.$ac_objext'
8954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955   (eval $ac_try) 2>&5
8956   ac_status=$?
8957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958   (exit $ac_status); }; }; then
8959   ac_cv_type_union_semun=yes
8960 else
8961   echo "$as_me: failed program was:" >&5
8962 cat conftest.$ac_ext >&5
8963 ac_cv_type_union_semun=no
8964 fi
8965 rm -f conftest.$ac_objext conftest.$ac_ext
8966 fi
8967 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
8968 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
8969 if test $ac_cv_type_union_semun = yes; then
8970
8971 cat >>confdefs.h <<_ACEOF
8972 #define HAVE_UNION_SEMUN 1
8973 _ACEOF
8974
8975
8976 fi
8977
8978 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
8979 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
8980 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
8981   echo $ECHO_N "(cached) $ECHO_C" >&6
8982 else
8983   cat >conftest.$ac_ext <<_ACEOF
8984 #line $LINENO "configure"
8985 #include "confdefs.h"
8986 #include <sys/types.h>
8987 #ifdef HAVE_SYS_UN_H
8988 #include <sys/un.h>
8989 #endif
8990
8991
8992 #ifdef F77_DUMMY_MAIN
8993 #  ifdef __cplusplus
8994      extern "C"
8995 #  endif
8996    int F77_DUMMY_MAIN() { return 1; }
8997 #endif
8998 int
8999 main ()
9000 {
9001 if ((struct sockaddr_un *) 0)
9002   return 0;
9003 if (sizeof (struct sockaddr_un))
9004   return 0;
9005   ;
9006   return 0;
9007 }
9008 _ACEOF
9009 rm -f conftest.$ac_objext
9010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9011   (eval $ac_compile) 2>&5
9012   ac_status=$?
9013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014   (exit $ac_status); } &&
9015          { ac_try='test -s conftest.$ac_objext'
9016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017   (eval $ac_try) 2>&5
9018   ac_status=$?
9019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020   (exit $ac_status); }; }; then
9021   ac_cv_type_struct_sockaddr_un=yes
9022 else
9023   echo "$as_me: failed program was:" >&5
9024 cat conftest.$ac_ext >&5
9025 ac_cv_type_struct_sockaddr_un=no
9026 fi
9027 rm -f conftest.$ac_objext conftest.$ac_ext
9028 fi
9029 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9030 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9031 if test $ac_cv_type_struct_sockaddr_un = yes; then
9032
9033 cat >>confdefs.h <<_ACEOF
9034 #define HAVE_STRUCT_SOCKADDR_UN 1
9035 _ACEOF
9036
9037
9038 fi
9039
9040
9041 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
9042 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
9043 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
9044   echo $ECHO_N "(cached) $ECHO_C" >&6
9045 else
9046   cat >conftest.$ac_ext <<_ACEOF
9047 #line $LINENO "configure"
9048 #include "confdefs.h"
9049 #include <sys/param.h>
9050 #include <sys/socket.h>
9051 #include <sys/ucred.h>
9052
9053 #ifdef F77_DUMMY_MAIN
9054 #  ifdef __cplusplus
9055      extern "C"
9056 #  endif
9057    int F77_DUMMY_MAIN() { return 1; }
9058 #endif
9059 int
9060 main ()
9061 {
9062 if ((struct cmsgcred *) 0)
9063   return 0;
9064 if (sizeof (struct cmsgcred))
9065   return 0;
9066   ;
9067   return 0;
9068 }
9069 _ACEOF
9070 rm -f conftest.$ac_objext
9071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9072   (eval $ac_compile) 2>&5
9073   ac_status=$?
9074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075   (exit $ac_status); } &&
9076          { ac_try='test -s conftest.$ac_objext'
9077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078   (eval $ac_try) 2>&5
9079   ac_status=$?
9080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081   (exit $ac_status); }; }; then
9082   ac_cv_type_struct_cmsgcred=yes
9083 else
9084   echo "$as_me: failed program was:" >&5
9085 cat conftest.$ac_ext >&5
9086 ac_cv_type_struct_cmsgcred=no
9087 fi
9088 rm -f conftest.$ac_objext conftest.$ac_ext
9089 fi
9090 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9091 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9092 if test $ac_cv_type_struct_cmsgcred = yes; then
9093
9094 cat >>confdefs.h <<_ACEOF
9095 #define HAVE_STRUCT_CMSGCRED 1
9096 _ACEOF
9097
9098
9099 fi
9100 echo "$as_me:$LINENO: checking for struct fcred" >&5
9101 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9102 if test "${ac_cv_type_struct_fcred+set}" = set; then
9103   echo $ECHO_N "(cached) $ECHO_C" >&6
9104 else
9105   cat >conftest.$ac_ext <<_ACEOF
9106 #line $LINENO "configure"
9107 #include "confdefs.h"
9108 #include <sys/param.h>
9109 #include <sys/socket.h>
9110 #include <sys/ucred.h>
9111
9112 #ifdef F77_DUMMY_MAIN
9113 #  ifdef __cplusplus
9114      extern "C"
9115 #  endif
9116    int F77_DUMMY_MAIN() { return 1; }
9117 #endif
9118 int
9119 main ()
9120 {
9121 if ((struct fcred *) 0)
9122   return 0;
9123 if (sizeof (struct fcred))
9124   return 0;
9125   ;
9126   return 0;
9127 }
9128 _ACEOF
9129 rm -f conftest.$ac_objext
9130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9131   (eval $ac_compile) 2>&5
9132   ac_status=$?
9133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134   (exit $ac_status); } &&
9135          { ac_try='test -s conftest.$ac_objext'
9136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137   (eval $ac_try) 2>&5
9138   ac_status=$?
9139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140   (exit $ac_status); }; }; then
9141   ac_cv_type_struct_fcred=yes
9142 else
9143   echo "$as_me: failed program was:" >&5
9144 cat conftest.$ac_ext >&5
9145 ac_cv_type_struct_fcred=no
9146 fi
9147 rm -f conftest.$ac_objext conftest.$ac_ext
9148 fi
9149 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9150 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9151 if test $ac_cv_type_struct_fcred = yes; then
9152
9153 cat >>confdefs.h <<_ACEOF
9154 #define HAVE_STRUCT_FCRED 1
9155 _ACEOF
9156
9157
9158 fi
9159 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9160 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9161 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9162   echo $ECHO_N "(cached) $ECHO_C" >&6
9163 else
9164   cat >conftest.$ac_ext <<_ACEOF
9165 #line $LINENO "configure"
9166 #include "confdefs.h"
9167 #include <sys/param.h>
9168 #include <sys/socket.h>
9169 #include <sys/ucred.h>
9170
9171 #ifdef F77_DUMMY_MAIN
9172 #  ifdef __cplusplus
9173      extern "C"
9174 #  endif
9175    int F77_DUMMY_MAIN() { return 1; }
9176 #endif
9177 int
9178 main ()
9179 {
9180 if ((struct sockcred *) 0)
9181   return 0;
9182 if (sizeof (struct sockcred))
9183   return 0;
9184   ;
9185   return 0;
9186 }
9187 _ACEOF
9188 rm -f conftest.$ac_objext
9189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9190   (eval $ac_compile) 2>&5
9191   ac_status=$?
9192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193   (exit $ac_status); } &&
9194          { ac_try='test -s conftest.$ac_objext'
9195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9196   (eval $ac_try) 2>&5
9197   ac_status=$?
9198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199   (exit $ac_status); }; }; then
9200   ac_cv_type_struct_sockcred=yes
9201 else
9202   echo "$as_me: failed program was:" >&5
9203 cat conftest.$ac_ext >&5
9204 ac_cv_type_struct_sockcred=no
9205 fi
9206 rm -f conftest.$ac_objext conftest.$ac_ext
9207 fi
9208 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9209 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9210 if test $ac_cv_type_struct_sockcred = yes; then
9211
9212 cat >>confdefs.h <<_ACEOF
9213 #define HAVE_STRUCT_SOCKCRED 1
9214 _ACEOF
9215
9216
9217 fi
9218
9219
9220 if test "$with_zlib" = yes; then
9221   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9222   # did not).  While we could work around the lack of z_streamp, it
9223   # seems unwise to encourage people to use such old zlib versions...
9224   echo "$as_me:$LINENO: checking for z_streamp" >&5
9225 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9226 if test "${ac_cv_type_z_streamp+set}" = set; then
9227   echo $ECHO_N "(cached) $ECHO_C" >&6
9228 else
9229   cat >conftest.$ac_ext <<_ACEOF
9230 #line $LINENO "configure"
9231 #include "confdefs.h"
9232 #include <zlib.h>
9233
9234 #ifdef F77_DUMMY_MAIN
9235 #  ifdef __cplusplus
9236      extern "C"
9237 #  endif
9238    int F77_DUMMY_MAIN() { return 1; }
9239 #endif
9240 int
9241 main ()
9242 {
9243 if ((z_streamp *) 0)
9244   return 0;
9245 if (sizeof (z_streamp))
9246   return 0;
9247   ;
9248   return 0;
9249 }
9250 _ACEOF
9251 rm -f conftest.$ac_objext
9252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9253   (eval $ac_compile) 2>&5
9254   ac_status=$?
9255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256   (exit $ac_status); } &&
9257          { ac_try='test -s conftest.$ac_objext'
9258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259   (eval $ac_try) 2>&5
9260   ac_status=$?
9261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262   (exit $ac_status); }; }; then
9263   ac_cv_type_z_streamp=yes
9264 else
9265   echo "$as_me: failed program was:" >&5
9266 cat conftest.$ac_ext >&5
9267 ac_cv_type_z_streamp=no
9268 fi
9269 rm -f conftest.$ac_objext conftest.$ac_ext
9270 fi
9271 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9272 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9273 if test $ac_cv_type_z_streamp = yes; then
9274   :
9275 else
9276   { { echo "$as_me:$LINENO: error: zlib version is too old
9277 Use --without-zlib to disable zlib support." >&5
9278 echo "$as_me: error: zlib version is too old
9279 Use --without-zlib to disable zlib support." >&2;}
9280    { (exit 1); exit 1; }; }
9281 fi
9282
9283 fi
9284
9285 if test "$with_krb5" = yes; then
9286 # Check for differences between MIT and Heimdal (KTH) releases
9287   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9288 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9289 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9290   echo $ECHO_N "(cached) $ECHO_C" >&6
9291 else
9292   cat >conftest.$ac_ext <<_ACEOF
9293 #line $LINENO "configure"
9294 #include "confdefs.h"
9295 #include <krb5.h>
9296
9297 #ifdef F77_DUMMY_MAIN
9298 #  ifdef __cplusplus
9299      extern "C"
9300 #  endif
9301    int F77_DUMMY_MAIN() { return 1; }
9302 #endif
9303 int
9304 main ()
9305 {
9306 static krb5_ticket ac_aggr;
9307 if (ac_aggr.enc_part2)
9308 return 0;
9309   ;
9310   return 0;
9311 }
9312 _ACEOF
9313 rm -f conftest.$ac_objext
9314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9315   (eval $ac_compile) 2>&5
9316   ac_status=$?
9317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318   (exit $ac_status); } &&
9319          { ac_try='test -s conftest.$ac_objext'
9320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321   (eval $ac_try) 2>&5
9322   ac_status=$?
9323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324   (exit $ac_status); }; }; then
9325   ac_cv_member_krb5_ticket_enc_part2=yes
9326 else
9327   echo "$as_me: failed program was:" >&5
9328 cat conftest.$ac_ext >&5
9329 ac_cv_member_krb5_ticket_enc_part2=no
9330 fi
9331 rm -f conftest.$ac_objext conftest.$ac_ext
9332 fi
9333 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9334 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9335 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
9336
9337 cat >>confdefs.h <<_ACEOF
9338 #define HAVE_KRB5_TICKET_ENC_PART2 1
9339 _ACEOF
9340
9341
9342 else
9343   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9344 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9345 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9346   echo $ECHO_N "(cached) $ECHO_C" >&6
9347 else
9348   cat >conftest.$ac_ext <<_ACEOF
9349 #line $LINENO "configure"
9350 #include "confdefs.h"
9351 #include <krb5.h>
9352
9353 #ifdef F77_DUMMY_MAIN
9354 #  ifdef __cplusplus
9355      extern "C"
9356 #  endif
9357    int F77_DUMMY_MAIN() { return 1; }
9358 #endif
9359 int
9360 main ()
9361 {
9362 static krb5_ticket ac_aggr;
9363 if (ac_aggr.client)
9364 return 0;
9365   ;
9366   return 0;
9367 }
9368 _ACEOF
9369 rm -f conftest.$ac_objext
9370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9371   (eval $ac_compile) 2>&5
9372   ac_status=$?
9373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374   (exit $ac_status); } &&
9375          { ac_try='test -s conftest.$ac_objext'
9376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377   (eval $ac_try) 2>&5
9378   ac_status=$?
9379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380   (exit $ac_status); }; }; then
9381   ac_cv_member_krb5_ticket_client=yes
9382 else
9383   echo "$as_me: failed program was:" >&5
9384 cat conftest.$ac_ext >&5
9385 ac_cv_member_krb5_ticket_client=no
9386 fi
9387 rm -f conftest.$ac_objext conftest.$ac_ext
9388 fi
9389 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
9390 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
9391 if test $ac_cv_member_krb5_ticket_client = yes; then
9392
9393 cat >>confdefs.h <<_ACEOF
9394 #define HAVE_KRB5_TICKET_CLIENT 1
9395 _ACEOF
9396
9397
9398 else
9399   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
9400 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
9401    { (exit 1); exit 1; }; }
9402 fi
9403
9404 fi
9405
9406   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
9407 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
9408 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
9409   echo $ECHO_N "(cached) $ECHO_C" >&6
9410 else
9411   cat >conftest.$ac_ext <<_ACEOF
9412 #line $LINENO "configure"
9413 #include "confdefs.h"
9414 #include <krb5.h>
9415
9416 #ifdef F77_DUMMY_MAIN
9417 #  ifdef __cplusplus
9418      extern "C"
9419 #  endif
9420    int F77_DUMMY_MAIN() { return 1; }
9421 #endif
9422 int
9423 main ()
9424 {
9425 static krb5_error ac_aggr;
9426 if (ac_aggr.text.data)
9427 return 0;
9428   ;
9429   return 0;
9430 }
9431 _ACEOF
9432 rm -f conftest.$ac_objext
9433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9434   (eval $ac_compile) 2>&5
9435   ac_status=$?
9436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437   (exit $ac_status); } &&
9438          { ac_try='test -s conftest.$ac_objext'
9439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9440   (eval $ac_try) 2>&5
9441   ac_status=$?
9442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443   (exit $ac_status); }; }; then
9444   ac_cv_member_krb5_error_text_data=yes
9445 else
9446   echo "$as_me: failed program was:" >&5
9447 cat conftest.$ac_ext >&5
9448 ac_cv_member_krb5_error_text_data=no
9449 fi
9450 rm -f conftest.$ac_objext conftest.$ac_ext
9451 fi
9452 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
9453 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
9454 if test $ac_cv_member_krb5_error_text_data = yes; then
9455
9456 cat >>confdefs.h <<_ACEOF
9457 #define HAVE_KRB5_ERROR_TEXT_DATA 1
9458 _ACEOF
9459
9460
9461 else
9462   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
9463 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
9464 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
9465   echo $ECHO_N "(cached) $ECHO_C" >&6
9466 else
9467   cat >conftest.$ac_ext <<_ACEOF
9468 #line $LINENO "configure"
9469 #include "confdefs.h"
9470 #include <krb5.h>
9471
9472 #ifdef F77_DUMMY_MAIN
9473 #  ifdef __cplusplus
9474      extern "C"
9475 #  endif
9476    int F77_DUMMY_MAIN() { return 1; }
9477 #endif
9478 int
9479 main ()
9480 {
9481 static krb5_error ac_aggr;
9482 if (ac_aggr.e_data)
9483 return 0;
9484   ;
9485   return 0;
9486 }
9487 _ACEOF
9488 rm -f conftest.$ac_objext
9489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9490   (eval $ac_compile) 2>&5
9491   ac_status=$?
9492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493   (exit $ac_status); } &&
9494          { ac_try='test -s conftest.$ac_objext'
9495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496   (eval $ac_try) 2>&5
9497   ac_status=$?
9498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499   (exit $ac_status); }; }; then
9500   ac_cv_member_krb5_error_e_data=yes
9501 else
9502   echo "$as_me: failed program was:" >&5
9503 cat conftest.$ac_ext >&5
9504 ac_cv_member_krb5_error_e_data=no
9505 fi
9506 rm -f conftest.$ac_objext conftest.$ac_ext
9507 fi
9508 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
9509 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
9510 if test $ac_cv_member_krb5_error_e_data = yes; then
9511
9512 cat >>confdefs.h <<_ACEOF
9513 #define HAVE_KRB5_ERROR_E_DATA 1
9514 _ACEOF
9515
9516
9517 else
9518   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
9519 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
9520    { (exit 1); exit 1; }; }
9521 fi
9522
9523 fi
9524
9525 fi
9526
9527
9528 ##
9529 ## Functions, global variables
9530 ##
9531
9532 echo "$as_me:$LINENO: checking for int timezone" >&5
9533 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
9534 if test "${pgac_cv_var_int_timezone+set}" = set; then
9535   echo $ECHO_N "(cached) $ECHO_C" >&6
9536 else
9537   cat >conftest.$ac_ext <<_ACEOF
9538 #line $LINENO "configure"
9539 #include "confdefs.h"
9540 #include <time.h>
9541 int res;
9542 #ifdef F77_DUMMY_MAIN
9543 #  ifdef __cplusplus
9544      extern "C"
9545 #  endif
9546    int F77_DUMMY_MAIN() { return 1; }
9547 #endif
9548 int
9549 main ()
9550 {
9551 res = timezone / 60;
9552   ;
9553   return 0;
9554 }
9555 _ACEOF
9556 rm -f conftest.$ac_objext conftest$ac_exeext
9557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9558   (eval $ac_link) 2>&5
9559   ac_status=$?
9560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561   (exit $ac_status); } &&
9562          { ac_try='test -s conftest$ac_exeext'
9563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564   (eval $ac_try) 2>&5
9565   ac_status=$?
9566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567   (exit $ac_status); }; }; then
9568   pgac_cv_var_int_timezone=yes
9569 else
9570   echo "$as_me: failed program was:" >&5
9571 cat conftest.$ac_ext >&5
9572 pgac_cv_var_int_timezone=no
9573 fi
9574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9575 fi
9576 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
9577 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
9578 if test x"$pgac_cv_var_int_timezone" = xyes ; then
9579
9580 cat >>confdefs.h <<\_ACEOF
9581 #define HAVE_INT_TIMEZONE
9582 _ACEOF
9583
9584 fi
9585 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
9586 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
9587  if test "${ac_cv_func_accept_arg1+set}" = set; then
9588   echo $ECHO_N "(cached) $ECHO_C" >&6
9589 else
9590    if test "${ac_cv_func_accept_arg2+set}" = set; then
9591   echo $ECHO_N "(cached) $ECHO_C" >&6
9592 else
9593     if test "${ac_cv_func_accept_arg3+set}" = set; then
9594   echo $ECHO_N "(cached) $ECHO_C" >&6
9595 else
9596      for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
9597      for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
9598       for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
9599        cat >conftest.$ac_ext <<_ACEOF
9600 #line $LINENO "configure"
9601 #include "confdefs.h"
9602 #ifdef HAVE_SYS_TYPES_H
9603 #include <sys/types.h>
9604 #endif
9605 #ifdef HAVE_SYS_SOCKET_H
9606 #include <sys/socket.h>
9607 #endif
9608 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
9609 #ifdef F77_DUMMY_MAIN
9610 #  ifdef __cplusplus
9611      extern "C"
9612 #  endif
9613    int F77_DUMMY_MAIN() { return 1; }
9614 #endif
9615 int
9616 main ()
9617 {
9618
9619   ;
9620   return 0;
9621 }
9622 _ACEOF
9623 rm -f conftest.$ac_objext
9624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9625   (eval $ac_compile) 2>&5
9626   ac_status=$?
9627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628   (exit $ac_status); } &&
9629          { ac_try='test -s conftest.$ac_objext'
9630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631   (eval $ac_try) 2>&5
9632   ac_status=$?
9633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634   (exit $ac_status); }; }; then
9635   ac_not_found=no; break 3
9636 else
9637   echo "$as_me: failed program was:" >&5
9638 cat conftest.$ac_ext >&5
9639 ac_not_found=yes
9640 fi
9641 rm -f conftest.$ac_objext conftest.$ac_ext
9642       done
9643      done
9644     done
9645     if test "$ac_not_found" = yes; then
9646       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
9647 echo "$as_me: error: could not determine argument types" >&2;}
9648    { (exit 1); exit 1; }; }
9649     fi
9650     if test "$ac_cv_func_accept_arg3" = "void"; then
9651       ac_cv_func_accept_arg3=int
9652     fi
9653
9654 fi
9655
9656 fi
9657
9658 fi
9659  echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
9660 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
9661
9662 cat >>confdefs.h <<_ACEOF
9663 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
9664 _ACEOF
9665
9666
9667 cat >>confdefs.h <<_ACEOF
9668 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
9669 _ACEOF
9670
9671
9672 cat >>confdefs.h <<_ACEOF
9673 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
9674 _ACEOF
9675
9676
9677 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
9678 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
9679 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
9680   echo $ECHO_N "(cached) $ECHO_C" >&6
9681 else
9682   cat >conftest.$ac_ext <<_ACEOF
9683 #line $LINENO "configure"
9684 #include "confdefs.h"
9685 #include <sys/time.h>
9686 #ifdef F77_DUMMY_MAIN
9687 #  ifdef __cplusplus
9688      extern "C"
9689 #  endif
9690    int F77_DUMMY_MAIN() { return 1; }
9691 #endif
9692 int
9693 main ()
9694 {
9695 struct timeval *tp;
9696 struct timezone *tzp;
9697 gettimeofday(tp,tzp);
9698   ;
9699   return 0;
9700 }
9701 _ACEOF
9702 rm -f conftest.$ac_objext
9703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9704   (eval $ac_compile) 2>&5
9705   ac_status=$?
9706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707   (exit $ac_status); } &&
9708          { ac_try='test -s conftest.$ac_objext'
9709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710   (eval $ac_try) 2>&5
9711   ac_status=$?
9712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713   (exit $ac_status); }; }; then
9714   pgac_cv_func_gettimeofday_1arg=no
9715 else
9716   echo "$as_me: failed program was:" >&5
9717 cat conftest.$ac_ext >&5
9718 pgac_cv_func_gettimeofday_1arg=yes
9719 fi
9720 rm -f conftest.$ac_objext conftest.$ac_ext
9721 fi
9722 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
9723 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
9724 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
9725
9726 cat >>confdefs.h <<\_ACEOF
9727 #define GETTIMEOFDAY_1ARG
9728 _ACEOF
9729
9730 fi
9731
9732 # SunOS doesn't handle negative byte comparisons properly with +/- return
9733 echo "$as_me:$LINENO: checking for working memcmp" >&5
9734 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9735 if test "${ac_cv_func_memcmp_working+set}" = set; then
9736   echo $ECHO_N "(cached) $ECHO_C" >&6
9737 else
9738   if test "$cross_compiling" = yes; then
9739   ac_cv_func_memcmp_working=no
9740 else
9741   cat >conftest.$ac_ext <<_ACEOF
9742 #line $LINENO "configure"
9743 #include "confdefs.h"
9744
9745 #ifdef F77_DUMMY_MAIN
9746 #  ifdef __cplusplus
9747      extern "C"
9748 #  endif
9749    int F77_DUMMY_MAIN() { return 1; }
9750 #endif
9751 int
9752 main ()
9753 {
9754
9755   /* Some versions of memcmp are not 8-bit clean.  */
9756   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9757   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9758     exit (1);
9759
9760   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9761      or more and with at least one buffer not starting on a 4-byte boundary.
9762      William Lewis provided this test program.   */
9763   {
9764     char foo[21];
9765     char bar[21];
9766     int i;
9767     for (i = 0; i < 4; i++)
9768       {
9769         char *a = foo + i;
9770         char *b = bar + i;
9771         strcpy (a, "--------01111111");
9772         strcpy (b, "--------10000000");
9773         if (memcmp (a, b, 16) >= 0)
9774           exit (1);
9775       }
9776     exit (0);
9777   }
9778
9779   ;
9780   return 0;
9781 }
9782 _ACEOF
9783 rm -f conftest$ac_exeext
9784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9785   (eval $ac_link) 2>&5
9786   ac_status=$?
9787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790   (eval $ac_try) 2>&5
9791   ac_status=$?
9792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793   (exit $ac_status); }; }; then
9794   ac_cv_func_memcmp_working=yes
9795 else
9796   echo "$as_me: program exited with status $ac_status" >&5
9797 echo "$as_me: failed program was:" >&5
9798 cat conftest.$ac_ext >&5
9799 ( exit $ac_status )
9800 ac_cv_func_memcmp_working=no
9801 fi
9802 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9803 fi
9804 fi
9805 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9806 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9807 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822 for ac_func in cbrt fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
9823 do
9824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9825 echo "$as_me:$LINENO: checking for $ac_func" >&5
9826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9827 if eval "test \"\${$as_ac_var+set}\" = set"; then
9828   echo $ECHO_N "(cached) $ECHO_C" >&6
9829 else
9830   cat >conftest.$ac_ext <<_ACEOF
9831 #line $LINENO "configure"
9832 #include "confdefs.h"
9833 /* System header to define __stub macros and hopefully few prototypes,
9834     which can conflict with char $ac_func (); below.  */
9835 #include <assert.h>
9836 /* Override any gcc2 internal prototype to avoid an error.  */
9837 #ifdef __cplusplus
9838 extern "C"
9839 #endif
9840 /* We use char because int might match the return type of a gcc2
9841    builtin and then its argument prototype would still apply.  */
9842 char $ac_func ();
9843 char (*f) ();
9844
9845 #ifdef F77_DUMMY_MAIN
9846 #  ifdef __cplusplus
9847      extern "C"
9848 #  endif
9849    int F77_DUMMY_MAIN() { return 1; }
9850 #endif
9851 int
9852 main ()
9853 {
9854 /* The GNU C library defines this for functions which it implements
9855     to always fail with ENOSYS.  Some functions are actually named
9856     something starting with __ and the normal name is an alias.  */
9857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9858 choke me
9859 #else
9860 f = $ac_func;
9861 #endif
9862
9863   ;
9864   return 0;
9865 }
9866 _ACEOF
9867 rm -f conftest.$ac_objext conftest$ac_exeext
9868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9869   (eval $ac_link) 2>&5
9870   ac_status=$?
9871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872   (exit $ac_status); } &&
9873          { ac_try='test -s conftest$ac_exeext'
9874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875   (eval $ac_try) 2>&5
9876   ac_status=$?
9877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878   (exit $ac_status); }; }; then
9879   eval "$as_ac_var=yes"
9880 else
9881   echo "$as_me: failed program was:" >&5
9882 cat conftest.$ac_ext >&5
9883 eval "$as_ac_var=no"
9884 fi
9885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9886 fi
9887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9889 if test `eval echo '${'$as_ac_var'}'` = yes; then
9890   cat >>confdefs.h <<_ACEOF
9891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9892 _ACEOF
9893
9894 fi
9895 done
9896
9897
9898 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
9899 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
9900 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
9901   echo $ECHO_N "(cached) $ECHO_C" >&6
9902 else
9903   cat >conftest.$ac_ext <<_ACEOF
9904 #line $LINENO "configure"
9905 #include "confdefs.h"
9906 #include <unistd.h>
9907
9908 #ifdef F77_DUMMY_MAIN
9909 #  ifdef __cplusplus
9910      extern "C"
9911 #  endif
9912    int F77_DUMMY_MAIN() { return 1; }
9913 #endif
9914 int
9915 main ()
9916 {
9917 #ifndef fdatasync
9918   char *p = (char *) fdatasync;
9919 #endif
9920
9921   ;
9922   return 0;
9923 }
9924 _ACEOF
9925 rm -f conftest.$ac_objext
9926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9927   (eval $ac_compile) 2>&5
9928   ac_status=$?
9929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930   (exit $ac_status); } &&
9931          { ac_try='test -s conftest.$ac_objext'
9932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933   (eval $ac_try) 2>&5
9934   ac_status=$?
9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936   (exit $ac_status); }; }; then
9937   ac_cv_have_decl_fdatasync=yes
9938 else
9939   echo "$as_me: failed program was:" >&5
9940 cat conftest.$ac_ext >&5
9941 ac_cv_have_decl_fdatasync=no
9942 fi
9943 rm -f conftest.$ac_objext conftest.$ac_ext
9944 fi
9945 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
9946 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
9947 if test $ac_cv_have_decl_fdatasync = yes; then
9948
9949 cat >>confdefs.h <<_ACEOF
9950 #define HAVE_DECL_FDATASYNC 1
9951 _ACEOF
9952
9953
9954 else
9955   cat >>confdefs.h <<_ACEOF
9956 #define HAVE_DECL_FDATASYNC 0
9957 _ACEOF
9958
9959
9960 fi
9961
9962
9963
9964 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
9965 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
9966 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
9967   echo $ECHO_N "(cached) $ECHO_C" >&6
9968 else
9969   cat >conftest.$ac_ext <<_ACEOF
9970 #line $LINENO "configure"
9971 #include "confdefs.h"
9972 #include <machine/vmparam.h>
9973 #include <sys/exec.h>
9974
9975 #ifdef F77_DUMMY_MAIN
9976 #  ifdef __cplusplus
9977      extern "C"
9978 #  endif
9979    int F77_DUMMY_MAIN() { return 1; }
9980 #endif
9981 int
9982 main ()
9983 {
9984 PS_STRINGS->ps_nargvstr = 1;
9985 PS_STRINGS->ps_argvstr = "foo";
9986   ;
9987   return 0;
9988 }
9989 _ACEOF
9990 rm -f conftest.$ac_objext conftest$ac_exeext
9991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9992   (eval $ac_link) 2>&5
9993   ac_status=$?
9994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995   (exit $ac_status); } &&
9996          { ac_try='test -s conftest$ac_exeext'
9997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998   (eval $ac_try) 2>&5
9999   ac_status=$?
10000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001   (exit $ac_status); }; }; then
10002   pgac_cv_var_PS_STRINGS=yes
10003 else
10004   echo "$as_me: failed program was:" >&5
10005 cat conftest.$ac_ext >&5
10006 pgac_cv_var_PS_STRINGS=no
10007 fi
10008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10009 fi
10010 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
10011 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
10012 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
10013
10014 cat >>confdefs.h <<\_ACEOF
10015 #define HAVE_PS_STRINGS
10016 _ACEOF
10017
10018 fi
10019
10020
10021 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
10022 # is missing.  Yes, there are machines that have only one.  We may
10023 # also decide to use snprintf.c if snprintf() is present but does not
10024 # have working "long long int" support -- see below.
10025
10026 pgac_need_repl_snprintf=no
10027
10028 for ac_func in snprintf
10029 do
10030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10031 echo "$as_me:$LINENO: checking for $ac_func" >&5
10032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10033 if eval "test \"\${$as_ac_var+set}\" = set"; then
10034   echo $ECHO_N "(cached) $ECHO_C" >&6
10035 else
10036   cat >conftest.$ac_ext <<_ACEOF
10037 #line $LINENO "configure"
10038 #include "confdefs.h"
10039 /* System header to define __stub macros and hopefully few prototypes,
10040     which can conflict with char $ac_func (); below.  */
10041 #include <assert.h>
10042 /* Override any gcc2 internal prototype to avoid an error.  */
10043 #ifdef __cplusplus
10044 extern "C"
10045 #endif
10046 /* We use char because int might match the return type of a gcc2
10047    builtin and then its argument prototype would still apply.  */
10048 char $ac_func ();
10049 char (*f) ();
10050
10051 #ifdef F77_DUMMY_MAIN
10052 #  ifdef __cplusplus
10053      extern "C"
10054 #  endif
10055    int F77_DUMMY_MAIN() { return 1; }
10056 #endif
10057 int
10058 main ()
10059 {
10060 /* The GNU C library defines this for functions which it implements
10061     to always fail with ENOSYS.  Some functions are actually named
10062     something starting with __ and the normal name is an alias.  */
10063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10064 choke me
10065 #else
10066 f = $ac_func;
10067 #endif
10068
10069   ;
10070   return 0;
10071 }
10072 _ACEOF
10073 rm -f conftest.$ac_objext conftest$ac_exeext
10074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10075   (eval $ac_link) 2>&5
10076   ac_status=$?
10077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078   (exit $ac_status); } &&
10079          { ac_try='test -s conftest$ac_exeext'
10080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081   (eval $ac_try) 2>&5
10082   ac_status=$?
10083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084   (exit $ac_status); }; }; then
10085   eval "$as_ac_var=yes"
10086 else
10087   echo "$as_me: failed program was:" >&5
10088 cat conftest.$ac_ext >&5
10089 eval "$as_ac_var=no"
10090 fi
10091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10092 fi
10093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10095 if test `eval echo '${'$as_ac_var'}'` = yes; then
10096   cat >>confdefs.h <<_ACEOF
10097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10098 _ACEOF
10099
10100 else
10101   pgac_need_repl_snprintf=yes
10102 fi
10103 done
10104
10105
10106 for ac_func in vsnprintf
10107 do
10108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10109 echo "$as_me:$LINENO: checking for $ac_func" >&5
10110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10111 if eval "test \"\${$as_ac_var+set}\" = set"; then
10112   echo $ECHO_N "(cached) $ECHO_C" >&6
10113 else
10114   cat >conftest.$ac_ext <<_ACEOF
10115 #line $LINENO "configure"
10116 #include "confdefs.h"
10117 /* System header to define __stub macros and hopefully few prototypes,
10118     which can conflict with char $ac_func (); below.  */
10119 #include <assert.h>
10120 /* Override any gcc2 internal prototype to avoid an error.  */
10121 #ifdef __cplusplus
10122 extern "C"
10123 #endif
10124 /* We use char because int might match the return type of a gcc2
10125    builtin and then its argument prototype would still apply.  */
10126 char $ac_func ();
10127 char (*f) ();
10128
10129 #ifdef F77_DUMMY_MAIN
10130 #  ifdef __cplusplus
10131      extern "C"
10132 #  endif
10133    int F77_DUMMY_MAIN() { return 1; }
10134 #endif
10135 int
10136 main ()
10137 {
10138 /* The GNU C library defines this for functions which it implements
10139     to always fail with ENOSYS.  Some functions are actually named
10140     something starting with __ and the normal name is an alias.  */
10141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10142 choke me
10143 #else
10144 f = $ac_func;
10145 #endif
10146
10147   ;
10148   return 0;
10149 }
10150 _ACEOF
10151 rm -f conftest.$ac_objext conftest$ac_exeext
10152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10153   (eval $ac_link) 2>&5
10154   ac_status=$?
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); } &&
10157          { ac_try='test -s conftest$ac_exeext'
10158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159   (eval $ac_try) 2>&5
10160   ac_status=$?
10161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162   (exit $ac_status); }; }; then
10163   eval "$as_ac_var=yes"
10164 else
10165   echo "$as_me: failed program was:" >&5
10166 cat conftest.$ac_ext >&5
10167 eval "$as_ac_var=no"
10168 fi
10169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10170 fi
10171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10173 if test `eval echo '${'$as_ac_var'}'` = yes; then
10174   cat >>confdefs.h <<_ACEOF
10175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10176 _ACEOF
10177
10178 else
10179   pgac_need_repl_snprintf=yes
10180 fi
10181 done
10182
10183
10184
10185 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10186 # include/c.h will provide declarations.  Note this is a separate test
10187 # from whether the functions exist in the C library --- there are
10188 # systems that have the functions but don't bother to declare them :-(
10189
10190 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10191 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10192 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10193   echo $ECHO_N "(cached) $ECHO_C" >&6
10194 else
10195   cat >conftest.$ac_ext <<_ACEOF
10196 #line $LINENO "configure"
10197 #include "confdefs.h"
10198 $ac_includes_default
10199 #ifdef F77_DUMMY_MAIN
10200 #  ifdef __cplusplus
10201      extern "C"
10202 #  endif
10203    int F77_DUMMY_MAIN() { return 1; }
10204 #endif
10205 int
10206 main ()
10207 {
10208 #ifndef snprintf
10209   char *p = (char *) snprintf;
10210 #endif
10211
10212   ;
10213   return 0;
10214 }
10215 _ACEOF
10216 rm -f conftest.$ac_objext
10217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10218   (eval $ac_compile) 2>&5
10219   ac_status=$?
10220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221   (exit $ac_status); } &&
10222          { ac_try='test -s conftest.$ac_objext'
10223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224   (eval $ac_try) 2>&5
10225   ac_status=$?
10226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227   (exit $ac_status); }; }; then
10228   ac_cv_have_decl_snprintf=yes
10229 else
10230   echo "$as_me: failed program was:" >&5
10231 cat conftest.$ac_ext >&5
10232 ac_cv_have_decl_snprintf=no
10233 fi
10234 rm -f conftest.$ac_objext conftest.$ac_ext
10235 fi
10236 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10237 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10238 if test $ac_cv_have_decl_snprintf = yes; then
10239
10240 cat >>confdefs.h <<_ACEOF
10241 #define HAVE_DECL_SNPRINTF 1
10242 _ACEOF
10243
10244
10245 else
10246   cat >>confdefs.h <<_ACEOF
10247 #define HAVE_DECL_SNPRINTF 0
10248 _ACEOF
10249
10250
10251 fi
10252 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10253 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10254 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10255   echo $ECHO_N "(cached) $ECHO_C" >&6
10256 else
10257   cat >conftest.$ac_ext <<_ACEOF
10258 #line $LINENO "configure"
10259 #include "confdefs.h"
10260 $ac_includes_default
10261 #ifdef F77_DUMMY_MAIN
10262 #  ifdef __cplusplus
10263      extern "C"
10264 #  endif
10265    int F77_DUMMY_MAIN() { return 1; }
10266 #endif
10267 int
10268 main ()
10269 {
10270 #ifndef vsnprintf
10271   char *p = (char *) vsnprintf;
10272 #endif
10273
10274   ;
10275   return 0;
10276 }
10277 _ACEOF
10278 rm -f conftest.$ac_objext
10279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10280   (eval $ac_compile) 2>&5
10281   ac_status=$?
10282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283   (exit $ac_status); } &&
10284          { ac_try='test -s conftest.$ac_objext'
10285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286   (eval $ac_try) 2>&5
10287   ac_status=$?
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); }; }; then
10290   ac_cv_have_decl_vsnprintf=yes
10291 else
10292   echo "$as_me: failed program was:" >&5
10293 cat conftest.$ac_ext >&5
10294 ac_cv_have_decl_vsnprintf=no
10295 fi
10296 rm -f conftest.$ac_objext conftest.$ac_ext
10297 fi
10298 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10299 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10300 if test $ac_cv_have_decl_vsnprintf = yes; then
10301
10302 cat >>confdefs.h <<_ACEOF
10303 #define HAVE_DECL_VSNPRINTF 1
10304 _ACEOF
10305
10306
10307 else
10308   cat >>confdefs.h <<_ACEOF
10309 #define HAVE_DECL_VSNPRINTF 0
10310 _ACEOF
10311
10312
10313 fi
10314
10315
10316
10317
10318 # do this one the hard way in case isinf() is a macro
10319 echo "$as_me:$LINENO: checking for isinf" >&5
10320 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10321 if test "${ac_cv_func_isinf+set}" = set; then
10322   echo $ECHO_N "(cached) $ECHO_C" >&6
10323 else
10324   cat >conftest.$ac_ext <<_ACEOF
10325 #line $LINENO "configure"
10326 #include "confdefs.h"
10327 #include <math.h>
10328
10329 #ifdef F77_DUMMY_MAIN
10330 #  ifdef __cplusplus
10331      extern "C"
10332 #  endif
10333    int F77_DUMMY_MAIN() { return 1; }
10334 #endif
10335 int
10336 main ()
10337 {
10338 double x = 0.0; int res = isinf(x);
10339   ;
10340   return 0;
10341 }
10342 _ACEOF
10343 rm -f conftest.$ac_objext conftest$ac_exeext
10344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10345   (eval $ac_link) 2>&5
10346   ac_status=$?
10347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348   (exit $ac_status); } &&
10349          { ac_try='test -s conftest$ac_exeext'
10350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351   (eval $ac_try) 2>&5
10352   ac_status=$?
10353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354   (exit $ac_status); }; }; then
10355   ac_cv_func_isinf=yes
10356 else
10357   echo "$as_me: failed program was:" >&5
10358 cat conftest.$ac_ext >&5
10359 ac_cv_func_isinf=no
10360 fi
10361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10362 fi
10363 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10364 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10365
10366 if test $ac_cv_func_isinf = yes ; then
10367
10368 cat >>confdefs.h <<\_ACEOF
10369 #define HAVE_ISINF 1
10370 _ACEOF
10371
10372 else
10373   LIBOBJS="$LIBOBJS isinf.$ac_objext"
10374   # Look for a way to implement a substitute for isinf()
10375
10376
10377
10378
10379 for ac_func in fpclass fp_class fp_class_d class
10380 do
10381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10382 echo "$as_me:$LINENO: checking for $ac_func" >&5
10383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10384 if eval "test \"\${$as_ac_var+set}\" = set"; then
10385   echo $ECHO_N "(cached) $ECHO_C" >&6
10386 else
10387   cat >conftest.$ac_ext <<_ACEOF
10388 #line $LINENO "configure"
10389 #include "confdefs.h"
10390 /* System header to define __stub macros and hopefully few prototypes,
10391     which can conflict with char $ac_func (); below.  */
10392 #include <assert.h>
10393 /* Override any gcc2 internal prototype to avoid an error.  */
10394 #ifdef __cplusplus
10395 extern "C"
10396 #endif
10397 /* We use char because int might match the return type of a gcc2
10398    builtin and then its argument prototype would still apply.  */
10399 char $ac_func ();
10400 char (*f) ();
10401
10402 #ifdef F77_DUMMY_MAIN
10403 #  ifdef __cplusplus
10404      extern "C"
10405 #  endif
10406    int F77_DUMMY_MAIN() { return 1; }
10407 #endif
10408 int
10409 main ()
10410 {
10411 /* The GNU C library defines this for functions which it implements
10412     to always fail with ENOSYS.  Some functions are actually named
10413     something starting with __ and the normal name is an alias.  */
10414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10415 choke me
10416 #else
10417 f = $ac_func;
10418 #endif
10419
10420   ;
10421   return 0;
10422 }
10423 _ACEOF
10424 rm -f conftest.$ac_objext conftest$ac_exeext
10425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10426   (eval $ac_link) 2>&5
10427   ac_status=$?
10428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429   (exit $ac_status); } &&
10430          { ac_try='test -s conftest$ac_exeext'
10431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10432   (eval $ac_try) 2>&5
10433   ac_status=$?
10434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435   (exit $ac_status); }; }; then
10436   eval "$as_ac_var=yes"
10437 else
10438   echo "$as_me: failed program was:" >&5
10439 cat conftest.$ac_ext >&5
10440 eval "$as_ac_var=no"
10441 fi
10442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10443 fi
10444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10445 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10446 if test `eval echo '${'$as_ac_var'}'` = yes; then
10447   cat >>confdefs.h <<_ACEOF
10448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10449 _ACEOF
10450  break
10451 fi
10452 done
10453
10454 fi
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467 for ac_func in fseeko gethostname getrusage inet_aton random srandom strcasecmp strdup strerror strtol strtoul
10468 do
10469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10470 echo "$as_me:$LINENO: checking for $ac_func" >&5
10471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10472 if eval "test \"\${$as_ac_var+set}\" = set"; then
10473   echo $ECHO_N "(cached) $ECHO_C" >&6
10474 else
10475   cat >conftest.$ac_ext <<_ACEOF
10476 #line $LINENO "configure"
10477 #include "confdefs.h"
10478 /* System header to define __stub macros and hopefully few prototypes,
10479     which can conflict with char $ac_func (); below.  */
10480 #include <assert.h>
10481 /* Override any gcc2 internal prototype to avoid an error.  */
10482 #ifdef __cplusplus
10483 extern "C"
10484 #endif
10485 /* We use char because int might match the return type of a gcc2
10486    builtin and then its argument prototype would still apply.  */
10487 char $ac_func ();
10488 char (*f) ();
10489
10490 #ifdef F77_DUMMY_MAIN
10491 #  ifdef __cplusplus
10492      extern "C"
10493 #  endif
10494    int F77_DUMMY_MAIN() { return 1; }
10495 #endif
10496 int
10497 main ()
10498 {
10499 /* The GNU C library defines this for functions which it implements
10500     to always fail with ENOSYS.  Some functions are actually named
10501     something starting with __ and the normal name is an alias.  */
10502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10503 choke me
10504 #else
10505 f = $ac_func;
10506 #endif
10507
10508   ;
10509   return 0;
10510 }
10511 _ACEOF
10512 rm -f conftest.$ac_objext conftest$ac_exeext
10513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10514   (eval $ac_link) 2>&5
10515   ac_status=$?
10516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517   (exit $ac_status); } &&
10518          { ac_try='test -s conftest$ac_exeext'
10519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10520   (eval $ac_try) 2>&5
10521   ac_status=$?
10522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523   (exit $ac_status); }; }; then
10524   eval "$as_ac_var=yes"
10525 else
10526   echo "$as_me: failed program was:" >&5
10527 cat conftest.$ac_ext >&5
10528 eval "$as_ac_var=no"
10529 fi
10530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10531 fi
10532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10533 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10534 if test `eval echo '${'$as_ac_var'}'` = yes; then
10535   cat >>confdefs.h <<_ACEOF
10536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10537 _ACEOF
10538
10539 else
10540   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
10541 fi
10542 done
10543
10544
10545
10546 # BSD/OS has a custom fseeko/ftello built on fsetpos/fgetpos
10547 # We override the previous test that said fseeko/ftello didn't exist
10548 case $host_os in bsdi*)
10549 ac_cv_func_fseeko=yes
10550 esac
10551
10552 # Solaris has a very slow qsort in certain cases.
10553 case $host_os in
10554   solaris*) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
10555 esac
10556
10557 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
10558 # this hackery with HPUXMATHLIB allows us to cope.
10559 HPUXMATHLIB=""
10560 case $host_cpu in
10561   hppa1.1)
10562         if test -r /lib/pa1.1/libm.a ; then
10563             HPUXMATHLIB="-L /lib/pa1.1 -lm"
10564         fi ;;
10565 esac
10566
10567
10568
10569 for ac_func in rint
10570 do
10571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10572 echo "$as_me:$LINENO: checking for $ac_func" >&5
10573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10574 if eval "test \"\${$as_ac_var+set}\" = set"; then
10575   echo $ECHO_N "(cached) $ECHO_C" >&6
10576 else
10577   cat >conftest.$ac_ext <<_ACEOF
10578 #line $LINENO "configure"
10579 #include "confdefs.h"
10580 /* System header to define __stub macros and hopefully few prototypes,
10581     which can conflict with char $ac_func (); below.  */
10582 #include <assert.h>
10583 /* Override any gcc2 internal prototype to avoid an error.  */
10584 #ifdef __cplusplus
10585 extern "C"
10586 #endif
10587 /* We use char because int might match the return type of a gcc2
10588    builtin and then its argument prototype would still apply.  */
10589 char $ac_func ();
10590 char (*f) ();
10591
10592 #ifdef F77_DUMMY_MAIN
10593 #  ifdef __cplusplus
10594      extern "C"
10595 #  endif
10596    int F77_DUMMY_MAIN() { return 1; }
10597 #endif
10598 int
10599 main ()
10600 {
10601 /* The GNU C library defines this for functions which it implements
10602     to always fail with ENOSYS.  Some functions are actually named
10603     something starting with __ and the normal name is an alias.  */
10604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10605 choke me
10606 #else
10607 f = $ac_func;
10608 #endif
10609
10610   ;
10611   return 0;
10612 }
10613 _ACEOF
10614 rm -f conftest.$ac_objext conftest$ac_exeext
10615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10616   (eval $ac_link) 2>&5
10617   ac_status=$?
10618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619   (exit $ac_status); } &&
10620          { ac_try='test -s conftest$ac_exeext'
10621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10622   (eval $ac_try) 2>&5
10623   ac_status=$?
10624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625   (exit $ac_status); }; }; then
10626   eval "$as_ac_var=yes"
10627 else
10628   echo "$as_me: failed program was:" >&5
10629 cat conftest.$ac_ext >&5
10630 eval "$as_ac_var=no"
10631 fi
10632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10633 fi
10634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10635 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10636 if test `eval echo '${'$as_ac_var'}'` = yes; then
10637   cat >>confdefs.h <<_ACEOF
10638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10639 _ACEOF
10640
10641 else
10642   echo "$as_me:$LINENO: checking for rint in -lm" >&5
10643 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
10644 if test "${ac_cv_lib_m_rint+set}" = set; then
10645   echo $ECHO_N "(cached) $ECHO_C" >&6
10646 else
10647   ac_check_lib_save_LIBS=$LIBS
10648 LIBS="-lm $HPUXMATHLIB $LIBS"
10649 cat >conftest.$ac_ext <<_ACEOF
10650 #line $LINENO "configure"
10651 #include "confdefs.h"
10652
10653 /* Override any gcc2 internal prototype to avoid an error.  */
10654 #ifdef __cplusplus
10655 extern "C"
10656 #endif
10657 /* We use char because int might match the return type of a gcc2
10658    builtin and then its argument prototype would still apply.  */
10659 char rint ();
10660 #ifdef F77_DUMMY_MAIN
10661 #  ifdef __cplusplus
10662      extern "C"
10663 #  endif
10664    int F77_DUMMY_MAIN() { return 1; }
10665 #endif
10666 int
10667 main ()
10668 {
10669 rint ();
10670   ;
10671   return 0;
10672 }
10673 _ACEOF
10674 rm -f conftest.$ac_objext conftest$ac_exeext
10675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10676   (eval $ac_link) 2>&5
10677   ac_status=$?
10678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679   (exit $ac_status); } &&
10680          { ac_try='test -s conftest$ac_exeext'
10681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682   (eval $ac_try) 2>&5
10683   ac_status=$?
10684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685   (exit $ac_status); }; }; then
10686   ac_cv_lib_m_rint=yes
10687 else
10688   echo "$as_me: failed program was:" >&5
10689 cat conftest.$ac_ext >&5
10690 ac_cv_lib_m_rint=no
10691 fi
10692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10693 LIBS=$ac_check_lib_save_LIBS
10694 fi
10695 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
10696 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
10697 if test $ac_cv_lib_m_rint = yes; then
10698   cat >>confdefs.h <<\_ACEOF
10699 #define HAVE_RINT 1
10700 _ACEOF
10701
10702 fi
10703
10704 fi
10705 done
10706
10707
10708
10709 if test "$with_readline" = yes; then
10710   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
10711 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
10712 cat >conftest.$ac_ext <<_ACEOF
10713 #line $LINENO "configure"
10714 #include "confdefs.h"
10715 #include <stdio.h>
10716 #ifdef HAVE_READLINE_READLINE_H
10717 # include <readline/readline.h>
10718 #elif defined(HAVE_READLINE_H)
10719 # include <readline.h>
10720 #endif
10721
10722 #ifdef F77_DUMMY_MAIN
10723 #  ifdef __cplusplus
10724      extern "C"
10725 #  endif
10726    int F77_DUMMY_MAIN() { return 1; }
10727 #endif
10728 int
10729 main ()
10730 {
10731 rl_completion_append_character = 'x';
10732   ;
10733   return 0;
10734 }
10735 _ACEOF
10736 rm -f conftest.$ac_objext conftest$ac_exeext
10737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10738   (eval $ac_link) 2>&5
10739   ac_status=$?
10740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741   (exit $ac_status); } &&
10742          { ac_try='test -s conftest$ac_exeext'
10743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744   (eval $ac_try) 2>&5
10745   ac_status=$?
10746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747   (exit $ac_status); }; }; then
10748   echo "$as_me:$LINENO: result: yes" >&5
10749 echo "${ECHO_T}yes" >&6
10750
10751 cat >>confdefs.h <<\_ACEOF
10752 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
10753 _ACEOF
10754
10755 else
10756   echo "$as_me: failed program was:" >&5
10757 cat conftest.$ac_ext >&5
10758 echo "$as_me:$LINENO: result: no" >&5
10759 echo "${ECHO_T}no" >&6
10760 fi
10761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10762
10763
10764 for ac_func in rl_completion_matches rl_filename_completion_function
10765 do
10766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10767 echo "$as_me:$LINENO: checking for $ac_func" >&5
10768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10769 if eval "test \"\${$as_ac_var+set}\" = set"; then
10770   echo $ECHO_N "(cached) $ECHO_C" >&6
10771 else
10772   cat >conftest.$ac_ext <<_ACEOF
10773 #line $LINENO "configure"
10774 #include "confdefs.h"
10775 /* System header to define __stub macros and hopefully few prototypes,
10776     which can conflict with char $ac_func (); below.  */
10777 #include <assert.h>
10778 /* Override any gcc2 internal prototype to avoid an error.  */
10779 #ifdef __cplusplus
10780 extern "C"
10781 #endif
10782 /* We use char because int might match the return type of a gcc2
10783    builtin and then its argument prototype would still apply.  */
10784 char $ac_func ();
10785 char (*f) ();
10786
10787 #ifdef F77_DUMMY_MAIN
10788 #  ifdef __cplusplus
10789      extern "C"
10790 #  endif
10791    int F77_DUMMY_MAIN() { return 1; }
10792 #endif
10793 int
10794 main ()
10795 {
10796 /* The GNU C library defines this for functions which it implements
10797     to always fail with ENOSYS.  Some functions are actually named
10798     something starting with __ and the normal name is an alias.  */
10799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10800 choke me
10801 #else
10802 f = $ac_func;
10803 #endif
10804
10805   ;
10806   return 0;
10807 }
10808 _ACEOF
10809 rm -f conftest.$ac_objext conftest$ac_exeext
10810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10811   (eval $ac_link) 2>&5
10812   ac_status=$?
10813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814   (exit $ac_status); } &&
10815          { ac_try='test -s conftest$ac_exeext'
10816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817   (eval $ac_try) 2>&5
10818   ac_status=$?
10819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820   (exit $ac_status); }; }; then
10821   eval "$as_ac_var=yes"
10822 else
10823   echo "$as_me: failed program was:" >&5
10824 cat conftest.$ac_ext >&5
10825 eval "$as_ac_var=no"
10826 fi
10827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10828 fi
10829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10831 if test `eval echo '${'$as_ac_var'}'` = yes; then
10832   cat >>confdefs.h <<_ACEOF
10833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10834 _ACEOF
10835
10836 fi
10837 done
10838
10839 fi
10840
10841
10842 echo "$as_me:$LINENO: checking for finite" >&5
10843 echo $ECHO_N "checking for finite... $ECHO_C" >&6
10844 cat >conftest.$ac_ext <<_ACEOF
10845 #line $LINENO "configure"
10846 #include "confdefs.h"
10847 #include <math.h>
10848 #ifdef F77_DUMMY_MAIN
10849 #  ifdef __cplusplus
10850      extern "C"
10851 #  endif
10852    int F77_DUMMY_MAIN() { return 1; }
10853 #endif
10854 int
10855 main ()
10856 {
10857 int dummy=finite(1.0);
10858   ;
10859   return 0;
10860 }
10861 _ACEOF
10862 rm -f conftest.$ac_objext conftest$ac_exeext
10863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10864   (eval $ac_link) 2>&5
10865   ac_status=$?
10866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867   (exit $ac_status); } &&
10868          { ac_try='test -s conftest$ac_exeext'
10869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10870   (eval $ac_try) 2>&5
10871   ac_status=$?
10872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873   (exit $ac_status); }; }; then
10874
10875 cat >>confdefs.h <<\_ACEOF
10876 #define HAVE_FINITE 1
10877 _ACEOF
10878
10879 echo "$as_me:$LINENO: result: yes" >&5
10880 echo "${ECHO_T}yes" >&6
10881 else
10882   echo "$as_me: failed program was:" >&5
10883 cat conftest.$ac_ext >&5
10884 echo "$as_me:$LINENO: result: no" >&5
10885 echo "${ECHO_T}no" >&6
10886 fi
10887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10888
10889 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10890 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10891 cat >conftest.$ac_ext <<_ACEOF
10892 #line $LINENO "configure"
10893 #include "confdefs.h"
10894 #include <setjmp.h>
10895 #ifdef F77_DUMMY_MAIN
10896 #  ifdef __cplusplus
10897      extern "C"
10898 #  endif
10899    int F77_DUMMY_MAIN() { return 1; }
10900 #endif
10901 int
10902 main ()
10903 {
10904 sigjmp_buf x; sigsetjmp(x, 1);
10905   ;
10906   return 0;
10907 }
10908 _ACEOF
10909 rm -f conftest.$ac_objext conftest$ac_exeext
10910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10911   (eval $ac_link) 2>&5
10912   ac_status=$?
10913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914   (exit $ac_status); } &&
10915          { ac_try='test -s conftest$ac_exeext'
10916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10917   (eval $ac_try) 2>&5
10918   ac_status=$?
10919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920   (exit $ac_status); }; }; then
10921
10922 cat >>confdefs.h <<\_ACEOF
10923 #define HAVE_SIGSETJMP 1
10924 _ACEOF
10925
10926 echo "$as_me:$LINENO: result: yes" >&5
10927 echo "${ECHO_T}yes" >&6
10928 else
10929   echo "$as_me: failed program was:" >&5
10930 cat conftest.$ac_ext >&5
10931 echo "$as_me:$LINENO: result: no" >&5
10932 echo "${ECHO_T}no" >&6
10933 fi
10934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10935
10936 echo "$as_me:$LINENO: checking for syslog" >&5
10937 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
10938 if test "${ac_cv_func_syslog+set}" = set; then
10939   echo $ECHO_N "(cached) $ECHO_C" >&6
10940 else
10941   cat >conftest.$ac_ext <<_ACEOF
10942 #line $LINENO "configure"
10943 #include "confdefs.h"
10944 /* System header to define __stub macros and hopefully few prototypes,
10945     which can conflict with char syslog (); below.  */
10946 #include <assert.h>
10947 /* Override any gcc2 internal prototype to avoid an error.  */
10948 #ifdef __cplusplus
10949 extern "C"
10950 #endif
10951 /* We use char because int might match the return type of a gcc2
10952    builtin and then its argument prototype would still apply.  */
10953 char syslog ();
10954 char (*f) ();
10955
10956 #ifdef F77_DUMMY_MAIN
10957 #  ifdef __cplusplus
10958      extern "C"
10959 #  endif
10960    int F77_DUMMY_MAIN() { return 1; }
10961 #endif
10962 int
10963 main ()
10964 {
10965 /* The GNU C library defines this for functions which it implements
10966     to always fail with ENOSYS.  Some functions are actually named
10967     something starting with __ and the normal name is an alias.  */
10968 #if defined (__stub_syslog) || defined (__stub___syslog)
10969 choke me
10970 #else
10971 f = syslog;
10972 #endif
10973
10974   ;
10975   return 0;
10976 }
10977 _ACEOF
10978 rm -f conftest.$ac_objext conftest$ac_exeext
10979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10980   (eval $ac_link) 2>&5
10981   ac_status=$?
10982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983   (exit $ac_status); } &&
10984          { ac_try='test -s conftest$ac_exeext'
10985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10986   (eval $ac_try) 2>&5
10987   ac_status=$?
10988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989   (exit $ac_status); }; }; then
10990   ac_cv_func_syslog=yes
10991 else
10992   echo "$as_me: failed program was:" >&5
10993 cat conftest.$ac_ext >&5
10994 ac_cv_func_syslog=no
10995 fi
10996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10997 fi
10998 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
10999 echo "${ECHO_T}$ac_cv_func_syslog" >&6
11000 if test $ac_cv_func_syslog = yes; then
11001   if test "${ac_cv_header_syslog_h+set}" = set; then
11002   echo "$as_me:$LINENO: checking for syslog.h" >&5
11003 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11004 if test "${ac_cv_header_syslog_h+set}" = set; then
11005   echo $ECHO_N "(cached) $ECHO_C" >&6
11006 fi
11007 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11008 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11009 else
11010   # Is the header compilable?
11011 echo "$as_me:$LINENO: checking syslog.h usability" >&5
11012 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
11013 cat >conftest.$ac_ext <<_ACEOF
11014 #line $LINENO "configure"
11015 #include "confdefs.h"
11016 $ac_includes_default
11017 #include <syslog.h>
11018 _ACEOF
11019 rm -f conftest.$ac_objext
11020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11021   (eval $ac_compile) 2>&5
11022   ac_status=$?
11023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024   (exit $ac_status); } &&
11025          { ac_try='test -s conftest.$ac_objext'
11026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027   (eval $ac_try) 2>&5
11028   ac_status=$?
11029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030   (exit $ac_status); }; }; then
11031   ac_header_compiler=yes
11032 else
11033   echo "$as_me: failed program was:" >&5
11034 cat conftest.$ac_ext >&5
11035 ac_header_compiler=no
11036 fi
11037 rm -f conftest.$ac_objext conftest.$ac_ext
11038 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11039 echo "${ECHO_T}$ac_header_compiler" >&6
11040
11041 # Is the header present?
11042 echo "$as_me:$LINENO: checking syslog.h presence" >&5
11043 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
11044 cat >conftest.$ac_ext <<_ACEOF
11045 #line $LINENO "configure"
11046 #include "confdefs.h"
11047 #include <syslog.h>
11048 _ACEOF
11049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11050   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11051   ac_status=$?
11052   egrep -v '^ *\+' conftest.er1 >conftest.err
11053   rm -f conftest.er1
11054   cat conftest.err >&5
11055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056   (exit $ac_status); } >/dev/null; then
11057   if test -s conftest.err; then
11058     ac_cpp_err=$ac_c_preproc_warn_flag
11059   else
11060     ac_cpp_err=
11061   fi
11062 else
11063   ac_cpp_err=yes
11064 fi
11065 if test -z "$ac_cpp_err"; then
11066   ac_header_preproc=yes
11067 else
11068   echo "$as_me: failed program was:" >&5
11069   cat conftest.$ac_ext >&5
11070   ac_header_preproc=no
11071 fi
11072 rm -f conftest.err conftest.$ac_ext
11073 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11074 echo "${ECHO_T}$ac_header_preproc" >&6
11075
11076 # So?  What about this header?
11077 case $ac_header_compiler:$ac_header_preproc in
11078   yes:no )
11079     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
11080 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11081     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11082 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11083   no:yes )
11084     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
11085 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
11086     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
11087 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
11088     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11089 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11090 esac
11091 echo "$as_me:$LINENO: checking for syslog.h" >&5
11092 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11093 if test "${ac_cv_header_syslog_h+set}" = set; then
11094   echo $ECHO_N "(cached) $ECHO_C" >&6
11095 else
11096   ac_cv_header_syslog_h=$ac_header_preproc
11097 fi
11098 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11099 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11100
11101 fi
11102 if test $ac_cv_header_syslog_h = yes; then
11103   cat >>confdefs.h <<\_ACEOF
11104 #define HAVE_SYSLOG 1
11105 _ACEOF
11106
11107 fi
11108
11109
11110 fi
11111
11112
11113 echo "$as_me:$LINENO: checking for optreset" >&5
11114 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
11115 if test "${pgac_cv_var_int_optreset+set}" = set; then
11116   echo $ECHO_N "(cached) $ECHO_C" >&6
11117 else
11118   cat >conftest.$ac_ext <<_ACEOF
11119 #line $LINENO "configure"
11120 #include "confdefs.h"
11121 #include <unistd.h>
11122 #ifdef F77_DUMMY_MAIN
11123 #  ifdef __cplusplus
11124      extern "C"
11125 #  endif
11126    int F77_DUMMY_MAIN() { return 1; }
11127 #endif
11128 int
11129 main ()
11130 {
11131 extern int optreset; optreset = 1;
11132   ;
11133   return 0;
11134 }
11135 _ACEOF
11136 rm -f conftest.$ac_objext conftest$ac_exeext
11137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11138   (eval $ac_link) 2>&5
11139   ac_status=$?
11140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141   (exit $ac_status); } &&
11142          { ac_try='test -s conftest$ac_exeext'
11143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11144   (eval $ac_try) 2>&5
11145   ac_status=$?
11146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147   (exit $ac_status); }; }; then
11148   pgac_cv_var_int_optreset=yes
11149 else
11150   echo "$as_me: failed program was:" >&5
11151 cat conftest.$ac_ext >&5
11152 pgac_cv_var_int_optreset=no
11153 fi
11154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11155 fi
11156 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
11157 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
11158 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
11159
11160 cat >>confdefs.h <<\_ACEOF
11161 #define HAVE_INT_OPTRESET 1
11162 _ACEOF
11163
11164 fi
11165
11166
11167
11168 for ac_func in strtoll strtoq
11169 do
11170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11171 echo "$as_me:$LINENO: checking for $ac_func" >&5
11172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11173 if eval "test \"\${$as_ac_var+set}\" = set"; then
11174   echo $ECHO_N "(cached) $ECHO_C" >&6
11175 else
11176   cat >conftest.$ac_ext <<_ACEOF
11177 #line $LINENO "configure"
11178 #include "confdefs.h"
11179 /* System header to define __stub macros and hopefully few prototypes,
11180     which can conflict with char $ac_func (); below.  */
11181 #include <assert.h>
11182 /* Override any gcc2 internal prototype to avoid an error.  */
11183 #ifdef __cplusplus
11184 extern "C"
11185 #endif
11186 /* We use char because int might match the return type of a gcc2
11187    builtin and then its argument prototype would still apply.  */
11188 char $ac_func ();
11189 char (*f) ();
11190
11191 #ifdef F77_DUMMY_MAIN
11192 #  ifdef __cplusplus
11193      extern "C"
11194 #  endif
11195    int F77_DUMMY_MAIN() { return 1; }
11196 #endif
11197 int
11198 main ()
11199 {
11200 /* The GNU C library defines this for functions which it implements
11201     to always fail with ENOSYS.  Some functions are actually named
11202     something starting with __ and the normal name is an alias.  */
11203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11204 choke me
11205 #else
11206 f = $ac_func;
11207 #endif
11208
11209   ;
11210   return 0;
11211 }
11212 _ACEOF
11213 rm -f conftest.$ac_objext conftest$ac_exeext
11214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11215   (eval $ac_link) 2>&5
11216   ac_status=$?
11217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218   (exit $ac_status); } &&
11219          { ac_try='test -s conftest$ac_exeext'
11220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11221   (eval $ac_try) 2>&5
11222   ac_status=$?
11223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224   (exit $ac_status); }; }; then
11225   eval "$as_ac_var=yes"
11226 else
11227   echo "$as_me: failed program was:" >&5
11228 cat conftest.$ac_ext >&5
11229 eval "$as_ac_var=no"
11230 fi
11231 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11232 fi
11233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11234 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11235 if test `eval echo '${'$as_ac_var'}'` = yes; then
11236   cat >>confdefs.h <<_ACEOF
11237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11238 _ACEOF
11239  break
11240 fi
11241 done
11242
11243
11244
11245 for ac_func in strtoull strtouq
11246 do
11247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11248 echo "$as_me:$LINENO: checking for $ac_func" >&5
11249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11250 if eval "test \"\${$as_ac_var+set}\" = set"; then
11251   echo $ECHO_N "(cached) $ECHO_C" >&6
11252 else
11253   cat >conftest.$ac_ext <<_ACEOF
11254 #line $LINENO "configure"
11255 #include "confdefs.h"
11256 /* System header to define __stub macros and hopefully few prototypes,
11257     which can conflict with char $ac_func (); below.  */
11258 #include <assert.h>
11259 /* Override any gcc2 internal prototype to avoid an error.  */
11260 #ifdef __cplusplus
11261 extern "C"
11262 #endif
11263 /* We use char because int might match the return type of a gcc2
11264    builtin and then its argument prototype would still apply.  */
11265 char $ac_func ();
11266 char (*f) ();
11267
11268 #ifdef F77_DUMMY_MAIN
11269 #  ifdef __cplusplus
11270      extern "C"
11271 #  endif
11272    int F77_DUMMY_MAIN() { return 1; }
11273 #endif
11274 int
11275 main ()
11276 {
11277 /* The GNU C library defines this for functions which it implements
11278     to always fail with ENOSYS.  Some functions are actually named
11279     something starting with __ and the normal name is an alias.  */
11280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11281 choke me
11282 #else
11283 f = $ac_func;
11284 #endif
11285
11286   ;
11287   return 0;
11288 }
11289 _ACEOF
11290 rm -f conftest.$ac_objext conftest$ac_exeext
11291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11292   (eval $ac_link) 2>&5
11293   ac_status=$?
11294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295   (exit $ac_status); } &&
11296          { ac_try='test -s conftest$ac_exeext'
11297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11298   (eval $ac_try) 2>&5
11299   ac_status=$?
11300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301   (exit $ac_status); }; }; then
11302   eval "$as_ac_var=yes"
11303 else
11304   echo "$as_me: failed program was:" >&5
11305 cat conftest.$ac_ext >&5
11306 eval "$as_ac_var=no"
11307 fi
11308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11309 fi
11310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11311 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11312 if test `eval echo '${'$as_ac_var'}'` = yes; then
11313   cat >>confdefs.h <<_ACEOF
11314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11315 _ACEOF
11316  break
11317 fi
11318 done
11319
11320
11321 # Check for one of atexit() or on_exit()
11322
11323 for ac_func in atexit
11324 do
11325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11326 echo "$as_me:$LINENO: checking for $ac_func" >&5
11327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11328 if eval "test \"\${$as_ac_var+set}\" = set"; then
11329   echo $ECHO_N "(cached) $ECHO_C" >&6
11330 else
11331   cat >conftest.$ac_ext <<_ACEOF
11332 #line $LINENO "configure"
11333 #include "confdefs.h"
11334 /* System header to define __stub macros and hopefully few prototypes,
11335     which can conflict with char $ac_func (); below.  */
11336 #include <assert.h>
11337 /* Override any gcc2 internal prototype to avoid an error.  */
11338 #ifdef __cplusplus
11339 extern "C"
11340 #endif
11341 /* We use char because int might match the return type of a gcc2
11342    builtin and then its argument prototype would still apply.  */
11343 char $ac_func ();
11344 char (*f) ();
11345
11346 #ifdef F77_DUMMY_MAIN
11347 #  ifdef __cplusplus
11348      extern "C"
11349 #  endif
11350    int F77_DUMMY_MAIN() { return 1; }
11351 #endif
11352 int
11353 main ()
11354 {
11355 /* The GNU C library defines this for functions which it implements
11356     to always fail with ENOSYS.  Some functions are actually named
11357     something starting with __ and the normal name is an alias.  */
11358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11359 choke me
11360 #else
11361 f = $ac_func;
11362 #endif
11363
11364   ;
11365   return 0;
11366 }
11367 _ACEOF
11368 rm -f conftest.$ac_objext conftest$ac_exeext
11369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11370   (eval $ac_link) 2>&5
11371   ac_status=$?
11372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373   (exit $ac_status); } &&
11374          { ac_try='test -s conftest$ac_exeext'
11375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376   (eval $ac_try) 2>&5
11377   ac_status=$?
11378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379   (exit $ac_status); }; }; then
11380   eval "$as_ac_var=yes"
11381 else
11382   echo "$as_me: failed program was:" >&5
11383 cat conftest.$ac_ext >&5
11384 eval "$as_ac_var=no"
11385 fi
11386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11387 fi
11388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11389 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11390 if test `eval echo '${'$as_ac_var'}'` = yes; then
11391   cat >>confdefs.h <<_ACEOF
11392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11393 _ACEOF
11394
11395 else
11396
11397 for ac_func in on_exit
11398 do
11399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11400 echo "$as_me:$LINENO: checking for $ac_func" >&5
11401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11402 if eval "test \"\${$as_ac_var+set}\" = set"; then
11403   echo $ECHO_N "(cached) $ECHO_C" >&6
11404 else
11405   cat >conftest.$ac_ext <<_ACEOF
11406 #line $LINENO "configure"
11407 #include "confdefs.h"
11408 /* System header to define __stub macros and hopefully few prototypes,
11409     which can conflict with char $ac_func (); below.  */
11410 #include <assert.h>
11411 /* Override any gcc2 internal prototype to avoid an error.  */
11412 #ifdef __cplusplus
11413 extern "C"
11414 #endif
11415 /* We use char because int might match the return type of a gcc2
11416    builtin and then its argument prototype would still apply.  */
11417 char $ac_func ();
11418 char (*f) ();
11419
11420 #ifdef F77_DUMMY_MAIN
11421 #  ifdef __cplusplus
11422      extern "C"
11423 #  endif
11424    int F77_DUMMY_MAIN() { return 1; }
11425 #endif
11426 int
11427 main ()
11428 {
11429 /* The GNU C library defines this for functions which it implements
11430     to always fail with ENOSYS.  Some functions are actually named
11431     something starting with __ and the normal name is an alias.  */
11432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11433 choke me
11434 #else
11435 f = $ac_func;
11436 #endif
11437
11438   ;
11439   return 0;
11440 }
11441 _ACEOF
11442 rm -f conftest.$ac_objext conftest$ac_exeext
11443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11444   (eval $ac_link) 2>&5
11445   ac_status=$?
11446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447   (exit $ac_status); } &&
11448          { ac_try='test -s conftest$ac_exeext'
11449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11450   (eval $ac_try) 2>&5
11451   ac_status=$?
11452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453   (exit $ac_status); }; }; then
11454   eval "$as_ac_var=yes"
11455 else
11456   echo "$as_me: failed program was:" >&5
11457 cat conftest.$ac_ext >&5
11458 eval "$as_ac_var=no"
11459 fi
11460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11461 fi
11462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11463 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11464 if test `eval echo '${'$as_ac_var'}'` = yes; then
11465   cat >>confdefs.h <<_ACEOF
11466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11467 _ACEOF
11468
11469 else
11470   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
11471 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
11472    { (exit 1); exit 1; }; }
11473 fi
11474 done
11475
11476 fi
11477 done
11478
11479
11480 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11481 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
11482 if test "${ac_cv_sys_largefile_source+set}" = set; then
11483   echo $ECHO_N "(cached) $ECHO_C" >&6
11484 else
11485   while :; do
11486   ac_cv_sys_largefile_source=no
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;
11501   ;
11502   return 0;
11503 }
11504 _ACEOF
11505 rm -f conftest.$ac_objext
11506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11507   (eval $ac_compile) 2>&5
11508   ac_status=$?
11509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510   (exit $ac_status); } &&
11511          { ac_try='test -s conftest.$ac_objext'
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   break
11518 else
11519   echo "$as_me: failed program was:" >&5
11520 cat conftest.$ac_ext >&5
11521 fi
11522 rm -f conftest.$ac_objext conftest.$ac_ext
11523   cat >conftest.$ac_ext <<_ACEOF
11524 #line $LINENO "configure"
11525 #include "confdefs.h"
11526 #define _LARGEFILE_SOURCE 1
11527 #include <stdio.h>
11528 #ifdef F77_DUMMY_MAIN
11529 #  ifdef __cplusplus
11530      extern "C"
11531 #  endif
11532    int F77_DUMMY_MAIN() { return 1; }
11533 #endif
11534 int
11535 main ()
11536 {
11537 return !fseeko;
11538   ;
11539   return 0;
11540 }
11541 _ACEOF
11542 rm -f conftest.$ac_objext
11543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11544   (eval $ac_compile) 2>&5
11545   ac_status=$?
11546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547   (exit $ac_status); } &&
11548          { ac_try='test -s conftest.$ac_objext'
11549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11550   (eval $ac_try) 2>&5
11551   ac_status=$?
11552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553   (exit $ac_status); }; }; then
11554   ac_cv_sys_largefile_source=1; break
11555 else
11556   echo "$as_me: failed program was:" >&5
11557 cat conftest.$ac_ext >&5
11558 fi
11559 rm -f conftest.$ac_objext conftest.$ac_ext
11560   break
11561 done
11562 fi
11563 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11564 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
11565 if test "$ac_cv_sys_largefile_source" != no; then
11566
11567 cat >>confdefs.h <<_ACEOF
11568 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11569 _ACEOF
11570
11571 fi
11572 rm -f conftest*
11573
11574 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11575 # in glibc 2.1.3, but that breaks too many other things.
11576 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11577 echo "$as_me:$LINENO: checking for fseeko" >&5
11578 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
11579 if test "${ac_cv_func_fseeko+set}" = set; then
11580   echo $ECHO_N "(cached) $ECHO_C" >&6
11581 else
11582   cat >conftest.$ac_ext <<_ACEOF
11583 #line $LINENO "configure"
11584 #include "confdefs.h"
11585 #include <stdio.h>
11586 #ifdef F77_DUMMY_MAIN
11587 #  ifdef __cplusplus
11588      extern "C"
11589 #  endif
11590    int F77_DUMMY_MAIN() { return 1; }
11591 #endif
11592 int
11593 main ()
11594 {
11595 return fseeko && fseeko (stdin, 0, 0);
11596   ;
11597   return 0;
11598 }
11599 _ACEOF
11600 rm -f conftest.$ac_objext conftest$ac_exeext
11601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11602   (eval $ac_link) 2>&5
11603   ac_status=$?
11604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605   (exit $ac_status); } &&
11606          { ac_try='test -s conftest$ac_exeext'
11607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11608   (eval $ac_try) 2>&5
11609   ac_status=$?
11610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611   (exit $ac_status); }; }; then
11612   ac_cv_func_fseeko=yes
11613 else
11614   echo "$as_me: failed program was:" >&5
11615 cat conftest.$ac_ext >&5
11616 ac_cv_func_fseeko=no
11617 fi
11618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11619 fi
11620 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
11621 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
11622 if test $ac_cv_func_fseeko = yes; then
11623
11624 cat >>confdefs.h <<\_ACEOF
11625 #define HAVE_FSEEKO 1
11626 _ACEOF
11627
11628 fi
11629
11630
11631
11632 # This test makes sure that run tests work at all.  Sometimes a shared
11633 # library is found by the linker, but the runtime linker can't find it.
11634 # This check should come after all modifications of compiler or linker
11635 # variables, and before any other run tests.
11636 echo "$as_me:$LINENO: checking test program" >&5
11637 echo $ECHO_N "checking test program... $ECHO_C" >&6
11638 if test "$cross_compiling" = yes; then
11639   echo "$as_me:$LINENO: result: cross-compiling" >&5
11640 echo "${ECHO_T}cross-compiling" >&6
11641 else
11642   cat >conftest.$ac_ext <<_ACEOF
11643 #line $LINENO "configure"
11644 #include "confdefs.h"
11645 int main() { return 0; }
11646 _ACEOF
11647 rm -f conftest$ac_exeext
11648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11649   (eval $ac_link) 2>&5
11650   ac_status=$?
11651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11654   (eval $ac_try) 2>&5
11655   ac_status=$?
11656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657   (exit $ac_status); }; }; then
11658   echo "$as_me:$LINENO: result: ok" >&5
11659 echo "${ECHO_T}ok" >&6
11660 else
11661   echo "$as_me: program exited with status $ac_status" >&5
11662 echo "$as_me: failed program was:" >&5
11663 cat conftest.$ac_ext >&5
11664 ( exit $ac_status )
11665 echo "$as_me:$LINENO: result: failed" >&5
11666 echo "${ECHO_T}failed" >&6
11667 { { echo "$as_me:$LINENO: error:
11668 *** Could not execute a simple test program.  This may be a problem
11669 *** related to locating shared libraries.  Check the file 'config.log'
11670 *** for the exact reason." >&5
11671 echo "$as_me: error:
11672 *** Could not execute a simple test program.  This may be a problem
11673 *** related to locating shared libraries.  Check the file 'config.log'
11674 *** for the exact reason." >&2;}
11675    { (exit 1); exit 1; }; }
11676 fi
11677 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11678 fi
11679
11680
11681
11682 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
11683 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
11684 if test "${pgac_cv_type_long_int_64+set}" = set; then
11685   echo $ECHO_N "(cached) $ECHO_C" >&6
11686 else
11687   if test "$cross_compiling" = yes; then
11688   pgac_cv_type_long_int_64=no
11689 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
11690 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
11691 else
11692   cat >conftest.$ac_ext <<_ACEOF
11693 #line $LINENO "configure"
11694 #include "confdefs.h"
11695 typedef long int int64;
11696
11697 /*
11698  * These are globals to discourage the compiler from folding all the
11699  * arithmetic tests down to compile-time constants.
11700  */
11701 int64 a = 20000001;
11702 int64 b = 40000005;
11703
11704 int does_int64_work()
11705 {
11706   int64 c,d;
11707
11708   if (sizeof(int64) != 8)
11709     return 0;                   /* definitely not the right size */
11710
11711   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
11712   c = a * b;
11713   d = (c + b) / b;
11714   if (d != a+1)
11715     return 0;
11716   return 1;
11717 }
11718 main() {
11719   exit(! does_int64_work());
11720 }
11721 _ACEOF
11722 rm -f conftest$ac_exeext
11723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11724   (eval $ac_link) 2>&5
11725   ac_status=$?
11726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11729   (eval $ac_try) 2>&5
11730   ac_status=$?
11731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732   (exit $ac_status); }; }; then
11733   pgac_cv_type_long_int_64=yes
11734 else
11735   echo "$as_me: program exited with status $ac_status" >&5
11736 echo "$as_me: failed program was:" >&5
11737 cat conftest.$ac_ext >&5
11738 ( exit $ac_status )
11739 pgac_cv_type_long_int_64=no
11740 fi
11741 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11742 fi
11743 fi
11744 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
11745 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
11746
11747 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
11748 if test x"$pgac_cv_type_long_int_64" = xyes ; then
11749
11750 cat >>confdefs.h <<\_ACEOF
11751 #define HAVE_LONG_INT_64
11752 _ACEOF
11753
11754 fi
11755
11756
11757 if test x"$HAVE_LONG_INT_64" = x"no" ; then
11758   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
11759 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
11760 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
11761   echo $ECHO_N "(cached) $ECHO_C" >&6
11762 else
11763   if test "$cross_compiling" = yes; then
11764   pgac_cv_type_long_long_int_64=no
11765 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
11766 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
11767 else
11768   cat >conftest.$ac_ext <<_ACEOF
11769 #line $LINENO "configure"
11770 #include "confdefs.h"
11771 typedef long long int int64;
11772
11773 /*
11774  * These are globals to discourage the compiler from folding all the
11775  * arithmetic tests down to compile-time constants.
11776  */
11777 int64 a = 20000001;
11778 int64 b = 40000005;
11779
11780 int does_int64_work()
11781 {
11782   int64 c,d;
11783
11784   if (sizeof(int64) != 8)
11785     return 0;                   /* definitely not the right size */
11786
11787   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
11788   c = a * b;
11789   d = (c + b) / b;
11790   if (d != a+1)
11791     return 0;
11792   return 1;
11793 }
11794 main() {
11795   exit(! does_int64_work());
11796 }
11797 _ACEOF
11798 rm -f conftest$ac_exeext
11799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11800   (eval $ac_link) 2>&5
11801   ac_status=$?
11802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805   (eval $ac_try) 2>&5
11806   ac_status=$?
11807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808   (exit $ac_status); }; }; then
11809   pgac_cv_type_long_long_int_64=yes
11810 else
11811   echo "$as_me: program exited with status $ac_status" >&5
11812 echo "$as_me: failed program was:" >&5
11813 cat conftest.$ac_ext >&5
11814 ( exit $ac_status )
11815 pgac_cv_type_long_long_int_64=no
11816 fi
11817 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11818 fi
11819 fi
11820 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
11821 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
11822
11823 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
11824 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
11825
11826 cat >>confdefs.h <<\_ACEOF
11827 #define HAVE_LONG_LONG_INT_64
11828 _ACEOF
11829
11830 fi
11831
11832 fi
11833
11834
11835
11836 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
11837   cat >conftest.$ac_ext <<_ACEOF
11838 #line $LINENO "configure"
11839 #include "confdefs.h"
11840
11841 #define INT64CONST(x)  x##LL
11842 long long int foo = INT64CONST(0x1234567890123456);
11843
11844 #ifdef F77_DUMMY_MAIN
11845 #  ifdef __cplusplus
11846      extern "C"
11847 #  endif
11848    int F77_DUMMY_MAIN() { return 1; }
11849 #endif
11850 int
11851 main ()
11852 {
11853
11854   ;
11855   return 0;
11856 }
11857 _ACEOF
11858 rm -f conftest.$ac_objext
11859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11860   (eval $ac_compile) 2>&5
11861   ac_status=$?
11862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863   (exit $ac_status); } &&
11864          { ac_try='test -s conftest.$ac_objext'
11865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11866   (eval $ac_try) 2>&5
11867   ac_status=$?
11868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869   (exit $ac_status); }; }; then
11870
11871 cat >>confdefs.h <<\_ACEOF
11872 #define HAVE_LL_CONSTANTS 1
11873 _ACEOF
11874
11875 else
11876   echo "$as_me: failed program was:" >&5
11877 cat conftest.$ac_ext >&5
11878 fi
11879 rm -f conftest.$ac_objext conftest.$ac_ext
11880 fi
11881
11882
11883
11884 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
11885   if test $pgac_need_repl_snprintf = no; then
11886     echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
11887 echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
11888     if test "$cross_compiling" = yes; then
11889    echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
11890 echo "${ECHO_T}cannot test (not on host machine)" >&6
11891         # Force usage of our own snprintf, since we cannot test foreign snprintf
11892         pgac_need_repl_snprintf=yes
11893         INT64_FORMAT='"%lld"'
11894
11895 else
11896   cat >conftest.$ac_ext <<_ACEOF
11897 #line $LINENO "configure"
11898 #include "confdefs.h"
11899 #include <stdio.h>
11900 typedef long long int int64;
11901 #define INT64_FORMAT "%lld"
11902
11903 int64 a = 20000001;
11904 int64 b = 40000005;
11905
11906 int does_int64_snprintf_work()
11907 {
11908   int64 c;
11909   char buf[100];
11910
11911   if (sizeof(int64) != 8)
11912     return 0;                   /* doesn't look like the right size */
11913
11914   c = a * b;
11915   snprintf(buf, 100, INT64_FORMAT, c);
11916   if (strcmp(buf, "800000140000005") != 0)
11917     return 0;                   /* either multiply or snprintf is busted */
11918   return 1;
11919 }
11920 main() {
11921   exit(! does_int64_snprintf_work());
11922 }
11923 _ACEOF
11924 rm -f conftest$ac_exeext
11925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11926   (eval $ac_link) 2>&5
11927   ac_status=$?
11928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11931   (eval $ac_try) 2>&5
11932   ac_status=$?
11933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934   (exit $ac_status); }; }; then
11935    echo "$as_me:$LINENO: result: yes" >&5
11936 echo "${ECHO_T}yes" >&6
11937           INT64_FORMAT='"%lld"'
11938
11939 else
11940   echo "$as_me: program exited with status $ac_status" >&5
11941 echo "$as_me: failed program was:" >&5
11942 cat conftest.$ac_ext >&5
11943 ( exit $ac_status )
11944  echo "$as_me:$LINENO: result: no" >&5
11945 echo "${ECHO_T}no" >&6
11946     echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
11947 echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
11948     if test "$cross_compiling" = yes; then
11949    echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
11950 echo "${ECHO_T}cannot test (not on host machine)" >&6
11951         # Force usage of our own snprintf, since we cannot test foreign snprintf
11952         pgac_need_repl_snprintf=yes
11953         INT64_FORMAT='"%lld"'
11954
11955 else
11956   cat >conftest.$ac_ext <<_ACEOF
11957 #line $LINENO "configure"
11958 #include "confdefs.h"
11959 #include <stdio.h>
11960 typedef long long int int64;
11961 #define INT64_FORMAT "%qd"
11962
11963 int64 a = 20000001;
11964 int64 b = 40000005;
11965
11966 int does_int64_snprintf_work()
11967 {
11968   int64 c;
11969   char buf[100];
11970
11971   if (sizeof(int64) != 8)
11972     return 0;     /* doesn't look like the right size */
11973
11974   c = a * b;
11975   snprintf(buf, 100, INT64_FORMAT, c);
11976   if (strcmp(buf, "800000140000005") != 0)
11977     return 0;     /* either multiply or snprintf is busted */
11978   return 1;
11979 }
11980 main() {
11981   exit(! does_int64_snprintf_work());
11982 }
11983 _ACEOF
11984 rm -f conftest$ac_exeext
11985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11986   (eval $ac_link) 2>&5
11987   ac_status=$?
11988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991   (eval $ac_try) 2>&5
11992   ac_status=$?
11993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994   (exit $ac_status); }; }; then
11995    echo "$as_me:$LINENO: result: yes" >&5
11996 echo "${ECHO_T}yes" >&6
11997     INT64_FORMAT='"%qd"'
11998
11999 else
12000   echo "$as_me: program exited with status $ac_status" >&5
12001 echo "$as_me: failed program was:" >&5
12002 cat conftest.$ac_ext >&5
12003 ( exit $ac_status )
12004  echo "$as_me:$LINENO: result: no" >&5
12005 echo "${ECHO_T}no" >&6
12006         # Force usage of our own snprintf, since system snprintf is broken
12007         pgac_need_repl_snprintf=yes
12008         INT64_FORMAT='"%lld"'
12009
12010 fi
12011 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12012 fi
12013 fi
12014 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12015 fi
12016   else
12017     # here if we previously decided we needed to use our own snprintf
12018     INT64_FORMAT='"%lld"'
12019   fi
12020 else
12021   # Here if we are not using 'long long int' at all
12022   INT64_FORMAT='"%ld"'
12023 fi
12024
12025
12026 cat >>confdefs.h <<_ACEOF
12027 #define INT64_FORMAT $INT64_FORMAT
12028 _ACEOF
12029
12030
12031 if test $pgac_need_repl_snprintf = yes; then
12032   LIBOBJS="$LIBOBJS snprintf.$ac_objext"
12033 fi
12034
12035
12036 echo "$as_me:$LINENO: checking for unsigned long" >&5
12037 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
12038 if test "${ac_cv_type_unsigned_long+set}" = set; then
12039   echo $ECHO_N "(cached) $ECHO_C" >&6
12040 else
12041   cat >conftest.$ac_ext <<_ACEOF
12042 #line $LINENO "configure"
12043 #include "confdefs.h"
12044 $ac_includes_default
12045 #ifdef F77_DUMMY_MAIN
12046 #  ifdef __cplusplus
12047      extern "C"
12048 #  endif
12049    int F77_DUMMY_MAIN() { return 1; }
12050 #endif
12051 int
12052 main ()
12053 {
12054 if ((unsigned long *) 0)
12055   return 0;
12056 if (sizeof (unsigned long))
12057   return 0;
12058   ;
12059   return 0;
12060 }
12061 _ACEOF
12062 rm -f conftest.$ac_objext
12063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12064   (eval $ac_compile) 2>&5
12065   ac_status=$?
12066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067   (exit $ac_status); } &&
12068          { ac_try='test -s conftest.$ac_objext'
12069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12070   (eval $ac_try) 2>&5
12071   ac_status=$?
12072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073   (exit $ac_status); }; }; then
12074   ac_cv_type_unsigned_long=yes
12075 else
12076   echo "$as_me: failed program was:" >&5
12077 cat conftest.$ac_ext >&5
12078 ac_cv_type_unsigned_long=no
12079 fi
12080 rm -f conftest.$ac_objext conftest.$ac_ext
12081 fi
12082 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
12083 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
12084
12085 echo "$as_me:$LINENO: checking size of unsigned long" >&5
12086 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
12087 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
12088   echo $ECHO_N "(cached) $ECHO_C" >&6
12089 else
12090   if test "$ac_cv_type_unsigned_long" = yes; then
12091   # The cast to unsigned long works around a bug in the HP C Compiler
12092   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12093   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12094   # This bug is HP SR number 8606223364.
12095   if test "$cross_compiling" = yes; then
12096   # Depending upon the size, compute the lo and hi bounds.
12097 cat >conftest.$ac_ext <<_ACEOF
12098 #line $LINENO "configure"
12099 #include "confdefs.h"
12100 $ac_includes_default
12101 #ifdef F77_DUMMY_MAIN
12102 #  ifdef __cplusplus
12103      extern "C"
12104 #  endif
12105    int F77_DUMMY_MAIN() { return 1; }
12106 #endif
12107 int
12108 main ()
12109 {
12110 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
12111 test_array [0] = 0
12112
12113   ;
12114   return 0;
12115 }
12116 _ACEOF
12117 rm -f conftest.$ac_objext
12118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12119   (eval $ac_compile) 2>&5
12120   ac_status=$?
12121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122   (exit $ac_status); } &&
12123          { ac_try='test -s conftest.$ac_objext'
12124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125   (eval $ac_try) 2>&5
12126   ac_status=$?
12127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128   (exit $ac_status); }; }; then
12129   ac_lo=0 ac_mid=0
12130   while :; do
12131     cat >conftest.$ac_ext <<_ACEOF
12132 #line $LINENO "configure"
12133 #include "confdefs.h"
12134 $ac_includes_default
12135 #ifdef F77_DUMMY_MAIN
12136 #  ifdef __cplusplus
12137      extern "C"
12138 #  endif
12139    int F77_DUMMY_MAIN() { return 1; }
12140 #endif
12141 int
12142 main ()
12143 {
12144 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12145 test_array [0] = 0
12146
12147   ;
12148   return 0;
12149 }
12150 _ACEOF
12151 rm -f conftest.$ac_objext
12152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12153   (eval $ac_compile) 2>&5
12154   ac_status=$?
12155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156   (exit $ac_status); } &&
12157          { ac_try='test -s conftest.$ac_objext'
12158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12159   (eval $ac_try) 2>&5
12160   ac_status=$?
12161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162   (exit $ac_status); }; }; then
12163   ac_hi=$ac_mid; break
12164 else
12165   echo "$as_me: failed program was:" >&5
12166 cat conftest.$ac_ext >&5
12167 ac_lo=`expr $ac_mid + 1`
12168                     if test $ac_lo -le $ac_mid; then
12169                       ac_lo= ac_hi=
12170                       break
12171                     fi
12172                     ac_mid=`expr 2 '*' $ac_mid + 1`
12173 fi
12174 rm -f conftest.$ac_objext conftest.$ac_ext
12175   done
12176 else
12177   echo "$as_me: failed program was:" >&5
12178 cat conftest.$ac_ext >&5
12179 cat >conftest.$ac_ext <<_ACEOF
12180 #line $LINENO "configure"
12181 #include "confdefs.h"
12182 $ac_includes_default
12183 #ifdef F77_DUMMY_MAIN
12184 #  ifdef __cplusplus
12185      extern "C"
12186 #  endif
12187    int F77_DUMMY_MAIN() { return 1; }
12188 #endif
12189 int
12190 main ()
12191 {
12192 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
12193 test_array [0] = 0
12194
12195   ;
12196   return 0;
12197 }
12198 _ACEOF
12199 rm -f conftest.$ac_objext
12200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12201   (eval $ac_compile) 2>&5
12202   ac_status=$?
12203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204   (exit $ac_status); } &&
12205          { ac_try='test -s conftest.$ac_objext'
12206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207   (eval $ac_try) 2>&5
12208   ac_status=$?
12209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210   (exit $ac_status); }; }; then
12211   ac_hi=-1 ac_mid=-1
12212   while :; do
12213     cat >conftest.$ac_ext <<_ACEOF
12214 #line $LINENO "configure"
12215 #include "confdefs.h"
12216 $ac_includes_default
12217 #ifdef F77_DUMMY_MAIN
12218 #  ifdef __cplusplus
12219      extern "C"
12220 #  endif
12221    int F77_DUMMY_MAIN() { return 1; }
12222 #endif
12223 int
12224 main ()
12225 {
12226 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
12227 test_array [0] = 0
12228
12229   ;
12230   return 0;
12231 }
12232 _ACEOF
12233 rm -f conftest.$ac_objext
12234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12235   (eval $ac_compile) 2>&5
12236   ac_status=$?
12237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238   (exit $ac_status); } &&
12239          { ac_try='test -s conftest.$ac_objext'
12240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241   (eval $ac_try) 2>&5
12242   ac_status=$?
12243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244   (exit $ac_status); }; }; then
12245   ac_lo=$ac_mid; break
12246 else
12247   echo "$as_me: failed program was:" >&5
12248 cat conftest.$ac_ext >&5
12249 ac_hi=`expr '(' $ac_mid ')' - 1`
12250                        if test $ac_mid -le $ac_hi; then
12251                          ac_lo= ac_hi=
12252                          break
12253                        fi
12254                        ac_mid=`expr 2 '*' $ac_mid`
12255 fi
12256 rm -f conftest.$ac_objext conftest.$ac_ext
12257   done
12258 else
12259   echo "$as_me: failed program was:" >&5
12260 cat conftest.$ac_ext >&5
12261 ac_lo= ac_hi=
12262 fi
12263 rm -f conftest.$ac_objext conftest.$ac_ext
12264 fi
12265 rm -f conftest.$ac_objext conftest.$ac_ext
12266 # Binary search between lo and hi bounds.
12267 while test "x$ac_lo" != "x$ac_hi"; do
12268   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12269   cat >conftest.$ac_ext <<_ACEOF
12270 #line $LINENO "configure"
12271 #include "confdefs.h"
12272 $ac_includes_default
12273 #ifdef F77_DUMMY_MAIN
12274 #  ifdef __cplusplus
12275      extern "C"
12276 #  endif
12277    int F77_DUMMY_MAIN() { return 1; }
12278 #endif
12279 int
12280 main ()
12281 {
12282 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12283 test_array [0] = 0
12284
12285   ;
12286   return 0;
12287 }
12288 _ACEOF
12289 rm -f conftest.$ac_objext
12290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12291   (eval $ac_compile) 2>&5
12292   ac_status=$?
12293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294   (exit $ac_status); } &&
12295          { ac_try='test -s conftest.$ac_objext'
12296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297   (eval $ac_try) 2>&5
12298   ac_status=$?
12299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300   (exit $ac_status); }; }; then
12301   ac_hi=$ac_mid
12302 else
12303   echo "$as_me: failed program was:" >&5
12304 cat conftest.$ac_ext >&5
12305 ac_lo=`expr '(' $ac_mid ')' + 1`
12306 fi
12307 rm -f conftest.$ac_objext conftest.$ac_ext
12308 done
12309 case $ac_lo in
12310 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
12311 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12312 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12313    { (exit 1); exit 1; }; } ;;
12314 esac
12315 else
12316   if test "$cross_compiling" = yes; then
12317   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12318 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12319    { (exit 1); exit 1; }; }
12320 else
12321   cat >conftest.$ac_ext <<_ACEOF
12322 #line $LINENO "configure"
12323 #include "confdefs.h"
12324 $ac_includes_default
12325 long longval () { return (long) (sizeof (unsigned long)); }
12326 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
12327 #include <stdio.h>
12328 #include <stdlib.h>
12329 #ifdef F77_DUMMY_MAIN
12330 #  ifdef __cplusplus
12331      extern "C"
12332 #  endif
12333    int F77_DUMMY_MAIN() { return 1; }
12334 #endif
12335 int
12336 main ()
12337 {
12338
12339   FILE *f = fopen ("conftest.val", "w");
12340   if (! f)
12341     exit (1);
12342   if (((long) (sizeof (unsigned long))) < 0)
12343     {
12344       long i = longval ();
12345       if (i != ((long) (sizeof (unsigned long))))
12346         exit (1);
12347       fprintf (f, "%ld\n", i);
12348     }
12349   else
12350     {
12351       unsigned long i = ulongval ();
12352       if (i != ((long) (sizeof (unsigned long))))
12353         exit (1);
12354       fprintf (f, "%lu\n", i);
12355     }
12356   exit (ferror (f) || fclose (f) != 0);
12357
12358   ;
12359   return 0;
12360 }
12361 _ACEOF
12362 rm -f conftest$ac_exeext
12363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12364   (eval $ac_link) 2>&5
12365   ac_status=$?
12366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12369   (eval $ac_try) 2>&5
12370   ac_status=$?
12371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372   (exit $ac_status); }; }; then
12373   ac_cv_sizeof_unsigned_long=`cat conftest.val`
12374 else
12375   echo "$as_me: program exited with status $ac_status" >&5
12376 echo "$as_me: failed program was:" >&5
12377 cat conftest.$ac_ext >&5
12378 ( exit $ac_status )
12379 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12380 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12381    { (exit 1); exit 1; }; }
12382 fi
12383 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12384 fi
12385 fi
12386 rm -f conftest.val
12387 else
12388   ac_cv_sizeof_unsigned_long=0
12389 fi
12390 fi
12391 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
12392 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
12393 cat >>confdefs.h <<_ACEOF
12394 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
12395 _ACEOF
12396
12397
12398
12399 cat >>confdefs.h <<_ACEOF
12400 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
12401 _ACEOF
12402
12403
12404 # Determine memory alignment requirements for the basic C data types.
12405
12406 echo "$as_me:$LINENO: checking for short" >&5
12407 echo $ECHO_N "checking for short... $ECHO_C" >&6
12408 if test "${ac_cv_type_short+set}" = set; then
12409   echo $ECHO_N "(cached) $ECHO_C" >&6
12410 else
12411   cat >conftest.$ac_ext <<_ACEOF
12412 #line $LINENO "configure"
12413 #include "confdefs.h"
12414 $ac_includes_default
12415 #ifdef F77_DUMMY_MAIN
12416 #  ifdef __cplusplus
12417      extern "C"
12418 #  endif
12419    int F77_DUMMY_MAIN() { return 1; }
12420 #endif
12421 int
12422 main ()
12423 {
12424 if ((short *) 0)
12425   return 0;
12426 if (sizeof (short))
12427   return 0;
12428   ;
12429   return 0;
12430 }
12431 _ACEOF
12432 rm -f conftest.$ac_objext
12433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12434   (eval $ac_compile) 2>&5
12435   ac_status=$?
12436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437   (exit $ac_status); } &&
12438          { ac_try='test -s conftest.$ac_objext'
12439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440   (eval $ac_try) 2>&5
12441   ac_status=$?
12442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443   (exit $ac_status); }; }; then
12444   ac_cv_type_short=yes
12445 else
12446   echo "$as_me: failed program was:" >&5
12447 cat conftest.$ac_ext >&5
12448 ac_cv_type_short=no
12449 fi
12450 rm -f conftest.$ac_objext conftest.$ac_ext
12451 fi
12452 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12453 echo "${ECHO_T}$ac_cv_type_short" >&6
12454
12455 echo "$as_me:$LINENO: checking alignment of short" >&5
12456 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
12457 if test "${pgac_cv_alignof_short+set}" = set; then
12458   echo $ECHO_N "(cached) $ECHO_C" >&6
12459 else
12460   if test "$ac_cv_type_short" = yes; then
12461   if test "$cross_compiling" = yes; then
12462   # Depending upon the size, compute the lo and hi bounds.
12463 cat >conftest.$ac_ext <<_ACEOF
12464 #line $LINENO "configure"
12465 #include "confdefs.h"
12466 $ac_includes_default
12467 struct { char filler; short field; } pgac_struct;
12468 #ifdef F77_DUMMY_MAIN
12469 #  ifdef __cplusplus
12470      extern "C"
12471 #  endif
12472    int F77_DUMMY_MAIN() { return 1; }
12473 #endif
12474 int
12475 main ()
12476 {
12477 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
12478 test_array [0] = 0
12479
12480   ;
12481   return 0;
12482 }
12483 _ACEOF
12484 rm -f conftest.$ac_objext
12485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12486   (eval $ac_compile) 2>&5
12487   ac_status=$?
12488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489   (exit $ac_status); } &&
12490          { ac_try='test -s conftest.$ac_objext'
12491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492   (eval $ac_try) 2>&5
12493   ac_status=$?
12494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495   (exit $ac_status); }; }; then
12496   ac_lo=0 ac_mid=0
12497   while :; do
12498     cat >conftest.$ac_ext <<_ACEOF
12499 #line $LINENO "configure"
12500 #include "confdefs.h"
12501 $ac_includes_default
12502 struct { char filler; short field; } pgac_struct;
12503 #ifdef F77_DUMMY_MAIN
12504 #  ifdef __cplusplus
12505      extern "C"
12506 #  endif
12507    int F77_DUMMY_MAIN() { return 1; }
12508 #endif
12509 int
12510 main ()
12511 {
12512 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12513 test_array [0] = 0
12514
12515   ;
12516   return 0;
12517 }
12518 _ACEOF
12519 rm -f conftest.$ac_objext
12520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12521   (eval $ac_compile) 2>&5
12522   ac_status=$?
12523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524   (exit $ac_status); } &&
12525          { ac_try='test -s conftest.$ac_objext'
12526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527   (eval $ac_try) 2>&5
12528   ac_status=$?
12529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530   (exit $ac_status); }; }; then
12531   ac_hi=$ac_mid; break
12532 else
12533   echo "$as_me: failed program was:" >&5
12534 cat conftest.$ac_ext >&5
12535 ac_lo=`expr $ac_mid + 1`
12536                     if test $ac_lo -le $ac_mid; then
12537                       ac_lo= ac_hi=
12538                       break
12539                     fi
12540                     ac_mid=`expr 2 '*' $ac_mid + 1`
12541 fi
12542 rm -f conftest.$ac_objext conftest.$ac_ext
12543   done
12544 else
12545   echo "$as_me: failed program was:" >&5
12546 cat conftest.$ac_ext >&5
12547 cat >conftest.$ac_ext <<_ACEOF
12548 #line $LINENO "configure"
12549 #include "confdefs.h"
12550 $ac_includes_default
12551 struct { char filler; short field; } pgac_struct;
12552 #ifdef F77_DUMMY_MAIN
12553 #  ifdef __cplusplus
12554      extern "C"
12555 #  endif
12556    int F77_DUMMY_MAIN() { return 1; }
12557 #endif
12558 int
12559 main ()
12560 {
12561 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
12562 test_array [0] = 0
12563
12564   ;
12565   return 0;
12566 }
12567 _ACEOF
12568 rm -f conftest.$ac_objext
12569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12570   (eval $ac_compile) 2>&5
12571   ac_status=$?
12572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573   (exit $ac_status); } &&
12574          { ac_try='test -s conftest.$ac_objext'
12575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576   (eval $ac_try) 2>&5
12577   ac_status=$?
12578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579   (exit $ac_status); }; }; then
12580   ac_hi=-1 ac_mid=-1
12581   while :; do
12582     cat >conftest.$ac_ext <<_ACEOF
12583 #line $LINENO "configure"
12584 #include "confdefs.h"
12585 $ac_includes_default
12586 struct { char filler; short field; } pgac_struct;
12587 #ifdef F77_DUMMY_MAIN
12588 #  ifdef __cplusplus
12589      extern "C"
12590 #  endif
12591    int F77_DUMMY_MAIN() { return 1; }
12592 #endif
12593 int
12594 main ()
12595 {
12596 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
12597 test_array [0] = 0
12598
12599   ;
12600   return 0;
12601 }
12602 _ACEOF
12603 rm -f conftest.$ac_objext
12604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12605   (eval $ac_compile) 2>&5
12606   ac_status=$?
12607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); } &&
12609          { ac_try='test -s conftest.$ac_objext'
12610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611   (eval $ac_try) 2>&5
12612   ac_status=$?
12613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614   (exit $ac_status); }; }; then
12615   ac_lo=$ac_mid; break
12616 else
12617   echo "$as_me: failed program was:" >&5
12618 cat conftest.$ac_ext >&5
12619 ac_hi=`expr '(' $ac_mid ')' - 1`
12620                        if test $ac_mid -le $ac_hi; then
12621                          ac_lo= ac_hi=
12622                          break
12623                        fi
12624                        ac_mid=`expr 2 '*' $ac_mid`
12625 fi
12626 rm -f conftest.$ac_objext conftest.$ac_ext
12627   done
12628 else
12629   echo "$as_me: failed program was:" >&5
12630 cat conftest.$ac_ext >&5
12631 ac_lo= ac_hi=
12632 fi
12633 rm -f conftest.$ac_objext conftest.$ac_ext
12634 fi
12635 rm -f conftest.$ac_objext conftest.$ac_ext
12636 # Binary search between lo and hi bounds.
12637 while test "x$ac_lo" != "x$ac_hi"; do
12638   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12639   cat >conftest.$ac_ext <<_ACEOF
12640 #line $LINENO "configure"
12641 #include "confdefs.h"
12642 $ac_includes_default
12643 struct { char filler; short field; } pgac_struct;
12644 #ifdef F77_DUMMY_MAIN
12645 #  ifdef __cplusplus
12646      extern "C"
12647 #  endif
12648    int F77_DUMMY_MAIN() { return 1; }
12649 #endif
12650 int
12651 main ()
12652 {
12653 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12654 test_array [0] = 0
12655
12656   ;
12657   return 0;
12658 }
12659 _ACEOF
12660 rm -f conftest.$ac_objext
12661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12662   (eval $ac_compile) 2>&5
12663   ac_status=$?
12664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665   (exit $ac_status); } &&
12666          { ac_try='test -s conftest.$ac_objext'
12667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668   (eval $ac_try) 2>&5
12669   ac_status=$?
12670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671   (exit $ac_status); }; }; then
12672   ac_hi=$ac_mid
12673 else
12674   echo "$as_me: failed program was:" >&5
12675 cat conftest.$ac_ext >&5
12676 ac_lo=`expr '(' $ac_mid ')' + 1`
12677 fi
12678 rm -f conftest.$ac_objext conftest.$ac_ext
12679 done
12680 case $ac_lo in
12681 ?*) pgac_cv_alignof_short=$ac_lo;;
12682 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
12683 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
12684    { (exit 1); exit 1; }; } ;;
12685 esac
12686 else
12687   if test "$cross_compiling" = yes; then
12688   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12689 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12690    { (exit 1); exit 1; }; }
12691 else
12692   cat >conftest.$ac_ext <<_ACEOF
12693 #line $LINENO "configure"
12694 #include "confdefs.h"
12695 $ac_includes_default
12696 struct { char filler; short field; } pgac_struct;
12697 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12698 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12699 #include <stdio.h>
12700 #include <stdlib.h>
12701 #ifdef F77_DUMMY_MAIN
12702 #  ifdef __cplusplus
12703      extern "C"
12704 #  endif
12705    int F77_DUMMY_MAIN() { return 1; }
12706 #endif
12707 int
12708 main ()
12709 {
12710
12711   FILE *f = fopen ("conftest.val", "w");
12712   if (! f)
12713     exit (1);
12714   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
12715     {
12716       long i = longval ();
12717       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12718         exit (1);
12719       fprintf (f, "%ld\n", i);
12720     }
12721   else
12722     {
12723       unsigned long i = ulongval ();
12724       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12725         exit (1);
12726       fprintf (f, "%lu\n", i);
12727     }
12728   exit (ferror (f) || fclose (f) != 0);
12729
12730   ;
12731   return 0;
12732 }
12733 _ACEOF
12734 rm -f conftest$ac_exeext
12735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12736   (eval $ac_link) 2>&5
12737   ac_status=$?
12738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741   (eval $ac_try) 2>&5
12742   ac_status=$?
12743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744   (exit $ac_status); }; }; then
12745   pgac_cv_alignof_short=`cat conftest.val`
12746 else
12747   echo "$as_me: program exited with status $ac_status" >&5
12748 echo "$as_me: failed program was:" >&5
12749 cat conftest.$ac_ext >&5
12750 ( exit $ac_status )
12751 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
12752 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
12753    { (exit 1); exit 1; }; }
12754 fi
12755 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12756 fi
12757 fi
12758 rm -f conftest.val
12759 else
12760   pgac_cv_alignof_short=0
12761 fi
12762 fi
12763 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
12764 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
12765 cat >>confdefs.h <<_ACEOF
12766 #define ALIGNOF_SHORT $pgac_cv_alignof_short
12767 _ACEOF
12768
12769
12770 echo "$as_me:$LINENO: checking for int" >&5
12771 echo $ECHO_N "checking for int... $ECHO_C" >&6
12772 if test "${ac_cv_type_int+set}" = set; then
12773   echo $ECHO_N "(cached) $ECHO_C" >&6
12774 else
12775   cat >conftest.$ac_ext <<_ACEOF
12776 #line $LINENO "configure"
12777 #include "confdefs.h"
12778 $ac_includes_default
12779 #ifdef F77_DUMMY_MAIN
12780 #  ifdef __cplusplus
12781      extern "C"
12782 #  endif
12783    int F77_DUMMY_MAIN() { return 1; }
12784 #endif
12785 int
12786 main ()
12787 {
12788 if ((int *) 0)
12789   return 0;
12790 if (sizeof (int))
12791   return 0;
12792   ;
12793   return 0;
12794 }
12795 _ACEOF
12796 rm -f conftest.$ac_objext
12797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12798   (eval $ac_compile) 2>&5
12799   ac_status=$?
12800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801   (exit $ac_status); } &&
12802          { ac_try='test -s conftest.$ac_objext'
12803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12804   (eval $ac_try) 2>&5
12805   ac_status=$?
12806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807   (exit $ac_status); }; }; then
12808   ac_cv_type_int=yes
12809 else
12810   echo "$as_me: failed program was:" >&5
12811 cat conftest.$ac_ext >&5
12812 ac_cv_type_int=no
12813 fi
12814 rm -f conftest.$ac_objext conftest.$ac_ext
12815 fi
12816 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12817 echo "${ECHO_T}$ac_cv_type_int" >&6
12818
12819 echo "$as_me:$LINENO: checking alignment of int" >&5
12820 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
12821 if test "${pgac_cv_alignof_int+set}" = set; then
12822   echo $ECHO_N "(cached) $ECHO_C" >&6
12823 else
12824   if test "$ac_cv_type_int" = yes; then
12825   if test "$cross_compiling" = yes; then
12826   # Depending upon the size, compute the lo and hi bounds.
12827 cat >conftest.$ac_ext <<_ACEOF
12828 #line $LINENO "configure"
12829 #include "confdefs.h"
12830 $ac_includes_default
12831 struct { char filler; int field; } pgac_struct;
12832 #ifdef F77_DUMMY_MAIN
12833 #  ifdef __cplusplus
12834      extern "C"
12835 #  endif
12836    int F77_DUMMY_MAIN() { return 1; }
12837 #endif
12838 int
12839 main ()
12840 {
12841 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
12842 test_array [0] = 0
12843
12844   ;
12845   return 0;
12846 }
12847 _ACEOF
12848 rm -f conftest.$ac_objext
12849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12850   (eval $ac_compile) 2>&5
12851   ac_status=$?
12852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853   (exit $ac_status); } &&
12854          { ac_try='test -s conftest.$ac_objext'
12855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856   (eval $ac_try) 2>&5
12857   ac_status=$?
12858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859   (exit $ac_status); }; }; then
12860   ac_lo=0 ac_mid=0
12861   while :; do
12862     cat >conftest.$ac_ext <<_ACEOF
12863 #line $LINENO "configure"
12864 #include "confdefs.h"
12865 $ac_includes_default
12866 struct { char filler; int field; } pgac_struct;
12867 #ifdef F77_DUMMY_MAIN
12868 #  ifdef __cplusplus
12869      extern "C"
12870 #  endif
12871    int F77_DUMMY_MAIN() { return 1; }
12872 #endif
12873 int
12874 main ()
12875 {
12876 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12877 test_array [0] = 0
12878
12879   ;
12880   return 0;
12881 }
12882 _ACEOF
12883 rm -f conftest.$ac_objext
12884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12885   (eval $ac_compile) 2>&5
12886   ac_status=$?
12887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888   (exit $ac_status); } &&
12889          { ac_try='test -s conftest.$ac_objext'
12890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891   (eval $ac_try) 2>&5
12892   ac_status=$?
12893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894   (exit $ac_status); }; }; then
12895   ac_hi=$ac_mid; break
12896 else
12897   echo "$as_me: failed program was:" >&5
12898 cat conftest.$ac_ext >&5
12899 ac_lo=`expr $ac_mid + 1`
12900                     if test $ac_lo -le $ac_mid; then
12901                       ac_lo= ac_hi=
12902                       break
12903                     fi
12904                     ac_mid=`expr 2 '*' $ac_mid + 1`
12905 fi
12906 rm -f conftest.$ac_objext conftest.$ac_ext
12907   done
12908 else
12909   echo "$as_me: failed program was:" >&5
12910 cat conftest.$ac_ext >&5
12911 cat >conftest.$ac_ext <<_ACEOF
12912 #line $LINENO "configure"
12913 #include "confdefs.h"
12914 $ac_includes_default
12915 struct { char filler; int field; } pgac_struct;
12916 #ifdef F77_DUMMY_MAIN
12917 #  ifdef __cplusplus
12918      extern "C"
12919 #  endif
12920    int F77_DUMMY_MAIN() { return 1; }
12921 #endif
12922 int
12923 main ()
12924 {
12925 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
12926 test_array [0] = 0
12927
12928   ;
12929   return 0;
12930 }
12931 _ACEOF
12932 rm -f conftest.$ac_objext
12933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12934   (eval $ac_compile) 2>&5
12935   ac_status=$?
12936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937   (exit $ac_status); } &&
12938          { ac_try='test -s conftest.$ac_objext'
12939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940   (eval $ac_try) 2>&5
12941   ac_status=$?
12942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943   (exit $ac_status); }; }; then
12944   ac_hi=-1 ac_mid=-1
12945   while :; do
12946     cat >conftest.$ac_ext <<_ACEOF
12947 #line $LINENO "configure"
12948 #include "confdefs.h"
12949 $ac_includes_default
12950 struct { char filler; int field; } pgac_struct;
12951 #ifdef F77_DUMMY_MAIN
12952 #  ifdef __cplusplus
12953      extern "C"
12954 #  endif
12955    int F77_DUMMY_MAIN() { return 1; }
12956 #endif
12957 int
12958 main ()
12959 {
12960 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
12961 test_array [0] = 0
12962
12963   ;
12964   return 0;
12965 }
12966 _ACEOF
12967 rm -f conftest.$ac_objext
12968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12969   (eval $ac_compile) 2>&5
12970   ac_status=$?
12971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972   (exit $ac_status); } &&
12973          { ac_try='test -s conftest.$ac_objext'
12974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975   (eval $ac_try) 2>&5
12976   ac_status=$?
12977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978   (exit $ac_status); }; }; then
12979   ac_lo=$ac_mid; break
12980 else
12981   echo "$as_me: failed program was:" >&5
12982 cat conftest.$ac_ext >&5
12983 ac_hi=`expr '(' $ac_mid ')' - 1`
12984                        if test $ac_mid -le $ac_hi; then
12985                          ac_lo= ac_hi=
12986                          break
12987                        fi
12988                        ac_mid=`expr 2 '*' $ac_mid`
12989 fi
12990 rm -f conftest.$ac_objext conftest.$ac_ext
12991   done
12992 else
12993   echo "$as_me: failed program was:" >&5
12994 cat conftest.$ac_ext >&5
12995 ac_lo= ac_hi=
12996 fi
12997 rm -f conftest.$ac_objext conftest.$ac_ext
12998 fi
12999 rm -f conftest.$ac_objext conftest.$ac_ext
13000 # Binary search between lo and hi bounds.
13001 while test "x$ac_lo" != "x$ac_hi"; do
13002   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13003   cat >conftest.$ac_ext <<_ACEOF
13004 #line $LINENO "configure"
13005 #include "confdefs.h"
13006 $ac_includes_default
13007 struct { char filler; int field; } pgac_struct;
13008 #ifdef F77_DUMMY_MAIN
13009 #  ifdef __cplusplus
13010      extern "C"
13011 #  endif
13012    int F77_DUMMY_MAIN() { return 1; }
13013 #endif
13014 int
13015 main ()
13016 {
13017 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13018 test_array [0] = 0
13019
13020   ;
13021   return 0;
13022 }
13023 _ACEOF
13024 rm -f conftest.$ac_objext
13025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13026   (eval $ac_compile) 2>&5
13027   ac_status=$?
13028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029   (exit $ac_status); } &&
13030          { ac_try='test -s conftest.$ac_objext'
13031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13032   (eval $ac_try) 2>&5
13033   ac_status=$?
13034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035   (exit $ac_status); }; }; then
13036   ac_hi=$ac_mid
13037 else
13038   echo "$as_me: failed program was:" >&5
13039 cat conftest.$ac_ext >&5
13040 ac_lo=`expr '(' $ac_mid ')' + 1`
13041 fi
13042 rm -f conftest.$ac_objext conftest.$ac_ext
13043 done
13044 case $ac_lo in
13045 ?*) pgac_cv_alignof_int=$ac_lo;;
13046 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13047 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13048    { (exit 1); exit 1; }; } ;;
13049 esac
13050 else
13051   if test "$cross_compiling" = yes; then
13052   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13053 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13054    { (exit 1); exit 1; }; }
13055 else
13056   cat >conftest.$ac_ext <<_ACEOF
13057 #line $LINENO "configure"
13058 #include "confdefs.h"
13059 $ac_includes_default
13060 struct { char filler; int field; } pgac_struct;
13061 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13062 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13063 #include <stdio.h>
13064 #include <stdlib.h>
13065 #ifdef F77_DUMMY_MAIN
13066 #  ifdef __cplusplus
13067      extern "C"
13068 #  endif
13069    int F77_DUMMY_MAIN() { return 1; }
13070 #endif
13071 int
13072 main ()
13073 {
13074
13075   FILE *f = fopen ("conftest.val", "w");
13076   if (! f)
13077     exit (1);
13078   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13079     {
13080       long i = longval ();
13081       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13082         exit (1);
13083       fprintf (f, "%ld\n", i);
13084     }
13085   else
13086     {
13087       unsigned long i = ulongval ();
13088       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13089         exit (1);
13090       fprintf (f, "%lu\n", i);
13091     }
13092   exit (ferror (f) || fclose (f) != 0);
13093
13094   ;
13095   return 0;
13096 }
13097 _ACEOF
13098 rm -f conftest$ac_exeext
13099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13100   (eval $ac_link) 2>&5
13101   ac_status=$?
13102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105   (eval $ac_try) 2>&5
13106   ac_status=$?
13107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108   (exit $ac_status); }; }; then
13109   pgac_cv_alignof_int=`cat conftest.val`
13110 else
13111   echo "$as_me: program exited with status $ac_status" >&5
13112 echo "$as_me: failed program was:" >&5
13113 cat conftest.$ac_ext >&5
13114 ( exit $ac_status )
13115 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13116 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13117    { (exit 1); exit 1; }; }
13118 fi
13119 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13120 fi
13121 fi
13122 rm -f conftest.val
13123 else
13124   pgac_cv_alignof_int=0
13125 fi
13126 fi
13127 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
13128 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
13129 cat >>confdefs.h <<_ACEOF
13130 #define ALIGNOF_INT $pgac_cv_alignof_int
13131 _ACEOF
13132
13133
13134 echo "$as_me:$LINENO: checking for long" >&5
13135 echo $ECHO_N "checking for long... $ECHO_C" >&6
13136 if test "${ac_cv_type_long+set}" = set; then
13137   echo $ECHO_N "(cached) $ECHO_C" >&6
13138 else
13139   cat >conftest.$ac_ext <<_ACEOF
13140 #line $LINENO "configure"
13141 #include "confdefs.h"
13142 $ac_includes_default
13143 #ifdef F77_DUMMY_MAIN
13144 #  ifdef __cplusplus
13145      extern "C"
13146 #  endif
13147    int F77_DUMMY_MAIN() { return 1; }
13148 #endif
13149 int
13150 main ()
13151 {
13152 if ((long *) 0)
13153   return 0;
13154 if (sizeof (long))
13155   return 0;
13156   ;
13157   return 0;
13158 }
13159 _ACEOF
13160 rm -f conftest.$ac_objext
13161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13162   (eval $ac_compile) 2>&5
13163   ac_status=$?
13164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165   (exit $ac_status); } &&
13166          { ac_try='test -s conftest.$ac_objext'
13167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13168   (eval $ac_try) 2>&5
13169   ac_status=$?
13170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171   (exit $ac_status); }; }; then
13172   ac_cv_type_long=yes
13173 else
13174   echo "$as_me: failed program was:" >&5
13175 cat conftest.$ac_ext >&5
13176 ac_cv_type_long=no
13177 fi
13178 rm -f conftest.$ac_objext conftest.$ac_ext
13179 fi
13180 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13181 echo "${ECHO_T}$ac_cv_type_long" >&6
13182
13183 echo "$as_me:$LINENO: checking alignment of long" >&5
13184 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
13185 if test "${pgac_cv_alignof_long+set}" = set; then
13186   echo $ECHO_N "(cached) $ECHO_C" >&6
13187 else
13188   if test "$ac_cv_type_long" = yes; then
13189   if test "$cross_compiling" = yes; then
13190   # Depending upon the size, compute the lo and hi bounds.
13191 cat >conftest.$ac_ext <<_ACEOF
13192 #line $LINENO "configure"
13193 #include "confdefs.h"
13194 $ac_includes_default
13195 struct { char filler; long field; } pgac_struct;
13196 #ifdef F77_DUMMY_MAIN
13197 #  ifdef __cplusplus
13198      extern "C"
13199 #  endif
13200    int F77_DUMMY_MAIN() { return 1; }
13201 #endif
13202 int
13203 main ()
13204 {
13205 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13206 test_array [0] = 0
13207
13208   ;
13209   return 0;
13210 }
13211 _ACEOF
13212 rm -f conftest.$ac_objext
13213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13214   (eval $ac_compile) 2>&5
13215   ac_status=$?
13216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217   (exit $ac_status); } &&
13218          { ac_try='test -s conftest.$ac_objext'
13219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220   (eval $ac_try) 2>&5
13221   ac_status=$?
13222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223   (exit $ac_status); }; }; then
13224   ac_lo=0 ac_mid=0
13225   while :; do
13226     cat >conftest.$ac_ext <<_ACEOF
13227 #line $LINENO "configure"
13228 #include "confdefs.h"
13229 $ac_includes_default
13230 struct { char filler; long field; } pgac_struct;
13231 #ifdef F77_DUMMY_MAIN
13232 #  ifdef __cplusplus
13233      extern "C"
13234 #  endif
13235    int F77_DUMMY_MAIN() { return 1; }
13236 #endif
13237 int
13238 main ()
13239 {
13240 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13241 test_array [0] = 0
13242
13243   ;
13244   return 0;
13245 }
13246 _ACEOF
13247 rm -f conftest.$ac_objext
13248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13249   (eval $ac_compile) 2>&5
13250   ac_status=$?
13251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252   (exit $ac_status); } &&
13253          { ac_try='test -s conftest.$ac_objext'
13254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13255   (eval $ac_try) 2>&5
13256   ac_status=$?
13257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258   (exit $ac_status); }; }; then
13259   ac_hi=$ac_mid; break
13260 else
13261   echo "$as_me: failed program was:" >&5
13262 cat conftest.$ac_ext >&5
13263 ac_lo=`expr $ac_mid + 1`
13264                     if test $ac_lo -le $ac_mid; then
13265                       ac_lo= ac_hi=
13266                       break
13267                     fi
13268                     ac_mid=`expr 2 '*' $ac_mid + 1`
13269 fi
13270 rm -f conftest.$ac_objext conftest.$ac_ext
13271   done
13272 else
13273   echo "$as_me: failed program was:" >&5
13274 cat conftest.$ac_ext >&5
13275 cat >conftest.$ac_ext <<_ACEOF
13276 #line $LINENO "configure"
13277 #include "confdefs.h"
13278 $ac_includes_default
13279 struct { char filler; long field; } pgac_struct;
13280 #ifdef F77_DUMMY_MAIN
13281 #  ifdef __cplusplus
13282      extern "C"
13283 #  endif
13284    int F77_DUMMY_MAIN() { return 1; }
13285 #endif
13286 int
13287 main ()
13288 {
13289 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13290 test_array [0] = 0
13291
13292   ;
13293   return 0;
13294 }
13295 _ACEOF
13296 rm -f conftest.$ac_objext
13297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13298   (eval $ac_compile) 2>&5
13299   ac_status=$?
13300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301   (exit $ac_status); } &&
13302          { ac_try='test -s conftest.$ac_objext'
13303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13304   (eval $ac_try) 2>&5
13305   ac_status=$?
13306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307   (exit $ac_status); }; }; then
13308   ac_hi=-1 ac_mid=-1
13309   while :; do
13310     cat >conftest.$ac_ext <<_ACEOF
13311 #line $LINENO "configure"
13312 #include "confdefs.h"
13313 $ac_includes_default
13314 struct { char filler; long field; } pgac_struct;
13315 #ifdef F77_DUMMY_MAIN
13316 #  ifdef __cplusplus
13317      extern "C"
13318 #  endif
13319    int F77_DUMMY_MAIN() { return 1; }
13320 #endif
13321 int
13322 main ()
13323 {
13324 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13325 test_array [0] = 0
13326
13327   ;
13328   return 0;
13329 }
13330 _ACEOF
13331 rm -f conftest.$ac_objext
13332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13333   (eval $ac_compile) 2>&5
13334   ac_status=$?
13335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336   (exit $ac_status); } &&
13337          { ac_try='test -s conftest.$ac_objext'
13338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13339   (eval $ac_try) 2>&5
13340   ac_status=$?
13341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342   (exit $ac_status); }; }; then
13343   ac_lo=$ac_mid; break
13344 else
13345   echo "$as_me: failed program was:" >&5
13346 cat conftest.$ac_ext >&5
13347 ac_hi=`expr '(' $ac_mid ')' - 1`
13348                        if test $ac_mid -le $ac_hi; then
13349                          ac_lo= ac_hi=
13350                          break
13351                        fi
13352                        ac_mid=`expr 2 '*' $ac_mid`
13353 fi
13354 rm -f conftest.$ac_objext conftest.$ac_ext
13355   done
13356 else
13357   echo "$as_me: failed program was:" >&5
13358 cat conftest.$ac_ext >&5
13359 ac_lo= ac_hi=
13360 fi
13361 rm -f conftest.$ac_objext conftest.$ac_ext
13362 fi
13363 rm -f conftest.$ac_objext conftest.$ac_ext
13364 # Binary search between lo and hi bounds.
13365 while test "x$ac_lo" != "x$ac_hi"; do
13366   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13367   cat >conftest.$ac_ext <<_ACEOF
13368 #line $LINENO "configure"
13369 #include "confdefs.h"
13370 $ac_includes_default
13371 struct { char filler; long field; } pgac_struct;
13372 #ifdef F77_DUMMY_MAIN
13373 #  ifdef __cplusplus
13374      extern "C"
13375 #  endif
13376    int F77_DUMMY_MAIN() { return 1; }
13377 #endif
13378 int
13379 main ()
13380 {
13381 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13382 test_array [0] = 0
13383
13384   ;
13385   return 0;
13386 }
13387 _ACEOF
13388 rm -f conftest.$ac_objext
13389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13390   (eval $ac_compile) 2>&5
13391   ac_status=$?
13392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393   (exit $ac_status); } &&
13394          { ac_try='test -s conftest.$ac_objext'
13395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13396   (eval $ac_try) 2>&5
13397   ac_status=$?
13398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399   (exit $ac_status); }; }; then
13400   ac_hi=$ac_mid
13401 else
13402   echo "$as_me: failed program was:" >&5
13403 cat conftest.$ac_ext >&5
13404 ac_lo=`expr '(' $ac_mid ')' + 1`
13405 fi
13406 rm -f conftest.$ac_objext conftest.$ac_ext
13407 done
13408 case $ac_lo in
13409 ?*) pgac_cv_alignof_long=$ac_lo;;
13410 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
13411 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
13412    { (exit 1); exit 1; }; } ;;
13413 esac
13414 else
13415   if test "$cross_compiling" = yes; then
13416   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13417 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13418    { (exit 1); exit 1; }; }
13419 else
13420   cat >conftest.$ac_ext <<_ACEOF
13421 #line $LINENO "configure"
13422 #include "confdefs.h"
13423 $ac_includes_default
13424 struct { char filler; long field; } pgac_struct;
13425 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13426 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13427 #include <stdio.h>
13428 #include <stdlib.h>
13429 #ifdef F77_DUMMY_MAIN
13430 #  ifdef __cplusplus
13431      extern "C"
13432 #  endif
13433    int F77_DUMMY_MAIN() { return 1; }
13434 #endif
13435 int
13436 main ()
13437 {
13438
13439   FILE *f = fopen ("conftest.val", "w");
13440   if (! f)
13441     exit (1);
13442   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13443     {
13444       long i = longval ();
13445       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13446         exit (1);
13447       fprintf (f, "%ld\n", i);
13448     }
13449   else
13450     {
13451       unsigned long i = ulongval ();
13452       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13453         exit (1);
13454       fprintf (f, "%lu\n", i);
13455     }
13456   exit (ferror (f) || fclose (f) != 0);
13457
13458   ;
13459   return 0;
13460 }
13461 _ACEOF
13462 rm -f conftest$ac_exeext
13463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13464   (eval $ac_link) 2>&5
13465   ac_status=$?
13466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469   (eval $ac_try) 2>&5
13470   ac_status=$?
13471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472   (exit $ac_status); }; }; then
13473   pgac_cv_alignof_long=`cat conftest.val`
13474 else
13475   echo "$as_me: program exited with status $ac_status" >&5
13476 echo "$as_me: failed program was:" >&5
13477 cat conftest.$ac_ext >&5
13478 ( exit $ac_status )
13479 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
13480 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
13481    { (exit 1); exit 1; }; }
13482 fi
13483 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13484 fi
13485 fi
13486 rm -f conftest.val
13487 else
13488   pgac_cv_alignof_long=0
13489 fi
13490 fi
13491 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
13492 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
13493 cat >>confdefs.h <<_ACEOF
13494 #define ALIGNOF_LONG $pgac_cv_alignof_long
13495 _ACEOF
13496
13497
13498 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
13499   echo "$as_me:$LINENO: checking for long long int" >&5
13500 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13501 if test "${ac_cv_type_long_long_int+set}" = set; then
13502   echo $ECHO_N "(cached) $ECHO_C" >&6
13503 else
13504   cat >conftest.$ac_ext <<_ACEOF
13505 #line $LINENO "configure"
13506 #include "confdefs.h"
13507 $ac_includes_default
13508 #ifdef F77_DUMMY_MAIN
13509 #  ifdef __cplusplus
13510      extern "C"
13511 #  endif
13512    int F77_DUMMY_MAIN() { return 1; }
13513 #endif
13514 int
13515 main ()
13516 {
13517 if ((long long int *) 0)
13518   return 0;
13519 if (sizeof (long long int))
13520   return 0;
13521   ;
13522   return 0;
13523 }
13524 _ACEOF
13525 rm -f conftest.$ac_objext
13526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13527   (eval $ac_compile) 2>&5
13528   ac_status=$?
13529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530   (exit $ac_status); } &&
13531          { ac_try='test -s conftest.$ac_objext'
13532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13533   (eval $ac_try) 2>&5
13534   ac_status=$?
13535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536   (exit $ac_status); }; }; then
13537   ac_cv_type_long_long_int=yes
13538 else
13539   echo "$as_me: failed program was:" >&5
13540 cat conftest.$ac_ext >&5
13541 ac_cv_type_long_long_int=no
13542 fi
13543 rm -f conftest.$ac_objext conftest.$ac_ext
13544 fi
13545 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13546 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13547
13548 echo "$as_me:$LINENO: checking alignment of long long int" >&5
13549 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
13550 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
13551   echo $ECHO_N "(cached) $ECHO_C" >&6
13552 else
13553   if test "$ac_cv_type_long_long_int" = yes; then
13554   if test "$cross_compiling" = yes; then
13555   # Depending upon the size, compute the lo and hi bounds.
13556 cat >conftest.$ac_ext <<_ACEOF
13557 #line $LINENO "configure"
13558 #include "confdefs.h"
13559 $ac_includes_default
13560 struct { char filler; long long int field; } pgac_struct;
13561 #ifdef F77_DUMMY_MAIN
13562 #  ifdef __cplusplus
13563      extern "C"
13564 #  endif
13565    int F77_DUMMY_MAIN() { return 1; }
13566 #endif
13567 int
13568 main ()
13569 {
13570 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13571 test_array [0] = 0
13572
13573   ;
13574   return 0;
13575 }
13576 _ACEOF
13577 rm -f conftest.$ac_objext
13578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13579   (eval $ac_compile) 2>&5
13580   ac_status=$?
13581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582   (exit $ac_status); } &&
13583          { ac_try='test -s conftest.$ac_objext'
13584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13585   (eval $ac_try) 2>&5
13586   ac_status=$?
13587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588   (exit $ac_status); }; }; then
13589   ac_lo=0 ac_mid=0
13590   while :; do
13591     cat >conftest.$ac_ext <<_ACEOF
13592 #line $LINENO "configure"
13593 #include "confdefs.h"
13594 $ac_includes_default
13595 struct { char filler; long long int field; } pgac_struct;
13596 #ifdef F77_DUMMY_MAIN
13597 #  ifdef __cplusplus
13598      extern "C"
13599 #  endif
13600    int F77_DUMMY_MAIN() { return 1; }
13601 #endif
13602 int
13603 main ()
13604 {
13605 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13606 test_array [0] = 0
13607
13608   ;
13609   return 0;
13610 }
13611 _ACEOF
13612 rm -f conftest.$ac_objext
13613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13614   (eval $ac_compile) 2>&5
13615   ac_status=$?
13616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617   (exit $ac_status); } &&
13618          { ac_try='test -s conftest.$ac_objext'
13619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620   (eval $ac_try) 2>&5
13621   ac_status=$?
13622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623   (exit $ac_status); }; }; then
13624   ac_hi=$ac_mid; break
13625 else
13626   echo "$as_me: failed program was:" >&5
13627 cat conftest.$ac_ext >&5
13628 ac_lo=`expr $ac_mid + 1`
13629                     if test $ac_lo -le $ac_mid; then
13630                       ac_lo= ac_hi=
13631                       break
13632                     fi
13633                     ac_mid=`expr 2 '*' $ac_mid + 1`
13634 fi
13635 rm -f conftest.$ac_objext conftest.$ac_ext
13636   done
13637 else
13638   echo "$as_me: failed program was:" >&5
13639 cat conftest.$ac_ext >&5
13640 cat >conftest.$ac_ext <<_ACEOF
13641 #line $LINENO "configure"
13642 #include "confdefs.h"
13643 $ac_includes_default
13644 struct { char filler; long long int field; } pgac_struct;
13645 #ifdef F77_DUMMY_MAIN
13646 #  ifdef __cplusplus
13647      extern "C"
13648 #  endif
13649    int F77_DUMMY_MAIN() { return 1; }
13650 #endif
13651 int
13652 main ()
13653 {
13654 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13655 test_array [0] = 0
13656
13657   ;
13658   return 0;
13659 }
13660 _ACEOF
13661 rm -f conftest.$ac_objext
13662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13663   (eval $ac_compile) 2>&5
13664   ac_status=$?
13665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666   (exit $ac_status); } &&
13667          { ac_try='test -s conftest.$ac_objext'
13668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13669   (eval $ac_try) 2>&5
13670   ac_status=$?
13671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672   (exit $ac_status); }; }; then
13673   ac_hi=-1 ac_mid=-1
13674   while :; do
13675     cat >conftest.$ac_ext <<_ACEOF
13676 #line $LINENO "configure"
13677 #include "confdefs.h"
13678 $ac_includes_default
13679 struct { char filler; long long int field; } pgac_struct;
13680 #ifdef F77_DUMMY_MAIN
13681 #  ifdef __cplusplus
13682      extern "C"
13683 #  endif
13684    int F77_DUMMY_MAIN() { return 1; }
13685 #endif
13686 int
13687 main ()
13688 {
13689 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13690 test_array [0] = 0
13691
13692   ;
13693   return 0;
13694 }
13695 _ACEOF
13696 rm -f conftest.$ac_objext
13697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13698   (eval $ac_compile) 2>&5
13699   ac_status=$?
13700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701   (exit $ac_status); } &&
13702          { ac_try='test -s conftest.$ac_objext'
13703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13704   (eval $ac_try) 2>&5
13705   ac_status=$?
13706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707   (exit $ac_status); }; }; then
13708   ac_lo=$ac_mid; break
13709 else
13710   echo "$as_me: failed program was:" >&5
13711 cat conftest.$ac_ext >&5
13712 ac_hi=`expr '(' $ac_mid ')' - 1`
13713                        if test $ac_mid -le $ac_hi; then
13714                          ac_lo= ac_hi=
13715                          break
13716                        fi
13717                        ac_mid=`expr 2 '*' $ac_mid`
13718 fi
13719 rm -f conftest.$ac_objext conftest.$ac_ext
13720   done
13721 else
13722   echo "$as_me: failed program was:" >&5
13723 cat conftest.$ac_ext >&5
13724 ac_lo= ac_hi=
13725 fi
13726 rm -f conftest.$ac_objext conftest.$ac_ext
13727 fi
13728 rm -f conftest.$ac_objext conftest.$ac_ext
13729 # Binary search between lo and hi bounds.
13730 while test "x$ac_lo" != "x$ac_hi"; do
13731   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13732   cat >conftest.$ac_ext <<_ACEOF
13733 #line $LINENO "configure"
13734 #include "confdefs.h"
13735 $ac_includes_default
13736 struct { char filler; long long int field; } pgac_struct;
13737 #ifdef F77_DUMMY_MAIN
13738 #  ifdef __cplusplus
13739      extern "C"
13740 #  endif
13741    int F77_DUMMY_MAIN() { return 1; }
13742 #endif
13743 int
13744 main ()
13745 {
13746 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13747 test_array [0] = 0
13748
13749   ;
13750   return 0;
13751 }
13752 _ACEOF
13753 rm -f conftest.$ac_objext
13754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13755   (eval $ac_compile) 2>&5
13756   ac_status=$?
13757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758   (exit $ac_status); } &&
13759          { ac_try='test -s conftest.$ac_objext'
13760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13761   (eval $ac_try) 2>&5
13762   ac_status=$?
13763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764   (exit $ac_status); }; }; then
13765   ac_hi=$ac_mid
13766 else
13767   echo "$as_me: failed program was:" >&5
13768 cat conftest.$ac_ext >&5
13769 ac_lo=`expr '(' $ac_mid ')' + 1`
13770 fi
13771 rm -f conftest.$ac_objext conftest.$ac_ext
13772 done
13773 case $ac_lo in
13774 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
13775 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
13776 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
13777    { (exit 1); exit 1; }; } ;;
13778 esac
13779 else
13780   if test "$cross_compiling" = yes; then
13781   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13782 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13783    { (exit 1); exit 1; }; }
13784 else
13785   cat >conftest.$ac_ext <<_ACEOF
13786 #line $LINENO "configure"
13787 #include "confdefs.h"
13788 $ac_includes_default
13789 struct { char filler; long long int field; } pgac_struct;
13790 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13791 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13792 #include <stdio.h>
13793 #include <stdlib.h>
13794 #ifdef F77_DUMMY_MAIN
13795 #  ifdef __cplusplus
13796      extern "C"
13797 #  endif
13798    int F77_DUMMY_MAIN() { return 1; }
13799 #endif
13800 int
13801 main ()
13802 {
13803
13804   FILE *f = fopen ("conftest.val", "w");
13805   if (! f)
13806     exit (1);
13807   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13808     {
13809       long i = longval ();
13810       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13811         exit (1);
13812       fprintf (f, "%ld\n", i);
13813     }
13814   else
13815     {
13816       unsigned long i = ulongval ();
13817       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13818         exit (1);
13819       fprintf (f, "%lu\n", i);
13820     }
13821   exit (ferror (f) || fclose (f) != 0);
13822
13823   ;
13824   return 0;
13825 }
13826 _ACEOF
13827 rm -f conftest$ac_exeext
13828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13829   (eval $ac_link) 2>&5
13830   ac_status=$?
13831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13834   (eval $ac_try) 2>&5
13835   ac_status=$?
13836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837   (exit $ac_status); }; }; then
13838   pgac_cv_alignof_long_long_int=`cat conftest.val`
13839 else
13840   echo "$as_me: program exited with status $ac_status" >&5
13841 echo "$as_me: failed program was:" >&5
13842 cat conftest.$ac_ext >&5
13843 ( exit $ac_status )
13844 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
13845 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
13846    { (exit 1); exit 1; }; }
13847 fi
13848 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13849 fi
13850 fi
13851 rm -f conftest.val
13852 else
13853   pgac_cv_alignof_long_long_int=0
13854 fi
13855 fi
13856 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
13857 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
13858 cat >>confdefs.h <<_ACEOF
13859 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
13860 _ACEOF
13861
13862
13863 fi
13864 echo "$as_me:$LINENO: checking for double" >&5
13865 echo $ECHO_N "checking for double... $ECHO_C" >&6
13866 if test "${ac_cv_type_double+set}" = set; then
13867   echo $ECHO_N "(cached) $ECHO_C" >&6
13868 else
13869   cat >conftest.$ac_ext <<_ACEOF
13870 #line $LINENO "configure"
13871 #include "confdefs.h"
13872 $ac_includes_default
13873 #ifdef F77_DUMMY_MAIN
13874 #  ifdef __cplusplus
13875      extern "C"
13876 #  endif
13877    int F77_DUMMY_MAIN() { return 1; }
13878 #endif
13879 int
13880 main ()
13881 {
13882 if ((double *) 0)
13883   return 0;
13884 if (sizeof (double))
13885   return 0;
13886   ;
13887   return 0;
13888 }
13889 _ACEOF
13890 rm -f conftest.$ac_objext
13891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13892   (eval $ac_compile) 2>&5
13893   ac_status=$?
13894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895   (exit $ac_status); } &&
13896          { ac_try='test -s conftest.$ac_objext'
13897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898   (eval $ac_try) 2>&5
13899   ac_status=$?
13900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901   (exit $ac_status); }; }; then
13902   ac_cv_type_double=yes
13903 else
13904   echo "$as_me: failed program was:" >&5
13905 cat conftest.$ac_ext >&5
13906 ac_cv_type_double=no
13907 fi
13908 rm -f conftest.$ac_objext conftest.$ac_ext
13909 fi
13910 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
13911 echo "${ECHO_T}$ac_cv_type_double" >&6
13912
13913 echo "$as_me:$LINENO: checking alignment of double" >&5
13914 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
13915 if test "${pgac_cv_alignof_double+set}" = set; then
13916   echo $ECHO_N "(cached) $ECHO_C" >&6
13917 else
13918   if test "$ac_cv_type_double" = yes; then
13919   if test "$cross_compiling" = yes; then
13920   # Depending upon the size, compute the lo and hi bounds.
13921 cat >conftest.$ac_ext <<_ACEOF
13922 #line $LINENO "configure"
13923 #include "confdefs.h"
13924 $ac_includes_default
13925 struct { char filler; double field; } pgac_struct;
13926 #ifdef F77_DUMMY_MAIN
13927 #  ifdef __cplusplus
13928      extern "C"
13929 #  endif
13930    int F77_DUMMY_MAIN() { return 1; }
13931 #endif
13932 int
13933 main ()
13934 {
13935 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13936 test_array [0] = 0
13937
13938   ;
13939   return 0;
13940 }
13941 _ACEOF
13942 rm -f conftest.$ac_objext
13943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13944   (eval $ac_compile) 2>&5
13945   ac_status=$?
13946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947   (exit $ac_status); } &&
13948          { ac_try='test -s conftest.$ac_objext'
13949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950   (eval $ac_try) 2>&5
13951   ac_status=$?
13952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953   (exit $ac_status); }; }; then
13954   ac_lo=0 ac_mid=0
13955   while :; do
13956     cat >conftest.$ac_ext <<_ACEOF
13957 #line $LINENO "configure"
13958 #include "confdefs.h"
13959 $ac_includes_default
13960 struct { char filler; double field; } pgac_struct;
13961 #ifdef F77_DUMMY_MAIN
13962 #  ifdef __cplusplus
13963      extern "C"
13964 #  endif
13965    int F77_DUMMY_MAIN() { return 1; }
13966 #endif
13967 int
13968 main ()
13969 {
13970 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13971 test_array [0] = 0
13972
13973   ;
13974   return 0;
13975 }
13976 _ACEOF
13977 rm -f conftest.$ac_objext
13978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13979   (eval $ac_compile) 2>&5
13980   ac_status=$?
13981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982   (exit $ac_status); } &&
13983          { ac_try='test -s conftest.$ac_objext'
13984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13985   (eval $ac_try) 2>&5
13986   ac_status=$?
13987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988   (exit $ac_status); }; }; then
13989   ac_hi=$ac_mid; break
13990 else
13991   echo "$as_me: failed program was:" >&5
13992 cat conftest.$ac_ext >&5
13993 ac_lo=`expr $ac_mid + 1`
13994                     if test $ac_lo -le $ac_mid; then
13995                       ac_lo= ac_hi=
13996                       break
13997                     fi
13998                     ac_mid=`expr 2 '*' $ac_mid + 1`
13999 fi
14000 rm -f conftest.$ac_objext conftest.$ac_ext
14001   done
14002 else
14003   echo "$as_me: failed program was:" >&5
14004 cat conftest.$ac_ext >&5
14005 cat >conftest.$ac_ext <<_ACEOF
14006 #line $LINENO "configure"
14007 #include "confdefs.h"
14008 $ac_includes_default
14009 struct { char filler; double field; } pgac_struct;
14010 #ifdef F77_DUMMY_MAIN
14011 #  ifdef __cplusplus
14012      extern "C"
14013 #  endif
14014    int F77_DUMMY_MAIN() { return 1; }
14015 #endif
14016 int
14017 main ()
14018 {
14019 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14020 test_array [0] = 0
14021
14022   ;
14023   return 0;
14024 }
14025 _ACEOF
14026 rm -f conftest.$ac_objext
14027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14028   (eval $ac_compile) 2>&5
14029   ac_status=$?
14030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031   (exit $ac_status); } &&
14032          { ac_try='test -s conftest.$ac_objext'
14033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034   (eval $ac_try) 2>&5
14035   ac_status=$?
14036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); }; }; then
14038   ac_hi=-1 ac_mid=-1
14039   while :; do
14040     cat >conftest.$ac_ext <<_ACEOF
14041 #line $LINENO "configure"
14042 #include "confdefs.h"
14043 $ac_includes_default
14044 struct { char filler; double field; } pgac_struct;
14045 #ifdef F77_DUMMY_MAIN
14046 #  ifdef __cplusplus
14047      extern "C"
14048 #  endif
14049    int F77_DUMMY_MAIN() { return 1; }
14050 #endif
14051 int
14052 main ()
14053 {
14054 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14055 test_array [0] = 0
14056
14057   ;
14058   return 0;
14059 }
14060 _ACEOF
14061 rm -f conftest.$ac_objext
14062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14063   (eval $ac_compile) 2>&5
14064   ac_status=$?
14065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066   (exit $ac_status); } &&
14067          { ac_try='test -s conftest.$ac_objext'
14068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14069   (eval $ac_try) 2>&5
14070   ac_status=$?
14071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072   (exit $ac_status); }; }; then
14073   ac_lo=$ac_mid; break
14074 else
14075   echo "$as_me: failed program was:" >&5
14076 cat conftest.$ac_ext >&5
14077 ac_hi=`expr '(' $ac_mid ')' - 1`
14078                        if test $ac_mid -le $ac_hi; then
14079                          ac_lo= ac_hi=
14080                          break
14081                        fi
14082                        ac_mid=`expr 2 '*' $ac_mid`
14083 fi
14084 rm -f conftest.$ac_objext conftest.$ac_ext
14085   done
14086 else
14087   echo "$as_me: failed program was:" >&5
14088 cat conftest.$ac_ext >&5
14089 ac_lo= ac_hi=
14090 fi
14091 rm -f conftest.$ac_objext conftest.$ac_ext
14092 fi
14093 rm -f conftest.$ac_objext conftest.$ac_ext
14094 # Binary search between lo and hi bounds.
14095 while test "x$ac_lo" != "x$ac_hi"; do
14096   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14097   cat >conftest.$ac_ext <<_ACEOF
14098 #line $LINENO "configure"
14099 #include "confdefs.h"
14100 $ac_includes_default
14101 struct { char filler; double field; } pgac_struct;
14102 #ifdef F77_DUMMY_MAIN
14103 #  ifdef __cplusplus
14104      extern "C"
14105 #  endif
14106    int F77_DUMMY_MAIN() { return 1; }
14107 #endif
14108 int
14109 main ()
14110 {
14111 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14112 test_array [0] = 0
14113
14114   ;
14115   return 0;
14116 }
14117 _ACEOF
14118 rm -f conftest.$ac_objext
14119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14120   (eval $ac_compile) 2>&5
14121   ac_status=$?
14122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123   (exit $ac_status); } &&
14124          { ac_try='test -s conftest.$ac_objext'
14125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126   (eval $ac_try) 2>&5
14127   ac_status=$?
14128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129   (exit $ac_status); }; }; then
14130   ac_hi=$ac_mid
14131 else
14132   echo "$as_me: failed program was:" >&5
14133 cat conftest.$ac_ext >&5
14134 ac_lo=`expr '(' $ac_mid ')' + 1`
14135 fi
14136 rm -f conftest.$ac_objext conftest.$ac_ext
14137 done
14138 case $ac_lo in
14139 ?*) pgac_cv_alignof_double=$ac_lo;;
14140 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14141 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14142    { (exit 1); exit 1; }; } ;;
14143 esac
14144 else
14145   if test "$cross_compiling" = yes; then
14146   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14147 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14148    { (exit 1); exit 1; }; }
14149 else
14150   cat >conftest.$ac_ext <<_ACEOF
14151 #line $LINENO "configure"
14152 #include "confdefs.h"
14153 $ac_includes_default
14154 struct { char filler; double field; } pgac_struct;
14155 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14156 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14157 #include <stdio.h>
14158 #include <stdlib.h>
14159 #ifdef F77_DUMMY_MAIN
14160 #  ifdef __cplusplus
14161      extern "C"
14162 #  endif
14163    int F77_DUMMY_MAIN() { return 1; }
14164 #endif
14165 int
14166 main ()
14167 {
14168
14169   FILE *f = fopen ("conftest.val", "w");
14170   if (! f)
14171     exit (1);
14172   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14173     {
14174       long i = longval ();
14175       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14176         exit (1);
14177       fprintf (f, "%ld\n", i);
14178     }
14179   else
14180     {
14181       unsigned long i = ulongval ();
14182       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14183         exit (1);
14184       fprintf (f, "%lu\n", i);
14185     }
14186   exit (ferror (f) || fclose (f) != 0);
14187
14188   ;
14189   return 0;
14190 }
14191 _ACEOF
14192 rm -f conftest$ac_exeext
14193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14194   (eval $ac_link) 2>&5
14195   ac_status=$?
14196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199   (eval $ac_try) 2>&5
14200   ac_status=$?
14201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202   (exit $ac_status); }; }; then
14203   pgac_cv_alignof_double=`cat conftest.val`
14204 else
14205   echo "$as_me: program exited with status $ac_status" >&5
14206 echo "$as_me: failed program was:" >&5
14207 cat conftest.$ac_ext >&5
14208 ( exit $ac_status )
14209 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14210 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14211    { (exit 1); exit 1; }; }
14212 fi
14213 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14214 fi
14215 fi
14216 rm -f conftest.val
14217 else
14218   pgac_cv_alignof_double=0
14219 fi
14220 fi
14221 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
14222 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
14223 cat >>confdefs.h <<_ACEOF
14224 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
14225 _ACEOF
14226
14227
14228
14229 # Compute maximum alignment of any basic type.
14230 # We assume long's alignment is at least as strong as char, short, or int;
14231 # but we must check long long (if it exists) and double.
14232
14233 MAX_ALIGNOF=$pgac_cv_alignof_long
14234 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
14235   MAX_ALIGNOF=$pgac_cv_alignof_double
14236 fi
14237 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
14238   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
14239 fi
14240
14241 cat >>confdefs.h <<_ACEOF
14242 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
14243 _ACEOF
14244
14245
14246
14247 # Some platforms predefine the types int8, int16, etc.  Only check
14248 # a (hopefully) representative subset.
14249 echo "$as_me:$LINENO: checking for int8" >&5
14250 echo $ECHO_N "checking for int8... $ECHO_C" >&6
14251 if test "${ac_cv_type_int8+set}" = set; then
14252   echo $ECHO_N "(cached) $ECHO_C" >&6
14253 else
14254   cat >conftest.$ac_ext <<_ACEOF
14255 #line $LINENO "configure"
14256 #include "confdefs.h"
14257 #include <stdio.h>
14258 #ifdef HAVE_SUPPORTDEFS_H
14259 #include <SupportDefs.h>
14260 #endif
14261
14262 #ifdef F77_DUMMY_MAIN
14263 #  ifdef __cplusplus
14264      extern "C"
14265 #  endif
14266    int F77_DUMMY_MAIN() { return 1; }
14267 #endif
14268 int
14269 main ()
14270 {
14271 if ((int8 *) 0)
14272   return 0;
14273 if (sizeof (int8))
14274   return 0;
14275   ;
14276   return 0;
14277 }
14278 _ACEOF
14279 rm -f conftest.$ac_objext
14280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14281   (eval $ac_compile) 2>&5
14282   ac_status=$?
14283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284   (exit $ac_status); } &&
14285          { ac_try='test -s conftest.$ac_objext'
14286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287   (eval $ac_try) 2>&5
14288   ac_status=$?
14289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290   (exit $ac_status); }; }; then
14291   ac_cv_type_int8=yes
14292 else
14293   echo "$as_me: failed program was:" >&5
14294 cat conftest.$ac_ext >&5
14295 ac_cv_type_int8=no
14296 fi
14297 rm -f conftest.$ac_objext conftest.$ac_ext
14298 fi
14299 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
14300 echo "${ECHO_T}$ac_cv_type_int8" >&6
14301 if test $ac_cv_type_int8 = yes; then
14302
14303 cat >>confdefs.h <<_ACEOF
14304 #define HAVE_INT8 1
14305 _ACEOF
14306
14307
14308 fi
14309 echo "$as_me:$LINENO: checking for uint8" >&5
14310 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
14311 if test "${ac_cv_type_uint8+set}" = set; then
14312   echo $ECHO_N "(cached) $ECHO_C" >&6
14313 else
14314   cat >conftest.$ac_ext <<_ACEOF
14315 #line $LINENO "configure"
14316 #include "confdefs.h"
14317 #include <stdio.h>
14318 #ifdef HAVE_SUPPORTDEFS_H
14319 #include <SupportDefs.h>
14320 #endif
14321
14322 #ifdef F77_DUMMY_MAIN
14323 #  ifdef __cplusplus
14324      extern "C"
14325 #  endif
14326    int F77_DUMMY_MAIN() { return 1; }
14327 #endif
14328 int
14329 main ()
14330 {
14331 if ((uint8 *) 0)
14332   return 0;
14333 if (sizeof (uint8))
14334   return 0;
14335   ;
14336   return 0;
14337 }
14338 _ACEOF
14339 rm -f conftest.$ac_objext
14340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14341   (eval $ac_compile) 2>&5
14342   ac_status=$?
14343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344   (exit $ac_status); } &&
14345          { ac_try='test -s conftest.$ac_objext'
14346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14347   (eval $ac_try) 2>&5
14348   ac_status=$?
14349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350   (exit $ac_status); }; }; then
14351   ac_cv_type_uint8=yes
14352 else
14353   echo "$as_me: failed program was:" >&5
14354 cat conftest.$ac_ext >&5
14355 ac_cv_type_uint8=no
14356 fi
14357 rm -f conftest.$ac_objext conftest.$ac_ext
14358 fi
14359 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
14360 echo "${ECHO_T}$ac_cv_type_uint8" >&6
14361 if test $ac_cv_type_uint8 = yes; then
14362
14363 cat >>confdefs.h <<_ACEOF
14364 #define HAVE_UINT8 1
14365 _ACEOF
14366
14367
14368 fi
14369 echo "$as_me:$LINENO: checking for int64" >&5
14370 echo $ECHO_N "checking for int64... $ECHO_C" >&6
14371 if test "${ac_cv_type_int64+set}" = set; then
14372   echo $ECHO_N "(cached) $ECHO_C" >&6
14373 else
14374   cat >conftest.$ac_ext <<_ACEOF
14375 #line $LINENO "configure"
14376 #include "confdefs.h"
14377 #include <stdio.h>
14378 #ifdef HAVE_SUPPORTDEFS_H
14379 #include <SupportDefs.h>
14380 #endif
14381
14382 #ifdef F77_DUMMY_MAIN
14383 #  ifdef __cplusplus
14384      extern "C"
14385 #  endif
14386    int F77_DUMMY_MAIN() { return 1; }
14387 #endif
14388 int
14389 main ()
14390 {
14391 if ((int64 *) 0)
14392   return 0;
14393 if (sizeof (int64))
14394   return 0;
14395   ;
14396   return 0;
14397 }
14398 _ACEOF
14399 rm -f conftest.$ac_objext
14400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14401   (eval $ac_compile) 2>&5
14402   ac_status=$?
14403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404   (exit $ac_status); } &&
14405          { ac_try='test -s conftest.$ac_objext'
14406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14407   (eval $ac_try) 2>&5
14408   ac_status=$?
14409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410   (exit $ac_status); }; }; then
14411   ac_cv_type_int64=yes
14412 else
14413   echo "$as_me: failed program was:" >&5
14414 cat conftest.$ac_ext >&5
14415 ac_cv_type_int64=no
14416 fi
14417 rm -f conftest.$ac_objext conftest.$ac_ext
14418 fi
14419 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
14420 echo "${ECHO_T}$ac_cv_type_int64" >&6
14421 if test $ac_cv_type_int64 = yes; then
14422
14423 cat >>confdefs.h <<_ACEOF
14424 #define HAVE_INT64 1
14425 _ACEOF
14426
14427
14428 fi
14429 echo "$as_me:$LINENO: checking for uint64" >&5
14430 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
14431 if test "${ac_cv_type_uint64+set}" = set; then
14432   echo $ECHO_N "(cached) $ECHO_C" >&6
14433 else
14434   cat >conftest.$ac_ext <<_ACEOF
14435 #line $LINENO "configure"
14436 #include "confdefs.h"
14437 #include <stdio.h>
14438 #ifdef HAVE_SUPPORTDEFS_H
14439 #include <SupportDefs.h>
14440 #endif
14441
14442 #ifdef F77_DUMMY_MAIN
14443 #  ifdef __cplusplus
14444      extern "C"
14445 #  endif
14446    int F77_DUMMY_MAIN() { return 1; }
14447 #endif
14448 int
14449 main ()
14450 {
14451 if ((uint64 *) 0)
14452   return 0;
14453 if (sizeof (uint64))
14454   return 0;
14455   ;
14456   return 0;
14457 }
14458 _ACEOF
14459 rm -f conftest.$ac_objext
14460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14461   (eval $ac_compile) 2>&5
14462   ac_status=$?
14463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464   (exit $ac_status); } &&
14465          { ac_try='test -s conftest.$ac_objext'
14466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467   (eval $ac_try) 2>&5
14468   ac_status=$?
14469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470   (exit $ac_status); }; }; then
14471   ac_cv_type_uint64=yes
14472 else
14473   echo "$as_me: failed program was:" >&5
14474 cat conftest.$ac_ext >&5
14475 ac_cv_type_uint64=no
14476 fi
14477 rm -f conftest.$ac_objext conftest.$ac_ext
14478 fi
14479 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
14480 echo "${ECHO_T}$ac_cv_type_uint64" >&6
14481 if test $ac_cv_type_uint64 = yes; then
14482
14483 cat >>confdefs.h <<_ACEOF
14484 #define HAVE_UINT64 1
14485 _ACEOF
14486
14487
14488 fi
14489
14490
14491 # We also check for sig_atomic_t, which *should* be defined per ANSI
14492 # C, but is missing on some old platforms.
14493 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
14494 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
14495 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
14496   echo $ECHO_N "(cached) $ECHO_C" >&6
14497 else
14498   cat >conftest.$ac_ext <<_ACEOF
14499 #line $LINENO "configure"
14500 #include "confdefs.h"
14501 #include <signal.h>
14502
14503 #ifdef F77_DUMMY_MAIN
14504 #  ifdef __cplusplus
14505      extern "C"
14506 #  endif
14507    int F77_DUMMY_MAIN() { return 1; }
14508 #endif
14509 int
14510 main ()
14511 {
14512 if ((sig_atomic_t *) 0)
14513   return 0;
14514 if (sizeof (sig_atomic_t))
14515   return 0;
14516   ;
14517   return 0;
14518 }
14519 _ACEOF
14520 rm -f conftest.$ac_objext
14521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14522   (eval $ac_compile) 2>&5
14523   ac_status=$?
14524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525   (exit $ac_status); } &&
14526          { ac_try='test -s conftest.$ac_objext'
14527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528   (eval $ac_try) 2>&5
14529   ac_status=$?
14530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); }; }; then
14532   ac_cv_type_sig_atomic_t=yes
14533 else
14534   echo "$as_me: failed program was:" >&5
14535 cat conftest.$ac_ext >&5
14536 ac_cv_type_sig_atomic_t=no
14537 fi
14538 rm -f conftest.$ac_objext conftest.$ac_ext
14539 fi
14540 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
14541 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
14542 if test $ac_cv_type_sig_atomic_t = yes; then
14543
14544 cat >>confdefs.h <<_ACEOF
14545 #define HAVE_SIG_ATOMIC_T 1
14546 _ACEOF
14547
14548
14549 fi
14550
14551
14552
14553 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
14554 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
14555 if test "${pgac_cv_func_posix_signals+set}" = set; then
14556   echo $ECHO_N "(cached) $ECHO_C" >&6
14557 else
14558   cat >conftest.$ac_ext <<_ACEOF
14559 #line $LINENO "configure"
14560 #include "confdefs.h"
14561 #include <signal.h>
14562
14563 #ifdef F77_DUMMY_MAIN
14564 #  ifdef __cplusplus
14565      extern "C"
14566 #  endif
14567    int F77_DUMMY_MAIN() { return 1; }
14568 #endif
14569 int
14570 main ()
14571 {
14572 struct sigaction act, oact;
14573 sigemptyset(&act.sa_mask);
14574 act.sa_flags = SA_RESTART;
14575 sigaction(0, &act, &oact);
14576   ;
14577   return 0;
14578 }
14579 _ACEOF
14580 rm -f conftest.$ac_objext conftest$ac_exeext
14581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14582   (eval $ac_link) 2>&5
14583   ac_status=$?
14584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585   (exit $ac_status); } &&
14586          { ac_try='test -s conftest$ac_exeext'
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   pgac_cv_func_posix_signals=yes
14593 else
14594   echo "$as_me: failed program was:" >&5
14595 cat conftest.$ac_ext >&5
14596 pgac_cv_func_posix_signals=no
14597 fi
14598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14599 fi
14600 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
14601 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
14602 if test x"$pgac_cv_func_posix_signals" = xyes ; then
14603
14604 cat >>confdefs.h <<\_ACEOF
14605 #define HAVE_POSIX_SIGNALS
14606 _ACEOF
14607
14608 fi
14609 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
14610
14611 if test $ac_cv_func_fseeko = yes; then
14612 # Check whether --enable-largefile or --disable-largefile was given.
14613 if test "${enable_largefile+set}" = set; then
14614   enableval="$enable_largefile"
14615
14616 fi;
14617 if test "$enable_largefile" != no; then
14618
14619   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
14620 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
14621 if test "${ac_cv_sys_largefile_CC+set}" = set; then
14622   echo $ECHO_N "(cached) $ECHO_C" >&6
14623 else
14624   ac_cv_sys_largefile_CC=no
14625      if test "$GCC" != yes; then
14626        ac_save_CC=$CC
14627        while :; do
14628          # IRIX 6.2 and later do not support large files by default,
14629          # so use the C compiler's -n32 option if that helps.
14630          cat >conftest.$ac_ext <<_ACEOF
14631 #line $LINENO "configure"
14632 #include "confdefs.h"
14633 #include <sys/types.h>
14634  /* Check that off_t can represent 2**63 - 1 correctly.
14635     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14636     since some C++ compilers masquerading as C compilers
14637     incorrectly reject 9223372036854775807.  */
14638 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14639   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14640                        && LARGE_OFF_T % 2147483647 == 1)
14641                       ? 1 : -1];
14642 #ifdef F77_DUMMY_MAIN
14643 #  ifdef __cplusplus
14644      extern "C"
14645 #  endif
14646    int F77_DUMMY_MAIN() { return 1; }
14647 #endif
14648 int
14649 main ()
14650 {
14651
14652   ;
14653   return 0;
14654 }
14655 _ACEOF
14656          rm -f conftest.$ac_objext
14657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14658   (eval $ac_compile) 2>&5
14659   ac_status=$?
14660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661   (exit $ac_status); } &&
14662          { ac_try='test -s conftest.$ac_objext'
14663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14664   (eval $ac_try) 2>&5
14665   ac_status=$?
14666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667   (exit $ac_status); }; }; then
14668   break
14669 else
14670   echo "$as_me: failed program was:" >&5
14671 cat conftest.$ac_ext >&5
14672 fi
14673 rm -f conftest.$ac_objext
14674          CC="$CC -n32"
14675          rm -f conftest.$ac_objext
14676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14677   (eval $ac_compile) 2>&5
14678   ac_status=$?
14679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); } &&
14681          { ac_try='test -s conftest.$ac_objext'
14682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683   (eval $ac_try) 2>&5
14684   ac_status=$?
14685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686   (exit $ac_status); }; }; then
14687   ac_cv_sys_largefile_CC=' -n32'; break
14688 else
14689   echo "$as_me: failed program was:" >&5
14690 cat conftest.$ac_ext >&5
14691 fi
14692 rm -f conftest.$ac_objext
14693          break
14694        done
14695        CC=$ac_save_CC
14696        rm -f conftest.$ac_ext
14697     fi
14698 fi
14699 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
14700 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
14701   if test "$ac_cv_sys_largefile_CC" != no; then
14702     CC=$CC$ac_cv_sys_largefile_CC
14703   fi
14704
14705   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14706 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
14707 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
14708   echo $ECHO_N "(cached) $ECHO_C" >&6
14709 else
14710   while :; do
14711   ac_cv_sys_file_offset_bits=no
14712   cat >conftest.$ac_ext <<_ACEOF
14713 #line $LINENO "configure"
14714 #include "confdefs.h"
14715 #include <sys/types.h>
14716  /* Check that off_t can represent 2**63 - 1 correctly.
14717     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14718     since some C++ compilers masquerading as C compilers
14719     incorrectly reject 9223372036854775807.  */
14720 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14721   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14722                        && LARGE_OFF_T % 2147483647 == 1)
14723                       ? 1 : -1];
14724 #ifdef F77_DUMMY_MAIN
14725 #  ifdef __cplusplus
14726      extern "C"
14727 #  endif
14728    int F77_DUMMY_MAIN() { return 1; }
14729 #endif
14730 int
14731 main ()
14732 {
14733
14734   ;
14735   return 0;
14736 }
14737 _ACEOF
14738 rm -f conftest.$ac_objext
14739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14740   (eval $ac_compile) 2>&5
14741   ac_status=$?
14742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743   (exit $ac_status); } &&
14744          { ac_try='test -s conftest.$ac_objext'
14745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14746   (eval $ac_try) 2>&5
14747   ac_status=$?
14748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749   (exit $ac_status); }; }; then
14750   break
14751 else
14752   echo "$as_me: failed program was:" >&5
14753 cat conftest.$ac_ext >&5
14754 fi
14755 rm -f conftest.$ac_objext conftest.$ac_ext
14756   cat >conftest.$ac_ext <<_ACEOF
14757 #line $LINENO "configure"
14758 #include "confdefs.h"
14759 #define _FILE_OFFSET_BITS 64
14760 #include <sys/types.h>
14761  /* Check that off_t can represent 2**63 - 1 correctly.
14762     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14763     since some C++ compilers masquerading as C compilers
14764     incorrectly reject 9223372036854775807.  */
14765 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14766   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14767                        && LARGE_OFF_T % 2147483647 == 1)
14768                       ? 1 : -1];
14769 #ifdef F77_DUMMY_MAIN
14770 #  ifdef __cplusplus
14771      extern "C"
14772 #  endif
14773    int F77_DUMMY_MAIN() { return 1; }
14774 #endif
14775 int
14776 main ()
14777 {
14778
14779   ;
14780   return 0;
14781 }
14782 _ACEOF
14783 rm -f conftest.$ac_objext
14784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14785   (eval $ac_compile) 2>&5
14786   ac_status=$?
14787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788   (exit $ac_status); } &&
14789          { ac_try='test -s conftest.$ac_objext'
14790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791   (eval $ac_try) 2>&5
14792   ac_status=$?
14793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794   (exit $ac_status); }; }; then
14795   ac_cv_sys_file_offset_bits=64; break
14796 else
14797   echo "$as_me: failed program was:" >&5
14798 cat conftest.$ac_ext >&5
14799 fi
14800 rm -f conftest.$ac_objext conftest.$ac_ext
14801   break
14802 done
14803 fi
14804 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
14805 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
14806 if test "$ac_cv_sys_file_offset_bits" != no; then
14807
14808 cat >>confdefs.h <<_ACEOF
14809 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14810 _ACEOF
14811
14812 fi
14813 rm -f conftest*
14814   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
14815 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
14816 if test "${ac_cv_sys_large_files+set}" = set; then
14817   echo $ECHO_N "(cached) $ECHO_C" >&6
14818 else
14819   while :; do
14820   ac_cv_sys_large_files=no
14821   cat >conftest.$ac_ext <<_ACEOF
14822 #line $LINENO "configure"
14823 #include "confdefs.h"
14824 #include <sys/types.h>
14825  /* Check that off_t can represent 2**63 - 1 correctly.
14826     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14827     since some C++ compilers masquerading as C compilers
14828     incorrectly reject 9223372036854775807.  */
14829 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14830   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14831                        && LARGE_OFF_T % 2147483647 == 1)
14832                       ? 1 : -1];
14833 #ifdef F77_DUMMY_MAIN
14834 #  ifdef __cplusplus
14835      extern "C"
14836 #  endif
14837    int F77_DUMMY_MAIN() { return 1; }
14838 #endif
14839 int
14840 main ()
14841 {
14842
14843   ;
14844   return 0;
14845 }
14846 _ACEOF
14847 rm -f conftest.$ac_objext
14848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14849   (eval $ac_compile) 2>&5
14850   ac_status=$?
14851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852   (exit $ac_status); } &&
14853          { ac_try='test -s conftest.$ac_objext'
14854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855   (eval $ac_try) 2>&5
14856   ac_status=$?
14857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858   (exit $ac_status); }; }; then
14859   break
14860 else
14861   echo "$as_me: failed program was:" >&5
14862 cat conftest.$ac_ext >&5
14863 fi
14864 rm -f conftest.$ac_objext conftest.$ac_ext
14865   cat >conftest.$ac_ext <<_ACEOF
14866 #line $LINENO "configure"
14867 #include "confdefs.h"
14868 #define _LARGE_FILES 1
14869 #include <sys/types.h>
14870  /* Check that off_t can represent 2**63 - 1 correctly.
14871     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14872     since some C++ compilers masquerading as C compilers
14873     incorrectly reject 9223372036854775807.  */
14874 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14875   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14876                        && LARGE_OFF_T % 2147483647 == 1)
14877                       ? 1 : -1];
14878 #ifdef F77_DUMMY_MAIN
14879 #  ifdef __cplusplus
14880      extern "C"
14881 #  endif
14882    int F77_DUMMY_MAIN() { return 1; }
14883 #endif
14884 int
14885 main ()
14886 {
14887
14888   ;
14889   return 0;
14890 }
14891 _ACEOF
14892 rm -f conftest.$ac_objext
14893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14894   (eval $ac_compile) 2>&5
14895   ac_status=$?
14896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897   (exit $ac_status); } &&
14898          { ac_try='test -s conftest.$ac_objext'
14899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14900   (eval $ac_try) 2>&5
14901   ac_status=$?
14902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903   (exit $ac_status); }; }; then
14904   ac_cv_sys_large_files=1; break
14905 else
14906   echo "$as_me: failed program was:" >&5
14907 cat conftest.$ac_ext >&5
14908 fi
14909 rm -f conftest.$ac_objext conftest.$ac_ext
14910   break
14911 done
14912 fi
14913 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
14914 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
14915 if test "$ac_cv_sys_large_files" != no; then
14916
14917 cat >>confdefs.h <<_ACEOF
14918 #define _LARGE_FILES $ac_cv_sys_large_files
14919 _ACEOF
14920
14921 fi
14922 rm -f conftest*
14923 fi
14924
14925 fi
14926
14927
14928 # Select semaphore implementation type.
14929 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
14930
14931 cat >>confdefs.h <<\_ACEOF
14932 #define USE_NAMED_POSIX_SEMAPHORES 1
14933 _ACEOF
14934
14935   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
14936 else
14937   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
14938
14939 cat >>confdefs.h <<\_ACEOF
14940 #define USE_UNNAMED_POSIX_SEMAPHORES 1
14941 _ACEOF
14942
14943     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
14944   else
14945
14946 cat >>confdefs.h <<\_ACEOF
14947 #define USE_SYSV_SEMAPHORES 1
14948 _ACEOF
14949
14950     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
14951   fi
14952 fi
14953
14954
14955 # Select shared-memory implementation type.
14956
14957 cat >>confdefs.h <<\_ACEOF
14958 #define USE_SYSV_SHARED_MEMORY 1
14959 _ACEOF
14960
14961 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
14962
14963
14964 if test "$enable_nls" = yes ; then
14965
14966   echo "$as_me:$LINENO: checking for library containing gettext" >&5
14967 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
14968 if test "${ac_cv_search_gettext+set}" = set; then
14969   echo $ECHO_N "(cached) $ECHO_C" >&6
14970 else
14971   ac_func_search_save_LIBS=$LIBS
14972 ac_cv_search_gettext=no
14973 cat >conftest.$ac_ext <<_ACEOF
14974 #line $LINENO "configure"
14975 #include "confdefs.h"
14976
14977 /* Override any gcc2 internal prototype to avoid an error.  */
14978 #ifdef __cplusplus
14979 extern "C"
14980 #endif
14981 /* We use char because int might match the return type of a gcc2
14982    builtin and then its argument prototype would still apply.  */
14983 char gettext ();
14984 #ifdef F77_DUMMY_MAIN
14985 #  ifdef __cplusplus
14986      extern "C"
14987 #  endif
14988    int F77_DUMMY_MAIN() { return 1; }
14989 #endif
14990 int
14991 main ()
14992 {
14993 gettext ();
14994   ;
14995   return 0;
14996 }
14997 _ACEOF
14998 rm -f conftest.$ac_objext conftest$ac_exeext
14999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15000   (eval $ac_link) 2>&5
15001   ac_status=$?
15002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003   (exit $ac_status); } &&
15004          { ac_try='test -s conftest$ac_exeext'
15005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15006   (eval $ac_try) 2>&5
15007   ac_status=$?
15008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009   (exit $ac_status); }; }; then
15010   ac_cv_search_gettext="none required"
15011 else
15012   echo "$as_me: failed program was:" >&5
15013 cat conftest.$ac_ext >&5
15014 fi
15015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15016 if test "$ac_cv_search_gettext" = no; then
15017   for ac_lib in intl; do
15018     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15019     cat >conftest.$ac_ext <<_ACEOF
15020 #line $LINENO "configure"
15021 #include "confdefs.h"
15022
15023 /* Override any gcc2 internal prototype to avoid an error.  */
15024 #ifdef __cplusplus
15025 extern "C"
15026 #endif
15027 /* We use char because int might match the return type of a gcc2
15028    builtin and then its argument prototype would still apply.  */
15029 char gettext ();
15030 #ifdef F77_DUMMY_MAIN
15031 #  ifdef __cplusplus
15032      extern "C"
15033 #  endif
15034    int F77_DUMMY_MAIN() { return 1; }
15035 #endif
15036 int
15037 main ()
15038 {
15039 gettext ();
15040   ;
15041   return 0;
15042 }
15043 _ACEOF
15044 rm -f conftest.$ac_objext conftest$ac_exeext
15045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15046   (eval $ac_link) 2>&5
15047   ac_status=$?
15048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049   (exit $ac_status); } &&
15050          { ac_try='test -s conftest$ac_exeext'
15051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15052   (eval $ac_try) 2>&5
15053   ac_status=$?
15054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055   (exit $ac_status); }; }; then
15056   ac_cv_search_gettext="-l$ac_lib"
15057 break
15058 else
15059   echo "$as_me: failed program was:" >&5
15060 cat conftest.$ac_ext >&5
15061 fi
15062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15063   done
15064 fi
15065 LIBS=$ac_func_search_save_LIBS
15066 fi
15067 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15068 echo "${ECHO_T}$ac_cv_search_gettext" >&6
15069 if test "$ac_cv_search_gettext" != no; then
15070   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15071
15072 else
15073   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15074 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15075    { (exit 1); exit 1; }; }
15076 fi
15077
15078   if test "${ac_cv_header_libintl_h+set}" = set; then
15079   echo "$as_me:$LINENO: checking for libintl.h" >&5
15080 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15081 if test "${ac_cv_header_libintl_h+set}" = set; then
15082   echo $ECHO_N "(cached) $ECHO_C" >&6
15083 fi
15084 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15085 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15086 else
15087   # Is the header compilable?
15088 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15089 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15090 cat >conftest.$ac_ext <<_ACEOF
15091 #line $LINENO "configure"
15092 #include "confdefs.h"
15093 $ac_includes_default
15094 #include <libintl.h>
15095 _ACEOF
15096 rm -f conftest.$ac_objext
15097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15098   (eval $ac_compile) 2>&5
15099   ac_status=$?
15100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   (exit $ac_status); } &&
15102          { ac_try='test -s conftest.$ac_objext'
15103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104   (eval $ac_try) 2>&5
15105   ac_status=$?
15106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107   (exit $ac_status); }; }; then
15108   ac_header_compiler=yes
15109 else
15110   echo "$as_me: failed program was:" >&5
15111 cat conftest.$ac_ext >&5
15112 ac_header_compiler=no
15113 fi
15114 rm -f conftest.$ac_objext conftest.$ac_ext
15115 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15116 echo "${ECHO_T}$ac_header_compiler" >&6
15117
15118 # Is the header present?
15119 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15120 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15121 cat >conftest.$ac_ext <<_ACEOF
15122 #line $LINENO "configure"
15123 #include "confdefs.h"
15124 #include <libintl.h>
15125 _ACEOF
15126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15127   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15128   ac_status=$?
15129   egrep -v '^ *\+' conftest.er1 >conftest.err
15130   rm -f conftest.er1
15131   cat conftest.err >&5
15132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133   (exit $ac_status); } >/dev/null; then
15134   if test -s conftest.err; then
15135     ac_cpp_err=$ac_c_preproc_warn_flag
15136   else
15137     ac_cpp_err=
15138   fi
15139 else
15140   ac_cpp_err=yes
15141 fi
15142 if test -z "$ac_cpp_err"; then
15143   ac_header_preproc=yes
15144 else
15145   echo "$as_me: failed program was:" >&5
15146   cat conftest.$ac_ext >&5
15147   ac_header_preproc=no
15148 fi
15149 rm -f conftest.err conftest.$ac_ext
15150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15151 echo "${ECHO_T}$ac_header_preproc" >&6
15152
15153 # So?  What about this header?
15154 case $ac_header_compiler:$ac_header_preproc in
15155   yes:no )
15156     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15157 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15158     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15159 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15160   no:yes )
15161     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15162 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15163     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15164 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15165     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15166 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15167 esac
15168 echo "$as_me:$LINENO: checking for libintl.h" >&5
15169 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15170 if test "${ac_cv_header_libintl_h+set}" = set; then
15171   echo $ECHO_N "(cached) $ECHO_C" >&6
15172 else
15173   ac_cv_header_libintl_h=$ac_header_preproc
15174 fi
15175 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15176 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15177
15178 fi
15179 if test $ac_cv_header_libintl_h = yes; then
15180   :
15181 else
15182   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15183 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15184    { (exit 1); exit 1; }; }
15185 fi
15186
15187
15188   for ac_prog in msgfmt
15189 do
15190   # Extract the first word of "$ac_prog", so it can be a program name with args.
15191 set dummy $ac_prog; ac_word=$2
15192 echo "$as_me:$LINENO: checking for $ac_word" >&5
15193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15194 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15195   echo $ECHO_N "(cached) $ECHO_C" >&6
15196 else
15197   if test -n "$MSGFMT"; then
15198   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15199 else
15200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15201 for as_dir in $PATH
15202 do
15203   IFS=$as_save_IFS
15204   test -z "$as_dir" && as_dir=.
15205   for ac_exec_ext in '' $ac_executable_extensions; do
15206   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15207     ac_cv_prog_MSGFMT="$ac_prog"
15208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15209     break 2
15210   fi
15211 done
15212 done
15213
15214 fi
15215 fi
15216 MSGFMT=$ac_cv_prog_MSGFMT
15217 if test -n "$MSGFMT"; then
15218   echo "$as_me:$LINENO: result: $MSGFMT" >&5
15219 echo "${ECHO_T}$MSGFMT" >&6
15220 else
15221   echo "$as_me:$LINENO: result: no" >&5
15222 echo "${ECHO_T}no" >&6
15223 fi
15224
15225   test -n "$MSGFMT" && break
15226 done
15227
15228   if test -z "$MSGFMT"; then
15229     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15230 echo "$as_me: error: msgfmt is required for NLS" >&2;}
15231    { (exit 1); exit 1; }; }
15232   fi
15233   for ac_prog in msgmerge
15234 do
15235   # Extract the first word of "$ac_prog", so it can be a program name with args.
15236 set dummy $ac_prog; ac_word=$2
15237 echo "$as_me:$LINENO: checking for $ac_word" >&5
15238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15239 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
15240   echo $ECHO_N "(cached) $ECHO_C" >&6
15241 else
15242   if test -n "$MSGMERGE"; then
15243   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15244 else
15245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15246 for as_dir in $PATH
15247 do
15248   IFS=$as_save_IFS
15249   test -z "$as_dir" && as_dir=.
15250   for ac_exec_ext in '' $ac_executable_extensions; do
15251   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15252     ac_cv_prog_MSGMERGE="$ac_prog"
15253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15254     break 2
15255   fi
15256 done
15257 done
15258
15259 fi
15260 fi
15261 MSGMERGE=$ac_cv_prog_MSGMERGE
15262 if test -n "$MSGMERGE"; then
15263   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15264 echo "${ECHO_T}$MSGMERGE" >&6
15265 else
15266   echo "$as_me:$LINENO: result: no" >&5
15267 echo "${ECHO_T}no" >&6
15268 fi
15269
15270   test -n "$MSGMERGE" && break
15271 done
15272
15273   for ac_prog in xgettext
15274 do
15275   # Extract the first word of "$ac_prog", so it can be a program name with args.
15276 set dummy $ac_prog; ac_word=$2
15277 echo "$as_me:$LINENO: checking for $ac_word" >&5
15278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15279 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
15280   echo $ECHO_N "(cached) $ECHO_C" >&6
15281 else
15282   if test -n "$XGETTEXT"; then
15283   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
15284 else
15285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15286 for as_dir in $PATH
15287 do
15288   IFS=$as_save_IFS
15289   test -z "$as_dir" && as_dir=.
15290   for ac_exec_ext in '' $ac_executable_extensions; do
15291   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15292     ac_cv_prog_XGETTEXT="$ac_prog"
15293     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15294     break 2
15295   fi
15296 done
15297 done
15298
15299 fi
15300 fi
15301 XGETTEXT=$ac_cv_prog_XGETTEXT
15302 if test -n "$XGETTEXT"; then
15303   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15304 echo "${ECHO_T}$XGETTEXT" >&6
15305 else
15306   echo "$as_me:$LINENO: result: no" >&5
15307 echo "${ECHO_T}no" >&6
15308 fi
15309
15310   test -n "$XGETTEXT" && break
15311 done
15312
15313
15314   # Note: share/locale is always the default, independent of $datadir
15315   localedir='${prefix}/share/locale'
15316   if test x"$prefix" = x"NONE"; then
15317     exp_localedir="$ac_default_prefix/share/locale"
15318   else
15319     exp_localedir="$prefix/share/locale"
15320   fi
15321
15322
15323
15324 cat >>confdefs.h <<_ACEOF
15325 #define LOCALEDIR "$exp_localedir"
15326 _ACEOF
15327
15328
15329 fi
15330
15331 # Check for Tcl configuration script tclConfig.sh
15332 if test "$with_tcl" = yes; then
15333     for ac_prog in tclsh tcl
15334 do
15335   # Extract the first word of "$ac_prog", so it can be a program name with args.
15336 set dummy $ac_prog; ac_word=$2
15337 echo "$as_me:$LINENO: checking for $ac_word" >&5
15338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15339 if test "${ac_cv_path_TCLSH+set}" = set; then
15340   echo $ECHO_N "(cached) $ECHO_C" >&6
15341 else
15342   case $TCLSH in
15343   [\\/]* | ?:[\\/]*)
15344   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
15345   ;;
15346   *)
15347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15348 for as_dir in $PATH
15349 do
15350   IFS=$as_save_IFS
15351   test -z "$as_dir" && as_dir=.
15352   for ac_exec_ext in '' $ac_executable_extensions; do
15353   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15354     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
15355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15356     break 2
15357   fi
15358 done
15359 done
15360
15361   ;;
15362 esac
15363 fi
15364 TCLSH=$ac_cv_path_TCLSH
15365
15366 if test -n "$TCLSH"; then
15367   echo "$as_me:$LINENO: result: $TCLSH" >&5
15368 echo "${ECHO_T}$TCLSH" >&6
15369 else
15370   echo "$as_me:$LINENO: result: no" >&5
15371 echo "${ECHO_T}no" >&6
15372 fi
15373
15374   test -n "$TCLSH" && break
15375 done
15376
15377 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
15378 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
15379 # Let user override test
15380 if test -z "$TCL_CONFIG_SH"; then
15381     pgac_test_dirs="$with_tclconfig"
15382
15383     set X $pgac_test_dirs; shift
15384     if test $# -eq 0; then
15385         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
15386 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
15387    { (exit 1); exit 1; }; }
15388         set X `echo 'puts $auto_path' | $TCLSH`; shift
15389     fi
15390
15391     for pgac_dir do
15392         if test -r "$pgac_dir/tclConfig.sh"; then
15393             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
15394             break
15395         fi
15396     done
15397 fi
15398
15399 if test -z "$TCL_CONFIG_SH"; then
15400     echo "$as_me:$LINENO: result: no" >&5
15401 echo "${ECHO_T}no" >&6
15402     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
15403 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
15404    { (exit 1); exit 1; }; }
15405 else
15406     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
15407 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
15408 fi
15409
15410
15411
15412     . "$TCL_CONFIG_SH"
15413 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
15414 eval TCL_LIBS=\"$TCL_LIBS\"
15415 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
15416 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
15417
15418     fi
15419
15420 # Check for Tk configuration script tkConfig.sh
15421 if test "$with_tk" = yes; then
15422     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
15423 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
15424 # Let user override test
15425 if test -z "$TK_CONFIG_SH"; then
15426     pgac_test_dirs="$with_tkconfig $with_tclconfig"
15427
15428     set X $pgac_test_dirs; shift
15429     if test $# -eq 0; then
15430         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
15431 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
15432    { (exit 1); exit 1; }; }
15433         set X `echo 'puts $auto_path' | $TCLSH`; shift
15434     fi
15435
15436     for pgac_dir do
15437         if test -r "$pgac_dir/tkConfig.sh"; then
15438             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
15439             break
15440         fi
15441     done
15442 fi
15443
15444 if test -z "$TK_CONFIG_SH"; then
15445     echo "$as_me:$LINENO: result: no" >&5
15446 echo "${ECHO_T}no" >&6
15447     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
15448 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
15449    { (exit 1); exit 1; }; }
15450 else
15451     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
15452 echo "${ECHO_T}$TK_CONFIG_SH" >&6
15453 fi
15454
15455
15456
15457     . "$TK_CONFIG_SH"
15458 eval TK_LIBS=\"$TK_LIBS\"
15459 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
15460 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
15461
15462 fi
15463
15464
15465 #
15466 # Check for DocBook and tools
15467 #
15468 for ac_prog in onsgmls nsgmls
15469 do
15470   # Extract the first word of "$ac_prog", so it can be a program name with args.
15471 set dummy $ac_prog; ac_word=$2
15472 echo "$as_me:$LINENO: checking for $ac_word" >&5
15473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15474 if test "${ac_cv_prog_NSGMLS+set}" = set; then
15475   echo $ECHO_N "(cached) $ECHO_C" >&6
15476 else
15477   if test -n "$NSGMLS"; then
15478   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
15479 else
15480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15481 for as_dir in $PATH
15482 do
15483   IFS=$as_save_IFS
15484   test -z "$as_dir" && as_dir=.
15485   for ac_exec_ext in '' $ac_executable_extensions; do
15486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15487     ac_cv_prog_NSGMLS="$ac_prog"
15488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15489     break 2
15490   fi
15491 done
15492 done
15493
15494 fi
15495 fi
15496 NSGMLS=$ac_cv_prog_NSGMLS
15497 if test -n "$NSGMLS"; then
15498   echo "$as_me:$LINENO: result: $NSGMLS" >&5
15499 echo "${ECHO_T}$NSGMLS" >&6
15500 else
15501   echo "$as_me:$LINENO: result: no" >&5
15502 echo "${ECHO_T}no" >&6
15503 fi
15504
15505   test -n "$NSGMLS" && break
15506 done
15507
15508 for ac_prog in openjade jade
15509 do
15510   # Extract the first word of "$ac_prog", so it can be a program name with args.
15511 set dummy $ac_prog; ac_word=$2
15512 echo "$as_me:$LINENO: checking for $ac_word" >&5
15513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15514 if test "${ac_cv_prog_JADE+set}" = set; then
15515   echo $ECHO_N "(cached) $ECHO_C" >&6
15516 else
15517   if test -n "$JADE"; then
15518   ac_cv_prog_JADE="$JADE" # Let the user override the test.
15519 else
15520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15521 for as_dir in $PATH
15522 do
15523   IFS=$as_save_IFS
15524   test -z "$as_dir" && as_dir=.
15525   for ac_exec_ext in '' $ac_executable_extensions; do
15526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15527     ac_cv_prog_JADE="$ac_prog"
15528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15529     break 2
15530   fi
15531 done
15532 done
15533
15534 fi
15535 fi
15536 JADE=$ac_cv_prog_JADE
15537 if test -n "$JADE"; then
15538   echo "$as_me:$LINENO: result: $JADE" >&5
15539 echo "${ECHO_T}$JADE" >&6
15540 else
15541   echo "$as_me:$LINENO: result: no" >&5
15542 echo "${ECHO_T}no" >&6
15543 fi
15544
15545   test -n "$JADE" && break
15546 done
15547
15548
15549 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
15550 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
15551 if test "${pgac_cv_check_docbook+set}" = set; then
15552   echo $ECHO_N "(cached) $ECHO_C" >&6
15553 else
15554   cat >conftest.sgml <<EOF
15555 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
15556 <book>
15557  <title>test</title>
15558  <chapter>
15559   <title>random</title>
15560    <sect1>
15561     <title>testsect</title>
15562     <para>text</para>
15563   </sect1>
15564  </chapter>
15565 </book>
15566 EOF
15567
15568 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
15569 if test $? -eq 0; then
15570   pgac_cv_check_docbook=yes
15571 else
15572   pgac_cv_check_docbook=no
15573 fi
15574 rm -f conftest.sgml
15575 fi
15576 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
15577 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
15578
15579 have_docbook=$pgac_cv_check_docbook
15580
15581
15582 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
15583 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
15584 if test "${pgac_cv_path_stylesheets+set}" = set; then
15585   echo $ECHO_N "(cached) $ECHO_C" >&6
15586 else
15587   if test -n "$DOCBOOKSTYLE"; then
15588   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
15589 else
15590   for pgac_prefix in /usr /usr/local /opt; do
15591     for pgac_infix in share lib; do
15592       for pgac_postfix in \
15593         sgml/stylesheets/nwalsh-modular \
15594         sgml/stylesheets/docbook \
15595         sgml/docbook/dsssl/modular \
15596         sgml/docbook/stylesheet/dsssl/modular \
15597         sgml/docbook/dsssl-stylesheets
15598       do
15599         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
15600         if test -r "$pgac_candidate/html/docbook.dsl" \
15601            && test -r "$pgac_candidate/print/docbook.dsl"
15602         then
15603           pgac_cv_path_stylesheets=$pgac_candidate
15604           break 3
15605         fi
15606       done
15607     done
15608   done
15609 fi
15610 fi
15611
15612 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
15613
15614 if test -n "$DOCBOOKSTYLE"; then
15615   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
15616 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
15617 else
15618   echo "$as_me:$LINENO: result: no" >&5
15619 echo "${ECHO_T}no" >&6
15620 fi
15621 if test -n "$DOCBOOKSTYLE"; then
15622   for ac_prog in collateindex.pl
15623 do
15624   # Extract the first word of "$ac_prog", so it can be a program name with args.
15625 set dummy $ac_prog; ac_word=$2
15626 echo "$as_me:$LINENO: checking for $ac_word" >&5
15627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15628 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
15629   echo $ECHO_N "(cached) $ECHO_C" >&6
15630 else
15631   case $COLLATEINDEX in
15632   [\\/]* | ?:[\\/]*)
15633   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
15634   ;;
15635   *)
15636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15637 for as_dir in $DOCBOOKSTYLE/bin $PATH
15638 do
15639   IFS=$as_save_IFS
15640   test -z "$as_dir" && as_dir=.
15641   for ac_exec_ext in '' $ac_executable_extensions; do
15642   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15643     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
15644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15645     break 2
15646   fi
15647 done
15648 done
15649
15650   ;;
15651 esac
15652 fi
15653 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
15654
15655 if test -n "$COLLATEINDEX"; then
15656   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
15657 echo "${ECHO_T}$COLLATEINDEX" >&6
15658 else
15659   echo "$as_me:$LINENO: result: no" >&5
15660 echo "${ECHO_T}no" >&6
15661 fi
15662
15663   test -n "$COLLATEINDEX" && break
15664 done
15665
15666 else
15667   for ac_prog in collateindex.pl
15668 do
15669   # Extract the first word of "$ac_prog", so it can be a program name with args.
15670 set dummy $ac_prog; ac_word=$2
15671 echo "$as_me:$LINENO: checking for $ac_word" >&5
15672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15673 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
15674   echo $ECHO_N "(cached) $ECHO_C" >&6
15675 else
15676   case $COLLATEINDEX in
15677   [\\/]* | ?:[\\/]*)
15678   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
15679   ;;
15680   *)
15681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15682 for as_dir in $PATH
15683 do
15684   IFS=$as_save_IFS
15685   test -z "$as_dir" && as_dir=.
15686   for ac_exec_ext in '' $ac_executable_extensions; do
15687   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15688     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
15689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15690     break 2
15691   fi
15692 done
15693 done
15694
15695   ;;
15696 esac
15697 fi
15698 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
15699
15700 if test -n "$COLLATEINDEX"; then
15701   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
15702 echo "${ECHO_T}$COLLATEINDEX" >&6
15703 else
15704   echo "$as_me:$LINENO: result: no" >&5
15705 echo "${ECHO_T}no" >&6
15706 fi
15707
15708   test -n "$COLLATEINDEX" && break
15709 done
15710
15711 fi
15712 for ac_prog in sgmlspl
15713 do
15714   # Extract the first word of "$ac_prog", so it can be a program name with args.
15715 set dummy $ac_prog; ac_word=$2
15716 echo "$as_me:$LINENO: checking for $ac_word" >&5
15717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15718 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
15719   echo $ECHO_N "(cached) $ECHO_C" >&6
15720 else
15721   if test -n "$SGMLSPL"; then
15722   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
15723 else
15724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15725 for as_dir in $PATH
15726 do
15727   IFS=$as_save_IFS
15728   test -z "$as_dir" && as_dir=.
15729   for ac_exec_ext in '' $ac_executable_extensions; do
15730   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15731     ac_cv_prog_SGMLSPL="$ac_prog"
15732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15733     break 2
15734   fi
15735 done
15736 done
15737
15738 fi
15739 fi
15740 SGMLSPL=$ac_cv_prog_SGMLSPL
15741 if test -n "$SGMLSPL"; then
15742   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
15743 echo "${ECHO_T}$SGMLSPL" >&6
15744 else
15745   echo "$as_me:$LINENO: result: no" >&5
15746 echo "${ECHO_T}no" >&6
15747 fi
15748
15749   test -n "$SGMLSPL" && break
15750 done
15751
15752
15753
15754 # prepare build tree if outside source tree
15755 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
15756 # Note 2: /bin/pwd might be better than shell's built-in at getting
15757 #         a symlink-free name.
15758 if test "$no_create" != yes; then
15759   if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
15760     :
15761   else
15762     vpath_build=yes
15763
15764     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
15765     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
15766     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
15767       || { { echo "$as_me:$LINENO: error: failed" >&5
15768 echo "$as_me: error: failed" >&2;}
15769    { (exit 1); exit 1; }; }
15770     echo "$as_me:$LINENO: result: done" >&5
15771 echo "${ECHO_T}done" >&6
15772   fi
15773 fi
15774
15775
15776 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
15777
15778
15779 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}"
15780
15781
15782 ac_config_headers="$ac_config_headers src/include/pg_config.h"
15783
15784
15785 cat >confcache <<\_ACEOF
15786 # This file is a shell script that caches the results of configure
15787 # tests run on this system so they can be shared between configure
15788 # scripts and configure runs, see configure's option --config-cache.
15789 # It is not useful on other systems.  If it contains results you don't
15790 # want to keep, you may remove or edit it.
15791 #
15792 # config.status only pays attention to the cache file if you give it
15793 # the --recheck option to rerun configure.
15794 #
15795 # `ac_cv_env_foo' variables (set or unset) will be overriden when
15796 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15797 # following values.
15798
15799 _ACEOF
15800
15801 # The following way of writing the cache mishandles newlines in values,
15802 # but we know of no workaround that is simple, portable, and efficient.
15803 # So, don't put newlines in cache variables' values.
15804 # Ultrix sh set writes to stderr and can't be redirected directly,
15805 # and sets the high bit in the cache file unless we assign to the vars.
15806 {
15807   (set) 2>&1 |
15808     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15809     *ac_space=\ *)
15810       # `set' does not quote correctly, so add quotes (double-quote
15811       # substitution turns \\\\ into \\, and sed turns \\ into \).
15812       sed -n \
15813         "s/'/'\\\\''/g;
15814           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15815       ;;
15816     *)
15817       # `set' quotes correctly as required by POSIX, so do not add quotes.
15818       sed -n \
15819         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15820       ;;
15821     esac;
15822 } |
15823   sed '
15824      t clear
15825      : clear
15826      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15827      t end
15828      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15829      : end' >>confcache
15830 if cmp -s $cache_file confcache; then :; else
15831   if test -w $cache_file; then
15832     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15833     cat confcache >$cache_file
15834   else
15835     echo "not updating unwritable cache $cache_file"
15836   fi
15837 fi
15838 rm -f confcache
15839
15840 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15841 # Let make expand exec_prefix.
15842 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15843
15844 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15845 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15846 # trailing colons and then remove the whole line if VPATH becomes empty
15847 # (actually we leave an empty line to preserve line numbers).
15848 if test "x$srcdir" = x.; then
15849   ac_vpsub='/^[         ]*VPATH[        ]*=/{
15850 s/:*\$(srcdir):*/:/;
15851 s/:*\${srcdir}:*/:/;
15852 s/:*@srcdir@:*/:/;
15853 s/^\([^=]*=[    ]*\):*/\1/;
15854 s/:*$//;
15855 s/^[^=]*=[      ]*$//;
15856 }'
15857 fi
15858
15859 DEFS=-DHAVE_CONFIG_H
15860
15861
15862 : ${CONFIG_STATUS=./config.status}
15863 ac_clean_files_save=$ac_clean_files
15864 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15865 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15866 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15867 cat >$CONFIG_STATUS <<_ACEOF
15868 #! $SHELL
15869 # Generated by $as_me.
15870 # Run this file to recreate the current configuration.
15871 # Compiler output produced by configure, useful for debugging
15872 # configure, is in config.log if it exists.
15873
15874 debug=false
15875 SHELL=\${CONFIG_SHELL-$SHELL}
15876 _ACEOF
15877
15878 cat >>$CONFIG_STATUS <<\_ACEOF
15879
15880 ## --------------------- ##
15881 ## M4sh Initialization.  ##
15882 ## --------------------- ##
15883
15884 # Be Bourne compatible
15885 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15886   emulate sh
15887   NULLCMD=:
15888 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15889   set -o posix
15890 fi
15891
15892 # NLS nuisances.
15893 # Support unset when possible.
15894 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15895   as_unset=unset
15896 else
15897   as_unset=false
15898 fi
15899
15900 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
15901     { $as_unset LANG || test "${LANG+set}" != set; } ||
15902       { LANG=C; export LANG; }
15903 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
15904     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
15905       { LC_ALL=C; export LC_ALL; }
15906 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
15907     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
15908       { LC_TIME=C; export LC_TIME; }
15909 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
15910     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
15911       { LC_CTYPE=C; export LC_CTYPE; }
15912 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
15913     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
15914       { LANGUAGE=C; export LANGUAGE; }
15915 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
15916     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
15917       { LC_COLLATE=C; export LC_COLLATE; }
15918 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
15919     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
15920       { LC_NUMERIC=C; export LC_NUMERIC; }
15921 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
15922     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
15923       { LC_MESSAGES=C; export LC_MESSAGES; }
15924
15925
15926 # Name of the executable.
15927 as_me=`(basename "$0") 2>/dev/null ||
15928 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15929          X"$0" : 'X\(//\)$' \| \
15930          X"$0" : 'X\(/\)$' \| \
15931          .     : '\(.\)' 2>/dev/null ||
15932 echo X/"$0" |
15933     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15934           /^X\/\(\/\/\)$/{ s//\1/; q; }
15935           /^X\/\(\/\).*/{ s//\1/; q; }
15936           s/.*/./; q'`
15937
15938 # PATH needs CR, and LINENO needs CR and PATH.
15939 # Avoid depending upon Character Ranges.
15940 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15941 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15942 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15943 as_cr_digits='0123456789'
15944 as_cr_alnum=$as_cr_Letters$as_cr_digits
15945
15946 # The user is always right.
15947 if test "${PATH_SEPARATOR+set}" != set; then
15948   echo "#! /bin/sh" >conftest.sh
15949   echo  "exit 0"   >>conftest.sh
15950   chmod +x conftest.sh
15951   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
15952     PATH_SEPARATOR=';'
15953   else
15954     PATH_SEPARATOR=:
15955   fi
15956   rm -f conftest.sh
15957 fi
15958
15959
15960   as_lineno_1=$LINENO
15961   as_lineno_2=$LINENO
15962   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15963   test "x$as_lineno_1" != "x$as_lineno_2" &&
15964   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15965   # Find who we are.  Look in the path if we contain no path at all
15966   # relative or not.
15967   case $0 in
15968     *[\\/]* ) as_myself=$0 ;;
15969     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15970 for as_dir in $PATH
15971 do
15972   IFS=$as_save_IFS
15973   test -z "$as_dir" && as_dir=.
15974   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15975 done
15976
15977        ;;
15978   esac
15979   # We did not find ourselves, most probably we were run as `sh COMMAND'
15980   # in which case we are not to be found in the path.
15981   if test "x$as_myself" = x; then
15982     as_myself=$0
15983   fi
15984   if test ! -f "$as_myself"; then
15985     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15986 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15987    { (exit 1); exit 1; }; }
15988   fi
15989   case $CONFIG_SHELL in
15990   '')
15991     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15992 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15993 do
15994   IFS=$as_save_IFS
15995   test -z "$as_dir" && as_dir=.
15996   for as_base in sh bash ksh sh5; do
15997          case $as_dir in
15998          /*)
15999            if ("$as_dir/$as_base" -c '
16000   as_lineno_1=$LINENO
16001   as_lineno_2=$LINENO
16002   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16003   test "x$as_lineno_1" != "x$as_lineno_2" &&
16004   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16005              CONFIG_SHELL=$as_dir/$as_base
16006              export CONFIG_SHELL
16007              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16008            fi;;
16009          esac
16010        done
16011 done
16012 ;;
16013   esac
16014
16015   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16016   # uniformly replaced by the line number.  The first 'sed' inserts a
16017   # line-number line before each line; the second 'sed' does the real
16018   # work.  The second script uses 'N' to pair each line-number line
16019   # with the numbered line, and appends trailing '-' during
16020   # substitution so that $LINENO is not a special case at line end.
16021   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16022   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16023   sed '=' <$as_myself |
16024     sed '
16025       N
16026       s,$,-,
16027       : loop
16028       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16029       t loop
16030       s,-$,,
16031       s,^['$as_cr_digits']*\n,,
16032     ' >$as_me.lineno &&
16033   chmod +x $as_me.lineno ||
16034     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16035 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16036    { (exit 1); exit 1; }; }
16037
16038   # Don't try to exec as it changes $[0], causing all sort of problems
16039   # (the dirname of $[0] is not the place where we might find the
16040   # original and so on.  Autoconf is especially sensible to this).
16041   . ./$as_me.lineno
16042   # Exit status is that of the last command.
16043   exit
16044 }
16045
16046
16047 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16048   *c*,-n*) ECHO_N= ECHO_C='
16049 ' ECHO_T='      ' ;;
16050   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16051   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16052 esac
16053
16054 if expr a : '\(a\)' >/dev/null 2>&1; then
16055   as_expr=expr
16056 else
16057   as_expr=false
16058 fi
16059
16060 rm -f conf$$ conf$$.exe conf$$.file
16061 echo >conf$$.file
16062 if ln -s conf$$.file conf$$ 2>/dev/null; then
16063   # We could just check for DJGPP; but this test a) works b) is more generic
16064   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16065   if test -f conf$$.exe; then
16066     # Don't use ln at all; we don't have any links
16067     as_ln_s='cp -p'
16068   else
16069     as_ln_s='ln -s'
16070   fi
16071 elif ln conf$$.file conf$$ 2>/dev/null; then
16072   as_ln_s=ln
16073 else
16074   as_ln_s='cp -p'
16075 fi
16076 rm -f conf$$ conf$$.exe conf$$.file
16077
16078 as_executable_p="test -f"
16079
16080 # Sed expression to map a string onto a valid CPP name.
16081 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16082
16083 # Sed expression to map a string onto a valid variable name.
16084 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16085
16086
16087 # IFS
16088 # We need space, tab and new line, in precisely that order.
16089 as_nl='
16090 '
16091 IFS="   $as_nl"
16092
16093 # CDPATH.
16094 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16095
16096 exec 6>&1
16097
16098 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16099 # report actual input values of CONFIG_FILES etc. instead of their
16100 # values after options handling.  Logging --version etc. is OK.
16101 exec 5>>config.log
16102 {
16103   echo
16104   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16105 ## Running $as_me. ##
16106 _ASBOX
16107 } >&5
16108 cat >&5 <<_CSEOF
16109
16110 This file was extended by PostgreSQL $as_me 7.3b3, which was
16111 generated by GNU Autoconf 2.53.  Invocation command line was
16112
16113   CONFIG_FILES    = $CONFIG_FILES
16114   CONFIG_HEADERS  = $CONFIG_HEADERS
16115   CONFIG_LINKS    = $CONFIG_LINKS
16116   CONFIG_COMMANDS = $CONFIG_COMMANDS
16117   $ $0 $@
16118
16119 _CSEOF
16120 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16121 echo >&5
16122 _ACEOF
16123
16124 # Files that config.status was made for.
16125 if test -n "$ac_config_files"; then
16126   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16127 fi
16128
16129 if test -n "$ac_config_headers"; then
16130   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16131 fi
16132
16133 if test -n "$ac_config_links"; then
16134   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16135 fi
16136
16137 if test -n "$ac_config_commands"; then
16138   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16139 fi
16140
16141 cat >>$CONFIG_STATUS <<\_ACEOF
16142
16143 ac_cs_usage="\
16144 \`$as_me' instantiates files from templates according to the
16145 current configuration.
16146
16147 Usage: $0 [OPTIONS] [FILE]...
16148
16149   -h, --help       print this help, then exit
16150   -V, --version    print version number, then exit
16151   -d, --debug      don't remove temporary files
16152       --recheck    update $as_me by reconfiguring in the same conditions
16153   --file=FILE[:TEMPLATE]
16154                    instantiate the configuration file FILE
16155   --header=FILE[:TEMPLATE]
16156                    instantiate the configuration header FILE
16157
16158 Configuration files:
16159 $config_files
16160
16161 Configuration headers:
16162 $config_headers
16163
16164 Configuration links:
16165 $config_links
16166
16167 Report bugs to <bug-autoconf@gnu.org>."
16168 _ACEOF
16169
16170 cat >>$CONFIG_STATUS <<_ACEOF
16171 ac_cs_version="\\
16172 PostgreSQL config.status 7.3b3
16173 configured by $0, generated by GNU Autoconf 2.53,
16174   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16175
16176 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16177 Free Software Foundation, Inc.
16178 This config.status script is free software; the Free Software Foundation
16179 gives unlimited permission to copy, distribute and modify it."
16180 srcdir=$srcdir
16181 _ACEOF
16182
16183 cat >>$CONFIG_STATUS <<\_ACEOF
16184 # If no file are specified by the user, then we need to provide default
16185 # value.  By we need to know if files were specified by the user.
16186 ac_need_defaults=:
16187 while test $# != 0
16188 do
16189   case $1 in
16190   --*=*)
16191     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16192     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16193     shift
16194     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16195     shift
16196     ;;
16197   -*);;
16198   *) # This is not an option, so the user has probably given explicit
16199      # arguments.
16200      ac_need_defaults=false;;
16201   esac
16202
16203   case $1 in
16204   # Handling of the options.
16205 _ACEOF
16206 cat >>$CONFIG_STATUS <<_ACEOF
16207   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16208     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16209     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16210 _ACEOF
16211 cat >>$CONFIG_STATUS <<\_ACEOF
16212   --version | --vers* | -V )
16213     echo "$ac_cs_version"; exit 0 ;;
16214   --he | --h)
16215     # Conflict between --help and --header
16216     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16217 Try \`$0 --help' for more information." >&5
16218 echo "$as_me: error: ambiguous option: $1
16219 Try \`$0 --help' for more information." >&2;}
16220    { (exit 1); exit 1; }; };;
16221   --help | --hel | -h )
16222     echo "$ac_cs_usage"; exit 0 ;;
16223   --debug | --d* | -d )
16224     debug=: ;;
16225   --file | --fil | --fi | --f )
16226     shift
16227     CONFIG_FILES="$CONFIG_FILES $1"
16228     ac_need_defaults=false;;
16229   --header | --heade | --head | --hea )
16230     shift
16231     CONFIG_HEADERS="$CONFIG_HEADERS $1"
16232     ac_need_defaults=false;;
16233
16234   # This is an error.
16235   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16236 Try \`$0 --help' for more information." >&5
16237 echo "$as_me: error: unrecognized option: $1
16238 Try \`$0 --help' for more information." >&2;}
16239    { (exit 1); exit 1; }; } ;;
16240
16241   *) ac_config_targets="$ac_config_targets $1" ;;
16242
16243   esac
16244   shift
16245 done
16246
16247 _ACEOF
16248
16249
16250
16251
16252
16253 cat >>$CONFIG_STATUS <<\_ACEOF
16254 for ac_config_target in $ac_config_targets
16255 do
16256   case "$ac_config_target" in
16257   # Handling of arguments.
16258   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
16259   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
16260   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
16261   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
16262   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
16263   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
16264   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
16265   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
16266   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
16267   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
16268   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16269 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16270    { (exit 1); exit 1; }; };;
16271   esac
16272 done
16273
16274 # If the user did not use the arguments to specify the items to instantiate,
16275 # then the envvar interface is used.  Set only those that are not.
16276 # We use the long form for the default assignment because of an extremely
16277 # bizarre bug on SunOS 4.1.3.
16278 if $ac_need_defaults; then
16279   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16280   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16281   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16282 fi
16283
16284 # Create a temporary directory, and hook for its removal unless debugging.
16285 $debug ||
16286 {
16287   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16288   trap '{ (exit 1); exit 1; }' 1 2 13 15
16289 }
16290
16291 # Create a (secure) tmp directory for tmp files.
16292 : ${TMPDIR=/tmp}
16293 {
16294   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16295   test -n "$tmp" && test -d "$tmp"
16296 }  ||
16297 {
16298   tmp=$TMPDIR/cs$$-$RANDOM
16299   (umask 077 && mkdir $tmp)
16300 } ||
16301 {
16302    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16303    { (exit 1); exit 1; }
16304 }
16305
16306 _ACEOF
16307
16308 cat >>$CONFIG_STATUS <<_ACEOF
16309
16310 #
16311 # CONFIG_FILES section.
16312 #
16313
16314 # No need to generate the scripts if there are no CONFIG_FILES.
16315 # This happens for instance when ./config.status config.h
16316 if test -n "\$CONFIG_FILES"; then
16317   # Protect against being on the right side of a sed subst in config.status.
16318   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16319    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16320 s,@SHELL@,$SHELL,;t t
16321 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16322 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16323 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16324 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16325 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16326 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16327 s,@exec_prefix@,$exec_prefix,;t t
16328 s,@prefix@,$prefix,;t t
16329 s,@program_transform_name@,$program_transform_name,;t t
16330 s,@bindir@,$bindir,;t t
16331 s,@sbindir@,$sbindir,;t t
16332 s,@libexecdir@,$libexecdir,;t t
16333 s,@datadir@,$datadir,;t t
16334 s,@sysconfdir@,$sysconfdir,;t t
16335 s,@sharedstatedir@,$sharedstatedir,;t t
16336 s,@localstatedir@,$localstatedir,;t t
16337 s,@libdir@,$libdir,;t t
16338 s,@includedir@,$includedir,;t t
16339 s,@oldincludedir@,$oldincludedir,;t t
16340 s,@infodir@,$infodir,;t t
16341 s,@mandir@,$mandir,;t t
16342 s,@build_alias@,$build_alias,;t t
16343 s,@host_alias@,$host_alias,;t t
16344 s,@target_alias@,$target_alias,;t t
16345 s,@DEFS@,$DEFS,;t t
16346 s,@ECHO_C@,$ECHO_C,;t t
16347 s,@ECHO_N@,$ECHO_N,;t t
16348 s,@ECHO_T@,$ECHO_T,;t t
16349 s,@LIBS@,$LIBS,;t t
16350 s,@docdir@,$docdir,;t t
16351 s,@configure_args@,$configure_args,;t t
16352 s,@build@,$build,;t t
16353 s,@build_cpu@,$build_cpu,;t t
16354 s,@build_vendor@,$build_vendor,;t t
16355 s,@build_os@,$build_os,;t t
16356 s,@host@,$host,;t t
16357 s,@host_cpu@,$host_cpu,;t t
16358 s,@host_vendor@,$host_vendor,;t t
16359 s,@host_os@,$host_os,;t t
16360 s,@PORTNAME@,$PORTNAME,;t t
16361 s,@TAS@,$TAS,;t t
16362 s,@enable_nls@,$enable_nls,;t t
16363 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
16364 s,@default_port@,$default_port,;t t
16365 s,@enable_shared@,$enable_shared,;t t
16366 s,@enable_rpath@,$enable_rpath,;t t
16367 s,@enable_debug@,$enable_debug,;t t
16368 s,@CC@,$CC,;t t
16369 s,@CFLAGS@,$CFLAGS,;t t
16370 s,@LDFLAGS@,$LDFLAGS,;t t
16371 s,@CPPFLAGS@,$CPPFLAGS,;t t
16372 s,@ac_ct_CC@,$ac_ct_CC,;t t
16373 s,@EXEEXT@,$EXEEXT,;t t
16374 s,@OBJEXT@,$OBJEXT,;t t
16375 s,@CPP@,$CPP,;t t
16376 s,@GCC@,$GCC,;t t
16377 s,@autodepend@,$autodepend,;t t
16378 s,@INCLUDES@,$INCLUDES,;t t
16379 s,@with_tcl@,$with_tcl,;t t
16380 s,@with_tk@,$with_tk,;t t
16381 s,@with_perl@,$with_perl,;t t
16382 s,@with_python@,$with_python,;t t
16383 s,@ANT@,$ANT,;t t
16384 s,@with_java@,$with_java,;t t
16385 s,@with_krb4@,$with_krb4,;t t
16386 s,@with_krb5@,$with_krb5,;t t
16387 s,@krb_srvtab@,$krb_srvtab,;t t
16388 s,@with_pam@,$with_pam,;t t
16389 s,@with_openssl@,$with_openssl,;t t
16390 s,@ELF_SYS@,$ELF_SYS,;t t
16391 s,@AWK@,$AWK,;t t
16392 s,@FLEX@,$FLEX,;t t
16393 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
16394 s,@LN_S@,$LN_S,;t t
16395 s,@LD@,$LD,;t t
16396 s,@with_gnu_ld@,$with_gnu_ld,;t t
16397 s,@ld_R_works@,$ld_R_works,;t t
16398 s,@RANLIB@,$RANLIB,;t t
16399 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16400 s,@LORDER@,$LORDER,;t t
16401 s,@TAR@,$TAR,;t t
16402 s,@STRIP@,$STRIP,;t t
16403 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16404 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
16405 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
16406 s,@YACC@,$YACC,;t t
16407 s,@YFLAGS@,$YFLAGS,;t t
16408 s,@PERL@,$PERL,;t t
16409 s,@perl_archlibexp@,$perl_archlibexp,;t t
16410 s,@perl_privlibexp@,$perl_privlibexp,;t t
16411 s,@perl_useshrplib@,$perl_useshrplib,;t t
16412 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
16413 s,@PYTHON@,$PYTHON,;t t
16414 s,@python_version@,$python_version,;t t
16415 s,@python_prefix@,$python_prefix,;t t
16416 s,@python_execprefix@,$python_execprefix,;t t
16417 s,@python_configdir@,$python_configdir,;t t
16418 s,@python_moduledir@,$python_moduledir,;t t
16419 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
16420 s,@python_includespec@,$python_includespec,;t t
16421 s,@python_libspec@,$python_libspec,;t t
16422 s,@LIBOBJS@,$LIBOBJS,;t t
16423 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
16424 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
16425 s,@MSGFMT@,$MSGFMT,;t t
16426 s,@MSGMERGE@,$MSGMERGE,;t t
16427 s,@XGETTEXT@,$XGETTEXT,;t t
16428 s,@localedir@,$localedir,;t t
16429 s,@TCLSH@,$TCLSH,;t t
16430 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
16431 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
16432 s,@TCL_LIBS@,$TCL_LIBS,;t t
16433 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
16434 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
16435 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
16436 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
16437 s,@TK_LIBS@,$TK_LIBS,;t t
16438 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
16439 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
16440 s,@NSGMLS@,$NSGMLS,;t t
16441 s,@JADE@,$JADE,;t t
16442 s,@have_docbook@,$have_docbook,;t t
16443 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
16444 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
16445 s,@SGMLSPL@,$SGMLSPL,;t t
16446 s,@vpath_build@,$vpath_build,;t t
16447 CEOF
16448
16449 _ACEOF
16450
16451   cat >>$CONFIG_STATUS <<\_ACEOF
16452   # Split the substitutions into bite-sized pieces for seds with
16453   # small command number limits, like on Digital OSF/1 and HP-UX.
16454   ac_max_sed_lines=48
16455   ac_sed_frag=1 # Number of current file.
16456   ac_beg=1 # First line for current file.
16457   ac_end=$ac_max_sed_lines # Line after last line for current file.
16458   ac_more_lines=:
16459   ac_sed_cmds=
16460   while $ac_more_lines; do
16461     if test $ac_beg -gt 1; then
16462       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16463     else
16464       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16465     fi
16466     if test ! -s $tmp/subs.frag; then
16467       ac_more_lines=false
16468     else
16469       # The purpose of the label and of the branching condition is to
16470       # speed up the sed processing (if there are no `@' at all, there
16471       # is no need to browse any of the substitutions).
16472       # These are the two extra sed commands mentioned above.
16473       (echo ':t
16474   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16475       if test -z "$ac_sed_cmds"; then
16476         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16477       else
16478         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16479       fi
16480       ac_sed_frag=`expr $ac_sed_frag + 1`
16481       ac_beg=$ac_end
16482       ac_end=`expr $ac_end + $ac_max_sed_lines`
16483     fi
16484   done
16485   if test -z "$ac_sed_cmds"; then
16486     ac_sed_cmds=cat
16487   fi
16488 fi # test -n "$CONFIG_FILES"
16489
16490 _ACEOF
16491 cat >>$CONFIG_STATUS <<\_ACEOF
16492 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16493   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16494   case $ac_file in
16495   - | *:- | *:-:* ) # input from stdin
16496         cat >$tmp/stdin
16497         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16498         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16499   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16500         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16501   * )   ac_file_in=$ac_file.in ;;
16502   esac
16503
16504   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16505   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16506 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16507          X"$ac_file" : 'X\(//\)[^/]' \| \
16508          X"$ac_file" : 'X\(//\)$' \| \
16509          X"$ac_file" : 'X\(/\)' \| \
16510          .     : '\(.\)' 2>/dev/null ||
16511 echo X"$ac_file" |
16512     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16513           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16514           /^X\(\/\/\)$/{ s//\1/; q; }
16515           /^X\(\/\).*/{ s//\1/; q; }
16516           s/.*/./; q'`
16517   { case "$ac_dir" in
16518   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16519   *)                      as_incr_dir=.;;
16520 esac
16521 as_dummy="$ac_dir"
16522 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16523   case $as_mkdir_dir in
16524     # Skip DOS drivespec
16525     ?:) as_incr_dir=$as_mkdir_dir ;;
16526     *)
16527       as_incr_dir=$as_incr_dir/$as_mkdir_dir
16528       test -d "$as_incr_dir" ||
16529         mkdir "$as_incr_dir" ||
16530         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16531 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16532    { (exit 1); exit 1; }; }
16533     ;;
16534   esac
16535 done; }
16536
16537   ac_builddir=.
16538
16539 if test "$ac_dir" != .; then
16540   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16541   # A "../" for each directory in $ac_dir_suffix.
16542   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16543 else
16544   ac_dir_suffix= ac_top_builddir=
16545 fi
16546
16547 case $srcdir in
16548   .)  # No --srcdir option.  We are building in place.
16549     ac_srcdir=.
16550     if test -z "$ac_top_builddir"; then
16551        ac_top_srcdir=.
16552     else
16553        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16554     fi ;;
16555   [\\/]* | ?:[\\/]* )  # Absolute path.
16556     ac_srcdir=$srcdir$ac_dir_suffix;
16557     ac_top_srcdir=$srcdir ;;
16558   *) # Relative path.
16559     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16560     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16561 esac
16562 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16563 # absolute.
16564 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16565 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16566 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16567 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16568
16569
16570
16571   if test x"$ac_file" != x-; then
16572     { echo "$as_me:$LINENO: creating $ac_file" >&5
16573 echo "$as_me: creating $ac_file" >&6;}
16574     rm -f "$ac_file"
16575   fi
16576   # Let's still pretend it is `configure' which instantiates (i.e., don't
16577   # use $as_me), people would be surprised to read:
16578   #    /* config.h.  Generated by config.status.  */
16579   if test x"$ac_file" = x-; then
16580     configure_input=
16581   else
16582     configure_input="$ac_file.  "
16583   fi
16584   configure_input=$configure_input"Generated from `echo $ac_file_in |
16585                                      sed 's,.*/,,'` by configure."
16586
16587   # First look for the input files in the build tree, otherwise in the
16588   # src tree.
16589   ac_file_inputs=`IFS=:
16590     for f in $ac_file_in; do
16591       case $f in
16592       -) echo $tmp/stdin ;;
16593       [\\/$]*)
16594          # Absolute (can't be DOS-style, as IFS=:)
16595          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16596 echo "$as_me: error: cannot find input file: $f" >&2;}
16597    { (exit 1); exit 1; }; }
16598          echo $f;;
16599       *) # Relative
16600          if test -f "$f"; then
16601            # Build tree
16602            echo $f
16603          elif test -f "$srcdir/$f"; then
16604            # Source tree
16605            echo $srcdir/$f
16606          else
16607            # /dev/null tree
16608            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16609 echo "$as_me: error: cannot find input file: $f" >&2;}
16610    { (exit 1); exit 1; }; }
16611          fi;;
16612       esac
16613     done` || { (exit 1); exit 1; }
16614 _ACEOF
16615 cat >>$CONFIG_STATUS <<_ACEOF
16616   sed "$ac_vpsub
16617 $extrasub
16618 _ACEOF
16619 cat >>$CONFIG_STATUS <<\_ACEOF
16620 :t
16621 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16622 s,@configure_input@,$configure_input,;t t
16623 s,@srcdir@,$ac_srcdir,;t t
16624 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16625 s,@top_srcdir@,$ac_top_srcdir,;t t
16626 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16627 s,@builddir@,$ac_builddir,;t t
16628 s,@abs_builddir@,$ac_abs_builddir,;t t
16629 s,@top_builddir@,$ac_top_builddir,;t t
16630 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16631 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16632   rm -f $tmp/stdin
16633   if test x"$ac_file" != x-; then
16634     mv $tmp/out $ac_file
16635   else
16636     cat $tmp/out
16637     rm -f $tmp/out
16638   fi
16639
16640 done
16641 _ACEOF
16642 cat >>$CONFIG_STATUS <<\_ACEOF
16643
16644 #
16645 # CONFIG_HEADER section.
16646 #
16647
16648 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16649 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16650 #
16651 # ac_d sets the value in "#define NAME VALUE" lines.
16652 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
16653 ac_dB='[        ].*$,\1#\2'
16654 ac_dC=' '
16655 ac_dD=',;t'
16656 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16657 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16658 ac_uB='$,\1#\2define\3'
16659 ac_uC=' '
16660 ac_uD=',;t'
16661
16662 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16663   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16664   case $ac_file in
16665   - | *:- | *:-:* ) # input from stdin
16666         cat >$tmp/stdin
16667         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16668         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16669   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16670         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16671   * )   ac_file_in=$ac_file.in ;;
16672   esac
16673
16674   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16675 echo "$as_me: creating $ac_file" >&6;}
16676
16677   # First look for the input files in the build tree, otherwise in the
16678   # src tree.
16679   ac_file_inputs=`IFS=:
16680     for f in $ac_file_in; do
16681       case $f in
16682       -) echo $tmp/stdin ;;
16683       [\\/$]*)
16684          # Absolute (can't be DOS-style, as IFS=:)
16685          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16686 echo "$as_me: error: cannot find input file: $f" >&2;}
16687    { (exit 1); exit 1; }; }
16688          echo $f;;
16689       *) # Relative
16690          if test -f "$f"; then
16691            # Build tree
16692            echo $f
16693          elif test -f "$srcdir/$f"; then
16694            # Source tree
16695            echo $srcdir/$f
16696          else
16697            # /dev/null tree
16698            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16699 echo "$as_me: error: cannot find input file: $f" >&2;}
16700    { (exit 1); exit 1; }; }
16701          fi;;
16702       esac
16703     done` || { (exit 1); exit 1; }
16704   # Remove the trailing spaces.
16705   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
16706
16707 _ACEOF
16708
16709 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16710 # `conftest.undefs', that substitutes the proper values into
16711 # config.h.in to produce config.h.  The first handles `#define'
16712 # templates, and the second `#undef' templates.
16713 # And first: Protect against being on the right side of a sed subst in
16714 # config.status.  Protect against being in an unquoted here document
16715 # in config.status.
16716 rm -f conftest.defines conftest.undefs
16717 # Using a here document instead of a string reduces the quoting nightmare.
16718 # Putting comments in sed scripts is not portable.
16719 #
16720 # `end' is used to avoid that the second main sed command (meant for
16721 # 0-ary CPP macros) applies to n-ary macro definitions.
16722 # See the Autoconf documentation for `clear'.
16723 cat >confdef2sed.sed <<\_ACEOF
16724 s/[\\&,]/\\&/g
16725 s,[\\$`],\\&,g
16726 t clear
16727 : clear
16728 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16729 t end
16730 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16731 : end
16732 _ACEOF
16733 # If some macros were called several times there might be several times
16734 # the same #defines, which is useless.  Nevertheless, we may not want to
16735 # sort them, since we want the *last* AC-DEFINE to be honored.
16736 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16737 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16738 rm -f confdef2sed.sed
16739
16740 # This sed command replaces #undef with comments.  This is necessary, for
16741 # example, in the case of _POSIX_SOURCE, which is predefined and required
16742 # on some systems where configure will not decide to define it.
16743 cat >>conftest.undefs <<\_ACEOF
16744 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16745 _ACEOF
16746
16747 # Break up conftest.defines because some shells have a limit on the size
16748 # of here documents, and old seds have small limits too (100 cmds).
16749 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16750 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16751 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16752 echo '  :' >>$CONFIG_STATUS
16753 rm -f conftest.tail
16754 while grep . conftest.defines >/dev/null
16755 do
16756   # Write a limited-size here document to $tmp/defines.sed.
16757   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16758   # Speed up: don't consider the non `#define' lines.
16759   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
16760   # Work around the forget-to-reset-the-flag bug.
16761   echo 't clr' >>$CONFIG_STATUS
16762   echo ': clr' >>$CONFIG_STATUS
16763   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16764   echo 'CEOF
16765   sed -f $tmp/defines.sed $tmp/in >$tmp/out
16766   rm -f $tmp/in
16767   mv $tmp/out $tmp/in
16768 ' >>$CONFIG_STATUS
16769   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16770   rm -f conftest.defines
16771   mv conftest.tail conftest.defines
16772 done
16773 rm -f conftest.defines
16774 echo '  fi # egrep' >>$CONFIG_STATUS
16775 echo >>$CONFIG_STATUS
16776
16777 # Break up conftest.undefs because some shells have a limit on the size
16778 # of here documents, and old seds have small limits too (100 cmds).
16779 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16780 rm -f conftest.tail
16781 while grep . conftest.undefs >/dev/null
16782 do
16783   # Write a limited-size here document to $tmp/undefs.sed.
16784   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16785   # Speed up: don't consider the non `#undef'
16786   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16787   # Work around the forget-to-reset-the-flag bug.
16788   echo 't clr' >>$CONFIG_STATUS
16789   echo ': clr' >>$CONFIG_STATUS
16790   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16791   echo 'CEOF
16792   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16793   rm -f $tmp/in
16794   mv $tmp/out $tmp/in
16795 ' >>$CONFIG_STATUS
16796   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16797   rm -f conftest.undefs
16798   mv conftest.tail conftest.undefs
16799 done
16800 rm -f conftest.undefs
16801
16802 cat >>$CONFIG_STATUS <<\_ACEOF
16803   # Let's still pretend it is `configure' which instantiates (i.e., don't
16804   # use $as_me), people would be surprised to read:
16805   #    /* config.h.  Generated by config.status.  */
16806   if test x"$ac_file" = x-; then
16807     echo "/* Generated by configure.  */" >$tmp/config.h
16808   else
16809     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16810   fi
16811   cat $tmp/in >>$tmp/config.h
16812   rm -f $tmp/in
16813   if test x"$ac_file" != x-; then
16814     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
16815       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16816 echo "$as_me: $ac_file is unchanged" >&6;}
16817     else
16818       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16819 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16820          X"$ac_file" : 'X\(//\)[^/]' \| \
16821          X"$ac_file" : 'X\(//\)$' \| \
16822          X"$ac_file" : 'X\(/\)' \| \
16823          .     : '\(.\)' 2>/dev/null ||
16824 echo X"$ac_file" |
16825     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16826           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16827           /^X\(\/\/\)$/{ s//\1/; q; }
16828           /^X\(\/\).*/{ s//\1/; q; }
16829           s/.*/./; q'`
16830       { case "$ac_dir" in
16831   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16832   *)                      as_incr_dir=.;;
16833 esac
16834 as_dummy="$ac_dir"
16835 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16836   case $as_mkdir_dir in
16837     # Skip DOS drivespec
16838     ?:) as_incr_dir=$as_mkdir_dir ;;
16839     *)
16840       as_incr_dir=$as_incr_dir/$as_mkdir_dir
16841       test -d "$as_incr_dir" ||
16842         mkdir "$as_incr_dir" ||
16843         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16844 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16845    { (exit 1); exit 1; }; }
16846     ;;
16847   esac
16848 done; }
16849
16850       rm -f $ac_file
16851       mv $tmp/config.h $ac_file
16852     fi
16853   else
16854     cat $tmp/config.h
16855     rm -f $tmp/config.h
16856   fi
16857   # Run the commands associated with the file.
16858   case $ac_file in
16859     src/include/pg_config.h )
16860 # Update timestamp for pg_config.h (see Makefile.global)
16861 echo >src/include/stamp-h
16862  ;;
16863   esac
16864 done
16865 _ACEOF
16866 cat >>$CONFIG_STATUS <<\_ACEOF
16867
16868 #
16869 # CONFIG_LINKS section.
16870 #
16871
16872 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
16873   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16874   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16875
16876   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
16877 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
16878
16879   if test ! -r $srcdir/$ac_source; then
16880     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
16881 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
16882    { (exit 1); exit 1; }; }
16883   fi
16884   rm -f $ac_dest
16885
16886   # Make relative symlinks.
16887   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
16888 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16889          X"$ac_dest" : 'X\(//\)[^/]' \| \
16890          X"$ac_dest" : 'X\(//\)$' \| \
16891          X"$ac_dest" : 'X\(/\)' \| \
16892          .     : '\(.\)' 2>/dev/null ||
16893 echo X"$ac_dest" |
16894     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16895           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16896           /^X\(\/\/\)$/{ s//\1/; q; }
16897           /^X\(\/\).*/{ s//\1/; q; }
16898           s/.*/./; q'`
16899   { case "$ac_dest_dir" in
16900   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16901   *)                      as_incr_dir=.;;
16902 esac
16903 as_dummy="$ac_dest_dir"
16904 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16905   case $as_mkdir_dir in
16906     # Skip DOS drivespec
16907     ?:) as_incr_dir=$as_mkdir_dir ;;
16908     *)
16909       as_incr_dir=$as_incr_dir/$as_mkdir_dir
16910       test -d "$as_incr_dir" ||
16911         mkdir "$as_incr_dir" ||
16912         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
16913 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
16914    { (exit 1); exit 1; }; }
16915     ;;
16916   esac
16917 done; }
16918
16919   ac_builddir=.
16920
16921 if test "$ac_dest_dir" != .; then
16922   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
16923   # A "../" for each directory in $ac_dir_suffix.
16924   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16925 else
16926   ac_dir_suffix= ac_top_builddir=
16927 fi
16928
16929 case $srcdir in
16930   .)  # No --srcdir option.  We are building in place.
16931     ac_srcdir=.
16932     if test -z "$ac_top_builddir"; then
16933        ac_top_srcdir=.
16934     else
16935        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16936     fi ;;
16937   [\\/]* | ?:[\\/]* )  # Absolute path.
16938     ac_srcdir=$srcdir$ac_dir_suffix;
16939     ac_top_srcdir=$srcdir ;;
16940   *) # Relative path.
16941     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16942     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16943 esac
16944 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
16945 # absolute.
16946 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
16947 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
16948 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
16949 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
16950
16951
16952   case $srcdir in
16953   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
16954       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
16955   esac
16956
16957   # Make a symlink if possible; otherwise try a hard link.
16958   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
16959     ln $srcdir/$ac_source $ac_dest ||
16960     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
16961 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
16962    { (exit 1); exit 1; }; }
16963 done
16964 _ACEOF
16965
16966 cat >>$CONFIG_STATUS <<\_ACEOF
16967
16968 { (exit 0); exit 0; }
16969 _ACEOF
16970 chmod +x $CONFIG_STATUS
16971 ac_clean_files=$ac_clean_files_save
16972
16973
16974 # configure is writing to config.log, and then calls config.status.
16975 # config.status does its own redirection, appending to config.log.
16976 # Unfortunately, on DOS this fails, as config.log is still kept open
16977 # by configure, so config.status won't be able to write to it; its
16978 # output is simply discarded.  So we exec the FD to /dev/null,
16979 # effectively closing config.log, so it can be properly (re)opened and
16980 # appended to by config.status.  When coming back to configure, we
16981 # need to make the FD available again.
16982 if test "$no_create" != yes; then
16983   ac_cs_success=:
16984   exec 5>/dev/null
16985   $SHELL $CONFIG_STATUS || ac_cs_success=false
16986   exec 5>>config.log
16987   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16988   # would make configure fail if this is the last instruction.
16989   $ac_cs_success || { (exit 1); exit 1; }
16990 fi
16991