]> granicus.if.org Git - postgresql/blob - configure
Add:
[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.4devel.
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.4devel'
262 PACKAGE_STRING='PostgreSQL 7.4devel'
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.4devel 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.4devel:";;
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.4devel
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.4devel, 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
6891 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 utime.h kernel/OS.h kernel/image.h SupportDefs.h
6892 do
6893 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6895   echo "$as_me:$LINENO: checking for $ac_header" >&5
6896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6898   echo $ECHO_N "(cached) $ECHO_C" >&6
6899 fi
6900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6902 else
6903   # Is the header compilable?
6904 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6906 cat >conftest.$ac_ext <<_ACEOF
6907 #line $LINENO "configure"
6908 #include "confdefs.h"
6909 $ac_includes_default
6910 #include <$ac_header>
6911 _ACEOF
6912 rm -f conftest.$ac_objext
6913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6914   (eval $ac_compile) 2>&5
6915   ac_status=$?
6916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917   (exit $ac_status); } &&
6918          { ac_try='test -s conftest.$ac_objext'
6919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920   (eval $ac_try) 2>&5
6921   ac_status=$?
6922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923   (exit $ac_status); }; }; then
6924   ac_header_compiler=yes
6925 else
6926   echo "$as_me: failed program was:" >&5
6927 cat conftest.$ac_ext >&5
6928 ac_header_compiler=no
6929 fi
6930 rm -f conftest.$ac_objext conftest.$ac_ext
6931 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6932 echo "${ECHO_T}$ac_header_compiler" >&6
6933
6934 # Is the header present?
6935 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6937 cat >conftest.$ac_ext <<_ACEOF
6938 #line $LINENO "configure"
6939 #include "confdefs.h"
6940 #include <$ac_header>
6941 _ACEOF
6942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6943   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6944   ac_status=$?
6945   egrep -v '^ *\+' conftest.er1 >conftest.err
6946   rm -f conftest.er1
6947   cat conftest.err >&5
6948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949   (exit $ac_status); } >/dev/null; then
6950   if test -s conftest.err; then
6951     ac_cpp_err=$ac_c_preproc_warn_flag
6952   else
6953     ac_cpp_err=
6954   fi
6955 else
6956   ac_cpp_err=yes
6957 fi
6958 if test -z "$ac_cpp_err"; then
6959   ac_header_preproc=yes
6960 else
6961   echo "$as_me: failed program was:" >&5
6962   cat conftest.$ac_ext >&5
6963   ac_header_preproc=no
6964 fi
6965 rm -f conftest.err conftest.$ac_ext
6966 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6967 echo "${ECHO_T}$ac_header_preproc" >&6
6968
6969 # So?  What about this header?
6970 case $ac_header_compiler:$ac_header_preproc in
6971   yes:no )
6972     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6973 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6974     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6975 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6976   no:yes )
6977     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6979     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6980 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6981     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6982 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6983 esac
6984 echo "$as_me:$LINENO: checking for $ac_header" >&5
6985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6987   echo $ECHO_N "(cached) $ECHO_C" >&6
6988 else
6989   eval "$as_ac_Header=$ac_header_preproc"
6990 fi
6991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6993
6994 fi
6995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6996   cat >>confdefs.h <<_ACEOF
6997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6998 _ACEOF
6999
7000 fi
7001
7002 done
7003
7004
7005 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7006 # netinet/in.h is included first.
7007
7008 for ac_header in netinet/in.h
7009 do
7010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7012   echo "$as_me:$LINENO: checking for $ac_header" >&5
7013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7015   echo $ECHO_N "(cached) $ECHO_C" >&6
7016 fi
7017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7019 else
7020   # Is the header compilable?
7021 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7023 cat >conftest.$ac_ext <<_ACEOF
7024 #line $LINENO "configure"
7025 #include "confdefs.h"
7026 $ac_includes_default
7027 #include <$ac_header>
7028 _ACEOF
7029 rm -f conftest.$ac_objext
7030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7031   (eval $ac_compile) 2>&5
7032   ac_status=$?
7033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034   (exit $ac_status); } &&
7035          { ac_try='test -s conftest.$ac_objext'
7036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037   (eval $ac_try) 2>&5
7038   ac_status=$?
7039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040   (exit $ac_status); }; }; then
7041   ac_header_compiler=yes
7042 else
7043   echo "$as_me: failed program was:" >&5
7044 cat conftest.$ac_ext >&5
7045 ac_header_compiler=no
7046 fi
7047 rm -f conftest.$ac_objext conftest.$ac_ext
7048 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7049 echo "${ECHO_T}$ac_header_compiler" >&6
7050
7051 # Is the header present?
7052 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7054 cat >conftest.$ac_ext <<_ACEOF
7055 #line $LINENO "configure"
7056 #include "confdefs.h"
7057 #include <$ac_header>
7058 _ACEOF
7059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7060   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7061   ac_status=$?
7062   egrep -v '^ *\+' conftest.er1 >conftest.err
7063   rm -f conftest.er1
7064   cat conftest.err >&5
7065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066   (exit $ac_status); } >/dev/null; then
7067   if test -s conftest.err; then
7068     ac_cpp_err=$ac_c_preproc_warn_flag
7069   else
7070     ac_cpp_err=
7071   fi
7072 else
7073   ac_cpp_err=yes
7074 fi
7075 if test -z "$ac_cpp_err"; then
7076   ac_header_preproc=yes
7077 else
7078   echo "$as_me: failed program was:" >&5
7079   cat conftest.$ac_ext >&5
7080   ac_header_preproc=no
7081 fi
7082 rm -f conftest.err conftest.$ac_ext
7083 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7084 echo "${ECHO_T}$ac_header_preproc" >&6
7085
7086 # So?  What about this header?
7087 case $ac_header_compiler:$ac_header_preproc in
7088   yes:no )
7089     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7091     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7093   no:yes )
7094     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7096     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7097 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7098     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7100 esac
7101 echo "$as_me:$LINENO: checking for $ac_header" >&5
7102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7104   echo $ECHO_N "(cached) $ECHO_C" >&6
7105 else
7106   eval "$as_ac_Header=$ac_header_preproc"
7107 fi
7108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7110
7111 fi
7112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7113   cat >>confdefs.h <<_ACEOF
7114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7115 _ACEOF
7116
7117 fi
7118
7119 done
7120
7121
7122 for ac_header in netinet/tcp.h
7123 do
7124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7125 echo "$as_me:$LINENO: checking for $ac_header" >&5
7126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7128   echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130   cat >conftest.$ac_ext <<_ACEOF
7131 #line $LINENO "configure"
7132 #include "confdefs.h"
7133 $ac_includes_default
7134 #ifdef HAVE_NETINET_IN_H
7135 #include <netinet/in.h>
7136 #endif
7137
7138
7139 #include <$ac_header>
7140 _ACEOF
7141 rm -f conftest.$ac_objext
7142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7143   (eval $ac_compile) 2>&5
7144   ac_status=$?
7145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146   (exit $ac_status); } &&
7147          { ac_try='test -s conftest.$ac_objext'
7148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149   (eval $ac_try) 2>&5
7150   ac_status=$?
7151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152   (exit $ac_status); }; }; then
7153   eval "$as_ac_Header=yes"
7154 else
7155   echo "$as_me: failed program was:" >&5
7156 cat conftest.$ac_ext >&5
7157 eval "$as_ac_Header=no"
7158 fi
7159 rm -f conftest.$ac_objext conftest.$ac_ext
7160 fi
7161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7164   cat >>confdefs.h <<_ACEOF
7165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7166 _ACEOF
7167
7168 fi
7169
7170 done
7171
7172
7173 if test "$with_readline" = yes; then
7174
7175 for ac_header in readline/readline.h
7176 do
7177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7179   echo "$as_me:$LINENO: checking for $ac_header" >&5
7180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7182   echo $ECHO_N "(cached) $ECHO_C" >&6
7183 fi
7184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7186 else
7187   # Is the header compilable?
7188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7190 cat >conftest.$ac_ext <<_ACEOF
7191 #line $LINENO "configure"
7192 #include "confdefs.h"
7193 $ac_includes_default
7194 #include <$ac_header>
7195 _ACEOF
7196 rm -f conftest.$ac_objext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7198   (eval $ac_compile) 2>&5
7199   ac_status=$?
7200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201   (exit $ac_status); } &&
7202          { ac_try='test -s conftest.$ac_objext'
7203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204   (eval $ac_try) 2>&5
7205   ac_status=$?
7206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207   (exit $ac_status); }; }; then
7208   ac_header_compiler=yes
7209 else
7210   echo "$as_me: failed program was:" >&5
7211 cat conftest.$ac_ext >&5
7212 ac_header_compiler=no
7213 fi
7214 rm -f conftest.$ac_objext conftest.$ac_ext
7215 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7216 echo "${ECHO_T}$ac_header_compiler" >&6
7217
7218 # Is the header present?
7219 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7221 cat >conftest.$ac_ext <<_ACEOF
7222 #line $LINENO "configure"
7223 #include "confdefs.h"
7224 #include <$ac_header>
7225 _ACEOF
7226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7227   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7228   ac_status=$?
7229   egrep -v '^ *\+' conftest.er1 >conftest.err
7230   rm -f conftest.er1
7231   cat conftest.err >&5
7232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233   (exit $ac_status); } >/dev/null; then
7234   if test -s conftest.err; then
7235     ac_cpp_err=$ac_c_preproc_warn_flag
7236   else
7237     ac_cpp_err=
7238   fi
7239 else
7240   ac_cpp_err=yes
7241 fi
7242 if test -z "$ac_cpp_err"; then
7243   ac_header_preproc=yes
7244 else
7245   echo "$as_me: failed program was:" >&5
7246   cat conftest.$ac_ext >&5
7247   ac_header_preproc=no
7248 fi
7249 rm -f conftest.err conftest.$ac_ext
7250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7251 echo "${ECHO_T}$ac_header_preproc" >&6
7252
7253 # So?  What about this header?
7254 case $ac_header_compiler:$ac_header_preproc in
7255   yes:no )
7256     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7258     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7260   no:yes )
7261     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7262 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7263     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7264 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7265     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7267 esac
7268 echo "$as_me:$LINENO: checking for $ac_header" >&5
7269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7271   echo $ECHO_N "(cached) $ECHO_C" >&6
7272 else
7273   eval "$as_ac_Header=$ac_header_preproc"
7274 fi
7275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7277
7278 fi
7279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7280   cat >>confdefs.h <<_ACEOF
7281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7282 _ACEOF
7283
7284 else
7285
7286 for ac_header in readline.h
7287 do
7288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7290   echo "$as_me:$LINENO: checking for $ac_header" >&5
7291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7293   echo $ECHO_N "(cached) $ECHO_C" >&6
7294 fi
7295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7297 else
7298   # Is the header compilable?
7299 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7301 cat >conftest.$ac_ext <<_ACEOF
7302 #line $LINENO "configure"
7303 #include "confdefs.h"
7304 $ac_includes_default
7305 #include <$ac_header>
7306 _ACEOF
7307 rm -f conftest.$ac_objext
7308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7309   (eval $ac_compile) 2>&5
7310   ac_status=$?
7311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312   (exit $ac_status); } &&
7313          { ac_try='test -s conftest.$ac_objext'
7314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7315   (eval $ac_try) 2>&5
7316   ac_status=$?
7317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318   (exit $ac_status); }; }; then
7319   ac_header_compiler=yes
7320 else
7321   echo "$as_me: failed program was:" >&5
7322 cat conftest.$ac_ext >&5
7323 ac_header_compiler=no
7324 fi
7325 rm -f conftest.$ac_objext conftest.$ac_ext
7326 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7327 echo "${ECHO_T}$ac_header_compiler" >&6
7328
7329 # Is the header present?
7330 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7331 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7332 cat >conftest.$ac_ext <<_ACEOF
7333 #line $LINENO "configure"
7334 #include "confdefs.h"
7335 #include <$ac_header>
7336 _ACEOF
7337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7338   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7339   ac_status=$?
7340   egrep -v '^ *\+' conftest.er1 >conftest.err
7341   rm -f conftest.er1
7342   cat conftest.err >&5
7343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344   (exit $ac_status); } >/dev/null; then
7345   if test -s conftest.err; then
7346     ac_cpp_err=$ac_c_preproc_warn_flag
7347   else
7348     ac_cpp_err=
7349   fi
7350 else
7351   ac_cpp_err=yes
7352 fi
7353 if test -z "$ac_cpp_err"; then
7354   ac_header_preproc=yes
7355 else
7356   echo "$as_me: failed program was:" >&5
7357   cat conftest.$ac_ext >&5
7358   ac_header_preproc=no
7359 fi
7360 rm -f conftest.err conftest.$ac_ext
7361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7362 echo "${ECHO_T}$ac_header_preproc" >&6
7363
7364 # So?  What about this header?
7365 case $ac_header_compiler:$ac_header_preproc in
7366   yes:no )
7367     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7369     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7371   no:yes )
7372     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7374     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7375 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7376     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7378 esac
7379 echo "$as_me:$LINENO: checking for $ac_header" >&5
7380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7382   echo $ECHO_N "(cached) $ECHO_C" >&6
7383 else
7384   eval "$as_ac_Header=$ac_header_preproc"
7385 fi
7386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7388
7389 fi
7390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7391   cat >>confdefs.h <<_ACEOF
7392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7393 _ACEOF
7394
7395 else
7396   { { echo "$as_me:$LINENO: error: readline header not found
7397 If you have readline already installed, see config.log for details on the
7398 failure.  It is possible the compiler isn't looking in the proper directory.
7399 Use --without-readline to disable readline support." >&5
7400 echo "$as_me: error: readline header not found
7401 If you have readline already installed, see config.log for details on the
7402 failure.  It is possible the compiler isn't looking in the proper directory.
7403 Use --without-readline to disable readline support." >&2;}
7404    { (exit 1); exit 1; }; }
7405 fi
7406
7407 done
7408
7409 fi
7410
7411 done
7412
7413
7414 for ac_header in readline/history.h
7415 do
7416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7418   echo "$as_me:$LINENO: checking for $ac_header" >&5
7419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7421   echo $ECHO_N "(cached) $ECHO_C" >&6
7422 fi
7423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7425 else
7426   # Is the header compilable?
7427 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7429 cat >conftest.$ac_ext <<_ACEOF
7430 #line $LINENO "configure"
7431 #include "confdefs.h"
7432 $ac_includes_default
7433 #include <$ac_header>
7434 _ACEOF
7435 rm -f conftest.$ac_objext
7436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7437   (eval $ac_compile) 2>&5
7438   ac_status=$?
7439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440   (exit $ac_status); } &&
7441          { ac_try='test -s conftest.$ac_objext'
7442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7443   (eval $ac_try) 2>&5
7444   ac_status=$?
7445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446   (exit $ac_status); }; }; then
7447   ac_header_compiler=yes
7448 else
7449   echo "$as_me: failed program was:" >&5
7450 cat conftest.$ac_ext >&5
7451 ac_header_compiler=no
7452 fi
7453 rm -f conftest.$ac_objext conftest.$ac_ext
7454 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7455 echo "${ECHO_T}$ac_header_compiler" >&6
7456
7457 # Is the header present?
7458 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7460 cat >conftest.$ac_ext <<_ACEOF
7461 #line $LINENO "configure"
7462 #include "confdefs.h"
7463 #include <$ac_header>
7464 _ACEOF
7465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7466   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7467   ac_status=$?
7468   egrep -v '^ *\+' conftest.er1 >conftest.err
7469   rm -f conftest.er1
7470   cat conftest.err >&5
7471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472   (exit $ac_status); } >/dev/null; then
7473   if test -s conftest.err; then
7474     ac_cpp_err=$ac_c_preproc_warn_flag
7475   else
7476     ac_cpp_err=
7477   fi
7478 else
7479   ac_cpp_err=yes
7480 fi
7481 if test -z "$ac_cpp_err"; then
7482   ac_header_preproc=yes
7483 else
7484   echo "$as_me: failed program was:" >&5
7485   cat conftest.$ac_ext >&5
7486   ac_header_preproc=no
7487 fi
7488 rm -f conftest.err conftest.$ac_ext
7489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7490 echo "${ECHO_T}$ac_header_preproc" >&6
7491
7492 # So?  What about this header?
7493 case $ac_header_compiler:$ac_header_preproc in
7494   yes:no )
7495     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7499   no:yes )
7500     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7502     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7503 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7504     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7506 esac
7507 echo "$as_me:$LINENO: checking for $ac_header" >&5
7508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7510   echo $ECHO_N "(cached) $ECHO_C" >&6
7511 else
7512   eval "$as_ac_Header=$ac_header_preproc"
7513 fi
7514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7516
7517 fi
7518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7519   cat >>confdefs.h <<_ACEOF
7520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7521 _ACEOF
7522
7523 else
7524
7525 for ac_header in history.h
7526 do
7527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7529   echo "$as_me:$LINENO: checking for $ac_header" >&5
7530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7532   echo $ECHO_N "(cached) $ECHO_C" >&6
7533 fi
7534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7536 else
7537   # Is the header compilable?
7538 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7540 cat >conftest.$ac_ext <<_ACEOF
7541 #line $LINENO "configure"
7542 #include "confdefs.h"
7543 $ac_includes_default
7544 #include <$ac_header>
7545 _ACEOF
7546 rm -f conftest.$ac_objext
7547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7548   (eval $ac_compile) 2>&5
7549   ac_status=$?
7550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551   (exit $ac_status); } &&
7552          { ac_try='test -s conftest.$ac_objext'
7553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554   (eval $ac_try) 2>&5
7555   ac_status=$?
7556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557   (exit $ac_status); }; }; then
7558   ac_header_compiler=yes
7559 else
7560   echo "$as_me: failed program was:" >&5
7561 cat conftest.$ac_ext >&5
7562 ac_header_compiler=no
7563 fi
7564 rm -f conftest.$ac_objext conftest.$ac_ext
7565 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7566 echo "${ECHO_T}$ac_header_compiler" >&6
7567
7568 # Is the header present?
7569 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7571 cat >conftest.$ac_ext <<_ACEOF
7572 #line $LINENO "configure"
7573 #include "confdefs.h"
7574 #include <$ac_header>
7575 _ACEOF
7576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7577   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7578   ac_status=$?
7579   egrep -v '^ *\+' conftest.er1 >conftest.err
7580   rm -f conftest.er1
7581   cat conftest.err >&5
7582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583   (exit $ac_status); } >/dev/null; then
7584   if test -s conftest.err; then
7585     ac_cpp_err=$ac_c_preproc_warn_flag
7586   else
7587     ac_cpp_err=
7588   fi
7589 else
7590   ac_cpp_err=yes
7591 fi
7592 if test -z "$ac_cpp_err"; then
7593   ac_header_preproc=yes
7594 else
7595   echo "$as_me: failed program was:" >&5
7596   cat conftest.$ac_ext >&5
7597   ac_header_preproc=no
7598 fi
7599 rm -f conftest.err conftest.$ac_ext
7600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7601 echo "${ECHO_T}$ac_header_preproc" >&6
7602
7603 # So?  What about this header?
7604 case $ac_header_compiler:$ac_header_preproc in
7605   yes:no )
7606     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7608     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7610   no:yes )
7611     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7612 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7613     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7614 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7615     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7617 esac
7618 echo "$as_me:$LINENO: checking for $ac_header" >&5
7619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7621   echo $ECHO_N "(cached) $ECHO_C" >&6
7622 else
7623   eval "$as_ac_Header=$ac_header_preproc"
7624 fi
7625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7627
7628 fi
7629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7630   cat >>confdefs.h <<_ACEOF
7631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7632 _ACEOF
7633
7634 else
7635   { { echo "$as_me:$LINENO: error: history header not found
7636 If you have readline already installed, see config.log for details on the
7637 failure.  It is possible the compiler isn't looking in the proper directory.
7638 Use --without-readline to disable readline support." >&5
7639 echo "$as_me: error: history header not found
7640 If you have readline already installed, see config.log for details on the
7641 failure.  It is possible the compiler isn't looking in the proper directory.
7642 Use --without-readline to disable readline support." >&2;}
7643    { (exit 1); exit 1; }; }
7644 fi
7645
7646 done
7647
7648 fi
7649
7650 done
7651
7652 fi
7653
7654 if test "$with_zlib" = yes; then
7655   if test "${ac_cv_header_zlib_h+set}" = set; then
7656   echo "$as_me:$LINENO: checking for zlib.h" >&5
7657 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7658 if test "${ac_cv_header_zlib_h+set}" = set; then
7659   echo $ECHO_N "(cached) $ECHO_C" >&6
7660 fi
7661 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7662 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7663 else
7664   # Is the header compilable?
7665 echo "$as_me:$LINENO: checking zlib.h usability" >&5
7666 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
7667 cat >conftest.$ac_ext <<_ACEOF
7668 #line $LINENO "configure"
7669 #include "confdefs.h"
7670 $ac_includes_default
7671 #include <zlib.h>
7672 _ACEOF
7673 rm -f conftest.$ac_objext
7674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7675   (eval $ac_compile) 2>&5
7676   ac_status=$?
7677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678   (exit $ac_status); } &&
7679          { ac_try='test -s conftest.$ac_objext'
7680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7681   (eval $ac_try) 2>&5
7682   ac_status=$?
7683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684   (exit $ac_status); }; }; then
7685   ac_header_compiler=yes
7686 else
7687   echo "$as_me: failed program was:" >&5
7688 cat conftest.$ac_ext >&5
7689 ac_header_compiler=no
7690 fi
7691 rm -f conftest.$ac_objext conftest.$ac_ext
7692 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7693 echo "${ECHO_T}$ac_header_compiler" >&6
7694
7695 # Is the header present?
7696 echo "$as_me:$LINENO: checking zlib.h presence" >&5
7697 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
7698 cat >conftest.$ac_ext <<_ACEOF
7699 #line $LINENO "configure"
7700 #include "confdefs.h"
7701 #include <zlib.h>
7702 _ACEOF
7703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7704   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7705   ac_status=$?
7706   egrep -v '^ *\+' conftest.er1 >conftest.err
7707   rm -f conftest.er1
7708   cat conftest.err >&5
7709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710   (exit $ac_status); } >/dev/null; then
7711   if test -s conftest.err; then
7712     ac_cpp_err=$ac_c_preproc_warn_flag
7713   else
7714     ac_cpp_err=
7715   fi
7716 else
7717   ac_cpp_err=yes
7718 fi
7719 if test -z "$ac_cpp_err"; then
7720   ac_header_preproc=yes
7721 else
7722   echo "$as_me: failed program was:" >&5
7723   cat conftest.$ac_ext >&5
7724   ac_header_preproc=no
7725 fi
7726 rm -f conftest.err conftest.$ac_ext
7727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7728 echo "${ECHO_T}$ac_header_preproc" >&6
7729
7730 # So?  What about this header?
7731 case $ac_header_compiler:$ac_header_preproc in
7732   yes:no )
7733     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7734 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7735     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7736 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7737   no:yes )
7738     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
7739 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
7740     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
7741 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
7742     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7743 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7744 esac
7745 echo "$as_me:$LINENO: checking for zlib.h" >&5
7746 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7747 if test "${ac_cv_header_zlib_h+set}" = set; then
7748   echo $ECHO_N "(cached) $ECHO_C" >&6
7749 else
7750   ac_cv_header_zlib_h=$ac_header_preproc
7751 fi
7752 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7753 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7754
7755 fi
7756 if test $ac_cv_header_zlib_h = yes; then
7757   :
7758 else
7759   { { echo "$as_me:$LINENO: error: zlib header not found
7760 If you have zlib already installed, see config.log for details on the
7761 failure.  It is possible the compiler isn't looking in the proper directory.
7762 Use --without-zlib to disable zlib support." >&5
7763 echo "$as_me: error: zlib header not found
7764 If you have zlib already installed, see config.log for details on the
7765 failure.  It is possible the compiler isn't looking in the proper directory.
7766 Use --without-zlib to disable zlib support." >&2;}
7767    { (exit 1); exit 1; }; }
7768 fi
7769
7770
7771 fi
7772
7773 if test "$with_krb4" = yes ; then
7774   if test "${ac_cv_header_krb_h+set}" = set; then
7775   echo "$as_me:$LINENO: checking for krb.h" >&5
7776 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
7777 if test "${ac_cv_header_krb_h+set}" = set; then
7778   echo $ECHO_N "(cached) $ECHO_C" >&6
7779 fi
7780 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
7781 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
7782 else
7783   # Is the header compilable?
7784 echo "$as_me:$LINENO: checking krb.h usability" >&5
7785 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
7786 cat >conftest.$ac_ext <<_ACEOF
7787 #line $LINENO "configure"
7788 #include "confdefs.h"
7789 $ac_includes_default
7790 #include <krb.h>
7791 _ACEOF
7792 rm -f conftest.$ac_objext
7793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7794   (eval $ac_compile) 2>&5
7795   ac_status=$?
7796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797   (exit $ac_status); } &&
7798          { ac_try='test -s conftest.$ac_objext'
7799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7800   (eval $ac_try) 2>&5
7801   ac_status=$?
7802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803   (exit $ac_status); }; }; then
7804   ac_header_compiler=yes
7805 else
7806   echo "$as_me: failed program was:" >&5
7807 cat conftest.$ac_ext >&5
7808 ac_header_compiler=no
7809 fi
7810 rm -f conftest.$ac_objext conftest.$ac_ext
7811 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7812 echo "${ECHO_T}$ac_header_compiler" >&6
7813
7814 # Is the header present?
7815 echo "$as_me:$LINENO: checking krb.h presence" >&5
7816 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
7817 cat >conftest.$ac_ext <<_ACEOF
7818 #line $LINENO "configure"
7819 #include "confdefs.h"
7820 #include <krb.h>
7821 _ACEOF
7822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7823   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7824   ac_status=$?
7825   egrep -v '^ *\+' conftest.er1 >conftest.err
7826   rm -f conftest.er1
7827   cat conftest.err >&5
7828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829   (exit $ac_status); } >/dev/null; then
7830   if test -s conftest.err; then
7831     ac_cpp_err=$ac_c_preproc_warn_flag
7832   else
7833     ac_cpp_err=
7834   fi
7835 else
7836   ac_cpp_err=yes
7837 fi
7838 if test -z "$ac_cpp_err"; then
7839   ac_header_preproc=yes
7840 else
7841   echo "$as_me: failed program was:" >&5
7842   cat conftest.$ac_ext >&5
7843   ac_header_preproc=no
7844 fi
7845 rm -f conftest.err conftest.$ac_ext
7846 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7847 echo "${ECHO_T}$ac_header_preproc" >&6
7848
7849 # So?  What about this header?
7850 case $ac_header_compiler:$ac_header_preproc in
7851   yes:no )
7852     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
7853 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7854     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
7855 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
7856   no:yes )
7857     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
7858 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
7859     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
7860 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
7861     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
7862 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
7863 esac
7864 echo "$as_me:$LINENO: checking for krb.h" >&5
7865 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
7866 if test "${ac_cv_header_krb_h+set}" = set; then
7867   echo $ECHO_N "(cached) $ECHO_C" >&6
7868 else
7869   ac_cv_header_krb_h=$ac_header_preproc
7870 fi
7871 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
7872 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
7873
7874 fi
7875 if test $ac_cv_header_krb_h = yes; then
7876   :
7877 else
7878   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
7879 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
7880    { (exit 1); exit 1; }; }
7881 fi
7882
7883
7884 fi
7885
7886 if test "$with_krb5" = yes ; then
7887   if test "${ac_cv_header_krb5_h+set}" = set; then
7888   echo "$as_me:$LINENO: checking for krb5.h" >&5
7889 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
7890 if test "${ac_cv_header_krb5_h+set}" = set; then
7891   echo $ECHO_N "(cached) $ECHO_C" >&6
7892 fi
7893 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
7894 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
7895 else
7896   # Is the header compilable?
7897 echo "$as_me:$LINENO: checking krb5.h usability" >&5
7898 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
7899 cat >conftest.$ac_ext <<_ACEOF
7900 #line $LINENO "configure"
7901 #include "confdefs.h"
7902 $ac_includes_default
7903 #include <krb5.h>
7904 _ACEOF
7905 rm -f conftest.$ac_objext
7906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7907   (eval $ac_compile) 2>&5
7908   ac_status=$?
7909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910   (exit $ac_status); } &&
7911          { ac_try='test -s conftest.$ac_objext'
7912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913   (eval $ac_try) 2>&5
7914   ac_status=$?
7915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916   (exit $ac_status); }; }; then
7917   ac_header_compiler=yes
7918 else
7919   echo "$as_me: failed program was:" >&5
7920 cat conftest.$ac_ext >&5
7921 ac_header_compiler=no
7922 fi
7923 rm -f conftest.$ac_objext conftest.$ac_ext
7924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7925 echo "${ECHO_T}$ac_header_compiler" >&6
7926
7927 # Is the header present?
7928 echo "$as_me:$LINENO: checking krb5.h presence" >&5
7929 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
7930 cat >conftest.$ac_ext <<_ACEOF
7931 #line $LINENO "configure"
7932 #include "confdefs.h"
7933 #include <krb5.h>
7934 _ACEOF
7935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7936   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7937   ac_status=$?
7938   egrep -v '^ *\+' conftest.er1 >conftest.err
7939   rm -f conftest.er1
7940   cat conftest.err >&5
7941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942   (exit $ac_status); } >/dev/null; then
7943   if test -s conftest.err; then
7944     ac_cpp_err=$ac_c_preproc_warn_flag
7945   else
7946     ac_cpp_err=
7947   fi
7948 else
7949   ac_cpp_err=yes
7950 fi
7951 if test -z "$ac_cpp_err"; then
7952   ac_header_preproc=yes
7953 else
7954   echo "$as_me: failed program was:" >&5
7955   cat conftest.$ac_ext >&5
7956   ac_header_preproc=no
7957 fi
7958 rm -f conftest.err conftest.$ac_ext
7959 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7960 echo "${ECHO_T}$ac_header_preproc" >&6
7961
7962 # So?  What about this header?
7963 case $ac_header_compiler:$ac_header_preproc in
7964   yes:no )
7965     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
7966 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7967     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
7968 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
7969   no:yes )
7970     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
7971 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
7972     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
7973 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
7974     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
7975 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
7976 esac
7977 echo "$as_me:$LINENO: checking for krb5.h" >&5
7978 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
7979 if test "${ac_cv_header_krb5_h+set}" = set; then
7980   echo $ECHO_N "(cached) $ECHO_C" >&6
7981 else
7982   ac_cv_header_krb5_h=$ac_header_preproc
7983 fi
7984 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
7985 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
7986
7987 fi
7988 if test $ac_cv_header_krb5_h = yes; then
7989   :
7990 else
7991   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
7992 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
7993    { (exit 1); exit 1; }; }
7994 fi
7995
7996
7997   if test "${ac_cv_header_com_err_h+set}" = set; then
7998   echo "$as_me:$LINENO: checking for com_err.h" >&5
7999 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8000 if test "${ac_cv_header_com_err_h+set}" = set; then
8001   echo $ECHO_N "(cached) $ECHO_C" >&6
8002 fi
8003 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8004 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8005 else
8006   # Is the header compilable?
8007 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8008 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8009 cat >conftest.$ac_ext <<_ACEOF
8010 #line $LINENO "configure"
8011 #include "confdefs.h"
8012 $ac_includes_default
8013 #include <com_err.h>
8014 _ACEOF
8015 rm -f conftest.$ac_objext
8016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8017   (eval $ac_compile) 2>&5
8018   ac_status=$?
8019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020   (exit $ac_status); } &&
8021          { ac_try='test -s conftest.$ac_objext'
8022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023   (eval $ac_try) 2>&5
8024   ac_status=$?
8025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026   (exit $ac_status); }; }; then
8027   ac_header_compiler=yes
8028 else
8029   echo "$as_me: failed program was:" >&5
8030 cat conftest.$ac_ext >&5
8031 ac_header_compiler=no
8032 fi
8033 rm -f conftest.$ac_objext conftest.$ac_ext
8034 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8035 echo "${ECHO_T}$ac_header_compiler" >&6
8036
8037 # Is the header present?
8038 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8039 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8040 cat >conftest.$ac_ext <<_ACEOF
8041 #line $LINENO "configure"
8042 #include "confdefs.h"
8043 #include <com_err.h>
8044 _ACEOF
8045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8046   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8047   ac_status=$?
8048   egrep -v '^ *\+' conftest.er1 >conftest.err
8049   rm -f conftest.er1
8050   cat conftest.err >&5
8051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052   (exit $ac_status); } >/dev/null; then
8053   if test -s conftest.err; then
8054     ac_cpp_err=$ac_c_preproc_warn_flag
8055   else
8056     ac_cpp_err=
8057   fi
8058 else
8059   ac_cpp_err=yes
8060 fi
8061 if test -z "$ac_cpp_err"; then
8062   ac_header_preproc=yes
8063 else
8064   echo "$as_me: failed program was:" >&5
8065   cat conftest.$ac_ext >&5
8066   ac_header_preproc=no
8067 fi
8068 rm -f conftest.err conftest.$ac_ext
8069 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8070 echo "${ECHO_T}$ac_header_preproc" >&6
8071
8072 # So?  What about this header?
8073 case $ac_header_compiler:$ac_header_preproc in
8074   yes:no )
8075     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8076 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8077     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8078 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8079   no:yes )
8080     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8081 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8082     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8083 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8084     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8085 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8086 esac
8087 echo "$as_me:$LINENO: checking for com_err.h" >&5
8088 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8089 if test "${ac_cv_header_com_err_h+set}" = set; then
8090   echo $ECHO_N "(cached) $ECHO_C" >&6
8091 else
8092   ac_cv_header_com_err_h=$ac_header_preproc
8093 fi
8094 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8095 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8096
8097 fi
8098 if test $ac_cv_header_com_err_h = yes; then
8099   :
8100 else
8101   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8102 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8103    { (exit 1); exit 1; }; }
8104 fi
8105
8106
8107 fi
8108
8109 if test "$with_openssl" = yes ; then
8110   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8111   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8112 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8113 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8114   echo $ECHO_N "(cached) $ECHO_C" >&6
8115 fi
8116 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8117 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8118 else
8119   # Is the header compilable?
8120 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8121 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8122 cat >conftest.$ac_ext <<_ACEOF
8123 #line $LINENO "configure"
8124 #include "confdefs.h"
8125 $ac_includes_default
8126 #include <openssl/ssl.h>
8127 _ACEOF
8128 rm -f conftest.$ac_objext
8129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8130   (eval $ac_compile) 2>&5
8131   ac_status=$?
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); } &&
8134          { ac_try='test -s conftest.$ac_objext'
8135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136   (eval $ac_try) 2>&5
8137   ac_status=$?
8138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139   (exit $ac_status); }; }; then
8140   ac_header_compiler=yes
8141 else
8142   echo "$as_me: failed program was:" >&5
8143 cat conftest.$ac_ext >&5
8144 ac_header_compiler=no
8145 fi
8146 rm -f conftest.$ac_objext conftest.$ac_ext
8147 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8148 echo "${ECHO_T}$ac_header_compiler" >&6
8149
8150 # Is the header present?
8151 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8152 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8153 cat >conftest.$ac_ext <<_ACEOF
8154 #line $LINENO "configure"
8155 #include "confdefs.h"
8156 #include <openssl/ssl.h>
8157 _ACEOF
8158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8159   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8160   ac_status=$?
8161   egrep -v '^ *\+' conftest.er1 >conftest.err
8162   rm -f conftest.er1
8163   cat conftest.err >&5
8164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165   (exit $ac_status); } >/dev/null; then
8166   if test -s conftest.err; then
8167     ac_cpp_err=$ac_c_preproc_warn_flag
8168   else
8169     ac_cpp_err=
8170   fi
8171 else
8172   ac_cpp_err=yes
8173 fi
8174 if test -z "$ac_cpp_err"; then
8175   ac_header_preproc=yes
8176 else
8177   echo "$as_me: failed program was:" >&5
8178   cat conftest.$ac_ext >&5
8179   ac_header_preproc=no
8180 fi
8181 rm -f conftest.err conftest.$ac_ext
8182 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8183 echo "${ECHO_T}$ac_header_preproc" >&6
8184
8185 # So?  What about this header?
8186 case $ac_header_compiler:$ac_header_preproc in
8187   yes:no )
8188     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8189 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8190     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8191 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8192   no:yes )
8193     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8194 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8195     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8196 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8197     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8198 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8199 esac
8200 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8201 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8202 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8203   echo $ECHO_N "(cached) $ECHO_C" >&6
8204 else
8205   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8206 fi
8207 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8208 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8209
8210 fi
8211 if test $ac_cv_header_openssl_ssl_h = yes; then
8212   :
8213 else
8214   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8215 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8216    { (exit 1); exit 1; }; }
8217 fi
8218
8219
8220   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8221   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8222 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8223 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8224   echo $ECHO_N "(cached) $ECHO_C" >&6
8225 fi
8226 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8227 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8228 else
8229   # Is the header compilable?
8230 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8231 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8232 cat >conftest.$ac_ext <<_ACEOF
8233 #line $LINENO "configure"
8234 #include "confdefs.h"
8235 $ac_includes_default
8236 #include <openssl/err.h>
8237 _ACEOF
8238 rm -f conftest.$ac_objext
8239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8240   (eval $ac_compile) 2>&5
8241   ac_status=$?
8242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243   (exit $ac_status); } &&
8244          { ac_try='test -s conftest.$ac_objext'
8245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246   (eval $ac_try) 2>&5
8247   ac_status=$?
8248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249   (exit $ac_status); }; }; then
8250   ac_header_compiler=yes
8251 else
8252   echo "$as_me: failed program was:" >&5
8253 cat conftest.$ac_ext >&5
8254 ac_header_compiler=no
8255 fi
8256 rm -f conftest.$ac_objext conftest.$ac_ext
8257 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8258 echo "${ECHO_T}$ac_header_compiler" >&6
8259
8260 # Is the header present?
8261 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8262 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8263 cat >conftest.$ac_ext <<_ACEOF
8264 #line $LINENO "configure"
8265 #include "confdefs.h"
8266 #include <openssl/err.h>
8267 _ACEOF
8268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8269   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8270   ac_status=$?
8271   egrep -v '^ *\+' conftest.er1 >conftest.err
8272   rm -f conftest.er1
8273   cat conftest.err >&5
8274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275   (exit $ac_status); } >/dev/null; then
8276   if test -s conftest.err; then
8277     ac_cpp_err=$ac_c_preproc_warn_flag
8278   else
8279     ac_cpp_err=
8280   fi
8281 else
8282   ac_cpp_err=yes
8283 fi
8284 if test -z "$ac_cpp_err"; then
8285   ac_header_preproc=yes
8286 else
8287   echo "$as_me: failed program was:" >&5
8288   cat conftest.$ac_ext >&5
8289   ac_header_preproc=no
8290 fi
8291 rm -f conftest.err conftest.$ac_ext
8292 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8293 echo "${ECHO_T}$ac_header_preproc" >&6
8294
8295 # So?  What about this header?
8296 case $ac_header_compiler:$ac_header_preproc in
8297   yes:no )
8298     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8299 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8300     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8301 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8302   no:yes )
8303     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8304 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8305     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8306 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8307     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8308 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8309 esac
8310 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8311 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8312 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8313   echo $ECHO_N "(cached) $ECHO_C" >&6
8314 else
8315   ac_cv_header_openssl_err_h=$ac_header_preproc
8316 fi
8317 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8318 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8319
8320 fi
8321 if test $ac_cv_header_openssl_err_h = yes; then
8322   :
8323 else
8324   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8325 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8326    { (exit 1); exit 1; }; }
8327 fi
8328
8329
8330 fi
8331
8332 if test "$with_pam" = yes ; then
8333   if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8334   echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8335 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8336 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8337   echo $ECHO_N "(cached) $ECHO_C" >&6
8338 fi
8339 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8340 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8341 else
8342   # Is the header compilable?
8343 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
8344 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
8345 cat >conftest.$ac_ext <<_ACEOF
8346 #line $LINENO "configure"
8347 #include "confdefs.h"
8348 $ac_includes_default
8349 #include <security/pam_appl.h>
8350 _ACEOF
8351 rm -f conftest.$ac_objext
8352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8353   (eval $ac_compile) 2>&5
8354   ac_status=$?
8355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356   (exit $ac_status); } &&
8357          { ac_try='test -s conftest.$ac_objext'
8358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8359   (eval $ac_try) 2>&5
8360   ac_status=$?
8361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362   (exit $ac_status); }; }; then
8363   ac_header_compiler=yes
8364 else
8365   echo "$as_me: failed program was:" >&5
8366 cat conftest.$ac_ext >&5
8367 ac_header_compiler=no
8368 fi
8369 rm -f conftest.$ac_objext conftest.$ac_ext
8370 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8371 echo "${ECHO_T}$ac_header_compiler" >&6
8372
8373 # Is the header present?
8374 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
8375 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
8376 cat >conftest.$ac_ext <<_ACEOF
8377 #line $LINENO "configure"
8378 #include "confdefs.h"
8379 #include <security/pam_appl.h>
8380 _ACEOF
8381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8382   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8383   ac_status=$?
8384   egrep -v '^ *\+' conftest.er1 >conftest.err
8385   rm -f conftest.er1
8386   cat conftest.err >&5
8387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388   (exit $ac_status); } >/dev/null; then
8389   if test -s conftest.err; then
8390     ac_cpp_err=$ac_c_preproc_warn_flag
8391   else
8392     ac_cpp_err=
8393   fi
8394 else
8395   ac_cpp_err=yes
8396 fi
8397 if test -z "$ac_cpp_err"; then
8398   ac_header_preproc=yes
8399 else
8400   echo "$as_me: failed program was:" >&5
8401   cat conftest.$ac_ext >&5
8402   ac_header_preproc=no
8403 fi
8404 rm -f conftest.err conftest.$ac_ext
8405 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8406 echo "${ECHO_T}$ac_header_preproc" >&6
8407
8408 # So?  What about this header?
8409 case $ac_header_compiler:$ac_header_preproc in
8410   yes:no )
8411     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8412 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8413     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8414 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8415   no:yes )
8416     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
8417 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
8418     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
8419 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
8420     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8421 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8422 esac
8423 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8424 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8425 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8426   echo $ECHO_N "(cached) $ECHO_C" >&6
8427 else
8428   ac_cv_header_security_pam_appl_h=$ac_header_preproc
8429 fi
8430 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8431 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8432
8433 fi
8434 if test $ac_cv_header_security_pam_appl_h = yes; then
8435   :
8436 else
8437   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
8438 echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
8439    { (exit 1); exit 1; }; }
8440 fi
8441
8442
8443 fi
8444
8445
8446 ##
8447 ## Types, structures, compiler characteristics
8448 ##
8449
8450
8451 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8452 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8453 if test "${ac_cv_c_const+set}" = set; then
8454   echo $ECHO_N "(cached) $ECHO_C" >&6
8455 else
8456   cat >conftest.$ac_ext <<_ACEOF
8457 #line $LINENO "configure"
8458 #include "confdefs.h"
8459
8460 #ifdef F77_DUMMY_MAIN
8461 #  ifdef __cplusplus
8462      extern "C"
8463 #  endif
8464    int F77_DUMMY_MAIN() { return 1; }
8465 #endif
8466 int
8467 main ()
8468 {
8469 /* FIXME: Include the comments suggested by Paul. */
8470 #ifndef __cplusplus
8471   /* Ultrix mips cc rejects this.  */
8472   typedef int charset[2];
8473   const charset x;
8474   /* SunOS 4.1.1 cc rejects this.  */
8475   char const *const *ccp;
8476   char **p;
8477   /* NEC SVR4.0.2 mips cc rejects this.  */
8478   struct point {int x, y;};
8479   static struct point const zero = {0,0};
8480   /* AIX XL C 1.02.0.0 rejects this.
8481      It does not let you subtract one const X* pointer from another in
8482      an arm of an if-expression whose if-part is not a constant
8483      expression */
8484   const char *g = "string";
8485   ccp = &g + (g ? g-g : 0);
8486   /* HPUX 7.0 cc rejects these. */
8487   ++ccp;
8488   p = (char**) ccp;
8489   ccp = (char const *const *) p;
8490   { /* SCO 3.2v4 cc rejects this.  */
8491     char *t;
8492     char const *s = 0 ? (char *) 0 : (char const *) 0;
8493
8494     *t++ = 0;
8495   }
8496   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8497     int x[] = {25, 17};
8498     const int *foo = &x[0];
8499     ++foo;
8500   }
8501   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8502     typedef const int *iptr;
8503     iptr p = 0;
8504     ++p;
8505   }
8506   { /* AIX XL C 1.02.0.0 rejects this saying
8507        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8508     struct s { int j; const int *ap[3]; };
8509     struct s *b; b->j = 5;
8510   }
8511   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8512     const int foo = 10;
8513   }
8514 #endif
8515
8516   ;
8517   return 0;
8518 }
8519 _ACEOF
8520 rm -f conftest.$ac_objext
8521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8522   (eval $ac_compile) 2>&5
8523   ac_status=$?
8524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525   (exit $ac_status); } &&
8526          { ac_try='test -s conftest.$ac_objext'
8527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528   (eval $ac_try) 2>&5
8529   ac_status=$?
8530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531   (exit $ac_status); }; }; then
8532   ac_cv_c_const=yes
8533 else
8534   echo "$as_me: failed program was:" >&5
8535 cat conftest.$ac_ext >&5
8536 ac_cv_c_const=no
8537 fi
8538 rm -f conftest.$ac_objext conftest.$ac_ext
8539 fi
8540 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8541 echo "${ECHO_T}$ac_cv_c_const" >&6
8542 if test $ac_cv_c_const = no; then
8543
8544 cat >>confdefs.h <<\_ACEOF
8545 #define const
8546 _ACEOF
8547
8548 fi
8549
8550 echo "$as_me:$LINENO: checking for inline" >&5
8551 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8552 if test "${ac_cv_c_inline+set}" = set; then
8553   echo $ECHO_N "(cached) $ECHO_C" >&6
8554 else
8555   ac_cv_c_inline=no
8556 for ac_kw in inline __inline__ __inline; do
8557   cat >conftest.$ac_ext <<_ACEOF
8558 #line $LINENO "configure"
8559 #include "confdefs.h"
8560 #ifndef __cplusplus
8561 static $ac_kw int static_foo () {return 0; }
8562 $ac_kw int foo () {return 0; }
8563 #endif
8564
8565 _ACEOF
8566 rm -f conftest.$ac_objext
8567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8568   (eval $ac_compile) 2>&5
8569   ac_status=$?
8570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571   (exit $ac_status); } &&
8572          { ac_try='test -s conftest.$ac_objext'
8573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8574   (eval $ac_try) 2>&5
8575   ac_status=$?
8576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577   (exit $ac_status); }; }; then
8578   ac_cv_c_inline=$ac_kw; break
8579 else
8580   echo "$as_me: failed program was:" >&5
8581 cat conftest.$ac_ext >&5
8582 fi
8583 rm -f conftest.$ac_objext conftest.$ac_ext
8584 done
8585
8586 fi
8587 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8588 echo "${ECHO_T}$ac_cv_c_inline" >&6
8589 case $ac_cv_c_inline in
8590   inline | yes) ;;
8591   no)
8592 cat >>confdefs.h <<\_ACEOF
8593 #define inline
8594 _ACEOF
8595  ;;
8596   *)  cat >>confdefs.h <<_ACEOF
8597 #define inline $ac_cv_c_inline
8598 _ACEOF
8599  ;;
8600 esac
8601
8602 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8603 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8604 if test "${ac_cv_c_stringize+set}" = set; then
8605   echo $ECHO_N "(cached) $ECHO_C" >&6
8606 else
8607   cat >conftest.$ac_ext <<_ACEOF
8608 #line $LINENO "configure"
8609 #include "confdefs.h"
8610 #define x(y) #y
8611
8612 char *s = x(teststring);
8613 _ACEOF
8614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8615   egrep "#teststring" >/dev/null 2>&1; then
8616   ac_cv_c_stringize=no
8617 else
8618   ac_cv_c_stringize=yes
8619 fi
8620 rm -f conftest*
8621
8622 fi
8623 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8624 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8625 if test $ac_cv_c_stringize = yes; then
8626
8627 cat >>confdefs.h <<\_ACEOF
8628 #define HAVE_STRINGIZE 1
8629 _ACEOF
8630
8631 fi
8632
8633 echo "$as_me:$LINENO: checking for signed types" >&5
8634 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
8635 if test "${pgac_cv_c_signed+set}" = set; then
8636   echo $ECHO_N "(cached) $ECHO_C" >&6
8637 else
8638   cat >conftest.$ac_ext <<_ACEOF
8639 #line $LINENO "configure"
8640 #include "confdefs.h"
8641
8642 #ifdef F77_DUMMY_MAIN
8643 #  ifdef __cplusplus
8644      extern "C"
8645 #  endif
8646    int F77_DUMMY_MAIN() { return 1; }
8647 #endif
8648 int
8649 main ()
8650 {
8651 signed char c; signed short s; signed int i;
8652   ;
8653   return 0;
8654 }
8655 _ACEOF
8656 rm -f conftest.$ac_objext
8657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8658   (eval $ac_compile) 2>&5
8659   ac_status=$?
8660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661   (exit $ac_status); } &&
8662          { ac_try='test -s conftest.$ac_objext'
8663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664   (eval $ac_try) 2>&5
8665   ac_status=$?
8666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667   (exit $ac_status); }; }; then
8668   pgac_cv_c_signed=yes
8669 else
8670   echo "$as_me: failed program was:" >&5
8671 cat conftest.$ac_ext >&5
8672 pgac_cv_c_signed=no
8673 fi
8674 rm -f conftest.$ac_objext conftest.$ac_ext
8675 fi
8676 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
8677 echo "${ECHO_T}$pgac_cv_c_signed" >&6
8678 if test x"$pgac_cv_c_signed" = xno ; then
8679
8680 cat >>confdefs.h <<\_ACEOF
8681 #define signed
8682 _ACEOF
8683
8684 fi
8685 echo "$as_me:$LINENO: checking for working volatile" >&5
8686 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8687 if test "${ac_cv_c_volatile+set}" = set; then
8688   echo $ECHO_N "(cached) $ECHO_C" >&6
8689 else
8690   cat >conftest.$ac_ext <<_ACEOF
8691 #line $LINENO "configure"
8692 #include "confdefs.h"
8693
8694 #ifdef F77_DUMMY_MAIN
8695 #  ifdef __cplusplus
8696      extern "C"
8697 #  endif
8698    int F77_DUMMY_MAIN() { return 1; }
8699 #endif
8700 int
8701 main ()
8702 {
8703
8704 volatile int x;
8705 int * volatile y;
8706   ;
8707   return 0;
8708 }
8709 _ACEOF
8710 rm -f conftest.$ac_objext
8711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8712   (eval $ac_compile) 2>&5
8713   ac_status=$?
8714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715   (exit $ac_status); } &&
8716          { ac_try='test -s conftest.$ac_objext'
8717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718   (eval $ac_try) 2>&5
8719   ac_status=$?
8720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721   (exit $ac_status); }; }; then
8722   ac_cv_c_volatile=yes
8723 else
8724   echo "$as_me: failed program was:" >&5
8725 cat conftest.$ac_ext >&5
8726 ac_cv_c_volatile=no
8727 fi
8728 rm -f conftest.$ac_objext conftest.$ac_ext
8729 fi
8730 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8731 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8732 if test $ac_cv_c_volatile = no; then
8733
8734 cat >>confdefs.h <<\_ACEOF
8735 #define volatile
8736 _ACEOF
8737
8738 fi
8739
8740 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8741 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8742 if test "${ac_cv_struct_tm+set}" = set; then
8743   echo $ECHO_N "(cached) $ECHO_C" >&6
8744 else
8745   cat >conftest.$ac_ext <<_ACEOF
8746 #line $LINENO "configure"
8747 #include "confdefs.h"
8748 #include <sys/types.h>
8749 #include <time.h>
8750
8751 #ifdef F77_DUMMY_MAIN
8752 #  ifdef __cplusplus
8753      extern "C"
8754 #  endif
8755    int F77_DUMMY_MAIN() { return 1; }
8756 #endif
8757 int
8758 main ()
8759 {
8760 struct tm *tp; tp->tm_sec;
8761   ;
8762   return 0;
8763 }
8764 _ACEOF
8765 rm -f conftest.$ac_objext
8766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8767   (eval $ac_compile) 2>&5
8768   ac_status=$?
8769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770   (exit $ac_status); } &&
8771          { ac_try='test -s conftest.$ac_objext'
8772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773   (eval $ac_try) 2>&5
8774   ac_status=$?
8775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776   (exit $ac_status); }; }; then
8777   ac_cv_struct_tm=time.h
8778 else
8779   echo "$as_me: failed program was:" >&5
8780 cat conftest.$ac_ext >&5
8781 ac_cv_struct_tm=sys/time.h
8782 fi
8783 rm -f conftest.$ac_objext conftest.$ac_ext
8784 fi
8785 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8786 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8787 if test $ac_cv_struct_tm = sys/time.h; then
8788
8789 cat >>confdefs.h <<\_ACEOF
8790 #define TM_IN_SYS_TIME 1
8791 _ACEOF
8792
8793 fi
8794
8795 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8796 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
8797 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8798   echo $ECHO_N "(cached) $ECHO_C" >&6
8799 else
8800   cat >conftest.$ac_ext <<_ACEOF
8801 #line $LINENO "configure"
8802 #include "confdefs.h"
8803 #include <sys/types.h>
8804 #include <$ac_cv_struct_tm>
8805
8806
8807 #ifdef F77_DUMMY_MAIN
8808 #  ifdef __cplusplus
8809      extern "C"
8810 #  endif
8811    int F77_DUMMY_MAIN() { return 1; }
8812 #endif
8813 int
8814 main ()
8815 {
8816 static struct tm ac_aggr;
8817 if (ac_aggr.tm_zone)
8818 return 0;
8819   ;
8820   return 0;
8821 }
8822 _ACEOF
8823 rm -f conftest.$ac_objext
8824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8825   (eval $ac_compile) 2>&5
8826   ac_status=$?
8827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828   (exit $ac_status); } &&
8829          { ac_try='test -s conftest.$ac_objext'
8830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831   (eval $ac_try) 2>&5
8832   ac_status=$?
8833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834   (exit $ac_status); }; }; then
8835   ac_cv_member_struct_tm_tm_zone=yes
8836 else
8837   echo "$as_me: failed program was:" >&5
8838 cat conftest.$ac_ext >&5
8839 ac_cv_member_struct_tm_tm_zone=no
8840 fi
8841 rm -f conftest.$ac_objext conftest.$ac_ext
8842 fi
8843 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8844 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
8845 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8846
8847 cat >>confdefs.h <<_ACEOF
8848 #define HAVE_STRUCT_TM_TM_ZONE 1
8849 _ACEOF
8850
8851
8852 fi
8853
8854 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8855
8856 cat >>confdefs.h <<\_ACEOF
8857 #define HAVE_TM_ZONE 1
8858 _ACEOF
8859
8860 else
8861   echo "$as_me:$LINENO: checking for tzname" >&5
8862 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
8863 if test "${ac_cv_var_tzname+set}" = set; then
8864   echo $ECHO_N "(cached) $ECHO_C" >&6
8865 else
8866   cat >conftest.$ac_ext <<_ACEOF
8867 #line $LINENO "configure"
8868 #include "confdefs.h"
8869 #include <time.h>
8870 #ifndef tzname /* For SGI.  */
8871 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
8872 #endif
8873
8874 #ifdef F77_DUMMY_MAIN
8875 #  ifdef __cplusplus
8876      extern "C"
8877 #  endif
8878    int F77_DUMMY_MAIN() { return 1; }
8879 #endif
8880 int
8881 main ()
8882 {
8883 atoi(*tzname);
8884   ;
8885   return 0;
8886 }
8887 _ACEOF
8888 rm -f conftest.$ac_objext conftest$ac_exeext
8889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8890   (eval $ac_link) 2>&5
8891   ac_status=$?
8892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893   (exit $ac_status); } &&
8894          { ac_try='test -s conftest$ac_exeext'
8895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8896   (eval $ac_try) 2>&5
8897   ac_status=$?
8898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899   (exit $ac_status); }; }; then
8900   ac_cv_var_tzname=yes
8901 else
8902   echo "$as_me: failed program was:" >&5
8903 cat conftest.$ac_ext >&5
8904 ac_cv_var_tzname=no
8905 fi
8906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8907 fi
8908 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8909 echo "${ECHO_T}$ac_cv_var_tzname" >&6
8910   if test $ac_cv_var_tzname = yes; then
8911
8912 cat >>confdefs.h <<\_ACEOF
8913 #define HAVE_TZNAME 1
8914 _ACEOF
8915
8916   fi
8917 fi
8918
8919 echo "$as_me:$LINENO: checking for union semun" >&5
8920 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
8921 if test "${ac_cv_type_union_semun+set}" = set; then
8922   echo $ECHO_N "(cached) $ECHO_C" >&6
8923 else
8924   cat >conftest.$ac_ext <<_ACEOF
8925 #line $LINENO "configure"
8926 #include "confdefs.h"
8927 #include <sys/types.h>
8928 #include <sys/ipc.h>
8929 #include <sys/sem.h>
8930
8931 #ifdef F77_DUMMY_MAIN
8932 #  ifdef __cplusplus
8933      extern "C"
8934 #  endif
8935    int F77_DUMMY_MAIN() { return 1; }
8936 #endif
8937 int
8938 main ()
8939 {
8940 if ((union semun *) 0)
8941   return 0;
8942 if (sizeof (union semun))
8943   return 0;
8944   ;
8945   return 0;
8946 }
8947 _ACEOF
8948 rm -f conftest.$ac_objext
8949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8950   (eval $ac_compile) 2>&5
8951   ac_status=$?
8952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953   (exit $ac_status); } &&
8954          { ac_try='test -s conftest.$ac_objext'
8955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956   (eval $ac_try) 2>&5
8957   ac_status=$?
8958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959   (exit $ac_status); }; }; then
8960   ac_cv_type_union_semun=yes
8961 else
8962   echo "$as_me: failed program was:" >&5
8963 cat conftest.$ac_ext >&5
8964 ac_cv_type_union_semun=no
8965 fi
8966 rm -f conftest.$ac_objext conftest.$ac_ext
8967 fi
8968 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
8969 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
8970 if test $ac_cv_type_union_semun = yes; then
8971
8972 cat >>confdefs.h <<_ACEOF
8973 #define HAVE_UNION_SEMUN 1
8974 _ACEOF
8975
8976
8977 fi
8978
8979 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
8980 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
8981 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
8982   echo $ECHO_N "(cached) $ECHO_C" >&6
8983 else
8984   cat >conftest.$ac_ext <<_ACEOF
8985 #line $LINENO "configure"
8986 #include "confdefs.h"
8987 #include <sys/types.h>
8988 #ifdef HAVE_SYS_UN_H
8989 #include <sys/un.h>
8990 #endif
8991
8992
8993 #ifdef F77_DUMMY_MAIN
8994 #  ifdef __cplusplus
8995      extern "C"
8996 #  endif
8997    int F77_DUMMY_MAIN() { return 1; }
8998 #endif
8999 int
9000 main ()
9001 {
9002 if ((struct sockaddr_un *) 0)
9003   return 0;
9004 if (sizeof (struct sockaddr_un))
9005   return 0;
9006   ;
9007   return 0;
9008 }
9009 _ACEOF
9010 rm -f conftest.$ac_objext
9011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9012   (eval $ac_compile) 2>&5
9013   ac_status=$?
9014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015   (exit $ac_status); } &&
9016          { ac_try='test -s conftest.$ac_objext'
9017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018   (eval $ac_try) 2>&5
9019   ac_status=$?
9020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021   (exit $ac_status); }; }; then
9022   ac_cv_type_struct_sockaddr_un=yes
9023 else
9024   echo "$as_me: failed program was:" >&5
9025 cat conftest.$ac_ext >&5
9026 ac_cv_type_struct_sockaddr_un=no
9027 fi
9028 rm -f conftest.$ac_objext conftest.$ac_ext
9029 fi
9030 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9031 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9032 if test $ac_cv_type_struct_sockaddr_un = yes; then
9033
9034 cat >>confdefs.h <<_ACEOF
9035 #define HAVE_STRUCT_SOCKADDR_UN 1
9036 _ACEOF
9037
9038
9039 fi
9040
9041
9042 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
9043 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
9044 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
9045   echo $ECHO_N "(cached) $ECHO_C" >&6
9046 else
9047   cat >conftest.$ac_ext <<_ACEOF
9048 #line $LINENO "configure"
9049 #include "confdefs.h"
9050 #include <sys/param.h>
9051 #include <sys/socket.h>
9052 #include <sys/ucred.h>
9053
9054 #ifdef F77_DUMMY_MAIN
9055 #  ifdef __cplusplus
9056      extern "C"
9057 #  endif
9058    int F77_DUMMY_MAIN() { return 1; }
9059 #endif
9060 int
9061 main ()
9062 {
9063 if ((struct cmsgcred *) 0)
9064   return 0;
9065 if (sizeof (struct cmsgcred))
9066   return 0;
9067   ;
9068   return 0;
9069 }
9070 _ACEOF
9071 rm -f conftest.$ac_objext
9072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9073   (eval $ac_compile) 2>&5
9074   ac_status=$?
9075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076   (exit $ac_status); } &&
9077          { ac_try='test -s conftest.$ac_objext'
9078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9079   (eval $ac_try) 2>&5
9080   ac_status=$?
9081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082   (exit $ac_status); }; }; then
9083   ac_cv_type_struct_cmsgcred=yes
9084 else
9085   echo "$as_me: failed program was:" >&5
9086 cat conftest.$ac_ext >&5
9087 ac_cv_type_struct_cmsgcred=no
9088 fi
9089 rm -f conftest.$ac_objext conftest.$ac_ext
9090 fi
9091 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9092 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9093 if test $ac_cv_type_struct_cmsgcred = yes; then
9094
9095 cat >>confdefs.h <<_ACEOF
9096 #define HAVE_STRUCT_CMSGCRED 1
9097 _ACEOF
9098
9099
9100 fi
9101 echo "$as_me:$LINENO: checking for struct fcred" >&5
9102 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9103 if test "${ac_cv_type_struct_fcred+set}" = set; then
9104   echo $ECHO_N "(cached) $ECHO_C" >&6
9105 else
9106   cat >conftest.$ac_ext <<_ACEOF
9107 #line $LINENO "configure"
9108 #include "confdefs.h"
9109 #include <sys/param.h>
9110 #include <sys/socket.h>
9111 #include <sys/ucred.h>
9112
9113 #ifdef F77_DUMMY_MAIN
9114 #  ifdef __cplusplus
9115      extern "C"
9116 #  endif
9117    int F77_DUMMY_MAIN() { return 1; }
9118 #endif
9119 int
9120 main ()
9121 {
9122 if ((struct fcred *) 0)
9123   return 0;
9124 if (sizeof (struct fcred))
9125   return 0;
9126   ;
9127   return 0;
9128 }
9129 _ACEOF
9130 rm -f conftest.$ac_objext
9131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9132   (eval $ac_compile) 2>&5
9133   ac_status=$?
9134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135   (exit $ac_status); } &&
9136          { ac_try='test -s conftest.$ac_objext'
9137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138   (eval $ac_try) 2>&5
9139   ac_status=$?
9140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141   (exit $ac_status); }; }; then
9142   ac_cv_type_struct_fcred=yes
9143 else
9144   echo "$as_me: failed program was:" >&5
9145 cat conftest.$ac_ext >&5
9146 ac_cv_type_struct_fcred=no
9147 fi
9148 rm -f conftest.$ac_objext conftest.$ac_ext
9149 fi
9150 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9151 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9152 if test $ac_cv_type_struct_fcred = yes; then
9153
9154 cat >>confdefs.h <<_ACEOF
9155 #define HAVE_STRUCT_FCRED 1
9156 _ACEOF
9157
9158
9159 fi
9160 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9161 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9162 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9163   echo $ECHO_N "(cached) $ECHO_C" >&6
9164 else
9165   cat >conftest.$ac_ext <<_ACEOF
9166 #line $LINENO "configure"
9167 #include "confdefs.h"
9168 #include <sys/param.h>
9169 #include <sys/socket.h>
9170 #include <sys/ucred.h>
9171
9172 #ifdef F77_DUMMY_MAIN
9173 #  ifdef __cplusplus
9174      extern "C"
9175 #  endif
9176    int F77_DUMMY_MAIN() { return 1; }
9177 #endif
9178 int
9179 main ()
9180 {
9181 if ((struct sockcred *) 0)
9182   return 0;
9183 if (sizeof (struct sockcred))
9184   return 0;
9185   ;
9186   return 0;
9187 }
9188 _ACEOF
9189 rm -f conftest.$ac_objext
9190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9191   (eval $ac_compile) 2>&5
9192   ac_status=$?
9193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194   (exit $ac_status); } &&
9195          { ac_try='test -s conftest.$ac_objext'
9196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197   (eval $ac_try) 2>&5
9198   ac_status=$?
9199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200   (exit $ac_status); }; }; then
9201   ac_cv_type_struct_sockcred=yes
9202 else
9203   echo "$as_me: failed program was:" >&5
9204 cat conftest.$ac_ext >&5
9205 ac_cv_type_struct_sockcred=no
9206 fi
9207 rm -f conftest.$ac_objext conftest.$ac_ext
9208 fi
9209 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9210 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9211 if test $ac_cv_type_struct_sockcred = yes; then
9212
9213 cat >>confdefs.h <<_ACEOF
9214 #define HAVE_STRUCT_SOCKCRED 1
9215 _ACEOF
9216
9217
9218 fi
9219
9220
9221 if test "$with_zlib" = yes; then
9222   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9223   # did not).  While we could work around the lack of z_streamp, it
9224   # seems unwise to encourage people to use such old zlib versions...
9225   echo "$as_me:$LINENO: checking for z_streamp" >&5
9226 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9227 if test "${ac_cv_type_z_streamp+set}" = set; then
9228   echo $ECHO_N "(cached) $ECHO_C" >&6
9229 else
9230   cat >conftest.$ac_ext <<_ACEOF
9231 #line $LINENO "configure"
9232 #include "confdefs.h"
9233 #include <zlib.h>
9234
9235 #ifdef F77_DUMMY_MAIN
9236 #  ifdef __cplusplus
9237      extern "C"
9238 #  endif
9239    int F77_DUMMY_MAIN() { return 1; }
9240 #endif
9241 int
9242 main ()
9243 {
9244 if ((z_streamp *) 0)
9245   return 0;
9246 if (sizeof (z_streamp))
9247   return 0;
9248   ;
9249   return 0;
9250 }
9251 _ACEOF
9252 rm -f conftest.$ac_objext
9253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9254   (eval $ac_compile) 2>&5
9255   ac_status=$?
9256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257   (exit $ac_status); } &&
9258          { ac_try='test -s conftest.$ac_objext'
9259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260   (eval $ac_try) 2>&5
9261   ac_status=$?
9262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263   (exit $ac_status); }; }; then
9264   ac_cv_type_z_streamp=yes
9265 else
9266   echo "$as_me: failed program was:" >&5
9267 cat conftest.$ac_ext >&5
9268 ac_cv_type_z_streamp=no
9269 fi
9270 rm -f conftest.$ac_objext conftest.$ac_ext
9271 fi
9272 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9273 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9274 if test $ac_cv_type_z_streamp = yes; then
9275   :
9276 else
9277   { { echo "$as_me:$LINENO: error: zlib version is too old
9278 Use --without-zlib to disable zlib support." >&5
9279 echo "$as_me: error: zlib version is too old
9280 Use --without-zlib to disable zlib support." >&2;}
9281    { (exit 1); exit 1; }; }
9282 fi
9283
9284 fi
9285
9286 if test "$with_krb5" = yes; then
9287 # Check for differences between MIT and Heimdal (KTH) releases
9288   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9289 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9290 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9291   echo $ECHO_N "(cached) $ECHO_C" >&6
9292 else
9293   cat >conftest.$ac_ext <<_ACEOF
9294 #line $LINENO "configure"
9295 #include "confdefs.h"
9296 #include <krb5.h>
9297
9298 #ifdef F77_DUMMY_MAIN
9299 #  ifdef __cplusplus
9300      extern "C"
9301 #  endif
9302    int F77_DUMMY_MAIN() { return 1; }
9303 #endif
9304 int
9305 main ()
9306 {
9307 static krb5_ticket ac_aggr;
9308 if (ac_aggr.enc_part2)
9309 return 0;
9310   ;
9311   return 0;
9312 }
9313 _ACEOF
9314 rm -f conftest.$ac_objext
9315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9316   (eval $ac_compile) 2>&5
9317   ac_status=$?
9318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319   (exit $ac_status); } &&
9320          { ac_try='test -s conftest.$ac_objext'
9321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322   (eval $ac_try) 2>&5
9323   ac_status=$?
9324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325   (exit $ac_status); }; }; then
9326   ac_cv_member_krb5_ticket_enc_part2=yes
9327 else
9328   echo "$as_me: failed program was:" >&5
9329 cat conftest.$ac_ext >&5
9330 ac_cv_member_krb5_ticket_enc_part2=no
9331 fi
9332 rm -f conftest.$ac_objext conftest.$ac_ext
9333 fi
9334 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9335 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9336 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
9337
9338 cat >>confdefs.h <<_ACEOF
9339 #define HAVE_KRB5_TICKET_ENC_PART2 1
9340 _ACEOF
9341
9342
9343 else
9344   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9345 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9346 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9347   echo $ECHO_N "(cached) $ECHO_C" >&6
9348 else
9349   cat >conftest.$ac_ext <<_ACEOF
9350 #line $LINENO "configure"
9351 #include "confdefs.h"
9352 #include <krb5.h>
9353
9354 #ifdef F77_DUMMY_MAIN
9355 #  ifdef __cplusplus
9356      extern "C"
9357 #  endif
9358    int F77_DUMMY_MAIN() { return 1; }
9359 #endif
9360 int
9361 main ()
9362 {
9363 static krb5_ticket ac_aggr;
9364 if (ac_aggr.client)
9365 return 0;
9366   ;
9367   return 0;
9368 }
9369 _ACEOF
9370 rm -f conftest.$ac_objext
9371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9372   (eval $ac_compile) 2>&5
9373   ac_status=$?
9374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375   (exit $ac_status); } &&
9376          { ac_try='test -s conftest.$ac_objext'
9377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378   (eval $ac_try) 2>&5
9379   ac_status=$?
9380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381   (exit $ac_status); }; }; then
9382   ac_cv_member_krb5_ticket_client=yes
9383 else
9384   echo "$as_me: failed program was:" >&5
9385 cat conftest.$ac_ext >&5
9386 ac_cv_member_krb5_ticket_client=no
9387 fi
9388 rm -f conftest.$ac_objext conftest.$ac_ext
9389 fi
9390 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
9391 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
9392 if test $ac_cv_member_krb5_ticket_client = yes; then
9393
9394 cat >>confdefs.h <<_ACEOF
9395 #define HAVE_KRB5_TICKET_CLIENT 1
9396 _ACEOF
9397
9398
9399 else
9400   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
9401 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
9402    { (exit 1); exit 1; }; }
9403 fi
9404
9405 fi
9406
9407   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
9408 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
9409 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
9410   echo $ECHO_N "(cached) $ECHO_C" >&6
9411 else
9412   cat >conftest.$ac_ext <<_ACEOF
9413 #line $LINENO "configure"
9414 #include "confdefs.h"
9415 #include <krb5.h>
9416
9417 #ifdef F77_DUMMY_MAIN
9418 #  ifdef __cplusplus
9419      extern "C"
9420 #  endif
9421    int F77_DUMMY_MAIN() { return 1; }
9422 #endif
9423 int
9424 main ()
9425 {
9426 static krb5_error ac_aggr;
9427 if (ac_aggr.text.data)
9428 return 0;
9429   ;
9430   return 0;
9431 }
9432 _ACEOF
9433 rm -f conftest.$ac_objext
9434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9435   (eval $ac_compile) 2>&5
9436   ac_status=$?
9437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438   (exit $ac_status); } &&
9439          { ac_try='test -s conftest.$ac_objext'
9440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441   (eval $ac_try) 2>&5
9442   ac_status=$?
9443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444   (exit $ac_status); }; }; then
9445   ac_cv_member_krb5_error_text_data=yes
9446 else
9447   echo "$as_me: failed program was:" >&5
9448 cat conftest.$ac_ext >&5
9449 ac_cv_member_krb5_error_text_data=no
9450 fi
9451 rm -f conftest.$ac_objext conftest.$ac_ext
9452 fi
9453 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
9454 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
9455 if test $ac_cv_member_krb5_error_text_data = yes; then
9456
9457 cat >>confdefs.h <<_ACEOF
9458 #define HAVE_KRB5_ERROR_TEXT_DATA 1
9459 _ACEOF
9460
9461
9462 else
9463   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
9464 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
9465 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
9466   echo $ECHO_N "(cached) $ECHO_C" >&6
9467 else
9468   cat >conftest.$ac_ext <<_ACEOF
9469 #line $LINENO "configure"
9470 #include "confdefs.h"
9471 #include <krb5.h>
9472
9473 #ifdef F77_DUMMY_MAIN
9474 #  ifdef __cplusplus
9475      extern "C"
9476 #  endif
9477    int F77_DUMMY_MAIN() { return 1; }
9478 #endif
9479 int
9480 main ()
9481 {
9482 static krb5_error ac_aggr;
9483 if (ac_aggr.e_data)
9484 return 0;
9485   ;
9486   return 0;
9487 }
9488 _ACEOF
9489 rm -f conftest.$ac_objext
9490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9491   (eval $ac_compile) 2>&5
9492   ac_status=$?
9493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494   (exit $ac_status); } &&
9495          { ac_try='test -s conftest.$ac_objext'
9496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497   (eval $ac_try) 2>&5
9498   ac_status=$?
9499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500   (exit $ac_status); }; }; then
9501   ac_cv_member_krb5_error_e_data=yes
9502 else
9503   echo "$as_me: failed program was:" >&5
9504 cat conftest.$ac_ext >&5
9505 ac_cv_member_krb5_error_e_data=no
9506 fi
9507 rm -f conftest.$ac_objext conftest.$ac_ext
9508 fi
9509 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
9510 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
9511 if test $ac_cv_member_krb5_error_e_data = yes; then
9512
9513 cat >>confdefs.h <<_ACEOF
9514 #define HAVE_KRB5_ERROR_E_DATA 1
9515 _ACEOF
9516
9517
9518 else
9519   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
9520 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
9521    { (exit 1); exit 1; }; }
9522 fi
9523
9524 fi
9525
9526 fi
9527
9528
9529 ##
9530 ## Functions, global variables
9531 ##
9532
9533 echo "$as_me:$LINENO: checking for int timezone" >&5
9534 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
9535 if test "${pgac_cv_var_int_timezone+set}" = set; then
9536   echo $ECHO_N "(cached) $ECHO_C" >&6
9537 else
9538   cat >conftest.$ac_ext <<_ACEOF
9539 #line $LINENO "configure"
9540 #include "confdefs.h"
9541 #include <time.h>
9542 int res;
9543 #ifdef F77_DUMMY_MAIN
9544 #  ifdef __cplusplus
9545      extern "C"
9546 #  endif
9547    int F77_DUMMY_MAIN() { return 1; }
9548 #endif
9549 int
9550 main ()
9551 {
9552 res = timezone / 60;
9553   ;
9554   return 0;
9555 }
9556 _ACEOF
9557 rm -f conftest.$ac_objext conftest$ac_exeext
9558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9559   (eval $ac_link) 2>&5
9560   ac_status=$?
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); } &&
9563          { ac_try='test -s conftest$ac_exeext'
9564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9565   (eval $ac_try) 2>&5
9566   ac_status=$?
9567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568   (exit $ac_status); }; }; then
9569   pgac_cv_var_int_timezone=yes
9570 else
9571   echo "$as_me: failed program was:" >&5
9572 cat conftest.$ac_ext >&5
9573 pgac_cv_var_int_timezone=no
9574 fi
9575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9576 fi
9577 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
9578 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
9579 if test x"$pgac_cv_var_int_timezone" = xyes ; then
9580
9581 cat >>confdefs.h <<\_ACEOF
9582 #define HAVE_INT_TIMEZONE
9583 _ACEOF
9584
9585 fi
9586 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
9587 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
9588  if test "${ac_cv_func_accept_arg1+set}" = set; then
9589   echo $ECHO_N "(cached) $ECHO_C" >&6
9590 else
9591    if test "${ac_cv_func_accept_arg2+set}" = set; then
9592   echo $ECHO_N "(cached) $ECHO_C" >&6
9593 else
9594     if test "${ac_cv_func_accept_arg3+set}" = set; then
9595   echo $ECHO_N "(cached) $ECHO_C" >&6
9596 else
9597      for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
9598      for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
9599       for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
9600        cat >conftest.$ac_ext <<_ACEOF
9601 #line $LINENO "configure"
9602 #include "confdefs.h"
9603 #ifdef HAVE_SYS_TYPES_H
9604 #include <sys/types.h>
9605 #endif
9606 #ifdef HAVE_SYS_SOCKET_H
9607 #include <sys/socket.h>
9608 #endif
9609 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
9610 #ifdef F77_DUMMY_MAIN
9611 #  ifdef __cplusplus
9612      extern "C"
9613 #  endif
9614    int F77_DUMMY_MAIN() { return 1; }
9615 #endif
9616 int
9617 main ()
9618 {
9619
9620   ;
9621   return 0;
9622 }
9623 _ACEOF
9624 rm -f conftest.$ac_objext
9625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9626   (eval $ac_compile) 2>&5
9627   ac_status=$?
9628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629   (exit $ac_status); } &&
9630          { ac_try='test -s conftest.$ac_objext'
9631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9632   (eval $ac_try) 2>&5
9633   ac_status=$?
9634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635   (exit $ac_status); }; }; then
9636   ac_not_found=no; break 3
9637 else
9638   echo "$as_me: failed program was:" >&5
9639 cat conftest.$ac_ext >&5
9640 ac_not_found=yes
9641 fi
9642 rm -f conftest.$ac_objext conftest.$ac_ext
9643       done
9644      done
9645     done
9646     if test "$ac_not_found" = yes; then
9647       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
9648 echo "$as_me: error: could not determine argument types" >&2;}
9649    { (exit 1); exit 1; }; }
9650     fi
9651     if test "$ac_cv_func_accept_arg3" = "void"; then
9652       ac_cv_func_accept_arg3=int
9653     fi
9654
9655 fi
9656
9657 fi
9658
9659 fi
9660  echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
9661 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
9662
9663 cat >>confdefs.h <<_ACEOF
9664 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
9665 _ACEOF
9666
9667
9668 cat >>confdefs.h <<_ACEOF
9669 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
9670 _ACEOF
9671
9672
9673 cat >>confdefs.h <<_ACEOF
9674 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
9675 _ACEOF
9676
9677
9678 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
9679 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
9680 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
9681   echo $ECHO_N "(cached) $ECHO_C" >&6
9682 else
9683   cat >conftest.$ac_ext <<_ACEOF
9684 #line $LINENO "configure"
9685 #include "confdefs.h"
9686 #include <sys/time.h>
9687 #ifdef F77_DUMMY_MAIN
9688 #  ifdef __cplusplus
9689      extern "C"
9690 #  endif
9691    int F77_DUMMY_MAIN() { return 1; }
9692 #endif
9693 int
9694 main ()
9695 {
9696 struct timeval *tp;
9697 struct timezone *tzp;
9698 gettimeofday(tp,tzp);
9699   ;
9700   return 0;
9701 }
9702 _ACEOF
9703 rm -f conftest.$ac_objext
9704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9705   (eval $ac_compile) 2>&5
9706   ac_status=$?
9707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708   (exit $ac_status); } &&
9709          { ac_try='test -s conftest.$ac_objext'
9710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711   (eval $ac_try) 2>&5
9712   ac_status=$?
9713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714   (exit $ac_status); }; }; then
9715   pgac_cv_func_gettimeofday_1arg=no
9716 else
9717   echo "$as_me: failed program was:" >&5
9718 cat conftest.$ac_ext >&5
9719 pgac_cv_func_gettimeofday_1arg=yes
9720 fi
9721 rm -f conftest.$ac_objext conftest.$ac_ext
9722 fi
9723 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
9724 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
9725 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
9726
9727 cat >>confdefs.h <<\_ACEOF
9728 #define GETTIMEOFDAY_1ARG
9729 _ACEOF
9730
9731 fi
9732
9733 # SunOS doesn't handle negative byte comparisons properly with +/- return
9734 echo "$as_me:$LINENO: checking for working memcmp" >&5
9735 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9736 if test "${ac_cv_func_memcmp_working+set}" = set; then
9737   echo $ECHO_N "(cached) $ECHO_C" >&6
9738 else
9739   if test "$cross_compiling" = yes; then
9740   ac_cv_func_memcmp_working=no
9741 else
9742   cat >conftest.$ac_ext <<_ACEOF
9743 #line $LINENO "configure"
9744 #include "confdefs.h"
9745
9746 #ifdef F77_DUMMY_MAIN
9747 #  ifdef __cplusplus
9748      extern "C"
9749 #  endif
9750    int F77_DUMMY_MAIN() { return 1; }
9751 #endif
9752 int
9753 main ()
9754 {
9755
9756   /* Some versions of memcmp are not 8-bit clean.  */
9757   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9758   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9759     exit (1);
9760
9761   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9762      or more and with at least one buffer not starting on a 4-byte boundary.
9763      William Lewis provided this test program.   */
9764   {
9765     char foo[21];
9766     char bar[21];
9767     int i;
9768     for (i = 0; i < 4; i++)
9769       {
9770         char *a = foo + i;
9771         char *b = bar + i;
9772         strcpy (a, "--------01111111");
9773         strcpy (b, "--------10000000");
9774         if (memcmp (a, b, 16) >= 0)
9775           exit (1);
9776       }
9777     exit (0);
9778   }
9779
9780   ;
9781   return 0;
9782 }
9783 _ACEOF
9784 rm -f conftest$ac_exeext
9785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9786   (eval $ac_link) 2>&5
9787   ac_status=$?
9788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791   (eval $ac_try) 2>&5
9792   ac_status=$?
9793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794   (exit $ac_status); }; }; then
9795   ac_cv_func_memcmp_working=yes
9796 else
9797   echo "$as_me: program exited with status $ac_status" >&5
9798 echo "$as_me: failed program was:" >&5
9799 cat conftest.$ac_ext >&5
9800 ( exit $ac_status )
9801 ac_cv_func_memcmp_working=no
9802 fi
9803 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9804 fi
9805 fi
9806 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9807 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9808 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825 for ac_func in cbrt fcvt getpeereid memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync utime utimes
9826 do
9827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9828 echo "$as_me:$LINENO: checking for $ac_func" >&5
9829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9830 if eval "test \"\${$as_ac_var+set}\" = set"; then
9831   echo $ECHO_N "(cached) $ECHO_C" >&6
9832 else
9833   cat >conftest.$ac_ext <<_ACEOF
9834 #line $LINENO "configure"
9835 #include "confdefs.h"
9836 /* System header to define __stub macros and hopefully few prototypes,
9837     which can conflict with char $ac_func (); below.  */
9838 #include <assert.h>
9839 /* Override any gcc2 internal prototype to avoid an error.  */
9840 #ifdef __cplusplus
9841 extern "C"
9842 #endif
9843 /* We use char because int might match the return type of a gcc2
9844    builtin and then its argument prototype would still apply.  */
9845 char $ac_func ();
9846 char (*f) ();
9847
9848 #ifdef F77_DUMMY_MAIN
9849 #  ifdef __cplusplus
9850      extern "C"
9851 #  endif
9852    int F77_DUMMY_MAIN() { return 1; }
9853 #endif
9854 int
9855 main ()
9856 {
9857 /* The GNU C library defines this for functions which it implements
9858     to always fail with ENOSYS.  Some functions are actually named
9859     something starting with __ and the normal name is an alias.  */
9860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9861 choke me
9862 #else
9863 f = $ac_func;
9864 #endif
9865
9866   ;
9867   return 0;
9868 }
9869 _ACEOF
9870 rm -f conftest.$ac_objext conftest$ac_exeext
9871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9872   (eval $ac_link) 2>&5
9873   ac_status=$?
9874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875   (exit $ac_status); } &&
9876          { ac_try='test -s conftest$ac_exeext'
9877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878   (eval $ac_try) 2>&5
9879   ac_status=$?
9880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881   (exit $ac_status); }; }; then
9882   eval "$as_ac_var=yes"
9883 else
9884   echo "$as_me: failed program was:" >&5
9885 cat conftest.$ac_ext >&5
9886 eval "$as_ac_var=no"
9887 fi
9888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9889 fi
9890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9891 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9892 if test `eval echo '${'$as_ac_var'}'` = yes; then
9893   cat >>confdefs.h <<_ACEOF
9894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9895 _ACEOF
9896
9897 fi
9898 done
9899
9900
9901 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
9902 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
9903 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
9904   echo $ECHO_N "(cached) $ECHO_C" >&6
9905 else
9906   cat >conftest.$ac_ext <<_ACEOF
9907 #line $LINENO "configure"
9908 #include "confdefs.h"
9909 #include <unistd.h>
9910
9911 #ifdef F77_DUMMY_MAIN
9912 #  ifdef __cplusplus
9913      extern "C"
9914 #  endif
9915    int F77_DUMMY_MAIN() { return 1; }
9916 #endif
9917 int
9918 main ()
9919 {
9920 #ifndef fdatasync
9921   char *p = (char *) fdatasync;
9922 #endif
9923
9924   ;
9925   return 0;
9926 }
9927 _ACEOF
9928 rm -f conftest.$ac_objext
9929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9930   (eval $ac_compile) 2>&5
9931   ac_status=$?
9932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933   (exit $ac_status); } &&
9934          { ac_try='test -s conftest.$ac_objext'
9935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936   (eval $ac_try) 2>&5
9937   ac_status=$?
9938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939   (exit $ac_status); }; }; then
9940   ac_cv_have_decl_fdatasync=yes
9941 else
9942   echo "$as_me: failed program was:" >&5
9943 cat conftest.$ac_ext >&5
9944 ac_cv_have_decl_fdatasync=no
9945 fi
9946 rm -f conftest.$ac_objext conftest.$ac_ext
9947 fi
9948 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
9949 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
9950 if test $ac_cv_have_decl_fdatasync = yes; then
9951
9952 cat >>confdefs.h <<_ACEOF
9953 #define HAVE_DECL_FDATASYNC 1
9954 _ACEOF
9955
9956
9957 else
9958   cat >>confdefs.h <<_ACEOF
9959 #define HAVE_DECL_FDATASYNC 0
9960 _ACEOF
9961
9962
9963 fi
9964
9965
9966
9967 # This exports HAVE_IPV6 to both C files and Makefiles
9968 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
9969 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
9970 if test "${ac_cv_func_getaddrinfo+set}" = set; then
9971   echo $ECHO_N "(cached) $ECHO_C" >&6
9972 else
9973   cat >conftest.$ac_ext <<_ACEOF
9974 #line $LINENO "configure"
9975 #include "confdefs.h"
9976 /* System header to define __stub macros and hopefully few prototypes,
9977     which can conflict with char getaddrinfo (); below.  */
9978 #include <assert.h>
9979 /* Override any gcc2 internal prototype to avoid an error.  */
9980 #ifdef __cplusplus
9981 extern "C"
9982 #endif
9983 /* We use char because int might match the return type of a gcc2
9984    builtin and then its argument prototype would still apply.  */
9985 char getaddrinfo ();
9986 char (*f) ();
9987
9988 #ifdef F77_DUMMY_MAIN
9989 #  ifdef __cplusplus
9990      extern "C"
9991 #  endif
9992    int F77_DUMMY_MAIN() { return 1; }
9993 #endif
9994 int
9995 main ()
9996 {
9997 /* The GNU C library defines this for functions which it implements
9998     to always fail with ENOSYS.  Some functions are actually named
9999     something starting with __ and the normal name is an alias.  */
10000 #if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
10001 choke me
10002 #else
10003 f = getaddrinfo;
10004 #endif
10005
10006   ;
10007   return 0;
10008 }
10009 _ACEOF
10010 rm -f conftest.$ac_objext conftest$ac_exeext
10011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10012   (eval $ac_link) 2>&5
10013   ac_status=$?
10014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015   (exit $ac_status); } &&
10016          { ac_try='test -s conftest$ac_exeext'
10017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10018   (eval $ac_try) 2>&5
10019   ac_status=$?
10020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021   (exit $ac_status); }; }; then
10022   ac_cv_func_getaddrinfo=yes
10023 else
10024   echo "$as_me: failed program was:" >&5
10025 cat conftest.$ac_ext >&5
10026 ac_cv_func_getaddrinfo=no
10027 fi
10028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10029 fi
10030 echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
10031 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6
10032 if test $ac_cv_func_getaddrinfo = yes; then
10033   echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
10034 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
10035 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
10036   echo $ECHO_N "(cached) $ECHO_C" >&6
10037 else
10038   cat >conftest.$ac_ext <<_ACEOF
10039 #line $LINENO "configure"
10040 #include "confdefs.h"
10041 $ac_includes_default
10042 #include <netinet/in.h>
10043
10044 #ifdef F77_DUMMY_MAIN
10045 #  ifdef __cplusplus
10046      extern "C"
10047 #  endif
10048    int F77_DUMMY_MAIN() { return 1; }
10049 #endif
10050 int
10051 main ()
10052 {
10053 if ((struct sockaddr_in6 *) 0)
10054   return 0;
10055 if (sizeof (struct sockaddr_in6))
10056   return 0;
10057   ;
10058   return 0;
10059 }
10060 _ACEOF
10061 rm -f conftest.$ac_objext
10062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10063   (eval $ac_compile) 2>&5
10064   ac_status=$?
10065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066   (exit $ac_status); } &&
10067          { ac_try='test -s conftest.$ac_objext'
10068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069   (eval $ac_try) 2>&5
10070   ac_status=$?
10071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072   (exit $ac_status); }; }; then
10073   ac_cv_type_struct_sockaddr_in6=yes
10074 else
10075   echo "$as_me: failed program was:" >&5
10076 cat conftest.$ac_ext >&5
10077 ac_cv_type_struct_sockaddr_in6=no
10078 fi
10079 rm -f conftest.$ac_objext conftest.$ac_ext
10080 fi
10081 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
10082 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
10083 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
10084   HAVE_IPV6="yes"; cat >>confdefs.h <<\_ACEOF
10085 #define HAVE_IPV6 1
10086 _ACEOF
10087
10088 fi
10089
10090 fi
10091
10092
10093
10094 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
10095 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
10096 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
10097   echo $ECHO_N "(cached) $ECHO_C" >&6
10098 else
10099   cat >conftest.$ac_ext <<_ACEOF
10100 #line $LINENO "configure"
10101 #include "confdefs.h"
10102 #include <machine/vmparam.h>
10103 #include <sys/exec.h>
10104
10105 #ifdef F77_DUMMY_MAIN
10106 #  ifdef __cplusplus
10107      extern "C"
10108 #  endif
10109    int F77_DUMMY_MAIN() { return 1; }
10110 #endif
10111 int
10112 main ()
10113 {
10114 PS_STRINGS->ps_nargvstr = 1;
10115 PS_STRINGS->ps_argvstr = "foo";
10116   ;
10117   return 0;
10118 }
10119 _ACEOF
10120 rm -f conftest.$ac_objext conftest$ac_exeext
10121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10122   (eval $ac_link) 2>&5
10123   ac_status=$?
10124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125   (exit $ac_status); } &&
10126          { ac_try='test -s conftest$ac_exeext'
10127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10128   (eval $ac_try) 2>&5
10129   ac_status=$?
10130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131   (exit $ac_status); }; }; then
10132   pgac_cv_var_PS_STRINGS=yes
10133 else
10134   echo "$as_me: failed program was:" >&5
10135 cat conftest.$ac_ext >&5
10136 pgac_cv_var_PS_STRINGS=no
10137 fi
10138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10139 fi
10140 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
10141 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
10142 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
10143
10144 cat >>confdefs.h <<\_ACEOF
10145 #define HAVE_PS_STRINGS
10146 _ACEOF
10147
10148 fi
10149
10150
10151 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
10152 # is missing.  Yes, there are machines that have only one.  We may
10153 # also decide to use snprintf.c if snprintf() is present but does not
10154 # have working "long long int" support -- see below.
10155
10156 pgac_need_repl_snprintf=no
10157
10158 for ac_func in snprintf
10159 do
10160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10161 echo "$as_me:$LINENO: checking for $ac_func" >&5
10162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10163 if eval "test \"\${$as_ac_var+set}\" = set"; then
10164   echo $ECHO_N "(cached) $ECHO_C" >&6
10165 else
10166   cat >conftest.$ac_ext <<_ACEOF
10167 #line $LINENO "configure"
10168 #include "confdefs.h"
10169 /* System header to define __stub macros and hopefully few prototypes,
10170     which can conflict with char $ac_func (); below.  */
10171 #include <assert.h>
10172 /* Override any gcc2 internal prototype to avoid an error.  */
10173 #ifdef __cplusplus
10174 extern "C"
10175 #endif
10176 /* We use char because int might match the return type of a gcc2
10177    builtin and then its argument prototype would still apply.  */
10178 char $ac_func ();
10179 char (*f) ();
10180
10181 #ifdef F77_DUMMY_MAIN
10182 #  ifdef __cplusplus
10183      extern "C"
10184 #  endif
10185    int F77_DUMMY_MAIN() { return 1; }
10186 #endif
10187 int
10188 main ()
10189 {
10190 /* The GNU C library defines this for functions which it implements
10191     to always fail with ENOSYS.  Some functions are actually named
10192     something starting with __ and the normal name is an alias.  */
10193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10194 choke me
10195 #else
10196 f = $ac_func;
10197 #endif
10198
10199   ;
10200   return 0;
10201 }
10202 _ACEOF
10203 rm -f conftest.$ac_objext conftest$ac_exeext
10204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10205   (eval $ac_link) 2>&5
10206   ac_status=$?
10207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208   (exit $ac_status); } &&
10209          { ac_try='test -s conftest$ac_exeext'
10210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211   (eval $ac_try) 2>&5
10212   ac_status=$?
10213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214   (exit $ac_status); }; }; then
10215   eval "$as_ac_var=yes"
10216 else
10217   echo "$as_me: failed program was:" >&5
10218 cat conftest.$ac_ext >&5
10219 eval "$as_ac_var=no"
10220 fi
10221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10222 fi
10223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10225 if test `eval echo '${'$as_ac_var'}'` = yes; then
10226   cat >>confdefs.h <<_ACEOF
10227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10228 _ACEOF
10229
10230 else
10231   pgac_need_repl_snprintf=yes
10232 fi
10233 done
10234
10235
10236 for ac_func in vsnprintf
10237 do
10238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10239 echo "$as_me:$LINENO: checking for $ac_func" >&5
10240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10241 if eval "test \"\${$as_ac_var+set}\" = set"; then
10242   echo $ECHO_N "(cached) $ECHO_C" >&6
10243 else
10244   cat >conftest.$ac_ext <<_ACEOF
10245 #line $LINENO "configure"
10246 #include "confdefs.h"
10247 /* System header to define __stub macros and hopefully few prototypes,
10248     which can conflict with char $ac_func (); below.  */
10249 #include <assert.h>
10250 /* Override any gcc2 internal prototype to avoid an error.  */
10251 #ifdef __cplusplus
10252 extern "C"
10253 #endif
10254 /* We use char because int might match the return type of a gcc2
10255    builtin and then its argument prototype would still apply.  */
10256 char $ac_func ();
10257 char (*f) ();
10258
10259 #ifdef F77_DUMMY_MAIN
10260 #  ifdef __cplusplus
10261      extern "C"
10262 #  endif
10263    int F77_DUMMY_MAIN() { return 1; }
10264 #endif
10265 int
10266 main ()
10267 {
10268 /* The GNU C library defines this for functions which it implements
10269     to always fail with ENOSYS.  Some functions are actually named
10270     something starting with __ and the normal name is an alias.  */
10271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10272 choke me
10273 #else
10274 f = $ac_func;
10275 #endif
10276
10277   ;
10278   return 0;
10279 }
10280 _ACEOF
10281 rm -f conftest.$ac_objext conftest$ac_exeext
10282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10283   (eval $ac_link) 2>&5
10284   ac_status=$?
10285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286   (exit $ac_status); } &&
10287          { ac_try='test -s conftest$ac_exeext'
10288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289   (eval $ac_try) 2>&5
10290   ac_status=$?
10291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292   (exit $ac_status); }; }; then
10293   eval "$as_ac_var=yes"
10294 else
10295   echo "$as_me: failed program was:" >&5
10296 cat conftest.$ac_ext >&5
10297 eval "$as_ac_var=no"
10298 fi
10299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10300 fi
10301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10302 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10303 if test `eval echo '${'$as_ac_var'}'` = yes; then
10304   cat >>confdefs.h <<_ACEOF
10305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10306 _ACEOF
10307
10308 else
10309   pgac_need_repl_snprintf=yes
10310 fi
10311 done
10312
10313
10314
10315 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10316 # include/c.h will provide declarations.  Note this is a separate test
10317 # from whether the functions exist in the C library --- there are
10318 # systems that have the functions but don't bother to declare them :-(
10319
10320 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10321 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10322 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10323   echo $ECHO_N "(cached) $ECHO_C" >&6
10324 else
10325   cat >conftest.$ac_ext <<_ACEOF
10326 #line $LINENO "configure"
10327 #include "confdefs.h"
10328 $ac_includes_default
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 #ifndef snprintf
10339   char *p = (char *) snprintf;
10340 #endif
10341
10342   ;
10343   return 0;
10344 }
10345 _ACEOF
10346 rm -f conftest.$ac_objext
10347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10348   (eval $ac_compile) 2>&5
10349   ac_status=$?
10350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351   (exit $ac_status); } &&
10352          { ac_try='test -s conftest.$ac_objext'
10353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354   (eval $ac_try) 2>&5
10355   ac_status=$?
10356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); }; }; then
10358   ac_cv_have_decl_snprintf=yes
10359 else
10360   echo "$as_me: failed program was:" >&5
10361 cat conftest.$ac_ext >&5
10362 ac_cv_have_decl_snprintf=no
10363 fi
10364 rm -f conftest.$ac_objext conftest.$ac_ext
10365 fi
10366 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10367 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10368 if test $ac_cv_have_decl_snprintf = yes; then
10369
10370 cat >>confdefs.h <<_ACEOF
10371 #define HAVE_DECL_SNPRINTF 1
10372 _ACEOF
10373
10374
10375 else
10376   cat >>confdefs.h <<_ACEOF
10377 #define HAVE_DECL_SNPRINTF 0
10378 _ACEOF
10379
10380
10381 fi
10382 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10383 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10384 if test "${ac_cv_have_decl_vsnprintf+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 $ac_includes_default
10391 #ifdef F77_DUMMY_MAIN
10392 #  ifdef __cplusplus
10393      extern "C"
10394 #  endif
10395    int F77_DUMMY_MAIN() { return 1; }
10396 #endif
10397 int
10398 main ()
10399 {
10400 #ifndef vsnprintf
10401   char *p = (char *) vsnprintf;
10402 #endif
10403
10404   ;
10405   return 0;
10406 }
10407 _ACEOF
10408 rm -f conftest.$ac_objext
10409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10410   (eval $ac_compile) 2>&5
10411   ac_status=$?
10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413   (exit $ac_status); } &&
10414          { ac_try='test -s conftest.$ac_objext'
10415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10416   (eval $ac_try) 2>&5
10417   ac_status=$?
10418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419   (exit $ac_status); }; }; then
10420   ac_cv_have_decl_vsnprintf=yes
10421 else
10422   echo "$as_me: failed program was:" >&5
10423 cat conftest.$ac_ext >&5
10424 ac_cv_have_decl_vsnprintf=no
10425 fi
10426 rm -f conftest.$ac_objext conftest.$ac_ext
10427 fi
10428 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10429 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10430 if test $ac_cv_have_decl_vsnprintf = yes; then
10431
10432 cat >>confdefs.h <<_ACEOF
10433 #define HAVE_DECL_VSNPRINTF 1
10434 _ACEOF
10435
10436
10437 else
10438   cat >>confdefs.h <<_ACEOF
10439 #define HAVE_DECL_VSNPRINTF 0
10440 _ACEOF
10441
10442
10443 fi
10444
10445
10446
10447
10448 # do this one the hard way in case isinf() is a macro
10449 echo "$as_me:$LINENO: checking for isinf" >&5
10450 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10451 if test "${ac_cv_func_isinf+set}" = set; then
10452   echo $ECHO_N "(cached) $ECHO_C" >&6
10453 else
10454   cat >conftest.$ac_ext <<_ACEOF
10455 #line $LINENO "configure"
10456 #include "confdefs.h"
10457 #include <math.h>
10458
10459 #ifdef F77_DUMMY_MAIN
10460 #  ifdef __cplusplus
10461      extern "C"
10462 #  endif
10463    int F77_DUMMY_MAIN() { return 1; }
10464 #endif
10465 int
10466 main ()
10467 {
10468 double x = 0.0; int res = isinf(x);
10469   ;
10470   return 0;
10471 }
10472 _ACEOF
10473 rm -f conftest.$ac_objext conftest$ac_exeext
10474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10475   (eval $ac_link) 2>&5
10476   ac_status=$?
10477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478   (exit $ac_status); } &&
10479          { ac_try='test -s conftest$ac_exeext'
10480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481   (eval $ac_try) 2>&5
10482   ac_status=$?
10483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484   (exit $ac_status); }; }; then
10485   ac_cv_func_isinf=yes
10486 else
10487   echo "$as_me: failed program was:" >&5
10488 cat conftest.$ac_ext >&5
10489 ac_cv_func_isinf=no
10490 fi
10491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10492 fi
10493 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10494 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10495
10496 if test $ac_cv_func_isinf = yes ; then
10497
10498 cat >>confdefs.h <<\_ACEOF
10499 #define HAVE_ISINF 1
10500 _ACEOF
10501
10502 else
10503   LIBOBJS="$LIBOBJS isinf.$ac_objext"
10504   # Look for a way to implement a substitute for isinf()
10505
10506
10507
10508
10509 for ac_func in fpclass fp_class fp_class_d class
10510 do
10511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10512 echo "$as_me:$LINENO: checking for $ac_func" >&5
10513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10514 if eval "test \"\${$as_ac_var+set}\" = set"; then
10515   echo $ECHO_N "(cached) $ECHO_C" >&6
10516 else
10517   cat >conftest.$ac_ext <<_ACEOF
10518 #line $LINENO "configure"
10519 #include "confdefs.h"
10520 /* System header to define __stub macros and hopefully few prototypes,
10521     which can conflict with char $ac_func (); below.  */
10522 #include <assert.h>
10523 /* Override any gcc2 internal prototype to avoid an error.  */
10524 #ifdef __cplusplus
10525 extern "C"
10526 #endif
10527 /* We use char because int might match the return type of a gcc2
10528    builtin and then its argument prototype would still apply.  */
10529 char $ac_func ();
10530 char (*f) ();
10531
10532 #ifdef F77_DUMMY_MAIN
10533 #  ifdef __cplusplus
10534      extern "C"
10535 #  endif
10536    int F77_DUMMY_MAIN() { return 1; }
10537 #endif
10538 int
10539 main ()
10540 {
10541 /* The GNU C library defines this for functions which it implements
10542     to always fail with ENOSYS.  Some functions are actually named
10543     something starting with __ and the normal name is an alias.  */
10544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10545 choke me
10546 #else
10547 f = $ac_func;
10548 #endif
10549
10550   ;
10551   return 0;
10552 }
10553 _ACEOF
10554 rm -f conftest.$ac_objext conftest$ac_exeext
10555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10556   (eval $ac_link) 2>&5
10557   ac_status=$?
10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   (exit $ac_status); } &&
10560          { ac_try='test -s conftest$ac_exeext'
10561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562   (eval $ac_try) 2>&5
10563   ac_status=$?
10564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565   (exit $ac_status); }; }; then
10566   eval "$as_ac_var=yes"
10567 else
10568   echo "$as_me: failed program was:" >&5
10569 cat conftest.$ac_ext >&5
10570 eval "$as_ac_var=no"
10571 fi
10572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10573 fi
10574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10576 if test `eval echo '${'$as_ac_var'}'` = yes; then
10577   cat >>confdefs.h <<_ACEOF
10578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10579 _ACEOF
10580  break
10581 fi
10582 done
10583
10584 fi
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598 for ac_func in fseeko gethostname getopt_long getrusage inet_aton random srandom strcasecmp strdup strerror strtol strtoul
10599 do
10600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10601 echo "$as_me:$LINENO: checking for $ac_func" >&5
10602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10603 if eval "test \"\${$as_ac_var+set}\" = set"; then
10604   echo $ECHO_N "(cached) $ECHO_C" >&6
10605 else
10606   cat >conftest.$ac_ext <<_ACEOF
10607 #line $LINENO "configure"
10608 #include "confdefs.h"
10609 /* System header to define __stub macros and hopefully few prototypes,
10610     which can conflict with char $ac_func (); below.  */
10611 #include <assert.h>
10612 /* Override any gcc2 internal prototype to avoid an error.  */
10613 #ifdef __cplusplus
10614 extern "C"
10615 #endif
10616 /* We use char because int might match the return type of a gcc2
10617    builtin and then its argument prototype would still apply.  */
10618 char $ac_func ();
10619 char (*f) ();
10620
10621 #ifdef F77_DUMMY_MAIN
10622 #  ifdef __cplusplus
10623      extern "C"
10624 #  endif
10625    int F77_DUMMY_MAIN() { return 1; }
10626 #endif
10627 int
10628 main ()
10629 {
10630 /* The GNU C library defines this for functions which it implements
10631     to always fail with ENOSYS.  Some functions are actually named
10632     something starting with __ and the normal name is an alias.  */
10633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10634 choke me
10635 #else
10636 f = $ac_func;
10637 #endif
10638
10639   ;
10640   return 0;
10641 }
10642 _ACEOF
10643 rm -f conftest.$ac_objext conftest$ac_exeext
10644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10645   (eval $ac_link) 2>&5
10646   ac_status=$?
10647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648   (exit $ac_status); } &&
10649          { ac_try='test -s conftest$ac_exeext'
10650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651   (eval $ac_try) 2>&5
10652   ac_status=$?
10653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654   (exit $ac_status); }; }; then
10655   eval "$as_ac_var=yes"
10656 else
10657   echo "$as_me: failed program was:" >&5
10658 cat conftest.$ac_ext >&5
10659 eval "$as_ac_var=no"
10660 fi
10661 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10662 fi
10663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10665 if test `eval echo '${'$as_ac_var'}'` = yes; then
10666   cat >>confdefs.h <<_ACEOF
10667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10668 _ACEOF
10669
10670 else
10671   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
10672 fi
10673 done
10674
10675
10676
10677 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
10678 # We override the previous test that said fseeko/ftello didn't exist
10679 # OS tests are also done in include/c.h and port/fseeko.c
10680 case $host_os in bsdi*|netbsd*)
10681 ac_cv_func_fseeko=yes
10682 esac
10683
10684 # Solaris has a very slow qsort in certain cases, so we replace it.
10685 case $host_os in
10686   solaris*) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
10687 esac
10688
10689 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
10690 # this hackery with HPUXMATHLIB allows us to cope.
10691 HPUXMATHLIB=""
10692 case $host_cpu in
10693   hppa1.1)
10694         if test -r /lib/pa1.1/libm.a ; then
10695             HPUXMATHLIB="-L /lib/pa1.1 -lm"
10696         fi ;;
10697 esac
10698
10699
10700
10701 for ac_func in rint
10702 do
10703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10704 echo "$as_me:$LINENO: checking for $ac_func" >&5
10705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10706 if eval "test \"\${$as_ac_var+set}\" = set"; then
10707   echo $ECHO_N "(cached) $ECHO_C" >&6
10708 else
10709   cat >conftest.$ac_ext <<_ACEOF
10710 #line $LINENO "configure"
10711 #include "confdefs.h"
10712 /* System header to define __stub macros and hopefully few prototypes,
10713     which can conflict with char $ac_func (); below.  */
10714 #include <assert.h>
10715 /* Override any gcc2 internal prototype to avoid an error.  */
10716 #ifdef __cplusplus
10717 extern "C"
10718 #endif
10719 /* We use char because int might match the return type of a gcc2
10720    builtin and then its argument prototype would still apply.  */
10721 char $ac_func ();
10722 char (*f) ();
10723
10724 #ifdef F77_DUMMY_MAIN
10725 #  ifdef __cplusplus
10726      extern "C"
10727 #  endif
10728    int F77_DUMMY_MAIN() { return 1; }
10729 #endif
10730 int
10731 main ()
10732 {
10733 /* The GNU C library defines this for functions which it implements
10734     to always fail with ENOSYS.  Some functions are actually named
10735     something starting with __ and the normal name is an alias.  */
10736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10737 choke me
10738 #else
10739 f = $ac_func;
10740 #endif
10741
10742   ;
10743   return 0;
10744 }
10745 _ACEOF
10746 rm -f conftest.$ac_objext conftest$ac_exeext
10747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10748   (eval $ac_link) 2>&5
10749   ac_status=$?
10750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751   (exit $ac_status); } &&
10752          { ac_try='test -s conftest$ac_exeext'
10753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754   (eval $ac_try) 2>&5
10755   ac_status=$?
10756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757   (exit $ac_status); }; }; then
10758   eval "$as_ac_var=yes"
10759 else
10760   echo "$as_me: failed program was:" >&5
10761 cat conftest.$ac_ext >&5
10762 eval "$as_ac_var=no"
10763 fi
10764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10765 fi
10766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10768 if test `eval echo '${'$as_ac_var'}'` = yes; then
10769   cat >>confdefs.h <<_ACEOF
10770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10771 _ACEOF
10772
10773 else
10774   echo "$as_me:$LINENO: checking for rint in -lm" >&5
10775 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
10776 if test "${ac_cv_lib_m_rint+set}" = set; then
10777   echo $ECHO_N "(cached) $ECHO_C" >&6
10778 else
10779   ac_check_lib_save_LIBS=$LIBS
10780 LIBS="-lm $HPUXMATHLIB $LIBS"
10781 cat >conftest.$ac_ext <<_ACEOF
10782 #line $LINENO "configure"
10783 #include "confdefs.h"
10784
10785 /* Override any gcc2 internal prototype to avoid an error.  */
10786 #ifdef __cplusplus
10787 extern "C"
10788 #endif
10789 /* We use char because int might match the return type of a gcc2
10790    builtin and then its argument prototype would still apply.  */
10791 char rint ();
10792 #ifdef F77_DUMMY_MAIN
10793 #  ifdef __cplusplus
10794      extern "C"
10795 #  endif
10796    int F77_DUMMY_MAIN() { return 1; }
10797 #endif
10798 int
10799 main ()
10800 {
10801 rint ();
10802   ;
10803   return 0;
10804 }
10805 _ACEOF
10806 rm -f conftest.$ac_objext conftest$ac_exeext
10807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10808   (eval $ac_link) 2>&5
10809   ac_status=$?
10810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811   (exit $ac_status); } &&
10812          { ac_try='test -s conftest$ac_exeext'
10813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10814   (eval $ac_try) 2>&5
10815   ac_status=$?
10816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817   (exit $ac_status); }; }; then
10818   ac_cv_lib_m_rint=yes
10819 else
10820   echo "$as_me: failed program was:" >&5
10821 cat conftest.$ac_ext >&5
10822 ac_cv_lib_m_rint=no
10823 fi
10824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10825 LIBS=$ac_check_lib_save_LIBS
10826 fi
10827 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
10828 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
10829 if test $ac_cv_lib_m_rint = yes; then
10830   cat >>confdefs.h <<\_ACEOF
10831 #define HAVE_RINT 1
10832 _ACEOF
10833
10834 fi
10835
10836 fi
10837 done
10838
10839
10840
10841 if test "$with_readline" = yes; then
10842   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
10843 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
10844 cat >conftest.$ac_ext <<_ACEOF
10845 #line $LINENO "configure"
10846 #include "confdefs.h"
10847 #include <stdio.h>
10848 #ifdef HAVE_READLINE_READLINE_H
10849 # include <readline/readline.h>
10850 #elif defined(HAVE_READLINE_H)
10851 # include <readline.h>
10852 #endif
10853
10854 #ifdef F77_DUMMY_MAIN
10855 #  ifdef __cplusplus
10856      extern "C"
10857 #  endif
10858    int F77_DUMMY_MAIN() { return 1; }
10859 #endif
10860 int
10861 main ()
10862 {
10863 rl_completion_append_character = 'x';
10864   ;
10865   return 0;
10866 }
10867 _ACEOF
10868 rm -f conftest.$ac_objext conftest$ac_exeext
10869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10870   (eval $ac_link) 2>&5
10871   ac_status=$?
10872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873   (exit $ac_status); } &&
10874          { ac_try='test -s conftest$ac_exeext'
10875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10876   (eval $ac_try) 2>&5
10877   ac_status=$?
10878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879   (exit $ac_status); }; }; then
10880   echo "$as_me:$LINENO: result: yes" >&5
10881 echo "${ECHO_T}yes" >&6
10882
10883 cat >>confdefs.h <<\_ACEOF
10884 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
10885 _ACEOF
10886
10887 else
10888   echo "$as_me: failed program was:" >&5
10889 cat conftest.$ac_ext >&5
10890 echo "$as_me:$LINENO: result: no" >&5
10891 echo "${ECHO_T}no" >&6
10892 fi
10893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10894
10895
10896 for ac_func in rl_completion_matches rl_filename_completion_function
10897 do
10898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10899 echo "$as_me:$LINENO: checking for $ac_func" >&5
10900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10901 if eval "test \"\${$as_ac_var+set}\" = set"; then
10902   echo $ECHO_N "(cached) $ECHO_C" >&6
10903 else
10904   cat >conftest.$ac_ext <<_ACEOF
10905 #line $LINENO "configure"
10906 #include "confdefs.h"
10907 /* System header to define __stub macros and hopefully few prototypes,
10908     which can conflict with char $ac_func (); below.  */
10909 #include <assert.h>
10910 /* Override any gcc2 internal prototype to avoid an error.  */
10911 #ifdef __cplusplus
10912 extern "C"
10913 #endif
10914 /* We use char because int might match the return type of a gcc2
10915    builtin and then its argument prototype would still apply.  */
10916 char $ac_func ();
10917 char (*f) ();
10918
10919 #ifdef F77_DUMMY_MAIN
10920 #  ifdef __cplusplus
10921      extern "C"
10922 #  endif
10923    int F77_DUMMY_MAIN() { return 1; }
10924 #endif
10925 int
10926 main ()
10927 {
10928 /* The GNU C library defines this for functions which it implements
10929     to always fail with ENOSYS.  Some functions are actually named
10930     something starting with __ and the normal name is an alias.  */
10931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10932 choke me
10933 #else
10934 f = $ac_func;
10935 #endif
10936
10937   ;
10938   return 0;
10939 }
10940 _ACEOF
10941 rm -f conftest.$ac_objext conftest$ac_exeext
10942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10943   (eval $ac_link) 2>&5
10944   ac_status=$?
10945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946   (exit $ac_status); } &&
10947          { ac_try='test -s conftest$ac_exeext'
10948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10949   (eval $ac_try) 2>&5
10950   ac_status=$?
10951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952   (exit $ac_status); }; }; then
10953   eval "$as_ac_var=yes"
10954 else
10955   echo "$as_me: failed program was:" >&5
10956 cat conftest.$ac_ext >&5
10957 eval "$as_ac_var=no"
10958 fi
10959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10960 fi
10961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10963 if test `eval echo '${'$as_ac_var'}'` = yes; then
10964   cat >>confdefs.h <<_ACEOF
10965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10966 _ACEOF
10967
10968 fi
10969 done
10970
10971 fi
10972
10973
10974 echo "$as_me:$LINENO: checking for finite" >&5
10975 echo $ECHO_N "checking for finite... $ECHO_C" >&6
10976 cat >conftest.$ac_ext <<_ACEOF
10977 #line $LINENO "configure"
10978 #include "confdefs.h"
10979 #include <math.h>
10980 #ifdef F77_DUMMY_MAIN
10981 #  ifdef __cplusplus
10982      extern "C"
10983 #  endif
10984    int F77_DUMMY_MAIN() { return 1; }
10985 #endif
10986 int
10987 main ()
10988 {
10989 int dummy=finite(1.0);
10990   ;
10991   return 0;
10992 }
10993 _ACEOF
10994 rm -f conftest.$ac_objext conftest$ac_exeext
10995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10996   (eval $ac_link) 2>&5
10997   ac_status=$?
10998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999   (exit $ac_status); } &&
11000          { ac_try='test -s conftest$ac_exeext'
11001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002   (eval $ac_try) 2>&5
11003   ac_status=$?
11004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005   (exit $ac_status); }; }; then
11006
11007 cat >>confdefs.h <<\_ACEOF
11008 #define HAVE_FINITE 1
11009 _ACEOF
11010
11011 echo "$as_me:$LINENO: result: yes" >&5
11012 echo "${ECHO_T}yes" >&6
11013 else
11014   echo "$as_me: failed program was:" >&5
11015 cat conftest.$ac_ext >&5
11016 echo "$as_me:$LINENO: result: no" >&5
11017 echo "${ECHO_T}no" >&6
11018 fi
11019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11020
11021 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
11022 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
11023 cat >conftest.$ac_ext <<_ACEOF
11024 #line $LINENO "configure"
11025 #include "confdefs.h"
11026 #include <setjmp.h>
11027 #ifdef F77_DUMMY_MAIN
11028 #  ifdef __cplusplus
11029      extern "C"
11030 #  endif
11031    int F77_DUMMY_MAIN() { return 1; }
11032 #endif
11033 int
11034 main ()
11035 {
11036 sigjmp_buf x; sigsetjmp(x, 1);
11037   ;
11038   return 0;
11039 }
11040 _ACEOF
11041 rm -f conftest.$ac_objext conftest$ac_exeext
11042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11043   (eval $ac_link) 2>&5
11044   ac_status=$?
11045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046   (exit $ac_status); } &&
11047          { ac_try='test -s conftest$ac_exeext'
11048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049   (eval $ac_try) 2>&5
11050   ac_status=$?
11051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052   (exit $ac_status); }; }; then
11053
11054 cat >>confdefs.h <<\_ACEOF
11055 #define HAVE_SIGSETJMP 1
11056 _ACEOF
11057
11058 echo "$as_me:$LINENO: result: yes" >&5
11059 echo "${ECHO_T}yes" >&6
11060 else
11061   echo "$as_me: failed program was:" >&5
11062 cat conftest.$ac_ext >&5
11063 echo "$as_me:$LINENO: result: no" >&5
11064 echo "${ECHO_T}no" >&6
11065 fi
11066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11067
11068 echo "$as_me:$LINENO: checking for syslog" >&5
11069 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
11070 if test "${ac_cv_func_syslog+set}" = set; then
11071   echo $ECHO_N "(cached) $ECHO_C" >&6
11072 else
11073   cat >conftest.$ac_ext <<_ACEOF
11074 #line $LINENO "configure"
11075 #include "confdefs.h"
11076 /* System header to define __stub macros and hopefully few prototypes,
11077     which can conflict with char syslog (); below.  */
11078 #include <assert.h>
11079 /* Override any gcc2 internal prototype to avoid an error.  */
11080 #ifdef __cplusplus
11081 extern "C"
11082 #endif
11083 /* We use char because int might match the return type of a gcc2
11084    builtin and then its argument prototype would still apply.  */
11085 char syslog ();
11086 char (*f) ();
11087
11088 #ifdef F77_DUMMY_MAIN
11089 #  ifdef __cplusplus
11090      extern "C"
11091 #  endif
11092    int F77_DUMMY_MAIN() { return 1; }
11093 #endif
11094 int
11095 main ()
11096 {
11097 /* The GNU C library defines this for functions which it implements
11098     to always fail with ENOSYS.  Some functions are actually named
11099     something starting with __ and the normal name is an alias.  */
11100 #if defined (__stub_syslog) || defined (__stub___syslog)
11101 choke me
11102 #else
11103 f = syslog;
11104 #endif
11105
11106   ;
11107   return 0;
11108 }
11109 _ACEOF
11110 rm -f conftest.$ac_objext conftest$ac_exeext
11111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11112   (eval $ac_link) 2>&5
11113   ac_status=$?
11114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115   (exit $ac_status); } &&
11116          { ac_try='test -s conftest$ac_exeext'
11117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11118   (eval $ac_try) 2>&5
11119   ac_status=$?
11120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121   (exit $ac_status); }; }; then
11122   ac_cv_func_syslog=yes
11123 else
11124   echo "$as_me: failed program was:" >&5
11125 cat conftest.$ac_ext >&5
11126 ac_cv_func_syslog=no
11127 fi
11128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11129 fi
11130 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
11131 echo "${ECHO_T}$ac_cv_func_syslog" >&6
11132 if test $ac_cv_func_syslog = yes; then
11133   if test "${ac_cv_header_syslog_h+set}" = set; then
11134   echo "$as_me:$LINENO: checking for syslog.h" >&5
11135 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11136 if test "${ac_cv_header_syslog_h+set}" = set; then
11137   echo $ECHO_N "(cached) $ECHO_C" >&6
11138 fi
11139 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11140 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11141 else
11142   # Is the header compilable?
11143 echo "$as_me:$LINENO: checking syslog.h usability" >&5
11144 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
11145 cat >conftest.$ac_ext <<_ACEOF
11146 #line $LINENO "configure"
11147 #include "confdefs.h"
11148 $ac_includes_default
11149 #include <syslog.h>
11150 _ACEOF
11151 rm -f conftest.$ac_objext
11152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11153   (eval $ac_compile) 2>&5
11154   ac_status=$?
11155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156   (exit $ac_status); } &&
11157          { ac_try='test -s conftest.$ac_objext'
11158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11159   (eval $ac_try) 2>&5
11160   ac_status=$?
11161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162   (exit $ac_status); }; }; then
11163   ac_header_compiler=yes
11164 else
11165   echo "$as_me: failed program was:" >&5
11166 cat conftest.$ac_ext >&5
11167 ac_header_compiler=no
11168 fi
11169 rm -f conftest.$ac_objext conftest.$ac_ext
11170 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11171 echo "${ECHO_T}$ac_header_compiler" >&6
11172
11173 # Is the header present?
11174 echo "$as_me:$LINENO: checking syslog.h presence" >&5
11175 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
11176 cat >conftest.$ac_ext <<_ACEOF
11177 #line $LINENO "configure"
11178 #include "confdefs.h"
11179 #include <syslog.h>
11180 _ACEOF
11181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11182   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11183   ac_status=$?
11184   egrep -v '^ *\+' conftest.er1 >conftest.err
11185   rm -f conftest.er1
11186   cat conftest.err >&5
11187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188   (exit $ac_status); } >/dev/null; then
11189   if test -s conftest.err; then
11190     ac_cpp_err=$ac_c_preproc_warn_flag
11191   else
11192     ac_cpp_err=
11193   fi
11194 else
11195   ac_cpp_err=yes
11196 fi
11197 if test -z "$ac_cpp_err"; then
11198   ac_header_preproc=yes
11199 else
11200   echo "$as_me: failed program was:" >&5
11201   cat conftest.$ac_ext >&5
11202   ac_header_preproc=no
11203 fi
11204 rm -f conftest.err conftest.$ac_ext
11205 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11206 echo "${ECHO_T}$ac_header_preproc" >&6
11207
11208 # So?  What about this header?
11209 case $ac_header_compiler:$ac_header_preproc in
11210   yes:no )
11211     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
11212 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11213     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11214 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11215   no:yes )
11216     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
11217 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
11218     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
11219 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
11220     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11221 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11222 esac
11223 echo "$as_me:$LINENO: checking for syslog.h" >&5
11224 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11225 if test "${ac_cv_header_syslog_h+set}" = set; then
11226   echo $ECHO_N "(cached) $ECHO_C" >&6
11227 else
11228   ac_cv_header_syslog_h=$ac_header_preproc
11229 fi
11230 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11231 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11232
11233 fi
11234 if test $ac_cv_header_syslog_h = yes; then
11235   cat >>confdefs.h <<\_ACEOF
11236 #define HAVE_SYSLOG 1
11237 _ACEOF
11238
11239 fi
11240
11241
11242 fi
11243
11244
11245 echo "$as_me:$LINENO: checking for optreset" >&5
11246 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
11247 if test "${pgac_cv_var_int_optreset+set}" = set; then
11248   echo $ECHO_N "(cached) $ECHO_C" >&6
11249 else
11250   cat >conftest.$ac_ext <<_ACEOF
11251 #line $LINENO "configure"
11252 #include "confdefs.h"
11253 #include <unistd.h>
11254 #ifdef F77_DUMMY_MAIN
11255 #  ifdef __cplusplus
11256      extern "C"
11257 #  endif
11258    int F77_DUMMY_MAIN() { return 1; }
11259 #endif
11260 int
11261 main ()
11262 {
11263 extern int optreset; optreset = 1;
11264   ;
11265   return 0;
11266 }
11267 _ACEOF
11268 rm -f conftest.$ac_objext conftest$ac_exeext
11269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11270   (eval $ac_link) 2>&5
11271   ac_status=$?
11272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273   (exit $ac_status); } &&
11274          { ac_try='test -s conftest$ac_exeext'
11275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276   (eval $ac_try) 2>&5
11277   ac_status=$?
11278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279   (exit $ac_status); }; }; then
11280   pgac_cv_var_int_optreset=yes
11281 else
11282   echo "$as_me: failed program was:" >&5
11283 cat conftest.$ac_ext >&5
11284 pgac_cv_var_int_optreset=no
11285 fi
11286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11287 fi
11288 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
11289 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
11290 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
11291
11292 cat >>confdefs.h <<\_ACEOF
11293 #define HAVE_INT_OPTRESET 1
11294 _ACEOF
11295
11296 fi
11297
11298
11299
11300 for ac_func in strtoll strtoq
11301 do
11302 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11303 echo "$as_me:$LINENO: checking for $ac_func" >&5
11304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11305 if eval "test \"\${$as_ac_var+set}\" = set"; then
11306   echo $ECHO_N "(cached) $ECHO_C" >&6
11307 else
11308   cat >conftest.$ac_ext <<_ACEOF
11309 #line $LINENO "configure"
11310 #include "confdefs.h"
11311 /* System header to define __stub macros and hopefully few prototypes,
11312     which can conflict with char $ac_func (); below.  */
11313 #include <assert.h>
11314 /* Override any gcc2 internal prototype to avoid an error.  */
11315 #ifdef __cplusplus
11316 extern "C"
11317 #endif
11318 /* We use char because int might match the return type of a gcc2
11319    builtin and then its argument prototype would still apply.  */
11320 char $ac_func ();
11321 char (*f) ();
11322
11323 #ifdef F77_DUMMY_MAIN
11324 #  ifdef __cplusplus
11325      extern "C"
11326 #  endif
11327    int F77_DUMMY_MAIN() { return 1; }
11328 #endif
11329 int
11330 main ()
11331 {
11332 /* The GNU C library defines this for functions which it implements
11333     to always fail with ENOSYS.  Some functions are actually named
11334     something starting with __ and the normal name is an alias.  */
11335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11336 choke me
11337 #else
11338 f = $ac_func;
11339 #endif
11340
11341   ;
11342   return 0;
11343 }
11344 _ACEOF
11345 rm -f conftest.$ac_objext conftest$ac_exeext
11346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11347   (eval $ac_link) 2>&5
11348   ac_status=$?
11349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350   (exit $ac_status); } &&
11351          { ac_try='test -s conftest$ac_exeext'
11352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11353   (eval $ac_try) 2>&5
11354   ac_status=$?
11355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356   (exit $ac_status); }; }; then
11357   eval "$as_ac_var=yes"
11358 else
11359   echo "$as_me: failed program was:" >&5
11360 cat conftest.$ac_ext >&5
11361 eval "$as_ac_var=no"
11362 fi
11363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11364 fi
11365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11366 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11367 if test `eval echo '${'$as_ac_var'}'` = yes; then
11368   cat >>confdefs.h <<_ACEOF
11369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11370 _ACEOF
11371  break
11372 fi
11373 done
11374
11375
11376
11377 for ac_func in strtoull strtouq
11378 do
11379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11380 echo "$as_me:$LINENO: checking for $ac_func" >&5
11381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11382 if eval "test \"\${$as_ac_var+set}\" = set"; then
11383   echo $ECHO_N "(cached) $ECHO_C" >&6
11384 else
11385   cat >conftest.$ac_ext <<_ACEOF
11386 #line $LINENO "configure"
11387 #include "confdefs.h"
11388 /* System header to define __stub macros and hopefully few prototypes,
11389     which can conflict with char $ac_func (); below.  */
11390 #include <assert.h>
11391 /* Override any gcc2 internal prototype to avoid an error.  */
11392 #ifdef __cplusplus
11393 extern "C"
11394 #endif
11395 /* We use char because int might match the return type of a gcc2
11396    builtin and then its argument prototype would still apply.  */
11397 char $ac_func ();
11398 char (*f) ();
11399
11400 #ifdef F77_DUMMY_MAIN
11401 #  ifdef __cplusplus
11402      extern "C"
11403 #  endif
11404    int F77_DUMMY_MAIN() { return 1; }
11405 #endif
11406 int
11407 main ()
11408 {
11409 /* The GNU C library defines this for functions which it implements
11410     to always fail with ENOSYS.  Some functions are actually named
11411     something starting with __ and the normal name is an alias.  */
11412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11413 choke me
11414 #else
11415 f = $ac_func;
11416 #endif
11417
11418   ;
11419   return 0;
11420 }
11421 _ACEOF
11422 rm -f conftest.$ac_objext conftest$ac_exeext
11423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11424   (eval $ac_link) 2>&5
11425   ac_status=$?
11426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427   (exit $ac_status); } &&
11428          { ac_try='test -s conftest$ac_exeext'
11429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430   (eval $ac_try) 2>&5
11431   ac_status=$?
11432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433   (exit $ac_status); }; }; then
11434   eval "$as_ac_var=yes"
11435 else
11436   echo "$as_me: failed program was:" >&5
11437 cat conftest.$ac_ext >&5
11438 eval "$as_ac_var=no"
11439 fi
11440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11441 fi
11442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11443 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11444 if test `eval echo '${'$as_ac_var'}'` = yes; then
11445   cat >>confdefs.h <<_ACEOF
11446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11447 _ACEOF
11448  break
11449 fi
11450 done
11451
11452
11453 # Check for one of atexit() or on_exit()
11454
11455 for ac_func in atexit
11456 do
11457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11458 echo "$as_me:$LINENO: checking for $ac_func" >&5
11459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11460 if eval "test \"\${$as_ac_var+set}\" = set"; then
11461   echo $ECHO_N "(cached) $ECHO_C" >&6
11462 else
11463   cat >conftest.$ac_ext <<_ACEOF
11464 #line $LINENO "configure"
11465 #include "confdefs.h"
11466 /* System header to define __stub macros and hopefully few prototypes,
11467     which can conflict with char $ac_func (); below.  */
11468 #include <assert.h>
11469 /* Override any gcc2 internal prototype to avoid an error.  */
11470 #ifdef __cplusplus
11471 extern "C"
11472 #endif
11473 /* We use char because int might match the return type of a gcc2
11474    builtin and then its argument prototype would still apply.  */
11475 char $ac_func ();
11476 char (*f) ();
11477
11478 #ifdef F77_DUMMY_MAIN
11479 #  ifdef __cplusplus
11480      extern "C"
11481 #  endif
11482    int F77_DUMMY_MAIN() { return 1; }
11483 #endif
11484 int
11485 main ()
11486 {
11487 /* The GNU C library defines this for functions which it implements
11488     to always fail with ENOSYS.  Some functions are actually named
11489     something starting with __ and the normal name is an alias.  */
11490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11491 choke me
11492 #else
11493 f = $ac_func;
11494 #endif
11495
11496   ;
11497   return 0;
11498 }
11499 _ACEOF
11500 rm -f conftest.$ac_objext conftest$ac_exeext
11501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11502   (eval $ac_link) 2>&5
11503   ac_status=$?
11504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505   (exit $ac_status); } &&
11506          { ac_try='test -s conftest$ac_exeext'
11507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508   (eval $ac_try) 2>&5
11509   ac_status=$?
11510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511   (exit $ac_status); }; }; then
11512   eval "$as_ac_var=yes"
11513 else
11514   echo "$as_me: failed program was:" >&5
11515 cat conftest.$ac_ext >&5
11516 eval "$as_ac_var=no"
11517 fi
11518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11519 fi
11520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11521 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11522 if test `eval echo '${'$as_ac_var'}'` = yes; then
11523   cat >>confdefs.h <<_ACEOF
11524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11525 _ACEOF
11526
11527 else
11528
11529 for ac_func in on_exit
11530 do
11531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11532 echo "$as_me:$LINENO: checking for $ac_func" >&5
11533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11534 if eval "test \"\${$as_ac_var+set}\" = set"; then
11535   echo $ECHO_N "(cached) $ECHO_C" >&6
11536 else
11537   cat >conftest.$ac_ext <<_ACEOF
11538 #line $LINENO "configure"
11539 #include "confdefs.h"
11540 /* System header to define __stub macros and hopefully few prototypes,
11541     which can conflict with char $ac_func (); below.  */
11542 #include <assert.h>
11543 /* Override any gcc2 internal prototype to avoid an error.  */
11544 #ifdef __cplusplus
11545 extern "C"
11546 #endif
11547 /* We use char because int might match the return type of a gcc2
11548    builtin and then its argument prototype would still apply.  */
11549 char $ac_func ();
11550 char (*f) ();
11551
11552 #ifdef F77_DUMMY_MAIN
11553 #  ifdef __cplusplus
11554      extern "C"
11555 #  endif
11556    int F77_DUMMY_MAIN() { return 1; }
11557 #endif
11558 int
11559 main ()
11560 {
11561 /* The GNU C library defines this for functions which it implements
11562     to always fail with ENOSYS.  Some functions are actually named
11563     something starting with __ and the normal name is an alias.  */
11564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11565 choke me
11566 #else
11567 f = $ac_func;
11568 #endif
11569
11570   ;
11571   return 0;
11572 }
11573 _ACEOF
11574 rm -f conftest.$ac_objext conftest$ac_exeext
11575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11576   (eval $ac_link) 2>&5
11577   ac_status=$?
11578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579   (exit $ac_status); } &&
11580          { ac_try='test -s conftest$ac_exeext'
11581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11582   (eval $ac_try) 2>&5
11583   ac_status=$?
11584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585   (exit $ac_status); }; }; then
11586   eval "$as_ac_var=yes"
11587 else
11588   echo "$as_me: failed program was:" >&5
11589 cat conftest.$ac_ext >&5
11590 eval "$as_ac_var=no"
11591 fi
11592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11593 fi
11594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11595 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11596 if test `eval echo '${'$as_ac_var'}'` = yes; then
11597   cat >>confdefs.h <<_ACEOF
11598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11599 _ACEOF
11600
11601 else
11602   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
11603 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
11604    { (exit 1); exit 1; }; }
11605 fi
11606 done
11607
11608 fi
11609 done
11610
11611
11612 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11613 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
11614 if test "${ac_cv_sys_largefile_source+set}" = set; then
11615   echo $ECHO_N "(cached) $ECHO_C" >&6
11616 else
11617   while :; do
11618   ac_cv_sys_largefile_source=no
11619   cat >conftest.$ac_ext <<_ACEOF
11620 #line $LINENO "configure"
11621 #include "confdefs.h"
11622 #include <stdio.h>
11623 #ifdef F77_DUMMY_MAIN
11624 #  ifdef __cplusplus
11625      extern "C"
11626 #  endif
11627    int F77_DUMMY_MAIN() { return 1; }
11628 #endif
11629 int
11630 main ()
11631 {
11632 return !fseeko;
11633   ;
11634   return 0;
11635 }
11636 _ACEOF
11637 rm -f conftest.$ac_objext
11638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11639   (eval $ac_compile) 2>&5
11640   ac_status=$?
11641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642   (exit $ac_status); } &&
11643          { ac_try='test -s conftest.$ac_objext'
11644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645   (eval $ac_try) 2>&5
11646   ac_status=$?
11647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648   (exit $ac_status); }; }; then
11649   break
11650 else
11651   echo "$as_me: failed program was:" >&5
11652 cat conftest.$ac_ext >&5
11653 fi
11654 rm -f conftest.$ac_objext conftest.$ac_ext
11655   cat >conftest.$ac_ext <<_ACEOF
11656 #line $LINENO "configure"
11657 #include "confdefs.h"
11658 #define _LARGEFILE_SOURCE 1
11659 #include <stdio.h>
11660 #ifdef F77_DUMMY_MAIN
11661 #  ifdef __cplusplus
11662      extern "C"
11663 #  endif
11664    int F77_DUMMY_MAIN() { return 1; }
11665 #endif
11666 int
11667 main ()
11668 {
11669 return !fseeko;
11670   ;
11671   return 0;
11672 }
11673 _ACEOF
11674 rm -f conftest.$ac_objext
11675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11676   (eval $ac_compile) 2>&5
11677   ac_status=$?
11678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679   (exit $ac_status); } &&
11680          { ac_try='test -s conftest.$ac_objext'
11681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11682   (eval $ac_try) 2>&5
11683   ac_status=$?
11684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685   (exit $ac_status); }; }; then
11686   ac_cv_sys_largefile_source=1; break
11687 else
11688   echo "$as_me: failed program was:" >&5
11689 cat conftest.$ac_ext >&5
11690 fi
11691 rm -f conftest.$ac_objext conftest.$ac_ext
11692   break
11693 done
11694 fi
11695 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11696 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
11697 if test "$ac_cv_sys_largefile_source" != no; then
11698
11699 cat >>confdefs.h <<_ACEOF
11700 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11701 _ACEOF
11702
11703 fi
11704 rm -f conftest*
11705
11706 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11707 # in glibc 2.1.3, but that breaks too many other things.
11708 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11709 echo "$as_me:$LINENO: checking for fseeko" >&5
11710 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
11711 if test "${ac_cv_func_fseeko+set}" = set; then
11712   echo $ECHO_N "(cached) $ECHO_C" >&6
11713 else
11714   cat >conftest.$ac_ext <<_ACEOF
11715 #line $LINENO "configure"
11716 #include "confdefs.h"
11717 #include <stdio.h>
11718 #ifdef F77_DUMMY_MAIN
11719 #  ifdef __cplusplus
11720      extern "C"
11721 #  endif
11722    int F77_DUMMY_MAIN() { return 1; }
11723 #endif
11724 int
11725 main ()
11726 {
11727 return fseeko && fseeko (stdin, 0, 0);
11728   ;
11729   return 0;
11730 }
11731 _ACEOF
11732 rm -f conftest.$ac_objext conftest$ac_exeext
11733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11734   (eval $ac_link) 2>&5
11735   ac_status=$?
11736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737   (exit $ac_status); } &&
11738          { ac_try='test -s conftest$ac_exeext'
11739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740   (eval $ac_try) 2>&5
11741   ac_status=$?
11742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743   (exit $ac_status); }; }; then
11744   ac_cv_func_fseeko=yes
11745 else
11746   echo "$as_me: failed program was:" >&5
11747 cat conftest.$ac_ext >&5
11748 ac_cv_func_fseeko=no
11749 fi
11750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11751 fi
11752 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
11753 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
11754 if test $ac_cv_func_fseeko = yes; then
11755
11756 cat >>confdefs.h <<\_ACEOF
11757 #define HAVE_FSEEKO 1
11758 _ACEOF
11759
11760 fi
11761
11762
11763
11764 # This test makes sure that run tests work at all.  Sometimes a shared
11765 # library is found by the linker, but the runtime linker can't find it.
11766 # This check should come after all modifications of compiler or linker
11767 # variables, and before any other run tests.
11768 echo "$as_me:$LINENO: checking test program" >&5
11769 echo $ECHO_N "checking test program... $ECHO_C" >&6
11770 if test "$cross_compiling" = yes; then
11771   echo "$as_me:$LINENO: result: cross-compiling" >&5
11772 echo "${ECHO_T}cross-compiling" >&6
11773 else
11774   cat >conftest.$ac_ext <<_ACEOF
11775 #line $LINENO "configure"
11776 #include "confdefs.h"
11777 int main() { return 0; }
11778 _ACEOF
11779 rm -f conftest$ac_exeext
11780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11781   (eval $ac_link) 2>&5
11782   ac_status=$?
11783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786   (eval $ac_try) 2>&5
11787   ac_status=$?
11788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789   (exit $ac_status); }; }; then
11790   echo "$as_me:$LINENO: result: ok" >&5
11791 echo "${ECHO_T}ok" >&6
11792 else
11793   echo "$as_me: program exited with status $ac_status" >&5
11794 echo "$as_me: failed program was:" >&5
11795 cat conftest.$ac_ext >&5
11796 ( exit $ac_status )
11797 echo "$as_me:$LINENO: result: failed" >&5
11798 echo "${ECHO_T}failed" >&6
11799 { { echo "$as_me:$LINENO: error:
11800 *** Could not execute a simple test program.  This may be a problem
11801 *** related to locating shared libraries.  Check the file 'config.log'
11802 *** for the exact reason." >&5
11803 echo "$as_me: error:
11804 *** Could not execute a simple test program.  This may be a problem
11805 *** related to locating shared libraries.  Check the file 'config.log'
11806 *** for the exact reason." >&2;}
11807    { (exit 1); exit 1; }; }
11808 fi
11809 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11810 fi
11811
11812
11813
11814 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
11815 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
11816 if test "${pgac_cv_type_long_int_64+set}" = set; then
11817   echo $ECHO_N "(cached) $ECHO_C" >&6
11818 else
11819   if test "$cross_compiling" = yes; then
11820   # If cross-compiling, check the size reported by the compiler and
11821 # trust that the arithmetic works.
11822 cat >conftest.$ac_ext <<_ACEOF
11823 #line $LINENO "configure"
11824 #include "confdefs.h"
11825
11826 #ifdef F77_DUMMY_MAIN
11827 #  ifdef __cplusplus
11828      extern "C"
11829 #  endif
11830    int F77_DUMMY_MAIN() { return 1; }
11831 #endif
11832 int
11833 main ()
11834 {
11835 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
11836 test_array [0] = 0
11837
11838   ;
11839   return 0;
11840 }
11841 _ACEOF
11842 rm -f conftest.$ac_objext
11843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11844   (eval $ac_compile) 2>&5
11845   ac_status=$?
11846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847   (exit $ac_status); } &&
11848          { ac_try='test -s conftest.$ac_objext'
11849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850   (eval $ac_try) 2>&5
11851   ac_status=$?
11852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853   (exit $ac_status); }; }; then
11854   pgac_cv_type_long_int_64=yes
11855 else
11856   echo "$as_me: failed program was:" >&5
11857 cat conftest.$ac_ext >&5
11858 pgac_cv_type_long_int_64=no
11859 fi
11860 rm -f conftest.$ac_objext conftest.$ac_ext
11861 else
11862   cat >conftest.$ac_ext <<_ACEOF
11863 #line $LINENO "configure"
11864 #include "confdefs.h"
11865 typedef long int int64;
11866
11867 /*
11868  * These are globals to discourage the compiler from folding all the
11869  * arithmetic tests down to compile-time constants.
11870  */
11871 int64 a = 20000001;
11872 int64 b = 40000005;
11873
11874 int does_int64_work()
11875 {
11876   int64 c,d;
11877
11878   if (sizeof(int64) != 8)
11879     return 0;                   /* definitely not the right size */
11880
11881   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
11882   c = a * b;
11883   d = (c + b) / b;
11884   if (d != a+1)
11885     return 0;
11886   return 1;
11887 }
11888 main() {
11889   exit(! does_int64_work());
11890 }
11891 _ACEOF
11892 rm -f conftest$ac_exeext
11893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11894   (eval $ac_link) 2>&5
11895   ac_status=$?
11896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899   (eval $ac_try) 2>&5
11900   ac_status=$?
11901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902   (exit $ac_status); }; }; then
11903   pgac_cv_type_long_int_64=yes
11904 else
11905   echo "$as_me: program exited with status $ac_status" >&5
11906 echo "$as_me: failed program was:" >&5
11907 cat conftest.$ac_ext >&5
11908 ( exit $ac_status )
11909 pgac_cv_type_long_int_64=no
11910 fi
11911 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11912 fi
11913 fi
11914 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
11915 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
11916
11917 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
11918 if test x"$pgac_cv_type_long_int_64" = xyes ; then
11919
11920 cat >>confdefs.h <<\_ACEOF
11921 #define HAVE_LONG_INT_64
11922 _ACEOF
11923
11924 fi
11925
11926
11927 if test x"$HAVE_LONG_INT_64" = x"no" ; then
11928   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
11929 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
11930 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
11931   echo $ECHO_N "(cached) $ECHO_C" >&6
11932 else
11933   if test "$cross_compiling" = yes; then
11934   # If cross-compiling, check the size reported by the compiler and
11935 # trust that the arithmetic works.
11936 cat >conftest.$ac_ext <<_ACEOF
11937 #line $LINENO "configure"
11938 #include "confdefs.h"
11939
11940 #ifdef F77_DUMMY_MAIN
11941 #  ifdef __cplusplus
11942      extern "C"
11943 #  endif
11944    int F77_DUMMY_MAIN() { return 1; }
11945 #endif
11946 int
11947 main ()
11948 {
11949 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
11950 test_array [0] = 0
11951
11952   ;
11953   return 0;
11954 }
11955 _ACEOF
11956 rm -f conftest.$ac_objext
11957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11958   (eval $ac_compile) 2>&5
11959   ac_status=$?
11960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961   (exit $ac_status); } &&
11962          { ac_try='test -s conftest.$ac_objext'
11963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964   (eval $ac_try) 2>&5
11965   ac_status=$?
11966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967   (exit $ac_status); }; }; then
11968   pgac_cv_type_long_long_int_64=yes
11969 else
11970   echo "$as_me: failed program was:" >&5
11971 cat conftest.$ac_ext >&5
11972 pgac_cv_type_long_long_int_64=no
11973 fi
11974 rm -f conftest.$ac_objext conftest.$ac_ext
11975 else
11976   cat >conftest.$ac_ext <<_ACEOF
11977 #line $LINENO "configure"
11978 #include "confdefs.h"
11979 typedef long long int int64;
11980
11981 /*
11982  * These are globals to discourage the compiler from folding all the
11983  * arithmetic tests down to compile-time constants.
11984  */
11985 int64 a = 20000001;
11986 int64 b = 40000005;
11987
11988 int does_int64_work()
11989 {
11990   int64 c,d;
11991
11992   if (sizeof(int64) != 8)
11993     return 0;                   /* definitely not the right size */
11994
11995   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
11996   c = a * b;
11997   d = (c + b) / b;
11998   if (d != a+1)
11999     return 0;
12000   return 1;
12001 }
12002 main() {
12003   exit(! does_int64_work());
12004 }
12005 _ACEOF
12006 rm -f conftest$ac_exeext
12007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12008   (eval $ac_link) 2>&5
12009   ac_status=$?
12010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12013   (eval $ac_try) 2>&5
12014   ac_status=$?
12015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016   (exit $ac_status); }; }; then
12017   pgac_cv_type_long_long_int_64=yes
12018 else
12019   echo "$as_me: program exited with status $ac_status" >&5
12020 echo "$as_me: failed program was:" >&5
12021 cat conftest.$ac_ext >&5
12022 ( exit $ac_status )
12023 pgac_cv_type_long_long_int_64=no
12024 fi
12025 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12026 fi
12027 fi
12028 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
12029 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
12030
12031 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
12032 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
12033
12034 cat >>confdefs.h <<\_ACEOF
12035 #define HAVE_LONG_LONG_INT_64
12036 _ACEOF
12037
12038 fi
12039
12040 fi
12041
12042
12043
12044 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
12045   cat >conftest.$ac_ext <<_ACEOF
12046 #line $LINENO "configure"
12047 #include "confdefs.h"
12048
12049 #define INT64CONST(x)  x##LL
12050 long long int foo = INT64CONST(0x1234567890123456);
12051
12052 #ifdef F77_DUMMY_MAIN
12053 #  ifdef __cplusplus
12054      extern "C"
12055 #  endif
12056    int F77_DUMMY_MAIN() { return 1; }
12057 #endif
12058 int
12059 main ()
12060 {
12061
12062   ;
12063   return 0;
12064 }
12065 _ACEOF
12066 rm -f conftest.$ac_objext
12067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12068   (eval $ac_compile) 2>&5
12069   ac_status=$?
12070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071   (exit $ac_status); } &&
12072          { ac_try='test -s conftest.$ac_objext'
12073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074   (eval $ac_try) 2>&5
12075   ac_status=$?
12076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077   (exit $ac_status); }; }; then
12078
12079 cat >>confdefs.h <<\_ACEOF
12080 #define HAVE_LL_CONSTANTS 1
12081 _ACEOF
12082
12083 else
12084   echo "$as_me: failed program was:" >&5
12085 cat conftest.$ac_ext >&5
12086 fi
12087 rm -f conftest.$ac_objext conftest.$ac_ext
12088 fi
12089
12090
12091 # If we found "long int" is 64 bits, assume snprintf handles it.  If
12092 # we found we need to use "long long int", better check.  We cope with
12093 # snprintfs that use either %lld, %qd, or %I64d as the format.  If
12094 # neither works, fall back to our own snprintf emulation (which we
12095 # know uses %lld).
12096
12097 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
12098   if test $pgac_need_repl_snprintf = no; then
12099     echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
12100 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
12101 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
12102   echo $ECHO_N "(cached) $ECHO_C" >&6
12103 else
12104   for pgac_format in '%lld' '%qd' '%I64d'; do
12105 if test "$cross_compiling" = yes; then
12106   pgac_cv_snprintf_long_long_int_format=cross; break
12107 else
12108   cat >conftest.$ac_ext <<_ACEOF
12109 #line $LINENO "configure"
12110 #include "confdefs.h"
12111 #include <stdio.h>
12112 typedef long long int int64;
12113 #define INT64_FORMAT "$pgac_format"
12114
12115 int64 a = 20000001;
12116 int64 b = 40000005;
12117
12118 int does_int64_snprintf_work()
12119 {
12120   int64 c;
12121   char buf[100];
12122
12123   if (sizeof(int64) != 8)
12124     return 0;                   /* doesn't look like the right size */
12125
12126   c = a * b;
12127   snprintf(buf, 100, INT64_FORMAT, c);
12128   if (strcmp(buf, "800000140000005") != 0)
12129     return 0;                   /* either multiply or snprintf is busted */
12130   return 1;
12131 }
12132 main() {
12133   exit(! does_int64_snprintf_work());
12134 }
12135 _ACEOF
12136 rm -f conftest$ac_exeext
12137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12138   (eval $ac_link) 2>&5
12139   ac_status=$?
12140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143   (eval $ac_try) 2>&5
12144   ac_status=$?
12145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146   (exit $ac_status); }; }; then
12147   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
12148 else
12149   echo "$as_me: program exited with status $ac_status" >&5
12150 echo "$as_me: failed program was:" >&5
12151 cat conftest.$ac_ext >&5
12152 fi
12153 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12154 fi
12155 done
12156 fi
12157
12158 LONG_LONG_INT_FORMAT=''
12159
12160 case $pgac_cv_snprintf_long_long_int_format in
12161   cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
12162 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
12163   ?*)    echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
12164 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
12165          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
12166   *)     echo "$as_me:$LINENO: result: none" >&5
12167 echo "${ECHO_T}none" >&6;;
12168 esac
12169     if test "$LONG_LONG_INT_FORMAT" = ""; then
12170       # Force usage of our own snprintf, since system snprintf is broken
12171       pgac_need_repl_snprintf=yes
12172       LONG_LONG_INT_FORMAT='%lld'
12173     fi
12174   else
12175     # Here if we previously decided we needed to use our own snprintf
12176     LONG_LONG_INT_FORMAT='%lld'
12177   fi
12178   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
12179 else
12180   # Here if we are not using 'long long int' at all
12181   INT64_FORMAT='"%ld"'
12182 fi
12183
12184
12185 cat >>confdefs.h <<_ACEOF
12186 #define INT64_FORMAT $INT64_FORMAT
12187 _ACEOF
12188
12189
12190 if test $pgac_need_repl_snprintf = yes; then
12191   LIBOBJS="$LIBOBJS snprintf.$ac_objext"
12192 fi
12193
12194
12195 echo "$as_me:$LINENO: checking for unsigned long" >&5
12196 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
12197 if test "${ac_cv_type_unsigned_long+set}" = set; then
12198   echo $ECHO_N "(cached) $ECHO_C" >&6
12199 else
12200   cat >conftest.$ac_ext <<_ACEOF
12201 #line $LINENO "configure"
12202 #include "confdefs.h"
12203 $ac_includes_default
12204 #ifdef F77_DUMMY_MAIN
12205 #  ifdef __cplusplus
12206      extern "C"
12207 #  endif
12208    int F77_DUMMY_MAIN() { return 1; }
12209 #endif
12210 int
12211 main ()
12212 {
12213 if ((unsigned long *) 0)
12214   return 0;
12215 if (sizeof (unsigned long))
12216   return 0;
12217   ;
12218   return 0;
12219 }
12220 _ACEOF
12221 rm -f conftest.$ac_objext
12222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12223   (eval $ac_compile) 2>&5
12224   ac_status=$?
12225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226   (exit $ac_status); } &&
12227          { ac_try='test -s conftest.$ac_objext'
12228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12229   (eval $ac_try) 2>&5
12230   ac_status=$?
12231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232   (exit $ac_status); }; }; then
12233   ac_cv_type_unsigned_long=yes
12234 else
12235   echo "$as_me: failed program was:" >&5
12236 cat conftest.$ac_ext >&5
12237 ac_cv_type_unsigned_long=no
12238 fi
12239 rm -f conftest.$ac_objext conftest.$ac_ext
12240 fi
12241 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
12242 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
12243
12244 echo "$as_me:$LINENO: checking size of unsigned long" >&5
12245 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
12246 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
12247   echo $ECHO_N "(cached) $ECHO_C" >&6
12248 else
12249   if test "$ac_cv_type_unsigned_long" = yes; then
12250   # The cast to unsigned long works around a bug in the HP C Compiler
12251   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12252   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12253   # This bug is HP SR number 8606223364.
12254   if test "$cross_compiling" = yes; then
12255   # Depending upon the size, compute the lo and hi bounds.
12256 cat >conftest.$ac_ext <<_ACEOF
12257 #line $LINENO "configure"
12258 #include "confdefs.h"
12259 $ac_includes_default
12260 #ifdef F77_DUMMY_MAIN
12261 #  ifdef __cplusplus
12262      extern "C"
12263 #  endif
12264    int F77_DUMMY_MAIN() { return 1; }
12265 #endif
12266 int
12267 main ()
12268 {
12269 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
12270 test_array [0] = 0
12271
12272   ;
12273   return 0;
12274 }
12275 _ACEOF
12276 rm -f conftest.$ac_objext
12277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12278   (eval $ac_compile) 2>&5
12279   ac_status=$?
12280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281   (exit $ac_status); } &&
12282          { ac_try='test -s conftest.$ac_objext'
12283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284   (eval $ac_try) 2>&5
12285   ac_status=$?
12286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287   (exit $ac_status); }; }; then
12288   ac_lo=0 ac_mid=0
12289   while :; do
12290     cat >conftest.$ac_ext <<_ACEOF
12291 #line $LINENO "configure"
12292 #include "confdefs.h"
12293 $ac_includes_default
12294 #ifdef F77_DUMMY_MAIN
12295 #  ifdef __cplusplus
12296      extern "C"
12297 #  endif
12298    int F77_DUMMY_MAIN() { return 1; }
12299 #endif
12300 int
12301 main ()
12302 {
12303 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12304 test_array [0] = 0
12305
12306   ;
12307   return 0;
12308 }
12309 _ACEOF
12310 rm -f conftest.$ac_objext
12311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12312   (eval $ac_compile) 2>&5
12313   ac_status=$?
12314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315   (exit $ac_status); } &&
12316          { ac_try='test -s conftest.$ac_objext'
12317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12318   (eval $ac_try) 2>&5
12319   ac_status=$?
12320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321   (exit $ac_status); }; }; then
12322   ac_hi=$ac_mid; break
12323 else
12324   echo "$as_me: failed program was:" >&5
12325 cat conftest.$ac_ext >&5
12326 ac_lo=`expr $ac_mid + 1`
12327                     if test $ac_lo -le $ac_mid; then
12328                       ac_lo= ac_hi=
12329                       break
12330                     fi
12331                     ac_mid=`expr 2 '*' $ac_mid + 1`
12332 fi
12333 rm -f conftest.$ac_objext conftest.$ac_ext
12334   done
12335 else
12336   echo "$as_me: failed program was:" >&5
12337 cat conftest.$ac_ext >&5
12338 cat >conftest.$ac_ext <<_ACEOF
12339 #line $LINENO "configure"
12340 #include "confdefs.h"
12341 $ac_includes_default
12342 #ifdef F77_DUMMY_MAIN
12343 #  ifdef __cplusplus
12344      extern "C"
12345 #  endif
12346    int F77_DUMMY_MAIN() { return 1; }
12347 #endif
12348 int
12349 main ()
12350 {
12351 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
12352 test_array [0] = 0
12353
12354   ;
12355   return 0;
12356 }
12357 _ACEOF
12358 rm -f conftest.$ac_objext
12359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12360   (eval $ac_compile) 2>&5
12361   ac_status=$?
12362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363   (exit $ac_status); } &&
12364          { ac_try='test -s conftest.$ac_objext'
12365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366   (eval $ac_try) 2>&5
12367   ac_status=$?
12368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369   (exit $ac_status); }; }; then
12370   ac_hi=-1 ac_mid=-1
12371   while :; do
12372     cat >conftest.$ac_ext <<_ACEOF
12373 #line $LINENO "configure"
12374 #include "confdefs.h"
12375 $ac_includes_default
12376 #ifdef F77_DUMMY_MAIN
12377 #  ifdef __cplusplus
12378      extern "C"
12379 #  endif
12380    int F77_DUMMY_MAIN() { return 1; }
12381 #endif
12382 int
12383 main ()
12384 {
12385 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
12386 test_array [0] = 0
12387
12388   ;
12389   return 0;
12390 }
12391 _ACEOF
12392 rm -f conftest.$ac_objext
12393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12394   (eval $ac_compile) 2>&5
12395   ac_status=$?
12396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397   (exit $ac_status); } &&
12398          { ac_try='test -s conftest.$ac_objext'
12399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12400   (eval $ac_try) 2>&5
12401   ac_status=$?
12402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403   (exit $ac_status); }; }; then
12404   ac_lo=$ac_mid; break
12405 else
12406   echo "$as_me: failed program was:" >&5
12407 cat conftest.$ac_ext >&5
12408 ac_hi=`expr '(' $ac_mid ')' - 1`
12409                        if test $ac_mid -le $ac_hi; then
12410                          ac_lo= ac_hi=
12411                          break
12412                        fi
12413                        ac_mid=`expr 2 '*' $ac_mid`
12414 fi
12415 rm -f conftest.$ac_objext conftest.$ac_ext
12416   done
12417 else
12418   echo "$as_me: failed program was:" >&5
12419 cat conftest.$ac_ext >&5
12420 ac_lo= ac_hi=
12421 fi
12422 rm -f conftest.$ac_objext conftest.$ac_ext
12423 fi
12424 rm -f conftest.$ac_objext conftest.$ac_ext
12425 # Binary search between lo and hi bounds.
12426 while test "x$ac_lo" != "x$ac_hi"; do
12427   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12428   cat >conftest.$ac_ext <<_ACEOF
12429 #line $LINENO "configure"
12430 #include "confdefs.h"
12431 $ac_includes_default
12432 #ifdef F77_DUMMY_MAIN
12433 #  ifdef __cplusplus
12434      extern "C"
12435 #  endif
12436    int F77_DUMMY_MAIN() { return 1; }
12437 #endif
12438 int
12439 main ()
12440 {
12441 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12442 test_array [0] = 0
12443
12444   ;
12445   return 0;
12446 }
12447 _ACEOF
12448 rm -f conftest.$ac_objext
12449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12450   (eval $ac_compile) 2>&5
12451   ac_status=$?
12452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453   (exit $ac_status); } &&
12454          { ac_try='test -s conftest.$ac_objext'
12455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456   (eval $ac_try) 2>&5
12457   ac_status=$?
12458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459   (exit $ac_status); }; }; then
12460   ac_hi=$ac_mid
12461 else
12462   echo "$as_me: failed program was:" >&5
12463 cat conftest.$ac_ext >&5
12464 ac_lo=`expr '(' $ac_mid ')' + 1`
12465 fi
12466 rm -f conftest.$ac_objext conftest.$ac_ext
12467 done
12468 case $ac_lo in
12469 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
12470 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12471 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12472    { (exit 1); exit 1; }; } ;;
12473 esac
12474 else
12475   if test "$cross_compiling" = yes; then
12476   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12477 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12478    { (exit 1); exit 1; }; }
12479 else
12480   cat >conftest.$ac_ext <<_ACEOF
12481 #line $LINENO "configure"
12482 #include "confdefs.h"
12483 $ac_includes_default
12484 long longval () { return (long) (sizeof (unsigned long)); }
12485 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
12486 #include <stdio.h>
12487 #include <stdlib.h>
12488 #ifdef F77_DUMMY_MAIN
12489 #  ifdef __cplusplus
12490      extern "C"
12491 #  endif
12492    int F77_DUMMY_MAIN() { return 1; }
12493 #endif
12494 int
12495 main ()
12496 {
12497
12498   FILE *f = fopen ("conftest.val", "w");
12499   if (! f)
12500     exit (1);
12501   if (((long) (sizeof (unsigned long))) < 0)
12502     {
12503       long i = longval ();
12504       if (i != ((long) (sizeof (unsigned long))))
12505         exit (1);
12506       fprintf (f, "%ld\n", i);
12507     }
12508   else
12509     {
12510       unsigned long i = ulongval ();
12511       if (i != ((long) (sizeof (unsigned long))))
12512         exit (1);
12513       fprintf (f, "%lu\n", i);
12514     }
12515   exit (ferror (f) || fclose (f) != 0);
12516
12517   ;
12518   return 0;
12519 }
12520 _ACEOF
12521 rm -f conftest$ac_exeext
12522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12523   (eval $ac_link) 2>&5
12524   ac_status=$?
12525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12528   (eval $ac_try) 2>&5
12529   ac_status=$?
12530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531   (exit $ac_status); }; }; then
12532   ac_cv_sizeof_unsigned_long=`cat conftest.val`
12533 else
12534   echo "$as_me: program exited with status $ac_status" >&5
12535 echo "$as_me: failed program was:" >&5
12536 cat conftest.$ac_ext >&5
12537 ( exit $ac_status )
12538 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12539 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12540    { (exit 1); exit 1; }; }
12541 fi
12542 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12543 fi
12544 fi
12545 rm -f conftest.val
12546 else
12547   ac_cv_sizeof_unsigned_long=0
12548 fi
12549 fi
12550 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
12551 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
12552 cat >>confdefs.h <<_ACEOF
12553 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
12554 _ACEOF
12555
12556
12557
12558 cat >>confdefs.h <<_ACEOF
12559 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
12560 _ACEOF
12561
12562
12563 # Determine memory alignment requirements for the basic C data types.
12564
12565 echo "$as_me:$LINENO: checking for short" >&5
12566 echo $ECHO_N "checking for short... $ECHO_C" >&6
12567 if test "${ac_cv_type_short+set}" = set; then
12568   echo $ECHO_N "(cached) $ECHO_C" >&6
12569 else
12570   cat >conftest.$ac_ext <<_ACEOF
12571 #line $LINENO "configure"
12572 #include "confdefs.h"
12573 $ac_includes_default
12574 #ifdef F77_DUMMY_MAIN
12575 #  ifdef __cplusplus
12576      extern "C"
12577 #  endif
12578    int F77_DUMMY_MAIN() { return 1; }
12579 #endif
12580 int
12581 main ()
12582 {
12583 if ((short *) 0)
12584   return 0;
12585 if (sizeof (short))
12586   return 0;
12587   ;
12588   return 0;
12589 }
12590 _ACEOF
12591 rm -f conftest.$ac_objext
12592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12593   (eval $ac_compile) 2>&5
12594   ac_status=$?
12595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596   (exit $ac_status); } &&
12597          { ac_try='test -s conftest.$ac_objext'
12598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599   (eval $ac_try) 2>&5
12600   ac_status=$?
12601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602   (exit $ac_status); }; }; then
12603   ac_cv_type_short=yes
12604 else
12605   echo "$as_me: failed program was:" >&5
12606 cat conftest.$ac_ext >&5
12607 ac_cv_type_short=no
12608 fi
12609 rm -f conftest.$ac_objext conftest.$ac_ext
12610 fi
12611 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12612 echo "${ECHO_T}$ac_cv_type_short" >&6
12613
12614 echo "$as_me:$LINENO: checking alignment of short" >&5
12615 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
12616 if test "${pgac_cv_alignof_short+set}" = set; then
12617   echo $ECHO_N "(cached) $ECHO_C" >&6
12618 else
12619   if test "$ac_cv_type_short" = yes; then
12620   if test "$cross_compiling" = yes; then
12621   # Depending upon the size, compute the lo and hi bounds.
12622 cat >conftest.$ac_ext <<_ACEOF
12623 #line $LINENO "configure"
12624 #include "confdefs.h"
12625 $ac_includes_default
12626 struct { char filler; short field; } pgac_struct;
12627 #ifdef F77_DUMMY_MAIN
12628 #  ifdef __cplusplus
12629      extern "C"
12630 #  endif
12631    int F77_DUMMY_MAIN() { return 1; }
12632 #endif
12633 int
12634 main ()
12635 {
12636 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
12637 test_array [0] = 0
12638
12639   ;
12640   return 0;
12641 }
12642 _ACEOF
12643 rm -f conftest.$ac_objext
12644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12645   (eval $ac_compile) 2>&5
12646   ac_status=$?
12647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); } &&
12649          { ac_try='test -s conftest.$ac_objext'
12650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12651   (eval $ac_try) 2>&5
12652   ac_status=$?
12653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654   (exit $ac_status); }; }; then
12655   ac_lo=0 ac_mid=0
12656   while :; do
12657     cat >conftest.$ac_ext <<_ACEOF
12658 #line $LINENO "configure"
12659 #include "confdefs.h"
12660 $ac_includes_default
12661 struct { char filler; short field; } pgac_struct;
12662 #ifdef F77_DUMMY_MAIN
12663 #  ifdef __cplusplus
12664      extern "C"
12665 #  endif
12666    int F77_DUMMY_MAIN() { return 1; }
12667 #endif
12668 int
12669 main ()
12670 {
12671 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12672 test_array [0] = 0
12673
12674   ;
12675   return 0;
12676 }
12677 _ACEOF
12678 rm -f conftest.$ac_objext
12679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12680   (eval $ac_compile) 2>&5
12681   ac_status=$?
12682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683   (exit $ac_status); } &&
12684          { ac_try='test -s conftest.$ac_objext'
12685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12686   (eval $ac_try) 2>&5
12687   ac_status=$?
12688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689   (exit $ac_status); }; }; then
12690   ac_hi=$ac_mid; break
12691 else
12692   echo "$as_me: failed program was:" >&5
12693 cat conftest.$ac_ext >&5
12694 ac_lo=`expr $ac_mid + 1`
12695                     if test $ac_lo -le $ac_mid; then
12696                       ac_lo= ac_hi=
12697                       break
12698                     fi
12699                     ac_mid=`expr 2 '*' $ac_mid + 1`
12700 fi
12701 rm -f conftest.$ac_objext conftest.$ac_ext
12702   done
12703 else
12704   echo "$as_me: failed program was:" >&5
12705 cat conftest.$ac_ext >&5
12706 cat >conftest.$ac_ext <<_ACEOF
12707 #line $LINENO "configure"
12708 #include "confdefs.h"
12709 $ac_includes_default
12710 struct { char filler; short field; } pgac_struct;
12711 #ifdef F77_DUMMY_MAIN
12712 #  ifdef __cplusplus
12713      extern "C"
12714 #  endif
12715    int F77_DUMMY_MAIN() { return 1; }
12716 #endif
12717 int
12718 main ()
12719 {
12720 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
12721 test_array [0] = 0
12722
12723   ;
12724   return 0;
12725 }
12726 _ACEOF
12727 rm -f conftest.$ac_objext
12728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12729   (eval $ac_compile) 2>&5
12730   ac_status=$?
12731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732   (exit $ac_status); } &&
12733          { ac_try='test -s conftest.$ac_objext'
12734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12735   (eval $ac_try) 2>&5
12736   ac_status=$?
12737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738   (exit $ac_status); }; }; then
12739   ac_hi=-1 ac_mid=-1
12740   while :; do
12741     cat >conftest.$ac_ext <<_ACEOF
12742 #line $LINENO "configure"
12743 #include "confdefs.h"
12744 $ac_includes_default
12745 struct { char filler; short field; } pgac_struct;
12746 #ifdef F77_DUMMY_MAIN
12747 #  ifdef __cplusplus
12748      extern "C"
12749 #  endif
12750    int F77_DUMMY_MAIN() { return 1; }
12751 #endif
12752 int
12753 main ()
12754 {
12755 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
12756 test_array [0] = 0
12757
12758   ;
12759   return 0;
12760 }
12761 _ACEOF
12762 rm -f conftest.$ac_objext
12763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12764   (eval $ac_compile) 2>&5
12765   ac_status=$?
12766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767   (exit $ac_status); } &&
12768          { ac_try='test -s conftest.$ac_objext'
12769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12770   (eval $ac_try) 2>&5
12771   ac_status=$?
12772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773   (exit $ac_status); }; }; then
12774   ac_lo=$ac_mid; break
12775 else
12776   echo "$as_me: failed program was:" >&5
12777 cat conftest.$ac_ext >&5
12778 ac_hi=`expr '(' $ac_mid ')' - 1`
12779                        if test $ac_mid -le $ac_hi; then
12780                          ac_lo= ac_hi=
12781                          break
12782                        fi
12783                        ac_mid=`expr 2 '*' $ac_mid`
12784 fi
12785 rm -f conftest.$ac_objext conftest.$ac_ext
12786   done
12787 else
12788   echo "$as_me: failed program was:" >&5
12789 cat conftest.$ac_ext >&5
12790 ac_lo= ac_hi=
12791 fi
12792 rm -f conftest.$ac_objext conftest.$ac_ext
12793 fi
12794 rm -f conftest.$ac_objext conftest.$ac_ext
12795 # Binary search between lo and hi bounds.
12796 while test "x$ac_lo" != "x$ac_hi"; do
12797   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12798   cat >conftest.$ac_ext <<_ACEOF
12799 #line $LINENO "configure"
12800 #include "confdefs.h"
12801 $ac_includes_default
12802 struct { char filler; short field; } pgac_struct;
12803 #ifdef F77_DUMMY_MAIN
12804 #  ifdef __cplusplus
12805      extern "C"
12806 #  endif
12807    int F77_DUMMY_MAIN() { return 1; }
12808 #endif
12809 int
12810 main ()
12811 {
12812 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12813 test_array [0] = 0
12814
12815   ;
12816   return 0;
12817 }
12818 _ACEOF
12819 rm -f conftest.$ac_objext
12820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12821   (eval $ac_compile) 2>&5
12822   ac_status=$?
12823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824   (exit $ac_status); } &&
12825          { ac_try='test -s conftest.$ac_objext'
12826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827   (eval $ac_try) 2>&5
12828   ac_status=$?
12829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830   (exit $ac_status); }; }; then
12831   ac_hi=$ac_mid
12832 else
12833   echo "$as_me: failed program was:" >&5
12834 cat conftest.$ac_ext >&5
12835 ac_lo=`expr '(' $ac_mid ')' + 1`
12836 fi
12837 rm -f conftest.$ac_objext conftest.$ac_ext
12838 done
12839 case $ac_lo in
12840 ?*) pgac_cv_alignof_short=$ac_lo;;
12841 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
12842 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
12843    { (exit 1); exit 1; }; } ;;
12844 esac
12845 else
12846   if test "$cross_compiling" = yes; then
12847   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12848 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12849    { (exit 1); exit 1; }; }
12850 else
12851   cat >conftest.$ac_ext <<_ACEOF
12852 #line $LINENO "configure"
12853 #include "confdefs.h"
12854 $ac_includes_default
12855 struct { char filler; short field; } pgac_struct;
12856 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12857 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12858 #include <stdio.h>
12859 #include <stdlib.h>
12860 #ifdef F77_DUMMY_MAIN
12861 #  ifdef __cplusplus
12862      extern "C"
12863 #  endif
12864    int F77_DUMMY_MAIN() { return 1; }
12865 #endif
12866 int
12867 main ()
12868 {
12869
12870   FILE *f = fopen ("conftest.val", "w");
12871   if (! f)
12872     exit (1);
12873   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
12874     {
12875       long i = longval ();
12876       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12877         exit (1);
12878       fprintf (f, "%ld\n", i);
12879     }
12880   else
12881     {
12882       unsigned long i = ulongval ();
12883       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12884         exit (1);
12885       fprintf (f, "%lu\n", i);
12886     }
12887   exit (ferror (f) || fclose (f) != 0);
12888
12889   ;
12890   return 0;
12891 }
12892 _ACEOF
12893 rm -f conftest$ac_exeext
12894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12895   (eval $ac_link) 2>&5
12896   ac_status=$?
12897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900   (eval $ac_try) 2>&5
12901   ac_status=$?
12902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903   (exit $ac_status); }; }; then
12904   pgac_cv_alignof_short=`cat conftest.val`
12905 else
12906   echo "$as_me: program exited with status $ac_status" >&5
12907 echo "$as_me: failed program was:" >&5
12908 cat conftest.$ac_ext >&5
12909 ( exit $ac_status )
12910 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
12911 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
12912    { (exit 1); exit 1; }; }
12913 fi
12914 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12915 fi
12916 fi
12917 rm -f conftest.val
12918 else
12919   pgac_cv_alignof_short=0
12920 fi
12921 fi
12922 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
12923 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
12924 cat >>confdefs.h <<_ACEOF
12925 #define ALIGNOF_SHORT $pgac_cv_alignof_short
12926 _ACEOF
12927
12928
12929 echo "$as_me:$LINENO: checking for int" >&5
12930 echo $ECHO_N "checking for int... $ECHO_C" >&6
12931 if test "${ac_cv_type_int+set}" = set; then
12932   echo $ECHO_N "(cached) $ECHO_C" >&6
12933 else
12934   cat >conftest.$ac_ext <<_ACEOF
12935 #line $LINENO "configure"
12936 #include "confdefs.h"
12937 $ac_includes_default
12938 #ifdef F77_DUMMY_MAIN
12939 #  ifdef __cplusplus
12940      extern "C"
12941 #  endif
12942    int F77_DUMMY_MAIN() { return 1; }
12943 #endif
12944 int
12945 main ()
12946 {
12947 if ((int *) 0)
12948   return 0;
12949 if (sizeof (int))
12950   return 0;
12951   ;
12952   return 0;
12953 }
12954 _ACEOF
12955 rm -f conftest.$ac_objext
12956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12957   (eval $ac_compile) 2>&5
12958   ac_status=$?
12959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960   (exit $ac_status); } &&
12961          { ac_try='test -s conftest.$ac_objext'
12962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963   (eval $ac_try) 2>&5
12964   ac_status=$?
12965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966   (exit $ac_status); }; }; then
12967   ac_cv_type_int=yes
12968 else
12969   echo "$as_me: failed program was:" >&5
12970 cat conftest.$ac_ext >&5
12971 ac_cv_type_int=no
12972 fi
12973 rm -f conftest.$ac_objext conftest.$ac_ext
12974 fi
12975 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12976 echo "${ECHO_T}$ac_cv_type_int" >&6
12977
12978 echo "$as_me:$LINENO: checking alignment of int" >&5
12979 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
12980 if test "${pgac_cv_alignof_int+set}" = set; then
12981   echo $ECHO_N "(cached) $ECHO_C" >&6
12982 else
12983   if test "$ac_cv_type_int" = yes; then
12984   if test "$cross_compiling" = yes; then
12985   # Depending upon the size, compute the lo and hi bounds.
12986 cat >conftest.$ac_ext <<_ACEOF
12987 #line $LINENO "configure"
12988 #include "confdefs.h"
12989 $ac_includes_default
12990 struct { char filler; int field; } pgac_struct;
12991 #ifdef F77_DUMMY_MAIN
12992 #  ifdef __cplusplus
12993      extern "C"
12994 #  endif
12995    int F77_DUMMY_MAIN() { return 1; }
12996 #endif
12997 int
12998 main ()
12999 {
13000 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13001 test_array [0] = 0
13002
13003   ;
13004   return 0;
13005 }
13006 _ACEOF
13007 rm -f conftest.$ac_objext
13008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13009   (eval $ac_compile) 2>&5
13010   ac_status=$?
13011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012   (exit $ac_status); } &&
13013          { ac_try='test -s conftest.$ac_objext'
13014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13015   (eval $ac_try) 2>&5
13016   ac_status=$?
13017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018   (exit $ac_status); }; }; then
13019   ac_lo=0 ac_mid=0
13020   while :; do
13021     cat >conftest.$ac_ext <<_ACEOF
13022 #line $LINENO "configure"
13023 #include "confdefs.h"
13024 $ac_includes_default
13025 struct { char filler; int field; } pgac_struct;
13026 #ifdef F77_DUMMY_MAIN
13027 #  ifdef __cplusplus
13028      extern "C"
13029 #  endif
13030    int F77_DUMMY_MAIN() { return 1; }
13031 #endif
13032 int
13033 main ()
13034 {
13035 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13036 test_array [0] = 0
13037
13038   ;
13039   return 0;
13040 }
13041 _ACEOF
13042 rm -f conftest.$ac_objext
13043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13044   (eval $ac_compile) 2>&5
13045   ac_status=$?
13046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047   (exit $ac_status); } &&
13048          { ac_try='test -s conftest.$ac_objext'
13049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050   (eval $ac_try) 2>&5
13051   ac_status=$?
13052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053   (exit $ac_status); }; }; then
13054   ac_hi=$ac_mid; break
13055 else
13056   echo "$as_me: failed program was:" >&5
13057 cat conftest.$ac_ext >&5
13058 ac_lo=`expr $ac_mid + 1`
13059                     if test $ac_lo -le $ac_mid; then
13060                       ac_lo= ac_hi=
13061                       break
13062                     fi
13063                     ac_mid=`expr 2 '*' $ac_mid + 1`
13064 fi
13065 rm -f conftest.$ac_objext conftest.$ac_ext
13066   done
13067 else
13068   echo "$as_me: failed program was:" >&5
13069 cat conftest.$ac_ext >&5
13070 cat >conftest.$ac_ext <<_ACEOF
13071 #line $LINENO "configure"
13072 #include "confdefs.h"
13073 $ac_includes_default
13074 struct { char filler; int field; } pgac_struct;
13075 #ifdef F77_DUMMY_MAIN
13076 #  ifdef __cplusplus
13077      extern "C"
13078 #  endif
13079    int F77_DUMMY_MAIN() { return 1; }
13080 #endif
13081 int
13082 main ()
13083 {
13084 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13085 test_array [0] = 0
13086
13087   ;
13088   return 0;
13089 }
13090 _ACEOF
13091 rm -f conftest.$ac_objext
13092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13093   (eval $ac_compile) 2>&5
13094   ac_status=$?
13095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096   (exit $ac_status); } &&
13097          { ac_try='test -s conftest.$ac_objext'
13098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13099   (eval $ac_try) 2>&5
13100   ac_status=$?
13101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102   (exit $ac_status); }; }; then
13103   ac_hi=-1 ac_mid=-1
13104   while :; do
13105     cat >conftest.$ac_ext <<_ACEOF
13106 #line $LINENO "configure"
13107 #include "confdefs.h"
13108 $ac_includes_default
13109 struct { char filler; int field; } pgac_struct;
13110 #ifdef F77_DUMMY_MAIN
13111 #  ifdef __cplusplus
13112      extern "C"
13113 #  endif
13114    int F77_DUMMY_MAIN() { return 1; }
13115 #endif
13116 int
13117 main ()
13118 {
13119 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13120 test_array [0] = 0
13121
13122   ;
13123   return 0;
13124 }
13125 _ACEOF
13126 rm -f conftest.$ac_objext
13127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13128   (eval $ac_compile) 2>&5
13129   ac_status=$?
13130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131   (exit $ac_status); } &&
13132          { ac_try='test -s conftest.$ac_objext'
13133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13134   (eval $ac_try) 2>&5
13135   ac_status=$?
13136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137   (exit $ac_status); }; }; then
13138   ac_lo=$ac_mid; break
13139 else
13140   echo "$as_me: failed program was:" >&5
13141 cat conftest.$ac_ext >&5
13142 ac_hi=`expr '(' $ac_mid ')' - 1`
13143                        if test $ac_mid -le $ac_hi; then
13144                          ac_lo= ac_hi=
13145                          break
13146                        fi
13147                        ac_mid=`expr 2 '*' $ac_mid`
13148 fi
13149 rm -f conftest.$ac_objext conftest.$ac_ext
13150   done
13151 else
13152   echo "$as_me: failed program was:" >&5
13153 cat conftest.$ac_ext >&5
13154 ac_lo= ac_hi=
13155 fi
13156 rm -f conftest.$ac_objext conftest.$ac_ext
13157 fi
13158 rm -f conftest.$ac_objext conftest.$ac_ext
13159 # Binary search between lo and hi bounds.
13160 while test "x$ac_lo" != "x$ac_hi"; do
13161   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13162   cat >conftest.$ac_ext <<_ACEOF
13163 #line $LINENO "configure"
13164 #include "confdefs.h"
13165 $ac_includes_default
13166 struct { char filler; int field; } pgac_struct;
13167 #ifdef F77_DUMMY_MAIN
13168 #  ifdef __cplusplus
13169      extern "C"
13170 #  endif
13171    int F77_DUMMY_MAIN() { return 1; }
13172 #endif
13173 int
13174 main ()
13175 {
13176 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13177 test_array [0] = 0
13178
13179   ;
13180   return 0;
13181 }
13182 _ACEOF
13183 rm -f conftest.$ac_objext
13184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13185   (eval $ac_compile) 2>&5
13186   ac_status=$?
13187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188   (exit $ac_status); } &&
13189          { ac_try='test -s conftest.$ac_objext'
13190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13191   (eval $ac_try) 2>&5
13192   ac_status=$?
13193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194   (exit $ac_status); }; }; then
13195   ac_hi=$ac_mid
13196 else
13197   echo "$as_me: failed program was:" >&5
13198 cat conftest.$ac_ext >&5
13199 ac_lo=`expr '(' $ac_mid ')' + 1`
13200 fi
13201 rm -f conftest.$ac_objext conftest.$ac_ext
13202 done
13203 case $ac_lo in
13204 ?*) pgac_cv_alignof_int=$ac_lo;;
13205 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13206 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13207    { (exit 1); exit 1; }; } ;;
13208 esac
13209 else
13210   if test "$cross_compiling" = yes; then
13211   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13212 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13213    { (exit 1); exit 1; }; }
13214 else
13215   cat >conftest.$ac_ext <<_ACEOF
13216 #line $LINENO "configure"
13217 #include "confdefs.h"
13218 $ac_includes_default
13219 struct { char filler; int field; } pgac_struct;
13220 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13221 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13222 #include <stdio.h>
13223 #include <stdlib.h>
13224 #ifdef F77_DUMMY_MAIN
13225 #  ifdef __cplusplus
13226      extern "C"
13227 #  endif
13228    int F77_DUMMY_MAIN() { return 1; }
13229 #endif
13230 int
13231 main ()
13232 {
13233
13234   FILE *f = fopen ("conftest.val", "w");
13235   if (! f)
13236     exit (1);
13237   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13238     {
13239       long i = longval ();
13240       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13241         exit (1);
13242       fprintf (f, "%ld\n", i);
13243     }
13244   else
13245     {
13246       unsigned long i = ulongval ();
13247       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13248         exit (1);
13249       fprintf (f, "%lu\n", i);
13250     }
13251   exit (ferror (f) || fclose (f) != 0);
13252
13253   ;
13254   return 0;
13255 }
13256 _ACEOF
13257 rm -f conftest$ac_exeext
13258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13259   (eval $ac_link) 2>&5
13260   ac_status=$?
13261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264   (eval $ac_try) 2>&5
13265   ac_status=$?
13266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267   (exit $ac_status); }; }; then
13268   pgac_cv_alignof_int=`cat conftest.val`
13269 else
13270   echo "$as_me: program exited with status $ac_status" >&5
13271 echo "$as_me: failed program was:" >&5
13272 cat conftest.$ac_ext >&5
13273 ( exit $ac_status )
13274 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13275 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13276    { (exit 1); exit 1; }; }
13277 fi
13278 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13279 fi
13280 fi
13281 rm -f conftest.val
13282 else
13283   pgac_cv_alignof_int=0
13284 fi
13285 fi
13286 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
13287 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
13288 cat >>confdefs.h <<_ACEOF
13289 #define ALIGNOF_INT $pgac_cv_alignof_int
13290 _ACEOF
13291
13292
13293 echo "$as_me:$LINENO: checking for long" >&5
13294 echo $ECHO_N "checking for long... $ECHO_C" >&6
13295 if test "${ac_cv_type_long+set}" = set; then
13296   echo $ECHO_N "(cached) $ECHO_C" >&6
13297 else
13298   cat >conftest.$ac_ext <<_ACEOF
13299 #line $LINENO "configure"
13300 #include "confdefs.h"
13301 $ac_includes_default
13302 #ifdef F77_DUMMY_MAIN
13303 #  ifdef __cplusplus
13304      extern "C"
13305 #  endif
13306    int F77_DUMMY_MAIN() { return 1; }
13307 #endif
13308 int
13309 main ()
13310 {
13311 if ((long *) 0)
13312   return 0;
13313 if (sizeof (long))
13314   return 0;
13315   ;
13316   return 0;
13317 }
13318 _ACEOF
13319 rm -f conftest.$ac_objext
13320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13321   (eval $ac_compile) 2>&5
13322   ac_status=$?
13323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324   (exit $ac_status); } &&
13325          { ac_try='test -s conftest.$ac_objext'
13326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327   (eval $ac_try) 2>&5
13328   ac_status=$?
13329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330   (exit $ac_status); }; }; then
13331   ac_cv_type_long=yes
13332 else
13333   echo "$as_me: failed program was:" >&5
13334 cat conftest.$ac_ext >&5
13335 ac_cv_type_long=no
13336 fi
13337 rm -f conftest.$ac_objext conftest.$ac_ext
13338 fi
13339 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13340 echo "${ECHO_T}$ac_cv_type_long" >&6
13341
13342 echo "$as_me:$LINENO: checking alignment of long" >&5
13343 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
13344 if test "${pgac_cv_alignof_long+set}" = set; then
13345   echo $ECHO_N "(cached) $ECHO_C" >&6
13346 else
13347   if test "$ac_cv_type_long" = yes; then
13348   if test "$cross_compiling" = yes; then
13349   # Depending upon the size, compute the lo and hi bounds.
13350 cat >conftest.$ac_ext <<_ACEOF
13351 #line $LINENO "configure"
13352 #include "confdefs.h"
13353 $ac_includes_default
13354 struct { char filler; long field; } pgac_struct;
13355 #ifdef F77_DUMMY_MAIN
13356 #  ifdef __cplusplus
13357      extern "C"
13358 #  endif
13359    int F77_DUMMY_MAIN() { return 1; }
13360 #endif
13361 int
13362 main ()
13363 {
13364 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13365 test_array [0] = 0
13366
13367   ;
13368   return 0;
13369 }
13370 _ACEOF
13371 rm -f conftest.$ac_objext
13372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13373   (eval $ac_compile) 2>&5
13374   ac_status=$?
13375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376   (exit $ac_status); } &&
13377          { ac_try='test -s conftest.$ac_objext'
13378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379   (eval $ac_try) 2>&5
13380   ac_status=$?
13381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382   (exit $ac_status); }; }; then
13383   ac_lo=0 ac_mid=0
13384   while :; do
13385     cat >conftest.$ac_ext <<_ACEOF
13386 #line $LINENO "configure"
13387 #include "confdefs.h"
13388 $ac_includes_default
13389 struct { char filler; long field; } pgac_struct;
13390 #ifdef F77_DUMMY_MAIN
13391 #  ifdef __cplusplus
13392      extern "C"
13393 #  endif
13394    int F77_DUMMY_MAIN() { return 1; }
13395 #endif
13396 int
13397 main ()
13398 {
13399 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13400 test_array [0] = 0
13401
13402   ;
13403   return 0;
13404 }
13405 _ACEOF
13406 rm -f conftest.$ac_objext
13407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13408   (eval $ac_compile) 2>&5
13409   ac_status=$?
13410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411   (exit $ac_status); } &&
13412          { ac_try='test -s conftest.$ac_objext'
13413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414   (eval $ac_try) 2>&5
13415   ac_status=$?
13416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417   (exit $ac_status); }; }; then
13418   ac_hi=$ac_mid; break
13419 else
13420   echo "$as_me: failed program was:" >&5
13421 cat conftest.$ac_ext >&5
13422 ac_lo=`expr $ac_mid + 1`
13423                     if test $ac_lo -le $ac_mid; then
13424                       ac_lo= ac_hi=
13425                       break
13426                     fi
13427                     ac_mid=`expr 2 '*' $ac_mid + 1`
13428 fi
13429 rm -f conftest.$ac_objext conftest.$ac_ext
13430   done
13431 else
13432   echo "$as_me: failed program was:" >&5
13433 cat conftest.$ac_ext >&5
13434 cat >conftest.$ac_ext <<_ACEOF
13435 #line $LINENO "configure"
13436 #include "confdefs.h"
13437 $ac_includes_default
13438 struct { char filler; long field; } pgac_struct;
13439 #ifdef F77_DUMMY_MAIN
13440 #  ifdef __cplusplus
13441      extern "C"
13442 #  endif
13443    int F77_DUMMY_MAIN() { return 1; }
13444 #endif
13445 int
13446 main ()
13447 {
13448 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13449 test_array [0] = 0
13450
13451   ;
13452   return 0;
13453 }
13454 _ACEOF
13455 rm -f conftest.$ac_objext
13456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13457   (eval $ac_compile) 2>&5
13458   ac_status=$?
13459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460   (exit $ac_status); } &&
13461          { ac_try='test -s conftest.$ac_objext'
13462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13463   (eval $ac_try) 2>&5
13464   ac_status=$?
13465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466   (exit $ac_status); }; }; then
13467   ac_hi=-1 ac_mid=-1
13468   while :; do
13469     cat >conftest.$ac_ext <<_ACEOF
13470 #line $LINENO "configure"
13471 #include "confdefs.h"
13472 $ac_includes_default
13473 struct { char filler; long field; } pgac_struct;
13474 #ifdef F77_DUMMY_MAIN
13475 #  ifdef __cplusplus
13476      extern "C"
13477 #  endif
13478    int F77_DUMMY_MAIN() { return 1; }
13479 #endif
13480 int
13481 main ()
13482 {
13483 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13484 test_array [0] = 0
13485
13486   ;
13487   return 0;
13488 }
13489 _ACEOF
13490 rm -f conftest.$ac_objext
13491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13492   (eval $ac_compile) 2>&5
13493   ac_status=$?
13494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495   (exit $ac_status); } &&
13496          { ac_try='test -s conftest.$ac_objext'
13497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498   (eval $ac_try) 2>&5
13499   ac_status=$?
13500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501   (exit $ac_status); }; }; then
13502   ac_lo=$ac_mid; break
13503 else
13504   echo "$as_me: failed program was:" >&5
13505 cat conftest.$ac_ext >&5
13506 ac_hi=`expr '(' $ac_mid ')' - 1`
13507                        if test $ac_mid -le $ac_hi; then
13508                          ac_lo= ac_hi=
13509                          break
13510                        fi
13511                        ac_mid=`expr 2 '*' $ac_mid`
13512 fi
13513 rm -f conftest.$ac_objext conftest.$ac_ext
13514   done
13515 else
13516   echo "$as_me: failed program was:" >&5
13517 cat conftest.$ac_ext >&5
13518 ac_lo= ac_hi=
13519 fi
13520 rm -f conftest.$ac_objext conftest.$ac_ext
13521 fi
13522 rm -f conftest.$ac_objext conftest.$ac_ext
13523 # Binary search between lo and hi bounds.
13524 while test "x$ac_lo" != "x$ac_hi"; do
13525   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13526   cat >conftest.$ac_ext <<_ACEOF
13527 #line $LINENO "configure"
13528 #include "confdefs.h"
13529 $ac_includes_default
13530 struct { char filler; long field; } pgac_struct;
13531 #ifdef F77_DUMMY_MAIN
13532 #  ifdef __cplusplus
13533      extern "C"
13534 #  endif
13535    int F77_DUMMY_MAIN() { return 1; }
13536 #endif
13537 int
13538 main ()
13539 {
13540 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13541 test_array [0] = 0
13542
13543   ;
13544   return 0;
13545 }
13546 _ACEOF
13547 rm -f conftest.$ac_objext
13548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13549   (eval $ac_compile) 2>&5
13550   ac_status=$?
13551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552   (exit $ac_status); } &&
13553          { ac_try='test -s conftest.$ac_objext'
13554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13555   (eval $ac_try) 2>&5
13556   ac_status=$?
13557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558   (exit $ac_status); }; }; then
13559   ac_hi=$ac_mid
13560 else
13561   echo "$as_me: failed program was:" >&5
13562 cat conftest.$ac_ext >&5
13563 ac_lo=`expr '(' $ac_mid ')' + 1`
13564 fi
13565 rm -f conftest.$ac_objext conftest.$ac_ext
13566 done
13567 case $ac_lo in
13568 ?*) pgac_cv_alignof_long=$ac_lo;;
13569 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
13570 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
13571    { (exit 1); exit 1; }; } ;;
13572 esac
13573 else
13574   if test "$cross_compiling" = yes; then
13575   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13576 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13577    { (exit 1); exit 1; }; }
13578 else
13579   cat >conftest.$ac_ext <<_ACEOF
13580 #line $LINENO "configure"
13581 #include "confdefs.h"
13582 $ac_includes_default
13583 struct { char filler; long field; } pgac_struct;
13584 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13585 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13586 #include <stdio.h>
13587 #include <stdlib.h>
13588 #ifdef F77_DUMMY_MAIN
13589 #  ifdef __cplusplus
13590      extern "C"
13591 #  endif
13592    int F77_DUMMY_MAIN() { return 1; }
13593 #endif
13594 int
13595 main ()
13596 {
13597
13598   FILE *f = fopen ("conftest.val", "w");
13599   if (! f)
13600     exit (1);
13601   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13602     {
13603       long i = longval ();
13604       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13605         exit (1);
13606       fprintf (f, "%ld\n", i);
13607     }
13608   else
13609     {
13610       unsigned long i = ulongval ();
13611       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13612         exit (1);
13613       fprintf (f, "%lu\n", i);
13614     }
13615   exit (ferror (f) || fclose (f) != 0);
13616
13617   ;
13618   return 0;
13619 }
13620 _ACEOF
13621 rm -f conftest$ac_exeext
13622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13623   (eval $ac_link) 2>&5
13624   ac_status=$?
13625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628   (eval $ac_try) 2>&5
13629   ac_status=$?
13630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631   (exit $ac_status); }; }; then
13632   pgac_cv_alignof_long=`cat conftest.val`
13633 else
13634   echo "$as_me: program exited with status $ac_status" >&5
13635 echo "$as_me: failed program was:" >&5
13636 cat conftest.$ac_ext >&5
13637 ( exit $ac_status )
13638 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
13639 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
13640    { (exit 1); exit 1; }; }
13641 fi
13642 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13643 fi
13644 fi
13645 rm -f conftest.val
13646 else
13647   pgac_cv_alignof_long=0
13648 fi
13649 fi
13650 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
13651 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
13652 cat >>confdefs.h <<_ACEOF
13653 #define ALIGNOF_LONG $pgac_cv_alignof_long
13654 _ACEOF
13655
13656
13657 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
13658   echo "$as_me:$LINENO: checking for long long int" >&5
13659 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13660 if test "${ac_cv_type_long_long_int+set}" = set; then
13661   echo $ECHO_N "(cached) $ECHO_C" >&6
13662 else
13663   cat >conftest.$ac_ext <<_ACEOF
13664 #line $LINENO "configure"
13665 #include "confdefs.h"
13666 $ac_includes_default
13667 #ifdef F77_DUMMY_MAIN
13668 #  ifdef __cplusplus
13669      extern "C"
13670 #  endif
13671    int F77_DUMMY_MAIN() { return 1; }
13672 #endif
13673 int
13674 main ()
13675 {
13676 if ((long long int *) 0)
13677   return 0;
13678 if (sizeof (long long int))
13679   return 0;
13680   ;
13681   return 0;
13682 }
13683 _ACEOF
13684 rm -f conftest.$ac_objext
13685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13686   (eval $ac_compile) 2>&5
13687   ac_status=$?
13688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689   (exit $ac_status); } &&
13690          { ac_try='test -s conftest.$ac_objext'
13691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13692   (eval $ac_try) 2>&5
13693   ac_status=$?
13694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695   (exit $ac_status); }; }; then
13696   ac_cv_type_long_long_int=yes
13697 else
13698   echo "$as_me: failed program was:" >&5
13699 cat conftest.$ac_ext >&5
13700 ac_cv_type_long_long_int=no
13701 fi
13702 rm -f conftest.$ac_objext conftest.$ac_ext
13703 fi
13704 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13705 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13706
13707 echo "$as_me:$LINENO: checking alignment of long long int" >&5
13708 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
13709 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
13710   echo $ECHO_N "(cached) $ECHO_C" >&6
13711 else
13712   if test "$ac_cv_type_long_long_int" = yes; then
13713   if test "$cross_compiling" = yes; then
13714   # Depending upon the size, compute the lo and hi bounds.
13715 cat >conftest.$ac_ext <<_ACEOF
13716 #line $LINENO "configure"
13717 #include "confdefs.h"
13718 $ac_includes_default
13719 struct { char filler; long long int field; } pgac_struct;
13720 #ifdef F77_DUMMY_MAIN
13721 #  ifdef __cplusplus
13722      extern "C"
13723 #  endif
13724    int F77_DUMMY_MAIN() { return 1; }
13725 #endif
13726 int
13727 main ()
13728 {
13729 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13730 test_array [0] = 0
13731
13732   ;
13733   return 0;
13734 }
13735 _ACEOF
13736 rm -f conftest.$ac_objext
13737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13738   (eval $ac_compile) 2>&5
13739   ac_status=$?
13740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741   (exit $ac_status); } &&
13742          { ac_try='test -s conftest.$ac_objext'
13743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744   (eval $ac_try) 2>&5
13745   ac_status=$?
13746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747   (exit $ac_status); }; }; then
13748   ac_lo=0 ac_mid=0
13749   while :; do
13750     cat >conftest.$ac_ext <<_ACEOF
13751 #line $LINENO "configure"
13752 #include "confdefs.h"
13753 $ac_includes_default
13754 struct { char filler; long long int field; } pgac_struct;
13755 #ifdef F77_DUMMY_MAIN
13756 #  ifdef __cplusplus
13757      extern "C"
13758 #  endif
13759    int F77_DUMMY_MAIN() { return 1; }
13760 #endif
13761 int
13762 main ()
13763 {
13764 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13765 test_array [0] = 0
13766
13767   ;
13768   return 0;
13769 }
13770 _ACEOF
13771 rm -f conftest.$ac_objext
13772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13773   (eval $ac_compile) 2>&5
13774   ac_status=$?
13775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776   (exit $ac_status); } &&
13777          { ac_try='test -s conftest.$ac_objext'
13778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13779   (eval $ac_try) 2>&5
13780   ac_status=$?
13781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782   (exit $ac_status); }; }; then
13783   ac_hi=$ac_mid; break
13784 else
13785   echo "$as_me: failed program was:" >&5
13786 cat conftest.$ac_ext >&5
13787 ac_lo=`expr $ac_mid + 1`
13788                     if test $ac_lo -le $ac_mid; then
13789                       ac_lo= ac_hi=
13790                       break
13791                     fi
13792                     ac_mid=`expr 2 '*' $ac_mid + 1`
13793 fi
13794 rm -f conftest.$ac_objext conftest.$ac_ext
13795   done
13796 else
13797   echo "$as_me: failed program was:" >&5
13798 cat conftest.$ac_ext >&5
13799 cat >conftest.$ac_ext <<_ACEOF
13800 #line $LINENO "configure"
13801 #include "confdefs.h"
13802 $ac_includes_default
13803 struct { char filler; long long int field; } pgac_struct;
13804 #ifdef F77_DUMMY_MAIN
13805 #  ifdef __cplusplus
13806      extern "C"
13807 #  endif
13808    int F77_DUMMY_MAIN() { return 1; }
13809 #endif
13810 int
13811 main ()
13812 {
13813 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13814 test_array [0] = 0
13815
13816   ;
13817   return 0;
13818 }
13819 _ACEOF
13820 rm -f conftest.$ac_objext
13821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13822   (eval $ac_compile) 2>&5
13823   ac_status=$?
13824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825   (exit $ac_status); } &&
13826          { ac_try='test -s conftest.$ac_objext'
13827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13828   (eval $ac_try) 2>&5
13829   ac_status=$?
13830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831   (exit $ac_status); }; }; then
13832   ac_hi=-1 ac_mid=-1
13833   while :; do
13834     cat >conftest.$ac_ext <<_ACEOF
13835 #line $LINENO "configure"
13836 #include "confdefs.h"
13837 $ac_includes_default
13838 struct { char filler; long long int field; } pgac_struct;
13839 #ifdef F77_DUMMY_MAIN
13840 #  ifdef __cplusplus
13841      extern "C"
13842 #  endif
13843    int F77_DUMMY_MAIN() { return 1; }
13844 #endif
13845 int
13846 main ()
13847 {
13848 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13849 test_array [0] = 0
13850
13851   ;
13852   return 0;
13853 }
13854 _ACEOF
13855 rm -f conftest.$ac_objext
13856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13857   (eval $ac_compile) 2>&5
13858   ac_status=$?
13859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860   (exit $ac_status); } &&
13861          { ac_try='test -s conftest.$ac_objext'
13862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13863   (eval $ac_try) 2>&5
13864   ac_status=$?
13865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866   (exit $ac_status); }; }; then
13867   ac_lo=$ac_mid; break
13868 else
13869   echo "$as_me: failed program was:" >&5
13870 cat conftest.$ac_ext >&5
13871 ac_hi=`expr '(' $ac_mid ')' - 1`
13872                        if test $ac_mid -le $ac_hi; then
13873                          ac_lo= ac_hi=
13874                          break
13875                        fi
13876                        ac_mid=`expr 2 '*' $ac_mid`
13877 fi
13878 rm -f conftest.$ac_objext conftest.$ac_ext
13879   done
13880 else
13881   echo "$as_me: failed program was:" >&5
13882 cat conftest.$ac_ext >&5
13883 ac_lo= ac_hi=
13884 fi
13885 rm -f conftest.$ac_objext conftest.$ac_ext
13886 fi
13887 rm -f conftest.$ac_objext conftest.$ac_ext
13888 # Binary search between lo and hi bounds.
13889 while test "x$ac_lo" != "x$ac_hi"; do
13890   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13891   cat >conftest.$ac_ext <<_ACEOF
13892 #line $LINENO "configure"
13893 #include "confdefs.h"
13894 $ac_includes_default
13895 struct { char filler; long long int field; } pgac_struct;
13896 #ifdef F77_DUMMY_MAIN
13897 #  ifdef __cplusplus
13898      extern "C"
13899 #  endif
13900    int F77_DUMMY_MAIN() { return 1; }
13901 #endif
13902 int
13903 main ()
13904 {
13905 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13906 test_array [0] = 0
13907
13908   ;
13909   return 0;
13910 }
13911 _ACEOF
13912 rm -f conftest.$ac_objext
13913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13914   (eval $ac_compile) 2>&5
13915   ac_status=$?
13916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917   (exit $ac_status); } &&
13918          { ac_try='test -s conftest.$ac_objext'
13919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920   (eval $ac_try) 2>&5
13921   ac_status=$?
13922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923   (exit $ac_status); }; }; then
13924   ac_hi=$ac_mid
13925 else
13926   echo "$as_me: failed program was:" >&5
13927 cat conftest.$ac_ext >&5
13928 ac_lo=`expr '(' $ac_mid ')' + 1`
13929 fi
13930 rm -f conftest.$ac_objext conftest.$ac_ext
13931 done
13932 case $ac_lo in
13933 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
13934 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
13935 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
13936    { (exit 1); exit 1; }; } ;;
13937 esac
13938 else
13939   if test "$cross_compiling" = yes; then
13940   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13941 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13942    { (exit 1); exit 1; }; }
13943 else
13944   cat >conftest.$ac_ext <<_ACEOF
13945 #line $LINENO "configure"
13946 #include "confdefs.h"
13947 $ac_includes_default
13948 struct { char filler; long long int field; } pgac_struct;
13949 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13950 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13951 #include <stdio.h>
13952 #include <stdlib.h>
13953 #ifdef F77_DUMMY_MAIN
13954 #  ifdef __cplusplus
13955      extern "C"
13956 #  endif
13957    int F77_DUMMY_MAIN() { return 1; }
13958 #endif
13959 int
13960 main ()
13961 {
13962
13963   FILE *f = fopen ("conftest.val", "w");
13964   if (! f)
13965     exit (1);
13966   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13967     {
13968       long i = longval ();
13969       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13970         exit (1);
13971       fprintf (f, "%ld\n", i);
13972     }
13973   else
13974     {
13975       unsigned long i = ulongval ();
13976       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13977         exit (1);
13978       fprintf (f, "%lu\n", i);
13979     }
13980   exit (ferror (f) || fclose (f) != 0);
13981
13982   ;
13983   return 0;
13984 }
13985 _ACEOF
13986 rm -f conftest$ac_exeext
13987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13988   (eval $ac_link) 2>&5
13989   ac_status=$?
13990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993   (eval $ac_try) 2>&5
13994   ac_status=$?
13995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996   (exit $ac_status); }; }; then
13997   pgac_cv_alignof_long_long_int=`cat conftest.val`
13998 else
13999   echo "$as_me: program exited with status $ac_status" >&5
14000 echo "$as_me: failed program was:" >&5
14001 cat conftest.$ac_ext >&5
14002 ( exit $ac_status )
14003 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14004 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14005    { (exit 1); exit 1; }; }
14006 fi
14007 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14008 fi
14009 fi
14010 rm -f conftest.val
14011 else
14012   pgac_cv_alignof_long_long_int=0
14013 fi
14014 fi
14015 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
14016 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
14017 cat >>confdefs.h <<_ACEOF
14018 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
14019 _ACEOF
14020
14021
14022 fi
14023 echo "$as_me:$LINENO: checking for double" >&5
14024 echo $ECHO_N "checking for double... $ECHO_C" >&6
14025 if test "${ac_cv_type_double+set}" = set; then
14026   echo $ECHO_N "(cached) $ECHO_C" >&6
14027 else
14028   cat >conftest.$ac_ext <<_ACEOF
14029 #line $LINENO "configure"
14030 #include "confdefs.h"
14031 $ac_includes_default
14032 #ifdef F77_DUMMY_MAIN
14033 #  ifdef __cplusplus
14034      extern "C"
14035 #  endif
14036    int F77_DUMMY_MAIN() { return 1; }
14037 #endif
14038 int
14039 main ()
14040 {
14041 if ((double *) 0)
14042   return 0;
14043 if (sizeof (double))
14044   return 0;
14045   ;
14046   return 0;
14047 }
14048 _ACEOF
14049 rm -f conftest.$ac_objext
14050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14051   (eval $ac_compile) 2>&5
14052   ac_status=$?
14053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054   (exit $ac_status); } &&
14055          { ac_try='test -s conftest.$ac_objext'
14056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14057   (eval $ac_try) 2>&5
14058   ac_status=$?
14059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060   (exit $ac_status); }; }; then
14061   ac_cv_type_double=yes
14062 else
14063   echo "$as_me: failed program was:" >&5
14064 cat conftest.$ac_ext >&5
14065 ac_cv_type_double=no
14066 fi
14067 rm -f conftest.$ac_objext conftest.$ac_ext
14068 fi
14069 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
14070 echo "${ECHO_T}$ac_cv_type_double" >&6
14071
14072 echo "$as_me:$LINENO: checking alignment of double" >&5
14073 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
14074 if test "${pgac_cv_alignof_double+set}" = set; then
14075   echo $ECHO_N "(cached) $ECHO_C" >&6
14076 else
14077   if test "$ac_cv_type_double" = yes; then
14078   if test "$cross_compiling" = yes; then
14079   # Depending upon the size, compute the lo and hi bounds.
14080 cat >conftest.$ac_ext <<_ACEOF
14081 #line $LINENO "configure"
14082 #include "confdefs.h"
14083 $ac_includes_default
14084 struct { char filler; double field; } pgac_struct;
14085 #ifdef F77_DUMMY_MAIN
14086 #  ifdef __cplusplus
14087      extern "C"
14088 #  endif
14089    int F77_DUMMY_MAIN() { return 1; }
14090 #endif
14091 int
14092 main ()
14093 {
14094 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14095 test_array [0] = 0
14096
14097   ;
14098   return 0;
14099 }
14100 _ACEOF
14101 rm -f conftest.$ac_objext
14102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14103   (eval $ac_compile) 2>&5
14104   ac_status=$?
14105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106   (exit $ac_status); } &&
14107          { ac_try='test -s conftest.$ac_objext'
14108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109   (eval $ac_try) 2>&5
14110   ac_status=$?
14111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112   (exit $ac_status); }; }; then
14113   ac_lo=0 ac_mid=0
14114   while :; do
14115     cat >conftest.$ac_ext <<_ACEOF
14116 #line $LINENO "configure"
14117 #include "confdefs.h"
14118 $ac_includes_default
14119 struct { char filler; double field; } pgac_struct;
14120 #ifdef F77_DUMMY_MAIN
14121 #  ifdef __cplusplus
14122      extern "C"
14123 #  endif
14124    int F77_DUMMY_MAIN() { return 1; }
14125 #endif
14126 int
14127 main ()
14128 {
14129 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14130 test_array [0] = 0
14131
14132   ;
14133   return 0;
14134 }
14135 _ACEOF
14136 rm -f conftest.$ac_objext
14137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14138   (eval $ac_compile) 2>&5
14139   ac_status=$?
14140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141   (exit $ac_status); } &&
14142          { ac_try='test -s conftest.$ac_objext'
14143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14144   (eval $ac_try) 2>&5
14145   ac_status=$?
14146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147   (exit $ac_status); }; }; then
14148   ac_hi=$ac_mid; break
14149 else
14150   echo "$as_me: failed program was:" >&5
14151 cat conftest.$ac_ext >&5
14152 ac_lo=`expr $ac_mid + 1`
14153                     if test $ac_lo -le $ac_mid; then
14154                       ac_lo= ac_hi=
14155                       break
14156                     fi
14157                     ac_mid=`expr 2 '*' $ac_mid + 1`
14158 fi
14159 rm -f conftest.$ac_objext conftest.$ac_ext
14160   done
14161 else
14162   echo "$as_me: failed program was:" >&5
14163 cat conftest.$ac_ext >&5
14164 cat >conftest.$ac_ext <<_ACEOF
14165 #line $LINENO "configure"
14166 #include "confdefs.h"
14167 $ac_includes_default
14168 struct { char filler; double field; } pgac_struct;
14169 #ifdef F77_DUMMY_MAIN
14170 #  ifdef __cplusplus
14171      extern "C"
14172 #  endif
14173    int F77_DUMMY_MAIN() { return 1; }
14174 #endif
14175 int
14176 main ()
14177 {
14178 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14179 test_array [0] = 0
14180
14181   ;
14182   return 0;
14183 }
14184 _ACEOF
14185 rm -f conftest.$ac_objext
14186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14187   (eval $ac_compile) 2>&5
14188   ac_status=$?
14189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190   (exit $ac_status); } &&
14191          { ac_try='test -s conftest.$ac_objext'
14192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193   (eval $ac_try) 2>&5
14194   ac_status=$?
14195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196   (exit $ac_status); }; }; then
14197   ac_hi=-1 ac_mid=-1
14198   while :; do
14199     cat >conftest.$ac_ext <<_ACEOF
14200 #line $LINENO "configure"
14201 #include "confdefs.h"
14202 $ac_includes_default
14203 struct { char filler; double field; } pgac_struct;
14204 #ifdef F77_DUMMY_MAIN
14205 #  ifdef __cplusplus
14206      extern "C"
14207 #  endif
14208    int F77_DUMMY_MAIN() { return 1; }
14209 #endif
14210 int
14211 main ()
14212 {
14213 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14214 test_array [0] = 0
14215
14216   ;
14217   return 0;
14218 }
14219 _ACEOF
14220 rm -f conftest.$ac_objext
14221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14222   (eval $ac_compile) 2>&5
14223   ac_status=$?
14224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225   (exit $ac_status); } &&
14226          { ac_try='test -s conftest.$ac_objext'
14227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14228   (eval $ac_try) 2>&5
14229   ac_status=$?
14230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231   (exit $ac_status); }; }; then
14232   ac_lo=$ac_mid; break
14233 else
14234   echo "$as_me: failed program was:" >&5
14235 cat conftest.$ac_ext >&5
14236 ac_hi=`expr '(' $ac_mid ')' - 1`
14237                        if test $ac_mid -le $ac_hi; then
14238                          ac_lo= ac_hi=
14239                          break
14240                        fi
14241                        ac_mid=`expr 2 '*' $ac_mid`
14242 fi
14243 rm -f conftest.$ac_objext conftest.$ac_ext
14244   done
14245 else
14246   echo "$as_me: failed program was:" >&5
14247 cat conftest.$ac_ext >&5
14248 ac_lo= ac_hi=
14249 fi
14250 rm -f conftest.$ac_objext conftest.$ac_ext
14251 fi
14252 rm -f conftest.$ac_objext conftest.$ac_ext
14253 # Binary search between lo and hi bounds.
14254 while test "x$ac_lo" != "x$ac_hi"; do
14255   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14256   cat >conftest.$ac_ext <<_ACEOF
14257 #line $LINENO "configure"
14258 #include "confdefs.h"
14259 $ac_includes_default
14260 struct { char filler; double field; } pgac_struct;
14261 #ifdef F77_DUMMY_MAIN
14262 #  ifdef __cplusplus
14263      extern "C"
14264 #  endif
14265    int F77_DUMMY_MAIN() { return 1; }
14266 #endif
14267 int
14268 main ()
14269 {
14270 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14271 test_array [0] = 0
14272
14273   ;
14274   return 0;
14275 }
14276 _ACEOF
14277 rm -f conftest.$ac_objext
14278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14279   (eval $ac_compile) 2>&5
14280   ac_status=$?
14281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282   (exit $ac_status); } &&
14283          { ac_try='test -s conftest.$ac_objext'
14284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285   (eval $ac_try) 2>&5
14286   ac_status=$?
14287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288   (exit $ac_status); }; }; then
14289   ac_hi=$ac_mid
14290 else
14291   echo "$as_me: failed program was:" >&5
14292 cat conftest.$ac_ext >&5
14293 ac_lo=`expr '(' $ac_mid ')' + 1`
14294 fi
14295 rm -f conftest.$ac_objext conftest.$ac_ext
14296 done
14297 case $ac_lo in
14298 ?*) pgac_cv_alignof_double=$ac_lo;;
14299 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14300 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14301    { (exit 1); exit 1; }; } ;;
14302 esac
14303 else
14304   if test "$cross_compiling" = yes; then
14305   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14306 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14307    { (exit 1); exit 1; }; }
14308 else
14309   cat >conftest.$ac_ext <<_ACEOF
14310 #line $LINENO "configure"
14311 #include "confdefs.h"
14312 $ac_includes_default
14313 struct { char filler; double field; } pgac_struct;
14314 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14315 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14316 #include <stdio.h>
14317 #include <stdlib.h>
14318 #ifdef F77_DUMMY_MAIN
14319 #  ifdef __cplusplus
14320      extern "C"
14321 #  endif
14322    int F77_DUMMY_MAIN() { return 1; }
14323 #endif
14324 int
14325 main ()
14326 {
14327
14328   FILE *f = fopen ("conftest.val", "w");
14329   if (! f)
14330     exit (1);
14331   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14332     {
14333       long i = longval ();
14334       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14335         exit (1);
14336       fprintf (f, "%ld\n", i);
14337     }
14338   else
14339     {
14340       unsigned long i = ulongval ();
14341       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14342         exit (1);
14343       fprintf (f, "%lu\n", i);
14344     }
14345   exit (ferror (f) || fclose (f) != 0);
14346
14347   ;
14348   return 0;
14349 }
14350 _ACEOF
14351 rm -f conftest$ac_exeext
14352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14353   (eval $ac_link) 2>&5
14354   ac_status=$?
14355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358   (eval $ac_try) 2>&5
14359   ac_status=$?
14360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361   (exit $ac_status); }; }; then
14362   pgac_cv_alignof_double=`cat conftest.val`
14363 else
14364   echo "$as_me: program exited with status $ac_status" >&5
14365 echo "$as_me: failed program was:" >&5
14366 cat conftest.$ac_ext >&5
14367 ( exit $ac_status )
14368 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14369 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14370    { (exit 1); exit 1; }; }
14371 fi
14372 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14373 fi
14374 fi
14375 rm -f conftest.val
14376 else
14377   pgac_cv_alignof_double=0
14378 fi
14379 fi
14380 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
14381 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
14382 cat >>confdefs.h <<_ACEOF
14383 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
14384 _ACEOF
14385
14386
14387
14388 # Compute maximum alignment of any basic type.
14389 # We assume long's alignment is at least as strong as char, short, or int;
14390 # but we must check long long (if it exists) and double.
14391
14392 MAX_ALIGNOF=$pgac_cv_alignof_long
14393 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
14394   MAX_ALIGNOF=$pgac_cv_alignof_double
14395 fi
14396 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
14397   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
14398 fi
14399
14400 cat >>confdefs.h <<_ACEOF
14401 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
14402 _ACEOF
14403
14404
14405
14406 # Some platforms predefine the types int8, int16, etc.  Only check
14407 # a (hopefully) representative subset.
14408 echo "$as_me:$LINENO: checking for int8" >&5
14409 echo $ECHO_N "checking for int8... $ECHO_C" >&6
14410 if test "${ac_cv_type_int8+set}" = set; then
14411   echo $ECHO_N "(cached) $ECHO_C" >&6
14412 else
14413   cat >conftest.$ac_ext <<_ACEOF
14414 #line $LINENO "configure"
14415 #include "confdefs.h"
14416 #include <stdio.h>
14417 #ifdef HAVE_SUPPORTDEFS_H
14418 #include <SupportDefs.h>
14419 #endif
14420
14421 #ifdef F77_DUMMY_MAIN
14422 #  ifdef __cplusplus
14423      extern "C"
14424 #  endif
14425    int F77_DUMMY_MAIN() { return 1; }
14426 #endif
14427 int
14428 main ()
14429 {
14430 if ((int8 *) 0)
14431   return 0;
14432 if (sizeof (int8))
14433   return 0;
14434   ;
14435   return 0;
14436 }
14437 _ACEOF
14438 rm -f conftest.$ac_objext
14439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14440   (eval $ac_compile) 2>&5
14441   ac_status=$?
14442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443   (exit $ac_status); } &&
14444          { ac_try='test -s conftest.$ac_objext'
14445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14446   (eval $ac_try) 2>&5
14447   ac_status=$?
14448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449   (exit $ac_status); }; }; then
14450   ac_cv_type_int8=yes
14451 else
14452   echo "$as_me: failed program was:" >&5
14453 cat conftest.$ac_ext >&5
14454 ac_cv_type_int8=no
14455 fi
14456 rm -f conftest.$ac_objext conftest.$ac_ext
14457 fi
14458 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
14459 echo "${ECHO_T}$ac_cv_type_int8" >&6
14460 if test $ac_cv_type_int8 = yes; then
14461
14462 cat >>confdefs.h <<_ACEOF
14463 #define HAVE_INT8 1
14464 _ACEOF
14465
14466
14467 fi
14468 echo "$as_me:$LINENO: checking for uint8" >&5
14469 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
14470 if test "${ac_cv_type_uint8+set}" = set; then
14471   echo $ECHO_N "(cached) $ECHO_C" >&6
14472 else
14473   cat >conftest.$ac_ext <<_ACEOF
14474 #line $LINENO "configure"
14475 #include "confdefs.h"
14476 #include <stdio.h>
14477 #ifdef HAVE_SUPPORTDEFS_H
14478 #include <SupportDefs.h>
14479 #endif
14480
14481 #ifdef F77_DUMMY_MAIN
14482 #  ifdef __cplusplus
14483      extern "C"
14484 #  endif
14485    int F77_DUMMY_MAIN() { return 1; }
14486 #endif
14487 int
14488 main ()
14489 {
14490 if ((uint8 *) 0)
14491   return 0;
14492 if (sizeof (uint8))
14493   return 0;
14494   ;
14495   return 0;
14496 }
14497 _ACEOF
14498 rm -f conftest.$ac_objext
14499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14500   (eval $ac_compile) 2>&5
14501   ac_status=$?
14502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503   (exit $ac_status); } &&
14504          { ac_try='test -s conftest.$ac_objext'
14505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506   (eval $ac_try) 2>&5
14507   ac_status=$?
14508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509   (exit $ac_status); }; }; then
14510   ac_cv_type_uint8=yes
14511 else
14512   echo "$as_me: failed program was:" >&5
14513 cat conftest.$ac_ext >&5
14514 ac_cv_type_uint8=no
14515 fi
14516 rm -f conftest.$ac_objext conftest.$ac_ext
14517 fi
14518 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
14519 echo "${ECHO_T}$ac_cv_type_uint8" >&6
14520 if test $ac_cv_type_uint8 = yes; then
14521
14522 cat >>confdefs.h <<_ACEOF
14523 #define HAVE_UINT8 1
14524 _ACEOF
14525
14526
14527 fi
14528 echo "$as_me:$LINENO: checking for int64" >&5
14529 echo $ECHO_N "checking for int64... $ECHO_C" >&6
14530 if test "${ac_cv_type_int64+set}" = set; then
14531   echo $ECHO_N "(cached) $ECHO_C" >&6
14532 else
14533   cat >conftest.$ac_ext <<_ACEOF
14534 #line $LINENO "configure"
14535 #include "confdefs.h"
14536 #include <stdio.h>
14537 #ifdef HAVE_SUPPORTDEFS_H
14538 #include <SupportDefs.h>
14539 #endif
14540
14541 #ifdef F77_DUMMY_MAIN
14542 #  ifdef __cplusplus
14543      extern "C"
14544 #  endif
14545    int F77_DUMMY_MAIN() { return 1; }
14546 #endif
14547 int
14548 main ()
14549 {
14550 if ((int64 *) 0)
14551   return 0;
14552 if (sizeof (int64))
14553   return 0;
14554   ;
14555   return 0;
14556 }
14557 _ACEOF
14558 rm -f conftest.$ac_objext
14559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14560   (eval $ac_compile) 2>&5
14561   ac_status=$?
14562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563   (exit $ac_status); } &&
14564          { ac_try='test -s conftest.$ac_objext'
14565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14566   (eval $ac_try) 2>&5
14567   ac_status=$?
14568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569   (exit $ac_status); }; }; then
14570   ac_cv_type_int64=yes
14571 else
14572   echo "$as_me: failed program was:" >&5
14573 cat conftest.$ac_ext >&5
14574 ac_cv_type_int64=no
14575 fi
14576 rm -f conftest.$ac_objext conftest.$ac_ext
14577 fi
14578 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
14579 echo "${ECHO_T}$ac_cv_type_int64" >&6
14580 if test $ac_cv_type_int64 = yes; then
14581
14582 cat >>confdefs.h <<_ACEOF
14583 #define HAVE_INT64 1
14584 _ACEOF
14585
14586
14587 fi
14588 echo "$as_me:$LINENO: checking for uint64" >&5
14589 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
14590 if test "${ac_cv_type_uint64+set}" = set; then
14591   echo $ECHO_N "(cached) $ECHO_C" >&6
14592 else
14593   cat >conftest.$ac_ext <<_ACEOF
14594 #line $LINENO "configure"
14595 #include "confdefs.h"
14596 #include <stdio.h>
14597 #ifdef HAVE_SUPPORTDEFS_H
14598 #include <SupportDefs.h>
14599 #endif
14600
14601 #ifdef F77_DUMMY_MAIN
14602 #  ifdef __cplusplus
14603      extern "C"
14604 #  endif
14605    int F77_DUMMY_MAIN() { return 1; }
14606 #endif
14607 int
14608 main ()
14609 {
14610 if ((uint64 *) 0)
14611   return 0;
14612 if (sizeof (uint64))
14613   return 0;
14614   ;
14615   return 0;
14616 }
14617 _ACEOF
14618 rm -f conftest.$ac_objext
14619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14620   (eval $ac_compile) 2>&5
14621   ac_status=$?
14622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623   (exit $ac_status); } &&
14624          { ac_try='test -s conftest.$ac_objext'
14625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626   (eval $ac_try) 2>&5
14627   ac_status=$?
14628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629   (exit $ac_status); }; }; then
14630   ac_cv_type_uint64=yes
14631 else
14632   echo "$as_me: failed program was:" >&5
14633 cat conftest.$ac_ext >&5
14634 ac_cv_type_uint64=no
14635 fi
14636 rm -f conftest.$ac_objext conftest.$ac_ext
14637 fi
14638 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
14639 echo "${ECHO_T}$ac_cv_type_uint64" >&6
14640 if test $ac_cv_type_uint64 = yes; then
14641
14642 cat >>confdefs.h <<_ACEOF
14643 #define HAVE_UINT64 1
14644 _ACEOF
14645
14646
14647 fi
14648
14649
14650 # We also check for sig_atomic_t, which *should* be defined per ANSI
14651 # C, but is missing on some old platforms.
14652 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
14653 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
14654 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
14655   echo $ECHO_N "(cached) $ECHO_C" >&6
14656 else
14657   cat >conftest.$ac_ext <<_ACEOF
14658 #line $LINENO "configure"
14659 #include "confdefs.h"
14660 #include <signal.h>
14661
14662 #ifdef F77_DUMMY_MAIN
14663 #  ifdef __cplusplus
14664      extern "C"
14665 #  endif
14666    int F77_DUMMY_MAIN() { return 1; }
14667 #endif
14668 int
14669 main ()
14670 {
14671 if ((sig_atomic_t *) 0)
14672   return 0;
14673 if (sizeof (sig_atomic_t))
14674   return 0;
14675   ;
14676   return 0;
14677 }
14678 _ACEOF
14679 rm -f conftest.$ac_objext
14680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14681   (eval $ac_compile) 2>&5
14682   ac_status=$?
14683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684   (exit $ac_status); } &&
14685          { ac_try='test -s conftest.$ac_objext'
14686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14687   (eval $ac_try) 2>&5
14688   ac_status=$?
14689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690   (exit $ac_status); }; }; then
14691   ac_cv_type_sig_atomic_t=yes
14692 else
14693   echo "$as_me: failed program was:" >&5
14694 cat conftest.$ac_ext >&5
14695 ac_cv_type_sig_atomic_t=no
14696 fi
14697 rm -f conftest.$ac_objext conftest.$ac_ext
14698 fi
14699 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
14700 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
14701 if test $ac_cv_type_sig_atomic_t = yes; then
14702
14703 cat >>confdefs.h <<_ACEOF
14704 #define HAVE_SIG_ATOMIC_T 1
14705 _ACEOF
14706
14707
14708 fi
14709
14710
14711
14712 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
14713 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
14714 if test "${pgac_cv_func_posix_signals+set}" = set; then
14715   echo $ECHO_N "(cached) $ECHO_C" >&6
14716 else
14717   cat >conftest.$ac_ext <<_ACEOF
14718 #line $LINENO "configure"
14719 #include "confdefs.h"
14720 #include <signal.h>
14721
14722 #ifdef F77_DUMMY_MAIN
14723 #  ifdef __cplusplus
14724      extern "C"
14725 #  endif
14726    int F77_DUMMY_MAIN() { return 1; }
14727 #endif
14728 int
14729 main ()
14730 {
14731 struct sigaction act, oact;
14732 sigemptyset(&act.sa_mask);
14733 act.sa_flags = SA_RESTART;
14734 sigaction(0, &act, &oact);
14735   ;
14736   return 0;
14737 }
14738 _ACEOF
14739 rm -f conftest.$ac_objext conftest$ac_exeext
14740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14741   (eval $ac_link) 2>&5
14742   ac_status=$?
14743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744   (exit $ac_status); } &&
14745          { ac_try='test -s conftest$ac_exeext'
14746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747   (eval $ac_try) 2>&5
14748   ac_status=$?
14749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750   (exit $ac_status); }; }; then
14751   pgac_cv_func_posix_signals=yes
14752 else
14753   echo "$as_me: failed program was:" >&5
14754 cat conftest.$ac_ext >&5
14755 pgac_cv_func_posix_signals=no
14756 fi
14757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14758 fi
14759 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
14760 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
14761 if test x"$pgac_cv_func_posix_signals" = xyes ; then
14762
14763 cat >>confdefs.h <<\_ACEOF
14764 #define HAVE_POSIX_SIGNALS
14765 _ACEOF
14766
14767 fi
14768 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
14769
14770 if test $ac_cv_func_fseeko = yes; then
14771 # Check whether --enable-largefile or --disable-largefile was given.
14772 if test "${enable_largefile+set}" = set; then
14773   enableval="$enable_largefile"
14774
14775 fi;
14776 if test "$enable_largefile" != no; then
14777
14778   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
14779 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
14780 if test "${ac_cv_sys_largefile_CC+set}" = set; then
14781   echo $ECHO_N "(cached) $ECHO_C" >&6
14782 else
14783   ac_cv_sys_largefile_CC=no
14784      if test "$GCC" != yes; then
14785        ac_save_CC=$CC
14786        while :; do
14787          # IRIX 6.2 and later do not support large files by default,
14788          # so use the C compiler's -n32 option if that helps.
14789          cat >conftest.$ac_ext <<_ACEOF
14790 #line $LINENO "configure"
14791 #include "confdefs.h"
14792 #include <sys/types.h>
14793  /* Check that off_t can represent 2**63 - 1 correctly.
14794     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14795     since some C++ compilers masquerading as C compilers
14796     incorrectly reject 9223372036854775807.  */
14797 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14798   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14799                        && LARGE_OFF_T % 2147483647 == 1)
14800                       ? 1 : -1];
14801 #ifdef F77_DUMMY_MAIN
14802 #  ifdef __cplusplus
14803      extern "C"
14804 #  endif
14805    int F77_DUMMY_MAIN() { return 1; }
14806 #endif
14807 int
14808 main ()
14809 {
14810
14811   ;
14812   return 0;
14813 }
14814 _ACEOF
14815          rm -f conftest.$ac_objext
14816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14817   (eval $ac_compile) 2>&5
14818   ac_status=$?
14819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820   (exit $ac_status); } &&
14821          { ac_try='test -s conftest.$ac_objext'
14822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14823   (eval $ac_try) 2>&5
14824   ac_status=$?
14825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826   (exit $ac_status); }; }; then
14827   break
14828 else
14829   echo "$as_me: failed program was:" >&5
14830 cat conftest.$ac_ext >&5
14831 fi
14832 rm -f conftest.$ac_objext
14833          CC="$CC -n32"
14834          rm -f conftest.$ac_objext
14835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14836   (eval $ac_compile) 2>&5
14837   ac_status=$?
14838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839   (exit $ac_status); } &&
14840          { ac_try='test -s conftest.$ac_objext'
14841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842   (eval $ac_try) 2>&5
14843   ac_status=$?
14844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845   (exit $ac_status); }; }; then
14846   ac_cv_sys_largefile_CC=' -n32'; break
14847 else
14848   echo "$as_me: failed program was:" >&5
14849 cat conftest.$ac_ext >&5
14850 fi
14851 rm -f conftest.$ac_objext
14852          break
14853        done
14854        CC=$ac_save_CC
14855        rm -f conftest.$ac_ext
14856     fi
14857 fi
14858 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
14859 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
14860   if test "$ac_cv_sys_largefile_CC" != no; then
14861     CC=$CC$ac_cv_sys_largefile_CC
14862   fi
14863
14864   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14865 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
14866 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
14867   echo $ECHO_N "(cached) $ECHO_C" >&6
14868 else
14869   while :; do
14870   ac_cv_sys_file_offset_bits=no
14871   cat >conftest.$ac_ext <<_ACEOF
14872 #line $LINENO "configure"
14873 #include "confdefs.h"
14874 #include <sys/types.h>
14875  /* Check that off_t can represent 2**63 - 1 correctly.
14876     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14877     since some C++ compilers masquerading as C compilers
14878     incorrectly reject 9223372036854775807.  */
14879 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14880   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14881                        && LARGE_OFF_T % 2147483647 == 1)
14882                       ? 1 : -1];
14883 #ifdef F77_DUMMY_MAIN
14884 #  ifdef __cplusplus
14885      extern "C"
14886 #  endif
14887    int F77_DUMMY_MAIN() { return 1; }
14888 #endif
14889 int
14890 main ()
14891 {
14892
14893   ;
14894   return 0;
14895 }
14896 _ACEOF
14897 rm -f conftest.$ac_objext
14898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14899   (eval $ac_compile) 2>&5
14900   ac_status=$?
14901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902   (exit $ac_status); } &&
14903          { ac_try='test -s conftest.$ac_objext'
14904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14905   (eval $ac_try) 2>&5
14906   ac_status=$?
14907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908   (exit $ac_status); }; }; then
14909   break
14910 else
14911   echo "$as_me: failed program was:" >&5
14912 cat conftest.$ac_ext >&5
14913 fi
14914 rm -f conftest.$ac_objext conftest.$ac_ext
14915   cat >conftest.$ac_ext <<_ACEOF
14916 #line $LINENO "configure"
14917 #include "confdefs.h"
14918 #define _FILE_OFFSET_BITS 64
14919 #include <sys/types.h>
14920  /* Check that off_t can represent 2**63 - 1 correctly.
14921     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14922     since some C++ compilers masquerading as C compilers
14923     incorrectly reject 9223372036854775807.  */
14924 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14925   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14926                        && LARGE_OFF_T % 2147483647 == 1)
14927                       ? 1 : -1];
14928 #ifdef F77_DUMMY_MAIN
14929 #  ifdef __cplusplus
14930      extern "C"
14931 #  endif
14932    int F77_DUMMY_MAIN() { return 1; }
14933 #endif
14934 int
14935 main ()
14936 {
14937
14938   ;
14939   return 0;
14940 }
14941 _ACEOF
14942 rm -f conftest.$ac_objext
14943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14944   (eval $ac_compile) 2>&5
14945   ac_status=$?
14946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947   (exit $ac_status); } &&
14948          { ac_try='test -s conftest.$ac_objext'
14949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950   (eval $ac_try) 2>&5
14951   ac_status=$?
14952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953   (exit $ac_status); }; }; then
14954   ac_cv_sys_file_offset_bits=64; break
14955 else
14956   echo "$as_me: failed program was:" >&5
14957 cat conftest.$ac_ext >&5
14958 fi
14959 rm -f conftest.$ac_objext conftest.$ac_ext
14960   break
14961 done
14962 fi
14963 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
14964 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
14965 if test "$ac_cv_sys_file_offset_bits" != no; then
14966
14967 cat >>confdefs.h <<_ACEOF
14968 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14969 _ACEOF
14970
14971 fi
14972 rm -f conftest*
14973   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
14974 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
14975 if test "${ac_cv_sys_large_files+set}" = set; then
14976   echo $ECHO_N "(cached) $ECHO_C" >&6
14977 else
14978   while :; do
14979   ac_cv_sys_large_files=no
14980   cat >conftest.$ac_ext <<_ACEOF
14981 #line $LINENO "configure"
14982 #include "confdefs.h"
14983 #include <sys/types.h>
14984  /* Check that off_t can represent 2**63 - 1 correctly.
14985     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14986     since some C++ compilers masquerading as C compilers
14987     incorrectly reject 9223372036854775807.  */
14988 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14989   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14990                        && LARGE_OFF_T % 2147483647 == 1)
14991                       ? 1 : -1];
14992 #ifdef F77_DUMMY_MAIN
14993 #  ifdef __cplusplus
14994      extern "C"
14995 #  endif
14996    int F77_DUMMY_MAIN() { return 1; }
14997 #endif
14998 int
14999 main ()
15000 {
15001
15002   ;
15003   return 0;
15004 }
15005 _ACEOF
15006 rm -f conftest.$ac_objext
15007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15008   (eval $ac_compile) 2>&5
15009   ac_status=$?
15010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011   (exit $ac_status); } &&
15012          { ac_try='test -s conftest.$ac_objext'
15013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15014   (eval $ac_try) 2>&5
15015   ac_status=$?
15016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017   (exit $ac_status); }; }; then
15018   break
15019 else
15020   echo "$as_me: failed program was:" >&5
15021 cat conftest.$ac_ext >&5
15022 fi
15023 rm -f conftest.$ac_objext conftest.$ac_ext
15024   cat >conftest.$ac_ext <<_ACEOF
15025 #line $LINENO "configure"
15026 #include "confdefs.h"
15027 #define _LARGE_FILES 1
15028 #include <sys/types.h>
15029  /* Check that off_t can represent 2**63 - 1 correctly.
15030     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15031     since some C++ compilers masquerading as C compilers
15032     incorrectly reject 9223372036854775807.  */
15033 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15034   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15035                        && LARGE_OFF_T % 2147483647 == 1)
15036                       ? 1 : -1];
15037 #ifdef F77_DUMMY_MAIN
15038 #  ifdef __cplusplus
15039      extern "C"
15040 #  endif
15041    int F77_DUMMY_MAIN() { return 1; }
15042 #endif
15043 int
15044 main ()
15045 {
15046
15047   ;
15048   return 0;
15049 }
15050 _ACEOF
15051 rm -f conftest.$ac_objext
15052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15053   (eval $ac_compile) 2>&5
15054   ac_status=$?
15055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056   (exit $ac_status); } &&
15057          { ac_try='test -s conftest.$ac_objext'
15058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15059   (eval $ac_try) 2>&5
15060   ac_status=$?
15061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062   (exit $ac_status); }; }; then
15063   ac_cv_sys_large_files=1; break
15064 else
15065   echo "$as_me: failed program was:" >&5
15066 cat conftest.$ac_ext >&5
15067 fi
15068 rm -f conftest.$ac_objext conftest.$ac_ext
15069   break
15070 done
15071 fi
15072 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
15073 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
15074 if test "$ac_cv_sys_large_files" != no; then
15075
15076 cat >>confdefs.h <<_ACEOF
15077 #define _LARGE_FILES $ac_cv_sys_large_files
15078 _ACEOF
15079
15080 fi
15081 rm -f conftest*
15082 fi
15083
15084 fi
15085
15086
15087 # Select semaphore implementation type.
15088 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
15089
15090 cat >>confdefs.h <<\_ACEOF
15091 #define USE_NAMED_POSIX_SEMAPHORES 1
15092 _ACEOF
15093
15094   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15095 else
15096   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
15097
15098 cat >>confdefs.h <<\_ACEOF
15099 #define USE_UNNAMED_POSIX_SEMAPHORES 1
15100 _ACEOF
15101
15102     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15103   else
15104
15105 cat >>confdefs.h <<\_ACEOF
15106 #define USE_SYSV_SEMAPHORES 1
15107 _ACEOF
15108
15109     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
15110   fi
15111 fi
15112
15113
15114 # Select shared-memory implementation type.
15115
15116 cat >>confdefs.h <<\_ACEOF
15117 #define USE_SYSV_SHARED_MEMORY 1
15118 _ACEOF
15119
15120 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
15121
15122
15123 if test "$enable_nls" = yes ; then
15124
15125   echo "$as_me:$LINENO: checking for library containing gettext" >&5
15126 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
15127 if test "${ac_cv_search_gettext+set}" = set; then
15128   echo $ECHO_N "(cached) $ECHO_C" >&6
15129 else
15130   ac_func_search_save_LIBS=$LIBS
15131 ac_cv_search_gettext=no
15132 cat >conftest.$ac_ext <<_ACEOF
15133 #line $LINENO "configure"
15134 #include "confdefs.h"
15135
15136 /* Override any gcc2 internal prototype to avoid an error.  */
15137 #ifdef __cplusplus
15138 extern "C"
15139 #endif
15140 /* We use char because int might match the return type of a gcc2
15141    builtin and then its argument prototype would still apply.  */
15142 char gettext ();
15143 #ifdef F77_DUMMY_MAIN
15144 #  ifdef __cplusplus
15145      extern "C"
15146 #  endif
15147    int F77_DUMMY_MAIN() { return 1; }
15148 #endif
15149 int
15150 main ()
15151 {
15152 gettext ();
15153   ;
15154   return 0;
15155 }
15156 _ACEOF
15157 rm -f conftest.$ac_objext conftest$ac_exeext
15158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15159   (eval $ac_link) 2>&5
15160   ac_status=$?
15161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162   (exit $ac_status); } &&
15163          { ac_try='test -s conftest$ac_exeext'
15164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15165   (eval $ac_try) 2>&5
15166   ac_status=$?
15167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168   (exit $ac_status); }; }; then
15169   ac_cv_search_gettext="none required"
15170 else
15171   echo "$as_me: failed program was:" >&5
15172 cat conftest.$ac_ext >&5
15173 fi
15174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15175 if test "$ac_cv_search_gettext" = no; then
15176   for ac_lib in intl; do
15177     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15178     cat >conftest.$ac_ext <<_ACEOF
15179 #line $LINENO "configure"
15180 #include "confdefs.h"
15181
15182 /* Override any gcc2 internal prototype to avoid an error.  */
15183 #ifdef __cplusplus
15184 extern "C"
15185 #endif
15186 /* We use char because int might match the return type of a gcc2
15187    builtin and then its argument prototype would still apply.  */
15188 char gettext ();
15189 #ifdef F77_DUMMY_MAIN
15190 #  ifdef __cplusplus
15191      extern "C"
15192 #  endif
15193    int F77_DUMMY_MAIN() { return 1; }
15194 #endif
15195 int
15196 main ()
15197 {
15198 gettext ();
15199   ;
15200   return 0;
15201 }
15202 _ACEOF
15203 rm -f conftest.$ac_objext conftest$ac_exeext
15204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15205   (eval $ac_link) 2>&5
15206   ac_status=$?
15207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208   (exit $ac_status); } &&
15209          { ac_try='test -s conftest$ac_exeext'
15210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211   (eval $ac_try) 2>&5
15212   ac_status=$?
15213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214   (exit $ac_status); }; }; then
15215   ac_cv_search_gettext="-l$ac_lib"
15216 break
15217 else
15218   echo "$as_me: failed program was:" >&5
15219 cat conftest.$ac_ext >&5
15220 fi
15221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15222   done
15223 fi
15224 LIBS=$ac_func_search_save_LIBS
15225 fi
15226 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15227 echo "${ECHO_T}$ac_cv_search_gettext" >&6
15228 if test "$ac_cv_search_gettext" != no; then
15229   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15230
15231 else
15232   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15233 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15234    { (exit 1); exit 1; }; }
15235 fi
15236
15237   if test "${ac_cv_header_libintl_h+set}" = set; then
15238   echo "$as_me:$LINENO: checking for libintl.h" >&5
15239 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15240 if test "${ac_cv_header_libintl_h+set}" = set; then
15241   echo $ECHO_N "(cached) $ECHO_C" >&6
15242 fi
15243 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15244 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15245 else
15246   # Is the header compilable?
15247 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15248 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15249 cat >conftest.$ac_ext <<_ACEOF
15250 #line $LINENO "configure"
15251 #include "confdefs.h"
15252 $ac_includes_default
15253 #include <libintl.h>
15254 _ACEOF
15255 rm -f conftest.$ac_objext
15256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15257   (eval $ac_compile) 2>&5
15258   ac_status=$?
15259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260   (exit $ac_status); } &&
15261          { ac_try='test -s conftest.$ac_objext'
15262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15263   (eval $ac_try) 2>&5
15264   ac_status=$?
15265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266   (exit $ac_status); }; }; then
15267   ac_header_compiler=yes
15268 else
15269   echo "$as_me: failed program was:" >&5
15270 cat conftest.$ac_ext >&5
15271 ac_header_compiler=no
15272 fi
15273 rm -f conftest.$ac_objext conftest.$ac_ext
15274 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15275 echo "${ECHO_T}$ac_header_compiler" >&6
15276
15277 # Is the header present?
15278 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15279 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15280 cat >conftest.$ac_ext <<_ACEOF
15281 #line $LINENO "configure"
15282 #include "confdefs.h"
15283 #include <libintl.h>
15284 _ACEOF
15285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15286   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15287   ac_status=$?
15288   egrep -v '^ *\+' conftest.er1 >conftest.err
15289   rm -f conftest.er1
15290   cat conftest.err >&5
15291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292   (exit $ac_status); } >/dev/null; then
15293   if test -s conftest.err; then
15294     ac_cpp_err=$ac_c_preproc_warn_flag
15295   else
15296     ac_cpp_err=
15297   fi
15298 else
15299   ac_cpp_err=yes
15300 fi
15301 if test -z "$ac_cpp_err"; then
15302   ac_header_preproc=yes
15303 else
15304   echo "$as_me: failed program was:" >&5
15305   cat conftest.$ac_ext >&5
15306   ac_header_preproc=no
15307 fi
15308 rm -f conftest.err conftest.$ac_ext
15309 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15310 echo "${ECHO_T}$ac_header_preproc" >&6
15311
15312 # So?  What about this header?
15313 case $ac_header_compiler:$ac_header_preproc in
15314   yes:no )
15315     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15316 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15317     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15318 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15319   no:yes )
15320     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15321 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15322     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15323 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15324     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15325 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15326 esac
15327 echo "$as_me:$LINENO: checking for libintl.h" >&5
15328 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15329 if test "${ac_cv_header_libintl_h+set}" = set; then
15330   echo $ECHO_N "(cached) $ECHO_C" >&6
15331 else
15332   ac_cv_header_libintl_h=$ac_header_preproc
15333 fi
15334 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15335 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15336
15337 fi
15338 if test $ac_cv_header_libintl_h = yes; then
15339   :
15340 else
15341   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15342 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15343    { (exit 1); exit 1; }; }
15344 fi
15345
15346
15347   for ac_prog in msgfmt
15348 do
15349   # Extract the first word of "$ac_prog", so it can be a program name with args.
15350 set dummy $ac_prog; ac_word=$2
15351 echo "$as_me:$LINENO: checking for $ac_word" >&5
15352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15353 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15354   echo $ECHO_N "(cached) $ECHO_C" >&6
15355 else
15356   if test -n "$MSGFMT"; then
15357   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15358 else
15359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15360 for as_dir in $PATH
15361 do
15362   IFS=$as_save_IFS
15363   test -z "$as_dir" && as_dir=.
15364   for ac_exec_ext in '' $ac_executable_extensions; do
15365   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15366     ac_cv_prog_MSGFMT="$ac_prog"
15367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15368     break 2
15369   fi
15370 done
15371 done
15372
15373 fi
15374 fi
15375 MSGFMT=$ac_cv_prog_MSGFMT
15376 if test -n "$MSGFMT"; then
15377   echo "$as_me:$LINENO: result: $MSGFMT" >&5
15378 echo "${ECHO_T}$MSGFMT" >&6
15379 else
15380   echo "$as_me:$LINENO: result: no" >&5
15381 echo "${ECHO_T}no" >&6
15382 fi
15383
15384   test -n "$MSGFMT" && break
15385 done
15386
15387   if test -z "$MSGFMT"; then
15388     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15389 echo "$as_me: error: msgfmt is required for NLS" >&2;}
15390    { (exit 1); exit 1; }; }
15391   fi
15392   for ac_prog in msgmerge
15393 do
15394   # Extract the first word of "$ac_prog", so it can be a program name with args.
15395 set dummy $ac_prog; ac_word=$2
15396 echo "$as_me:$LINENO: checking for $ac_word" >&5
15397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15398 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
15399   echo $ECHO_N "(cached) $ECHO_C" >&6
15400 else
15401   if test -n "$MSGMERGE"; then
15402   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15403 else
15404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15405 for as_dir in $PATH
15406 do
15407   IFS=$as_save_IFS
15408   test -z "$as_dir" && as_dir=.
15409   for ac_exec_ext in '' $ac_executable_extensions; do
15410   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15411     ac_cv_prog_MSGMERGE="$ac_prog"
15412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15413     break 2
15414   fi
15415 done
15416 done
15417
15418 fi
15419 fi
15420 MSGMERGE=$ac_cv_prog_MSGMERGE
15421 if test -n "$MSGMERGE"; then
15422   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15423 echo "${ECHO_T}$MSGMERGE" >&6
15424 else
15425   echo "$as_me:$LINENO: result: no" >&5
15426 echo "${ECHO_T}no" >&6
15427 fi
15428
15429   test -n "$MSGMERGE" && break
15430 done
15431
15432   for ac_prog in xgettext
15433 do
15434   # Extract the first word of "$ac_prog", so it can be a program name with args.
15435 set dummy $ac_prog; ac_word=$2
15436 echo "$as_me:$LINENO: checking for $ac_word" >&5
15437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15438 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
15439   echo $ECHO_N "(cached) $ECHO_C" >&6
15440 else
15441   if test -n "$XGETTEXT"; then
15442   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
15443 else
15444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15445 for as_dir in $PATH
15446 do
15447   IFS=$as_save_IFS
15448   test -z "$as_dir" && as_dir=.
15449   for ac_exec_ext in '' $ac_executable_extensions; do
15450   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15451     ac_cv_prog_XGETTEXT="$ac_prog"
15452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15453     break 2
15454   fi
15455 done
15456 done
15457
15458 fi
15459 fi
15460 XGETTEXT=$ac_cv_prog_XGETTEXT
15461 if test -n "$XGETTEXT"; then
15462   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15463 echo "${ECHO_T}$XGETTEXT" >&6
15464 else
15465   echo "$as_me:$LINENO: result: no" >&5
15466 echo "${ECHO_T}no" >&6
15467 fi
15468
15469   test -n "$XGETTEXT" && break
15470 done
15471
15472
15473   # Note: share/locale is always the default, independent of $datadir
15474   localedir='${prefix}/share/locale'
15475   if test x"$prefix" = x"NONE"; then
15476     exp_localedir="$ac_default_prefix/share/locale"
15477   else
15478     exp_localedir="$prefix/share/locale"
15479   fi
15480
15481
15482
15483 cat >>confdefs.h <<_ACEOF
15484 #define LOCALEDIR "$exp_localedir"
15485 _ACEOF
15486
15487
15488 fi
15489
15490 # Check for Tcl configuration script tclConfig.sh
15491 if test "$with_tcl" = yes; then
15492     for ac_prog in tclsh tcl
15493 do
15494   # Extract the first word of "$ac_prog", so it can be a program name with args.
15495 set dummy $ac_prog; ac_word=$2
15496 echo "$as_me:$LINENO: checking for $ac_word" >&5
15497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15498 if test "${ac_cv_path_TCLSH+set}" = set; then
15499   echo $ECHO_N "(cached) $ECHO_C" >&6
15500 else
15501   case $TCLSH in
15502   [\\/]* | ?:[\\/]*)
15503   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
15504   ;;
15505   *)
15506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15507 for as_dir in $PATH
15508 do
15509   IFS=$as_save_IFS
15510   test -z "$as_dir" && as_dir=.
15511   for ac_exec_ext in '' $ac_executable_extensions; do
15512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15513     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
15514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15515     break 2
15516   fi
15517 done
15518 done
15519
15520   ;;
15521 esac
15522 fi
15523 TCLSH=$ac_cv_path_TCLSH
15524
15525 if test -n "$TCLSH"; then
15526   echo "$as_me:$LINENO: result: $TCLSH" >&5
15527 echo "${ECHO_T}$TCLSH" >&6
15528 else
15529   echo "$as_me:$LINENO: result: no" >&5
15530 echo "${ECHO_T}no" >&6
15531 fi
15532
15533   test -n "$TCLSH" && break
15534 done
15535
15536 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
15537 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
15538 # Let user override test
15539 if test -z "$TCL_CONFIG_SH"; then
15540     pgac_test_dirs="$with_tclconfig"
15541
15542     set X $pgac_test_dirs; shift
15543     if test $# -eq 0; then
15544         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
15545 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
15546    { (exit 1); exit 1; }; }
15547         set X `echo 'puts $auto_path' | $TCLSH`; shift
15548     fi
15549
15550     for pgac_dir do
15551         if test -r "$pgac_dir/tclConfig.sh"; then
15552             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
15553             break
15554         fi
15555     done
15556 fi
15557
15558 if test -z "$TCL_CONFIG_SH"; then
15559     echo "$as_me:$LINENO: result: no" >&5
15560 echo "${ECHO_T}no" >&6
15561     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
15562 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
15563    { (exit 1); exit 1; }; }
15564 else
15565     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
15566 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
15567 fi
15568
15569
15570
15571     . "$TCL_CONFIG_SH"
15572 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
15573 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
15574 eval TCL_LIBS=\"$TCL_LIBS\"
15575 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
15576 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
15577
15578     fi
15579
15580 # Check for Tk configuration script tkConfig.sh
15581 if test "$with_tk" = yes; then
15582     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
15583 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
15584 # Let user override test
15585 if test -z "$TK_CONFIG_SH"; then
15586     pgac_test_dirs="$with_tkconfig $with_tclconfig"
15587
15588     set X $pgac_test_dirs; shift
15589     if test $# -eq 0; then
15590         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
15591 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
15592    { (exit 1); exit 1; }; }
15593         set X `echo 'puts $auto_path' | $TCLSH`; shift
15594     fi
15595
15596     for pgac_dir do
15597         if test -r "$pgac_dir/tkConfig.sh"; then
15598             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
15599             break
15600         fi
15601     done
15602 fi
15603
15604 if test -z "$TK_CONFIG_SH"; then
15605     echo "$as_me:$LINENO: result: no" >&5
15606 echo "${ECHO_T}no" >&6
15607     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
15608 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
15609    { (exit 1); exit 1; }; }
15610 else
15611     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
15612 echo "${ECHO_T}$TK_CONFIG_SH" >&6
15613 fi
15614
15615
15616
15617     . "$TK_CONFIG_SH"
15618 eval TK_LIBS=\"$TK_LIBS\"
15619 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
15620 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
15621
15622 fi
15623
15624
15625 #
15626 # Check for DocBook and tools
15627 #
15628 for ac_prog in onsgmls nsgmls
15629 do
15630   # Extract the first word of "$ac_prog", so it can be a program name with args.
15631 set dummy $ac_prog; ac_word=$2
15632 echo "$as_me:$LINENO: checking for $ac_word" >&5
15633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15634 if test "${ac_cv_prog_NSGMLS+set}" = set; then
15635   echo $ECHO_N "(cached) $ECHO_C" >&6
15636 else
15637   if test -n "$NSGMLS"; then
15638   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
15639 else
15640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15641 for as_dir in $PATH
15642 do
15643   IFS=$as_save_IFS
15644   test -z "$as_dir" && as_dir=.
15645   for ac_exec_ext in '' $ac_executable_extensions; do
15646   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15647     ac_cv_prog_NSGMLS="$ac_prog"
15648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15649     break 2
15650   fi
15651 done
15652 done
15653
15654 fi
15655 fi
15656 NSGMLS=$ac_cv_prog_NSGMLS
15657 if test -n "$NSGMLS"; then
15658   echo "$as_me:$LINENO: result: $NSGMLS" >&5
15659 echo "${ECHO_T}$NSGMLS" >&6
15660 else
15661   echo "$as_me:$LINENO: result: no" >&5
15662 echo "${ECHO_T}no" >&6
15663 fi
15664
15665   test -n "$NSGMLS" && break
15666 done
15667
15668 for ac_prog in openjade jade
15669 do
15670   # Extract the first word of "$ac_prog", so it can be a program name with args.
15671 set dummy $ac_prog; ac_word=$2
15672 echo "$as_me:$LINENO: checking for $ac_word" >&5
15673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15674 if test "${ac_cv_prog_JADE+set}" = set; then
15675   echo $ECHO_N "(cached) $ECHO_C" >&6
15676 else
15677   if test -n "$JADE"; then
15678   ac_cv_prog_JADE="$JADE" # Let the user override the test.
15679 else
15680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15681 for as_dir in $PATH
15682 do
15683   IFS=$as_save_IFS
15684   test -z "$as_dir" && as_dir=.
15685   for ac_exec_ext in '' $ac_executable_extensions; do
15686   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15687     ac_cv_prog_JADE="$ac_prog"
15688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15689     break 2
15690   fi
15691 done
15692 done
15693
15694 fi
15695 fi
15696 JADE=$ac_cv_prog_JADE
15697 if test -n "$JADE"; then
15698   echo "$as_me:$LINENO: result: $JADE" >&5
15699 echo "${ECHO_T}$JADE" >&6
15700 else
15701   echo "$as_me:$LINENO: result: no" >&5
15702 echo "${ECHO_T}no" >&6
15703 fi
15704
15705   test -n "$JADE" && break
15706 done
15707
15708
15709 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
15710 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
15711 if test "${pgac_cv_check_docbook+set}" = set; then
15712   echo $ECHO_N "(cached) $ECHO_C" >&6
15713 else
15714   cat >conftest.sgml <<EOF
15715 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
15716 <book>
15717  <title>test</title>
15718  <chapter>
15719   <title>random</title>
15720    <sect1>
15721     <title>testsect</title>
15722     <para>text</para>
15723   </sect1>
15724  </chapter>
15725 </book>
15726 EOF
15727
15728 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
15729 if test $? -eq 0; then
15730   pgac_cv_check_docbook=yes
15731 else
15732   pgac_cv_check_docbook=no
15733 fi
15734 rm -f conftest.sgml
15735 fi
15736 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
15737 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
15738
15739 have_docbook=$pgac_cv_check_docbook
15740
15741
15742 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
15743 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
15744 if test "${pgac_cv_path_stylesheets+set}" = set; then
15745   echo $ECHO_N "(cached) $ECHO_C" >&6
15746 else
15747   if test -n "$DOCBOOKSTYLE"; then
15748   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
15749 else
15750   for pgac_prefix in /usr /usr/local /opt; do
15751     for pgac_infix in share lib; do
15752       for pgac_postfix in \
15753         sgml/stylesheets/nwalsh-modular \
15754         sgml/stylesheets/docbook \
15755         sgml/docbook/dsssl/modular \
15756         sgml/docbook/stylesheet/dsssl/modular \
15757         sgml/docbook/dsssl-stylesheets
15758       do
15759         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
15760         if test -r "$pgac_candidate/html/docbook.dsl" \
15761            && test -r "$pgac_candidate/print/docbook.dsl"
15762         then
15763           pgac_cv_path_stylesheets=$pgac_candidate
15764           break 3
15765         fi
15766       done
15767     done
15768   done
15769 fi
15770 fi
15771
15772 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
15773
15774 if test -n "$DOCBOOKSTYLE"; then
15775   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
15776 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
15777 else
15778   echo "$as_me:$LINENO: result: no" >&5
15779 echo "${ECHO_T}no" >&6
15780 fi
15781 if test -n "$DOCBOOKSTYLE"; then
15782   for ac_prog in collateindex.pl
15783 do
15784   # Extract the first word of "$ac_prog", so it can be a program name with args.
15785 set dummy $ac_prog; ac_word=$2
15786 echo "$as_me:$LINENO: checking for $ac_word" >&5
15787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15788 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
15789   echo $ECHO_N "(cached) $ECHO_C" >&6
15790 else
15791   case $COLLATEINDEX in
15792   [\\/]* | ?:[\\/]*)
15793   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
15794   ;;
15795   *)
15796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15797 for as_dir in $DOCBOOKSTYLE/bin $PATH
15798 do
15799   IFS=$as_save_IFS
15800   test -z "$as_dir" && as_dir=.
15801   for ac_exec_ext in '' $ac_executable_extensions; do
15802   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15803     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
15804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15805     break 2
15806   fi
15807 done
15808 done
15809
15810   ;;
15811 esac
15812 fi
15813 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
15814
15815 if test -n "$COLLATEINDEX"; then
15816   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
15817 echo "${ECHO_T}$COLLATEINDEX" >&6
15818 else
15819   echo "$as_me:$LINENO: result: no" >&5
15820 echo "${ECHO_T}no" >&6
15821 fi
15822
15823   test -n "$COLLATEINDEX" && break
15824 done
15825
15826 else
15827   for ac_prog in collateindex.pl
15828 do
15829   # Extract the first word of "$ac_prog", so it can be a program name with args.
15830 set dummy $ac_prog; ac_word=$2
15831 echo "$as_me:$LINENO: checking for $ac_word" >&5
15832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15833 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
15834   echo $ECHO_N "(cached) $ECHO_C" >&6
15835 else
15836   case $COLLATEINDEX in
15837   [\\/]* | ?:[\\/]*)
15838   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
15839   ;;
15840   *)
15841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15842 for as_dir in $PATH
15843 do
15844   IFS=$as_save_IFS
15845   test -z "$as_dir" && as_dir=.
15846   for ac_exec_ext in '' $ac_executable_extensions; do
15847   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15848     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
15849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15850     break 2
15851   fi
15852 done
15853 done
15854
15855   ;;
15856 esac
15857 fi
15858 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
15859
15860 if test -n "$COLLATEINDEX"; then
15861   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
15862 echo "${ECHO_T}$COLLATEINDEX" >&6
15863 else
15864   echo "$as_me:$LINENO: result: no" >&5
15865 echo "${ECHO_T}no" >&6
15866 fi
15867
15868   test -n "$COLLATEINDEX" && break
15869 done
15870
15871 fi
15872 for ac_prog in sgmlspl
15873 do
15874   # Extract the first word of "$ac_prog", so it can be a program name with args.
15875 set dummy $ac_prog; ac_word=$2
15876 echo "$as_me:$LINENO: checking for $ac_word" >&5
15877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15878 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
15879   echo $ECHO_N "(cached) $ECHO_C" >&6
15880 else
15881   if test -n "$SGMLSPL"; then
15882   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
15883 else
15884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15885 for as_dir in $PATH
15886 do
15887   IFS=$as_save_IFS
15888   test -z "$as_dir" && as_dir=.
15889   for ac_exec_ext in '' $ac_executable_extensions; do
15890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15891     ac_cv_prog_SGMLSPL="$ac_prog"
15892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15893     break 2
15894   fi
15895 done
15896 done
15897
15898 fi
15899 fi
15900 SGMLSPL=$ac_cv_prog_SGMLSPL
15901 if test -n "$SGMLSPL"; then
15902   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
15903 echo "${ECHO_T}$SGMLSPL" >&6
15904 else
15905   echo "$as_me:$LINENO: result: no" >&5
15906 echo "${ECHO_T}no" >&6
15907 fi
15908
15909   test -n "$SGMLSPL" && break
15910 done
15911
15912
15913
15914 # prepare build tree if outside source tree
15915 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
15916 # Note 2: /bin/pwd might be better than shell's built-in at getting
15917 #         a symlink-free name.
15918 if test "$no_create" != yes; then
15919   if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
15920     :
15921   else
15922     vpath_build=yes
15923
15924     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
15925     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
15926     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
15927       || { { echo "$as_me:$LINENO: error: failed" >&5
15928 echo "$as_me: error: failed" >&2;}
15929    { (exit 1); exit 1; }; }
15930     echo "$as_me:$LINENO: result: done" >&5
15931 echo "${ECHO_T}done" >&6
15932   fi
15933 fi
15934
15935
15936 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
15937
15938
15939 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}"
15940
15941
15942 ac_config_headers="$ac_config_headers src/include/pg_config.h"
15943
15944
15945 cat >confcache <<\_ACEOF
15946 # This file is a shell script that caches the results of configure
15947 # tests run on this system so they can be shared between configure
15948 # scripts and configure runs, see configure's option --config-cache.
15949 # It is not useful on other systems.  If it contains results you don't
15950 # want to keep, you may remove or edit it.
15951 #
15952 # config.status only pays attention to the cache file if you give it
15953 # the --recheck option to rerun configure.
15954 #
15955 # `ac_cv_env_foo' variables (set or unset) will be overriden when
15956 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15957 # following values.
15958
15959 _ACEOF
15960
15961 # The following way of writing the cache mishandles newlines in values,
15962 # but we know of no workaround that is simple, portable, and efficient.
15963 # So, don't put newlines in cache variables' values.
15964 # Ultrix sh set writes to stderr and can't be redirected directly,
15965 # and sets the high bit in the cache file unless we assign to the vars.
15966 {
15967   (set) 2>&1 |
15968     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15969     *ac_space=\ *)
15970       # `set' does not quote correctly, so add quotes (double-quote
15971       # substitution turns \\\\ into \\, and sed turns \\ into \).
15972       sed -n \
15973         "s/'/'\\\\''/g;
15974           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15975       ;;
15976     *)
15977       # `set' quotes correctly as required by POSIX, so do not add quotes.
15978       sed -n \
15979         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15980       ;;
15981     esac;
15982 } |
15983   sed '
15984      t clear
15985      : clear
15986      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15987      t end
15988      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15989      : end' >>confcache
15990 if cmp -s $cache_file confcache; then :; else
15991   if test -w $cache_file; then
15992     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15993     cat confcache >$cache_file
15994   else
15995     echo "not updating unwritable cache $cache_file"
15996   fi
15997 fi
15998 rm -f confcache
15999
16000 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16001 # Let make expand exec_prefix.
16002 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16003
16004 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16005 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16006 # trailing colons and then remove the whole line if VPATH becomes empty
16007 # (actually we leave an empty line to preserve line numbers).
16008 if test "x$srcdir" = x.; then
16009   ac_vpsub='/^[         ]*VPATH[        ]*=/{
16010 s/:*\$(srcdir):*/:/;
16011 s/:*\${srcdir}:*/:/;
16012 s/:*@srcdir@:*/:/;
16013 s/^\([^=]*=[    ]*\):*/\1/;
16014 s/:*$//;
16015 s/^[^=]*=[      ]*$//;
16016 }'
16017 fi
16018
16019 DEFS=-DHAVE_CONFIG_H
16020
16021
16022 : ${CONFIG_STATUS=./config.status}
16023 ac_clean_files_save=$ac_clean_files
16024 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16025 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16026 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16027 cat >$CONFIG_STATUS <<_ACEOF
16028 #! $SHELL
16029 # Generated by $as_me.
16030 # Run this file to recreate the current configuration.
16031 # Compiler output produced by configure, useful for debugging
16032 # configure, is in config.log if it exists.
16033
16034 debug=false
16035 SHELL=\${CONFIG_SHELL-$SHELL}
16036 _ACEOF
16037
16038 cat >>$CONFIG_STATUS <<\_ACEOF
16039
16040 ## --------------------- ##
16041 ## M4sh Initialization.  ##
16042 ## --------------------- ##
16043
16044 # Be Bourne compatible
16045 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16046   emulate sh
16047   NULLCMD=:
16048 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16049   set -o posix
16050 fi
16051
16052 # NLS nuisances.
16053 # Support unset when possible.
16054 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16055   as_unset=unset
16056 else
16057   as_unset=false
16058 fi
16059
16060 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16061     { $as_unset LANG || test "${LANG+set}" != set; } ||
16062       { LANG=C; export LANG; }
16063 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16064     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16065       { LC_ALL=C; export LC_ALL; }
16066 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16067     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16068       { LC_TIME=C; export LC_TIME; }
16069 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16070     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16071       { LC_CTYPE=C; export LC_CTYPE; }
16072 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16073     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16074       { LANGUAGE=C; export LANGUAGE; }
16075 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16076     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16077       { LC_COLLATE=C; export LC_COLLATE; }
16078 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16079     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16080       { LC_NUMERIC=C; export LC_NUMERIC; }
16081 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16082     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16083       { LC_MESSAGES=C; export LC_MESSAGES; }
16084
16085
16086 # Name of the executable.
16087 as_me=`(basename "$0") 2>/dev/null ||
16088 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16089          X"$0" : 'X\(//\)$' \| \
16090          X"$0" : 'X\(/\)$' \| \
16091          .     : '\(.\)' 2>/dev/null ||
16092 echo X/"$0" |
16093     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16094           /^X\/\(\/\/\)$/{ s//\1/; q; }
16095           /^X\/\(\/\).*/{ s//\1/; q; }
16096           s/.*/./; q'`
16097
16098 # PATH needs CR, and LINENO needs CR and PATH.
16099 # Avoid depending upon Character Ranges.
16100 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16101 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16102 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16103 as_cr_digits='0123456789'
16104 as_cr_alnum=$as_cr_Letters$as_cr_digits
16105
16106 # The user is always right.
16107 if test "${PATH_SEPARATOR+set}" != set; then
16108   echo "#! /bin/sh" >conftest.sh
16109   echo  "exit 0"   >>conftest.sh
16110   chmod +x conftest.sh
16111   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16112     PATH_SEPARATOR=';'
16113   else
16114     PATH_SEPARATOR=:
16115   fi
16116   rm -f conftest.sh
16117 fi
16118
16119
16120   as_lineno_1=$LINENO
16121   as_lineno_2=$LINENO
16122   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16123   test "x$as_lineno_1" != "x$as_lineno_2" &&
16124   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16125   # Find who we are.  Look in the path if we contain no path at all
16126   # relative or not.
16127   case $0 in
16128     *[\\/]* ) as_myself=$0 ;;
16129     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16130 for as_dir in $PATH
16131 do
16132   IFS=$as_save_IFS
16133   test -z "$as_dir" && as_dir=.
16134   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16135 done
16136
16137        ;;
16138   esac
16139   # We did not find ourselves, most probably we were run as `sh COMMAND'
16140   # in which case we are not to be found in the path.
16141   if test "x$as_myself" = x; then
16142     as_myself=$0
16143   fi
16144   if test ! -f "$as_myself"; then
16145     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16146 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16147    { (exit 1); exit 1; }; }
16148   fi
16149   case $CONFIG_SHELL in
16150   '')
16151     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16152 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16153 do
16154   IFS=$as_save_IFS
16155   test -z "$as_dir" && as_dir=.
16156   for as_base in sh bash ksh sh5; do
16157          case $as_dir in
16158          /*)
16159            if ("$as_dir/$as_base" -c '
16160   as_lineno_1=$LINENO
16161   as_lineno_2=$LINENO
16162   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16163   test "x$as_lineno_1" != "x$as_lineno_2" &&
16164   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16165              CONFIG_SHELL=$as_dir/$as_base
16166              export CONFIG_SHELL
16167              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16168            fi;;
16169          esac
16170        done
16171 done
16172 ;;
16173   esac
16174
16175   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16176   # uniformly replaced by the line number.  The first 'sed' inserts a
16177   # line-number line before each line; the second 'sed' does the real
16178   # work.  The second script uses 'N' to pair each line-number line
16179   # with the numbered line, and appends trailing '-' during
16180   # substitution so that $LINENO is not a special case at line end.
16181   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16182   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16183   sed '=' <$as_myself |
16184     sed '
16185       N
16186       s,$,-,
16187       : loop
16188       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16189       t loop
16190       s,-$,,
16191       s,^['$as_cr_digits']*\n,,
16192     ' >$as_me.lineno &&
16193   chmod +x $as_me.lineno ||
16194     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16195 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16196    { (exit 1); exit 1; }; }
16197
16198   # Don't try to exec as it changes $[0], causing all sort of problems
16199   # (the dirname of $[0] is not the place where we might find the
16200   # original and so on.  Autoconf is especially sensible to this).
16201   . ./$as_me.lineno
16202   # Exit status is that of the last command.
16203   exit
16204 }
16205
16206
16207 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16208   *c*,-n*) ECHO_N= ECHO_C='
16209 ' ECHO_T='      ' ;;
16210   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16211   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16212 esac
16213
16214 if expr a : '\(a\)' >/dev/null 2>&1; then
16215   as_expr=expr
16216 else
16217   as_expr=false
16218 fi
16219
16220 rm -f conf$$ conf$$.exe conf$$.file
16221 echo >conf$$.file
16222 if ln -s conf$$.file conf$$ 2>/dev/null; then
16223   # We could just check for DJGPP; but this test a) works b) is more generic
16224   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16225   if test -f conf$$.exe; then
16226     # Don't use ln at all; we don't have any links
16227     as_ln_s='cp -p'
16228   else
16229     as_ln_s='ln -s'
16230   fi
16231 elif ln conf$$.file conf$$ 2>/dev/null; then
16232   as_ln_s=ln
16233 else
16234   as_ln_s='cp -p'
16235 fi
16236 rm -f conf$$ conf$$.exe conf$$.file
16237
16238 as_executable_p="test -f"
16239
16240 # Sed expression to map a string onto a valid CPP name.
16241 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16242
16243 # Sed expression to map a string onto a valid variable name.
16244 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16245
16246
16247 # IFS
16248 # We need space, tab and new line, in precisely that order.
16249 as_nl='
16250 '
16251 IFS="   $as_nl"
16252
16253 # CDPATH.
16254 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16255
16256 exec 6>&1
16257
16258 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16259 # report actual input values of CONFIG_FILES etc. instead of their
16260 # values after options handling.  Logging --version etc. is OK.
16261 exec 5>>config.log
16262 {
16263   echo
16264   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16265 ## Running $as_me. ##
16266 _ASBOX
16267 } >&5
16268 cat >&5 <<_CSEOF
16269
16270 This file was extended by PostgreSQL $as_me 7.4devel, which was
16271 generated by GNU Autoconf 2.53.  Invocation command line was
16272
16273   CONFIG_FILES    = $CONFIG_FILES
16274   CONFIG_HEADERS  = $CONFIG_HEADERS
16275   CONFIG_LINKS    = $CONFIG_LINKS
16276   CONFIG_COMMANDS = $CONFIG_COMMANDS
16277   $ $0 $@
16278
16279 _CSEOF
16280 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16281 echo >&5
16282 _ACEOF
16283
16284 # Files that config.status was made for.
16285 if test -n "$ac_config_files"; then
16286   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16287 fi
16288
16289 if test -n "$ac_config_headers"; then
16290   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16291 fi
16292
16293 if test -n "$ac_config_links"; then
16294   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16295 fi
16296
16297 if test -n "$ac_config_commands"; then
16298   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16299 fi
16300
16301 cat >>$CONFIG_STATUS <<\_ACEOF
16302
16303 ac_cs_usage="\
16304 \`$as_me' instantiates files from templates according to the
16305 current configuration.
16306
16307 Usage: $0 [OPTIONS] [FILE]...
16308
16309   -h, --help       print this help, then exit
16310   -V, --version    print version number, then exit
16311   -d, --debug      don't remove temporary files
16312       --recheck    update $as_me by reconfiguring in the same conditions
16313   --file=FILE[:TEMPLATE]
16314                    instantiate the configuration file FILE
16315   --header=FILE[:TEMPLATE]
16316                    instantiate the configuration header FILE
16317
16318 Configuration files:
16319 $config_files
16320
16321 Configuration headers:
16322 $config_headers
16323
16324 Configuration links:
16325 $config_links
16326
16327 Report bugs to <bug-autoconf@gnu.org>."
16328 _ACEOF
16329
16330 cat >>$CONFIG_STATUS <<_ACEOF
16331 ac_cs_version="\\
16332 PostgreSQL config.status 7.4devel
16333 configured by $0, generated by GNU Autoconf 2.53,
16334   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16335
16336 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16337 Free Software Foundation, Inc.
16338 This config.status script is free software; the Free Software Foundation
16339 gives unlimited permission to copy, distribute and modify it."
16340 srcdir=$srcdir
16341 _ACEOF
16342
16343 cat >>$CONFIG_STATUS <<\_ACEOF
16344 # If no file are specified by the user, then we need to provide default
16345 # value.  By we need to know if files were specified by the user.
16346 ac_need_defaults=:
16347 while test $# != 0
16348 do
16349   case $1 in
16350   --*=*)
16351     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16352     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16353     shift
16354     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16355     shift
16356     ;;
16357   -*);;
16358   *) # This is not an option, so the user has probably given explicit
16359      # arguments.
16360      ac_need_defaults=false;;
16361   esac
16362
16363   case $1 in
16364   # Handling of the options.
16365 _ACEOF
16366 cat >>$CONFIG_STATUS <<_ACEOF
16367   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16368     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16369     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16370 _ACEOF
16371 cat >>$CONFIG_STATUS <<\_ACEOF
16372   --version | --vers* | -V )
16373     echo "$ac_cs_version"; exit 0 ;;
16374   --he | --h)
16375     # Conflict between --help and --header
16376     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16377 Try \`$0 --help' for more information." >&5
16378 echo "$as_me: error: ambiguous option: $1
16379 Try \`$0 --help' for more information." >&2;}
16380    { (exit 1); exit 1; }; };;
16381   --help | --hel | -h )
16382     echo "$ac_cs_usage"; exit 0 ;;
16383   --debug | --d* | -d )
16384     debug=: ;;
16385   --file | --fil | --fi | --f )
16386     shift
16387     CONFIG_FILES="$CONFIG_FILES $1"
16388     ac_need_defaults=false;;
16389   --header | --heade | --head | --hea )
16390     shift
16391     CONFIG_HEADERS="$CONFIG_HEADERS $1"
16392     ac_need_defaults=false;;
16393
16394   # This is an error.
16395   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16396 Try \`$0 --help' for more information." >&5
16397 echo "$as_me: error: unrecognized option: $1
16398 Try \`$0 --help' for more information." >&2;}
16399    { (exit 1); exit 1; }; } ;;
16400
16401   *) ac_config_targets="$ac_config_targets $1" ;;
16402
16403   esac
16404   shift
16405 done
16406
16407 _ACEOF
16408
16409
16410
16411
16412
16413 cat >>$CONFIG_STATUS <<\_ACEOF
16414 for ac_config_target in $ac_config_targets
16415 do
16416   case "$ac_config_target" in
16417   # Handling of arguments.
16418   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
16419   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
16420   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
16421   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
16422   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
16423   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
16424   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
16425   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
16426   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
16427   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
16428   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16429 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16430    { (exit 1); exit 1; }; };;
16431   esac
16432 done
16433
16434 # If the user did not use the arguments to specify the items to instantiate,
16435 # then the envvar interface is used.  Set only those that are not.
16436 # We use the long form for the default assignment because of an extremely
16437 # bizarre bug on SunOS 4.1.3.
16438 if $ac_need_defaults; then
16439   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16440   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16441   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16442 fi
16443
16444 # Create a temporary directory, and hook for its removal unless debugging.
16445 $debug ||
16446 {
16447   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16448   trap '{ (exit 1); exit 1; }' 1 2 13 15
16449 }
16450
16451 # Create a (secure) tmp directory for tmp files.
16452 : ${TMPDIR=/tmp}
16453 {
16454   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16455   test -n "$tmp" && test -d "$tmp"
16456 }  ||
16457 {
16458   tmp=$TMPDIR/cs$$-$RANDOM
16459   (umask 077 && mkdir $tmp)
16460 } ||
16461 {
16462    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16463    { (exit 1); exit 1; }
16464 }
16465
16466 _ACEOF
16467
16468 cat >>$CONFIG_STATUS <<_ACEOF
16469
16470 #
16471 # CONFIG_FILES section.
16472 #
16473
16474 # No need to generate the scripts if there are no CONFIG_FILES.
16475 # This happens for instance when ./config.status config.h
16476 if test -n "\$CONFIG_FILES"; then
16477   # Protect against being on the right side of a sed subst in config.status.
16478   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16479    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16480 s,@SHELL@,$SHELL,;t t
16481 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16482 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16483 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16484 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16485 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16486 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16487 s,@exec_prefix@,$exec_prefix,;t t
16488 s,@prefix@,$prefix,;t t
16489 s,@program_transform_name@,$program_transform_name,;t t
16490 s,@bindir@,$bindir,;t t
16491 s,@sbindir@,$sbindir,;t t
16492 s,@libexecdir@,$libexecdir,;t t
16493 s,@datadir@,$datadir,;t t
16494 s,@sysconfdir@,$sysconfdir,;t t
16495 s,@sharedstatedir@,$sharedstatedir,;t t
16496 s,@localstatedir@,$localstatedir,;t t
16497 s,@libdir@,$libdir,;t t
16498 s,@includedir@,$includedir,;t t
16499 s,@oldincludedir@,$oldincludedir,;t t
16500 s,@infodir@,$infodir,;t t
16501 s,@mandir@,$mandir,;t t
16502 s,@build_alias@,$build_alias,;t t
16503 s,@host_alias@,$host_alias,;t t
16504 s,@target_alias@,$target_alias,;t t
16505 s,@DEFS@,$DEFS,;t t
16506 s,@ECHO_C@,$ECHO_C,;t t
16507 s,@ECHO_N@,$ECHO_N,;t t
16508 s,@ECHO_T@,$ECHO_T,;t t
16509 s,@LIBS@,$LIBS,;t t
16510 s,@docdir@,$docdir,;t t
16511 s,@configure_args@,$configure_args,;t t
16512 s,@build@,$build,;t t
16513 s,@build_cpu@,$build_cpu,;t t
16514 s,@build_vendor@,$build_vendor,;t t
16515 s,@build_os@,$build_os,;t t
16516 s,@host@,$host,;t t
16517 s,@host_cpu@,$host_cpu,;t t
16518 s,@host_vendor@,$host_vendor,;t t
16519 s,@host_os@,$host_os,;t t
16520 s,@PORTNAME@,$PORTNAME,;t t
16521 s,@TAS@,$TAS,;t t
16522 s,@enable_nls@,$enable_nls,;t t
16523 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
16524 s,@default_port@,$default_port,;t t
16525 s,@enable_shared@,$enable_shared,;t t
16526 s,@enable_rpath@,$enable_rpath,;t t
16527 s,@enable_debug@,$enable_debug,;t t
16528 s,@CC@,$CC,;t t
16529 s,@CFLAGS@,$CFLAGS,;t t
16530 s,@LDFLAGS@,$LDFLAGS,;t t
16531 s,@CPPFLAGS@,$CPPFLAGS,;t t
16532 s,@ac_ct_CC@,$ac_ct_CC,;t t
16533 s,@EXEEXT@,$EXEEXT,;t t
16534 s,@OBJEXT@,$OBJEXT,;t t
16535 s,@CPP@,$CPP,;t t
16536 s,@GCC@,$GCC,;t t
16537 s,@autodepend@,$autodepend,;t t
16538 s,@INCLUDES@,$INCLUDES,;t t
16539 s,@with_tcl@,$with_tcl,;t t
16540 s,@with_tk@,$with_tk,;t t
16541 s,@with_perl@,$with_perl,;t t
16542 s,@with_python@,$with_python,;t t
16543 s,@ANT@,$ANT,;t t
16544 s,@with_java@,$with_java,;t t
16545 s,@with_krb4@,$with_krb4,;t t
16546 s,@with_krb5@,$with_krb5,;t t
16547 s,@krb_srvtab@,$krb_srvtab,;t t
16548 s,@with_pam@,$with_pam,;t t
16549 s,@with_openssl@,$with_openssl,;t t
16550 s,@ELF_SYS@,$ELF_SYS,;t t
16551 s,@AWK@,$AWK,;t t
16552 s,@FLEX@,$FLEX,;t t
16553 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
16554 s,@LN_S@,$LN_S,;t t
16555 s,@LD@,$LD,;t t
16556 s,@with_gnu_ld@,$with_gnu_ld,;t t
16557 s,@ld_R_works@,$ld_R_works,;t t
16558 s,@RANLIB@,$RANLIB,;t t
16559 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16560 s,@LORDER@,$LORDER,;t t
16561 s,@TAR@,$TAR,;t t
16562 s,@STRIP@,$STRIP,;t t
16563 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16564 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
16565 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
16566 s,@YACC@,$YACC,;t t
16567 s,@YFLAGS@,$YFLAGS,;t t
16568 s,@PERL@,$PERL,;t t
16569 s,@perl_archlibexp@,$perl_archlibexp,;t t
16570 s,@perl_privlibexp@,$perl_privlibexp,;t t
16571 s,@perl_useshrplib@,$perl_useshrplib,;t t
16572 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
16573 s,@PYTHON@,$PYTHON,;t t
16574 s,@python_version@,$python_version,;t t
16575 s,@python_prefix@,$python_prefix,;t t
16576 s,@python_execprefix@,$python_execprefix,;t t
16577 s,@python_configdir@,$python_configdir,;t t
16578 s,@python_moduledir@,$python_moduledir,;t t
16579 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
16580 s,@python_includespec@,$python_includespec,;t t
16581 s,@python_libspec@,$python_libspec,;t t
16582 s,@LIBOBJS@,$LIBOBJS,;t t
16583 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
16584 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
16585 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
16586 s,@MSGFMT@,$MSGFMT,;t t
16587 s,@MSGMERGE@,$MSGMERGE,;t t
16588 s,@XGETTEXT@,$XGETTEXT,;t t
16589 s,@localedir@,$localedir,;t t
16590 s,@TCLSH@,$TCLSH,;t t
16591 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
16592 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
16593 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
16594 s,@TCL_LIBS@,$TCL_LIBS,;t t
16595 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
16596 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
16597 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
16598 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
16599 s,@TK_LIBS@,$TK_LIBS,;t t
16600 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
16601 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
16602 s,@NSGMLS@,$NSGMLS,;t t
16603 s,@JADE@,$JADE,;t t
16604 s,@have_docbook@,$have_docbook,;t t
16605 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
16606 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
16607 s,@SGMLSPL@,$SGMLSPL,;t t
16608 s,@vpath_build@,$vpath_build,;t t
16609 CEOF
16610
16611 _ACEOF
16612
16613   cat >>$CONFIG_STATUS <<\_ACEOF
16614   # Split the substitutions into bite-sized pieces for seds with
16615   # small command number limits, like on Digital OSF/1 and HP-UX.
16616   ac_max_sed_lines=48
16617   ac_sed_frag=1 # Number of current file.
16618   ac_beg=1 # First line for current file.
16619   ac_end=$ac_max_sed_lines # Line after last line for current file.
16620   ac_more_lines=:
16621   ac_sed_cmds=
16622   while $ac_more_lines; do
16623     if test $ac_beg -gt 1; then
16624       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16625     else
16626       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16627     fi
16628     if test ! -s $tmp/subs.frag; then
16629       ac_more_lines=false
16630     else
16631       # The purpose of the label and of the branching condition is to
16632       # speed up the sed processing (if there are no `@' at all, there
16633       # is no need to browse any of the substitutions).
16634       # These are the two extra sed commands mentioned above.
16635       (echo ':t
16636   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16637       if test -z "$ac_sed_cmds"; then
16638         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16639       else
16640         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16641       fi
16642       ac_sed_frag=`expr $ac_sed_frag + 1`
16643       ac_beg=$ac_end
16644       ac_end=`expr $ac_end + $ac_max_sed_lines`
16645     fi
16646   done
16647   if test -z "$ac_sed_cmds"; then
16648     ac_sed_cmds=cat
16649   fi
16650 fi # test -n "$CONFIG_FILES"
16651
16652 _ACEOF
16653 cat >>$CONFIG_STATUS <<\_ACEOF
16654 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16655   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16656   case $ac_file in
16657   - | *:- | *:-:* ) # input from stdin
16658         cat >$tmp/stdin
16659         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16660         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16661   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16662         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16663   * )   ac_file_in=$ac_file.in ;;
16664   esac
16665
16666   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16667   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16668 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16669          X"$ac_file" : 'X\(//\)[^/]' \| \
16670          X"$ac_file" : 'X\(//\)$' \| \
16671          X"$ac_file" : 'X\(/\)' \| \
16672          .     : '\(.\)' 2>/dev/null ||
16673 echo X"$ac_file" |
16674     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16675           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16676           /^X\(\/\/\)$/{ s//\1/; q; }
16677           /^X\(\/\).*/{ s//\1/; q; }
16678           s/.*/./; q'`
16679   { case "$ac_dir" in
16680   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16681   *)                      as_incr_dir=.;;
16682 esac
16683 as_dummy="$ac_dir"
16684 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16685   case $as_mkdir_dir in
16686     # Skip DOS drivespec
16687     ?:) as_incr_dir=$as_mkdir_dir ;;
16688     *)
16689       as_incr_dir=$as_incr_dir/$as_mkdir_dir
16690       test -d "$as_incr_dir" ||
16691         mkdir "$as_incr_dir" ||
16692         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16693 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16694    { (exit 1); exit 1; }; }
16695     ;;
16696   esac
16697 done; }
16698
16699   ac_builddir=.
16700
16701 if test "$ac_dir" != .; then
16702   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16703   # A "../" for each directory in $ac_dir_suffix.
16704   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16705 else
16706   ac_dir_suffix= ac_top_builddir=
16707 fi
16708
16709 case $srcdir in
16710   .)  # No --srcdir option.  We are building in place.
16711     ac_srcdir=.
16712     if test -z "$ac_top_builddir"; then
16713        ac_top_srcdir=.
16714     else
16715        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16716     fi ;;
16717   [\\/]* | ?:[\\/]* )  # Absolute path.
16718     ac_srcdir=$srcdir$ac_dir_suffix;
16719     ac_top_srcdir=$srcdir ;;
16720   *) # Relative path.
16721     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16722     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16723 esac
16724 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16725 # absolute.
16726 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16727 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16728 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16729 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16730
16731
16732
16733   if test x"$ac_file" != x-; then
16734     { echo "$as_me:$LINENO: creating $ac_file" >&5
16735 echo "$as_me: creating $ac_file" >&6;}
16736     rm -f "$ac_file"
16737   fi
16738   # Let's still pretend it is `configure' which instantiates (i.e., don't
16739   # use $as_me), people would be surprised to read:
16740   #    /* config.h.  Generated by config.status.  */
16741   if test x"$ac_file" = x-; then
16742     configure_input=
16743   else
16744     configure_input="$ac_file.  "
16745   fi
16746   configure_input=$configure_input"Generated from `echo $ac_file_in |
16747                                      sed 's,.*/,,'` by configure."
16748
16749   # First look for the input files in the build tree, otherwise in the
16750   # src tree.
16751   ac_file_inputs=`IFS=:
16752     for f in $ac_file_in; do
16753       case $f in
16754       -) echo $tmp/stdin ;;
16755       [\\/$]*)
16756          # Absolute (can't be DOS-style, as IFS=:)
16757          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16758 echo "$as_me: error: cannot find input file: $f" >&2;}
16759    { (exit 1); exit 1; }; }
16760          echo $f;;
16761       *) # Relative
16762          if test -f "$f"; then
16763            # Build tree
16764            echo $f
16765          elif test -f "$srcdir/$f"; then
16766            # Source tree
16767            echo $srcdir/$f
16768          else
16769            # /dev/null tree
16770            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16771 echo "$as_me: error: cannot find input file: $f" >&2;}
16772    { (exit 1); exit 1; }; }
16773          fi;;
16774       esac
16775     done` || { (exit 1); exit 1; }
16776 _ACEOF
16777 cat >>$CONFIG_STATUS <<_ACEOF
16778   sed "$ac_vpsub
16779 $extrasub
16780 _ACEOF
16781 cat >>$CONFIG_STATUS <<\_ACEOF
16782 :t
16783 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16784 s,@configure_input@,$configure_input,;t t
16785 s,@srcdir@,$ac_srcdir,;t t
16786 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16787 s,@top_srcdir@,$ac_top_srcdir,;t t
16788 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16789 s,@builddir@,$ac_builddir,;t t
16790 s,@abs_builddir@,$ac_abs_builddir,;t t
16791 s,@top_builddir@,$ac_top_builddir,;t t
16792 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16793 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16794   rm -f $tmp/stdin
16795   if test x"$ac_file" != x-; then
16796     mv $tmp/out $ac_file
16797   else
16798     cat $tmp/out
16799     rm -f $tmp/out
16800   fi
16801
16802 done
16803 _ACEOF
16804 cat >>$CONFIG_STATUS <<\_ACEOF
16805
16806 #
16807 # CONFIG_HEADER section.
16808 #
16809
16810 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16811 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16812 #
16813 # ac_d sets the value in "#define NAME VALUE" lines.
16814 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
16815 ac_dB='[        ].*$,\1#\2'
16816 ac_dC=' '
16817 ac_dD=',;t'
16818 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16819 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16820 ac_uB='$,\1#\2define\3'
16821 ac_uC=' '
16822 ac_uD=',;t'
16823
16824 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16825   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16826   case $ac_file in
16827   - | *:- | *:-:* ) # input from stdin
16828         cat >$tmp/stdin
16829         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16830         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16831   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16832         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16833   * )   ac_file_in=$ac_file.in ;;
16834   esac
16835
16836   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16837 echo "$as_me: creating $ac_file" >&6;}
16838
16839   # First look for the input files in the build tree, otherwise in the
16840   # src tree.
16841   ac_file_inputs=`IFS=:
16842     for f in $ac_file_in; do
16843       case $f in
16844       -) echo $tmp/stdin ;;
16845       [\\/$]*)
16846          # Absolute (can't be DOS-style, as IFS=:)
16847          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16848 echo "$as_me: error: cannot find input file: $f" >&2;}
16849    { (exit 1); exit 1; }; }
16850          echo $f;;
16851       *) # Relative
16852          if test -f "$f"; then
16853            # Build tree
16854            echo $f
16855          elif test -f "$srcdir/$f"; then
16856            # Source tree
16857            echo $srcdir/$f
16858          else
16859            # /dev/null tree
16860            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16861 echo "$as_me: error: cannot find input file: $f" >&2;}
16862    { (exit 1); exit 1; }; }
16863          fi;;
16864       esac
16865     done` || { (exit 1); exit 1; }
16866   # Remove the trailing spaces.
16867   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
16868
16869 _ACEOF
16870
16871 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16872 # `conftest.undefs', that substitutes the proper values into
16873 # config.h.in to produce config.h.  The first handles `#define'
16874 # templates, and the second `#undef' templates.
16875 # And first: Protect against being on the right side of a sed subst in
16876 # config.status.  Protect against being in an unquoted here document
16877 # in config.status.
16878 rm -f conftest.defines conftest.undefs
16879 # Using a here document instead of a string reduces the quoting nightmare.
16880 # Putting comments in sed scripts is not portable.
16881 #
16882 # `end' is used to avoid that the second main sed command (meant for
16883 # 0-ary CPP macros) applies to n-ary macro definitions.
16884 # See the Autoconf documentation for `clear'.
16885 cat >confdef2sed.sed <<\_ACEOF
16886 s/[\\&,]/\\&/g
16887 s,[\\$`],\\&,g
16888 t clear
16889 : clear
16890 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16891 t end
16892 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16893 : end
16894 _ACEOF
16895 # If some macros were called several times there might be several times
16896 # the same #defines, which is useless.  Nevertheless, we may not want to
16897 # sort them, since we want the *last* AC-DEFINE to be honored.
16898 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16899 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16900 rm -f confdef2sed.sed
16901
16902 # This sed command replaces #undef with comments.  This is necessary, for
16903 # example, in the case of _POSIX_SOURCE, which is predefined and required
16904 # on some systems where configure will not decide to define it.
16905 cat >>conftest.undefs <<\_ACEOF
16906 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16907 _ACEOF
16908
16909 # Break up conftest.defines because some shells have a limit on the size
16910 # of here documents, and old seds have small limits too (100 cmds).
16911 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16912 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16913 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16914 echo '  :' >>$CONFIG_STATUS
16915 rm -f conftest.tail
16916 while grep . conftest.defines >/dev/null
16917 do
16918   # Write a limited-size here document to $tmp/defines.sed.
16919   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16920   # Speed up: don't consider the non `#define' lines.
16921   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
16922   # Work around the forget-to-reset-the-flag bug.
16923   echo 't clr' >>$CONFIG_STATUS
16924   echo ': clr' >>$CONFIG_STATUS
16925   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16926   echo 'CEOF
16927   sed -f $tmp/defines.sed $tmp/in >$tmp/out
16928   rm -f $tmp/in
16929   mv $tmp/out $tmp/in
16930 ' >>$CONFIG_STATUS
16931   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16932   rm -f conftest.defines
16933   mv conftest.tail conftest.defines
16934 done
16935 rm -f conftest.defines
16936 echo '  fi # egrep' >>$CONFIG_STATUS
16937 echo >>$CONFIG_STATUS
16938
16939 # Break up conftest.undefs because some shells have a limit on the size
16940 # of here documents, and old seds have small limits too (100 cmds).
16941 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16942 rm -f conftest.tail
16943 while grep . conftest.undefs >/dev/null
16944 do
16945   # Write a limited-size here document to $tmp/undefs.sed.
16946   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16947   # Speed up: don't consider the non `#undef'
16948   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16949   # Work around the forget-to-reset-the-flag bug.
16950   echo 't clr' >>$CONFIG_STATUS
16951   echo ': clr' >>$CONFIG_STATUS
16952   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16953   echo 'CEOF
16954   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16955   rm -f $tmp/in
16956   mv $tmp/out $tmp/in
16957 ' >>$CONFIG_STATUS
16958   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16959   rm -f conftest.undefs
16960   mv conftest.tail conftest.undefs
16961 done
16962 rm -f conftest.undefs
16963
16964 cat >>$CONFIG_STATUS <<\_ACEOF
16965   # Let's still pretend it is `configure' which instantiates (i.e., don't
16966   # use $as_me), people would be surprised to read:
16967   #    /* config.h.  Generated by config.status.  */
16968   if test x"$ac_file" = x-; then
16969     echo "/* Generated by configure.  */" >$tmp/config.h
16970   else
16971     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16972   fi
16973   cat $tmp/in >>$tmp/config.h
16974   rm -f $tmp/in
16975   if test x"$ac_file" != x-; then
16976     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
16977       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16978 echo "$as_me: $ac_file is unchanged" >&6;}
16979     else
16980       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16981 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16982          X"$ac_file" : 'X\(//\)[^/]' \| \
16983          X"$ac_file" : 'X\(//\)$' \| \
16984          X"$ac_file" : 'X\(/\)' \| \
16985          .     : '\(.\)' 2>/dev/null ||
16986 echo X"$ac_file" |
16987     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16988           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16989           /^X\(\/\/\)$/{ s//\1/; q; }
16990           /^X\(\/\).*/{ s//\1/; q; }
16991           s/.*/./; q'`
16992       { case "$ac_dir" in
16993   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16994   *)                      as_incr_dir=.;;
16995 esac
16996 as_dummy="$ac_dir"
16997 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16998   case $as_mkdir_dir in
16999     # Skip DOS drivespec
17000     ?:) as_incr_dir=$as_mkdir_dir ;;
17001     *)
17002       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17003       test -d "$as_incr_dir" ||
17004         mkdir "$as_incr_dir" ||
17005         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17006 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17007    { (exit 1); exit 1; }; }
17008     ;;
17009   esac
17010 done; }
17011
17012       rm -f $ac_file
17013       mv $tmp/config.h $ac_file
17014     fi
17015   else
17016     cat $tmp/config.h
17017     rm -f $tmp/config.h
17018   fi
17019   # Run the commands associated with the file.
17020   case $ac_file in
17021     src/include/pg_config.h )
17022 # Update timestamp for pg_config.h (see Makefile.global)
17023 echo >src/include/stamp-h
17024  ;;
17025   esac
17026 done
17027 _ACEOF
17028 cat >>$CONFIG_STATUS <<\_ACEOF
17029
17030 #
17031 # CONFIG_LINKS section.
17032 #
17033
17034 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17035   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17036   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17037
17038   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17039 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17040
17041   if test ! -r $srcdir/$ac_source; then
17042     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17043 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17044    { (exit 1); exit 1; }; }
17045   fi
17046   rm -f $ac_dest
17047
17048   # Make relative symlinks.
17049   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17050 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17051          X"$ac_dest" : 'X\(//\)[^/]' \| \
17052          X"$ac_dest" : 'X\(//\)$' \| \
17053          X"$ac_dest" : 'X\(/\)' \| \
17054          .     : '\(.\)' 2>/dev/null ||
17055 echo X"$ac_dest" |
17056     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17057           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17058           /^X\(\/\/\)$/{ s//\1/; q; }
17059           /^X\(\/\).*/{ s//\1/; q; }
17060           s/.*/./; q'`
17061   { case "$ac_dest_dir" in
17062   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17063   *)                      as_incr_dir=.;;
17064 esac
17065 as_dummy="$ac_dest_dir"
17066 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17067   case $as_mkdir_dir in
17068     # Skip DOS drivespec
17069     ?:) as_incr_dir=$as_mkdir_dir ;;
17070     *)
17071       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17072       test -d "$as_incr_dir" ||
17073         mkdir "$as_incr_dir" ||
17074         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
17075 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
17076    { (exit 1); exit 1; }; }
17077     ;;
17078   esac
17079 done; }
17080
17081   ac_builddir=.
17082
17083 if test "$ac_dest_dir" != .; then
17084   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17085   # A "../" for each directory in $ac_dir_suffix.
17086   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17087 else
17088   ac_dir_suffix= ac_top_builddir=
17089 fi
17090
17091 case $srcdir in
17092   .)  # No --srcdir option.  We are building in place.
17093     ac_srcdir=.
17094     if test -z "$ac_top_builddir"; then
17095        ac_top_srcdir=.
17096     else
17097        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17098     fi ;;
17099   [\\/]* | ?:[\\/]* )  # Absolute path.
17100     ac_srcdir=$srcdir$ac_dir_suffix;
17101     ac_top_srcdir=$srcdir ;;
17102   *) # Relative path.
17103     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17104     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17105 esac
17106 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
17107 # absolute.
17108 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
17109 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
17110 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
17111 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
17112
17113
17114   case $srcdir in
17115   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17116       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17117   esac
17118
17119   # Make a symlink if possible; otherwise try a hard link.
17120   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17121     ln $srcdir/$ac_source $ac_dest ||
17122     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
17123 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
17124    { (exit 1); exit 1; }; }
17125 done
17126 _ACEOF
17127
17128 cat >>$CONFIG_STATUS <<\_ACEOF
17129
17130 { (exit 0); exit 0; }
17131 _ACEOF
17132 chmod +x $CONFIG_STATUS
17133 ac_clean_files=$ac_clean_files_save
17134
17135
17136 # configure is writing to config.log, and then calls config.status.
17137 # config.status does its own redirection, appending to config.log.
17138 # Unfortunately, on DOS this fails, as config.log is still kept open
17139 # by configure, so config.status won't be able to write to it; its
17140 # output is simply discarded.  So we exec the FD to /dev/null,
17141 # effectively closing config.log, so it can be properly (re)opened and
17142 # appended to by config.status.  When coming back to configure, we
17143 # need to make the FD available again.
17144 if test "$no_create" != yes; then
17145   ac_cs_success=:
17146   exec 5>/dev/null
17147   $SHELL $CONFIG_STATUS || ac_cs_success=false
17148   exec 5>>config.log
17149   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17150   # would make configure fail if this is the last instruction.
17151   $ac_cs_success || { (exit 1); exit 1; }
17152 fi
17153