]> granicus.if.org Git - postgresql/blob - configure
Remove all traces of the ODBC driver, which is now on GBorg as the psqlodbc
[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.3devel.
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.3devel'
262 PACKAGE_STRING='PostgreSQL 7.3devel'
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.3devel 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.3devel:";;
834    esac
835   cat <<\_ACEOF
836
837 Optional Features:
838   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
839   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
840   --enable-integer-datetimes  enable 64-bit integer date/time support
841   --enable-recode         enable character set recode support
842   --enable-nls[=LANGUAGES]  enable Native Language Support
843   --disable-shared        do not build shared libraries
844   --disable-rpath         do not embed shared library search path in executables
845   --enable-debug          build with debugging symbols (-g)
846   --enable-depend         turn on automatic dependency tracking
847   --enable-cassert        enable assertion checks (for debugging)
848   --disable-largefile     omit support for large files
849
850 Optional Packages:
851   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
852   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
853
854   --with-includes=DIRS    look for additional header files in DIRS
855   --with-libraries=DIRS   look for additional libraries in DIRS
856   --with-libs=DIRS        alternative spelling of --with-libraries
857   --with-pgport=PORTNUM   change default port number 5432
858   --with-maxbackends=N    set default maximum number of connections 32
859   --with-tcl              build Tcl and Tk interfaces
860   --without-tk            do not build Tk interfaces if Tcl is enabled
861   --with-tclconfig=DIR    tclConfig.sh and tkConfig.sh are in DIR
862   --with-tkconfig=DIR     tkConfig.sh is in DIR
863   --with-perl             build Perl interface and PL/Perl
864   --with-python           build Python interface module
865   --with-java             build JDBC interface and Java tools
866   --with-krb4[=DIR]       build with Kerberos 4 support [/usr/athena]
867   --with-krb5[=DIR]       build with Kerberos 5 support [/usr/athena]
868   --with-krb-srvnam=NAME  name of the service principal in Kerberos postgres
869   --with-pam              build with PAM support
870   --with-openssl[=DIR]    build with OpenSSL support [/usr/local/ssl]
871   --without-readline      do not use Readline
872   --without-zlib          do not use Zlib
873   --with-gnu-ld           assume the C compiler uses GNU ld default=no
874
875 Some influential environment variables:
876   CC          C compiler command
877   CFLAGS      C compiler flags
878   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
879               nonstandard directory <lib dir>
880   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
881               headers in a nonstandard directory <include dir>
882   CPP         C preprocessor
883   DOCBOOKSTYLE
884               location of DocBook stylesheets
885
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
888
889 Report bugs to <pgsql-bugs@postgresql.org>.
890 _ACEOF
891 fi
892
893 if test "$ac_init_help" = "recursive"; then
894   # If there are subdirs, report their specific --help.
895   ac_popdir=`pwd`
896   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897     test -d $ac_dir || continue
898     ac_builddir=.
899
900 if test "$ac_dir" != .; then
901   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902   # A "../" for each directory in $ac_dir_suffix.
903   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904 else
905   ac_dir_suffix= ac_top_builddir=
906 fi
907
908 case $srcdir in
909   .)  # No --srcdir option.  We are building in place.
910     ac_srcdir=.
911     if test -z "$ac_top_builddir"; then
912        ac_top_srcdir=.
913     else
914        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915     fi ;;
916   [\\/]* | ?:[\\/]* )  # Absolute path.
917     ac_srcdir=$srcdir$ac_dir_suffix;
918     ac_top_srcdir=$srcdir ;;
919   *) # Relative path.
920     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921     ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 esac
923 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
924 # absolute.
925 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
926 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
927 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
928 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
929
930     cd $ac_dir
931     # Check for guested configure; otherwise get Cygnus style configure.
932     if test -f $ac_srcdir/configure.gnu; then
933       echo
934       $SHELL $ac_srcdir/configure.gnu  --help=recursive
935     elif test -f $ac_srcdir/configure; then
936       echo
937       $SHELL $ac_srcdir/configure  --help=recursive
938     elif test -f $ac_srcdir/configure.ac ||
939            test -f $ac_srcdir/configure.in; then
940       echo
941       $ac_configure --help
942     else
943       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
944     fi
945     cd $ac_popdir
946   done
947 fi
948
949 test -n "$ac_init_help" && exit 0
950 if $ac_init_version; then
951   cat <<\_ACEOF
952 PostgreSQL configure 7.3devel
953 generated by GNU Autoconf 2.53
954
955 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
956 Free Software Foundation, Inc.
957 This configure script is free software; the Free Software Foundation
958 gives unlimited permission to copy, distribute and modify it.
959
960 Copyright 2002 PostgreSQL Global Development Group
961 _ACEOF
962   exit 0
963 fi
964 exec 5>config.log
965 cat >&5 <<_ACEOF
966 This file contains any messages produced by compilers while
967 running configure, to aid debugging if configure makes a mistake.
968
969 It was created by PostgreSQL $as_me 7.3devel, which was
970 generated by GNU Autoconf 2.53.  Invocation command line was
971
972   $ $0 $@
973
974 _ACEOF
975 {
976 cat <<_ASUNAME
977 ## --------- ##
978 ## Platform. ##
979 ## --------- ##
980
981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
986
987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
988 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
989
990 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
991 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
993 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
994 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
995 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
996 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
997
998 _ASUNAME
999
1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1001 for as_dir in $PATH
1002 do
1003   IFS=$as_save_IFS
1004   test -z "$as_dir" && as_dir=.
1005   echo "PATH: $as_dir"
1006 done
1007
1008 } >&5
1009
1010 cat >&5 <<_ACEOF
1011
1012
1013 ## ----------- ##
1014 ## Core tests. ##
1015 ## ----------- ##
1016
1017 _ACEOF
1018
1019
1020 # Keep a trace of the command line.
1021 # Strip out --no-create and --no-recursion so they do not pile up.
1022 # Also quote any args containing shell meta-characters.
1023 ac_configure_args=
1024 ac_sep=
1025 for ac_arg
1026 do
1027   case $ac_arg in
1028   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029   | --no-cr | --no-c | -n ) continue ;;
1030   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032     continue ;;
1033   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1034     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1035   esac
1036   case " $ac_configure_args " in
1037     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1038     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1039        ac_sep=" " ;;
1040   esac
1041   # Get rid of the leading space.
1042 done
1043
1044 # When interrupted or exit'd, cleanup temporary files, and complete
1045 # config.log.  We remove comments because anyway the quotes in there
1046 # would cause problems or look ugly.
1047 # WARNING: Be sure not to use single quotes in there, as some shells,
1048 # such as our DU 5.0 friend, will then `close' the trap.
1049 trap 'exit_status=$?
1050   # Save into config.log some information that might help in debugging.
1051   {
1052     echo
1053     cat <<\_ASBOX
1054 ## ---------------- ##
1055 ## Cache variables. ##
1056 ## ---------------- ##
1057 _ASBOX
1058     echo
1059     # The following way of writing the cache mishandles newlines in values,
1060 {
1061   (set) 2>&1 |
1062     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1063     *ac_space=\ *)
1064       sed -n \
1065         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1066           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1067       ;;
1068     *)
1069       sed -n \
1070         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1071       ;;
1072     esac;
1073 }
1074     echo
1075     if test -s confdefs.h; then
1076       cat <<\_ASBOX
1077 ## ----------- ##
1078 ## confdefs.h. ##
1079 ## ----------- ##
1080 _ASBOX
1081       echo
1082       sed "/^$/d" confdefs.h
1083       echo
1084     fi
1085     test "$ac_signal" != 0 &&
1086       echo "$as_me: caught signal $ac_signal"
1087     echo "$as_me: exit $exit_status"
1088   } >&5
1089   rm -f core core.* *.core &&
1090   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1091     exit $exit_status
1092      ' 0
1093 for ac_signal in 1 2 13 15; do
1094   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1095 done
1096 ac_signal=0
1097
1098 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1099 rm -rf conftest* confdefs.h
1100 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1101 echo >confdefs.h
1102
1103 # Predefined preprocessor variables.
1104
1105 cat >>confdefs.h <<_ACEOF
1106 #define PACKAGE_NAME "$PACKAGE_NAME"
1107 _ACEOF
1108
1109
1110 cat >>confdefs.h <<_ACEOF
1111 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1112 _ACEOF
1113
1114
1115 cat >>confdefs.h <<_ACEOF
1116 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1117 _ACEOF
1118
1119
1120 cat >>confdefs.h <<_ACEOF
1121 #define PACKAGE_STRING "$PACKAGE_STRING"
1122 _ACEOF
1123
1124
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1127 _ACEOF
1128
1129
1130 # Let the site file select an alternate cache file if it wants to.
1131 # Prefer explicitly selected file to automatically selected ones.
1132 if test -z "$CONFIG_SITE"; then
1133   if test "x$prefix" != xNONE; then
1134     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1135   else
1136     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1137   fi
1138 fi
1139 for ac_site_file in $CONFIG_SITE; do
1140   if test -r "$ac_site_file"; then
1141     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1142 echo "$as_me: loading site script $ac_site_file" >&6;}
1143     sed 's/^/| /' "$ac_site_file" >&5
1144     . "$ac_site_file"
1145   fi
1146 done
1147
1148 if test -r "$cache_file"; then
1149   # Some versions of bash will fail to source /dev/null (special
1150   # files actually), so we avoid doing that.
1151   if test -f "$cache_file"; then
1152     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1153 echo "$as_me: loading cache $cache_file" >&6;}
1154     case $cache_file in
1155       [\\/]* | ?:[\\/]* ) . $cache_file;;
1156       *)                      . ./$cache_file;;
1157     esac
1158   fi
1159 else
1160   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1161 echo "$as_me: creating cache $cache_file" >&6;}
1162   >$cache_file
1163 fi
1164
1165 # Check that the precious variables saved in the cache have kept the same
1166 # value.
1167 ac_cache_corrupted=false
1168 for ac_var in `(set) 2>&1 |
1169                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1170   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1171   eval ac_new_set=\$ac_env_${ac_var}_set
1172   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1173   eval ac_new_val="\$ac_env_${ac_var}_value"
1174   case $ac_old_set,$ac_new_set in
1175     set,)
1176       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1177 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1178       ac_cache_corrupted=: ;;
1179     ,set)
1180       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1181 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1182       ac_cache_corrupted=: ;;
1183     ,);;
1184     *)
1185       if test "x$ac_old_val" != "x$ac_new_val"; then
1186         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1187 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1188         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1189 echo "$as_me:   former value:  $ac_old_val" >&2;}
1190         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1191 echo "$as_me:   current value: $ac_new_val" >&2;}
1192         ac_cache_corrupted=:
1193       fi;;
1194   esac
1195   # Pass precious variables to config.status.
1196   if test "$ac_new_set" = set; then
1197     case $ac_new_val in
1198     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1199       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1200     *) ac_arg=$ac_var=$ac_new_val ;;
1201     esac
1202     case " $ac_configure_args " in
1203       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1204       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1205     esac
1206   fi
1207 done
1208 if $ac_cache_corrupted; then
1209   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1210 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1211   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1212 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1213    { (exit 1); exit 1; }; }
1214 fi
1215
1216 ac_ext=c
1217 ac_cpp='$CPP $CPPFLAGS'
1218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254 ac_aux_dir=
1255 for ac_dir in config $srcdir/config; do
1256   if test -f $ac_dir/install-sh; then
1257     ac_aux_dir=$ac_dir
1258     ac_install_sh="$ac_aux_dir/install-sh -c"
1259     break
1260   elif test -f $ac_dir/install.sh; then
1261     ac_aux_dir=$ac_dir
1262     ac_install_sh="$ac_aux_dir/install.sh -c"
1263     break
1264   elif test -f $ac_dir/shtool; then
1265     ac_aux_dir=$ac_dir
1266     ac_install_sh="$ac_aux_dir/shtool install -c"
1267     break
1268   fi
1269 done
1270 if test -z "$ac_aux_dir"; then
1271   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1272 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1273    { (exit 1); exit 1; }; }
1274 fi
1275 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1276 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1277 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1278
1279
1280 configure_args=$ac_configure_args
1281
1282
1283
1284 cat >>confdefs.h <<_ACEOF
1285 #define PG_VERSION "$PACKAGE_VERSION"
1286 _ACEOF
1287
1288
1289 # Make sure we can run config.sub.
1290 $ac_config_sub sun4 >/dev/null 2>&1 ||
1291   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1292 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1293    { (exit 1); exit 1; }; }
1294
1295 echo "$as_me:$LINENO: checking build system type" >&5
1296 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1297 if test "${ac_cv_build+set}" = set; then
1298   echo $ECHO_N "(cached) $ECHO_C" >&6
1299 else
1300   ac_cv_build_alias=$build_alias
1301 test -z "$ac_cv_build_alias" &&
1302   ac_cv_build_alias=`$ac_config_guess`
1303 test -z "$ac_cv_build_alias" &&
1304   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1305 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1306    { (exit 1); exit 1; }; }
1307 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1308   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1309 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1310    { (exit 1); exit 1; }; }
1311
1312 fi
1313 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1314 echo "${ECHO_T}$ac_cv_build" >&6
1315 build=$ac_cv_build
1316 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1317 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1318 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1319
1320
1321 echo "$as_me:$LINENO: checking host system type" >&5
1322 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1323 if test "${ac_cv_host+set}" = set; then
1324   echo $ECHO_N "(cached) $ECHO_C" >&6
1325 else
1326   ac_cv_host_alias=$host_alias
1327 test -z "$ac_cv_host_alias" &&
1328   ac_cv_host_alias=$ac_cv_build_alias
1329 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1330   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1331 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1332    { (exit 1); exit 1; }; }
1333
1334 fi
1335 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1336 echo "${ECHO_T}$ac_cv_host" >&6
1337 host=$ac_cv_host
1338 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1339 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1340 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1341
1342
1343
1344 template=
1345 echo "$as_me:$LINENO: checking which template to use" >&5
1346 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1347
1348
1349
1350
1351 # Check whether --with-template or --without-template was given.
1352 if test "${with_template+set}" = set; then
1353   withval="$with_template"
1354
1355   case $withval in
1356     yes)
1357       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1358 echo "$as_me: error: argument required for --with-template option" >&2;}
1359    { (exit 1); exit 1; }; }
1360       ;;
1361     no)
1362       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1363 echo "$as_me: error: argument required for --with-template option" >&2;}
1364    { (exit 1); exit 1; }; }
1365       ;;
1366     *)
1367
1368   case $withval in
1369     list)   echo; ls "$srcdir/src/template"; exit;;
1370     *)      if test -f "$srcdir/src/template/$with_template" ; then
1371               template=$withval
1372             else
1373               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1374 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1375    { (exit 1); exit 1; }; }
1376             fi;;
1377   esac
1378
1379       ;;
1380   esac
1381
1382 else
1383
1384   # --with-template not given
1385
1386 case $host_os in
1387      aix*) template=aix ;;
1388     beos*) template=beos ;;
1389     bsdi*) template=bsdi ;;
1390   cygwin*) template=win ;;
1391   darwin*) template=darwin ;;
1392     dgux*) template=dgux ;;
1393  freebsd*) template=freebsd ;;
1394     hpux*) template=hpux ;;
1395     irix*) template=irix5 ;;
1396    linux*) template=linux ;;
1397   netbsd*) template=netbsd ;;
1398 nextstep*) template=nextstep ;;
1399  openbsd*) template=openbsd ;;
1400      osf*) template=osf ;;
1401      qnx*) template=qnx4 ;;
1402      sco*) template=sco ;;
1403  solaris*) template=solaris ;;
1404    sunos*) template=sunos4 ;;
1405  sysv4.2*)
1406         case $host_vendor in
1407           univel) template=univel ;;
1408         esac ;;
1409    sysv4*) template=svr4 ;;
1410    sysv5*) template=unixware ;;
1411   ultrix*) template=ultrix4 ;;
1412 esac
1413
1414   if test x"$template" = x"" ; then
1415     { { echo "$as_me:$LINENO: error:
1416 *******************************************************************
1417 PostgreSQL has apparently not been ported to your platform yet.
1418 To try a manual configuration, look into the src/template directory
1419 for a similar platform and use the '--with-template=' option.
1420
1421 Please also contact <pgsql-ports@postgresql.org> to see about
1422 rectifying this.  Include the above 'checking host system type...'
1423 line.
1424 *******************************************************************
1425 " >&5
1426 echo "$as_me: error:
1427 *******************************************************************
1428 PostgreSQL has apparently not been ported to your platform yet.
1429 To try a manual configuration, look into the src/template directory
1430 for a similar platform and use the '--with-template=' option.
1431
1432 Please also contact <pgsql-ports@postgresql.org> to see about
1433 rectifying this.  Include the above 'checking host system type...'
1434 line.
1435 *******************************************************************
1436 " >&2;}
1437    { (exit 1); exit 1; }; }
1438   fi
1439
1440
1441 fi;
1442
1443
1444 echo "$as_me:$LINENO: result: $template" >&5
1445 echo "${ECHO_T}$template" >&6
1446
1447 PORTNAME=$template
1448
1449
1450 # Pick right test-and-set (TAS) code.  Most platforms have inline
1451 # assembler code in src/include/storage/s_lock.h, so we just use
1452 # a dummy file here.
1453 case $host in
1454   *-*-hpux*)        need_tas=yes; tas_file=hpux.s ;;
1455   sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1456   i?86-*-solaris*)   need_tas=yes; tas_file=solaris_i386.s ;;
1457   *)                need_tas=no;  tas_file=dummy.s ;;
1458 esac
1459 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1460
1461
1462 if test "$need_tas" = yes ; then
1463   TAS=tas.o
1464 fi
1465
1466
1467
1468
1469 ##
1470 ## Command line options
1471 ##
1472
1473
1474 #
1475 # Add non-standard directories to the include path
1476 #
1477
1478
1479
1480 # Check whether --with-includes or --without-includes was given.
1481 if test "${with_includes+set}" = set; then
1482   withval="$with_includes"
1483
1484   case $withval in
1485     yes)
1486       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1487 echo "$as_me: error: argument required for --with-includes option" >&2;}
1488    { (exit 1); exit 1; }; }
1489       ;;
1490     no)
1491       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1492 echo "$as_me: error: argument required for --with-includes option" >&2;}
1493    { (exit 1); exit 1; }; }
1494       ;;
1495     *)
1496
1497       ;;
1498   esac
1499
1500 fi;
1501
1502
1503
1504 #
1505 # Add non-standard directories to the library search path
1506 #
1507
1508
1509
1510 # Check whether --with-libraries or --without-libraries was given.
1511 if test "${with_libraries+set}" = set; then
1512   withval="$with_libraries"
1513
1514   case $withval in
1515     yes)
1516       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1517 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1518    { (exit 1); exit 1; }; }
1519       ;;
1520     no)
1521       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1522 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1523    { (exit 1); exit 1; }; }
1524       ;;
1525     *)
1526       LIBRARY_DIRS=$withval
1527       ;;
1528   esac
1529
1530 fi;
1531
1532
1533
1534
1535
1536 # Check whether --with-libs or --without-libs was given.
1537 if test "${with_libs+set}" = set; then
1538   withval="$with_libs"
1539
1540   case $withval in
1541     yes)
1542       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1543 echo "$as_me: error: argument required for --with-libs option" >&2;}
1544    { (exit 1); exit 1; }; }
1545       ;;
1546     no)
1547       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1548 echo "$as_me: error: argument required for --with-libs option" >&2;}
1549    { (exit 1); exit 1; }; }
1550       ;;
1551     *)
1552       LIBRARY_DIRS=$withval
1553       ;;
1554   esac
1555
1556 fi;
1557
1558
1559
1560 #
1561 # 64-bit integer date/time storage (--enable-integer-datetimes)
1562 #
1563 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1564 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1565
1566
1567 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1568 if test "${enable_integer_datetimes+set}" = set; then
1569   enableval="$enable_integer_datetimes"
1570
1571   case $enableval in
1572     yes)
1573
1574 cat >>confdefs.h <<\_ACEOF
1575 #define USE_INTEGER_DATETIMES 1
1576 _ACEOF
1577
1578       ;;
1579     no)
1580       :
1581       ;;
1582     *)
1583       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1584 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1585    { (exit 1); exit 1; }; }
1586       ;;
1587   esac
1588
1589 else
1590   enable_integer_datetimes=no
1591
1592 fi;
1593
1594 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1595 echo "${ECHO_T}$enable_integer_datetimes" >&6
1596
1597
1598 # Character set recode (--enable-recode)
1599 #
1600 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1601 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1602
1603
1604 # Check whether --enable-recode or --disable-recode was given.
1605 if test "${enable_recode+set}" = set; then
1606   enableval="$enable_recode"
1607
1608   case $enableval in
1609     yes)
1610
1611 cat >>confdefs.h <<\_ACEOF
1612 #define CYR_RECODE 1
1613 _ACEOF
1614
1615       ;;
1616     no)
1617       :
1618       ;;
1619     *)
1620       { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1621 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1622    { (exit 1); exit 1; }; }
1623       ;;
1624   esac
1625
1626 else
1627   enable_recode=no
1628
1629 fi;
1630
1631 echo "$as_me:$LINENO: result: $enable_recode" >&5
1632 echo "${ECHO_T}$enable_recode" >&6
1633
1634
1635 #
1636 # Multibyte support
1637 #
1638 MULTIBYTE=SQL_ASCII
1639
1640 cat >>confdefs.h <<\_ACEOF
1641 #define MULTIBYTE 1
1642 _ACEOF
1643
1644
1645
1646 #
1647 # NLS
1648 #
1649 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1650 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1651
1652
1653 # Check whether --enable-nls or --disable-nls was given.
1654 if test "${enable_nls+set}" = set; then
1655   enableval="$enable_nls"
1656
1657   case $enableval in
1658     yes)
1659       :
1660       ;;
1661     no)
1662       :
1663       ;;
1664     *)
1665       enable_nls=yes
1666 WANTED_LANGUAGES=$enableval
1667       ;;
1668   esac
1669
1670 else
1671   enable_nls=no
1672 fi;
1673
1674
1675 if test "$enable_nls" = yes; then
1676
1677 cat >>confdefs.h <<\_ACEOF
1678 #define ENABLE_NLS 1
1679 _ACEOF
1680
1681 fi
1682
1683 echo "$as_me:$LINENO: result: $enable_nls" >&5
1684 echo "${ECHO_T}$enable_nls" >&6
1685
1686
1687
1688 #
1689 # Default port number (--with-pgport), default 5432
1690 #
1691 echo "$as_me:$LINENO: checking for default port number" >&5
1692 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1693
1694
1695
1696 # Check whether --with-pgport or --without-pgport was given.
1697 if test "${with_pgport+set}" = set; then
1698   withval="$with_pgport"
1699
1700   case $withval in
1701     yes)
1702       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1703 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1704    { (exit 1); exit 1; }; }
1705       ;;
1706     no)
1707       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1708 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1709    { (exit 1); exit 1; }; }
1710       ;;
1711     *)
1712       default_port=$withval
1713       ;;
1714   esac
1715
1716 else
1717   default_port=5432
1718 fi;
1719
1720 echo "$as_me:$LINENO: result: $default_port" >&5
1721 echo "${ECHO_T}$default_port" >&6
1722 # Need both of these because some places want an integer and some a string
1723
1724 cat >>confdefs.h <<_ACEOF
1725 #define DEF_PGPORT ${default_port}
1726 _ACEOF
1727
1728
1729 cat >>confdefs.h <<_ACEOF
1730 #define DEF_PGPORT_STR "${default_port}"
1731 _ACEOF
1732
1733
1734
1735 #
1736 # Maximum number of allowed connections (--with-maxbackends), default 32
1737 #
1738 echo "$as_me:$LINENO: checking for default soft limit on number of connections" >&5
1739 echo $ECHO_N "checking for default soft limit on number of connections... $ECHO_C" >&6
1740
1741
1742
1743 # Check whether --with-maxbackends or --without-maxbackends was given.
1744 if test "${with_maxbackends+set}" = set; then
1745   withval="$with_maxbackends"
1746
1747   case $withval in
1748     yes)
1749       { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1750 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1751    { (exit 1); exit 1; }; }
1752       ;;
1753     no)
1754       { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1755 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1756    { (exit 1); exit 1; }; }
1757       ;;
1758     *)
1759
1760       ;;
1761   esac
1762
1763 else
1764   with_maxbackends=32
1765 fi;
1766
1767 echo "$as_me:$LINENO: result: $with_maxbackends" >&5
1768 echo "${ECHO_T}$with_maxbackends" >&6
1769
1770 cat >>confdefs.h <<_ACEOF
1771 #define DEF_MAXBACKENDS $with_maxbackends
1772 _ACEOF
1773
1774
1775
1776 #
1777 # Option to disable shared libraries
1778 #
1779
1780
1781 # Check whether --enable-shared or --disable-shared was given.
1782 if test "${enable_shared+set}" = set; then
1783   enableval="$enable_shared"
1784
1785   case $enableval in
1786     yes)
1787       :
1788       ;;
1789     no)
1790       :
1791       ;;
1792     *)
1793       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1794 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1795    { (exit 1); exit 1; }; }
1796       ;;
1797   esac
1798
1799 else
1800   enable_shared=yes
1801
1802 fi;
1803
1804
1805
1806 #
1807 # '-rpath'-like feature can be disabled
1808 #
1809
1810
1811 # Check whether --enable-rpath or --disable-rpath was given.
1812 if test "${enable_rpath+set}" = set; then
1813   enableval="$enable_rpath"
1814
1815   case $enableval in
1816     yes)
1817       :
1818       ;;
1819     no)
1820       :
1821       ;;
1822     *)
1823       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1824 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1825    { (exit 1); exit 1; }; }
1826       ;;
1827   esac
1828
1829 else
1830   enable_rpath=yes
1831
1832 fi;
1833
1834
1835
1836
1837 #
1838 # --enable-debug adds -g to compiler flags
1839 #
1840
1841
1842 # Check whether --enable-debug or --disable-debug was given.
1843 if test "${enable_debug+set}" = set; then
1844   enableval="$enable_debug"
1845
1846   case $enableval in
1847     yes)
1848       :
1849       ;;
1850     no)
1851       :
1852       ;;
1853     *)
1854       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1855 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1856    { (exit 1); exit 1; }; }
1857       ;;
1858   esac
1859
1860 else
1861   enable_debug=no
1862
1863 fi;
1864
1865
1866
1867 #
1868 # C compiler
1869 #
1870
1871 # For historical reasons you can also use --with-CC to specify the C compiler
1872 # to use, although the standard way to do this is to set the CC environment
1873 # variable.
1874
1875
1876
1877 # Check whether --with-CC or --without-CC was given.
1878 if test "${with_CC+set}" = set; then
1879   withval="$with_CC"
1880
1881   case $withval in
1882     yes)
1883       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1884 echo "$as_me: error: argument required for --with-CC option" >&2;}
1885    { (exit 1); exit 1; }; }
1886       ;;
1887     no)
1888       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1889 echo "$as_me: error: argument required for --with-CC option" >&2;}
1890    { (exit 1); exit 1; }; }
1891       ;;
1892     *)
1893       CC=$with_CC
1894       ;;
1895   esac
1896
1897 fi;
1898
1899
1900 case $template in
1901   aix) pgac_cc_list="gcc xlc";;
1902  irix) pgac_cc_list="cc";; # no gcc
1903     *) pgac_cc_list="gcc cc";;
1904 esac
1905
1906 ac_ext=c
1907 ac_cpp='$CPP $CPPFLAGS'
1908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1911 if test -n "$ac_tool_prefix"; then
1912   for ac_prog in $pgac_cc_list
1913   do
1914     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1915 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1916 echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918 if test "${ac_cv_prog_CC+set}" = set; then
1919   echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921   if test -n "$CC"; then
1922   ac_cv_prog_CC="$CC" # Let the user override the test.
1923 else
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 for as_dir in $PATH
1926 do
1927   IFS=$as_save_IFS
1928   test -z "$as_dir" && as_dir=.
1929   for ac_exec_ext in '' $ac_executable_extensions; do
1930   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933     break 2
1934   fi
1935 done
1936 done
1937
1938 fi
1939 fi
1940 CC=$ac_cv_prog_CC
1941 if test -n "$CC"; then
1942   echo "$as_me:$LINENO: result: $CC" >&5
1943 echo "${ECHO_T}$CC" >&6
1944 else
1945   echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1947 fi
1948
1949     test -n "$CC" && break
1950   done
1951 fi
1952 if test -z "$CC"; then
1953   ac_ct_CC=$CC
1954   for ac_prog in $pgac_cc_list
1955 do
1956   # Extract the first word of "$ac_prog", so it can be a program name with args.
1957 set dummy $ac_prog; ac_word=$2
1958 echo "$as_me:$LINENO: checking for $ac_word" >&5
1959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1960 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1961   echo $ECHO_N "(cached) $ECHO_C" >&6
1962 else
1963   if test -n "$ac_ct_CC"; then
1964   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1965 else
1966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 for as_dir in $PATH
1968 do
1969   IFS=$as_save_IFS
1970   test -z "$as_dir" && as_dir=.
1971   for ac_exec_ext in '' $ac_executable_extensions; do
1972   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1973     ac_cv_prog_ac_ct_CC="$ac_prog"
1974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975     break 2
1976   fi
1977 done
1978 done
1979
1980 fi
1981 fi
1982 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1983 if test -n "$ac_ct_CC"; then
1984   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1985 echo "${ECHO_T}$ac_ct_CC" >&6
1986 else
1987   echo "$as_me:$LINENO: result: no" >&5
1988 echo "${ECHO_T}no" >&6
1989 fi
1990
1991   test -n "$ac_ct_CC" && break
1992 done
1993
1994   CC=$ac_ct_CC
1995 fi
1996
1997
1998 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1999 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2000    { (exit 1); exit 1; }; }
2001
2002 # Provide some information about the compiler.
2003 echo "$as_me:$LINENO:" \
2004      "checking for C compiler version" >&5
2005 ac_compiler=`set X $ac_compile; echo $2`
2006 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2007   (eval $ac_compiler --version </dev/null >&5) 2>&5
2008   ac_status=$?
2009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010   (exit $ac_status); }
2011 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2012   (eval $ac_compiler -v </dev/null >&5) 2>&5
2013   ac_status=$?
2014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015   (exit $ac_status); }
2016 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2017   (eval $ac_compiler -V </dev/null >&5) 2>&5
2018   ac_status=$?
2019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020   (exit $ac_status); }
2021
2022 cat >conftest.$ac_ext <<_ACEOF
2023 #line $LINENO "configure"
2024 #include "confdefs.h"
2025
2026 #ifdef F77_DUMMY_MAIN
2027 #  ifdef __cplusplus
2028      extern "C"
2029 #  endif
2030    int F77_DUMMY_MAIN() { return 1; }
2031 #endif
2032 int
2033 main ()
2034 {
2035
2036   ;
2037   return 0;
2038 }
2039 _ACEOF
2040 ac_clean_files_save=$ac_clean_files
2041 ac_clean_files="$ac_clean_files a.out a.exe"
2042 # Try to create an executable without -o first, disregard a.out.
2043 # It will help us diagnose broken compilers, and finding out an intuition
2044 # of exeext.
2045 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2046 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2047 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2048 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2049   (eval $ac_link_default) 2>&5
2050   ac_status=$?
2051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052   (exit $ac_status); }; then
2053   # Find the output, starting from the most likely.  This scheme is
2054 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2055 # resort.
2056
2057 # Be careful to initialize this variable, since it used to be cached.
2058 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2059 ac_cv_exeext=
2060 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2061                 ls a.out conftest 2>/dev/null;
2062                 ls a.* conftest.* 2>/dev/null`; do
2063   case $ac_file in
2064     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2065     a.out ) # We found the default executable, but exeext='' is most
2066             # certainly right.
2067             break;;
2068     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2069           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2070           export ac_cv_exeext
2071           break;;
2072     * ) break;;
2073   esac
2074 done
2075 else
2076   echo "$as_me: failed program was:" >&5
2077 cat conftest.$ac_ext >&5
2078 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2079 echo "$as_me: error: C compiler cannot create executables" >&2;}
2080    { (exit 77); exit 77; }; }
2081 fi
2082
2083 ac_exeext=$ac_cv_exeext
2084 echo "$as_me:$LINENO: result: $ac_file" >&5
2085 echo "${ECHO_T}$ac_file" >&6
2086
2087 # Check the compiler produces executables we can run.  If not, either
2088 # the compiler is broken, or we cross compile.
2089 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2090 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2091 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2092 # If not cross compiling, check that we can run a simple program.
2093 if test "$cross_compiling" != yes; then
2094   if { ac_try='./$ac_file'
2095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096   (eval $ac_try) 2>&5
2097   ac_status=$?
2098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099   (exit $ac_status); }; }; then
2100     cross_compiling=no
2101   else
2102     if test "$cross_compiling" = maybe; then
2103         cross_compiling=yes
2104     else
2105         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2106 If you meant to cross compile, use \`--host'." >&5
2107 echo "$as_me: error: cannot run C compiled programs.
2108 If you meant to cross compile, use \`--host'." >&2;}
2109    { (exit 1); exit 1; }; }
2110     fi
2111   fi
2112 fi
2113 echo "$as_me:$LINENO: result: yes" >&5
2114 echo "${ECHO_T}yes" >&6
2115
2116 rm -f a.out a.exe conftest$ac_cv_exeext
2117 ac_clean_files=$ac_clean_files_save
2118 # Check the compiler produces executables we can run.  If not, either
2119 # the compiler is broken, or we cross compile.
2120 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2121 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2122 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2123 echo "${ECHO_T}$cross_compiling" >&6
2124
2125 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2126 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2128   (eval $ac_link) 2>&5
2129   ac_status=$?
2130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131   (exit $ac_status); }; then
2132   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2133 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2134 # work properly (i.e., refer to `conftest.exe'), while it won't with
2135 # `rm'.
2136 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2137   case $ac_file in
2138     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2139     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2140           export ac_cv_exeext
2141           break;;
2142     * ) break;;
2143   esac
2144 done
2145 else
2146   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2147 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2148    { (exit 1); exit 1; }; }
2149 fi
2150
2151 rm -f conftest$ac_cv_exeext
2152 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2153 echo "${ECHO_T}$ac_cv_exeext" >&6
2154
2155 rm -f conftest.$ac_ext
2156 EXEEXT=$ac_cv_exeext
2157 ac_exeext=$EXEEXT
2158 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2159 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2160 if test "${ac_cv_objext+set}" = set; then
2161   echo $ECHO_N "(cached) $ECHO_C" >&6
2162 else
2163   cat >conftest.$ac_ext <<_ACEOF
2164 #line $LINENO "configure"
2165 #include "confdefs.h"
2166
2167 #ifdef F77_DUMMY_MAIN
2168 #  ifdef __cplusplus
2169      extern "C"
2170 #  endif
2171    int F77_DUMMY_MAIN() { return 1; }
2172 #endif
2173 int
2174 main ()
2175 {
2176
2177   ;
2178   return 0;
2179 }
2180 _ACEOF
2181 rm -f conftest.o conftest.obj
2182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2183   (eval $ac_compile) 2>&5
2184   ac_status=$?
2185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186   (exit $ac_status); }; then
2187   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2188   case $ac_file in
2189     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2190     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2191        break;;
2192   esac
2193 done
2194 else
2195   echo "$as_me: failed program was:" >&5
2196 cat conftest.$ac_ext >&5
2197 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2198 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2199    { (exit 1); exit 1; }; }
2200 fi
2201
2202 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2203 fi
2204 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2205 echo "${ECHO_T}$ac_cv_objext" >&6
2206 OBJEXT=$ac_cv_objext
2207 ac_objext=$OBJEXT
2208 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2209 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2210 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2211   echo $ECHO_N "(cached) $ECHO_C" >&6
2212 else
2213   cat >conftest.$ac_ext <<_ACEOF
2214 #line $LINENO "configure"
2215 #include "confdefs.h"
2216
2217 #ifdef F77_DUMMY_MAIN
2218 #  ifdef __cplusplus
2219      extern "C"
2220 #  endif
2221    int F77_DUMMY_MAIN() { return 1; }
2222 #endif
2223 int
2224 main ()
2225 {
2226 #ifndef __GNUC__
2227        choke me
2228 #endif
2229
2230   ;
2231   return 0;
2232 }
2233 _ACEOF
2234 rm -f conftest.$ac_objext
2235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2236   (eval $ac_compile) 2>&5
2237   ac_status=$?
2238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239   (exit $ac_status); } &&
2240          { ac_try='test -s conftest.$ac_objext'
2241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242   (eval $ac_try) 2>&5
2243   ac_status=$?
2244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245   (exit $ac_status); }; }; then
2246   ac_compiler_gnu=yes
2247 else
2248   echo "$as_me: failed program was:" >&5
2249 cat conftest.$ac_ext >&5
2250 ac_compiler_gnu=no
2251 fi
2252 rm -f conftest.$ac_objext conftest.$ac_ext
2253 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2254
2255 fi
2256 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2257 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2258 GCC=`test $ac_compiler_gnu = yes && echo yes`
2259 ac_test_CFLAGS=${CFLAGS+set}
2260 ac_save_CFLAGS=$CFLAGS
2261 CFLAGS="-g"
2262 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2263 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2264 if test "${ac_cv_prog_cc_g+set}" = set; then
2265   echo $ECHO_N "(cached) $ECHO_C" >&6
2266 else
2267   cat >conftest.$ac_ext <<_ACEOF
2268 #line $LINENO "configure"
2269 #include "confdefs.h"
2270
2271 #ifdef F77_DUMMY_MAIN
2272 #  ifdef __cplusplus
2273      extern "C"
2274 #  endif
2275    int F77_DUMMY_MAIN() { return 1; }
2276 #endif
2277 int
2278 main ()
2279 {
2280
2281   ;
2282   return 0;
2283 }
2284 _ACEOF
2285 rm -f conftest.$ac_objext
2286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287   (eval $ac_compile) 2>&5
2288   ac_status=$?
2289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290   (exit $ac_status); } &&
2291          { ac_try='test -s conftest.$ac_objext'
2292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293   (eval $ac_try) 2>&5
2294   ac_status=$?
2295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296   (exit $ac_status); }; }; then
2297   ac_cv_prog_cc_g=yes
2298 else
2299   echo "$as_me: failed program was:" >&5
2300 cat conftest.$ac_ext >&5
2301 ac_cv_prog_cc_g=no
2302 fi
2303 rm -f conftest.$ac_objext conftest.$ac_ext
2304 fi
2305 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2306 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2307 if test "$ac_test_CFLAGS" = set; then
2308   CFLAGS=$ac_save_CFLAGS
2309 elif test $ac_cv_prog_cc_g = yes; then
2310   if test "$GCC" = yes; then
2311     CFLAGS="-g -O2"
2312   else
2313     CFLAGS="-g"
2314   fi
2315 else
2316   if test "$GCC" = yes; then
2317     CFLAGS="-O2"
2318   else
2319     CFLAGS=
2320   fi
2321 fi
2322 # Some people use a C++ compiler to compile C.  Since we use `exit',
2323 # in C++ we need to declare it.  In case someone uses the same compiler
2324 # for both compiling C and C++ we need to have the C++ compiler decide
2325 # the declaration of exit, since it's the most demanding environment.
2326 cat >conftest.$ac_ext <<_ACEOF
2327 #ifndef __cplusplus
2328   choke me
2329 #endif
2330 _ACEOF
2331 rm -f conftest.$ac_objext
2332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333   (eval $ac_compile) 2>&5
2334   ac_status=$?
2335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336   (exit $ac_status); } &&
2337          { ac_try='test -s conftest.$ac_objext'
2338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339   (eval $ac_try) 2>&5
2340   ac_status=$?
2341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342   (exit $ac_status); }; }; then
2343   for ac_declaration in \
2344    ''\
2345    '#include <stdlib.h>' \
2346    'extern "C" void std::exit (int) throw (); using std::exit;' \
2347    'extern "C" void std::exit (int); using std::exit;' \
2348    'extern "C" void exit (int) throw ();' \
2349    'extern "C" void exit (int);' \
2350    'void exit (int);'
2351 do
2352   cat >conftest.$ac_ext <<_ACEOF
2353 #line $LINENO "configure"
2354 #include "confdefs.h"
2355 #include <stdlib.h>
2356 $ac_declaration
2357 #ifdef F77_DUMMY_MAIN
2358 #  ifdef __cplusplus
2359      extern "C"
2360 #  endif
2361    int F77_DUMMY_MAIN() { return 1; }
2362 #endif
2363 int
2364 main ()
2365 {
2366 exit (42);
2367   ;
2368   return 0;
2369 }
2370 _ACEOF
2371 rm -f conftest.$ac_objext
2372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373   (eval $ac_compile) 2>&5
2374   ac_status=$?
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); } &&
2377          { ac_try='test -s conftest.$ac_objext'
2378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379   (eval $ac_try) 2>&5
2380   ac_status=$?
2381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382   (exit $ac_status); }; }; then
2383   :
2384 else
2385   echo "$as_me: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2387 continue
2388 fi
2389 rm -f conftest.$ac_objext conftest.$ac_ext
2390   cat >conftest.$ac_ext <<_ACEOF
2391 #line $LINENO "configure"
2392 #include "confdefs.h"
2393 $ac_declaration
2394 #ifdef F77_DUMMY_MAIN
2395 #  ifdef __cplusplus
2396      extern "C"
2397 #  endif
2398    int F77_DUMMY_MAIN() { return 1; }
2399 #endif
2400 int
2401 main ()
2402 {
2403 exit (42);
2404   ;
2405   return 0;
2406 }
2407 _ACEOF
2408 rm -f conftest.$ac_objext
2409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410   (eval $ac_compile) 2>&5
2411   ac_status=$?
2412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413   (exit $ac_status); } &&
2414          { ac_try='test -s conftest.$ac_objext'
2415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416   (eval $ac_try) 2>&5
2417   ac_status=$?
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); }; }; then
2420   break
2421 else
2422   echo "$as_me: failed program was:" >&5
2423 cat conftest.$ac_ext >&5
2424 fi
2425 rm -f conftest.$ac_objext conftest.$ac_ext
2426 done
2427 rm -f conftest*
2428 if test -n "$ac_declaration"; then
2429   echo '#ifdef __cplusplus' >>confdefs.h
2430   echo $ac_declaration      >>confdefs.h
2431   echo '#endif'             >>confdefs.h
2432 fi
2433
2434 else
2435   echo "$as_me: failed program was:" >&5
2436 cat conftest.$ac_ext >&5
2437 fi
2438 rm -f conftest.$ac_objext conftest.$ac_ext
2439 ac_ext=c
2440 ac_cpp='$CPP $CPPFLAGS'
2441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2444
2445 # Read the template
2446 . "$srcdir/src/template/$template" || exit
2447
2448 if test "$ac_env_CFLAGS_set" = set; then
2449   CFLAGS=$ac_env_CFLAGS_value
2450 fi
2451 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2452   CFLAGS="$CFLAGS -g"
2453 fi
2454 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2455 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2456 # Check if the compiler still works with the template settings
2457 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2458 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2459
2460 cat >conftest.$ac_ext <<_ACEOF
2461 #line $LINENO "configure"
2462 #include "confdefs.h"
2463
2464 #ifdef F77_DUMMY_MAIN
2465 #  ifdef __cplusplus
2466      extern "C"
2467 #  endif
2468    int F77_DUMMY_MAIN() { return 1; }
2469 #endif
2470 int
2471 main ()
2472 {
2473 return 0;
2474   ;
2475   return 0;
2476 }
2477 _ACEOF
2478 rm -f conftest.$ac_objext conftest$ac_exeext
2479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2480   (eval $ac_link) 2>&5
2481   ac_status=$?
2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); } &&
2484          { ac_try='test -s conftest$ac_exeext'
2485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486   (eval $ac_try) 2>&5
2487   ac_status=$?
2488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489   (exit $ac_status); }; }; then
2490   echo "$as_me:$LINENO: result: yes" >&5
2491 echo "${ECHO_T}yes" >&6
2492 else
2493   echo "$as_me: failed program was:" >&5
2494 cat conftest.$ac_ext >&5
2495 echo "$as_me:$LINENO: result: no" >&5
2496 echo "${ECHO_T}no" >&6
2497    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2498 echo "$as_me: error: cannot proceed" >&2;}
2499    { (exit 1); exit 1; }; }
2500 fi
2501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2502 ac_ext=c
2503 ac_cpp='$CPP $CPPFLAGS'
2504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2507 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2508 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2509 # On Suns, sometimes $CPP names a directory.
2510 if test -n "$CPP" && test -d "$CPP"; then
2511   CPP=
2512 fi
2513 if test -z "$CPP"; then
2514   if test "${ac_cv_prog_CPP+set}" = set; then
2515   echo $ECHO_N "(cached) $ECHO_C" >&6
2516 else
2517       # Double quotes because CPP needs to be expanded
2518     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2519     do
2520       ac_preproc_ok=false
2521 for ac_c_preproc_warn_flag in '' yes
2522 do
2523   # Use a header file that comes with gcc, so configuring glibc
2524   # with a fresh cross-compiler works.
2525   # On the NeXT, cc -E runs the code through the compiler's parser,
2526   # not just through cpp. "Syntax error" is here to catch this case.
2527   cat >conftest.$ac_ext <<_ACEOF
2528 #line $LINENO "configure"
2529 #include "confdefs.h"
2530 #include <assert.h>
2531                      Syntax error
2532 _ACEOF
2533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2534   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2535   ac_status=$?
2536   egrep -v '^ *\+' conftest.er1 >conftest.err
2537   rm -f conftest.er1
2538   cat conftest.err >&5
2539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540   (exit $ac_status); } >/dev/null; then
2541   if test -s conftest.err; then
2542     ac_cpp_err=$ac_c_preproc_warn_flag
2543   else
2544     ac_cpp_err=
2545   fi
2546 else
2547   ac_cpp_err=yes
2548 fi
2549 if test -z "$ac_cpp_err"; then
2550   :
2551 else
2552   echo "$as_me: failed program was:" >&5
2553   cat conftest.$ac_ext >&5
2554   # Broken: fails on valid input.
2555 continue
2556 fi
2557 rm -f conftest.err conftest.$ac_ext
2558
2559   # OK, works on sane cases.  Now check whether non-existent headers
2560   # can be detected and how.
2561   cat >conftest.$ac_ext <<_ACEOF
2562 #line $LINENO "configure"
2563 #include "confdefs.h"
2564 #include <ac_nonexistent.h>
2565 _ACEOF
2566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2567   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2568   ac_status=$?
2569   egrep -v '^ *\+' conftest.er1 >conftest.err
2570   rm -f conftest.er1
2571   cat conftest.err >&5
2572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573   (exit $ac_status); } >/dev/null; then
2574   if test -s conftest.err; then
2575     ac_cpp_err=$ac_c_preproc_warn_flag
2576   else
2577     ac_cpp_err=
2578   fi
2579 else
2580   ac_cpp_err=yes
2581 fi
2582 if test -z "$ac_cpp_err"; then
2583   # Broken: success on invalid input.
2584 continue
2585 else
2586   echo "$as_me: failed program was:" >&5
2587   cat conftest.$ac_ext >&5
2588   # Passes both tests.
2589 ac_preproc_ok=:
2590 break
2591 fi
2592 rm -f conftest.err conftest.$ac_ext
2593
2594 done
2595 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2596 rm -f conftest.err conftest.$ac_ext
2597 if $ac_preproc_ok; then
2598   break
2599 fi
2600
2601     done
2602     ac_cv_prog_CPP=$CPP
2603
2604 fi
2605   CPP=$ac_cv_prog_CPP
2606 else
2607   ac_cv_prog_CPP=$CPP
2608 fi
2609 echo "$as_me:$LINENO: result: $CPP" >&5
2610 echo "${ECHO_T}$CPP" >&6
2611 ac_preproc_ok=false
2612 for ac_c_preproc_warn_flag in '' yes
2613 do
2614   # Use a header file that comes with gcc, so configuring glibc
2615   # with a fresh cross-compiler works.
2616   # On the NeXT, cc -E runs the code through the compiler's parser,
2617   # not just through cpp. "Syntax error" is here to catch this case.
2618   cat >conftest.$ac_ext <<_ACEOF
2619 #line $LINENO "configure"
2620 #include "confdefs.h"
2621 #include <assert.h>
2622                      Syntax error
2623 _ACEOF
2624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2625   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2626   ac_status=$?
2627   egrep -v '^ *\+' conftest.er1 >conftest.err
2628   rm -f conftest.er1
2629   cat conftest.err >&5
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); } >/dev/null; then
2632   if test -s conftest.err; then
2633     ac_cpp_err=$ac_c_preproc_warn_flag
2634   else
2635     ac_cpp_err=
2636   fi
2637 else
2638   ac_cpp_err=yes
2639 fi
2640 if test -z "$ac_cpp_err"; then
2641   :
2642 else
2643   echo "$as_me: failed program was:" >&5
2644   cat conftest.$ac_ext >&5
2645   # Broken: fails on valid input.
2646 continue
2647 fi
2648 rm -f conftest.err conftest.$ac_ext
2649
2650   # OK, works on sane cases.  Now check whether non-existent headers
2651   # can be detected and how.
2652   cat >conftest.$ac_ext <<_ACEOF
2653 #line $LINENO "configure"
2654 #include "confdefs.h"
2655 #include <ac_nonexistent.h>
2656 _ACEOF
2657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2658   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2659   ac_status=$?
2660   egrep -v '^ *\+' conftest.er1 >conftest.err
2661   rm -f conftest.er1
2662   cat conftest.err >&5
2663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664   (exit $ac_status); } >/dev/null; then
2665   if test -s conftest.err; then
2666     ac_cpp_err=$ac_c_preproc_warn_flag
2667   else
2668     ac_cpp_err=
2669   fi
2670 else
2671   ac_cpp_err=yes
2672 fi
2673 if test -z "$ac_cpp_err"; then
2674   # Broken: success on invalid input.
2675 continue
2676 else
2677   echo "$as_me: failed program was:" >&5
2678   cat conftest.$ac_ext >&5
2679   # Passes both tests.
2680 ac_preproc_ok=:
2681 break
2682 fi
2683 rm -f conftest.err conftest.$ac_ext
2684
2685 done
2686 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2687 rm -f conftest.err conftest.$ac_ext
2688 if $ac_preproc_ok; then
2689   :
2690 else
2691   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2692 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2693    { (exit 1); exit 1; }; }
2694 fi
2695
2696 ac_ext=c
2697 ac_cpp='$CPP $CPPFLAGS'
2698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2701
2702
2703
2704 # Create compiler version string
2705 if test x"$GCC" = x"yes" ; then
2706   cc_string="GCC `${CC} --version | sed q`"
2707 else
2708   cc_string=$CC
2709 fi
2710
2711 cat >>confdefs.h <<_ACEOF
2712 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2713 _ACEOF
2714
2715
2716
2717 #
2718 # Automatic dependency tracking
2719 #
2720
2721
2722 # Check whether --enable-depend or --disable-depend was given.
2723 if test "${enable_depend+set}" = set; then
2724   enableval="$enable_depend"
2725
2726   case $enableval in
2727     yes)
2728       autodepend=yes
2729       ;;
2730     no)
2731       :
2732       ;;
2733     *)
2734       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2735 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2736    { (exit 1); exit 1; }; }
2737       ;;
2738   esac
2739
2740 else
2741   enable_depend=no
2742
2743 fi;
2744
2745
2746
2747
2748 #
2749 # Enable assert checks
2750 #
2751
2752
2753 # Check whether --enable-cassert or --disable-cassert was given.
2754 if test "${enable_cassert+set}" = set; then
2755   enableval="$enable_cassert"
2756
2757   case $enableval in
2758     yes)
2759
2760 cat >>confdefs.h <<\_ACEOF
2761 #define USE_ASSERT_CHECKING 1
2762 _ACEOF
2763
2764       ;;
2765     no)
2766       :
2767       ;;
2768     *)
2769       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2770 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2771    { (exit 1); exit 1; }; }
2772       ;;
2773   esac
2774
2775 else
2776   enable_cassert=no
2777
2778 fi;
2779
2780
2781
2782 #
2783 # Include directories
2784 #
2785 ac_save_IFS=$IFS
2786 IFS="${IFS}:"
2787 # SRCH_INC comes from the template file
2788 for dir in $with_includes $SRCH_INC; do
2789   if test -d "$dir"; then
2790     INCLUDES="$INCLUDES -I$dir"
2791   else
2792     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2793 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2794   fi
2795 done
2796 IFS=$ac_save_IFS
2797
2798
2799
2800 #
2801 # Library directories
2802 #
2803 ac_save_IFS=$IFS
2804 IFS="${IFS}:"
2805 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2806 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2807   if test -d "$dir"; then
2808     LIBDIRS="$LIBDIRS -L$dir"
2809   else
2810     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2811 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2812   fi
2813 done
2814 IFS=$ac_save_IFS
2815
2816
2817 #
2818 # Tcl/Tk
2819 #
2820 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2821 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2822
2823
2824
2825 # Check whether --with-tcl or --without-tcl was given.
2826 if test "${with_tcl+set}" = set; then
2827   withval="$with_tcl"
2828
2829   case $withval in
2830     yes)
2831       :
2832       ;;
2833     no)
2834       :
2835       ;;
2836     *)
2837       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2838 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2839    { (exit 1); exit 1; }; }
2840       ;;
2841   esac
2842
2843 else
2844   with_tcl=no
2845
2846 fi;
2847
2848 echo "$as_me:$LINENO: result: $with_tcl" >&5
2849 echo "${ECHO_T}$with_tcl" >&6
2850
2851
2852 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2853 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2854 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2855 if test "$with_tcl" = yes; then
2856
2857
2858
2859 # Check whether --with-tk or --without-tk was given.
2860 if test "${with_tk+set}" = set; then
2861   withval="$with_tk"
2862
2863   case $withval in
2864     yes)
2865       :
2866       ;;
2867     no)
2868       :
2869       ;;
2870     *)
2871       { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2872 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2873    { (exit 1); exit 1; }; }
2874       ;;
2875   esac
2876
2877 else
2878   with_tk=yes
2879
2880 fi;
2881
2882 else
2883   with_tk=no
2884 fi
2885 echo "$as_me:$LINENO: result: $with_tk" >&5
2886 echo "${ECHO_T}$with_tk" >&6
2887
2888
2889
2890 # We see if the path to the Tcl/Tk configuration scripts is specified.
2891 # This will override the use of tclsh to find the paths to search.
2892
2893
2894
2895
2896 # Check whether --with-tclconfig or --without-tclconfig was given.
2897 if test "${with_tclconfig+set}" = set; then
2898   withval="$with_tclconfig"
2899
2900   case $withval in
2901     yes)
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     no)
2907       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2908 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2909    { (exit 1); exit 1; }; }
2910       ;;
2911     *)
2912
2913       ;;
2914   esac
2915
2916 fi;
2917
2918
2919 # We see if the path to the Tk configuration scripts is specified.
2920 # This will override the use of tclsh to find the paths to search.
2921
2922
2923
2924
2925 # Check whether --with-tkconfig or --without-tkconfig was given.
2926 if test "${with_tkconfig+set}" = set; then
2927   withval="$with_tkconfig"
2928
2929   case $withval in
2930     yes)
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     no)
2936       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2937 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2938    { (exit 1); exit 1; }; }
2939       ;;
2940     *)
2941
2942       ;;
2943   esac
2944
2945 fi;
2946
2947
2948 #
2949 # Optionally build Perl modules (Pg.pm and PL/Perl)
2950 #
2951 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2952 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2953
2954
2955
2956 # Check whether --with-perl or --without-perl was given.
2957 if test "${with_perl+set}" = set; then
2958   withval="$with_perl"
2959
2960   case $withval in
2961     yes)
2962       :
2963       ;;
2964     no)
2965       :
2966       ;;
2967     *)
2968       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
2969 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
2970    { (exit 1); exit 1; }; }
2971       ;;
2972   esac
2973
2974 else
2975   with_perl=no
2976
2977 fi;
2978
2979 echo "$as_me:$LINENO: result: $with_perl" >&5
2980 echo "${ECHO_T}$with_perl" >&6
2981
2982
2983 #
2984 # Optionally build Python interface module
2985 #
2986 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
2987 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
2988
2989
2990
2991 # Check whether --with-python or --without-python was given.
2992 if test "${with_python+set}" = set; then
2993   withval="$with_python"
2994
2995   case $withval in
2996     yes)
2997       :
2998       ;;
2999     no)
3000       :
3001       ;;
3002     *)
3003       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3004 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3005    { (exit 1); exit 1; }; }
3006       ;;
3007   esac
3008
3009 else
3010   with_python=no
3011
3012 fi;
3013
3014 echo "$as_me:$LINENO: result: $with_python" >&5
3015 echo "${ECHO_T}$with_python" >&6
3016
3017
3018 #
3019 # Optionally build the Java/JDBC tools
3020 #
3021 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3022 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3023
3024
3025
3026 # Check whether --with-java or --without-java was given.
3027 if test "${with_java+set}" = set; then
3028   withval="$with_java"
3029
3030   case $withval in
3031     yes)
3032       echo "$as_me:$LINENO: result: yes" >&5
3033 echo "${ECHO_T}yes" >&6
3034
3035   for ac_prog in jakarta-ant ant ant.sh ant.bat
3036 do
3037   # Extract the first word of "$ac_prog", so it can be a program name with args.
3038 set dummy $ac_prog; ac_word=$2
3039 echo "$as_me:$LINENO: checking for $ac_word" >&5
3040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3041 if test "${ac_cv_path_ANT+set}" = set; then
3042   echo $ECHO_N "(cached) $ECHO_C" >&6
3043 else
3044   case $ANT in
3045   [\\/]* | ?:[\\/]*)
3046   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3047   ;;
3048   *)
3049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 for as_dir in $PATH
3051 do
3052   IFS=$as_save_IFS
3053   test -z "$as_dir" && as_dir=.
3054   for ac_exec_ext in '' $ac_executable_extensions; do
3055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3056     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3058     break 2
3059   fi
3060 done
3061 done
3062
3063   ;;
3064 esac
3065 fi
3066 ANT=$ac_cv_path_ANT
3067
3068 if test -n "$ANT"; then
3069   echo "$as_me:$LINENO: result: $ANT" >&5
3070 echo "${ECHO_T}$ANT" >&6
3071 else
3072   echo "$as_me:$LINENO: result: no" >&5
3073 echo "${ECHO_T}no" >&6
3074 fi
3075
3076   test -n "$ANT" && break
3077 done
3078
3079
3080   echo "$as_me:$LINENO: checking whether $ANT works" >&5
3081 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3082 if test "${pgac_cv_prog_ant_works+set}" = set; then
3083   echo $ECHO_N "(cached) $ECHO_C" >&6
3084 else
3085
3086     cat > conftest.java << EOF
3087 public class conftest {
3088     int testmethod(int a, int b) {
3089         return a + b;
3090     }
3091 }
3092 EOF
3093
3094     cat > conftest.xml << EOF
3095 <project name="conftest" default="conftest">
3096  <target name="conftest">
3097   <javac srcdir="." includes="conftest.java">
3098   </javac>
3099  </target>
3100 </project>
3101 EOF
3102
3103     pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3104     { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3105   (eval $pgac_cmd) 2>&5
3106   ac_status=$?
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); }
3109     pgac_save_status=$?
3110     if test $? = 0 && test -f ./conftest.class ; then
3111       pgac_cv_prog_ant_works=yes
3112     else
3113       echo "configure: failed java program was:" >&5
3114       cat conftest.java >&5
3115       echo "configure: failed build file was:" >&5
3116       cat conftest.xml >&5
3117       pgac_cv_prog_ant_works=no
3118     fi
3119
3120     rm -f conftest* core core.* *.core
3121
3122 fi
3123 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3124 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3125
3126   if test "$pgac_cv_prog_ant_works" != yes; then
3127     { { echo "$as_me:$LINENO: error: ant does not work" >&5
3128 echo "$as_me: error: ant does not work" >&2;}
3129    { (exit 1); exit 1; }; }
3130   fi
3131
3132
3133 if test -z "$ANT"; then
3134   { { echo "$as_me:$LINENO: error: Ant is required to build Java components" >&5
3135 echo "$as_me: error: Ant is required to build Java components" >&2;}
3136    { (exit 1); exit 1; }; }
3137 fi
3138       ;;
3139     no)
3140       echo "$as_me:$LINENO: result: no" >&5
3141 echo "${ECHO_T}no" >&6
3142       ;;
3143     *)
3144       { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3145 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3146    { (exit 1); exit 1; }; }
3147       ;;
3148   esac
3149
3150 else
3151   with_java=no
3152 echo "$as_me:$LINENO: result: no" >&5
3153 echo "${ECHO_T}no" >&6
3154 fi;
3155
3156
3157
3158
3159 #
3160 # Kerberos 4
3161 #
3162 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3163 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3164
3165
3166
3167 # Check whether --with-krb4 or --without-krb4 was given.
3168 if test "${with_krb4+set}" = set; then
3169   withval="$with_krb4"
3170
3171   case $withval in
3172     yes)
3173       krb4_prefix=/usr/athena
3174       ;;
3175     no)
3176       :
3177       ;;
3178     *)
3179       with_krb4=yes
3180 krb4_prefix=$withval
3181       ;;
3182   esac
3183
3184 else
3185   with_krb4=no
3186 fi;
3187
3188
3189 if test "$with_krb4" = yes; then
3190
3191   echo "$as_me:$LINENO: result: yes" >&5
3192 echo "${ECHO_T}yes" >&6
3193
3194 cat >>confdefs.h <<\_ACEOF
3195 #define KRB4 1
3196 _ACEOF
3197
3198
3199   if test -d "$krb4_prefix/include"; then
3200     INCLUDES="$INCLUDES -I$krb4_prefix/include"
3201   fi
3202   if test -d "$krb4_prefix/lib"; then
3203     LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3204   fi
3205
3206   krb_srvtab="/etc/srvtab"
3207
3208 else
3209   echo "$as_me:$LINENO: result: no" >&5
3210 echo "${ECHO_T}no" >&6
3211 fi
3212
3213
3214
3215
3216
3217 #
3218 # Kerberos 5
3219 #
3220 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3221 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3222
3223
3224
3225 # Check whether --with-krb5 or --without-krb5 was given.
3226 if test "${with_krb5+set}" = set; then
3227   withval="$with_krb5"
3228
3229   case $withval in
3230     yes)
3231       krb5_prefix=/usr/athena
3232       ;;
3233     no)
3234       :
3235       ;;
3236     *)
3237       with_krb5=yes
3238 krb5_prefix=$withval
3239       ;;
3240   esac
3241
3242 else
3243   with_krb5=no
3244 fi;
3245
3246
3247 if test "$with_krb5" = yes; then
3248
3249   echo "$as_me:$LINENO: result: yes" >&5
3250 echo "${ECHO_T}yes" >&6
3251
3252 cat >>confdefs.h <<\_ACEOF
3253 #define KRB5 1
3254 _ACEOF
3255
3256
3257   if test -d "$krb5_prefix/include"; then
3258     INCLUDES="$INCLUDES -I$krb5_prefix/include"
3259   fi
3260   if test -d "$krb5_prefix/lib"; then
3261     LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3262   fi
3263
3264   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3265
3266 else
3267   echo "$as_me:$LINENO: result: no" >&5
3268 echo "${ECHO_T}no" >&6
3269 fi
3270
3271
3272
3273
3274
3275 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3276 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3277   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3278 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3279    { (exit 1); exit 1; }; }
3280 fi
3281
3282
3283
3284
3285 #
3286 # Kerberos configuration parameters
3287 #
3288
3289
3290
3291 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3292 if test "${with_krb_srvnam+set}" = set; then
3293   withval="$with_krb_srvnam"
3294
3295   case $withval in
3296     yes)
3297       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3298 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3299    { (exit 1); exit 1; }; }
3300       ;;
3301     no)
3302       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3303 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3304    { (exit 1); exit 1; }; }
3305       ;;
3306     *)
3307
3308       ;;
3309   esac
3310
3311 else
3312   with_krb_srvnam="postgres"
3313 fi;
3314
3315
3316 cat >>confdefs.h <<_ACEOF
3317 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3318 _ACEOF
3319
3320
3321
3322 #
3323 # PAM
3324 #
3325 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3326 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3327
3328
3329
3330 # Check whether --with-pam or --without-pam was given.
3331 if test "${with_pam+set}" = set; then
3332   withval="$with_pam"
3333
3334   case $withval in
3335     yes)
3336
3337 cat >>confdefs.h <<\_ACEOF
3338 #define USE_PAM 1
3339 _ACEOF
3340
3341       ;;
3342     no)
3343       :
3344       ;;
3345     *)
3346       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3347 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3348    { (exit 1); exit 1; }; }
3349       ;;
3350   esac
3351
3352 else
3353   with_pam=no
3354
3355 fi;
3356
3357 echo "$as_me:$LINENO: result: $with_pam" >&5
3358 echo "${ECHO_T}$with_pam" >&6
3359
3360
3361
3362 #
3363 # OpenSSL
3364 #
3365
3366
3367
3368 # Check whether --with-openssl or --without-openssl was given.
3369 if test "${with_openssl+set}" = set; then
3370   withval="$with_openssl"
3371
3372   case $withval in
3373     yes)
3374       openssl_prefix=/usr/local/ssl
3375       ;;
3376     no)
3377       :
3378       ;;
3379     *)
3380       with_openssl=yes
3381 openssl_prefix=$withval
3382       ;;
3383   esac
3384
3385 else
3386   with_openssl=no
3387 fi;
3388
3389
3390 if test "$with_openssl" = yes; then
3391
3392   echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3393 echo "${ECHO_T}building with OpenSSL support" >&6
3394
3395 cat >>confdefs.h <<\_ACEOF
3396 #define USE_SSL 1
3397 _ACEOF
3398
3399
3400   if test -d "${openssl_prefix}/include" ; then
3401     INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3402   fi
3403   if test -d "${openssl_prefix}/lib" ; then
3404     LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3405   fi
3406
3407 fi
3408
3409
3410
3411
3412
3413 #
3414 # Readline
3415 #
3416
3417
3418
3419 # Check whether --with-readline or --without-readline was given.
3420 if test "${with_readline+set}" = set; then
3421   withval="$with_readline"
3422
3423   case $withval in
3424     yes)
3425       :
3426       ;;
3427     no)
3428       :
3429       ;;
3430     *)
3431       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3432 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3433    { (exit 1); exit 1; }; }
3434       ;;
3435   esac
3436
3437 else
3438   with_readline=yes
3439
3440 fi;
3441
3442
3443 #
3444 # Zlib
3445 #
3446
3447
3448
3449 # Check whether --with-zlib or --without-zlib was given.
3450 if test "${with_zlib+set}" = set; then
3451   withval="$with_zlib"
3452
3453   case $withval in
3454     yes)
3455       :
3456       ;;
3457     no)
3458       :
3459       ;;
3460     *)
3461       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3462 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3463    { (exit 1); exit 1; }; }
3464       ;;
3465   esac
3466
3467 else
3468   with_zlib=yes
3469
3470 fi;
3471
3472
3473
3474
3475 # Assume system is ELF if it predefines __ELF__ as 1,
3476 # otherwise believe host_os based default.
3477 case $host_os in
3478     freebsd1*|freebsd2*) elf=no;;
3479     freebsd3*|freebsd4*) elf=yes;;
3480 esac
3481
3482
3483 cat >conftest.$ac_ext <<_ACEOF
3484 #line $LINENO "configure"
3485 #include "confdefs.h"
3486 #if __ELF__
3487   yes
3488 #endif
3489
3490 _ACEOF
3491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3492   egrep "yes" >/dev/null 2>&1; then
3493   ELF_SYS=true
3494 else
3495   if test "X$elf" = "Xyes" ; then
3496   ELF_SYS=true
3497 else
3498   ELF_SYS=
3499 fi
3500 fi
3501 rm -f conftest*
3502
3503
3504
3505
3506
3507 CPPFLAGS="$CPPFLAGS $INCLUDES"
3508 LDFLAGS="$LDFLAGS $LIBDIRS"
3509
3510 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3511 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3512 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3513 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3514
3515
3516 for ac_prog in gawk mawk nawk awk
3517 do
3518   # Extract the first word of "$ac_prog", so it can be a program name with args.
3519 set dummy $ac_prog; ac_word=$2
3520 echo "$as_me:$LINENO: checking for $ac_word" >&5
3521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3522 if test "${ac_cv_prog_AWK+set}" = set; then
3523   echo $ECHO_N "(cached) $ECHO_C" >&6
3524 else
3525   if test -n "$AWK"; then
3526   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3527 else
3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 for as_dir in $PATH
3530 do
3531   IFS=$as_save_IFS
3532   test -z "$as_dir" && as_dir=.
3533   for ac_exec_ext in '' $ac_executable_extensions; do
3534   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3535     ac_cv_prog_AWK="$ac_prog"
3536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3537     break 2
3538   fi
3539 done
3540 done
3541
3542 fi
3543 fi
3544 AWK=$ac_cv_prog_AWK
3545 if test -n "$AWK"; then
3546   echo "$as_me:$LINENO: result: $AWK" >&5
3547 echo "${ECHO_T}$AWK" >&6
3548 else
3549   echo "$as_me:$LINENO: result: no" >&5
3550 echo "${ECHO_T}no" >&6
3551 fi
3552
3553   test -n "$AWK" && break
3554 done
3555
3556 echo "$as_me:$LINENO: checking for flex" >&5
3557 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3558 if test "${pgac_cv_path_flex+set}" = set; then
3559   echo $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561   # Let the user override the test
3562 if test -n "$FLEX"; then
3563   pgac_cv_path_flex=$FLEX
3564 else
3565   pgac_save_IFS=$IFS
3566   IFS=:
3567   for pgac_dir in $PATH; do
3568     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3569       pgac_dir=`pwd`
3570     fi
3571     for pgac_prog in flex lex; do
3572       pgac_candidate="$pgac_dir/$pgac_prog"
3573       if test -f "$pgac_candidate" \
3574         && $pgac_candidate --version </dev/null >/dev/null 2>&1
3575       then
3576         echo '%%'  > conftest.l
3577         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3578           if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
3579             pgac_broken_flex=$pgac_candidate
3580             continue
3581           fi
3582
3583           pgac_cv_path_flex=$pgac_candidate
3584           break 2
3585         fi
3586       fi
3587     done
3588   done
3589   IFS=$pgac_save_IFS
3590   rm -f conftest.l
3591   : ${pgac_cv_path_flex=no}
3592 fi
3593
3594 fi
3595 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3596 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3597 if test x"$pgac_cv_path_flex" = x"no"; then
3598   if test -n "$pgac_broken_flex"; then
3599     { echo "$as_me:$LINENO: WARNING:
3600 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3601 *** should get version 2.5.4 or later." >&5
3602 echo "$as_me: WARNING:
3603 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3604 *** should get version 2.5.4 or later." >&2;}
3605   fi
3606
3607   { echo "$as_me:$LINENO: WARNING:
3608 *** Without Flex you will not be able to build PostgreSQL from CVS or
3609 *** change any of the scanner definition files.  You can obtain Flex from
3610 *** a GNU mirror site.  (If you are using the official distribution of
3611 *** PostgreSQL then you do not need to worry about this because the Flex
3612 *** output is pre-generated.)" >&5
3613 echo "$as_me: WARNING:
3614 *** Without Flex you will not be able to build PostgreSQL from CVS or
3615 *** change any of the scanner definition files.  You can obtain Flex from
3616 *** a GNU mirror site.  (If you are using the official distribution of
3617 *** PostgreSQL then you do not need to worry about this because the Flex
3618 *** output is pre-generated.)" >&2;}
3619 fi
3620
3621 if test x"$pgac_cv_path_flex" = x"no"; then
3622   FLEX=
3623 else
3624   FLEX=$pgac_cv_path_flex
3625 fi
3626
3627
3628
3629
3630 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3631 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3632 LN_S=$as_ln_s
3633 if test "$LN_S" = "ln -s"; then
3634   echo "$as_me:$LINENO: result: yes" >&5
3635 echo "${ECHO_T}yes" >&6
3636 else
3637   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3638 echo "${ECHO_T}no, using $LN_S" >&6
3639 fi
3640
3641
3642 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3643 if test "${with_gnu_ld+set}" = set; then
3644   withval="$with_gnu_ld"
3645   test "$withval" = no || with_gnu_ld=yes
3646 else
3647   with_gnu_ld=no
3648 fi;
3649 ac_prog=ld
3650 if test "$GCC" = yes; then
3651   # Check if gcc -print-prog-name=ld gives a path.
3652   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3653 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3654   case $host in
3655   *-*-mingw*)
3656     # gcc leaves a trailing carriage return which upsets mingw
3657     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3658   *)
3659     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3660   esac
3661   case "$ac_prog" in
3662     # Accept absolute paths.
3663     [\\/]* | [A-Za-z]:[\\/]*)
3664       re_direlt='/[^/][^/]*/\.\./'
3665       # Canonicalize the path of ld
3666       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3667       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3668         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3669       done
3670       test -z "$LD" && LD="$ac_prog"
3671       ;;
3672   "")
3673     # If it fails, then pretend we aren't using GCC.
3674     ac_prog=ld
3675     ;;
3676   *)
3677     # If it is relative, then search for the first ld in PATH.
3678     with_gnu_ld=unknown
3679     ;;
3680   esac
3681 elif test "$with_gnu_ld" = yes; then
3682   echo "$as_me:$LINENO: checking for GNU ld" >&5
3683 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3684 else
3685   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3686 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3687 fi
3688 if test "${ac_cv_path_LD+set}" = set; then
3689   echo $ECHO_N "(cached) $ECHO_C" >&6
3690 else
3691   if test -z "$LD"; then
3692   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3693   for ac_dir in $PATH; do
3694     test -z "$ac_dir" && ac_dir=.
3695     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3696       ac_cv_path_LD="$ac_dir/$ac_prog"
3697       # Check to see if the program is GNU ld.  I'd rather use --version,
3698       # but apparently some GNU ld's only accept -v.
3699       # Break only if it was the GNU/non-GNU ld that we prefer.
3700       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3701         test "$with_gnu_ld" != no && break
3702       else
3703         test "$with_gnu_ld" != yes && break
3704       fi
3705     fi
3706   done
3707   IFS="$ac_save_ifs"
3708 else
3709   ac_cv_path_LD="$LD" # Let the user override the test with a path.
3710 fi
3711 fi
3712
3713 LD="$ac_cv_path_LD"
3714 if test -n "$LD"; then
3715   echo "$as_me:$LINENO: result: $LD" >&5
3716 echo "${ECHO_T}$LD" >&6
3717 else
3718   echo "$as_me:$LINENO: result: no" >&5
3719 echo "${ECHO_T}no" >&6
3720 fi
3721 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3722 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3723    { (exit 1); exit 1; }; }
3724 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3725 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3726 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3727   echo $ECHO_N "(cached) $ECHO_C" >&6
3728 else
3729   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3730 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3731   ac_cv_prog_gnu_ld=yes
3732 else
3733   ac_cv_prog_gnu_ld=no
3734 fi
3735 fi
3736 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3737 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3738 with_gnu_ld=$ac_cv_prog_gnu_ld
3739
3740
3741
3742
3743 case $host_os in sysv5*)
3744   echo "$as_me:$LINENO: checking whether ld -R works" >&5
3745 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3746 if test "${pgac_cv_prog_ld_R+set}" = set; then
3747   echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749
3750     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3751     cat >conftest.$ac_ext <<_ACEOF
3752 #line $LINENO "configure"
3753 #include "confdefs.h"
3754
3755 #ifdef F77_DUMMY_MAIN
3756 #  ifdef __cplusplus
3757      extern "C"
3758 #  endif
3759    int F77_DUMMY_MAIN() { return 1; }
3760 #endif
3761 int
3762 main ()
3763 {
3764
3765   ;
3766   return 0;
3767 }
3768 _ACEOF
3769 rm -f conftest.$ac_objext conftest$ac_exeext
3770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3771   (eval $ac_link) 2>&5
3772   ac_status=$?
3773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774   (exit $ac_status); } &&
3775          { ac_try='test -s conftest$ac_exeext'
3776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777   (eval $ac_try) 2>&5
3778   ac_status=$?
3779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780   (exit $ac_status); }; }; then
3781   pgac_cv_prog_ld_R=yes
3782 else
3783   echo "$as_me: failed program was:" >&5
3784 cat conftest.$ac_ext >&5
3785 pgac_cv_prog_ld_R=no
3786 fi
3787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3788     LDFLAGS=$pgac_save_LDFLAGS
3789
3790 fi
3791 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3792 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3793   ld_R_works=$pgac_cv_prog_ld_R
3794
3795 esac
3796 if test -n "$ac_tool_prefix"; then
3797   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3798 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3799 echo "$as_me:$LINENO: checking for $ac_word" >&5
3800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3801 if test "${ac_cv_prog_RANLIB+set}" = set; then
3802   echo $ECHO_N "(cached) $ECHO_C" >&6
3803 else
3804   if test -n "$RANLIB"; then
3805   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3806 else
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH
3809 do
3810   IFS=$as_save_IFS
3811   test -z "$as_dir" && as_dir=.
3812   for ac_exec_ext in '' $ac_executable_extensions; do
3813   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3814     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3816     break 2
3817   fi
3818 done
3819 done
3820
3821 fi
3822 fi
3823 RANLIB=$ac_cv_prog_RANLIB
3824 if test -n "$RANLIB"; then
3825   echo "$as_me:$LINENO: result: $RANLIB" >&5
3826 echo "${ECHO_T}$RANLIB" >&6
3827 else
3828   echo "$as_me:$LINENO: result: no" >&5
3829 echo "${ECHO_T}no" >&6
3830 fi
3831
3832 fi
3833 if test -z "$ac_cv_prog_RANLIB"; then
3834   ac_ct_RANLIB=$RANLIB
3835   # Extract the first word of "ranlib", so it can be a program name with args.
3836 set dummy ranlib; ac_word=$2
3837 echo "$as_me:$LINENO: checking for $ac_word" >&5
3838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3839 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3840   echo $ECHO_N "(cached) $ECHO_C" >&6
3841 else
3842   if test -n "$ac_ct_RANLIB"; then
3843   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3844 else
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 for as_dir in $PATH
3847 do
3848   IFS=$as_save_IFS
3849   test -z "$as_dir" && as_dir=.
3850   for ac_exec_ext in '' $ac_executable_extensions; do
3851   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3852     ac_cv_prog_ac_ct_RANLIB="ranlib"
3853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3854     break 2
3855   fi
3856 done
3857 done
3858
3859   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3860 fi
3861 fi
3862 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3863 if test -n "$ac_ct_RANLIB"; then
3864   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3865 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3866 else
3867   echo "$as_me:$LINENO: result: no" >&5
3868 echo "${ECHO_T}no" >&6
3869 fi
3870
3871   RANLIB=$ac_ct_RANLIB
3872 else
3873   RANLIB="$ac_cv_prog_RANLIB"
3874 fi
3875
3876 for ac_prog in lorder
3877 do
3878   # Extract the first word of "$ac_prog", so it can be a program name with args.
3879 set dummy $ac_prog; ac_word=$2
3880 echo "$as_me:$LINENO: checking for $ac_word" >&5
3881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3882 if test "${ac_cv_prog_LORDER+set}" = set; then
3883   echo $ECHO_N "(cached) $ECHO_C" >&6
3884 else
3885   if test -n "$LORDER"; then
3886   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3887 else
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 for as_dir in $PATH
3890 do
3891   IFS=$as_save_IFS
3892   test -z "$as_dir" && as_dir=.
3893   for ac_exec_ext in '' $ac_executable_extensions; do
3894   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3895     ac_cv_prog_LORDER="$ac_prog"
3896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3897     break 2
3898   fi
3899 done
3900 done
3901
3902 fi
3903 fi
3904 LORDER=$ac_cv_prog_LORDER
3905 if test -n "$LORDER"; then
3906   echo "$as_me:$LINENO: result: $LORDER" >&5
3907 echo "${ECHO_T}$LORDER" >&6
3908 else
3909   echo "$as_me:$LINENO: result: no" >&5
3910 echo "${ECHO_T}no" >&6
3911 fi
3912
3913   test -n "$LORDER" && break
3914 done
3915
3916 # Extract the first word of "tar", so it can be a program name with args.
3917 set dummy tar; ac_word=$2
3918 echo "$as_me:$LINENO: checking for $ac_word" >&5
3919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3920 if test "${ac_cv_path_TAR+set}" = set; then
3921   echo $ECHO_N "(cached) $ECHO_C" >&6
3922 else
3923   case $TAR in
3924   [\\/]* | ?:[\\/]*)
3925   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3926   ;;
3927   *)
3928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 for as_dir in $PATH
3930 do
3931   IFS=$as_save_IFS
3932   test -z "$as_dir" && as_dir=.
3933   for ac_exec_ext in '' $ac_executable_extensions; do
3934   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3935     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3937     break 2
3938   fi
3939 done
3940 done
3941
3942   ;;
3943 esac
3944 fi
3945 TAR=$ac_cv_path_TAR
3946
3947 if test -n "$TAR"; then
3948   echo "$as_me:$LINENO: result: $TAR" >&5
3949 echo "${ECHO_T}$TAR" >&6
3950 else
3951   echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6
3953 fi
3954
3955
3956   if test -n "$ac_tool_prefix"; then
3957   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3958 set dummy ${ac_tool_prefix}strip; ac_word=$2
3959 echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_prog_STRIP+set}" = set; then
3962   echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964   if test -n "$STRIP"; then
3965   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3966 else
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH
3969 do
3970   IFS=$as_save_IFS
3971   test -z "$as_dir" && as_dir=.
3972   for ac_exec_ext in '' $ac_executable_extensions; do
3973   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976     break 2
3977   fi
3978 done
3979 done
3980
3981 fi
3982 fi
3983 STRIP=$ac_cv_prog_STRIP
3984 if test -n "$STRIP"; then
3985   echo "$as_me:$LINENO: result: $STRIP" >&5
3986 echo "${ECHO_T}$STRIP" >&6
3987 else
3988   echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6
3990 fi
3991
3992 fi
3993 if test -z "$ac_cv_prog_STRIP"; then
3994   ac_ct_STRIP=$STRIP
3995   # Extract the first word of "strip", so it can be a program name with args.
3996 set dummy strip; ac_word=$2
3997 echo "$as_me:$LINENO: checking for $ac_word" >&5
3998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3999 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4000   echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002   if test -n "$ac_ct_STRIP"; then
4003   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4004 else
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 for as_dir in $PATH
4007 do
4008   IFS=$as_save_IFS
4009   test -z "$as_dir" && as_dir=.
4010   for ac_exec_ext in '' $ac_executable_extensions; do
4011   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4012     ac_cv_prog_ac_ct_STRIP="strip"
4013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4014     break 2
4015   fi
4016 done
4017 done
4018
4019   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4020 fi
4021 fi
4022 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4023 if test -n "$ac_ct_STRIP"; then
4024   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4025 echo "${ECHO_T}$ac_ct_STRIP" >&6
4026 else
4027   echo "$as_me:$LINENO: result: no" >&5
4028 echo "${ECHO_T}no" >&6
4029 fi
4030
4031   STRIP=$ac_ct_STRIP
4032 else
4033   STRIP="$ac_cv_prog_STRIP"
4034 fi
4035
4036
4037   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4038 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4039   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4040     STRIP_STATIC_LIB="$STRIP -x"
4041     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4042     echo "$as_me:$LINENO: result: yes" >&5
4043 echo "${ECHO_T}yes" >&6
4044   else
4045     STRIP_STATIC_LIB=:
4046     STRIP_SHARED_LIB=:
4047     echo "$as_me:$LINENO: result: no" >&5
4048 echo "${ECHO_T}no" >&6
4049   fi
4050
4051
4052
4053
4054 for ac_prog in 'bison -y'
4055 do
4056   # Extract the first word of "$ac_prog", so it can be a program name with args.
4057 set dummy $ac_prog; ac_word=$2
4058 echo "$as_me:$LINENO: checking for $ac_word" >&5
4059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4060 if test "${ac_cv_prog_YACC+set}" = set; then
4061   echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063   if test -n "$YACC"; then
4064   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4065 else
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 for as_dir in $PATH
4068 do
4069   IFS=$as_save_IFS
4070   test -z "$as_dir" && as_dir=.
4071   for ac_exec_ext in '' $ac_executable_extensions; do
4072   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073     ac_cv_prog_YACC="$ac_prog"
4074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4075     break 2
4076   fi
4077 done
4078 done
4079
4080 fi
4081 fi
4082 YACC=$ac_cv_prog_YACC
4083 if test -n "$YACC"; then
4084   echo "$as_me:$LINENO: result: $YACC" >&5
4085 echo "${ECHO_T}$YACC" >&6
4086 else
4087   echo "$as_me:$LINENO: result: no" >&5
4088 echo "${ECHO_T}no" >&6
4089 fi
4090
4091   test -n "$YACC" && break
4092 done
4093
4094 if test -z "$YACC"; then
4095   { echo "$as_me:$LINENO: WARNING:
4096 *** Without Bison you will not be able to build PostgreSQL from CVS or
4097 *** change any of the parser definition files.  You can obtain Bison from
4098 *** a GNU mirror site.  (If you are using the official distribution of
4099 *** PostgreSQL then you do not need to worry about this because the Bison
4100 *** output is pre-generated.)  To use a different yacc program (possible,
4101 *** but not recommended), set the environment variable YACC before running
4102 *** 'configure'." >&5
4103 echo "$as_me: WARNING:
4104 *** Without Bison you will not be able to build PostgreSQL from CVS or
4105 *** change any of the parser definition files.  You can obtain Bison from
4106 *** a GNU mirror site.  (If you are using the official distribution of
4107 *** PostgreSQL then you do not need to worry about this because the Bison
4108 *** output is pre-generated.)  To use a different yacc program (possible,
4109 *** but not recommended), set the environment variable YACC before running
4110 *** 'configure'." >&2;}
4111 fi
4112
4113
4114 if test "$with_tk" = yes; then
4115     # Extract the first word of "wish", so it can be a program name with args.
4116 set dummy wish; ac_word=$2
4117 echo "$as_me:$LINENO: checking for $ac_word" >&5
4118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4119 if test "${ac_cv_path_WISH+set}" = set; then
4120   echo $ECHO_N "(cached) $ECHO_C" >&6
4121 else
4122   case $WISH in
4123   [\\/]* | ?:[\\/]*)
4124   ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
4125   ;;
4126   *)
4127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4129 do
4130   IFS=$as_save_IFS
4131   test -z "$as_dir" && as_dir=.
4132   for ac_exec_ext in '' $ac_executable_extensions; do
4133   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134     ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext"
4135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4136     break 2
4137   fi
4138 done
4139 done
4140
4141   ;;
4142 esac
4143 fi
4144 WISH=$ac_cv_path_WISH
4145
4146 if test -n "$WISH"; then
4147   echo "$as_me:$LINENO: result: $WISH" >&5
4148 echo "${ECHO_T}$WISH" >&6
4149 else
4150   echo "$as_me:$LINENO: result: no" >&5
4151 echo "${ECHO_T}no" >&6
4152 fi
4153
4154     test -z "$WISH" && { { echo "$as_me:$LINENO: error: 'wish' is required for Tk support" >&5
4155 echo "$as_me: error: 'wish' is required for Tk support" >&2;}
4156    { (exit 1); exit 1; }; }
4157 fi
4158
4159 # Extract the first word of "perl", so it can be a program name with args.
4160 set dummy perl; ac_word=$2
4161 echo "$as_me:$LINENO: checking for $ac_word" >&5
4162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4163 if test "${ac_cv_path_PERL+set}" = set; then
4164   echo $ECHO_N "(cached) $ECHO_C" >&6
4165 else
4166   case $PERL in
4167   [\\/]* | ?:[\\/]*)
4168   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4169   ;;
4170   *)
4171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172 for as_dir in $PATH
4173 do
4174   IFS=$as_save_IFS
4175   test -z "$as_dir" && as_dir=.
4176   for ac_exec_ext in '' $ac_executable_extensions; do
4177   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4178     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4180     break 2
4181   fi
4182 done
4183 done
4184
4185   ;;
4186 esac
4187 fi
4188 PERL=$ac_cv_path_PERL
4189
4190 if test -n "$PERL"; then
4191   echo "$as_me:$LINENO: result: $PERL" >&5
4192 echo "${ECHO_T}$PERL" >&6
4193 else
4194   echo "$as_me:$LINENO: result: no" >&5
4195 echo "${ECHO_T}no" >&6
4196 fi
4197
4198 if test "$with_perl" = yes; then
4199
4200 echo "$as_me:$LINENO: checking for Perl installsitearch" >&5
4201 echo $ECHO_N "checking for Perl installsitearch... $ECHO_C" >&6
4202 perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
4203 echo "$as_me:$LINENO: result: $perl_installsitearch" >&5
4204 echo "${ECHO_T}$perl_installsitearch" >&6
4205 echo "$as_me:$LINENO: checking for Perl installman3dir" >&5
4206 echo $ECHO_N "checking for Perl installman3dir... $ECHO_C" >&6
4207 perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
4208 echo "$as_me:$LINENO: result: $perl_installman3dir" >&5
4209 echo "${ECHO_T}$perl_installman3dir" >&6
4210 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4211 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4212 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4213 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4214 echo "${ECHO_T}$perl_archlibexp" >&6
4215 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4216 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4217 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4218 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4219 echo "${ECHO_T}$perl_privlibexp" >&6
4220 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4221 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4222 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4223 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4224 echo "${ECHO_T}$perl_useshrplib" >&6
4225 echo "$as_me:$LINENO: checking for Perl man3ext" >&5
4226 echo $ECHO_N "checking for Perl man3ext... $ECHO_C" >&6
4227 perl_man3ext=`$PERL -MConfig -e 'print $Config{man3ext}'`
4228 echo "$as_me:$LINENO: result: $perl_man3ext" >&5
4229 echo "${ECHO_T}$perl_man3ext" >&6
4230
4231 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4232 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4233 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4234 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4235 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4236 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4237 echo "${ECHO_T}$perl_embed_ldflags" >&6
4238 fi
4239
4240 if test "$with_python" = yes; then
4241   # Extract the first word of "python", so it can be a program name with args.
4242 set dummy python; ac_word=$2
4243 echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4245 if test "${ac_cv_path_PYTHON+set}" = set; then
4246   echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248   case $PYTHON in
4249   [\\/]* | ?:[\\/]*)
4250   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4251   ;;
4252   *)
4253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4255 do
4256   IFS=$as_save_IFS
4257   test -z "$as_dir" && as_dir=.
4258   for ac_exec_ext in '' $ac_executable_extensions; do
4259   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4260     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4262     break 2
4263   fi
4264 done
4265 done
4266
4267   ;;
4268 esac
4269 fi
4270 PYTHON=$ac_cv_path_PYTHON
4271
4272 if test -n "$PYTHON"; then
4273   echo "$as_me:$LINENO: result: $PYTHON" >&5
4274 echo "${ECHO_T}$PYTHON" >&6
4275 else
4276   echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6
4278 fi
4279
4280 if test x"$PYTHON" = x""; then
4281   { { echo "$as_me:$LINENO: error: Python not found" >&5
4282 echo "$as_me: error: Python not found" >&2;}
4283    { (exit 1); exit 1; }; }
4284 fi
4285
4286
4287 echo "$as_me:$LINENO: checking Python installation directories" >&5
4288 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4289 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4290 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4291 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4292 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4293 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
4294 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
4295 python_includespec="-I${python_prefix}/include/python${python_version}"
4296 if test "$python_prefix" != "$python_execprefix"; then
4297   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4298 fi
4299
4300 # This should be enough of a message.
4301 if test "$python_prefix" != "$python_execprefix"; then
4302   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4303 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4304 else
4305   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4306 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4307 fi
4308
4309
4310
4311
4312
4313 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4314 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4315
4316 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4317 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4318 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4319 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4320 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4321
4322 pgac_tab="      " # tab character
4323 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"`
4324
4325 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4326 echo "${ECHO_T}${python_libspec}" >&6
4327
4328
4329 fi
4330
4331
4332 ##
4333 ## Libraries
4334 ##
4335
4336 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4337 then
4338
4339 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4340 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4341 if test "${ac_cv_lib_bsd_main+set}" = set; then
4342   echo $ECHO_N "(cached) $ECHO_C" >&6
4343 else
4344   ac_check_lib_save_LIBS=$LIBS
4345 LIBS="-lbsd  $LIBS"
4346 cat >conftest.$ac_ext <<_ACEOF
4347 #line $LINENO "configure"
4348 #include "confdefs.h"
4349
4350
4351 #ifdef F77_DUMMY_MAIN
4352 #  ifdef __cplusplus
4353      extern "C"
4354 #  endif
4355    int F77_DUMMY_MAIN() { return 1; }
4356 #endif
4357 int
4358 main ()
4359 {
4360 main ();
4361   ;
4362   return 0;
4363 }
4364 _ACEOF
4365 rm -f conftest.$ac_objext conftest$ac_exeext
4366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4367   (eval $ac_link) 2>&5
4368   ac_status=$?
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); } &&
4371          { ac_try='test -s conftest$ac_exeext'
4372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373   (eval $ac_try) 2>&5
4374   ac_status=$?
4375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376   (exit $ac_status); }; }; then
4377   ac_cv_lib_bsd_main=yes
4378 else
4379   echo "$as_me: failed program was:" >&5
4380 cat conftest.$ac_ext >&5
4381 ac_cv_lib_bsd_main=no
4382 fi
4383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4384 LIBS=$ac_check_lib_save_LIBS
4385 fi
4386 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4387 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4388 if test $ac_cv_lib_bsd_main = yes; then
4389   cat >>confdefs.h <<_ACEOF
4390 #define HAVE_LIBBSD 1
4391 _ACEOF
4392
4393   LIBS="-lbsd $LIBS"
4394
4395 fi
4396
4397 fi
4398
4399 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4400 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4401 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4402   echo $ECHO_N "(cached) $ECHO_C" >&6
4403 else
4404   ac_check_lib_save_LIBS=$LIBS
4405 LIBS="-lutil  $LIBS"
4406 cat >conftest.$ac_ext <<_ACEOF
4407 #line $LINENO "configure"
4408 #include "confdefs.h"
4409
4410 /* Override any gcc2 internal prototype to avoid an error.  */
4411 #ifdef __cplusplus
4412 extern "C"
4413 #endif
4414 /* We use char because int might match the return type of a gcc2
4415    builtin and then its argument prototype would still apply.  */
4416 char setproctitle ();
4417 #ifdef F77_DUMMY_MAIN
4418 #  ifdef __cplusplus
4419      extern "C"
4420 #  endif
4421    int F77_DUMMY_MAIN() { return 1; }
4422 #endif
4423 int
4424 main ()
4425 {
4426 setproctitle ();
4427   ;
4428   return 0;
4429 }
4430 _ACEOF
4431 rm -f conftest.$ac_objext conftest$ac_exeext
4432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4433   (eval $ac_link) 2>&5
4434   ac_status=$?
4435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436   (exit $ac_status); } &&
4437          { ac_try='test -s conftest$ac_exeext'
4438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439   (eval $ac_try) 2>&5
4440   ac_status=$?
4441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442   (exit $ac_status); }; }; then
4443   ac_cv_lib_util_setproctitle=yes
4444 else
4445   echo "$as_me: failed program was:" >&5
4446 cat conftest.$ac_ext >&5
4447 ac_cv_lib_util_setproctitle=no
4448 fi
4449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4450 LIBS=$ac_check_lib_save_LIBS
4451 fi
4452 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4453 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4454 if test $ac_cv_lib_util_setproctitle = yes; then
4455   cat >>confdefs.h <<_ACEOF
4456 #define HAVE_LIBUTIL 1
4457 _ACEOF
4458
4459   LIBS="-lutil $LIBS"
4460
4461 fi
4462
4463
4464 echo "$as_me:$LINENO: checking for main in -lm" >&5
4465 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4466 if test "${ac_cv_lib_m_main+set}" = set; then
4467   echo $ECHO_N "(cached) $ECHO_C" >&6
4468 else
4469   ac_check_lib_save_LIBS=$LIBS
4470 LIBS="-lm  $LIBS"
4471 cat >conftest.$ac_ext <<_ACEOF
4472 #line $LINENO "configure"
4473 #include "confdefs.h"
4474
4475
4476 #ifdef F77_DUMMY_MAIN
4477 #  ifdef __cplusplus
4478      extern "C"
4479 #  endif
4480    int F77_DUMMY_MAIN() { return 1; }
4481 #endif
4482 int
4483 main ()
4484 {
4485 main ();
4486   ;
4487   return 0;
4488 }
4489 _ACEOF
4490 rm -f conftest.$ac_objext conftest$ac_exeext
4491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4492   (eval $ac_link) 2>&5
4493   ac_status=$?
4494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495   (exit $ac_status); } &&
4496          { ac_try='test -s conftest$ac_exeext'
4497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498   (eval $ac_try) 2>&5
4499   ac_status=$?
4500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501   (exit $ac_status); }; }; then
4502   ac_cv_lib_m_main=yes
4503 else
4504   echo "$as_me: failed program was:" >&5
4505 cat conftest.$ac_ext >&5
4506 ac_cv_lib_m_main=no
4507 fi
4508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4509 LIBS=$ac_check_lib_save_LIBS
4510 fi
4511 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4512 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4513 if test $ac_cv_lib_m_main = yes; then
4514   cat >>confdefs.h <<_ACEOF
4515 #define HAVE_LIBM 1
4516 _ACEOF
4517
4518   LIBS="-lm $LIBS"
4519
4520 fi
4521
4522
4523 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4524 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4525 if test "${ac_cv_lib_dl_main+set}" = set; then
4526   echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528   ac_check_lib_save_LIBS=$LIBS
4529 LIBS="-ldl  $LIBS"
4530 cat >conftest.$ac_ext <<_ACEOF
4531 #line $LINENO "configure"
4532 #include "confdefs.h"
4533
4534
4535 #ifdef F77_DUMMY_MAIN
4536 #  ifdef __cplusplus
4537      extern "C"
4538 #  endif
4539    int F77_DUMMY_MAIN() { return 1; }
4540 #endif
4541 int
4542 main ()
4543 {
4544 main ();
4545   ;
4546   return 0;
4547 }
4548 _ACEOF
4549 rm -f conftest.$ac_objext conftest$ac_exeext
4550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4551   (eval $ac_link) 2>&5
4552   ac_status=$?
4553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554   (exit $ac_status); } &&
4555          { ac_try='test -s conftest$ac_exeext'
4556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557   (eval $ac_try) 2>&5
4558   ac_status=$?
4559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560   (exit $ac_status); }; }; then
4561   ac_cv_lib_dl_main=yes
4562 else
4563   echo "$as_me: failed program was:" >&5
4564 cat conftest.$ac_ext >&5
4565 ac_cv_lib_dl_main=no
4566 fi
4567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4568 LIBS=$ac_check_lib_save_LIBS
4569 fi
4570 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4571 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4572 if test $ac_cv_lib_dl_main = yes; then
4573   cat >>confdefs.h <<_ACEOF
4574 #define HAVE_LIBDL 1
4575 _ACEOF
4576
4577   LIBS="-ldl $LIBS"
4578
4579 fi
4580
4581
4582 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4583 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4584 if test "${ac_cv_lib_nsl_main+set}" = set; then
4585   echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587   ac_check_lib_save_LIBS=$LIBS
4588 LIBS="-lnsl  $LIBS"
4589 cat >conftest.$ac_ext <<_ACEOF
4590 #line $LINENO "configure"
4591 #include "confdefs.h"
4592
4593
4594 #ifdef F77_DUMMY_MAIN
4595 #  ifdef __cplusplus
4596      extern "C"
4597 #  endif
4598    int F77_DUMMY_MAIN() { return 1; }
4599 #endif
4600 int
4601 main ()
4602 {
4603 main ();
4604   ;
4605   return 0;
4606 }
4607 _ACEOF
4608 rm -f conftest.$ac_objext conftest$ac_exeext
4609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4610   (eval $ac_link) 2>&5
4611   ac_status=$?
4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613   (exit $ac_status); } &&
4614          { ac_try='test -s conftest$ac_exeext'
4615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616   (eval $ac_try) 2>&5
4617   ac_status=$?
4618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619   (exit $ac_status); }; }; then
4620   ac_cv_lib_nsl_main=yes
4621 else
4622   echo "$as_me: failed program was:" >&5
4623 cat conftest.$ac_ext >&5
4624 ac_cv_lib_nsl_main=no
4625 fi
4626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4627 LIBS=$ac_check_lib_save_LIBS
4628 fi
4629 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4630 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4631 if test $ac_cv_lib_nsl_main = yes; then
4632   cat >>confdefs.h <<_ACEOF
4633 #define HAVE_LIBNSL 1
4634 _ACEOF
4635
4636   LIBS="-lnsl $LIBS"
4637
4638 fi
4639
4640
4641 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4642 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4643 if test "${ac_cv_lib_socket_main+set}" = set; then
4644   echo $ECHO_N "(cached) $ECHO_C" >&6
4645 else
4646   ac_check_lib_save_LIBS=$LIBS
4647 LIBS="-lsocket  $LIBS"
4648 cat >conftest.$ac_ext <<_ACEOF
4649 #line $LINENO "configure"
4650 #include "confdefs.h"
4651
4652
4653 #ifdef F77_DUMMY_MAIN
4654 #  ifdef __cplusplus
4655      extern "C"
4656 #  endif
4657    int F77_DUMMY_MAIN() { return 1; }
4658 #endif
4659 int
4660 main ()
4661 {
4662 main ();
4663   ;
4664   return 0;
4665 }
4666 _ACEOF
4667 rm -f conftest.$ac_objext conftest$ac_exeext
4668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4669   (eval $ac_link) 2>&5
4670   ac_status=$?
4671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672   (exit $ac_status); } &&
4673          { ac_try='test -s conftest$ac_exeext'
4674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675   (eval $ac_try) 2>&5
4676   ac_status=$?
4677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678   (exit $ac_status); }; }; then
4679   ac_cv_lib_socket_main=yes
4680 else
4681   echo "$as_me: failed program was:" >&5
4682 cat conftest.$ac_ext >&5
4683 ac_cv_lib_socket_main=no
4684 fi
4685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4686 LIBS=$ac_check_lib_save_LIBS
4687 fi
4688 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4689 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4690 if test $ac_cv_lib_socket_main = yes; then
4691   cat >>confdefs.h <<_ACEOF
4692 #define HAVE_LIBSOCKET 1
4693 _ACEOF
4694
4695   LIBS="-lsocket $LIBS"
4696
4697 fi
4698
4699
4700 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4701 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4702 if test "${ac_cv_lib_ipc_main+set}" = set; then
4703   echo $ECHO_N "(cached) $ECHO_C" >&6
4704 else
4705   ac_check_lib_save_LIBS=$LIBS
4706 LIBS="-lipc  $LIBS"
4707 cat >conftest.$ac_ext <<_ACEOF
4708 #line $LINENO "configure"
4709 #include "confdefs.h"
4710
4711
4712 #ifdef F77_DUMMY_MAIN
4713 #  ifdef __cplusplus
4714      extern "C"
4715 #  endif
4716    int F77_DUMMY_MAIN() { return 1; }
4717 #endif
4718 int
4719 main ()
4720 {
4721 main ();
4722   ;
4723   return 0;
4724 }
4725 _ACEOF
4726 rm -f conftest.$ac_objext conftest$ac_exeext
4727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4728   (eval $ac_link) 2>&5
4729   ac_status=$?
4730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731   (exit $ac_status); } &&
4732          { ac_try='test -s conftest$ac_exeext'
4733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734   (eval $ac_try) 2>&5
4735   ac_status=$?
4736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737   (exit $ac_status); }; }; then
4738   ac_cv_lib_ipc_main=yes
4739 else
4740   echo "$as_me: failed program was:" >&5
4741 cat conftest.$ac_ext >&5
4742 ac_cv_lib_ipc_main=no
4743 fi
4744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4745 LIBS=$ac_check_lib_save_LIBS
4746 fi
4747 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4748 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4749 if test $ac_cv_lib_ipc_main = yes; then
4750   cat >>confdefs.h <<_ACEOF
4751 #define HAVE_LIBIPC 1
4752 _ACEOF
4753
4754   LIBS="-lipc $LIBS"
4755
4756 fi
4757
4758
4759 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4760 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4761 if test "${ac_cv_lib_IPC_main+set}" = set; then
4762   echo $ECHO_N "(cached) $ECHO_C" >&6
4763 else
4764   ac_check_lib_save_LIBS=$LIBS
4765 LIBS="-lIPC  $LIBS"
4766 cat >conftest.$ac_ext <<_ACEOF
4767 #line $LINENO "configure"
4768 #include "confdefs.h"
4769
4770
4771 #ifdef F77_DUMMY_MAIN
4772 #  ifdef __cplusplus
4773      extern "C"
4774 #  endif
4775    int F77_DUMMY_MAIN() { return 1; }
4776 #endif
4777 int
4778 main ()
4779 {
4780 main ();
4781   ;
4782   return 0;
4783 }
4784 _ACEOF
4785 rm -f conftest.$ac_objext conftest$ac_exeext
4786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4787   (eval $ac_link) 2>&5
4788   ac_status=$?
4789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790   (exit $ac_status); } &&
4791          { ac_try='test -s conftest$ac_exeext'
4792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793   (eval $ac_try) 2>&5
4794   ac_status=$?
4795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796   (exit $ac_status); }; }; then
4797   ac_cv_lib_IPC_main=yes
4798 else
4799   echo "$as_me: failed program was:" >&5
4800 cat conftest.$ac_ext >&5
4801 ac_cv_lib_IPC_main=no
4802 fi
4803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4804 LIBS=$ac_check_lib_save_LIBS
4805 fi
4806 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4807 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4808 if test $ac_cv_lib_IPC_main = yes; then
4809   cat >>confdefs.h <<_ACEOF
4810 #define HAVE_LIBIPC 1
4811 _ACEOF
4812
4813   LIBS="-lIPC $LIBS"
4814
4815 fi
4816
4817
4818 echo "$as_me:$LINENO: checking for main in -llc" >&5
4819 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4820 if test "${ac_cv_lib_lc_main+set}" = set; then
4821   echo $ECHO_N "(cached) $ECHO_C" >&6
4822 else
4823   ac_check_lib_save_LIBS=$LIBS
4824 LIBS="-llc  $LIBS"
4825 cat >conftest.$ac_ext <<_ACEOF
4826 #line $LINENO "configure"
4827 #include "confdefs.h"
4828
4829
4830 #ifdef F77_DUMMY_MAIN
4831 #  ifdef __cplusplus
4832      extern "C"
4833 #  endif
4834    int F77_DUMMY_MAIN() { return 1; }
4835 #endif
4836 int
4837 main ()
4838 {
4839 main ();
4840   ;
4841   return 0;
4842 }
4843 _ACEOF
4844 rm -f conftest.$ac_objext conftest$ac_exeext
4845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4846   (eval $ac_link) 2>&5
4847   ac_status=$?
4848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849   (exit $ac_status); } &&
4850          { ac_try='test -s conftest$ac_exeext'
4851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4852   (eval $ac_try) 2>&5
4853   ac_status=$?
4854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855   (exit $ac_status); }; }; then
4856   ac_cv_lib_lc_main=yes
4857 else
4858   echo "$as_me: failed program was:" >&5
4859 cat conftest.$ac_ext >&5
4860 ac_cv_lib_lc_main=no
4861 fi
4862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4863 LIBS=$ac_check_lib_save_LIBS
4864 fi
4865 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4866 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4867 if test $ac_cv_lib_lc_main = yes; then
4868   cat >>confdefs.h <<_ACEOF
4869 #define HAVE_LIBLC 1
4870 _ACEOF
4871
4872   LIBS="-llc $LIBS"
4873
4874 fi
4875
4876
4877 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4878 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4879 if test "${ac_cv_lib_dld_main+set}" = set; then
4880   echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882   ac_check_lib_save_LIBS=$LIBS
4883 LIBS="-ldld  $LIBS"
4884 cat >conftest.$ac_ext <<_ACEOF
4885 #line $LINENO "configure"
4886 #include "confdefs.h"
4887
4888
4889 #ifdef F77_DUMMY_MAIN
4890 #  ifdef __cplusplus
4891      extern "C"
4892 #  endif
4893    int F77_DUMMY_MAIN() { return 1; }
4894 #endif
4895 int
4896 main ()
4897 {
4898 main ();
4899   ;
4900   return 0;
4901 }
4902 _ACEOF
4903 rm -f conftest.$ac_objext conftest$ac_exeext
4904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4905   (eval $ac_link) 2>&5
4906   ac_status=$?
4907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908   (exit $ac_status); } &&
4909          { ac_try='test -s conftest$ac_exeext'
4910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911   (eval $ac_try) 2>&5
4912   ac_status=$?
4913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914   (exit $ac_status); }; }; then
4915   ac_cv_lib_dld_main=yes
4916 else
4917   echo "$as_me: failed program was:" >&5
4918 cat conftest.$ac_ext >&5
4919 ac_cv_lib_dld_main=no
4920 fi
4921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4922 LIBS=$ac_check_lib_save_LIBS
4923 fi
4924 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4925 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4926 if test $ac_cv_lib_dld_main = yes; then
4927   cat >>confdefs.h <<_ACEOF
4928 #define HAVE_LIBDLD 1
4929 _ACEOF
4930
4931   LIBS="-ldld $LIBS"
4932
4933 fi
4934
4935
4936 echo "$as_me:$LINENO: checking for main in -lld" >&5
4937 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4938 if test "${ac_cv_lib_ld_main+set}" = set; then
4939   echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941   ac_check_lib_save_LIBS=$LIBS
4942 LIBS="-lld  $LIBS"
4943 cat >conftest.$ac_ext <<_ACEOF
4944 #line $LINENO "configure"
4945 #include "confdefs.h"
4946
4947
4948 #ifdef F77_DUMMY_MAIN
4949 #  ifdef __cplusplus
4950      extern "C"
4951 #  endif
4952    int F77_DUMMY_MAIN() { return 1; }
4953 #endif
4954 int
4955 main ()
4956 {
4957 main ();
4958   ;
4959   return 0;
4960 }
4961 _ACEOF
4962 rm -f conftest.$ac_objext conftest$ac_exeext
4963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4964   (eval $ac_link) 2>&5
4965   ac_status=$?
4966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967   (exit $ac_status); } &&
4968          { ac_try='test -s conftest$ac_exeext'
4969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970   (eval $ac_try) 2>&5
4971   ac_status=$?
4972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973   (exit $ac_status); }; }; then
4974   ac_cv_lib_ld_main=yes
4975 else
4976   echo "$as_me: failed program was:" >&5
4977 cat conftest.$ac_ext >&5
4978 ac_cv_lib_ld_main=no
4979 fi
4980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4981 LIBS=$ac_check_lib_save_LIBS
4982 fi
4983 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
4984 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
4985 if test $ac_cv_lib_ld_main = yes; then
4986   cat >>confdefs.h <<_ACEOF
4987 #define HAVE_LIBLD 1
4988 _ACEOF
4989
4990   LIBS="-lld $LIBS"
4991
4992 fi
4993
4994
4995 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
4996 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
4997 if test "${ac_cv_lib_compat_main+set}" = set; then
4998   echo $ECHO_N "(cached) $ECHO_C" >&6
4999 else
5000   ac_check_lib_save_LIBS=$LIBS
5001 LIBS="-lcompat  $LIBS"
5002 cat >conftest.$ac_ext <<_ACEOF
5003 #line $LINENO "configure"
5004 #include "confdefs.h"
5005
5006
5007 #ifdef F77_DUMMY_MAIN
5008 #  ifdef __cplusplus
5009      extern "C"
5010 #  endif
5011    int F77_DUMMY_MAIN() { return 1; }
5012 #endif
5013 int
5014 main ()
5015 {
5016 main ();
5017   ;
5018   return 0;
5019 }
5020 _ACEOF
5021 rm -f conftest.$ac_objext conftest$ac_exeext
5022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5023   (eval $ac_link) 2>&5
5024   ac_status=$?
5025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026   (exit $ac_status); } &&
5027          { ac_try='test -s conftest$ac_exeext'
5028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5029   (eval $ac_try) 2>&5
5030   ac_status=$?
5031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032   (exit $ac_status); }; }; then
5033   ac_cv_lib_compat_main=yes
5034 else
5035   echo "$as_me: failed program was:" >&5
5036 cat conftest.$ac_ext >&5
5037 ac_cv_lib_compat_main=no
5038 fi
5039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5040 LIBS=$ac_check_lib_save_LIBS
5041 fi
5042 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5043 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5044 if test $ac_cv_lib_compat_main = yes; then
5045   cat >>confdefs.h <<_ACEOF
5046 #define HAVE_LIBCOMPAT 1
5047 _ACEOF
5048
5049   LIBS="-lcompat $LIBS"
5050
5051 fi
5052
5053
5054 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5055 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5056 if test "${ac_cv_lib_BSD_main+set}" = set; then
5057   echo $ECHO_N "(cached) $ECHO_C" >&6
5058 else
5059   ac_check_lib_save_LIBS=$LIBS
5060 LIBS="-lBSD  $LIBS"
5061 cat >conftest.$ac_ext <<_ACEOF
5062 #line $LINENO "configure"
5063 #include "confdefs.h"
5064
5065
5066 #ifdef F77_DUMMY_MAIN
5067 #  ifdef __cplusplus
5068      extern "C"
5069 #  endif
5070    int F77_DUMMY_MAIN() { return 1; }
5071 #endif
5072 int
5073 main ()
5074 {
5075 main ();
5076   ;
5077   return 0;
5078 }
5079 _ACEOF
5080 rm -f conftest.$ac_objext conftest$ac_exeext
5081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5082   (eval $ac_link) 2>&5
5083   ac_status=$?
5084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085   (exit $ac_status); } &&
5086          { ac_try='test -s conftest$ac_exeext'
5087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088   (eval $ac_try) 2>&5
5089   ac_status=$?
5090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091   (exit $ac_status); }; }; then
5092   ac_cv_lib_BSD_main=yes
5093 else
5094   echo "$as_me: failed program was:" >&5
5095 cat conftest.$ac_ext >&5
5096 ac_cv_lib_BSD_main=no
5097 fi
5098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5099 LIBS=$ac_check_lib_save_LIBS
5100 fi
5101 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5102 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5103 if test $ac_cv_lib_BSD_main = yes; then
5104   cat >>confdefs.h <<_ACEOF
5105 #define HAVE_LIBBSD 1
5106 _ACEOF
5107
5108   LIBS="-lBSD $LIBS"
5109
5110 fi
5111
5112
5113 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5114 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5115 if test "${ac_cv_lib_gen_main+set}" = set; then
5116   echo $ECHO_N "(cached) $ECHO_C" >&6
5117 else
5118   ac_check_lib_save_LIBS=$LIBS
5119 LIBS="-lgen  $LIBS"
5120 cat >conftest.$ac_ext <<_ACEOF
5121 #line $LINENO "configure"
5122 #include "confdefs.h"
5123
5124
5125 #ifdef F77_DUMMY_MAIN
5126 #  ifdef __cplusplus
5127      extern "C"
5128 #  endif
5129    int F77_DUMMY_MAIN() { return 1; }
5130 #endif
5131 int
5132 main ()
5133 {
5134 main ();
5135   ;
5136   return 0;
5137 }
5138 _ACEOF
5139 rm -f conftest.$ac_objext conftest$ac_exeext
5140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5141   (eval $ac_link) 2>&5
5142   ac_status=$?
5143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144   (exit $ac_status); } &&
5145          { ac_try='test -s conftest$ac_exeext'
5146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147   (eval $ac_try) 2>&5
5148   ac_status=$?
5149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150   (exit $ac_status); }; }; then
5151   ac_cv_lib_gen_main=yes
5152 else
5153   echo "$as_me: failed program was:" >&5
5154 cat conftest.$ac_ext >&5
5155 ac_cv_lib_gen_main=no
5156 fi
5157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5158 LIBS=$ac_check_lib_save_LIBS
5159 fi
5160 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5161 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5162 if test $ac_cv_lib_gen_main = yes; then
5163   cat >>confdefs.h <<_ACEOF
5164 #define HAVE_LIBGEN 1
5165 _ACEOF
5166
5167   LIBS="-lgen $LIBS"
5168
5169 fi
5170
5171
5172 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5173 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5174 if test "${ac_cv_lib_PW_main+set}" = set; then
5175   echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177   ac_check_lib_save_LIBS=$LIBS
5178 LIBS="-lPW  $LIBS"
5179 cat >conftest.$ac_ext <<_ACEOF
5180 #line $LINENO "configure"
5181 #include "confdefs.h"
5182
5183
5184 #ifdef F77_DUMMY_MAIN
5185 #  ifdef __cplusplus
5186      extern "C"
5187 #  endif
5188    int F77_DUMMY_MAIN() { return 1; }
5189 #endif
5190 int
5191 main ()
5192 {
5193 main ();
5194   ;
5195   return 0;
5196 }
5197 _ACEOF
5198 rm -f conftest.$ac_objext conftest$ac_exeext
5199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5200   (eval $ac_link) 2>&5
5201   ac_status=$?
5202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203   (exit $ac_status); } &&
5204          { ac_try='test -s conftest$ac_exeext'
5205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206   (eval $ac_try) 2>&5
5207   ac_status=$?
5208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209   (exit $ac_status); }; }; then
5210   ac_cv_lib_PW_main=yes
5211 else
5212   echo "$as_me: failed program was:" >&5
5213 cat conftest.$ac_ext >&5
5214 ac_cv_lib_PW_main=no
5215 fi
5216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5217 LIBS=$ac_check_lib_save_LIBS
5218 fi
5219 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5220 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5221 if test $ac_cv_lib_PW_main = yes; then
5222   cat >>confdefs.h <<_ACEOF
5223 #define HAVE_LIBPW 1
5224 _ACEOF
5225
5226   LIBS="-lPW $LIBS"
5227
5228 fi
5229
5230
5231 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5232 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5233 if test "${ac_cv_lib_resolv_main+set}" = set; then
5234   echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236   ac_check_lib_save_LIBS=$LIBS
5237 LIBS="-lresolv  $LIBS"
5238 cat >conftest.$ac_ext <<_ACEOF
5239 #line $LINENO "configure"
5240 #include "confdefs.h"
5241
5242
5243 #ifdef F77_DUMMY_MAIN
5244 #  ifdef __cplusplus
5245      extern "C"
5246 #  endif
5247    int F77_DUMMY_MAIN() { return 1; }
5248 #endif
5249 int
5250 main ()
5251 {
5252 main ();
5253   ;
5254   return 0;
5255 }
5256 _ACEOF
5257 rm -f conftest.$ac_objext conftest$ac_exeext
5258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5259   (eval $ac_link) 2>&5
5260   ac_status=$?
5261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262   (exit $ac_status); } &&
5263          { ac_try='test -s conftest$ac_exeext'
5264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265   (eval $ac_try) 2>&5
5266   ac_status=$?
5267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268   (exit $ac_status); }; }; then
5269   ac_cv_lib_resolv_main=yes
5270 else
5271   echo "$as_me: failed program was:" >&5
5272 cat conftest.$ac_ext >&5
5273 ac_cv_lib_resolv_main=no
5274 fi
5275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5276 LIBS=$ac_check_lib_save_LIBS
5277 fi
5278 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5279 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5280 if test $ac_cv_lib_resolv_main = yes; then
5281   cat >>confdefs.h <<_ACEOF
5282 #define HAVE_LIBRESOLV 1
5283 _ACEOF
5284
5285   LIBS="-lresolv $LIBS"
5286
5287 fi
5288
5289 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5290 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5291 if test "${ac_cv_search_getopt_long+set}" = set; then
5292   echo $ECHO_N "(cached) $ECHO_C" >&6
5293 else
5294   ac_func_search_save_LIBS=$LIBS
5295 ac_cv_search_getopt_long=no
5296 cat >conftest.$ac_ext <<_ACEOF
5297 #line $LINENO "configure"
5298 #include "confdefs.h"
5299
5300 /* Override any gcc2 internal prototype to avoid an error.  */
5301 #ifdef __cplusplus
5302 extern "C"
5303 #endif
5304 /* We use char because int might match the return type of a gcc2
5305    builtin and then its argument prototype would still apply.  */
5306 char getopt_long ();
5307 #ifdef F77_DUMMY_MAIN
5308 #  ifdef __cplusplus
5309      extern "C"
5310 #  endif
5311    int F77_DUMMY_MAIN() { return 1; }
5312 #endif
5313 int
5314 main ()
5315 {
5316 getopt_long ();
5317   ;
5318   return 0;
5319 }
5320 _ACEOF
5321 rm -f conftest.$ac_objext conftest$ac_exeext
5322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5323   (eval $ac_link) 2>&5
5324   ac_status=$?
5325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326   (exit $ac_status); } &&
5327          { ac_try='test -s conftest$ac_exeext'
5328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329   (eval $ac_try) 2>&5
5330   ac_status=$?
5331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332   (exit $ac_status); }; }; then
5333   ac_cv_search_getopt_long="none required"
5334 else
5335   echo "$as_me: failed program was:" >&5
5336 cat conftest.$ac_ext >&5
5337 fi
5338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5339 if test "$ac_cv_search_getopt_long" = no; then
5340   for ac_lib in getopt; do
5341     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5342     cat >conftest.$ac_ext <<_ACEOF
5343 #line $LINENO "configure"
5344 #include "confdefs.h"
5345
5346 /* Override any gcc2 internal prototype to avoid an error.  */
5347 #ifdef __cplusplus
5348 extern "C"
5349 #endif
5350 /* We use char because int might match the return type of a gcc2
5351    builtin and then its argument prototype would still apply.  */
5352 char getopt_long ();
5353 #ifdef F77_DUMMY_MAIN
5354 #  ifdef __cplusplus
5355      extern "C"
5356 #  endif
5357    int F77_DUMMY_MAIN() { return 1; }
5358 #endif
5359 int
5360 main ()
5361 {
5362 getopt_long ();
5363   ;
5364   return 0;
5365 }
5366 _ACEOF
5367 rm -f conftest.$ac_objext conftest$ac_exeext
5368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5369   (eval $ac_link) 2>&5
5370   ac_status=$?
5371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372   (exit $ac_status); } &&
5373          { ac_try='test -s conftest$ac_exeext'
5374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375   (eval $ac_try) 2>&5
5376   ac_status=$?
5377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378   (exit $ac_status); }; }; then
5379   ac_cv_search_getopt_long="-l$ac_lib"
5380 break
5381 else
5382   echo "$as_me: failed program was:" >&5
5383 cat conftest.$ac_ext >&5
5384 fi
5385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5386   done
5387 fi
5388 LIBS=$ac_func_search_save_LIBS
5389 fi
5390 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5391 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5392 if test "$ac_cv_search_getopt_long" != no; then
5393   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5394
5395 fi
5396
5397 # QNX:
5398
5399 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5400 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5401 if test "${ac_cv_lib_unix_main+set}" = set; then
5402   echo $ECHO_N "(cached) $ECHO_C" >&6
5403 else
5404   ac_check_lib_save_LIBS=$LIBS
5405 LIBS="-lunix  $LIBS"
5406 cat >conftest.$ac_ext <<_ACEOF
5407 #line $LINENO "configure"
5408 #include "confdefs.h"
5409
5410
5411 #ifdef F77_DUMMY_MAIN
5412 #  ifdef __cplusplus
5413      extern "C"
5414 #  endif
5415    int F77_DUMMY_MAIN() { return 1; }
5416 #endif
5417 int
5418 main ()
5419 {
5420 main ();
5421   ;
5422   return 0;
5423 }
5424 _ACEOF
5425 rm -f conftest.$ac_objext conftest$ac_exeext
5426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5427   (eval $ac_link) 2>&5
5428   ac_status=$?
5429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430   (exit $ac_status); } &&
5431          { ac_try='test -s conftest$ac_exeext'
5432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433   (eval $ac_try) 2>&5
5434   ac_status=$?
5435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436   (exit $ac_status); }; }; then
5437   ac_cv_lib_unix_main=yes
5438 else
5439   echo "$as_me: failed program was:" >&5
5440 cat conftest.$ac_ext >&5
5441 ac_cv_lib_unix_main=no
5442 fi
5443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5444 LIBS=$ac_check_lib_save_LIBS
5445 fi
5446 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5447 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5448 if test $ac_cv_lib_unix_main = yes; then
5449   cat >>confdefs.h <<_ACEOF
5450 #define HAVE_LIBUNIX 1
5451 _ACEOF
5452
5453   LIBS="-lunix $LIBS"
5454
5455 fi
5456
5457 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5458 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5459 if test "${ac_cv_search_crypt+set}" = set; then
5460   echo $ECHO_N "(cached) $ECHO_C" >&6
5461 else
5462   ac_func_search_save_LIBS=$LIBS
5463 ac_cv_search_crypt=no
5464 cat >conftest.$ac_ext <<_ACEOF
5465 #line $LINENO "configure"
5466 #include "confdefs.h"
5467
5468 /* Override any gcc2 internal prototype to avoid an error.  */
5469 #ifdef __cplusplus
5470 extern "C"
5471 #endif
5472 /* We use char because int might match the return type of a gcc2
5473    builtin and then its argument prototype would still apply.  */
5474 char crypt ();
5475 #ifdef F77_DUMMY_MAIN
5476 #  ifdef __cplusplus
5477      extern "C"
5478 #  endif
5479    int F77_DUMMY_MAIN() { return 1; }
5480 #endif
5481 int
5482 main ()
5483 {
5484 crypt ();
5485   ;
5486   return 0;
5487 }
5488 _ACEOF
5489 rm -f conftest.$ac_objext conftest$ac_exeext
5490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5491   (eval $ac_link) 2>&5
5492   ac_status=$?
5493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494   (exit $ac_status); } &&
5495          { ac_try='test -s conftest$ac_exeext'
5496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497   (eval $ac_try) 2>&5
5498   ac_status=$?
5499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500   (exit $ac_status); }; }; then
5501   ac_cv_search_crypt="none required"
5502 else
5503   echo "$as_me: failed program was:" >&5
5504 cat conftest.$ac_ext >&5
5505 fi
5506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5507 if test "$ac_cv_search_crypt" = no; then
5508   for ac_lib in crypt; do
5509     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5510     cat >conftest.$ac_ext <<_ACEOF
5511 #line $LINENO "configure"
5512 #include "confdefs.h"
5513
5514 /* Override any gcc2 internal prototype to avoid an error.  */
5515 #ifdef __cplusplus
5516 extern "C"
5517 #endif
5518 /* We use char because int might match the return type of a gcc2
5519    builtin and then its argument prototype would still apply.  */
5520 char crypt ();
5521 #ifdef F77_DUMMY_MAIN
5522 #  ifdef __cplusplus
5523      extern "C"
5524 #  endif
5525    int F77_DUMMY_MAIN() { return 1; }
5526 #endif
5527 int
5528 main ()
5529 {
5530 crypt ();
5531   ;
5532   return 0;
5533 }
5534 _ACEOF
5535 rm -f conftest.$ac_objext conftest$ac_exeext
5536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5537   (eval $ac_link) 2>&5
5538   ac_status=$?
5539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540   (exit $ac_status); } &&
5541          { ac_try='test -s conftest$ac_exeext'
5542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543   (eval $ac_try) 2>&5
5544   ac_status=$?
5545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546   (exit $ac_status); }; }; then
5547   ac_cv_search_crypt="-l$ac_lib"
5548 break
5549 else
5550   echo "$as_me: failed program was:" >&5
5551 cat conftest.$ac_ext >&5
5552 fi
5553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5554   done
5555 fi
5556 LIBS=$ac_func_search_save_LIBS
5557 fi
5558 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5559 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5560 if test "$ac_cv_search_crypt" != no; then
5561   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5562
5563 fi
5564
5565 # BeOS:
5566
5567 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5568 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5569 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5570   echo $ECHO_N "(cached) $ECHO_C" >&6
5571 else
5572   ac_check_lib_save_LIBS=$LIBS
5573 LIBS="-lbind  $LIBS"
5574 cat >conftest.$ac_ext <<_ACEOF
5575 #line $LINENO "configure"
5576 #include "confdefs.h"
5577
5578 /* Override any gcc2 internal prototype to avoid an error.  */
5579 #ifdef __cplusplus
5580 extern "C"
5581 #endif
5582 /* We use char because int might match the return type of a gcc2
5583    builtin and then its argument prototype would still apply.  */
5584 char __inet_ntoa ();
5585 #ifdef F77_DUMMY_MAIN
5586 #  ifdef __cplusplus
5587      extern "C"
5588 #  endif
5589    int F77_DUMMY_MAIN() { return 1; }
5590 #endif
5591 int
5592 main ()
5593 {
5594 __inet_ntoa ();
5595   ;
5596   return 0;
5597 }
5598 _ACEOF
5599 rm -f conftest.$ac_objext conftest$ac_exeext
5600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5601   (eval $ac_link) 2>&5
5602   ac_status=$?
5603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604   (exit $ac_status); } &&
5605          { ac_try='test -s conftest$ac_exeext'
5606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5607   (eval $ac_try) 2>&5
5608   ac_status=$?
5609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610   (exit $ac_status); }; }; then
5611   ac_cv_lib_bind___inet_ntoa=yes
5612 else
5613   echo "$as_me: failed program was:" >&5
5614 cat conftest.$ac_ext >&5
5615 ac_cv_lib_bind___inet_ntoa=no
5616 fi
5617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5618 LIBS=$ac_check_lib_save_LIBS
5619 fi
5620 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5621 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5622 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5623   cat >>confdefs.h <<_ACEOF
5624 #define HAVE_LIBBIND 1
5625 _ACEOF
5626
5627   LIBS="-lbind $LIBS"
5628
5629 fi
5630
5631 # Solaris:
5632 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5633 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5634 if test "${ac_cv_search_fdatasync+set}" = set; then
5635   echo $ECHO_N "(cached) $ECHO_C" >&6
5636 else
5637   ac_func_search_save_LIBS=$LIBS
5638 ac_cv_search_fdatasync=no
5639 cat >conftest.$ac_ext <<_ACEOF
5640 #line $LINENO "configure"
5641 #include "confdefs.h"
5642
5643 /* Override any gcc2 internal prototype to avoid an error.  */
5644 #ifdef __cplusplus
5645 extern "C"
5646 #endif
5647 /* We use char because int might match the return type of a gcc2
5648    builtin and then its argument prototype would still apply.  */
5649 char fdatasync ();
5650 #ifdef F77_DUMMY_MAIN
5651 #  ifdef __cplusplus
5652      extern "C"
5653 #  endif
5654    int F77_DUMMY_MAIN() { return 1; }
5655 #endif
5656 int
5657 main ()
5658 {
5659 fdatasync ();
5660   ;
5661   return 0;
5662 }
5663 _ACEOF
5664 rm -f conftest.$ac_objext conftest$ac_exeext
5665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5666   (eval $ac_link) 2>&5
5667   ac_status=$?
5668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669   (exit $ac_status); } &&
5670          { ac_try='test -s conftest$ac_exeext'
5671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672   (eval $ac_try) 2>&5
5673   ac_status=$?
5674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); }; }; then
5676   ac_cv_search_fdatasync="none required"
5677 else
5678   echo "$as_me: failed program was:" >&5
5679 cat conftest.$ac_ext >&5
5680 fi
5681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5682 if test "$ac_cv_search_fdatasync" = no; then
5683   for ac_lib in rt posix4; do
5684     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5685     cat >conftest.$ac_ext <<_ACEOF
5686 #line $LINENO "configure"
5687 #include "confdefs.h"
5688
5689 /* Override any gcc2 internal prototype to avoid an error.  */
5690 #ifdef __cplusplus
5691 extern "C"
5692 #endif
5693 /* We use char because int might match the return type of a gcc2
5694    builtin and then its argument prototype would still apply.  */
5695 char fdatasync ();
5696 #ifdef F77_DUMMY_MAIN
5697 #  ifdef __cplusplus
5698      extern "C"
5699 #  endif
5700    int F77_DUMMY_MAIN() { return 1; }
5701 #endif
5702 int
5703 main ()
5704 {
5705 fdatasync ();
5706   ;
5707   return 0;
5708 }
5709 _ACEOF
5710 rm -f conftest.$ac_objext conftest$ac_exeext
5711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5712   (eval $ac_link) 2>&5
5713   ac_status=$?
5714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715   (exit $ac_status); } &&
5716          { ac_try='test -s conftest$ac_exeext'
5717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5718   (eval $ac_try) 2>&5
5719   ac_status=$?
5720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721   (exit $ac_status); }; }; then
5722   ac_cv_search_fdatasync="-l$ac_lib"
5723 break
5724 else
5725   echo "$as_me: failed program was:" >&5
5726 cat conftest.$ac_ext >&5
5727 fi
5728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5729   done
5730 fi
5731 LIBS=$ac_func_search_save_LIBS
5732 fi
5733 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5734 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5735 if test "$ac_cv_search_fdatasync" != no; then
5736   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5737
5738 fi
5739
5740
5741 if test "$with_readline" = yes; then
5742
5743 echo "$as_me:$LINENO: checking for readline" >&5
5744 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5745
5746 if test "${pgac_cv_check_readline+set}" = set; then
5747   echo $ECHO_N "(cached) $ECHO_C" >&6
5748 else
5749   pgac_cv_check_readline=no
5750 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5751   for pgac_rllib in -lreadline -ledit ; do
5752     pgac_save_LIBS=$LIBS
5753     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5754     cat >conftest.$ac_ext <<_ACEOF
5755 #line $LINENO "configure"
5756 #include "confdefs.h"
5757
5758 /* Override any gcc2 internal prototype to avoid an error.  */
5759 #ifdef __cplusplus
5760 extern "C"
5761 #endif
5762 /* We use char because int might match the return type of a gcc2
5763    builtin and then its argument prototype would still apply.  */
5764 char readline ();
5765 #ifdef F77_DUMMY_MAIN
5766 #  ifdef __cplusplus
5767      extern "C"
5768 #  endif
5769    int F77_DUMMY_MAIN() { return 1; }
5770 #endif
5771 int
5772 main ()
5773 {
5774 readline ();
5775   ;
5776   return 0;
5777 }
5778 _ACEOF
5779 rm -f conftest.$ac_objext conftest$ac_exeext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5781   (eval $ac_link) 2>&5
5782   ac_status=$?
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); } &&
5785          { ac_try='test -s conftest$ac_exeext'
5786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787   (eval $ac_try) 2>&5
5788   ac_status=$?
5789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790   (exit $ac_status); }; }; then
5791
5792       # NetBSD and OpenBSD have a broken linker that does not
5793       # recognize dependent libraries
5794       case $host_os in netbsd* | openbsd* )
5795         case $pgac_lib in
5796           *curses*) ;;
5797           *) pgac_lib=" -lcurses" ;;
5798         esac
5799       esac
5800
5801       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5802       break 2
5803
5804 else
5805   echo "$as_me: failed program was:" >&5
5806 cat conftest.$ac_ext >&5
5807 fi
5808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5809     LIBS=$pgac_save_LIBS
5810   done
5811 done
5812 LIBS=$pgac_save_LIBS
5813
5814 fi
5815
5816 if test "$pgac_cv_check_readline" != no ; then
5817
5818 cat >>confdefs.h <<\_ACEOF
5819 #define HAVE_LIBREADLINE 1
5820 _ACEOF
5821
5822   LIBS="$pgac_cv_check_readline $LIBS"
5823   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5824 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5825 else
5826   echo "$as_me:$LINENO: result: no" >&5
5827 echo "${ECHO_T}no" >&6
5828 fi
5829   if test x"$pgac_cv_check_readline" = x"no"; then
5830     { { echo "$as_me:$LINENO: error: readline library not found
5831 Use --without-readline to disable readline support." >&5
5832 echo "$as_me: error: readline library not found
5833 Use --without-readline to disable readline support." >&2;}
5834    { (exit 1); exit 1; }; }
5835   fi
5836 fi
5837
5838 if test "$with_zlib" = yes; then
5839
5840 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5841 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5842 if test "${ac_cv_lib_z_inflate+set}" = set; then
5843   echo $ECHO_N "(cached) $ECHO_C" >&6
5844 else
5845   ac_check_lib_save_LIBS=$LIBS
5846 LIBS="-lz  $LIBS"
5847 cat >conftest.$ac_ext <<_ACEOF
5848 #line $LINENO "configure"
5849 #include "confdefs.h"
5850
5851 /* Override any gcc2 internal prototype to avoid an error.  */
5852 #ifdef __cplusplus
5853 extern "C"
5854 #endif
5855 /* We use char because int might match the return type of a gcc2
5856    builtin and then its argument prototype would still apply.  */
5857 char inflate ();
5858 #ifdef F77_DUMMY_MAIN
5859 #  ifdef __cplusplus
5860      extern "C"
5861 #  endif
5862    int F77_DUMMY_MAIN() { return 1; }
5863 #endif
5864 int
5865 main ()
5866 {
5867 inflate ();
5868   ;
5869   return 0;
5870 }
5871 _ACEOF
5872 rm -f conftest.$ac_objext conftest$ac_exeext
5873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5874   (eval $ac_link) 2>&5
5875   ac_status=$?
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); } &&
5878          { ac_try='test -s conftest$ac_exeext'
5879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880   (eval $ac_try) 2>&5
5881   ac_status=$?
5882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883   (exit $ac_status); }; }; then
5884   ac_cv_lib_z_inflate=yes
5885 else
5886   echo "$as_me: failed program was:" >&5
5887 cat conftest.$ac_ext >&5
5888 ac_cv_lib_z_inflate=no
5889 fi
5890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5891 LIBS=$ac_check_lib_save_LIBS
5892 fi
5893 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
5894 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
5895 if test $ac_cv_lib_z_inflate = yes; then
5896   cat >>confdefs.h <<_ACEOF
5897 #define HAVE_LIBZ 1
5898 _ACEOF
5899
5900   LIBS="-lz $LIBS"
5901
5902 else
5903   { { echo "$as_me:$LINENO: error: zlib library not found
5904 Use --without-zlib to disable zlib support." >&5
5905 echo "$as_me: error: zlib library not found
5906 Use --without-zlib to disable zlib support." >&2;}
5907    { (exit 1); exit 1; }; }
5908 fi
5909
5910 fi
5911
5912 if test "$with_krb4" = yes ; then
5913
5914 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
5915 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
5916 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
5917   echo $ECHO_N "(cached) $ECHO_C" >&6
5918 else
5919   ac_check_lib_save_LIBS=$LIBS
5920 LIBS="-ldes  $LIBS"
5921 cat >conftest.$ac_ext <<_ACEOF
5922 #line $LINENO "configure"
5923 #include "confdefs.h"
5924
5925 /* Override any gcc2 internal prototype to avoid an error.  */
5926 #ifdef __cplusplus
5927 extern "C"
5928 #endif
5929 /* We use char because int might match the return type of a gcc2
5930    builtin and then its argument prototype would still apply.  */
5931 char des_encrypt ();
5932 #ifdef F77_DUMMY_MAIN
5933 #  ifdef __cplusplus
5934      extern "C"
5935 #  endif
5936    int F77_DUMMY_MAIN() { return 1; }
5937 #endif
5938 int
5939 main ()
5940 {
5941 des_encrypt ();
5942   ;
5943   return 0;
5944 }
5945 _ACEOF
5946 rm -f conftest.$ac_objext conftest$ac_exeext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5948   (eval $ac_link) 2>&5
5949   ac_status=$?
5950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951   (exit $ac_status); } &&
5952          { ac_try='test -s conftest$ac_exeext'
5953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954   (eval $ac_try) 2>&5
5955   ac_status=$?
5956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957   (exit $ac_status); }; }; then
5958   ac_cv_lib_des_des_encrypt=yes
5959 else
5960   echo "$as_me: failed program was:" >&5
5961 cat conftest.$ac_ext >&5
5962 ac_cv_lib_des_des_encrypt=no
5963 fi
5964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5965 LIBS=$ac_check_lib_save_LIBS
5966 fi
5967 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
5968 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
5969 if test $ac_cv_lib_des_des_encrypt = yes; then
5970   cat >>confdefs.h <<_ACEOF
5971 #define HAVE_LIBDES 1
5972 _ACEOF
5973
5974   LIBS="-ldes $LIBS"
5975
5976 else
5977   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
5978 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
5979    { (exit 1); exit 1; }; }
5980 fi
5981
5982
5983 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
5984 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
5985 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
5986   echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988   ac_check_lib_save_LIBS=$LIBS
5989 LIBS="-lkrb  $LIBS"
5990 cat >conftest.$ac_ext <<_ACEOF
5991 #line $LINENO "configure"
5992 #include "confdefs.h"
5993
5994 /* Override any gcc2 internal prototype to avoid an error.  */
5995 #ifdef __cplusplus
5996 extern "C"
5997 #endif
5998 /* We use char because int might match the return type of a gcc2
5999    builtin and then its argument prototype would still apply.  */
6000 char krb_sendauth ();
6001 #ifdef F77_DUMMY_MAIN
6002 #  ifdef __cplusplus
6003      extern "C"
6004 #  endif
6005    int F77_DUMMY_MAIN() { return 1; }
6006 #endif
6007 int
6008 main ()
6009 {
6010 krb_sendauth ();
6011   ;
6012   return 0;
6013 }
6014 _ACEOF
6015 rm -f conftest.$ac_objext conftest$ac_exeext
6016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6017   (eval $ac_link) 2>&5
6018   ac_status=$?
6019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020   (exit $ac_status); } &&
6021          { ac_try='test -s conftest$ac_exeext'
6022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023   (eval $ac_try) 2>&5
6024   ac_status=$?
6025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026   (exit $ac_status); }; }; then
6027   ac_cv_lib_krb_krb_sendauth=yes
6028 else
6029   echo "$as_me: failed program was:" >&5
6030 cat conftest.$ac_ext >&5
6031 ac_cv_lib_krb_krb_sendauth=no
6032 fi
6033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6034 LIBS=$ac_check_lib_save_LIBS
6035 fi
6036 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6037 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6038 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6039   cat >>confdefs.h <<_ACEOF
6040 #define HAVE_LIBKRB 1
6041 _ACEOF
6042
6043   LIBS="-lkrb $LIBS"
6044
6045 else
6046   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6047 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6048    { (exit 1); exit 1; }; }
6049 fi
6050
6051 fi
6052
6053 if test "$with_krb5" = yes ; then
6054   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6055 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6056 if test "${ac_cv_search_com_err+set}" = set; then
6057   echo $ECHO_N "(cached) $ECHO_C" >&6
6058 else
6059   ac_func_search_save_LIBS=$LIBS
6060 ac_cv_search_com_err=no
6061 cat >conftest.$ac_ext <<_ACEOF
6062 #line $LINENO "configure"
6063 #include "confdefs.h"
6064
6065 /* Override any gcc2 internal prototype to avoid an error.  */
6066 #ifdef __cplusplus
6067 extern "C"
6068 #endif
6069 /* We use char because int might match the return type of a gcc2
6070    builtin and then its argument prototype would still apply.  */
6071 char com_err ();
6072 #ifdef F77_DUMMY_MAIN
6073 #  ifdef __cplusplus
6074      extern "C"
6075 #  endif
6076    int F77_DUMMY_MAIN() { return 1; }
6077 #endif
6078 int
6079 main ()
6080 {
6081 com_err ();
6082   ;
6083   return 0;
6084 }
6085 _ACEOF
6086 rm -f conftest.$ac_objext conftest$ac_exeext
6087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6088   (eval $ac_link) 2>&5
6089   ac_status=$?
6090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091   (exit $ac_status); } &&
6092          { ac_try='test -s conftest$ac_exeext'
6093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094   (eval $ac_try) 2>&5
6095   ac_status=$?
6096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097   (exit $ac_status); }; }; then
6098   ac_cv_search_com_err="none required"
6099 else
6100   echo "$as_me: failed program was:" >&5
6101 cat conftest.$ac_ext >&5
6102 fi
6103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6104 if test "$ac_cv_search_com_err" = no; then
6105   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6106     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6107     cat >conftest.$ac_ext <<_ACEOF
6108 #line $LINENO "configure"
6109 #include "confdefs.h"
6110
6111 /* Override any gcc2 internal prototype to avoid an error.  */
6112 #ifdef __cplusplus
6113 extern "C"
6114 #endif
6115 /* We use char because int might match the return type of a gcc2
6116    builtin and then its argument prototype would still apply.  */
6117 char com_err ();
6118 #ifdef F77_DUMMY_MAIN
6119 #  ifdef __cplusplus
6120      extern "C"
6121 #  endif
6122    int F77_DUMMY_MAIN() { return 1; }
6123 #endif
6124 int
6125 main ()
6126 {
6127 com_err ();
6128   ;
6129   return 0;
6130 }
6131 _ACEOF
6132 rm -f conftest.$ac_objext conftest$ac_exeext
6133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6134   (eval $ac_link) 2>&5
6135   ac_status=$?
6136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137   (exit $ac_status); } &&
6138          { ac_try='test -s conftest$ac_exeext'
6139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140   (eval $ac_try) 2>&5
6141   ac_status=$?
6142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143   (exit $ac_status); }; }; then
6144   ac_cv_search_com_err="-l$ac_lib"
6145 break
6146 else
6147   echo "$as_me: failed program was:" >&5
6148 cat conftest.$ac_ext >&5
6149 fi
6150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6151   done
6152 fi
6153 LIBS=$ac_func_search_save_LIBS
6154 fi
6155 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6156 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6157 if test "$ac_cv_search_com_err" != no; then
6158   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6159
6160 else
6161   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6162 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6163    { (exit 1); exit 1; }; }
6164 fi
6165
6166   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6167 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6168 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6169   echo $ECHO_N "(cached) $ECHO_C" >&6
6170 else
6171   ac_func_search_save_LIBS=$LIBS
6172 ac_cv_search_krb5_encrypt=no
6173 cat >conftest.$ac_ext <<_ACEOF
6174 #line $LINENO "configure"
6175 #include "confdefs.h"
6176
6177 /* Override any gcc2 internal prototype to avoid an error.  */
6178 #ifdef __cplusplus
6179 extern "C"
6180 #endif
6181 /* We use char because int might match the return type of a gcc2
6182    builtin and then its argument prototype would still apply.  */
6183 char krb5_encrypt ();
6184 #ifdef F77_DUMMY_MAIN
6185 #  ifdef __cplusplus
6186      extern "C"
6187 #  endif
6188    int F77_DUMMY_MAIN() { return 1; }
6189 #endif
6190 int
6191 main ()
6192 {
6193 krb5_encrypt ();
6194   ;
6195   return 0;
6196 }
6197 _ACEOF
6198 rm -f conftest.$ac_objext conftest$ac_exeext
6199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6200   (eval $ac_link) 2>&5
6201   ac_status=$?
6202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203   (exit $ac_status); } &&
6204          { ac_try='test -s conftest$ac_exeext'
6205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206   (eval $ac_try) 2>&5
6207   ac_status=$?
6208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209   (exit $ac_status); }; }; then
6210   ac_cv_search_krb5_encrypt="none required"
6211 else
6212   echo "$as_me: failed program was:" >&5
6213 cat conftest.$ac_ext >&5
6214 fi
6215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6216 if test "$ac_cv_search_krb5_encrypt" = no; then
6217   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6218     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6219     cat >conftest.$ac_ext <<_ACEOF
6220 #line $LINENO "configure"
6221 #include "confdefs.h"
6222
6223 /* Override any gcc2 internal prototype to avoid an error.  */
6224 #ifdef __cplusplus
6225 extern "C"
6226 #endif
6227 /* We use char because int might match the return type of a gcc2
6228    builtin and then its argument prototype would still apply.  */
6229 char krb5_encrypt ();
6230 #ifdef F77_DUMMY_MAIN
6231 #  ifdef __cplusplus
6232      extern "C"
6233 #  endif
6234    int F77_DUMMY_MAIN() { return 1; }
6235 #endif
6236 int
6237 main ()
6238 {
6239 krb5_encrypt ();
6240   ;
6241   return 0;
6242 }
6243 _ACEOF
6244 rm -f conftest.$ac_objext conftest$ac_exeext
6245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6246   (eval $ac_link) 2>&5
6247   ac_status=$?
6248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249   (exit $ac_status); } &&
6250          { ac_try='test -s conftest$ac_exeext'
6251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6252   (eval $ac_try) 2>&5
6253   ac_status=$?
6254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255   (exit $ac_status); }; }; then
6256   ac_cv_search_krb5_encrypt="-l$ac_lib"
6257 break
6258 else
6259   echo "$as_me: failed program was:" >&5
6260 cat conftest.$ac_ext >&5
6261 fi
6262 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6263   done
6264 fi
6265 LIBS=$ac_func_search_save_LIBS
6266 fi
6267 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6268 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6269 if test "$ac_cv_search_krb5_encrypt" != no; then
6270   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6271
6272 else
6273   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6274 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6275    { (exit 1); exit 1; }; }
6276 fi
6277
6278   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6279 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6280 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6281   echo $ECHO_N "(cached) $ECHO_C" >&6
6282 else
6283   ac_func_search_save_LIBS=$LIBS
6284 ac_cv_search_krb5_sendauth=no
6285 cat >conftest.$ac_ext <<_ACEOF
6286 #line $LINENO "configure"
6287 #include "confdefs.h"
6288
6289 /* Override any gcc2 internal prototype to avoid an error.  */
6290 #ifdef __cplusplus
6291 extern "C"
6292 #endif
6293 /* We use char because int might match the return type of a gcc2
6294    builtin and then its argument prototype would still apply.  */
6295 char krb5_sendauth ();
6296 #ifdef F77_DUMMY_MAIN
6297 #  ifdef __cplusplus
6298      extern "C"
6299 #  endif
6300    int F77_DUMMY_MAIN() { return 1; }
6301 #endif
6302 int
6303 main ()
6304 {
6305 krb5_sendauth ();
6306   ;
6307   return 0;
6308 }
6309 _ACEOF
6310 rm -f conftest.$ac_objext conftest$ac_exeext
6311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6312   (eval $ac_link) 2>&5
6313   ac_status=$?
6314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315   (exit $ac_status); } &&
6316          { ac_try='test -s conftest$ac_exeext'
6317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318   (eval $ac_try) 2>&5
6319   ac_status=$?
6320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321   (exit $ac_status); }; }; then
6322   ac_cv_search_krb5_sendauth="none required"
6323 else
6324   echo "$as_me: failed program was:" >&5
6325 cat conftest.$ac_ext >&5
6326 fi
6327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6328 if test "$ac_cv_search_krb5_sendauth" = no; then
6329   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6330     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6331     cat >conftest.$ac_ext <<_ACEOF
6332 #line $LINENO "configure"
6333 #include "confdefs.h"
6334
6335 /* Override any gcc2 internal prototype to avoid an error.  */
6336 #ifdef __cplusplus
6337 extern "C"
6338 #endif
6339 /* We use char because int might match the return type of a gcc2
6340    builtin and then its argument prototype would still apply.  */
6341 char krb5_sendauth ();
6342 #ifdef F77_DUMMY_MAIN
6343 #  ifdef __cplusplus
6344      extern "C"
6345 #  endif
6346    int F77_DUMMY_MAIN() { return 1; }
6347 #endif
6348 int
6349 main ()
6350 {
6351 krb5_sendauth ();
6352   ;
6353   return 0;
6354 }
6355 _ACEOF
6356 rm -f conftest.$ac_objext conftest$ac_exeext
6357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6358   (eval $ac_link) 2>&5
6359   ac_status=$?
6360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361   (exit $ac_status); } &&
6362          { ac_try='test -s conftest$ac_exeext'
6363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364   (eval $ac_try) 2>&5
6365   ac_status=$?
6366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367   (exit $ac_status); }; }; then
6368   ac_cv_search_krb5_sendauth="-l$ac_lib"
6369 break
6370 else
6371   echo "$as_me: failed program was:" >&5
6372 cat conftest.$ac_ext >&5
6373 fi
6374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6375   done
6376 fi
6377 LIBS=$ac_func_search_save_LIBS
6378 fi
6379 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6380 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6381 if test "$ac_cv_search_krb5_sendauth" != no; then
6382   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6383
6384 else
6385   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6386 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6387    { (exit 1); exit 1; }; }
6388 fi
6389
6390 fi
6391
6392 if test "$with_openssl" = yes ; then
6393
6394 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6395 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6396 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6397   echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399   ac_check_lib_save_LIBS=$LIBS
6400 LIBS="-lcrypto  $LIBS"
6401 cat >conftest.$ac_ext <<_ACEOF
6402 #line $LINENO "configure"
6403 #include "confdefs.h"
6404
6405 /* Override any gcc2 internal prototype to avoid an error.  */
6406 #ifdef __cplusplus
6407 extern "C"
6408 #endif
6409 /* We use char because int might match the return type of a gcc2
6410    builtin and then its argument prototype would still apply.  */
6411 char CRYPTO_new_ex_data ();
6412 #ifdef F77_DUMMY_MAIN
6413 #  ifdef __cplusplus
6414      extern "C"
6415 #  endif
6416    int F77_DUMMY_MAIN() { return 1; }
6417 #endif
6418 int
6419 main ()
6420 {
6421 CRYPTO_new_ex_data ();
6422   ;
6423   return 0;
6424 }
6425 _ACEOF
6426 rm -f conftest.$ac_objext conftest$ac_exeext
6427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6428   (eval $ac_link) 2>&5
6429   ac_status=$?
6430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431   (exit $ac_status); } &&
6432          { ac_try='test -s conftest$ac_exeext'
6433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434   (eval $ac_try) 2>&5
6435   ac_status=$?
6436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437   (exit $ac_status); }; }; then
6438   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6439 else
6440   echo "$as_me: failed program was:" >&5
6441 cat conftest.$ac_ext >&5
6442 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6443 fi
6444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6445 LIBS=$ac_check_lib_save_LIBS
6446 fi
6447 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6448 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6449 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6450   cat >>confdefs.h <<_ACEOF
6451 #define HAVE_LIBCRYPTO 1
6452 _ACEOF
6453
6454   LIBS="-lcrypto $LIBS"
6455
6456 else
6457   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6458 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6459    { (exit 1); exit 1; }; }
6460 fi
6461
6462
6463 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6464 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6465 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6466   echo $ECHO_N "(cached) $ECHO_C" >&6
6467 else
6468   ac_check_lib_save_LIBS=$LIBS
6469 LIBS="-lssl  $LIBS"
6470 cat >conftest.$ac_ext <<_ACEOF
6471 #line $LINENO "configure"
6472 #include "confdefs.h"
6473
6474 /* Override any gcc2 internal prototype to avoid an error.  */
6475 #ifdef __cplusplus
6476 extern "C"
6477 #endif
6478 /* We use char because int might match the return type of a gcc2
6479    builtin and then its argument prototype would still apply.  */
6480 char SSL_library_init ();
6481 #ifdef F77_DUMMY_MAIN
6482 #  ifdef __cplusplus
6483      extern "C"
6484 #  endif
6485    int F77_DUMMY_MAIN() { return 1; }
6486 #endif
6487 int
6488 main ()
6489 {
6490 SSL_library_init ();
6491   ;
6492   return 0;
6493 }
6494 _ACEOF
6495 rm -f conftest.$ac_objext conftest$ac_exeext
6496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6497   (eval $ac_link) 2>&5
6498   ac_status=$?
6499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500   (exit $ac_status); } &&
6501          { ac_try='test -s conftest$ac_exeext'
6502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6503   (eval $ac_try) 2>&5
6504   ac_status=$?
6505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506   (exit $ac_status); }; }; then
6507   ac_cv_lib_ssl_SSL_library_init=yes
6508 else
6509   echo "$as_me: failed program was:" >&5
6510 cat conftest.$ac_ext >&5
6511 ac_cv_lib_ssl_SSL_library_init=no
6512 fi
6513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6514 LIBS=$ac_check_lib_save_LIBS
6515 fi
6516 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6517 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6518 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6519   cat >>confdefs.h <<_ACEOF
6520 #define HAVE_LIBSSL 1
6521 _ACEOF
6522
6523   LIBS="-lssl $LIBS"
6524
6525 else
6526   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6527 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6528    { (exit 1); exit 1; }; }
6529 fi
6530
6531 fi
6532
6533 if test "$with_pam" = yes ; then
6534
6535 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6536 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6537 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6538   echo $ECHO_N "(cached) $ECHO_C" >&6
6539 else
6540   ac_check_lib_save_LIBS=$LIBS
6541 LIBS="-lpam  $LIBS"
6542 cat >conftest.$ac_ext <<_ACEOF
6543 #line $LINENO "configure"
6544 #include "confdefs.h"
6545
6546 /* Override any gcc2 internal prototype to avoid an error.  */
6547 #ifdef __cplusplus
6548 extern "C"
6549 #endif
6550 /* We use char because int might match the return type of a gcc2
6551    builtin and then its argument prototype would still apply.  */
6552 char pam_start ();
6553 #ifdef F77_DUMMY_MAIN
6554 #  ifdef __cplusplus
6555      extern "C"
6556 #  endif
6557    int F77_DUMMY_MAIN() { return 1; }
6558 #endif
6559 int
6560 main ()
6561 {
6562 pam_start ();
6563   ;
6564   return 0;
6565 }
6566 _ACEOF
6567 rm -f conftest.$ac_objext conftest$ac_exeext
6568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6569   (eval $ac_link) 2>&5
6570   ac_status=$?
6571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572   (exit $ac_status); } &&
6573          { ac_try='test -s conftest$ac_exeext'
6574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6575   (eval $ac_try) 2>&5
6576   ac_status=$?
6577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578   (exit $ac_status); }; }; then
6579   ac_cv_lib_pam_pam_start=yes
6580 else
6581   echo "$as_me: failed program was:" >&5
6582 cat conftest.$ac_ext >&5
6583 ac_cv_lib_pam_pam_start=no
6584 fi
6585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6586 LIBS=$ac_check_lib_save_LIBS
6587 fi
6588 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6589 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6590 if test $ac_cv_lib_pam_pam_start = yes; then
6591   cat >>confdefs.h <<_ACEOF
6592 #define HAVE_LIBPAM 1
6593 _ACEOF
6594
6595   LIBS="-lpam $LIBS"
6596
6597 else
6598   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6599 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6600    { (exit 1); exit 1; }; }
6601 fi
6602
6603 fi
6604
6605
6606 ##
6607 ## Header files
6608 ##
6609
6610 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6611 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6612 if test "${ac_cv_header_stdc+set}" = set; then
6613   echo $ECHO_N "(cached) $ECHO_C" >&6
6614 else
6615   cat >conftest.$ac_ext <<_ACEOF
6616 #line $LINENO "configure"
6617 #include "confdefs.h"
6618 #include <stdlib.h>
6619 #include <stdarg.h>
6620 #include <string.h>
6621 #include <float.h>
6622
6623 _ACEOF
6624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6625   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6626   ac_status=$?
6627   egrep -v '^ *\+' conftest.er1 >conftest.err
6628   rm -f conftest.er1
6629   cat conftest.err >&5
6630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631   (exit $ac_status); } >/dev/null; then
6632   if test -s conftest.err; then
6633     ac_cpp_err=$ac_c_preproc_warn_flag
6634   else
6635     ac_cpp_err=
6636   fi
6637 else
6638   ac_cpp_err=yes
6639 fi
6640 if test -z "$ac_cpp_err"; then
6641   ac_cv_header_stdc=yes
6642 else
6643   echo "$as_me: failed program was:" >&5
6644   cat conftest.$ac_ext >&5
6645   ac_cv_header_stdc=no
6646 fi
6647 rm -f conftest.err conftest.$ac_ext
6648
6649 if test $ac_cv_header_stdc = yes; then
6650   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6651   cat >conftest.$ac_ext <<_ACEOF
6652 #line $LINENO "configure"
6653 #include "confdefs.h"
6654 #include <string.h>
6655
6656 _ACEOF
6657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6658   egrep "memchr" >/dev/null 2>&1; then
6659   :
6660 else
6661   ac_cv_header_stdc=no
6662 fi
6663 rm -f conftest*
6664
6665 fi
6666
6667 if test $ac_cv_header_stdc = yes; then
6668   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6669   cat >conftest.$ac_ext <<_ACEOF
6670 #line $LINENO "configure"
6671 #include "confdefs.h"
6672 #include <stdlib.h>
6673
6674 _ACEOF
6675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6676   egrep "free" >/dev/null 2>&1; then
6677   :
6678 else
6679   ac_cv_header_stdc=no
6680 fi
6681 rm -f conftest*
6682
6683 fi
6684
6685 if test $ac_cv_header_stdc = yes; then
6686   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6687   if test "$cross_compiling" = yes; then
6688   :
6689 else
6690   cat >conftest.$ac_ext <<_ACEOF
6691 #line $LINENO "configure"
6692 #include "confdefs.h"
6693 #include <ctype.h>
6694 #if ((' ' & 0x0FF) == 0x020)
6695 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6696 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6697 #else
6698 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6699                      || ('j' <= (c) && (c) <= 'r') \
6700                      || ('s' <= (c) && (c) <= 'z'))
6701 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6702 #endif
6703
6704 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6705 int
6706 main ()
6707 {
6708   int i;
6709   for (i = 0; i < 256; i++)
6710     if (XOR (islower (i), ISLOWER (i))
6711         || toupper (i) != TOUPPER (i))
6712       exit(2);
6713   exit (0);
6714 }
6715 _ACEOF
6716 rm -f conftest$ac_exeext
6717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6718   (eval $ac_link) 2>&5
6719   ac_status=$?
6720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723   (eval $ac_try) 2>&5
6724   ac_status=$?
6725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726   (exit $ac_status); }; }; then
6727   :
6728 else
6729   echo "$as_me: program exited with status $ac_status" >&5
6730 echo "$as_me: failed program was:" >&5
6731 cat conftest.$ac_ext >&5
6732 ( exit $ac_status )
6733 ac_cv_header_stdc=no
6734 fi
6735 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6736 fi
6737 fi
6738 fi
6739 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6740 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6741 if test $ac_cv_header_stdc = yes; then
6742
6743 cat >>confdefs.h <<\_ACEOF
6744 #define STDC_HEADERS 1
6745 _ACEOF
6746
6747 fi
6748
6749 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6760                   inttypes.h stdint.h unistd.h
6761 do
6762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6763 echo "$as_me:$LINENO: checking for $ac_header" >&5
6764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6766   echo $ECHO_N "(cached) $ECHO_C" >&6
6767 else
6768   cat >conftest.$ac_ext <<_ACEOF
6769 #line $LINENO "configure"
6770 #include "confdefs.h"
6771 $ac_includes_default
6772
6773 #include <$ac_header>
6774 _ACEOF
6775 rm -f conftest.$ac_objext
6776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6777   (eval $ac_compile) 2>&5
6778   ac_status=$?
6779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780   (exit $ac_status); } &&
6781          { ac_try='test -s conftest.$ac_objext'
6782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783   (eval $ac_try) 2>&5
6784   ac_status=$?
6785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786   (exit $ac_status); }; }; then
6787   eval "$as_ac_Header=yes"
6788 else
6789   echo "$as_me: failed program was:" >&5
6790 cat conftest.$ac_ext >&5
6791 eval "$as_ac_Header=no"
6792 fi
6793 rm -f conftest.$ac_objext conftest.$ac_ext
6794 fi
6795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6798   cat >>confdefs.h <<_ACEOF
6799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6800 _ACEOF
6801
6802 fi
6803
6804 done
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/ipc.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h kernel/OS.h kernel/image.h SupportDefs.h
6826 do
6827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6829   echo "$as_me:$LINENO: checking for $ac_header" >&5
6830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6832   echo $ECHO_N "(cached) $ECHO_C" >&6
6833 fi
6834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6836 else
6837   # Is the header compilable?
6838 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6839 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6840 cat >conftest.$ac_ext <<_ACEOF
6841 #line $LINENO "configure"
6842 #include "confdefs.h"
6843 $ac_includes_default
6844 #include <$ac_header>
6845 _ACEOF
6846 rm -f conftest.$ac_objext
6847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6848   (eval $ac_compile) 2>&5
6849   ac_status=$?
6850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851   (exit $ac_status); } &&
6852          { ac_try='test -s conftest.$ac_objext'
6853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6854   (eval $ac_try) 2>&5
6855   ac_status=$?
6856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857   (exit $ac_status); }; }; then
6858   ac_header_compiler=yes
6859 else
6860   echo "$as_me: failed program was:" >&5
6861 cat conftest.$ac_ext >&5
6862 ac_header_compiler=no
6863 fi
6864 rm -f conftest.$ac_objext conftest.$ac_ext
6865 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6866 echo "${ECHO_T}$ac_header_compiler" >&6
6867
6868 # Is the header present?
6869 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6871 cat >conftest.$ac_ext <<_ACEOF
6872 #line $LINENO "configure"
6873 #include "confdefs.h"
6874 #include <$ac_header>
6875 _ACEOF
6876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6877   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6878   ac_status=$?
6879   egrep -v '^ *\+' conftest.er1 >conftest.err
6880   rm -f conftest.er1
6881   cat conftest.err >&5
6882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883   (exit $ac_status); } >/dev/null; then
6884   if test -s conftest.err; then
6885     ac_cpp_err=$ac_c_preproc_warn_flag
6886   else
6887     ac_cpp_err=
6888   fi
6889 else
6890   ac_cpp_err=yes
6891 fi
6892 if test -z "$ac_cpp_err"; then
6893   ac_header_preproc=yes
6894 else
6895   echo "$as_me: failed program was:" >&5
6896   cat conftest.$ac_ext >&5
6897   ac_header_preproc=no
6898 fi
6899 rm -f conftest.err conftest.$ac_ext
6900 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6901 echo "${ECHO_T}$ac_header_preproc" >&6
6902
6903 # So?  What about this header?
6904 case $ac_header_compiler:$ac_header_preproc in
6905   yes:no )
6906     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6908     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6910   no:yes )
6911     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6913     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6915     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6917 esac
6918 echo "$as_me:$LINENO: checking for $ac_header" >&5
6919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6921   echo $ECHO_N "(cached) $ECHO_C" >&6
6922 else
6923   eval "$as_ac_Header=$ac_header_preproc"
6924 fi
6925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6927
6928 fi
6929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6930   cat >>confdefs.h <<_ACEOF
6931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6932 _ACEOF
6933
6934 fi
6935
6936 done
6937
6938
6939 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
6940 # netinet/in.h is included first.
6941
6942 for ac_header in netinet/in.h
6943 do
6944 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6946   echo "$as_me:$LINENO: checking for $ac_header" >&5
6947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6949   echo $ECHO_N "(cached) $ECHO_C" >&6
6950 fi
6951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6953 else
6954   # Is the header compilable?
6955 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6957 cat >conftest.$ac_ext <<_ACEOF
6958 #line $LINENO "configure"
6959 #include "confdefs.h"
6960 $ac_includes_default
6961 #include <$ac_header>
6962 _ACEOF
6963 rm -f conftest.$ac_objext
6964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6965   (eval $ac_compile) 2>&5
6966   ac_status=$?
6967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968   (exit $ac_status); } &&
6969          { ac_try='test -s conftest.$ac_objext'
6970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6971   (eval $ac_try) 2>&5
6972   ac_status=$?
6973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974   (exit $ac_status); }; }; then
6975   ac_header_compiler=yes
6976 else
6977   echo "$as_me: failed program was:" >&5
6978 cat conftest.$ac_ext >&5
6979 ac_header_compiler=no
6980 fi
6981 rm -f conftest.$ac_objext conftest.$ac_ext
6982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6983 echo "${ECHO_T}$ac_header_compiler" >&6
6984
6985 # Is the header present?
6986 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6987 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6988 cat >conftest.$ac_ext <<_ACEOF
6989 #line $LINENO "configure"
6990 #include "confdefs.h"
6991 #include <$ac_header>
6992 _ACEOF
6993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6994   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6995   ac_status=$?
6996   egrep -v '^ *\+' conftest.er1 >conftest.err
6997   rm -f conftest.er1
6998   cat conftest.err >&5
6999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000   (exit $ac_status); } >/dev/null; then
7001   if test -s conftest.err; then
7002     ac_cpp_err=$ac_c_preproc_warn_flag
7003   else
7004     ac_cpp_err=
7005   fi
7006 else
7007   ac_cpp_err=yes
7008 fi
7009 if test -z "$ac_cpp_err"; then
7010   ac_header_preproc=yes
7011 else
7012   echo "$as_me: failed program was:" >&5
7013   cat conftest.$ac_ext >&5
7014   ac_header_preproc=no
7015 fi
7016 rm -f conftest.err conftest.$ac_ext
7017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7018 echo "${ECHO_T}$ac_header_preproc" >&6
7019
7020 # So?  What about this header?
7021 case $ac_header_compiler:$ac_header_preproc in
7022   yes:no )
7023     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7025     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7027   no:yes )
7028     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7030     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7031 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7032     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7034 esac
7035 echo "$as_me:$LINENO: checking for $ac_header" >&5
7036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7038   echo $ECHO_N "(cached) $ECHO_C" >&6
7039 else
7040   eval "$as_ac_Header=$ac_header_preproc"
7041 fi
7042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7043 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7044
7045 fi
7046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7047   cat >>confdefs.h <<_ACEOF
7048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7049 _ACEOF
7050
7051 fi
7052
7053 done
7054
7055
7056 for ac_header in netinet/tcp.h
7057 do
7058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7059 echo "$as_me:$LINENO: checking for $ac_header" >&5
7060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7062   echo $ECHO_N "(cached) $ECHO_C" >&6
7063 else
7064   cat >conftest.$ac_ext <<_ACEOF
7065 #line $LINENO "configure"
7066 #include "confdefs.h"
7067 $ac_includes_default
7068 #ifdef HAVE_NETINET_IN_H
7069 #include <netinet/in.h>
7070 #endif
7071
7072
7073 #include <$ac_header>
7074 _ACEOF
7075 rm -f conftest.$ac_objext
7076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7077   (eval $ac_compile) 2>&5
7078   ac_status=$?
7079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080   (exit $ac_status); } &&
7081          { ac_try='test -s conftest.$ac_objext'
7082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083   (eval $ac_try) 2>&5
7084   ac_status=$?
7085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086   (exit $ac_status); }; }; then
7087   eval "$as_ac_Header=yes"
7088 else
7089   echo "$as_me: failed program was:" >&5
7090 cat conftest.$ac_ext >&5
7091 eval "$as_ac_Header=no"
7092 fi
7093 rm -f conftest.$ac_objext conftest.$ac_ext
7094 fi
7095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7098   cat >>confdefs.h <<_ACEOF
7099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7100 _ACEOF
7101
7102 fi
7103
7104 done
7105
7106
7107 if test "$with_readline" = yes; then
7108
7109 for ac_header in readline/readline.h
7110 do
7111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7113   echo "$as_me:$LINENO: checking for $ac_header" >&5
7114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7116   echo $ECHO_N "(cached) $ECHO_C" >&6
7117 fi
7118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7120 else
7121   # Is the header compilable?
7122 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7124 cat >conftest.$ac_ext <<_ACEOF
7125 #line $LINENO "configure"
7126 #include "confdefs.h"
7127 $ac_includes_default
7128 #include <$ac_header>
7129 _ACEOF
7130 rm -f conftest.$ac_objext
7131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7132   (eval $ac_compile) 2>&5
7133   ac_status=$?
7134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135   (exit $ac_status); } &&
7136          { ac_try='test -s conftest.$ac_objext'
7137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138   (eval $ac_try) 2>&5
7139   ac_status=$?
7140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141   (exit $ac_status); }; }; then
7142   ac_header_compiler=yes
7143 else
7144   echo "$as_me: failed program was:" >&5
7145 cat conftest.$ac_ext >&5
7146 ac_header_compiler=no
7147 fi
7148 rm -f conftest.$ac_objext conftest.$ac_ext
7149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7150 echo "${ECHO_T}$ac_header_compiler" >&6
7151
7152 # Is the header present?
7153 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7155 cat >conftest.$ac_ext <<_ACEOF
7156 #line $LINENO "configure"
7157 #include "confdefs.h"
7158 #include <$ac_header>
7159 _ACEOF
7160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7161   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7162   ac_status=$?
7163   egrep -v '^ *\+' conftest.er1 >conftest.err
7164   rm -f conftest.er1
7165   cat conftest.err >&5
7166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167   (exit $ac_status); } >/dev/null; then
7168   if test -s conftest.err; then
7169     ac_cpp_err=$ac_c_preproc_warn_flag
7170   else
7171     ac_cpp_err=
7172   fi
7173 else
7174   ac_cpp_err=yes
7175 fi
7176 if test -z "$ac_cpp_err"; then
7177   ac_header_preproc=yes
7178 else
7179   echo "$as_me: failed program was:" >&5
7180   cat conftest.$ac_ext >&5
7181   ac_header_preproc=no
7182 fi
7183 rm -f conftest.err conftest.$ac_ext
7184 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7185 echo "${ECHO_T}$ac_header_preproc" >&6
7186
7187 # So?  What about this header?
7188 case $ac_header_compiler:$ac_header_preproc in
7189   yes:no )
7190     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7192     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7194   no:yes )
7195     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7197     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7198 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7199     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7201 esac
7202 echo "$as_me:$LINENO: checking for $ac_header" >&5
7203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7205   echo $ECHO_N "(cached) $ECHO_C" >&6
7206 else
7207   eval "$as_ac_Header=$ac_header_preproc"
7208 fi
7209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7211
7212 fi
7213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7214   cat >>confdefs.h <<_ACEOF
7215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7216 _ACEOF
7217
7218 else
7219
7220 for ac_header in readline.h
7221 do
7222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7224   echo "$as_me:$LINENO: checking for $ac_header" >&5
7225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7227   echo $ECHO_N "(cached) $ECHO_C" >&6
7228 fi
7229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7231 else
7232   # Is the header compilable?
7233 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7235 cat >conftest.$ac_ext <<_ACEOF
7236 #line $LINENO "configure"
7237 #include "confdefs.h"
7238 $ac_includes_default
7239 #include <$ac_header>
7240 _ACEOF
7241 rm -f conftest.$ac_objext
7242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7243   (eval $ac_compile) 2>&5
7244   ac_status=$?
7245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246   (exit $ac_status); } &&
7247          { ac_try='test -s conftest.$ac_objext'
7248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249   (eval $ac_try) 2>&5
7250   ac_status=$?
7251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252   (exit $ac_status); }; }; then
7253   ac_header_compiler=yes
7254 else
7255   echo "$as_me: failed program was:" >&5
7256 cat conftest.$ac_ext >&5
7257 ac_header_compiler=no
7258 fi
7259 rm -f conftest.$ac_objext conftest.$ac_ext
7260 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7261 echo "${ECHO_T}$ac_header_compiler" >&6
7262
7263 # Is the header present?
7264 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7265 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7266 cat >conftest.$ac_ext <<_ACEOF
7267 #line $LINENO "configure"
7268 #include "confdefs.h"
7269 #include <$ac_header>
7270 _ACEOF
7271 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7272   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7273   ac_status=$?
7274   egrep -v '^ *\+' conftest.er1 >conftest.err
7275   rm -f conftest.er1
7276   cat conftest.err >&5
7277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278   (exit $ac_status); } >/dev/null; then
7279   if test -s conftest.err; then
7280     ac_cpp_err=$ac_c_preproc_warn_flag
7281   else
7282     ac_cpp_err=
7283   fi
7284 else
7285   ac_cpp_err=yes
7286 fi
7287 if test -z "$ac_cpp_err"; then
7288   ac_header_preproc=yes
7289 else
7290   echo "$as_me: failed program was:" >&5
7291   cat conftest.$ac_ext >&5
7292   ac_header_preproc=no
7293 fi
7294 rm -f conftest.err conftest.$ac_ext
7295 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7296 echo "${ECHO_T}$ac_header_preproc" >&6
7297
7298 # So?  What about this header?
7299 case $ac_header_compiler:$ac_header_preproc in
7300   yes:no )
7301     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7305   no:yes )
7306     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7308     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7309 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7310     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7312 esac
7313 echo "$as_me:$LINENO: checking for $ac_header" >&5
7314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7316   echo $ECHO_N "(cached) $ECHO_C" >&6
7317 else
7318   eval "$as_ac_Header=$ac_header_preproc"
7319 fi
7320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7322
7323 fi
7324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7325   cat >>confdefs.h <<_ACEOF
7326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7327 _ACEOF
7328
7329 else
7330   { { echo "$as_me:$LINENO: error: readline header not found
7331 Use --without-readline to disable readline support." >&5
7332 echo "$as_me: error: readline header not found
7333 Use --without-readline to disable readline support." >&2;}
7334    { (exit 1); exit 1; }; }
7335 fi
7336
7337 done
7338
7339 fi
7340
7341 done
7342
7343
7344 for ac_header in readline/history.h
7345 do
7346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7348   echo "$as_me:$LINENO: checking for $ac_header" >&5
7349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7351   echo $ECHO_N "(cached) $ECHO_C" >&6
7352 fi
7353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7355 else
7356   # Is the header compilable?
7357 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7359 cat >conftest.$ac_ext <<_ACEOF
7360 #line $LINENO "configure"
7361 #include "confdefs.h"
7362 $ac_includes_default
7363 #include <$ac_header>
7364 _ACEOF
7365 rm -f conftest.$ac_objext
7366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7367   (eval $ac_compile) 2>&5
7368   ac_status=$?
7369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370   (exit $ac_status); } &&
7371          { ac_try='test -s conftest.$ac_objext'
7372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7373   (eval $ac_try) 2>&5
7374   ac_status=$?
7375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376   (exit $ac_status); }; }; then
7377   ac_header_compiler=yes
7378 else
7379   echo "$as_me: failed program was:" >&5
7380 cat conftest.$ac_ext >&5
7381 ac_header_compiler=no
7382 fi
7383 rm -f conftest.$ac_objext conftest.$ac_ext
7384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7385 echo "${ECHO_T}$ac_header_compiler" >&6
7386
7387 # Is the header present?
7388 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7390 cat >conftest.$ac_ext <<_ACEOF
7391 #line $LINENO "configure"
7392 #include "confdefs.h"
7393 #include <$ac_header>
7394 _ACEOF
7395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7396   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7397   ac_status=$?
7398   egrep -v '^ *\+' conftest.er1 >conftest.err
7399   rm -f conftest.er1
7400   cat conftest.err >&5
7401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402   (exit $ac_status); } >/dev/null; then
7403   if test -s conftest.err; then
7404     ac_cpp_err=$ac_c_preproc_warn_flag
7405   else
7406     ac_cpp_err=
7407   fi
7408 else
7409   ac_cpp_err=yes
7410 fi
7411 if test -z "$ac_cpp_err"; then
7412   ac_header_preproc=yes
7413 else
7414   echo "$as_me: failed program was:" >&5
7415   cat conftest.$ac_ext >&5
7416   ac_header_preproc=no
7417 fi
7418 rm -f conftest.err conftest.$ac_ext
7419 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7420 echo "${ECHO_T}$ac_header_preproc" >&6
7421
7422 # So?  What about this header?
7423 case $ac_header_compiler:$ac_header_preproc in
7424   yes:no )
7425     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7427     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7429   no:yes )
7430     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7432     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7436 esac
7437 echo "$as_me:$LINENO: checking for $ac_header" >&5
7438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7440   echo $ECHO_N "(cached) $ECHO_C" >&6
7441 else
7442   eval "$as_ac_Header=$ac_header_preproc"
7443 fi
7444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7445 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7446
7447 fi
7448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7449   cat >>confdefs.h <<_ACEOF
7450 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7451 _ACEOF
7452
7453 else
7454
7455 for ac_header in history.h
7456 do
7457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7459   echo "$as_me:$LINENO: checking for $ac_header" >&5
7460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7462   echo $ECHO_N "(cached) $ECHO_C" >&6
7463 fi
7464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7466 else
7467   # Is the header compilable?
7468 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7470 cat >conftest.$ac_ext <<_ACEOF
7471 #line $LINENO "configure"
7472 #include "confdefs.h"
7473 $ac_includes_default
7474 #include <$ac_header>
7475 _ACEOF
7476 rm -f conftest.$ac_objext
7477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7478   (eval $ac_compile) 2>&5
7479   ac_status=$?
7480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481   (exit $ac_status); } &&
7482          { ac_try='test -s conftest.$ac_objext'
7483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484   (eval $ac_try) 2>&5
7485   ac_status=$?
7486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487   (exit $ac_status); }; }; then
7488   ac_header_compiler=yes
7489 else
7490   echo "$as_me: failed program was:" >&5
7491 cat conftest.$ac_ext >&5
7492 ac_header_compiler=no
7493 fi
7494 rm -f conftest.$ac_objext conftest.$ac_ext
7495 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7496 echo "${ECHO_T}$ac_header_compiler" >&6
7497
7498 # Is the header present?
7499 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7501 cat >conftest.$ac_ext <<_ACEOF
7502 #line $LINENO "configure"
7503 #include "confdefs.h"
7504 #include <$ac_header>
7505 _ACEOF
7506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7507   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7508   ac_status=$?
7509   egrep -v '^ *\+' conftest.er1 >conftest.err
7510   rm -f conftest.er1
7511   cat conftest.err >&5
7512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513   (exit $ac_status); } >/dev/null; then
7514   if test -s conftest.err; then
7515     ac_cpp_err=$ac_c_preproc_warn_flag
7516   else
7517     ac_cpp_err=
7518   fi
7519 else
7520   ac_cpp_err=yes
7521 fi
7522 if test -z "$ac_cpp_err"; then
7523   ac_header_preproc=yes
7524 else
7525   echo "$as_me: failed program was:" >&5
7526   cat conftest.$ac_ext >&5
7527   ac_header_preproc=no
7528 fi
7529 rm -f conftest.err conftest.$ac_ext
7530 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7531 echo "${ECHO_T}$ac_header_preproc" >&6
7532
7533 # So?  What about this header?
7534 case $ac_header_compiler:$ac_header_preproc in
7535   yes:no )
7536     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7538     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7540   no:yes )
7541     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7543     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7545     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7547 esac
7548 echo "$as_me:$LINENO: checking for $ac_header" >&5
7549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7551   echo $ECHO_N "(cached) $ECHO_C" >&6
7552 else
7553   eval "$as_ac_Header=$ac_header_preproc"
7554 fi
7555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7557
7558 fi
7559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7560   cat >>confdefs.h <<_ACEOF
7561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7562 _ACEOF
7563
7564 else
7565   { { echo "$as_me:$LINENO: error: history header not found
7566 Use --without-readline to disable readline support." >&5
7567 echo "$as_me: error: history header not found
7568 Use --without-readline to disable readline support." >&2;}
7569    { (exit 1); exit 1; }; }
7570 fi
7571
7572 done
7573
7574 fi
7575
7576 done
7577
7578 fi
7579
7580 if test "$with_zlib" = yes; then
7581   if test "${ac_cv_header_zlib_h+set}" = set; then
7582   echo "$as_me:$LINENO: checking for zlib.h" >&5
7583 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7584 if test "${ac_cv_header_zlib_h+set}" = set; then
7585   echo $ECHO_N "(cached) $ECHO_C" >&6
7586 fi
7587 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7588 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7589 else
7590   # Is the header compilable?
7591 echo "$as_me:$LINENO: checking zlib.h usability" >&5
7592 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
7593 cat >conftest.$ac_ext <<_ACEOF
7594 #line $LINENO "configure"
7595 #include "confdefs.h"
7596 $ac_includes_default
7597 #include <zlib.h>
7598 _ACEOF
7599 rm -f conftest.$ac_objext
7600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7601   (eval $ac_compile) 2>&5
7602   ac_status=$?
7603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604   (exit $ac_status); } &&
7605          { ac_try='test -s conftest.$ac_objext'
7606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607   (eval $ac_try) 2>&5
7608   ac_status=$?
7609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610   (exit $ac_status); }; }; then
7611   ac_header_compiler=yes
7612 else
7613   echo "$as_me: failed program was:" >&5
7614 cat conftest.$ac_ext >&5
7615 ac_header_compiler=no
7616 fi
7617 rm -f conftest.$ac_objext conftest.$ac_ext
7618 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7619 echo "${ECHO_T}$ac_header_compiler" >&6
7620
7621 # Is the header present?
7622 echo "$as_me:$LINENO: checking zlib.h presence" >&5
7623 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
7624 cat >conftest.$ac_ext <<_ACEOF
7625 #line $LINENO "configure"
7626 #include "confdefs.h"
7627 #include <zlib.h>
7628 _ACEOF
7629 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7630   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7631   ac_status=$?
7632   egrep -v '^ *\+' conftest.er1 >conftest.err
7633   rm -f conftest.er1
7634   cat conftest.err >&5
7635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636   (exit $ac_status); } >/dev/null; then
7637   if test -s conftest.err; then
7638     ac_cpp_err=$ac_c_preproc_warn_flag
7639   else
7640     ac_cpp_err=
7641   fi
7642 else
7643   ac_cpp_err=yes
7644 fi
7645 if test -z "$ac_cpp_err"; then
7646   ac_header_preproc=yes
7647 else
7648   echo "$as_me: failed program was:" >&5
7649   cat conftest.$ac_ext >&5
7650   ac_header_preproc=no
7651 fi
7652 rm -f conftest.err conftest.$ac_ext
7653 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7654 echo "${ECHO_T}$ac_header_preproc" >&6
7655
7656 # So?  What about this header?
7657 case $ac_header_compiler:$ac_header_preproc in
7658   yes:no )
7659     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7660 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7661     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7662 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7663   no:yes )
7664     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
7665 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
7666     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
7667 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
7668     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7669 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7670 esac
7671 echo "$as_me:$LINENO: checking for zlib.h" >&5
7672 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7673 if test "${ac_cv_header_zlib_h+set}" = set; then
7674   echo $ECHO_N "(cached) $ECHO_C" >&6
7675 else
7676   ac_cv_header_zlib_h=$ac_header_preproc
7677 fi
7678 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7679 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7680
7681 fi
7682 if test $ac_cv_header_zlib_h = yes; then
7683   :
7684 else
7685   { { echo "$as_me:$LINENO: error: zlib header not found
7686 Use --without-zlib to disable zlib support." >&5
7687 echo "$as_me: error: zlib header not found
7688 Use --without-zlib to disable zlib support." >&2;}
7689    { (exit 1); exit 1; }; }
7690 fi
7691
7692
7693 fi
7694
7695 if test "$with_krb4" = yes ; then
7696   if test "${ac_cv_header_krb_h+set}" = set; then
7697   echo "$as_me:$LINENO: checking for krb.h" >&5
7698 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
7699 if test "${ac_cv_header_krb_h+set}" = set; then
7700   echo $ECHO_N "(cached) $ECHO_C" >&6
7701 fi
7702 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
7703 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
7704 else
7705   # Is the header compilable?
7706 echo "$as_me:$LINENO: checking krb.h usability" >&5
7707 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
7708 cat >conftest.$ac_ext <<_ACEOF
7709 #line $LINENO "configure"
7710 #include "confdefs.h"
7711 $ac_includes_default
7712 #include <krb.h>
7713 _ACEOF
7714 rm -f conftest.$ac_objext
7715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7716   (eval $ac_compile) 2>&5
7717   ac_status=$?
7718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719   (exit $ac_status); } &&
7720          { ac_try='test -s conftest.$ac_objext'
7721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722   (eval $ac_try) 2>&5
7723   ac_status=$?
7724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725   (exit $ac_status); }; }; then
7726   ac_header_compiler=yes
7727 else
7728   echo "$as_me: failed program was:" >&5
7729 cat conftest.$ac_ext >&5
7730 ac_header_compiler=no
7731 fi
7732 rm -f conftest.$ac_objext conftest.$ac_ext
7733 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7734 echo "${ECHO_T}$ac_header_compiler" >&6
7735
7736 # Is the header present?
7737 echo "$as_me:$LINENO: checking krb.h presence" >&5
7738 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
7739 cat >conftest.$ac_ext <<_ACEOF
7740 #line $LINENO "configure"
7741 #include "confdefs.h"
7742 #include <krb.h>
7743 _ACEOF
7744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7745   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7746   ac_status=$?
7747   egrep -v '^ *\+' conftest.er1 >conftest.err
7748   rm -f conftest.er1
7749   cat conftest.err >&5
7750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751   (exit $ac_status); } >/dev/null; then
7752   if test -s conftest.err; then
7753     ac_cpp_err=$ac_c_preproc_warn_flag
7754   else
7755     ac_cpp_err=
7756   fi
7757 else
7758   ac_cpp_err=yes
7759 fi
7760 if test -z "$ac_cpp_err"; then
7761   ac_header_preproc=yes
7762 else
7763   echo "$as_me: failed program was:" >&5
7764   cat conftest.$ac_ext >&5
7765   ac_header_preproc=no
7766 fi
7767 rm -f conftest.err conftest.$ac_ext
7768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7769 echo "${ECHO_T}$ac_header_preproc" >&6
7770
7771 # So?  What about this header?
7772 case $ac_header_compiler:$ac_header_preproc in
7773   yes:no )
7774     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
7775 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7776     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
7777 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
7778   no:yes )
7779     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
7780 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
7781     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
7782 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
7783     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
7784 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
7785 esac
7786 echo "$as_me:$LINENO: checking for krb.h" >&5
7787 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
7788 if test "${ac_cv_header_krb_h+set}" = set; then
7789   echo $ECHO_N "(cached) $ECHO_C" >&6
7790 else
7791   ac_cv_header_krb_h=$ac_header_preproc
7792 fi
7793 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
7794 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
7795
7796 fi
7797 if test $ac_cv_header_krb_h = yes; then
7798   :
7799 else
7800   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
7801 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
7802    { (exit 1); exit 1; }; }
7803 fi
7804
7805
7806 fi
7807
7808 if test "$with_krb5" = yes ; then
7809   if test "${ac_cv_header_krb5_h+set}" = set; then
7810   echo "$as_me:$LINENO: checking for krb5.h" >&5
7811 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
7812 if test "${ac_cv_header_krb5_h+set}" = set; then
7813   echo $ECHO_N "(cached) $ECHO_C" >&6
7814 fi
7815 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
7816 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
7817 else
7818   # Is the header compilable?
7819 echo "$as_me:$LINENO: checking krb5.h usability" >&5
7820 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
7821 cat >conftest.$ac_ext <<_ACEOF
7822 #line $LINENO "configure"
7823 #include "confdefs.h"
7824 $ac_includes_default
7825 #include <krb5.h>
7826 _ACEOF
7827 rm -f conftest.$ac_objext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7829   (eval $ac_compile) 2>&5
7830   ac_status=$?
7831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832   (exit $ac_status); } &&
7833          { ac_try='test -s conftest.$ac_objext'
7834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835   (eval $ac_try) 2>&5
7836   ac_status=$?
7837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838   (exit $ac_status); }; }; then
7839   ac_header_compiler=yes
7840 else
7841   echo "$as_me: failed program was:" >&5
7842 cat conftest.$ac_ext >&5
7843 ac_header_compiler=no
7844 fi
7845 rm -f conftest.$ac_objext conftest.$ac_ext
7846 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7847 echo "${ECHO_T}$ac_header_compiler" >&6
7848
7849 # Is the header present?
7850 echo "$as_me:$LINENO: checking krb5.h presence" >&5
7851 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
7852 cat >conftest.$ac_ext <<_ACEOF
7853 #line $LINENO "configure"
7854 #include "confdefs.h"
7855 #include <krb5.h>
7856 _ACEOF
7857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7858   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7859   ac_status=$?
7860   egrep -v '^ *\+' conftest.er1 >conftest.err
7861   rm -f conftest.er1
7862   cat conftest.err >&5
7863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864   (exit $ac_status); } >/dev/null; then
7865   if test -s conftest.err; then
7866     ac_cpp_err=$ac_c_preproc_warn_flag
7867   else
7868     ac_cpp_err=
7869   fi
7870 else
7871   ac_cpp_err=yes
7872 fi
7873 if test -z "$ac_cpp_err"; then
7874   ac_header_preproc=yes
7875 else
7876   echo "$as_me: failed program was:" >&5
7877   cat conftest.$ac_ext >&5
7878   ac_header_preproc=no
7879 fi
7880 rm -f conftest.err conftest.$ac_ext
7881 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7882 echo "${ECHO_T}$ac_header_preproc" >&6
7883
7884 # So?  What about this header?
7885 case $ac_header_compiler:$ac_header_preproc in
7886   yes:no )
7887     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
7888 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7889     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
7890 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
7891   no:yes )
7892     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
7893 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
7894     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
7895 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
7896     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
7897 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
7898 esac
7899 echo "$as_me:$LINENO: checking for krb5.h" >&5
7900 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
7901 if test "${ac_cv_header_krb5_h+set}" = set; then
7902   echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904   ac_cv_header_krb5_h=$ac_header_preproc
7905 fi
7906 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
7907 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
7908
7909 fi
7910 if test $ac_cv_header_krb5_h = yes; then
7911   :
7912 else
7913   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
7914 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
7915    { (exit 1); exit 1; }; }
7916 fi
7917
7918
7919   if test "${ac_cv_header_com_err_h+set}" = set; then
7920   echo "$as_me:$LINENO: checking for com_err.h" >&5
7921 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
7922 if test "${ac_cv_header_com_err_h+set}" = set; then
7923   echo $ECHO_N "(cached) $ECHO_C" >&6
7924 fi
7925 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
7926 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
7927 else
7928   # Is the header compilable?
7929 echo "$as_me:$LINENO: checking com_err.h usability" >&5
7930 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
7931 cat >conftest.$ac_ext <<_ACEOF
7932 #line $LINENO "configure"
7933 #include "confdefs.h"
7934 $ac_includes_default
7935 #include <com_err.h>
7936 _ACEOF
7937 rm -f conftest.$ac_objext
7938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7939   (eval $ac_compile) 2>&5
7940   ac_status=$?
7941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942   (exit $ac_status); } &&
7943          { ac_try='test -s conftest.$ac_objext'
7944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945   (eval $ac_try) 2>&5
7946   ac_status=$?
7947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948   (exit $ac_status); }; }; then
7949   ac_header_compiler=yes
7950 else
7951   echo "$as_me: failed program was:" >&5
7952 cat conftest.$ac_ext >&5
7953 ac_header_compiler=no
7954 fi
7955 rm -f conftest.$ac_objext conftest.$ac_ext
7956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7957 echo "${ECHO_T}$ac_header_compiler" >&6
7958
7959 # Is the header present?
7960 echo "$as_me:$LINENO: checking com_err.h presence" >&5
7961 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
7962 cat >conftest.$ac_ext <<_ACEOF
7963 #line $LINENO "configure"
7964 #include "confdefs.h"
7965 #include <com_err.h>
7966 _ACEOF
7967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7968   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7969   ac_status=$?
7970   egrep -v '^ *\+' conftest.er1 >conftest.err
7971   rm -f conftest.er1
7972   cat conftest.err >&5
7973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974   (exit $ac_status); } >/dev/null; then
7975   if test -s conftest.err; then
7976     ac_cpp_err=$ac_c_preproc_warn_flag
7977   else
7978     ac_cpp_err=
7979   fi
7980 else
7981   ac_cpp_err=yes
7982 fi
7983 if test -z "$ac_cpp_err"; then
7984   ac_header_preproc=yes
7985 else
7986   echo "$as_me: failed program was:" >&5
7987   cat conftest.$ac_ext >&5
7988   ac_header_preproc=no
7989 fi
7990 rm -f conftest.err conftest.$ac_ext
7991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7992 echo "${ECHO_T}$ac_header_preproc" >&6
7993
7994 # So?  What about this header?
7995 case $ac_header_compiler:$ac_header_preproc in
7996   yes:no )
7997     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
7998 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7999     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8000 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8001   no:yes )
8002     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8003 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8004     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8005 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8006     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8007 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8008 esac
8009 echo "$as_me:$LINENO: checking for com_err.h" >&5
8010 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8011 if test "${ac_cv_header_com_err_h+set}" = set; then
8012   echo $ECHO_N "(cached) $ECHO_C" >&6
8013 else
8014   ac_cv_header_com_err_h=$ac_header_preproc
8015 fi
8016 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8017 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8018
8019 fi
8020 if test $ac_cv_header_com_err_h = yes; then
8021   :
8022 else
8023   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8024 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8025    { (exit 1); exit 1; }; }
8026 fi
8027
8028
8029 fi
8030
8031 if test "$with_openssl" = yes ; then
8032   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8033   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8034 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8035 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8036   echo $ECHO_N "(cached) $ECHO_C" >&6
8037 fi
8038 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8039 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8040 else
8041   # Is the header compilable?
8042 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8043 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8044 cat >conftest.$ac_ext <<_ACEOF
8045 #line $LINENO "configure"
8046 #include "confdefs.h"
8047 $ac_includes_default
8048 #include <openssl/ssl.h>
8049 _ACEOF
8050 rm -f conftest.$ac_objext
8051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8052   (eval $ac_compile) 2>&5
8053   ac_status=$?
8054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055   (exit $ac_status); } &&
8056          { ac_try='test -s conftest.$ac_objext'
8057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058   (eval $ac_try) 2>&5
8059   ac_status=$?
8060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061   (exit $ac_status); }; }; then
8062   ac_header_compiler=yes
8063 else
8064   echo "$as_me: failed program was:" >&5
8065 cat conftest.$ac_ext >&5
8066 ac_header_compiler=no
8067 fi
8068 rm -f conftest.$ac_objext conftest.$ac_ext
8069 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8070 echo "${ECHO_T}$ac_header_compiler" >&6
8071
8072 # Is the header present?
8073 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8074 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8075 cat >conftest.$ac_ext <<_ACEOF
8076 #line $LINENO "configure"
8077 #include "confdefs.h"
8078 #include <openssl/ssl.h>
8079 _ACEOF
8080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8081   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8082   ac_status=$?
8083   egrep -v '^ *\+' conftest.er1 >conftest.err
8084   rm -f conftest.er1
8085   cat conftest.err >&5
8086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087   (exit $ac_status); } >/dev/null; then
8088   if test -s conftest.err; then
8089     ac_cpp_err=$ac_c_preproc_warn_flag
8090   else
8091     ac_cpp_err=
8092   fi
8093 else
8094   ac_cpp_err=yes
8095 fi
8096 if test -z "$ac_cpp_err"; then
8097   ac_header_preproc=yes
8098 else
8099   echo "$as_me: failed program was:" >&5
8100   cat conftest.$ac_ext >&5
8101   ac_header_preproc=no
8102 fi
8103 rm -f conftest.err conftest.$ac_ext
8104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8105 echo "${ECHO_T}$ac_header_preproc" >&6
8106
8107 # So?  What about this header?
8108 case $ac_header_compiler:$ac_header_preproc in
8109   yes:no )
8110     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8111 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8112     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8113 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8114   no:yes )
8115     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8116 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8117     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8118 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8119     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8120 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8121 esac
8122 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8123 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8124 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8125   echo $ECHO_N "(cached) $ECHO_C" >&6
8126 else
8127   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8128 fi
8129 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8130 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8131
8132 fi
8133 if test $ac_cv_header_openssl_ssl_h = yes; then
8134   :
8135 else
8136   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8137 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8138    { (exit 1); exit 1; }; }
8139 fi
8140
8141
8142   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8143   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8144 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8145 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8146   echo $ECHO_N "(cached) $ECHO_C" >&6
8147 fi
8148 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8149 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8150 else
8151   # Is the header compilable?
8152 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8153 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8154 cat >conftest.$ac_ext <<_ACEOF
8155 #line $LINENO "configure"
8156 #include "confdefs.h"
8157 $ac_includes_default
8158 #include <openssl/err.h>
8159 _ACEOF
8160 rm -f conftest.$ac_objext
8161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8162   (eval $ac_compile) 2>&5
8163   ac_status=$?
8164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165   (exit $ac_status); } &&
8166          { ac_try='test -s conftest.$ac_objext'
8167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168   (eval $ac_try) 2>&5
8169   ac_status=$?
8170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171   (exit $ac_status); }; }; then
8172   ac_header_compiler=yes
8173 else
8174   echo "$as_me: failed program was:" >&5
8175 cat conftest.$ac_ext >&5
8176 ac_header_compiler=no
8177 fi
8178 rm -f conftest.$ac_objext conftest.$ac_ext
8179 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8180 echo "${ECHO_T}$ac_header_compiler" >&6
8181
8182 # Is the header present?
8183 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8184 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8185 cat >conftest.$ac_ext <<_ACEOF
8186 #line $LINENO "configure"
8187 #include "confdefs.h"
8188 #include <openssl/err.h>
8189 _ACEOF
8190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8191   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8192   ac_status=$?
8193   egrep -v '^ *\+' conftest.er1 >conftest.err
8194   rm -f conftest.er1
8195   cat conftest.err >&5
8196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197   (exit $ac_status); } >/dev/null; then
8198   if test -s conftest.err; then
8199     ac_cpp_err=$ac_c_preproc_warn_flag
8200   else
8201     ac_cpp_err=
8202   fi
8203 else
8204   ac_cpp_err=yes
8205 fi
8206 if test -z "$ac_cpp_err"; then
8207   ac_header_preproc=yes
8208 else
8209   echo "$as_me: failed program was:" >&5
8210   cat conftest.$ac_ext >&5
8211   ac_header_preproc=no
8212 fi
8213 rm -f conftest.err conftest.$ac_ext
8214 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8215 echo "${ECHO_T}$ac_header_preproc" >&6
8216
8217 # So?  What about this header?
8218 case $ac_header_compiler:$ac_header_preproc in
8219   yes:no )
8220     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8221 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8222     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8223 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8224   no:yes )
8225     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8226 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8227     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8228 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8229     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8230 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8231 esac
8232 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8233 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8234 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8235   echo $ECHO_N "(cached) $ECHO_C" >&6
8236 else
8237   ac_cv_header_openssl_err_h=$ac_header_preproc
8238 fi
8239 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8240 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8241
8242 fi
8243 if test $ac_cv_header_openssl_err_h = yes; then
8244   :
8245 else
8246   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8247 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8248    { (exit 1); exit 1; }; }
8249 fi
8250
8251
8252 fi
8253
8254 if test "$with_pam" = yes ; then
8255   if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8256   echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8257 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8258 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8259   echo $ECHO_N "(cached) $ECHO_C" >&6
8260 fi
8261 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8262 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8263 else
8264   # Is the header compilable?
8265 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
8266 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
8267 cat >conftest.$ac_ext <<_ACEOF
8268 #line $LINENO "configure"
8269 #include "confdefs.h"
8270 $ac_includes_default
8271 #include <security/pam_appl.h>
8272 _ACEOF
8273 rm -f conftest.$ac_objext
8274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8275   (eval $ac_compile) 2>&5
8276   ac_status=$?
8277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278   (exit $ac_status); } &&
8279          { ac_try='test -s conftest.$ac_objext'
8280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8281   (eval $ac_try) 2>&5
8282   ac_status=$?
8283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284   (exit $ac_status); }; }; then
8285   ac_header_compiler=yes
8286 else
8287   echo "$as_me: failed program was:" >&5
8288 cat conftest.$ac_ext >&5
8289 ac_header_compiler=no
8290 fi
8291 rm -f conftest.$ac_objext conftest.$ac_ext
8292 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8293 echo "${ECHO_T}$ac_header_compiler" >&6
8294
8295 # Is the header present?
8296 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
8297 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
8298 cat >conftest.$ac_ext <<_ACEOF
8299 #line $LINENO "configure"
8300 #include "confdefs.h"
8301 #include <security/pam_appl.h>
8302 _ACEOF
8303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8304   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8305   ac_status=$?
8306   egrep -v '^ *\+' conftest.er1 >conftest.err
8307   rm -f conftest.er1
8308   cat conftest.err >&5
8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310   (exit $ac_status); } >/dev/null; then
8311   if test -s conftest.err; then
8312     ac_cpp_err=$ac_c_preproc_warn_flag
8313   else
8314     ac_cpp_err=
8315   fi
8316 else
8317   ac_cpp_err=yes
8318 fi
8319 if test -z "$ac_cpp_err"; then
8320   ac_header_preproc=yes
8321 else
8322   echo "$as_me: failed program was:" >&5
8323   cat conftest.$ac_ext >&5
8324   ac_header_preproc=no
8325 fi
8326 rm -f conftest.err conftest.$ac_ext
8327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8328 echo "${ECHO_T}$ac_header_preproc" >&6
8329
8330 # So?  What about this header?
8331 case $ac_header_compiler:$ac_header_preproc in
8332   yes:no )
8333     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8334 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8335     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8336 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8337   no:yes )
8338     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
8339 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
8340     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
8341 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
8342     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8343 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8344 esac
8345 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8346 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8347 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8348   echo $ECHO_N "(cached) $ECHO_C" >&6
8349 else
8350   ac_cv_header_security_pam_appl_h=$ac_header_preproc
8351 fi
8352 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8353 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8354
8355 fi
8356 if test $ac_cv_header_security_pam_appl_h = yes; then
8357   :
8358 else
8359   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
8360 echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
8361    { (exit 1); exit 1; }; }
8362 fi
8363
8364
8365 fi
8366
8367
8368 ##
8369 ## Types, structures, compiler characteristics
8370 ##
8371
8372
8373 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8374 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8375 if test "${ac_cv_c_const+set}" = set; then
8376   echo $ECHO_N "(cached) $ECHO_C" >&6
8377 else
8378   cat >conftest.$ac_ext <<_ACEOF
8379 #line $LINENO "configure"
8380 #include "confdefs.h"
8381
8382 #ifdef F77_DUMMY_MAIN
8383 #  ifdef __cplusplus
8384      extern "C"
8385 #  endif
8386    int F77_DUMMY_MAIN() { return 1; }
8387 #endif
8388 int
8389 main ()
8390 {
8391 /* FIXME: Include the comments suggested by Paul. */
8392 #ifndef __cplusplus
8393   /* Ultrix mips cc rejects this.  */
8394   typedef int charset[2];
8395   const charset x;
8396   /* SunOS 4.1.1 cc rejects this.  */
8397   char const *const *ccp;
8398   char **p;
8399   /* NEC SVR4.0.2 mips cc rejects this.  */
8400   struct point {int x, y;};
8401   static struct point const zero = {0,0};
8402   /* AIX XL C 1.02.0.0 rejects this.
8403      It does not let you subtract one const X* pointer from another in
8404      an arm of an if-expression whose if-part is not a constant
8405      expression */
8406   const char *g = "string";
8407   ccp = &g + (g ? g-g : 0);
8408   /* HPUX 7.0 cc rejects these. */
8409   ++ccp;
8410   p = (char**) ccp;
8411   ccp = (char const *const *) p;
8412   { /* SCO 3.2v4 cc rejects this.  */
8413     char *t;
8414     char const *s = 0 ? (char *) 0 : (char const *) 0;
8415
8416     *t++ = 0;
8417   }
8418   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8419     int x[] = {25, 17};
8420     const int *foo = &x[0];
8421     ++foo;
8422   }
8423   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8424     typedef const int *iptr;
8425     iptr p = 0;
8426     ++p;
8427   }
8428   { /* AIX XL C 1.02.0.0 rejects this saying
8429        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8430     struct s { int j; const int *ap[3]; };
8431     struct s *b; b->j = 5;
8432   }
8433   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8434     const int foo = 10;
8435   }
8436 #endif
8437
8438   ;
8439   return 0;
8440 }
8441 _ACEOF
8442 rm -f conftest.$ac_objext
8443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8444   (eval $ac_compile) 2>&5
8445   ac_status=$?
8446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447   (exit $ac_status); } &&
8448          { ac_try='test -s conftest.$ac_objext'
8449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450   (eval $ac_try) 2>&5
8451   ac_status=$?
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   (exit $ac_status); }; }; then
8454   ac_cv_c_const=yes
8455 else
8456   echo "$as_me: failed program was:" >&5
8457 cat conftest.$ac_ext >&5
8458 ac_cv_c_const=no
8459 fi
8460 rm -f conftest.$ac_objext conftest.$ac_ext
8461 fi
8462 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8463 echo "${ECHO_T}$ac_cv_c_const" >&6
8464 if test $ac_cv_c_const = no; then
8465
8466 cat >>confdefs.h <<\_ACEOF
8467 #define const
8468 _ACEOF
8469
8470 fi
8471
8472 echo "$as_me:$LINENO: checking for inline" >&5
8473 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8474 if test "${ac_cv_c_inline+set}" = set; then
8475   echo $ECHO_N "(cached) $ECHO_C" >&6
8476 else
8477   ac_cv_c_inline=no
8478 for ac_kw in inline __inline__ __inline; do
8479   cat >conftest.$ac_ext <<_ACEOF
8480 #line $LINENO "configure"
8481 #include "confdefs.h"
8482 #ifndef __cplusplus
8483 static $ac_kw int static_foo () {return 0; }
8484 $ac_kw int foo () {return 0; }
8485 #endif
8486
8487 _ACEOF
8488 rm -f conftest.$ac_objext
8489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8490   (eval $ac_compile) 2>&5
8491   ac_status=$?
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); } &&
8494          { ac_try='test -s conftest.$ac_objext'
8495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496   (eval $ac_try) 2>&5
8497   ac_status=$?
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); }; }; then
8500   ac_cv_c_inline=$ac_kw; break
8501 else
8502   echo "$as_me: failed program was:" >&5
8503 cat conftest.$ac_ext >&5
8504 fi
8505 rm -f conftest.$ac_objext conftest.$ac_ext
8506 done
8507
8508 fi
8509 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8510 echo "${ECHO_T}$ac_cv_c_inline" >&6
8511 case $ac_cv_c_inline in
8512   inline | yes) ;;
8513   no)
8514 cat >>confdefs.h <<\_ACEOF
8515 #define inline
8516 _ACEOF
8517  ;;
8518   *)  cat >>confdefs.h <<_ACEOF
8519 #define inline $ac_cv_c_inline
8520 _ACEOF
8521  ;;
8522 esac
8523
8524 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8525 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8526 if test "${ac_cv_c_stringize+set}" = set; then
8527   echo $ECHO_N "(cached) $ECHO_C" >&6
8528 else
8529   cat >conftest.$ac_ext <<_ACEOF
8530 #line $LINENO "configure"
8531 #include "confdefs.h"
8532 #define x(y) #y
8533
8534 char *s = x(teststring);
8535 _ACEOF
8536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8537   egrep "#teststring" >/dev/null 2>&1; then
8538   ac_cv_c_stringize=no
8539 else
8540   ac_cv_c_stringize=yes
8541 fi
8542 rm -f conftest*
8543
8544 fi
8545 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8546 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8547 if test $ac_cv_c_stringize = yes; then
8548
8549 cat >>confdefs.h <<\_ACEOF
8550 #define HAVE_STRINGIZE 1
8551 _ACEOF
8552
8553 fi
8554
8555 echo "$as_me:$LINENO: checking for signed types" >&5
8556 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
8557 if test "${pgac_cv_c_signed+set}" = set; then
8558   echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8560   cat >conftest.$ac_ext <<_ACEOF
8561 #line $LINENO "configure"
8562 #include "confdefs.h"
8563
8564 #ifdef F77_DUMMY_MAIN
8565 #  ifdef __cplusplus
8566      extern "C"
8567 #  endif
8568    int F77_DUMMY_MAIN() { return 1; }
8569 #endif
8570 int
8571 main ()
8572 {
8573 signed char c; signed short s; signed int i;
8574   ;
8575   return 0;
8576 }
8577 _ACEOF
8578 rm -f conftest.$ac_objext
8579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8580   (eval $ac_compile) 2>&5
8581   ac_status=$?
8582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583   (exit $ac_status); } &&
8584          { ac_try='test -s conftest.$ac_objext'
8585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586   (eval $ac_try) 2>&5
8587   ac_status=$?
8588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589   (exit $ac_status); }; }; then
8590   pgac_cv_c_signed=yes
8591 else
8592   echo "$as_me: failed program was:" >&5
8593 cat conftest.$ac_ext >&5
8594 pgac_cv_c_signed=no
8595 fi
8596 rm -f conftest.$ac_objext conftest.$ac_ext
8597 fi
8598 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
8599 echo "${ECHO_T}$pgac_cv_c_signed" >&6
8600 if test x"$pgac_cv_c_signed" = xno ; then
8601
8602 cat >>confdefs.h <<\_ACEOF
8603 #define signed
8604 _ACEOF
8605
8606 fi
8607 echo "$as_me:$LINENO: checking for working volatile" >&5
8608 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8609 if test "${ac_cv_c_volatile+set}" = set; then
8610   echo $ECHO_N "(cached) $ECHO_C" >&6
8611 else
8612   cat >conftest.$ac_ext <<_ACEOF
8613 #line $LINENO "configure"
8614 #include "confdefs.h"
8615
8616 #ifdef F77_DUMMY_MAIN
8617 #  ifdef __cplusplus
8618      extern "C"
8619 #  endif
8620    int F77_DUMMY_MAIN() { return 1; }
8621 #endif
8622 int
8623 main ()
8624 {
8625
8626 volatile int x;
8627 int * volatile y;
8628   ;
8629   return 0;
8630 }
8631 _ACEOF
8632 rm -f conftest.$ac_objext
8633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8634   (eval $ac_compile) 2>&5
8635   ac_status=$?
8636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637   (exit $ac_status); } &&
8638          { ac_try='test -s conftest.$ac_objext'
8639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8640   (eval $ac_try) 2>&5
8641   ac_status=$?
8642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643   (exit $ac_status); }; }; then
8644   ac_cv_c_volatile=yes
8645 else
8646   echo "$as_me: failed program was:" >&5
8647 cat conftest.$ac_ext >&5
8648 ac_cv_c_volatile=no
8649 fi
8650 rm -f conftest.$ac_objext conftest.$ac_ext
8651 fi
8652 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8653 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8654 if test $ac_cv_c_volatile = no; then
8655
8656 cat >>confdefs.h <<\_ACEOF
8657 #define volatile
8658 _ACEOF
8659
8660 fi
8661
8662 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8663 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8664 if test "${ac_cv_struct_tm+set}" = set; then
8665   echo $ECHO_N "(cached) $ECHO_C" >&6
8666 else
8667   cat >conftest.$ac_ext <<_ACEOF
8668 #line $LINENO "configure"
8669 #include "confdefs.h"
8670 #include <sys/types.h>
8671 #include <time.h>
8672
8673 #ifdef F77_DUMMY_MAIN
8674 #  ifdef __cplusplus
8675      extern "C"
8676 #  endif
8677    int F77_DUMMY_MAIN() { return 1; }
8678 #endif
8679 int
8680 main ()
8681 {
8682 struct tm *tp; tp->tm_sec;
8683   ;
8684   return 0;
8685 }
8686 _ACEOF
8687 rm -f conftest.$ac_objext
8688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8689   (eval $ac_compile) 2>&5
8690   ac_status=$?
8691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692   (exit $ac_status); } &&
8693          { ac_try='test -s conftest.$ac_objext'
8694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8695   (eval $ac_try) 2>&5
8696   ac_status=$?
8697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698   (exit $ac_status); }; }; then
8699   ac_cv_struct_tm=time.h
8700 else
8701   echo "$as_me: failed program was:" >&5
8702 cat conftest.$ac_ext >&5
8703 ac_cv_struct_tm=sys/time.h
8704 fi
8705 rm -f conftest.$ac_objext conftest.$ac_ext
8706 fi
8707 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8708 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8709 if test $ac_cv_struct_tm = sys/time.h; then
8710
8711 cat >>confdefs.h <<\_ACEOF
8712 #define TM_IN_SYS_TIME 1
8713 _ACEOF
8714
8715 fi
8716
8717 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8718 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
8719 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8720   echo $ECHO_N "(cached) $ECHO_C" >&6
8721 else
8722   cat >conftest.$ac_ext <<_ACEOF
8723 #line $LINENO "configure"
8724 #include "confdefs.h"
8725 #include <sys/types.h>
8726 #include <$ac_cv_struct_tm>
8727
8728
8729 #ifdef F77_DUMMY_MAIN
8730 #  ifdef __cplusplus
8731      extern "C"
8732 #  endif
8733    int F77_DUMMY_MAIN() { return 1; }
8734 #endif
8735 int
8736 main ()
8737 {
8738 static struct tm ac_aggr;
8739 if (ac_aggr.tm_zone)
8740 return 0;
8741   ;
8742   return 0;
8743 }
8744 _ACEOF
8745 rm -f conftest.$ac_objext
8746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8747   (eval $ac_compile) 2>&5
8748   ac_status=$?
8749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750   (exit $ac_status); } &&
8751          { ac_try='test -s conftest.$ac_objext'
8752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753   (eval $ac_try) 2>&5
8754   ac_status=$?
8755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756   (exit $ac_status); }; }; then
8757   ac_cv_member_struct_tm_tm_zone=yes
8758 else
8759   echo "$as_me: failed program was:" >&5
8760 cat conftest.$ac_ext >&5
8761 ac_cv_member_struct_tm_tm_zone=no
8762 fi
8763 rm -f conftest.$ac_objext conftest.$ac_ext
8764 fi
8765 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8766 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
8767 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8768
8769 cat >>confdefs.h <<_ACEOF
8770 #define HAVE_STRUCT_TM_TM_ZONE 1
8771 _ACEOF
8772
8773
8774 fi
8775
8776 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8777
8778 cat >>confdefs.h <<\_ACEOF
8779 #define HAVE_TM_ZONE 1
8780 _ACEOF
8781
8782 else
8783   echo "$as_me:$LINENO: checking for tzname" >&5
8784 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
8785 if test "${ac_cv_var_tzname+set}" = set; then
8786   echo $ECHO_N "(cached) $ECHO_C" >&6
8787 else
8788   cat >conftest.$ac_ext <<_ACEOF
8789 #line $LINENO "configure"
8790 #include "confdefs.h"
8791 #include <time.h>
8792 #ifndef tzname /* For SGI.  */
8793 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
8794 #endif
8795
8796 #ifdef F77_DUMMY_MAIN
8797 #  ifdef __cplusplus
8798      extern "C"
8799 #  endif
8800    int F77_DUMMY_MAIN() { return 1; }
8801 #endif
8802 int
8803 main ()
8804 {
8805 atoi(*tzname);
8806   ;
8807   return 0;
8808 }
8809 _ACEOF
8810 rm -f conftest.$ac_objext conftest$ac_exeext
8811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8812   (eval $ac_link) 2>&5
8813   ac_status=$?
8814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815   (exit $ac_status); } &&
8816          { ac_try='test -s conftest$ac_exeext'
8817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818   (eval $ac_try) 2>&5
8819   ac_status=$?
8820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821   (exit $ac_status); }; }; then
8822   ac_cv_var_tzname=yes
8823 else
8824   echo "$as_me: failed program was:" >&5
8825 cat conftest.$ac_ext >&5
8826 ac_cv_var_tzname=no
8827 fi
8828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8829 fi
8830 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8831 echo "${ECHO_T}$ac_cv_var_tzname" >&6
8832   if test $ac_cv_var_tzname = yes; then
8833
8834 cat >>confdefs.h <<\_ACEOF
8835 #define HAVE_TZNAME 1
8836 _ACEOF
8837
8838   fi
8839 fi
8840
8841 echo "$as_me:$LINENO: checking for union semun" >&5
8842 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
8843 if test "${ac_cv_type_union_semun+set}" = set; then
8844   echo $ECHO_N "(cached) $ECHO_C" >&6
8845 else
8846   cat >conftest.$ac_ext <<_ACEOF
8847 #line $LINENO "configure"
8848 #include "confdefs.h"
8849 #include <sys/types.h>
8850 #include <sys/ipc.h>
8851 #include <sys/sem.h>
8852
8853 #ifdef F77_DUMMY_MAIN
8854 #  ifdef __cplusplus
8855      extern "C"
8856 #  endif
8857    int F77_DUMMY_MAIN() { return 1; }
8858 #endif
8859 int
8860 main ()
8861 {
8862 if ((union semun *) 0)
8863   return 0;
8864 if (sizeof (union semun))
8865   return 0;
8866   ;
8867   return 0;
8868 }
8869 _ACEOF
8870 rm -f conftest.$ac_objext
8871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8872   (eval $ac_compile) 2>&5
8873   ac_status=$?
8874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875   (exit $ac_status); } &&
8876          { ac_try='test -s conftest.$ac_objext'
8877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878   (eval $ac_try) 2>&5
8879   ac_status=$?
8880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881   (exit $ac_status); }; }; then
8882   ac_cv_type_union_semun=yes
8883 else
8884   echo "$as_me: failed program was:" >&5
8885 cat conftest.$ac_ext >&5
8886 ac_cv_type_union_semun=no
8887 fi
8888 rm -f conftest.$ac_objext conftest.$ac_ext
8889 fi
8890 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
8891 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
8892 if test $ac_cv_type_union_semun = yes; then
8893
8894 cat >>confdefs.h <<_ACEOF
8895 #define HAVE_UNION_SEMUN 1
8896 _ACEOF
8897
8898
8899 fi
8900
8901 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
8902 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
8903 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
8904   echo $ECHO_N "(cached) $ECHO_C" >&6
8905 else
8906   cat >conftest.$ac_ext <<_ACEOF
8907 #line $LINENO "configure"
8908 #include "confdefs.h"
8909 #include <sys/types.h>
8910 #ifdef HAVE_SYS_UN_H
8911 #include <sys/un.h>
8912 #endif
8913
8914
8915 #ifdef F77_DUMMY_MAIN
8916 #  ifdef __cplusplus
8917      extern "C"
8918 #  endif
8919    int F77_DUMMY_MAIN() { return 1; }
8920 #endif
8921 int
8922 main ()
8923 {
8924 if ((struct sockaddr_un *) 0)
8925   return 0;
8926 if (sizeof (struct sockaddr_un))
8927   return 0;
8928   ;
8929   return 0;
8930 }
8931 _ACEOF
8932 rm -f conftest.$ac_objext
8933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8934   (eval $ac_compile) 2>&5
8935   ac_status=$?
8936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937   (exit $ac_status); } &&
8938          { ac_try='test -s conftest.$ac_objext'
8939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940   (eval $ac_try) 2>&5
8941   ac_status=$?
8942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943   (exit $ac_status); }; }; then
8944   ac_cv_type_struct_sockaddr_un=yes
8945 else
8946   echo "$as_me: failed program was:" >&5
8947 cat conftest.$ac_ext >&5
8948 ac_cv_type_struct_sockaddr_un=no
8949 fi
8950 rm -f conftest.$ac_objext conftest.$ac_ext
8951 fi
8952 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
8953 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
8954 if test $ac_cv_type_struct_sockaddr_un = yes; then
8955
8956 cat >>confdefs.h <<_ACEOF
8957 #define HAVE_STRUCT_SOCKADDR_UN 1
8958 _ACEOF
8959
8960
8961 fi
8962
8963
8964 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
8965 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
8966 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
8967   echo $ECHO_N "(cached) $ECHO_C" >&6
8968 else
8969   cat >conftest.$ac_ext <<_ACEOF
8970 #line $LINENO "configure"
8971 #include "confdefs.h"
8972 #include <sys/param.h>
8973 #include <sys/socket.h>
8974 #include <sys/ucred.h>
8975
8976 #ifdef F77_DUMMY_MAIN
8977 #  ifdef __cplusplus
8978      extern "C"
8979 #  endif
8980    int F77_DUMMY_MAIN() { return 1; }
8981 #endif
8982 int
8983 main ()
8984 {
8985 if ((struct cmsgcred *) 0)
8986   return 0;
8987 if (sizeof (struct cmsgcred))
8988   return 0;
8989   ;
8990   return 0;
8991 }
8992 _ACEOF
8993 rm -f conftest.$ac_objext
8994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8995   (eval $ac_compile) 2>&5
8996   ac_status=$?
8997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998   (exit $ac_status); } &&
8999          { ac_try='test -s conftest.$ac_objext'
9000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001   (eval $ac_try) 2>&5
9002   ac_status=$?
9003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004   (exit $ac_status); }; }; then
9005   ac_cv_type_struct_cmsgcred=yes
9006 else
9007   echo "$as_me: failed program was:" >&5
9008 cat conftest.$ac_ext >&5
9009 ac_cv_type_struct_cmsgcred=no
9010 fi
9011 rm -f conftest.$ac_objext conftest.$ac_ext
9012 fi
9013 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9014 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9015 if test $ac_cv_type_struct_cmsgcred = yes; then
9016
9017 cat >>confdefs.h <<_ACEOF
9018 #define HAVE_STRUCT_CMSGCRED 1
9019 _ACEOF
9020
9021
9022 fi
9023 echo "$as_me:$LINENO: checking for struct fcred" >&5
9024 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9025 if test "${ac_cv_type_struct_fcred+set}" = set; then
9026   echo $ECHO_N "(cached) $ECHO_C" >&6
9027 else
9028   cat >conftest.$ac_ext <<_ACEOF
9029 #line $LINENO "configure"
9030 #include "confdefs.h"
9031 #include <sys/param.h>
9032 #include <sys/socket.h>
9033 #include <sys/ucred.h>
9034
9035 #ifdef F77_DUMMY_MAIN
9036 #  ifdef __cplusplus
9037      extern "C"
9038 #  endif
9039    int F77_DUMMY_MAIN() { return 1; }
9040 #endif
9041 int
9042 main ()
9043 {
9044 if ((struct fcred *) 0)
9045   return 0;
9046 if (sizeof (struct fcred))
9047   return 0;
9048   ;
9049   return 0;
9050 }
9051 _ACEOF
9052 rm -f conftest.$ac_objext
9053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9054   (eval $ac_compile) 2>&5
9055   ac_status=$?
9056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057   (exit $ac_status); } &&
9058          { ac_try='test -s conftest.$ac_objext'
9059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060   (eval $ac_try) 2>&5
9061   ac_status=$?
9062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063   (exit $ac_status); }; }; then
9064   ac_cv_type_struct_fcred=yes
9065 else
9066   echo "$as_me: failed program was:" >&5
9067 cat conftest.$ac_ext >&5
9068 ac_cv_type_struct_fcred=no
9069 fi
9070 rm -f conftest.$ac_objext conftest.$ac_ext
9071 fi
9072 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9073 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9074 if test $ac_cv_type_struct_fcred = yes; then
9075
9076 cat >>confdefs.h <<_ACEOF
9077 #define HAVE_STRUCT_FCRED 1
9078 _ACEOF
9079
9080
9081 fi
9082 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9083 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9084 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9085   echo $ECHO_N "(cached) $ECHO_C" >&6
9086 else
9087   cat >conftest.$ac_ext <<_ACEOF
9088 #line $LINENO "configure"
9089 #include "confdefs.h"
9090 #include <sys/param.h>
9091 #include <sys/socket.h>
9092 #include <sys/ucred.h>
9093
9094 #ifdef F77_DUMMY_MAIN
9095 #  ifdef __cplusplus
9096      extern "C"
9097 #  endif
9098    int F77_DUMMY_MAIN() { return 1; }
9099 #endif
9100 int
9101 main ()
9102 {
9103 if ((struct sockcred *) 0)
9104   return 0;
9105 if (sizeof (struct sockcred))
9106   return 0;
9107   ;
9108   return 0;
9109 }
9110 _ACEOF
9111 rm -f conftest.$ac_objext
9112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9113   (eval $ac_compile) 2>&5
9114   ac_status=$?
9115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116   (exit $ac_status); } &&
9117          { ac_try='test -s conftest.$ac_objext'
9118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119   (eval $ac_try) 2>&5
9120   ac_status=$?
9121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122   (exit $ac_status); }; }; then
9123   ac_cv_type_struct_sockcred=yes
9124 else
9125   echo "$as_me: failed program was:" >&5
9126 cat conftest.$ac_ext >&5
9127 ac_cv_type_struct_sockcred=no
9128 fi
9129 rm -f conftest.$ac_objext conftest.$ac_ext
9130 fi
9131 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9132 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9133 if test $ac_cv_type_struct_sockcred = yes; then
9134
9135 cat >>confdefs.h <<_ACEOF
9136 #define HAVE_STRUCT_SOCKCRED 1
9137 _ACEOF
9138
9139
9140 fi
9141
9142
9143 if test "$with_zlib" = yes; then
9144   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9145   # did not).  While we could work around the lack of z_streamp, it
9146   # seems unwise to encourage people to use such old zlib versions...
9147   echo "$as_me:$LINENO: checking for z_streamp" >&5
9148 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9149 if test "${ac_cv_type_z_streamp+set}" = set; then
9150   echo $ECHO_N "(cached) $ECHO_C" >&6
9151 else
9152   cat >conftest.$ac_ext <<_ACEOF
9153 #line $LINENO "configure"
9154 #include "confdefs.h"
9155 #include <zlib.h>
9156
9157 #ifdef F77_DUMMY_MAIN
9158 #  ifdef __cplusplus
9159      extern "C"
9160 #  endif
9161    int F77_DUMMY_MAIN() { return 1; }
9162 #endif
9163 int
9164 main ()
9165 {
9166 if ((z_streamp *) 0)
9167   return 0;
9168 if (sizeof (z_streamp))
9169   return 0;
9170   ;
9171   return 0;
9172 }
9173 _ACEOF
9174 rm -f conftest.$ac_objext
9175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9176   (eval $ac_compile) 2>&5
9177   ac_status=$?
9178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179   (exit $ac_status); } &&
9180          { ac_try='test -s conftest.$ac_objext'
9181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182   (eval $ac_try) 2>&5
9183   ac_status=$?
9184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185   (exit $ac_status); }; }; then
9186   ac_cv_type_z_streamp=yes
9187 else
9188   echo "$as_me: failed program was:" >&5
9189 cat conftest.$ac_ext >&5
9190 ac_cv_type_z_streamp=no
9191 fi
9192 rm -f conftest.$ac_objext conftest.$ac_ext
9193 fi
9194 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9195 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9196 if test $ac_cv_type_z_streamp = yes; then
9197   :
9198 else
9199   { { echo "$as_me:$LINENO: error: zlib version is too old
9200 Use --without-zlib to disable zlib support." >&5
9201 echo "$as_me: error: zlib version is too old
9202 Use --without-zlib to disable zlib support." >&2;}
9203    { (exit 1); exit 1; }; }
9204 fi
9205
9206 fi
9207
9208 if test "$with_krb5" = yes; then
9209 # Check for differences between MIT and Heimdal (KTH) releases
9210   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9211 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9212 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9213   echo $ECHO_N "(cached) $ECHO_C" >&6
9214 else
9215   cat >conftest.$ac_ext <<_ACEOF
9216 #line $LINENO "configure"
9217 #include "confdefs.h"
9218 #include <krb5.h>
9219
9220 #ifdef F77_DUMMY_MAIN
9221 #  ifdef __cplusplus
9222      extern "C"
9223 #  endif
9224    int F77_DUMMY_MAIN() { return 1; }
9225 #endif
9226 int
9227 main ()
9228 {
9229 static krb5_ticket ac_aggr;
9230 if (ac_aggr.enc_part2)
9231 return 0;
9232   ;
9233   return 0;
9234 }
9235 _ACEOF
9236 rm -f conftest.$ac_objext
9237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9238   (eval $ac_compile) 2>&5
9239   ac_status=$?
9240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241   (exit $ac_status); } &&
9242          { ac_try='test -s conftest.$ac_objext'
9243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244   (eval $ac_try) 2>&5
9245   ac_status=$?
9246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247   (exit $ac_status); }; }; then
9248   ac_cv_member_krb5_ticket_enc_part2=yes
9249 else
9250   echo "$as_me: failed program was:" >&5
9251 cat conftest.$ac_ext >&5
9252 ac_cv_member_krb5_ticket_enc_part2=no
9253 fi
9254 rm -f conftest.$ac_objext conftest.$ac_ext
9255 fi
9256 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9257 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9258 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
9259
9260 cat >>confdefs.h <<_ACEOF
9261 #define HAVE_KRB5_TICKET_ENC_PART2 1
9262 _ACEOF
9263
9264
9265 else
9266   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9267 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9268 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9269   echo $ECHO_N "(cached) $ECHO_C" >&6
9270 else
9271   cat >conftest.$ac_ext <<_ACEOF
9272 #line $LINENO "configure"
9273 #include "confdefs.h"
9274 #include <krb5.h>
9275
9276 #ifdef F77_DUMMY_MAIN
9277 #  ifdef __cplusplus
9278      extern "C"
9279 #  endif
9280    int F77_DUMMY_MAIN() { return 1; }
9281 #endif
9282 int
9283 main ()
9284 {
9285 static krb5_ticket ac_aggr;
9286 if (ac_aggr.client)
9287 return 0;
9288   ;
9289   return 0;
9290 }
9291 _ACEOF
9292 rm -f conftest.$ac_objext
9293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9294   (eval $ac_compile) 2>&5
9295   ac_status=$?
9296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297   (exit $ac_status); } &&
9298          { ac_try='test -s conftest.$ac_objext'
9299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300   (eval $ac_try) 2>&5
9301   ac_status=$?
9302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303   (exit $ac_status); }; }; then
9304   ac_cv_member_krb5_ticket_client=yes
9305 else
9306   echo "$as_me: failed program was:" >&5
9307 cat conftest.$ac_ext >&5
9308 ac_cv_member_krb5_ticket_client=no
9309 fi
9310 rm -f conftest.$ac_objext conftest.$ac_ext
9311 fi
9312 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
9313 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
9314 if test $ac_cv_member_krb5_ticket_client = yes; then
9315
9316 cat >>confdefs.h <<_ACEOF
9317 #define HAVE_KRB5_TICKET_CLIENT 1
9318 _ACEOF
9319
9320
9321 else
9322   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
9323 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
9324    { (exit 1); exit 1; }; }
9325 fi
9326
9327 fi
9328
9329   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
9330 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
9331 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
9332   echo $ECHO_N "(cached) $ECHO_C" >&6
9333 else
9334   cat >conftest.$ac_ext <<_ACEOF
9335 #line $LINENO "configure"
9336 #include "confdefs.h"
9337 #include <krb5.h>
9338
9339 #ifdef F77_DUMMY_MAIN
9340 #  ifdef __cplusplus
9341      extern "C"
9342 #  endif
9343    int F77_DUMMY_MAIN() { return 1; }
9344 #endif
9345 int
9346 main ()
9347 {
9348 static krb5_error ac_aggr;
9349 if (ac_aggr.text.data)
9350 return 0;
9351   ;
9352   return 0;
9353 }
9354 _ACEOF
9355 rm -f conftest.$ac_objext
9356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9357   (eval $ac_compile) 2>&5
9358   ac_status=$?
9359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360   (exit $ac_status); } &&
9361          { ac_try='test -s conftest.$ac_objext'
9362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363   (eval $ac_try) 2>&5
9364   ac_status=$?
9365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366   (exit $ac_status); }; }; then
9367   ac_cv_member_krb5_error_text_data=yes
9368 else
9369   echo "$as_me: failed program was:" >&5
9370 cat conftest.$ac_ext >&5
9371 ac_cv_member_krb5_error_text_data=no
9372 fi
9373 rm -f conftest.$ac_objext conftest.$ac_ext
9374 fi
9375 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
9376 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
9377 if test $ac_cv_member_krb5_error_text_data = yes; then
9378
9379 cat >>confdefs.h <<_ACEOF
9380 #define HAVE_KRB5_ERROR_TEXT_DATA 1
9381 _ACEOF
9382
9383
9384 else
9385   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
9386 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
9387 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
9388   echo $ECHO_N "(cached) $ECHO_C" >&6
9389 else
9390   cat >conftest.$ac_ext <<_ACEOF
9391 #line $LINENO "configure"
9392 #include "confdefs.h"
9393 #include <krb5.h>
9394
9395 #ifdef F77_DUMMY_MAIN
9396 #  ifdef __cplusplus
9397      extern "C"
9398 #  endif
9399    int F77_DUMMY_MAIN() { return 1; }
9400 #endif
9401 int
9402 main ()
9403 {
9404 static krb5_error ac_aggr;
9405 if (ac_aggr.e_data)
9406 return 0;
9407   ;
9408   return 0;
9409 }
9410 _ACEOF
9411 rm -f conftest.$ac_objext
9412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9413   (eval $ac_compile) 2>&5
9414   ac_status=$?
9415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416   (exit $ac_status); } &&
9417          { ac_try='test -s conftest.$ac_objext'
9418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419   (eval $ac_try) 2>&5
9420   ac_status=$?
9421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422   (exit $ac_status); }; }; then
9423   ac_cv_member_krb5_error_e_data=yes
9424 else
9425   echo "$as_me: failed program was:" >&5
9426 cat conftest.$ac_ext >&5
9427 ac_cv_member_krb5_error_e_data=no
9428 fi
9429 rm -f conftest.$ac_objext conftest.$ac_ext
9430 fi
9431 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
9432 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
9433 if test $ac_cv_member_krb5_error_e_data = yes; then
9434   :
9435 else
9436   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
9437 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
9438    { (exit 1); exit 1; }; }
9439 fi
9440
9441 fi
9442
9443 fi
9444
9445
9446 ##
9447 ## Functions, global variables
9448 ##
9449
9450 echo "$as_me:$LINENO: checking for int timezone" >&5
9451 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
9452 if test "${pgac_cv_var_int_timezone+set}" = set; then
9453   echo $ECHO_N "(cached) $ECHO_C" >&6
9454 else
9455   cat >conftest.$ac_ext <<_ACEOF
9456 #line $LINENO "configure"
9457 #include "confdefs.h"
9458 #include <time.h>
9459 int res;
9460 #ifdef F77_DUMMY_MAIN
9461 #  ifdef __cplusplus
9462      extern "C"
9463 #  endif
9464    int F77_DUMMY_MAIN() { return 1; }
9465 #endif
9466 int
9467 main ()
9468 {
9469 res = timezone / 60;
9470   ;
9471   return 0;
9472 }
9473 _ACEOF
9474 rm -f conftest.$ac_objext conftest$ac_exeext
9475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9476   (eval $ac_link) 2>&5
9477   ac_status=$?
9478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479   (exit $ac_status); } &&
9480          { ac_try='test -s conftest$ac_exeext'
9481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482   (eval $ac_try) 2>&5
9483   ac_status=$?
9484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485   (exit $ac_status); }; }; then
9486   pgac_cv_var_int_timezone=yes
9487 else
9488   echo "$as_me: failed program was:" >&5
9489 cat conftest.$ac_ext >&5
9490 pgac_cv_var_int_timezone=no
9491 fi
9492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9493 fi
9494 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
9495 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
9496 if test x"$pgac_cv_var_int_timezone" = xyes ; then
9497
9498 cat >>confdefs.h <<\_ACEOF
9499 #define HAVE_INT_TIMEZONE
9500 _ACEOF
9501
9502 fi
9503 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
9504 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
9505  if test "${ac_cv_func_accept_arg1+set}" = set; then
9506   echo $ECHO_N "(cached) $ECHO_C" >&6
9507 else
9508    if test "${ac_cv_func_accept_arg2+set}" = set; then
9509   echo $ECHO_N "(cached) $ECHO_C" >&6
9510 else
9511     if test "${ac_cv_func_accept_arg3+set}" = set; then
9512   echo $ECHO_N "(cached) $ECHO_C" >&6
9513 else
9514      for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
9515      for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
9516       for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
9517        cat >conftest.$ac_ext <<_ACEOF
9518 #line $LINENO "configure"
9519 #include "confdefs.h"
9520 #ifdef HAVE_SYS_TYPES_H
9521 #include <sys/types.h>
9522 #endif
9523 #ifdef HAVE_SYS_SOCKET_H
9524 #include <sys/socket.h>
9525 #endif
9526 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
9527 #ifdef F77_DUMMY_MAIN
9528 #  ifdef __cplusplus
9529      extern "C"
9530 #  endif
9531    int F77_DUMMY_MAIN() { return 1; }
9532 #endif
9533 int
9534 main ()
9535 {
9536
9537   ;
9538   return 0;
9539 }
9540 _ACEOF
9541 rm -f conftest.$ac_objext
9542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9543   (eval $ac_compile) 2>&5
9544   ac_status=$?
9545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546   (exit $ac_status); } &&
9547          { ac_try='test -s conftest.$ac_objext'
9548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9549   (eval $ac_try) 2>&5
9550   ac_status=$?
9551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552   (exit $ac_status); }; }; then
9553   ac_not_found=no; break 3
9554 else
9555   echo "$as_me: failed program was:" >&5
9556 cat conftest.$ac_ext >&5
9557 ac_not_found=yes
9558 fi
9559 rm -f conftest.$ac_objext conftest.$ac_ext
9560       done
9561      done
9562     done
9563     if test "$ac_not_found" = yes; then
9564       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
9565 echo "$as_me: error: could not determine argument types" >&2;}
9566    { (exit 1); exit 1; }; }
9567     fi
9568     if test "$ac_cv_func_accept_arg3" = "void"; then
9569       ac_cv_func_accept_arg3=int
9570     fi
9571
9572 fi
9573
9574 fi
9575
9576 fi
9577  echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
9578 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
9579
9580 cat >>confdefs.h <<_ACEOF
9581 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
9582 _ACEOF
9583
9584
9585 cat >>confdefs.h <<_ACEOF
9586 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
9587 _ACEOF
9588
9589
9590 cat >>confdefs.h <<_ACEOF
9591 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
9592 _ACEOF
9593
9594
9595 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
9596 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
9597 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
9598   echo $ECHO_N "(cached) $ECHO_C" >&6
9599 else
9600   cat >conftest.$ac_ext <<_ACEOF
9601 #line $LINENO "configure"
9602 #include "confdefs.h"
9603 #include <sys/time.h>
9604 #ifdef F77_DUMMY_MAIN
9605 #  ifdef __cplusplus
9606      extern "C"
9607 #  endif
9608    int F77_DUMMY_MAIN() { return 1; }
9609 #endif
9610 int
9611 main ()
9612 {
9613 struct timeval *tp;
9614 struct timezone *tzp;
9615 gettimeofday(tp,tzp);
9616   ;
9617   return 0;
9618 }
9619 _ACEOF
9620 rm -f conftest.$ac_objext
9621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9622   (eval $ac_compile) 2>&5
9623   ac_status=$?
9624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625   (exit $ac_status); } &&
9626          { ac_try='test -s conftest.$ac_objext'
9627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9628   (eval $ac_try) 2>&5
9629   ac_status=$?
9630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631   (exit $ac_status); }; }; then
9632   pgac_cv_func_gettimeofday_1arg=no
9633 else
9634   echo "$as_me: failed program was:" >&5
9635 cat conftest.$ac_ext >&5
9636 pgac_cv_func_gettimeofday_1arg=yes
9637 fi
9638 rm -f conftest.$ac_objext conftest.$ac_ext
9639 fi
9640 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
9641 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
9642 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
9643
9644 cat >>confdefs.h <<\_ACEOF
9645 #define GETTIMEOFDAY_1ARG
9646 _ACEOF
9647
9648 fi
9649
9650 # SunOS doesn't handle negative byte comparisons properly with +/- return
9651 echo "$as_me:$LINENO: checking for working memcmp" >&5
9652 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9653 if test "${ac_cv_func_memcmp_working+set}" = set; then
9654   echo $ECHO_N "(cached) $ECHO_C" >&6
9655 else
9656   if test "$cross_compiling" = yes; then
9657   ac_cv_func_memcmp_working=no
9658 else
9659   cat >conftest.$ac_ext <<_ACEOF
9660 #line $LINENO "configure"
9661 #include "confdefs.h"
9662
9663 #ifdef F77_DUMMY_MAIN
9664 #  ifdef __cplusplus
9665      extern "C"
9666 #  endif
9667    int F77_DUMMY_MAIN() { return 1; }
9668 #endif
9669 int
9670 main ()
9671 {
9672
9673   /* Some versions of memcmp are not 8-bit clean.  */
9674   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9675   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9676     exit (1);
9677
9678   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9679      or more and with at least one buffer not starting on a 4-byte boundary.
9680      William Lewis provided this test program.   */
9681   {
9682     char foo[21];
9683     char bar[21];
9684     int i;
9685     for (i = 0; i < 4; i++)
9686       {
9687         char *a = foo + i;
9688         char *b = bar + i;
9689         strcpy (a, "--------01111111");
9690         strcpy (b, "--------10000000");
9691         if (memcmp (a, b, 16) >= 0)
9692           exit (1);
9693       }
9694     exit (0);
9695   }
9696
9697   ;
9698   return 0;
9699 }
9700 _ACEOF
9701 rm -f conftest$ac_exeext
9702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9703   (eval $ac_link) 2>&5
9704   ac_status=$?
9705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708   (eval $ac_try) 2>&5
9709   ac_status=$?
9710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711   (exit $ac_status); }; }; then
9712   ac_cv_func_memcmp_working=yes
9713 else
9714   echo "$as_me: program exited with status $ac_status" >&5
9715 echo "$as_me: failed program was:" >&5
9716 cat conftest.$ac_ext >&5
9717 ( exit $ac_status )
9718 ac_cv_func_memcmp_working=no
9719 fi
9720 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9721 fi
9722 fi
9723 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9724 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9725 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740 for ac_func in cbrt fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
9741 do
9742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9743 echo "$as_me:$LINENO: checking for $ac_func" >&5
9744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9745 if eval "test \"\${$as_ac_var+set}\" = set"; then
9746   echo $ECHO_N "(cached) $ECHO_C" >&6
9747 else
9748   cat >conftest.$ac_ext <<_ACEOF
9749 #line $LINENO "configure"
9750 #include "confdefs.h"
9751 /* System header to define __stub macros and hopefully few prototypes,
9752     which can conflict with char $ac_func (); below.  */
9753 #include <assert.h>
9754 /* Override any gcc2 internal prototype to avoid an error.  */
9755 #ifdef __cplusplus
9756 extern "C"
9757 #endif
9758 /* We use char because int might match the return type of a gcc2
9759    builtin and then its argument prototype would still apply.  */
9760 char $ac_func ();
9761 char (*f) ();
9762
9763 #ifdef F77_DUMMY_MAIN
9764 #  ifdef __cplusplus
9765      extern "C"
9766 #  endif
9767    int F77_DUMMY_MAIN() { return 1; }
9768 #endif
9769 int
9770 main ()
9771 {
9772 /* The GNU C library defines this for functions which it implements
9773     to always fail with ENOSYS.  Some functions are actually named
9774     something starting with __ and the normal name is an alias.  */
9775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9776 choke me
9777 #else
9778 f = $ac_func;
9779 #endif
9780
9781   ;
9782   return 0;
9783 }
9784 _ACEOF
9785 rm -f conftest.$ac_objext conftest$ac_exeext
9786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9787   (eval $ac_link) 2>&5
9788   ac_status=$?
9789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790   (exit $ac_status); } &&
9791          { ac_try='test -s conftest$ac_exeext'
9792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793   (eval $ac_try) 2>&5
9794   ac_status=$?
9795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796   (exit $ac_status); }; }; then
9797   eval "$as_ac_var=yes"
9798 else
9799   echo "$as_me: failed program was:" >&5
9800 cat conftest.$ac_ext >&5
9801 eval "$as_ac_var=no"
9802 fi
9803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9804 fi
9805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9807 if test `eval echo '${'$as_ac_var'}'` = yes; then
9808   cat >>confdefs.h <<_ACEOF
9809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9810 _ACEOF
9811
9812 fi
9813 done
9814
9815
9816 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
9817 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
9818 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
9819   echo $ECHO_N "(cached) $ECHO_C" >&6
9820 else
9821   cat >conftest.$ac_ext <<_ACEOF
9822 #line $LINENO "configure"
9823 #include "confdefs.h"
9824 #include <unistd.h>
9825
9826 #ifdef F77_DUMMY_MAIN
9827 #  ifdef __cplusplus
9828      extern "C"
9829 #  endif
9830    int F77_DUMMY_MAIN() { return 1; }
9831 #endif
9832 int
9833 main ()
9834 {
9835 #ifndef fdatasync
9836   char *p = (char *) fdatasync;
9837 #endif
9838
9839   ;
9840   return 0;
9841 }
9842 _ACEOF
9843 rm -f conftest.$ac_objext
9844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9845   (eval $ac_compile) 2>&5
9846   ac_status=$?
9847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848   (exit $ac_status); } &&
9849          { ac_try='test -s conftest.$ac_objext'
9850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851   (eval $ac_try) 2>&5
9852   ac_status=$?
9853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854   (exit $ac_status); }; }; then
9855   ac_cv_have_decl_fdatasync=yes
9856 else
9857   echo "$as_me: failed program was:" >&5
9858 cat conftest.$ac_ext >&5
9859 ac_cv_have_decl_fdatasync=no
9860 fi
9861 rm -f conftest.$ac_objext conftest.$ac_ext
9862 fi
9863 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
9864 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
9865 if test $ac_cv_have_decl_fdatasync = yes; then
9866
9867 cat >>confdefs.h <<_ACEOF
9868 #define HAVE_DECL_FDATASYNC 1
9869 _ACEOF
9870
9871
9872 else
9873   cat >>confdefs.h <<_ACEOF
9874 #define HAVE_DECL_FDATASYNC 0
9875 _ACEOF
9876
9877
9878 fi
9879
9880
9881
9882 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
9883 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
9884 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
9885   echo $ECHO_N "(cached) $ECHO_C" >&6
9886 else
9887   cat >conftest.$ac_ext <<_ACEOF
9888 #line $LINENO "configure"
9889 #include "confdefs.h"
9890 #include <machine/vmparam.h>
9891 #include <sys/exec.h>
9892
9893 #ifdef F77_DUMMY_MAIN
9894 #  ifdef __cplusplus
9895      extern "C"
9896 #  endif
9897    int F77_DUMMY_MAIN() { return 1; }
9898 #endif
9899 int
9900 main ()
9901 {
9902 PS_STRINGS->ps_nargvstr = 1;
9903 PS_STRINGS->ps_argvstr = "foo";
9904   ;
9905   return 0;
9906 }
9907 _ACEOF
9908 rm -f conftest.$ac_objext conftest$ac_exeext
9909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9910   (eval $ac_link) 2>&5
9911   ac_status=$?
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); } &&
9914          { ac_try='test -s conftest$ac_exeext'
9915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916   (eval $ac_try) 2>&5
9917   ac_status=$?
9918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919   (exit $ac_status); }; }; then
9920   pgac_cv_var_PS_STRINGS=yes
9921 else
9922   echo "$as_me: failed program was:" >&5
9923 cat conftest.$ac_ext >&5
9924 pgac_cv_var_PS_STRINGS=no
9925 fi
9926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9927 fi
9928 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
9929 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
9930 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
9931
9932 cat >>confdefs.h <<\_ACEOF
9933 #define HAVE_PS_STRINGS
9934 _ACEOF
9935
9936 fi
9937
9938
9939 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
9940 # is missing.  Yes, there are machines that have only one.  We may
9941 # also decide to use snprintf.c if snprintf() is present but does not
9942 # have working "long long int" support -- see below.
9943
9944 pgac_need_repl_snprintf=no
9945
9946 for ac_func in snprintf
9947 do
9948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9949 echo "$as_me:$LINENO: checking for $ac_func" >&5
9950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9951 if eval "test \"\${$as_ac_var+set}\" = set"; then
9952   echo $ECHO_N "(cached) $ECHO_C" >&6
9953 else
9954   cat >conftest.$ac_ext <<_ACEOF
9955 #line $LINENO "configure"
9956 #include "confdefs.h"
9957 /* System header to define __stub macros and hopefully few prototypes,
9958     which can conflict with char $ac_func (); below.  */
9959 #include <assert.h>
9960 /* Override any gcc2 internal prototype to avoid an error.  */
9961 #ifdef __cplusplus
9962 extern "C"
9963 #endif
9964 /* We use char because int might match the return type of a gcc2
9965    builtin and then its argument prototype would still apply.  */
9966 char $ac_func ();
9967 char (*f) ();
9968
9969 #ifdef F77_DUMMY_MAIN
9970 #  ifdef __cplusplus
9971      extern "C"
9972 #  endif
9973    int F77_DUMMY_MAIN() { return 1; }
9974 #endif
9975 int
9976 main ()
9977 {
9978 /* The GNU C library defines this for functions which it implements
9979     to always fail with ENOSYS.  Some functions are actually named
9980     something starting with __ and the normal name is an alias.  */
9981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9982 choke me
9983 #else
9984 f = $ac_func;
9985 #endif
9986
9987   ;
9988   return 0;
9989 }
9990 _ACEOF
9991 rm -f conftest.$ac_objext conftest$ac_exeext
9992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9993   (eval $ac_link) 2>&5
9994   ac_status=$?
9995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996   (exit $ac_status); } &&
9997          { ac_try='test -s conftest$ac_exeext'
9998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999   (eval $ac_try) 2>&5
10000   ac_status=$?
10001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002   (exit $ac_status); }; }; then
10003   eval "$as_ac_var=yes"
10004 else
10005   echo "$as_me: failed program was:" >&5
10006 cat conftest.$ac_ext >&5
10007 eval "$as_ac_var=no"
10008 fi
10009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10010 fi
10011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10012 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10013 if test `eval echo '${'$as_ac_var'}'` = yes; then
10014   cat >>confdefs.h <<_ACEOF
10015 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10016 _ACEOF
10017
10018 else
10019   pgac_need_repl_snprintf=yes
10020 fi
10021 done
10022
10023
10024 for ac_func in vsnprintf
10025 do
10026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10027 echo "$as_me:$LINENO: checking for $ac_func" >&5
10028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10029 if eval "test \"\${$as_ac_var+set}\" = set"; then
10030   echo $ECHO_N "(cached) $ECHO_C" >&6
10031 else
10032   cat >conftest.$ac_ext <<_ACEOF
10033 #line $LINENO "configure"
10034 #include "confdefs.h"
10035 /* System header to define __stub macros and hopefully few prototypes,
10036     which can conflict with char $ac_func (); below.  */
10037 #include <assert.h>
10038 /* Override any gcc2 internal prototype to avoid an error.  */
10039 #ifdef __cplusplus
10040 extern "C"
10041 #endif
10042 /* We use char because int might match the return type of a gcc2
10043    builtin and then its argument prototype would still apply.  */
10044 char $ac_func ();
10045 char (*f) ();
10046
10047 #ifdef F77_DUMMY_MAIN
10048 #  ifdef __cplusplus
10049      extern "C"
10050 #  endif
10051    int F77_DUMMY_MAIN() { return 1; }
10052 #endif
10053 int
10054 main ()
10055 {
10056 /* The GNU C library defines this for functions which it implements
10057     to always fail with ENOSYS.  Some functions are actually named
10058     something starting with __ and the normal name is an alias.  */
10059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10060 choke me
10061 #else
10062 f = $ac_func;
10063 #endif
10064
10065   ;
10066   return 0;
10067 }
10068 _ACEOF
10069 rm -f conftest.$ac_objext conftest$ac_exeext
10070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10071   (eval $ac_link) 2>&5
10072   ac_status=$?
10073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074   (exit $ac_status); } &&
10075          { ac_try='test -s conftest$ac_exeext'
10076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077   (eval $ac_try) 2>&5
10078   ac_status=$?
10079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080   (exit $ac_status); }; }; then
10081   eval "$as_ac_var=yes"
10082 else
10083   echo "$as_me: failed program was:" >&5
10084 cat conftest.$ac_ext >&5
10085 eval "$as_ac_var=no"
10086 fi
10087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10088 fi
10089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10090 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10091 if test `eval echo '${'$as_ac_var'}'` = yes; then
10092   cat >>confdefs.h <<_ACEOF
10093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10094 _ACEOF
10095
10096 else
10097   pgac_need_repl_snprintf=yes
10098 fi
10099 done
10100
10101
10102
10103 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10104 # include/c.h will provide declarations.  Note this is a separate test
10105 # from whether the functions exist in the C library --- there are
10106 # systems that have the functions but don't bother to declare them :-(
10107
10108 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10109 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10110 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10111   echo $ECHO_N "(cached) $ECHO_C" >&6
10112 else
10113   cat >conftest.$ac_ext <<_ACEOF
10114 #line $LINENO "configure"
10115 #include "confdefs.h"
10116 $ac_includes_default
10117 #ifdef F77_DUMMY_MAIN
10118 #  ifdef __cplusplus
10119      extern "C"
10120 #  endif
10121    int F77_DUMMY_MAIN() { return 1; }
10122 #endif
10123 int
10124 main ()
10125 {
10126 #ifndef snprintf
10127   char *p = (char *) snprintf;
10128 #endif
10129
10130   ;
10131   return 0;
10132 }
10133 _ACEOF
10134 rm -f conftest.$ac_objext
10135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10136   (eval $ac_compile) 2>&5
10137   ac_status=$?
10138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139   (exit $ac_status); } &&
10140          { ac_try='test -s conftest.$ac_objext'
10141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10142   (eval $ac_try) 2>&5
10143   ac_status=$?
10144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145   (exit $ac_status); }; }; then
10146   ac_cv_have_decl_snprintf=yes
10147 else
10148   echo "$as_me: failed program was:" >&5
10149 cat conftest.$ac_ext >&5
10150 ac_cv_have_decl_snprintf=no
10151 fi
10152 rm -f conftest.$ac_objext conftest.$ac_ext
10153 fi
10154 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10155 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10156 if test $ac_cv_have_decl_snprintf = yes; then
10157
10158 cat >>confdefs.h <<_ACEOF
10159 #define HAVE_DECL_SNPRINTF 1
10160 _ACEOF
10161
10162
10163 else
10164   cat >>confdefs.h <<_ACEOF
10165 #define HAVE_DECL_SNPRINTF 0
10166 _ACEOF
10167
10168
10169 fi
10170 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10171 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10172 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10173   echo $ECHO_N "(cached) $ECHO_C" >&6
10174 else
10175   cat >conftest.$ac_ext <<_ACEOF
10176 #line $LINENO "configure"
10177 #include "confdefs.h"
10178 $ac_includes_default
10179 #ifdef F77_DUMMY_MAIN
10180 #  ifdef __cplusplus
10181      extern "C"
10182 #  endif
10183    int F77_DUMMY_MAIN() { return 1; }
10184 #endif
10185 int
10186 main ()
10187 {
10188 #ifndef vsnprintf
10189   char *p = (char *) vsnprintf;
10190 #endif
10191
10192   ;
10193   return 0;
10194 }
10195 _ACEOF
10196 rm -f conftest.$ac_objext
10197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10198   (eval $ac_compile) 2>&5
10199   ac_status=$?
10200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201   (exit $ac_status); } &&
10202          { ac_try='test -s conftest.$ac_objext'
10203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204   (eval $ac_try) 2>&5
10205   ac_status=$?
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); }; }; then
10208   ac_cv_have_decl_vsnprintf=yes
10209 else
10210   echo "$as_me: failed program was:" >&5
10211 cat conftest.$ac_ext >&5
10212 ac_cv_have_decl_vsnprintf=no
10213 fi
10214 rm -f conftest.$ac_objext conftest.$ac_ext
10215 fi
10216 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10217 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10218 if test $ac_cv_have_decl_vsnprintf = yes; then
10219
10220 cat >>confdefs.h <<_ACEOF
10221 #define HAVE_DECL_VSNPRINTF 1
10222 _ACEOF
10223
10224
10225 else
10226   cat >>confdefs.h <<_ACEOF
10227 #define HAVE_DECL_VSNPRINTF 0
10228 _ACEOF
10229
10230
10231 fi
10232
10233
10234
10235
10236 # do this one the hard way in case isinf() is a macro
10237 echo "$as_me:$LINENO: checking for isinf" >&5
10238 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10239 if test "${ac_cv_func_isinf+set}" = set; then
10240   echo $ECHO_N "(cached) $ECHO_C" >&6
10241 else
10242   cat >conftest.$ac_ext <<_ACEOF
10243 #line $LINENO "configure"
10244 #include "confdefs.h"
10245 #include <math.h>
10246
10247 #ifdef F77_DUMMY_MAIN
10248 #  ifdef __cplusplus
10249      extern "C"
10250 #  endif
10251    int F77_DUMMY_MAIN() { return 1; }
10252 #endif
10253 int
10254 main ()
10255 {
10256 double x = 0.0; int res = isinf(x);
10257   ;
10258   return 0;
10259 }
10260 _ACEOF
10261 rm -f conftest.$ac_objext conftest$ac_exeext
10262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10263   (eval $ac_link) 2>&5
10264   ac_status=$?
10265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266   (exit $ac_status); } &&
10267          { ac_try='test -s conftest$ac_exeext'
10268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269   (eval $ac_try) 2>&5
10270   ac_status=$?
10271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272   (exit $ac_status); }; }; then
10273   ac_cv_func_isinf=yes
10274 else
10275   echo "$as_me: failed program was:" >&5
10276 cat conftest.$ac_ext >&5
10277 ac_cv_func_isinf=no
10278 fi
10279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10280 fi
10281 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10282 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10283
10284 if test $ac_cv_func_isinf = yes ; then
10285
10286 cat >>confdefs.h <<\_ACEOF
10287 #define HAVE_ISINF 1
10288 _ACEOF
10289
10290 else
10291   LIBOBJS="$LIBOBJS isinf.$ac_objext"
10292   # Look for a way to implement a substitute for isinf()
10293
10294
10295
10296
10297 for ac_func in fpclass fp_class fp_class_d class
10298 do
10299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10300 echo "$as_me:$LINENO: checking for $ac_func" >&5
10301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10302 if eval "test \"\${$as_ac_var+set}\" = set"; then
10303   echo $ECHO_N "(cached) $ECHO_C" >&6
10304 else
10305   cat >conftest.$ac_ext <<_ACEOF
10306 #line $LINENO "configure"
10307 #include "confdefs.h"
10308 /* System header to define __stub macros and hopefully few prototypes,
10309     which can conflict with char $ac_func (); below.  */
10310 #include <assert.h>
10311 /* Override any gcc2 internal prototype to avoid an error.  */
10312 #ifdef __cplusplus
10313 extern "C"
10314 #endif
10315 /* We use char because int might match the return type of a gcc2
10316    builtin and then its argument prototype would still apply.  */
10317 char $ac_func ();
10318 char (*f) ();
10319
10320 #ifdef F77_DUMMY_MAIN
10321 #  ifdef __cplusplus
10322      extern "C"
10323 #  endif
10324    int F77_DUMMY_MAIN() { return 1; }
10325 #endif
10326 int
10327 main ()
10328 {
10329 /* The GNU C library defines this for functions which it implements
10330     to always fail with ENOSYS.  Some functions are actually named
10331     something starting with __ and the normal name is an alias.  */
10332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10333 choke me
10334 #else
10335 f = $ac_func;
10336 #endif
10337
10338   ;
10339   return 0;
10340 }
10341 _ACEOF
10342 rm -f conftest.$ac_objext conftest$ac_exeext
10343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10344   (eval $ac_link) 2>&5
10345   ac_status=$?
10346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347   (exit $ac_status); } &&
10348          { ac_try='test -s conftest$ac_exeext'
10349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350   (eval $ac_try) 2>&5
10351   ac_status=$?
10352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353   (exit $ac_status); }; }; then
10354   eval "$as_ac_var=yes"
10355 else
10356   echo "$as_me: failed program was:" >&5
10357 cat conftest.$ac_ext >&5
10358 eval "$as_ac_var=no"
10359 fi
10360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10361 fi
10362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10363 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10364 if test `eval echo '${'$as_ac_var'}'` = yes; then
10365   cat >>confdefs.h <<_ACEOF
10366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10367 _ACEOF
10368  break
10369 fi
10370 done
10371
10372 fi
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384 for ac_func in gethostname getrusage inet_aton random srandom strcasecmp strdup strerror strtol strtoul
10385 do
10386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10387 echo "$as_me:$LINENO: checking for $ac_func" >&5
10388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10389 if eval "test \"\${$as_ac_var+set}\" = set"; then
10390   echo $ECHO_N "(cached) $ECHO_C" >&6
10391 else
10392   cat >conftest.$ac_ext <<_ACEOF
10393 #line $LINENO "configure"
10394 #include "confdefs.h"
10395 /* System header to define __stub macros and hopefully few prototypes,
10396     which can conflict with char $ac_func (); below.  */
10397 #include <assert.h>
10398 /* Override any gcc2 internal prototype to avoid an error.  */
10399 #ifdef __cplusplus
10400 extern "C"
10401 #endif
10402 /* We use char because int might match the return type of a gcc2
10403    builtin and then its argument prototype would still apply.  */
10404 char $ac_func ();
10405 char (*f) ();
10406
10407 #ifdef F77_DUMMY_MAIN
10408 #  ifdef __cplusplus
10409      extern "C"
10410 #  endif
10411    int F77_DUMMY_MAIN() { return 1; }
10412 #endif
10413 int
10414 main ()
10415 {
10416 /* The GNU C library defines this for functions which it implements
10417     to always fail with ENOSYS.  Some functions are actually named
10418     something starting with __ and the normal name is an alias.  */
10419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10420 choke me
10421 #else
10422 f = $ac_func;
10423 #endif
10424
10425   ;
10426   return 0;
10427 }
10428 _ACEOF
10429 rm -f conftest.$ac_objext conftest$ac_exeext
10430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10431   (eval $ac_link) 2>&5
10432   ac_status=$?
10433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434   (exit $ac_status); } &&
10435          { ac_try='test -s conftest$ac_exeext'
10436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437   (eval $ac_try) 2>&5
10438   ac_status=$?
10439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440   (exit $ac_status); }; }; then
10441   eval "$as_ac_var=yes"
10442 else
10443   echo "$as_me: failed program was:" >&5
10444 cat conftest.$ac_ext >&5
10445 eval "$as_ac_var=no"
10446 fi
10447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10448 fi
10449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10450 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10451 if test `eval echo '${'$as_ac_var'}'` = yes; then
10452   cat >>confdefs.h <<_ACEOF
10453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10454 _ACEOF
10455
10456 else
10457   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
10458 fi
10459 done
10460
10461
10462
10463 # Solaris has a very slow qsort in certain cases.
10464 case $host_os in
10465   solaris*) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
10466 esac
10467
10468 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
10469 # this hackery with HPUXMATHLIB allows us to cope.
10470 HPUXMATHLIB=""
10471 case $host_cpu in
10472   hppa1.1)
10473         if [ -r /lib/pa1.1/libm.a ] ; then
10474             HPUXMATHLIB="-L /lib/pa1.1 -lm"
10475         fi ;;
10476 esac
10477
10478
10479
10480 for ac_func in rint
10481 do
10482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10483 echo "$as_me:$LINENO: checking for $ac_func" >&5
10484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10485 if eval "test \"\${$as_ac_var+set}\" = set"; then
10486   echo $ECHO_N "(cached) $ECHO_C" >&6
10487 else
10488   cat >conftest.$ac_ext <<_ACEOF
10489 #line $LINENO "configure"
10490 #include "confdefs.h"
10491 /* System header to define __stub macros and hopefully few prototypes,
10492     which can conflict with char $ac_func (); below.  */
10493 #include <assert.h>
10494 /* Override any gcc2 internal prototype to avoid an error.  */
10495 #ifdef __cplusplus
10496 extern "C"
10497 #endif
10498 /* We use char because int might match the return type of a gcc2
10499    builtin and then its argument prototype would still apply.  */
10500 char $ac_func ();
10501 char (*f) ();
10502
10503 #ifdef F77_DUMMY_MAIN
10504 #  ifdef __cplusplus
10505      extern "C"
10506 #  endif
10507    int F77_DUMMY_MAIN() { return 1; }
10508 #endif
10509 int
10510 main ()
10511 {
10512 /* The GNU C library defines this for functions which it implements
10513     to always fail with ENOSYS.  Some functions are actually named
10514     something starting with __ and the normal name is an alias.  */
10515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10516 choke me
10517 #else
10518 f = $ac_func;
10519 #endif
10520
10521   ;
10522   return 0;
10523 }
10524 _ACEOF
10525 rm -f conftest.$ac_objext conftest$ac_exeext
10526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10527   (eval $ac_link) 2>&5
10528   ac_status=$?
10529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530   (exit $ac_status); } &&
10531          { ac_try='test -s conftest$ac_exeext'
10532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10533   (eval $ac_try) 2>&5
10534   ac_status=$?
10535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536   (exit $ac_status); }; }; then
10537   eval "$as_ac_var=yes"
10538 else
10539   echo "$as_me: failed program was:" >&5
10540 cat conftest.$ac_ext >&5
10541 eval "$as_ac_var=no"
10542 fi
10543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10544 fi
10545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10546 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10547 if test `eval echo '${'$as_ac_var'}'` = yes; then
10548   cat >>confdefs.h <<_ACEOF
10549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10550 _ACEOF
10551
10552 else
10553   echo "$as_me:$LINENO: checking for rint in -lm" >&5
10554 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
10555 if test "${ac_cv_lib_m_rint+set}" = set; then
10556   echo $ECHO_N "(cached) $ECHO_C" >&6
10557 else
10558   ac_check_lib_save_LIBS=$LIBS
10559 LIBS="-lm $HPUXMATHLIB $LIBS"
10560 cat >conftest.$ac_ext <<_ACEOF
10561 #line $LINENO "configure"
10562 #include "confdefs.h"
10563
10564 /* Override any gcc2 internal prototype to avoid an error.  */
10565 #ifdef __cplusplus
10566 extern "C"
10567 #endif
10568 /* We use char because int might match the return type of a gcc2
10569    builtin and then its argument prototype would still apply.  */
10570 char rint ();
10571 #ifdef F77_DUMMY_MAIN
10572 #  ifdef __cplusplus
10573      extern "C"
10574 #  endif
10575    int F77_DUMMY_MAIN() { return 1; }
10576 #endif
10577 int
10578 main ()
10579 {
10580 rint ();
10581   ;
10582   return 0;
10583 }
10584 _ACEOF
10585 rm -f conftest.$ac_objext conftest$ac_exeext
10586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10587   (eval $ac_link) 2>&5
10588   ac_status=$?
10589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590   (exit $ac_status); } &&
10591          { ac_try='test -s conftest$ac_exeext'
10592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10593   (eval $ac_try) 2>&5
10594   ac_status=$?
10595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596   (exit $ac_status); }; }; then
10597   ac_cv_lib_m_rint=yes
10598 else
10599   echo "$as_me: failed program was:" >&5
10600 cat conftest.$ac_ext >&5
10601 ac_cv_lib_m_rint=no
10602 fi
10603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10604 LIBS=$ac_check_lib_save_LIBS
10605 fi
10606 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
10607 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
10608 if test $ac_cv_lib_m_rint = yes; then
10609   cat >>confdefs.h <<\_ACEOF
10610 #define HAVE_RINT 1
10611 _ACEOF
10612
10613 fi
10614
10615 fi
10616 done
10617
10618
10619
10620 if test "$with_readline" = yes; then
10621   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
10622 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
10623 cat >conftest.$ac_ext <<_ACEOF
10624 #line $LINENO "configure"
10625 #include "confdefs.h"
10626 #include <stdio.h>
10627 #ifdef HAVE_READLINE_READLINE_H
10628 # include <readline/readline.h>
10629 #elif defined(HAVE_READLINE_H)
10630 # include <readline.h>
10631 #endif
10632
10633 #ifdef F77_DUMMY_MAIN
10634 #  ifdef __cplusplus
10635      extern "C"
10636 #  endif
10637    int F77_DUMMY_MAIN() { return 1; }
10638 #endif
10639 int
10640 main ()
10641 {
10642 rl_completion_append_character = 'x';
10643   ;
10644   return 0;
10645 }
10646 _ACEOF
10647 rm -f conftest.$ac_objext conftest$ac_exeext
10648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10649   (eval $ac_link) 2>&5
10650   ac_status=$?
10651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652   (exit $ac_status); } &&
10653          { ac_try='test -s conftest$ac_exeext'
10654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655   (eval $ac_try) 2>&5
10656   ac_status=$?
10657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658   (exit $ac_status); }; }; then
10659   echo "$as_me:$LINENO: result: yes" >&5
10660 echo "${ECHO_T}yes" >&6
10661
10662 cat >>confdefs.h <<\_ACEOF
10663 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
10664 _ACEOF
10665
10666 else
10667   echo "$as_me: failed program was:" >&5
10668 cat conftest.$ac_ext >&5
10669 echo "$as_me:$LINENO: result: no" >&5
10670 echo "${ECHO_T}no" >&6
10671 fi
10672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10673
10674
10675 for ac_func in rl_completion_matches rl_filename_completion_function
10676 do
10677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10678 echo "$as_me:$LINENO: checking for $ac_func" >&5
10679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10680 if eval "test \"\${$as_ac_var+set}\" = set"; then
10681   echo $ECHO_N "(cached) $ECHO_C" >&6
10682 else
10683   cat >conftest.$ac_ext <<_ACEOF
10684 #line $LINENO "configure"
10685 #include "confdefs.h"
10686 /* System header to define __stub macros and hopefully few prototypes,
10687     which can conflict with char $ac_func (); below.  */
10688 #include <assert.h>
10689 /* Override any gcc2 internal prototype to avoid an error.  */
10690 #ifdef __cplusplus
10691 extern "C"
10692 #endif
10693 /* We use char because int might match the return type of a gcc2
10694    builtin and then its argument prototype would still apply.  */
10695 char $ac_func ();
10696 char (*f) ();
10697
10698 #ifdef F77_DUMMY_MAIN
10699 #  ifdef __cplusplus
10700      extern "C"
10701 #  endif
10702    int F77_DUMMY_MAIN() { return 1; }
10703 #endif
10704 int
10705 main ()
10706 {
10707 /* The GNU C library defines this for functions which it implements
10708     to always fail with ENOSYS.  Some functions are actually named
10709     something starting with __ and the normal name is an alias.  */
10710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10711 choke me
10712 #else
10713 f = $ac_func;
10714 #endif
10715
10716   ;
10717   return 0;
10718 }
10719 _ACEOF
10720 rm -f conftest.$ac_objext conftest$ac_exeext
10721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10722   (eval $ac_link) 2>&5
10723   ac_status=$?
10724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725   (exit $ac_status); } &&
10726          { ac_try='test -s conftest$ac_exeext'
10727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728   (eval $ac_try) 2>&5
10729   ac_status=$?
10730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731   (exit $ac_status); }; }; then
10732   eval "$as_ac_var=yes"
10733 else
10734   echo "$as_me: failed program was:" >&5
10735 cat conftest.$ac_ext >&5
10736 eval "$as_ac_var=no"
10737 fi
10738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10739 fi
10740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10742 if test `eval echo '${'$as_ac_var'}'` = yes; then
10743   cat >>confdefs.h <<_ACEOF
10744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10745 _ACEOF
10746
10747 fi
10748 done
10749
10750 fi
10751
10752
10753 echo "$as_me:$LINENO: checking for finite" >&5
10754 echo $ECHO_N "checking for finite... $ECHO_C" >&6
10755 cat >conftest.$ac_ext <<_ACEOF
10756 #line $LINENO "configure"
10757 #include "confdefs.h"
10758 #include <math.h>
10759 #ifdef F77_DUMMY_MAIN
10760 #  ifdef __cplusplus
10761      extern "C"
10762 #  endif
10763    int F77_DUMMY_MAIN() { return 1; }
10764 #endif
10765 int
10766 main ()
10767 {
10768 int dummy=finite(1.0);
10769   ;
10770   return 0;
10771 }
10772 _ACEOF
10773 rm -f conftest.$ac_objext conftest$ac_exeext
10774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10775   (eval $ac_link) 2>&5
10776   ac_status=$?
10777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778   (exit $ac_status); } &&
10779          { ac_try='test -s conftest$ac_exeext'
10780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10781   (eval $ac_try) 2>&5
10782   ac_status=$?
10783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784   (exit $ac_status); }; }; then
10785
10786 cat >>confdefs.h <<\_ACEOF
10787 #define HAVE_FINITE 1
10788 _ACEOF
10789
10790 echo "$as_me:$LINENO: result: yes" >&5
10791 echo "${ECHO_T}yes" >&6
10792 else
10793   echo "$as_me: failed program was:" >&5
10794 cat conftest.$ac_ext >&5
10795 echo "$as_me:$LINENO: result: no" >&5
10796 echo "${ECHO_T}no" >&6
10797 fi
10798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10799
10800 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10801 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10802 cat >conftest.$ac_ext <<_ACEOF
10803 #line $LINENO "configure"
10804 #include "confdefs.h"
10805 #include <setjmp.h>
10806 #ifdef F77_DUMMY_MAIN
10807 #  ifdef __cplusplus
10808      extern "C"
10809 #  endif
10810    int F77_DUMMY_MAIN() { return 1; }
10811 #endif
10812 int
10813 main ()
10814 {
10815 sigjmp_buf x; sigsetjmp(x, 1);
10816   ;
10817   return 0;
10818 }
10819 _ACEOF
10820 rm -f conftest.$ac_objext conftest$ac_exeext
10821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10822   (eval $ac_link) 2>&5
10823   ac_status=$?
10824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825   (exit $ac_status); } &&
10826          { ac_try='test -s conftest$ac_exeext'
10827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10828   (eval $ac_try) 2>&5
10829   ac_status=$?
10830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831   (exit $ac_status); }; }; then
10832
10833 cat >>confdefs.h <<\_ACEOF
10834 #define HAVE_SIGSETJMP 1
10835 _ACEOF
10836
10837 echo "$as_me:$LINENO: result: yes" >&5
10838 echo "${ECHO_T}yes" >&6
10839 else
10840   echo "$as_me: failed program was:" >&5
10841 cat conftest.$ac_ext >&5
10842 echo "$as_me:$LINENO: result: no" >&5
10843 echo "${ECHO_T}no" >&6
10844 fi
10845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10846
10847 echo "$as_me:$LINENO: checking for syslog" >&5
10848 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
10849 if test "${ac_cv_func_syslog+set}" = set; then
10850   echo $ECHO_N "(cached) $ECHO_C" >&6
10851 else
10852   cat >conftest.$ac_ext <<_ACEOF
10853 #line $LINENO "configure"
10854 #include "confdefs.h"
10855 /* System header to define __stub macros and hopefully few prototypes,
10856     which can conflict with char syslog (); below.  */
10857 #include <assert.h>
10858 /* Override any gcc2 internal prototype to avoid an error.  */
10859 #ifdef __cplusplus
10860 extern "C"
10861 #endif
10862 /* We use char because int might match the return type of a gcc2
10863    builtin and then its argument prototype would still apply.  */
10864 char syslog ();
10865 char (*f) ();
10866
10867 #ifdef F77_DUMMY_MAIN
10868 #  ifdef __cplusplus
10869      extern "C"
10870 #  endif
10871    int F77_DUMMY_MAIN() { return 1; }
10872 #endif
10873 int
10874 main ()
10875 {
10876 /* The GNU C library defines this for functions which it implements
10877     to always fail with ENOSYS.  Some functions are actually named
10878     something starting with __ and the normal name is an alias.  */
10879 #if defined (__stub_syslog) || defined (__stub___syslog)
10880 choke me
10881 #else
10882 f = syslog;
10883 #endif
10884
10885   ;
10886   return 0;
10887 }
10888 _ACEOF
10889 rm -f conftest.$ac_objext conftest$ac_exeext
10890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10891   (eval $ac_link) 2>&5
10892   ac_status=$?
10893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894   (exit $ac_status); } &&
10895          { ac_try='test -s conftest$ac_exeext'
10896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10897   (eval $ac_try) 2>&5
10898   ac_status=$?
10899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900   (exit $ac_status); }; }; then
10901   ac_cv_func_syslog=yes
10902 else
10903   echo "$as_me: failed program was:" >&5
10904 cat conftest.$ac_ext >&5
10905 ac_cv_func_syslog=no
10906 fi
10907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10908 fi
10909 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
10910 echo "${ECHO_T}$ac_cv_func_syslog" >&6
10911 if test $ac_cv_func_syslog = yes; then
10912   if test "${ac_cv_header_syslog_h+set}" = set; then
10913   echo "$as_me:$LINENO: checking for syslog.h" >&5
10914 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
10915 if test "${ac_cv_header_syslog_h+set}" = set; then
10916   echo $ECHO_N "(cached) $ECHO_C" >&6
10917 fi
10918 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
10919 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
10920 else
10921   # Is the header compilable?
10922 echo "$as_me:$LINENO: checking syslog.h usability" >&5
10923 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
10924 cat >conftest.$ac_ext <<_ACEOF
10925 #line $LINENO "configure"
10926 #include "confdefs.h"
10927 $ac_includes_default
10928 #include <syslog.h>
10929 _ACEOF
10930 rm -f conftest.$ac_objext
10931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10932   (eval $ac_compile) 2>&5
10933   ac_status=$?
10934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935   (exit $ac_status); } &&
10936          { ac_try='test -s conftest.$ac_objext'
10937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10938   (eval $ac_try) 2>&5
10939   ac_status=$?
10940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941   (exit $ac_status); }; }; then
10942   ac_header_compiler=yes
10943 else
10944   echo "$as_me: failed program was:" >&5
10945 cat conftest.$ac_ext >&5
10946 ac_header_compiler=no
10947 fi
10948 rm -f conftest.$ac_objext conftest.$ac_ext
10949 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10950 echo "${ECHO_T}$ac_header_compiler" >&6
10951
10952 # Is the header present?
10953 echo "$as_me:$LINENO: checking syslog.h presence" >&5
10954 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
10955 cat >conftest.$ac_ext <<_ACEOF
10956 #line $LINENO "configure"
10957 #include "confdefs.h"
10958 #include <syslog.h>
10959 _ACEOF
10960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10961   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10962   ac_status=$?
10963   egrep -v '^ *\+' conftest.er1 >conftest.err
10964   rm -f conftest.er1
10965   cat conftest.err >&5
10966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967   (exit $ac_status); } >/dev/null; then
10968   if test -s conftest.err; then
10969     ac_cpp_err=$ac_c_preproc_warn_flag
10970   else
10971     ac_cpp_err=
10972   fi
10973 else
10974   ac_cpp_err=yes
10975 fi
10976 if test -z "$ac_cpp_err"; then
10977   ac_header_preproc=yes
10978 else
10979   echo "$as_me: failed program was:" >&5
10980   cat conftest.$ac_ext >&5
10981   ac_header_preproc=no
10982 fi
10983 rm -f conftest.err conftest.$ac_ext
10984 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10985 echo "${ECHO_T}$ac_header_preproc" >&6
10986
10987 # So?  What about this header?
10988 case $ac_header_compiler:$ac_header_preproc in
10989   yes:no )
10990     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
10991 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10992     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
10993 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
10994   no:yes )
10995     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
10996 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
10997     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
10998 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
10999     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11000 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11001 esac
11002 echo "$as_me:$LINENO: checking for syslog.h" >&5
11003 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11004 if test "${ac_cv_header_syslog_h+set}" = set; then
11005   echo $ECHO_N "(cached) $ECHO_C" >&6
11006 else
11007   ac_cv_header_syslog_h=$ac_header_preproc
11008 fi
11009 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11010 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11011
11012 fi
11013 if test $ac_cv_header_syslog_h = yes; then
11014   cat >>confdefs.h <<\_ACEOF
11015 #define HAVE_SYSLOG 1
11016 _ACEOF
11017
11018 fi
11019
11020
11021 fi
11022
11023
11024 echo "$as_me:$LINENO: checking for optreset" >&5
11025 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
11026 if test "${pgac_cv_var_int_optreset+set}" = set; then
11027   echo $ECHO_N "(cached) $ECHO_C" >&6
11028 else
11029   cat >conftest.$ac_ext <<_ACEOF
11030 #line $LINENO "configure"
11031 #include "confdefs.h"
11032 #include <unistd.h>
11033 #ifdef F77_DUMMY_MAIN
11034 #  ifdef __cplusplus
11035      extern "C"
11036 #  endif
11037    int F77_DUMMY_MAIN() { return 1; }
11038 #endif
11039 int
11040 main ()
11041 {
11042 extern int optreset; optreset = 1;
11043   ;
11044   return 0;
11045 }
11046 _ACEOF
11047 rm -f conftest.$ac_objext conftest$ac_exeext
11048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11049   (eval $ac_link) 2>&5
11050   ac_status=$?
11051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052   (exit $ac_status); } &&
11053          { ac_try='test -s conftest$ac_exeext'
11054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11055   (eval $ac_try) 2>&5
11056   ac_status=$?
11057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058   (exit $ac_status); }; }; then
11059   pgac_cv_var_int_optreset=yes
11060 else
11061   echo "$as_me: failed program was:" >&5
11062 cat conftest.$ac_ext >&5
11063 pgac_cv_var_int_optreset=no
11064 fi
11065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11066 fi
11067 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
11068 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
11069 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
11070
11071 cat >>confdefs.h <<\_ACEOF
11072 #define HAVE_INT_OPTRESET 1
11073 _ACEOF
11074
11075 fi
11076
11077
11078
11079 for ac_func in strtoll strtoq
11080 do
11081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11082 echo "$as_me:$LINENO: checking for $ac_func" >&5
11083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11084 if eval "test \"\${$as_ac_var+set}\" = set"; then
11085   echo $ECHO_N "(cached) $ECHO_C" >&6
11086 else
11087   cat >conftest.$ac_ext <<_ACEOF
11088 #line $LINENO "configure"
11089 #include "confdefs.h"
11090 /* System header to define __stub macros and hopefully few prototypes,
11091     which can conflict with char $ac_func (); below.  */
11092 #include <assert.h>
11093 /* Override any gcc2 internal prototype to avoid an error.  */
11094 #ifdef __cplusplus
11095 extern "C"
11096 #endif
11097 /* We use char because int might match the return type of a gcc2
11098    builtin and then its argument prototype would still apply.  */
11099 char $ac_func ();
11100 char (*f) ();
11101
11102 #ifdef F77_DUMMY_MAIN
11103 #  ifdef __cplusplus
11104      extern "C"
11105 #  endif
11106    int F77_DUMMY_MAIN() { return 1; }
11107 #endif
11108 int
11109 main ()
11110 {
11111 /* The GNU C library defines this for functions which it implements
11112     to always fail with ENOSYS.  Some functions are actually named
11113     something starting with __ and the normal name is an alias.  */
11114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11115 choke me
11116 #else
11117 f = $ac_func;
11118 #endif
11119
11120   ;
11121   return 0;
11122 }
11123 _ACEOF
11124 rm -f conftest.$ac_objext conftest$ac_exeext
11125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11126   (eval $ac_link) 2>&5
11127   ac_status=$?
11128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129   (exit $ac_status); } &&
11130          { ac_try='test -s conftest$ac_exeext'
11131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11132   (eval $ac_try) 2>&5
11133   ac_status=$?
11134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135   (exit $ac_status); }; }; then
11136   eval "$as_ac_var=yes"
11137 else
11138   echo "$as_me: failed program was:" >&5
11139 cat conftest.$ac_ext >&5
11140 eval "$as_ac_var=no"
11141 fi
11142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11143 fi
11144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11146 if test `eval echo '${'$as_ac_var'}'` = yes; then
11147   cat >>confdefs.h <<_ACEOF
11148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11149 _ACEOF
11150  break
11151 fi
11152 done
11153
11154
11155
11156 for ac_func in strtoull strtouq
11157 do
11158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11159 echo "$as_me:$LINENO: checking for $ac_func" >&5
11160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11161 if eval "test \"\${$as_ac_var+set}\" = set"; then
11162   echo $ECHO_N "(cached) $ECHO_C" >&6
11163 else
11164   cat >conftest.$ac_ext <<_ACEOF
11165 #line $LINENO "configure"
11166 #include "confdefs.h"
11167 /* System header to define __stub macros and hopefully few prototypes,
11168     which can conflict with char $ac_func (); below.  */
11169 #include <assert.h>
11170 /* Override any gcc2 internal prototype to avoid an error.  */
11171 #ifdef __cplusplus
11172 extern "C"
11173 #endif
11174 /* We use char because int might match the return type of a gcc2
11175    builtin and then its argument prototype would still apply.  */
11176 char $ac_func ();
11177 char (*f) ();
11178
11179 #ifdef F77_DUMMY_MAIN
11180 #  ifdef __cplusplus
11181      extern "C"
11182 #  endif
11183    int F77_DUMMY_MAIN() { return 1; }
11184 #endif
11185 int
11186 main ()
11187 {
11188 /* The GNU C library defines this for functions which it implements
11189     to always fail with ENOSYS.  Some functions are actually named
11190     something starting with __ and the normal name is an alias.  */
11191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11192 choke me
11193 #else
11194 f = $ac_func;
11195 #endif
11196
11197   ;
11198   return 0;
11199 }
11200 _ACEOF
11201 rm -f conftest.$ac_objext conftest$ac_exeext
11202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11203   (eval $ac_link) 2>&5
11204   ac_status=$?
11205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206   (exit $ac_status); } &&
11207          { ac_try='test -s conftest$ac_exeext'
11208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11209   (eval $ac_try) 2>&5
11210   ac_status=$?
11211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212   (exit $ac_status); }; }; then
11213   eval "$as_ac_var=yes"
11214 else
11215   echo "$as_me: failed program was:" >&5
11216 cat conftest.$ac_ext >&5
11217 eval "$as_ac_var=no"
11218 fi
11219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11220 fi
11221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11223 if test `eval echo '${'$as_ac_var'}'` = yes; then
11224   cat >>confdefs.h <<_ACEOF
11225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11226 _ACEOF
11227  break
11228 fi
11229 done
11230
11231
11232 # Check for one of atexit() or on_exit()
11233
11234 for ac_func in atexit
11235 do
11236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11237 echo "$as_me:$LINENO: checking for $ac_func" >&5
11238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11239 if eval "test \"\${$as_ac_var+set}\" = set"; then
11240   echo $ECHO_N "(cached) $ECHO_C" >&6
11241 else
11242   cat >conftest.$ac_ext <<_ACEOF
11243 #line $LINENO "configure"
11244 #include "confdefs.h"
11245 /* System header to define __stub macros and hopefully few prototypes,
11246     which can conflict with char $ac_func (); below.  */
11247 #include <assert.h>
11248 /* Override any gcc2 internal prototype to avoid an error.  */
11249 #ifdef __cplusplus
11250 extern "C"
11251 #endif
11252 /* We use char because int might match the return type of a gcc2
11253    builtin and then its argument prototype would still apply.  */
11254 char $ac_func ();
11255 char (*f) ();
11256
11257 #ifdef F77_DUMMY_MAIN
11258 #  ifdef __cplusplus
11259      extern "C"
11260 #  endif
11261    int F77_DUMMY_MAIN() { return 1; }
11262 #endif
11263 int
11264 main ()
11265 {
11266 /* The GNU C library defines this for functions which it implements
11267     to always fail with ENOSYS.  Some functions are actually named
11268     something starting with __ and the normal name is an alias.  */
11269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11270 choke me
11271 #else
11272 f = $ac_func;
11273 #endif
11274
11275   ;
11276   return 0;
11277 }
11278 _ACEOF
11279 rm -f conftest.$ac_objext conftest$ac_exeext
11280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11281   (eval $ac_link) 2>&5
11282   ac_status=$?
11283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284   (exit $ac_status); } &&
11285          { ac_try='test -s conftest$ac_exeext'
11286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11287   (eval $ac_try) 2>&5
11288   ac_status=$?
11289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290   (exit $ac_status); }; }; then
11291   eval "$as_ac_var=yes"
11292 else
11293   echo "$as_me: failed program was:" >&5
11294 cat conftest.$ac_ext >&5
11295 eval "$as_ac_var=no"
11296 fi
11297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11298 fi
11299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11300 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11301 if test `eval echo '${'$as_ac_var'}'` = yes; then
11302   cat >>confdefs.h <<_ACEOF
11303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11304 _ACEOF
11305
11306 else
11307
11308 for ac_func in on_exit
11309 do
11310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11311 echo "$as_me:$LINENO: checking for $ac_func" >&5
11312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11313 if eval "test \"\${$as_ac_var+set}\" = set"; then
11314   echo $ECHO_N "(cached) $ECHO_C" >&6
11315 else
11316   cat >conftest.$ac_ext <<_ACEOF
11317 #line $LINENO "configure"
11318 #include "confdefs.h"
11319 /* System header to define __stub macros and hopefully few prototypes,
11320     which can conflict with char $ac_func (); below.  */
11321 #include <assert.h>
11322 /* Override any gcc2 internal prototype to avoid an error.  */
11323 #ifdef __cplusplus
11324 extern "C"
11325 #endif
11326 /* We use char because int might match the return type of a gcc2
11327    builtin and then its argument prototype would still apply.  */
11328 char $ac_func ();
11329 char (*f) ();
11330
11331 #ifdef F77_DUMMY_MAIN
11332 #  ifdef __cplusplus
11333      extern "C"
11334 #  endif
11335    int F77_DUMMY_MAIN() { return 1; }
11336 #endif
11337 int
11338 main ()
11339 {
11340 /* The GNU C library defines this for functions which it implements
11341     to always fail with ENOSYS.  Some functions are actually named
11342     something starting with __ and the normal name is an alias.  */
11343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11344 choke me
11345 #else
11346 f = $ac_func;
11347 #endif
11348
11349   ;
11350   return 0;
11351 }
11352 _ACEOF
11353 rm -f conftest.$ac_objext conftest$ac_exeext
11354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11355   (eval $ac_link) 2>&5
11356   ac_status=$?
11357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358   (exit $ac_status); } &&
11359          { ac_try='test -s conftest$ac_exeext'
11360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11361   (eval $ac_try) 2>&5
11362   ac_status=$?
11363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364   (exit $ac_status); }; }; then
11365   eval "$as_ac_var=yes"
11366 else
11367   echo "$as_me: failed program was:" >&5
11368 cat conftest.$ac_ext >&5
11369 eval "$as_ac_var=no"
11370 fi
11371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11372 fi
11373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11374 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11375 if test `eval echo '${'$as_ac_var'}'` = yes; then
11376   cat >>confdefs.h <<_ACEOF
11377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11378 _ACEOF
11379
11380 else
11381   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
11382 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
11383    { (exit 1); exit 1; }; }
11384 fi
11385 done
11386
11387 fi
11388 done
11389
11390
11391 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11392 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
11393 if test "${ac_cv_sys_largefile_source+set}" = set; then
11394   echo $ECHO_N "(cached) $ECHO_C" >&6
11395 else
11396   while :; do
11397   ac_cv_sys_largefile_source=no
11398   cat >conftest.$ac_ext <<_ACEOF
11399 #line $LINENO "configure"
11400 #include "confdefs.h"
11401 #include <stdio.h>
11402 #ifdef F77_DUMMY_MAIN
11403 #  ifdef __cplusplus
11404      extern "C"
11405 #  endif
11406    int F77_DUMMY_MAIN() { return 1; }
11407 #endif
11408 int
11409 main ()
11410 {
11411 return !fseeko;
11412   ;
11413   return 0;
11414 }
11415 _ACEOF
11416 rm -f conftest.$ac_objext
11417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11418   (eval $ac_compile) 2>&5
11419   ac_status=$?
11420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421   (exit $ac_status); } &&
11422          { ac_try='test -s conftest.$ac_objext'
11423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424   (eval $ac_try) 2>&5
11425   ac_status=$?
11426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427   (exit $ac_status); }; }; then
11428   break
11429 else
11430   echo "$as_me: failed program was:" >&5
11431 cat conftest.$ac_ext >&5
11432 fi
11433 rm -f conftest.$ac_objext conftest.$ac_ext
11434   cat >conftest.$ac_ext <<_ACEOF
11435 #line $LINENO "configure"
11436 #include "confdefs.h"
11437 #define _LARGEFILE_SOURCE 1
11438 #include <stdio.h>
11439 #ifdef F77_DUMMY_MAIN
11440 #  ifdef __cplusplus
11441      extern "C"
11442 #  endif
11443    int F77_DUMMY_MAIN() { return 1; }
11444 #endif
11445 int
11446 main ()
11447 {
11448 return !fseeko;
11449   ;
11450   return 0;
11451 }
11452 _ACEOF
11453 rm -f conftest.$ac_objext
11454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11455   (eval $ac_compile) 2>&5
11456   ac_status=$?
11457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458   (exit $ac_status); } &&
11459          { ac_try='test -s conftest.$ac_objext'
11460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461   (eval $ac_try) 2>&5
11462   ac_status=$?
11463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464   (exit $ac_status); }; }; then
11465   ac_cv_sys_largefile_source=1; break
11466 else
11467   echo "$as_me: failed program was:" >&5
11468 cat conftest.$ac_ext >&5
11469 fi
11470 rm -f conftest.$ac_objext conftest.$ac_ext
11471   break
11472 done
11473 fi
11474 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11475 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
11476 if test "$ac_cv_sys_largefile_source" != no; then
11477
11478 cat >>confdefs.h <<_ACEOF
11479 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11480 _ACEOF
11481
11482 fi
11483 rm -f conftest*
11484
11485 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11486 # in glibc 2.1.3, but that breaks too many other things.
11487 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11488 echo "$as_me:$LINENO: checking for fseeko" >&5
11489 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
11490 if test "${ac_cv_func_fseeko+set}" = set; then
11491   echo $ECHO_N "(cached) $ECHO_C" >&6
11492 else
11493   cat >conftest.$ac_ext <<_ACEOF
11494 #line $LINENO "configure"
11495 #include "confdefs.h"
11496 #include <stdio.h>
11497 #ifdef F77_DUMMY_MAIN
11498 #  ifdef __cplusplus
11499      extern "C"
11500 #  endif
11501    int F77_DUMMY_MAIN() { return 1; }
11502 #endif
11503 int
11504 main ()
11505 {
11506 return fseeko && fseeko (stdin, 0, 0);
11507   ;
11508   return 0;
11509 }
11510 _ACEOF
11511 rm -f conftest.$ac_objext conftest$ac_exeext
11512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11513   (eval $ac_link) 2>&5
11514   ac_status=$?
11515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516   (exit $ac_status); } &&
11517          { ac_try='test -s conftest$ac_exeext'
11518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11519   (eval $ac_try) 2>&5
11520   ac_status=$?
11521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522   (exit $ac_status); }; }; then
11523   ac_cv_func_fseeko=yes
11524 else
11525   echo "$as_me: failed program was:" >&5
11526 cat conftest.$ac_ext >&5
11527 ac_cv_func_fseeko=no
11528 fi
11529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11530 fi
11531 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
11532 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
11533 if test $ac_cv_func_fseeko = yes; then
11534
11535 cat >>confdefs.h <<\_ACEOF
11536 #define HAVE_FSEEKO 1
11537 _ACEOF
11538
11539 fi
11540
11541
11542
11543 # This test makes sure that run tests work at all.  Sometimes a shared
11544 # library is found by the linker, but the runtime linker can't find it.
11545 # This check should come after all modifications of compiler or linker
11546 # variables, and before any other run tests.
11547 echo "$as_me:$LINENO: checking test program" >&5
11548 echo $ECHO_N "checking test program... $ECHO_C" >&6
11549 if test "$cross_compiling" = yes; then
11550   echo "$as_me:$LINENO: result: cross-compiling" >&5
11551 echo "${ECHO_T}cross-compiling" >&6
11552 else
11553   cat >conftest.$ac_ext <<_ACEOF
11554 #line $LINENO "configure"
11555 #include "confdefs.h"
11556 int main() { return 0; }
11557 _ACEOF
11558 rm -f conftest$ac_exeext
11559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11560   (eval $ac_link) 2>&5
11561   ac_status=$?
11562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565   (eval $ac_try) 2>&5
11566   ac_status=$?
11567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568   (exit $ac_status); }; }; then
11569   echo "$as_me:$LINENO: result: ok" >&5
11570 echo "${ECHO_T}ok" >&6
11571 else
11572   echo "$as_me: program exited with status $ac_status" >&5
11573 echo "$as_me: failed program was:" >&5
11574 cat conftest.$ac_ext >&5
11575 ( exit $ac_status )
11576 echo "$as_me:$LINENO: result: failed" >&5
11577 echo "${ECHO_T}failed" >&6
11578 { { echo "$as_me:$LINENO: error:
11579 *** Could not execute a simple test program.  This may be a problem
11580 *** related to locating shared libraries.  Check the file 'config.log'
11581 *** for the exact reason." >&5
11582 echo "$as_me: error:
11583 *** Could not execute a simple test program.  This may be a problem
11584 *** related to locating shared libraries.  Check the file 'config.log'
11585 *** for the exact reason." >&2;}
11586    { (exit 1); exit 1; }; }
11587 fi
11588 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11589 fi
11590
11591
11592
11593 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
11594 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
11595 if test "${pgac_cv_type_long_int_64+set}" = set; then
11596   echo $ECHO_N "(cached) $ECHO_C" >&6
11597 else
11598   if test "$cross_compiling" = yes; then
11599   pgac_cv_type_long_int_64=no
11600 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
11601 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
11602 else
11603   cat >conftest.$ac_ext <<_ACEOF
11604 #line $LINENO "configure"
11605 #include "confdefs.h"
11606 typedef long int int64;
11607
11608 /*
11609  * These are globals to discourage the compiler from folding all the
11610  * arithmetic tests down to compile-time constants.
11611  */
11612 int64 a = 20000001;
11613 int64 b = 40000005;
11614
11615 int does_int64_work()
11616 {
11617   int64 c,d;
11618
11619   if (sizeof(int64) != 8)
11620     return 0;                   /* definitely not the right size */
11621
11622   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
11623   c = a * b;
11624   d = (c + b) / b;
11625   if (d != a+1)
11626     return 0;
11627   return 1;
11628 }
11629 main() {
11630   exit(! does_int64_work());
11631 }
11632 _ACEOF
11633 rm -f conftest$ac_exeext
11634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11635   (eval $ac_link) 2>&5
11636   ac_status=$?
11637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640   (eval $ac_try) 2>&5
11641   ac_status=$?
11642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643   (exit $ac_status); }; }; then
11644   pgac_cv_type_long_int_64=yes
11645 else
11646   echo "$as_me: program exited with status $ac_status" >&5
11647 echo "$as_me: failed program was:" >&5
11648 cat conftest.$ac_ext >&5
11649 ( exit $ac_status )
11650 pgac_cv_type_long_int_64=no
11651 fi
11652 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11653 fi
11654 fi
11655 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
11656 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
11657
11658 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
11659 if test x"$pgac_cv_type_long_int_64" = xyes ; then
11660
11661 cat >>confdefs.h <<\_ACEOF
11662 #define HAVE_LONG_INT_64
11663 _ACEOF
11664
11665 fi
11666
11667
11668 if test x"$HAVE_LONG_INT_64" = x"no" ; then
11669   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
11670 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
11671 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
11672   echo $ECHO_N "(cached) $ECHO_C" >&6
11673 else
11674   if test "$cross_compiling" = yes; then
11675   pgac_cv_type_long_long_int_64=no
11676 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
11677 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
11678 else
11679   cat >conftest.$ac_ext <<_ACEOF
11680 #line $LINENO "configure"
11681 #include "confdefs.h"
11682 typedef long long int int64;
11683
11684 /*
11685  * These are globals to discourage the compiler from folding all the
11686  * arithmetic tests down to compile-time constants.
11687  */
11688 int64 a = 20000001;
11689 int64 b = 40000005;
11690
11691 int does_int64_work()
11692 {
11693   int64 c,d;
11694
11695   if (sizeof(int64) != 8)
11696     return 0;                   /* definitely not the right size */
11697
11698   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
11699   c = a * b;
11700   d = (c + b) / b;
11701   if (d != a+1)
11702     return 0;
11703   return 1;
11704 }
11705 main() {
11706   exit(! does_int64_work());
11707 }
11708 _ACEOF
11709 rm -f conftest$ac_exeext
11710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11711   (eval $ac_link) 2>&5
11712   ac_status=$?
11713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716   (eval $ac_try) 2>&5
11717   ac_status=$?
11718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719   (exit $ac_status); }; }; then
11720   pgac_cv_type_long_long_int_64=yes
11721 else
11722   echo "$as_me: program exited with status $ac_status" >&5
11723 echo "$as_me: failed program was:" >&5
11724 cat conftest.$ac_ext >&5
11725 ( exit $ac_status )
11726 pgac_cv_type_long_long_int_64=no
11727 fi
11728 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11729 fi
11730 fi
11731 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
11732 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
11733
11734 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
11735 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
11736
11737 cat >>confdefs.h <<\_ACEOF
11738 #define HAVE_LONG_LONG_INT_64
11739 _ACEOF
11740
11741 fi
11742
11743 fi
11744
11745
11746
11747 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
11748   cat >conftest.$ac_ext <<_ACEOF
11749 #line $LINENO "configure"
11750 #include "confdefs.h"
11751
11752 #define INT64CONST(x)  x##LL
11753 long long int foo = INT64CONST(0x1234567890123456);
11754
11755 #ifdef F77_DUMMY_MAIN
11756 #  ifdef __cplusplus
11757      extern "C"
11758 #  endif
11759    int F77_DUMMY_MAIN() { return 1; }
11760 #endif
11761 int
11762 main ()
11763 {
11764
11765   ;
11766   return 0;
11767 }
11768 _ACEOF
11769 rm -f conftest.$ac_objext
11770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11771   (eval $ac_compile) 2>&5
11772   ac_status=$?
11773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774   (exit $ac_status); } &&
11775          { ac_try='test -s conftest.$ac_objext'
11776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777   (eval $ac_try) 2>&5
11778   ac_status=$?
11779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780   (exit $ac_status); }; }; then
11781
11782 cat >>confdefs.h <<\_ACEOF
11783 #define HAVE_LL_CONSTANTS 1
11784 _ACEOF
11785
11786 else
11787   echo "$as_me: failed program was:" >&5
11788 cat conftest.$ac_ext >&5
11789 fi
11790 rm -f conftest.$ac_objext conftest.$ac_ext
11791 fi
11792
11793
11794
11795 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
11796   if test $pgac_need_repl_snprintf = no; then
11797     echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
11798 echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
11799     if test "$cross_compiling" = yes; then
11800    echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
11801 echo "${ECHO_T}cannot test (not on host machine)" >&6
11802         # Force usage of our own snprintf, since we cannot test foreign snprintf
11803         pgac_need_repl_snprintf=yes
11804         INT64_FORMAT='"%lld"'
11805
11806 else
11807   cat >conftest.$ac_ext <<_ACEOF
11808 #line $LINENO "configure"
11809 #include "confdefs.h"
11810 #include <stdio.h>
11811 typedef long long int int64;
11812 #define INT64_FORMAT "%lld"
11813
11814 int64 a = 20000001;
11815 int64 b = 40000005;
11816
11817 int does_int64_snprintf_work()
11818 {
11819   int64 c;
11820   char buf[100];
11821
11822   if (sizeof(int64) != 8)
11823     return 0;                   /* doesn't look like the right size */
11824
11825   c = a * b;
11826   snprintf(buf, 100, INT64_FORMAT, c);
11827   if (strcmp(buf, "800000140000005") != 0)
11828     return 0;                   /* either multiply or snprintf is busted */
11829   return 1;
11830 }
11831 main() {
11832   exit(! does_int64_snprintf_work());
11833 }
11834 _ACEOF
11835 rm -f conftest$ac_exeext
11836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11837   (eval $ac_link) 2>&5
11838   ac_status=$?
11839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11842   (eval $ac_try) 2>&5
11843   ac_status=$?
11844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845   (exit $ac_status); }; }; then
11846    echo "$as_me:$LINENO: result: yes" >&5
11847 echo "${ECHO_T}yes" >&6
11848           INT64_FORMAT='"%lld"'
11849
11850 else
11851   echo "$as_me: program exited with status $ac_status" >&5
11852 echo "$as_me: failed program was:" >&5
11853 cat conftest.$ac_ext >&5
11854 ( exit $ac_status )
11855  echo "$as_me:$LINENO: result: no" >&5
11856 echo "${ECHO_T}no" >&6
11857     echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
11858 echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
11859     if test "$cross_compiling" = yes; then
11860    echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
11861 echo "${ECHO_T}cannot test (not on host machine)" >&6
11862         # Force usage of our own snprintf, since we cannot test foreign snprintf
11863         pgac_need_repl_snprintf=yes
11864         INT64_FORMAT='"%lld"'
11865
11866 else
11867   cat >conftest.$ac_ext <<_ACEOF
11868 #line $LINENO "configure"
11869 #include "confdefs.h"
11870 #include <stdio.h>
11871 typedef long long int int64;
11872 #define INT64_FORMAT "%qd"
11873
11874 int64 a = 20000001;
11875 int64 b = 40000005;
11876
11877 int does_int64_snprintf_work()
11878 {
11879   int64 c;
11880   char buf[100];
11881
11882   if (sizeof(int64) != 8)
11883     return 0;     /* doesn't look like the right size */
11884
11885   c = a * b;
11886   snprintf(buf, 100, INT64_FORMAT, c);
11887   if (strcmp(buf, "800000140000005") != 0)
11888     return 0;     /* either multiply or snprintf is busted */
11889   return 1;
11890 }
11891 main() {
11892   exit(! does_int64_snprintf_work());
11893 }
11894 _ACEOF
11895 rm -f conftest$ac_exeext
11896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11897   (eval $ac_link) 2>&5
11898   ac_status=$?
11899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902   (eval $ac_try) 2>&5
11903   ac_status=$?
11904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905   (exit $ac_status); }; }; then
11906    echo "$as_me:$LINENO: result: yes" >&5
11907 echo "${ECHO_T}yes" >&6
11908     INT64_FORMAT='"%qd"'
11909
11910 else
11911   echo "$as_me: program exited with status $ac_status" >&5
11912 echo "$as_me: failed program was:" >&5
11913 cat conftest.$ac_ext >&5
11914 ( exit $ac_status )
11915  echo "$as_me:$LINENO: result: no" >&5
11916 echo "${ECHO_T}no" >&6
11917         # Force usage of our own snprintf, since system snprintf is broken
11918         pgac_need_repl_snprintf=yes
11919         INT64_FORMAT='"%lld"'
11920
11921 fi
11922 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11923 fi
11924 fi
11925 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11926 fi
11927   else
11928     # here if we previously decided we needed to use our own snprintf
11929     INT64_FORMAT='"%lld"'
11930   fi
11931 else
11932   # Here if we are not using 'long long int' at all
11933   INT64_FORMAT='"%ld"'
11934 fi
11935
11936
11937 cat >>confdefs.h <<_ACEOF
11938 #define INT64_FORMAT $INT64_FORMAT
11939 _ACEOF
11940
11941
11942 if test $pgac_need_repl_snprintf = yes; then
11943   LIBOBJS="$LIBOBJS snprintf.$ac_objext"
11944 fi
11945
11946
11947 echo "$as_me:$LINENO: checking for unsigned long" >&5
11948 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
11949 if test "${ac_cv_type_unsigned_long+set}" = set; then
11950   echo $ECHO_N "(cached) $ECHO_C" >&6
11951 else
11952   cat >conftest.$ac_ext <<_ACEOF
11953 #line $LINENO "configure"
11954 #include "confdefs.h"
11955 $ac_includes_default
11956 #ifdef F77_DUMMY_MAIN
11957 #  ifdef __cplusplus
11958      extern "C"
11959 #  endif
11960    int F77_DUMMY_MAIN() { return 1; }
11961 #endif
11962 int
11963 main ()
11964 {
11965 if ((unsigned long *) 0)
11966   return 0;
11967 if (sizeof (unsigned long))
11968   return 0;
11969   ;
11970   return 0;
11971 }
11972 _ACEOF
11973 rm -f conftest.$ac_objext
11974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11975   (eval $ac_compile) 2>&5
11976   ac_status=$?
11977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978   (exit $ac_status); } &&
11979          { ac_try='test -s conftest.$ac_objext'
11980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981   (eval $ac_try) 2>&5
11982   ac_status=$?
11983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984   (exit $ac_status); }; }; then
11985   ac_cv_type_unsigned_long=yes
11986 else
11987   echo "$as_me: failed program was:" >&5
11988 cat conftest.$ac_ext >&5
11989 ac_cv_type_unsigned_long=no
11990 fi
11991 rm -f conftest.$ac_objext conftest.$ac_ext
11992 fi
11993 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
11994 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
11995
11996 echo "$as_me:$LINENO: checking size of unsigned long" >&5
11997 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
11998 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
11999   echo $ECHO_N "(cached) $ECHO_C" >&6
12000 else
12001   if test "$ac_cv_type_unsigned_long" = yes; then
12002   # The cast to unsigned long works around a bug in the HP C Compiler
12003   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12004   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12005   # This bug is HP SR number 8606223364.
12006   if test "$cross_compiling" = yes; then
12007   # Depending upon the size, compute the lo and hi bounds.
12008 cat >conftest.$ac_ext <<_ACEOF
12009 #line $LINENO "configure"
12010 #include "confdefs.h"
12011 $ac_includes_default
12012 #ifdef F77_DUMMY_MAIN
12013 #  ifdef __cplusplus
12014      extern "C"
12015 #  endif
12016    int F77_DUMMY_MAIN() { return 1; }
12017 #endif
12018 int
12019 main ()
12020 {
12021 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
12022 test_array [0] = 0
12023
12024   ;
12025   return 0;
12026 }
12027 _ACEOF
12028 rm -f conftest.$ac_objext
12029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12030   (eval $ac_compile) 2>&5
12031   ac_status=$?
12032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033   (exit $ac_status); } &&
12034          { ac_try='test -s conftest.$ac_objext'
12035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036   (eval $ac_try) 2>&5
12037   ac_status=$?
12038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039   (exit $ac_status); }; }; then
12040   ac_lo=0 ac_mid=0
12041   while :; do
12042     cat >conftest.$ac_ext <<_ACEOF
12043 #line $LINENO "configure"
12044 #include "confdefs.h"
12045 $ac_includes_default
12046 #ifdef F77_DUMMY_MAIN
12047 #  ifdef __cplusplus
12048      extern "C"
12049 #  endif
12050    int F77_DUMMY_MAIN() { return 1; }
12051 #endif
12052 int
12053 main ()
12054 {
12055 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12056 test_array [0] = 0
12057
12058   ;
12059   return 0;
12060 }
12061 _ACEOF
12062 rm -f conftest.$ac_objext
12063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12064   (eval $ac_compile) 2>&5
12065   ac_status=$?
12066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067   (exit $ac_status); } &&
12068          { ac_try='test -s conftest.$ac_objext'
12069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12070   (eval $ac_try) 2>&5
12071   ac_status=$?
12072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073   (exit $ac_status); }; }; then
12074   ac_hi=$ac_mid; break
12075 else
12076   echo "$as_me: failed program was:" >&5
12077 cat conftest.$ac_ext >&5
12078 ac_lo=`expr $ac_mid + 1`
12079                     if test $ac_lo -le $ac_mid; then
12080                       ac_lo= ac_hi=
12081                       break
12082                     fi
12083                     ac_mid=`expr 2 '*' $ac_mid + 1`
12084 fi
12085 rm -f conftest.$ac_objext conftest.$ac_ext
12086   done
12087 else
12088   echo "$as_me: failed program was:" >&5
12089 cat conftest.$ac_ext >&5
12090 cat >conftest.$ac_ext <<_ACEOF
12091 #line $LINENO "configure"
12092 #include "confdefs.h"
12093 $ac_includes_default
12094 #ifdef F77_DUMMY_MAIN
12095 #  ifdef __cplusplus
12096      extern "C"
12097 #  endif
12098    int F77_DUMMY_MAIN() { return 1; }
12099 #endif
12100 int
12101 main ()
12102 {
12103 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
12104 test_array [0] = 0
12105
12106   ;
12107   return 0;
12108 }
12109 _ACEOF
12110 rm -f conftest.$ac_objext
12111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12112   (eval $ac_compile) 2>&5
12113   ac_status=$?
12114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115   (exit $ac_status); } &&
12116          { ac_try='test -s conftest.$ac_objext'
12117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118   (eval $ac_try) 2>&5
12119   ac_status=$?
12120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121   (exit $ac_status); }; }; then
12122   ac_hi=-1 ac_mid=-1
12123   while :; do
12124     cat >conftest.$ac_ext <<_ACEOF
12125 #line $LINENO "configure"
12126 #include "confdefs.h"
12127 $ac_includes_default
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 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
12138 test_array [0] = 0
12139
12140   ;
12141   return 0;
12142 }
12143 _ACEOF
12144 rm -f conftest.$ac_objext
12145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12146   (eval $ac_compile) 2>&5
12147   ac_status=$?
12148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149   (exit $ac_status); } &&
12150          { ac_try='test -s conftest.$ac_objext'
12151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152   (eval $ac_try) 2>&5
12153   ac_status=$?
12154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155   (exit $ac_status); }; }; then
12156   ac_lo=$ac_mid; break
12157 else
12158   echo "$as_me: failed program was:" >&5
12159 cat conftest.$ac_ext >&5
12160 ac_hi=`expr '(' $ac_mid ')' - 1`
12161                        if test $ac_mid -le $ac_hi; then
12162                          ac_lo= ac_hi=
12163                          break
12164                        fi
12165                        ac_mid=`expr 2 '*' $ac_mid`
12166 fi
12167 rm -f conftest.$ac_objext conftest.$ac_ext
12168   done
12169 else
12170   echo "$as_me: failed program was:" >&5
12171 cat conftest.$ac_ext >&5
12172 ac_lo= ac_hi=
12173 fi
12174 rm -f conftest.$ac_objext conftest.$ac_ext
12175 fi
12176 rm -f conftest.$ac_objext conftest.$ac_ext
12177 # Binary search between lo and hi bounds.
12178 while test "x$ac_lo" != "x$ac_hi"; do
12179   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12180   cat >conftest.$ac_ext <<_ACEOF
12181 #line $LINENO "configure"
12182 #include "confdefs.h"
12183 $ac_includes_default
12184 #ifdef F77_DUMMY_MAIN
12185 #  ifdef __cplusplus
12186      extern "C"
12187 #  endif
12188    int F77_DUMMY_MAIN() { return 1; }
12189 #endif
12190 int
12191 main ()
12192 {
12193 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12194 test_array [0] = 0
12195
12196   ;
12197   return 0;
12198 }
12199 _ACEOF
12200 rm -f conftest.$ac_objext
12201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12202   (eval $ac_compile) 2>&5
12203   ac_status=$?
12204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205   (exit $ac_status); } &&
12206          { ac_try='test -s conftest.$ac_objext'
12207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208   (eval $ac_try) 2>&5
12209   ac_status=$?
12210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211   (exit $ac_status); }; }; then
12212   ac_hi=$ac_mid
12213 else
12214   echo "$as_me: failed program was:" >&5
12215 cat conftest.$ac_ext >&5
12216 ac_lo=`expr '(' $ac_mid ')' + 1`
12217 fi
12218 rm -f conftest.$ac_objext conftest.$ac_ext
12219 done
12220 case $ac_lo in
12221 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
12222 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12223 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12224    { (exit 1); exit 1; }; } ;;
12225 esac
12226 else
12227   if test "$cross_compiling" = yes; then
12228   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12229 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12230    { (exit 1); exit 1; }; }
12231 else
12232   cat >conftest.$ac_ext <<_ACEOF
12233 #line $LINENO "configure"
12234 #include "confdefs.h"
12235 $ac_includes_default
12236 long longval () { return (long) (sizeof (unsigned long)); }
12237 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
12238 #include <stdio.h>
12239 #include <stdlib.h>
12240 #ifdef F77_DUMMY_MAIN
12241 #  ifdef __cplusplus
12242      extern "C"
12243 #  endif
12244    int F77_DUMMY_MAIN() { return 1; }
12245 #endif
12246 int
12247 main ()
12248 {
12249
12250   FILE *f = fopen ("conftest.val", "w");
12251   if (! f)
12252     exit (1);
12253   if (((long) (sizeof (unsigned long))) < 0)
12254     {
12255       long i = longval ();
12256       if (i != ((long) (sizeof (unsigned long))))
12257         exit (1);
12258       fprintf (f, "%ld\n", i);
12259     }
12260   else
12261     {
12262       unsigned long i = ulongval ();
12263       if (i != ((long) (sizeof (unsigned long))))
12264         exit (1);
12265       fprintf (f, "%lu\n", i);
12266     }
12267   exit (ferror (f) || fclose (f) != 0);
12268
12269   ;
12270   return 0;
12271 }
12272 _ACEOF
12273 rm -f conftest$ac_exeext
12274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12275   (eval $ac_link) 2>&5
12276   ac_status=$?
12277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280   (eval $ac_try) 2>&5
12281   ac_status=$?
12282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283   (exit $ac_status); }; }; then
12284   ac_cv_sizeof_unsigned_long=`cat conftest.val`
12285 else
12286   echo "$as_me: program exited with status $ac_status" >&5
12287 echo "$as_me: failed program was:" >&5
12288 cat conftest.$ac_ext >&5
12289 ( exit $ac_status )
12290 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12291 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12292    { (exit 1); exit 1; }; }
12293 fi
12294 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12295 fi
12296 fi
12297 rm -f conftest.val
12298 else
12299   ac_cv_sizeof_unsigned_long=0
12300 fi
12301 fi
12302 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
12303 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
12304 cat >>confdefs.h <<_ACEOF
12305 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
12306 _ACEOF
12307
12308
12309
12310 cat >>confdefs.h <<_ACEOF
12311 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
12312 _ACEOF
12313
12314
12315 # Determine memory alignment requirements for the basic C data types.
12316
12317 echo "$as_me:$LINENO: checking for short" >&5
12318 echo $ECHO_N "checking for short... $ECHO_C" >&6
12319 if test "${ac_cv_type_short+set}" = set; then
12320   echo $ECHO_N "(cached) $ECHO_C" >&6
12321 else
12322   cat >conftest.$ac_ext <<_ACEOF
12323 #line $LINENO "configure"
12324 #include "confdefs.h"
12325 $ac_includes_default
12326 #ifdef F77_DUMMY_MAIN
12327 #  ifdef __cplusplus
12328      extern "C"
12329 #  endif
12330    int F77_DUMMY_MAIN() { return 1; }
12331 #endif
12332 int
12333 main ()
12334 {
12335 if ((short *) 0)
12336   return 0;
12337 if (sizeof (short))
12338   return 0;
12339   ;
12340   return 0;
12341 }
12342 _ACEOF
12343 rm -f conftest.$ac_objext
12344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12345   (eval $ac_compile) 2>&5
12346   ac_status=$?
12347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348   (exit $ac_status); } &&
12349          { ac_try='test -s conftest.$ac_objext'
12350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12351   (eval $ac_try) 2>&5
12352   ac_status=$?
12353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354   (exit $ac_status); }; }; then
12355   ac_cv_type_short=yes
12356 else
12357   echo "$as_me: failed program was:" >&5
12358 cat conftest.$ac_ext >&5
12359 ac_cv_type_short=no
12360 fi
12361 rm -f conftest.$ac_objext conftest.$ac_ext
12362 fi
12363 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12364 echo "${ECHO_T}$ac_cv_type_short" >&6
12365
12366 echo "$as_me:$LINENO: checking alignment of short" >&5
12367 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
12368 if test "${pgac_cv_alignof_short+set}" = set; then
12369   echo $ECHO_N "(cached) $ECHO_C" >&6
12370 else
12371   if test "$ac_cv_type_short" = yes; then
12372   if test "$cross_compiling" = yes; then
12373   # Depending upon the size, compute the lo and hi bounds.
12374 cat >conftest.$ac_ext <<_ACEOF
12375 #line $LINENO "configure"
12376 #include "confdefs.h"
12377 $ac_includes_default
12378 struct { char filler; short field; } pgac_struct;
12379 #ifdef F77_DUMMY_MAIN
12380 #  ifdef __cplusplus
12381      extern "C"
12382 #  endif
12383    int F77_DUMMY_MAIN() { return 1; }
12384 #endif
12385 int
12386 main ()
12387 {
12388 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
12389 test_array [0] = 0
12390
12391   ;
12392   return 0;
12393 }
12394 _ACEOF
12395 rm -f conftest.$ac_objext
12396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12397   (eval $ac_compile) 2>&5
12398   ac_status=$?
12399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400   (exit $ac_status); } &&
12401          { ac_try='test -s conftest.$ac_objext'
12402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403   (eval $ac_try) 2>&5
12404   ac_status=$?
12405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406   (exit $ac_status); }; }; then
12407   ac_lo=0 ac_mid=0
12408   while :; do
12409     cat >conftest.$ac_ext <<_ACEOF
12410 #line $LINENO "configure"
12411 #include "confdefs.h"
12412 $ac_includes_default
12413 struct { char filler; short field; } pgac_struct;
12414 #ifdef F77_DUMMY_MAIN
12415 #  ifdef __cplusplus
12416      extern "C"
12417 #  endif
12418    int F77_DUMMY_MAIN() { return 1; }
12419 #endif
12420 int
12421 main ()
12422 {
12423 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12424 test_array [0] = 0
12425
12426   ;
12427   return 0;
12428 }
12429 _ACEOF
12430 rm -f conftest.$ac_objext
12431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12432   (eval $ac_compile) 2>&5
12433   ac_status=$?
12434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435   (exit $ac_status); } &&
12436          { ac_try='test -s conftest.$ac_objext'
12437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438   (eval $ac_try) 2>&5
12439   ac_status=$?
12440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441   (exit $ac_status); }; }; then
12442   ac_hi=$ac_mid; break
12443 else
12444   echo "$as_me: failed program was:" >&5
12445 cat conftest.$ac_ext >&5
12446 ac_lo=`expr $ac_mid + 1`
12447                     if test $ac_lo -le $ac_mid; then
12448                       ac_lo= ac_hi=
12449                       break
12450                     fi
12451                     ac_mid=`expr 2 '*' $ac_mid + 1`
12452 fi
12453 rm -f conftest.$ac_objext conftest.$ac_ext
12454   done
12455 else
12456   echo "$as_me: failed program was:" >&5
12457 cat conftest.$ac_ext >&5
12458 cat >conftest.$ac_ext <<_ACEOF
12459 #line $LINENO "configure"
12460 #include "confdefs.h"
12461 $ac_includes_default
12462 struct { char filler; short field; } pgac_struct;
12463 #ifdef F77_DUMMY_MAIN
12464 #  ifdef __cplusplus
12465      extern "C"
12466 #  endif
12467    int F77_DUMMY_MAIN() { return 1; }
12468 #endif
12469 int
12470 main ()
12471 {
12472 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
12473 test_array [0] = 0
12474
12475   ;
12476   return 0;
12477 }
12478 _ACEOF
12479 rm -f conftest.$ac_objext
12480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12481   (eval $ac_compile) 2>&5
12482   ac_status=$?
12483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484   (exit $ac_status); } &&
12485          { ac_try='test -s conftest.$ac_objext'
12486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487   (eval $ac_try) 2>&5
12488   ac_status=$?
12489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490   (exit $ac_status); }; }; then
12491   ac_hi=-1 ac_mid=-1
12492   while :; do
12493     cat >conftest.$ac_ext <<_ACEOF
12494 #line $LINENO "configure"
12495 #include "confdefs.h"
12496 $ac_includes_default
12497 struct { char filler; short field; } pgac_struct;
12498 #ifdef F77_DUMMY_MAIN
12499 #  ifdef __cplusplus
12500      extern "C"
12501 #  endif
12502    int F77_DUMMY_MAIN() { return 1; }
12503 #endif
12504 int
12505 main ()
12506 {
12507 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
12508 test_array [0] = 0
12509
12510   ;
12511   return 0;
12512 }
12513 _ACEOF
12514 rm -f conftest.$ac_objext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12516   (eval $ac_compile) 2>&5
12517   ac_status=$?
12518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519   (exit $ac_status); } &&
12520          { ac_try='test -s conftest.$ac_objext'
12521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522   (eval $ac_try) 2>&5
12523   ac_status=$?
12524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525   (exit $ac_status); }; }; then
12526   ac_lo=$ac_mid; break
12527 else
12528   echo "$as_me: failed program was:" >&5
12529 cat conftest.$ac_ext >&5
12530 ac_hi=`expr '(' $ac_mid ')' - 1`
12531                        if test $ac_mid -le $ac_hi; then
12532                          ac_lo= ac_hi=
12533                          break
12534                        fi
12535                        ac_mid=`expr 2 '*' $ac_mid`
12536 fi
12537 rm -f conftest.$ac_objext conftest.$ac_ext
12538   done
12539 else
12540   echo "$as_me: failed program was:" >&5
12541 cat conftest.$ac_ext >&5
12542 ac_lo= ac_hi=
12543 fi
12544 rm -f conftest.$ac_objext conftest.$ac_ext
12545 fi
12546 rm -f conftest.$ac_objext conftest.$ac_ext
12547 # Binary search between lo and hi bounds.
12548 while test "x$ac_lo" != "x$ac_hi"; do
12549   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12550   cat >conftest.$ac_ext <<_ACEOF
12551 #line $LINENO "configure"
12552 #include "confdefs.h"
12553 $ac_includes_default
12554 struct { char filler; short field; } pgac_struct;
12555 #ifdef F77_DUMMY_MAIN
12556 #  ifdef __cplusplus
12557      extern "C"
12558 #  endif
12559    int F77_DUMMY_MAIN() { return 1; }
12560 #endif
12561 int
12562 main ()
12563 {
12564 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12565 test_array [0] = 0
12566
12567   ;
12568   return 0;
12569 }
12570 _ACEOF
12571 rm -f conftest.$ac_objext
12572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12573   (eval $ac_compile) 2>&5
12574   ac_status=$?
12575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576   (exit $ac_status); } &&
12577          { ac_try='test -s conftest.$ac_objext'
12578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12579   (eval $ac_try) 2>&5
12580   ac_status=$?
12581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582   (exit $ac_status); }; }; then
12583   ac_hi=$ac_mid
12584 else
12585   echo "$as_me: failed program was:" >&5
12586 cat conftest.$ac_ext >&5
12587 ac_lo=`expr '(' $ac_mid ')' + 1`
12588 fi
12589 rm -f conftest.$ac_objext conftest.$ac_ext
12590 done
12591 case $ac_lo in
12592 ?*) pgac_cv_alignof_short=$ac_lo;;
12593 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
12594 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
12595    { (exit 1); exit 1; }; } ;;
12596 esac
12597 else
12598   if test "$cross_compiling" = yes; then
12599   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12600 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12601    { (exit 1); exit 1; }; }
12602 else
12603   cat >conftest.$ac_ext <<_ACEOF
12604 #line $LINENO "configure"
12605 #include "confdefs.h"
12606 $ac_includes_default
12607 struct { char filler; short field; } pgac_struct;
12608 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12609 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12610 #include <stdio.h>
12611 #include <stdlib.h>
12612 #ifdef F77_DUMMY_MAIN
12613 #  ifdef __cplusplus
12614      extern "C"
12615 #  endif
12616    int F77_DUMMY_MAIN() { return 1; }
12617 #endif
12618 int
12619 main ()
12620 {
12621
12622   FILE *f = fopen ("conftest.val", "w");
12623   if (! f)
12624     exit (1);
12625   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
12626     {
12627       long i = longval ();
12628       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12629         exit (1);
12630       fprintf (f, "%ld\n", i);
12631     }
12632   else
12633     {
12634       unsigned long i = ulongval ();
12635       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12636         exit (1);
12637       fprintf (f, "%lu\n", i);
12638     }
12639   exit (ferror (f) || fclose (f) != 0);
12640
12641   ;
12642   return 0;
12643 }
12644 _ACEOF
12645 rm -f conftest$ac_exeext
12646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12647   (eval $ac_link) 2>&5
12648   ac_status=$?
12649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12652   (eval $ac_try) 2>&5
12653   ac_status=$?
12654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655   (exit $ac_status); }; }; then
12656   pgac_cv_alignof_short=`cat conftest.val`
12657 else
12658   echo "$as_me: program exited with status $ac_status" >&5
12659 echo "$as_me: failed program was:" >&5
12660 cat conftest.$ac_ext >&5
12661 ( exit $ac_status )
12662 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
12663 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
12664    { (exit 1); exit 1; }; }
12665 fi
12666 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12667 fi
12668 fi
12669 rm -f conftest.val
12670 else
12671   pgac_cv_alignof_short=0
12672 fi
12673 fi
12674 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
12675 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
12676 cat >>confdefs.h <<_ACEOF
12677 #define ALIGNOF_SHORT $pgac_cv_alignof_short
12678 _ACEOF
12679
12680
12681 echo "$as_me:$LINENO: checking for int" >&5
12682 echo $ECHO_N "checking for int... $ECHO_C" >&6
12683 if test "${ac_cv_type_int+set}" = set; then
12684   echo $ECHO_N "(cached) $ECHO_C" >&6
12685 else
12686   cat >conftest.$ac_ext <<_ACEOF
12687 #line $LINENO "configure"
12688 #include "confdefs.h"
12689 $ac_includes_default
12690 #ifdef F77_DUMMY_MAIN
12691 #  ifdef __cplusplus
12692      extern "C"
12693 #  endif
12694    int F77_DUMMY_MAIN() { return 1; }
12695 #endif
12696 int
12697 main ()
12698 {
12699 if ((int *) 0)
12700   return 0;
12701 if (sizeof (int))
12702   return 0;
12703   ;
12704   return 0;
12705 }
12706 _ACEOF
12707 rm -f conftest.$ac_objext
12708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12709   (eval $ac_compile) 2>&5
12710   ac_status=$?
12711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712   (exit $ac_status); } &&
12713          { ac_try='test -s conftest.$ac_objext'
12714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12715   (eval $ac_try) 2>&5
12716   ac_status=$?
12717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718   (exit $ac_status); }; }; then
12719   ac_cv_type_int=yes
12720 else
12721   echo "$as_me: failed program was:" >&5
12722 cat conftest.$ac_ext >&5
12723 ac_cv_type_int=no
12724 fi
12725 rm -f conftest.$ac_objext conftest.$ac_ext
12726 fi
12727 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12728 echo "${ECHO_T}$ac_cv_type_int" >&6
12729
12730 echo "$as_me:$LINENO: checking alignment of int" >&5
12731 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
12732 if test "${pgac_cv_alignof_int+set}" = set; then
12733   echo $ECHO_N "(cached) $ECHO_C" >&6
12734 else
12735   if test "$ac_cv_type_int" = yes; then
12736   if test "$cross_compiling" = yes; then
12737   # Depending upon the size, compute the lo and hi bounds.
12738 cat >conftest.$ac_ext <<_ACEOF
12739 #line $LINENO "configure"
12740 #include "confdefs.h"
12741 $ac_includes_default
12742 struct { char filler; int field; } pgac_struct;
12743 #ifdef F77_DUMMY_MAIN
12744 #  ifdef __cplusplus
12745      extern "C"
12746 #  endif
12747    int F77_DUMMY_MAIN() { return 1; }
12748 #endif
12749 int
12750 main ()
12751 {
12752 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
12753 test_array [0] = 0
12754
12755   ;
12756   return 0;
12757 }
12758 _ACEOF
12759 rm -f conftest.$ac_objext
12760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12761   (eval $ac_compile) 2>&5
12762   ac_status=$?
12763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764   (exit $ac_status); } &&
12765          { ac_try='test -s conftest.$ac_objext'
12766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12767   (eval $ac_try) 2>&5
12768   ac_status=$?
12769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770   (exit $ac_status); }; }; then
12771   ac_lo=0 ac_mid=0
12772   while :; do
12773     cat >conftest.$ac_ext <<_ACEOF
12774 #line $LINENO "configure"
12775 #include "confdefs.h"
12776 $ac_includes_default
12777 struct { char filler; int field; } pgac_struct;
12778 #ifdef F77_DUMMY_MAIN
12779 #  ifdef __cplusplus
12780      extern "C"
12781 #  endif
12782    int F77_DUMMY_MAIN() { return 1; }
12783 #endif
12784 int
12785 main ()
12786 {
12787 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12788 test_array [0] = 0
12789
12790   ;
12791   return 0;
12792 }
12793 _ACEOF
12794 rm -f conftest.$ac_objext
12795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12796   (eval $ac_compile) 2>&5
12797   ac_status=$?
12798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799   (exit $ac_status); } &&
12800          { ac_try='test -s conftest.$ac_objext'
12801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802   (eval $ac_try) 2>&5
12803   ac_status=$?
12804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805   (exit $ac_status); }; }; then
12806   ac_hi=$ac_mid; break
12807 else
12808   echo "$as_me: failed program was:" >&5
12809 cat conftest.$ac_ext >&5
12810 ac_lo=`expr $ac_mid + 1`
12811                     if test $ac_lo -le $ac_mid; then
12812                       ac_lo= ac_hi=
12813                       break
12814                     fi
12815                     ac_mid=`expr 2 '*' $ac_mid + 1`
12816 fi
12817 rm -f conftest.$ac_objext conftest.$ac_ext
12818   done
12819 else
12820   echo "$as_me: failed program was:" >&5
12821 cat conftest.$ac_ext >&5
12822 cat >conftest.$ac_ext <<_ACEOF
12823 #line $LINENO "configure"
12824 #include "confdefs.h"
12825 $ac_includes_default
12826 struct { char filler; int field; } pgac_struct;
12827 #ifdef F77_DUMMY_MAIN
12828 #  ifdef __cplusplus
12829      extern "C"
12830 #  endif
12831    int F77_DUMMY_MAIN() { return 1; }
12832 #endif
12833 int
12834 main ()
12835 {
12836 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
12837 test_array [0] = 0
12838
12839   ;
12840   return 0;
12841 }
12842 _ACEOF
12843 rm -f conftest.$ac_objext
12844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12845   (eval $ac_compile) 2>&5
12846   ac_status=$?
12847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848   (exit $ac_status); } &&
12849          { ac_try='test -s conftest.$ac_objext'
12850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12851   (eval $ac_try) 2>&5
12852   ac_status=$?
12853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854   (exit $ac_status); }; }; then
12855   ac_hi=-1 ac_mid=-1
12856   while :; do
12857     cat >conftest.$ac_ext <<_ACEOF
12858 #line $LINENO "configure"
12859 #include "confdefs.h"
12860 $ac_includes_default
12861 struct { char filler; int field; } pgac_struct;
12862 #ifdef F77_DUMMY_MAIN
12863 #  ifdef __cplusplus
12864      extern "C"
12865 #  endif
12866    int F77_DUMMY_MAIN() { return 1; }
12867 #endif
12868 int
12869 main ()
12870 {
12871 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
12872 test_array [0] = 0
12873
12874   ;
12875   return 0;
12876 }
12877 _ACEOF
12878 rm -f conftest.$ac_objext
12879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12880   (eval $ac_compile) 2>&5
12881   ac_status=$?
12882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883   (exit $ac_status); } &&
12884          { ac_try='test -s conftest.$ac_objext'
12885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886   (eval $ac_try) 2>&5
12887   ac_status=$?
12888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889   (exit $ac_status); }; }; then
12890   ac_lo=$ac_mid; break
12891 else
12892   echo "$as_me: failed program was:" >&5
12893 cat conftest.$ac_ext >&5
12894 ac_hi=`expr '(' $ac_mid ')' - 1`
12895                        if test $ac_mid -le $ac_hi; then
12896                          ac_lo= ac_hi=
12897                          break
12898                        fi
12899                        ac_mid=`expr 2 '*' $ac_mid`
12900 fi
12901 rm -f conftest.$ac_objext conftest.$ac_ext
12902   done
12903 else
12904   echo "$as_me: failed program was:" >&5
12905 cat conftest.$ac_ext >&5
12906 ac_lo= ac_hi=
12907 fi
12908 rm -f conftest.$ac_objext conftest.$ac_ext
12909 fi
12910 rm -f conftest.$ac_objext conftest.$ac_ext
12911 # Binary search between lo and hi bounds.
12912 while test "x$ac_lo" != "x$ac_hi"; do
12913   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12914   cat >conftest.$ac_ext <<_ACEOF
12915 #line $LINENO "configure"
12916 #include "confdefs.h"
12917 $ac_includes_default
12918 struct { char filler; int field; } pgac_struct;
12919 #ifdef F77_DUMMY_MAIN
12920 #  ifdef __cplusplus
12921      extern "C"
12922 #  endif
12923    int F77_DUMMY_MAIN() { return 1; }
12924 #endif
12925 int
12926 main ()
12927 {
12928 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12929 test_array [0] = 0
12930
12931   ;
12932   return 0;
12933 }
12934 _ACEOF
12935 rm -f conftest.$ac_objext
12936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12937   (eval $ac_compile) 2>&5
12938   ac_status=$?
12939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940   (exit $ac_status); } &&
12941          { ac_try='test -s conftest.$ac_objext'
12942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943   (eval $ac_try) 2>&5
12944   ac_status=$?
12945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946   (exit $ac_status); }; }; then
12947   ac_hi=$ac_mid
12948 else
12949   echo "$as_me: failed program was:" >&5
12950 cat conftest.$ac_ext >&5
12951 ac_lo=`expr '(' $ac_mid ')' + 1`
12952 fi
12953 rm -f conftest.$ac_objext conftest.$ac_ext
12954 done
12955 case $ac_lo in
12956 ?*) pgac_cv_alignof_int=$ac_lo;;
12957 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
12958 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
12959    { (exit 1); exit 1; }; } ;;
12960 esac
12961 else
12962   if test "$cross_compiling" = yes; then
12963   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12964 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12965    { (exit 1); exit 1; }; }
12966 else
12967   cat >conftest.$ac_ext <<_ACEOF
12968 #line $LINENO "configure"
12969 #include "confdefs.h"
12970 $ac_includes_default
12971 struct { char filler; int field; } pgac_struct;
12972 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12973 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12974 #include <stdio.h>
12975 #include <stdlib.h>
12976 #ifdef F77_DUMMY_MAIN
12977 #  ifdef __cplusplus
12978      extern "C"
12979 #  endif
12980    int F77_DUMMY_MAIN() { return 1; }
12981 #endif
12982 int
12983 main ()
12984 {
12985
12986   FILE *f = fopen ("conftest.val", "w");
12987   if (! f)
12988     exit (1);
12989   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
12990     {
12991       long i = longval ();
12992       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12993         exit (1);
12994       fprintf (f, "%ld\n", i);
12995     }
12996   else
12997     {
12998       unsigned long i = ulongval ();
12999       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13000         exit (1);
13001       fprintf (f, "%lu\n", i);
13002     }
13003   exit (ferror (f) || fclose (f) != 0);
13004
13005   ;
13006   return 0;
13007 }
13008 _ACEOF
13009 rm -f conftest$ac_exeext
13010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13011   (eval $ac_link) 2>&5
13012   ac_status=$?
13013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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   pgac_cv_alignof_int=`cat conftest.val`
13021 else
13022   echo "$as_me: program exited with status $ac_status" >&5
13023 echo "$as_me: failed program was:" >&5
13024 cat conftest.$ac_ext >&5
13025 ( exit $ac_status )
13026 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13027 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13028    { (exit 1); exit 1; }; }
13029 fi
13030 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13031 fi
13032 fi
13033 rm -f conftest.val
13034 else
13035   pgac_cv_alignof_int=0
13036 fi
13037 fi
13038 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
13039 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
13040 cat >>confdefs.h <<_ACEOF
13041 #define ALIGNOF_INT $pgac_cv_alignof_int
13042 _ACEOF
13043
13044
13045 echo "$as_me:$LINENO: checking for long" >&5
13046 echo $ECHO_N "checking for long... $ECHO_C" >&6
13047 if test "${ac_cv_type_long+set}" = set; then
13048   echo $ECHO_N "(cached) $ECHO_C" >&6
13049 else
13050   cat >conftest.$ac_ext <<_ACEOF
13051 #line $LINENO "configure"
13052 #include "confdefs.h"
13053 $ac_includes_default
13054 #ifdef F77_DUMMY_MAIN
13055 #  ifdef __cplusplus
13056      extern "C"
13057 #  endif
13058    int F77_DUMMY_MAIN() { return 1; }
13059 #endif
13060 int
13061 main ()
13062 {
13063 if ((long *) 0)
13064   return 0;
13065 if (sizeof (long))
13066   return 0;
13067   ;
13068   return 0;
13069 }
13070 _ACEOF
13071 rm -f conftest.$ac_objext
13072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13073   (eval $ac_compile) 2>&5
13074   ac_status=$?
13075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076   (exit $ac_status); } &&
13077          { ac_try='test -s conftest.$ac_objext'
13078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13079   (eval $ac_try) 2>&5
13080   ac_status=$?
13081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082   (exit $ac_status); }; }; then
13083   ac_cv_type_long=yes
13084 else
13085   echo "$as_me: failed program was:" >&5
13086 cat conftest.$ac_ext >&5
13087 ac_cv_type_long=no
13088 fi
13089 rm -f conftest.$ac_objext conftest.$ac_ext
13090 fi
13091 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13092 echo "${ECHO_T}$ac_cv_type_long" >&6
13093
13094 echo "$as_me:$LINENO: checking alignment of long" >&5
13095 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
13096 if test "${pgac_cv_alignof_long+set}" = set; then
13097   echo $ECHO_N "(cached) $ECHO_C" >&6
13098 else
13099   if test "$ac_cv_type_long" = yes; then
13100   if test "$cross_compiling" = yes; then
13101   # Depending upon the size, compute the lo and hi bounds.
13102 cat >conftest.$ac_ext <<_ACEOF
13103 #line $LINENO "configure"
13104 #include "confdefs.h"
13105 $ac_includes_default
13106 struct { char filler; long field; } pgac_struct;
13107 #ifdef F77_DUMMY_MAIN
13108 #  ifdef __cplusplus
13109      extern "C"
13110 #  endif
13111    int F77_DUMMY_MAIN() { return 1; }
13112 #endif
13113 int
13114 main ()
13115 {
13116 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13117 test_array [0] = 0
13118
13119   ;
13120   return 0;
13121 }
13122 _ACEOF
13123 rm -f conftest.$ac_objext
13124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13125   (eval $ac_compile) 2>&5
13126   ac_status=$?
13127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128   (exit $ac_status); } &&
13129          { ac_try='test -s conftest.$ac_objext'
13130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13131   (eval $ac_try) 2>&5
13132   ac_status=$?
13133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134   (exit $ac_status); }; }; then
13135   ac_lo=0 ac_mid=0
13136   while :; do
13137     cat >conftest.$ac_ext <<_ACEOF
13138 #line $LINENO "configure"
13139 #include "confdefs.h"
13140 $ac_includes_default
13141 struct { char filler; long field; } pgac_struct;
13142 #ifdef F77_DUMMY_MAIN
13143 #  ifdef __cplusplus
13144      extern "C"
13145 #  endif
13146    int F77_DUMMY_MAIN() { return 1; }
13147 #endif
13148 int
13149 main ()
13150 {
13151 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13152 test_array [0] = 0
13153
13154   ;
13155   return 0;
13156 }
13157 _ACEOF
13158 rm -f conftest.$ac_objext
13159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13160   (eval $ac_compile) 2>&5
13161   ac_status=$?
13162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163   (exit $ac_status); } &&
13164          { ac_try='test -s conftest.$ac_objext'
13165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13166   (eval $ac_try) 2>&5
13167   ac_status=$?
13168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169   (exit $ac_status); }; }; then
13170   ac_hi=$ac_mid; break
13171 else
13172   echo "$as_me: failed program was:" >&5
13173 cat conftest.$ac_ext >&5
13174 ac_lo=`expr $ac_mid + 1`
13175                     if test $ac_lo -le $ac_mid; then
13176                       ac_lo= ac_hi=
13177                       break
13178                     fi
13179                     ac_mid=`expr 2 '*' $ac_mid + 1`
13180 fi
13181 rm -f conftest.$ac_objext conftest.$ac_ext
13182   done
13183 else
13184   echo "$as_me: failed program was:" >&5
13185 cat conftest.$ac_ext >&5
13186 cat >conftest.$ac_ext <<_ACEOF
13187 #line $LINENO "configure"
13188 #include "confdefs.h"
13189 $ac_includes_default
13190 struct { char filler; long field; } pgac_struct;
13191 #ifdef F77_DUMMY_MAIN
13192 #  ifdef __cplusplus
13193      extern "C"
13194 #  endif
13195    int F77_DUMMY_MAIN() { return 1; }
13196 #endif
13197 int
13198 main ()
13199 {
13200 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13201 test_array [0] = 0
13202
13203   ;
13204   return 0;
13205 }
13206 _ACEOF
13207 rm -f conftest.$ac_objext
13208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13209   (eval $ac_compile) 2>&5
13210   ac_status=$?
13211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212   (exit $ac_status); } &&
13213          { ac_try='test -s conftest.$ac_objext'
13214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215   (eval $ac_try) 2>&5
13216   ac_status=$?
13217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218   (exit $ac_status); }; }; then
13219   ac_hi=-1 ac_mid=-1
13220   while :; do
13221     cat >conftest.$ac_ext <<_ACEOF
13222 #line $LINENO "configure"
13223 #include "confdefs.h"
13224 $ac_includes_default
13225 struct { char filler; long field; } pgac_struct;
13226 #ifdef F77_DUMMY_MAIN
13227 #  ifdef __cplusplus
13228      extern "C"
13229 #  endif
13230    int F77_DUMMY_MAIN() { return 1; }
13231 #endif
13232 int
13233 main ()
13234 {
13235 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13236 test_array [0] = 0
13237
13238   ;
13239   return 0;
13240 }
13241 _ACEOF
13242 rm -f conftest.$ac_objext
13243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13244   (eval $ac_compile) 2>&5
13245   ac_status=$?
13246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247   (exit $ac_status); } &&
13248          { ac_try='test -s conftest.$ac_objext'
13249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250   (eval $ac_try) 2>&5
13251   ac_status=$?
13252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253   (exit $ac_status); }; }; then
13254   ac_lo=$ac_mid; break
13255 else
13256   echo "$as_me: failed program was:" >&5
13257 cat conftest.$ac_ext >&5
13258 ac_hi=`expr '(' $ac_mid ')' - 1`
13259                        if test $ac_mid -le $ac_hi; then
13260                          ac_lo= ac_hi=
13261                          break
13262                        fi
13263                        ac_mid=`expr 2 '*' $ac_mid`
13264 fi
13265 rm -f conftest.$ac_objext conftest.$ac_ext
13266   done
13267 else
13268   echo "$as_me: failed program was:" >&5
13269 cat conftest.$ac_ext >&5
13270 ac_lo= ac_hi=
13271 fi
13272 rm -f conftest.$ac_objext conftest.$ac_ext
13273 fi
13274 rm -f conftest.$ac_objext conftest.$ac_ext
13275 # Binary search between lo and hi bounds.
13276 while test "x$ac_lo" != "x$ac_hi"; do
13277   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13278   cat >conftest.$ac_ext <<_ACEOF
13279 #line $LINENO "configure"
13280 #include "confdefs.h"
13281 $ac_includes_default
13282 struct { char filler; long field; } pgac_struct;
13283 #ifdef F77_DUMMY_MAIN
13284 #  ifdef __cplusplus
13285      extern "C"
13286 #  endif
13287    int F77_DUMMY_MAIN() { return 1; }
13288 #endif
13289 int
13290 main ()
13291 {
13292 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13293 test_array [0] = 0
13294
13295   ;
13296   return 0;
13297 }
13298 _ACEOF
13299 rm -f conftest.$ac_objext
13300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13301   (eval $ac_compile) 2>&5
13302   ac_status=$?
13303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304   (exit $ac_status); } &&
13305          { ac_try='test -s conftest.$ac_objext'
13306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13307   (eval $ac_try) 2>&5
13308   ac_status=$?
13309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310   (exit $ac_status); }; }; then
13311   ac_hi=$ac_mid
13312 else
13313   echo "$as_me: failed program was:" >&5
13314 cat conftest.$ac_ext >&5
13315 ac_lo=`expr '(' $ac_mid ')' + 1`
13316 fi
13317 rm -f conftest.$ac_objext conftest.$ac_ext
13318 done
13319 case $ac_lo in
13320 ?*) pgac_cv_alignof_long=$ac_lo;;
13321 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
13322 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
13323    { (exit 1); exit 1; }; } ;;
13324 esac
13325 else
13326   if test "$cross_compiling" = yes; then
13327   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13328 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13329    { (exit 1); exit 1; }; }
13330 else
13331   cat >conftest.$ac_ext <<_ACEOF
13332 #line $LINENO "configure"
13333 #include "confdefs.h"
13334 $ac_includes_default
13335 struct { char filler; long field; } pgac_struct;
13336 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13337 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13338 #include <stdio.h>
13339 #include <stdlib.h>
13340 #ifdef F77_DUMMY_MAIN
13341 #  ifdef __cplusplus
13342      extern "C"
13343 #  endif
13344    int F77_DUMMY_MAIN() { return 1; }
13345 #endif
13346 int
13347 main ()
13348 {
13349
13350   FILE *f = fopen ("conftest.val", "w");
13351   if (! f)
13352     exit (1);
13353   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13354     {
13355       long i = longval ();
13356       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13357         exit (1);
13358       fprintf (f, "%ld\n", i);
13359     }
13360   else
13361     {
13362       unsigned long i = ulongval ();
13363       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13364         exit (1);
13365       fprintf (f, "%lu\n", i);
13366     }
13367   exit (ferror (f) || fclose (f) != 0);
13368
13369   ;
13370   return 0;
13371 }
13372 _ACEOF
13373 rm -f conftest$ac_exeext
13374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13375   (eval $ac_link) 2>&5
13376   ac_status=$?
13377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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   pgac_cv_alignof_long=`cat conftest.val`
13385 else
13386   echo "$as_me: program exited with status $ac_status" >&5
13387 echo "$as_me: failed program was:" >&5
13388 cat conftest.$ac_ext >&5
13389 ( exit $ac_status )
13390 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
13391 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
13392    { (exit 1); exit 1; }; }
13393 fi
13394 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13395 fi
13396 fi
13397 rm -f conftest.val
13398 else
13399   pgac_cv_alignof_long=0
13400 fi
13401 fi
13402 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
13403 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
13404 cat >>confdefs.h <<_ACEOF
13405 #define ALIGNOF_LONG $pgac_cv_alignof_long
13406 _ACEOF
13407
13408
13409 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
13410   echo "$as_me:$LINENO: checking for long long int" >&5
13411 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13412 if test "${ac_cv_type_long_long_int+set}" = set; then
13413   echo $ECHO_N "(cached) $ECHO_C" >&6
13414 else
13415   cat >conftest.$ac_ext <<_ACEOF
13416 #line $LINENO "configure"
13417 #include "confdefs.h"
13418 $ac_includes_default
13419 #ifdef F77_DUMMY_MAIN
13420 #  ifdef __cplusplus
13421      extern "C"
13422 #  endif
13423    int F77_DUMMY_MAIN() { return 1; }
13424 #endif
13425 int
13426 main ()
13427 {
13428 if ((long long int *) 0)
13429   return 0;
13430 if (sizeof (long long int))
13431   return 0;
13432   ;
13433   return 0;
13434 }
13435 _ACEOF
13436 rm -f conftest.$ac_objext
13437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13438   (eval $ac_compile) 2>&5
13439   ac_status=$?
13440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441   (exit $ac_status); } &&
13442          { ac_try='test -s conftest.$ac_objext'
13443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444   (eval $ac_try) 2>&5
13445   ac_status=$?
13446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); }; }; then
13448   ac_cv_type_long_long_int=yes
13449 else
13450   echo "$as_me: failed program was:" >&5
13451 cat conftest.$ac_ext >&5
13452 ac_cv_type_long_long_int=no
13453 fi
13454 rm -f conftest.$ac_objext conftest.$ac_ext
13455 fi
13456 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13457 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13458
13459 echo "$as_me:$LINENO: checking alignment of long long int" >&5
13460 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
13461 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
13462   echo $ECHO_N "(cached) $ECHO_C" >&6
13463 else
13464   if test "$ac_cv_type_long_long_int" = yes; then
13465   if test "$cross_compiling" = yes; then
13466   # Depending upon the size, compute the lo and hi bounds.
13467 cat >conftest.$ac_ext <<_ACEOF
13468 #line $LINENO "configure"
13469 #include "confdefs.h"
13470 $ac_includes_default
13471 struct { char filler; long long int field; } pgac_struct;
13472 #ifdef F77_DUMMY_MAIN
13473 #  ifdef __cplusplus
13474      extern "C"
13475 #  endif
13476    int F77_DUMMY_MAIN() { return 1; }
13477 #endif
13478 int
13479 main ()
13480 {
13481 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13482 test_array [0] = 0
13483
13484   ;
13485   return 0;
13486 }
13487 _ACEOF
13488 rm -f conftest.$ac_objext
13489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13490   (eval $ac_compile) 2>&5
13491   ac_status=$?
13492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493   (exit $ac_status); } &&
13494          { ac_try='test -s conftest.$ac_objext'
13495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13496   (eval $ac_try) 2>&5
13497   ac_status=$?
13498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499   (exit $ac_status); }; }; then
13500   ac_lo=0 ac_mid=0
13501   while :; do
13502     cat >conftest.$ac_ext <<_ACEOF
13503 #line $LINENO "configure"
13504 #include "confdefs.h"
13505 $ac_includes_default
13506 struct { char filler; long long int field; } pgac_struct;
13507 #ifdef F77_DUMMY_MAIN
13508 #  ifdef __cplusplus
13509      extern "C"
13510 #  endif
13511    int F77_DUMMY_MAIN() { return 1; }
13512 #endif
13513 int
13514 main ()
13515 {
13516 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13517 test_array [0] = 0
13518
13519   ;
13520   return 0;
13521 }
13522 _ACEOF
13523 rm -f conftest.$ac_objext
13524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13525   (eval $ac_compile) 2>&5
13526   ac_status=$?
13527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528   (exit $ac_status); } &&
13529          { ac_try='test -s conftest.$ac_objext'
13530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13531   (eval $ac_try) 2>&5
13532   ac_status=$?
13533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534   (exit $ac_status); }; }; then
13535   ac_hi=$ac_mid; break
13536 else
13537   echo "$as_me: failed program was:" >&5
13538 cat conftest.$ac_ext >&5
13539 ac_lo=`expr $ac_mid + 1`
13540                     if test $ac_lo -le $ac_mid; then
13541                       ac_lo= ac_hi=
13542                       break
13543                     fi
13544                     ac_mid=`expr 2 '*' $ac_mid + 1`
13545 fi
13546 rm -f conftest.$ac_objext conftest.$ac_ext
13547   done
13548 else
13549   echo "$as_me: failed program was:" >&5
13550 cat conftest.$ac_ext >&5
13551 cat >conftest.$ac_ext <<_ACEOF
13552 #line $LINENO "configure"
13553 #include "confdefs.h"
13554 $ac_includes_default
13555 struct { char filler; long long int field; } pgac_struct;
13556 #ifdef F77_DUMMY_MAIN
13557 #  ifdef __cplusplus
13558      extern "C"
13559 #  endif
13560    int F77_DUMMY_MAIN() { return 1; }
13561 #endif
13562 int
13563 main ()
13564 {
13565 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13566 test_array [0] = 0
13567
13568   ;
13569   return 0;
13570 }
13571 _ACEOF
13572 rm -f conftest.$ac_objext
13573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13574   (eval $ac_compile) 2>&5
13575   ac_status=$?
13576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577   (exit $ac_status); } &&
13578          { ac_try='test -s conftest.$ac_objext'
13579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580   (eval $ac_try) 2>&5
13581   ac_status=$?
13582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583   (exit $ac_status); }; }; then
13584   ac_hi=-1 ac_mid=-1
13585   while :; do
13586     cat >conftest.$ac_ext <<_ACEOF
13587 #line $LINENO "configure"
13588 #include "confdefs.h"
13589 $ac_includes_default
13590 struct { char filler; long long int field; } pgac_struct;
13591 #ifdef F77_DUMMY_MAIN
13592 #  ifdef __cplusplus
13593      extern "C"
13594 #  endif
13595    int F77_DUMMY_MAIN() { return 1; }
13596 #endif
13597 int
13598 main ()
13599 {
13600 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13601 test_array [0] = 0
13602
13603   ;
13604   return 0;
13605 }
13606 _ACEOF
13607 rm -f conftest.$ac_objext
13608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13609   (eval $ac_compile) 2>&5
13610   ac_status=$?
13611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612   (exit $ac_status); } &&
13613          { ac_try='test -s conftest.$ac_objext'
13614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615   (eval $ac_try) 2>&5
13616   ac_status=$?
13617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618   (exit $ac_status); }; }; then
13619   ac_lo=$ac_mid; break
13620 else
13621   echo "$as_me: failed program was:" >&5
13622 cat conftest.$ac_ext >&5
13623 ac_hi=`expr '(' $ac_mid ')' - 1`
13624                        if test $ac_mid -le $ac_hi; then
13625                          ac_lo= ac_hi=
13626                          break
13627                        fi
13628                        ac_mid=`expr 2 '*' $ac_mid`
13629 fi
13630 rm -f conftest.$ac_objext conftest.$ac_ext
13631   done
13632 else
13633   echo "$as_me: failed program was:" >&5
13634 cat conftest.$ac_ext >&5
13635 ac_lo= ac_hi=
13636 fi
13637 rm -f conftest.$ac_objext conftest.$ac_ext
13638 fi
13639 rm -f conftest.$ac_objext conftest.$ac_ext
13640 # Binary search between lo and hi bounds.
13641 while test "x$ac_lo" != "x$ac_hi"; do
13642   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13643   cat >conftest.$ac_ext <<_ACEOF
13644 #line $LINENO "configure"
13645 #include "confdefs.h"
13646 $ac_includes_default
13647 struct { char filler; long long int field; } pgac_struct;
13648 #ifdef F77_DUMMY_MAIN
13649 #  ifdef __cplusplus
13650      extern "C"
13651 #  endif
13652    int F77_DUMMY_MAIN() { return 1; }
13653 #endif
13654 int
13655 main ()
13656 {
13657 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13658 test_array [0] = 0
13659
13660   ;
13661   return 0;
13662 }
13663 _ACEOF
13664 rm -f conftest.$ac_objext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13666   (eval $ac_compile) 2>&5
13667   ac_status=$?
13668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669   (exit $ac_status); } &&
13670          { ac_try='test -s conftest.$ac_objext'
13671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672   (eval $ac_try) 2>&5
13673   ac_status=$?
13674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675   (exit $ac_status); }; }; then
13676   ac_hi=$ac_mid
13677 else
13678   echo "$as_me: failed program was:" >&5
13679 cat conftest.$ac_ext >&5
13680 ac_lo=`expr '(' $ac_mid ')' + 1`
13681 fi
13682 rm -f conftest.$ac_objext conftest.$ac_ext
13683 done
13684 case $ac_lo in
13685 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
13686 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
13687 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
13688    { (exit 1); exit 1; }; } ;;
13689 esac
13690 else
13691   if test "$cross_compiling" = yes; then
13692   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13693 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13694    { (exit 1); exit 1; }; }
13695 else
13696   cat >conftest.$ac_ext <<_ACEOF
13697 #line $LINENO "configure"
13698 #include "confdefs.h"
13699 $ac_includes_default
13700 struct { char filler; long long int field; } pgac_struct;
13701 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13702 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13703 #include <stdio.h>
13704 #include <stdlib.h>
13705 #ifdef F77_DUMMY_MAIN
13706 #  ifdef __cplusplus
13707      extern "C"
13708 #  endif
13709    int F77_DUMMY_MAIN() { return 1; }
13710 #endif
13711 int
13712 main ()
13713 {
13714
13715   FILE *f = fopen ("conftest.val", "w");
13716   if (! f)
13717     exit (1);
13718   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13719     {
13720       long i = longval ();
13721       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13722         exit (1);
13723       fprintf (f, "%ld\n", i);
13724     }
13725   else
13726     {
13727       unsigned long i = ulongval ();
13728       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13729         exit (1);
13730       fprintf (f, "%lu\n", i);
13731     }
13732   exit (ferror (f) || fclose (f) != 0);
13733
13734   ;
13735   return 0;
13736 }
13737 _ACEOF
13738 rm -f conftest$ac_exeext
13739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13740   (eval $ac_link) 2>&5
13741   ac_status=$?
13742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13745   (eval $ac_try) 2>&5
13746   ac_status=$?
13747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748   (exit $ac_status); }; }; then
13749   pgac_cv_alignof_long_long_int=`cat conftest.val`
13750 else
13751   echo "$as_me: program exited with status $ac_status" >&5
13752 echo "$as_me: failed program was:" >&5
13753 cat conftest.$ac_ext >&5
13754 ( exit $ac_status )
13755 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
13756 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
13757    { (exit 1); exit 1; }; }
13758 fi
13759 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13760 fi
13761 fi
13762 rm -f conftest.val
13763 else
13764   pgac_cv_alignof_long_long_int=0
13765 fi
13766 fi
13767 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
13768 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
13769 cat >>confdefs.h <<_ACEOF
13770 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
13771 _ACEOF
13772
13773
13774 fi
13775 echo "$as_me:$LINENO: checking for double" >&5
13776 echo $ECHO_N "checking for double... $ECHO_C" >&6
13777 if test "${ac_cv_type_double+set}" = set; then
13778   echo $ECHO_N "(cached) $ECHO_C" >&6
13779 else
13780   cat >conftest.$ac_ext <<_ACEOF
13781 #line $LINENO "configure"
13782 #include "confdefs.h"
13783 $ac_includes_default
13784 #ifdef F77_DUMMY_MAIN
13785 #  ifdef __cplusplus
13786      extern "C"
13787 #  endif
13788    int F77_DUMMY_MAIN() { return 1; }
13789 #endif
13790 int
13791 main ()
13792 {
13793 if ((double *) 0)
13794   return 0;
13795 if (sizeof (double))
13796   return 0;
13797   ;
13798   return 0;
13799 }
13800 _ACEOF
13801 rm -f conftest.$ac_objext
13802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13803   (eval $ac_compile) 2>&5
13804   ac_status=$?
13805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806   (exit $ac_status); } &&
13807          { ac_try='test -s conftest.$ac_objext'
13808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809   (eval $ac_try) 2>&5
13810   ac_status=$?
13811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812   (exit $ac_status); }; }; then
13813   ac_cv_type_double=yes
13814 else
13815   echo "$as_me: failed program was:" >&5
13816 cat conftest.$ac_ext >&5
13817 ac_cv_type_double=no
13818 fi
13819 rm -f conftest.$ac_objext conftest.$ac_ext
13820 fi
13821 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
13822 echo "${ECHO_T}$ac_cv_type_double" >&6
13823
13824 echo "$as_me:$LINENO: checking alignment of double" >&5
13825 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
13826 if test "${pgac_cv_alignof_double+set}" = set; then
13827   echo $ECHO_N "(cached) $ECHO_C" >&6
13828 else
13829   if test "$ac_cv_type_double" = yes; then
13830   if test "$cross_compiling" = yes; then
13831   # Depending upon the size, compute the lo and hi bounds.
13832 cat >conftest.$ac_ext <<_ACEOF
13833 #line $LINENO "configure"
13834 #include "confdefs.h"
13835 $ac_includes_default
13836 struct { char filler; double field; } pgac_struct;
13837 #ifdef F77_DUMMY_MAIN
13838 #  ifdef __cplusplus
13839      extern "C"
13840 #  endif
13841    int F77_DUMMY_MAIN() { return 1; }
13842 #endif
13843 int
13844 main ()
13845 {
13846 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13847 test_array [0] = 0
13848
13849   ;
13850   return 0;
13851 }
13852 _ACEOF
13853 rm -f conftest.$ac_objext
13854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13855   (eval $ac_compile) 2>&5
13856   ac_status=$?
13857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858   (exit $ac_status); } &&
13859          { ac_try='test -s conftest.$ac_objext'
13860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861   (eval $ac_try) 2>&5
13862   ac_status=$?
13863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864   (exit $ac_status); }; }; then
13865   ac_lo=0 ac_mid=0
13866   while :; do
13867     cat >conftest.$ac_ext <<_ACEOF
13868 #line $LINENO "configure"
13869 #include "confdefs.h"
13870 $ac_includes_default
13871 struct { char filler; double field; } pgac_struct;
13872 #ifdef F77_DUMMY_MAIN
13873 #  ifdef __cplusplus
13874      extern "C"
13875 #  endif
13876    int F77_DUMMY_MAIN() { return 1; }
13877 #endif
13878 int
13879 main ()
13880 {
13881 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13882 test_array [0] = 0
13883
13884   ;
13885   return 0;
13886 }
13887 _ACEOF
13888 rm -f conftest.$ac_objext
13889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13890   (eval $ac_compile) 2>&5
13891   ac_status=$?
13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893   (exit $ac_status); } &&
13894          { ac_try='test -s conftest.$ac_objext'
13895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896   (eval $ac_try) 2>&5
13897   ac_status=$?
13898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899   (exit $ac_status); }; }; then
13900   ac_hi=$ac_mid; break
13901 else
13902   echo "$as_me: failed program was:" >&5
13903 cat conftest.$ac_ext >&5
13904 ac_lo=`expr $ac_mid + 1`
13905                     if test $ac_lo -le $ac_mid; then
13906                       ac_lo= ac_hi=
13907                       break
13908                     fi
13909                     ac_mid=`expr 2 '*' $ac_mid + 1`
13910 fi
13911 rm -f conftest.$ac_objext conftest.$ac_ext
13912   done
13913 else
13914   echo "$as_me: failed program was:" >&5
13915 cat conftest.$ac_ext >&5
13916 cat >conftest.$ac_ext <<_ACEOF
13917 #line $LINENO "configure"
13918 #include "confdefs.h"
13919 $ac_includes_default
13920 struct { char filler; double field; } pgac_struct;
13921 #ifdef F77_DUMMY_MAIN
13922 #  ifdef __cplusplus
13923      extern "C"
13924 #  endif
13925    int F77_DUMMY_MAIN() { return 1; }
13926 #endif
13927 int
13928 main ()
13929 {
13930 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13931 test_array [0] = 0
13932
13933   ;
13934   return 0;
13935 }
13936 _ACEOF
13937 rm -f conftest.$ac_objext
13938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13939   (eval $ac_compile) 2>&5
13940   ac_status=$?
13941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942   (exit $ac_status); } &&
13943          { ac_try='test -s conftest.$ac_objext'
13944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945   (eval $ac_try) 2>&5
13946   ac_status=$?
13947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948   (exit $ac_status); }; }; then
13949   ac_hi=-1 ac_mid=-1
13950   while :; do
13951     cat >conftest.$ac_ext <<_ACEOF
13952 #line $LINENO "configure"
13953 #include "confdefs.h"
13954 $ac_includes_default
13955 struct { char filler; double field; } pgac_struct;
13956 #ifdef F77_DUMMY_MAIN
13957 #  ifdef __cplusplus
13958      extern "C"
13959 #  endif
13960    int F77_DUMMY_MAIN() { return 1; }
13961 #endif
13962 int
13963 main ()
13964 {
13965 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13966 test_array [0] = 0
13967
13968   ;
13969   return 0;
13970 }
13971 _ACEOF
13972 rm -f conftest.$ac_objext
13973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13974   (eval $ac_compile) 2>&5
13975   ac_status=$?
13976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977   (exit $ac_status); } &&
13978          { ac_try='test -s conftest.$ac_objext'
13979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980   (eval $ac_try) 2>&5
13981   ac_status=$?
13982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983   (exit $ac_status); }; }; then
13984   ac_lo=$ac_mid; break
13985 else
13986   echo "$as_me: failed program was:" >&5
13987 cat conftest.$ac_ext >&5
13988 ac_hi=`expr '(' $ac_mid ')' - 1`
13989                        if test $ac_mid -le $ac_hi; then
13990                          ac_lo= ac_hi=
13991                          break
13992                        fi
13993                        ac_mid=`expr 2 '*' $ac_mid`
13994 fi
13995 rm -f conftest.$ac_objext conftest.$ac_ext
13996   done
13997 else
13998   echo "$as_me: failed program was:" >&5
13999 cat conftest.$ac_ext >&5
14000 ac_lo= ac_hi=
14001 fi
14002 rm -f conftest.$ac_objext conftest.$ac_ext
14003 fi
14004 rm -f conftest.$ac_objext conftest.$ac_ext
14005 # Binary search between lo and hi bounds.
14006 while test "x$ac_lo" != "x$ac_hi"; do
14007   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14008   cat >conftest.$ac_ext <<_ACEOF
14009 #line $LINENO "configure"
14010 #include "confdefs.h"
14011 $ac_includes_default
14012 struct { char filler; double field; } pgac_struct;
14013 #ifdef F77_DUMMY_MAIN
14014 #  ifdef __cplusplus
14015      extern "C"
14016 #  endif
14017    int F77_DUMMY_MAIN() { return 1; }
14018 #endif
14019 int
14020 main ()
14021 {
14022 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14023 test_array [0] = 0
14024
14025   ;
14026   return 0;
14027 }
14028 _ACEOF
14029 rm -f conftest.$ac_objext
14030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14031   (eval $ac_compile) 2>&5
14032   ac_status=$?
14033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034   (exit $ac_status); } &&
14035          { ac_try='test -s conftest.$ac_objext'
14036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037   (eval $ac_try) 2>&5
14038   ac_status=$?
14039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040   (exit $ac_status); }; }; then
14041   ac_hi=$ac_mid
14042 else
14043   echo "$as_me: failed program was:" >&5
14044 cat conftest.$ac_ext >&5
14045 ac_lo=`expr '(' $ac_mid ')' + 1`
14046 fi
14047 rm -f conftest.$ac_objext conftest.$ac_ext
14048 done
14049 case $ac_lo in
14050 ?*) pgac_cv_alignof_double=$ac_lo;;
14051 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14052 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14053    { (exit 1); exit 1; }; } ;;
14054 esac
14055 else
14056   if test "$cross_compiling" = yes; then
14057   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14058 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14059    { (exit 1); exit 1; }; }
14060 else
14061   cat >conftest.$ac_ext <<_ACEOF
14062 #line $LINENO "configure"
14063 #include "confdefs.h"
14064 $ac_includes_default
14065 struct { char filler; double field; } pgac_struct;
14066 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14067 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14068 #include <stdio.h>
14069 #include <stdlib.h>
14070 #ifdef F77_DUMMY_MAIN
14071 #  ifdef __cplusplus
14072      extern "C"
14073 #  endif
14074    int F77_DUMMY_MAIN() { return 1; }
14075 #endif
14076 int
14077 main ()
14078 {
14079
14080   FILE *f = fopen ("conftest.val", "w");
14081   if (! f)
14082     exit (1);
14083   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14084     {
14085       long i = longval ();
14086       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14087         exit (1);
14088       fprintf (f, "%ld\n", i);
14089     }
14090   else
14091     {
14092       unsigned long i = ulongval ();
14093       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14094         exit (1);
14095       fprintf (f, "%lu\n", i);
14096     }
14097   exit (ferror (f) || fclose (f) != 0);
14098
14099   ;
14100   return 0;
14101 }
14102 _ACEOF
14103 rm -f conftest$ac_exeext
14104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14105   (eval $ac_link) 2>&5
14106   ac_status=$?
14107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110   (eval $ac_try) 2>&5
14111   ac_status=$?
14112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113   (exit $ac_status); }; }; then
14114   pgac_cv_alignof_double=`cat conftest.val`
14115 else
14116   echo "$as_me: program exited with status $ac_status" >&5
14117 echo "$as_me: failed program was:" >&5
14118 cat conftest.$ac_ext >&5
14119 ( exit $ac_status )
14120 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14121 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14122    { (exit 1); exit 1; }; }
14123 fi
14124 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14125 fi
14126 fi
14127 rm -f conftest.val
14128 else
14129   pgac_cv_alignof_double=0
14130 fi
14131 fi
14132 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
14133 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
14134 cat >>confdefs.h <<_ACEOF
14135 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
14136 _ACEOF
14137
14138
14139
14140 # Compute maximum alignment of any basic type.
14141 # We assume long's alignment is at least as strong as char, short, or int;
14142 # but we must check long long (if it exists) and double.
14143
14144 MAX_ALIGNOF=$pgac_cv_alignof_long
14145 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
14146   MAX_ALIGNOF=$pgac_cv_alignof_double
14147 fi
14148 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
14149   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
14150 fi
14151
14152 cat >>confdefs.h <<_ACEOF
14153 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
14154 _ACEOF
14155
14156
14157
14158 # Some platforms predefine the types int8, int16, etc.  Only check
14159 # a (hopefully) representative subset.
14160 echo "$as_me:$LINENO: checking for int8" >&5
14161 echo $ECHO_N "checking for int8... $ECHO_C" >&6
14162 if test "${ac_cv_type_int8+set}" = set; then
14163   echo $ECHO_N "(cached) $ECHO_C" >&6
14164 else
14165   cat >conftest.$ac_ext <<_ACEOF
14166 #line $LINENO "configure"
14167 #include "confdefs.h"
14168 #include <stdio.h>
14169 #ifdef HAVE_SUPPORTDEFS_H
14170 #include <SupportDefs.h>
14171 #endif
14172
14173 #ifdef F77_DUMMY_MAIN
14174 #  ifdef __cplusplus
14175      extern "C"
14176 #  endif
14177    int F77_DUMMY_MAIN() { return 1; }
14178 #endif
14179 int
14180 main ()
14181 {
14182 if ((int8 *) 0)
14183   return 0;
14184 if (sizeof (int8))
14185   return 0;
14186   ;
14187   return 0;
14188 }
14189 _ACEOF
14190 rm -f conftest.$ac_objext
14191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14192   (eval $ac_compile) 2>&5
14193   ac_status=$?
14194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195   (exit $ac_status); } &&
14196          { ac_try='test -s conftest.$ac_objext'
14197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14198   (eval $ac_try) 2>&5
14199   ac_status=$?
14200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201   (exit $ac_status); }; }; then
14202   ac_cv_type_int8=yes
14203 else
14204   echo "$as_me: failed program was:" >&5
14205 cat conftest.$ac_ext >&5
14206 ac_cv_type_int8=no
14207 fi
14208 rm -f conftest.$ac_objext conftest.$ac_ext
14209 fi
14210 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
14211 echo "${ECHO_T}$ac_cv_type_int8" >&6
14212 if test $ac_cv_type_int8 = yes; then
14213
14214 cat >>confdefs.h <<_ACEOF
14215 #define HAVE_INT8 1
14216 _ACEOF
14217
14218
14219 fi
14220 echo "$as_me:$LINENO: checking for uint8" >&5
14221 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
14222 if test "${ac_cv_type_uint8+set}" = set; then
14223   echo $ECHO_N "(cached) $ECHO_C" >&6
14224 else
14225   cat >conftest.$ac_ext <<_ACEOF
14226 #line $LINENO "configure"
14227 #include "confdefs.h"
14228 #include <stdio.h>
14229 #ifdef HAVE_SUPPORTDEFS_H
14230 #include <SupportDefs.h>
14231 #endif
14232
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 if ((uint8 *) 0)
14243   return 0;
14244 if (sizeof (uint8))
14245   return 0;
14246   ;
14247   return 0;
14248 }
14249 _ACEOF
14250 rm -f conftest.$ac_objext
14251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14252   (eval $ac_compile) 2>&5
14253   ac_status=$?
14254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255   (exit $ac_status); } &&
14256          { ac_try='test -s conftest.$ac_objext'
14257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14258   (eval $ac_try) 2>&5
14259   ac_status=$?
14260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261   (exit $ac_status); }; }; then
14262   ac_cv_type_uint8=yes
14263 else
14264   echo "$as_me: failed program was:" >&5
14265 cat conftest.$ac_ext >&5
14266 ac_cv_type_uint8=no
14267 fi
14268 rm -f conftest.$ac_objext conftest.$ac_ext
14269 fi
14270 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
14271 echo "${ECHO_T}$ac_cv_type_uint8" >&6
14272 if test $ac_cv_type_uint8 = yes; then
14273
14274 cat >>confdefs.h <<_ACEOF
14275 #define HAVE_UINT8 1
14276 _ACEOF
14277
14278
14279 fi
14280 echo "$as_me:$LINENO: checking for int64" >&5
14281 echo $ECHO_N "checking for int64... $ECHO_C" >&6
14282 if test "${ac_cv_type_int64+set}" = set; then
14283   echo $ECHO_N "(cached) $ECHO_C" >&6
14284 else
14285   cat >conftest.$ac_ext <<_ACEOF
14286 #line $LINENO "configure"
14287 #include "confdefs.h"
14288 #include <stdio.h>
14289 #ifdef HAVE_SUPPORTDEFS_H
14290 #include <SupportDefs.h>
14291 #endif
14292
14293 #ifdef F77_DUMMY_MAIN
14294 #  ifdef __cplusplus
14295      extern "C"
14296 #  endif
14297    int F77_DUMMY_MAIN() { return 1; }
14298 #endif
14299 int
14300 main ()
14301 {
14302 if ((int64 *) 0)
14303   return 0;
14304 if (sizeof (int64))
14305   return 0;
14306   ;
14307   return 0;
14308 }
14309 _ACEOF
14310 rm -f conftest.$ac_objext
14311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14312   (eval $ac_compile) 2>&5
14313   ac_status=$?
14314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315   (exit $ac_status); } &&
14316          { ac_try='test -s conftest.$ac_objext'
14317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14318   (eval $ac_try) 2>&5
14319   ac_status=$?
14320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321   (exit $ac_status); }; }; then
14322   ac_cv_type_int64=yes
14323 else
14324   echo "$as_me: failed program was:" >&5
14325 cat conftest.$ac_ext >&5
14326 ac_cv_type_int64=no
14327 fi
14328 rm -f conftest.$ac_objext conftest.$ac_ext
14329 fi
14330 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
14331 echo "${ECHO_T}$ac_cv_type_int64" >&6
14332 if test $ac_cv_type_int64 = yes; then
14333
14334 cat >>confdefs.h <<_ACEOF
14335 #define HAVE_INT64 1
14336 _ACEOF
14337
14338
14339 fi
14340 echo "$as_me:$LINENO: checking for uint64" >&5
14341 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
14342 if test "${ac_cv_type_uint64+set}" = set; then
14343   echo $ECHO_N "(cached) $ECHO_C" >&6
14344 else
14345   cat >conftest.$ac_ext <<_ACEOF
14346 #line $LINENO "configure"
14347 #include "confdefs.h"
14348 #include <stdio.h>
14349 #ifdef HAVE_SUPPORTDEFS_H
14350 #include <SupportDefs.h>
14351 #endif
14352
14353 #ifdef F77_DUMMY_MAIN
14354 #  ifdef __cplusplus
14355      extern "C"
14356 #  endif
14357    int F77_DUMMY_MAIN() { return 1; }
14358 #endif
14359 int
14360 main ()
14361 {
14362 if ((uint64 *) 0)
14363   return 0;
14364 if (sizeof (uint64))
14365   return 0;
14366   ;
14367   return 0;
14368 }
14369 _ACEOF
14370 rm -f conftest.$ac_objext
14371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14372   (eval $ac_compile) 2>&5
14373   ac_status=$?
14374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375   (exit $ac_status); } &&
14376          { ac_try='test -s conftest.$ac_objext'
14377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14378   (eval $ac_try) 2>&5
14379   ac_status=$?
14380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381   (exit $ac_status); }; }; then
14382   ac_cv_type_uint64=yes
14383 else
14384   echo "$as_me: failed program was:" >&5
14385 cat conftest.$ac_ext >&5
14386 ac_cv_type_uint64=no
14387 fi
14388 rm -f conftest.$ac_objext conftest.$ac_ext
14389 fi
14390 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
14391 echo "${ECHO_T}$ac_cv_type_uint64" >&6
14392 if test $ac_cv_type_uint64 = yes; then
14393
14394 cat >>confdefs.h <<_ACEOF
14395 #define HAVE_UINT64 1
14396 _ACEOF
14397
14398
14399 fi
14400
14401
14402 # We also check for sig_atomic_t, which *should* be defined per ANSI
14403 # C, but is missing on some old platforms.
14404 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
14405 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
14406 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
14407   echo $ECHO_N "(cached) $ECHO_C" >&6
14408 else
14409   cat >conftest.$ac_ext <<_ACEOF
14410 #line $LINENO "configure"
14411 #include "confdefs.h"
14412 #include <signal.h>
14413
14414 #ifdef F77_DUMMY_MAIN
14415 #  ifdef __cplusplus
14416      extern "C"
14417 #  endif
14418    int F77_DUMMY_MAIN() { return 1; }
14419 #endif
14420 int
14421 main ()
14422 {
14423 if ((sig_atomic_t *) 0)
14424   return 0;
14425 if (sizeof (sig_atomic_t))
14426   return 0;
14427   ;
14428   return 0;
14429 }
14430 _ACEOF
14431 rm -f conftest.$ac_objext
14432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14433   (eval $ac_compile) 2>&5
14434   ac_status=$?
14435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436   (exit $ac_status); } &&
14437          { ac_try='test -s conftest.$ac_objext'
14438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439   (eval $ac_try) 2>&5
14440   ac_status=$?
14441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442   (exit $ac_status); }; }; then
14443   ac_cv_type_sig_atomic_t=yes
14444 else
14445   echo "$as_me: failed program was:" >&5
14446 cat conftest.$ac_ext >&5
14447 ac_cv_type_sig_atomic_t=no
14448 fi
14449 rm -f conftest.$ac_objext conftest.$ac_ext
14450 fi
14451 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
14452 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
14453 if test $ac_cv_type_sig_atomic_t = yes; then
14454
14455 cat >>confdefs.h <<_ACEOF
14456 #define HAVE_SIG_ATOMIC_T 1
14457 _ACEOF
14458
14459
14460 fi
14461
14462
14463
14464 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
14465 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
14466 if test "${pgac_cv_func_posix_signals+set}" = set; then
14467   echo $ECHO_N "(cached) $ECHO_C" >&6
14468 else
14469   cat >conftest.$ac_ext <<_ACEOF
14470 #line $LINENO "configure"
14471 #include "confdefs.h"
14472 #include <signal.h>
14473
14474 #ifdef F77_DUMMY_MAIN
14475 #  ifdef __cplusplus
14476      extern "C"
14477 #  endif
14478    int F77_DUMMY_MAIN() { return 1; }
14479 #endif
14480 int
14481 main ()
14482 {
14483 struct sigaction act, oact;
14484 sigemptyset(&act.sa_mask);
14485 act.sa_flags = SA_RESTART;
14486 sigaction(0, &act, &oact);
14487   ;
14488   return 0;
14489 }
14490 _ACEOF
14491 rm -f conftest.$ac_objext conftest$ac_exeext
14492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14493   (eval $ac_link) 2>&5
14494   ac_status=$?
14495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496   (exit $ac_status); } &&
14497          { ac_try='test -s conftest$ac_exeext'
14498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499   (eval $ac_try) 2>&5
14500   ac_status=$?
14501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502   (exit $ac_status); }; }; then
14503   pgac_cv_func_posix_signals=yes
14504 else
14505   echo "$as_me: failed program was:" >&5
14506 cat conftest.$ac_ext >&5
14507 pgac_cv_func_posix_signals=no
14508 fi
14509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14510 fi
14511 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
14512 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
14513 if test x"$pgac_cv_func_posix_signals" = xyes ; then
14514
14515 cat >>confdefs.h <<\_ACEOF
14516 #define HAVE_POSIX_SIGNALS
14517 _ACEOF
14518
14519 fi
14520 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
14521
14522 if test $ac_cv_func_fseeko = yes; then
14523 # Check whether --enable-largefile or --disable-largefile was given.
14524 if test "${enable_largefile+set}" = set; then
14525   enableval="$enable_largefile"
14526
14527 fi;
14528 if test "$enable_largefile" != no; then
14529
14530   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
14531 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
14532 if test "${ac_cv_sys_largefile_CC+set}" = set; then
14533   echo $ECHO_N "(cached) $ECHO_C" >&6
14534 else
14535   ac_cv_sys_largefile_CC=no
14536      if test "$GCC" != yes; then
14537        ac_save_CC=$CC
14538        while :; do
14539          # IRIX 6.2 and later do not support large files by default,
14540          # so use the C compiler's -n32 option if that helps.
14541          cat >conftest.$ac_ext <<_ACEOF
14542 #line $LINENO "configure"
14543 #include "confdefs.h"
14544 #include <sys/types.h>
14545  /* Check that off_t can represent 2**63 - 1 correctly.
14546     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14547     since some C++ compilers masquerading as C compilers
14548     incorrectly reject 9223372036854775807.  */
14549 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14550   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14551                        && LARGE_OFF_T % 2147483647 == 1)
14552                       ? 1 : -1];
14553 #ifdef F77_DUMMY_MAIN
14554 #  ifdef __cplusplus
14555      extern "C"
14556 #  endif
14557    int F77_DUMMY_MAIN() { return 1; }
14558 #endif
14559 int
14560 main ()
14561 {
14562
14563   ;
14564   return 0;
14565 }
14566 _ACEOF
14567          rm -f conftest.$ac_objext
14568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14569   (eval $ac_compile) 2>&5
14570   ac_status=$?
14571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572   (exit $ac_status); } &&
14573          { ac_try='test -s conftest.$ac_objext'
14574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14575   (eval $ac_try) 2>&5
14576   ac_status=$?
14577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578   (exit $ac_status); }; }; then
14579   break
14580 else
14581   echo "$as_me: failed program was:" >&5
14582 cat conftest.$ac_ext >&5
14583 fi
14584 rm -f conftest.$ac_objext
14585          CC="$CC -n32"
14586          rm -f conftest.$ac_objext
14587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14588   (eval $ac_compile) 2>&5
14589   ac_status=$?
14590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591   (exit $ac_status); } &&
14592          { ac_try='test -s conftest.$ac_objext'
14593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594   (eval $ac_try) 2>&5
14595   ac_status=$?
14596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597   (exit $ac_status); }; }; then
14598   ac_cv_sys_largefile_CC=' -n32'; break
14599 else
14600   echo "$as_me: failed program was:" >&5
14601 cat conftest.$ac_ext >&5
14602 fi
14603 rm -f conftest.$ac_objext
14604          break
14605        done
14606        CC=$ac_save_CC
14607        rm -f conftest.$ac_ext
14608     fi
14609 fi
14610 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
14611 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
14612   if test "$ac_cv_sys_largefile_CC" != no; then
14613     CC=$CC$ac_cv_sys_largefile_CC
14614   fi
14615
14616   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14617 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
14618 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
14619   echo $ECHO_N "(cached) $ECHO_C" >&6
14620 else
14621   while :; do
14622   ac_cv_sys_file_offset_bits=no
14623   cat >conftest.$ac_ext <<_ACEOF
14624 #line $LINENO "configure"
14625 #include "confdefs.h"
14626 #include <sys/types.h>
14627  /* Check that off_t can represent 2**63 - 1 correctly.
14628     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14629     since some C++ compilers masquerading as C compilers
14630     incorrectly reject 9223372036854775807.  */
14631 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14632   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14633                        && LARGE_OFF_T % 2147483647 == 1)
14634                       ? 1 : -1];
14635 #ifdef F77_DUMMY_MAIN
14636 #  ifdef __cplusplus
14637      extern "C"
14638 #  endif
14639    int F77_DUMMY_MAIN() { return 1; }
14640 #endif
14641 int
14642 main ()
14643 {
14644
14645   ;
14646   return 0;
14647 }
14648 _ACEOF
14649 rm -f conftest.$ac_objext
14650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14651   (eval $ac_compile) 2>&5
14652   ac_status=$?
14653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654   (exit $ac_status); } &&
14655          { ac_try='test -s conftest.$ac_objext'
14656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14657   (eval $ac_try) 2>&5
14658   ac_status=$?
14659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660   (exit $ac_status); }; }; then
14661   break
14662 else
14663   echo "$as_me: failed program was:" >&5
14664 cat conftest.$ac_ext >&5
14665 fi
14666 rm -f conftest.$ac_objext conftest.$ac_ext
14667   cat >conftest.$ac_ext <<_ACEOF
14668 #line $LINENO "configure"
14669 #include "confdefs.h"
14670 #define _FILE_OFFSET_BITS 64
14671 #include <sys/types.h>
14672  /* Check that off_t can represent 2**63 - 1 correctly.
14673     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14674     since some C++ compilers masquerading as C compilers
14675     incorrectly reject 9223372036854775807.  */
14676 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14677   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14678                        && LARGE_OFF_T % 2147483647 == 1)
14679                       ? 1 : -1];
14680 #ifdef F77_DUMMY_MAIN
14681 #  ifdef __cplusplus
14682      extern "C"
14683 #  endif
14684    int F77_DUMMY_MAIN() { return 1; }
14685 #endif
14686 int
14687 main ()
14688 {
14689
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_sys_file_offset_bits=64; break
14707 else
14708   echo "$as_me: failed program was:" >&5
14709 cat conftest.$ac_ext >&5
14710 fi
14711 rm -f conftest.$ac_objext conftest.$ac_ext
14712   break
14713 done
14714 fi
14715 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
14716 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
14717 if test "$ac_cv_sys_file_offset_bits" != no; then
14718
14719 cat >>confdefs.h <<_ACEOF
14720 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14721 _ACEOF
14722
14723 fi
14724 rm -f conftest*
14725   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
14726 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
14727 if test "${ac_cv_sys_large_files+set}" = set; then
14728   echo $ECHO_N "(cached) $ECHO_C" >&6
14729 else
14730   while :; do
14731   ac_cv_sys_large_files=no
14732   cat >conftest.$ac_ext <<_ACEOF
14733 #line $LINENO "configure"
14734 #include "confdefs.h"
14735 #include <sys/types.h>
14736  /* Check that off_t can represent 2**63 - 1 correctly.
14737     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14738     since some C++ compilers masquerading as C compilers
14739     incorrectly reject 9223372036854775807.  */
14740 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14741   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14742                        && LARGE_OFF_T % 2147483647 == 1)
14743                       ? 1 : -1];
14744 #ifdef F77_DUMMY_MAIN
14745 #  ifdef __cplusplus
14746      extern "C"
14747 #  endif
14748    int F77_DUMMY_MAIN() { return 1; }
14749 #endif
14750 int
14751 main ()
14752 {
14753
14754   ;
14755   return 0;
14756 }
14757 _ACEOF
14758 rm -f conftest.$ac_objext
14759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14760   (eval $ac_compile) 2>&5
14761   ac_status=$?
14762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763   (exit $ac_status); } &&
14764          { ac_try='test -s conftest.$ac_objext'
14765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14766   (eval $ac_try) 2>&5
14767   ac_status=$?
14768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769   (exit $ac_status); }; }; then
14770   break
14771 else
14772   echo "$as_me: failed program was:" >&5
14773 cat conftest.$ac_ext >&5
14774 fi
14775 rm -f conftest.$ac_objext conftest.$ac_ext
14776   cat >conftest.$ac_ext <<_ACEOF
14777 #line $LINENO "configure"
14778 #include "confdefs.h"
14779 #define _LARGE_FILES 1
14780 #include <sys/types.h>
14781  /* Check that off_t can represent 2**63 - 1 correctly.
14782     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14783     since some C++ compilers masquerading as C compilers
14784     incorrectly reject 9223372036854775807.  */
14785 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14786   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14787                        && LARGE_OFF_T % 2147483647 == 1)
14788                       ? 1 : -1];
14789 #ifdef F77_DUMMY_MAIN
14790 #  ifdef __cplusplus
14791      extern "C"
14792 #  endif
14793    int F77_DUMMY_MAIN() { return 1; }
14794 #endif
14795 int
14796 main ()
14797 {
14798
14799   ;
14800   return 0;
14801 }
14802 _ACEOF
14803 rm -f conftest.$ac_objext
14804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14805   (eval $ac_compile) 2>&5
14806   ac_status=$?
14807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808   (exit $ac_status); } &&
14809          { ac_try='test -s conftest.$ac_objext'
14810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14811   (eval $ac_try) 2>&5
14812   ac_status=$?
14813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814   (exit $ac_status); }; }; then
14815   ac_cv_sys_large_files=1; break
14816 else
14817   echo "$as_me: failed program was:" >&5
14818 cat conftest.$ac_ext >&5
14819 fi
14820 rm -f conftest.$ac_objext conftest.$ac_ext
14821   break
14822 done
14823 fi
14824 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
14825 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
14826 if test "$ac_cv_sys_large_files" != no; then
14827
14828 cat >>confdefs.h <<_ACEOF
14829 #define _LARGE_FILES $ac_cv_sys_large_files
14830 _ACEOF
14831
14832 fi
14833 rm -f conftest*
14834 fi
14835
14836 fi
14837
14838
14839 # Select semaphore implementation type.
14840 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
14841
14842 cat >>confdefs.h <<\_ACEOF
14843 #define USE_NAMED_POSIX_SEMAPHORES 1
14844 _ACEOF
14845
14846   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
14847 else
14848   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
14849
14850 cat >>confdefs.h <<\_ACEOF
14851 #define USE_UNNAMED_POSIX_SEMAPHORES 1
14852 _ACEOF
14853
14854     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
14855   else
14856
14857 cat >>confdefs.h <<\_ACEOF
14858 #define USE_SYSV_SEMAPHORES 1
14859 _ACEOF
14860
14861     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
14862   fi
14863 fi
14864
14865
14866 # Select shared-memory implementation type.
14867
14868 cat >>confdefs.h <<\_ACEOF
14869 #define USE_SYSV_SHARED_MEMORY 1
14870 _ACEOF
14871
14872 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
14873
14874
14875 if test "$enable_nls" = yes ; then
14876
14877   echo "$as_me:$LINENO: checking for library containing gettext" >&5
14878 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
14879 if test "${ac_cv_search_gettext+set}" = set; then
14880   echo $ECHO_N "(cached) $ECHO_C" >&6
14881 else
14882   ac_func_search_save_LIBS=$LIBS
14883 ac_cv_search_gettext=no
14884 cat >conftest.$ac_ext <<_ACEOF
14885 #line $LINENO "configure"
14886 #include "confdefs.h"
14887
14888 /* Override any gcc2 internal prototype to avoid an error.  */
14889 #ifdef __cplusplus
14890 extern "C"
14891 #endif
14892 /* We use char because int might match the return type of a gcc2
14893    builtin and then its argument prototype would still apply.  */
14894 char gettext ();
14895 #ifdef F77_DUMMY_MAIN
14896 #  ifdef __cplusplus
14897      extern "C"
14898 #  endif
14899    int F77_DUMMY_MAIN() { return 1; }
14900 #endif
14901 int
14902 main ()
14903 {
14904 gettext ();
14905   ;
14906   return 0;
14907 }
14908 _ACEOF
14909 rm -f conftest.$ac_objext conftest$ac_exeext
14910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14911   (eval $ac_link) 2>&5
14912   ac_status=$?
14913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914   (exit $ac_status); } &&
14915          { ac_try='test -s conftest$ac_exeext'
14916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14917   (eval $ac_try) 2>&5
14918   ac_status=$?
14919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920   (exit $ac_status); }; }; then
14921   ac_cv_search_gettext="none required"
14922 else
14923   echo "$as_me: failed program was:" >&5
14924 cat conftest.$ac_ext >&5
14925 fi
14926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14927 if test "$ac_cv_search_gettext" = no; then
14928   for ac_lib in intl; do
14929     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14930     cat >conftest.$ac_ext <<_ACEOF
14931 #line $LINENO "configure"
14932 #include "confdefs.h"
14933
14934 /* Override any gcc2 internal prototype to avoid an error.  */
14935 #ifdef __cplusplus
14936 extern "C"
14937 #endif
14938 /* We use char because int might match the return type of a gcc2
14939    builtin and then its argument prototype would still apply.  */
14940 char gettext ();
14941 #ifdef F77_DUMMY_MAIN
14942 #  ifdef __cplusplus
14943      extern "C"
14944 #  endif
14945    int F77_DUMMY_MAIN() { return 1; }
14946 #endif
14947 int
14948 main ()
14949 {
14950 gettext ();
14951   ;
14952   return 0;
14953 }
14954 _ACEOF
14955 rm -f conftest.$ac_objext conftest$ac_exeext
14956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14957   (eval $ac_link) 2>&5
14958   ac_status=$?
14959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960   (exit $ac_status); } &&
14961          { ac_try='test -s conftest$ac_exeext'
14962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963   (eval $ac_try) 2>&5
14964   ac_status=$?
14965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966   (exit $ac_status); }; }; then
14967   ac_cv_search_gettext="-l$ac_lib"
14968 break
14969 else
14970   echo "$as_me: failed program was:" >&5
14971 cat conftest.$ac_ext >&5
14972 fi
14973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14974   done
14975 fi
14976 LIBS=$ac_func_search_save_LIBS
14977 fi
14978 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
14979 echo "${ECHO_T}$ac_cv_search_gettext" >&6
14980 if test "$ac_cv_search_gettext" != no; then
14981   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
14982
14983 else
14984   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
14985 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
14986    { (exit 1); exit 1; }; }
14987 fi
14988
14989   if test "${ac_cv_header_libintl_h+set}" = set; then
14990   echo "$as_me:$LINENO: checking for libintl.h" >&5
14991 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
14992 if test "${ac_cv_header_libintl_h+set}" = set; then
14993   echo $ECHO_N "(cached) $ECHO_C" >&6
14994 fi
14995 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14996 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
14997 else
14998   # Is the header compilable?
14999 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15000 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15001 cat >conftest.$ac_ext <<_ACEOF
15002 #line $LINENO "configure"
15003 #include "confdefs.h"
15004 $ac_includes_default
15005 #include <libintl.h>
15006 _ACEOF
15007 rm -f conftest.$ac_objext
15008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15009   (eval $ac_compile) 2>&5
15010   ac_status=$?
15011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012   (exit $ac_status); } &&
15013          { ac_try='test -s conftest.$ac_objext'
15014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15015   (eval $ac_try) 2>&5
15016   ac_status=$?
15017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018   (exit $ac_status); }; }; then
15019   ac_header_compiler=yes
15020 else
15021   echo "$as_me: failed program was:" >&5
15022 cat conftest.$ac_ext >&5
15023 ac_header_compiler=no
15024 fi
15025 rm -f conftest.$ac_objext conftest.$ac_ext
15026 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15027 echo "${ECHO_T}$ac_header_compiler" >&6
15028
15029 # Is the header present?
15030 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15031 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15032 cat >conftest.$ac_ext <<_ACEOF
15033 #line $LINENO "configure"
15034 #include "confdefs.h"
15035 #include <libintl.h>
15036 _ACEOF
15037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15038   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15039   ac_status=$?
15040   egrep -v '^ *\+' conftest.er1 >conftest.err
15041   rm -f conftest.er1
15042   cat conftest.err >&5
15043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044   (exit $ac_status); } >/dev/null; then
15045   if test -s conftest.err; then
15046     ac_cpp_err=$ac_c_preproc_warn_flag
15047   else
15048     ac_cpp_err=
15049   fi
15050 else
15051   ac_cpp_err=yes
15052 fi
15053 if test -z "$ac_cpp_err"; then
15054   ac_header_preproc=yes
15055 else
15056   echo "$as_me: failed program was:" >&5
15057   cat conftest.$ac_ext >&5
15058   ac_header_preproc=no
15059 fi
15060 rm -f conftest.err conftest.$ac_ext
15061 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15062 echo "${ECHO_T}$ac_header_preproc" >&6
15063
15064 # So?  What about this header?
15065 case $ac_header_compiler:$ac_header_preproc in
15066   yes:no )
15067     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15068 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15069     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15070 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15071   no:yes )
15072     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15073 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15074     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15075 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15076     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15077 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15078 esac
15079 echo "$as_me:$LINENO: checking for libintl.h" >&5
15080 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15081 if test "${ac_cv_header_libintl_h+set}" = set; then
15082   echo $ECHO_N "(cached) $ECHO_C" >&6
15083 else
15084   ac_cv_header_libintl_h=$ac_header_preproc
15085 fi
15086 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15087 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15088
15089 fi
15090 if test $ac_cv_header_libintl_h = yes; then
15091   :
15092 else
15093   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15094 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15095    { (exit 1); exit 1; }; }
15096 fi
15097
15098
15099   for ac_prog in msgfmt
15100 do
15101   # Extract the first word of "$ac_prog", so it can be a program name with args.
15102 set dummy $ac_prog; ac_word=$2
15103 echo "$as_me:$LINENO: checking for $ac_word" >&5
15104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15105 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15106   echo $ECHO_N "(cached) $ECHO_C" >&6
15107 else
15108   if test -n "$MSGFMT"; then
15109   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15110 else
15111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15112 for as_dir in $PATH
15113 do
15114   IFS=$as_save_IFS
15115   test -z "$as_dir" && as_dir=.
15116   for ac_exec_ext in '' $ac_executable_extensions; do
15117   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15118     ac_cv_prog_MSGFMT="$ac_prog"
15119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15120     break 2
15121   fi
15122 done
15123 done
15124
15125 fi
15126 fi
15127 MSGFMT=$ac_cv_prog_MSGFMT
15128 if test -n "$MSGFMT"; then
15129   echo "$as_me:$LINENO: result: $MSGFMT" >&5
15130 echo "${ECHO_T}$MSGFMT" >&6
15131 else
15132   echo "$as_me:$LINENO: result: no" >&5
15133 echo "${ECHO_T}no" >&6
15134 fi
15135
15136   test -n "$MSGFMT" && break
15137 done
15138
15139   if test -z "$MSGFMT"; then
15140     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15141 echo "$as_me: error: msgfmt is required for NLS" >&2;}
15142    { (exit 1); exit 1; }; }
15143   fi
15144   for ac_prog in msgmerge
15145 do
15146   # Extract the first word of "$ac_prog", so it can be a program name with args.
15147 set dummy $ac_prog; ac_word=$2
15148 echo "$as_me:$LINENO: checking for $ac_word" >&5
15149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15150 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
15151   echo $ECHO_N "(cached) $ECHO_C" >&6
15152 else
15153   if test -n "$MSGMERGE"; then
15154   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15155 else
15156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15157 for as_dir in $PATH
15158 do
15159   IFS=$as_save_IFS
15160   test -z "$as_dir" && as_dir=.
15161   for ac_exec_ext in '' $ac_executable_extensions; do
15162   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15163     ac_cv_prog_MSGMERGE="$ac_prog"
15164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15165     break 2
15166   fi
15167 done
15168 done
15169
15170 fi
15171 fi
15172 MSGMERGE=$ac_cv_prog_MSGMERGE
15173 if test -n "$MSGMERGE"; then
15174   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15175 echo "${ECHO_T}$MSGMERGE" >&6
15176 else
15177   echo "$as_me:$LINENO: result: no" >&5
15178 echo "${ECHO_T}no" >&6
15179 fi
15180
15181   test -n "$MSGMERGE" && break
15182 done
15183
15184   for ac_prog in xgettext
15185 do
15186   # Extract the first word of "$ac_prog", so it can be a program name with args.
15187 set dummy $ac_prog; ac_word=$2
15188 echo "$as_me:$LINENO: checking for $ac_word" >&5
15189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15190 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
15191   echo $ECHO_N "(cached) $ECHO_C" >&6
15192 else
15193   if test -n "$XGETTEXT"; then
15194   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
15195 else
15196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15197 for as_dir in $PATH
15198 do
15199   IFS=$as_save_IFS
15200   test -z "$as_dir" && as_dir=.
15201   for ac_exec_ext in '' $ac_executable_extensions; do
15202   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15203     ac_cv_prog_XGETTEXT="$ac_prog"
15204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15205     break 2
15206   fi
15207 done
15208 done
15209
15210 fi
15211 fi
15212 XGETTEXT=$ac_cv_prog_XGETTEXT
15213 if test -n "$XGETTEXT"; then
15214   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15215 echo "${ECHO_T}$XGETTEXT" >&6
15216 else
15217   echo "$as_me:$LINENO: result: no" >&5
15218 echo "${ECHO_T}no" >&6
15219 fi
15220
15221   test -n "$XGETTEXT" && break
15222 done
15223
15224
15225   # Note: share/locale is always the default, independent of $datadir
15226   localedir='${prefix}/share/locale'
15227   if test x"$prefix" = x"NONE"; then
15228     exp_localedir="$ac_default_prefix/share/locale"
15229   else
15230     exp_localedir="$prefix/share/locale"
15231   fi
15232
15233
15234
15235 cat >>confdefs.h <<_ACEOF
15236 #define LOCALEDIR "$exp_localedir"
15237 _ACEOF
15238
15239
15240 fi
15241
15242 # Check for Tcl configuration script tclConfig.sh
15243 if test "$with_tcl" = yes; then
15244     for ac_prog in tclsh tcl
15245 do
15246   # Extract the first word of "$ac_prog", so it can be a program name with args.
15247 set dummy $ac_prog; ac_word=$2
15248 echo "$as_me:$LINENO: checking for $ac_word" >&5
15249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15250 if test "${ac_cv_path_TCLSH+set}" = set; then
15251   echo $ECHO_N "(cached) $ECHO_C" >&6
15252 else
15253   case $TCLSH in
15254   [\\/]* | ?:[\\/]*)
15255   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
15256   ;;
15257   *)
15258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15259 for as_dir in $PATH
15260 do
15261   IFS=$as_save_IFS
15262   test -z "$as_dir" && as_dir=.
15263   for ac_exec_ext in '' $ac_executable_extensions; do
15264   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15265     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
15266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15267     break 2
15268   fi
15269 done
15270 done
15271
15272   ;;
15273 esac
15274 fi
15275 TCLSH=$ac_cv_path_TCLSH
15276
15277 if test -n "$TCLSH"; then
15278   echo "$as_me:$LINENO: result: $TCLSH" >&5
15279 echo "${ECHO_T}$TCLSH" >&6
15280 else
15281   echo "$as_me:$LINENO: result: no" >&5
15282 echo "${ECHO_T}no" >&6
15283 fi
15284
15285   test -n "$TCLSH" && break
15286 done
15287
15288 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
15289 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
15290 # Let user override test
15291 if test -z "$TCL_CONFIG_SH"; then
15292     pgac_test_dirs="$with_tclconfig"
15293
15294     set X $pgac_test_dirs; shift
15295     if test $# -eq 0; then
15296         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
15297 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
15298    { (exit 1); exit 1; }; }
15299         set X `echo 'puts $auto_path' | $TCLSH`; shift
15300     fi
15301
15302     for pgac_dir do
15303         if test -r "$pgac_dir/tclConfig.sh"; then
15304             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
15305             break
15306         fi
15307     done
15308 fi
15309
15310 if test -z "$TCL_CONFIG_SH"; then
15311     echo "$as_me:$LINENO: result: no" >&5
15312 echo "${ECHO_T}no" >&6
15313     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
15314 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
15315    { (exit 1); exit 1; }; }
15316 else
15317     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
15318 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
15319 fi
15320
15321
15322
15323     . "$TCL_CONFIG_SH"
15324 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
15325 eval TCL_LIBS=\"$TCL_LIBS\"
15326 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
15327 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
15328
15329     fi
15330
15331 # Check for Tk configuration script tkConfig.sh
15332 if test "$with_tk" = yes; then
15333     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
15334 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
15335 # Let user override test
15336 if test -z "$TK_CONFIG_SH"; then
15337     pgac_test_dirs="$with_tkconfig $with_tclconfig"
15338
15339     set X $pgac_test_dirs; shift
15340     if test $# -eq 0; then
15341         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
15342 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
15343    { (exit 1); exit 1; }; }
15344         set X `echo 'puts $auto_path' | $TCLSH`; shift
15345     fi
15346
15347     for pgac_dir do
15348         if test -r "$pgac_dir/tkConfig.sh"; then
15349             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
15350             break
15351         fi
15352     done
15353 fi
15354
15355 if test -z "$TK_CONFIG_SH"; then
15356     echo "$as_me:$LINENO: result: no" >&5
15357 echo "${ECHO_T}no" >&6
15358     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
15359 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
15360    { (exit 1); exit 1; }; }
15361 else
15362     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
15363 echo "${ECHO_T}$TK_CONFIG_SH" >&6
15364 fi
15365
15366
15367
15368     . "$TK_CONFIG_SH"
15369 eval TK_LIBS=\"$TK_LIBS\"
15370 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
15371 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
15372
15373 fi
15374
15375
15376 #
15377 # Check for DocBook and tools
15378 #
15379 for ac_prog in onsgmls nsgmls
15380 do
15381   # Extract the first word of "$ac_prog", so it can be a program name with args.
15382 set dummy $ac_prog; ac_word=$2
15383 echo "$as_me:$LINENO: checking for $ac_word" >&5
15384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15385 if test "${ac_cv_prog_NSGMLS+set}" = set; then
15386   echo $ECHO_N "(cached) $ECHO_C" >&6
15387 else
15388   if test -n "$NSGMLS"; then
15389   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
15390 else
15391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15392 for as_dir in $PATH
15393 do
15394   IFS=$as_save_IFS
15395   test -z "$as_dir" && as_dir=.
15396   for ac_exec_ext in '' $ac_executable_extensions; do
15397   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15398     ac_cv_prog_NSGMLS="$ac_prog"
15399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15400     break 2
15401   fi
15402 done
15403 done
15404
15405 fi
15406 fi
15407 NSGMLS=$ac_cv_prog_NSGMLS
15408 if test -n "$NSGMLS"; then
15409   echo "$as_me:$LINENO: result: $NSGMLS" >&5
15410 echo "${ECHO_T}$NSGMLS" >&6
15411 else
15412   echo "$as_me:$LINENO: result: no" >&5
15413 echo "${ECHO_T}no" >&6
15414 fi
15415
15416   test -n "$NSGMLS" && break
15417 done
15418
15419 for ac_prog in openjade jade
15420 do
15421   # Extract the first word of "$ac_prog", so it can be a program name with args.
15422 set dummy $ac_prog; ac_word=$2
15423 echo "$as_me:$LINENO: checking for $ac_word" >&5
15424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15425 if test "${ac_cv_prog_JADE+set}" = set; then
15426   echo $ECHO_N "(cached) $ECHO_C" >&6
15427 else
15428   if test -n "$JADE"; then
15429   ac_cv_prog_JADE="$JADE" # Let the user override the test.
15430 else
15431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15432 for as_dir in $PATH
15433 do
15434   IFS=$as_save_IFS
15435   test -z "$as_dir" && as_dir=.
15436   for ac_exec_ext in '' $ac_executable_extensions; do
15437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15438     ac_cv_prog_JADE="$ac_prog"
15439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15440     break 2
15441   fi
15442 done
15443 done
15444
15445 fi
15446 fi
15447 JADE=$ac_cv_prog_JADE
15448 if test -n "$JADE"; then
15449   echo "$as_me:$LINENO: result: $JADE" >&5
15450 echo "${ECHO_T}$JADE" >&6
15451 else
15452   echo "$as_me:$LINENO: result: no" >&5
15453 echo "${ECHO_T}no" >&6
15454 fi
15455
15456   test -n "$JADE" && break
15457 done
15458
15459
15460 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
15461 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
15462 if test "${pgac_cv_check_docbook+set}" = set; then
15463   echo $ECHO_N "(cached) $ECHO_C" >&6
15464 else
15465   cat >conftest.sgml <<EOF
15466 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
15467 <book>
15468  <title>test</title>
15469  <chapter>
15470   <title>random</title>
15471    <sect1>
15472     <title>testsect</title>
15473     <para>text</para>
15474   </sect1>
15475  </chapter>
15476 </book>
15477 EOF
15478
15479 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
15480 if test $? -eq 0; then
15481   pgac_cv_check_docbook=yes
15482 else
15483   pgac_cv_check_docbook=no
15484 fi
15485 rm -f conftest.sgml
15486 fi
15487 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
15488 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
15489
15490 have_docbook=$pgac_cv_check_docbook
15491
15492
15493 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
15494 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
15495 if test "${pgac_cv_path_stylesheets+set}" = set; then
15496   echo $ECHO_N "(cached) $ECHO_C" >&6
15497 else
15498   if test -n "$DOCBOOKSTYLE"; then
15499   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
15500 else
15501   for pgac_prefix in /usr /usr/local /opt; do
15502     for pgac_infix in share lib; do
15503       for pgac_postfix in \
15504         sgml/stylesheets/nwalsh-modular \
15505         sgml/stylesheets/docbook \
15506         sgml/docbook/dsssl/modular \
15507         sgml/docbook/stylesheet/dsssl/modular \
15508         sgml/docbook/dsssl-stylesheets
15509       do
15510         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
15511         if test -r "$pgac_candidate/html/docbook.dsl" \
15512            && test -r "$pgac_candidate/print/docbook.dsl"
15513         then
15514           pgac_cv_path_stylesheets=$pgac_candidate
15515           break 3
15516         fi
15517       done
15518     done
15519   done
15520 fi
15521 fi
15522
15523 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
15524
15525 if test -n "$DOCBOOKSTYLE"; then
15526   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
15527 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
15528 else
15529   echo "$as_me:$LINENO: result: no" >&5
15530 echo "${ECHO_T}no" >&6
15531 fi
15532 if test -n "$DOCBOOKSTYLE"; then
15533   for ac_prog in collateindex.pl
15534 do
15535   # Extract the first word of "$ac_prog", so it can be a program name with args.
15536 set dummy $ac_prog; ac_word=$2
15537 echo "$as_me:$LINENO: checking for $ac_word" >&5
15538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15539 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
15540   echo $ECHO_N "(cached) $ECHO_C" >&6
15541 else
15542   case $COLLATEINDEX in
15543   [\\/]* | ?:[\\/]*)
15544   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
15545   ;;
15546   *)
15547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15548 for as_dir in $DOCBOOKSTYLE/bin $PATH
15549 do
15550   IFS=$as_save_IFS
15551   test -z "$as_dir" && as_dir=.
15552   for ac_exec_ext in '' $ac_executable_extensions; do
15553   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15554     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
15555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15556     break 2
15557   fi
15558 done
15559 done
15560
15561   ;;
15562 esac
15563 fi
15564 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
15565
15566 if test -n "$COLLATEINDEX"; then
15567   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
15568 echo "${ECHO_T}$COLLATEINDEX" >&6
15569 else
15570   echo "$as_me:$LINENO: result: no" >&5
15571 echo "${ECHO_T}no" >&6
15572 fi
15573
15574   test -n "$COLLATEINDEX" && break
15575 done
15576
15577 else
15578   for ac_prog in collateindex.pl
15579 do
15580   # Extract the first word of "$ac_prog", so it can be a program name with args.
15581 set dummy $ac_prog; ac_word=$2
15582 echo "$as_me:$LINENO: checking for $ac_word" >&5
15583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15584 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
15585   echo $ECHO_N "(cached) $ECHO_C" >&6
15586 else
15587   case $COLLATEINDEX in
15588   [\\/]* | ?:[\\/]*)
15589   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
15590   ;;
15591   *)
15592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15593 for as_dir in $PATH
15594 do
15595   IFS=$as_save_IFS
15596   test -z "$as_dir" && as_dir=.
15597   for ac_exec_ext in '' $ac_executable_extensions; do
15598   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15599     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
15600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15601     break 2
15602   fi
15603 done
15604 done
15605
15606   ;;
15607 esac
15608 fi
15609 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
15610
15611 if test -n "$COLLATEINDEX"; then
15612   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
15613 echo "${ECHO_T}$COLLATEINDEX" >&6
15614 else
15615   echo "$as_me:$LINENO: result: no" >&5
15616 echo "${ECHO_T}no" >&6
15617 fi
15618
15619   test -n "$COLLATEINDEX" && break
15620 done
15621
15622 fi
15623 for ac_prog in sgmlspl
15624 do
15625   # Extract the first word of "$ac_prog", so it can be a program name with args.
15626 set dummy $ac_prog; ac_word=$2
15627 echo "$as_me:$LINENO: checking for $ac_word" >&5
15628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15629 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
15630   echo $ECHO_N "(cached) $ECHO_C" >&6
15631 else
15632   if test -n "$SGMLSPL"; then
15633   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
15634 else
15635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15636 for as_dir in $PATH
15637 do
15638   IFS=$as_save_IFS
15639   test -z "$as_dir" && as_dir=.
15640   for ac_exec_ext in '' $ac_executable_extensions; do
15641   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15642     ac_cv_prog_SGMLSPL="$ac_prog"
15643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15644     break 2
15645   fi
15646 done
15647 done
15648
15649 fi
15650 fi
15651 SGMLSPL=$ac_cv_prog_SGMLSPL
15652 if test -n "$SGMLSPL"; then
15653   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
15654 echo "${ECHO_T}$SGMLSPL" >&6
15655 else
15656   echo "$as_me:$LINENO: result: no" >&5
15657 echo "${ECHO_T}no" >&6
15658 fi
15659
15660   test -n "$SGMLSPL" && break
15661 done
15662
15663
15664
15665 # prepare build tree if outside source tree
15666 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
15667 # Note 2: /bin/pwd might be better than shell's built-in at getting
15668 #         a symlink-free name.
15669 if test "$no_create" != yes; then
15670   if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
15671     :
15672   else
15673     vpath_build=yes
15674
15675     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
15676     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
15677     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
15678       || { { echo "$as_me:$LINENO: error: failed" >&5
15679 echo "$as_me: error: failed" >&2;}
15680    { (exit 1); exit 1; }; }
15681     echo "$as_me:$LINENO: result: done" >&5
15682 echo "${ECHO_T}done" >&6
15683   fi
15684 fi
15685
15686
15687 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
15688
15689
15690 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}"
15691
15692
15693 ac_config_headers="$ac_config_headers src/include/pg_config.h"
15694
15695
15696 cat >confcache <<\_ACEOF
15697 # This file is a shell script that caches the results of configure
15698 # tests run on this system so they can be shared between configure
15699 # scripts and configure runs, see configure's option --config-cache.
15700 # It is not useful on other systems.  If it contains results you don't
15701 # want to keep, you may remove or edit it.
15702 #
15703 # config.status only pays attention to the cache file if you give it
15704 # the --recheck option to rerun configure.
15705 #
15706 # `ac_cv_env_foo' variables (set or unset) will be overriden when
15707 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15708 # following values.
15709
15710 _ACEOF
15711
15712 # The following way of writing the cache mishandles newlines in values,
15713 # but we know of no workaround that is simple, portable, and efficient.
15714 # So, don't put newlines in cache variables' values.
15715 # Ultrix sh set writes to stderr and can't be redirected directly,
15716 # and sets the high bit in the cache file unless we assign to the vars.
15717 {
15718   (set) 2>&1 |
15719     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15720     *ac_space=\ *)
15721       # `set' does not quote correctly, so add quotes (double-quote
15722       # substitution turns \\\\ into \\, and sed turns \\ into \).
15723       sed -n \
15724         "s/'/'\\\\''/g;
15725           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15726       ;;
15727     *)
15728       # `set' quotes correctly as required by POSIX, so do not add quotes.
15729       sed -n \
15730         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15731       ;;
15732     esac;
15733 } |
15734   sed '
15735      t clear
15736      : clear
15737      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15738      t end
15739      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15740      : end' >>confcache
15741 if cmp -s $cache_file confcache; then :; else
15742   if test -w $cache_file; then
15743     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15744     cat confcache >$cache_file
15745   else
15746     echo "not updating unwritable cache $cache_file"
15747   fi
15748 fi
15749 rm -f confcache
15750
15751 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15752 # Let make expand exec_prefix.
15753 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15754
15755 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15756 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15757 # trailing colons and then remove the whole line if VPATH becomes empty
15758 # (actually we leave an empty line to preserve line numbers).
15759 if test "x$srcdir" = x.; then
15760   ac_vpsub='/^[         ]*VPATH[        ]*=/{
15761 s/:*\$(srcdir):*/:/;
15762 s/:*\${srcdir}:*/:/;
15763 s/:*@srcdir@:*/:/;
15764 s/^\([^=]*=[    ]*\):*/\1/;
15765 s/:*$//;
15766 s/^[^=]*=[      ]*$//;
15767 }'
15768 fi
15769
15770 DEFS=-DHAVE_CONFIG_H
15771
15772
15773 : ${CONFIG_STATUS=./config.status}
15774 ac_clean_files_save=$ac_clean_files
15775 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15776 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15777 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15778 cat >$CONFIG_STATUS <<_ACEOF
15779 #! $SHELL
15780 # Generated by $as_me.
15781 # Run this file to recreate the current configuration.
15782 # Compiler output produced by configure, useful for debugging
15783 # configure, is in config.log if it exists.
15784
15785 debug=false
15786 SHELL=\${CONFIG_SHELL-$SHELL}
15787 _ACEOF
15788
15789 cat >>$CONFIG_STATUS <<\_ACEOF
15790
15791 ## --------------------- ##
15792 ## M4sh Initialization.  ##
15793 ## --------------------- ##
15794
15795 # Be Bourne compatible
15796 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15797   emulate sh
15798   NULLCMD=:
15799 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15800   set -o posix
15801 fi
15802
15803 # NLS nuisances.
15804 # Support unset when possible.
15805 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15806   as_unset=unset
15807 else
15808   as_unset=false
15809 fi
15810
15811 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
15812     { $as_unset LANG || test "${LANG+set}" != set; } ||
15813       { LANG=C; export LANG; }
15814 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
15815     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
15816       { LC_ALL=C; export LC_ALL; }
15817 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
15818     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
15819       { LC_TIME=C; export LC_TIME; }
15820 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
15821     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
15822       { LC_CTYPE=C; export LC_CTYPE; }
15823 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
15824     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
15825       { LANGUAGE=C; export LANGUAGE; }
15826 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
15827     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
15828       { LC_COLLATE=C; export LC_COLLATE; }
15829 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
15830     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
15831       { LC_NUMERIC=C; export LC_NUMERIC; }
15832 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
15833     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
15834       { LC_MESSAGES=C; export LC_MESSAGES; }
15835
15836
15837 # Name of the executable.
15838 as_me=`(basename "$0") 2>/dev/null ||
15839 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15840          X"$0" : 'X\(//\)$' \| \
15841          X"$0" : 'X\(/\)$' \| \
15842          .     : '\(.\)' 2>/dev/null ||
15843 echo X/"$0" |
15844     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15845           /^X\/\(\/\/\)$/{ s//\1/; q; }
15846           /^X\/\(\/\).*/{ s//\1/; q; }
15847           s/.*/./; q'`
15848
15849 # PATH needs CR, and LINENO needs CR and PATH.
15850 # Avoid depending upon Character Ranges.
15851 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15852 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15853 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15854 as_cr_digits='0123456789'
15855 as_cr_alnum=$as_cr_Letters$as_cr_digits
15856
15857 # The user is always right.
15858 if test "${PATH_SEPARATOR+set}" != set; then
15859   echo "#! /bin/sh" >conftest.sh
15860   echo  "exit 0"   >>conftest.sh
15861   chmod +x conftest.sh
15862   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
15863     PATH_SEPARATOR=';'
15864   else
15865     PATH_SEPARATOR=:
15866   fi
15867   rm -f conftest.sh
15868 fi
15869
15870
15871   as_lineno_1=$LINENO
15872   as_lineno_2=$LINENO
15873   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15874   test "x$as_lineno_1" != "x$as_lineno_2" &&
15875   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15876   # Find who we are.  Look in the path if we contain no path at all
15877   # relative or not.
15878   case $0 in
15879     *[\\/]* ) as_myself=$0 ;;
15880     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15881 for as_dir in $PATH
15882 do
15883   IFS=$as_save_IFS
15884   test -z "$as_dir" && as_dir=.
15885   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15886 done
15887
15888        ;;
15889   esac
15890   # We did not find ourselves, most probably we were run as `sh COMMAND'
15891   # in which case we are not to be found in the path.
15892   if test "x$as_myself" = x; then
15893     as_myself=$0
15894   fi
15895   if test ! -f "$as_myself"; then
15896     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15897 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15898    { (exit 1); exit 1; }; }
15899   fi
15900   case $CONFIG_SHELL in
15901   '')
15902     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15903 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15904 do
15905   IFS=$as_save_IFS
15906   test -z "$as_dir" && as_dir=.
15907   for as_base in sh bash ksh sh5; do
15908          case $as_dir in
15909          /*)
15910            if ("$as_dir/$as_base" -c '
15911   as_lineno_1=$LINENO
15912   as_lineno_2=$LINENO
15913   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15914   test "x$as_lineno_1" != "x$as_lineno_2" &&
15915   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15916              CONFIG_SHELL=$as_dir/$as_base
15917              export CONFIG_SHELL
15918              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15919            fi;;
15920          esac
15921        done
15922 done
15923 ;;
15924   esac
15925
15926   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15927   # uniformly replaced by the line number.  The first 'sed' inserts a
15928   # line-number line before each line; the second 'sed' does the real
15929   # work.  The second script uses 'N' to pair each line-number line
15930   # with the numbered line, and appends trailing '-' during
15931   # substitution so that $LINENO is not a special case at line end.
15932   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15933   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15934   sed '=' <$as_myself |
15935     sed '
15936       N
15937       s,$,-,
15938       : loop
15939       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15940       t loop
15941       s,-$,,
15942       s,^['$as_cr_digits']*\n,,
15943     ' >$as_me.lineno &&
15944   chmod +x $as_me.lineno ||
15945     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15946 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15947    { (exit 1); exit 1; }; }
15948
15949   # Don't try to exec as it changes $[0], causing all sort of problems
15950   # (the dirname of $[0] is not the place where we might find the
15951   # original and so on.  Autoconf is especially sensible to this).
15952   . ./$as_me.lineno
15953   # Exit status is that of the last command.
15954   exit
15955 }
15956
15957
15958 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15959   *c*,-n*) ECHO_N= ECHO_C='
15960 ' ECHO_T='      ' ;;
15961   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15962   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15963 esac
15964
15965 if expr a : '\(a\)' >/dev/null 2>&1; then
15966   as_expr=expr
15967 else
15968   as_expr=false
15969 fi
15970
15971 rm -f conf$$ conf$$.exe conf$$.file
15972 echo >conf$$.file
15973 if ln -s conf$$.file conf$$ 2>/dev/null; then
15974   # We could just check for DJGPP; but this test a) works b) is more generic
15975   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15976   if test -f conf$$.exe; then
15977     # Don't use ln at all; we don't have any links
15978     as_ln_s='cp -p'
15979   else
15980     as_ln_s='ln -s'
15981   fi
15982 elif ln conf$$.file conf$$ 2>/dev/null; then
15983   as_ln_s=ln
15984 else
15985   as_ln_s='cp -p'
15986 fi
15987 rm -f conf$$ conf$$.exe conf$$.file
15988
15989 as_executable_p="test -f"
15990
15991 # Sed expression to map a string onto a valid CPP name.
15992 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15993
15994 # Sed expression to map a string onto a valid variable name.
15995 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15996
15997
15998 # IFS
15999 # We need space, tab and new line, in precisely that order.
16000 as_nl='
16001 '
16002 IFS="   $as_nl"
16003
16004 # CDPATH.
16005 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16006
16007 exec 6>&1
16008
16009 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16010 # report actual input values of CONFIG_FILES etc. instead of their
16011 # values after options handling.  Logging --version etc. is OK.
16012 exec 5>>config.log
16013 {
16014   echo
16015   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16016 ## Running $as_me. ##
16017 _ASBOX
16018 } >&5
16019 cat >&5 <<_CSEOF
16020
16021 This file was extended by PostgreSQL $as_me 7.3devel, which was
16022 generated by GNU Autoconf 2.53.  Invocation command line was
16023
16024   CONFIG_FILES    = $CONFIG_FILES
16025   CONFIG_HEADERS  = $CONFIG_HEADERS
16026   CONFIG_LINKS    = $CONFIG_LINKS
16027   CONFIG_COMMANDS = $CONFIG_COMMANDS
16028   $ $0 $@
16029
16030 _CSEOF
16031 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16032 echo >&5
16033 _ACEOF
16034
16035 # Files that config.status was made for.
16036 if test -n "$ac_config_files"; then
16037   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16038 fi
16039
16040 if test -n "$ac_config_headers"; then
16041   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16042 fi
16043
16044 if test -n "$ac_config_links"; then
16045   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16046 fi
16047
16048 if test -n "$ac_config_commands"; then
16049   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16050 fi
16051
16052 cat >>$CONFIG_STATUS <<\_ACEOF
16053
16054 ac_cs_usage="\
16055 \`$as_me' instantiates files from templates according to the
16056 current configuration.
16057
16058 Usage: $0 [OPTIONS] [FILE]...
16059
16060   -h, --help       print this help, then exit
16061   -V, --version    print version number, then exit
16062   -d, --debug      don't remove temporary files
16063       --recheck    update $as_me by reconfiguring in the same conditions
16064   --file=FILE[:TEMPLATE]
16065                    instantiate the configuration file FILE
16066   --header=FILE[:TEMPLATE]
16067                    instantiate the configuration header FILE
16068
16069 Configuration files:
16070 $config_files
16071
16072 Configuration headers:
16073 $config_headers
16074
16075 Configuration links:
16076 $config_links
16077
16078 Report bugs to <bug-autoconf@gnu.org>."
16079 _ACEOF
16080
16081 cat >>$CONFIG_STATUS <<_ACEOF
16082 ac_cs_version="\\
16083 PostgreSQL config.status 7.3devel
16084 configured by $0, generated by GNU Autoconf 2.53,
16085   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16086
16087 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16088 Free Software Foundation, Inc.
16089 This config.status script is free software; the Free Software Foundation
16090 gives unlimited permission to copy, distribute and modify it."
16091 srcdir=$srcdir
16092 _ACEOF
16093
16094 cat >>$CONFIG_STATUS <<\_ACEOF
16095 # If no file are specified by the user, then we need to provide default
16096 # value.  By we need to know if files were specified by the user.
16097 ac_need_defaults=:
16098 while test $# != 0
16099 do
16100   case $1 in
16101   --*=*)
16102     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16103     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16104     shift
16105     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16106     shift
16107     ;;
16108   -*);;
16109   *) # This is not an option, so the user has probably given explicit
16110      # arguments.
16111      ac_need_defaults=false;;
16112   esac
16113
16114   case $1 in
16115   # Handling of the options.
16116 _ACEOF
16117 cat >>$CONFIG_STATUS <<_ACEOF
16118   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16119     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16120     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16121 _ACEOF
16122 cat >>$CONFIG_STATUS <<\_ACEOF
16123   --version | --vers* | -V )
16124     echo "$ac_cs_version"; exit 0 ;;
16125   --he | --h)
16126     # Conflict between --help and --header
16127     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16128 Try \`$0 --help' for more information." >&5
16129 echo "$as_me: error: ambiguous option: $1
16130 Try \`$0 --help' for more information." >&2;}
16131    { (exit 1); exit 1; }; };;
16132   --help | --hel | -h )
16133     echo "$ac_cs_usage"; exit 0 ;;
16134   --debug | --d* | -d )
16135     debug=: ;;
16136   --file | --fil | --fi | --f )
16137     shift
16138     CONFIG_FILES="$CONFIG_FILES $1"
16139     ac_need_defaults=false;;
16140   --header | --heade | --head | --hea )
16141     shift
16142     CONFIG_HEADERS="$CONFIG_HEADERS $1"
16143     ac_need_defaults=false;;
16144
16145   # This is an error.
16146   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16147 Try \`$0 --help' for more information." >&5
16148 echo "$as_me: error: unrecognized option: $1
16149 Try \`$0 --help' for more information." >&2;}
16150    { (exit 1); exit 1; }; } ;;
16151
16152   *) ac_config_targets="$ac_config_targets $1" ;;
16153
16154   esac
16155   shift
16156 done
16157
16158 _ACEOF
16159
16160
16161
16162
16163
16164 cat >>$CONFIG_STATUS <<\_ACEOF
16165 for ac_config_target in $ac_config_targets
16166 do
16167   case "$ac_config_target" in
16168   # Handling of arguments.
16169   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
16170   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
16171   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
16172   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
16173   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
16174   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
16175   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
16176   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
16177   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
16178   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
16179   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16180 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16181    { (exit 1); exit 1; }; };;
16182   esac
16183 done
16184
16185 # If the user did not use the arguments to specify the items to instantiate,
16186 # then the envvar interface is used.  Set only those that are not.
16187 # We use the long form for the default assignment because of an extremely
16188 # bizarre bug on SunOS 4.1.3.
16189 if $ac_need_defaults; then
16190   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16191   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16192   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16193 fi
16194
16195 # Create a temporary directory, and hook for its removal unless debugging.
16196 $debug ||
16197 {
16198   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16199   trap '{ (exit 1); exit 1; }' 1 2 13 15
16200 }
16201
16202 # Create a (secure) tmp directory for tmp files.
16203 : ${TMPDIR=/tmp}
16204 {
16205   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16206   test -n "$tmp" && test -d "$tmp"
16207 }  ||
16208 {
16209   tmp=$TMPDIR/cs$$-$RANDOM
16210   (umask 077 && mkdir $tmp)
16211 } ||
16212 {
16213    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16214    { (exit 1); exit 1; }
16215 }
16216
16217 _ACEOF
16218
16219 cat >>$CONFIG_STATUS <<_ACEOF
16220
16221 #
16222 # CONFIG_FILES section.
16223 #
16224
16225 # No need to generate the scripts if there are no CONFIG_FILES.
16226 # This happens for instance when ./config.status config.h
16227 if test -n "\$CONFIG_FILES"; then
16228   # Protect against being on the right side of a sed subst in config.status.
16229   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16230    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16231 s,@SHELL@,$SHELL,;t t
16232 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16233 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16234 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16235 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16236 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16237 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16238 s,@exec_prefix@,$exec_prefix,;t t
16239 s,@prefix@,$prefix,;t t
16240 s,@program_transform_name@,$program_transform_name,;t t
16241 s,@bindir@,$bindir,;t t
16242 s,@sbindir@,$sbindir,;t t
16243 s,@libexecdir@,$libexecdir,;t t
16244 s,@datadir@,$datadir,;t t
16245 s,@sysconfdir@,$sysconfdir,;t t
16246 s,@sharedstatedir@,$sharedstatedir,;t t
16247 s,@localstatedir@,$localstatedir,;t t
16248 s,@libdir@,$libdir,;t t
16249 s,@includedir@,$includedir,;t t
16250 s,@oldincludedir@,$oldincludedir,;t t
16251 s,@infodir@,$infodir,;t t
16252 s,@mandir@,$mandir,;t t
16253 s,@build_alias@,$build_alias,;t t
16254 s,@host_alias@,$host_alias,;t t
16255 s,@target_alias@,$target_alias,;t t
16256 s,@DEFS@,$DEFS,;t t
16257 s,@ECHO_C@,$ECHO_C,;t t
16258 s,@ECHO_N@,$ECHO_N,;t t
16259 s,@ECHO_T@,$ECHO_T,;t t
16260 s,@LIBS@,$LIBS,;t t
16261 s,@docdir@,$docdir,;t t
16262 s,@configure_args@,$configure_args,;t t
16263 s,@build@,$build,;t t
16264 s,@build_cpu@,$build_cpu,;t t
16265 s,@build_vendor@,$build_vendor,;t t
16266 s,@build_os@,$build_os,;t t
16267 s,@host@,$host,;t t
16268 s,@host_cpu@,$host_cpu,;t t
16269 s,@host_vendor@,$host_vendor,;t t
16270 s,@host_os@,$host_os,;t t
16271 s,@PORTNAME@,$PORTNAME,;t t
16272 s,@TAS@,$TAS,;t t
16273 s,@MULTIBYTE@,$MULTIBYTE,;t t
16274 s,@enable_nls@,$enable_nls,;t t
16275 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
16276 s,@default_port@,$default_port,;t t
16277 s,@enable_shared@,$enable_shared,;t t
16278 s,@enable_rpath@,$enable_rpath,;t t
16279 s,@enable_debug@,$enable_debug,;t t
16280 s,@CC@,$CC,;t t
16281 s,@CFLAGS@,$CFLAGS,;t t
16282 s,@LDFLAGS@,$LDFLAGS,;t t
16283 s,@CPPFLAGS@,$CPPFLAGS,;t t
16284 s,@ac_ct_CC@,$ac_ct_CC,;t t
16285 s,@EXEEXT@,$EXEEXT,;t t
16286 s,@OBJEXT@,$OBJEXT,;t t
16287 s,@CPP@,$CPP,;t t
16288 s,@GCC@,$GCC,;t t
16289 s,@autodepend@,$autodepend,;t t
16290 s,@INCLUDES@,$INCLUDES,;t t
16291 s,@with_tcl@,$with_tcl,;t t
16292 s,@with_tk@,$with_tk,;t t
16293 s,@with_perl@,$with_perl,;t t
16294 s,@with_python@,$with_python,;t t
16295 s,@ANT@,$ANT,;t t
16296 s,@with_java@,$with_java,;t t
16297 s,@with_krb4@,$with_krb4,;t t
16298 s,@with_krb5@,$with_krb5,;t t
16299 s,@krb_srvtab@,$krb_srvtab,;t t
16300 s,@with_pam@,$with_pam,;t t
16301 s,@with_openssl@,$with_openssl,;t t
16302 s,@ELF_SYS@,$ELF_SYS,;t t
16303 s,@AWK@,$AWK,;t t
16304 s,@FLEX@,$FLEX,;t t
16305 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
16306 s,@LN_S@,$LN_S,;t t
16307 s,@LD@,$LD,;t t
16308 s,@with_gnu_ld@,$with_gnu_ld,;t t
16309 s,@ld_R_works@,$ld_R_works,;t t
16310 s,@RANLIB@,$RANLIB,;t t
16311 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16312 s,@LORDER@,$LORDER,;t t
16313 s,@TAR@,$TAR,;t t
16314 s,@STRIP@,$STRIP,;t t
16315 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16316 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
16317 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
16318 s,@YACC@,$YACC,;t t
16319 s,@YFLAGS@,$YFLAGS,;t t
16320 s,@WISH@,$WISH,;t t
16321 s,@PERL@,$PERL,;t t
16322 s,@perl_installsitearch@,$perl_installsitearch,;t t
16323 s,@perl_installman3dir@,$perl_installman3dir,;t t
16324 s,@perl_archlibexp@,$perl_archlibexp,;t t
16325 s,@perl_privlibexp@,$perl_privlibexp,;t t
16326 s,@perl_useshrplib@,$perl_useshrplib,;t t
16327 s,@perl_man3ext@,$perl_man3ext,;t t
16328 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
16329 s,@PYTHON@,$PYTHON,;t t
16330 s,@python_version@,$python_version,;t t
16331 s,@python_prefix@,$python_prefix,;t t
16332 s,@python_execprefix@,$python_execprefix,;t t
16333 s,@python_configdir@,$python_configdir,;t t
16334 s,@python_moduledir@,$python_moduledir,;t t
16335 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
16336 s,@python_includespec@,$python_includespec,;t t
16337 s,@python_libspec@,$python_libspec,;t t
16338 s,@LIBOBJS@,$LIBOBJS,;t t
16339 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
16340 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
16341 s,@MSGFMT@,$MSGFMT,;t t
16342 s,@MSGMERGE@,$MSGMERGE,;t t
16343 s,@XGETTEXT@,$XGETTEXT,;t t
16344 s,@localedir@,$localedir,;t t
16345 s,@TCLSH@,$TCLSH,;t t
16346 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
16347 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
16348 s,@TCL_LIBS@,$TCL_LIBS,;t t
16349 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
16350 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
16351 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
16352 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
16353 s,@TK_LIBS@,$TK_LIBS,;t t
16354 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
16355 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
16356 s,@NSGMLS@,$NSGMLS,;t t
16357 s,@JADE@,$JADE,;t t
16358 s,@have_docbook@,$have_docbook,;t t
16359 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
16360 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
16361 s,@SGMLSPL@,$SGMLSPL,;t t
16362 s,@vpath_build@,$vpath_build,;t t
16363 CEOF
16364
16365 _ACEOF
16366
16367   cat >>$CONFIG_STATUS <<\_ACEOF
16368   # Split the substitutions into bite-sized pieces for seds with
16369   # small command number limits, like on Digital OSF/1 and HP-UX.
16370   ac_max_sed_lines=48
16371   ac_sed_frag=1 # Number of current file.
16372   ac_beg=1 # First line for current file.
16373   ac_end=$ac_max_sed_lines # Line after last line for current file.
16374   ac_more_lines=:
16375   ac_sed_cmds=
16376   while $ac_more_lines; do
16377     if test $ac_beg -gt 1; then
16378       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16379     else
16380       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16381     fi
16382     if test ! -s $tmp/subs.frag; then
16383       ac_more_lines=false
16384     else
16385       # The purpose of the label and of the branching condition is to
16386       # speed up the sed processing (if there are no `@' at all, there
16387       # is no need to browse any of the substitutions).
16388       # These are the two extra sed commands mentioned above.
16389       (echo ':t
16390   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16391       if test -z "$ac_sed_cmds"; then
16392         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16393       else
16394         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16395       fi
16396       ac_sed_frag=`expr $ac_sed_frag + 1`
16397       ac_beg=$ac_end
16398       ac_end=`expr $ac_end + $ac_max_sed_lines`
16399     fi
16400   done
16401   if test -z "$ac_sed_cmds"; then
16402     ac_sed_cmds=cat
16403   fi
16404 fi # test -n "$CONFIG_FILES"
16405
16406 _ACEOF
16407 cat >>$CONFIG_STATUS <<\_ACEOF
16408 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16409   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16410   case $ac_file in
16411   - | *:- | *:-:* ) # input from stdin
16412         cat >$tmp/stdin
16413         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16414         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16415   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16416         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16417   * )   ac_file_in=$ac_file.in ;;
16418   esac
16419
16420   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16421   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16422 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16423          X"$ac_file" : 'X\(//\)[^/]' \| \
16424          X"$ac_file" : 'X\(//\)$' \| \
16425          X"$ac_file" : 'X\(/\)' \| \
16426          .     : '\(.\)' 2>/dev/null ||
16427 echo X"$ac_file" |
16428     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16429           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16430           /^X\(\/\/\)$/{ s//\1/; q; }
16431           /^X\(\/\).*/{ s//\1/; q; }
16432           s/.*/./; q'`
16433   { case "$ac_dir" in
16434   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16435   *)                      as_incr_dir=.;;
16436 esac
16437 as_dummy="$ac_dir"
16438 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16439   case $as_mkdir_dir in
16440     # Skip DOS drivespec
16441     ?:) as_incr_dir=$as_mkdir_dir ;;
16442     *)
16443       as_incr_dir=$as_incr_dir/$as_mkdir_dir
16444       test -d "$as_incr_dir" ||
16445         mkdir "$as_incr_dir" ||
16446         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16447 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16448    { (exit 1); exit 1; }; }
16449     ;;
16450   esac
16451 done; }
16452
16453   ac_builddir=.
16454
16455 if test "$ac_dir" != .; then
16456   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16457   # A "../" for each directory in $ac_dir_suffix.
16458   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16459 else
16460   ac_dir_suffix= ac_top_builddir=
16461 fi
16462
16463 case $srcdir in
16464   .)  # No --srcdir option.  We are building in place.
16465     ac_srcdir=.
16466     if test -z "$ac_top_builddir"; then
16467        ac_top_srcdir=.
16468     else
16469        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16470     fi ;;
16471   [\\/]* | ?:[\\/]* )  # Absolute path.
16472     ac_srcdir=$srcdir$ac_dir_suffix;
16473     ac_top_srcdir=$srcdir ;;
16474   *) # Relative path.
16475     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16476     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16477 esac
16478 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16479 # absolute.
16480 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16481 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16482 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16483 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16484
16485
16486
16487   if test x"$ac_file" != x-; then
16488     { echo "$as_me:$LINENO: creating $ac_file" >&5
16489 echo "$as_me: creating $ac_file" >&6;}
16490     rm -f "$ac_file"
16491   fi
16492   # Let's still pretend it is `configure' which instantiates (i.e., don't
16493   # use $as_me), people would be surprised to read:
16494   #    /* config.h.  Generated by config.status.  */
16495   if test x"$ac_file" = x-; then
16496     configure_input=
16497   else
16498     configure_input="$ac_file.  "
16499   fi
16500   configure_input=$configure_input"Generated from `echo $ac_file_in |
16501                                      sed 's,.*/,,'` by configure."
16502
16503   # First look for the input files in the build tree, otherwise in the
16504   # src tree.
16505   ac_file_inputs=`IFS=:
16506     for f in $ac_file_in; do
16507       case $f in
16508       -) echo $tmp/stdin ;;
16509       [\\/$]*)
16510          # Absolute (can't be DOS-style, as IFS=:)
16511          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16512 echo "$as_me: error: cannot find input file: $f" >&2;}
16513    { (exit 1); exit 1; }; }
16514          echo $f;;
16515       *) # Relative
16516          if test -f "$f"; then
16517            # Build tree
16518            echo $f
16519          elif test -f "$srcdir/$f"; then
16520            # Source tree
16521            echo $srcdir/$f
16522          else
16523            # /dev/null tree
16524            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16525 echo "$as_me: error: cannot find input file: $f" >&2;}
16526    { (exit 1); exit 1; }; }
16527          fi;;
16528       esac
16529     done` || { (exit 1); exit 1; }
16530 _ACEOF
16531 cat >>$CONFIG_STATUS <<_ACEOF
16532   sed "$ac_vpsub
16533 $extrasub
16534 _ACEOF
16535 cat >>$CONFIG_STATUS <<\_ACEOF
16536 :t
16537 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16538 s,@configure_input@,$configure_input,;t t
16539 s,@srcdir@,$ac_srcdir,;t t
16540 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16541 s,@top_srcdir@,$ac_top_srcdir,;t t
16542 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16543 s,@builddir@,$ac_builddir,;t t
16544 s,@abs_builddir@,$ac_abs_builddir,;t t
16545 s,@top_builddir@,$ac_top_builddir,;t t
16546 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16547 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16548   rm -f $tmp/stdin
16549   if test x"$ac_file" != x-; then
16550     mv $tmp/out $ac_file
16551   else
16552     cat $tmp/out
16553     rm -f $tmp/out
16554   fi
16555
16556 done
16557 _ACEOF
16558 cat >>$CONFIG_STATUS <<\_ACEOF
16559
16560 #
16561 # CONFIG_HEADER section.
16562 #
16563
16564 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16565 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16566 #
16567 # ac_d sets the value in "#define NAME VALUE" lines.
16568 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
16569 ac_dB='[        ].*$,\1#\2'
16570 ac_dC=' '
16571 ac_dD=',;t'
16572 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16573 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16574 ac_uB='$,\1#\2define\3'
16575 ac_uC=' '
16576 ac_uD=',;t'
16577
16578 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16579   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16580   case $ac_file in
16581   - | *:- | *:-:* ) # input from stdin
16582         cat >$tmp/stdin
16583         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16584         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16585   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16586         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16587   * )   ac_file_in=$ac_file.in ;;
16588   esac
16589
16590   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16591 echo "$as_me: creating $ac_file" >&6;}
16592
16593   # First look for the input files in the build tree, otherwise in the
16594   # src tree.
16595   ac_file_inputs=`IFS=:
16596     for f in $ac_file_in; do
16597       case $f in
16598       -) echo $tmp/stdin ;;
16599       [\\/$]*)
16600          # Absolute (can't be DOS-style, as IFS=:)
16601          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16602 echo "$as_me: error: cannot find input file: $f" >&2;}
16603    { (exit 1); exit 1; }; }
16604          echo $f;;
16605       *) # Relative
16606          if test -f "$f"; then
16607            # Build tree
16608            echo $f
16609          elif test -f "$srcdir/$f"; then
16610            # Source tree
16611            echo $srcdir/$f
16612          else
16613            # /dev/null tree
16614            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16615 echo "$as_me: error: cannot find input file: $f" >&2;}
16616    { (exit 1); exit 1; }; }
16617          fi;;
16618       esac
16619     done` || { (exit 1); exit 1; }
16620   # Remove the trailing spaces.
16621   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
16622
16623 _ACEOF
16624
16625 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16626 # `conftest.undefs', that substitutes the proper values into
16627 # config.h.in to produce config.h.  The first handles `#define'
16628 # templates, and the second `#undef' templates.
16629 # And first: Protect against being on the right side of a sed subst in
16630 # config.status.  Protect against being in an unquoted here document
16631 # in config.status.
16632 rm -f conftest.defines conftest.undefs
16633 # Using a here document instead of a string reduces the quoting nightmare.
16634 # Putting comments in sed scripts is not portable.
16635 #
16636 # `end' is used to avoid that the second main sed command (meant for
16637 # 0-ary CPP macros) applies to n-ary macro definitions.
16638 # See the Autoconf documentation for `clear'.
16639 cat >confdef2sed.sed <<\_ACEOF
16640 s/[\\&,]/\\&/g
16641 s,[\\$`],\\&,g
16642 t clear
16643 : clear
16644 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16645 t end
16646 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16647 : end
16648 _ACEOF
16649 # If some macros were called several times there might be several times
16650 # the same #defines, which is useless.  Nevertheless, we may not want to
16651 # sort them, since we want the *last* AC-DEFINE to be honored.
16652 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16653 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16654 rm -f confdef2sed.sed
16655
16656 # This sed command replaces #undef with comments.  This is necessary, for
16657 # example, in the case of _POSIX_SOURCE, which is predefined and required
16658 # on some systems where configure will not decide to define it.
16659 cat >>conftest.undefs <<\_ACEOF
16660 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16661 _ACEOF
16662
16663 # Break up conftest.defines because some shells have a limit on the size
16664 # of here documents, and old seds have small limits too (100 cmds).
16665 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16666 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16667 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16668 echo '  :' >>$CONFIG_STATUS
16669 rm -f conftest.tail
16670 while grep . conftest.defines >/dev/null
16671 do
16672   # Write a limited-size here document to $tmp/defines.sed.
16673   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16674   # Speed up: don't consider the non `#define' lines.
16675   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
16676   # Work around the forget-to-reset-the-flag bug.
16677   echo 't clr' >>$CONFIG_STATUS
16678   echo ': clr' >>$CONFIG_STATUS
16679   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16680   echo 'CEOF
16681   sed -f $tmp/defines.sed $tmp/in >$tmp/out
16682   rm -f $tmp/in
16683   mv $tmp/out $tmp/in
16684 ' >>$CONFIG_STATUS
16685   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16686   rm -f conftest.defines
16687   mv conftest.tail conftest.defines
16688 done
16689 rm -f conftest.defines
16690 echo '  fi # egrep' >>$CONFIG_STATUS
16691 echo >>$CONFIG_STATUS
16692
16693 # Break up conftest.undefs because some shells have a limit on the size
16694 # of here documents, and old seds have small limits too (100 cmds).
16695 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16696 rm -f conftest.tail
16697 while grep . conftest.undefs >/dev/null
16698 do
16699   # Write a limited-size here document to $tmp/undefs.sed.
16700   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16701   # Speed up: don't consider the non `#undef'
16702   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16703   # Work around the forget-to-reset-the-flag bug.
16704   echo 't clr' >>$CONFIG_STATUS
16705   echo ': clr' >>$CONFIG_STATUS
16706   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16707   echo 'CEOF
16708   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16709   rm -f $tmp/in
16710   mv $tmp/out $tmp/in
16711 ' >>$CONFIG_STATUS
16712   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16713   rm -f conftest.undefs
16714   mv conftest.tail conftest.undefs
16715 done
16716 rm -f conftest.undefs
16717
16718 cat >>$CONFIG_STATUS <<\_ACEOF
16719   # Let's still pretend it is `configure' which instantiates (i.e., don't
16720   # use $as_me), people would be surprised to read:
16721   #    /* config.h.  Generated by config.status.  */
16722   if test x"$ac_file" = x-; then
16723     echo "/* Generated by configure.  */" >$tmp/config.h
16724   else
16725     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16726   fi
16727   cat $tmp/in >>$tmp/config.h
16728   rm -f $tmp/in
16729   if test x"$ac_file" != x-; then
16730     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
16731       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16732 echo "$as_me: $ac_file is unchanged" >&6;}
16733     else
16734       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16735 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16736          X"$ac_file" : 'X\(//\)[^/]' \| \
16737          X"$ac_file" : 'X\(//\)$' \| \
16738          X"$ac_file" : 'X\(/\)' \| \
16739          .     : '\(.\)' 2>/dev/null ||
16740 echo X"$ac_file" |
16741     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16742           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16743           /^X\(\/\/\)$/{ s//\1/; q; }
16744           /^X\(\/\).*/{ s//\1/; q; }
16745           s/.*/./; q'`
16746       { case "$ac_dir" in
16747   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16748   *)                      as_incr_dir=.;;
16749 esac
16750 as_dummy="$ac_dir"
16751 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16752   case $as_mkdir_dir in
16753     # Skip DOS drivespec
16754     ?:) as_incr_dir=$as_mkdir_dir ;;
16755     *)
16756       as_incr_dir=$as_incr_dir/$as_mkdir_dir
16757       test -d "$as_incr_dir" ||
16758         mkdir "$as_incr_dir" ||
16759         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16760 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16761    { (exit 1); exit 1; }; }
16762     ;;
16763   esac
16764 done; }
16765
16766       rm -f $ac_file
16767       mv $tmp/config.h $ac_file
16768     fi
16769   else
16770     cat $tmp/config.h
16771     rm -f $tmp/config.h
16772   fi
16773   # Run the commands associated with the file.
16774   case $ac_file in
16775     src/include/pg_config.h )
16776 # Update timestamp for pg_config.h (see Makefile.global)
16777 echo >src/include/stamp-h
16778  ;;
16779   esac
16780 done
16781 _ACEOF
16782 cat >>$CONFIG_STATUS <<\_ACEOF
16783
16784 #
16785 # CONFIG_LINKS section.
16786 #
16787
16788 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
16789   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16790   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16791
16792   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
16793 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
16794
16795   if test ! -r $srcdir/$ac_source; then
16796     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
16797 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
16798    { (exit 1); exit 1; }; }
16799   fi
16800   rm -f $ac_dest
16801
16802   # Make relative symlinks.
16803   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
16804 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16805          X"$ac_dest" : 'X\(//\)[^/]' \| \
16806          X"$ac_dest" : 'X\(//\)$' \| \
16807          X"$ac_dest" : 'X\(/\)' \| \
16808          .     : '\(.\)' 2>/dev/null ||
16809 echo X"$ac_dest" |
16810     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16811           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16812           /^X\(\/\/\)$/{ s//\1/; q; }
16813           /^X\(\/\).*/{ s//\1/; q; }
16814           s/.*/./; q'`
16815   { case "$ac_dest_dir" in
16816   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16817   *)                      as_incr_dir=.;;
16818 esac
16819 as_dummy="$ac_dest_dir"
16820 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16821   case $as_mkdir_dir in
16822     # Skip DOS drivespec
16823     ?:) as_incr_dir=$as_mkdir_dir ;;
16824     *)
16825       as_incr_dir=$as_incr_dir/$as_mkdir_dir
16826       test -d "$as_incr_dir" ||
16827         mkdir "$as_incr_dir" ||
16828         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
16829 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
16830    { (exit 1); exit 1; }; }
16831     ;;
16832   esac
16833 done; }
16834
16835   ac_builddir=.
16836
16837 if test "$ac_dest_dir" != .; then
16838   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
16839   # A "../" for each directory in $ac_dir_suffix.
16840   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16841 else
16842   ac_dir_suffix= ac_top_builddir=
16843 fi
16844
16845 case $srcdir in
16846   .)  # No --srcdir option.  We are building in place.
16847     ac_srcdir=.
16848     if test -z "$ac_top_builddir"; then
16849        ac_top_srcdir=.
16850     else
16851        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16852     fi ;;
16853   [\\/]* | ?:[\\/]* )  # Absolute path.
16854     ac_srcdir=$srcdir$ac_dir_suffix;
16855     ac_top_srcdir=$srcdir ;;
16856   *) # Relative path.
16857     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16858     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16859 esac
16860 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
16861 # absolute.
16862 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
16863 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
16864 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
16865 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
16866
16867
16868   case $srcdir in
16869   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
16870       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
16871   esac
16872
16873   # Make a symlink if possible; otherwise try a hard link.
16874   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
16875     ln $srcdir/$ac_source $ac_dest ||
16876     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
16877 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
16878    { (exit 1); exit 1; }; }
16879 done
16880 _ACEOF
16881
16882 cat >>$CONFIG_STATUS <<\_ACEOF
16883
16884 { (exit 0); exit 0; }
16885 _ACEOF
16886 chmod +x $CONFIG_STATUS
16887 ac_clean_files=$ac_clean_files_save
16888
16889
16890 # configure is writing to config.log, and then calls config.status.
16891 # config.status does its own redirection, appending to config.log.
16892 # Unfortunately, on DOS this fails, as config.log is still kept open
16893 # by configure, so config.status won't be able to write to it; its
16894 # output is simply discarded.  So we exec the FD to /dev/null,
16895 # effectively closing config.log, so it can be properly (re)opened and
16896 # appended to by config.status.  When coming back to configure, we
16897 # need to make the FD available again.
16898 if test "$no_create" != yes; then
16899   ac_cs_success=:
16900   exec 5>/dev/null
16901   $SHELL $CONFIG_STATUS || ac_cs_success=false
16902   exec 5>>config.log
16903   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16904   # would make configure fail if this is the last instruction.
16905   $ac_cs_success || { (exit 1); exit 1; }
16906 fi
16907