]> granicus.if.org Git - postgresql/blob - configure
Code review for holdable-cursors patch. Fix error recovery, memory
[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-tcl              build Tcl and Tk interfaces
859   --without-tk            do not build Tk interfaces if Tcl is enabled
860   --with-tclconfig=DIR    tclConfig.sh and tkConfig.sh are in DIR
861   --with-tkconfig=DIR     tkConfig.sh is in DIR
862   --with-perl             build Perl modules (PL/Perl)
863   --with-python           build Python interface module
864   --with-java             build JDBC interface and Java tools
865   --with-krb4[=DIR]       build with Kerberos 4 support [/usr/athena]
866   --with-krb5[=DIR]       build with Kerberos 5 support [/usr/athena]
867   --with-krb-srvnam=NAME  name of the service principal in Kerberos postgres
868   --with-pam              build with PAM support
869   --with-openssl[=DIR]    build with OpenSSL support [/usr/local/ssl]
870   --without-readline      do not use Readline
871   --without-zlib          do not use Zlib
872   --with-gnu-ld           assume the C compiler uses GNU ld default=no
873
874 Some influential environment variables:
875   CC          C compiler command
876   CFLAGS      C compiler flags
877   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
878               nonstandard directory <lib dir>
879   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
880               headers in a nonstandard directory <include dir>
881   CPP         C preprocessor
882   DOCBOOKSTYLE
883               location of DocBook stylesheets
884
885 Use these variables to override the choices made by `configure' or to help
886 it to find libraries and programs with nonstandard names/locations.
887
888 Report bugs to <pgsql-bugs@postgresql.org>.
889 _ACEOF
890 fi
891
892 if test "$ac_init_help" = "recursive"; then
893   # If there are subdirs, report their specific --help.
894   ac_popdir=`pwd`
895   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
896     test -d $ac_dir || continue
897     ac_builddir=.
898
899 if test "$ac_dir" != .; then
900   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
901   # A "../" for each directory in $ac_dir_suffix.
902   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
903 else
904   ac_dir_suffix= ac_top_builddir=
905 fi
906
907 case $srcdir in
908   .)  # No --srcdir option.  We are building in place.
909     ac_srcdir=.
910     if test -z "$ac_top_builddir"; then
911        ac_top_srcdir=.
912     else
913        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
914     fi ;;
915   [\\/]* | ?:[\\/]* )  # Absolute path.
916     ac_srcdir=$srcdir$ac_dir_suffix;
917     ac_top_srcdir=$srcdir ;;
918   *) # Relative path.
919     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
920     ac_top_srcdir=$ac_top_builddir$srcdir ;;
921 esac
922 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
923 # absolute.
924 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
925 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
926 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
927 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
928
929     cd $ac_dir
930     # Check for guested configure; otherwise get Cygnus style configure.
931     if test -f $ac_srcdir/configure.gnu; then
932       echo
933       $SHELL $ac_srcdir/configure.gnu  --help=recursive
934     elif test -f $ac_srcdir/configure; then
935       echo
936       $SHELL $ac_srcdir/configure  --help=recursive
937     elif test -f $ac_srcdir/configure.ac ||
938            test -f $ac_srcdir/configure.in; then
939       echo
940       $ac_configure --help
941     else
942       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
943     fi
944     cd $ac_popdir
945   done
946 fi
947
948 test -n "$ac_init_help" && exit 0
949 if $ac_init_version; then
950   cat <<\_ACEOF
951 PostgreSQL configure 7.4devel
952 generated by GNU Autoconf 2.53
953
954 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
955 Free Software Foundation, Inc.
956 This configure script is free software; the Free Software Foundation
957 gives unlimited permission to copy, distribute and modify it.
958
959 Copyright 2002 PostgreSQL Global Development Group
960 _ACEOF
961   exit 0
962 fi
963 exec 5>config.log
964 cat >&5 <<_ACEOF
965 This file contains any messages produced by compilers while
966 running configure, to aid debugging if configure makes a mistake.
967
968 It was created by PostgreSQL $as_me 7.4devel, which was
969 generated by GNU Autoconf 2.53.  Invocation command line was
970
971   $ $0 $@
972
973 _ACEOF
974 {
975 cat <<_ASUNAME
976 ## --------- ##
977 ## Platform. ##
978 ## --------- ##
979
980 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
981 uname -m = `(uname -m) 2>/dev/null || echo unknown`
982 uname -r = `(uname -r) 2>/dev/null || echo unknown`
983 uname -s = `(uname -s) 2>/dev/null || echo unknown`
984 uname -v = `(uname -v) 2>/dev/null || echo unknown`
985
986 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
987 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
988
989 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
990 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
991 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
992 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
993 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
994 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
995 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
996
997 _ASUNAME
998
999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1000 for as_dir in $PATH
1001 do
1002   IFS=$as_save_IFS
1003   test -z "$as_dir" && as_dir=.
1004   echo "PATH: $as_dir"
1005 done
1006
1007 } >&5
1008
1009 cat >&5 <<_ACEOF
1010
1011
1012 ## ----------- ##
1013 ## Core tests. ##
1014 ## ----------- ##
1015
1016 _ACEOF
1017
1018
1019 # Keep a trace of the command line.
1020 # Strip out --no-create and --no-recursion so they do not pile up.
1021 # Also quote any args containing shell meta-characters.
1022 ac_configure_args=
1023 ac_sep=
1024 for ac_arg
1025 do
1026   case $ac_arg in
1027   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028   | --no-cr | --no-c | -n ) continue ;;
1029   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031     continue ;;
1032   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1033     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1034   esac
1035   case " $ac_configure_args " in
1036     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1037     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1038        ac_sep=" " ;;
1039   esac
1040   # Get rid of the leading space.
1041 done
1042
1043 # When interrupted or exit'd, cleanup temporary files, and complete
1044 # config.log.  We remove comments because anyway the quotes in there
1045 # would cause problems or look ugly.
1046 # WARNING: Be sure not to use single quotes in there, as some shells,
1047 # such as our DU 5.0 friend, will then `close' the trap.
1048 trap 'exit_status=$?
1049   # Save into config.log some information that might help in debugging.
1050   {
1051     echo
1052     cat <<\_ASBOX
1053 ## ---------------- ##
1054 ## Cache variables. ##
1055 ## ---------------- ##
1056 _ASBOX
1057     echo
1058     # The following way of writing the cache mishandles newlines in values,
1059 {
1060   (set) 2>&1 |
1061     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1062     *ac_space=\ *)
1063       sed -n \
1064         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1065           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1066       ;;
1067     *)
1068       sed -n \
1069         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1070       ;;
1071     esac;
1072 }
1073     echo
1074     if test -s confdefs.h; then
1075       cat <<\_ASBOX
1076 ## ----------- ##
1077 ## confdefs.h. ##
1078 ## ----------- ##
1079 _ASBOX
1080       echo
1081       sed "/^$/d" confdefs.h
1082       echo
1083     fi
1084     test "$ac_signal" != 0 &&
1085       echo "$as_me: caught signal $ac_signal"
1086     echo "$as_me: exit $exit_status"
1087   } >&5
1088   rm -f core core.* *.core &&
1089   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1090     exit $exit_status
1091      ' 0
1092 for ac_signal in 1 2 13 15; do
1093   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1094 done
1095 ac_signal=0
1096
1097 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1098 rm -rf conftest* confdefs.h
1099 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1100 echo >confdefs.h
1101
1102 # Predefined preprocessor variables.
1103
1104 cat >>confdefs.h <<_ACEOF
1105 #define PACKAGE_NAME "$PACKAGE_NAME"
1106 _ACEOF
1107
1108
1109 cat >>confdefs.h <<_ACEOF
1110 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1111 _ACEOF
1112
1113
1114 cat >>confdefs.h <<_ACEOF
1115 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1116 _ACEOF
1117
1118
1119 cat >>confdefs.h <<_ACEOF
1120 #define PACKAGE_STRING "$PACKAGE_STRING"
1121 _ACEOF
1122
1123
1124 cat >>confdefs.h <<_ACEOF
1125 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1126 _ACEOF
1127
1128
1129 # Let the site file select an alternate cache file if it wants to.
1130 # Prefer explicitly selected file to automatically selected ones.
1131 if test -z "$CONFIG_SITE"; then
1132   if test "x$prefix" != xNONE; then
1133     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1134   else
1135     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1136   fi
1137 fi
1138 for ac_site_file in $CONFIG_SITE; do
1139   if test -r "$ac_site_file"; then
1140     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1141 echo "$as_me: loading site script $ac_site_file" >&6;}
1142     sed 's/^/| /' "$ac_site_file" >&5
1143     . "$ac_site_file"
1144   fi
1145 done
1146
1147 if test -r "$cache_file"; then
1148   # Some versions of bash will fail to source /dev/null (special
1149   # files actually), so we avoid doing that.
1150   if test -f "$cache_file"; then
1151     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1152 echo "$as_me: loading cache $cache_file" >&6;}
1153     case $cache_file in
1154       [\\/]* | ?:[\\/]* ) . $cache_file;;
1155       *)                      . ./$cache_file;;
1156     esac
1157   fi
1158 else
1159   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1160 echo "$as_me: creating cache $cache_file" >&6;}
1161   >$cache_file
1162 fi
1163
1164 # Check that the precious variables saved in the cache have kept the same
1165 # value.
1166 ac_cache_corrupted=false
1167 for ac_var in `(set) 2>&1 |
1168                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1169   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1170   eval ac_new_set=\$ac_env_${ac_var}_set
1171   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1172   eval ac_new_val="\$ac_env_${ac_var}_value"
1173   case $ac_old_set,$ac_new_set in
1174     set,)
1175       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1176 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1177       ac_cache_corrupted=: ;;
1178     ,set)
1179       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1180 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1181       ac_cache_corrupted=: ;;
1182     ,);;
1183     *)
1184       if test "x$ac_old_val" != "x$ac_new_val"; then
1185         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1186 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1187         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1188 echo "$as_me:   former value:  $ac_old_val" >&2;}
1189         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1190 echo "$as_me:   current value: $ac_new_val" >&2;}
1191         ac_cache_corrupted=:
1192       fi;;
1193   esac
1194   # Pass precious variables to config.status.
1195   if test "$ac_new_set" = set; then
1196     case $ac_new_val in
1197     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1198       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1199     *) ac_arg=$ac_var=$ac_new_val ;;
1200     esac
1201     case " $ac_configure_args " in
1202       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1203       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1204     esac
1205   fi
1206 done
1207 if $ac_cache_corrupted; then
1208   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1209 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1210   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1211 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1212    { (exit 1); exit 1; }; }
1213 fi
1214
1215 ac_ext=c
1216 ac_cpp='$CPP $CPPFLAGS'
1217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1220
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 ac_aux_dir=
1254 for ac_dir in config $srcdir/config; do
1255   if test -f $ac_dir/install-sh; then
1256     ac_aux_dir=$ac_dir
1257     ac_install_sh="$ac_aux_dir/install-sh -c"
1258     break
1259   elif test -f $ac_dir/install.sh; then
1260     ac_aux_dir=$ac_dir
1261     ac_install_sh="$ac_aux_dir/install.sh -c"
1262     break
1263   elif test -f $ac_dir/shtool; then
1264     ac_aux_dir=$ac_dir
1265     ac_install_sh="$ac_aux_dir/shtool install -c"
1266     break
1267   fi
1268 done
1269 if test -z "$ac_aux_dir"; then
1270   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1271 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1272    { (exit 1); exit 1; }; }
1273 fi
1274 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1275 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1276 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1277
1278
1279 configure_args=$ac_configure_args
1280
1281
1282
1283 cat >>confdefs.h <<_ACEOF
1284 #define PG_VERSION "$PACKAGE_VERSION"
1285 _ACEOF
1286
1287
1288 # Make sure we can run config.sub.
1289 $ac_config_sub sun4 >/dev/null 2>&1 ||
1290   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1291 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1292    { (exit 1); exit 1; }; }
1293
1294 echo "$as_me:$LINENO: checking build system type" >&5
1295 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1296 if test "${ac_cv_build+set}" = set; then
1297   echo $ECHO_N "(cached) $ECHO_C" >&6
1298 else
1299   ac_cv_build_alias=$build_alias
1300 test -z "$ac_cv_build_alias" &&
1301   ac_cv_build_alias=`$ac_config_guess`
1302 test -z "$ac_cv_build_alias" &&
1303   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1304 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1305    { (exit 1); exit 1; }; }
1306 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1307   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1308 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1309    { (exit 1); exit 1; }; }
1310
1311 fi
1312 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1313 echo "${ECHO_T}$ac_cv_build" >&6
1314 build=$ac_cv_build
1315 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1316 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1317 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1318
1319
1320 echo "$as_me:$LINENO: checking host system type" >&5
1321 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1322 if test "${ac_cv_host+set}" = set; then
1323   echo $ECHO_N "(cached) $ECHO_C" >&6
1324 else
1325   ac_cv_host_alias=$host_alias
1326 test -z "$ac_cv_host_alias" &&
1327   ac_cv_host_alias=$ac_cv_build_alias
1328 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1329   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1330 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1331    { (exit 1); exit 1; }; }
1332
1333 fi
1334 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1335 echo "${ECHO_T}$ac_cv_host" >&6
1336 host=$ac_cv_host
1337 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1338 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1339 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1340
1341
1342
1343 template=
1344 echo "$as_me:$LINENO: checking which template to use" >&5
1345 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1346
1347
1348
1349
1350 # Check whether --with-template or --without-template was given.
1351 if test "${with_template+set}" = set; then
1352   withval="$with_template"
1353
1354   case $withval in
1355     yes)
1356       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1357 echo "$as_me: error: argument required for --with-template option" >&2;}
1358    { (exit 1); exit 1; }; }
1359       ;;
1360     no)
1361       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1362 echo "$as_me: error: argument required for --with-template option" >&2;}
1363    { (exit 1); exit 1; }; }
1364       ;;
1365     *)
1366
1367   case $withval in
1368     list)   echo; ls "$srcdir/src/template"; exit;;
1369     *)      if test -f "$srcdir/src/template/$with_template" ; then
1370               template=$withval
1371             else
1372               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1373 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1374    { (exit 1); exit 1; }; }
1375             fi;;
1376   esac
1377
1378       ;;
1379   esac
1380
1381 else
1382
1383   # --with-template not given
1384
1385 case $host_os in
1386      aix*) template=aix ;;
1387     beos*) template=beos ;;
1388     bsdi*) template=bsdi ;;
1389   cygwin*) template=cygwin ;;
1390   darwin*) template=darwin ;;
1391     dgux*) template=dgux ;;
1392  freebsd*) template=freebsd ;;
1393     hpux*) template=hpux ;;
1394     irix*) template=irix5 ;;
1395    linux*) template=linux ;;
1396    mingw*) template=win ;;
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 # Option to disable shared libraries
1726 #
1727
1728
1729 # Check whether --enable-shared or --disable-shared was given.
1730 if test "${enable_shared+set}" = set; then
1731   enableval="$enable_shared"
1732
1733   case $enableval in
1734     yes)
1735       :
1736       ;;
1737     no)
1738       :
1739       ;;
1740     *)
1741       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1742 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1743    { (exit 1); exit 1; }; }
1744       ;;
1745   esac
1746
1747 else
1748   enable_shared=yes
1749
1750 fi;
1751
1752
1753
1754 #
1755 # '-rpath'-like feature can be disabled
1756 #
1757
1758
1759 # Check whether --enable-rpath or --disable-rpath was given.
1760 if test "${enable_rpath+set}" = set; then
1761   enableval="$enable_rpath"
1762
1763   case $enableval in
1764     yes)
1765       :
1766       ;;
1767     no)
1768       :
1769       ;;
1770     *)
1771       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1772 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1773    { (exit 1); exit 1; }; }
1774       ;;
1775   esac
1776
1777 else
1778   enable_rpath=yes
1779
1780 fi;
1781
1782
1783
1784
1785 #
1786 # --enable-debug adds -g to compiler flags
1787 #
1788
1789
1790 # Check whether --enable-debug or --disable-debug was given.
1791 if test "${enable_debug+set}" = set; then
1792   enableval="$enable_debug"
1793
1794   case $enableval in
1795     yes)
1796       :
1797       ;;
1798     no)
1799       :
1800       ;;
1801     *)
1802       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1803 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1804    { (exit 1); exit 1; }; }
1805       ;;
1806   esac
1807
1808 else
1809   enable_debug=no
1810
1811 fi;
1812
1813
1814
1815 #
1816 # C compiler
1817 #
1818
1819 # For historical reasons you can also use --with-CC to specify the C compiler
1820 # to use, although the standard way to do this is to set the CC environment
1821 # variable.
1822
1823
1824
1825 # Check whether --with-CC or --without-CC was given.
1826 if test "${with_CC+set}" = set; then
1827   withval="$with_CC"
1828
1829   case $withval in
1830     yes)
1831       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1832 echo "$as_me: error: argument required for --with-CC option" >&2;}
1833    { (exit 1); exit 1; }; }
1834       ;;
1835     no)
1836       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1837 echo "$as_me: error: argument required for --with-CC option" >&2;}
1838    { (exit 1); exit 1; }; }
1839       ;;
1840     *)
1841       CC=$with_CC
1842       ;;
1843   esac
1844
1845 fi;
1846
1847
1848 case $template in
1849   aix) pgac_cc_list="gcc xlc";;
1850  irix) pgac_cc_list="cc";; # no gcc
1851     *) pgac_cc_list="gcc cc";;
1852 esac
1853
1854 ac_ext=c
1855 ac_cpp='$CPP $CPPFLAGS'
1856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1859 if test -n "$ac_tool_prefix"; then
1860   for ac_prog in $pgac_cc_list
1861   do
1862     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1863 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1864 echo "$as_me:$LINENO: checking for $ac_word" >&5
1865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866 if test "${ac_cv_prog_CC+set}" = set; then
1867   echo $ECHO_N "(cached) $ECHO_C" >&6
1868 else
1869   if test -n "$CC"; then
1870   ac_cv_prog_CC="$CC" # Let the user override the test.
1871 else
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 for as_dir in $PATH
1874 do
1875   IFS=$as_save_IFS
1876   test -z "$as_dir" && as_dir=.
1877   for ac_exec_ext in '' $ac_executable_extensions; do
1878   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881     break 2
1882   fi
1883 done
1884 done
1885
1886 fi
1887 fi
1888 CC=$ac_cv_prog_CC
1889 if test -n "$CC"; then
1890   echo "$as_me:$LINENO: result: $CC" >&5
1891 echo "${ECHO_T}$CC" >&6
1892 else
1893   echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1895 fi
1896
1897     test -n "$CC" && break
1898   done
1899 fi
1900 if test -z "$CC"; then
1901   ac_ct_CC=$CC
1902   for ac_prog in $pgac_cc_list
1903 do
1904   # Extract the first word of "$ac_prog", so it can be a program name with args.
1905 set dummy $ac_prog; ac_word=$2
1906 echo "$as_me:$LINENO: checking for $ac_word" >&5
1907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1908 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1909   echo $ECHO_N "(cached) $ECHO_C" >&6
1910 else
1911   if test -n "$ac_ct_CC"; then
1912   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1913 else
1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915 for as_dir in $PATH
1916 do
1917   IFS=$as_save_IFS
1918   test -z "$as_dir" && as_dir=.
1919   for ac_exec_ext in '' $ac_executable_extensions; do
1920   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1921     ac_cv_prog_ac_ct_CC="$ac_prog"
1922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923     break 2
1924   fi
1925 done
1926 done
1927
1928 fi
1929 fi
1930 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1931 if test -n "$ac_ct_CC"; then
1932   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1933 echo "${ECHO_T}$ac_ct_CC" >&6
1934 else
1935   echo "$as_me:$LINENO: result: no" >&5
1936 echo "${ECHO_T}no" >&6
1937 fi
1938
1939   test -n "$ac_ct_CC" && break
1940 done
1941
1942   CC=$ac_ct_CC
1943 fi
1944
1945
1946 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1947 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1948    { (exit 1); exit 1; }; }
1949
1950 # Provide some information about the compiler.
1951 echo "$as_me:$LINENO:" \
1952      "checking for C compiler version" >&5
1953 ac_compiler=`set X $ac_compile; echo $2`
1954 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1955   (eval $ac_compiler --version </dev/null >&5) 2>&5
1956   ac_status=$?
1957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958   (exit $ac_status); }
1959 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1960   (eval $ac_compiler -v </dev/null >&5) 2>&5
1961   ac_status=$?
1962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963   (exit $ac_status); }
1964 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1965   (eval $ac_compiler -V </dev/null >&5) 2>&5
1966   ac_status=$?
1967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968   (exit $ac_status); }
1969
1970 cat >conftest.$ac_ext <<_ACEOF
1971 #line $LINENO "configure"
1972 #include "confdefs.h"
1973
1974 #ifdef F77_DUMMY_MAIN
1975 #  ifdef __cplusplus
1976      extern "C"
1977 #  endif
1978    int F77_DUMMY_MAIN() { return 1; }
1979 #endif
1980 int
1981 main ()
1982 {
1983
1984   ;
1985   return 0;
1986 }
1987 _ACEOF
1988 ac_clean_files_save=$ac_clean_files
1989 ac_clean_files="$ac_clean_files a.out a.exe"
1990 # Try to create an executable without -o first, disregard a.out.
1991 # It will help us diagnose broken compilers, and finding out an intuition
1992 # of exeext.
1993 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1994 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1995 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1996 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1997   (eval $ac_link_default) 2>&5
1998   ac_status=$?
1999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000   (exit $ac_status); }; then
2001   # Find the output, starting from the most likely.  This scheme is
2002 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2003 # resort.
2004
2005 # Be careful to initialize this variable, since it used to be cached.
2006 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2007 ac_cv_exeext=
2008 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2009                 ls a.out conftest 2>/dev/null;
2010                 ls a.* conftest.* 2>/dev/null`; do
2011   case $ac_file in
2012     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2013     a.out ) # We found the default executable, but exeext='' is most
2014             # certainly right.
2015             break;;
2016     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2017           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2018           export ac_cv_exeext
2019           break;;
2020     * ) break;;
2021   esac
2022 done
2023 else
2024   echo "$as_me: failed program was:" >&5
2025 cat conftest.$ac_ext >&5
2026 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2027 echo "$as_me: error: C compiler cannot create executables" >&2;}
2028    { (exit 77); exit 77; }; }
2029 fi
2030
2031 ac_exeext=$ac_cv_exeext
2032 echo "$as_me:$LINENO: result: $ac_file" >&5
2033 echo "${ECHO_T}$ac_file" >&6
2034
2035 # Check the compiler produces executables we can run.  If not, either
2036 # the compiler is broken, or we cross compile.
2037 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2038 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2039 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2040 # If not cross compiling, check that we can run a simple program.
2041 if test "$cross_compiling" != yes; then
2042   if { ac_try='./$ac_file'
2043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2044   (eval $ac_try) 2>&5
2045   ac_status=$?
2046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047   (exit $ac_status); }; }; then
2048     cross_compiling=no
2049   else
2050     if test "$cross_compiling" = maybe; then
2051         cross_compiling=yes
2052     else
2053         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2054 If you meant to cross compile, use \`--host'." >&5
2055 echo "$as_me: error: cannot run C compiled programs.
2056 If you meant to cross compile, use \`--host'." >&2;}
2057    { (exit 1); exit 1; }; }
2058     fi
2059   fi
2060 fi
2061 echo "$as_me:$LINENO: result: yes" >&5
2062 echo "${ECHO_T}yes" >&6
2063
2064 rm -f a.out a.exe conftest$ac_cv_exeext
2065 ac_clean_files=$ac_clean_files_save
2066 # Check the compiler produces executables we can run.  If not, either
2067 # the compiler is broken, or we cross compile.
2068 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2069 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2070 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2071 echo "${ECHO_T}$cross_compiling" >&6
2072
2073 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2074 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2076   (eval $ac_link) 2>&5
2077   ac_status=$?
2078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079   (exit $ac_status); }; then
2080   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2081 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2082 # work properly (i.e., refer to `conftest.exe'), while it won't with
2083 # `rm'.
2084 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2085   case $ac_file in
2086     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2087     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2088           export ac_cv_exeext
2089           break;;
2090     * ) break;;
2091   esac
2092 done
2093 else
2094   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2095 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2096    { (exit 1); exit 1; }; }
2097 fi
2098
2099 rm -f conftest$ac_cv_exeext
2100 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2101 echo "${ECHO_T}$ac_cv_exeext" >&6
2102
2103 rm -f conftest.$ac_ext
2104 EXEEXT=$ac_cv_exeext
2105 ac_exeext=$EXEEXT
2106 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2107 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2108 if test "${ac_cv_objext+set}" = set; then
2109   echo $ECHO_N "(cached) $ECHO_C" >&6
2110 else
2111   cat >conftest.$ac_ext <<_ACEOF
2112 #line $LINENO "configure"
2113 #include "confdefs.h"
2114
2115 #ifdef F77_DUMMY_MAIN
2116 #  ifdef __cplusplus
2117      extern "C"
2118 #  endif
2119    int F77_DUMMY_MAIN() { return 1; }
2120 #endif
2121 int
2122 main ()
2123 {
2124
2125   ;
2126   return 0;
2127 }
2128 _ACEOF
2129 rm -f conftest.o conftest.obj
2130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2131   (eval $ac_compile) 2>&5
2132   ac_status=$?
2133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134   (exit $ac_status); }; then
2135   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2136   case $ac_file in
2137     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2138     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2139        break;;
2140   esac
2141 done
2142 else
2143   echo "$as_me: failed program was:" >&5
2144 cat conftest.$ac_ext >&5
2145 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2146 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2147    { (exit 1); exit 1; }; }
2148 fi
2149
2150 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2151 fi
2152 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2153 echo "${ECHO_T}$ac_cv_objext" >&6
2154 OBJEXT=$ac_cv_objext
2155 ac_objext=$OBJEXT
2156 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2157 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2158 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2159   echo $ECHO_N "(cached) $ECHO_C" >&6
2160 else
2161   cat >conftest.$ac_ext <<_ACEOF
2162 #line $LINENO "configure"
2163 #include "confdefs.h"
2164
2165 #ifdef F77_DUMMY_MAIN
2166 #  ifdef __cplusplus
2167      extern "C"
2168 #  endif
2169    int F77_DUMMY_MAIN() { return 1; }
2170 #endif
2171 int
2172 main ()
2173 {
2174 #ifndef __GNUC__
2175        choke me
2176 #endif
2177
2178   ;
2179   return 0;
2180 }
2181 _ACEOF
2182 rm -f conftest.$ac_objext
2183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2184   (eval $ac_compile) 2>&5
2185   ac_status=$?
2186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187   (exit $ac_status); } &&
2188          { ac_try='test -s conftest.$ac_objext'
2189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190   (eval $ac_try) 2>&5
2191   ac_status=$?
2192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193   (exit $ac_status); }; }; then
2194   ac_compiler_gnu=yes
2195 else
2196   echo "$as_me: failed program was:" >&5
2197 cat conftest.$ac_ext >&5
2198 ac_compiler_gnu=no
2199 fi
2200 rm -f conftest.$ac_objext conftest.$ac_ext
2201 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2202
2203 fi
2204 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2205 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2206 GCC=`test $ac_compiler_gnu = yes && echo yes`
2207 ac_test_CFLAGS=${CFLAGS+set}
2208 ac_save_CFLAGS=$CFLAGS
2209 CFLAGS="-g"
2210 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2211 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2212 if test "${ac_cv_prog_cc_g+set}" = set; then
2213   echo $ECHO_N "(cached) $ECHO_C" >&6
2214 else
2215   cat >conftest.$ac_ext <<_ACEOF
2216 #line $LINENO "configure"
2217 #include "confdefs.h"
2218
2219 #ifdef F77_DUMMY_MAIN
2220 #  ifdef __cplusplus
2221      extern "C"
2222 #  endif
2223    int F77_DUMMY_MAIN() { return 1; }
2224 #endif
2225 int
2226 main ()
2227 {
2228
2229   ;
2230   return 0;
2231 }
2232 _ACEOF
2233 rm -f conftest.$ac_objext
2234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2235   (eval $ac_compile) 2>&5
2236   ac_status=$?
2237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238   (exit $ac_status); } &&
2239          { ac_try='test -s conftest.$ac_objext'
2240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241   (eval $ac_try) 2>&5
2242   ac_status=$?
2243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244   (exit $ac_status); }; }; then
2245   ac_cv_prog_cc_g=yes
2246 else
2247   echo "$as_me: failed program was:" >&5
2248 cat conftest.$ac_ext >&5
2249 ac_cv_prog_cc_g=no
2250 fi
2251 rm -f conftest.$ac_objext conftest.$ac_ext
2252 fi
2253 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2254 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2255 if test "$ac_test_CFLAGS" = set; then
2256   CFLAGS=$ac_save_CFLAGS
2257 elif test $ac_cv_prog_cc_g = yes; then
2258   if test "$GCC" = yes; then
2259     CFLAGS="-g -O2"
2260   else
2261     CFLAGS="-g"
2262   fi
2263 else
2264   if test "$GCC" = yes; then
2265     CFLAGS="-O2"
2266   else
2267     CFLAGS=
2268   fi
2269 fi
2270 # Some people use a C++ compiler to compile C.  Since we use `exit',
2271 # in C++ we need to declare it.  In case someone uses the same compiler
2272 # for both compiling C and C++ we need to have the C++ compiler decide
2273 # the declaration of exit, since it's the most demanding environment.
2274 cat >conftest.$ac_ext <<_ACEOF
2275 #ifndef __cplusplus
2276   choke me
2277 #endif
2278 _ACEOF
2279 rm -f conftest.$ac_objext
2280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2281   (eval $ac_compile) 2>&5
2282   ac_status=$?
2283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284   (exit $ac_status); } &&
2285          { ac_try='test -s conftest.$ac_objext'
2286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287   (eval $ac_try) 2>&5
2288   ac_status=$?
2289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290   (exit $ac_status); }; }; then
2291   for ac_declaration in \
2292    ''\
2293    '#include <stdlib.h>' \
2294    'extern "C" void std::exit (int) throw (); using std::exit;' \
2295    'extern "C" void std::exit (int); using std::exit;' \
2296    'extern "C" void exit (int) throw ();' \
2297    'extern "C" void exit (int);' \
2298    'void exit (int);'
2299 do
2300   cat >conftest.$ac_ext <<_ACEOF
2301 #line $LINENO "configure"
2302 #include "confdefs.h"
2303 #include <stdlib.h>
2304 $ac_declaration
2305 #ifdef F77_DUMMY_MAIN
2306 #  ifdef __cplusplus
2307      extern "C"
2308 #  endif
2309    int F77_DUMMY_MAIN() { return 1; }
2310 #endif
2311 int
2312 main ()
2313 {
2314 exit (42);
2315   ;
2316   return 0;
2317 }
2318 _ACEOF
2319 rm -f conftest.$ac_objext
2320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2321   (eval $ac_compile) 2>&5
2322   ac_status=$?
2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); } &&
2325          { ac_try='test -s conftest.$ac_objext'
2326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327   (eval $ac_try) 2>&5
2328   ac_status=$?
2329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330   (exit $ac_status); }; }; then
2331   :
2332 else
2333   echo "$as_me: failed program was:" >&5
2334 cat conftest.$ac_ext >&5
2335 continue
2336 fi
2337 rm -f conftest.$ac_objext conftest.$ac_ext
2338   cat >conftest.$ac_ext <<_ACEOF
2339 #line $LINENO "configure"
2340 #include "confdefs.h"
2341 $ac_declaration
2342 #ifdef F77_DUMMY_MAIN
2343 #  ifdef __cplusplus
2344      extern "C"
2345 #  endif
2346    int F77_DUMMY_MAIN() { return 1; }
2347 #endif
2348 int
2349 main ()
2350 {
2351 exit (42);
2352   ;
2353   return 0;
2354 }
2355 _ACEOF
2356 rm -f conftest.$ac_objext
2357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2358   (eval $ac_compile) 2>&5
2359   ac_status=$?
2360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361   (exit $ac_status); } &&
2362          { ac_try='test -s conftest.$ac_objext'
2363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364   (eval $ac_try) 2>&5
2365   ac_status=$?
2366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367   (exit $ac_status); }; }; then
2368   break
2369 else
2370   echo "$as_me: failed program was:" >&5
2371 cat conftest.$ac_ext >&5
2372 fi
2373 rm -f conftest.$ac_objext conftest.$ac_ext
2374 done
2375 rm -f conftest*
2376 if test -n "$ac_declaration"; then
2377   echo '#ifdef __cplusplus' >>confdefs.h
2378   echo $ac_declaration      >>confdefs.h
2379   echo '#endif'             >>confdefs.h
2380 fi
2381
2382 else
2383   echo "$as_me: failed program was:" >&5
2384 cat conftest.$ac_ext >&5
2385 fi
2386 rm -f conftest.$ac_objext conftest.$ac_ext
2387 ac_ext=c
2388 ac_cpp='$CPP $CPPFLAGS'
2389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392
2393 # Read the template
2394 . "$srcdir/src/template/$template" || exit
2395
2396 if test "$ac_env_CFLAGS_set" = set; then
2397   CFLAGS=$ac_env_CFLAGS_value
2398 fi
2399 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2400   CFLAGS="$CFLAGS -g"
2401 fi
2402 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2403 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2404
2405 # Check if the compiler still works with the template settings
2406 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2407 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2408
2409 cat >conftest.$ac_ext <<_ACEOF
2410 #line $LINENO "configure"
2411 #include "confdefs.h"
2412
2413 #ifdef F77_DUMMY_MAIN
2414 #  ifdef __cplusplus
2415      extern "C"
2416 #  endif
2417    int F77_DUMMY_MAIN() { return 1; }
2418 #endif
2419 int
2420 main ()
2421 {
2422 return 0;
2423   ;
2424   return 0;
2425 }
2426 _ACEOF
2427 rm -f conftest.$ac_objext conftest$ac_exeext
2428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2429   (eval $ac_link) 2>&5
2430   ac_status=$?
2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); } &&
2433          { ac_try='test -s conftest$ac_exeext'
2434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435   (eval $ac_try) 2>&5
2436   ac_status=$?
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); }; }; then
2439   echo "$as_me:$LINENO: result: yes" >&5
2440 echo "${ECHO_T}yes" >&6
2441 else
2442   echo "$as_me: failed program was:" >&5
2443 cat conftest.$ac_ext >&5
2444 echo "$as_me:$LINENO: result: no" >&5
2445 echo "${ECHO_T}no" >&6
2446    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2447 echo "$as_me: error: cannot proceed" >&2;}
2448    { (exit 1); exit 1; }; }
2449 fi
2450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2451
2452 # Defend against gcc -ffastmath
2453 if test "$GCC" = yes; then
2454 cat >conftest.$ac_ext <<_ACEOF
2455 #line $LINENO "configure"
2456 #include "confdefs.h"
2457
2458 #ifdef F77_DUMMY_MAIN
2459 #  ifdef __cplusplus
2460      extern "C"
2461 #  endif
2462    int F77_DUMMY_MAIN() { return 1; }
2463 #endif
2464 int
2465 main ()
2466 {
2467 #ifdef __FAST_MATH__
2468 choke me
2469 #endif
2470   ;
2471   return 0;
2472 }
2473 _ACEOF
2474 rm -f conftest.$ac_objext
2475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476   (eval $ac_compile) 2>&5
2477   ac_status=$?
2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); } &&
2480          { ac_try='test -s conftest.$ac_objext'
2481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482   (eval $ac_try) 2>&5
2483   ac_status=$?
2484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485   (exit $ac_status); }; }; then
2486   :
2487 else
2488   echo "$as_me: failed program was:" >&5
2489 cat conftest.$ac_ext >&5
2490 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2491 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2492    { (exit 1); exit 1; }; }
2493 fi
2494 rm -f conftest.$ac_objext conftest.$ac_ext
2495 fi
2496
2497 ac_ext=c
2498 ac_cpp='$CPP $CPPFLAGS'
2499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2502 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2503 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2504 # On Suns, sometimes $CPP names a directory.
2505 if test -n "$CPP" && test -d "$CPP"; then
2506   CPP=
2507 fi
2508 if test -z "$CPP"; then
2509   if test "${ac_cv_prog_CPP+set}" = set; then
2510   echo $ECHO_N "(cached) $ECHO_C" >&6
2511 else
2512       # Double quotes because CPP needs to be expanded
2513     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2514     do
2515       ac_preproc_ok=false
2516 for ac_c_preproc_warn_flag in '' yes
2517 do
2518   # Use a header file that comes with gcc, so configuring glibc
2519   # with a fresh cross-compiler works.
2520   # On the NeXT, cc -E runs the code through the compiler's parser,
2521   # not just through cpp. "Syntax error" is here to catch this case.
2522   cat >conftest.$ac_ext <<_ACEOF
2523 #line $LINENO "configure"
2524 #include "confdefs.h"
2525 #include <assert.h>
2526                      Syntax error
2527 _ACEOF
2528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2529   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2530   ac_status=$?
2531   egrep -v '^ *\+' conftest.er1 >conftest.err
2532   rm -f conftest.er1
2533   cat conftest.err >&5
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); } >/dev/null; then
2536   if test -s conftest.err; then
2537     ac_cpp_err=$ac_c_preproc_warn_flag
2538   else
2539     ac_cpp_err=
2540   fi
2541 else
2542   ac_cpp_err=yes
2543 fi
2544 if test -z "$ac_cpp_err"; then
2545   :
2546 else
2547   echo "$as_me: failed program was:" >&5
2548   cat conftest.$ac_ext >&5
2549   # Broken: fails on valid input.
2550 continue
2551 fi
2552 rm -f conftest.err conftest.$ac_ext
2553
2554   # OK, works on sane cases.  Now check whether non-existent headers
2555   # can be detected and how.
2556   cat >conftest.$ac_ext <<_ACEOF
2557 #line $LINENO "configure"
2558 #include "confdefs.h"
2559 #include <ac_nonexistent.h>
2560 _ACEOF
2561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2562   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2563   ac_status=$?
2564   egrep -v '^ *\+' conftest.er1 >conftest.err
2565   rm -f conftest.er1
2566   cat conftest.err >&5
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); } >/dev/null; then
2569   if test -s conftest.err; then
2570     ac_cpp_err=$ac_c_preproc_warn_flag
2571   else
2572     ac_cpp_err=
2573   fi
2574 else
2575   ac_cpp_err=yes
2576 fi
2577 if test -z "$ac_cpp_err"; then
2578   # Broken: success on invalid input.
2579 continue
2580 else
2581   echo "$as_me: failed program was:" >&5
2582   cat conftest.$ac_ext >&5
2583   # Passes both tests.
2584 ac_preproc_ok=:
2585 break
2586 fi
2587 rm -f conftest.err conftest.$ac_ext
2588
2589 done
2590 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2591 rm -f conftest.err conftest.$ac_ext
2592 if $ac_preproc_ok; then
2593   break
2594 fi
2595
2596     done
2597     ac_cv_prog_CPP=$CPP
2598
2599 fi
2600   CPP=$ac_cv_prog_CPP
2601 else
2602   ac_cv_prog_CPP=$CPP
2603 fi
2604 echo "$as_me:$LINENO: result: $CPP" >&5
2605 echo "${ECHO_T}$CPP" >&6
2606 ac_preproc_ok=false
2607 for ac_c_preproc_warn_flag in '' yes
2608 do
2609   # Use a header file that comes with gcc, so configuring glibc
2610   # with a fresh cross-compiler works.
2611   # On the NeXT, cc -E runs the code through the compiler's parser,
2612   # not just through cpp. "Syntax error" is here to catch this case.
2613   cat >conftest.$ac_ext <<_ACEOF
2614 #line $LINENO "configure"
2615 #include "confdefs.h"
2616 #include <assert.h>
2617                      Syntax error
2618 _ACEOF
2619 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2620   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2621   ac_status=$?
2622   egrep -v '^ *\+' conftest.er1 >conftest.err
2623   rm -f conftest.er1
2624   cat conftest.err >&5
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); } >/dev/null; then
2627   if test -s conftest.err; then
2628     ac_cpp_err=$ac_c_preproc_warn_flag
2629   else
2630     ac_cpp_err=
2631   fi
2632 else
2633   ac_cpp_err=yes
2634 fi
2635 if test -z "$ac_cpp_err"; then
2636   :
2637 else
2638   echo "$as_me: failed program was:" >&5
2639   cat conftest.$ac_ext >&5
2640   # Broken: fails on valid input.
2641 continue
2642 fi
2643 rm -f conftest.err conftest.$ac_ext
2644
2645   # OK, works on sane cases.  Now check whether non-existent headers
2646   # can be detected and how.
2647   cat >conftest.$ac_ext <<_ACEOF
2648 #line $LINENO "configure"
2649 #include "confdefs.h"
2650 #include <ac_nonexistent.h>
2651 _ACEOF
2652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2653   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2654   ac_status=$?
2655   egrep -v '^ *\+' conftest.er1 >conftest.err
2656   rm -f conftest.er1
2657   cat conftest.err >&5
2658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659   (exit $ac_status); } >/dev/null; then
2660   if test -s conftest.err; then
2661     ac_cpp_err=$ac_c_preproc_warn_flag
2662   else
2663     ac_cpp_err=
2664   fi
2665 else
2666   ac_cpp_err=yes
2667 fi
2668 if test -z "$ac_cpp_err"; then
2669   # Broken: success on invalid input.
2670 continue
2671 else
2672   echo "$as_me: failed program was:" >&5
2673   cat conftest.$ac_ext >&5
2674   # Passes both tests.
2675 ac_preproc_ok=:
2676 break
2677 fi
2678 rm -f conftest.err conftest.$ac_ext
2679
2680 done
2681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2682 rm -f conftest.err conftest.$ac_ext
2683 if $ac_preproc_ok; then
2684   :
2685 else
2686   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2687 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2688    { (exit 1); exit 1; }; }
2689 fi
2690
2691 ac_ext=c
2692 ac_cpp='$CPP $CPPFLAGS'
2693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2696
2697
2698
2699 # Create compiler version string
2700 if test x"$GCC" = x"yes" ; then
2701   cc_string="GCC `${CC} --version | sed q`"
2702 else
2703   cc_string=$CC
2704 fi
2705
2706 cat >>confdefs.h <<_ACEOF
2707 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2708 _ACEOF
2709
2710
2711
2712 #
2713 # Automatic dependency tracking
2714 #
2715
2716
2717 # Check whether --enable-depend or --disable-depend was given.
2718 if test "${enable_depend+set}" = set; then
2719   enableval="$enable_depend"
2720
2721   case $enableval in
2722     yes)
2723       autodepend=yes
2724       ;;
2725     no)
2726       :
2727       ;;
2728     *)
2729       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2730 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2731    { (exit 1); exit 1; }; }
2732       ;;
2733   esac
2734
2735 else
2736   enable_depend=no
2737
2738 fi;
2739
2740
2741
2742
2743 #
2744 # Enable assert checks
2745 #
2746
2747
2748 # Check whether --enable-cassert or --disable-cassert was given.
2749 if test "${enable_cassert+set}" = set; then
2750   enableval="$enable_cassert"
2751
2752   case $enableval in
2753     yes)
2754
2755 cat >>confdefs.h <<\_ACEOF
2756 #define USE_ASSERT_CHECKING 1
2757 _ACEOF
2758
2759       ;;
2760     no)
2761       :
2762       ;;
2763     *)
2764       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2765 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2766    { (exit 1); exit 1; }; }
2767       ;;
2768   esac
2769
2770 else
2771   enable_cassert=no
2772
2773 fi;
2774
2775
2776
2777 #
2778 # Include directories
2779 #
2780 ac_save_IFS=$IFS
2781 IFS="${IFS}:"
2782 # SRCH_INC comes from the template file
2783 for dir in $with_includes $SRCH_INC; do
2784   if test -d "$dir"; then
2785     INCLUDES="$INCLUDES -I$dir"
2786   else
2787     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2788 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2789   fi
2790 done
2791 IFS=$ac_save_IFS
2792
2793
2794
2795 #
2796 # Library directories
2797 #
2798 ac_save_IFS=$IFS
2799 IFS="${IFS}:"
2800 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2801 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2802   if test -d "$dir"; then
2803     LIBDIRS="$LIBDIRS -L$dir"
2804   else
2805     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2806 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2807   fi
2808 done
2809 IFS=$ac_save_IFS
2810
2811
2812 #
2813 # Tcl/Tk
2814 #
2815 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2816 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2817
2818
2819
2820 # Check whether --with-tcl or --without-tcl was given.
2821 if test "${with_tcl+set}" = set; then
2822   withval="$with_tcl"
2823
2824   case $withval in
2825     yes)
2826       :
2827       ;;
2828     no)
2829       :
2830       ;;
2831     *)
2832       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2833 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2834    { (exit 1); exit 1; }; }
2835       ;;
2836   esac
2837
2838 else
2839   with_tcl=no
2840
2841 fi;
2842
2843 echo "$as_me:$LINENO: result: $with_tcl" >&5
2844 echo "${ECHO_T}$with_tcl" >&6
2845
2846
2847 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2848 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2849 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2850 if test "$with_tcl" = yes; then
2851
2852
2853
2854 # Check whether --with-tk or --without-tk was given.
2855 if test "${with_tk+set}" = set; then
2856   withval="$with_tk"
2857
2858   case $withval in
2859     yes)
2860       :
2861       ;;
2862     no)
2863       :
2864       ;;
2865     *)
2866       { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2867 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2868    { (exit 1); exit 1; }; }
2869       ;;
2870   esac
2871
2872 else
2873   with_tk=yes
2874
2875 fi;
2876
2877 else
2878   with_tk=no
2879 fi
2880 echo "$as_me:$LINENO: result: $with_tk" >&5
2881 echo "${ECHO_T}$with_tk" >&6
2882
2883
2884
2885 # We see if the path to the Tcl/Tk configuration scripts is specified.
2886 # This will override the use of tclsh to find the paths to search.
2887
2888
2889
2890
2891 # Check whether --with-tclconfig or --without-tclconfig was given.
2892 if test "${with_tclconfig+set}" = set; then
2893   withval="$with_tclconfig"
2894
2895   case $withval in
2896     yes)
2897       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2898 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2899    { (exit 1); exit 1; }; }
2900       ;;
2901     no)
2902       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2903 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2904    { (exit 1); exit 1; }; }
2905       ;;
2906     *)
2907
2908       ;;
2909   esac
2910
2911 fi;
2912
2913
2914 # We see if the path to the Tk configuration scripts is specified.
2915 # This will override the use of tclsh to find the paths to search.
2916
2917
2918
2919
2920 # Check whether --with-tkconfig or --without-tkconfig was given.
2921 if test "${with_tkconfig+set}" = set; then
2922   withval="$with_tkconfig"
2923
2924   case $withval in
2925     yes)
2926       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2927 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2928    { (exit 1); exit 1; }; }
2929       ;;
2930     no)
2931       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2932 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2933    { (exit 1); exit 1; }; }
2934       ;;
2935     *)
2936
2937       ;;
2938   esac
2939
2940 fi;
2941
2942
2943 #
2944 # Optionally build Perl modules (PL/Perl)
2945 #
2946 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2947 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2948
2949
2950
2951 # Check whether --with-perl or --without-perl was given.
2952 if test "${with_perl+set}" = set; then
2953   withval="$with_perl"
2954
2955   case $withval in
2956     yes)
2957       :
2958       ;;
2959     no)
2960       :
2961       ;;
2962     *)
2963       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
2964 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
2965    { (exit 1); exit 1; }; }
2966       ;;
2967   esac
2968
2969 else
2970   with_perl=no
2971
2972 fi;
2973
2974 echo "$as_me:$LINENO: result: $with_perl" >&5
2975 echo "${ECHO_T}$with_perl" >&6
2976
2977
2978 #
2979 # Optionally build Python interface module
2980 #
2981 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
2982 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
2983
2984
2985
2986 # Check whether --with-python or --without-python was given.
2987 if test "${with_python+set}" = set; then
2988   withval="$with_python"
2989
2990   case $withval in
2991     yes)
2992       :
2993       ;;
2994     no)
2995       :
2996       ;;
2997     *)
2998       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
2999 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3000    { (exit 1); exit 1; }; }
3001       ;;
3002   esac
3003
3004 else
3005   with_python=no
3006
3007 fi;
3008
3009 echo "$as_me:$LINENO: result: $with_python" >&5
3010 echo "${ECHO_T}$with_python" >&6
3011
3012
3013 #
3014 # Optionally build the Java/JDBC tools
3015 #
3016 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3017 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3018
3019
3020
3021 # Check whether --with-java or --without-java was given.
3022 if test "${with_java+set}" = set; then
3023   withval="$with_java"
3024
3025   case $withval in
3026     yes)
3027       echo "$as_me:$LINENO: result: yes" >&5
3028 echo "${ECHO_T}yes" >&6
3029
3030   for ac_prog in jakarta-ant ant ant.sh ant.bat
3031 do
3032   # Extract the first word of "$ac_prog", so it can be a program name with args.
3033 set dummy $ac_prog; ac_word=$2
3034 echo "$as_me:$LINENO: checking for $ac_word" >&5
3035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3036 if test "${ac_cv_path_ANT+set}" = set; then
3037   echo $ECHO_N "(cached) $ECHO_C" >&6
3038 else
3039   case $ANT in
3040   [\\/]* | ?:[\\/]*)
3041   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3042   ;;
3043   *)
3044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 for as_dir in $PATH
3046 do
3047   IFS=$as_save_IFS
3048   test -z "$as_dir" && as_dir=.
3049   for ac_exec_ext in '' $ac_executable_extensions; do
3050   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3051     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3053     break 2
3054   fi
3055 done
3056 done
3057
3058   ;;
3059 esac
3060 fi
3061 ANT=$ac_cv_path_ANT
3062
3063 if test -n "$ANT"; then
3064   echo "$as_me:$LINENO: result: $ANT" >&5
3065 echo "${ECHO_T}$ANT" >&6
3066 else
3067   echo "$as_me:$LINENO: result: no" >&5
3068 echo "${ECHO_T}no" >&6
3069 fi
3070
3071   test -n "$ANT" && break
3072 done
3073
3074
3075   echo "$as_me:$LINENO: checking whether $ANT works" >&5
3076 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3077 if test "${pgac_cv_prog_ant_works+set}" = set; then
3078   echo $ECHO_N "(cached) $ECHO_C" >&6
3079 else
3080
3081     cat > conftest.java << EOF
3082 public class conftest {
3083     int testmethod(int a, int b) {
3084         return a + b;
3085     }
3086 }
3087 EOF
3088
3089     cat > conftest.xml << EOF
3090 <project name="conftest" default="conftest">
3091  <target name="conftest">
3092   <javac srcdir="." includes="conftest.java">
3093   </javac>
3094  </target>
3095 </project>
3096 EOF
3097
3098     pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3099     { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3100   (eval $pgac_cmd) 2>&5
3101   ac_status=$?
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); }
3104     pgac_save_status=$?
3105     if test $? = 0 && test -f ./conftest.class ; then
3106       pgac_cv_prog_ant_works=yes
3107     else
3108       echo "configure: failed java program was:" >&5
3109       cat conftest.java >&5
3110       echo "configure: failed build file was:" >&5
3111       cat conftest.xml >&5
3112       pgac_cv_prog_ant_works=no
3113     fi
3114
3115     rm -f conftest* core core.* *.core
3116
3117 fi
3118 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3119 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3120
3121   if test "$pgac_cv_prog_ant_works" != yes; then
3122     { { echo "$as_me:$LINENO: error: ant does not work" >&5
3123 echo "$as_me: error: ant does not work" >&2;}
3124    { (exit 1); exit 1; }; }
3125   fi
3126
3127
3128 if test -z "$ANT"; then
3129   { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3130 If you have Ant already installed, see config.log for details on the failure." >&5
3131 echo "$as_me: error: Ant is required to build Java components
3132 If you have Ant already installed, see config.log for details on the failure." >&2;}
3133    { (exit 1); exit 1; }; }
3134 fi
3135 if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3136   { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3137 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3138    { (exit 1); exit 1; }; }
3139 fi
3140       ;;
3141     no)
3142       echo "$as_me:$LINENO: result: no" >&5
3143 echo "${ECHO_T}no" >&6
3144       ;;
3145     *)
3146       { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3147 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3148    { (exit 1); exit 1; }; }
3149       ;;
3150   esac
3151
3152 else
3153   with_java=no
3154 echo "$as_me:$LINENO: result: no" >&5
3155 echo "${ECHO_T}no" >&6
3156 fi;
3157
3158
3159
3160
3161 #
3162 # Kerberos 4
3163 #
3164 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3165 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3166
3167
3168
3169 # Check whether --with-krb4 or --without-krb4 was given.
3170 if test "${with_krb4+set}" = set; then
3171   withval="$with_krb4"
3172
3173   case $withval in
3174     yes)
3175       krb4_prefix=/usr/athena
3176       ;;
3177     no)
3178       :
3179       ;;
3180     *)
3181       with_krb4=yes
3182 krb4_prefix=$withval
3183       ;;
3184   esac
3185
3186 else
3187   with_krb4=no
3188 fi;
3189
3190
3191 if test "$with_krb4" = yes; then
3192
3193   echo "$as_me:$LINENO: result: yes" >&5
3194 echo "${ECHO_T}yes" >&6
3195
3196 cat >>confdefs.h <<\_ACEOF
3197 #define KRB4 1
3198 _ACEOF
3199
3200
3201   if test -d "$krb4_prefix/include"; then
3202     INCLUDES="$INCLUDES -I$krb4_prefix/include"
3203   fi
3204   if test -d "$krb4_prefix/lib"; then
3205     LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3206   fi
3207
3208   krb_srvtab="/etc/srvtab"
3209
3210 else
3211   echo "$as_me:$LINENO: result: no" >&5
3212 echo "${ECHO_T}no" >&6
3213 fi
3214
3215
3216
3217
3218
3219 #
3220 # Kerberos 5
3221 #
3222 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3223 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3224
3225
3226
3227 # Check whether --with-krb5 or --without-krb5 was given.
3228 if test "${with_krb5+set}" = set; then
3229   withval="$with_krb5"
3230
3231   case $withval in
3232     yes)
3233       krb5_prefix=/usr/athena
3234       ;;
3235     no)
3236       :
3237       ;;
3238     *)
3239       with_krb5=yes
3240 krb5_prefix=$withval
3241       ;;
3242   esac
3243
3244 else
3245   with_krb5=no
3246 fi;
3247
3248
3249 if test "$with_krb5" = yes; then
3250
3251   echo "$as_me:$LINENO: result: yes" >&5
3252 echo "${ECHO_T}yes" >&6
3253
3254 cat >>confdefs.h <<\_ACEOF
3255 #define KRB5 1
3256 _ACEOF
3257
3258
3259   if test -d "$krb5_prefix/include"; then
3260     INCLUDES="$INCLUDES -I$krb5_prefix/include"
3261   fi
3262   if test -d "$krb5_prefix/lib"; then
3263     LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3264   fi
3265
3266   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3267
3268 else
3269   echo "$as_me:$LINENO: result: no" >&5
3270 echo "${ECHO_T}no" >&6
3271 fi
3272
3273
3274
3275
3276
3277 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3278 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3279   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3280 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3281    { (exit 1); exit 1; }; }
3282 fi
3283
3284
3285
3286
3287 #
3288 # Kerberos configuration parameters
3289 #
3290
3291
3292
3293 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3294 if test "${with_krb_srvnam+set}" = set; then
3295   withval="$with_krb_srvnam"
3296
3297   case $withval in
3298     yes)
3299       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3300 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3301    { (exit 1); exit 1; }; }
3302       ;;
3303     no)
3304       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3305 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3306    { (exit 1); exit 1; }; }
3307       ;;
3308     *)
3309
3310       ;;
3311   esac
3312
3313 else
3314   with_krb_srvnam="postgres"
3315 fi;
3316
3317
3318 cat >>confdefs.h <<_ACEOF
3319 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3320 _ACEOF
3321
3322
3323
3324 #
3325 # PAM
3326 #
3327 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3328 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3329
3330
3331
3332 # Check whether --with-pam or --without-pam was given.
3333 if test "${with_pam+set}" = set; then
3334   withval="$with_pam"
3335
3336   case $withval in
3337     yes)
3338
3339 cat >>confdefs.h <<\_ACEOF
3340 #define USE_PAM 1
3341 _ACEOF
3342
3343       ;;
3344     no)
3345       :
3346       ;;
3347     *)
3348       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3349 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3350    { (exit 1); exit 1; }; }
3351       ;;
3352   esac
3353
3354 else
3355   with_pam=no
3356
3357 fi;
3358
3359 echo "$as_me:$LINENO: result: $with_pam" >&5
3360 echo "${ECHO_T}$with_pam" >&6
3361
3362
3363
3364 #
3365 # OpenSSL
3366 #
3367
3368
3369
3370 # Check whether --with-openssl or --without-openssl was given.
3371 if test "${with_openssl+set}" = set; then
3372   withval="$with_openssl"
3373
3374   case $withval in
3375     yes)
3376       openssl_prefix=/usr/local/ssl
3377       ;;
3378     no)
3379       :
3380       ;;
3381     *)
3382       with_openssl=yes
3383 openssl_prefix=$withval
3384       ;;
3385   esac
3386
3387 else
3388   with_openssl=no
3389 fi;
3390
3391
3392 if test "$with_openssl" = yes; then
3393
3394   echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3395 echo "${ECHO_T}building with OpenSSL support" >&6
3396
3397 cat >>confdefs.h <<\_ACEOF
3398 #define USE_SSL 1
3399 _ACEOF
3400
3401
3402   if test -d "${openssl_prefix}/include" ; then
3403     INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3404   fi
3405   if test -d "${openssl_prefix}/lib" ; then
3406     LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3407   fi
3408
3409 fi
3410
3411
3412
3413
3414
3415 #
3416 # Readline
3417 #
3418
3419
3420
3421 # Check whether --with-readline or --without-readline was given.
3422 if test "${with_readline+set}" = set; then
3423   withval="$with_readline"
3424
3425   case $withval in
3426     yes)
3427       :
3428       ;;
3429     no)
3430       :
3431       ;;
3432     *)
3433       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3434 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3435    { (exit 1); exit 1; }; }
3436       ;;
3437   esac
3438
3439 else
3440   with_readline=yes
3441
3442 fi;
3443
3444
3445 #
3446 # Zlib
3447 #
3448
3449
3450
3451 # Check whether --with-zlib or --without-zlib was given.
3452 if test "${with_zlib+set}" = set; then
3453   withval="$with_zlib"
3454
3455   case $withval in
3456     yes)
3457       :
3458       ;;
3459     no)
3460       :
3461       ;;
3462     *)
3463       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3464 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3465    { (exit 1); exit 1; }; }
3466       ;;
3467   esac
3468
3469 else
3470   with_zlib=yes
3471
3472 fi;
3473
3474
3475
3476
3477 # Assume system is ELF if it predefines __ELF__ as 1,
3478 # otherwise believe host_os based default.
3479 case $host_os in
3480     freebsd1*|freebsd2*) elf=no;;
3481     freebsd3*|freebsd4*) elf=yes;;
3482 esac
3483
3484
3485 cat >conftest.$ac_ext <<_ACEOF
3486 #line $LINENO "configure"
3487 #include "confdefs.h"
3488 #if __ELF__
3489   yes
3490 #endif
3491
3492 _ACEOF
3493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3494   egrep "yes" >/dev/null 2>&1; then
3495   ELF_SYS=true
3496 else
3497   if test "X$elf" = "Xyes" ; then
3498   ELF_SYS=true
3499 else
3500   ELF_SYS=
3501 fi
3502 fi
3503 rm -f conftest*
3504
3505
3506
3507
3508
3509 CPPFLAGS="$CPPFLAGS $INCLUDES"
3510 LDFLAGS="$LDFLAGS $LIBDIRS"
3511
3512 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3513 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3514 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3515 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3516
3517
3518 for ac_prog in gawk mawk nawk awk
3519 do
3520   # Extract the first word of "$ac_prog", so it can be a program name with args.
3521 set dummy $ac_prog; ac_word=$2
3522 echo "$as_me:$LINENO: checking for $ac_word" >&5
3523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3524 if test "${ac_cv_prog_AWK+set}" = set; then
3525   echo $ECHO_N "(cached) $ECHO_C" >&6
3526 else
3527   if test -n "$AWK"; then
3528   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3529 else
3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 for as_dir in $PATH
3532 do
3533   IFS=$as_save_IFS
3534   test -z "$as_dir" && as_dir=.
3535   for ac_exec_ext in '' $ac_executable_extensions; do
3536   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3537     ac_cv_prog_AWK="$ac_prog"
3538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3539     break 2
3540   fi
3541 done
3542 done
3543
3544 fi
3545 fi
3546 AWK=$ac_cv_prog_AWK
3547 if test -n "$AWK"; then
3548   echo "$as_me:$LINENO: result: $AWK" >&5
3549 echo "${ECHO_T}$AWK" >&6
3550 else
3551   echo "$as_me:$LINENO: result: no" >&5
3552 echo "${ECHO_T}no" >&6
3553 fi
3554
3555   test -n "$AWK" && break
3556 done
3557
3558 echo "$as_me:$LINENO: checking for flex" >&5
3559 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3560 if test "${pgac_cv_path_flex+set}" = set; then
3561   echo $ECHO_N "(cached) $ECHO_C" >&6
3562 else
3563   # Let the user override the test
3564 if test -n "$FLEX"; then
3565   pgac_cv_path_flex=$FLEX
3566 else
3567   pgac_save_IFS=$IFS
3568   IFS=:
3569   for pgac_dir in $PATH; do
3570     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3571       pgac_dir=`pwd`
3572     fi
3573     for pgac_prog in flex lex; do
3574       pgac_candidate="$pgac_dir/$pgac_prog"
3575       if test -f "$pgac_candidate" \
3576         && $pgac_candidate --version </dev/null >/dev/null 2>&1
3577       then
3578         echo '%%'  > conftest.l
3579         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3580           if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
3581             pgac_broken_flex=$pgac_candidate
3582             continue
3583           fi
3584
3585           pgac_cv_path_flex=$pgac_candidate
3586           break 2
3587         fi
3588       fi
3589     done
3590   done
3591   IFS=$pgac_save_IFS
3592   rm -f conftest.l
3593   : ${pgac_cv_path_flex=no}
3594 fi
3595
3596 fi
3597 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3598 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3599 if test x"$pgac_cv_path_flex" = x"no"; then
3600   if test -n "$pgac_broken_flex"; then
3601     { echo "$as_me:$LINENO: WARNING:
3602 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3603 *** should get version 2.5.4 or later." >&5
3604 echo "$as_me: WARNING:
3605 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3606 *** should get version 2.5.4 or later." >&2;}
3607   fi
3608
3609   { echo "$as_me:$LINENO: WARNING:
3610 *** Without Flex you will not be able to build PostgreSQL from CVS or
3611 *** change any of the scanner definition files.  You can obtain Flex from
3612 *** a GNU mirror site.  (If you are using the official distribution of
3613 *** PostgreSQL then you do not need to worry about this because the Flex
3614 *** output is pre-generated.)" >&5
3615 echo "$as_me: WARNING:
3616 *** Without Flex you will not be able to build PostgreSQL from CVS or
3617 *** change any of the scanner definition files.  You can obtain Flex from
3618 *** a GNU mirror site.  (If you are using the official distribution of
3619 *** PostgreSQL then you do not need to worry about this because the Flex
3620 *** output is pre-generated.)" >&2;}
3621 fi
3622
3623 if test x"$pgac_cv_path_flex" = x"no"; then
3624   FLEX=
3625 else
3626   FLEX=$pgac_cv_path_flex
3627 fi
3628
3629
3630
3631
3632 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3633 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3634 LN_S=$as_ln_s
3635 if test "$LN_S" = "ln -s"; then
3636   echo "$as_me:$LINENO: result: yes" >&5
3637 echo "${ECHO_T}yes" >&6
3638 else
3639   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3640 echo "${ECHO_T}no, using $LN_S" >&6
3641 fi
3642
3643
3644 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3645 if test "${with_gnu_ld+set}" = set; then
3646   withval="$with_gnu_ld"
3647   test "$withval" = no || with_gnu_ld=yes
3648 else
3649   with_gnu_ld=no
3650 fi;
3651 ac_prog=ld
3652 if test "$GCC" = yes; then
3653   # Check if gcc -print-prog-name=ld gives a path.
3654   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3655 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3656   case $host in
3657   *-*-mingw*)
3658     # gcc leaves a trailing carriage return which upsets mingw
3659     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3660   *)
3661     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3662   esac
3663   case "$ac_prog" in
3664     # Accept absolute paths.
3665     [\\/]* | [A-Za-z]:[\\/]*)
3666       re_direlt='/[^/][^/]*/\.\./'
3667       # Canonicalize the path of ld
3668       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3669       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3670         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3671       done
3672       test -z "$LD" && LD="$ac_prog"
3673       ;;
3674   "")
3675     # If it fails, then pretend we aren't using GCC.
3676     ac_prog=ld
3677     ;;
3678   *)
3679     # If it is relative, then search for the first ld in PATH.
3680     with_gnu_ld=unknown
3681     ;;
3682   esac
3683 elif test "$with_gnu_ld" = yes; then
3684   echo "$as_me:$LINENO: checking for GNU ld" >&5
3685 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3686 else
3687   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3688 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3689 fi
3690 if test "${ac_cv_path_LD+set}" = set; then
3691   echo $ECHO_N "(cached) $ECHO_C" >&6
3692 else
3693   if test -z "$LD"; then
3694   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3695   for ac_dir in $PATH; do
3696     test -z "$ac_dir" && ac_dir=.
3697     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3698       ac_cv_path_LD="$ac_dir/$ac_prog"
3699       # Check to see if the program is GNU ld.  I'd rather use --version,
3700       # but apparently some GNU ld's only accept -v.
3701       # Break only if it was the GNU/non-GNU ld that we prefer.
3702       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3703         test "$with_gnu_ld" != no && break
3704       else
3705         test "$with_gnu_ld" != yes && break
3706       fi
3707     fi
3708   done
3709   IFS="$ac_save_ifs"
3710 else
3711   ac_cv_path_LD="$LD" # Let the user override the test with a path.
3712 fi
3713 fi
3714
3715 LD="$ac_cv_path_LD"
3716 if test -n "$LD"; then
3717   echo "$as_me:$LINENO: result: $LD" >&5
3718 echo "${ECHO_T}$LD" >&6
3719 else
3720   echo "$as_me:$LINENO: result: no" >&5
3721 echo "${ECHO_T}no" >&6
3722 fi
3723 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3724 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3725    { (exit 1); exit 1; }; }
3726 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3727 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3728 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3729   echo $ECHO_N "(cached) $ECHO_C" >&6
3730 else
3731   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3732 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3733   ac_cv_prog_gnu_ld=yes
3734 else
3735   ac_cv_prog_gnu_ld=no
3736 fi
3737 fi
3738 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3739 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3740 with_gnu_ld=$ac_cv_prog_gnu_ld
3741
3742
3743
3744
3745 case $host_os in sysv5*)
3746   echo "$as_me:$LINENO: checking whether ld -R works" >&5
3747 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3748 if test "${pgac_cv_prog_ld_R+set}" = set; then
3749   echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751
3752     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3753     cat >conftest.$ac_ext <<_ACEOF
3754 #line $LINENO "configure"
3755 #include "confdefs.h"
3756
3757 #ifdef F77_DUMMY_MAIN
3758 #  ifdef __cplusplus
3759      extern "C"
3760 #  endif
3761    int F77_DUMMY_MAIN() { return 1; }
3762 #endif
3763 int
3764 main ()
3765 {
3766
3767   ;
3768   return 0;
3769 }
3770 _ACEOF
3771 rm -f conftest.$ac_objext conftest$ac_exeext
3772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3773   (eval $ac_link) 2>&5
3774   ac_status=$?
3775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776   (exit $ac_status); } &&
3777          { ac_try='test -s conftest$ac_exeext'
3778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779   (eval $ac_try) 2>&5
3780   ac_status=$?
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); }; }; then
3783   pgac_cv_prog_ld_R=yes
3784 else
3785   echo "$as_me: failed program was:" >&5
3786 cat conftest.$ac_ext >&5
3787 pgac_cv_prog_ld_R=no
3788 fi
3789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3790     LDFLAGS=$pgac_save_LDFLAGS
3791
3792 fi
3793 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3794 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3795   ld_R_works=$pgac_cv_prog_ld_R
3796
3797 esac
3798 if test -n "$ac_tool_prefix"; then
3799   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3800 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3801 echo "$as_me:$LINENO: checking for $ac_word" >&5
3802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3803 if test "${ac_cv_prog_RANLIB+set}" = set; then
3804   echo $ECHO_N "(cached) $ECHO_C" >&6
3805 else
3806   if test -n "$RANLIB"; then
3807   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3808 else
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 for as_dir in $PATH
3811 do
3812   IFS=$as_save_IFS
3813   test -z "$as_dir" && as_dir=.
3814   for ac_exec_ext in '' $ac_executable_extensions; do
3815   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3816     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3818     break 2
3819   fi
3820 done
3821 done
3822
3823 fi
3824 fi
3825 RANLIB=$ac_cv_prog_RANLIB
3826 if test -n "$RANLIB"; then
3827   echo "$as_me:$LINENO: result: $RANLIB" >&5
3828 echo "${ECHO_T}$RANLIB" >&6
3829 else
3830   echo "$as_me:$LINENO: result: no" >&5
3831 echo "${ECHO_T}no" >&6
3832 fi
3833
3834 fi
3835 if test -z "$ac_cv_prog_RANLIB"; then
3836   ac_ct_RANLIB=$RANLIB
3837   # Extract the first word of "ranlib", so it can be a program name with args.
3838 set dummy ranlib; ac_word=$2
3839 echo "$as_me:$LINENO: checking for $ac_word" >&5
3840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3841 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3842   echo $ECHO_N "(cached) $ECHO_C" >&6
3843 else
3844   if test -n "$ac_ct_RANLIB"; then
3845   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3846 else
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848 for as_dir in $PATH
3849 do
3850   IFS=$as_save_IFS
3851   test -z "$as_dir" && as_dir=.
3852   for ac_exec_ext in '' $ac_executable_extensions; do
3853   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3854     ac_cv_prog_ac_ct_RANLIB="ranlib"
3855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3856     break 2
3857   fi
3858 done
3859 done
3860
3861   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3862 fi
3863 fi
3864 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3865 if test -n "$ac_ct_RANLIB"; then
3866   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3867 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3868 else
3869   echo "$as_me:$LINENO: result: no" >&5
3870 echo "${ECHO_T}no" >&6
3871 fi
3872
3873   RANLIB=$ac_ct_RANLIB
3874 else
3875   RANLIB="$ac_cv_prog_RANLIB"
3876 fi
3877
3878 for ac_prog in lorder
3879 do
3880   # Extract the first word of "$ac_prog", so it can be a program name with args.
3881 set dummy $ac_prog; ac_word=$2
3882 echo "$as_me:$LINENO: checking for $ac_word" >&5
3883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3884 if test "${ac_cv_prog_LORDER+set}" = set; then
3885   echo $ECHO_N "(cached) $ECHO_C" >&6
3886 else
3887   if test -n "$LORDER"; then
3888   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3889 else
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891 for as_dir in $PATH
3892 do
3893   IFS=$as_save_IFS
3894   test -z "$as_dir" && as_dir=.
3895   for ac_exec_ext in '' $ac_executable_extensions; do
3896   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3897     ac_cv_prog_LORDER="$ac_prog"
3898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3899     break 2
3900   fi
3901 done
3902 done
3903
3904 fi
3905 fi
3906 LORDER=$ac_cv_prog_LORDER
3907 if test -n "$LORDER"; then
3908   echo "$as_me:$LINENO: result: $LORDER" >&5
3909 echo "${ECHO_T}$LORDER" >&6
3910 else
3911   echo "$as_me:$LINENO: result: no" >&5
3912 echo "${ECHO_T}no" >&6
3913 fi
3914
3915   test -n "$LORDER" && break
3916 done
3917
3918 # Extract the first word of "tar", so it can be a program name with args.
3919 set dummy tar; ac_word=$2
3920 echo "$as_me:$LINENO: checking for $ac_word" >&5
3921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3922 if test "${ac_cv_path_TAR+set}" = set; then
3923   echo $ECHO_N "(cached) $ECHO_C" >&6
3924 else
3925   case $TAR in
3926   [\\/]* | ?:[\\/]*)
3927   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3928   ;;
3929   *)
3930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3932 do
3933   IFS=$as_save_IFS
3934   test -z "$as_dir" && as_dir=.
3935   for ac_exec_ext in '' $ac_executable_extensions; do
3936   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3939     break 2
3940   fi
3941 done
3942 done
3943
3944   ;;
3945 esac
3946 fi
3947 TAR=$ac_cv_path_TAR
3948
3949 if test -n "$TAR"; then
3950   echo "$as_me:$LINENO: result: $TAR" >&5
3951 echo "${ECHO_T}$TAR" >&6
3952 else
3953   echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3955 fi
3956
3957
3958   if test -n "$ac_tool_prefix"; then
3959   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3960 set dummy ${ac_tool_prefix}strip; 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_prog_STRIP+set}" = set; then
3964   echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966   if test -n "$STRIP"; then
3967   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3968 else
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH
3971 do
3972   IFS=$as_save_IFS
3973   test -z "$as_dir" && as_dir=.
3974   for ac_exec_ext in '' $ac_executable_extensions; do
3975   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3976     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3978     break 2
3979   fi
3980 done
3981 done
3982
3983 fi
3984 fi
3985 STRIP=$ac_cv_prog_STRIP
3986 if test -n "$STRIP"; then
3987   echo "$as_me:$LINENO: result: $STRIP" >&5
3988 echo "${ECHO_T}$STRIP" >&6
3989 else
3990   echo "$as_me:$LINENO: result: no" >&5
3991 echo "${ECHO_T}no" >&6
3992 fi
3993
3994 fi
3995 if test -z "$ac_cv_prog_STRIP"; then
3996   ac_ct_STRIP=$STRIP
3997   # Extract the first word of "strip", so it can be a program name with args.
3998 set dummy strip; ac_word=$2
3999 echo "$as_me:$LINENO: checking for $ac_word" >&5
4000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4001 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4002   echo $ECHO_N "(cached) $ECHO_C" >&6
4003 else
4004   if test -n "$ac_ct_STRIP"; then
4005   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4006 else
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 for as_dir in $PATH
4009 do
4010   IFS=$as_save_IFS
4011   test -z "$as_dir" && as_dir=.
4012   for ac_exec_ext in '' $ac_executable_extensions; do
4013   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4014     ac_cv_prog_ac_ct_STRIP="strip"
4015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4016     break 2
4017   fi
4018 done
4019 done
4020
4021   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4022 fi
4023 fi
4024 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4025 if test -n "$ac_ct_STRIP"; then
4026   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4027 echo "${ECHO_T}$ac_ct_STRIP" >&6
4028 else
4029   echo "$as_me:$LINENO: result: no" >&5
4030 echo "${ECHO_T}no" >&6
4031 fi
4032
4033   STRIP=$ac_ct_STRIP
4034 else
4035   STRIP="$ac_cv_prog_STRIP"
4036 fi
4037
4038
4039   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4040 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4041   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4042     STRIP_STATIC_LIB="$STRIP -x"
4043     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4044     echo "$as_me:$LINENO: result: yes" >&5
4045 echo "${ECHO_T}yes" >&6
4046   else
4047     STRIP_STATIC_LIB=:
4048     STRIP_SHARED_LIB=:
4049     echo "$as_me:$LINENO: result: no" >&5
4050 echo "${ECHO_T}no" >&6
4051   fi
4052
4053
4054
4055
4056 for ac_prog in 'bison -y'
4057 do
4058   # Extract the first word of "$ac_prog", so it can be a program name with args.
4059 set dummy $ac_prog; ac_word=$2
4060 echo "$as_me:$LINENO: checking for $ac_word" >&5
4061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4062 if test "${ac_cv_prog_YACC+set}" = set; then
4063   echo $ECHO_N "(cached) $ECHO_C" >&6
4064 else
4065   if test -n "$YACC"; then
4066   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4067 else
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH
4070 do
4071   IFS=$as_save_IFS
4072   test -z "$as_dir" && as_dir=.
4073   for ac_exec_ext in '' $ac_executable_extensions; do
4074   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4075     ac_cv_prog_YACC="$ac_prog"
4076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4077     break 2
4078   fi
4079 done
4080 done
4081
4082 fi
4083 fi
4084 YACC=$ac_cv_prog_YACC
4085 if test -n "$YACC"; then
4086   echo "$as_me:$LINENO: result: $YACC" >&5
4087 echo "${ECHO_T}$YACC" >&6
4088 else
4089   echo "$as_me:$LINENO: result: no" >&5
4090 echo "${ECHO_T}no" >&6
4091 fi
4092
4093   test -n "$YACC" && break
4094 done
4095
4096 if test -z "$YACC"; then
4097   { echo "$as_me:$LINENO: WARNING:
4098 *** Without Bison you will not be able to build PostgreSQL from CVS or
4099 *** change any of the parser definition files.  You can obtain Bison from
4100 *** a GNU mirror site.  (If you are using the official distribution of
4101 *** PostgreSQL then you do not need to worry about this because the Bison
4102 *** output is pre-generated.)  To use a different yacc program (possible,
4103 *** but not recommended), set the environment variable YACC before running
4104 *** 'configure'." >&5
4105 echo "$as_me: WARNING:
4106 *** Without Bison you will not be able to build PostgreSQL from CVS or
4107 *** change any of the parser definition files.  You can obtain Bison from
4108 *** a GNU mirror site.  (If you are using the official distribution of
4109 *** PostgreSQL then you do not need to worry about this because the Bison
4110 *** output is pre-generated.)  To use a different yacc program (possible,
4111 *** but not recommended), set the environment variable YACC before running
4112 *** 'configure'." >&2;}
4113 fi
4114
4115
4116 # Extract the first word of "perl", so it can be a program name with args.
4117 set dummy perl; ac_word=$2
4118 echo "$as_me:$LINENO: checking for $ac_word" >&5
4119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4120 if test "${ac_cv_path_PERL+set}" = set; then
4121   echo $ECHO_N "(cached) $ECHO_C" >&6
4122 else
4123   case $PERL in
4124   [\\/]* | ?:[\\/]*)
4125   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4126   ;;
4127   *)
4128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 for as_dir in $PATH
4130 do
4131   IFS=$as_save_IFS
4132   test -z "$as_dir" && as_dir=.
4133   for ac_exec_ext in '' $ac_executable_extensions; do
4134   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4135     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4136     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4137     break 2
4138   fi
4139 done
4140 done
4141
4142   ;;
4143 esac
4144 fi
4145 PERL=$ac_cv_path_PERL
4146
4147 if test -n "$PERL"; then
4148   echo "$as_me:$LINENO: result: $PERL" >&5
4149 echo "${ECHO_T}$PERL" >&6
4150 else
4151   echo "$as_me:$LINENO: result: no" >&5
4152 echo "${ECHO_T}no" >&6
4153 fi
4154
4155 if test "$with_perl" = yes; then
4156
4157 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4158 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4159 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4160 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4161 echo "${ECHO_T}$perl_archlibexp" >&6
4162 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4163 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4164 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4165 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4166 echo "${ECHO_T}$perl_privlibexp" >&6
4167 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4168 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4169 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4170 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4171 echo "${ECHO_T}$perl_useshrplib" >&6
4172
4173 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4174 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4175 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4176 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4177 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4178 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4179 echo "${ECHO_T}$perl_embed_ldflags" >&6
4180 fi
4181
4182 if test "$with_python" = yes; then
4183   # Extract the first word of "python", so it can be a program name with args.
4184 set dummy python; ac_word=$2
4185 echo "$as_me:$LINENO: checking for $ac_word" >&5
4186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4187 if test "${ac_cv_path_PYTHON+set}" = set; then
4188   echo $ECHO_N "(cached) $ECHO_C" >&6
4189 else
4190   case $PYTHON in
4191   [\\/]* | ?:[\\/]*)
4192   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4193   ;;
4194   *)
4195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196 for as_dir in $PATH
4197 do
4198   IFS=$as_save_IFS
4199   test -z "$as_dir" && as_dir=.
4200   for ac_exec_ext in '' $ac_executable_extensions; do
4201   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4202     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4204     break 2
4205   fi
4206 done
4207 done
4208
4209   ;;
4210 esac
4211 fi
4212 PYTHON=$ac_cv_path_PYTHON
4213
4214 if test -n "$PYTHON"; then
4215   echo "$as_me:$LINENO: result: $PYTHON" >&5
4216 echo "${ECHO_T}$PYTHON" >&6
4217 else
4218   echo "$as_me:$LINENO: result: no" >&5
4219 echo "${ECHO_T}no" >&6
4220 fi
4221
4222 if test x"$PYTHON" = x""; then
4223   { { echo "$as_me:$LINENO: error: Python not found" >&5
4224 echo "$as_me: error: Python not found" >&2;}
4225    { (exit 1); exit 1; }; }
4226 fi
4227
4228
4229 echo "$as_me:$LINENO: checking Python installation directories" >&5
4230 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4231 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4232 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4233 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4234 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4235 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
4236 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
4237 python_includespec="-I${python_prefix}/include/python${python_version}"
4238 if test "$python_prefix" != "$python_execprefix"; then
4239   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4240 fi
4241
4242 # This should be enough of a message.
4243 if test "$python_prefix" != "$python_execprefix"; then
4244   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4245 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4246 else
4247   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4248 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4249 fi
4250
4251
4252
4253
4254
4255 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4256 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4257
4258 if test ! -f "$python_configdir/Makefile"; then
4259   echo "$as_me:$LINENO: result: no" >&5
4260 echo "${ECHO_T}no" >&6
4261   { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4262 echo "$as_me: error: Python Makefile not found" >&2;}
4263    { (exit 1); exit 1; }; }
4264 fi
4265
4266 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4267 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4268 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4269 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4270 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4271
4272 pgac_tab="      " # tab character
4273 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"`
4274
4275 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4276 echo "${ECHO_T}${python_libspec}" >&6
4277
4278
4279 fi
4280
4281
4282 ##
4283 ## Libraries
4284 ##
4285
4286 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4287 then
4288
4289 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4290 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4291 if test "${ac_cv_lib_bsd_main+set}" = set; then
4292   echo $ECHO_N "(cached) $ECHO_C" >&6
4293 else
4294   ac_check_lib_save_LIBS=$LIBS
4295 LIBS="-lbsd  $LIBS"
4296 cat >conftest.$ac_ext <<_ACEOF
4297 #line $LINENO "configure"
4298 #include "confdefs.h"
4299
4300
4301 #ifdef F77_DUMMY_MAIN
4302 #  ifdef __cplusplus
4303      extern "C"
4304 #  endif
4305    int F77_DUMMY_MAIN() { return 1; }
4306 #endif
4307 int
4308 main ()
4309 {
4310 main ();
4311   ;
4312   return 0;
4313 }
4314 _ACEOF
4315 rm -f conftest.$ac_objext conftest$ac_exeext
4316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4317   (eval $ac_link) 2>&5
4318   ac_status=$?
4319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320   (exit $ac_status); } &&
4321          { ac_try='test -s conftest$ac_exeext'
4322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323   (eval $ac_try) 2>&5
4324   ac_status=$?
4325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326   (exit $ac_status); }; }; then
4327   ac_cv_lib_bsd_main=yes
4328 else
4329   echo "$as_me: failed program was:" >&5
4330 cat conftest.$ac_ext >&5
4331 ac_cv_lib_bsd_main=no
4332 fi
4333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4334 LIBS=$ac_check_lib_save_LIBS
4335 fi
4336 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4337 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4338 if test $ac_cv_lib_bsd_main = yes; then
4339   cat >>confdefs.h <<_ACEOF
4340 #define HAVE_LIBBSD 1
4341 _ACEOF
4342
4343   LIBS="-lbsd $LIBS"
4344
4345 fi
4346
4347 fi
4348
4349 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4350 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4351 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4352   echo $ECHO_N "(cached) $ECHO_C" >&6
4353 else
4354   ac_check_lib_save_LIBS=$LIBS
4355 LIBS="-lutil  $LIBS"
4356 cat >conftest.$ac_ext <<_ACEOF
4357 #line $LINENO "configure"
4358 #include "confdefs.h"
4359
4360 /* Override any gcc2 internal prototype to avoid an error.  */
4361 #ifdef __cplusplus
4362 extern "C"
4363 #endif
4364 /* We use char because int might match the return type of a gcc2
4365    builtin and then its argument prototype would still apply.  */
4366 char setproctitle ();
4367 #ifdef F77_DUMMY_MAIN
4368 #  ifdef __cplusplus
4369      extern "C"
4370 #  endif
4371    int F77_DUMMY_MAIN() { return 1; }
4372 #endif
4373 int
4374 main ()
4375 {
4376 setproctitle ();
4377   ;
4378   return 0;
4379 }
4380 _ACEOF
4381 rm -f conftest.$ac_objext conftest$ac_exeext
4382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4383   (eval $ac_link) 2>&5
4384   ac_status=$?
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); } &&
4387          { ac_try='test -s conftest$ac_exeext'
4388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389   (eval $ac_try) 2>&5
4390   ac_status=$?
4391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392   (exit $ac_status); }; }; then
4393   ac_cv_lib_util_setproctitle=yes
4394 else
4395   echo "$as_me: failed program was:" >&5
4396 cat conftest.$ac_ext >&5
4397 ac_cv_lib_util_setproctitle=no
4398 fi
4399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4400 LIBS=$ac_check_lib_save_LIBS
4401 fi
4402 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4403 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4404 if test $ac_cv_lib_util_setproctitle = yes; then
4405   cat >>confdefs.h <<_ACEOF
4406 #define HAVE_LIBUTIL 1
4407 _ACEOF
4408
4409   LIBS="-lutil $LIBS"
4410
4411 fi
4412
4413
4414 echo "$as_me:$LINENO: checking for main in -lm" >&5
4415 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4416 if test "${ac_cv_lib_m_main+set}" = set; then
4417   echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419   ac_check_lib_save_LIBS=$LIBS
4420 LIBS="-lm  $LIBS"
4421 cat >conftest.$ac_ext <<_ACEOF
4422 #line $LINENO "configure"
4423 #include "confdefs.h"
4424
4425
4426 #ifdef F77_DUMMY_MAIN
4427 #  ifdef __cplusplus
4428      extern "C"
4429 #  endif
4430    int F77_DUMMY_MAIN() { return 1; }
4431 #endif
4432 int
4433 main ()
4434 {
4435 main ();
4436   ;
4437   return 0;
4438 }
4439 _ACEOF
4440 rm -f conftest.$ac_objext conftest$ac_exeext
4441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4442   (eval $ac_link) 2>&5
4443   ac_status=$?
4444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445   (exit $ac_status); } &&
4446          { ac_try='test -s conftest$ac_exeext'
4447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448   (eval $ac_try) 2>&5
4449   ac_status=$?
4450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451   (exit $ac_status); }; }; then
4452   ac_cv_lib_m_main=yes
4453 else
4454   echo "$as_me: failed program was:" >&5
4455 cat conftest.$ac_ext >&5
4456 ac_cv_lib_m_main=no
4457 fi
4458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4459 LIBS=$ac_check_lib_save_LIBS
4460 fi
4461 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4462 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4463 if test $ac_cv_lib_m_main = yes; then
4464   cat >>confdefs.h <<_ACEOF
4465 #define HAVE_LIBM 1
4466 _ACEOF
4467
4468   LIBS="-lm $LIBS"
4469
4470 fi
4471
4472
4473 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4474 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4475 if test "${ac_cv_lib_dl_main+set}" = set; then
4476   echo $ECHO_N "(cached) $ECHO_C" >&6
4477 else
4478   ac_check_lib_save_LIBS=$LIBS
4479 LIBS="-ldl  $LIBS"
4480 cat >conftest.$ac_ext <<_ACEOF
4481 #line $LINENO "configure"
4482 #include "confdefs.h"
4483
4484
4485 #ifdef F77_DUMMY_MAIN
4486 #  ifdef __cplusplus
4487      extern "C"
4488 #  endif
4489    int F77_DUMMY_MAIN() { return 1; }
4490 #endif
4491 int
4492 main ()
4493 {
4494 main ();
4495   ;
4496   return 0;
4497 }
4498 _ACEOF
4499 rm -f conftest.$ac_objext conftest$ac_exeext
4500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4501   (eval $ac_link) 2>&5
4502   ac_status=$?
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); } &&
4505          { ac_try='test -s conftest$ac_exeext'
4506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507   (eval $ac_try) 2>&5
4508   ac_status=$?
4509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510   (exit $ac_status); }; }; then
4511   ac_cv_lib_dl_main=yes
4512 else
4513   echo "$as_me: failed program was:" >&5
4514 cat conftest.$ac_ext >&5
4515 ac_cv_lib_dl_main=no
4516 fi
4517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4518 LIBS=$ac_check_lib_save_LIBS
4519 fi
4520 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4521 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4522 if test $ac_cv_lib_dl_main = yes; then
4523   cat >>confdefs.h <<_ACEOF
4524 #define HAVE_LIBDL 1
4525 _ACEOF
4526
4527   LIBS="-ldl $LIBS"
4528
4529 fi
4530
4531
4532 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4533 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4534 if test "${ac_cv_lib_nsl_main+set}" = set; then
4535   echo $ECHO_N "(cached) $ECHO_C" >&6
4536 else
4537   ac_check_lib_save_LIBS=$LIBS
4538 LIBS="-lnsl  $LIBS"
4539 cat >conftest.$ac_ext <<_ACEOF
4540 #line $LINENO "configure"
4541 #include "confdefs.h"
4542
4543
4544 #ifdef F77_DUMMY_MAIN
4545 #  ifdef __cplusplus
4546      extern "C"
4547 #  endif
4548    int F77_DUMMY_MAIN() { return 1; }
4549 #endif
4550 int
4551 main ()
4552 {
4553 main ();
4554   ;
4555   return 0;
4556 }
4557 _ACEOF
4558 rm -f conftest.$ac_objext conftest$ac_exeext
4559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4560   (eval $ac_link) 2>&5
4561   ac_status=$?
4562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563   (exit $ac_status); } &&
4564          { ac_try='test -s conftest$ac_exeext'
4565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566   (eval $ac_try) 2>&5
4567   ac_status=$?
4568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569   (exit $ac_status); }; }; then
4570   ac_cv_lib_nsl_main=yes
4571 else
4572   echo "$as_me: failed program was:" >&5
4573 cat conftest.$ac_ext >&5
4574 ac_cv_lib_nsl_main=no
4575 fi
4576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4577 LIBS=$ac_check_lib_save_LIBS
4578 fi
4579 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4580 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4581 if test $ac_cv_lib_nsl_main = yes; then
4582   cat >>confdefs.h <<_ACEOF
4583 #define HAVE_LIBNSL 1
4584 _ACEOF
4585
4586   LIBS="-lnsl $LIBS"
4587
4588 fi
4589
4590
4591 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4592 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4593 if test "${ac_cv_lib_socket_main+set}" = set; then
4594   echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596   ac_check_lib_save_LIBS=$LIBS
4597 LIBS="-lsocket  $LIBS"
4598 cat >conftest.$ac_ext <<_ACEOF
4599 #line $LINENO "configure"
4600 #include "confdefs.h"
4601
4602
4603 #ifdef F77_DUMMY_MAIN
4604 #  ifdef __cplusplus
4605      extern "C"
4606 #  endif
4607    int F77_DUMMY_MAIN() { return 1; }
4608 #endif
4609 int
4610 main ()
4611 {
4612 main ();
4613   ;
4614   return 0;
4615 }
4616 _ACEOF
4617 rm -f conftest.$ac_objext conftest$ac_exeext
4618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4619   (eval $ac_link) 2>&5
4620   ac_status=$?
4621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622   (exit $ac_status); } &&
4623          { ac_try='test -s conftest$ac_exeext'
4624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625   (eval $ac_try) 2>&5
4626   ac_status=$?
4627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628   (exit $ac_status); }; }; then
4629   ac_cv_lib_socket_main=yes
4630 else
4631   echo "$as_me: failed program was:" >&5
4632 cat conftest.$ac_ext >&5
4633 ac_cv_lib_socket_main=no
4634 fi
4635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4636 LIBS=$ac_check_lib_save_LIBS
4637 fi
4638 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4639 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4640 if test $ac_cv_lib_socket_main = yes; then
4641   cat >>confdefs.h <<_ACEOF
4642 #define HAVE_LIBSOCKET 1
4643 _ACEOF
4644
4645   LIBS="-lsocket $LIBS"
4646
4647 fi
4648
4649
4650 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4651 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4652 if test "${ac_cv_lib_ipc_main+set}" = set; then
4653   echo $ECHO_N "(cached) $ECHO_C" >&6
4654 else
4655   ac_check_lib_save_LIBS=$LIBS
4656 LIBS="-lipc  $LIBS"
4657 cat >conftest.$ac_ext <<_ACEOF
4658 #line $LINENO "configure"
4659 #include "confdefs.h"
4660
4661
4662 #ifdef F77_DUMMY_MAIN
4663 #  ifdef __cplusplus
4664      extern "C"
4665 #  endif
4666    int F77_DUMMY_MAIN() { return 1; }
4667 #endif
4668 int
4669 main ()
4670 {
4671 main ();
4672   ;
4673   return 0;
4674 }
4675 _ACEOF
4676 rm -f conftest.$ac_objext conftest$ac_exeext
4677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4678   (eval $ac_link) 2>&5
4679   ac_status=$?
4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); } &&
4682          { ac_try='test -s conftest$ac_exeext'
4683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684   (eval $ac_try) 2>&5
4685   ac_status=$?
4686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687   (exit $ac_status); }; }; then
4688   ac_cv_lib_ipc_main=yes
4689 else
4690   echo "$as_me: failed program was:" >&5
4691 cat conftest.$ac_ext >&5
4692 ac_cv_lib_ipc_main=no
4693 fi
4694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4695 LIBS=$ac_check_lib_save_LIBS
4696 fi
4697 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4698 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4699 if test $ac_cv_lib_ipc_main = yes; then
4700   cat >>confdefs.h <<_ACEOF
4701 #define HAVE_LIBIPC 1
4702 _ACEOF
4703
4704   LIBS="-lipc $LIBS"
4705
4706 fi
4707
4708
4709 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4710 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4711 if test "${ac_cv_lib_IPC_main+set}" = set; then
4712   echo $ECHO_N "(cached) $ECHO_C" >&6
4713 else
4714   ac_check_lib_save_LIBS=$LIBS
4715 LIBS="-lIPC  $LIBS"
4716 cat >conftest.$ac_ext <<_ACEOF
4717 #line $LINENO "configure"
4718 #include "confdefs.h"
4719
4720
4721 #ifdef F77_DUMMY_MAIN
4722 #  ifdef __cplusplus
4723      extern "C"
4724 #  endif
4725    int F77_DUMMY_MAIN() { return 1; }
4726 #endif
4727 int
4728 main ()
4729 {
4730 main ();
4731   ;
4732   return 0;
4733 }
4734 _ACEOF
4735 rm -f conftest.$ac_objext conftest$ac_exeext
4736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4737   (eval $ac_link) 2>&5
4738   ac_status=$?
4739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740   (exit $ac_status); } &&
4741          { ac_try='test -s conftest$ac_exeext'
4742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743   (eval $ac_try) 2>&5
4744   ac_status=$?
4745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746   (exit $ac_status); }; }; then
4747   ac_cv_lib_IPC_main=yes
4748 else
4749   echo "$as_me: failed program was:" >&5
4750 cat conftest.$ac_ext >&5
4751 ac_cv_lib_IPC_main=no
4752 fi
4753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4754 LIBS=$ac_check_lib_save_LIBS
4755 fi
4756 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4757 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4758 if test $ac_cv_lib_IPC_main = yes; then
4759   cat >>confdefs.h <<_ACEOF
4760 #define HAVE_LIBIPC 1
4761 _ACEOF
4762
4763   LIBS="-lIPC $LIBS"
4764
4765 fi
4766
4767
4768 echo "$as_me:$LINENO: checking for main in -llc" >&5
4769 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4770 if test "${ac_cv_lib_lc_main+set}" = set; then
4771   echo $ECHO_N "(cached) $ECHO_C" >&6
4772 else
4773   ac_check_lib_save_LIBS=$LIBS
4774 LIBS="-llc  $LIBS"
4775 cat >conftest.$ac_ext <<_ACEOF
4776 #line $LINENO "configure"
4777 #include "confdefs.h"
4778
4779
4780 #ifdef F77_DUMMY_MAIN
4781 #  ifdef __cplusplus
4782      extern "C"
4783 #  endif
4784    int F77_DUMMY_MAIN() { return 1; }
4785 #endif
4786 int
4787 main ()
4788 {
4789 main ();
4790   ;
4791   return 0;
4792 }
4793 _ACEOF
4794 rm -f conftest.$ac_objext conftest$ac_exeext
4795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4796   (eval $ac_link) 2>&5
4797   ac_status=$?
4798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799   (exit $ac_status); } &&
4800          { ac_try='test -s conftest$ac_exeext'
4801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802   (eval $ac_try) 2>&5
4803   ac_status=$?
4804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805   (exit $ac_status); }; }; then
4806   ac_cv_lib_lc_main=yes
4807 else
4808   echo "$as_me: failed program was:" >&5
4809 cat conftest.$ac_ext >&5
4810 ac_cv_lib_lc_main=no
4811 fi
4812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4813 LIBS=$ac_check_lib_save_LIBS
4814 fi
4815 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4816 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4817 if test $ac_cv_lib_lc_main = yes; then
4818   cat >>confdefs.h <<_ACEOF
4819 #define HAVE_LIBLC 1
4820 _ACEOF
4821
4822   LIBS="-llc $LIBS"
4823
4824 fi
4825
4826
4827 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4828 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4829 if test "${ac_cv_lib_dld_main+set}" = set; then
4830   echo $ECHO_N "(cached) $ECHO_C" >&6
4831 else
4832   ac_check_lib_save_LIBS=$LIBS
4833 LIBS="-ldld  $LIBS"
4834 cat >conftest.$ac_ext <<_ACEOF
4835 #line $LINENO "configure"
4836 #include "confdefs.h"
4837
4838
4839 #ifdef F77_DUMMY_MAIN
4840 #  ifdef __cplusplus
4841      extern "C"
4842 #  endif
4843    int F77_DUMMY_MAIN() { return 1; }
4844 #endif
4845 int
4846 main ()
4847 {
4848 main ();
4849   ;
4850   return 0;
4851 }
4852 _ACEOF
4853 rm -f conftest.$ac_objext conftest$ac_exeext
4854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4855   (eval $ac_link) 2>&5
4856   ac_status=$?
4857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858   (exit $ac_status); } &&
4859          { ac_try='test -s conftest$ac_exeext'
4860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861   (eval $ac_try) 2>&5
4862   ac_status=$?
4863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864   (exit $ac_status); }; }; then
4865   ac_cv_lib_dld_main=yes
4866 else
4867   echo "$as_me: failed program was:" >&5
4868 cat conftest.$ac_ext >&5
4869 ac_cv_lib_dld_main=no
4870 fi
4871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4872 LIBS=$ac_check_lib_save_LIBS
4873 fi
4874 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4875 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4876 if test $ac_cv_lib_dld_main = yes; then
4877   cat >>confdefs.h <<_ACEOF
4878 #define HAVE_LIBDLD 1
4879 _ACEOF
4880
4881   LIBS="-ldld $LIBS"
4882
4883 fi
4884
4885
4886 echo "$as_me:$LINENO: checking for main in -lld" >&5
4887 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4888 if test "${ac_cv_lib_ld_main+set}" = set; then
4889   echo $ECHO_N "(cached) $ECHO_C" >&6
4890 else
4891   ac_check_lib_save_LIBS=$LIBS
4892 LIBS="-lld  $LIBS"
4893 cat >conftest.$ac_ext <<_ACEOF
4894 #line $LINENO "configure"
4895 #include "confdefs.h"
4896
4897
4898 #ifdef F77_DUMMY_MAIN
4899 #  ifdef __cplusplus
4900      extern "C"
4901 #  endif
4902    int F77_DUMMY_MAIN() { return 1; }
4903 #endif
4904 int
4905 main ()
4906 {
4907 main ();
4908   ;
4909   return 0;
4910 }
4911 _ACEOF
4912 rm -f conftest.$ac_objext conftest$ac_exeext
4913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4914   (eval $ac_link) 2>&5
4915   ac_status=$?
4916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917   (exit $ac_status); } &&
4918          { ac_try='test -s conftest$ac_exeext'
4919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920   (eval $ac_try) 2>&5
4921   ac_status=$?
4922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923   (exit $ac_status); }; }; then
4924   ac_cv_lib_ld_main=yes
4925 else
4926   echo "$as_me: failed program was:" >&5
4927 cat conftest.$ac_ext >&5
4928 ac_cv_lib_ld_main=no
4929 fi
4930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4931 LIBS=$ac_check_lib_save_LIBS
4932 fi
4933 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
4934 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
4935 if test $ac_cv_lib_ld_main = yes; then
4936   cat >>confdefs.h <<_ACEOF
4937 #define HAVE_LIBLD 1
4938 _ACEOF
4939
4940   LIBS="-lld $LIBS"
4941
4942 fi
4943
4944
4945 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
4946 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
4947 if test "${ac_cv_lib_compat_main+set}" = set; then
4948   echo $ECHO_N "(cached) $ECHO_C" >&6
4949 else
4950   ac_check_lib_save_LIBS=$LIBS
4951 LIBS="-lcompat  $LIBS"
4952 cat >conftest.$ac_ext <<_ACEOF
4953 #line $LINENO "configure"
4954 #include "confdefs.h"
4955
4956
4957 #ifdef F77_DUMMY_MAIN
4958 #  ifdef __cplusplus
4959      extern "C"
4960 #  endif
4961    int F77_DUMMY_MAIN() { return 1; }
4962 #endif
4963 int
4964 main ()
4965 {
4966 main ();
4967   ;
4968   return 0;
4969 }
4970 _ACEOF
4971 rm -f conftest.$ac_objext conftest$ac_exeext
4972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4973   (eval $ac_link) 2>&5
4974   ac_status=$?
4975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976   (exit $ac_status); } &&
4977          { ac_try='test -s conftest$ac_exeext'
4978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979   (eval $ac_try) 2>&5
4980   ac_status=$?
4981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982   (exit $ac_status); }; }; then
4983   ac_cv_lib_compat_main=yes
4984 else
4985   echo "$as_me: failed program was:" >&5
4986 cat conftest.$ac_ext >&5
4987 ac_cv_lib_compat_main=no
4988 fi
4989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4990 LIBS=$ac_check_lib_save_LIBS
4991 fi
4992 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
4993 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
4994 if test $ac_cv_lib_compat_main = yes; then
4995   cat >>confdefs.h <<_ACEOF
4996 #define HAVE_LIBCOMPAT 1
4997 _ACEOF
4998
4999   LIBS="-lcompat $LIBS"
5000
5001 fi
5002
5003
5004 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5005 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5006 if test "${ac_cv_lib_BSD_main+set}" = set; then
5007   echo $ECHO_N "(cached) $ECHO_C" >&6
5008 else
5009   ac_check_lib_save_LIBS=$LIBS
5010 LIBS="-lBSD  $LIBS"
5011 cat >conftest.$ac_ext <<_ACEOF
5012 #line $LINENO "configure"
5013 #include "confdefs.h"
5014
5015
5016 #ifdef F77_DUMMY_MAIN
5017 #  ifdef __cplusplus
5018      extern "C"
5019 #  endif
5020    int F77_DUMMY_MAIN() { return 1; }
5021 #endif
5022 int
5023 main ()
5024 {
5025 main ();
5026   ;
5027   return 0;
5028 }
5029 _ACEOF
5030 rm -f conftest.$ac_objext conftest$ac_exeext
5031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5032   (eval $ac_link) 2>&5
5033   ac_status=$?
5034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035   (exit $ac_status); } &&
5036          { ac_try='test -s conftest$ac_exeext'
5037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038   (eval $ac_try) 2>&5
5039   ac_status=$?
5040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041   (exit $ac_status); }; }; then
5042   ac_cv_lib_BSD_main=yes
5043 else
5044   echo "$as_me: failed program was:" >&5
5045 cat conftest.$ac_ext >&5
5046 ac_cv_lib_BSD_main=no
5047 fi
5048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5049 LIBS=$ac_check_lib_save_LIBS
5050 fi
5051 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5052 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5053 if test $ac_cv_lib_BSD_main = yes; then
5054   cat >>confdefs.h <<_ACEOF
5055 #define HAVE_LIBBSD 1
5056 _ACEOF
5057
5058   LIBS="-lBSD $LIBS"
5059
5060 fi
5061
5062
5063 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5064 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5065 if test "${ac_cv_lib_gen_main+set}" = set; then
5066   echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068   ac_check_lib_save_LIBS=$LIBS
5069 LIBS="-lgen  $LIBS"
5070 cat >conftest.$ac_ext <<_ACEOF
5071 #line $LINENO "configure"
5072 #include "confdefs.h"
5073
5074
5075 #ifdef F77_DUMMY_MAIN
5076 #  ifdef __cplusplus
5077      extern "C"
5078 #  endif
5079    int F77_DUMMY_MAIN() { return 1; }
5080 #endif
5081 int
5082 main ()
5083 {
5084 main ();
5085   ;
5086   return 0;
5087 }
5088 _ACEOF
5089 rm -f conftest.$ac_objext conftest$ac_exeext
5090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5091   (eval $ac_link) 2>&5
5092   ac_status=$?
5093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094   (exit $ac_status); } &&
5095          { ac_try='test -s conftest$ac_exeext'
5096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097   (eval $ac_try) 2>&5
5098   ac_status=$?
5099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100   (exit $ac_status); }; }; then
5101   ac_cv_lib_gen_main=yes
5102 else
5103   echo "$as_me: failed program was:" >&5
5104 cat conftest.$ac_ext >&5
5105 ac_cv_lib_gen_main=no
5106 fi
5107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5108 LIBS=$ac_check_lib_save_LIBS
5109 fi
5110 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5111 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5112 if test $ac_cv_lib_gen_main = yes; then
5113   cat >>confdefs.h <<_ACEOF
5114 #define HAVE_LIBGEN 1
5115 _ACEOF
5116
5117   LIBS="-lgen $LIBS"
5118
5119 fi
5120
5121
5122 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5123 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5124 if test "${ac_cv_lib_PW_main+set}" = set; then
5125   echo $ECHO_N "(cached) $ECHO_C" >&6
5126 else
5127   ac_check_lib_save_LIBS=$LIBS
5128 LIBS="-lPW  $LIBS"
5129 cat >conftest.$ac_ext <<_ACEOF
5130 #line $LINENO "configure"
5131 #include "confdefs.h"
5132
5133
5134 #ifdef F77_DUMMY_MAIN
5135 #  ifdef __cplusplus
5136      extern "C"
5137 #  endif
5138    int F77_DUMMY_MAIN() { return 1; }
5139 #endif
5140 int
5141 main ()
5142 {
5143 main ();
5144   ;
5145   return 0;
5146 }
5147 _ACEOF
5148 rm -f conftest.$ac_objext conftest$ac_exeext
5149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5150   (eval $ac_link) 2>&5
5151   ac_status=$?
5152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153   (exit $ac_status); } &&
5154          { ac_try='test -s conftest$ac_exeext'
5155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5156   (eval $ac_try) 2>&5
5157   ac_status=$?
5158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159   (exit $ac_status); }; }; then
5160   ac_cv_lib_PW_main=yes
5161 else
5162   echo "$as_me: failed program was:" >&5
5163 cat conftest.$ac_ext >&5
5164 ac_cv_lib_PW_main=no
5165 fi
5166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5167 LIBS=$ac_check_lib_save_LIBS
5168 fi
5169 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5170 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5171 if test $ac_cv_lib_PW_main = yes; then
5172   cat >>confdefs.h <<_ACEOF
5173 #define HAVE_LIBPW 1
5174 _ACEOF
5175
5176   LIBS="-lPW $LIBS"
5177
5178 fi
5179
5180
5181 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5182 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5183 if test "${ac_cv_lib_resolv_main+set}" = set; then
5184   echo $ECHO_N "(cached) $ECHO_C" >&6
5185 else
5186   ac_check_lib_save_LIBS=$LIBS
5187 LIBS="-lresolv  $LIBS"
5188 cat >conftest.$ac_ext <<_ACEOF
5189 #line $LINENO "configure"
5190 #include "confdefs.h"
5191
5192
5193 #ifdef F77_DUMMY_MAIN
5194 #  ifdef __cplusplus
5195      extern "C"
5196 #  endif
5197    int F77_DUMMY_MAIN() { return 1; }
5198 #endif
5199 int
5200 main ()
5201 {
5202 main ();
5203   ;
5204   return 0;
5205 }
5206 _ACEOF
5207 rm -f conftest.$ac_objext conftest$ac_exeext
5208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5209   (eval $ac_link) 2>&5
5210   ac_status=$?
5211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212   (exit $ac_status); } &&
5213          { ac_try='test -s conftest$ac_exeext'
5214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5215   (eval $ac_try) 2>&5
5216   ac_status=$?
5217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218   (exit $ac_status); }; }; then
5219   ac_cv_lib_resolv_main=yes
5220 else
5221   echo "$as_me: failed program was:" >&5
5222 cat conftest.$ac_ext >&5
5223 ac_cv_lib_resolv_main=no
5224 fi
5225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5226 LIBS=$ac_check_lib_save_LIBS
5227 fi
5228 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5229 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5230 if test $ac_cv_lib_resolv_main = yes; then
5231   cat >>confdefs.h <<_ACEOF
5232 #define HAVE_LIBRESOLV 1
5233 _ACEOF
5234
5235   LIBS="-lresolv $LIBS"
5236
5237 fi
5238
5239 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5240 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5241 if test "${ac_cv_search_getopt_long+set}" = set; then
5242   echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244   ac_func_search_save_LIBS=$LIBS
5245 ac_cv_search_getopt_long=no
5246 cat >conftest.$ac_ext <<_ACEOF
5247 #line $LINENO "configure"
5248 #include "confdefs.h"
5249
5250 /* Override any gcc2 internal prototype to avoid an error.  */
5251 #ifdef __cplusplus
5252 extern "C"
5253 #endif
5254 /* We use char because int might match the return type of a gcc2
5255    builtin and then its argument prototype would still apply.  */
5256 char getopt_long ();
5257 #ifdef F77_DUMMY_MAIN
5258 #  ifdef __cplusplus
5259      extern "C"
5260 #  endif
5261    int F77_DUMMY_MAIN() { return 1; }
5262 #endif
5263 int
5264 main ()
5265 {
5266 getopt_long ();
5267   ;
5268   return 0;
5269 }
5270 _ACEOF
5271 rm -f conftest.$ac_objext conftest$ac_exeext
5272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5273   (eval $ac_link) 2>&5
5274   ac_status=$?
5275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276   (exit $ac_status); } &&
5277          { ac_try='test -s conftest$ac_exeext'
5278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279   (eval $ac_try) 2>&5
5280   ac_status=$?
5281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282   (exit $ac_status); }; }; then
5283   ac_cv_search_getopt_long="none required"
5284 else
5285   echo "$as_me: failed program was:" >&5
5286 cat conftest.$ac_ext >&5
5287 fi
5288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5289 if test "$ac_cv_search_getopt_long" = no; then
5290   for ac_lib in getopt gnugetopt; do
5291     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5292     cat >conftest.$ac_ext <<_ACEOF
5293 #line $LINENO "configure"
5294 #include "confdefs.h"
5295
5296 /* Override any gcc2 internal prototype to avoid an error.  */
5297 #ifdef __cplusplus
5298 extern "C"
5299 #endif
5300 /* We use char because int might match the return type of a gcc2
5301    builtin and then its argument prototype would still apply.  */
5302 char getopt_long ();
5303 #ifdef F77_DUMMY_MAIN
5304 #  ifdef __cplusplus
5305      extern "C"
5306 #  endif
5307    int F77_DUMMY_MAIN() { return 1; }
5308 #endif
5309 int
5310 main ()
5311 {
5312 getopt_long ();
5313   ;
5314   return 0;
5315 }
5316 _ACEOF
5317 rm -f conftest.$ac_objext conftest$ac_exeext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5319   (eval $ac_link) 2>&5
5320   ac_status=$?
5321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322   (exit $ac_status); } &&
5323          { ac_try='test -s conftest$ac_exeext'
5324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325   (eval $ac_try) 2>&5
5326   ac_status=$?
5327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328   (exit $ac_status); }; }; then
5329   ac_cv_search_getopt_long="-l$ac_lib"
5330 break
5331 else
5332   echo "$as_me: failed program was:" >&5
5333 cat conftest.$ac_ext >&5
5334 fi
5335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5336   done
5337 fi
5338 LIBS=$ac_func_search_save_LIBS
5339 fi
5340 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5341 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5342 if test "$ac_cv_search_getopt_long" != no; then
5343   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5344
5345 fi
5346
5347 # QNX:
5348
5349 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5350 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5351 if test "${ac_cv_lib_unix_main+set}" = set; then
5352   echo $ECHO_N "(cached) $ECHO_C" >&6
5353 else
5354   ac_check_lib_save_LIBS=$LIBS
5355 LIBS="-lunix  $LIBS"
5356 cat >conftest.$ac_ext <<_ACEOF
5357 #line $LINENO "configure"
5358 #include "confdefs.h"
5359
5360
5361 #ifdef F77_DUMMY_MAIN
5362 #  ifdef __cplusplus
5363      extern "C"
5364 #  endif
5365    int F77_DUMMY_MAIN() { return 1; }
5366 #endif
5367 int
5368 main ()
5369 {
5370 main ();
5371   ;
5372   return 0;
5373 }
5374 _ACEOF
5375 rm -f conftest.$ac_objext conftest$ac_exeext
5376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5377   (eval $ac_link) 2>&5
5378   ac_status=$?
5379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380   (exit $ac_status); } &&
5381          { ac_try='test -s conftest$ac_exeext'
5382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383   (eval $ac_try) 2>&5
5384   ac_status=$?
5385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386   (exit $ac_status); }; }; then
5387   ac_cv_lib_unix_main=yes
5388 else
5389   echo "$as_me: failed program was:" >&5
5390 cat conftest.$ac_ext >&5
5391 ac_cv_lib_unix_main=no
5392 fi
5393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5394 LIBS=$ac_check_lib_save_LIBS
5395 fi
5396 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5397 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5398 if test $ac_cv_lib_unix_main = yes; then
5399   cat >>confdefs.h <<_ACEOF
5400 #define HAVE_LIBUNIX 1
5401 _ACEOF
5402
5403   LIBS="-lunix $LIBS"
5404
5405 fi
5406
5407 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5408 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5409 if test "${ac_cv_search_crypt+set}" = set; then
5410   echo $ECHO_N "(cached) $ECHO_C" >&6
5411 else
5412   ac_func_search_save_LIBS=$LIBS
5413 ac_cv_search_crypt=no
5414 cat >conftest.$ac_ext <<_ACEOF
5415 #line $LINENO "configure"
5416 #include "confdefs.h"
5417
5418 /* Override any gcc2 internal prototype to avoid an error.  */
5419 #ifdef __cplusplus
5420 extern "C"
5421 #endif
5422 /* We use char because int might match the return type of a gcc2
5423    builtin and then its argument prototype would still apply.  */
5424 char crypt ();
5425 #ifdef F77_DUMMY_MAIN
5426 #  ifdef __cplusplus
5427      extern "C"
5428 #  endif
5429    int F77_DUMMY_MAIN() { return 1; }
5430 #endif
5431 int
5432 main ()
5433 {
5434 crypt ();
5435   ;
5436   return 0;
5437 }
5438 _ACEOF
5439 rm -f conftest.$ac_objext conftest$ac_exeext
5440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5441   (eval $ac_link) 2>&5
5442   ac_status=$?
5443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444   (exit $ac_status); } &&
5445          { ac_try='test -s conftest$ac_exeext'
5446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447   (eval $ac_try) 2>&5
5448   ac_status=$?
5449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450   (exit $ac_status); }; }; then
5451   ac_cv_search_crypt="none required"
5452 else
5453   echo "$as_me: failed program was:" >&5
5454 cat conftest.$ac_ext >&5
5455 fi
5456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5457 if test "$ac_cv_search_crypt" = no; then
5458   for ac_lib in crypt; do
5459     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5460     cat >conftest.$ac_ext <<_ACEOF
5461 #line $LINENO "configure"
5462 #include "confdefs.h"
5463
5464 /* Override any gcc2 internal prototype to avoid an error.  */
5465 #ifdef __cplusplus
5466 extern "C"
5467 #endif
5468 /* We use char because int might match the return type of a gcc2
5469    builtin and then its argument prototype would still apply.  */
5470 char crypt ();
5471 #ifdef F77_DUMMY_MAIN
5472 #  ifdef __cplusplus
5473      extern "C"
5474 #  endif
5475    int F77_DUMMY_MAIN() { return 1; }
5476 #endif
5477 int
5478 main ()
5479 {
5480 crypt ();
5481   ;
5482   return 0;
5483 }
5484 _ACEOF
5485 rm -f conftest.$ac_objext conftest$ac_exeext
5486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5487   (eval $ac_link) 2>&5
5488   ac_status=$?
5489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490   (exit $ac_status); } &&
5491          { ac_try='test -s conftest$ac_exeext'
5492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493   (eval $ac_try) 2>&5
5494   ac_status=$?
5495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496   (exit $ac_status); }; }; then
5497   ac_cv_search_crypt="-l$ac_lib"
5498 break
5499 else
5500   echo "$as_me: failed program was:" >&5
5501 cat conftest.$ac_ext >&5
5502 fi
5503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5504   done
5505 fi
5506 LIBS=$ac_func_search_save_LIBS
5507 fi
5508 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5509 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5510 if test "$ac_cv_search_crypt" != no; then
5511   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5512
5513 fi
5514
5515 # BeOS:
5516
5517 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5518 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5519 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5520   echo $ECHO_N "(cached) $ECHO_C" >&6
5521 else
5522   ac_check_lib_save_LIBS=$LIBS
5523 LIBS="-lbind  $LIBS"
5524 cat >conftest.$ac_ext <<_ACEOF
5525 #line $LINENO "configure"
5526 #include "confdefs.h"
5527
5528 /* Override any gcc2 internal prototype to avoid an error.  */
5529 #ifdef __cplusplus
5530 extern "C"
5531 #endif
5532 /* We use char because int might match the return type of a gcc2
5533    builtin and then its argument prototype would still apply.  */
5534 char __inet_ntoa ();
5535 #ifdef F77_DUMMY_MAIN
5536 #  ifdef __cplusplus
5537      extern "C"
5538 #  endif
5539    int F77_DUMMY_MAIN() { return 1; }
5540 #endif
5541 int
5542 main ()
5543 {
5544 __inet_ntoa ();
5545   ;
5546   return 0;
5547 }
5548 _ACEOF
5549 rm -f conftest.$ac_objext conftest$ac_exeext
5550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5551   (eval $ac_link) 2>&5
5552   ac_status=$?
5553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554   (exit $ac_status); } &&
5555          { ac_try='test -s conftest$ac_exeext'
5556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557   (eval $ac_try) 2>&5
5558   ac_status=$?
5559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560   (exit $ac_status); }; }; then
5561   ac_cv_lib_bind___inet_ntoa=yes
5562 else
5563   echo "$as_me: failed program was:" >&5
5564 cat conftest.$ac_ext >&5
5565 ac_cv_lib_bind___inet_ntoa=no
5566 fi
5567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5568 LIBS=$ac_check_lib_save_LIBS
5569 fi
5570 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5571 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5572 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5573   cat >>confdefs.h <<_ACEOF
5574 #define HAVE_LIBBIND 1
5575 _ACEOF
5576
5577   LIBS="-lbind $LIBS"
5578
5579 fi
5580
5581 # Solaris:
5582 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5583 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5584 if test "${ac_cv_search_fdatasync+set}" = set; then
5585   echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587   ac_func_search_save_LIBS=$LIBS
5588 ac_cv_search_fdatasync=no
5589 cat >conftest.$ac_ext <<_ACEOF
5590 #line $LINENO "configure"
5591 #include "confdefs.h"
5592
5593 /* Override any gcc2 internal prototype to avoid an error.  */
5594 #ifdef __cplusplus
5595 extern "C"
5596 #endif
5597 /* We use char because int might match the return type of a gcc2
5598    builtin and then its argument prototype would still apply.  */
5599 char fdatasync ();
5600 #ifdef F77_DUMMY_MAIN
5601 #  ifdef __cplusplus
5602      extern "C"
5603 #  endif
5604    int F77_DUMMY_MAIN() { return 1; }
5605 #endif
5606 int
5607 main ()
5608 {
5609 fdatasync ();
5610   ;
5611   return 0;
5612 }
5613 _ACEOF
5614 rm -f conftest.$ac_objext conftest$ac_exeext
5615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5616   (eval $ac_link) 2>&5
5617   ac_status=$?
5618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619   (exit $ac_status); } &&
5620          { ac_try='test -s conftest$ac_exeext'
5621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622   (eval $ac_try) 2>&5
5623   ac_status=$?
5624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625   (exit $ac_status); }; }; then
5626   ac_cv_search_fdatasync="none required"
5627 else
5628   echo "$as_me: failed program was:" >&5
5629 cat conftest.$ac_ext >&5
5630 fi
5631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5632 if test "$ac_cv_search_fdatasync" = no; then
5633   for ac_lib in rt posix4; do
5634     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5635     cat >conftest.$ac_ext <<_ACEOF
5636 #line $LINENO "configure"
5637 #include "confdefs.h"
5638
5639 /* Override any gcc2 internal prototype to avoid an error.  */
5640 #ifdef __cplusplus
5641 extern "C"
5642 #endif
5643 /* We use char because int might match the return type of a gcc2
5644    builtin and then its argument prototype would still apply.  */
5645 char fdatasync ();
5646 #ifdef F77_DUMMY_MAIN
5647 #  ifdef __cplusplus
5648      extern "C"
5649 #  endif
5650    int F77_DUMMY_MAIN() { return 1; }
5651 #endif
5652 int
5653 main ()
5654 {
5655 fdatasync ();
5656   ;
5657   return 0;
5658 }
5659 _ACEOF
5660 rm -f conftest.$ac_objext conftest$ac_exeext
5661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5662   (eval $ac_link) 2>&5
5663   ac_status=$?
5664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665   (exit $ac_status); } &&
5666          { ac_try='test -s conftest$ac_exeext'
5667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668   (eval $ac_try) 2>&5
5669   ac_status=$?
5670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671   (exit $ac_status); }; }; then
5672   ac_cv_search_fdatasync="-l$ac_lib"
5673 break
5674 else
5675   echo "$as_me: failed program was:" >&5
5676 cat conftest.$ac_ext >&5
5677 fi
5678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5679   done
5680 fi
5681 LIBS=$ac_func_search_save_LIBS
5682 fi
5683 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5684 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5685 if test "$ac_cv_search_fdatasync" != no; then
5686   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5687
5688 fi
5689
5690 # Cygwin:
5691
5692 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5693 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5694 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5695   echo $ECHO_N "(cached) $ECHO_C" >&6
5696 else
5697   ac_check_lib_save_LIBS=$LIBS
5698 LIBS="-lcygipc  $LIBS"
5699 cat >conftest.$ac_ext <<_ACEOF
5700 #line $LINENO "configure"
5701 #include "confdefs.h"
5702
5703 /* Override any gcc2 internal prototype to avoid an error.  */
5704 #ifdef __cplusplus
5705 extern "C"
5706 #endif
5707 /* We use char because int might match the return type of a gcc2
5708    builtin and then its argument prototype would still apply.  */
5709 char shmget ();
5710 #ifdef F77_DUMMY_MAIN
5711 #  ifdef __cplusplus
5712      extern "C"
5713 #  endif
5714    int F77_DUMMY_MAIN() { return 1; }
5715 #endif
5716 int
5717 main ()
5718 {
5719 shmget ();
5720   ;
5721   return 0;
5722 }
5723 _ACEOF
5724 rm -f conftest.$ac_objext conftest$ac_exeext
5725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5726   (eval $ac_link) 2>&5
5727   ac_status=$?
5728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729   (exit $ac_status); } &&
5730          { ac_try='test -s conftest$ac_exeext'
5731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732   (eval $ac_try) 2>&5
5733   ac_status=$?
5734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735   (exit $ac_status); }; }; then
5736   ac_cv_lib_cygipc_shmget=yes
5737 else
5738   echo "$as_me: failed program was:" >&5
5739 cat conftest.$ac_ext >&5
5740 ac_cv_lib_cygipc_shmget=no
5741 fi
5742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5743 LIBS=$ac_check_lib_save_LIBS
5744 fi
5745 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5746 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5747 if test $ac_cv_lib_cygipc_shmget = yes; then
5748   cat >>confdefs.h <<_ACEOF
5749 #define HAVE_LIBCYGIPC 1
5750 _ACEOF
5751
5752   LIBS="-lcygipc $LIBS"
5753
5754 fi
5755
5756
5757 if test "$with_readline" = yes; then
5758
5759 echo "$as_me:$LINENO: checking for readline" >&5
5760 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5761
5762 if test "${pgac_cv_check_readline+set}" = set; then
5763   echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765   pgac_cv_check_readline=no
5766 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5767   for pgac_rllib in -lreadline -ledit ; do
5768     pgac_save_LIBS=$LIBS
5769     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5770     cat >conftest.$ac_ext <<_ACEOF
5771 #line $LINENO "configure"
5772 #include "confdefs.h"
5773
5774 /* Override any gcc2 internal prototype to avoid an error.  */
5775 #ifdef __cplusplus
5776 extern "C"
5777 #endif
5778 /* We use char because int might match the return type of a gcc2
5779    builtin and then its argument prototype would still apply.  */
5780 char readline ();
5781 #ifdef F77_DUMMY_MAIN
5782 #  ifdef __cplusplus
5783      extern "C"
5784 #  endif
5785    int F77_DUMMY_MAIN() { return 1; }
5786 #endif
5787 int
5788 main ()
5789 {
5790 readline ();
5791   ;
5792   return 0;
5793 }
5794 _ACEOF
5795 rm -f conftest.$ac_objext conftest$ac_exeext
5796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5797   (eval $ac_link) 2>&5
5798   ac_status=$?
5799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800   (exit $ac_status); } &&
5801          { ac_try='test -s conftest$ac_exeext'
5802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5803   (eval $ac_try) 2>&5
5804   ac_status=$?
5805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806   (exit $ac_status); }; }; then
5807
5808       # NetBSD and OpenBSD have a broken linker that does not
5809       # recognize dependent libraries
5810       case $host_os in netbsd* | openbsd* )
5811         case $pgac_lib in
5812           *curses*) ;;
5813           *) pgac_lib=" -lcurses" ;;
5814         esac
5815       esac
5816
5817       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5818       break 2
5819
5820 else
5821   echo "$as_me: failed program was:" >&5
5822 cat conftest.$ac_ext >&5
5823 fi
5824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5825     LIBS=$pgac_save_LIBS
5826   done
5827 done
5828 LIBS=$pgac_save_LIBS
5829
5830 fi
5831
5832 if test "$pgac_cv_check_readline" != no ; then
5833
5834 cat >>confdefs.h <<\_ACEOF
5835 #define HAVE_LIBREADLINE 1
5836 _ACEOF
5837
5838   LIBS="$pgac_cv_check_readline $LIBS"
5839   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5840 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5841 else
5842   echo "$as_me:$LINENO: result: no" >&5
5843 echo "${ECHO_T}no" >&6
5844 fi
5845   if test x"$pgac_cv_check_readline" = x"no"; then
5846     { { echo "$as_me:$LINENO: error: readline library not found
5847 If you have readline already installed, see config.log for details on the
5848 failure.  It is possible the compiler isn't looking in the proper directory.
5849 Use --without-readline to disable readline support." >&5
5850 echo "$as_me: error: readline library not found
5851 If you have readline already installed, see config.log for details on the
5852 failure.  It is possible the compiler isn't looking in the proper directory.
5853 Use --without-readline to disable readline support." >&2;}
5854    { (exit 1); exit 1; }; }
5855   fi
5856 fi
5857
5858 if test "$with_zlib" = yes; then
5859
5860 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5861 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5862 if test "${ac_cv_lib_z_inflate+set}" = set; then
5863   echo $ECHO_N "(cached) $ECHO_C" >&6
5864 else
5865   ac_check_lib_save_LIBS=$LIBS
5866 LIBS="-lz  $LIBS"
5867 cat >conftest.$ac_ext <<_ACEOF
5868 #line $LINENO "configure"
5869 #include "confdefs.h"
5870
5871 /* Override any gcc2 internal prototype to avoid an error.  */
5872 #ifdef __cplusplus
5873 extern "C"
5874 #endif
5875 /* We use char because int might match the return type of a gcc2
5876    builtin and then its argument prototype would still apply.  */
5877 char inflate ();
5878 #ifdef F77_DUMMY_MAIN
5879 #  ifdef __cplusplus
5880      extern "C"
5881 #  endif
5882    int F77_DUMMY_MAIN() { return 1; }
5883 #endif
5884 int
5885 main ()
5886 {
5887 inflate ();
5888   ;
5889   return 0;
5890 }
5891 _ACEOF
5892 rm -f conftest.$ac_objext conftest$ac_exeext
5893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5894   (eval $ac_link) 2>&5
5895   ac_status=$?
5896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897   (exit $ac_status); } &&
5898          { ac_try='test -s conftest$ac_exeext'
5899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900   (eval $ac_try) 2>&5
5901   ac_status=$?
5902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903   (exit $ac_status); }; }; then
5904   ac_cv_lib_z_inflate=yes
5905 else
5906   echo "$as_me: failed program was:" >&5
5907 cat conftest.$ac_ext >&5
5908 ac_cv_lib_z_inflate=no
5909 fi
5910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5911 LIBS=$ac_check_lib_save_LIBS
5912 fi
5913 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
5914 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
5915 if test $ac_cv_lib_z_inflate = yes; then
5916   cat >>confdefs.h <<_ACEOF
5917 #define HAVE_LIBZ 1
5918 _ACEOF
5919
5920   LIBS="-lz $LIBS"
5921
5922 else
5923   { { echo "$as_me:$LINENO: error: zlib library not found
5924 If you have zlib already installed, see config.log for details on the
5925 failure.  It is possible the compiler isn't looking in the proper directory.
5926 Use --without-zlib to disable zlib support." >&5
5927 echo "$as_me: error: zlib library not found
5928 If you have zlib already installed, see config.log for details on the
5929 failure.  It is possible the compiler isn't looking in the proper directory.
5930 Use --without-zlib to disable zlib support." >&2;}
5931    { (exit 1); exit 1; }; }
5932 fi
5933
5934 fi
5935
5936 if test "$with_krb4" = yes ; then
5937
5938 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
5939 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
5940 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
5941   echo $ECHO_N "(cached) $ECHO_C" >&6
5942 else
5943   ac_check_lib_save_LIBS=$LIBS
5944 LIBS="-ldes  $LIBS"
5945 cat >conftest.$ac_ext <<_ACEOF
5946 #line $LINENO "configure"
5947 #include "confdefs.h"
5948
5949 /* Override any gcc2 internal prototype to avoid an error.  */
5950 #ifdef __cplusplus
5951 extern "C"
5952 #endif
5953 /* We use char because int might match the return type of a gcc2
5954    builtin and then its argument prototype would still apply.  */
5955 char des_encrypt ();
5956 #ifdef F77_DUMMY_MAIN
5957 #  ifdef __cplusplus
5958      extern "C"
5959 #  endif
5960    int F77_DUMMY_MAIN() { return 1; }
5961 #endif
5962 int
5963 main ()
5964 {
5965 des_encrypt ();
5966   ;
5967   return 0;
5968 }
5969 _ACEOF
5970 rm -f conftest.$ac_objext conftest$ac_exeext
5971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5972   (eval $ac_link) 2>&5
5973   ac_status=$?
5974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975   (exit $ac_status); } &&
5976          { ac_try='test -s conftest$ac_exeext'
5977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5978   (eval $ac_try) 2>&5
5979   ac_status=$?
5980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981   (exit $ac_status); }; }; then
5982   ac_cv_lib_des_des_encrypt=yes
5983 else
5984   echo "$as_me: failed program was:" >&5
5985 cat conftest.$ac_ext >&5
5986 ac_cv_lib_des_des_encrypt=no
5987 fi
5988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5989 LIBS=$ac_check_lib_save_LIBS
5990 fi
5991 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
5992 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
5993 if test $ac_cv_lib_des_des_encrypt = yes; then
5994   cat >>confdefs.h <<_ACEOF
5995 #define HAVE_LIBDES 1
5996 _ACEOF
5997
5998   LIBS="-ldes $LIBS"
5999
6000 else
6001   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6002 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6003    { (exit 1); exit 1; }; }
6004 fi
6005
6006
6007 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6008 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6009 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6010   echo $ECHO_N "(cached) $ECHO_C" >&6
6011 else
6012   ac_check_lib_save_LIBS=$LIBS
6013 LIBS="-lkrb  $LIBS"
6014 cat >conftest.$ac_ext <<_ACEOF
6015 #line $LINENO "configure"
6016 #include "confdefs.h"
6017
6018 /* Override any gcc2 internal prototype to avoid an error.  */
6019 #ifdef __cplusplus
6020 extern "C"
6021 #endif
6022 /* We use char because int might match the return type of a gcc2
6023    builtin and then its argument prototype would still apply.  */
6024 char krb_sendauth ();
6025 #ifdef F77_DUMMY_MAIN
6026 #  ifdef __cplusplus
6027      extern "C"
6028 #  endif
6029    int F77_DUMMY_MAIN() { return 1; }
6030 #endif
6031 int
6032 main ()
6033 {
6034 krb_sendauth ();
6035   ;
6036   return 0;
6037 }
6038 _ACEOF
6039 rm -f conftest.$ac_objext conftest$ac_exeext
6040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6041   (eval $ac_link) 2>&5
6042   ac_status=$?
6043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044   (exit $ac_status); } &&
6045          { ac_try='test -s conftest$ac_exeext'
6046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047   (eval $ac_try) 2>&5
6048   ac_status=$?
6049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050   (exit $ac_status); }; }; then
6051   ac_cv_lib_krb_krb_sendauth=yes
6052 else
6053   echo "$as_me: failed program was:" >&5
6054 cat conftest.$ac_ext >&5
6055 ac_cv_lib_krb_krb_sendauth=no
6056 fi
6057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6058 LIBS=$ac_check_lib_save_LIBS
6059 fi
6060 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6061 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6062 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6063   cat >>confdefs.h <<_ACEOF
6064 #define HAVE_LIBKRB 1
6065 _ACEOF
6066
6067   LIBS="-lkrb $LIBS"
6068
6069 else
6070   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6071 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6072    { (exit 1); exit 1; }; }
6073 fi
6074
6075 fi
6076
6077 if test "$with_krb5" = yes ; then
6078   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6079 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6080 if test "${ac_cv_search_com_err+set}" = set; then
6081   echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083   ac_func_search_save_LIBS=$LIBS
6084 ac_cv_search_com_err=no
6085 cat >conftest.$ac_ext <<_ACEOF
6086 #line $LINENO "configure"
6087 #include "confdefs.h"
6088
6089 /* Override any gcc2 internal prototype to avoid an error.  */
6090 #ifdef __cplusplus
6091 extern "C"
6092 #endif
6093 /* We use char because int might match the return type of a gcc2
6094    builtin and then its argument prototype would still apply.  */
6095 char com_err ();
6096 #ifdef F77_DUMMY_MAIN
6097 #  ifdef __cplusplus
6098      extern "C"
6099 #  endif
6100    int F77_DUMMY_MAIN() { return 1; }
6101 #endif
6102 int
6103 main ()
6104 {
6105 com_err ();
6106   ;
6107   return 0;
6108 }
6109 _ACEOF
6110 rm -f conftest.$ac_objext conftest$ac_exeext
6111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6112   (eval $ac_link) 2>&5
6113   ac_status=$?
6114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115   (exit $ac_status); } &&
6116          { ac_try='test -s conftest$ac_exeext'
6117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118   (eval $ac_try) 2>&5
6119   ac_status=$?
6120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121   (exit $ac_status); }; }; then
6122   ac_cv_search_com_err="none required"
6123 else
6124   echo "$as_me: failed program was:" >&5
6125 cat conftest.$ac_ext >&5
6126 fi
6127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6128 if test "$ac_cv_search_com_err" = no; then
6129   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6130     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6131     cat >conftest.$ac_ext <<_ACEOF
6132 #line $LINENO "configure"
6133 #include "confdefs.h"
6134
6135 /* Override any gcc2 internal prototype to avoid an error.  */
6136 #ifdef __cplusplus
6137 extern "C"
6138 #endif
6139 /* We use char because int might match the return type of a gcc2
6140    builtin and then its argument prototype would still apply.  */
6141 char com_err ();
6142 #ifdef F77_DUMMY_MAIN
6143 #  ifdef __cplusplus
6144      extern "C"
6145 #  endif
6146    int F77_DUMMY_MAIN() { return 1; }
6147 #endif
6148 int
6149 main ()
6150 {
6151 com_err ();
6152   ;
6153   return 0;
6154 }
6155 _ACEOF
6156 rm -f conftest.$ac_objext conftest$ac_exeext
6157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6158   (eval $ac_link) 2>&5
6159   ac_status=$?
6160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161   (exit $ac_status); } &&
6162          { ac_try='test -s conftest$ac_exeext'
6163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164   (eval $ac_try) 2>&5
6165   ac_status=$?
6166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167   (exit $ac_status); }; }; then
6168   ac_cv_search_com_err="-l$ac_lib"
6169 break
6170 else
6171   echo "$as_me: failed program was:" >&5
6172 cat conftest.$ac_ext >&5
6173 fi
6174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6175   done
6176 fi
6177 LIBS=$ac_func_search_save_LIBS
6178 fi
6179 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6180 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6181 if test "$ac_cv_search_com_err" != no; then
6182   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6183
6184 else
6185   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6186 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6187    { (exit 1); exit 1; }; }
6188 fi
6189
6190   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6191 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6192 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6193   echo $ECHO_N "(cached) $ECHO_C" >&6
6194 else
6195   ac_func_search_save_LIBS=$LIBS
6196 ac_cv_search_krb5_encrypt=no
6197 cat >conftest.$ac_ext <<_ACEOF
6198 #line $LINENO "configure"
6199 #include "confdefs.h"
6200
6201 /* Override any gcc2 internal prototype to avoid an error.  */
6202 #ifdef __cplusplus
6203 extern "C"
6204 #endif
6205 /* We use char because int might match the return type of a gcc2
6206    builtin and then its argument prototype would still apply.  */
6207 char krb5_encrypt ();
6208 #ifdef F77_DUMMY_MAIN
6209 #  ifdef __cplusplus
6210      extern "C"
6211 #  endif
6212    int F77_DUMMY_MAIN() { return 1; }
6213 #endif
6214 int
6215 main ()
6216 {
6217 krb5_encrypt ();
6218   ;
6219   return 0;
6220 }
6221 _ACEOF
6222 rm -f conftest.$ac_objext conftest$ac_exeext
6223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6224   (eval $ac_link) 2>&5
6225   ac_status=$?
6226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227   (exit $ac_status); } &&
6228          { ac_try='test -s conftest$ac_exeext'
6229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230   (eval $ac_try) 2>&5
6231   ac_status=$?
6232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233   (exit $ac_status); }; }; then
6234   ac_cv_search_krb5_encrypt="none required"
6235 else
6236   echo "$as_me: failed program was:" >&5
6237 cat conftest.$ac_ext >&5
6238 fi
6239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6240 if test "$ac_cv_search_krb5_encrypt" = no; then
6241   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6242     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6243     cat >conftest.$ac_ext <<_ACEOF
6244 #line $LINENO "configure"
6245 #include "confdefs.h"
6246
6247 /* Override any gcc2 internal prototype to avoid an error.  */
6248 #ifdef __cplusplus
6249 extern "C"
6250 #endif
6251 /* We use char because int might match the return type of a gcc2
6252    builtin and then its argument prototype would still apply.  */
6253 char krb5_encrypt ();
6254 #ifdef F77_DUMMY_MAIN
6255 #  ifdef __cplusplus
6256      extern "C"
6257 #  endif
6258    int F77_DUMMY_MAIN() { return 1; }
6259 #endif
6260 int
6261 main ()
6262 {
6263 krb5_encrypt ();
6264   ;
6265   return 0;
6266 }
6267 _ACEOF
6268 rm -f conftest.$ac_objext conftest$ac_exeext
6269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6270   (eval $ac_link) 2>&5
6271   ac_status=$?
6272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273   (exit $ac_status); } &&
6274          { ac_try='test -s conftest$ac_exeext'
6275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276   (eval $ac_try) 2>&5
6277   ac_status=$?
6278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279   (exit $ac_status); }; }; then
6280   ac_cv_search_krb5_encrypt="-l$ac_lib"
6281 break
6282 else
6283   echo "$as_me: failed program was:" >&5
6284 cat conftest.$ac_ext >&5
6285 fi
6286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6287   done
6288 fi
6289 LIBS=$ac_func_search_save_LIBS
6290 fi
6291 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6292 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6293 if test "$ac_cv_search_krb5_encrypt" != no; then
6294   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6295
6296 else
6297   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6298 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6299    { (exit 1); exit 1; }; }
6300 fi
6301
6302   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6303 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6304 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6305   echo $ECHO_N "(cached) $ECHO_C" >&6
6306 else
6307   ac_func_search_save_LIBS=$LIBS
6308 ac_cv_search_krb5_sendauth=no
6309 cat >conftest.$ac_ext <<_ACEOF
6310 #line $LINENO "configure"
6311 #include "confdefs.h"
6312
6313 /* Override any gcc2 internal prototype to avoid an error.  */
6314 #ifdef __cplusplus
6315 extern "C"
6316 #endif
6317 /* We use char because int might match the return type of a gcc2
6318    builtin and then its argument prototype would still apply.  */
6319 char krb5_sendauth ();
6320 #ifdef F77_DUMMY_MAIN
6321 #  ifdef __cplusplus
6322      extern "C"
6323 #  endif
6324    int F77_DUMMY_MAIN() { return 1; }
6325 #endif
6326 int
6327 main ()
6328 {
6329 krb5_sendauth ();
6330   ;
6331   return 0;
6332 }
6333 _ACEOF
6334 rm -f conftest.$ac_objext conftest$ac_exeext
6335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6336   (eval $ac_link) 2>&5
6337   ac_status=$?
6338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339   (exit $ac_status); } &&
6340          { ac_try='test -s conftest$ac_exeext'
6341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342   (eval $ac_try) 2>&5
6343   ac_status=$?
6344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345   (exit $ac_status); }; }; then
6346   ac_cv_search_krb5_sendauth="none required"
6347 else
6348   echo "$as_me: failed program was:" >&5
6349 cat conftest.$ac_ext >&5
6350 fi
6351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6352 if test "$ac_cv_search_krb5_sendauth" = no; then
6353   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6354     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6355     cat >conftest.$ac_ext <<_ACEOF
6356 #line $LINENO "configure"
6357 #include "confdefs.h"
6358
6359 /* Override any gcc2 internal prototype to avoid an error.  */
6360 #ifdef __cplusplus
6361 extern "C"
6362 #endif
6363 /* We use char because int might match the return type of a gcc2
6364    builtin and then its argument prototype would still apply.  */
6365 char krb5_sendauth ();
6366 #ifdef F77_DUMMY_MAIN
6367 #  ifdef __cplusplus
6368      extern "C"
6369 #  endif
6370    int F77_DUMMY_MAIN() { return 1; }
6371 #endif
6372 int
6373 main ()
6374 {
6375 krb5_sendauth ();
6376   ;
6377   return 0;
6378 }
6379 _ACEOF
6380 rm -f conftest.$ac_objext conftest$ac_exeext
6381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6382   (eval $ac_link) 2>&5
6383   ac_status=$?
6384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385   (exit $ac_status); } &&
6386          { ac_try='test -s conftest$ac_exeext'
6387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388   (eval $ac_try) 2>&5
6389   ac_status=$?
6390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391   (exit $ac_status); }; }; then
6392   ac_cv_search_krb5_sendauth="-l$ac_lib"
6393 break
6394 else
6395   echo "$as_me: failed program was:" >&5
6396 cat conftest.$ac_ext >&5
6397 fi
6398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6399   done
6400 fi
6401 LIBS=$ac_func_search_save_LIBS
6402 fi
6403 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6404 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6405 if test "$ac_cv_search_krb5_sendauth" != no; then
6406   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6407
6408 else
6409   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6410 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6411    { (exit 1); exit 1; }; }
6412 fi
6413
6414 fi
6415
6416 if test "$with_openssl" = yes ; then
6417
6418 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6419 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6420 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6421   echo $ECHO_N "(cached) $ECHO_C" >&6
6422 else
6423   ac_check_lib_save_LIBS=$LIBS
6424 LIBS="-lcrypto  $LIBS"
6425 cat >conftest.$ac_ext <<_ACEOF
6426 #line $LINENO "configure"
6427 #include "confdefs.h"
6428
6429 /* Override any gcc2 internal prototype to avoid an error.  */
6430 #ifdef __cplusplus
6431 extern "C"
6432 #endif
6433 /* We use char because int might match the return type of a gcc2
6434    builtin and then its argument prototype would still apply.  */
6435 char CRYPTO_new_ex_data ();
6436 #ifdef F77_DUMMY_MAIN
6437 #  ifdef __cplusplus
6438      extern "C"
6439 #  endif
6440    int F77_DUMMY_MAIN() { return 1; }
6441 #endif
6442 int
6443 main ()
6444 {
6445 CRYPTO_new_ex_data ();
6446   ;
6447   return 0;
6448 }
6449 _ACEOF
6450 rm -f conftest.$ac_objext conftest$ac_exeext
6451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6452   (eval $ac_link) 2>&5
6453   ac_status=$?
6454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455   (exit $ac_status); } &&
6456          { ac_try='test -s conftest$ac_exeext'
6457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458   (eval $ac_try) 2>&5
6459   ac_status=$?
6460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461   (exit $ac_status); }; }; then
6462   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6463 else
6464   echo "$as_me: failed program was:" >&5
6465 cat conftest.$ac_ext >&5
6466 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6467 fi
6468 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6469 LIBS=$ac_check_lib_save_LIBS
6470 fi
6471 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6472 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6473 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6474   cat >>confdefs.h <<_ACEOF
6475 #define HAVE_LIBCRYPTO 1
6476 _ACEOF
6477
6478   LIBS="-lcrypto $LIBS"
6479
6480 else
6481   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6482 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6483    { (exit 1); exit 1; }; }
6484 fi
6485
6486
6487 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6488 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6489 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6490   echo $ECHO_N "(cached) $ECHO_C" >&6
6491 else
6492   ac_check_lib_save_LIBS=$LIBS
6493 LIBS="-lssl  $LIBS"
6494 cat >conftest.$ac_ext <<_ACEOF
6495 #line $LINENO "configure"
6496 #include "confdefs.h"
6497
6498 /* Override any gcc2 internal prototype to avoid an error.  */
6499 #ifdef __cplusplus
6500 extern "C"
6501 #endif
6502 /* We use char because int might match the return type of a gcc2
6503    builtin and then its argument prototype would still apply.  */
6504 char SSL_library_init ();
6505 #ifdef F77_DUMMY_MAIN
6506 #  ifdef __cplusplus
6507      extern "C"
6508 #  endif
6509    int F77_DUMMY_MAIN() { return 1; }
6510 #endif
6511 int
6512 main ()
6513 {
6514 SSL_library_init ();
6515   ;
6516   return 0;
6517 }
6518 _ACEOF
6519 rm -f conftest.$ac_objext conftest$ac_exeext
6520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6521   (eval $ac_link) 2>&5
6522   ac_status=$?
6523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524   (exit $ac_status); } &&
6525          { ac_try='test -s conftest$ac_exeext'
6526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527   (eval $ac_try) 2>&5
6528   ac_status=$?
6529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530   (exit $ac_status); }; }; then
6531   ac_cv_lib_ssl_SSL_library_init=yes
6532 else
6533   echo "$as_me: failed program was:" >&5
6534 cat conftest.$ac_ext >&5
6535 ac_cv_lib_ssl_SSL_library_init=no
6536 fi
6537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6538 LIBS=$ac_check_lib_save_LIBS
6539 fi
6540 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6541 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6542 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6543   cat >>confdefs.h <<_ACEOF
6544 #define HAVE_LIBSSL 1
6545 _ACEOF
6546
6547   LIBS="-lssl $LIBS"
6548
6549 else
6550   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6551 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6552    { (exit 1); exit 1; }; }
6553 fi
6554
6555 fi
6556
6557 if test "$with_pam" = yes ; then
6558
6559 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6560 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6561 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6562   echo $ECHO_N "(cached) $ECHO_C" >&6
6563 else
6564   ac_check_lib_save_LIBS=$LIBS
6565 LIBS="-lpam  $LIBS"
6566 cat >conftest.$ac_ext <<_ACEOF
6567 #line $LINENO "configure"
6568 #include "confdefs.h"
6569
6570 /* Override any gcc2 internal prototype to avoid an error.  */
6571 #ifdef __cplusplus
6572 extern "C"
6573 #endif
6574 /* We use char because int might match the return type of a gcc2
6575    builtin and then its argument prototype would still apply.  */
6576 char pam_start ();
6577 #ifdef F77_DUMMY_MAIN
6578 #  ifdef __cplusplus
6579      extern "C"
6580 #  endif
6581    int F77_DUMMY_MAIN() { return 1; }
6582 #endif
6583 int
6584 main ()
6585 {
6586 pam_start ();
6587   ;
6588   return 0;
6589 }
6590 _ACEOF
6591 rm -f conftest.$ac_objext conftest$ac_exeext
6592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6593   (eval $ac_link) 2>&5
6594   ac_status=$?
6595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596   (exit $ac_status); } &&
6597          { ac_try='test -s conftest$ac_exeext'
6598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599   (eval $ac_try) 2>&5
6600   ac_status=$?
6601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602   (exit $ac_status); }; }; then
6603   ac_cv_lib_pam_pam_start=yes
6604 else
6605   echo "$as_me: failed program was:" >&5
6606 cat conftest.$ac_ext >&5
6607 ac_cv_lib_pam_pam_start=no
6608 fi
6609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6610 LIBS=$ac_check_lib_save_LIBS
6611 fi
6612 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6613 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6614 if test $ac_cv_lib_pam_pam_start = yes; then
6615   cat >>confdefs.h <<_ACEOF
6616 #define HAVE_LIBPAM 1
6617 _ACEOF
6618
6619   LIBS="-lpam $LIBS"
6620
6621 else
6622   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6623 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6624    { (exit 1); exit 1; }; }
6625 fi
6626
6627 fi
6628
6629
6630 ##
6631 ## Header files
6632 ##
6633
6634 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6635 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6636 if test "${ac_cv_header_stdc+set}" = set; then
6637   echo $ECHO_N "(cached) $ECHO_C" >&6
6638 else
6639   cat >conftest.$ac_ext <<_ACEOF
6640 #line $LINENO "configure"
6641 #include "confdefs.h"
6642 #include <stdlib.h>
6643 #include <stdarg.h>
6644 #include <string.h>
6645 #include <float.h>
6646
6647 _ACEOF
6648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6649   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6650   ac_status=$?
6651   egrep -v '^ *\+' conftest.er1 >conftest.err
6652   rm -f conftest.er1
6653   cat conftest.err >&5
6654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655   (exit $ac_status); } >/dev/null; then
6656   if test -s conftest.err; then
6657     ac_cpp_err=$ac_c_preproc_warn_flag
6658   else
6659     ac_cpp_err=
6660   fi
6661 else
6662   ac_cpp_err=yes
6663 fi
6664 if test -z "$ac_cpp_err"; then
6665   ac_cv_header_stdc=yes
6666 else
6667   echo "$as_me: failed program was:" >&5
6668   cat conftest.$ac_ext >&5
6669   ac_cv_header_stdc=no
6670 fi
6671 rm -f conftest.err conftest.$ac_ext
6672
6673 if test $ac_cv_header_stdc = yes; then
6674   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6675   cat >conftest.$ac_ext <<_ACEOF
6676 #line $LINENO "configure"
6677 #include "confdefs.h"
6678 #include <string.h>
6679
6680 _ACEOF
6681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6682   egrep "memchr" >/dev/null 2>&1; then
6683   :
6684 else
6685   ac_cv_header_stdc=no
6686 fi
6687 rm -f conftest*
6688
6689 fi
6690
6691 if test $ac_cv_header_stdc = yes; then
6692   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6693   cat >conftest.$ac_ext <<_ACEOF
6694 #line $LINENO "configure"
6695 #include "confdefs.h"
6696 #include <stdlib.h>
6697
6698 _ACEOF
6699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6700   egrep "free" >/dev/null 2>&1; then
6701   :
6702 else
6703   ac_cv_header_stdc=no
6704 fi
6705 rm -f conftest*
6706
6707 fi
6708
6709 if test $ac_cv_header_stdc = yes; then
6710   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6711   if test "$cross_compiling" = yes; then
6712   :
6713 else
6714   cat >conftest.$ac_ext <<_ACEOF
6715 #line $LINENO "configure"
6716 #include "confdefs.h"
6717 #include <ctype.h>
6718 #if ((' ' & 0x0FF) == 0x020)
6719 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6720 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6721 #else
6722 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6723                      || ('j' <= (c) && (c) <= 'r') \
6724                      || ('s' <= (c) && (c) <= 'z'))
6725 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6726 #endif
6727
6728 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6729 int
6730 main ()
6731 {
6732   int i;
6733   for (i = 0; i < 256; i++)
6734     if (XOR (islower (i), ISLOWER (i))
6735         || toupper (i) != TOUPPER (i))
6736       exit(2);
6737   exit (0);
6738 }
6739 _ACEOF
6740 rm -f conftest$ac_exeext
6741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6742   (eval $ac_link) 2>&5
6743   ac_status=$?
6744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747   (eval $ac_try) 2>&5
6748   ac_status=$?
6749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750   (exit $ac_status); }; }; then
6751   :
6752 else
6753   echo "$as_me: program exited with status $ac_status" >&5
6754 echo "$as_me: failed program was:" >&5
6755 cat conftest.$ac_ext >&5
6756 ( exit $ac_status )
6757 ac_cv_header_stdc=no
6758 fi
6759 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6760 fi
6761 fi
6762 fi
6763 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6764 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6765 if test $ac_cv_header_stdc = yes; then
6766
6767 cat >>confdefs.h <<\_ACEOF
6768 #define STDC_HEADERS 1
6769 _ACEOF
6770
6771 fi
6772
6773 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6784                   inttypes.h stdint.h unistd.h
6785 do
6786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6787 echo "$as_me:$LINENO: checking for $ac_header" >&5
6788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6790   echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792   cat >conftest.$ac_ext <<_ACEOF
6793 #line $LINENO "configure"
6794 #include "confdefs.h"
6795 $ac_includes_default
6796
6797 #include <$ac_header>
6798 _ACEOF
6799 rm -f conftest.$ac_objext
6800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6801   (eval $ac_compile) 2>&5
6802   ac_status=$?
6803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804   (exit $ac_status); } &&
6805          { ac_try='test -s conftest.$ac_objext'
6806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807   (eval $ac_try) 2>&5
6808   ac_status=$?
6809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810   (exit $ac_status); }; }; then
6811   eval "$as_ac_Header=yes"
6812 else
6813   echo "$as_me: failed program was:" >&5
6814 cat conftest.$ac_ext >&5
6815 eval "$as_ac_Header=no"
6816 fi
6817 rm -f conftest.$ac_objext conftest.$ac_ext
6818 fi
6819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6822   cat >>confdefs.h <<_ACEOF
6823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6824 _ACEOF
6825
6826 fi
6827
6828 done
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h utime.h kernel/OS.h kernel/image.h SupportDefs.h
6853 do
6854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6856   echo "$as_me:$LINENO: checking for $ac_header" >&5
6857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6859   echo $ECHO_N "(cached) $ECHO_C" >&6
6860 fi
6861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6863 else
6864   # Is the header compilable?
6865 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6867 cat >conftest.$ac_ext <<_ACEOF
6868 #line $LINENO "configure"
6869 #include "confdefs.h"
6870 $ac_includes_default
6871 #include <$ac_header>
6872 _ACEOF
6873 rm -f conftest.$ac_objext
6874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6875   (eval $ac_compile) 2>&5
6876   ac_status=$?
6877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878   (exit $ac_status); } &&
6879          { ac_try='test -s conftest.$ac_objext'
6880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881   (eval $ac_try) 2>&5
6882   ac_status=$?
6883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884   (exit $ac_status); }; }; then
6885   ac_header_compiler=yes
6886 else
6887   echo "$as_me: failed program was:" >&5
6888 cat conftest.$ac_ext >&5
6889 ac_header_compiler=no
6890 fi
6891 rm -f conftest.$ac_objext conftest.$ac_ext
6892 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6893 echo "${ECHO_T}$ac_header_compiler" >&6
6894
6895 # Is the header present?
6896 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6898 cat >conftest.$ac_ext <<_ACEOF
6899 #line $LINENO "configure"
6900 #include "confdefs.h"
6901 #include <$ac_header>
6902 _ACEOF
6903 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6904   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6905   ac_status=$?
6906   egrep -v '^ *\+' conftest.er1 >conftest.err
6907   rm -f conftest.er1
6908   cat conftest.err >&5
6909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910   (exit $ac_status); } >/dev/null; then
6911   if test -s conftest.err; then
6912     ac_cpp_err=$ac_c_preproc_warn_flag
6913   else
6914     ac_cpp_err=
6915   fi
6916 else
6917   ac_cpp_err=yes
6918 fi
6919 if test -z "$ac_cpp_err"; then
6920   ac_header_preproc=yes
6921 else
6922   echo "$as_me: failed program was:" >&5
6923   cat conftest.$ac_ext >&5
6924   ac_header_preproc=no
6925 fi
6926 rm -f conftest.err conftest.$ac_ext
6927 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6928 echo "${ECHO_T}$ac_header_preproc" >&6
6929
6930 # So?  What about this header?
6931 case $ac_header_compiler:$ac_header_preproc in
6932   yes:no )
6933     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6935     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6937   no:yes )
6938     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6940     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6941 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6942     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6944 esac
6945 echo "$as_me:$LINENO: checking for $ac_header" >&5
6946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6948   echo $ECHO_N "(cached) $ECHO_C" >&6
6949 else
6950   eval "$as_ac_Header=$ac_header_preproc"
6951 fi
6952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6954
6955 fi
6956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6957   cat >>confdefs.h <<_ACEOF
6958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6959 _ACEOF
6960
6961 fi
6962
6963 done
6964
6965
6966 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
6967 # netinet/in.h is included first.
6968
6969 for ac_header in netinet/in.h
6970 do
6971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6973   echo "$as_me:$LINENO: checking for $ac_header" >&5
6974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6976   echo $ECHO_N "(cached) $ECHO_C" >&6
6977 fi
6978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6980 else
6981   # Is the header compilable?
6982 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6984 cat >conftest.$ac_ext <<_ACEOF
6985 #line $LINENO "configure"
6986 #include "confdefs.h"
6987 $ac_includes_default
6988 #include <$ac_header>
6989 _ACEOF
6990 rm -f conftest.$ac_objext
6991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6992   (eval $ac_compile) 2>&5
6993   ac_status=$?
6994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995   (exit $ac_status); } &&
6996          { ac_try='test -s conftest.$ac_objext'
6997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998   (eval $ac_try) 2>&5
6999   ac_status=$?
7000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001   (exit $ac_status); }; }; then
7002   ac_header_compiler=yes
7003 else
7004   echo "$as_me: failed program was:" >&5
7005 cat conftest.$ac_ext >&5
7006 ac_header_compiler=no
7007 fi
7008 rm -f conftest.$ac_objext conftest.$ac_ext
7009 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7010 echo "${ECHO_T}$ac_header_compiler" >&6
7011
7012 # Is the header present?
7013 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7015 cat >conftest.$ac_ext <<_ACEOF
7016 #line $LINENO "configure"
7017 #include "confdefs.h"
7018 #include <$ac_header>
7019 _ACEOF
7020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7021   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7022   ac_status=$?
7023   egrep -v '^ *\+' conftest.er1 >conftest.err
7024   rm -f conftest.er1
7025   cat conftest.err >&5
7026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027   (exit $ac_status); } >/dev/null; then
7028   if test -s conftest.err; then
7029     ac_cpp_err=$ac_c_preproc_warn_flag
7030   else
7031     ac_cpp_err=
7032   fi
7033 else
7034   ac_cpp_err=yes
7035 fi
7036 if test -z "$ac_cpp_err"; then
7037   ac_header_preproc=yes
7038 else
7039   echo "$as_me: failed program was:" >&5
7040   cat conftest.$ac_ext >&5
7041   ac_header_preproc=no
7042 fi
7043 rm -f conftest.err conftest.$ac_ext
7044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7045 echo "${ECHO_T}$ac_header_preproc" >&6
7046
7047 # So?  What about this header?
7048 case $ac_header_compiler:$ac_header_preproc in
7049   yes:no )
7050     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7052     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7054   no:yes )
7055     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7056 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7057     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7058 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7059     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7060 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7061 esac
7062 echo "$as_me:$LINENO: checking for $ac_header" >&5
7063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7065   echo $ECHO_N "(cached) $ECHO_C" >&6
7066 else
7067   eval "$as_ac_Header=$ac_header_preproc"
7068 fi
7069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7071
7072 fi
7073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7074   cat >>confdefs.h <<_ACEOF
7075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7076 _ACEOF
7077
7078 fi
7079
7080 done
7081
7082
7083 for ac_header in netinet/tcp.h
7084 do
7085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7086 echo "$as_me:$LINENO: checking for $ac_header" >&5
7087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7089   echo $ECHO_N "(cached) $ECHO_C" >&6
7090 else
7091   cat >conftest.$ac_ext <<_ACEOF
7092 #line $LINENO "configure"
7093 #include "confdefs.h"
7094 $ac_includes_default
7095 #ifdef HAVE_NETINET_IN_H
7096 #include <netinet/in.h>
7097 #endif
7098
7099
7100 #include <$ac_header>
7101 _ACEOF
7102 rm -f conftest.$ac_objext
7103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7104   (eval $ac_compile) 2>&5
7105   ac_status=$?
7106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107   (exit $ac_status); } &&
7108          { ac_try='test -s conftest.$ac_objext'
7109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110   (eval $ac_try) 2>&5
7111   ac_status=$?
7112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113   (exit $ac_status); }; }; then
7114   eval "$as_ac_Header=yes"
7115 else
7116   echo "$as_me: failed program was:" >&5
7117 cat conftest.$ac_ext >&5
7118 eval "$as_ac_Header=no"
7119 fi
7120 rm -f conftest.$ac_objext conftest.$ac_ext
7121 fi
7122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7125   cat >>confdefs.h <<_ACEOF
7126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7127 _ACEOF
7128
7129 fi
7130
7131 done
7132
7133
7134 if test "$with_readline" = yes; then
7135
7136 for ac_header in readline/readline.h
7137 do
7138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7140   echo "$as_me:$LINENO: checking for $ac_header" >&5
7141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7143   echo $ECHO_N "(cached) $ECHO_C" >&6
7144 fi
7145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7147 else
7148   # Is the header compilable?
7149 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7151 cat >conftest.$ac_ext <<_ACEOF
7152 #line $LINENO "configure"
7153 #include "confdefs.h"
7154 $ac_includes_default
7155 #include <$ac_header>
7156 _ACEOF
7157 rm -f conftest.$ac_objext
7158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7159   (eval $ac_compile) 2>&5
7160   ac_status=$?
7161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162   (exit $ac_status); } &&
7163          { ac_try='test -s conftest.$ac_objext'
7164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165   (eval $ac_try) 2>&5
7166   ac_status=$?
7167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168   (exit $ac_status); }; }; then
7169   ac_header_compiler=yes
7170 else
7171   echo "$as_me: failed program was:" >&5
7172 cat conftest.$ac_ext >&5
7173 ac_header_compiler=no
7174 fi
7175 rm -f conftest.$ac_objext conftest.$ac_ext
7176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7177 echo "${ECHO_T}$ac_header_compiler" >&6
7178
7179 # Is the header present?
7180 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7182 cat >conftest.$ac_ext <<_ACEOF
7183 #line $LINENO "configure"
7184 #include "confdefs.h"
7185 #include <$ac_header>
7186 _ACEOF
7187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7188   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7189   ac_status=$?
7190   egrep -v '^ *\+' conftest.er1 >conftest.err
7191   rm -f conftest.er1
7192   cat conftest.err >&5
7193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194   (exit $ac_status); } >/dev/null; then
7195   if test -s conftest.err; then
7196     ac_cpp_err=$ac_c_preproc_warn_flag
7197   else
7198     ac_cpp_err=
7199   fi
7200 else
7201   ac_cpp_err=yes
7202 fi
7203 if test -z "$ac_cpp_err"; then
7204   ac_header_preproc=yes
7205 else
7206   echo "$as_me: failed program was:" >&5
7207   cat conftest.$ac_ext >&5
7208   ac_header_preproc=no
7209 fi
7210 rm -f conftest.err conftest.$ac_ext
7211 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7212 echo "${ECHO_T}$ac_header_preproc" >&6
7213
7214 # So?  What about this header?
7215 case $ac_header_compiler:$ac_header_preproc in
7216   yes:no )
7217     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7219     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7221   no:yes )
7222     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7224     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7225 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7226     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7228 esac
7229 echo "$as_me:$LINENO: checking for $ac_header" >&5
7230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7232   echo $ECHO_N "(cached) $ECHO_C" >&6
7233 else
7234   eval "$as_ac_Header=$ac_header_preproc"
7235 fi
7236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7238
7239 fi
7240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7241   cat >>confdefs.h <<_ACEOF
7242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7243 _ACEOF
7244
7245 else
7246
7247 for ac_header in editline/readline.h
7248 do
7249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7251   echo "$as_me:$LINENO: checking for $ac_header" >&5
7252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7254   echo $ECHO_N "(cached) $ECHO_C" >&6
7255 fi
7256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7258 else
7259   # Is the header compilable?
7260 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7262 cat >conftest.$ac_ext <<_ACEOF
7263 #line $LINENO "configure"
7264 #include "confdefs.h"
7265 $ac_includes_default
7266 #include <$ac_header>
7267 _ACEOF
7268 rm -f conftest.$ac_objext
7269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7270   (eval $ac_compile) 2>&5
7271   ac_status=$?
7272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273   (exit $ac_status); } &&
7274          { ac_try='test -s conftest.$ac_objext'
7275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7276   (eval $ac_try) 2>&5
7277   ac_status=$?
7278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279   (exit $ac_status); }; }; then
7280   ac_header_compiler=yes
7281 else
7282   echo "$as_me: failed program was:" >&5
7283 cat conftest.$ac_ext >&5
7284 ac_header_compiler=no
7285 fi
7286 rm -f conftest.$ac_objext conftest.$ac_ext
7287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7288 echo "${ECHO_T}$ac_header_compiler" >&6
7289
7290 # Is the header present?
7291 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7293 cat >conftest.$ac_ext <<_ACEOF
7294 #line $LINENO "configure"
7295 #include "confdefs.h"
7296 #include <$ac_header>
7297 _ACEOF
7298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7299   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7300   ac_status=$?
7301   egrep -v '^ *\+' conftest.er1 >conftest.err
7302   rm -f conftest.er1
7303   cat conftest.err >&5
7304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305   (exit $ac_status); } >/dev/null; then
7306   if test -s conftest.err; then
7307     ac_cpp_err=$ac_c_preproc_warn_flag
7308   else
7309     ac_cpp_err=
7310   fi
7311 else
7312   ac_cpp_err=yes
7313 fi
7314 if test -z "$ac_cpp_err"; then
7315   ac_header_preproc=yes
7316 else
7317   echo "$as_me: failed program was:" >&5
7318   cat conftest.$ac_ext >&5
7319   ac_header_preproc=no
7320 fi
7321 rm -f conftest.err conftest.$ac_ext
7322 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7323 echo "${ECHO_T}$ac_header_preproc" >&6
7324
7325 # So?  What about this header?
7326 case $ac_header_compiler:$ac_header_preproc in
7327   yes:no )
7328     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7330     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7332   no:yes )
7333     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7335     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7336 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7337     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7339 esac
7340 echo "$as_me:$LINENO: checking for $ac_header" >&5
7341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7343   echo $ECHO_N "(cached) $ECHO_C" >&6
7344 else
7345   eval "$as_ac_Header=$ac_header_preproc"
7346 fi
7347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7349
7350 fi
7351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7352   cat >>confdefs.h <<_ACEOF
7353 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7354 _ACEOF
7355
7356 else
7357
7358 for ac_header in readline.h
7359 do
7360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7362   echo "$as_me:$LINENO: checking for $ac_header" >&5
7363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7365   echo $ECHO_N "(cached) $ECHO_C" >&6
7366 fi
7367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7369 else
7370   # Is the header compilable?
7371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7373 cat >conftest.$ac_ext <<_ACEOF
7374 #line $LINENO "configure"
7375 #include "confdefs.h"
7376 $ac_includes_default
7377 #include <$ac_header>
7378 _ACEOF
7379 rm -f conftest.$ac_objext
7380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7381   (eval $ac_compile) 2>&5
7382   ac_status=$?
7383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384   (exit $ac_status); } &&
7385          { ac_try='test -s conftest.$ac_objext'
7386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387   (eval $ac_try) 2>&5
7388   ac_status=$?
7389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390   (exit $ac_status); }; }; then
7391   ac_header_compiler=yes
7392 else
7393   echo "$as_me: failed program was:" >&5
7394 cat conftest.$ac_ext >&5
7395 ac_header_compiler=no
7396 fi
7397 rm -f conftest.$ac_objext conftest.$ac_ext
7398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7399 echo "${ECHO_T}$ac_header_compiler" >&6
7400
7401 # Is the header present?
7402 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7404 cat >conftest.$ac_ext <<_ACEOF
7405 #line $LINENO "configure"
7406 #include "confdefs.h"
7407 #include <$ac_header>
7408 _ACEOF
7409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7410   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7411   ac_status=$?
7412   egrep -v '^ *\+' conftest.er1 >conftest.err
7413   rm -f conftest.er1
7414   cat conftest.err >&5
7415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416   (exit $ac_status); } >/dev/null; then
7417   if test -s conftest.err; then
7418     ac_cpp_err=$ac_c_preproc_warn_flag
7419   else
7420     ac_cpp_err=
7421   fi
7422 else
7423   ac_cpp_err=yes
7424 fi
7425 if test -z "$ac_cpp_err"; then
7426   ac_header_preproc=yes
7427 else
7428   echo "$as_me: failed program was:" >&5
7429   cat conftest.$ac_ext >&5
7430   ac_header_preproc=no
7431 fi
7432 rm -f conftest.err conftest.$ac_ext
7433 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7434 echo "${ECHO_T}$ac_header_preproc" >&6
7435
7436 # So?  What about this header?
7437 case $ac_header_compiler:$ac_header_preproc in
7438   yes:no )
7439     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7441     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7443   no:yes )
7444     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7446     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7448     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7450 esac
7451 echo "$as_me:$LINENO: checking for $ac_header" >&5
7452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7454   echo $ECHO_N "(cached) $ECHO_C" >&6
7455 else
7456   eval "$as_ac_Header=$ac_header_preproc"
7457 fi
7458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7460
7461 fi
7462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7463   cat >>confdefs.h <<_ACEOF
7464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7465 _ACEOF
7466
7467 else
7468   { { echo "$as_me:$LINENO: error: readline header not found
7469 If you have readline already installed, see config.log for details on the
7470 failure.  It is possible the compiler isn't looking in the proper directory.
7471 Use --without-readline to disable readline support." >&5
7472 echo "$as_me: error: readline header not found
7473 If you have readline already installed, see config.log for details on the
7474 failure.  It is possible the compiler isn't looking in the proper directory.
7475 Use --without-readline to disable readline support." >&2;}
7476    { (exit 1); exit 1; }; }
7477 fi
7478
7479 done
7480
7481 fi
7482
7483 done
7484
7485 fi
7486
7487 done
7488
7489
7490 for ac_header in readline/history.h
7491 do
7492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7494   echo "$as_me:$LINENO: checking for $ac_header" >&5
7495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7497   echo $ECHO_N "(cached) $ECHO_C" >&6
7498 fi
7499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7501 else
7502   # Is the header compilable?
7503 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7505 cat >conftest.$ac_ext <<_ACEOF
7506 #line $LINENO "configure"
7507 #include "confdefs.h"
7508 $ac_includes_default
7509 #include <$ac_header>
7510 _ACEOF
7511 rm -f conftest.$ac_objext
7512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7513   (eval $ac_compile) 2>&5
7514   ac_status=$?
7515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516   (exit $ac_status); } &&
7517          { ac_try='test -s conftest.$ac_objext'
7518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519   (eval $ac_try) 2>&5
7520   ac_status=$?
7521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522   (exit $ac_status); }; }; then
7523   ac_header_compiler=yes
7524 else
7525   echo "$as_me: failed program was:" >&5
7526 cat conftest.$ac_ext >&5
7527 ac_header_compiler=no
7528 fi
7529 rm -f conftest.$ac_objext conftest.$ac_ext
7530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7531 echo "${ECHO_T}$ac_header_compiler" >&6
7532
7533 # Is the header present?
7534 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7536 cat >conftest.$ac_ext <<_ACEOF
7537 #line $LINENO "configure"
7538 #include "confdefs.h"
7539 #include <$ac_header>
7540 _ACEOF
7541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7542   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7543   ac_status=$?
7544   egrep -v '^ *\+' conftest.er1 >conftest.err
7545   rm -f conftest.er1
7546   cat conftest.err >&5
7547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548   (exit $ac_status); } >/dev/null; then
7549   if test -s conftest.err; then
7550     ac_cpp_err=$ac_c_preproc_warn_flag
7551   else
7552     ac_cpp_err=
7553   fi
7554 else
7555   ac_cpp_err=yes
7556 fi
7557 if test -z "$ac_cpp_err"; then
7558   ac_header_preproc=yes
7559 else
7560   echo "$as_me: failed program was:" >&5
7561   cat conftest.$ac_ext >&5
7562   ac_header_preproc=no
7563 fi
7564 rm -f conftest.err conftest.$ac_ext
7565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7566 echo "${ECHO_T}$ac_header_preproc" >&6
7567
7568 # So?  What about this header?
7569 case $ac_header_compiler:$ac_header_preproc in
7570   yes:no )
7571     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7573     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7575   no:yes )
7576     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7578     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7579 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7580     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7582 esac
7583 echo "$as_me:$LINENO: checking for $ac_header" >&5
7584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7586   echo $ECHO_N "(cached) $ECHO_C" >&6
7587 else
7588   eval "$as_ac_Header=$ac_header_preproc"
7589 fi
7590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7592
7593 fi
7594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7595   cat >>confdefs.h <<_ACEOF
7596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7597 _ACEOF
7598
7599 else
7600
7601 for ac_header in editline/history.h
7602 do
7603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7605   echo "$as_me:$LINENO: checking for $ac_header" >&5
7606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7608   echo $ECHO_N "(cached) $ECHO_C" >&6
7609 fi
7610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7612 else
7613   # Is the header compilable?
7614 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7615 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7616 cat >conftest.$ac_ext <<_ACEOF
7617 #line $LINENO "configure"
7618 #include "confdefs.h"
7619 $ac_includes_default
7620 #include <$ac_header>
7621 _ACEOF
7622 rm -f conftest.$ac_objext
7623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7624   (eval $ac_compile) 2>&5
7625   ac_status=$?
7626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627   (exit $ac_status); } &&
7628          { ac_try='test -s conftest.$ac_objext'
7629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630   (eval $ac_try) 2>&5
7631   ac_status=$?
7632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633   (exit $ac_status); }; }; then
7634   ac_header_compiler=yes
7635 else
7636   echo "$as_me: failed program was:" >&5
7637 cat conftest.$ac_ext >&5
7638 ac_header_compiler=no
7639 fi
7640 rm -f conftest.$ac_objext conftest.$ac_ext
7641 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7642 echo "${ECHO_T}$ac_header_compiler" >&6
7643
7644 # Is the header present?
7645 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7647 cat >conftest.$ac_ext <<_ACEOF
7648 #line $LINENO "configure"
7649 #include "confdefs.h"
7650 #include <$ac_header>
7651 _ACEOF
7652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7653   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7654   ac_status=$?
7655   egrep -v '^ *\+' conftest.er1 >conftest.err
7656   rm -f conftest.er1
7657   cat conftest.err >&5
7658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659   (exit $ac_status); } >/dev/null; then
7660   if test -s conftest.err; then
7661     ac_cpp_err=$ac_c_preproc_warn_flag
7662   else
7663     ac_cpp_err=
7664   fi
7665 else
7666   ac_cpp_err=yes
7667 fi
7668 if test -z "$ac_cpp_err"; then
7669   ac_header_preproc=yes
7670 else
7671   echo "$as_me: failed program was:" >&5
7672   cat conftest.$ac_ext >&5
7673   ac_header_preproc=no
7674 fi
7675 rm -f conftest.err conftest.$ac_ext
7676 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7677 echo "${ECHO_T}$ac_header_preproc" >&6
7678
7679 # So?  What about this header?
7680 case $ac_header_compiler:$ac_header_preproc in
7681   yes:no )
7682     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7684     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7686   no:yes )
7687     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7689     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7690 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7691     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7693 esac
7694 echo "$as_me:$LINENO: checking for $ac_header" >&5
7695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7697   echo $ECHO_N "(cached) $ECHO_C" >&6
7698 else
7699   eval "$as_ac_Header=$ac_header_preproc"
7700 fi
7701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7703
7704 fi
7705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7706   cat >>confdefs.h <<_ACEOF
7707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7708 _ACEOF
7709
7710 else
7711
7712 for ac_header in history.h
7713 do
7714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7716   echo "$as_me:$LINENO: checking for $ac_header" >&5
7717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7719   echo $ECHO_N "(cached) $ECHO_C" >&6
7720 fi
7721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7723 else
7724   # Is the header compilable?
7725 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7726 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7727 cat >conftest.$ac_ext <<_ACEOF
7728 #line $LINENO "configure"
7729 #include "confdefs.h"
7730 $ac_includes_default
7731 #include <$ac_header>
7732 _ACEOF
7733 rm -f conftest.$ac_objext
7734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7735   (eval $ac_compile) 2>&5
7736   ac_status=$?
7737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738   (exit $ac_status); } &&
7739          { ac_try='test -s conftest.$ac_objext'
7740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7741   (eval $ac_try) 2>&5
7742   ac_status=$?
7743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744   (exit $ac_status); }; }; then
7745   ac_header_compiler=yes
7746 else
7747   echo "$as_me: failed program was:" >&5
7748 cat conftest.$ac_ext >&5
7749 ac_header_compiler=no
7750 fi
7751 rm -f conftest.$ac_objext conftest.$ac_ext
7752 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7753 echo "${ECHO_T}$ac_header_compiler" >&6
7754
7755 # Is the header present?
7756 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7758 cat >conftest.$ac_ext <<_ACEOF
7759 #line $LINENO "configure"
7760 #include "confdefs.h"
7761 #include <$ac_header>
7762 _ACEOF
7763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7764   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7765   ac_status=$?
7766   egrep -v '^ *\+' conftest.er1 >conftest.err
7767   rm -f conftest.er1
7768   cat conftest.err >&5
7769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770   (exit $ac_status); } >/dev/null; then
7771   if test -s conftest.err; then
7772     ac_cpp_err=$ac_c_preproc_warn_flag
7773   else
7774     ac_cpp_err=
7775   fi
7776 else
7777   ac_cpp_err=yes
7778 fi
7779 if test -z "$ac_cpp_err"; then
7780   ac_header_preproc=yes
7781 else
7782   echo "$as_me: failed program was:" >&5
7783   cat conftest.$ac_ext >&5
7784   ac_header_preproc=no
7785 fi
7786 rm -f conftest.err conftest.$ac_ext
7787 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7788 echo "${ECHO_T}$ac_header_preproc" >&6
7789
7790 # So?  What about this header?
7791 case $ac_header_compiler:$ac_header_preproc in
7792   yes:no )
7793     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7795     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7797   no:yes )
7798     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7800     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7801 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7802     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7804 esac
7805 echo "$as_me:$LINENO: checking for $ac_header" >&5
7806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7808   echo $ECHO_N "(cached) $ECHO_C" >&6
7809 else
7810   eval "$as_ac_Header=$ac_header_preproc"
7811 fi
7812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7814
7815 fi
7816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7817   cat >>confdefs.h <<_ACEOF
7818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7819 _ACEOF
7820
7821 else
7822   { { echo "$as_me:$LINENO: error: history header not found
7823 If you have readline already installed, see config.log for details on the
7824 failure.  It is possible the compiler isn't looking in the proper directory.
7825 Use --without-readline to disable readline support." >&5
7826 echo "$as_me: error: history header not found
7827 If you have readline already installed, see config.log for details on the
7828 failure.  It is possible the compiler isn't looking in the proper directory.
7829 Use --without-readline to disable readline support." >&2;}
7830    { (exit 1); exit 1; }; }
7831 fi
7832
7833 done
7834
7835 fi
7836
7837 done
7838
7839 fi
7840
7841 done
7842
7843 fi
7844
7845 if test "$with_zlib" = yes; then
7846   if test "${ac_cv_header_zlib_h+set}" = set; then
7847   echo "$as_me:$LINENO: checking for zlib.h" >&5
7848 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7849 if test "${ac_cv_header_zlib_h+set}" = set; then
7850   echo $ECHO_N "(cached) $ECHO_C" >&6
7851 fi
7852 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7853 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7854 else
7855   # Is the header compilable?
7856 echo "$as_me:$LINENO: checking zlib.h usability" >&5
7857 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
7858 cat >conftest.$ac_ext <<_ACEOF
7859 #line $LINENO "configure"
7860 #include "confdefs.h"
7861 $ac_includes_default
7862 #include <zlib.h>
7863 _ACEOF
7864 rm -f conftest.$ac_objext
7865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7866   (eval $ac_compile) 2>&5
7867   ac_status=$?
7868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869   (exit $ac_status); } &&
7870          { ac_try='test -s conftest.$ac_objext'
7871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7872   (eval $ac_try) 2>&5
7873   ac_status=$?
7874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875   (exit $ac_status); }; }; then
7876   ac_header_compiler=yes
7877 else
7878   echo "$as_me: failed program was:" >&5
7879 cat conftest.$ac_ext >&5
7880 ac_header_compiler=no
7881 fi
7882 rm -f conftest.$ac_objext conftest.$ac_ext
7883 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7884 echo "${ECHO_T}$ac_header_compiler" >&6
7885
7886 # Is the header present?
7887 echo "$as_me:$LINENO: checking zlib.h presence" >&5
7888 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
7889 cat >conftest.$ac_ext <<_ACEOF
7890 #line $LINENO "configure"
7891 #include "confdefs.h"
7892 #include <zlib.h>
7893 _ACEOF
7894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7895   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7896   ac_status=$?
7897   egrep -v '^ *\+' conftest.er1 >conftest.err
7898   rm -f conftest.er1
7899   cat conftest.err >&5
7900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901   (exit $ac_status); } >/dev/null; then
7902   if test -s conftest.err; then
7903     ac_cpp_err=$ac_c_preproc_warn_flag
7904   else
7905     ac_cpp_err=
7906   fi
7907 else
7908   ac_cpp_err=yes
7909 fi
7910 if test -z "$ac_cpp_err"; then
7911   ac_header_preproc=yes
7912 else
7913   echo "$as_me: failed program was:" >&5
7914   cat conftest.$ac_ext >&5
7915   ac_header_preproc=no
7916 fi
7917 rm -f conftest.err conftest.$ac_ext
7918 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7919 echo "${ECHO_T}$ac_header_preproc" >&6
7920
7921 # So?  What about this header?
7922 case $ac_header_compiler:$ac_header_preproc in
7923   yes:no )
7924     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7925 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7926     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7927 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7928   no:yes )
7929     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
7930 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
7931     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
7932 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
7933     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7934 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7935 esac
7936 echo "$as_me:$LINENO: checking for zlib.h" >&5
7937 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7938 if test "${ac_cv_header_zlib_h+set}" = set; then
7939   echo $ECHO_N "(cached) $ECHO_C" >&6
7940 else
7941   ac_cv_header_zlib_h=$ac_header_preproc
7942 fi
7943 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7944 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7945
7946 fi
7947 if test $ac_cv_header_zlib_h = yes; then
7948   :
7949 else
7950   { { echo "$as_me:$LINENO: error: zlib header not found
7951 If you have zlib already installed, see config.log for details on the
7952 failure.  It is possible the compiler isn't looking in the proper directory.
7953 Use --without-zlib to disable zlib support." >&5
7954 echo "$as_me: error: zlib header not found
7955 If you have zlib already installed, see config.log for details on the
7956 failure.  It is possible the compiler isn't looking in the proper directory.
7957 Use --without-zlib to disable zlib support." >&2;}
7958    { (exit 1); exit 1; }; }
7959 fi
7960
7961
7962 fi
7963
7964 if test "$with_krb4" = yes ; then
7965   if test "${ac_cv_header_krb_h+set}" = set; then
7966   echo "$as_me:$LINENO: checking for krb.h" >&5
7967 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
7968 if test "${ac_cv_header_krb_h+set}" = set; then
7969   echo $ECHO_N "(cached) $ECHO_C" >&6
7970 fi
7971 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
7972 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
7973 else
7974   # Is the header compilable?
7975 echo "$as_me:$LINENO: checking krb.h usability" >&5
7976 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
7977 cat >conftest.$ac_ext <<_ACEOF
7978 #line $LINENO "configure"
7979 #include "confdefs.h"
7980 $ac_includes_default
7981 #include <krb.h>
7982 _ACEOF
7983 rm -f conftest.$ac_objext
7984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7985   (eval $ac_compile) 2>&5
7986   ac_status=$?
7987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988   (exit $ac_status); } &&
7989          { ac_try='test -s conftest.$ac_objext'
7990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991   (eval $ac_try) 2>&5
7992   ac_status=$?
7993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994   (exit $ac_status); }; }; then
7995   ac_header_compiler=yes
7996 else
7997   echo "$as_me: failed program was:" >&5
7998 cat conftest.$ac_ext >&5
7999 ac_header_compiler=no
8000 fi
8001 rm -f conftest.$ac_objext conftest.$ac_ext
8002 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8003 echo "${ECHO_T}$ac_header_compiler" >&6
8004
8005 # Is the header present?
8006 echo "$as_me:$LINENO: checking krb.h presence" >&5
8007 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8008 cat >conftest.$ac_ext <<_ACEOF
8009 #line $LINENO "configure"
8010 #include "confdefs.h"
8011 #include <krb.h>
8012 _ACEOF
8013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8014   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8015   ac_status=$?
8016   egrep -v '^ *\+' conftest.er1 >conftest.err
8017   rm -f conftest.er1
8018   cat conftest.err >&5
8019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020   (exit $ac_status); } >/dev/null; then
8021   if test -s conftest.err; then
8022     ac_cpp_err=$ac_c_preproc_warn_flag
8023   else
8024     ac_cpp_err=
8025   fi
8026 else
8027   ac_cpp_err=yes
8028 fi
8029 if test -z "$ac_cpp_err"; then
8030   ac_header_preproc=yes
8031 else
8032   echo "$as_me: failed program was:" >&5
8033   cat conftest.$ac_ext >&5
8034   ac_header_preproc=no
8035 fi
8036 rm -f conftest.err conftest.$ac_ext
8037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8038 echo "${ECHO_T}$ac_header_preproc" >&6
8039
8040 # So?  What about this header?
8041 case $ac_header_compiler:$ac_header_preproc in
8042   yes:no )
8043     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8044 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8045     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8046 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8047   no:yes )
8048     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8049 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8050     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8051 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8052     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8053 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8054 esac
8055 echo "$as_me:$LINENO: checking for krb.h" >&5
8056 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8057 if test "${ac_cv_header_krb_h+set}" = set; then
8058   echo $ECHO_N "(cached) $ECHO_C" >&6
8059 else
8060   ac_cv_header_krb_h=$ac_header_preproc
8061 fi
8062 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8063 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8064
8065 fi
8066 if test $ac_cv_header_krb_h = yes; then
8067   :
8068 else
8069   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8070 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8071    { (exit 1); exit 1; }; }
8072 fi
8073
8074
8075 fi
8076
8077 if test "$with_krb5" = yes ; then
8078   if test "${ac_cv_header_krb5_h+set}" = set; then
8079   echo "$as_me:$LINENO: checking for krb5.h" >&5
8080 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8081 if test "${ac_cv_header_krb5_h+set}" = set; then
8082   echo $ECHO_N "(cached) $ECHO_C" >&6
8083 fi
8084 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8085 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8086 else
8087   # Is the header compilable?
8088 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8089 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8090 cat >conftest.$ac_ext <<_ACEOF
8091 #line $LINENO "configure"
8092 #include "confdefs.h"
8093 $ac_includes_default
8094 #include <krb5.h>
8095 _ACEOF
8096 rm -f conftest.$ac_objext
8097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8098   (eval $ac_compile) 2>&5
8099   ac_status=$?
8100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101   (exit $ac_status); } &&
8102          { ac_try='test -s conftest.$ac_objext'
8103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8104   (eval $ac_try) 2>&5
8105   ac_status=$?
8106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107   (exit $ac_status); }; }; then
8108   ac_header_compiler=yes
8109 else
8110   echo "$as_me: failed program was:" >&5
8111 cat conftest.$ac_ext >&5
8112 ac_header_compiler=no
8113 fi
8114 rm -f conftest.$ac_objext conftest.$ac_ext
8115 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8116 echo "${ECHO_T}$ac_header_compiler" >&6
8117
8118 # Is the header present?
8119 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8120 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8121 cat >conftest.$ac_ext <<_ACEOF
8122 #line $LINENO "configure"
8123 #include "confdefs.h"
8124 #include <krb5.h>
8125 _ACEOF
8126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8127   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8128   ac_status=$?
8129   egrep -v '^ *\+' conftest.er1 >conftest.err
8130   rm -f conftest.er1
8131   cat conftest.err >&5
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); } >/dev/null; then
8134   if test -s conftest.err; then
8135     ac_cpp_err=$ac_c_preproc_warn_flag
8136   else
8137     ac_cpp_err=
8138   fi
8139 else
8140   ac_cpp_err=yes
8141 fi
8142 if test -z "$ac_cpp_err"; then
8143   ac_header_preproc=yes
8144 else
8145   echo "$as_me: failed program was:" >&5
8146   cat conftest.$ac_ext >&5
8147   ac_header_preproc=no
8148 fi
8149 rm -f conftest.err conftest.$ac_ext
8150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8151 echo "${ECHO_T}$ac_header_preproc" >&6
8152
8153 # So?  What about this header?
8154 case $ac_header_compiler:$ac_header_preproc in
8155   yes:no )
8156     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8157 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8158     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8159 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8160   no:yes )
8161     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8162 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8163     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8164 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8165     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8166 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8167 esac
8168 echo "$as_me:$LINENO: checking for krb5.h" >&5
8169 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8170 if test "${ac_cv_header_krb5_h+set}" = set; then
8171   echo $ECHO_N "(cached) $ECHO_C" >&6
8172 else
8173   ac_cv_header_krb5_h=$ac_header_preproc
8174 fi
8175 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8176 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8177
8178 fi
8179 if test $ac_cv_header_krb5_h = yes; then
8180   :
8181 else
8182   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8183 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8184    { (exit 1); exit 1; }; }
8185 fi
8186
8187
8188   if test "${ac_cv_header_com_err_h+set}" = set; then
8189   echo "$as_me:$LINENO: checking for com_err.h" >&5
8190 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8191 if test "${ac_cv_header_com_err_h+set}" = set; then
8192   echo $ECHO_N "(cached) $ECHO_C" >&6
8193 fi
8194 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8195 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8196 else
8197   # Is the header compilable?
8198 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8199 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8200 cat >conftest.$ac_ext <<_ACEOF
8201 #line $LINENO "configure"
8202 #include "confdefs.h"
8203 $ac_includes_default
8204 #include <com_err.h>
8205 _ACEOF
8206 rm -f conftest.$ac_objext
8207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8208   (eval $ac_compile) 2>&5
8209   ac_status=$?
8210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211   (exit $ac_status); } &&
8212          { ac_try='test -s conftest.$ac_objext'
8213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8214   (eval $ac_try) 2>&5
8215   ac_status=$?
8216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217   (exit $ac_status); }; }; then
8218   ac_header_compiler=yes
8219 else
8220   echo "$as_me: failed program was:" >&5
8221 cat conftest.$ac_ext >&5
8222 ac_header_compiler=no
8223 fi
8224 rm -f conftest.$ac_objext conftest.$ac_ext
8225 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8226 echo "${ECHO_T}$ac_header_compiler" >&6
8227
8228 # Is the header present?
8229 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8230 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8231 cat >conftest.$ac_ext <<_ACEOF
8232 #line $LINENO "configure"
8233 #include "confdefs.h"
8234 #include <com_err.h>
8235 _ACEOF
8236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8237   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8238   ac_status=$?
8239   egrep -v '^ *\+' conftest.er1 >conftest.err
8240   rm -f conftest.er1
8241   cat conftest.err >&5
8242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243   (exit $ac_status); } >/dev/null; then
8244   if test -s conftest.err; then
8245     ac_cpp_err=$ac_c_preproc_warn_flag
8246   else
8247     ac_cpp_err=
8248   fi
8249 else
8250   ac_cpp_err=yes
8251 fi
8252 if test -z "$ac_cpp_err"; then
8253   ac_header_preproc=yes
8254 else
8255   echo "$as_me: failed program was:" >&5
8256   cat conftest.$ac_ext >&5
8257   ac_header_preproc=no
8258 fi
8259 rm -f conftest.err conftest.$ac_ext
8260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8261 echo "${ECHO_T}$ac_header_preproc" >&6
8262
8263 # So?  What about this header?
8264 case $ac_header_compiler:$ac_header_preproc in
8265   yes:no )
8266     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8267 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8268     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8269 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8270   no:yes )
8271     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8272 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8273     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8274 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8275     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8276 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8277 esac
8278 echo "$as_me:$LINENO: checking for com_err.h" >&5
8279 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8280 if test "${ac_cv_header_com_err_h+set}" = set; then
8281   echo $ECHO_N "(cached) $ECHO_C" >&6
8282 else
8283   ac_cv_header_com_err_h=$ac_header_preproc
8284 fi
8285 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8286 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8287
8288 fi
8289 if test $ac_cv_header_com_err_h = yes; then
8290   :
8291 else
8292   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8293 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8294    { (exit 1); exit 1; }; }
8295 fi
8296
8297
8298 fi
8299
8300 if test "$with_openssl" = yes ; then
8301   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8302   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8303 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8304 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8305   echo $ECHO_N "(cached) $ECHO_C" >&6
8306 fi
8307 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8308 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8309 else
8310   # Is the header compilable?
8311 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8312 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8313 cat >conftest.$ac_ext <<_ACEOF
8314 #line $LINENO "configure"
8315 #include "confdefs.h"
8316 $ac_includes_default
8317 #include <openssl/ssl.h>
8318 _ACEOF
8319 rm -f conftest.$ac_objext
8320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8321   (eval $ac_compile) 2>&5
8322   ac_status=$?
8323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324   (exit $ac_status); } &&
8325          { ac_try='test -s conftest.$ac_objext'
8326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327   (eval $ac_try) 2>&5
8328   ac_status=$?
8329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330   (exit $ac_status); }; }; then
8331   ac_header_compiler=yes
8332 else
8333   echo "$as_me: failed program was:" >&5
8334 cat conftest.$ac_ext >&5
8335 ac_header_compiler=no
8336 fi
8337 rm -f conftest.$ac_objext conftest.$ac_ext
8338 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8339 echo "${ECHO_T}$ac_header_compiler" >&6
8340
8341 # Is the header present?
8342 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8343 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8344 cat >conftest.$ac_ext <<_ACEOF
8345 #line $LINENO "configure"
8346 #include "confdefs.h"
8347 #include <openssl/ssl.h>
8348 _ACEOF
8349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8350   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8351   ac_status=$?
8352   egrep -v '^ *\+' conftest.er1 >conftest.err
8353   rm -f conftest.er1
8354   cat conftest.err >&5
8355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356   (exit $ac_status); } >/dev/null; then
8357   if test -s conftest.err; then
8358     ac_cpp_err=$ac_c_preproc_warn_flag
8359   else
8360     ac_cpp_err=
8361   fi
8362 else
8363   ac_cpp_err=yes
8364 fi
8365 if test -z "$ac_cpp_err"; then
8366   ac_header_preproc=yes
8367 else
8368   echo "$as_me: failed program was:" >&5
8369   cat conftest.$ac_ext >&5
8370   ac_header_preproc=no
8371 fi
8372 rm -f conftest.err conftest.$ac_ext
8373 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8374 echo "${ECHO_T}$ac_header_preproc" >&6
8375
8376 # So?  What about this header?
8377 case $ac_header_compiler:$ac_header_preproc in
8378   yes:no )
8379     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8380 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8381     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8382 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8383   no:yes )
8384     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8385 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8386     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8387 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8388     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8389 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8390 esac
8391 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8392 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8393 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8394   echo $ECHO_N "(cached) $ECHO_C" >&6
8395 else
8396   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8397 fi
8398 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8399 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8400
8401 fi
8402 if test $ac_cv_header_openssl_ssl_h = yes; then
8403   :
8404 else
8405   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8406 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8407    { (exit 1); exit 1; }; }
8408 fi
8409
8410
8411   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8412   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8413 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8414 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8415   echo $ECHO_N "(cached) $ECHO_C" >&6
8416 fi
8417 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8418 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8419 else
8420   # Is the header compilable?
8421 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8422 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8423 cat >conftest.$ac_ext <<_ACEOF
8424 #line $LINENO "configure"
8425 #include "confdefs.h"
8426 $ac_includes_default
8427 #include <openssl/err.h>
8428 _ACEOF
8429 rm -f conftest.$ac_objext
8430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8431   (eval $ac_compile) 2>&5
8432   ac_status=$?
8433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434   (exit $ac_status); } &&
8435          { ac_try='test -s conftest.$ac_objext'
8436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8437   (eval $ac_try) 2>&5
8438   ac_status=$?
8439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440   (exit $ac_status); }; }; then
8441   ac_header_compiler=yes
8442 else
8443   echo "$as_me: failed program was:" >&5
8444 cat conftest.$ac_ext >&5
8445 ac_header_compiler=no
8446 fi
8447 rm -f conftest.$ac_objext conftest.$ac_ext
8448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8449 echo "${ECHO_T}$ac_header_compiler" >&6
8450
8451 # Is the header present?
8452 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8453 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8454 cat >conftest.$ac_ext <<_ACEOF
8455 #line $LINENO "configure"
8456 #include "confdefs.h"
8457 #include <openssl/err.h>
8458 _ACEOF
8459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8460   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8461   ac_status=$?
8462   egrep -v '^ *\+' conftest.er1 >conftest.err
8463   rm -f conftest.er1
8464   cat conftest.err >&5
8465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   (exit $ac_status); } >/dev/null; then
8467   if test -s conftest.err; then
8468     ac_cpp_err=$ac_c_preproc_warn_flag
8469   else
8470     ac_cpp_err=
8471   fi
8472 else
8473   ac_cpp_err=yes
8474 fi
8475 if test -z "$ac_cpp_err"; then
8476   ac_header_preproc=yes
8477 else
8478   echo "$as_me: failed program was:" >&5
8479   cat conftest.$ac_ext >&5
8480   ac_header_preproc=no
8481 fi
8482 rm -f conftest.err conftest.$ac_ext
8483 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8484 echo "${ECHO_T}$ac_header_preproc" >&6
8485
8486 # So?  What about this header?
8487 case $ac_header_compiler:$ac_header_preproc in
8488   yes:no )
8489     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8490 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8491     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8492 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8493   no:yes )
8494     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8495 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8496     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8497 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8498     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8499 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8500 esac
8501 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8502 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8503 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8504   echo $ECHO_N "(cached) $ECHO_C" >&6
8505 else
8506   ac_cv_header_openssl_err_h=$ac_header_preproc
8507 fi
8508 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8509 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8510
8511 fi
8512 if test $ac_cv_header_openssl_err_h = yes; then
8513   :
8514 else
8515   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8516 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8517    { (exit 1); exit 1; }; }
8518 fi
8519
8520
8521 fi
8522
8523 if test "$with_pam" = yes ; then
8524
8525 for ac_header in security/pam_appl.h
8526 do
8527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8529   echo "$as_me:$LINENO: checking for $ac_header" >&5
8530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8532   echo $ECHO_N "(cached) $ECHO_C" >&6
8533 fi
8534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8536 else
8537   # Is the header compilable?
8538 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8540 cat >conftest.$ac_ext <<_ACEOF
8541 #line $LINENO "configure"
8542 #include "confdefs.h"
8543 $ac_includes_default
8544 #include <$ac_header>
8545 _ACEOF
8546 rm -f conftest.$ac_objext
8547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8548   (eval $ac_compile) 2>&5
8549   ac_status=$?
8550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551   (exit $ac_status); } &&
8552          { ac_try='test -s conftest.$ac_objext'
8553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554   (eval $ac_try) 2>&5
8555   ac_status=$?
8556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557   (exit $ac_status); }; }; then
8558   ac_header_compiler=yes
8559 else
8560   echo "$as_me: failed program was:" >&5
8561 cat conftest.$ac_ext >&5
8562 ac_header_compiler=no
8563 fi
8564 rm -f conftest.$ac_objext conftest.$ac_ext
8565 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8566 echo "${ECHO_T}$ac_header_compiler" >&6
8567
8568 # Is the header present?
8569 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8571 cat >conftest.$ac_ext <<_ACEOF
8572 #line $LINENO "configure"
8573 #include "confdefs.h"
8574 #include <$ac_header>
8575 _ACEOF
8576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8577   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8578   ac_status=$?
8579   egrep -v '^ *\+' conftest.er1 >conftest.err
8580   rm -f conftest.er1
8581   cat conftest.err >&5
8582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583   (exit $ac_status); } >/dev/null; then
8584   if test -s conftest.err; then
8585     ac_cpp_err=$ac_c_preproc_warn_flag
8586   else
8587     ac_cpp_err=
8588   fi
8589 else
8590   ac_cpp_err=yes
8591 fi
8592 if test -z "$ac_cpp_err"; then
8593   ac_header_preproc=yes
8594 else
8595   echo "$as_me: failed program was:" >&5
8596   cat conftest.$ac_ext >&5
8597   ac_header_preproc=no
8598 fi
8599 rm -f conftest.err conftest.$ac_ext
8600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8601 echo "${ECHO_T}$ac_header_preproc" >&6
8602
8603 # So?  What about this header?
8604 case $ac_header_compiler:$ac_header_preproc in
8605   yes:no )
8606     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8608     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8610   no:yes )
8611     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8612 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8613     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8614 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8615     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8617 esac
8618 echo "$as_me:$LINENO: checking for $ac_header" >&5
8619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8621   echo $ECHO_N "(cached) $ECHO_C" >&6
8622 else
8623   eval "$as_ac_Header=$ac_header_preproc"
8624 fi
8625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8627
8628 fi
8629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8630   cat >>confdefs.h <<_ACEOF
8631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8632 _ACEOF
8633
8634 else
8635
8636 for ac_header in pam/pam_appl.h
8637 do
8638 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8640   echo "$as_me:$LINENO: checking for $ac_header" >&5
8641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8643   echo $ECHO_N "(cached) $ECHO_C" >&6
8644 fi
8645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8646 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8647 else
8648   # Is the header compilable?
8649 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8650 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8651 cat >conftest.$ac_ext <<_ACEOF
8652 #line $LINENO "configure"
8653 #include "confdefs.h"
8654 $ac_includes_default
8655 #include <$ac_header>
8656 _ACEOF
8657 rm -f conftest.$ac_objext
8658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8659   (eval $ac_compile) 2>&5
8660   ac_status=$?
8661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662   (exit $ac_status); } &&
8663          { ac_try='test -s conftest.$ac_objext'
8664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665   (eval $ac_try) 2>&5
8666   ac_status=$?
8667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668   (exit $ac_status); }; }; then
8669   ac_header_compiler=yes
8670 else
8671   echo "$as_me: failed program was:" >&5
8672 cat conftest.$ac_ext >&5
8673 ac_header_compiler=no
8674 fi
8675 rm -f conftest.$ac_objext conftest.$ac_ext
8676 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8677 echo "${ECHO_T}$ac_header_compiler" >&6
8678
8679 # Is the header present?
8680 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8682 cat >conftest.$ac_ext <<_ACEOF
8683 #line $LINENO "configure"
8684 #include "confdefs.h"
8685 #include <$ac_header>
8686 _ACEOF
8687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8688   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8689   ac_status=$?
8690   egrep -v '^ *\+' conftest.er1 >conftest.err
8691   rm -f conftest.er1
8692   cat conftest.err >&5
8693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694   (exit $ac_status); } >/dev/null; then
8695   if test -s conftest.err; then
8696     ac_cpp_err=$ac_c_preproc_warn_flag
8697   else
8698     ac_cpp_err=
8699   fi
8700 else
8701   ac_cpp_err=yes
8702 fi
8703 if test -z "$ac_cpp_err"; then
8704   ac_header_preproc=yes
8705 else
8706   echo "$as_me: failed program was:" >&5
8707   cat conftest.$ac_ext >&5
8708   ac_header_preproc=no
8709 fi
8710 rm -f conftest.err conftest.$ac_ext
8711 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8712 echo "${ECHO_T}$ac_header_preproc" >&6
8713
8714 # So?  What about this header?
8715 case $ac_header_compiler:$ac_header_preproc in
8716   yes:no )
8717     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8718 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8719     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8721   no:yes )
8722     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8723 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8724     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8725 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8726     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8728 esac
8729 echo "$as_me:$LINENO: checking for $ac_header" >&5
8730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8732   echo $ECHO_N "(cached) $ECHO_C" >&6
8733 else
8734   eval "$as_ac_Header=$ac_header_preproc"
8735 fi
8736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8738
8739 fi
8740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8741   cat >>confdefs.h <<_ACEOF
8742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8743 _ACEOF
8744
8745 else
8746   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
8747 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
8748    { (exit 1); exit 1; }; }
8749 fi
8750
8751 done
8752
8753 fi
8754
8755 done
8756
8757 fi
8758
8759
8760 ##
8761 ## Types, structures, compiler characteristics
8762 ##
8763
8764
8765 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8766 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8767 if test "${ac_cv_c_const+set}" = set; then
8768   echo $ECHO_N "(cached) $ECHO_C" >&6
8769 else
8770   cat >conftest.$ac_ext <<_ACEOF
8771 #line $LINENO "configure"
8772 #include "confdefs.h"
8773
8774 #ifdef F77_DUMMY_MAIN
8775 #  ifdef __cplusplus
8776      extern "C"
8777 #  endif
8778    int F77_DUMMY_MAIN() { return 1; }
8779 #endif
8780 int
8781 main ()
8782 {
8783 /* FIXME: Include the comments suggested by Paul. */
8784 #ifndef __cplusplus
8785   /* Ultrix mips cc rejects this.  */
8786   typedef int charset[2];
8787   const charset x;
8788   /* SunOS 4.1.1 cc rejects this.  */
8789   char const *const *ccp;
8790   char **p;
8791   /* NEC SVR4.0.2 mips cc rejects this.  */
8792   struct point {int x, y;};
8793   static struct point const zero = {0,0};
8794   /* AIX XL C 1.02.0.0 rejects this.
8795      It does not let you subtract one const X* pointer from another in
8796      an arm of an if-expression whose if-part is not a constant
8797      expression */
8798   const char *g = "string";
8799   ccp = &g + (g ? g-g : 0);
8800   /* HPUX 7.0 cc rejects these. */
8801   ++ccp;
8802   p = (char**) ccp;
8803   ccp = (char const *const *) p;
8804   { /* SCO 3.2v4 cc rejects this.  */
8805     char *t;
8806     char const *s = 0 ? (char *) 0 : (char const *) 0;
8807
8808     *t++ = 0;
8809   }
8810   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8811     int x[] = {25, 17};
8812     const int *foo = &x[0];
8813     ++foo;
8814   }
8815   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8816     typedef const int *iptr;
8817     iptr p = 0;
8818     ++p;
8819   }
8820   { /* AIX XL C 1.02.0.0 rejects this saying
8821        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8822     struct s { int j; const int *ap[3]; };
8823     struct s *b; b->j = 5;
8824   }
8825   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8826     const int foo = 10;
8827   }
8828 #endif
8829
8830   ;
8831   return 0;
8832 }
8833 _ACEOF
8834 rm -f conftest.$ac_objext
8835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8836   (eval $ac_compile) 2>&5
8837   ac_status=$?
8838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839   (exit $ac_status); } &&
8840          { ac_try='test -s conftest.$ac_objext'
8841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842   (eval $ac_try) 2>&5
8843   ac_status=$?
8844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845   (exit $ac_status); }; }; then
8846   ac_cv_c_const=yes
8847 else
8848   echo "$as_me: failed program was:" >&5
8849 cat conftest.$ac_ext >&5
8850 ac_cv_c_const=no
8851 fi
8852 rm -f conftest.$ac_objext conftest.$ac_ext
8853 fi
8854 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8855 echo "${ECHO_T}$ac_cv_c_const" >&6
8856 if test $ac_cv_c_const = no; then
8857
8858 cat >>confdefs.h <<\_ACEOF
8859 #define const
8860 _ACEOF
8861
8862 fi
8863
8864 echo "$as_me:$LINENO: checking for inline" >&5
8865 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8866 if test "${ac_cv_c_inline+set}" = set; then
8867   echo $ECHO_N "(cached) $ECHO_C" >&6
8868 else
8869   ac_cv_c_inline=no
8870 for ac_kw in inline __inline__ __inline; do
8871   cat >conftest.$ac_ext <<_ACEOF
8872 #line $LINENO "configure"
8873 #include "confdefs.h"
8874 #ifndef __cplusplus
8875 static $ac_kw int static_foo () {return 0; }
8876 $ac_kw int foo () {return 0; }
8877 #endif
8878
8879 _ACEOF
8880 rm -f conftest.$ac_objext
8881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8882   (eval $ac_compile) 2>&5
8883   ac_status=$?
8884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885   (exit $ac_status); } &&
8886          { ac_try='test -s conftest.$ac_objext'
8887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8888   (eval $ac_try) 2>&5
8889   ac_status=$?
8890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891   (exit $ac_status); }; }; then
8892   ac_cv_c_inline=$ac_kw; break
8893 else
8894   echo "$as_me: failed program was:" >&5
8895 cat conftest.$ac_ext >&5
8896 fi
8897 rm -f conftest.$ac_objext conftest.$ac_ext
8898 done
8899
8900 fi
8901 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8902 echo "${ECHO_T}$ac_cv_c_inline" >&6
8903 case $ac_cv_c_inline in
8904   inline | yes) ;;
8905   no)
8906 cat >>confdefs.h <<\_ACEOF
8907 #define inline
8908 _ACEOF
8909  ;;
8910   *)  cat >>confdefs.h <<_ACEOF
8911 #define inline $ac_cv_c_inline
8912 _ACEOF
8913  ;;
8914 esac
8915
8916 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8917 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8918 if test "${ac_cv_c_stringize+set}" = set; then
8919   echo $ECHO_N "(cached) $ECHO_C" >&6
8920 else
8921   cat >conftest.$ac_ext <<_ACEOF
8922 #line $LINENO "configure"
8923 #include "confdefs.h"
8924 #define x(y) #y
8925
8926 char *s = x(teststring);
8927 _ACEOF
8928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8929   egrep "#teststring" >/dev/null 2>&1; then
8930   ac_cv_c_stringize=no
8931 else
8932   ac_cv_c_stringize=yes
8933 fi
8934 rm -f conftest*
8935
8936 fi
8937 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8938 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8939 if test $ac_cv_c_stringize = yes; then
8940
8941 cat >>confdefs.h <<\_ACEOF
8942 #define HAVE_STRINGIZE 1
8943 _ACEOF
8944
8945 fi
8946
8947 echo "$as_me:$LINENO: checking for signed types" >&5
8948 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
8949 if test "${pgac_cv_c_signed+set}" = set; then
8950   echo $ECHO_N "(cached) $ECHO_C" >&6
8951 else
8952   cat >conftest.$ac_ext <<_ACEOF
8953 #line $LINENO "configure"
8954 #include "confdefs.h"
8955
8956 #ifdef F77_DUMMY_MAIN
8957 #  ifdef __cplusplus
8958      extern "C"
8959 #  endif
8960    int F77_DUMMY_MAIN() { return 1; }
8961 #endif
8962 int
8963 main ()
8964 {
8965 signed char c; signed short s; signed int i;
8966   ;
8967   return 0;
8968 }
8969 _ACEOF
8970 rm -f conftest.$ac_objext
8971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8972   (eval $ac_compile) 2>&5
8973   ac_status=$?
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   (exit $ac_status); } &&
8976          { ac_try='test -s conftest.$ac_objext'
8977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978   (eval $ac_try) 2>&5
8979   ac_status=$?
8980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981   (exit $ac_status); }; }; then
8982   pgac_cv_c_signed=yes
8983 else
8984   echo "$as_me: failed program was:" >&5
8985 cat conftest.$ac_ext >&5
8986 pgac_cv_c_signed=no
8987 fi
8988 rm -f conftest.$ac_objext conftest.$ac_ext
8989 fi
8990 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
8991 echo "${ECHO_T}$pgac_cv_c_signed" >&6
8992 if test x"$pgac_cv_c_signed" = xno ; then
8993
8994 cat >>confdefs.h <<\_ACEOF
8995 #define signed
8996 _ACEOF
8997
8998 fi
8999 echo "$as_me:$LINENO: checking for working volatile" >&5
9000 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9001 if test "${ac_cv_c_volatile+set}" = set; then
9002   echo $ECHO_N "(cached) $ECHO_C" >&6
9003 else
9004   cat >conftest.$ac_ext <<_ACEOF
9005 #line $LINENO "configure"
9006 #include "confdefs.h"
9007
9008 #ifdef F77_DUMMY_MAIN
9009 #  ifdef __cplusplus
9010      extern "C"
9011 #  endif
9012    int F77_DUMMY_MAIN() { return 1; }
9013 #endif
9014 int
9015 main ()
9016 {
9017
9018 volatile int x;
9019 int * volatile y;
9020   ;
9021   return 0;
9022 }
9023 _ACEOF
9024 rm -f conftest.$ac_objext
9025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9026   (eval $ac_compile) 2>&5
9027   ac_status=$?
9028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029   (exit $ac_status); } &&
9030          { ac_try='test -s conftest.$ac_objext'
9031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9032   (eval $ac_try) 2>&5
9033   ac_status=$?
9034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035   (exit $ac_status); }; }; then
9036   ac_cv_c_volatile=yes
9037 else
9038   echo "$as_me: failed program was:" >&5
9039 cat conftest.$ac_ext >&5
9040 ac_cv_c_volatile=no
9041 fi
9042 rm -f conftest.$ac_objext conftest.$ac_ext
9043 fi
9044 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9045 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9046 if test $ac_cv_c_volatile = no; then
9047
9048 cat >>confdefs.h <<\_ACEOF
9049 #define volatile
9050 _ACEOF
9051
9052 fi
9053
9054 echo "$as_me:$LINENO: checking for __func__" >&5
9055 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9056 if test "${pgac_cv_funcname_func_support+set}" = set; then
9057   echo $ECHO_N "(cached) $ECHO_C" >&6
9058 else
9059   cat >conftest.$ac_ext <<_ACEOF
9060 #line $LINENO "configure"
9061 #include "confdefs.h"
9062 #include <stdio.h>
9063 #ifdef F77_DUMMY_MAIN
9064 #  ifdef __cplusplus
9065      extern "C"
9066 #  endif
9067    int F77_DUMMY_MAIN() { return 1; }
9068 #endif
9069 int
9070 main ()
9071 {
9072 printf("%s\n", __func__);
9073   ;
9074   return 0;
9075 }
9076 _ACEOF
9077 rm -f conftest.$ac_objext
9078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9079   (eval $ac_compile) 2>&5
9080   ac_status=$?
9081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082   (exit $ac_status); } &&
9083          { ac_try='test -s conftest.$ac_objext'
9084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9085   (eval $ac_try) 2>&5
9086   ac_status=$?
9087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088   (exit $ac_status); }; }; then
9089   pgac_cv_funcname_func_support=yes
9090 else
9091   echo "$as_me: failed program was:" >&5
9092 cat conftest.$ac_ext >&5
9093 pgac_cv_funcname_func_support=no
9094 fi
9095 rm -f conftest.$ac_objext conftest.$ac_ext
9096 fi
9097 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9098 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9099 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9100
9101 cat >>confdefs.h <<\_ACEOF
9102 #define HAVE_FUNCNAME__FUNC 1
9103 _ACEOF
9104
9105 else
9106 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9107 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9108 if test "${pgac_cv_funcname_function_support+set}" = set; then
9109   echo $ECHO_N "(cached) $ECHO_C" >&6
9110 else
9111   cat >conftest.$ac_ext <<_ACEOF
9112 #line $LINENO "configure"
9113 #include "confdefs.h"
9114 #include <stdio.h>
9115 #ifdef F77_DUMMY_MAIN
9116 #  ifdef __cplusplus
9117      extern "C"
9118 #  endif
9119    int F77_DUMMY_MAIN() { return 1; }
9120 #endif
9121 int
9122 main ()
9123 {
9124 printf("%s\n", __FUNCTION__);
9125   ;
9126   return 0;
9127 }
9128 _ACEOF
9129 rm -f conftest.$ac_objext
9130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9131   (eval $ac_compile) 2>&5
9132   ac_status=$?
9133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134   (exit $ac_status); } &&
9135          { ac_try='test -s conftest.$ac_objext'
9136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137   (eval $ac_try) 2>&5
9138   ac_status=$?
9139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140   (exit $ac_status); }; }; then
9141   pgac_cv_funcname_function_support=yes
9142 else
9143   echo "$as_me: failed program was:" >&5
9144 cat conftest.$ac_ext >&5
9145 pgac_cv_funcname_function_support=no
9146 fi
9147 rm -f conftest.$ac_objext conftest.$ac_ext
9148 fi
9149 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9150 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9151 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9152
9153 cat >>confdefs.h <<\_ACEOF
9154 #define HAVE_FUNCNAME__FUNCTION 1
9155 _ACEOF
9156
9157 fi
9158 fi
9159 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9160 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9161 if test "${ac_cv_struct_tm+set}" = set; then
9162   echo $ECHO_N "(cached) $ECHO_C" >&6
9163 else
9164   cat >conftest.$ac_ext <<_ACEOF
9165 #line $LINENO "configure"
9166 #include "confdefs.h"
9167 #include <sys/types.h>
9168 #include <time.h>
9169
9170 #ifdef F77_DUMMY_MAIN
9171 #  ifdef __cplusplus
9172      extern "C"
9173 #  endif
9174    int F77_DUMMY_MAIN() { return 1; }
9175 #endif
9176 int
9177 main ()
9178 {
9179 struct tm *tp; tp->tm_sec;
9180   ;
9181   return 0;
9182 }
9183 _ACEOF
9184 rm -f conftest.$ac_objext
9185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9186   (eval $ac_compile) 2>&5
9187   ac_status=$?
9188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189   (exit $ac_status); } &&
9190          { ac_try='test -s conftest.$ac_objext'
9191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9192   (eval $ac_try) 2>&5
9193   ac_status=$?
9194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195   (exit $ac_status); }; }; then
9196   ac_cv_struct_tm=time.h
9197 else
9198   echo "$as_me: failed program was:" >&5
9199 cat conftest.$ac_ext >&5
9200 ac_cv_struct_tm=sys/time.h
9201 fi
9202 rm -f conftest.$ac_objext conftest.$ac_ext
9203 fi
9204 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9205 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9206 if test $ac_cv_struct_tm = sys/time.h; then
9207
9208 cat >>confdefs.h <<\_ACEOF
9209 #define TM_IN_SYS_TIME 1
9210 _ACEOF
9211
9212 fi
9213
9214 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9215 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9216 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9217   echo $ECHO_N "(cached) $ECHO_C" >&6
9218 else
9219   cat >conftest.$ac_ext <<_ACEOF
9220 #line $LINENO "configure"
9221 #include "confdefs.h"
9222 #include <sys/types.h>
9223 #include <$ac_cv_struct_tm>
9224
9225
9226 #ifdef F77_DUMMY_MAIN
9227 #  ifdef __cplusplus
9228      extern "C"
9229 #  endif
9230    int F77_DUMMY_MAIN() { return 1; }
9231 #endif
9232 int
9233 main ()
9234 {
9235 static struct tm ac_aggr;
9236 if (ac_aggr.tm_zone)
9237 return 0;
9238   ;
9239   return 0;
9240 }
9241 _ACEOF
9242 rm -f conftest.$ac_objext
9243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9244   (eval $ac_compile) 2>&5
9245   ac_status=$?
9246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247   (exit $ac_status); } &&
9248          { ac_try='test -s conftest.$ac_objext'
9249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9250   (eval $ac_try) 2>&5
9251   ac_status=$?
9252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253   (exit $ac_status); }; }; then
9254   ac_cv_member_struct_tm_tm_zone=yes
9255 else
9256   echo "$as_me: failed program was:" >&5
9257 cat conftest.$ac_ext >&5
9258 ac_cv_member_struct_tm_tm_zone=no
9259 fi
9260 rm -f conftest.$ac_objext conftest.$ac_ext
9261 fi
9262 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9263 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9264 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9265
9266 cat >>confdefs.h <<_ACEOF
9267 #define HAVE_STRUCT_TM_TM_ZONE 1
9268 _ACEOF
9269
9270
9271 fi
9272
9273 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9274
9275 cat >>confdefs.h <<\_ACEOF
9276 #define HAVE_TM_ZONE 1
9277 _ACEOF
9278
9279 else
9280   echo "$as_me:$LINENO: checking for tzname" >&5
9281 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9282 if test "${ac_cv_var_tzname+set}" = set; then
9283   echo $ECHO_N "(cached) $ECHO_C" >&6
9284 else
9285   cat >conftest.$ac_ext <<_ACEOF
9286 #line $LINENO "configure"
9287 #include "confdefs.h"
9288 #include <time.h>
9289 #ifndef tzname /* For SGI.  */
9290 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9291 #endif
9292
9293 #ifdef F77_DUMMY_MAIN
9294 #  ifdef __cplusplus
9295      extern "C"
9296 #  endif
9297    int F77_DUMMY_MAIN() { return 1; }
9298 #endif
9299 int
9300 main ()
9301 {
9302 atoi(*tzname);
9303   ;
9304   return 0;
9305 }
9306 _ACEOF
9307 rm -f conftest.$ac_objext conftest$ac_exeext
9308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9309   (eval $ac_link) 2>&5
9310   ac_status=$?
9311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312   (exit $ac_status); } &&
9313          { ac_try='test -s conftest$ac_exeext'
9314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9315   (eval $ac_try) 2>&5
9316   ac_status=$?
9317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318   (exit $ac_status); }; }; then
9319   ac_cv_var_tzname=yes
9320 else
9321   echo "$as_me: failed program was:" >&5
9322 cat conftest.$ac_ext >&5
9323 ac_cv_var_tzname=no
9324 fi
9325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9326 fi
9327 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9328 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9329   if test $ac_cv_var_tzname = yes; then
9330
9331 cat >>confdefs.h <<\_ACEOF
9332 #define HAVE_TZNAME 1
9333 _ACEOF
9334
9335   fi
9336 fi
9337
9338 echo "$as_me:$LINENO: checking for union semun" >&5
9339 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9340 if test "${ac_cv_type_union_semun+set}" = set; then
9341   echo $ECHO_N "(cached) $ECHO_C" >&6
9342 else
9343   cat >conftest.$ac_ext <<_ACEOF
9344 #line $LINENO "configure"
9345 #include "confdefs.h"
9346 #include <sys/types.h>
9347 #include <sys/ipc.h>
9348 #include <sys/sem.h>
9349
9350 #ifdef F77_DUMMY_MAIN
9351 #  ifdef __cplusplus
9352      extern "C"
9353 #  endif
9354    int F77_DUMMY_MAIN() { return 1; }
9355 #endif
9356 int
9357 main ()
9358 {
9359 if ((union semun *) 0)
9360   return 0;
9361 if (sizeof (union semun))
9362   return 0;
9363   ;
9364   return 0;
9365 }
9366 _ACEOF
9367 rm -f conftest.$ac_objext
9368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9369   (eval $ac_compile) 2>&5
9370   ac_status=$?
9371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372   (exit $ac_status); } &&
9373          { ac_try='test -s conftest.$ac_objext'
9374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375   (eval $ac_try) 2>&5
9376   ac_status=$?
9377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378   (exit $ac_status); }; }; then
9379   ac_cv_type_union_semun=yes
9380 else
9381   echo "$as_me: failed program was:" >&5
9382 cat conftest.$ac_ext >&5
9383 ac_cv_type_union_semun=no
9384 fi
9385 rm -f conftest.$ac_objext conftest.$ac_ext
9386 fi
9387 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9388 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9389 if test $ac_cv_type_union_semun = yes; then
9390
9391 cat >>confdefs.h <<_ACEOF
9392 #define HAVE_UNION_SEMUN 1
9393 _ACEOF
9394
9395
9396 fi
9397
9398 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9399 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9400 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9401   echo $ECHO_N "(cached) $ECHO_C" >&6
9402 else
9403   cat >conftest.$ac_ext <<_ACEOF
9404 #line $LINENO "configure"
9405 #include "confdefs.h"
9406 #include <sys/types.h>
9407 #ifdef HAVE_SYS_UN_H
9408 #include <sys/un.h>
9409 #endif
9410
9411
9412 #ifdef F77_DUMMY_MAIN
9413 #  ifdef __cplusplus
9414      extern "C"
9415 #  endif
9416    int F77_DUMMY_MAIN() { return 1; }
9417 #endif
9418 int
9419 main ()
9420 {
9421 if ((struct sockaddr_un *) 0)
9422   return 0;
9423 if (sizeof (struct sockaddr_un))
9424   return 0;
9425   ;
9426   return 0;
9427 }
9428 _ACEOF
9429 rm -f conftest.$ac_objext
9430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9431   (eval $ac_compile) 2>&5
9432   ac_status=$?
9433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434   (exit $ac_status); } &&
9435          { ac_try='test -s conftest.$ac_objext'
9436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9437   (eval $ac_try) 2>&5
9438   ac_status=$?
9439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440   (exit $ac_status); }; }; then
9441   ac_cv_type_struct_sockaddr_un=yes
9442 else
9443   echo "$as_me: failed program was:" >&5
9444 cat conftest.$ac_ext >&5
9445 ac_cv_type_struct_sockaddr_un=no
9446 fi
9447 rm -f conftest.$ac_objext conftest.$ac_ext
9448 fi
9449 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9450 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9451 if test $ac_cv_type_struct_sockaddr_un = yes; then
9452
9453 cat >>confdefs.h <<_ACEOF
9454 #define HAVE_STRUCT_SOCKADDR_UN 1
9455 _ACEOF
9456
9457
9458 fi
9459
9460 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
9461 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
9462 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
9463   echo $ECHO_N "(cached) $ECHO_C" >&6
9464 else
9465   cat >conftest.$ac_ext <<_ACEOF
9466 #line $LINENO "configure"
9467 #include "confdefs.h"
9468 #include <sys/types.h>
9469 #include <sys/socket.h>
9470 #include <netdb.h>
9471
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 if ((struct addrinfo *) 0)
9483   return 0;
9484 if (sizeof (struct addrinfo))
9485   return 0;
9486   ;
9487   return 0;
9488 }
9489 _ACEOF
9490 rm -f conftest.$ac_objext
9491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9492   (eval $ac_compile) 2>&5
9493   ac_status=$?
9494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495   (exit $ac_status); } &&
9496          { ac_try='test -s conftest.$ac_objext'
9497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498   (eval $ac_try) 2>&5
9499   ac_status=$?
9500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501   (exit $ac_status); }; }; then
9502   ac_cv_type_struct_addrinfo=yes
9503 else
9504   echo "$as_me: failed program was:" >&5
9505 cat conftest.$ac_ext >&5
9506 ac_cv_type_struct_addrinfo=no
9507 fi
9508 rm -f conftest.$ac_objext conftest.$ac_ext
9509 fi
9510 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
9511 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
9512 if test $ac_cv_type_struct_addrinfo = yes; then
9513
9514 cat >>confdefs.h <<_ACEOF
9515 #define HAVE_STRUCT_ADDRINFO 1
9516 _ACEOF
9517
9518
9519 fi
9520
9521
9522 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
9523 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
9524 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
9525   echo $ECHO_N "(cached) $ECHO_C" >&6
9526 else
9527   cat >conftest.$ac_ext <<_ACEOF
9528 #line $LINENO "configure"
9529 #include "confdefs.h"
9530 #include <sys/param.h>
9531 #include <sys/socket.h>
9532 #include <sys/ucred.h>
9533
9534 #ifdef F77_DUMMY_MAIN
9535 #  ifdef __cplusplus
9536      extern "C"
9537 #  endif
9538    int F77_DUMMY_MAIN() { return 1; }
9539 #endif
9540 int
9541 main ()
9542 {
9543 if ((struct cmsgcred *) 0)
9544   return 0;
9545 if (sizeof (struct cmsgcred))
9546   return 0;
9547   ;
9548   return 0;
9549 }
9550 _ACEOF
9551 rm -f conftest.$ac_objext
9552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9553   (eval $ac_compile) 2>&5
9554   ac_status=$?
9555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556   (exit $ac_status); } &&
9557          { ac_try='test -s conftest.$ac_objext'
9558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559   (eval $ac_try) 2>&5
9560   ac_status=$?
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); }; }; then
9563   ac_cv_type_struct_cmsgcred=yes
9564 else
9565   echo "$as_me: failed program was:" >&5
9566 cat conftest.$ac_ext >&5
9567 ac_cv_type_struct_cmsgcred=no
9568 fi
9569 rm -f conftest.$ac_objext conftest.$ac_ext
9570 fi
9571 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9572 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9573 if test $ac_cv_type_struct_cmsgcred = yes; then
9574
9575 cat >>confdefs.h <<_ACEOF
9576 #define HAVE_STRUCT_CMSGCRED 1
9577 _ACEOF
9578
9579
9580 fi
9581 echo "$as_me:$LINENO: checking for struct fcred" >&5
9582 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9583 if test "${ac_cv_type_struct_fcred+set}" = set; then
9584   echo $ECHO_N "(cached) $ECHO_C" >&6
9585 else
9586   cat >conftest.$ac_ext <<_ACEOF
9587 #line $LINENO "configure"
9588 #include "confdefs.h"
9589 #include <sys/param.h>
9590 #include <sys/socket.h>
9591 #include <sys/ucred.h>
9592
9593 #ifdef F77_DUMMY_MAIN
9594 #  ifdef __cplusplus
9595      extern "C"
9596 #  endif
9597    int F77_DUMMY_MAIN() { return 1; }
9598 #endif
9599 int
9600 main ()
9601 {
9602 if ((struct fcred *) 0)
9603   return 0;
9604 if (sizeof (struct fcred))
9605   return 0;
9606   ;
9607   return 0;
9608 }
9609 _ACEOF
9610 rm -f conftest.$ac_objext
9611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9612   (eval $ac_compile) 2>&5
9613   ac_status=$?
9614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615   (exit $ac_status); } &&
9616          { ac_try='test -s conftest.$ac_objext'
9617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618   (eval $ac_try) 2>&5
9619   ac_status=$?
9620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621   (exit $ac_status); }; }; then
9622   ac_cv_type_struct_fcred=yes
9623 else
9624   echo "$as_me: failed program was:" >&5
9625 cat conftest.$ac_ext >&5
9626 ac_cv_type_struct_fcred=no
9627 fi
9628 rm -f conftest.$ac_objext conftest.$ac_ext
9629 fi
9630 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9631 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9632 if test $ac_cv_type_struct_fcred = yes; then
9633
9634 cat >>confdefs.h <<_ACEOF
9635 #define HAVE_STRUCT_FCRED 1
9636 _ACEOF
9637
9638
9639 fi
9640 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9641 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9642 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9643   echo $ECHO_N "(cached) $ECHO_C" >&6
9644 else
9645   cat >conftest.$ac_ext <<_ACEOF
9646 #line $LINENO "configure"
9647 #include "confdefs.h"
9648 #include <sys/param.h>
9649 #include <sys/socket.h>
9650 #include <sys/ucred.h>
9651
9652 #ifdef F77_DUMMY_MAIN
9653 #  ifdef __cplusplus
9654      extern "C"
9655 #  endif
9656    int F77_DUMMY_MAIN() { return 1; }
9657 #endif
9658 int
9659 main ()
9660 {
9661 if ((struct sockcred *) 0)
9662   return 0;
9663 if (sizeof (struct sockcred))
9664   return 0;
9665   ;
9666   return 0;
9667 }
9668 _ACEOF
9669 rm -f conftest.$ac_objext
9670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9671   (eval $ac_compile) 2>&5
9672   ac_status=$?
9673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674   (exit $ac_status); } &&
9675          { ac_try='test -s conftest.$ac_objext'
9676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677   (eval $ac_try) 2>&5
9678   ac_status=$?
9679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680   (exit $ac_status); }; }; then
9681   ac_cv_type_struct_sockcred=yes
9682 else
9683   echo "$as_me: failed program was:" >&5
9684 cat conftest.$ac_ext >&5
9685 ac_cv_type_struct_sockcred=no
9686 fi
9687 rm -f conftest.$ac_objext conftest.$ac_ext
9688 fi
9689 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9690 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9691 if test $ac_cv_type_struct_sockcred = yes; then
9692
9693 cat >>confdefs.h <<_ACEOF
9694 #define HAVE_STRUCT_SOCKCRED 1
9695 _ACEOF
9696
9697
9698 fi
9699
9700
9701 if test "$with_zlib" = yes; then
9702   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9703   # did not).  While we could work around the lack of z_streamp, it
9704   # seems unwise to encourage people to use such old zlib versions...
9705   echo "$as_me:$LINENO: checking for z_streamp" >&5
9706 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9707 if test "${ac_cv_type_z_streamp+set}" = set; then
9708   echo $ECHO_N "(cached) $ECHO_C" >&6
9709 else
9710   cat >conftest.$ac_ext <<_ACEOF
9711 #line $LINENO "configure"
9712 #include "confdefs.h"
9713 #include <zlib.h>
9714
9715 #ifdef F77_DUMMY_MAIN
9716 #  ifdef __cplusplus
9717      extern "C"
9718 #  endif
9719    int F77_DUMMY_MAIN() { return 1; }
9720 #endif
9721 int
9722 main ()
9723 {
9724 if ((z_streamp *) 0)
9725   return 0;
9726 if (sizeof (z_streamp))
9727   return 0;
9728   ;
9729   return 0;
9730 }
9731 _ACEOF
9732 rm -f conftest.$ac_objext
9733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9734   (eval $ac_compile) 2>&5
9735   ac_status=$?
9736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737   (exit $ac_status); } &&
9738          { ac_try='test -s conftest.$ac_objext'
9739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9740   (eval $ac_try) 2>&5
9741   ac_status=$?
9742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743   (exit $ac_status); }; }; then
9744   ac_cv_type_z_streamp=yes
9745 else
9746   echo "$as_me: failed program was:" >&5
9747 cat conftest.$ac_ext >&5
9748 ac_cv_type_z_streamp=no
9749 fi
9750 rm -f conftest.$ac_objext conftest.$ac_ext
9751 fi
9752 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9753 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9754 if test $ac_cv_type_z_streamp = yes; then
9755   :
9756 else
9757   { { echo "$as_me:$LINENO: error: zlib version is too old
9758 Use --without-zlib to disable zlib support." >&5
9759 echo "$as_me: error: zlib version is too old
9760 Use --without-zlib to disable zlib support." >&2;}
9761    { (exit 1); exit 1; }; }
9762 fi
9763
9764 fi
9765
9766 if test "$with_krb5" = yes; then
9767 # Check for differences between MIT and Heimdal (KTH) releases
9768   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9769 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9770 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9771   echo $ECHO_N "(cached) $ECHO_C" >&6
9772 else
9773   cat >conftest.$ac_ext <<_ACEOF
9774 #line $LINENO "configure"
9775 #include "confdefs.h"
9776 #include <krb5.h>
9777
9778 #ifdef F77_DUMMY_MAIN
9779 #  ifdef __cplusplus
9780      extern "C"
9781 #  endif
9782    int F77_DUMMY_MAIN() { return 1; }
9783 #endif
9784 int
9785 main ()
9786 {
9787 static krb5_ticket ac_aggr;
9788 if (ac_aggr.enc_part2)
9789 return 0;
9790   ;
9791   return 0;
9792 }
9793 _ACEOF
9794 rm -f conftest.$ac_objext
9795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9796   (eval $ac_compile) 2>&5
9797   ac_status=$?
9798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799   (exit $ac_status); } &&
9800          { ac_try='test -s conftest.$ac_objext'
9801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802   (eval $ac_try) 2>&5
9803   ac_status=$?
9804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805   (exit $ac_status); }; }; then
9806   ac_cv_member_krb5_ticket_enc_part2=yes
9807 else
9808   echo "$as_me: failed program was:" >&5
9809 cat conftest.$ac_ext >&5
9810 ac_cv_member_krb5_ticket_enc_part2=no
9811 fi
9812 rm -f conftest.$ac_objext conftest.$ac_ext
9813 fi
9814 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9815 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9816 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
9817
9818 cat >>confdefs.h <<_ACEOF
9819 #define HAVE_KRB5_TICKET_ENC_PART2 1
9820 _ACEOF
9821
9822
9823 else
9824   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9825 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9826 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9827   echo $ECHO_N "(cached) $ECHO_C" >&6
9828 else
9829   cat >conftest.$ac_ext <<_ACEOF
9830 #line $LINENO "configure"
9831 #include "confdefs.h"
9832 #include <krb5.h>
9833
9834 #ifdef F77_DUMMY_MAIN
9835 #  ifdef __cplusplus
9836      extern "C"
9837 #  endif
9838    int F77_DUMMY_MAIN() { return 1; }
9839 #endif
9840 int
9841 main ()
9842 {
9843 static krb5_ticket ac_aggr;
9844 if (ac_aggr.client)
9845 return 0;
9846   ;
9847   return 0;
9848 }
9849 _ACEOF
9850 rm -f conftest.$ac_objext
9851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9852   (eval $ac_compile) 2>&5
9853   ac_status=$?
9854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855   (exit $ac_status); } &&
9856          { ac_try='test -s conftest.$ac_objext'
9857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858   (eval $ac_try) 2>&5
9859   ac_status=$?
9860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861   (exit $ac_status); }; }; then
9862   ac_cv_member_krb5_ticket_client=yes
9863 else
9864   echo "$as_me: failed program was:" >&5
9865 cat conftest.$ac_ext >&5
9866 ac_cv_member_krb5_ticket_client=no
9867 fi
9868 rm -f conftest.$ac_objext conftest.$ac_ext
9869 fi
9870 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
9871 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
9872 if test $ac_cv_member_krb5_ticket_client = yes; then
9873
9874 cat >>confdefs.h <<_ACEOF
9875 #define HAVE_KRB5_TICKET_CLIENT 1
9876 _ACEOF
9877
9878
9879 else
9880   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
9881 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
9882    { (exit 1); exit 1; }; }
9883 fi
9884
9885 fi
9886
9887   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
9888 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
9889 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
9890   echo $ECHO_N "(cached) $ECHO_C" >&6
9891 else
9892   cat >conftest.$ac_ext <<_ACEOF
9893 #line $LINENO "configure"
9894 #include "confdefs.h"
9895 #include <krb5.h>
9896
9897 #ifdef F77_DUMMY_MAIN
9898 #  ifdef __cplusplus
9899      extern "C"
9900 #  endif
9901    int F77_DUMMY_MAIN() { return 1; }
9902 #endif
9903 int
9904 main ()
9905 {
9906 static krb5_error ac_aggr;
9907 if (ac_aggr.text.data)
9908 return 0;
9909   ;
9910   return 0;
9911 }
9912 _ACEOF
9913 rm -f conftest.$ac_objext
9914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9915   (eval $ac_compile) 2>&5
9916   ac_status=$?
9917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918   (exit $ac_status); } &&
9919          { ac_try='test -s conftest.$ac_objext'
9920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921   (eval $ac_try) 2>&5
9922   ac_status=$?
9923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924   (exit $ac_status); }; }; then
9925   ac_cv_member_krb5_error_text_data=yes
9926 else
9927   echo "$as_me: failed program was:" >&5
9928 cat conftest.$ac_ext >&5
9929 ac_cv_member_krb5_error_text_data=no
9930 fi
9931 rm -f conftest.$ac_objext conftest.$ac_ext
9932 fi
9933 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
9934 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
9935 if test $ac_cv_member_krb5_error_text_data = yes; then
9936
9937 cat >>confdefs.h <<_ACEOF
9938 #define HAVE_KRB5_ERROR_TEXT_DATA 1
9939 _ACEOF
9940
9941
9942 else
9943   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
9944 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
9945 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
9946   echo $ECHO_N "(cached) $ECHO_C" >&6
9947 else
9948   cat >conftest.$ac_ext <<_ACEOF
9949 #line $LINENO "configure"
9950 #include "confdefs.h"
9951 #include <krb5.h>
9952
9953 #ifdef F77_DUMMY_MAIN
9954 #  ifdef __cplusplus
9955      extern "C"
9956 #  endif
9957    int F77_DUMMY_MAIN() { return 1; }
9958 #endif
9959 int
9960 main ()
9961 {
9962 static krb5_error ac_aggr;
9963 if (ac_aggr.e_data)
9964 return 0;
9965   ;
9966   return 0;
9967 }
9968 _ACEOF
9969 rm -f conftest.$ac_objext
9970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9971   (eval $ac_compile) 2>&5
9972   ac_status=$?
9973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974   (exit $ac_status); } &&
9975          { ac_try='test -s conftest.$ac_objext'
9976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977   (eval $ac_try) 2>&5
9978   ac_status=$?
9979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980   (exit $ac_status); }; }; then
9981   ac_cv_member_krb5_error_e_data=yes
9982 else
9983   echo "$as_me: failed program was:" >&5
9984 cat conftest.$ac_ext >&5
9985 ac_cv_member_krb5_error_e_data=no
9986 fi
9987 rm -f conftest.$ac_objext conftest.$ac_ext
9988 fi
9989 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
9990 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
9991 if test $ac_cv_member_krb5_error_e_data = yes; then
9992
9993 cat >>confdefs.h <<_ACEOF
9994 #define HAVE_KRB5_ERROR_E_DATA 1
9995 _ACEOF
9996
9997
9998 else
9999   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10000 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10001    { (exit 1); exit 1; }; }
10002 fi
10003
10004 fi
10005
10006 fi
10007
10008
10009 ##
10010 ## Functions, global variables
10011 ##
10012
10013 echo "$as_me:$LINENO: checking for int timezone" >&5
10014 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10015 if test "${pgac_cv_var_int_timezone+set}" = set; then
10016   echo $ECHO_N "(cached) $ECHO_C" >&6
10017 else
10018   cat >conftest.$ac_ext <<_ACEOF
10019 #line $LINENO "configure"
10020 #include "confdefs.h"
10021 #include <time.h>
10022 int res;
10023 #ifdef F77_DUMMY_MAIN
10024 #  ifdef __cplusplus
10025      extern "C"
10026 #  endif
10027    int F77_DUMMY_MAIN() { return 1; }
10028 #endif
10029 int
10030 main ()
10031 {
10032 res = timezone / 60;
10033   ;
10034   return 0;
10035 }
10036 _ACEOF
10037 rm -f conftest.$ac_objext conftest$ac_exeext
10038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10039   (eval $ac_link) 2>&5
10040   ac_status=$?
10041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042   (exit $ac_status); } &&
10043          { ac_try='test -s conftest$ac_exeext'
10044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045   (eval $ac_try) 2>&5
10046   ac_status=$?
10047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048   (exit $ac_status); }; }; then
10049   pgac_cv_var_int_timezone=yes
10050 else
10051   echo "$as_me: failed program was:" >&5
10052 cat conftest.$ac_ext >&5
10053 pgac_cv_var_int_timezone=no
10054 fi
10055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10056 fi
10057 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10058 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10059 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10060
10061 cat >>confdefs.h <<\_ACEOF
10062 #define HAVE_INT_TIMEZONE
10063 _ACEOF
10064
10065 fi
10066 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10067 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10068  if test "${ac_cv_func_accept_arg1+set}" = set; then
10069   echo $ECHO_N "(cached) $ECHO_C" >&6
10070 else
10071    if test "${ac_cv_func_accept_arg2+set}" = set; then
10072   echo $ECHO_N "(cached) $ECHO_C" >&6
10073 else
10074     if test "${ac_cv_func_accept_arg3+set}" = set; then
10075   echo $ECHO_N "(cached) $ECHO_C" >&6
10076 else
10077      for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10078      for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10079       for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10080        cat >conftest.$ac_ext <<_ACEOF
10081 #line $LINENO "configure"
10082 #include "confdefs.h"
10083 #ifdef HAVE_SYS_TYPES_H
10084 #include <sys/types.h>
10085 #endif
10086 #ifdef HAVE_SYS_SOCKET_H
10087 #include <sys/socket.h>
10088 #endif
10089 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10090 #ifdef F77_DUMMY_MAIN
10091 #  ifdef __cplusplus
10092      extern "C"
10093 #  endif
10094    int F77_DUMMY_MAIN() { return 1; }
10095 #endif
10096 int
10097 main ()
10098 {
10099
10100   ;
10101   return 0;
10102 }
10103 _ACEOF
10104 rm -f conftest.$ac_objext
10105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10106   (eval $ac_compile) 2>&5
10107   ac_status=$?
10108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109   (exit $ac_status); } &&
10110          { ac_try='test -s conftest.$ac_objext'
10111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112   (eval $ac_try) 2>&5
10113   ac_status=$?
10114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115   (exit $ac_status); }; }; then
10116   ac_not_found=no; break 3
10117 else
10118   echo "$as_me: failed program was:" >&5
10119 cat conftest.$ac_ext >&5
10120 ac_not_found=yes
10121 fi
10122 rm -f conftest.$ac_objext conftest.$ac_ext
10123       done
10124      done
10125     done
10126     if test "$ac_not_found" = yes; then
10127       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10128 echo "$as_me: error: could not determine argument types" >&2;}
10129    { (exit 1); exit 1; }; }
10130     fi
10131     if test "$ac_cv_func_accept_arg3" = "void"; then
10132       ac_cv_func_accept_arg3=int
10133     fi
10134
10135 fi
10136
10137 fi
10138
10139 fi
10140  echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10141 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10142
10143 cat >>confdefs.h <<_ACEOF
10144 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10145 _ACEOF
10146
10147
10148 cat >>confdefs.h <<_ACEOF
10149 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10150 _ACEOF
10151
10152
10153 cat >>confdefs.h <<_ACEOF
10154 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10155 _ACEOF
10156
10157
10158 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10159 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10160 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10161   echo $ECHO_N "(cached) $ECHO_C" >&6
10162 else
10163   cat >conftest.$ac_ext <<_ACEOF
10164 #line $LINENO "configure"
10165 #include "confdefs.h"
10166 #include <sys/time.h>
10167 #ifdef F77_DUMMY_MAIN
10168 #  ifdef __cplusplus
10169      extern "C"
10170 #  endif
10171    int F77_DUMMY_MAIN() { return 1; }
10172 #endif
10173 int
10174 main ()
10175 {
10176 struct timeval *tp;
10177 struct timezone *tzp;
10178 gettimeofday(tp,tzp);
10179   ;
10180   return 0;
10181 }
10182 _ACEOF
10183 rm -f conftest.$ac_objext
10184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10185   (eval $ac_compile) 2>&5
10186   ac_status=$?
10187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188   (exit $ac_status); } &&
10189          { ac_try='test -s conftest.$ac_objext'
10190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191   (eval $ac_try) 2>&5
10192   ac_status=$?
10193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194   (exit $ac_status); }; }; then
10195   pgac_cv_func_gettimeofday_1arg=no
10196 else
10197   echo "$as_me: failed program was:" >&5
10198 cat conftest.$ac_ext >&5
10199 pgac_cv_func_gettimeofday_1arg=yes
10200 fi
10201 rm -f conftest.$ac_objext conftest.$ac_ext
10202 fi
10203 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10204 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10205 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10206
10207 cat >>confdefs.h <<\_ACEOF
10208 #define GETTIMEOFDAY_1ARG
10209 _ACEOF
10210
10211 fi
10212
10213
10214
10215 # SunOS doesn't handle negative byte comparisons properly with +/- return
10216 echo "$as_me:$LINENO: checking for working memcmp" >&5
10217 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10218 if test "${ac_cv_func_memcmp_working+set}" = set; then
10219   echo $ECHO_N "(cached) $ECHO_C" >&6
10220 else
10221   if test "$cross_compiling" = yes; then
10222   ac_cv_func_memcmp_working=no
10223 else
10224   cat >conftest.$ac_ext <<_ACEOF
10225 #line $LINENO "configure"
10226 #include "confdefs.h"
10227
10228 #ifdef F77_DUMMY_MAIN
10229 #  ifdef __cplusplus
10230      extern "C"
10231 #  endif
10232    int F77_DUMMY_MAIN() { return 1; }
10233 #endif
10234 int
10235 main ()
10236 {
10237
10238   /* Some versions of memcmp are not 8-bit clean.  */
10239   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10240   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10241     exit (1);
10242
10243   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10244      or more and with at least one buffer not starting on a 4-byte boundary.
10245      William Lewis provided this test program.   */
10246   {
10247     char foo[21];
10248     char bar[21];
10249     int i;
10250     for (i = 0; i < 4; i++)
10251       {
10252         char *a = foo + i;
10253         char *b = bar + i;
10254         strcpy (a, "--------01111111");
10255         strcpy (b, "--------10000000");
10256         if (memcmp (a, b, 16) >= 0)
10257           exit (1);
10258       }
10259     exit (0);
10260   }
10261
10262   ;
10263   return 0;
10264 }
10265 _ACEOF
10266 rm -f conftest$ac_exeext
10267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10268   (eval $ac_link) 2>&5
10269   ac_status=$?
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273   (eval $ac_try) 2>&5
10274   ac_status=$?
10275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276   (exit $ac_status); }; }; then
10277   ac_cv_func_memcmp_working=yes
10278 else
10279   echo "$as_me: program exited with status $ac_status" >&5
10280 echo "$as_me: failed program was:" >&5
10281 cat conftest.$ac_ext >&5
10282 ( exit $ac_status )
10283 ac_cv_func_memcmp_working=no
10284 fi
10285 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10286 fi
10287 fi
10288 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10289 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10290 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask sysconf utime utimes waitpid
10309 do
10310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10311 echo "$as_me:$LINENO: checking for $ac_func" >&5
10312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10313 if eval "test \"\${$as_ac_var+set}\" = set"; then
10314   echo $ECHO_N "(cached) $ECHO_C" >&6
10315 else
10316   cat >conftest.$ac_ext <<_ACEOF
10317 #line $LINENO "configure"
10318 #include "confdefs.h"
10319 /* System header to define __stub macros and hopefully few prototypes,
10320     which can conflict with char $ac_func (); below.  */
10321 #include <assert.h>
10322 /* Override any gcc2 internal prototype to avoid an error.  */
10323 #ifdef __cplusplus
10324 extern "C"
10325 #endif
10326 /* We use char because int might match the return type of a gcc2
10327    builtin and then its argument prototype would still apply.  */
10328 char $ac_func ();
10329 char (*f) ();
10330
10331 #ifdef F77_DUMMY_MAIN
10332 #  ifdef __cplusplus
10333      extern "C"
10334 #  endif
10335    int F77_DUMMY_MAIN() { return 1; }
10336 #endif
10337 int
10338 main ()
10339 {
10340 /* The GNU C library defines this for functions which it implements
10341     to always fail with ENOSYS.  Some functions are actually named
10342     something starting with __ and the normal name is an alias.  */
10343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10344 choke me
10345 #else
10346 f = $ac_func;
10347 #endif
10348
10349   ;
10350   return 0;
10351 }
10352 _ACEOF
10353 rm -f conftest.$ac_objext conftest$ac_exeext
10354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10355   (eval $ac_link) 2>&5
10356   ac_status=$?
10357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358   (exit $ac_status); } &&
10359          { ac_try='test -s conftest$ac_exeext'
10360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361   (eval $ac_try) 2>&5
10362   ac_status=$?
10363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364   (exit $ac_status); }; }; then
10365   eval "$as_ac_var=yes"
10366 else
10367   echo "$as_me: failed program was:" >&5
10368 cat conftest.$ac_ext >&5
10369 eval "$as_ac_var=no"
10370 fi
10371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10372 fi
10373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10374 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10375 if test `eval echo '${'$as_ac_var'}'` = yes; then
10376   cat >>confdefs.h <<_ACEOF
10377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10378 _ACEOF
10379
10380 fi
10381 done
10382
10383
10384 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10385 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10386 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10387   echo $ECHO_N "(cached) $ECHO_C" >&6
10388 else
10389   cat >conftest.$ac_ext <<_ACEOF
10390 #line $LINENO "configure"
10391 #include "confdefs.h"
10392 #include <unistd.h>
10393
10394 #ifdef F77_DUMMY_MAIN
10395 #  ifdef __cplusplus
10396      extern "C"
10397 #  endif
10398    int F77_DUMMY_MAIN() { return 1; }
10399 #endif
10400 int
10401 main ()
10402 {
10403 #ifndef fdatasync
10404   char *p = (char *) fdatasync;
10405 #endif
10406
10407   ;
10408   return 0;
10409 }
10410 _ACEOF
10411 rm -f conftest.$ac_objext
10412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10413   (eval $ac_compile) 2>&5
10414   ac_status=$?
10415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416   (exit $ac_status); } &&
10417          { ac_try='test -s conftest.$ac_objext'
10418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419   (eval $ac_try) 2>&5
10420   ac_status=$?
10421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422   (exit $ac_status); }; }; then
10423   ac_cv_have_decl_fdatasync=yes
10424 else
10425   echo "$as_me: failed program was:" >&5
10426 cat conftest.$ac_ext >&5
10427 ac_cv_have_decl_fdatasync=no
10428 fi
10429 rm -f conftest.$ac_objext conftest.$ac_ext
10430 fi
10431 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10432 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10433 if test $ac_cv_have_decl_fdatasync = yes; then
10434
10435 cat >>confdefs.h <<_ACEOF
10436 #define HAVE_DECL_FDATASYNC 1
10437 _ACEOF
10438
10439
10440 else
10441   cat >>confdefs.h <<_ACEOF
10442 #define HAVE_DECL_FDATASYNC 0
10443 _ACEOF
10444
10445
10446 fi
10447
10448
10449
10450 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
10451 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
10452 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
10453   echo $ECHO_N "(cached) $ECHO_C" >&6
10454 else
10455   cat >conftest.$ac_ext <<_ACEOF
10456 #line $LINENO "configure"
10457 #include "confdefs.h"
10458 $ac_includes_default
10459 #include <netinet/in.h>
10460
10461 #ifdef F77_DUMMY_MAIN
10462 #  ifdef __cplusplus
10463      extern "C"
10464 #  endif
10465    int F77_DUMMY_MAIN() { return 1; }
10466 #endif
10467 int
10468 main ()
10469 {
10470 if ((struct sockaddr_in6 *) 0)
10471   return 0;
10472 if (sizeof (struct sockaddr_in6))
10473   return 0;
10474   ;
10475   return 0;
10476 }
10477 _ACEOF
10478 rm -f conftest.$ac_objext
10479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10480   (eval $ac_compile) 2>&5
10481   ac_status=$?
10482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483   (exit $ac_status); } &&
10484          { ac_try='test -s conftest.$ac_objext'
10485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486   (eval $ac_try) 2>&5
10487   ac_status=$?
10488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489   (exit $ac_status); }; }; then
10490   ac_cv_type_struct_sockaddr_in6=yes
10491 else
10492   echo "$as_me: failed program was:" >&5
10493 cat conftest.$ac_ext >&5
10494 ac_cv_type_struct_sockaddr_in6=no
10495 fi
10496 rm -f conftest.$ac_objext conftest.$ac_ext
10497 fi
10498 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
10499 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
10500 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
10501   echo "$as_me:$LINENO: checking for inet_ntop" >&5
10502 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
10503 if test "${ac_cv_func_inet_ntop+set}" = set; then
10504   echo $ECHO_N "(cached) $ECHO_C" >&6
10505 else
10506   cat >conftest.$ac_ext <<_ACEOF
10507 #line $LINENO "configure"
10508 #include "confdefs.h"
10509 /* System header to define __stub macros and hopefully few prototypes,
10510     which can conflict with char inet_ntop (); below.  */
10511 #include <assert.h>
10512 /* Override any gcc2 internal prototype to avoid an error.  */
10513 #ifdef __cplusplus
10514 extern "C"
10515 #endif
10516 /* We use char because int might match the return type of a gcc2
10517    builtin and then its argument prototype would still apply.  */
10518 char inet_ntop ();
10519 char (*f) ();
10520
10521 #ifdef F77_DUMMY_MAIN
10522 #  ifdef __cplusplus
10523      extern "C"
10524 #  endif
10525    int F77_DUMMY_MAIN() { return 1; }
10526 #endif
10527 int
10528 main ()
10529 {
10530 /* The GNU C library defines this for functions which it implements
10531     to always fail with ENOSYS.  Some functions are actually named
10532     something starting with __ and the normal name is an alias.  */
10533 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
10534 choke me
10535 #else
10536 f = inet_ntop;
10537 #endif
10538
10539   ;
10540   return 0;
10541 }
10542 _ACEOF
10543 rm -f conftest.$ac_objext conftest$ac_exeext
10544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10545   (eval $ac_link) 2>&5
10546   ac_status=$?
10547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548   (exit $ac_status); } &&
10549          { ac_try='test -s conftest$ac_exeext'
10550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10551   (eval $ac_try) 2>&5
10552   ac_status=$?
10553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554   (exit $ac_status); }; }; then
10555   ac_cv_func_inet_ntop=yes
10556 else
10557   echo "$as_me: failed program was:" >&5
10558 cat conftest.$ac_ext >&5
10559 ac_cv_func_inet_ntop=no
10560 fi
10561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10562 fi
10563 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
10564 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
10565 if test $ac_cv_func_inet_ntop = yes; then
10566
10567 cat >>confdefs.h <<\_ACEOF
10568 #define HAVE_IPV6 1
10569 _ACEOF
10570
10571 fi
10572
10573 fi
10574
10575
10576 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
10577 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
10578 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
10579   echo $ECHO_N "(cached) $ECHO_C" >&6
10580 else
10581   cat >conftest.$ac_ext <<_ACEOF
10582 #line $LINENO "configure"
10583 #include "confdefs.h"
10584 #include <machine/vmparam.h>
10585 #include <sys/exec.h>
10586
10587 #ifdef F77_DUMMY_MAIN
10588 #  ifdef __cplusplus
10589      extern "C"
10590 #  endif
10591    int F77_DUMMY_MAIN() { return 1; }
10592 #endif
10593 int
10594 main ()
10595 {
10596 PS_STRINGS->ps_nargvstr = 1;
10597 PS_STRINGS->ps_argvstr = "foo";
10598   ;
10599   return 0;
10600 }
10601 _ACEOF
10602 rm -f conftest.$ac_objext conftest$ac_exeext
10603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10604   (eval $ac_link) 2>&5
10605   ac_status=$?
10606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607   (exit $ac_status); } &&
10608          { ac_try='test -s conftest$ac_exeext'
10609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610   (eval $ac_try) 2>&5
10611   ac_status=$?
10612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613   (exit $ac_status); }; }; then
10614   pgac_cv_var_PS_STRINGS=yes
10615 else
10616   echo "$as_me: failed program was:" >&5
10617 cat conftest.$ac_ext >&5
10618 pgac_cv_var_PS_STRINGS=no
10619 fi
10620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10621 fi
10622 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
10623 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
10624 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
10625
10626 cat >>confdefs.h <<\_ACEOF
10627 #define HAVE_PS_STRINGS
10628 _ACEOF
10629
10630 fi
10631
10632
10633 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
10634 # is missing.  Yes, there are machines that have only one.  We may
10635 # also decide to use snprintf.c if snprintf() is present but does not
10636 # have working "long long int" support -- see below.
10637
10638 pgac_need_repl_snprintf=no
10639
10640 for ac_func in snprintf
10641 do
10642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10643 echo "$as_me:$LINENO: checking for $ac_func" >&5
10644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10645 if eval "test \"\${$as_ac_var+set}\" = set"; then
10646   echo $ECHO_N "(cached) $ECHO_C" >&6
10647 else
10648   cat >conftest.$ac_ext <<_ACEOF
10649 #line $LINENO "configure"
10650 #include "confdefs.h"
10651 /* System header to define __stub macros and hopefully few prototypes,
10652     which can conflict with char $ac_func (); below.  */
10653 #include <assert.h>
10654 /* Override any gcc2 internal prototype to avoid an error.  */
10655 #ifdef __cplusplus
10656 extern "C"
10657 #endif
10658 /* We use char because int might match the return type of a gcc2
10659    builtin and then its argument prototype would still apply.  */
10660 char $ac_func ();
10661 char (*f) ();
10662
10663 #ifdef F77_DUMMY_MAIN
10664 #  ifdef __cplusplus
10665      extern "C"
10666 #  endif
10667    int F77_DUMMY_MAIN() { return 1; }
10668 #endif
10669 int
10670 main ()
10671 {
10672 /* The GNU C library defines this for functions which it implements
10673     to always fail with ENOSYS.  Some functions are actually named
10674     something starting with __ and the normal name is an alias.  */
10675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10676 choke me
10677 #else
10678 f = $ac_func;
10679 #endif
10680
10681   ;
10682   return 0;
10683 }
10684 _ACEOF
10685 rm -f conftest.$ac_objext conftest$ac_exeext
10686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10687   (eval $ac_link) 2>&5
10688   ac_status=$?
10689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690   (exit $ac_status); } &&
10691          { ac_try='test -s conftest$ac_exeext'
10692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693   (eval $ac_try) 2>&5
10694   ac_status=$?
10695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696   (exit $ac_status); }; }; then
10697   eval "$as_ac_var=yes"
10698 else
10699   echo "$as_me: failed program was:" >&5
10700 cat conftest.$ac_ext >&5
10701 eval "$as_ac_var=no"
10702 fi
10703 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10704 fi
10705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10706 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10707 if test `eval echo '${'$as_ac_var'}'` = yes; then
10708   cat >>confdefs.h <<_ACEOF
10709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10710 _ACEOF
10711
10712 else
10713   pgac_need_repl_snprintf=yes
10714 fi
10715 done
10716
10717
10718 for ac_func in vsnprintf
10719 do
10720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10721 echo "$as_me:$LINENO: checking for $ac_func" >&5
10722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10723 if eval "test \"\${$as_ac_var+set}\" = set"; then
10724   echo $ECHO_N "(cached) $ECHO_C" >&6
10725 else
10726   cat >conftest.$ac_ext <<_ACEOF
10727 #line $LINENO "configure"
10728 #include "confdefs.h"
10729 /* System header to define __stub macros and hopefully few prototypes,
10730     which can conflict with char $ac_func (); below.  */
10731 #include <assert.h>
10732 /* Override any gcc2 internal prototype to avoid an error.  */
10733 #ifdef __cplusplus
10734 extern "C"
10735 #endif
10736 /* We use char because int might match the return type of a gcc2
10737    builtin and then its argument prototype would still apply.  */
10738 char $ac_func ();
10739 char (*f) ();
10740
10741 #ifdef F77_DUMMY_MAIN
10742 #  ifdef __cplusplus
10743      extern "C"
10744 #  endif
10745    int F77_DUMMY_MAIN() { return 1; }
10746 #endif
10747 int
10748 main ()
10749 {
10750 /* The GNU C library defines this for functions which it implements
10751     to always fail with ENOSYS.  Some functions are actually named
10752     something starting with __ and the normal name is an alias.  */
10753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10754 choke me
10755 #else
10756 f = $ac_func;
10757 #endif
10758
10759   ;
10760   return 0;
10761 }
10762 _ACEOF
10763 rm -f conftest.$ac_objext conftest$ac_exeext
10764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10765   (eval $ac_link) 2>&5
10766   ac_status=$?
10767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768   (exit $ac_status); } &&
10769          { ac_try='test -s conftest$ac_exeext'
10770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771   (eval $ac_try) 2>&5
10772   ac_status=$?
10773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774   (exit $ac_status); }; }; then
10775   eval "$as_ac_var=yes"
10776 else
10777   echo "$as_me: failed program was:" >&5
10778 cat conftest.$ac_ext >&5
10779 eval "$as_ac_var=no"
10780 fi
10781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10782 fi
10783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10785 if test `eval echo '${'$as_ac_var'}'` = yes; then
10786   cat >>confdefs.h <<_ACEOF
10787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10788 _ACEOF
10789
10790 else
10791   pgac_need_repl_snprintf=yes
10792 fi
10793 done
10794
10795
10796
10797 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10798 # include/c.h will provide declarations.  Note this is a separate test
10799 # from whether the functions exist in the C library --- there are
10800 # systems that have the functions but don't bother to declare them :-(
10801
10802 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10803 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10804 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10805   echo $ECHO_N "(cached) $ECHO_C" >&6
10806 else
10807   cat >conftest.$ac_ext <<_ACEOF
10808 #line $LINENO "configure"
10809 #include "confdefs.h"
10810 $ac_includes_default
10811 #ifdef F77_DUMMY_MAIN
10812 #  ifdef __cplusplus
10813      extern "C"
10814 #  endif
10815    int F77_DUMMY_MAIN() { return 1; }
10816 #endif
10817 int
10818 main ()
10819 {
10820 #ifndef snprintf
10821   char *p = (char *) snprintf;
10822 #endif
10823
10824   ;
10825   return 0;
10826 }
10827 _ACEOF
10828 rm -f conftest.$ac_objext
10829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10830   (eval $ac_compile) 2>&5
10831   ac_status=$?
10832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833   (exit $ac_status); } &&
10834          { ac_try='test -s conftest.$ac_objext'
10835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10836   (eval $ac_try) 2>&5
10837   ac_status=$?
10838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839   (exit $ac_status); }; }; then
10840   ac_cv_have_decl_snprintf=yes
10841 else
10842   echo "$as_me: failed program was:" >&5
10843 cat conftest.$ac_ext >&5
10844 ac_cv_have_decl_snprintf=no
10845 fi
10846 rm -f conftest.$ac_objext conftest.$ac_ext
10847 fi
10848 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10849 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10850 if test $ac_cv_have_decl_snprintf = yes; then
10851
10852 cat >>confdefs.h <<_ACEOF
10853 #define HAVE_DECL_SNPRINTF 1
10854 _ACEOF
10855
10856
10857 else
10858   cat >>confdefs.h <<_ACEOF
10859 #define HAVE_DECL_SNPRINTF 0
10860 _ACEOF
10861
10862
10863 fi
10864 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10865 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10866 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10867   echo $ECHO_N "(cached) $ECHO_C" >&6
10868 else
10869   cat >conftest.$ac_ext <<_ACEOF
10870 #line $LINENO "configure"
10871 #include "confdefs.h"
10872 $ac_includes_default
10873 #ifdef F77_DUMMY_MAIN
10874 #  ifdef __cplusplus
10875      extern "C"
10876 #  endif
10877    int F77_DUMMY_MAIN() { return 1; }
10878 #endif
10879 int
10880 main ()
10881 {
10882 #ifndef vsnprintf
10883   char *p = (char *) vsnprintf;
10884 #endif
10885
10886   ;
10887   return 0;
10888 }
10889 _ACEOF
10890 rm -f conftest.$ac_objext
10891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10892   (eval $ac_compile) 2>&5
10893   ac_status=$?
10894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895   (exit $ac_status); } &&
10896          { ac_try='test -s conftest.$ac_objext'
10897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10898   (eval $ac_try) 2>&5
10899   ac_status=$?
10900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901   (exit $ac_status); }; }; then
10902   ac_cv_have_decl_vsnprintf=yes
10903 else
10904   echo "$as_me: failed program was:" >&5
10905 cat conftest.$ac_ext >&5
10906 ac_cv_have_decl_vsnprintf=no
10907 fi
10908 rm -f conftest.$ac_objext conftest.$ac_ext
10909 fi
10910 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10911 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10912 if test $ac_cv_have_decl_vsnprintf = yes; then
10913
10914 cat >>confdefs.h <<_ACEOF
10915 #define HAVE_DECL_VSNPRINTF 1
10916 _ACEOF
10917
10918
10919 else
10920   cat >>confdefs.h <<_ACEOF
10921 #define HAVE_DECL_VSNPRINTF 0
10922 _ACEOF
10923
10924
10925 fi
10926
10927
10928
10929
10930 # do this one the hard way in case isinf() is a macro
10931 echo "$as_me:$LINENO: checking for isinf" >&5
10932 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10933 if test "${ac_cv_func_isinf+set}" = set; then
10934   echo $ECHO_N "(cached) $ECHO_C" >&6
10935 else
10936   cat >conftest.$ac_ext <<_ACEOF
10937 #line $LINENO "configure"
10938 #include "confdefs.h"
10939 #include <math.h>
10940
10941 #ifdef F77_DUMMY_MAIN
10942 #  ifdef __cplusplus
10943      extern "C"
10944 #  endif
10945    int F77_DUMMY_MAIN() { return 1; }
10946 #endif
10947 int
10948 main ()
10949 {
10950 double x = 0.0; int res = isinf(x);
10951   ;
10952   return 0;
10953 }
10954 _ACEOF
10955 rm -f conftest.$ac_objext conftest$ac_exeext
10956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10957   (eval $ac_link) 2>&5
10958   ac_status=$?
10959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960   (exit $ac_status); } &&
10961          { ac_try='test -s conftest$ac_exeext'
10962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10963   (eval $ac_try) 2>&5
10964   ac_status=$?
10965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966   (exit $ac_status); }; }; then
10967   ac_cv_func_isinf=yes
10968 else
10969   echo "$as_me: failed program was:" >&5
10970 cat conftest.$ac_ext >&5
10971 ac_cv_func_isinf=no
10972 fi
10973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10974 fi
10975 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10976 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10977
10978 if test $ac_cv_func_isinf = yes ; then
10979
10980 cat >>confdefs.h <<\_ACEOF
10981 #define HAVE_ISINF 1
10982 _ACEOF
10983
10984 else
10985   LIBOBJS="$LIBOBJS isinf.$ac_objext"
10986   # Look for a way to implement a substitute for isinf()
10987
10988
10989
10990
10991 for ac_func in fpclass fp_class fp_class_d class
10992 do
10993 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10994 echo "$as_me:$LINENO: checking for $ac_func" >&5
10995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10996 if eval "test \"\${$as_ac_var+set}\" = set"; then
10997   echo $ECHO_N "(cached) $ECHO_C" >&6
10998 else
10999   cat >conftest.$ac_ext <<_ACEOF
11000 #line $LINENO "configure"
11001 #include "confdefs.h"
11002 /* System header to define __stub macros and hopefully few prototypes,
11003     which can conflict with char $ac_func (); below.  */
11004 #include <assert.h>
11005 /* Override any gcc2 internal prototype to avoid an error.  */
11006 #ifdef __cplusplus
11007 extern "C"
11008 #endif
11009 /* We use char because int might match the return type of a gcc2
11010    builtin and then its argument prototype would still apply.  */
11011 char $ac_func ();
11012 char (*f) ();
11013
11014 #ifdef F77_DUMMY_MAIN
11015 #  ifdef __cplusplus
11016      extern "C"
11017 #  endif
11018    int F77_DUMMY_MAIN() { return 1; }
11019 #endif
11020 int
11021 main ()
11022 {
11023 /* The GNU C library defines this for functions which it implements
11024     to always fail with ENOSYS.  Some functions are actually named
11025     something starting with __ and the normal name is an alias.  */
11026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11027 choke me
11028 #else
11029 f = $ac_func;
11030 #endif
11031
11032   ;
11033   return 0;
11034 }
11035 _ACEOF
11036 rm -f conftest.$ac_objext conftest$ac_exeext
11037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11038   (eval $ac_link) 2>&5
11039   ac_status=$?
11040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041   (exit $ac_status); } &&
11042          { ac_try='test -s conftest$ac_exeext'
11043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044   (eval $ac_try) 2>&5
11045   ac_status=$?
11046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047   (exit $ac_status); }; }; then
11048   eval "$as_ac_var=yes"
11049 else
11050   echo "$as_me: failed program was:" >&5
11051 cat conftest.$ac_ext >&5
11052 eval "$as_ac_var=no"
11053 fi
11054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11055 fi
11056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11058 if test `eval echo '${'$as_ac_var'}'` = yes; then
11059   cat >>confdefs.h <<_ACEOF
11060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11061 _ACEOF
11062  break
11063 fi
11064 done
11065
11066 fi
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080 for ac_func in fseeko gethostname getopt_long getrusage inet_aton random srandom strcasecmp strdup strerror strtol strtoul
11081 do
11082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11083 echo "$as_me:$LINENO: checking for $ac_func" >&5
11084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11085 if eval "test \"\${$as_ac_var+set}\" = set"; then
11086   echo $ECHO_N "(cached) $ECHO_C" >&6
11087 else
11088   cat >conftest.$ac_ext <<_ACEOF
11089 #line $LINENO "configure"
11090 #include "confdefs.h"
11091 /* System header to define __stub macros and hopefully few prototypes,
11092     which can conflict with char $ac_func (); below.  */
11093 #include <assert.h>
11094 /* Override any gcc2 internal prototype to avoid an error.  */
11095 #ifdef __cplusplus
11096 extern "C"
11097 #endif
11098 /* We use char because int might match the return type of a gcc2
11099    builtin and then its argument prototype would still apply.  */
11100 char $ac_func ();
11101 char (*f) ();
11102
11103 #ifdef F77_DUMMY_MAIN
11104 #  ifdef __cplusplus
11105      extern "C"
11106 #  endif
11107    int F77_DUMMY_MAIN() { return 1; }
11108 #endif
11109 int
11110 main ()
11111 {
11112 /* The GNU C library defines this for functions which it implements
11113     to always fail with ENOSYS.  Some functions are actually named
11114     something starting with __ and the normal name is an alias.  */
11115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11116 choke me
11117 #else
11118 f = $ac_func;
11119 #endif
11120
11121   ;
11122   return 0;
11123 }
11124 _ACEOF
11125 rm -f conftest.$ac_objext conftest$ac_exeext
11126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11127   (eval $ac_link) 2>&5
11128   ac_status=$?
11129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130   (exit $ac_status); } &&
11131          { ac_try='test -s conftest$ac_exeext'
11132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133   (eval $ac_try) 2>&5
11134   ac_status=$?
11135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136   (exit $ac_status); }; }; then
11137   eval "$as_ac_var=yes"
11138 else
11139   echo "$as_me: failed program was:" >&5
11140 cat conftest.$ac_ext >&5
11141 eval "$as_ac_var=no"
11142 fi
11143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11144 fi
11145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11147 if test `eval echo '${'$as_ac_var'}'` = yes; then
11148   cat >>confdefs.h <<_ACEOF
11149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11150 _ACEOF
11151
11152 else
11153   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11154 fi
11155 done
11156
11157
11158
11159 # system's version of getaddrinfo(), if any, may be used only if we found
11160 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
11161 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11162
11163 for ac_func in getaddrinfo
11164 do
11165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11166 echo "$as_me:$LINENO: checking for $ac_func" >&5
11167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11168 if eval "test \"\${$as_ac_var+set}\" = set"; then
11169   echo $ECHO_N "(cached) $ECHO_C" >&6
11170 else
11171   cat >conftest.$ac_ext <<_ACEOF
11172 #line $LINENO "configure"
11173 #include "confdefs.h"
11174 /* System header to define __stub macros and hopefully few prototypes,
11175     which can conflict with char $ac_func (); below.  */
11176 #include <assert.h>
11177 /* Override any gcc2 internal prototype to avoid an error.  */
11178 #ifdef __cplusplus
11179 extern "C"
11180 #endif
11181 /* We use char because int might match the return type of a gcc2
11182    builtin and then its argument prototype would still apply.  */
11183 char $ac_func ();
11184 char (*f) ();
11185
11186 #ifdef F77_DUMMY_MAIN
11187 #  ifdef __cplusplus
11188      extern "C"
11189 #  endif
11190    int F77_DUMMY_MAIN() { return 1; }
11191 #endif
11192 int
11193 main ()
11194 {
11195 /* The GNU C library defines this for functions which it implements
11196     to always fail with ENOSYS.  Some functions are actually named
11197     something starting with __ and the normal name is an alias.  */
11198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11199 choke me
11200 #else
11201 f = $ac_func;
11202 #endif
11203
11204   ;
11205   return 0;
11206 }
11207 _ACEOF
11208 rm -f conftest.$ac_objext conftest$ac_exeext
11209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11210   (eval $ac_link) 2>&5
11211   ac_status=$?
11212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213   (exit $ac_status); } &&
11214          { ac_try='test -s conftest$ac_exeext'
11215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11216   (eval $ac_try) 2>&5
11217   ac_status=$?
11218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219   (exit $ac_status); }; }; then
11220   eval "$as_ac_var=yes"
11221 else
11222   echo "$as_me: failed program was:" >&5
11223 cat conftest.$ac_ext >&5
11224 eval "$as_ac_var=no"
11225 fi
11226 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11227 fi
11228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11229 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11230 if test `eval echo '${'$as_ac_var'}'` = yes; then
11231   cat >>confdefs.h <<_ACEOF
11232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11233 _ACEOF
11234
11235 else
11236   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11237 fi
11238 done
11239
11240
11241 else
11242   LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11243 fi
11244
11245 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
11246 # We override the previous test that said fseeko/ftello didn't exist
11247 # OS tests are also done in include/c.h and port/fseeko.c
11248 case $host_os in bsdi*|netbsd*)
11249 ac_cv_func_fseeko=yes
11250 esac
11251
11252 # Solaris has a very slow qsort in certain cases, so we replace it.
11253 case $host_os in solaris*)
11254 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
11255 esac
11256
11257 # Win32 can't to rename or unlink on an open file
11258 case $host_os in win32*)
11259 LIBOBJS="$LIBOBJS dirmod.$ac_objext" ;;
11260 esac
11261
11262 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
11263 # this hackery with HPUXMATHLIB allows us to cope.
11264 HPUXMATHLIB=""
11265 case $host_cpu in
11266   hppa1.1)
11267         if test -r /lib/pa1.1/libm.a ; then
11268             HPUXMATHLIB="-L /lib/pa1.1 -lm"
11269         fi ;;
11270 esac
11271
11272
11273
11274 for ac_func in rint
11275 do
11276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11277 echo "$as_me:$LINENO: checking for $ac_func" >&5
11278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11279 if eval "test \"\${$as_ac_var+set}\" = set"; then
11280   echo $ECHO_N "(cached) $ECHO_C" >&6
11281 else
11282   cat >conftest.$ac_ext <<_ACEOF
11283 #line $LINENO "configure"
11284 #include "confdefs.h"
11285 /* System header to define __stub macros and hopefully few prototypes,
11286     which can conflict with char $ac_func (); below.  */
11287 #include <assert.h>
11288 /* Override any gcc2 internal prototype to avoid an error.  */
11289 #ifdef __cplusplus
11290 extern "C"
11291 #endif
11292 /* We use char because int might match the return type of a gcc2
11293    builtin and then its argument prototype would still apply.  */
11294 char $ac_func ();
11295 char (*f) ();
11296
11297 #ifdef F77_DUMMY_MAIN
11298 #  ifdef __cplusplus
11299      extern "C"
11300 #  endif
11301    int F77_DUMMY_MAIN() { return 1; }
11302 #endif
11303 int
11304 main ()
11305 {
11306 /* The GNU C library defines this for functions which it implements
11307     to always fail with ENOSYS.  Some functions are actually named
11308     something starting with __ and the normal name is an alias.  */
11309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11310 choke me
11311 #else
11312 f = $ac_func;
11313 #endif
11314
11315   ;
11316   return 0;
11317 }
11318 _ACEOF
11319 rm -f conftest.$ac_objext conftest$ac_exeext
11320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11321   (eval $ac_link) 2>&5
11322   ac_status=$?
11323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324   (exit $ac_status); } &&
11325          { ac_try='test -s conftest$ac_exeext'
11326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327   (eval $ac_try) 2>&5
11328   ac_status=$?
11329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330   (exit $ac_status); }; }; then
11331   eval "$as_ac_var=yes"
11332 else
11333   echo "$as_me: failed program was:" >&5
11334 cat conftest.$ac_ext >&5
11335 eval "$as_ac_var=no"
11336 fi
11337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11338 fi
11339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11340 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11341 if test `eval echo '${'$as_ac_var'}'` = yes; then
11342   cat >>confdefs.h <<_ACEOF
11343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11344 _ACEOF
11345
11346 else
11347   echo "$as_me:$LINENO: checking for rint in -lm" >&5
11348 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
11349 if test "${ac_cv_lib_m_rint+set}" = set; then
11350   echo $ECHO_N "(cached) $ECHO_C" >&6
11351 else
11352   ac_check_lib_save_LIBS=$LIBS
11353 LIBS="-lm $HPUXMATHLIB $LIBS"
11354 cat >conftest.$ac_ext <<_ACEOF
11355 #line $LINENO "configure"
11356 #include "confdefs.h"
11357
11358 /* Override any gcc2 internal prototype to avoid an error.  */
11359 #ifdef __cplusplus
11360 extern "C"
11361 #endif
11362 /* We use char because int might match the return type of a gcc2
11363    builtin and then its argument prototype would still apply.  */
11364 char rint ();
11365 #ifdef F77_DUMMY_MAIN
11366 #  ifdef __cplusplus
11367      extern "C"
11368 #  endif
11369    int F77_DUMMY_MAIN() { return 1; }
11370 #endif
11371 int
11372 main ()
11373 {
11374 rint ();
11375   ;
11376   return 0;
11377 }
11378 _ACEOF
11379 rm -f conftest.$ac_objext conftest$ac_exeext
11380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11381   (eval $ac_link) 2>&5
11382   ac_status=$?
11383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384   (exit $ac_status); } &&
11385          { ac_try='test -s conftest$ac_exeext'
11386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11387   (eval $ac_try) 2>&5
11388   ac_status=$?
11389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390   (exit $ac_status); }; }; then
11391   ac_cv_lib_m_rint=yes
11392 else
11393   echo "$as_me: failed program was:" >&5
11394 cat conftest.$ac_ext >&5
11395 ac_cv_lib_m_rint=no
11396 fi
11397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11398 LIBS=$ac_check_lib_save_LIBS
11399 fi
11400 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
11401 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
11402 if test $ac_cv_lib_m_rint = yes; then
11403   cat >>confdefs.h <<\_ACEOF
11404 #define HAVE_RINT 1
11405 _ACEOF
11406
11407 fi
11408
11409 fi
11410 done
11411
11412
11413
11414 if test "$with_readline" = yes; then
11415   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11416 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11417 cat >conftest.$ac_ext <<_ACEOF
11418 #line $LINENO "configure"
11419 #include "confdefs.h"
11420 #include <stdio.h>
11421 #ifdef HAVE_READLINE_READLINE_H
11422 # include <readline/readline.h>
11423 #elif defined(HAVE_READLINE_H)
11424 # include <readline.h>
11425 #endif
11426
11427 #ifdef F77_DUMMY_MAIN
11428 #  ifdef __cplusplus
11429      extern "C"
11430 #  endif
11431    int F77_DUMMY_MAIN() { return 1; }
11432 #endif
11433 int
11434 main ()
11435 {
11436 rl_completion_append_character = 'x';
11437   ;
11438   return 0;
11439 }
11440 _ACEOF
11441 rm -f conftest.$ac_objext conftest$ac_exeext
11442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11443   (eval $ac_link) 2>&5
11444   ac_status=$?
11445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446   (exit $ac_status); } &&
11447          { ac_try='test -s conftest$ac_exeext'
11448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11449   (eval $ac_try) 2>&5
11450   ac_status=$?
11451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452   (exit $ac_status); }; }; then
11453   echo "$as_me:$LINENO: result: yes" >&5
11454 echo "${ECHO_T}yes" >&6
11455
11456 cat >>confdefs.h <<\_ACEOF
11457 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
11458 _ACEOF
11459
11460 else
11461   echo "$as_me: failed program was:" >&5
11462 cat conftest.$ac_ext >&5
11463 echo "$as_me:$LINENO: result: no" >&5
11464 echo "${ECHO_T}no" >&6
11465 fi
11466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11467
11468
11469 for ac_func in rl_completion_matches rl_filename_completion_function
11470 do
11471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11472 echo "$as_me:$LINENO: checking for $ac_func" >&5
11473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11474 if eval "test \"\${$as_ac_var+set}\" = set"; then
11475   echo $ECHO_N "(cached) $ECHO_C" >&6
11476 else
11477   cat >conftest.$ac_ext <<_ACEOF
11478 #line $LINENO "configure"
11479 #include "confdefs.h"
11480 /* System header to define __stub macros and hopefully few prototypes,
11481     which can conflict with char $ac_func (); below.  */
11482 #include <assert.h>
11483 /* Override any gcc2 internal prototype to avoid an error.  */
11484 #ifdef __cplusplus
11485 extern "C"
11486 #endif
11487 /* We use char because int might match the return type of a gcc2
11488    builtin and then its argument prototype would still apply.  */
11489 char $ac_func ();
11490 char (*f) ();
11491
11492 #ifdef F77_DUMMY_MAIN
11493 #  ifdef __cplusplus
11494      extern "C"
11495 #  endif
11496    int F77_DUMMY_MAIN() { return 1; }
11497 #endif
11498 int
11499 main ()
11500 {
11501 /* The GNU C library defines this for functions which it implements
11502     to always fail with ENOSYS.  Some functions are actually named
11503     something starting with __ and the normal name is an alias.  */
11504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11505 choke me
11506 #else
11507 f = $ac_func;
11508 #endif
11509
11510   ;
11511   return 0;
11512 }
11513 _ACEOF
11514 rm -f conftest.$ac_objext conftest$ac_exeext
11515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11516   (eval $ac_link) 2>&5
11517   ac_status=$?
11518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519   (exit $ac_status); } &&
11520          { ac_try='test -s conftest$ac_exeext'
11521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522   (eval $ac_try) 2>&5
11523   ac_status=$?
11524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525   (exit $ac_status); }; }; then
11526   eval "$as_ac_var=yes"
11527 else
11528   echo "$as_me: failed program was:" >&5
11529 cat conftest.$ac_ext >&5
11530 eval "$as_ac_var=no"
11531 fi
11532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11533 fi
11534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11535 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11536 if test `eval echo '${'$as_ac_var'}'` = yes; then
11537   cat >>confdefs.h <<_ACEOF
11538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11539 _ACEOF
11540
11541 fi
11542 done
11543
11544
11545 for ac_func in replace_history_entry
11546 do
11547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11548 echo "$as_me:$LINENO: checking for $ac_func" >&5
11549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11550 if eval "test \"\${$as_ac_var+set}\" = set"; then
11551   echo $ECHO_N "(cached) $ECHO_C" >&6
11552 else
11553   cat >conftest.$ac_ext <<_ACEOF
11554 #line $LINENO "configure"
11555 #include "confdefs.h"
11556 /* System header to define __stub macros and hopefully few prototypes,
11557     which can conflict with char $ac_func (); below.  */
11558 #include <assert.h>
11559 /* Override any gcc2 internal prototype to avoid an error.  */
11560 #ifdef __cplusplus
11561 extern "C"
11562 #endif
11563 /* We use char because int might match the return type of a gcc2
11564    builtin and then its argument prototype would still apply.  */
11565 char $ac_func ();
11566 char (*f) ();
11567
11568 #ifdef F77_DUMMY_MAIN
11569 #  ifdef __cplusplus
11570      extern "C"
11571 #  endif
11572    int F77_DUMMY_MAIN() { return 1; }
11573 #endif
11574 int
11575 main ()
11576 {
11577 /* The GNU C library defines this for functions which it implements
11578     to always fail with ENOSYS.  Some functions are actually named
11579     something starting with __ and the normal name is an alias.  */
11580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11581 choke me
11582 #else
11583 f = $ac_func;
11584 #endif
11585
11586   ;
11587   return 0;
11588 }
11589 _ACEOF
11590 rm -f conftest.$ac_objext conftest$ac_exeext
11591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11592   (eval $ac_link) 2>&5
11593   ac_status=$?
11594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595   (exit $ac_status); } &&
11596          { ac_try='test -s conftest$ac_exeext'
11597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11598   (eval $ac_try) 2>&5
11599   ac_status=$?
11600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601   (exit $ac_status); }; }; then
11602   eval "$as_ac_var=yes"
11603 else
11604   echo "$as_me: failed program was:" >&5
11605 cat conftest.$ac_ext >&5
11606 eval "$as_ac_var=no"
11607 fi
11608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11609 fi
11610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11611 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11612 if test `eval echo '${'$as_ac_var'}'` = yes; then
11613   cat >>confdefs.h <<_ACEOF
11614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11615 _ACEOF
11616
11617 fi
11618 done
11619
11620 fi
11621
11622
11623 echo "$as_me:$LINENO: checking for finite" >&5
11624 echo $ECHO_N "checking for finite... $ECHO_C" >&6
11625 cat >conftest.$ac_ext <<_ACEOF
11626 #line $LINENO "configure"
11627 #include "confdefs.h"
11628 #include <math.h>
11629 #ifdef F77_DUMMY_MAIN
11630 #  ifdef __cplusplus
11631      extern "C"
11632 #  endif
11633    int F77_DUMMY_MAIN() { return 1; }
11634 #endif
11635 int
11636 main ()
11637 {
11638 int dummy=finite(1.0);
11639   ;
11640   return 0;
11641 }
11642 _ACEOF
11643 rm -f conftest.$ac_objext conftest$ac_exeext
11644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11645   (eval $ac_link) 2>&5
11646   ac_status=$?
11647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648   (exit $ac_status); } &&
11649          { ac_try='test -s conftest$ac_exeext'
11650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11651   (eval $ac_try) 2>&5
11652   ac_status=$?
11653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654   (exit $ac_status); }; }; then
11655
11656 cat >>confdefs.h <<\_ACEOF
11657 #define HAVE_FINITE 1
11658 _ACEOF
11659
11660 echo "$as_me:$LINENO: result: yes" >&5
11661 echo "${ECHO_T}yes" >&6
11662 else
11663   echo "$as_me: failed program was:" >&5
11664 cat conftest.$ac_ext >&5
11665 echo "$as_me:$LINENO: result: no" >&5
11666 echo "${ECHO_T}no" >&6
11667 fi
11668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11669
11670 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
11671 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
11672 cat >conftest.$ac_ext <<_ACEOF
11673 #line $LINENO "configure"
11674 #include "confdefs.h"
11675 #include <setjmp.h>
11676 #ifdef F77_DUMMY_MAIN
11677 #  ifdef __cplusplus
11678      extern "C"
11679 #  endif
11680    int F77_DUMMY_MAIN() { return 1; }
11681 #endif
11682 int
11683 main ()
11684 {
11685 sigjmp_buf x; sigsetjmp(x, 1);
11686   ;
11687   return 0;
11688 }
11689 _ACEOF
11690 rm -f conftest.$ac_objext conftest$ac_exeext
11691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11692   (eval $ac_link) 2>&5
11693   ac_status=$?
11694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695   (exit $ac_status); } &&
11696          { ac_try='test -s conftest$ac_exeext'
11697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11698   (eval $ac_try) 2>&5
11699   ac_status=$?
11700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701   (exit $ac_status); }; }; then
11702
11703 cat >>confdefs.h <<\_ACEOF
11704 #define HAVE_SIGSETJMP 1
11705 _ACEOF
11706
11707 echo "$as_me:$LINENO: result: yes" >&5
11708 echo "${ECHO_T}yes" >&6
11709 else
11710   echo "$as_me: failed program was:" >&5
11711 cat conftest.$ac_ext >&5
11712 echo "$as_me:$LINENO: result: no" >&5
11713 echo "${ECHO_T}no" >&6
11714 fi
11715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11716
11717 echo "$as_me:$LINENO: checking for syslog" >&5
11718 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
11719 if test "${ac_cv_func_syslog+set}" = set; then
11720   echo $ECHO_N "(cached) $ECHO_C" >&6
11721 else
11722   cat >conftest.$ac_ext <<_ACEOF
11723 #line $LINENO "configure"
11724 #include "confdefs.h"
11725 /* System header to define __stub macros and hopefully few prototypes,
11726     which can conflict with char syslog (); below.  */
11727 #include <assert.h>
11728 /* Override any gcc2 internal prototype to avoid an error.  */
11729 #ifdef __cplusplus
11730 extern "C"
11731 #endif
11732 /* We use char because int might match the return type of a gcc2
11733    builtin and then its argument prototype would still apply.  */
11734 char syslog ();
11735 char (*f) ();
11736
11737 #ifdef F77_DUMMY_MAIN
11738 #  ifdef __cplusplus
11739      extern "C"
11740 #  endif
11741    int F77_DUMMY_MAIN() { return 1; }
11742 #endif
11743 int
11744 main ()
11745 {
11746 /* The GNU C library defines this for functions which it implements
11747     to always fail with ENOSYS.  Some functions are actually named
11748     something starting with __ and the normal name is an alias.  */
11749 #if defined (__stub_syslog) || defined (__stub___syslog)
11750 choke me
11751 #else
11752 f = syslog;
11753 #endif
11754
11755   ;
11756   return 0;
11757 }
11758 _ACEOF
11759 rm -f conftest.$ac_objext conftest$ac_exeext
11760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11761   (eval $ac_link) 2>&5
11762   ac_status=$?
11763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764   (exit $ac_status); } &&
11765          { ac_try='test -s conftest$ac_exeext'
11766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767   (eval $ac_try) 2>&5
11768   ac_status=$?
11769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770   (exit $ac_status); }; }; then
11771   ac_cv_func_syslog=yes
11772 else
11773   echo "$as_me: failed program was:" >&5
11774 cat conftest.$ac_ext >&5
11775 ac_cv_func_syslog=no
11776 fi
11777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11778 fi
11779 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
11780 echo "${ECHO_T}$ac_cv_func_syslog" >&6
11781 if test $ac_cv_func_syslog = yes; then
11782   if test "${ac_cv_header_syslog_h+set}" = set; then
11783   echo "$as_me:$LINENO: checking for syslog.h" >&5
11784 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11785 if test "${ac_cv_header_syslog_h+set}" = set; then
11786   echo $ECHO_N "(cached) $ECHO_C" >&6
11787 fi
11788 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11789 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11790 else
11791   # Is the header compilable?
11792 echo "$as_me:$LINENO: checking syslog.h usability" >&5
11793 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
11794 cat >conftest.$ac_ext <<_ACEOF
11795 #line $LINENO "configure"
11796 #include "confdefs.h"
11797 $ac_includes_default
11798 #include <syslog.h>
11799 _ACEOF
11800 rm -f conftest.$ac_objext
11801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11802   (eval $ac_compile) 2>&5
11803   ac_status=$?
11804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805   (exit $ac_status); } &&
11806          { ac_try='test -s conftest.$ac_objext'
11807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11808   (eval $ac_try) 2>&5
11809   ac_status=$?
11810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811   (exit $ac_status); }; }; then
11812   ac_header_compiler=yes
11813 else
11814   echo "$as_me: failed program was:" >&5
11815 cat conftest.$ac_ext >&5
11816 ac_header_compiler=no
11817 fi
11818 rm -f conftest.$ac_objext conftest.$ac_ext
11819 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11820 echo "${ECHO_T}$ac_header_compiler" >&6
11821
11822 # Is the header present?
11823 echo "$as_me:$LINENO: checking syslog.h presence" >&5
11824 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
11825 cat >conftest.$ac_ext <<_ACEOF
11826 #line $LINENO "configure"
11827 #include "confdefs.h"
11828 #include <syslog.h>
11829 _ACEOF
11830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11831   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11832   ac_status=$?
11833   egrep -v '^ *\+' conftest.er1 >conftest.err
11834   rm -f conftest.er1
11835   cat conftest.err >&5
11836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837   (exit $ac_status); } >/dev/null; then
11838   if test -s conftest.err; then
11839     ac_cpp_err=$ac_c_preproc_warn_flag
11840   else
11841     ac_cpp_err=
11842   fi
11843 else
11844   ac_cpp_err=yes
11845 fi
11846 if test -z "$ac_cpp_err"; then
11847   ac_header_preproc=yes
11848 else
11849   echo "$as_me: failed program was:" >&5
11850   cat conftest.$ac_ext >&5
11851   ac_header_preproc=no
11852 fi
11853 rm -f conftest.err conftest.$ac_ext
11854 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11855 echo "${ECHO_T}$ac_header_preproc" >&6
11856
11857 # So?  What about this header?
11858 case $ac_header_compiler:$ac_header_preproc in
11859   yes:no )
11860     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
11861 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11862     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11863 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11864   no:yes )
11865     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
11866 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
11867     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
11868 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
11869     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11870 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11871 esac
11872 echo "$as_me:$LINENO: checking for syslog.h" >&5
11873 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11874 if test "${ac_cv_header_syslog_h+set}" = set; then
11875   echo $ECHO_N "(cached) $ECHO_C" >&6
11876 else
11877   ac_cv_header_syslog_h=$ac_header_preproc
11878 fi
11879 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11880 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11881
11882 fi
11883 if test $ac_cv_header_syslog_h = yes; then
11884
11885 cat >>confdefs.h <<\_ACEOF
11886 #define HAVE_SYSLOG 1
11887 _ACEOF
11888
11889 fi
11890
11891
11892 fi
11893
11894
11895 echo "$as_me:$LINENO: checking for optreset" >&5
11896 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
11897 if test "${pgac_cv_var_int_optreset+set}" = set; then
11898   echo $ECHO_N "(cached) $ECHO_C" >&6
11899 else
11900   cat >conftest.$ac_ext <<_ACEOF
11901 #line $LINENO "configure"
11902 #include "confdefs.h"
11903 #include <unistd.h>
11904 #ifdef F77_DUMMY_MAIN
11905 #  ifdef __cplusplus
11906      extern "C"
11907 #  endif
11908    int F77_DUMMY_MAIN() { return 1; }
11909 #endif
11910 int
11911 main ()
11912 {
11913 extern int optreset; optreset = 1;
11914   ;
11915   return 0;
11916 }
11917 _ACEOF
11918 rm -f conftest.$ac_objext conftest$ac_exeext
11919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11920   (eval $ac_link) 2>&5
11921   ac_status=$?
11922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); } &&
11924          { ac_try='test -s conftest$ac_exeext'
11925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926   (eval $ac_try) 2>&5
11927   ac_status=$?
11928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929   (exit $ac_status); }; }; then
11930   pgac_cv_var_int_optreset=yes
11931 else
11932   echo "$as_me: failed program was:" >&5
11933 cat conftest.$ac_ext >&5
11934 pgac_cv_var_int_optreset=no
11935 fi
11936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11937 fi
11938 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
11939 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
11940 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
11941
11942 cat >>confdefs.h <<\_ACEOF
11943 #define HAVE_INT_OPTRESET 1
11944 _ACEOF
11945
11946 fi
11947
11948
11949
11950 for ac_func in strtoll strtoq
11951 do
11952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11953 echo "$as_me:$LINENO: checking for $ac_func" >&5
11954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11955 if eval "test \"\${$as_ac_var+set}\" = set"; then
11956   echo $ECHO_N "(cached) $ECHO_C" >&6
11957 else
11958   cat >conftest.$ac_ext <<_ACEOF
11959 #line $LINENO "configure"
11960 #include "confdefs.h"
11961 /* System header to define __stub macros and hopefully few prototypes,
11962     which can conflict with char $ac_func (); below.  */
11963 #include <assert.h>
11964 /* Override any gcc2 internal prototype to avoid an error.  */
11965 #ifdef __cplusplus
11966 extern "C"
11967 #endif
11968 /* We use char because int might match the return type of a gcc2
11969    builtin and then its argument prototype would still apply.  */
11970 char $ac_func ();
11971 char (*f) ();
11972
11973 #ifdef F77_DUMMY_MAIN
11974 #  ifdef __cplusplus
11975      extern "C"
11976 #  endif
11977    int F77_DUMMY_MAIN() { return 1; }
11978 #endif
11979 int
11980 main ()
11981 {
11982 /* The GNU C library defines this for functions which it implements
11983     to always fail with ENOSYS.  Some functions are actually named
11984     something starting with __ and the normal name is an alias.  */
11985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11986 choke me
11987 #else
11988 f = $ac_func;
11989 #endif
11990
11991   ;
11992   return 0;
11993 }
11994 _ACEOF
11995 rm -f conftest.$ac_objext conftest$ac_exeext
11996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11997   (eval $ac_link) 2>&5
11998   ac_status=$?
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); } &&
12001          { ac_try='test -s conftest$ac_exeext'
12002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003   (eval $ac_try) 2>&5
12004   ac_status=$?
12005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006   (exit $ac_status); }; }; then
12007   eval "$as_ac_var=yes"
12008 else
12009   echo "$as_me: failed program was:" >&5
12010 cat conftest.$ac_ext >&5
12011 eval "$as_ac_var=no"
12012 fi
12013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12014 fi
12015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12016 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12017 if test `eval echo '${'$as_ac_var'}'` = yes; then
12018   cat >>confdefs.h <<_ACEOF
12019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12020 _ACEOF
12021  break
12022 fi
12023 done
12024
12025
12026
12027 for ac_func in strtoull strtouq
12028 do
12029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12030 echo "$as_me:$LINENO: checking for $ac_func" >&5
12031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12032 if eval "test \"\${$as_ac_var+set}\" = set"; then
12033   echo $ECHO_N "(cached) $ECHO_C" >&6
12034 else
12035   cat >conftest.$ac_ext <<_ACEOF
12036 #line $LINENO "configure"
12037 #include "confdefs.h"
12038 /* System header to define __stub macros and hopefully few prototypes,
12039     which can conflict with char $ac_func (); below.  */
12040 #include <assert.h>
12041 /* Override any gcc2 internal prototype to avoid an error.  */
12042 #ifdef __cplusplus
12043 extern "C"
12044 #endif
12045 /* We use char because int might match the return type of a gcc2
12046    builtin and then its argument prototype would still apply.  */
12047 char $ac_func ();
12048 char (*f) ();
12049
12050 #ifdef F77_DUMMY_MAIN
12051 #  ifdef __cplusplus
12052      extern "C"
12053 #  endif
12054    int F77_DUMMY_MAIN() { return 1; }
12055 #endif
12056 int
12057 main ()
12058 {
12059 /* The GNU C library defines this for functions which it implements
12060     to always fail with ENOSYS.  Some functions are actually named
12061     something starting with __ and the normal name is an alias.  */
12062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12063 choke me
12064 #else
12065 f = $ac_func;
12066 #endif
12067
12068   ;
12069   return 0;
12070 }
12071 _ACEOF
12072 rm -f conftest.$ac_objext conftest$ac_exeext
12073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12074   (eval $ac_link) 2>&5
12075   ac_status=$?
12076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077   (exit $ac_status); } &&
12078          { ac_try='test -s conftest$ac_exeext'
12079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080   (eval $ac_try) 2>&5
12081   ac_status=$?
12082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083   (exit $ac_status); }; }; then
12084   eval "$as_ac_var=yes"
12085 else
12086   echo "$as_me: failed program was:" >&5
12087 cat conftest.$ac_ext >&5
12088 eval "$as_ac_var=no"
12089 fi
12090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12091 fi
12092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12094 if test `eval echo '${'$as_ac_var'}'` = yes; then
12095   cat >>confdefs.h <<_ACEOF
12096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12097 _ACEOF
12098  break
12099 fi
12100 done
12101
12102
12103 # Check for one of atexit() or on_exit()
12104
12105 for ac_func in atexit
12106 do
12107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12108 echo "$as_me:$LINENO: checking for $ac_func" >&5
12109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12110 if eval "test \"\${$as_ac_var+set}\" = set"; then
12111   echo $ECHO_N "(cached) $ECHO_C" >&6
12112 else
12113   cat >conftest.$ac_ext <<_ACEOF
12114 #line $LINENO "configure"
12115 #include "confdefs.h"
12116 /* System header to define __stub macros and hopefully few prototypes,
12117     which can conflict with char $ac_func (); below.  */
12118 #include <assert.h>
12119 /* Override any gcc2 internal prototype to avoid an error.  */
12120 #ifdef __cplusplus
12121 extern "C"
12122 #endif
12123 /* We use char because int might match the return type of a gcc2
12124    builtin and then its argument prototype would still apply.  */
12125 char $ac_func ();
12126 char (*f) ();
12127
12128 #ifdef F77_DUMMY_MAIN
12129 #  ifdef __cplusplus
12130      extern "C"
12131 #  endif
12132    int F77_DUMMY_MAIN() { return 1; }
12133 #endif
12134 int
12135 main ()
12136 {
12137 /* The GNU C library defines this for functions which it implements
12138     to always fail with ENOSYS.  Some functions are actually named
12139     something starting with __ and the normal name is an alias.  */
12140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12141 choke me
12142 #else
12143 f = $ac_func;
12144 #endif
12145
12146   ;
12147   return 0;
12148 }
12149 _ACEOF
12150 rm -f conftest.$ac_objext conftest$ac_exeext
12151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12152   (eval $ac_link) 2>&5
12153   ac_status=$?
12154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155   (exit $ac_status); } &&
12156          { ac_try='test -s conftest$ac_exeext'
12157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158   (eval $ac_try) 2>&5
12159   ac_status=$?
12160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161   (exit $ac_status); }; }; then
12162   eval "$as_ac_var=yes"
12163 else
12164   echo "$as_me: failed program was:" >&5
12165 cat conftest.$ac_ext >&5
12166 eval "$as_ac_var=no"
12167 fi
12168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12169 fi
12170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12171 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12172 if test `eval echo '${'$as_ac_var'}'` = yes; then
12173   cat >>confdefs.h <<_ACEOF
12174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12175 _ACEOF
12176
12177 else
12178
12179 for ac_func in on_exit
12180 do
12181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12182 echo "$as_me:$LINENO: checking for $ac_func" >&5
12183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12184 if eval "test \"\${$as_ac_var+set}\" = set"; then
12185   echo $ECHO_N "(cached) $ECHO_C" >&6
12186 else
12187   cat >conftest.$ac_ext <<_ACEOF
12188 #line $LINENO "configure"
12189 #include "confdefs.h"
12190 /* System header to define __stub macros and hopefully few prototypes,
12191     which can conflict with char $ac_func (); below.  */
12192 #include <assert.h>
12193 /* Override any gcc2 internal prototype to avoid an error.  */
12194 #ifdef __cplusplus
12195 extern "C"
12196 #endif
12197 /* We use char because int might match the return type of a gcc2
12198    builtin and then its argument prototype would still apply.  */
12199 char $ac_func ();
12200 char (*f) ();
12201
12202 #ifdef F77_DUMMY_MAIN
12203 #  ifdef __cplusplus
12204      extern "C"
12205 #  endif
12206    int F77_DUMMY_MAIN() { return 1; }
12207 #endif
12208 int
12209 main ()
12210 {
12211 /* The GNU C library defines this for functions which it implements
12212     to always fail with ENOSYS.  Some functions are actually named
12213     something starting with __ and the normal name is an alias.  */
12214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12215 choke me
12216 #else
12217 f = $ac_func;
12218 #endif
12219
12220   ;
12221   return 0;
12222 }
12223 _ACEOF
12224 rm -f conftest.$ac_objext conftest$ac_exeext
12225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12226   (eval $ac_link) 2>&5
12227   ac_status=$?
12228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229   (exit $ac_status); } &&
12230          { ac_try='test -s conftest$ac_exeext'
12231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232   (eval $ac_try) 2>&5
12233   ac_status=$?
12234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235   (exit $ac_status); }; }; then
12236   eval "$as_ac_var=yes"
12237 else
12238   echo "$as_me: failed program was:" >&5
12239 cat conftest.$ac_ext >&5
12240 eval "$as_ac_var=no"
12241 fi
12242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12243 fi
12244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12245 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12246 if test `eval echo '${'$as_ac_var'}'` = yes; then
12247   cat >>confdefs.h <<_ACEOF
12248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12249 _ACEOF
12250
12251 else
12252   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12253 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12254    { (exit 1); exit 1; }; }
12255 fi
12256 done
12257
12258 fi
12259 done
12260
12261
12262 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12263 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12264 if test "${ac_cv_sys_largefile_source+set}" = set; then
12265   echo $ECHO_N "(cached) $ECHO_C" >&6
12266 else
12267   while :; do
12268   ac_cv_sys_largefile_source=no
12269   cat >conftest.$ac_ext <<_ACEOF
12270 #line $LINENO "configure"
12271 #include "confdefs.h"
12272 #include <stdio.h>
12273 #ifdef F77_DUMMY_MAIN
12274 #  ifdef __cplusplus
12275      extern "C"
12276 #  endif
12277    int F77_DUMMY_MAIN() { return 1; }
12278 #endif
12279 int
12280 main ()
12281 {
12282 return !fseeko;
12283   ;
12284   return 0;
12285 }
12286 _ACEOF
12287 rm -f conftest.$ac_objext
12288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12289   (eval $ac_compile) 2>&5
12290   ac_status=$?
12291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292   (exit $ac_status); } &&
12293          { ac_try='test -s conftest.$ac_objext'
12294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295   (eval $ac_try) 2>&5
12296   ac_status=$?
12297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298   (exit $ac_status); }; }; then
12299   break
12300 else
12301   echo "$as_me: failed program was:" >&5
12302 cat conftest.$ac_ext >&5
12303 fi
12304 rm -f conftest.$ac_objext conftest.$ac_ext
12305   cat >conftest.$ac_ext <<_ACEOF
12306 #line $LINENO "configure"
12307 #include "confdefs.h"
12308 #define _LARGEFILE_SOURCE 1
12309 #include <stdio.h>
12310 #ifdef F77_DUMMY_MAIN
12311 #  ifdef __cplusplus
12312      extern "C"
12313 #  endif
12314    int F77_DUMMY_MAIN() { return 1; }
12315 #endif
12316 int
12317 main ()
12318 {
12319 return !fseeko;
12320   ;
12321   return 0;
12322 }
12323 _ACEOF
12324 rm -f conftest.$ac_objext
12325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12326   (eval $ac_compile) 2>&5
12327   ac_status=$?
12328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329   (exit $ac_status); } &&
12330          { ac_try='test -s conftest.$ac_objext'
12331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12332   (eval $ac_try) 2>&5
12333   ac_status=$?
12334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335   (exit $ac_status); }; }; then
12336   ac_cv_sys_largefile_source=1; break
12337 else
12338   echo "$as_me: failed program was:" >&5
12339 cat conftest.$ac_ext >&5
12340 fi
12341 rm -f conftest.$ac_objext conftest.$ac_ext
12342   break
12343 done
12344 fi
12345 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12346 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12347 if test "$ac_cv_sys_largefile_source" != no; then
12348
12349 cat >>confdefs.h <<_ACEOF
12350 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12351 _ACEOF
12352
12353 fi
12354 rm -f conftest*
12355
12356 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12357 # in glibc 2.1.3, but that breaks too many other things.
12358 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12359 echo "$as_me:$LINENO: checking for fseeko" >&5
12360 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12361 if test "${ac_cv_func_fseeko+set}" = set; then
12362   echo $ECHO_N "(cached) $ECHO_C" >&6
12363 else
12364   cat >conftest.$ac_ext <<_ACEOF
12365 #line $LINENO "configure"
12366 #include "confdefs.h"
12367 #include <stdio.h>
12368 #ifdef F77_DUMMY_MAIN
12369 #  ifdef __cplusplus
12370      extern "C"
12371 #  endif
12372    int F77_DUMMY_MAIN() { return 1; }
12373 #endif
12374 int
12375 main ()
12376 {
12377 return fseeko && fseeko (stdin, 0, 0);
12378   ;
12379   return 0;
12380 }
12381 _ACEOF
12382 rm -f conftest.$ac_objext conftest$ac_exeext
12383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12384   (eval $ac_link) 2>&5
12385   ac_status=$?
12386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387   (exit $ac_status); } &&
12388          { ac_try='test -s conftest$ac_exeext'
12389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390   (eval $ac_try) 2>&5
12391   ac_status=$?
12392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393   (exit $ac_status); }; }; then
12394   ac_cv_func_fseeko=yes
12395 else
12396   echo "$as_me: failed program was:" >&5
12397 cat conftest.$ac_ext >&5
12398 ac_cv_func_fseeko=no
12399 fi
12400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12401 fi
12402 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12403 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12404 if test $ac_cv_func_fseeko = yes; then
12405
12406 cat >>confdefs.h <<\_ACEOF
12407 #define HAVE_FSEEKO 1
12408 _ACEOF
12409
12410 fi
12411
12412
12413
12414 # This test makes sure that run tests work at all.  Sometimes a shared
12415 # library is found by the linker, but the runtime linker can't find it.
12416 # This check should come after all modifications of compiler or linker
12417 # variables, and before any other run tests.
12418 echo "$as_me:$LINENO: checking test program" >&5
12419 echo $ECHO_N "checking test program... $ECHO_C" >&6
12420 if test "$cross_compiling" = yes; then
12421   echo "$as_me:$LINENO: result: cross-compiling" >&5
12422 echo "${ECHO_T}cross-compiling" >&6
12423 else
12424   cat >conftest.$ac_ext <<_ACEOF
12425 #line $LINENO "configure"
12426 #include "confdefs.h"
12427 int main() { return 0; }
12428 _ACEOF
12429 rm -f conftest$ac_exeext
12430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12431   (eval $ac_link) 2>&5
12432   ac_status=$?
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436   (eval $ac_try) 2>&5
12437   ac_status=$?
12438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439   (exit $ac_status); }; }; then
12440   echo "$as_me:$LINENO: result: ok" >&5
12441 echo "${ECHO_T}ok" >&6
12442 else
12443   echo "$as_me: program exited with status $ac_status" >&5
12444 echo "$as_me: failed program was:" >&5
12445 cat conftest.$ac_ext >&5
12446 ( exit $ac_status )
12447 echo "$as_me:$LINENO: result: failed" >&5
12448 echo "${ECHO_T}failed" >&6
12449 { { echo "$as_me:$LINENO: error:
12450 *** Could not execute a simple test program.  This may be a problem
12451 *** related to locating shared libraries.  Check the file 'config.log'
12452 *** for the exact reason." >&5
12453 echo "$as_me: error:
12454 *** Could not execute a simple test program.  This may be a problem
12455 *** related to locating shared libraries.  Check the file 'config.log'
12456 *** for the exact reason." >&2;}
12457    { (exit 1); exit 1; }; }
12458 fi
12459 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12460 fi
12461
12462
12463
12464 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
12465 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
12466 if test "${pgac_cv_type_long_int_64+set}" = set; then
12467   echo $ECHO_N "(cached) $ECHO_C" >&6
12468 else
12469   if test "$cross_compiling" = yes; then
12470   # If cross-compiling, check the size reported by the compiler and
12471 # trust that the arithmetic works.
12472 cat >conftest.$ac_ext <<_ACEOF
12473 #line $LINENO "configure"
12474 #include "confdefs.h"
12475
12476 #ifdef F77_DUMMY_MAIN
12477 #  ifdef __cplusplus
12478      extern "C"
12479 #  endif
12480    int F77_DUMMY_MAIN() { return 1; }
12481 #endif
12482 int
12483 main ()
12484 {
12485 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
12486 test_array [0] = 0
12487
12488   ;
12489   return 0;
12490 }
12491 _ACEOF
12492 rm -f conftest.$ac_objext
12493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12494   (eval $ac_compile) 2>&5
12495   ac_status=$?
12496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497   (exit $ac_status); } &&
12498          { ac_try='test -s conftest.$ac_objext'
12499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500   (eval $ac_try) 2>&5
12501   ac_status=$?
12502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503   (exit $ac_status); }; }; then
12504   pgac_cv_type_long_int_64=yes
12505 else
12506   echo "$as_me: failed program was:" >&5
12507 cat conftest.$ac_ext >&5
12508 pgac_cv_type_long_int_64=no
12509 fi
12510 rm -f conftest.$ac_objext conftest.$ac_ext
12511 else
12512   cat >conftest.$ac_ext <<_ACEOF
12513 #line $LINENO "configure"
12514 #include "confdefs.h"
12515 typedef long int int64;
12516
12517 /*
12518  * These are globals to discourage the compiler from folding all the
12519  * arithmetic tests down to compile-time constants.
12520  */
12521 int64 a = 20000001;
12522 int64 b = 40000005;
12523
12524 int does_int64_work()
12525 {
12526   int64 c,d;
12527
12528   if (sizeof(int64) != 8)
12529     return 0;                   /* definitely not the right size */
12530
12531   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12532   c = a * b;
12533   d = (c + b) / b;
12534   if (d != a+1)
12535     return 0;
12536   return 1;
12537 }
12538 main() {
12539   exit(! does_int64_work());
12540 }
12541 _ACEOF
12542 rm -f conftest$ac_exeext
12543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12544   (eval $ac_link) 2>&5
12545   ac_status=$?
12546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549   (eval $ac_try) 2>&5
12550   ac_status=$?
12551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552   (exit $ac_status); }; }; then
12553   pgac_cv_type_long_int_64=yes
12554 else
12555   echo "$as_me: program exited with status $ac_status" >&5
12556 echo "$as_me: failed program was:" >&5
12557 cat conftest.$ac_ext >&5
12558 ( exit $ac_status )
12559 pgac_cv_type_long_int_64=no
12560 fi
12561 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12562 fi
12563 fi
12564 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
12565 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
12566
12567 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
12568 if test x"$pgac_cv_type_long_int_64" = xyes ; then
12569
12570 cat >>confdefs.h <<\_ACEOF
12571 #define HAVE_LONG_INT_64
12572 _ACEOF
12573
12574 fi
12575
12576
12577 if test x"$HAVE_LONG_INT_64" = x"no" ; then
12578   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
12579 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
12580 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
12581   echo $ECHO_N "(cached) $ECHO_C" >&6
12582 else
12583   if test "$cross_compiling" = yes; then
12584   # If cross-compiling, check the size reported by the compiler and
12585 # trust that the arithmetic works.
12586 cat >conftest.$ac_ext <<_ACEOF
12587 #line $LINENO "configure"
12588 #include "confdefs.h"
12589
12590 #ifdef F77_DUMMY_MAIN
12591 #  ifdef __cplusplus
12592      extern "C"
12593 #  endif
12594    int F77_DUMMY_MAIN() { return 1; }
12595 #endif
12596 int
12597 main ()
12598 {
12599 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
12600 test_array [0] = 0
12601
12602   ;
12603   return 0;
12604 }
12605 _ACEOF
12606 rm -f conftest.$ac_objext
12607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12608   (eval $ac_compile) 2>&5
12609   ac_status=$?
12610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611   (exit $ac_status); } &&
12612          { ac_try='test -s conftest.$ac_objext'
12613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12614   (eval $ac_try) 2>&5
12615   ac_status=$?
12616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617   (exit $ac_status); }; }; then
12618   pgac_cv_type_long_long_int_64=yes
12619 else
12620   echo "$as_me: failed program was:" >&5
12621 cat conftest.$ac_ext >&5
12622 pgac_cv_type_long_long_int_64=no
12623 fi
12624 rm -f conftest.$ac_objext conftest.$ac_ext
12625 else
12626   cat >conftest.$ac_ext <<_ACEOF
12627 #line $LINENO "configure"
12628 #include "confdefs.h"
12629 typedef long long int int64;
12630
12631 /*
12632  * These are globals to discourage the compiler from folding all the
12633  * arithmetic tests down to compile-time constants.
12634  */
12635 int64 a = 20000001;
12636 int64 b = 40000005;
12637
12638 int does_int64_work()
12639 {
12640   int64 c,d;
12641
12642   if (sizeof(int64) != 8)
12643     return 0;                   /* definitely not the right size */
12644
12645   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12646   c = a * b;
12647   d = (c + b) / b;
12648   if (d != a+1)
12649     return 0;
12650   return 1;
12651 }
12652 main() {
12653   exit(! does_int64_work());
12654 }
12655 _ACEOF
12656 rm -f conftest$ac_exeext
12657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12658   (eval $ac_link) 2>&5
12659   ac_status=$?
12660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663   (eval $ac_try) 2>&5
12664   ac_status=$?
12665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666   (exit $ac_status); }; }; then
12667   pgac_cv_type_long_long_int_64=yes
12668 else
12669   echo "$as_me: program exited with status $ac_status" >&5
12670 echo "$as_me: failed program was:" >&5
12671 cat conftest.$ac_ext >&5
12672 ( exit $ac_status )
12673 pgac_cv_type_long_long_int_64=no
12674 fi
12675 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12676 fi
12677 fi
12678 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
12679 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
12680
12681 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
12682 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
12683
12684 cat >>confdefs.h <<\_ACEOF
12685 #define HAVE_LONG_LONG_INT_64
12686 _ACEOF
12687
12688 fi
12689
12690 fi
12691
12692
12693
12694 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
12695   cat >conftest.$ac_ext <<_ACEOF
12696 #line $LINENO "configure"
12697 #include "confdefs.h"
12698
12699 #define INT64CONST(x)  x##LL
12700 long long int foo = INT64CONST(0x1234567890123456);
12701
12702 #ifdef F77_DUMMY_MAIN
12703 #  ifdef __cplusplus
12704      extern "C"
12705 #  endif
12706    int F77_DUMMY_MAIN() { return 1; }
12707 #endif
12708 int
12709 main ()
12710 {
12711
12712   ;
12713   return 0;
12714 }
12715 _ACEOF
12716 rm -f conftest.$ac_objext
12717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12718   (eval $ac_compile) 2>&5
12719   ac_status=$?
12720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721   (exit $ac_status); } &&
12722          { ac_try='test -s conftest.$ac_objext'
12723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724   (eval $ac_try) 2>&5
12725   ac_status=$?
12726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727   (exit $ac_status); }; }; then
12728
12729 cat >>confdefs.h <<\_ACEOF
12730 #define HAVE_LL_CONSTANTS 1
12731 _ACEOF
12732
12733 else
12734   echo "$as_me: failed program was:" >&5
12735 cat conftest.$ac_ext >&5
12736 fi
12737 rm -f conftest.$ac_objext conftest.$ac_ext
12738 fi
12739
12740
12741 # If we found "long int" is 64 bits, assume snprintf handles it.  If
12742 # we found we need to use "long long int", better check.  We cope with
12743 # snprintfs that use either %lld, %qd, or %I64d as the format.  If
12744 # neither works, fall back to our own snprintf emulation (which we
12745 # know uses %lld).
12746
12747 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
12748   if test $pgac_need_repl_snprintf = no; then
12749     echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
12750 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
12751 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
12752   echo $ECHO_N "(cached) $ECHO_C" >&6
12753 else
12754   for pgac_format in '%lld' '%qd' '%I64d'; do
12755 if test "$cross_compiling" = yes; then
12756   pgac_cv_snprintf_long_long_int_format=cross; break
12757 else
12758   cat >conftest.$ac_ext <<_ACEOF
12759 #line $LINENO "configure"
12760 #include "confdefs.h"
12761 #include <stdio.h>
12762 typedef long long int int64;
12763 #define INT64_FORMAT "$pgac_format"
12764
12765 int64 a = 20000001;
12766 int64 b = 40000005;
12767
12768 int does_int64_snprintf_work()
12769 {
12770   int64 c;
12771   char buf[100];
12772
12773   if (sizeof(int64) != 8)
12774     return 0;                   /* doesn't look like the right size */
12775
12776   c = a * b;
12777   snprintf(buf, 100, INT64_FORMAT, c);
12778   if (strcmp(buf, "800000140000005") != 0)
12779     return 0;                   /* either multiply or snprintf is busted */
12780   return 1;
12781 }
12782 main() {
12783   exit(! does_int64_snprintf_work());
12784 }
12785 _ACEOF
12786 rm -f conftest$ac_exeext
12787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12788   (eval $ac_link) 2>&5
12789   ac_status=$?
12790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793   (eval $ac_try) 2>&5
12794   ac_status=$?
12795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796   (exit $ac_status); }; }; then
12797   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
12798 else
12799   echo "$as_me: program exited with status $ac_status" >&5
12800 echo "$as_me: failed program was:" >&5
12801 cat conftest.$ac_ext >&5
12802 fi
12803 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12804 fi
12805 done
12806 fi
12807
12808 LONG_LONG_INT_FORMAT=''
12809
12810 case $pgac_cv_snprintf_long_long_int_format in
12811   cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
12812 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
12813   ?*)    echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
12814 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
12815          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
12816   *)     echo "$as_me:$LINENO: result: none" >&5
12817 echo "${ECHO_T}none" >&6;;
12818 esac
12819     if test "$LONG_LONG_INT_FORMAT" = ""; then
12820       # Force usage of our own snprintf, since system snprintf is broken
12821       pgac_need_repl_snprintf=yes
12822       LONG_LONG_INT_FORMAT='%lld'
12823     fi
12824   else
12825     # Here if we previously decided we needed to use our own snprintf
12826     LONG_LONG_INT_FORMAT='%lld'
12827   fi
12828   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
12829 else
12830   # Here if we are not using 'long long int' at all
12831   INT64_FORMAT='"%ld"'
12832 fi
12833
12834
12835 cat >>confdefs.h <<_ACEOF
12836 #define INT64_FORMAT $INT64_FORMAT
12837 _ACEOF
12838
12839
12840 if test $pgac_need_repl_snprintf = yes; then
12841   LIBOBJS="$LIBOBJS snprintf.$ac_objext"
12842 fi
12843
12844 # Need a #define for the size of Datum (unsigned long)
12845 echo "$as_me:$LINENO: checking for unsigned long" >&5
12846 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
12847 if test "${ac_cv_type_unsigned_long+set}" = set; then
12848   echo $ECHO_N "(cached) $ECHO_C" >&6
12849 else
12850   cat >conftest.$ac_ext <<_ACEOF
12851 #line $LINENO "configure"
12852 #include "confdefs.h"
12853 $ac_includes_default
12854 #ifdef F77_DUMMY_MAIN
12855 #  ifdef __cplusplus
12856      extern "C"
12857 #  endif
12858    int F77_DUMMY_MAIN() { return 1; }
12859 #endif
12860 int
12861 main ()
12862 {
12863 if ((unsigned long *) 0)
12864   return 0;
12865 if (sizeof (unsigned long))
12866   return 0;
12867   ;
12868   return 0;
12869 }
12870 _ACEOF
12871 rm -f conftest.$ac_objext
12872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12873   (eval $ac_compile) 2>&5
12874   ac_status=$?
12875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876   (exit $ac_status); } &&
12877          { ac_try='test -s conftest.$ac_objext'
12878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12879   (eval $ac_try) 2>&5
12880   ac_status=$?
12881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882   (exit $ac_status); }; }; then
12883   ac_cv_type_unsigned_long=yes
12884 else
12885   echo "$as_me: failed program was:" >&5
12886 cat conftest.$ac_ext >&5
12887 ac_cv_type_unsigned_long=no
12888 fi
12889 rm -f conftest.$ac_objext conftest.$ac_ext
12890 fi
12891 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
12892 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
12893
12894 echo "$as_me:$LINENO: checking size of unsigned long" >&5
12895 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
12896 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
12897   echo $ECHO_N "(cached) $ECHO_C" >&6
12898 else
12899   if test "$ac_cv_type_unsigned_long" = yes; then
12900   # The cast to unsigned long works around a bug in the HP C Compiler
12901   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12902   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12903   # This bug is HP SR number 8606223364.
12904   if test "$cross_compiling" = yes; then
12905   # Depending upon the size, compute the lo and hi bounds.
12906 cat >conftest.$ac_ext <<_ACEOF
12907 #line $LINENO "configure"
12908 #include "confdefs.h"
12909 $ac_includes_default
12910 #ifdef F77_DUMMY_MAIN
12911 #  ifdef __cplusplus
12912      extern "C"
12913 #  endif
12914    int F77_DUMMY_MAIN() { return 1; }
12915 #endif
12916 int
12917 main ()
12918 {
12919 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
12920 test_array [0] = 0
12921
12922   ;
12923   return 0;
12924 }
12925 _ACEOF
12926 rm -f conftest.$ac_objext
12927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12928   (eval $ac_compile) 2>&5
12929   ac_status=$?
12930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931   (exit $ac_status); } &&
12932          { ac_try='test -s conftest.$ac_objext'
12933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934   (eval $ac_try) 2>&5
12935   ac_status=$?
12936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937   (exit $ac_status); }; }; then
12938   ac_lo=0 ac_mid=0
12939   while :; do
12940     cat >conftest.$ac_ext <<_ACEOF
12941 #line $LINENO "configure"
12942 #include "confdefs.h"
12943 $ac_includes_default
12944 #ifdef F77_DUMMY_MAIN
12945 #  ifdef __cplusplus
12946      extern "C"
12947 #  endif
12948    int F77_DUMMY_MAIN() { return 1; }
12949 #endif
12950 int
12951 main ()
12952 {
12953 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12954 test_array [0] = 0
12955
12956   ;
12957   return 0;
12958 }
12959 _ACEOF
12960 rm -f conftest.$ac_objext
12961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12962   (eval $ac_compile) 2>&5
12963   ac_status=$?
12964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965   (exit $ac_status); } &&
12966          { ac_try='test -s conftest.$ac_objext'
12967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12968   (eval $ac_try) 2>&5
12969   ac_status=$?
12970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971   (exit $ac_status); }; }; then
12972   ac_hi=$ac_mid; break
12973 else
12974   echo "$as_me: failed program was:" >&5
12975 cat conftest.$ac_ext >&5
12976 ac_lo=`expr $ac_mid + 1`
12977                     if test $ac_lo -le $ac_mid; then
12978                       ac_lo= ac_hi=
12979                       break
12980                     fi
12981                     ac_mid=`expr 2 '*' $ac_mid + 1`
12982 fi
12983 rm -f conftest.$ac_objext conftest.$ac_ext
12984   done
12985 else
12986   echo "$as_me: failed program was:" >&5
12987 cat conftest.$ac_ext >&5
12988 cat >conftest.$ac_ext <<_ACEOF
12989 #line $LINENO "configure"
12990 #include "confdefs.h"
12991 $ac_includes_default
12992 #ifdef F77_DUMMY_MAIN
12993 #  ifdef __cplusplus
12994      extern "C"
12995 #  endif
12996    int F77_DUMMY_MAIN() { return 1; }
12997 #endif
12998 int
12999 main ()
13000 {
13001 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13002 test_array [0] = 0
13003
13004   ;
13005   return 0;
13006 }
13007 _ACEOF
13008 rm -f conftest.$ac_objext
13009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13010   (eval $ac_compile) 2>&5
13011   ac_status=$?
13012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013   (exit $ac_status); } &&
13014          { ac_try='test -s conftest.$ac_objext'
13015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016   (eval $ac_try) 2>&5
13017   ac_status=$?
13018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019   (exit $ac_status); }; }; then
13020   ac_hi=-1 ac_mid=-1
13021   while :; do
13022     cat >conftest.$ac_ext <<_ACEOF
13023 #line $LINENO "configure"
13024 #include "confdefs.h"
13025 $ac_includes_default
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 * !(((long) (sizeof (unsigned long))) >= $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_lo=$ac_mid; break
13055 else
13056   echo "$as_me: failed program was:" >&5
13057 cat conftest.$ac_ext >&5
13058 ac_hi=`expr '(' $ac_mid ')' - 1`
13059                        if test $ac_mid -le $ac_hi; then
13060                          ac_lo= ac_hi=
13061                          break
13062                        fi
13063                        ac_mid=`expr 2 '*' $ac_mid`
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 ac_lo= ac_hi=
13071 fi
13072 rm -f conftest.$ac_objext conftest.$ac_ext
13073 fi
13074 rm -f conftest.$ac_objext conftest.$ac_ext
13075 # Binary search between lo and hi bounds.
13076 while test "x$ac_lo" != "x$ac_hi"; do
13077   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13078   cat >conftest.$ac_ext <<_ACEOF
13079 #line $LINENO "configure"
13080 #include "confdefs.h"
13081 $ac_includes_default
13082 #ifdef F77_DUMMY_MAIN
13083 #  ifdef __cplusplus
13084      extern "C"
13085 #  endif
13086    int F77_DUMMY_MAIN() { return 1; }
13087 #endif
13088 int
13089 main ()
13090 {
13091 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13092 test_array [0] = 0
13093
13094   ;
13095   return 0;
13096 }
13097 _ACEOF
13098 rm -f conftest.$ac_objext
13099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13100   (eval $ac_compile) 2>&5
13101   ac_status=$?
13102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103   (exit $ac_status); } &&
13104          { ac_try='test -s conftest.$ac_objext'
13105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106   (eval $ac_try) 2>&5
13107   ac_status=$?
13108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109   (exit $ac_status); }; }; then
13110   ac_hi=$ac_mid
13111 else
13112   echo "$as_me: failed program was:" >&5
13113 cat conftest.$ac_ext >&5
13114 ac_lo=`expr '(' $ac_mid ')' + 1`
13115 fi
13116 rm -f conftest.$ac_objext conftest.$ac_ext
13117 done
13118 case $ac_lo in
13119 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13120 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13121 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13122    { (exit 1); exit 1; }; } ;;
13123 esac
13124 else
13125   if test "$cross_compiling" = yes; then
13126   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13127 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13128    { (exit 1); exit 1; }; }
13129 else
13130   cat >conftest.$ac_ext <<_ACEOF
13131 #line $LINENO "configure"
13132 #include "confdefs.h"
13133 $ac_includes_default
13134 long longval () { return (long) (sizeof (unsigned long)); }
13135 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
13136 #include <stdio.h>
13137 #include <stdlib.h>
13138 #ifdef F77_DUMMY_MAIN
13139 #  ifdef __cplusplus
13140      extern "C"
13141 #  endif
13142    int F77_DUMMY_MAIN() { return 1; }
13143 #endif
13144 int
13145 main ()
13146 {
13147
13148   FILE *f = fopen ("conftest.val", "w");
13149   if (! f)
13150     exit (1);
13151   if (((long) (sizeof (unsigned long))) < 0)
13152     {
13153       long i = longval ();
13154       if (i != ((long) (sizeof (unsigned long))))
13155         exit (1);
13156       fprintf (f, "%ld\n", i);
13157     }
13158   else
13159     {
13160       unsigned long i = ulongval ();
13161       if (i != ((long) (sizeof (unsigned long))))
13162         exit (1);
13163       fprintf (f, "%lu\n", i);
13164     }
13165   exit (ferror (f) || fclose (f) != 0);
13166
13167   ;
13168   return 0;
13169 }
13170 _ACEOF
13171 rm -f conftest$ac_exeext
13172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13173   (eval $ac_link) 2>&5
13174   ac_status=$?
13175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13178   (eval $ac_try) 2>&5
13179   ac_status=$?
13180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181   (exit $ac_status); }; }; then
13182   ac_cv_sizeof_unsigned_long=`cat conftest.val`
13183 else
13184   echo "$as_me: program exited with status $ac_status" >&5
13185 echo "$as_me: failed program was:" >&5
13186 cat conftest.$ac_ext >&5
13187 ( exit $ac_status )
13188 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13189 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13190    { (exit 1); exit 1; }; }
13191 fi
13192 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13193 fi
13194 fi
13195 rm -f conftest.val
13196 else
13197   ac_cv_sizeof_unsigned_long=0
13198 fi
13199 fi
13200 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13201 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13202 cat >>confdefs.h <<_ACEOF
13203 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13204 _ACEOF
13205
13206
13207
13208 # Determine memory alignment requirements for the basic C data types.
13209
13210 echo "$as_me:$LINENO: checking for short" >&5
13211 echo $ECHO_N "checking for short... $ECHO_C" >&6
13212 if test "${ac_cv_type_short+set}" = set; then
13213   echo $ECHO_N "(cached) $ECHO_C" >&6
13214 else
13215   cat >conftest.$ac_ext <<_ACEOF
13216 #line $LINENO "configure"
13217 #include "confdefs.h"
13218 $ac_includes_default
13219 #ifdef F77_DUMMY_MAIN
13220 #  ifdef __cplusplus
13221      extern "C"
13222 #  endif
13223    int F77_DUMMY_MAIN() { return 1; }
13224 #endif
13225 int
13226 main ()
13227 {
13228 if ((short *) 0)
13229   return 0;
13230 if (sizeof (short))
13231   return 0;
13232   ;
13233   return 0;
13234 }
13235 _ACEOF
13236 rm -f conftest.$ac_objext
13237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13238   (eval $ac_compile) 2>&5
13239   ac_status=$?
13240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241   (exit $ac_status); } &&
13242          { ac_try='test -s conftest.$ac_objext'
13243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244   (eval $ac_try) 2>&5
13245   ac_status=$?
13246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247   (exit $ac_status); }; }; then
13248   ac_cv_type_short=yes
13249 else
13250   echo "$as_me: failed program was:" >&5
13251 cat conftest.$ac_ext >&5
13252 ac_cv_type_short=no
13253 fi
13254 rm -f conftest.$ac_objext conftest.$ac_ext
13255 fi
13256 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13257 echo "${ECHO_T}$ac_cv_type_short" >&6
13258
13259 echo "$as_me:$LINENO: checking alignment of short" >&5
13260 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
13261 if test "${pgac_cv_alignof_short+set}" = set; then
13262   echo $ECHO_N "(cached) $ECHO_C" >&6
13263 else
13264   if test "$ac_cv_type_short" = yes; then
13265   if test "$cross_compiling" = yes; then
13266   # Depending upon the size, compute the lo and hi bounds.
13267 cat >conftest.$ac_ext <<_ACEOF
13268 #line $LINENO "configure"
13269 #include "confdefs.h"
13270 $ac_includes_default
13271 struct { char filler; short field; } pgac_struct;
13272 #ifdef F77_DUMMY_MAIN
13273 #  ifdef __cplusplus
13274      extern "C"
13275 #  endif
13276    int F77_DUMMY_MAIN() { return 1; }
13277 #endif
13278 int
13279 main ()
13280 {
13281 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13282 test_array [0] = 0
13283
13284   ;
13285   return 0;
13286 }
13287 _ACEOF
13288 rm -f conftest.$ac_objext
13289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13290   (eval $ac_compile) 2>&5
13291   ac_status=$?
13292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293   (exit $ac_status); } &&
13294          { ac_try='test -s conftest.$ac_objext'
13295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296   (eval $ac_try) 2>&5
13297   ac_status=$?
13298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299   (exit $ac_status); }; }; then
13300   ac_lo=0 ac_mid=0
13301   while :; do
13302     cat >conftest.$ac_ext <<_ACEOF
13303 #line $LINENO "configure"
13304 #include "confdefs.h"
13305 $ac_includes_default
13306 struct { char filler; short field; } pgac_struct;
13307 #ifdef F77_DUMMY_MAIN
13308 #  ifdef __cplusplus
13309      extern "C"
13310 #  endif
13311    int F77_DUMMY_MAIN() { return 1; }
13312 #endif
13313 int
13314 main ()
13315 {
13316 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13317 test_array [0] = 0
13318
13319   ;
13320   return 0;
13321 }
13322 _ACEOF
13323 rm -f conftest.$ac_objext
13324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13325   (eval $ac_compile) 2>&5
13326   ac_status=$?
13327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328   (exit $ac_status); } &&
13329          { ac_try='test -s conftest.$ac_objext'
13330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13331   (eval $ac_try) 2>&5
13332   ac_status=$?
13333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334   (exit $ac_status); }; }; then
13335   ac_hi=$ac_mid; break
13336 else
13337   echo "$as_me: failed program was:" >&5
13338 cat conftest.$ac_ext >&5
13339 ac_lo=`expr $ac_mid + 1`
13340                     if test $ac_lo -le $ac_mid; then
13341                       ac_lo= ac_hi=
13342                       break
13343                     fi
13344                     ac_mid=`expr 2 '*' $ac_mid + 1`
13345 fi
13346 rm -f conftest.$ac_objext conftest.$ac_ext
13347   done
13348 else
13349   echo "$as_me: failed program was:" >&5
13350 cat conftest.$ac_ext >&5
13351 cat >conftest.$ac_ext <<_ACEOF
13352 #line $LINENO "configure"
13353 #include "confdefs.h"
13354 $ac_includes_default
13355 struct { char filler; short field; } pgac_struct;
13356 #ifdef F77_DUMMY_MAIN
13357 #  ifdef __cplusplus
13358      extern "C"
13359 #  endif
13360    int F77_DUMMY_MAIN() { return 1; }
13361 #endif
13362 int
13363 main ()
13364 {
13365 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13366 test_array [0] = 0
13367
13368   ;
13369   return 0;
13370 }
13371 _ACEOF
13372 rm -f conftest.$ac_objext
13373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13374   (eval $ac_compile) 2>&5
13375   ac_status=$?
13376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377   (exit $ac_status); } &&
13378          { ac_try='test -s conftest.$ac_objext'
13379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380   (eval $ac_try) 2>&5
13381   ac_status=$?
13382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383   (exit $ac_status); }; }; then
13384   ac_hi=-1 ac_mid=-1
13385   while :; do
13386     cat >conftest.$ac_ext <<_ACEOF
13387 #line $LINENO "configure"
13388 #include "confdefs.h"
13389 $ac_includes_default
13390 struct { char filler; short field; } pgac_struct;
13391 #ifdef F77_DUMMY_MAIN
13392 #  ifdef __cplusplus
13393      extern "C"
13394 #  endif
13395    int F77_DUMMY_MAIN() { return 1; }
13396 #endif
13397 int
13398 main ()
13399 {
13400 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13401 test_array [0] = 0
13402
13403   ;
13404   return 0;
13405 }
13406 _ACEOF
13407 rm -f conftest.$ac_objext
13408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13409   (eval $ac_compile) 2>&5
13410   ac_status=$?
13411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412   (exit $ac_status); } &&
13413          { ac_try='test -s conftest.$ac_objext'
13414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415   (eval $ac_try) 2>&5
13416   ac_status=$?
13417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418   (exit $ac_status); }; }; then
13419   ac_lo=$ac_mid; break
13420 else
13421   echo "$as_me: failed program was:" >&5
13422 cat conftest.$ac_ext >&5
13423 ac_hi=`expr '(' $ac_mid ')' - 1`
13424                        if test $ac_mid -le $ac_hi; then
13425                          ac_lo= ac_hi=
13426                          break
13427                        fi
13428                        ac_mid=`expr 2 '*' $ac_mid`
13429 fi
13430 rm -f conftest.$ac_objext conftest.$ac_ext
13431   done
13432 else
13433   echo "$as_me: failed program was:" >&5
13434 cat conftest.$ac_ext >&5
13435 ac_lo= ac_hi=
13436 fi
13437 rm -f conftest.$ac_objext conftest.$ac_ext
13438 fi
13439 rm -f conftest.$ac_objext conftest.$ac_ext
13440 # Binary search between lo and hi bounds.
13441 while test "x$ac_lo" != "x$ac_hi"; do
13442   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13443   cat >conftest.$ac_ext <<_ACEOF
13444 #line $LINENO "configure"
13445 #include "confdefs.h"
13446 $ac_includes_default
13447 struct { char filler; short field; } pgac_struct;
13448 #ifdef F77_DUMMY_MAIN
13449 #  ifdef __cplusplus
13450      extern "C"
13451 #  endif
13452    int F77_DUMMY_MAIN() { return 1; }
13453 #endif
13454 int
13455 main ()
13456 {
13457 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13458 test_array [0] = 0
13459
13460   ;
13461   return 0;
13462 }
13463 _ACEOF
13464 rm -f conftest.$ac_objext
13465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13466   (eval $ac_compile) 2>&5
13467   ac_status=$?
13468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469   (exit $ac_status); } &&
13470          { ac_try='test -s conftest.$ac_objext'
13471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13472   (eval $ac_try) 2>&5
13473   ac_status=$?
13474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475   (exit $ac_status); }; }; then
13476   ac_hi=$ac_mid
13477 else
13478   echo "$as_me: failed program was:" >&5
13479 cat conftest.$ac_ext >&5
13480 ac_lo=`expr '(' $ac_mid ')' + 1`
13481 fi
13482 rm -f conftest.$ac_objext conftest.$ac_ext
13483 done
13484 case $ac_lo in
13485 ?*) pgac_cv_alignof_short=$ac_lo;;
13486 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13487 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13488    { (exit 1); exit 1; }; } ;;
13489 esac
13490 else
13491   if test "$cross_compiling" = yes; then
13492   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13493 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13494    { (exit 1); exit 1; }; }
13495 else
13496   cat >conftest.$ac_ext <<_ACEOF
13497 #line $LINENO "configure"
13498 #include "confdefs.h"
13499 $ac_includes_default
13500 struct { char filler; short field; } pgac_struct;
13501 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13502 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13503 #include <stdio.h>
13504 #include <stdlib.h>
13505 #ifdef F77_DUMMY_MAIN
13506 #  ifdef __cplusplus
13507      extern "C"
13508 #  endif
13509    int F77_DUMMY_MAIN() { return 1; }
13510 #endif
13511 int
13512 main ()
13513 {
13514
13515   FILE *f = fopen ("conftest.val", "w");
13516   if (! f)
13517     exit (1);
13518   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13519     {
13520       long i = longval ();
13521       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13522         exit (1);
13523       fprintf (f, "%ld\n", i);
13524     }
13525   else
13526     {
13527       unsigned long i = ulongval ();
13528       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13529         exit (1);
13530       fprintf (f, "%lu\n", i);
13531     }
13532   exit (ferror (f) || fclose (f) != 0);
13533
13534   ;
13535   return 0;
13536 }
13537 _ACEOF
13538 rm -f conftest$ac_exeext
13539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13540   (eval $ac_link) 2>&5
13541   ac_status=$?
13542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545   (eval $ac_try) 2>&5
13546   ac_status=$?
13547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548   (exit $ac_status); }; }; then
13549   pgac_cv_alignof_short=`cat conftest.val`
13550 else
13551   echo "$as_me: program exited with status $ac_status" >&5
13552 echo "$as_me: failed program was:" >&5
13553 cat conftest.$ac_ext >&5
13554 ( exit $ac_status )
13555 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13556 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13557    { (exit 1); exit 1; }; }
13558 fi
13559 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13560 fi
13561 fi
13562 rm -f conftest.val
13563 else
13564   pgac_cv_alignof_short=0
13565 fi
13566 fi
13567 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
13568 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
13569 cat >>confdefs.h <<_ACEOF
13570 #define ALIGNOF_SHORT $pgac_cv_alignof_short
13571 _ACEOF
13572
13573
13574 echo "$as_me:$LINENO: checking for int" >&5
13575 echo $ECHO_N "checking for int... $ECHO_C" >&6
13576 if test "${ac_cv_type_int+set}" = set; then
13577   echo $ECHO_N "(cached) $ECHO_C" >&6
13578 else
13579   cat >conftest.$ac_ext <<_ACEOF
13580 #line $LINENO "configure"
13581 #include "confdefs.h"
13582 $ac_includes_default
13583 #ifdef F77_DUMMY_MAIN
13584 #  ifdef __cplusplus
13585      extern "C"
13586 #  endif
13587    int F77_DUMMY_MAIN() { return 1; }
13588 #endif
13589 int
13590 main ()
13591 {
13592 if ((int *) 0)
13593   return 0;
13594 if (sizeof (int))
13595   return 0;
13596   ;
13597   return 0;
13598 }
13599 _ACEOF
13600 rm -f conftest.$ac_objext
13601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13602   (eval $ac_compile) 2>&5
13603   ac_status=$?
13604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605   (exit $ac_status); } &&
13606          { ac_try='test -s conftest.$ac_objext'
13607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13608   (eval $ac_try) 2>&5
13609   ac_status=$?
13610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611   (exit $ac_status); }; }; then
13612   ac_cv_type_int=yes
13613 else
13614   echo "$as_me: failed program was:" >&5
13615 cat conftest.$ac_ext >&5
13616 ac_cv_type_int=no
13617 fi
13618 rm -f conftest.$ac_objext conftest.$ac_ext
13619 fi
13620 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13621 echo "${ECHO_T}$ac_cv_type_int" >&6
13622
13623 echo "$as_me:$LINENO: checking alignment of int" >&5
13624 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
13625 if test "${pgac_cv_alignof_int+set}" = set; then
13626   echo $ECHO_N "(cached) $ECHO_C" >&6
13627 else
13628   if test "$ac_cv_type_int" = yes; then
13629   if test "$cross_compiling" = yes; then
13630   # Depending upon the size, compute the lo and hi bounds.
13631 cat >conftest.$ac_ext <<_ACEOF
13632 #line $LINENO "configure"
13633 #include "confdefs.h"
13634 $ac_includes_default
13635 struct { char filler; int field; } pgac_struct;
13636 #ifdef F77_DUMMY_MAIN
13637 #  ifdef __cplusplus
13638      extern "C"
13639 #  endif
13640    int F77_DUMMY_MAIN() { return 1; }
13641 #endif
13642 int
13643 main ()
13644 {
13645 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13646 test_array [0] = 0
13647
13648   ;
13649   return 0;
13650 }
13651 _ACEOF
13652 rm -f conftest.$ac_objext
13653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13654   (eval $ac_compile) 2>&5
13655   ac_status=$?
13656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657   (exit $ac_status); } &&
13658          { ac_try='test -s conftest.$ac_objext'
13659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660   (eval $ac_try) 2>&5
13661   ac_status=$?
13662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663   (exit $ac_status); }; }; then
13664   ac_lo=0 ac_mid=0
13665   while :; do
13666     cat >conftest.$ac_ext <<_ACEOF
13667 #line $LINENO "configure"
13668 #include "confdefs.h"
13669 $ac_includes_default
13670 struct { char filler; int field; } pgac_struct;
13671 #ifdef F77_DUMMY_MAIN
13672 #  ifdef __cplusplus
13673      extern "C"
13674 #  endif
13675    int F77_DUMMY_MAIN() { return 1; }
13676 #endif
13677 int
13678 main ()
13679 {
13680 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13681 test_array [0] = 0
13682
13683   ;
13684   return 0;
13685 }
13686 _ACEOF
13687 rm -f conftest.$ac_objext
13688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13689   (eval $ac_compile) 2>&5
13690   ac_status=$?
13691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692   (exit $ac_status); } &&
13693          { ac_try='test -s conftest.$ac_objext'
13694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13695   (eval $ac_try) 2>&5
13696   ac_status=$?
13697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698   (exit $ac_status); }; }; then
13699   ac_hi=$ac_mid; break
13700 else
13701   echo "$as_me: failed program was:" >&5
13702 cat conftest.$ac_ext >&5
13703 ac_lo=`expr $ac_mid + 1`
13704                     if test $ac_lo -le $ac_mid; then
13705                       ac_lo= ac_hi=
13706                       break
13707                     fi
13708                     ac_mid=`expr 2 '*' $ac_mid + 1`
13709 fi
13710 rm -f conftest.$ac_objext conftest.$ac_ext
13711   done
13712 else
13713   echo "$as_me: failed program was:" >&5
13714 cat conftest.$ac_ext >&5
13715 cat >conftest.$ac_ext <<_ACEOF
13716 #line $LINENO "configure"
13717 #include "confdefs.h"
13718 $ac_includes_default
13719 struct { char filler; 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_hi=-1 ac_mid=-1
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; 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_lo=$ac_mid; break
13784 else
13785   echo "$as_me: failed program was:" >&5
13786 cat conftest.$ac_ext >&5
13787 ac_hi=`expr '(' $ac_mid ')' - 1`
13788                        if test $ac_mid -le $ac_hi; then
13789                          ac_lo= ac_hi=
13790                          break
13791                        fi
13792                        ac_mid=`expr 2 '*' $ac_mid`
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 ac_lo= ac_hi=
13800 fi
13801 rm -f conftest.$ac_objext conftest.$ac_ext
13802 fi
13803 rm -f conftest.$ac_objext conftest.$ac_ext
13804 # Binary search between lo and hi bounds.
13805 while test "x$ac_lo" != "x$ac_hi"; do
13806   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13807   cat >conftest.$ac_ext <<_ACEOF
13808 #line $LINENO "configure"
13809 #include "confdefs.h"
13810 $ac_includes_default
13811 struct { char filler; int field; } pgac_struct;
13812 #ifdef F77_DUMMY_MAIN
13813 #  ifdef __cplusplus
13814      extern "C"
13815 #  endif
13816    int F77_DUMMY_MAIN() { return 1; }
13817 #endif
13818 int
13819 main ()
13820 {
13821 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13822 test_array [0] = 0
13823
13824   ;
13825   return 0;
13826 }
13827 _ACEOF
13828 rm -f conftest.$ac_objext
13829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13830   (eval $ac_compile) 2>&5
13831   ac_status=$?
13832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833   (exit $ac_status); } &&
13834          { ac_try='test -s conftest.$ac_objext'
13835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13836   (eval $ac_try) 2>&5
13837   ac_status=$?
13838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839   (exit $ac_status); }; }; then
13840   ac_hi=$ac_mid
13841 else
13842   echo "$as_me: failed program was:" >&5
13843 cat conftest.$ac_ext >&5
13844 ac_lo=`expr '(' $ac_mid ')' + 1`
13845 fi
13846 rm -f conftest.$ac_objext conftest.$ac_ext
13847 done
13848 case $ac_lo in
13849 ?*) pgac_cv_alignof_int=$ac_lo;;
13850 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13851 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13852    { (exit 1); exit 1; }; } ;;
13853 esac
13854 else
13855   if test "$cross_compiling" = yes; then
13856   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13857 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13858    { (exit 1); exit 1; }; }
13859 else
13860   cat >conftest.$ac_ext <<_ACEOF
13861 #line $LINENO "configure"
13862 #include "confdefs.h"
13863 $ac_includes_default
13864 struct { char filler; int field; } pgac_struct;
13865 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13866 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13867 #include <stdio.h>
13868 #include <stdlib.h>
13869 #ifdef F77_DUMMY_MAIN
13870 #  ifdef __cplusplus
13871      extern "C"
13872 #  endif
13873    int F77_DUMMY_MAIN() { return 1; }
13874 #endif
13875 int
13876 main ()
13877 {
13878
13879   FILE *f = fopen ("conftest.val", "w");
13880   if (! f)
13881     exit (1);
13882   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13883     {
13884       long i = longval ();
13885       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13886         exit (1);
13887       fprintf (f, "%ld\n", i);
13888     }
13889   else
13890     {
13891       unsigned long i = ulongval ();
13892       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13893         exit (1);
13894       fprintf (f, "%lu\n", i);
13895     }
13896   exit (ferror (f) || fclose (f) != 0);
13897
13898   ;
13899   return 0;
13900 }
13901 _ACEOF
13902 rm -f conftest$ac_exeext
13903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13904   (eval $ac_link) 2>&5
13905   ac_status=$?
13906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909   (eval $ac_try) 2>&5
13910   ac_status=$?
13911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912   (exit $ac_status); }; }; then
13913   pgac_cv_alignof_int=`cat conftest.val`
13914 else
13915   echo "$as_me: program exited with status $ac_status" >&5
13916 echo "$as_me: failed program was:" >&5
13917 cat conftest.$ac_ext >&5
13918 ( exit $ac_status )
13919 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13920 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13921    { (exit 1); exit 1; }; }
13922 fi
13923 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13924 fi
13925 fi
13926 rm -f conftest.val
13927 else
13928   pgac_cv_alignof_int=0
13929 fi
13930 fi
13931 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
13932 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
13933 cat >>confdefs.h <<_ACEOF
13934 #define ALIGNOF_INT $pgac_cv_alignof_int
13935 _ACEOF
13936
13937
13938 echo "$as_me:$LINENO: checking for long" >&5
13939 echo $ECHO_N "checking for long... $ECHO_C" >&6
13940 if test "${ac_cv_type_long+set}" = set; then
13941   echo $ECHO_N "(cached) $ECHO_C" >&6
13942 else
13943   cat >conftest.$ac_ext <<_ACEOF
13944 #line $LINENO "configure"
13945 #include "confdefs.h"
13946 $ac_includes_default
13947 #ifdef F77_DUMMY_MAIN
13948 #  ifdef __cplusplus
13949      extern "C"
13950 #  endif
13951    int F77_DUMMY_MAIN() { return 1; }
13952 #endif
13953 int
13954 main ()
13955 {
13956 if ((long *) 0)
13957   return 0;
13958 if (sizeof (long))
13959   return 0;
13960   ;
13961   return 0;
13962 }
13963 _ACEOF
13964 rm -f conftest.$ac_objext
13965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13966   (eval $ac_compile) 2>&5
13967   ac_status=$?
13968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969   (exit $ac_status); } &&
13970          { ac_try='test -s conftest.$ac_objext'
13971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13972   (eval $ac_try) 2>&5
13973   ac_status=$?
13974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975   (exit $ac_status); }; }; then
13976   ac_cv_type_long=yes
13977 else
13978   echo "$as_me: failed program was:" >&5
13979 cat conftest.$ac_ext >&5
13980 ac_cv_type_long=no
13981 fi
13982 rm -f conftest.$ac_objext conftest.$ac_ext
13983 fi
13984 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13985 echo "${ECHO_T}$ac_cv_type_long" >&6
13986
13987 echo "$as_me:$LINENO: checking alignment of long" >&5
13988 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
13989 if test "${pgac_cv_alignof_long+set}" = set; then
13990   echo $ECHO_N "(cached) $ECHO_C" >&6
13991 else
13992   if test "$ac_cv_type_long" = yes; then
13993   if test "$cross_compiling" = yes; then
13994   # Depending upon the size, compute the lo and hi bounds.
13995 cat >conftest.$ac_ext <<_ACEOF
13996 #line $LINENO "configure"
13997 #include "confdefs.h"
13998 $ac_includes_default
13999 struct { char filler; long field; } pgac_struct;
14000 #ifdef F77_DUMMY_MAIN
14001 #  ifdef __cplusplus
14002      extern "C"
14003 #  endif
14004    int F77_DUMMY_MAIN() { return 1; }
14005 #endif
14006 int
14007 main ()
14008 {
14009 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14010 test_array [0] = 0
14011
14012   ;
14013   return 0;
14014 }
14015 _ACEOF
14016 rm -f conftest.$ac_objext
14017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14018   (eval $ac_compile) 2>&5
14019   ac_status=$?
14020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021   (exit $ac_status); } &&
14022          { ac_try='test -s conftest.$ac_objext'
14023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024   (eval $ac_try) 2>&5
14025   ac_status=$?
14026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027   (exit $ac_status); }; }; then
14028   ac_lo=0 ac_mid=0
14029   while :; do
14030     cat >conftest.$ac_ext <<_ACEOF
14031 #line $LINENO "configure"
14032 #include "confdefs.h"
14033 $ac_includes_default
14034 struct { char filler; long field; } pgac_struct;
14035 #ifdef F77_DUMMY_MAIN
14036 #  ifdef __cplusplus
14037      extern "C"
14038 #  endif
14039    int F77_DUMMY_MAIN() { return 1; }
14040 #endif
14041 int
14042 main ()
14043 {
14044 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14045 test_array [0] = 0
14046
14047   ;
14048   return 0;
14049 }
14050 _ACEOF
14051 rm -f conftest.$ac_objext
14052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14053   (eval $ac_compile) 2>&5
14054   ac_status=$?
14055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056   (exit $ac_status); } &&
14057          { ac_try='test -s conftest.$ac_objext'
14058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059   (eval $ac_try) 2>&5
14060   ac_status=$?
14061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062   (exit $ac_status); }; }; then
14063   ac_hi=$ac_mid; break
14064 else
14065   echo "$as_me: failed program was:" >&5
14066 cat conftest.$ac_ext >&5
14067 ac_lo=`expr $ac_mid + 1`
14068                     if test $ac_lo -le $ac_mid; then
14069                       ac_lo= ac_hi=
14070                       break
14071                     fi
14072                     ac_mid=`expr 2 '*' $ac_mid + 1`
14073 fi
14074 rm -f conftest.$ac_objext conftest.$ac_ext
14075   done
14076 else
14077   echo "$as_me: failed program was:" >&5
14078 cat conftest.$ac_ext >&5
14079 cat >conftest.$ac_ext <<_ACEOF
14080 #line $LINENO "configure"
14081 #include "confdefs.h"
14082 $ac_includes_default
14083 struct { char filler; long field; } pgac_struct;
14084 #ifdef F77_DUMMY_MAIN
14085 #  ifdef __cplusplus
14086      extern "C"
14087 #  endif
14088    int F77_DUMMY_MAIN() { return 1; }
14089 #endif
14090 int
14091 main ()
14092 {
14093 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14094 test_array [0] = 0
14095
14096   ;
14097   return 0;
14098 }
14099 _ACEOF
14100 rm -f conftest.$ac_objext
14101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14102   (eval $ac_compile) 2>&5
14103   ac_status=$?
14104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105   (exit $ac_status); } &&
14106          { ac_try='test -s conftest.$ac_objext'
14107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14108   (eval $ac_try) 2>&5
14109   ac_status=$?
14110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111   (exit $ac_status); }; }; then
14112   ac_hi=-1 ac_mid=-1
14113   while :; do
14114     cat >conftest.$ac_ext <<_ACEOF
14115 #line $LINENO "configure"
14116 #include "confdefs.h"
14117 $ac_includes_default
14118 struct { char filler; long field; } pgac_struct;
14119 #ifdef F77_DUMMY_MAIN
14120 #  ifdef __cplusplus
14121      extern "C"
14122 #  endif
14123    int F77_DUMMY_MAIN() { return 1; }
14124 #endif
14125 int
14126 main ()
14127 {
14128 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14129 test_array [0] = 0
14130
14131   ;
14132   return 0;
14133 }
14134 _ACEOF
14135 rm -f conftest.$ac_objext
14136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14137   (eval $ac_compile) 2>&5
14138   ac_status=$?
14139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140   (exit $ac_status); } &&
14141          { ac_try='test -s conftest.$ac_objext'
14142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143   (eval $ac_try) 2>&5
14144   ac_status=$?
14145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146   (exit $ac_status); }; }; then
14147   ac_lo=$ac_mid; break
14148 else
14149   echo "$as_me: failed program was:" >&5
14150 cat conftest.$ac_ext >&5
14151 ac_hi=`expr '(' $ac_mid ')' - 1`
14152                        if test $ac_mid -le $ac_hi; then
14153                          ac_lo= ac_hi=
14154                          break
14155                        fi
14156                        ac_mid=`expr 2 '*' $ac_mid`
14157 fi
14158 rm -f conftest.$ac_objext conftest.$ac_ext
14159   done
14160 else
14161   echo "$as_me: failed program was:" >&5
14162 cat conftest.$ac_ext >&5
14163 ac_lo= ac_hi=
14164 fi
14165 rm -f conftest.$ac_objext conftest.$ac_ext
14166 fi
14167 rm -f conftest.$ac_objext conftest.$ac_ext
14168 # Binary search between lo and hi bounds.
14169 while test "x$ac_lo" != "x$ac_hi"; do
14170   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14171   cat >conftest.$ac_ext <<_ACEOF
14172 #line $LINENO "configure"
14173 #include "confdefs.h"
14174 $ac_includes_default
14175 struct { char filler; long field; } pgac_struct;
14176 #ifdef F77_DUMMY_MAIN
14177 #  ifdef __cplusplus
14178      extern "C"
14179 #  endif
14180    int F77_DUMMY_MAIN() { return 1; }
14181 #endif
14182 int
14183 main ()
14184 {
14185 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14186 test_array [0] = 0
14187
14188   ;
14189   return 0;
14190 }
14191 _ACEOF
14192 rm -f conftest.$ac_objext
14193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14194   (eval $ac_compile) 2>&5
14195   ac_status=$?
14196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197   (exit $ac_status); } &&
14198          { ac_try='test -s conftest.$ac_objext'
14199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200   (eval $ac_try) 2>&5
14201   ac_status=$?
14202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203   (exit $ac_status); }; }; then
14204   ac_hi=$ac_mid
14205 else
14206   echo "$as_me: failed program was:" >&5
14207 cat conftest.$ac_ext >&5
14208 ac_lo=`expr '(' $ac_mid ')' + 1`
14209 fi
14210 rm -f conftest.$ac_objext conftest.$ac_ext
14211 done
14212 case $ac_lo in
14213 ?*) pgac_cv_alignof_long=$ac_lo;;
14214 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14215 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14216    { (exit 1); exit 1; }; } ;;
14217 esac
14218 else
14219   if test "$cross_compiling" = yes; then
14220   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14221 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14222    { (exit 1); exit 1; }; }
14223 else
14224   cat >conftest.$ac_ext <<_ACEOF
14225 #line $LINENO "configure"
14226 #include "confdefs.h"
14227 $ac_includes_default
14228 struct { char filler; long field; } pgac_struct;
14229 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14230 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14231 #include <stdio.h>
14232 #include <stdlib.h>
14233 #ifdef F77_DUMMY_MAIN
14234 #  ifdef __cplusplus
14235      extern "C"
14236 #  endif
14237    int F77_DUMMY_MAIN() { return 1; }
14238 #endif
14239 int
14240 main ()
14241 {
14242
14243   FILE *f = fopen ("conftest.val", "w");
14244   if (! f)
14245     exit (1);
14246   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14247     {
14248       long i = longval ();
14249       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14250         exit (1);
14251       fprintf (f, "%ld\n", i);
14252     }
14253   else
14254     {
14255       unsigned long i = ulongval ();
14256       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14257         exit (1);
14258       fprintf (f, "%lu\n", i);
14259     }
14260   exit (ferror (f) || fclose (f) != 0);
14261
14262   ;
14263   return 0;
14264 }
14265 _ACEOF
14266 rm -f conftest$ac_exeext
14267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14268   (eval $ac_link) 2>&5
14269   ac_status=$?
14270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14273   (eval $ac_try) 2>&5
14274   ac_status=$?
14275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276   (exit $ac_status); }; }; then
14277   pgac_cv_alignof_long=`cat conftest.val`
14278 else
14279   echo "$as_me: program exited with status $ac_status" >&5
14280 echo "$as_me: failed program was:" >&5
14281 cat conftest.$ac_ext >&5
14282 ( exit $ac_status )
14283 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14284 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14285    { (exit 1); exit 1; }; }
14286 fi
14287 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14288 fi
14289 fi
14290 rm -f conftest.val
14291 else
14292   pgac_cv_alignof_long=0
14293 fi
14294 fi
14295 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14296 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14297 cat >>confdefs.h <<_ACEOF
14298 #define ALIGNOF_LONG $pgac_cv_alignof_long
14299 _ACEOF
14300
14301
14302 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14303   echo "$as_me:$LINENO: checking for long long int" >&5
14304 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14305 if test "${ac_cv_type_long_long_int+set}" = set; then
14306   echo $ECHO_N "(cached) $ECHO_C" >&6
14307 else
14308   cat >conftest.$ac_ext <<_ACEOF
14309 #line $LINENO "configure"
14310 #include "confdefs.h"
14311 $ac_includes_default
14312 #ifdef F77_DUMMY_MAIN
14313 #  ifdef __cplusplus
14314      extern "C"
14315 #  endif
14316    int F77_DUMMY_MAIN() { return 1; }
14317 #endif
14318 int
14319 main ()
14320 {
14321 if ((long long int *) 0)
14322   return 0;
14323 if (sizeof (long long int))
14324   return 0;
14325   ;
14326   return 0;
14327 }
14328 _ACEOF
14329 rm -f conftest.$ac_objext
14330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14331   (eval $ac_compile) 2>&5
14332   ac_status=$?
14333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334   (exit $ac_status); } &&
14335          { ac_try='test -s conftest.$ac_objext'
14336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337   (eval $ac_try) 2>&5
14338   ac_status=$?
14339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340   (exit $ac_status); }; }; then
14341   ac_cv_type_long_long_int=yes
14342 else
14343   echo "$as_me: failed program was:" >&5
14344 cat conftest.$ac_ext >&5
14345 ac_cv_type_long_long_int=no
14346 fi
14347 rm -f conftest.$ac_objext conftest.$ac_ext
14348 fi
14349 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14350 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14351
14352 echo "$as_me:$LINENO: checking alignment of long long int" >&5
14353 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14354 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14355   echo $ECHO_N "(cached) $ECHO_C" >&6
14356 else
14357   if test "$ac_cv_type_long_long_int" = yes; then
14358   if test "$cross_compiling" = yes; then
14359   # Depending upon the size, compute the lo and hi bounds.
14360 cat >conftest.$ac_ext <<_ACEOF
14361 #line $LINENO "configure"
14362 #include "confdefs.h"
14363 $ac_includes_default
14364 struct { char filler; long long int field; } pgac_struct;
14365 #ifdef F77_DUMMY_MAIN
14366 #  ifdef __cplusplus
14367      extern "C"
14368 #  endif
14369    int F77_DUMMY_MAIN() { return 1; }
14370 #endif
14371 int
14372 main ()
14373 {
14374 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14375 test_array [0] = 0
14376
14377   ;
14378   return 0;
14379 }
14380 _ACEOF
14381 rm -f conftest.$ac_objext
14382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14383   (eval $ac_compile) 2>&5
14384   ac_status=$?
14385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386   (exit $ac_status); } &&
14387          { ac_try='test -s conftest.$ac_objext'
14388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14389   (eval $ac_try) 2>&5
14390   ac_status=$?
14391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392   (exit $ac_status); }; }; then
14393   ac_lo=0 ac_mid=0
14394   while :; do
14395     cat >conftest.$ac_ext <<_ACEOF
14396 #line $LINENO "configure"
14397 #include "confdefs.h"
14398 $ac_includes_default
14399 struct { char filler; long long int field; } pgac_struct;
14400 #ifdef F77_DUMMY_MAIN
14401 #  ifdef __cplusplus
14402      extern "C"
14403 #  endif
14404    int F77_DUMMY_MAIN() { return 1; }
14405 #endif
14406 int
14407 main ()
14408 {
14409 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14410 test_array [0] = 0
14411
14412   ;
14413   return 0;
14414 }
14415 _ACEOF
14416 rm -f conftest.$ac_objext
14417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14418   (eval $ac_compile) 2>&5
14419   ac_status=$?
14420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421   (exit $ac_status); } &&
14422          { ac_try='test -s conftest.$ac_objext'
14423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424   (eval $ac_try) 2>&5
14425   ac_status=$?
14426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427   (exit $ac_status); }; }; then
14428   ac_hi=$ac_mid; break
14429 else
14430   echo "$as_me: failed program was:" >&5
14431 cat conftest.$ac_ext >&5
14432 ac_lo=`expr $ac_mid + 1`
14433                     if test $ac_lo -le $ac_mid; then
14434                       ac_lo= ac_hi=
14435                       break
14436                     fi
14437                     ac_mid=`expr 2 '*' $ac_mid + 1`
14438 fi
14439 rm -f conftest.$ac_objext conftest.$ac_ext
14440   done
14441 else
14442   echo "$as_me: failed program was:" >&5
14443 cat conftest.$ac_ext >&5
14444 cat >conftest.$ac_ext <<_ACEOF
14445 #line $LINENO "configure"
14446 #include "confdefs.h"
14447 $ac_includes_default
14448 struct { char filler; long long int field; } pgac_struct;
14449 #ifdef F77_DUMMY_MAIN
14450 #  ifdef __cplusplus
14451      extern "C"
14452 #  endif
14453    int F77_DUMMY_MAIN() { return 1; }
14454 #endif
14455 int
14456 main ()
14457 {
14458 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14459 test_array [0] = 0
14460
14461   ;
14462   return 0;
14463 }
14464 _ACEOF
14465 rm -f conftest.$ac_objext
14466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14467   (eval $ac_compile) 2>&5
14468   ac_status=$?
14469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470   (exit $ac_status); } &&
14471          { ac_try='test -s conftest.$ac_objext'
14472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14473   (eval $ac_try) 2>&5
14474   ac_status=$?
14475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476   (exit $ac_status); }; }; then
14477   ac_hi=-1 ac_mid=-1
14478   while :; do
14479     cat >conftest.$ac_ext <<_ACEOF
14480 #line $LINENO "configure"
14481 #include "confdefs.h"
14482 $ac_includes_default
14483 struct { char filler; long long int field; } pgac_struct;
14484 #ifdef F77_DUMMY_MAIN
14485 #  ifdef __cplusplus
14486      extern "C"
14487 #  endif
14488    int F77_DUMMY_MAIN() { return 1; }
14489 #endif
14490 int
14491 main ()
14492 {
14493 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14494 test_array [0] = 0
14495
14496   ;
14497   return 0;
14498 }
14499 _ACEOF
14500 rm -f conftest.$ac_objext
14501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14502   (eval $ac_compile) 2>&5
14503   ac_status=$?
14504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505   (exit $ac_status); } &&
14506          { ac_try='test -s conftest.$ac_objext'
14507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508   (eval $ac_try) 2>&5
14509   ac_status=$?
14510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511   (exit $ac_status); }; }; then
14512   ac_lo=$ac_mid; break
14513 else
14514   echo "$as_me: failed program was:" >&5
14515 cat conftest.$ac_ext >&5
14516 ac_hi=`expr '(' $ac_mid ')' - 1`
14517                        if test $ac_mid -le $ac_hi; then
14518                          ac_lo= ac_hi=
14519                          break
14520                        fi
14521                        ac_mid=`expr 2 '*' $ac_mid`
14522 fi
14523 rm -f conftest.$ac_objext conftest.$ac_ext
14524   done
14525 else
14526   echo "$as_me: failed program was:" >&5
14527 cat conftest.$ac_ext >&5
14528 ac_lo= ac_hi=
14529 fi
14530 rm -f conftest.$ac_objext conftest.$ac_ext
14531 fi
14532 rm -f conftest.$ac_objext conftest.$ac_ext
14533 # Binary search between lo and hi bounds.
14534 while test "x$ac_lo" != "x$ac_hi"; do
14535   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14536   cat >conftest.$ac_ext <<_ACEOF
14537 #line $LINENO "configure"
14538 #include "confdefs.h"
14539 $ac_includes_default
14540 struct { char filler; long long int field; } pgac_struct;
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 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14551 test_array [0] = 0
14552
14553   ;
14554   return 0;
14555 }
14556 _ACEOF
14557 rm -f conftest.$ac_objext
14558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14559   (eval $ac_compile) 2>&5
14560   ac_status=$?
14561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562   (exit $ac_status); } &&
14563          { ac_try='test -s conftest.$ac_objext'
14564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565   (eval $ac_try) 2>&5
14566   ac_status=$?
14567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568   (exit $ac_status); }; }; then
14569   ac_hi=$ac_mid
14570 else
14571   echo "$as_me: failed program was:" >&5
14572 cat conftest.$ac_ext >&5
14573 ac_lo=`expr '(' $ac_mid ')' + 1`
14574 fi
14575 rm -f conftest.$ac_objext conftest.$ac_ext
14576 done
14577 case $ac_lo in
14578 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
14579 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14580 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14581    { (exit 1); exit 1; }; } ;;
14582 esac
14583 else
14584   if test "$cross_compiling" = yes; then
14585   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14586 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14587    { (exit 1); exit 1; }; }
14588 else
14589   cat >conftest.$ac_ext <<_ACEOF
14590 #line $LINENO "configure"
14591 #include "confdefs.h"
14592 $ac_includes_default
14593 struct { char filler; long long int field; } pgac_struct;
14594 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14595 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14596 #include <stdio.h>
14597 #include <stdlib.h>
14598 #ifdef F77_DUMMY_MAIN
14599 #  ifdef __cplusplus
14600      extern "C"
14601 #  endif
14602    int F77_DUMMY_MAIN() { return 1; }
14603 #endif
14604 int
14605 main ()
14606 {
14607
14608   FILE *f = fopen ("conftest.val", "w");
14609   if (! f)
14610     exit (1);
14611   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14612     {
14613       long i = longval ();
14614       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14615         exit (1);
14616       fprintf (f, "%ld\n", i);
14617     }
14618   else
14619     {
14620       unsigned long i = ulongval ();
14621       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14622         exit (1);
14623       fprintf (f, "%lu\n", i);
14624     }
14625   exit (ferror (f) || fclose (f) != 0);
14626
14627   ;
14628   return 0;
14629 }
14630 _ACEOF
14631 rm -f conftest$ac_exeext
14632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14633   (eval $ac_link) 2>&5
14634   ac_status=$?
14635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14638   (eval $ac_try) 2>&5
14639   ac_status=$?
14640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641   (exit $ac_status); }; }; then
14642   pgac_cv_alignof_long_long_int=`cat conftest.val`
14643 else
14644   echo "$as_me: program exited with status $ac_status" >&5
14645 echo "$as_me: failed program was:" >&5
14646 cat conftest.$ac_ext >&5
14647 ( exit $ac_status )
14648 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14649 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14650    { (exit 1); exit 1; }; }
14651 fi
14652 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14653 fi
14654 fi
14655 rm -f conftest.val
14656 else
14657   pgac_cv_alignof_long_long_int=0
14658 fi
14659 fi
14660 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
14661 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
14662 cat >>confdefs.h <<_ACEOF
14663 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
14664 _ACEOF
14665
14666
14667 fi
14668 echo "$as_me:$LINENO: checking for double" >&5
14669 echo $ECHO_N "checking for double... $ECHO_C" >&6
14670 if test "${ac_cv_type_double+set}" = set; then
14671   echo $ECHO_N "(cached) $ECHO_C" >&6
14672 else
14673   cat >conftest.$ac_ext <<_ACEOF
14674 #line $LINENO "configure"
14675 #include "confdefs.h"
14676 $ac_includes_default
14677 #ifdef F77_DUMMY_MAIN
14678 #  ifdef __cplusplus
14679      extern "C"
14680 #  endif
14681    int F77_DUMMY_MAIN() { return 1; }
14682 #endif
14683 int
14684 main ()
14685 {
14686 if ((double *) 0)
14687   return 0;
14688 if (sizeof (double))
14689   return 0;
14690   ;
14691   return 0;
14692 }
14693 _ACEOF
14694 rm -f conftest.$ac_objext
14695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14696   (eval $ac_compile) 2>&5
14697   ac_status=$?
14698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699   (exit $ac_status); } &&
14700          { ac_try='test -s conftest.$ac_objext'
14701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702   (eval $ac_try) 2>&5
14703   ac_status=$?
14704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705   (exit $ac_status); }; }; then
14706   ac_cv_type_double=yes
14707 else
14708   echo "$as_me: failed program was:" >&5
14709 cat conftest.$ac_ext >&5
14710 ac_cv_type_double=no
14711 fi
14712 rm -f conftest.$ac_objext conftest.$ac_ext
14713 fi
14714 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
14715 echo "${ECHO_T}$ac_cv_type_double" >&6
14716
14717 echo "$as_me:$LINENO: checking alignment of double" >&5
14718 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
14719 if test "${pgac_cv_alignof_double+set}" = set; then
14720   echo $ECHO_N "(cached) $ECHO_C" >&6
14721 else
14722   if test "$ac_cv_type_double" = yes; then
14723   if test "$cross_compiling" = yes; then
14724   # Depending upon the size, compute the lo and hi bounds.
14725 cat >conftest.$ac_ext <<_ACEOF
14726 #line $LINENO "configure"
14727 #include "confdefs.h"
14728 $ac_includes_default
14729 struct { char filler; double field; } pgac_struct;
14730 #ifdef F77_DUMMY_MAIN
14731 #  ifdef __cplusplus
14732      extern "C"
14733 #  endif
14734    int F77_DUMMY_MAIN() { return 1; }
14735 #endif
14736 int
14737 main ()
14738 {
14739 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14740 test_array [0] = 0
14741
14742   ;
14743   return 0;
14744 }
14745 _ACEOF
14746 rm -f conftest.$ac_objext
14747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14748   (eval $ac_compile) 2>&5
14749   ac_status=$?
14750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751   (exit $ac_status); } &&
14752          { ac_try='test -s conftest.$ac_objext'
14753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754   (eval $ac_try) 2>&5
14755   ac_status=$?
14756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757   (exit $ac_status); }; }; then
14758   ac_lo=0 ac_mid=0
14759   while :; do
14760     cat >conftest.$ac_ext <<_ACEOF
14761 #line $LINENO "configure"
14762 #include "confdefs.h"
14763 $ac_includes_default
14764 struct { char filler; double field; } pgac_struct;
14765 #ifdef F77_DUMMY_MAIN
14766 #  ifdef __cplusplus
14767      extern "C"
14768 #  endif
14769    int F77_DUMMY_MAIN() { return 1; }
14770 #endif
14771 int
14772 main ()
14773 {
14774 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14775 test_array [0] = 0
14776
14777   ;
14778   return 0;
14779 }
14780 _ACEOF
14781 rm -f conftest.$ac_objext
14782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14783   (eval $ac_compile) 2>&5
14784   ac_status=$?
14785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786   (exit $ac_status); } &&
14787          { ac_try='test -s conftest.$ac_objext'
14788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14789   (eval $ac_try) 2>&5
14790   ac_status=$?
14791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792   (exit $ac_status); }; }; then
14793   ac_hi=$ac_mid; break
14794 else
14795   echo "$as_me: failed program was:" >&5
14796 cat conftest.$ac_ext >&5
14797 ac_lo=`expr $ac_mid + 1`
14798                     if test $ac_lo -le $ac_mid; then
14799                       ac_lo= ac_hi=
14800                       break
14801                     fi
14802                     ac_mid=`expr 2 '*' $ac_mid + 1`
14803 fi
14804 rm -f conftest.$ac_objext conftest.$ac_ext
14805   done
14806 else
14807   echo "$as_me: failed program was:" >&5
14808 cat conftest.$ac_ext >&5
14809 cat >conftest.$ac_ext <<_ACEOF
14810 #line $LINENO "configure"
14811 #include "confdefs.h"
14812 $ac_includes_default
14813 struct { char filler; double field; } pgac_struct;
14814 #ifdef F77_DUMMY_MAIN
14815 #  ifdef __cplusplus
14816      extern "C"
14817 #  endif
14818    int F77_DUMMY_MAIN() { return 1; }
14819 #endif
14820 int
14821 main ()
14822 {
14823 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14824 test_array [0] = 0
14825
14826   ;
14827   return 0;
14828 }
14829 _ACEOF
14830 rm -f conftest.$ac_objext
14831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14832   (eval $ac_compile) 2>&5
14833   ac_status=$?
14834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835   (exit $ac_status); } &&
14836          { ac_try='test -s conftest.$ac_objext'
14837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14838   (eval $ac_try) 2>&5
14839   ac_status=$?
14840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841   (exit $ac_status); }; }; then
14842   ac_hi=-1 ac_mid=-1
14843   while :; do
14844     cat >conftest.$ac_ext <<_ACEOF
14845 #line $LINENO "configure"
14846 #include "confdefs.h"
14847 $ac_includes_default
14848 struct { char filler; double field; } pgac_struct;
14849 #ifdef F77_DUMMY_MAIN
14850 #  ifdef __cplusplus
14851      extern "C"
14852 #  endif
14853    int F77_DUMMY_MAIN() { return 1; }
14854 #endif
14855 int
14856 main ()
14857 {
14858 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14859 test_array [0] = 0
14860
14861   ;
14862   return 0;
14863 }
14864 _ACEOF
14865 rm -f conftest.$ac_objext
14866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14867   (eval $ac_compile) 2>&5
14868   ac_status=$?
14869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870   (exit $ac_status); } &&
14871          { ac_try='test -s conftest.$ac_objext'
14872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14873   (eval $ac_try) 2>&5
14874   ac_status=$?
14875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876   (exit $ac_status); }; }; then
14877   ac_lo=$ac_mid; break
14878 else
14879   echo "$as_me: failed program was:" >&5
14880 cat conftest.$ac_ext >&5
14881 ac_hi=`expr '(' $ac_mid ')' - 1`
14882                        if test $ac_mid -le $ac_hi; then
14883                          ac_lo= ac_hi=
14884                          break
14885                        fi
14886                        ac_mid=`expr 2 '*' $ac_mid`
14887 fi
14888 rm -f conftest.$ac_objext conftest.$ac_ext
14889   done
14890 else
14891   echo "$as_me: failed program was:" >&5
14892 cat conftest.$ac_ext >&5
14893 ac_lo= ac_hi=
14894 fi
14895 rm -f conftest.$ac_objext conftest.$ac_ext
14896 fi
14897 rm -f conftest.$ac_objext conftest.$ac_ext
14898 # Binary search between lo and hi bounds.
14899 while test "x$ac_lo" != "x$ac_hi"; do
14900   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14901   cat >conftest.$ac_ext <<_ACEOF
14902 #line $LINENO "configure"
14903 #include "confdefs.h"
14904 $ac_includes_default
14905 struct { char filler; double field; } pgac_struct;
14906 #ifdef F77_DUMMY_MAIN
14907 #  ifdef __cplusplus
14908      extern "C"
14909 #  endif
14910    int F77_DUMMY_MAIN() { return 1; }
14911 #endif
14912 int
14913 main ()
14914 {
14915 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14916 test_array [0] = 0
14917
14918   ;
14919   return 0;
14920 }
14921 _ACEOF
14922 rm -f conftest.$ac_objext
14923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14924   (eval $ac_compile) 2>&5
14925   ac_status=$?
14926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927   (exit $ac_status); } &&
14928          { ac_try='test -s conftest.$ac_objext'
14929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930   (eval $ac_try) 2>&5
14931   ac_status=$?
14932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933   (exit $ac_status); }; }; then
14934   ac_hi=$ac_mid
14935 else
14936   echo "$as_me: failed program was:" >&5
14937 cat conftest.$ac_ext >&5
14938 ac_lo=`expr '(' $ac_mid ')' + 1`
14939 fi
14940 rm -f conftest.$ac_objext conftest.$ac_ext
14941 done
14942 case $ac_lo in
14943 ?*) pgac_cv_alignof_double=$ac_lo;;
14944 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14945 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14946    { (exit 1); exit 1; }; } ;;
14947 esac
14948 else
14949   if test "$cross_compiling" = yes; then
14950   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14951 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14952    { (exit 1); exit 1; }; }
14953 else
14954   cat >conftest.$ac_ext <<_ACEOF
14955 #line $LINENO "configure"
14956 #include "confdefs.h"
14957 $ac_includes_default
14958 struct { char filler; double field; } pgac_struct;
14959 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14960 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14961 #include <stdio.h>
14962 #include <stdlib.h>
14963 #ifdef F77_DUMMY_MAIN
14964 #  ifdef __cplusplus
14965      extern "C"
14966 #  endif
14967    int F77_DUMMY_MAIN() { return 1; }
14968 #endif
14969 int
14970 main ()
14971 {
14972
14973   FILE *f = fopen ("conftest.val", "w");
14974   if (! f)
14975     exit (1);
14976   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14977     {
14978       long i = longval ();
14979       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14980         exit (1);
14981       fprintf (f, "%ld\n", i);
14982     }
14983   else
14984     {
14985       unsigned long i = ulongval ();
14986       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14987         exit (1);
14988       fprintf (f, "%lu\n", i);
14989     }
14990   exit (ferror (f) || fclose (f) != 0);
14991
14992   ;
14993   return 0;
14994 }
14995 _ACEOF
14996 rm -f conftest$ac_exeext
14997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14998   (eval $ac_link) 2>&5
14999   ac_status=$?
15000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15003   (eval $ac_try) 2>&5
15004   ac_status=$?
15005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006   (exit $ac_status); }; }; then
15007   pgac_cv_alignof_double=`cat conftest.val`
15008 else
15009   echo "$as_me: program exited with status $ac_status" >&5
15010 echo "$as_me: failed program was:" >&5
15011 cat conftest.$ac_ext >&5
15012 ( exit $ac_status )
15013 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15014 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15015    { (exit 1); exit 1; }; }
15016 fi
15017 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15018 fi
15019 fi
15020 rm -f conftest.val
15021 else
15022   pgac_cv_alignof_double=0
15023 fi
15024 fi
15025 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
15026 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
15027 cat >>confdefs.h <<_ACEOF
15028 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
15029 _ACEOF
15030
15031
15032
15033 # Compute maximum alignment of any basic type.
15034 # We assume long's alignment is at least as strong as char, short, or int;
15035 # but we must check long long (if it exists) and double.
15036
15037 MAX_ALIGNOF=$pgac_cv_alignof_long
15038 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
15039   MAX_ALIGNOF=$pgac_cv_alignof_double
15040 fi
15041 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
15042   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
15043 fi
15044
15045 cat >>confdefs.h <<_ACEOF
15046 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
15047 _ACEOF
15048
15049
15050
15051 # Some platforms predefine the types int8, int16, etc.  Only check
15052 # a (hopefully) representative subset.
15053 echo "$as_me:$LINENO: checking for int8" >&5
15054 echo $ECHO_N "checking for int8... $ECHO_C" >&6
15055 if test "${ac_cv_type_int8+set}" = set; then
15056   echo $ECHO_N "(cached) $ECHO_C" >&6
15057 else
15058   cat >conftest.$ac_ext <<_ACEOF
15059 #line $LINENO "configure"
15060 #include "confdefs.h"
15061 #include <stdio.h>
15062 #ifdef HAVE_SUPPORTDEFS_H
15063 #include <SupportDefs.h>
15064 #endif
15065
15066 #ifdef F77_DUMMY_MAIN
15067 #  ifdef __cplusplus
15068      extern "C"
15069 #  endif
15070    int F77_DUMMY_MAIN() { return 1; }
15071 #endif
15072 int
15073 main ()
15074 {
15075 if ((int8 *) 0)
15076   return 0;
15077 if (sizeof (int8))
15078   return 0;
15079   ;
15080   return 0;
15081 }
15082 _ACEOF
15083 rm -f conftest.$ac_objext
15084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15085   (eval $ac_compile) 2>&5
15086   ac_status=$?
15087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088   (exit $ac_status); } &&
15089          { ac_try='test -s conftest.$ac_objext'
15090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15091   (eval $ac_try) 2>&5
15092   ac_status=$?
15093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094   (exit $ac_status); }; }; then
15095   ac_cv_type_int8=yes
15096 else
15097   echo "$as_me: failed program was:" >&5
15098 cat conftest.$ac_ext >&5
15099 ac_cv_type_int8=no
15100 fi
15101 rm -f conftest.$ac_objext conftest.$ac_ext
15102 fi
15103 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
15104 echo "${ECHO_T}$ac_cv_type_int8" >&6
15105 if test $ac_cv_type_int8 = yes; then
15106
15107 cat >>confdefs.h <<_ACEOF
15108 #define HAVE_INT8 1
15109 _ACEOF
15110
15111
15112 fi
15113 echo "$as_me:$LINENO: checking for uint8" >&5
15114 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
15115 if test "${ac_cv_type_uint8+set}" = set; then
15116   echo $ECHO_N "(cached) $ECHO_C" >&6
15117 else
15118   cat >conftest.$ac_ext <<_ACEOF
15119 #line $LINENO "configure"
15120 #include "confdefs.h"
15121 #include <stdio.h>
15122 #ifdef HAVE_SUPPORTDEFS_H
15123 #include <SupportDefs.h>
15124 #endif
15125
15126 #ifdef F77_DUMMY_MAIN
15127 #  ifdef __cplusplus
15128      extern "C"
15129 #  endif
15130    int F77_DUMMY_MAIN() { return 1; }
15131 #endif
15132 int
15133 main ()
15134 {
15135 if ((uint8 *) 0)
15136   return 0;
15137 if (sizeof (uint8))
15138   return 0;
15139   ;
15140   return 0;
15141 }
15142 _ACEOF
15143 rm -f conftest.$ac_objext
15144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15145   (eval $ac_compile) 2>&5
15146   ac_status=$?
15147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148   (exit $ac_status); } &&
15149          { ac_try='test -s conftest.$ac_objext'
15150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15151   (eval $ac_try) 2>&5
15152   ac_status=$?
15153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154   (exit $ac_status); }; }; then
15155   ac_cv_type_uint8=yes
15156 else
15157   echo "$as_me: failed program was:" >&5
15158 cat conftest.$ac_ext >&5
15159 ac_cv_type_uint8=no
15160 fi
15161 rm -f conftest.$ac_objext conftest.$ac_ext
15162 fi
15163 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15164 echo "${ECHO_T}$ac_cv_type_uint8" >&6
15165 if test $ac_cv_type_uint8 = yes; then
15166
15167 cat >>confdefs.h <<_ACEOF
15168 #define HAVE_UINT8 1
15169 _ACEOF
15170
15171
15172 fi
15173 echo "$as_me:$LINENO: checking for int64" >&5
15174 echo $ECHO_N "checking for int64... $ECHO_C" >&6
15175 if test "${ac_cv_type_int64+set}" = set; then
15176   echo $ECHO_N "(cached) $ECHO_C" >&6
15177 else
15178   cat >conftest.$ac_ext <<_ACEOF
15179 #line $LINENO "configure"
15180 #include "confdefs.h"
15181 #include <stdio.h>
15182 #ifdef HAVE_SUPPORTDEFS_H
15183 #include <SupportDefs.h>
15184 #endif
15185
15186 #ifdef F77_DUMMY_MAIN
15187 #  ifdef __cplusplus
15188      extern "C"
15189 #  endif
15190    int F77_DUMMY_MAIN() { return 1; }
15191 #endif
15192 int
15193 main ()
15194 {
15195 if ((int64 *) 0)
15196   return 0;
15197 if (sizeof (int64))
15198   return 0;
15199   ;
15200   return 0;
15201 }
15202 _ACEOF
15203 rm -f conftest.$ac_objext
15204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15205   (eval $ac_compile) 2>&5
15206   ac_status=$?
15207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208   (exit $ac_status); } &&
15209          { ac_try='test -s conftest.$ac_objext'
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_type_int64=yes
15216 else
15217   echo "$as_me: failed program was:" >&5
15218 cat conftest.$ac_ext >&5
15219 ac_cv_type_int64=no
15220 fi
15221 rm -f conftest.$ac_objext conftest.$ac_ext
15222 fi
15223 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15224 echo "${ECHO_T}$ac_cv_type_int64" >&6
15225 if test $ac_cv_type_int64 = yes; then
15226
15227 cat >>confdefs.h <<_ACEOF
15228 #define HAVE_INT64 1
15229 _ACEOF
15230
15231
15232 fi
15233 echo "$as_me:$LINENO: checking for uint64" >&5
15234 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
15235 if test "${ac_cv_type_uint64+set}" = set; then
15236   echo $ECHO_N "(cached) $ECHO_C" >&6
15237 else
15238   cat >conftest.$ac_ext <<_ACEOF
15239 #line $LINENO "configure"
15240 #include "confdefs.h"
15241 #include <stdio.h>
15242 #ifdef HAVE_SUPPORTDEFS_H
15243 #include <SupportDefs.h>
15244 #endif
15245
15246 #ifdef F77_DUMMY_MAIN
15247 #  ifdef __cplusplus
15248      extern "C"
15249 #  endif
15250    int F77_DUMMY_MAIN() { return 1; }
15251 #endif
15252 int
15253 main ()
15254 {
15255 if ((uint64 *) 0)
15256   return 0;
15257 if (sizeof (uint64))
15258   return 0;
15259   ;
15260   return 0;
15261 }
15262 _ACEOF
15263 rm -f conftest.$ac_objext
15264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15265   (eval $ac_compile) 2>&5
15266   ac_status=$?
15267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268   (exit $ac_status); } &&
15269          { ac_try='test -s conftest.$ac_objext'
15270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271   (eval $ac_try) 2>&5
15272   ac_status=$?
15273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274   (exit $ac_status); }; }; then
15275   ac_cv_type_uint64=yes
15276 else
15277   echo "$as_me: failed program was:" >&5
15278 cat conftest.$ac_ext >&5
15279 ac_cv_type_uint64=no
15280 fi
15281 rm -f conftest.$ac_objext conftest.$ac_ext
15282 fi
15283 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
15284 echo "${ECHO_T}$ac_cv_type_uint64" >&6
15285 if test $ac_cv_type_uint64 = yes; then
15286
15287 cat >>confdefs.h <<_ACEOF
15288 #define HAVE_UINT64 1
15289 _ACEOF
15290
15291
15292 fi
15293
15294
15295 # We also check for sig_atomic_t, which *should* be defined per ANSI
15296 # C, but is missing on some old platforms.
15297 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15298 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15299 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15300   echo $ECHO_N "(cached) $ECHO_C" >&6
15301 else
15302   cat >conftest.$ac_ext <<_ACEOF
15303 #line $LINENO "configure"
15304 #include "confdefs.h"
15305 #include <signal.h>
15306
15307 #ifdef F77_DUMMY_MAIN
15308 #  ifdef __cplusplus
15309      extern "C"
15310 #  endif
15311    int F77_DUMMY_MAIN() { return 1; }
15312 #endif
15313 int
15314 main ()
15315 {
15316 if ((sig_atomic_t *) 0)
15317   return 0;
15318 if (sizeof (sig_atomic_t))
15319   return 0;
15320   ;
15321   return 0;
15322 }
15323 _ACEOF
15324 rm -f conftest.$ac_objext
15325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15326   (eval $ac_compile) 2>&5
15327   ac_status=$?
15328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329   (exit $ac_status); } &&
15330          { ac_try='test -s conftest.$ac_objext'
15331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332   (eval $ac_try) 2>&5
15333   ac_status=$?
15334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335   (exit $ac_status); }; }; then
15336   ac_cv_type_sig_atomic_t=yes
15337 else
15338   echo "$as_me: failed program was:" >&5
15339 cat conftest.$ac_ext >&5
15340 ac_cv_type_sig_atomic_t=no
15341 fi
15342 rm -f conftest.$ac_objext conftest.$ac_ext
15343 fi
15344 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15345 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15346 if test $ac_cv_type_sig_atomic_t = yes; then
15347
15348 cat >>confdefs.h <<_ACEOF
15349 #define HAVE_SIG_ATOMIC_T 1
15350 _ACEOF
15351
15352
15353 fi
15354
15355
15356
15357 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15358 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15359 if test "${pgac_cv_func_posix_signals+set}" = set; then
15360   echo $ECHO_N "(cached) $ECHO_C" >&6
15361 else
15362   cat >conftest.$ac_ext <<_ACEOF
15363 #line $LINENO "configure"
15364 #include "confdefs.h"
15365 #include <signal.h>
15366
15367 #ifdef F77_DUMMY_MAIN
15368 #  ifdef __cplusplus
15369      extern "C"
15370 #  endif
15371    int F77_DUMMY_MAIN() { return 1; }
15372 #endif
15373 int
15374 main ()
15375 {
15376 struct sigaction act, oact;
15377 sigemptyset(&act.sa_mask);
15378 act.sa_flags = SA_RESTART;
15379 sigaction(0, &act, &oact);
15380   ;
15381   return 0;
15382 }
15383 _ACEOF
15384 rm -f conftest.$ac_objext conftest$ac_exeext
15385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15386   (eval $ac_link) 2>&5
15387   ac_status=$?
15388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389   (exit $ac_status); } &&
15390          { ac_try='test -s conftest$ac_exeext'
15391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392   (eval $ac_try) 2>&5
15393   ac_status=$?
15394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395   (exit $ac_status); }; }; then
15396   pgac_cv_func_posix_signals=yes
15397 else
15398   echo "$as_me: failed program was:" >&5
15399 cat conftest.$ac_ext >&5
15400 pgac_cv_func_posix_signals=no
15401 fi
15402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15403 fi
15404 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
15405 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
15406 if test x"$pgac_cv_func_posix_signals" = xyes ; then
15407
15408 cat >>confdefs.h <<\_ACEOF
15409 #define HAVE_POSIX_SIGNALS
15410 _ACEOF
15411
15412 fi
15413 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
15414
15415 if test $ac_cv_func_fseeko = yes; then
15416 # Check whether --enable-largefile or --disable-largefile was given.
15417 if test "${enable_largefile+set}" = set; then
15418   enableval="$enable_largefile"
15419
15420 fi;
15421 if test "$enable_largefile" != no; then
15422
15423   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
15424 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
15425 if test "${ac_cv_sys_largefile_CC+set}" = set; then
15426   echo $ECHO_N "(cached) $ECHO_C" >&6
15427 else
15428   ac_cv_sys_largefile_CC=no
15429      if test "$GCC" != yes; then
15430        ac_save_CC=$CC
15431        while :; do
15432          # IRIX 6.2 and later do not support large files by default,
15433          # so use the C compiler's -n32 option if that helps.
15434          cat >conftest.$ac_ext <<_ACEOF
15435 #line $LINENO "configure"
15436 #include "confdefs.h"
15437 #include <sys/types.h>
15438  /* Check that off_t can represent 2**63 - 1 correctly.
15439     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15440     since some C++ compilers masquerading as C compilers
15441     incorrectly reject 9223372036854775807.  */
15442 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15443   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15444                        && LARGE_OFF_T % 2147483647 == 1)
15445                       ? 1 : -1];
15446 #ifdef F77_DUMMY_MAIN
15447 #  ifdef __cplusplus
15448      extern "C"
15449 #  endif
15450    int F77_DUMMY_MAIN() { return 1; }
15451 #endif
15452 int
15453 main ()
15454 {
15455
15456   ;
15457   return 0;
15458 }
15459 _ACEOF
15460          rm -f conftest.$ac_objext
15461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15462   (eval $ac_compile) 2>&5
15463   ac_status=$?
15464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465   (exit $ac_status); } &&
15466          { ac_try='test -s conftest.$ac_objext'
15467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468   (eval $ac_try) 2>&5
15469   ac_status=$?
15470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471   (exit $ac_status); }; }; then
15472   break
15473 else
15474   echo "$as_me: failed program was:" >&5
15475 cat conftest.$ac_ext >&5
15476 fi
15477 rm -f conftest.$ac_objext
15478          CC="$CC -n32"
15479          rm -f conftest.$ac_objext
15480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15481   (eval $ac_compile) 2>&5
15482   ac_status=$?
15483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484   (exit $ac_status); } &&
15485          { ac_try='test -s conftest.$ac_objext'
15486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487   (eval $ac_try) 2>&5
15488   ac_status=$?
15489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490   (exit $ac_status); }; }; then
15491   ac_cv_sys_largefile_CC=' -n32'; break
15492 else
15493   echo "$as_me: failed program was:" >&5
15494 cat conftest.$ac_ext >&5
15495 fi
15496 rm -f conftest.$ac_objext
15497          break
15498        done
15499        CC=$ac_save_CC
15500        rm -f conftest.$ac_ext
15501     fi
15502 fi
15503 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
15504 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
15505   if test "$ac_cv_sys_largefile_CC" != no; then
15506     CC=$CC$ac_cv_sys_largefile_CC
15507   fi
15508
15509   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15510 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
15511 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
15512   echo $ECHO_N "(cached) $ECHO_C" >&6
15513 else
15514   while :; do
15515   ac_cv_sys_file_offset_bits=no
15516   cat >conftest.$ac_ext <<_ACEOF
15517 #line $LINENO "configure"
15518 #include "confdefs.h"
15519 #include <sys/types.h>
15520  /* Check that off_t can represent 2**63 - 1 correctly.
15521     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15522     since some C++ compilers masquerading as C compilers
15523     incorrectly reject 9223372036854775807.  */
15524 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15525   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15526                        && LARGE_OFF_T % 2147483647 == 1)
15527                       ? 1 : -1];
15528 #ifdef F77_DUMMY_MAIN
15529 #  ifdef __cplusplus
15530      extern "C"
15531 #  endif
15532    int F77_DUMMY_MAIN() { return 1; }
15533 #endif
15534 int
15535 main ()
15536 {
15537
15538   ;
15539   return 0;
15540 }
15541 _ACEOF
15542 rm -f conftest.$ac_objext
15543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15544   (eval $ac_compile) 2>&5
15545   ac_status=$?
15546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547   (exit $ac_status); } &&
15548          { ac_try='test -s conftest.$ac_objext'
15549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15550   (eval $ac_try) 2>&5
15551   ac_status=$?
15552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553   (exit $ac_status); }; }; then
15554   break
15555 else
15556   echo "$as_me: failed program was:" >&5
15557 cat conftest.$ac_ext >&5
15558 fi
15559 rm -f conftest.$ac_objext conftest.$ac_ext
15560   cat >conftest.$ac_ext <<_ACEOF
15561 #line $LINENO "configure"
15562 #include "confdefs.h"
15563 #define _FILE_OFFSET_BITS 64
15564 #include <sys/types.h>
15565  /* Check that off_t can represent 2**63 - 1 correctly.
15566     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15567     since some C++ compilers masquerading as C compilers
15568     incorrectly reject 9223372036854775807.  */
15569 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15570   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15571                        && LARGE_OFF_T % 2147483647 == 1)
15572                       ? 1 : -1];
15573 #ifdef F77_DUMMY_MAIN
15574 #  ifdef __cplusplus
15575      extern "C"
15576 #  endif
15577    int F77_DUMMY_MAIN() { return 1; }
15578 #endif
15579 int
15580 main ()
15581 {
15582
15583   ;
15584   return 0;
15585 }
15586 _ACEOF
15587 rm -f conftest.$ac_objext
15588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15589   (eval $ac_compile) 2>&5
15590   ac_status=$?
15591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592   (exit $ac_status); } &&
15593          { ac_try='test -s conftest.$ac_objext'
15594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595   (eval $ac_try) 2>&5
15596   ac_status=$?
15597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598   (exit $ac_status); }; }; then
15599   ac_cv_sys_file_offset_bits=64; break
15600 else
15601   echo "$as_me: failed program was:" >&5
15602 cat conftest.$ac_ext >&5
15603 fi
15604 rm -f conftest.$ac_objext conftest.$ac_ext
15605   break
15606 done
15607 fi
15608 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
15609 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
15610 if test "$ac_cv_sys_file_offset_bits" != no; then
15611
15612 cat >>confdefs.h <<_ACEOF
15613 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15614 _ACEOF
15615
15616 fi
15617 rm -f conftest*
15618   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
15619 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
15620 if test "${ac_cv_sys_large_files+set}" = set; then
15621   echo $ECHO_N "(cached) $ECHO_C" >&6
15622 else
15623   while :; do
15624   ac_cv_sys_large_files=no
15625   cat >conftest.$ac_ext <<_ACEOF
15626 #line $LINENO "configure"
15627 #include "confdefs.h"
15628 #include <sys/types.h>
15629  /* Check that off_t can represent 2**63 - 1 correctly.
15630     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15631     since some C++ compilers masquerading as C compilers
15632     incorrectly reject 9223372036854775807.  */
15633 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15634   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15635                        && LARGE_OFF_T % 2147483647 == 1)
15636                       ? 1 : -1];
15637 #ifdef F77_DUMMY_MAIN
15638 #  ifdef __cplusplus
15639      extern "C"
15640 #  endif
15641    int F77_DUMMY_MAIN() { return 1; }
15642 #endif
15643 int
15644 main ()
15645 {
15646
15647   ;
15648   return 0;
15649 }
15650 _ACEOF
15651 rm -f conftest.$ac_objext
15652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15653   (eval $ac_compile) 2>&5
15654   ac_status=$?
15655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656   (exit $ac_status); } &&
15657          { ac_try='test -s conftest.$ac_objext'
15658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15659   (eval $ac_try) 2>&5
15660   ac_status=$?
15661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662   (exit $ac_status); }; }; then
15663   break
15664 else
15665   echo "$as_me: failed program was:" >&5
15666 cat conftest.$ac_ext >&5
15667 fi
15668 rm -f conftest.$ac_objext conftest.$ac_ext
15669   cat >conftest.$ac_ext <<_ACEOF
15670 #line $LINENO "configure"
15671 #include "confdefs.h"
15672 #define _LARGE_FILES 1
15673 #include <sys/types.h>
15674  /* Check that off_t can represent 2**63 - 1 correctly.
15675     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15676     since some C++ compilers masquerading as C compilers
15677     incorrectly reject 9223372036854775807.  */
15678 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15679   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15680                        && LARGE_OFF_T % 2147483647 == 1)
15681                       ? 1 : -1];
15682 #ifdef F77_DUMMY_MAIN
15683 #  ifdef __cplusplus
15684      extern "C"
15685 #  endif
15686    int F77_DUMMY_MAIN() { return 1; }
15687 #endif
15688 int
15689 main ()
15690 {
15691
15692   ;
15693   return 0;
15694 }
15695 _ACEOF
15696 rm -f conftest.$ac_objext
15697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15698   (eval $ac_compile) 2>&5
15699   ac_status=$?
15700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701   (exit $ac_status); } &&
15702          { ac_try='test -s conftest.$ac_objext'
15703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704   (eval $ac_try) 2>&5
15705   ac_status=$?
15706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707   (exit $ac_status); }; }; then
15708   ac_cv_sys_large_files=1; break
15709 else
15710   echo "$as_me: failed program was:" >&5
15711 cat conftest.$ac_ext >&5
15712 fi
15713 rm -f conftest.$ac_objext conftest.$ac_ext
15714   break
15715 done
15716 fi
15717 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
15718 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
15719 if test "$ac_cv_sys_large_files" != no; then
15720
15721 cat >>confdefs.h <<_ACEOF
15722 #define _LARGE_FILES $ac_cv_sys_large_files
15723 _ACEOF
15724
15725 fi
15726 rm -f conftest*
15727 fi
15728
15729 fi
15730
15731
15732 # Select semaphore implementation type.
15733 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
15734
15735 cat >>confdefs.h <<\_ACEOF
15736 #define USE_NAMED_POSIX_SEMAPHORES 1
15737 _ACEOF
15738
15739   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15740 else
15741   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
15742
15743 cat >>confdefs.h <<\_ACEOF
15744 #define USE_UNNAMED_POSIX_SEMAPHORES 1
15745 _ACEOF
15746
15747     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15748   else
15749
15750 cat >>confdefs.h <<\_ACEOF
15751 #define USE_SYSV_SEMAPHORES 1
15752 _ACEOF
15753
15754     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
15755   fi
15756 fi
15757
15758
15759 # Select shared-memory implementation type.
15760
15761 cat >>confdefs.h <<\_ACEOF
15762 #define USE_SYSV_SHARED_MEMORY 1
15763 _ACEOF
15764
15765 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
15766
15767
15768 if test "$enable_nls" = yes ; then
15769
15770   echo "$as_me:$LINENO: checking for library containing gettext" >&5
15771 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
15772 if test "${ac_cv_search_gettext+set}" = set; then
15773   echo $ECHO_N "(cached) $ECHO_C" >&6
15774 else
15775   ac_func_search_save_LIBS=$LIBS
15776 ac_cv_search_gettext=no
15777 cat >conftest.$ac_ext <<_ACEOF
15778 #line $LINENO "configure"
15779 #include "confdefs.h"
15780
15781 /* Override any gcc2 internal prototype to avoid an error.  */
15782 #ifdef __cplusplus
15783 extern "C"
15784 #endif
15785 /* We use char because int might match the return type of a gcc2
15786    builtin and then its argument prototype would still apply.  */
15787 char gettext ();
15788 #ifdef F77_DUMMY_MAIN
15789 #  ifdef __cplusplus
15790      extern "C"
15791 #  endif
15792    int F77_DUMMY_MAIN() { return 1; }
15793 #endif
15794 int
15795 main ()
15796 {
15797 gettext ();
15798   ;
15799   return 0;
15800 }
15801 _ACEOF
15802 rm -f conftest.$ac_objext conftest$ac_exeext
15803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15804   (eval $ac_link) 2>&5
15805   ac_status=$?
15806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807   (exit $ac_status); } &&
15808          { ac_try='test -s conftest$ac_exeext'
15809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15810   (eval $ac_try) 2>&5
15811   ac_status=$?
15812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813   (exit $ac_status); }; }; then
15814   ac_cv_search_gettext="none required"
15815 else
15816   echo "$as_me: failed program was:" >&5
15817 cat conftest.$ac_ext >&5
15818 fi
15819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15820 if test "$ac_cv_search_gettext" = no; then
15821   for ac_lib in intl; do
15822     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15823     cat >conftest.$ac_ext <<_ACEOF
15824 #line $LINENO "configure"
15825 #include "confdefs.h"
15826
15827 /* Override any gcc2 internal prototype to avoid an error.  */
15828 #ifdef __cplusplus
15829 extern "C"
15830 #endif
15831 /* We use char because int might match the return type of a gcc2
15832    builtin and then its argument prototype would still apply.  */
15833 char gettext ();
15834 #ifdef F77_DUMMY_MAIN
15835 #  ifdef __cplusplus
15836      extern "C"
15837 #  endif
15838    int F77_DUMMY_MAIN() { return 1; }
15839 #endif
15840 int
15841 main ()
15842 {
15843 gettext ();
15844   ;
15845   return 0;
15846 }
15847 _ACEOF
15848 rm -f conftest.$ac_objext conftest$ac_exeext
15849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15850   (eval $ac_link) 2>&5
15851   ac_status=$?
15852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853   (exit $ac_status); } &&
15854          { ac_try='test -s conftest$ac_exeext'
15855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15856   (eval $ac_try) 2>&5
15857   ac_status=$?
15858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859   (exit $ac_status); }; }; then
15860   ac_cv_search_gettext="-l$ac_lib"
15861 break
15862 else
15863   echo "$as_me: failed program was:" >&5
15864 cat conftest.$ac_ext >&5
15865 fi
15866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15867   done
15868 fi
15869 LIBS=$ac_func_search_save_LIBS
15870 fi
15871 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15872 echo "${ECHO_T}$ac_cv_search_gettext" >&6
15873 if test "$ac_cv_search_gettext" != no; then
15874   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15875
15876 else
15877   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15878 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15879    { (exit 1); exit 1; }; }
15880 fi
15881
15882   if test "${ac_cv_header_libintl_h+set}" = set; then
15883   echo "$as_me:$LINENO: checking for libintl.h" >&5
15884 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15885 if test "${ac_cv_header_libintl_h+set}" = set; then
15886   echo $ECHO_N "(cached) $ECHO_C" >&6
15887 fi
15888 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15889 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15890 else
15891   # Is the header compilable?
15892 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15893 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15894 cat >conftest.$ac_ext <<_ACEOF
15895 #line $LINENO "configure"
15896 #include "confdefs.h"
15897 $ac_includes_default
15898 #include <libintl.h>
15899 _ACEOF
15900 rm -f conftest.$ac_objext
15901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15902   (eval $ac_compile) 2>&5
15903   ac_status=$?
15904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905   (exit $ac_status); } &&
15906          { ac_try='test -s conftest.$ac_objext'
15907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908   (eval $ac_try) 2>&5
15909   ac_status=$?
15910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911   (exit $ac_status); }; }; then
15912   ac_header_compiler=yes
15913 else
15914   echo "$as_me: failed program was:" >&5
15915 cat conftest.$ac_ext >&5
15916 ac_header_compiler=no
15917 fi
15918 rm -f conftest.$ac_objext conftest.$ac_ext
15919 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15920 echo "${ECHO_T}$ac_header_compiler" >&6
15921
15922 # Is the header present?
15923 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15924 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15925 cat >conftest.$ac_ext <<_ACEOF
15926 #line $LINENO "configure"
15927 #include "confdefs.h"
15928 #include <libintl.h>
15929 _ACEOF
15930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15931   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15932   ac_status=$?
15933   egrep -v '^ *\+' conftest.er1 >conftest.err
15934   rm -f conftest.er1
15935   cat conftest.err >&5
15936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937   (exit $ac_status); } >/dev/null; then
15938   if test -s conftest.err; then
15939     ac_cpp_err=$ac_c_preproc_warn_flag
15940   else
15941     ac_cpp_err=
15942   fi
15943 else
15944   ac_cpp_err=yes
15945 fi
15946 if test -z "$ac_cpp_err"; then
15947   ac_header_preproc=yes
15948 else
15949   echo "$as_me: failed program was:" >&5
15950   cat conftest.$ac_ext >&5
15951   ac_header_preproc=no
15952 fi
15953 rm -f conftest.err conftest.$ac_ext
15954 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15955 echo "${ECHO_T}$ac_header_preproc" >&6
15956
15957 # So?  What about this header?
15958 case $ac_header_compiler:$ac_header_preproc in
15959   yes:no )
15960     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15961 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15962     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15963 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15964   no:yes )
15965     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15966 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15967     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15968 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15969     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15970 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15971 esac
15972 echo "$as_me:$LINENO: checking for libintl.h" >&5
15973 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15974 if test "${ac_cv_header_libintl_h+set}" = set; then
15975   echo $ECHO_N "(cached) $ECHO_C" >&6
15976 else
15977   ac_cv_header_libintl_h=$ac_header_preproc
15978 fi
15979 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15980 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15981
15982 fi
15983 if test $ac_cv_header_libintl_h = yes; then
15984   :
15985 else
15986   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15987 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15988    { (exit 1); exit 1; }; }
15989 fi
15990
15991
15992   for ac_prog in msgfmt
15993 do
15994   # Extract the first word of "$ac_prog", so it can be a program name with args.
15995 set dummy $ac_prog; ac_word=$2
15996 echo "$as_me:$LINENO: checking for $ac_word" >&5
15997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15998 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15999   echo $ECHO_N "(cached) $ECHO_C" >&6
16000 else
16001   if test -n "$MSGFMT"; then
16002   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16003 else
16004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16005 for as_dir in $PATH
16006 do
16007   IFS=$as_save_IFS
16008   test -z "$as_dir" && as_dir=.
16009   for ac_exec_ext in '' $ac_executable_extensions; do
16010   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16011     ac_cv_prog_MSGFMT="$ac_prog"
16012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16013     break 2
16014   fi
16015 done
16016 done
16017
16018 fi
16019 fi
16020 MSGFMT=$ac_cv_prog_MSGFMT
16021 if test -n "$MSGFMT"; then
16022   echo "$as_me:$LINENO: result: $MSGFMT" >&5
16023 echo "${ECHO_T}$MSGFMT" >&6
16024 else
16025   echo "$as_me:$LINENO: result: no" >&5
16026 echo "${ECHO_T}no" >&6
16027 fi
16028
16029   test -n "$MSGFMT" && break
16030 done
16031
16032   if test -z "$MSGFMT"; then
16033     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
16034 echo "$as_me: error: msgfmt is required for NLS" >&2;}
16035    { (exit 1); exit 1; }; }
16036   fi
16037   for ac_prog in msgmerge
16038 do
16039   # Extract the first word of "$ac_prog", so it can be a program name with args.
16040 set dummy $ac_prog; ac_word=$2
16041 echo "$as_me:$LINENO: checking for $ac_word" >&5
16042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16043 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
16044   echo $ECHO_N "(cached) $ECHO_C" >&6
16045 else
16046   if test -n "$MSGMERGE"; then
16047   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
16048 else
16049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16050 for as_dir in $PATH
16051 do
16052   IFS=$as_save_IFS
16053   test -z "$as_dir" && as_dir=.
16054   for ac_exec_ext in '' $ac_executable_extensions; do
16055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16056     ac_cv_prog_MSGMERGE="$ac_prog"
16057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16058     break 2
16059   fi
16060 done
16061 done
16062
16063 fi
16064 fi
16065 MSGMERGE=$ac_cv_prog_MSGMERGE
16066 if test -n "$MSGMERGE"; then
16067   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16068 echo "${ECHO_T}$MSGMERGE" >&6
16069 else
16070   echo "$as_me:$LINENO: result: no" >&5
16071 echo "${ECHO_T}no" >&6
16072 fi
16073
16074   test -n "$MSGMERGE" && break
16075 done
16076
16077   for ac_prog in xgettext
16078 do
16079   # Extract the first word of "$ac_prog", so it can be a program name with args.
16080 set dummy $ac_prog; ac_word=$2
16081 echo "$as_me:$LINENO: checking for $ac_word" >&5
16082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16083 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
16084   echo $ECHO_N "(cached) $ECHO_C" >&6
16085 else
16086   if test -n "$XGETTEXT"; then
16087   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
16088 else
16089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16090 for as_dir in $PATH
16091 do
16092   IFS=$as_save_IFS
16093   test -z "$as_dir" && as_dir=.
16094   for ac_exec_ext in '' $ac_executable_extensions; do
16095   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16096     ac_cv_prog_XGETTEXT="$ac_prog"
16097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16098     break 2
16099   fi
16100 done
16101 done
16102
16103 fi
16104 fi
16105 XGETTEXT=$ac_cv_prog_XGETTEXT
16106 if test -n "$XGETTEXT"; then
16107   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16108 echo "${ECHO_T}$XGETTEXT" >&6
16109 else
16110   echo "$as_me:$LINENO: result: no" >&5
16111 echo "${ECHO_T}no" >&6
16112 fi
16113
16114   test -n "$XGETTEXT" && break
16115 done
16116
16117
16118   # Note: share/locale is always the default, independent of $datadir
16119   localedir='${prefix}/share/locale'
16120   if test x"$prefix" = x"NONE"; then
16121     exp_localedir="$ac_default_prefix/share/locale"
16122   else
16123     exp_localedir="$prefix/share/locale"
16124   fi
16125
16126
16127
16128 cat >>confdefs.h <<_ACEOF
16129 #define LOCALEDIR "$exp_localedir"
16130 _ACEOF
16131
16132
16133 fi
16134
16135 # Check for Tcl configuration script tclConfig.sh
16136 if test "$with_tcl" = yes; then
16137     for ac_prog in tclsh tcl
16138 do
16139   # Extract the first word of "$ac_prog", so it can be a program name with args.
16140 set dummy $ac_prog; ac_word=$2
16141 echo "$as_me:$LINENO: checking for $ac_word" >&5
16142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16143 if test "${ac_cv_path_TCLSH+set}" = set; then
16144   echo $ECHO_N "(cached) $ECHO_C" >&6
16145 else
16146   case $TCLSH in
16147   [\\/]* | ?:[\\/]*)
16148   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16149   ;;
16150   *)
16151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16152 for as_dir in $PATH
16153 do
16154   IFS=$as_save_IFS
16155   test -z "$as_dir" && as_dir=.
16156   for ac_exec_ext in '' $ac_executable_extensions; do
16157   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16158     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16160     break 2
16161   fi
16162 done
16163 done
16164
16165   ;;
16166 esac
16167 fi
16168 TCLSH=$ac_cv_path_TCLSH
16169
16170 if test -n "$TCLSH"; then
16171   echo "$as_me:$LINENO: result: $TCLSH" >&5
16172 echo "${ECHO_T}$TCLSH" >&6
16173 else
16174   echo "$as_me:$LINENO: result: no" >&5
16175 echo "${ECHO_T}no" >&6
16176 fi
16177
16178   test -n "$TCLSH" && break
16179 done
16180
16181 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16182 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
16183 # Let user override test
16184 if test -z "$TCL_CONFIG_SH"; then
16185     pgac_test_dirs="$with_tclconfig"
16186
16187     set X $pgac_test_dirs; shift
16188     if test $# -eq 0; then
16189         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16190 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16191    { (exit 1); exit 1; }; }
16192         set X `echo 'puts $auto_path' | $TCLSH`; shift
16193     fi
16194
16195     for pgac_dir do
16196         if test -r "$pgac_dir/tclConfig.sh"; then
16197             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16198             break
16199         fi
16200     done
16201 fi
16202
16203 if test -z "$TCL_CONFIG_SH"; then
16204     echo "$as_me:$LINENO: result: no" >&5
16205 echo "${ECHO_T}no" >&6
16206     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16207 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16208    { (exit 1); exit 1; }; }
16209 else
16210     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16211 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16212 fi
16213
16214
16215
16216     . "$TCL_CONFIG_SH"
16217 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
16218 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
16219 eval TCL_LIBS=\"$TCL_LIBS\"
16220 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
16221 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
16222
16223     fi
16224
16225 # Check for Tk configuration script tkConfig.sh
16226 if test "$with_tk" = yes; then
16227     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16228 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
16229 # Let user override test
16230 if test -z "$TK_CONFIG_SH"; then
16231     pgac_test_dirs="$with_tkconfig $with_tclconfig"
16232
16233     set X $pgac_test_dirs; shift
16234     if test $# -eq 0; then
16235         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
16236 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
16237    { (exit 1); exit 1; }; }
16238         set X `echo 'puts $auto_path' | $TCLSH`; shift
16239     fi
16240
16241     for pgac_dir do
16242         if test -r "$pgac_dir/tkConfig.sh"; then
16243             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
16244             break
16245         fi
16246     done
16247 fi
16248
16249 if test -z "$TK_CONFIG_SH"; then
16250     echo "$as_me:$LINENO: result: no" >&5
16251 echo "${ECHO_T}no" >&6
16252     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
16253 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
16254    { (exit 1); exit 1; }; }
16255 else
16256     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
16257 echo "${ECHO_T}$TK_CONFIG_SH" >&6
16258 fi
16259
16260
16261
16262     . "$TK_CONFIG_SH"
16263 eval TK_LIBS=\"$TK_LIBS\"
16264 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
16265 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
16266
16267 fi
16268
16269
16270 #
16271 # Check for DocBook and tools
16272 #
16273 for ac_prog in onsgmls nsgmls
16274 do
16275   # Extract the first word of "$ac_prog", so it can be a program name with args.
16276 set dummy $ac_prog; ac_word=$2
16277 echo "$as_me:$LINENO: checking for $ac_word" >&5
16278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16279 if test "${ac_cv_prog_NSGMLS+set}" = set; then
16280   echo $ECHO_N "(cached) $ECHO_C" >&6
16281 else
16282   if test -n "$NSGMLS"; then
16283   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
16284 else
16285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16286 for as_dir in $PATH
16287 do
16288   IFS=$as_save_IFS
16289   test -z "$as_dir" && as_dir=.
16290   for ac_exec_ext in '' $ac_executable_extensions; do
16291   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16292     ac_cv_prog_NSGMLS="$ac_prog"
16293     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16294     break 2
16295   fi
16296 done
16297 done
16298
16299 fi
16300 fi
16301 NSGMLS=$ac_cv_prog_NSGMLS
16302 if test -n "$NSGMLS"; then
16303   echo "$as_me:$LINENO: result: $NSGMLS" >&5
16304 echo "${ECHO_T}$NSGMLS" >&6
16305 else
16306   echo "$as_me:$LINENO: result: no" >&5
16307 echo "${ECHO_T}no" >&6
16308 fi
16309
16310   test -n "$NSGMLS" && break
16311 done
16312
16313 for ac_prog in openjade jade
16314 do
16315   # Extract the first word of "$ac_prog", so it can be a program name with args.
16316 set dummy $ac_prog; ac_word=$2
16317 echo "$as_me:$LINENO: checking for $ac_word" >&5
16318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16319 if test "${ac_cv_prog_JADE+set}" = set; then
16320   echo $ECHO_N "(cached) $ECHO_C" >&6
16321 else
16322   if test -n "$JADE"; then
16323   ac_cv_prog_JADE="$JADE" # Let the user override the test.
16324 else
16325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16326 for as_dir in $PATH
16327 do
16328   IFS=$as_save_IFS
16329   test -z "$as_dir" && as_dir=.
16330   for ac_exec_ext in '' $ac_executable_extensions; do
16331   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16332     ac_cv_prog_JADE="$ac_prog"
16333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16334     break 2
16335   fi
16336 done
16337 done
16338
16339 fi
16340 fi
16341 JADE=$ac_cv_prog_JADE
16342 if test -n "$JADE"; then
16343   echo "$as_me:$LINENO: result: $JADE" >&5
16344 echo "${ECHO_T}$JADE" >&6
16345 else
16346   echo "$as_me:$LINENO: result: no" >&5
16347 echo "${ECHO_T}no" >&6
16348 fi
16349
16350   test -n "$JADE" && break
16351 done
16352
16353
16354 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16355 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16356 if test "${pgac_cv_check_docbook+set}" = set; then
16357   echo $ECHO_N "(cached) $ECHO_C" >&6
16358 else
16359   cat >conftest.sgml <<EOF
16360 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16361 <book>
16362  <title>test</title>
16363  <chapter>
16364   <title>random</title>
16365    <sect1>
16366     <title>testsect</title>
16367     <para>text</para>
16368   </sect1>
16369  </chapter>
16370 </book>
16371 EOF
16372
16373 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
16374 if test $? -eq 0; then
16375   pgac_cv_check_docbook=yes
16376 else
16377   pgac_cv_check_docbook=no
16378 fi
16379 rm -f conftest.sgml
16380 fi
16381 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
16382 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
16383
16384 have_docbook=$pgac_cv_check_docbook
16385
16386
16387 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
16388 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
16389 if test "${pgac_cv_path_stylesheets+set}" = set; then
16390   echo $ECHO_N "(cached) $ECHO_C" >&6
16391 else
16392   if test -n "$DOCBOOKSTYLE"; then
16393   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
16394 else
16395   for pgac_prefix in /usr /usr/local /opt; do
16396     for pgac_infix in share lib; do
16397       for pgac_postfix in \
16398         sgml/stylesheets/nwalsh-modular \
16399         sgml/stylesheets/docbook \
16400         sgml/docbook/dsssl/modular \
16401         sgml/docbook/stylesheet/dsssl/modular \
16402         sgml/docbook/dsssl-stylesheets
16403       do
16404         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
16405         if test -r "$pgac_candidate/html/docbook.dsl" \
16406            && test -r "$pgac_candidate/print/docbook.dsl"
16407         then
16408           pgac_cv_path_stylesheets=$pgac_candidate
16409           break 3
16410         fi
16411       done
16412     done
16413   done
16414 fi
16415 fi
16416
16417 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
16418
16419 if test -n "$DOCBOOKSTYLE"; then
16420   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
16421 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
16422 else
16423   echo "$as_me:$LINENO: result: no" >&5
16424 echo "${ECHO_T}no" >&6
16425 fi
16426 if test -n "$DOCBOOKSTYLE"; then
16427   for ac_prog in collateindex.pl
16428 do
16429   # Extract the first word of "$ac_prog", so it can be a program name with args.
16430 set dummy $ac_prog; ac_word=$2
16431 echo "$as_me:$LINENO: checking for $ac_word" >&5
16432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16433 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16434   echo $ECHO_N "(cached) $ECHO_C" >&6
16435 else
16436   case $COLLATEINDEX in
16437   [\\/]* | ?:[\\/]*)
16438   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16439   ;;
16440   *)
16441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16442 for as_dir in $DOCBOOKSTYLE/bin $PATH
16443 do
16444   IFS=$as_save_IFS
16445   test -z "$as_dir" && as_dir=.
16446   for ac_exec_ext in '' $ac_executable_extensions; do
16447   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16448     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16450     break 2
16451   fi
16452 done
16453 done
16454
16455   ;;
16456 esac
16457 fi
16458 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16459
16460 if test -n "$COLLATEINDEX"; then
16461   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16462 echo "${ECHO_T}$COLLATEINDEX" >&6
16463 else
16464   echo "$as_me:$LINENO: result: no" >&5
16465 echo "${ECHO_T}no" >&6
16466 fi
16467
16468   test -n "$COLLATEINDEX" && break
16469 done
16470
16471 else
16472   for ac_prog in collateindex.pl
16473 do
16474   # Extract the first word of "$ac_prog", so it can be a program name with args.
16475 set dummy $ac_prog; ac_word=$2
16476 echo "$as_me:$LINENO: checking for $ac_word" >&5
16477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16478 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16479   echo $ECHO_N "(cached) $ECHO_C" >&6
16480 else
16481   case $COLLATEINDEX in
16482   [\\/]* | ?:[\\/]*)
16483   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16484   ;;
16485   *)
16486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16487 for as_dir in $PATH
16488 do
16489   IFS=$as_save_IFS
16490   test -z "$as_dir" && as_dir=.
16491   for ac_exec_ext in '' $ac_executable_extensions; do
16492   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16493     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16495     break 2
16496   fi
16497 done
16498 done
16499
16500   ;;
16501 esac
16502 fi
16503 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16504
16505 if test -n "$COLLATEINDEX"; then
16506   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16507 echo "${ECHO_T}$COLLATEINDEX" >&6
16508 else
16509   echo "$as_me:$LINENO: result: no" >&5
16510 echo "${ECHO_T}no" >&6
16511 fi
16512
16513   test -n "$COLLATEINDEX" && break
16514 done
16515
16516 fi
16517 for ac_prog in sgmlspl
16518 do
16519   # Extract the first word of "$ac_prog", so it can be a program name with args.
16520 set dummy $ac_prog; ac_word=$2
16521 echo "$as_me:$LINENO: checking for $ac_word" >&5
16522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16523 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
16524   echo $ECHO_N "(cached) $ECHO_C" >&6
16525 else
16526   if test -n "$SGMLSPL"; then
16527   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
16528 else
16529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16530 for as_dir in $PATH
16531 do
16532   IFS=$as_save_IFS
16533   test -z "$as_dir" && as_dir=.
16534   for ac_exec_ext in '' $ac_executable_extensions; do
16535   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16536     ac_cv_prog_SGMLSPL="$ac_prog"
16537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16538     break 2
16539   fi
16540 done
16541 done
16542
16543 fi
16544 fi
16545 SGMLSPL=$ac_cv_prog_SGMLSPL
16546 if test -n "$SGMLSPL"; then
16547   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
16548 echo "${ECHO_T}$SGMLSPL" >&6
16549 else
16550   echo "$as_me:$LINENO: result: no" >&5
16551 echo "${ECHO_T}no" >&6
16552 fi
16553
16554   test -n "$SGMLSPL" && break
16555 done
16556
16557
16558
16559 # prepare build tree if outside source tree
16560 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
16561 # Note 2: /bin/pwd might be better than shell's built-in at getting
16562 #         a symlink-free name.
16563 if test "$no_create" != yes; then
16564   if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
16565     :
16566   else
16567     vpath_build=yes
16568
16569     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
16570     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
16571     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
16572       || { { echo "$as_me:$LINENO: error: failed" >&5
16573 echo "$as_me: error: failed" >&2;}
16574    { (exit 1); exit 1; }; }
16575     echo "$as_me:$LINENO: result: done" >&5
16576 echo "${ECHO_T}done" >&6
16577   fi
16578 fi
16579
16580
16581 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
16582
16583
16584 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}"
16585
16586
16587 ac_config_headers="$ac_config_headers src/include/pg_config.h"
16588
16589
16590 cat >confcache <<\_ACEOF
16591 # This file is a shell script that caches the results of configure
16592 # tests run on this system so they can be shared between configure
16593 # scripts and configure runs, see configure's option --config-cache.
16594 # It is not useful on other systems.  If it contains results you don't
16595 # want to keep, you may remove or edit it.
16596 #
16597 # config.status only pays attention to the cache file if you give it
16598 # the --recheck option to rerun configure.
16599 #
16600 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16601 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16602 # following values.
16603
16604 _ACEOF
16605
16606 # The following way of writing the cache mishandles newlines in values,
16607 # but we know of no workaround that is simple, portable, and efficient.
16608 # So, don't put newlines in cache variables' values.
16609 # Ultrix sh set writes to stderr and can't be redirected directly,
16610 # and sets the high bit in the cache file unless we assign to the vars.
16611 {
16612   (set) 2>&1 |
16613     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16614     *ac_space=\ *)
16615       # `set' does not quote correctly, so add quotes (double-quote
16616       # substitution turns \\\\ into \\, and sed turns \\ into \).
16617       sed -n \
16618         "s/'/'\\\\''/g;
16619           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16620       ;;
16621     *)
16622       # `set' quotes correctly as required by POSIX, so do not add quotes.
16623       sed -n \
16624         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16625       ;;
16626     esac;
16627 } |
16628   sed '
16629      t clear
16630      : clear
16631      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16632      t end
16633      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16634      : end' >>confcache
16635 if cmp -s $cache_file confcache; then :; else
16636   if test -w $cache_file; then
16637     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16638     cat confcache >$cache_file
16639   else
16640     echo "not updating unwritable cache $cache_file"
16641   fi
16642 fi
16643 rm -f confcache
16644
16645 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16646 # Let make expand exec_prefix.
16647 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16648
16649 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16650 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16651 # trailing colons and then remove the whole line if VPATH becomes empty
16652 # (actually we leave an empty line to preserve line numbers).
16653 if test "x$srcdir" = x.; then
16654   ac_vpsub='/^[         ]*VPATH[        ]*=/{
16655 s/:*\$(srcdir):*/:/;
16656 s/:*\${srcdir}:*/:/;
16657 s/:*@srcdir@:*/:/;
16658 s/^\([^=]*=[    ]*\):*/\1/;
16659 s/:*$//;
16660 s/^[^=]*=[      ]*$//;
16661 }'
16662 fi
16663
16664 DEFS=-DHAVE_CONFIG_H
16665
16666
16667 : ${CONFIG_STATUS=./config.status}
16668 ac_clean_files_save=$ac_clean_files
16669 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16670 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16671 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16672 cat >$CONFIG_STATUS <<_ACEOF
16673 #! $SHELL
16674 # Generated by $as_me.
16675 # Run this file to recreate the current configuration.
16676 # Compiler output produced by configure, useful for debugging
16677 # configure, is in config.log if it exists.
16678
16679 debug=false
16680 SHELL=\${CONFIG_SHELL-$SHELL}
16681 _ACEOF
16682
16683 cat >>$CONFIG_STATUS <<\_ACEOF
16684
16685 ## --------------------- ##
16686 ## M4sh Initialization.  ##
16687 ## --------------------- ##
16688
16689 # Be Bourne compatible
16690 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16691   emulate sh
16692   NULLCMD=:
16693 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16694   set -o posix
16695 fi
16696
16697 # NLS nuisances.
16698 # Support unset when possible.
16699 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16700   as_unset=unset
16701 else
16702   as_unset=false
16703 fi
16704
16705 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16706     { $as_unset LANG || test "${LANG+set}" != set; } ||
16707       { LANG=C; export LANG; }
16708 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16709     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16710       { LC_ALL=C; export LC_ALL; }
16711 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16712     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16713       { LC_TIME=C; export LC_TIME; }
16714 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16715     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16716       { LC_CTYPE=C; export LC_CTYPE; }
16717 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16718     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16719       { LANGUAGE=C; export LANGUAGE; }
16720 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16721     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16722       { LC_COLLATE=C; export LC_COLLATE; }
16723 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16724     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16725       { LC_NUMERIC=C; export LC_NUMERIC; }
16726 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16727     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16728       { LC_MESSAGES=C; export LC_MESSAGES; }
16729
16730
16731 # Name of the executable.
16732 as_me=`(basename "$0") 2>/dev/null ||
16733 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16734          X"$0" : 'X\(//\)$' \| \
16735          X"$0" : 'X\(/\)$' \| \
16736          .     : '\(.\)' 2>/dev/null ||
16737 echo X/"$0" |
16738     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16739           /^X\/\(\/\/\)$/{ s//\1/; q; }
16740           /^X\/\(\/\).*/{ s//\1/; q; }
16741           s/.*/./; q'`
16742
16743 # PATH needs CR, and LINENO needs CR and PATH.
16744 # Avoid depending upon Character Ranges.
16745 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16746 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16747 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16748 as_cr_digits='0123456789'
16749 as_cr_alnum=$as_cr_Letters$as_cr_digits
16750
16751 # The user is always right.
16752 if test "${PATH_SEPARATOR+set}" != set; then
16753   echo "#! /bin/sh" >conftest.sh
16754   echo  "exit 0"   >>conftest.sh
16755   chmod +x conftest.sh
16756   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16757     PATH_SEPARATOR=';'
16758   else
16759     PATH_SEPARATOR=:
16760   fi
16761   rm -f conftest.sh
16762 fi
16763
16764
16765   as_lineno_1=$LINENO
16766   as_lineno_2=$LINENO
16767   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16768   test "x$as_lineno_1" != "x$as_lineno_2" &&
16769   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16770   # Find who we are.  Look in the path if we contain no path at all
16771   # relative or not.
16772   case $0 in
16773     *[\\/]* ) as_myself=$0 ;;
16774     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16775 for as_dir in $PATH
16776 do
16777   IFS=$as_save_IFS
16778   test -z "$as_dir" && as_dir=.
16779   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16780 done
16781
16782        ;;
16783   esac
16784   # We did not find ourselves, most probably we were run as `sh COMMAND'
16785   # in which case we are not to be found in the path.
16786   if test "x$as_myself" = x; then
16787     as_myself=$0
16788   fi
16789   if test ! -f "$as_myself"; then
16790     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16791 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16792    { (exit 1); exit 1; }; }
16793   fi
16794   case $CONFIG_SHELL in
16795   '')
16796     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16797 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16798 do
16799   IFS=$as_save_IFS
16800   test -z "$as_dir" && as_dir=.
16801   for as_base in sh bash ksh sh5; do
16802          case $as_dir in
16803          /*)
16804            if ("$as_dir/$as_base" -c '
16805   as_lineno_1=$LINENO
16806   as_lineno_2=$LINENO
16807   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16808   test "x$as_lineno_1" != "x$as_lineno_2" &&
16809   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16810              CONFIG_SHELL=$as_dir/$as_base
16811              export CONFIG_SHELL
16812              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16813            fi;;
16814          esac
16815        done
16816 done
16817 ;;
16818   esac
16819
16820   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16821   # uniformly replaced by the line number.  The first 'sed' inserts a
16822   # line-number line before each line; the second 'sed' does the real
16823   # work.  The second script uses 'N' to pair each line-number line
16824   # with the numbered line, and appends trailing '-' during
16825   # substitution so that $LINENO is not a special case at line end.
16826   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16827   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16828   sed '=' <$as_myself |
16829     sed '
16830       N
16831       s,$,-,
16832       : loop
16833       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16834       t loop
16835       s,-$,,
16836       s,^['$as_cr_digits']*\n,,
16837     ' >$as_me.lineno &&
16838   chmod +x $as_me.lineno ||
16839     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16840 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16841    { (exit 1); exit 1; }; }
16842
16843   # Don't try to exec as it changes $[0], causing all sort of problems
16844   # (the dirname of $[0] is not the place where we might find the
16845   # original and so on.  Autoconf is especially sensible to this).
16846   . ./$as_me.lineno
16847   # Exit status is that of the last command.
16848   exit
16849 }
16850
16851
16852 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16853   *c*,-n*) ECHO_N= ECHO_C='
16854 ' ECHO_T='      ' ;;
16855   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16856   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16857 esac
16858
16859 if expr a : '\(a\)' >/dev/null 2>&1; then
16860   as_expr=expr
16861 else
16862   as_expr=false
16863 fi
16864
16865 rm -f conf$$ conf$$.exe conf$$.file
16866 echo >conf$$.file
16867 if ln -s conf$$.file conf$$ 2>/dev/null; then
16868   # We could just check for DJGPP; but this test a) works b) is more generic
16869   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16870   if test -f conf$$.exe; then
16871     # Don't use ln at all; we don't have any links
16872     as_ln_s='cp -p'
16873   else
16874     as_ln_s='ln -s'
16875   fi
16876 elif ln conf$$.file conf$$ 2>/dev/null; then
16877   as_ln_s=ln
16878 else
16879   as_ln_s='cp -p'
16880 fi
16881 rm -f conf$$ conf$$.exe conf$$.file
16882
16883 as_executable_p="test -f"
16884
16885 # Sed expression to map a string onto a valid CPP name.
16886 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16887
16888 # Sed expression to map a string onto a valid variable name.
16889 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16890
16891
16892 # IFS
16893 # We need space, tab and new line, in precisely that order.
16894 as_nl='
16895 '
16896 IFS="   $as_nl"
16897
16898 # CDPATH.
16899 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16900
16901 exec 6>&1
16902
16903 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16904 # report actual input values of CONFIG_FILES etc. instead of their
16905 # values after options handling.  Logging --version etc. is OK.
16906 exec 5>>config.log
16907 {
16908   echo
16909   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16910 ## Running $as_me. ##
16911 _ASBOX
16912 } >&5
16913 cat >&5 <<_CSEOF
16914
16915 This file was extended by PostgreSQL $as_me 7.4devel, which was
16916 generated by GNU Autoconf 2.53.  Invocation command line was
16917
16918   CONFIG_FILES    = $CONFIG_FILES
16919   CONFIG_HEADERS  = $CONFIG_HEADERS
16920   CONFIG_LINKS    = $CONFIG_LINKS
16921   CONFIG_COMMANDS = $CONFIG_COMMANDS
16922   $ $0 $@
16923
16924 _CSEOF
16925 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16926 echo >&5
16927 _ACEOF
16928
16929 # Files that config.status was made for.
16930 if test -n "$ac_config_files"; then
16931   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16932 fi
16933
16934 if test -n "$ac_config_headers"; then
16935   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16936 fi
16937
16938 if test -n "$ac_config_links"; then
16939   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16940 fi
16941
16942 if test -n "$ac_config_commands"; then
16943   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16944 fi
16945
16946 cat >>$CONFIG_STATUS <<\_ACEOF
16947
16948 ac_cs_usage="\
16949 \`$as_me' instantiates files from templates according to the
16950 current configuration.
16951
16952 Usage: $0 [OPTIONS] [FILE]...
16953
16954   -h, --help       print this help, then exit
16955   -V, --version    print version number, then exit
16956   -d, --debug      don't remove temporary files
16957       --recheck    update $as_me by reconfiguring in the same conditions
16958   --file=FILE[:TEMPLATE]
16959                    instantiate the configuration file FILE
16960   --header=FILE[:TEMPLATE]
16961                    instantiate the configuration header FILE
16962
16963 Configuration files:
16964 $config_files
16965
16966 Configuration headers:
16967 $config_headers
16968
16969 Configuration links:
16970 $config_links
16971
16972 Report bugs to <bug-autoconf@gnu.org>."
16973 _ACEOF
16974
16975 cat >>$CONFIG_STATUS <<_ACEOF
16976 ac_cs_version="\\
16977 PostgreSQL config.status 7.4devel
16978 configured by $0, generated by GNU Autoconf 2.53,
16979   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16980
16981 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16982 Free Software Foundation, Inc.
16983 This config.status script is free software; the Free Software Foundation
16984 gives unlimited permission to copy, distribute and modify it."
16985 srcdir=$srcdir
16986 _ACEOF
16987
16988 cat >>$CONFIG_STATUS <<\_ACEOF
16989 # If no file are specified by the user, then we need to provide default
16990 # value.  By we need to know if files were specified by the user.
16991 ac_need_defaults=:
16992 while test $# != 0
16993 do
16994   case $1 in
16995   --*=*)
16996     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16997     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16998     shift
16999     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17000     shift
17001     ;;
17002   -*);;
17003   *) # This is not an option, so the user has probably given explicit
17004      # arguments.
17005      ac_need_defaults=false;;
17006   esac
17007
17008   case $1 in
17009   # Handling of the options.
17010 _ACEOF
17011 cat >>$CONFIG_STATUS <<_ACEOF
17012   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17013     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17014     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17015 _ACEOF
17016 cat >>$CONFIG_STATUS <<\_ACEOF
17017   --version | --vers* | -V )
17018     echo "$ac_cs_version"; exit 0 ;;
17019   --he | --h)
17020     # Conflict between --help and --header
17021     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17022 Try \`$0 --help' for more information." >&5
17023 echo "$as_me: error: ambiguous option: $1
17024 Try \`$0 --help' for more information." >&2;}
17025    { (exit 1); exit 1; }; };;
17026   --help | --hel | -h )
17027     echo "$ac_cs_usage"; exit 0 ;;
17028   --debug | --d* | -d )
17029     debug=: ;;
17030   --file | --fil | --fi | --f )
17031     shift
17032     CONFIG_FILES="$CONFIG_FILES $1"
17033     ac_need_defaults=false;;
17034   --header | --heade | --head | --hea )
17035     shift
17036     CONFIG_HEADERS="$CONFIG_HEADERS $1"
17037     ac_need_defaults=false;;
17038
17039   # This is an error.
17040   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17041 Try \`$0 --help' for more information." >&5
17042 echo "$as_me: error: unrecognized option: $1
17043 Try \`$0 --help' for more information." >&2;}
17044    { (exit 1); exit 1; }; } ;;
17045
17046   *) ac_config_targets="$ac_config_targets $1" ;;
17047
17048   esac
17049   shift
17050 done
17051
17052 _ACEOF
17053
17054
17055
17056
17057
17058 cat >>$CONFIG_STATUS <<\_ACEOF
17059 for ac_config_target in $ac_config_targets
17060 do
17061   case "$ac_config_target" in
17062   # Handling of arguments.
17063   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17064   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17065   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17066   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17067   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
17068   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
17069   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17070   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17071   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17072   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17073   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17074 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17075    { (exit 1); exit 1; }; };;
17076   esac
17077 done
17078
17079 # If the user did not use the arguments to specify the items to instantiate,
17080 # then the envvar interface is used.  Set only those that are not.
17081 # We use the long form for the default assignment because of an extremely
17082 # bizarre bug on SunOS 4.1.3.
17083 if $ac_need_defaults; then
17084   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17085   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17086   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17087 fi
17088
17089 # Create a temporary directory, and hook for its removal unless debugging.
17090 $debug ||
17091 {
17092   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17093   trap '{ (exit 1); exit 1; }' 1 2 13 15
17094 }
17095
17096 # Create a (secure) tmp directory for tmp files.
17097 : ${TMPDIR=/tmp}
17098 {
17099   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17100   test -n "$tmp" && test -d "$tmp"
17101 }  ||
17102 {
17103   tmp=$TMPDIR/cs$$-$RANDOM
17104   (umask 077 && mkdir $tmp)
17105 } ||
17106 {
17107    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17108    { (exit 1); exit 1; }
17109 }
17110
17111 _ACEOF
17112
17113 cat >>$CONFIG_STATUS <<_ACEOF
17114
17115 #
17116 # CONFIG_FILES section.
17117 #
17118
17119 # No need to generate the scripts if there are no CONFIG_FILES.
17120 # This happens for instance when ./config.status config.h
17121 if test -n "\$CONFIG_FILES"; then
17122   # Protect against being on the right side of a sed subst in config.status.
17123   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17124    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17125 s,@SHELL@,$SHELL,;t t
17126 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17127 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17128 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17129 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17130 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17131 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17132 s,@exec_prefix@,$exec_prefix,;t t
17133 s,@prefix@,$prefix,;t t
17134 s,@program_transform_name@,$program_transform_name,;t t
17135 s,@bindir@,$bindir,;t t
17136 s,@sbindir@,$sbindir,;t t
17137 s,@libexecdir@,$libexecdir,;t t
17138 s,@datadir@,$datadir,;t t
17139 s,@sysconfdir@,$sysconfdir,;t t
17140 s,@sharedstatedir@,$sharedstatedir,;t t
17141 s,@localstatedir@,$localstatedir,;t t
17142 s,@libdir@,$libdir,;t t
17143 s,@includedir@,$includedir,;t t
17144 s,@oldincludedir@,$oldincludedir,;t t
17145 s,@infodir@,$infodir,;t t
17146 s,@mandir@,$mandir,;t t
17147 s,@build_alias@,$build_alias,;t t
17148 s,@host_alias@,$host_alias,;t t
17149 s,@target_alias@,$target_alias,;t t
17150 s,@DEFS@,$DEFS,;t t
17151 s,@ECHO_C@,$ECHO_C,;t t
17152 s,@ECHO_N@,$ECHO_N,;t t
17153 s,@ECHO_T@,$ECHO_T,;t t
17154 s,@LIBS@,$LIBS,;t t
17155 s,@docdir@,$docdir,;t t
17156 s,@configure_args@,$configure_args,;t t
17157 s,@build@,$build,;t t
17158 s,@build_cpu@,$build_cpu,;t t
17159 s,@build_vendor@,$build_vendor,;t t
17160 s,@build_os@,$build_os,;t t
17161 s,@host@,$host,;t t
17162 s,@host_cpu@,$host_cpu,;t t
17163 s,@host_vendor@,$host_vendor,;t t
17164 s,@host_os@,$host_os,;t t
17165 s,@PORTNAME@,$PORTNAME,;t t
17166 s,@TAS@,$TAS,;t t
17167 s,@enable_nls@,$enable_nls,;t t
17168 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17169 s,@default_port@,$default_port,;t t
17170 s,@enable_shared@,$enable_shared,;t t
17171 s,@enable_rpath@,$enable_rpath,;t t
17172 s,@enable_debug@,$enable_debug,;t t
17173 s,@CC@,$CC,;t t
17174 s,@CFLAGS@,$CFLAGS,;t t
17175 s,@LDFLAGS@,$LDFLAGS,;t t
17176 s,@CPPFLAGS@,$CPPFLAGS,;t t
17177 s,@ac_ct_CC@,$ac_ct_CC,;t t
17178 s,@EXEEXT@,$EXEEXT,;t t
17179 s,@OBJEXT@,$OBJEXT,;t t
17180 s,@CPP@,$CPP,;t t
17181 s,@GCC@,$GCC,;t t
17182 s,@autodepend@,$autodepend,;t t
17183 s,@INCLUDES@,$INCLUDES,;t t
17184 s,@with_tcl@,$with_tcl,;t t
17185 s,@with_tk@,$with_tk,;t t
17186 s,@with_perl@,$with_perl,;t t
17187 s,@with_python@,$with_python,;t t
17188 s,@ANT@,$ANT,;t t
17189 s,@with_java@,$with_java,;t t
17190 s,@with_krb4@,$with_krb4,;t t
17191 s,@with_krb5@,$with_krb5,;t t
17192 s,@krb_srvtab@,$krb_srvtab,;t t
17193 s,@with_pam@,$with_pam,;t t
17194 s,@with_openssl@,$with_openssl,;t t
17195 s,@ELF_SYS@,$ELF_SYS,;t t
17196 s,@AWK@,$AWK,;t t
17197 s,@FLEX@,$FLEX,;t t
17198 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17199 s,@LN_S@,$LN_S,;t t
17200 s,@LD@,$LD,;t t
17201 s,@with_gnu_ld@,$with_gnu_ld,;t t
17202 s,@ld_R_works@,$ld_R_works,;t t
17203 s,@RANLIB@,$RANLIB,;t t
17204 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17205 s,@LORDER@,$LORDER,;t t
17206 s,@TAR@,$TAR,;t t
17207 s,@STRIP@,$STRIP,;t t
17208 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17209 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17210 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
17211 s,@YACC@,$YACC,;t t
17212 s,@YFLAGS@,$YFLAGS,;t t
17213 s,@PERL@,$PERL,;t t
17214 s,@perl_archlibexp@,$perl_archlibexp,;t t
17215 s,@perl_privlibexp@,$perl_privlibexp,;t t
17216 s,@perl_useshrplib@,$perl_useshrplib,;t t
17217 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
17218 s,@PYTHON@,$PYTHON,;t t
17219 s,@python_version@,$python_version,;t t
17220 s,@python_prefix@,$python_prefix,;t t
17221 s,@python_execprefix@,$python_execprefix,;t t
17222 s,@python_configdir@,$python_configdir,;t t
17223 s,@python_moduledir@,$python_moduledir,;t t
17224 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17225 s,@python_includespec@,$python_includespec,;t t
17226 s,@python_libspec@,$python_libspec,;t t
17227 s,@LIBOBJS@,$LIBOBJS,;t t
17228 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
17229 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
17230 s,@MSGFMT@,$MSGFMT,;t t
17231 s,@MSGMERGE@,$MSGMERGE,;t t
17232 s,@XGETTEXT@,$XGETTEXT,;t t
17233 s,@localedir@,$localedir,;t t
17234 s,@TCLSH@,$TCLSH,;t t
17235 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
17236 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
17237 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
17238 s,@TCL_LIBS@,$TCL_LIBS,;t t
17239 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
17240 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
17241 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
17242 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
17243 s,@TK_LIBS@,$TK_LIBS,;t t
17244 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
17245 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
17246 s,@NSGMLS@,$NSGMLS,;t t
17247 s,@JADE@,$JADE,;t t
17248 s,@have_docbook@,$have_docbook,;t t
17249 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
17250 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
17251 s,@SGMLSPL@,$SGMLSPL,;t t
17252 s,@vpath_build@,$vpath_build,;t t
17253 CEOF
17254
17255 _ACEOF
17256
17257   cat >>$CONFIG_STATUS <<\_ACEOF
17258   # Split the substitutions into bite-sized pieces for seds with
17259   # small command number limits, like on Digital OSF/1 and HP-UX.
17260   ac_max_sed_lines=48
17261   ac_sed_frag=1 # Number of current file.
17262   ac_beg=1 # First line for current file.
17263   ac_end=$ac_max_sed_lines # Line after last line for current file.
17264   ac_more_lines=:
17265   ac_sed_cmds=
17266   while $ac_more_lines; do
17267     if test $ac_beg -gt 1; then
17268       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17269     else
17270       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17271     fi
17272     if test ! -s $tmp/subs.frag; then
17273       ac_more_lines=false
17274     else
17275       # The purpose of the label and of the branching condition is to
17276       # speed up the sed processing (if there are no `@' at all, there
17277       # is no need to browse any of the substitutions).
17278       # These are the two extra sed commands mentioned above.
17279       (echo ':t
17280   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17281       if test -z "$ac_sed_cmds"; then
17282         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17283       else
17284         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17285       fi
17286       ac_sed_frag=`expr $ac_sed_frag + 1`
17287       ac_beg=$ac_end
17288       ac_end=`expr $ac_end + $ac_max_sed_lines`
17289     fi
17290   done
17291   if test -z "$ac_sed_cmds"; then
17292     ac_sed_cmds=cat
17293   fi
17294 fi # test -n "$CONFIG_FILES"
17295
17296 _ACEOF
17297 cat >>$CONFIG_STATUS <<\_ACEOF
17298 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17299   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17300   case $ac_file in
17301   - | *:- | *:-:* ) # input from stdin
17302         cat >$tmp/stdin
17303         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17304         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17305   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17306         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17307   * )   ac_file_in=$ac_file.in ;;
17308   esac
17309
17310   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17311   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17312 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17313          X"$ac_file" : 'X\(//\)[^/]' \| \
17314          X"$ac_file" : 'X\(//\)$' \| \
17315          X"$ac_file" : 'X\(/\)' \| \
17316          .     : '\(.\)' 2>/dev/null ||
17317 echo X"$ac_file" |
17318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17319           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17320           /^X\(\/\/\)$/{ s//\1/; q; }
17321           /^X\(\/\).*/{ s//\1/; q; }
17322           s/.*/./; q'`
17323   { case "$ac_dir" in
17324   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17325   *)                      as_incr_dir=.;;
17326 esac
17327 as_dummy="$ac_dir"
17328 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17329   case $as_mkdir_dir in
17330     # Skip DOS drivespec
17331     ?:) as_incr_dir=$as_mkdir_dir ;;
17332     *)
17333       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17334       test -d "$as_incr_dir" ||
17335         mkdir "$as_incr_dir" ||
17336         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17337 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17338    { (exit 1); exit 1; }; }
17339     ;;
17340   esac
17341 done; }
17342
17343   ac_builddir=.
17344
17345 if test "$ac_dir" != .; then
17346   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17347   # A "../" for each directory in $ac_dir_suffix.
17348   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17349 else
17350   ac_dir_suffix= ac_top_builddir=
17351 fi
17352
17353 case $srcdir in
17354   .)  # No --srcdir option.  We are building in place.
17355     ac_srcdir=.
17356     if test -z "$ac_top_builddir"; then
17357        ac_top_srcdir=.
17358     else
17359        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17360     fi ;;
17361   [\\/]* | ?:[\\/]* )  # Absolute path.
17362     ac_srcdir=$srcdir$ac_dir_suffix;
17363     ac_top_srcdir=$srcdir ;;
17364   *) # Relative path.
17365     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17366     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17367 esac
17368 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17369 # absolute.
17370 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17371 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17372 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17373 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17374
17375
17376
17377   if test x"$ac_file" != x-; then
17378     { echo "$as_me:$LINENO: creating $ac_file" >&5
17379 echo "$as_me: creating $ac_file" >&6;}
17380     rm -f "$ac_file"
17381   fi
17382   # Let's still pretend it is `configure' which instantiates (i.e., don't
17383   # use $as_me), people would be surprised to read:
17384   #    /* config.h.  Generated by config.status.  */
17385   if test x"$ac_file" = x-; then
17386     configure_input=
17387   else
17388     configure_input="$ac_file.  "
17389   fi
17390   configure_input=$configure_input"Generated from `echo $ac_file_in |
17391                                      sed 's,.*/,,'` by configure."
17392
17393   # First look for the input files in the build tree, otherwise in the
17394   # src tree.
17395   ac_file_inputs=`IFS=:
17396     for f in $ac_file_in; do
17397       case $f in
17398       -) echo $tmp/stdin ;;
17399       [\\/$]*)
17400          # Absolute (can't be DOS-style, as IFS=:)
17401          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17402 echo "$as_me: error: cannot find input file: $f" >&2;}
17403    { (exit 1); exit 1; }; }
17404          echo $f;;
17405       *) # Relative
17406          if test -f "$f"; then
17407            # Build tree
17408            echo $f
17409          elif test -f "$srcdir/$f"; then
17410            # Source tree
17411            echo $srcdir/$f
17412          else
17413            # /dev/null tree
17414            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17415 echo "$as_me: error: cannot find input file: $f" >&2;}
17416    { (exit 1); exit 1; }; }
17417          fi;;
17418       esac
17419     done` || { (exit 1); exit 1; }
17420 _ACEOF
17421 cat >>$CONFIG_STATUS <<_ACEOF
17422   sed "$ac_vpsub
17423 $extrasub
17424 _ACEOF
17425 cat >>$CONFIG_STATUS <<\_ACEOF
17426 :t
17427 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17428 s,@configure_input@,$configure_input,;t t
17429 s,@srcdir@,$ac_srcdir,;t t
17430 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17431 s,@top_srcdir@,$ac_top_srcdir,;t t
17432 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17433 s,@builddir@,$ac_builddir,;t t
17434 s,@abs_builddir@,$ac_abs_builddir,;t t
17435 s,@top_builddir@,$ac_top_builddir,;t t
17436 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17437 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17438   rm -f $tmp/stdin
17439   if test x"$ac_file" != x-; then
17440     mv $tmp/out $ac_file
17441   else
17442     cat $tmp/out
17443     rm -f $tmp/out
17444   fi
17445
17446 done
17447 _ACEOF
17448 cat >>$CONFIG_STATUS <<\_ACEOF
17449
17450 #
17451 # CONFIG_HEADER section.
17452 #
17453
17454 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17455 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17456 #
17457 # ac_d sets the value in "#define NAME VALUE" lines.
17458 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
17459 ac_dB='[        ].*$,\1#\2'
17460 ac_dC=' '
17461 ac_dD=',;t'
17462 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17463 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17464 ac_uB='$,\1#\2define\3'
17465 ac_uC=' '
17466 ac_uD=',;t'
17467
17468 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17469   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17470   case $ac_file in
17471   - | *:- | *:-:* ) # input from stdin
17472         cat >$tmp/stdin
17473         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17474         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17475   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17476         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17477   * )   ac_file_in=$ac_file.in ;;
17478   esac
17479
17480   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17481 echo "$as_me: creating $ac_file" >&6;}
17482
17483   # First look for the input files in the build tree, otherwise in the
17484   # src tree.
17485   ac_file_inputs=`IFS=:
17486     for f in $ac_file_in; do
17487       case $f in
17488       -) echo $tmp/stdin ;;
17489       [\\/$]*)
17490          # Absolute (can't be DOS-style, as IFS=:)
17491          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17492 echo "$as_me: error: cannot find input file: $f" >&2;}
17493    { (exit 1); exit 1; }; }
17494          echo $f;;
17495       *) # Relative
17496          if test -f "$f"; then
17497            # Build tree
17498            echo $f
17499          elif test -f "$srcdir/$f"; then
17500            # Source tree
17501            echo $srcdir/$f
17502          else
17503            # /dev/null tree
17504            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17505 echo "$as_me: error: cannot find input file: $f" >&2;}
17506    { (exit 1); exit 1; }; }
17507          fi;;
17508       esac
17509     done` || { (exit 1); exit 1; }
17510   # Remove the trailing spaces.
17511   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
17512
17513 _ACEOF
17514
17515 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17516 # `conftest.undefs', that substitutes the proper values into
17517 # config.h.in to produce config.h.  The first handles `#define'
17518 # templates, and the second `#undef' templates.
17519 # And first: Protect against being on the right side of a sed subst in
17520 # config.status.  Protect against being in an unquoted here document
17521 # in config.status.
17522 rm -f conftest.defines conftest.undefs
17523 # Using a here document instead of a string reduces the quoting nightmare.
17524 # Putting comments in sed scripts is not portable.
17525 #
17526 # `end' is used to avoid that the second main sed command (meant for
17527 # 0-ary CPP macros) applies to n-ary macro definitions.
17528 # See the Autoconf documentation for `clear'.
17529 cat >confdef2sed.sed <<\_ACEOF
17530 s/[\\&,]/\\&/g
17531 s,[\\$`],\\&,g
17532 t clear
17533 : clear
17534 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17535 t end
17536 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17537 : end
17538 _ACEOF
17539 # If some macros were called several times there might be several times
17540 # the same #defines, which is useless.  Nevertheless, we may not want to
17541 # sort them, since we want the *last* AC-DEFINE to be honored.
17542 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17543 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17544 rm -f confdef2sed.sed
17545
17546 # This sed command replaces #undef with comments.  This is necessary, for
17547 # example, in the case of _POSIX_SOURCE, which is predefined and required
17548 # on some systems where configure will not decide to define it.
17549 cat >>conftest.undefs <<\_ACEOF
17550 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17551 _ACEOF
17552
17553 # Break up conftest.defines because some shells have a limit on the size
17554 # of here documents, and old seds have small limits too (100 cmds).
17555 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17556 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17557 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17558 echo '  :' >>$CONFIG_STATUS
17559 rm -f conftest.tail
17560 while grep . conftest.defines >/dev/null
17561 do
17562   # Write a limited-size here document to $tmp/defines.sed.
17563   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17564   # Speed up: don't consider the non `#define' lines.
17565   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
17566   # Work around the forget-to-reset-the-flag bug.
17567   echo 't clr' >>$CONFIG_STATUS
17568   echo ': clr' >>$CONFIG_STATUS
17569   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17570   echo 'CEOF
17571   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17572   rm -f $tmp/in
17573   mv $tmp/out $tmp/in
17574 ' >>$CONFIG_STATUS
17575   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17576   rm -f conftest.defines
17577   mv conftest.tail conftest.defines
17578 done
17579 rm -f conftest.defines
17580 echo '  fi # egrep' >>$CONFIG_STATUS
17581 echo >>$CONFIG_STATUS
17582
17583 # Break up conftest.undefs because some shells have a limit on the size
17584 # of here documents, and old seds have small limits too (100 cmds).
17585 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17586 rm -f conftest.tail
17587 while grep . conftest.undefs >/dev/null
17588 do
17589   # Write a limited-size here document to $tmp/undefs.sed.
17590   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17591   # Speed up: don't consider the non `#undef'
17592   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17593   # Work around the forget-to-reset-the-flag bug.
17594   echo 't clr' >>$CONFIG_STATUS
17595   echo ': clr' >>$CONFIG_STATUS
17596   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17597   echo 'CEOF
17598   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17599   rm -f $tmp/in
17600   mv $tmp/out $tmp/in
17601 ' >>$CONFIG_STATUS
17602   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17603   rm -f conftest.undefs
17604   mv conftest.tail conftest.undefs
17605 done
17606 rm -f conftest.undefs
17607
17608 cat >>$CONFIG_STATUS <<\_ACEOF
17609   # Let's still pretend it is `configure' which instantiates (i.e., don't
17610   # use $as_me), people would be surprised to read:
17611   #    /* config.h.  Generated by config.status.  */
17612   if test x"$ac_file" = x-; then
17613     echo "/* Generated by configure.  */" >$tmp/config.h
17614   else
17615     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17616   fi
17617   cat $tmp/in >>$tmp/config.h
17618   rm -f $tmp/in
17619   if test x"$ac_file" != x-; then
17620     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17621       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17622 echo "$as_me: $ac_file is unchanged" >&6;}
17623     else
17624       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17625 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17626          X"$ac_file" : 'X\(//\)[^/]' \| \
17627          X"$ac_file" : 'X\(//\)$' \| \
17628          X"$ac_file" : 'X\(/\)' \| \
17629          .     : '\(.\)' 2>/dev/null ||
17630 echo X"$ac_file" |
17631     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17632           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17633           /^X\(\/\/\)$/{ s//\1/; q; }
17634           /^X\(\/\).*/{ s//\1/; q; }
17635           s/.*/./; q'`
17636       { case "$ac_dir" in
17637   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17638   *)                      as_incr_dir=.;;
17639 esac
17640 as_dummy="$ac_dir"
17641 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17642   case $as_mkdir_dir in
17643     # Skip DOS drivespec
17644     ?:) as_incr_dir=$as_mkdir_dir ;;
17645     *)
17646       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17647       test -d "$as_incr_dir" ||
17648         mkdir "$as_incr_dir" ||
17649         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17650 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17651    { (exit 1); exit 1; }; }
17652     ;;
17653   esac
17654 done; }
17655
17656       rm -f $ac_file
17657       mv $tmp/config.h $ac_file
17658     fi
17659   else
17660     cat $tmp/config.h
17661     rm -f $tmp/config.h
17662   fi
17663   # Run the commands associated with the file.
17664   case $ac_file in
17665     src/include/pg_config.h )
17666 # Update timestamp for pg_config.h (see Makefile.global)
17667 echo >src/include/stamp-h
17668  ;;
17669   esac
17670 done
17671 _ACEOF
17672 cat >>$CONFIG_STATUS <<\_ACEOF
17673
17674 #
17675 # CONFIG_LINKS section.
17676 #
17677
17678 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17679   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17680   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17681
17682   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17683 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17684
17685   if test ! -r $srcdir/$ac_source; then
17686     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17687 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17688    { (exit 1); exit 1; }; }
17689   fi
17690   rm -f $ac_dest
17691
17692   # Make relative symlinks.
17693   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17694 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17695          X"$ac_dest" : 'X\(//\)[^/]' \| \
17696          X"$ac_dest" : 'X\(//\)$' \| \
17697          X"$ac_dest" : 'X\(/\)' \| \
17698          .     : '\(.\)' 2>/dev/null ||
17699 echo X"$ac_dest" |
17700     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17701           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17702           /^X\(\/\/\)$/{ s//\1/; q; }
17703           /^X\(\/\).*/{ s//\1/; q; }
17704           s/.*/./; q'`
17705   { case "$ac_dest_dir" in
17706   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17707   *)                      as_incr_dir=.;;
17708 esac
17709 as_dummy="$ac_dest_dir"
17710 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17711   case $as_mkdir_dir in
17712     # Skip DOS drivespec
17713     ?:) as_incr_dir=$as_mkdir_dir ;;
17714     *)
17715       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17716       test -d "$as_incr_dir" ||
17717         mkdir "$as_incr_dir" ||
17718         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
17719 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
17720    { (exit 1); exit 1; }; }
17721     ;;
17722   esac
17723 done; }
17724
17725   ac_builddir=.
17726
17727 if test "$ac_dest_dir" != .; then
17728   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17729   # A "../" for each directory in $ac_dir_suffix.
17730   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17731 else
17732   ac_dir_suffix= ac_top_builddir=
17733 fi
17734
17735 case $srcdir in
17736   .)  # No --srcdir option.  We are building in place.
17737     ac_srcdir=.
17738     if test -z "$ac_top_builddir"; then
17739        ac_top_srcdir=.
17740     else
17741        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17742     fi ;;
17743   [\\/]* | ?:[\\/]* )  # Absolute path.
17744     ac_srcdir=$srcdir$ac_dir_suffix;
17745     ac_top_srcdir=$srcdir ;;
17746   *) # Relative path.
17747     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17748     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17749 esac
17750 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
17751 # absolute.
17752 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
17753 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
17754 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
17755 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
17756
17757
17758   case $srcdir in
17759   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17760       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17761   esac
17762
17763   # Make a symlink if possible; otherwise try a hard link.
17764   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17765     ln $srcdir/$ac_source $ac_dest ||
17766     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
17767 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
17768    { (exit 1); exit 1; }; }
17769 done
17770 _ACEOF
17771
17772 cat >>$CONFIG_STATUS <<\_ACEOF
17773
17774 { (exit 0); exit 0; }
17775 _ACEOF
17776 chmod +x $CONFIG_STATUS
17777 ac_clean_files=$ac_clean_files_save
17778
17779
17780 # configure is writing to config.log, and then calls config.status.
17781 # config.status does its own redirection, appending to config.log.
17782 # Unfortunately, on DOS this fails, as config.log is still kept open
17783 # by configure, so config.status won't be able to write to it; its
17784 # output is simply discarded.  So we exec the FD to /dev/null,
17785 # effectively closing config.log, so it can be properly (re)opened and
17786 # appended to by config.status.  When coming back to configure, we
17787 # need to make the FD available again.
17788 if test "$no_create" != yes; then
17789   ac_cs_success=:
17790   exec 5>/dev/null
17791   $SHELL $CONFIG_STATUS || ac_cs_success=false
17792   exec 5>>config.log
17793   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17794   # would make configure fail if this is the last instruction.
17795   $ac_cs_success || { (exit 1); exit 1; }
17796 fi
17797