]> granicus.if.org Git - postgresql/blob - configure
Okay, libpq++ is moved to GBorg, and all traces of it have been removed
[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   --enable-odbc           build the ODBC driver package
849   --disable-largefile     omit support for large files
850
851 Optional Packages:
852   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
853   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
854
855   --with-includes=DIRS    look for additional header files in DIRS
856   --with-libraries=DIRS   look for additional libraries in DIRS
857   --with-libs=DIRS        alternative spelling of --with-libraries
858   --with-pgport=PORTNUM   change default port number 5432
859   --with-maxbackends=N    set default maximum number of connections 32
860   --with-tcl              build Tcl and Tk interfaces
861   --without-tk            do not build Tk interfaces if Tcl is enabled
862   --with-tclconfig=DIR    tclConfig.sh and tkConfig.sh are in DIR
863   --with-tkconfig=DIR     tkConfig.sh is in DIR
864   --with-perl             build Perl interface and PL/Perl
865   --with-python           build Python interface module
866   --with-java             build JDBC interface and Java tools
867   --with-krb4[=DIR]       build with Kerberos 4 support [/usr/athena]
868   --with-krb5[=DIR]       build with Kerberos 5 support [/usr/athena]
869   --with-krb-srvnam=NAME  name of the service principal in Kerberos postgres
870   --with-pam              build with PAM support
871   --with-openssl[=DIR]    build with OpenSSL support [/usr/local/ssl]
872   --without-readline      do not use Readline
873   --without-zlib          do not use Zlib
874   --with-unixodbc         build ODBC driver for unixODBC
875   --with-iodbc            build ODBC driver for iODBC
876   --with-odbcinst=DIR     default directory for odbcinst.ini sysconfdir
877   --with-gnu-ld           assume the C compiler uses GNU ld default=no
878
879 Some influential environment variables:
880   CC          C compiler command
881   CFLAGS      C compiler flags
882   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
883               nonstandard directory <lib dir>
884   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
885               headers in a nonstandard directory <include dir>
886   CPP         C preprocessor
887   DOCBOOKSTYLE
888               location of DocBook stylesheets
889
890 Use these variables to override the choices made by `configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
892
893 Report bugs to <pgsql-bugs@postgresql.org>.
894 _ACEOF
895 fi
896
897 if test "$ac_init_help" = "recursive"; then
898   # If there are subdirs, report their specific --help.
899   ac_popdir=`pwd`
900   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
901     test -d $ac_dir || continue
902     ac_builddir=.
903
904 if test "$ac_dir" != .; then
905   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
906   # A "../" for each directory in $ac_dir_suffix.
907   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
908 else
909   ac_dir_suffix= ac_top_builddir=
910 fi
911
912 case $srcdir in
913   .)  # No --srcdir option.  We are building in place.
914     ac_srcdir=.
915     if test -z "$ac_top_builddir"; then
916        ac_top_srcdir=.
917     else
918        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
919     fi ;;
920   [\\/]* | ?:[\\/]* )  # Absolute path.
921     ac_srcdir=$srcdir$ac_dir_suffix;
922     ac_top_srcdir=$srcdir ;;
923   *) # Relative path.
924     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
925     ac_top_srcdir=$ac_top_builddir$srcdir ;;
926 esac
927 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
928 # absolute.
929 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
930 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
931 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
932 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
933
934     cd $ac_dir
935     # Check for guested configure; otherwise get Cygnus style configure.
936     if test -f $ac_srcdir/configure.gnu; then
937       echo
938       $SHELL $ac_srcdir/configure.gnu  --help=recursive
939     elif test -f $ac_srcdir/configure; then
940       echo
941       $SHELL $ac_srcdir/configure  --help=recursive
942     elif test -f $ac_srcdir/configure.ac ||
943            test -f $ac_srcdir/configure.in; then
944       echo
945       $ac_configure --help
946     else
947       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
948     fi
949     cd $ac_popdir
950   done
951 fi
952
953 test -n "$ac_init_help" && exit 0
954 if $ac_init_version; then
955   cat <<\_ACEOF
956 PostgreSQL configure 7.3devel
957 generated by GNU Autoconf 2.53
958
959 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
960 Free Software Foundation, Inc.
961 This configure script is free software; the Free Software Foundation
962 gives unlimited permission to copy, distribute and modify it.
963
964 Copyright 2002 PostgreSQL Global Development Group
965 _ACEOF
966   exit 0
967 fi
968 exec 5>config.log
969 cat >&5 <<_ACEOF
970 This file contains any messages produced by compilers while
971 running configure, to aid debugging if configure makes a mistake.
972
973 It was created by PostgreSQL $as_me 7.3devel, which was
974 generated by GNU Autoconf 2.53.  Invocation command line was
975
976   $ $0 $@
977
978 _ACEOF
979 {
980 cat <<_ASUNAME
981 ## --------- ##
982 ## Platform. ##
983 ## --------- ##
984
985 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
986 uname -m = `(uname -m) 2>/dev/null || echo unknown`
987 uname -r = `(uname -r) 2>/dev/null || echo unknown`
988 uname -s = `(uname -s) 2>/dev/null || echo unknown`
989 uname -v = `(uname -v) 2>/dev/null || echo unknown`
990
991 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
992 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
993
994 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
995 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
996 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
997 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
998 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
999 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1000 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1001
1002 _ASUNAME
1003
1004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1005 for as_dir in $PATH
1006 do
1007   IFS=$as_save_IFS
1008   test -z "$as_dir" && as_dir=.
1009   echo "PATH: $as_dir"
1010 done
1011
1012 } >&5
1013
1014 cat >&5 <<_ACEOF
1015
1016
1017 ## ----------- ##
1018 ## Core tests. ##
1019 ## ----------- ##
1020
1021 _ACEOF
1022
1023
1024 # Keep a trace of the command line.
1025 # Strip out --no-create and --no-recursion so they do not pile up.
1026 # Also quote any args containing shell meta-characters.
1027 ac_configure_args=
1028 ac_sep=
1029 for ac_arg
1030 do
1031   case $ac_arg in
1032   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1033   | --no-cr | --no-c | -n ) continue ;;
1034   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036     continue ;;
1037   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1038     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1039   esac
1040   case " $ac_configure_args " in
1041     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1042     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1043        ac_sep=" " ;;
1044   esac
1045   # Get rid of the leading space.
1046 done
1047
1048 # When interrupted or exit'd, cleanup temporary files, and complete
1049 # config.log.  We remove comments because anyway the quotes in there
1050 # would cause problems or look ugly.
1051 # WARNING: Be sure not to use single quotes in there, as some shells,
1052 # such as our DU 5.0 friend, will then `close' the trap.
1053 trap 'exit_status=$?
1054   # Save into config.log some information that might help in debugging.
1055   {
1056     echo
1057     cat <<\_ASBOX
1058 ## ---------------- ##
1059 ## Cache variables. ##
1060 ## ---------------- ##
1061 _ASBOX
1062     echo
1063     # The following way of writing the cache mishandles newlines in values,
1064 {
1065   (set) 2>&1 |
1066     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1067     *ac_space=\ *)
1068       sed -n \
1069         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1070           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1071       ;;
1072     *)
1073       sed -n \
1074         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1075       ;;
1076     esac;
1077 }
1078     echo
1079     if test -s confdefs.h; then
1080       cat <<\_ASBOX
1081 ## ----------- ##
1082 ## confdefs.h. ##
1083 ## ----------- ##
1084 _ASBOX
1085       echo
1086       sed "/^$/d" confdefs.h
1087       echo
1088     fi
1089     test "$ac_signal" != 0 &&
1090       echo "$as_me: caught signal $ac_signal"
1091     echo "$as_me: exit $exit_status"
1092   } >&5
1093   rm -f core core.* *.core &&
1094   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1095     exit $exit_status
1096      ' 0
1097 for ac_signal in 1 2 13 15; do
1098   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1099 done
1100 ac_signal=0
1101
1102 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1103 rm -rf conftest* confdefs.h
1104 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1105 echo >confdefs.h
1106
1107 # Predefined preprocessor variables.
1108
1109 cat >>confdefs.h <<_ACEOF
1110 #define PACKAGE_NAME "$PACKAGE_NAME"
1111 _ACEOF
1112
1113
1114 cat >>confdefs.h <<_ACEOF
1115 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1116 _ACEOF
1117
1118
1119 cat >>confdefs.h <<_ACEOF
1120 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1121 _ACEOF
1122
1123
1124 cat >>confdefs.h <<_ACEOF
1125 #define PACKAGE_STRING "$PACKAGE_STRING"
1126 _ACEOF
1127
1128
1129 cat >>confdefs.h <<_ACEOF
1130 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1131 _ACEOF
1132
1133
1134 # Let the site file select an alternate cache file if it wants to.
1135 # Prefer explicitly selected file to automatically selected ones.
1136 if test -z "$CONFIG_SITE"; then
1137   if test "x$prefix" != xNONE; then
1138     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1139   else
1140     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1141   fi
1142 fi
1143 for ac_site_file in $CONFIG_SITE; do
1144   if test -r "$ac_site_file"; then
1145     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1146 echo "$as_me: loading site script $ac_site_file" >&6;}
1147     sed 's/^/| /' "$ac_site_file" >&5
1148     . "$ac_site_file"
1149   fi
1150 done
1151
1152 if test -r "$cache_file"; then
1153   # Some versions of bash will fail to source /dev/null (special
1154   # files actually), so we avoid doing that.
1155   if test -f "$cache_file"; then
1156     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1157 echo "$as_me: loading cache $cache_file" >&6;}
1158     case $cache_file in
1159       [\\/]* | ?:[\\/]* ) . $cache_file;;
1160       *)                      . ./$cache_file;;
1161     esac
1162   fi
1163 else
1164   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1165 echo "$as_me: creating cache $cache_file" >&6;}
1166   >$cache_file
1167 fi
1168
1169 # Check that the precious variables saved in the cache have kept the same
1170 # value.
1171 ac_cache_corrupted=false
1172 for ac_var in `(set) 2>&1 |
1173                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1174   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1175   eval ac_new_set=\$ac_env_${ac_var}_set
1176   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1177   eval ac_new_val="\$ac_env_${ac_var}_value"
1178   case $ac_old_set,$ac_new_set in
1179     set,)
1180       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1181 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1182       ac_cache_corrupted=: ;;
1183     ,set)
1184       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1185 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1186       ac_cache_corrupted=: ;;
1187     ,);;
1188     *)
1189       if test "x$ac_old_val" != "x$ac_new_val"; then
1190         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1191 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1192         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1193 echo "$as_me:   former value:  $ac_old_val" >&2;}
1194         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1195 echo "$as_me:   current value: $ac_new_val" >&2;}
1196         ac_cache_corrupted=:
1197       fi;;
1198   esac
1199   # Pass precious variables to config.status.
1200   if test "$ac_new_set" = set; then
1201     case $ac_new_val in
1202     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1203       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1204     *) ac_arg=$ac_var=$ac_new_val ;;
1205     esac
1206     case " $ac_configure_args " in
1207       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1208       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1209     esac
1210   fi
1211 done
1212 if $ac_cache_corrupted; then
1213   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1214 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1215   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1216 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1217    { (exit 1); exit 1; }; }
1218 fi
1219
1220 ac_ext=c
1221 ac_cpp='$CPP $CPPFLAGS'
1222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1255
1256
1257
1258 ac_aux_dir=
1259 for ac_dir in config $srcdir/config; do
1260   if 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/install.sh; then
1265     ac_aux_dir=$ac_dir
1266     ac_install_sh="$ac_aux_dir/install.sh -c"
1267     break
1268   elif test -f $ac_dir/shtool; then
1269     ac_aux_dir=$ac_dir
1270     ac_install_sh="$ac_aux_dir/shtool install -c"
1271     break
1272   fi
1273 done
1274 if test -z "$ac_aux_dir"; then
1275   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1276 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1277    { (exit 1); exit 1; }; }
1278 fi
1279 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1280 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1281 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1282
1283
1284 configure_args=$ac_configure_args
1285
1286
1287
1288 cat >>confdefs.h <<_ACEOF
1289 #define PG_VERSION "$PACKAGE_VERSION"
1290 _ACEOF
1291
1292
1293 # Make sure we can run config.sub.
1294 $ac_config_sub sun4 >/dev/null 2>&1 ||
1295   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1296 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1297    { (exit 1); exit 1; }; }
1298
1299 echo "$as_me:$LINENO: checking build system type" >&5
1300 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1301 if test "${ac_cv_build+set}" = set; then
1302   echo $ECHO_N "(cached) $ECHO_C" >&6
1303 else
1304   ac_cv_build_alias=$build_alias
1305 test -z "$ac_cv_build_alias" &&
1306   ac_cv_build_alias=`$ac_config_guess`
1307 test -z "$ac_cv_build_alias" &&
1308   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1309 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1310    { (exit 1); exit 1; }; }
1311 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1312   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1313 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1314    { (exit 1); exit 1; }; }
1315
1316 fi
1317 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1318 echo "${ECHO_T}$ac_cv_build" >&6
1319 build=$ac_cv_build
1320 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1321 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1322 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1323
1324
1325 echo "$as_me:$LINENO: checking host system type" >&5
1326 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1327 if test "${ac_cv_host+set}" = set; then
1328   echo $ECHO_N "(cached) $ECHO_C" >&6
1329 else
1330   ac_cv_host_alias=$host_alias
1331 test -z "$ac_cv_host_alias" &&
1332   ac_cv_host_alias=$ac_cv_build_alias
1333 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1334   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1335 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1336    { (exit 1); exit 1; }; }
1337
1338 fi
1339 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1340 echo "${ECHO_T}$ac_cv_host" >&6
1341 host=$ac_cv_host
1342 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1343 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1344 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1345
1346
1347
1348 template=
1349 echo "$as_me:$LINENO: checking which template to use" >&5
1350 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1351
1352
1353
1354
1355 # Check whether --with-template or --without-template was given.
1356 if test "${with_template+set}" = set; then
1357   withval="$with_template"
1358
1359   case $withval in
1360     yes)
1361       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1362 echo "$as_me: error: argument required for --with-template option" >&2;}
1363    { (exit 1); exit 1; }; }
1364       ;;
1365     no)
1366       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1367 echo "$as_me: error: argument required for --with-template option" >&2;}
1368    { (exit 1); exit 1; }; }
1369       ;;
1370     *)
1371
1372   case $withval in
1373     list)   echo; ls "$srcdir/src/template"; exit;;
1374     *)      if test -f "$srcdir/src/template/$with_template" ; then
1375               template=$withval
1376             else
1377               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1378 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1379    { (exit 1); exit 1; }; }
1380             fi;;
1381   esac
1382
1383       ;;
1384   esac
1385
1386 else
1387
1388   # --with-template not given
1389
1390 case $host_os in
1391      aix*) template=aix ;;
1392     beos*) template=beos ;;
1393     bsdi*) template=bsdi ;;
1394   cygwin*) template=win ;;
1395   darwin*) template=darwin ;;
1396     dgux*) template=dgux ;;
1397  freebsd*) template=freebsd ;;
1398     hpux*) template=hpux ;;
1399     irix*) template=irix5 ;;
1400    linux*) template=linux ;;
1401   netbsd*) template=netbsd ;;
1402 nextstep*) template=nextstep ;;
1403  openbsd*) template=openbsd ;;
1404      osf*) template=osf ;;
1405      qnx*) template=qnx4 ;;
1406      sco*) template=sco ;;
1407  solaris*) template=solaris ;;
1408    sunos*) template=sunos4 ;;
1409  sysv4.2*)
1410         case $host_vendor in
1411           univel) template=univel ;;
1412         esac ;;
1413    sysv4*) template=svr4 ;;
1414    sysv5*) template=unixware ;;
1415   ultrix*) template=ultrix4 ;;
1416 esac
1417
1418   if test x"$template" = x"" ; then
1419     { { echo "$as_me:$LINENO: error:
1420 *******************************************************************
1421 PostgreSQL has apparently not been ported to your platform yet.
1422 To try a manual configuration, look into the src/template directory
1423 for a similar platform and use the '--with-template=' option.
1424
1425 Please also contact <pgsql-ports@postgresql.org> to see about
1426 rectifying this.  Include the above 'checking host system type...'
1427 line.
1428 *******************************************************************
1429 " >&5
1430 echo "$as_me: error:
1431 *******************************************************************
1432 PostgreSQL has apparently not been ported to your platform yet.
1433 To try a manual configuration, look into the src/template directory
1434 for a similar platform and use the '--with-template=' option.
1435
1436 Please also contact <pgsql-ports@postgresql.org> to see about
1437 rectifying this.  Include the above 'checking host system type...'
1438 line.
1439 *******************************************************************
1440 " >&2;}
1441    { (exit 1); exit 1; }; }
1442   fi
1443
1444
1445 fi;
1446
1447
1448 echo "$as_me:$LINENO: result: $template" >&5
1449 echo "${ECHO_T}$template" >&6
1450
1451 PORTNAME=$template
1452
1453
1454 # Pick right test-and-set (TAS) code.  Most platforms have inline
1455 # assembler code in src/include/storage/s_lock.h, so we just use
1456 # a dummy file here.
1457 case $host in
1458   *-*-hpux*)        need_tas=yes; tas_file=hpux.s ;;
1459   sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1460   i?86-*-solaris*)   need_tas=yes; tas_file=solaris_i386.s ;;
1461   *)                need_tas=no;  tas_file=dummy.s ;;
1462 esac
1463 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1464
1465
1466 if test "$need_tas" = yes ; then
1467   TAS=tas.o
1468 fi
1469
1470
1471
1472
1473 ##
1474 ## Command line options
1475 ##
1476
1477
1478 #
1479 # Add non-standard directories to the include path
1480 #
1481
1482
1483
1484 # Check whether --with-includes or --without-includes was given.
1485 if test "${with_includes+set}" = set; then
1486   withval="$with_includes"
1487
1488   case $withval in
1489     yes)
1490       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1491 echo "$as_me: error: argument required for --with-includes option" >&2;}
1492    { (exit 1); exit 1; }; }
1493       ;;
1494     no)
1495       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1496 echo "$as_me: error: argument required for --with-includes option" >&2;}
1497    { (exit 1); exit 1; }; }
1498       ;;
1499     *)
1500
1501       ;;
1502   esac
1503
1504 fi;
1505
1506
1507
1508 #
1509 # Add non-standard directories to the library search path
1510 #
1511
1512
1513
1514 # Check whether --with-libraries or --without-libraries was given.
1515 if test "${with_libraries+set}" = set; then
1516   withval="$with_libraries"
1517
1518   case $withval in
1519     yes)
1520       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1521 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1522    { (exit 1); exit 1; }; }
1523       ;;
1524     no)
1525       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1526 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1527    { (exit 1); exit 1; }; }
1528       ;;
1529     *)
1530       LIBRARY_DIRS=$withval
1531       ;;
1532   esac
1533
1534 fi;
1535
1536
1537
1538
1539
1540 # Check whether --with-libs or --without-libs was given.
1541 if test "${with_libs+set}" = set; then
1542   withval="$with_libs"
1543
1544   case $withval in
1545     yes)
1546       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1547 echo "$as_me: error: argument required for --with-libs option" >&2;}
1548    { (exit 1); exit 1; }; }
1549       ;;
1550     no)
1551       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1552 echo "$as_me: error: argument required for --with-libs option" >&2;}
1553    { (exit 1); exit 1; }; }
1554       ;;
1555     *)
1556       LIBRARY_DIRS=$withval
1557       ;;
1558   esac
1559
1560 fi;
1561
1562
1563
1564 #
1565 # 64-bit integer date/time storage (--enable-integer-datetimes)
1566 #
1567 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1568 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1569
1570
1571 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1572 if test "${enable_integer_datetimes+set}" = set; then
1573   enableval="$enable_integer_datetimes"
1574
1575   case $enableval in
1576     yes)
1577
1578 cat >>confdefs.h <<\_ACEOF
1579 #define USE_INTEGER_DATETIMES 1
1580 _ACEOF
1581
1582       ;;
1583     no)
1584       :
1585       ;;
1586     *)
1587       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1588 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1589    { (exit 1); exit 1; }; }
1590       ;;
1591   esac
1592
1593 else
1594   enable_integer_datetimes=no
1595
1596 fi;
1597
1598 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1599 echo "${ECHO_T}$enable_integer_datetimes" >&6
1600
1601
1602 # Character set recode (--enable-recode)
1603 #
1604 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1605 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1606
1607
1608 # Check whether --enable-recode or --disable-recode was given.
1609 if test "${enable_recode+set}" = set; then
1610   enableval="$enable_recode"
1611
1612   case $enableval in
1613     yes)
1614
1615 cat >>confdefs.h <<\_ACEOF
1616 #define CYR_RECODE 1
1617 _ACEOF
1618
1619       ;;
1620     no)
1621       :
1622       ;;
1623     *)
1624       { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1625 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1626    { (exit 1); exit 1; }; }
1627       ;;
1628   esac
1629
1630 else
1631   enable_recode=no
1632
1633 fi;
1634
1635 echo "$as_me:$LINENO: result: $enable_recode" >&5
1636 echo "${ECHO_T}$enable_recode" >&6
1637
1638
1639 #
1640 # Multibyte support
1641 #
1642 MULTIBYTE=SQL_ASCII
1643
1644 cat >>confdefs.h <<\_ACEOF
1645 #define MULTIBYTE 1
1646 _ACEOF
1647
1648
1649
1650 #
1651 # NLS
1652 #
1653 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1654 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1655
1656
1657 # Check whether --enable-nls or --disable-nls was given.
1658 if test "${enable_nls+set}" = set; then
1659   enableval="$enable_nls"
1660
1661   case $enableval in
1662     yes)
1663       :
1664       ;;
1665     no)
1666       :
1667       ;;
1668     *)
1669       enable_nls=yes
1670 WANTED_LANGUAGES=$enableval
1671       ;;
1672   esac
1673
1674 else
1675   enable_nls=no
1676 fi;
1677
1678
1679 if test "$enable_nls" = yes; then
1680
1681 cat >>confdefs.h <<\_ACEOF
1682 #define ENABLE_NLS 1
1683 _ACEOF
1684
1685 fi
1686
1687 echo "$as_me:$LINENO: result: $enable_nls" >&5
1688 echo "${ECHO_T}$enable_nls" >&6
1689
1690
1691
1692 #
1693 # Default port number (--with-pgport), default 5432
1694 #
1695 echo "$as_me:$LINENO: checking for default port number" >&5
1696 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1697
1698
1699
1700 # Check whether --with-pgport or --without-pgport was given.
1701 if test "${with_pgport+set}" = set; then
1702   withval="$with_pgport"
1703
1704   case $withval in
1705     yes)
1706       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1707 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1708    { (exit 1); exit 1; }; }
1709       ;;
1710     no)
1711       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1712 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1713    { (exit 1); exit 1; }; }
1714       ;;
1715     *)
1716       default_port=$withval
1717       ;;
1718   esac
1719
1720 else
1721   default_port=5432
1722 fi;
1723
1724 echo "$as_me:$LINENO: result: $default_port" >&5
1725 echo "${ECHO_T}$default_port" >&6
1726 # Need both of these because some places want an integer and some a string
1727
1728 cat >>confdefs.h <<_ACEOF
1729 #define DEF_PGPORT ${default_port}
1730 _ACEOF
1731
1732
1733 cat >>confdefs.h <<_ACEOF
1734 #define DEF_PGPORT_STR "${default_port}"
1735 _ACEOF
1736
1737
1738
1739 #
1740 # Maximum number of allowed connections (--with-maxbackends), default 32
1741 #
1742 echo "$as_me:$LINENO: checking for default soft limit on number of connections" >&5
1743 echo $ECHO_N "checking for default soft limit on number of connections... $ECHO_C" >&6
1744
1745
1746
1747 # Check whether --with-maxbackends or --without-maxbackends was given.
1748 if test "${with_maxbackends+set}" = set; then
1749   withval="$with_maxbackends"
1750
1751   case $withval in
1752     yes)
1753       { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1754 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1755    { (exit 1); exit 1; }; }
1756       ;;
1757     no)
1758       { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1759 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1760    { (exit 1); exit 1; }; }
1761       ;;
1762     *)
1763
1764       ;;
1765   esac
1766
1767 else
1768   with_maxbackends=32
1769 fi;
1770
1771 echo "$as_me:$LINENO: result: $with_maxbackends" >&5
1772 echo "${ECHO_T}$with_maxbackends" >&6
1773
1774 cat >>confdefs.h <<_ACEOF
1775 #define DEF_MAXBACKENDS $with_maxbackends
1776 _ACEOF
1777
1778
1779
1780 #
1781 # Option to disable shared libraries
1782 #
1783
1784
1785 # Check whether --enable-shared or --disable-shared was given.
1786 if test "${enable_shared+set}" = set; then
1787   enableval="$enable_shared"
1788
1789   case $enableval in
1790     yes)
1791       :
1792       ;;
1793     no)
1794       :
1795       ;;
1796     *)
1797       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1798 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1799    { (exit 1); exit 1; }; }
1800       ;;
1801   esac
1802
1803 else
1804   enable_shared=yes
1805
1806 fi;
1807
1808
1809
1810 #
1811 # '-rpath'-like feature can be disabled
1812 #
1813
1814
1815 # Check whether --enable-rpath or --disable-rpath was given.
1816 if test "${enable_rpath+set}" = set; then
1817   enableval="$enable_rpath"
1818
1819   case $enableval in
1820     yes)
1821       :
1822       ;;
1823     no)
1824       :
1825       ;;
1826     *)
1827       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1828 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1829    { (exit 1); exit 1; }; }
1830       ;;
1831   esac
1832
1833 else
1834   enable_rpath=yes
1835
1836 fi;
1837
1838
1839
1840
1841 #
1842 # --enable-debug adds -g to compiler flags
1843 #
1844
1845
1846 # Check whether --enable-debug or --disable-debug was given.
1847 if test "${enable_debug+set}" = set; then
1848   enableval="$enable_debug"
1849
1850   case $enableval in
1851     yes)
1852       :
1853       ;;
1854     no)
1855       :
1856       ;;
1857     *)
1858       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1859 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1860    { (exit 1); exit 1; }; }
1861       ;;
1862   esac
1863
1864 else
1865   enable_debug=no
1866
1867 fi;
1868
1869
1870
1871 #
1872 # C compiler
1873 #
1874
1875 # For historical reasons you can also use --with-CC to specify the C compiler
1876 # to use, although the standard way to do this is to set the CC environment
1877 # variable.
1878
1879
1880
1881 # Check whether --with-CC or --without-CC was given.
1882 if test "${with_CC+set}" = set; then
1883   withval="$with_CC"
1884
1885   case $withval in
1886     yes)
1887       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1888 echo "$as_me: error: argument required for --with-CC option" >&2;}
1889    { (exit 1); exit 1; }; }
1890       ;;
1891     no)
1892       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1893 echo "$as_me: error: argument required for --with-CC option" >&2;}
1894    { (exit 1); exit 1; }; }
1895       ;;
1896     *)
1897       CC=$with_CC
1898       ;;
1899   esac
1900
1901 fi;
1902
1903
1904 case $template in
1905   aix) pgac_cc_list="gcc xlc";;
1906  irix) pgac_cc_list="cc";; # no gcc
1907     *) pgac_cc_list="gcc cc";;
1908 esac
1909
1910 ac_ext=c
1911 ac_cpp='$CPP $CPPFLAGS'
1912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1915 if test -n "$ac_tool_prefix"; then
1916   for ac_prog in $pgac_cc_list
1917   do
1918     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1919 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1920 echo "$as_me:$LINENO: checking for $ac_word" >&5
1921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1922 if test "${ac_cv_prog_CC+set}" = set; then
1923   echo $ECHO_N "(cached) $ECHO_C" >&6
1924 else
1925   if test -n "$CC"; then
1926   ac_cv_prog_CC="$CC" # Let the user override the test.
1927 else
1928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929 for as_dir in $PATH
1930 do
1931   IFS=$as_save_IFS
1932   test -z "$as_dir" && as_dir=.
1933   for ac_exec_ext in '' $ac_executable_extensions; do
1934   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1935     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1937     break 2
1938   fi
1939 done
1940 done
1941
1942 fi
1943 fi
1944 CC=$ac_cv_prog_CC
1945 if test -n "$CC"; then
1946   echo "$as_me:$LINENO: result: $CC" >&5
1947 echo "${ECHO_T}$CC" >&6
1948 else
1949   echo "$as_me:$LINENO: result: no" >&5
1950 echo "${ECHO_T}no" >&6
1951 fi
1952
1953     test -n "$CC" && break
1954   done
1955 fi
1956 if test -z "$CC"; then
1957   ac_ct_CC=$CC
1958   for ac_prog in $pgac_cc_list
1959 do
1960   # Extract the first word of "$ac_prog", so it can be a program name with args.
1961 set dummy $ac_prog; ac_word=$2
1962 echo "$as_me:$LINENO: checking for $ac_word" >&5
1963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1964 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1965   echo $ECHO_N "(cached) $ECHO_C" >&6
1966 else
1967   if test -n "$ac_ct_CC"; then
1968   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1969 else
1970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 for as_dir in $PATH
1972 do
1973   IFS=$as_save_IFS
1974   test -z "$as_dir" && as_dir=.
1975   for ac_exec_ext in '' $ac_executable_extensions; do
1976   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1977     ac_cv_prog_ac_ct_CC="$ac_prog"
1978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979     break 2
1980   fi
1981 done
1982 done
1983
1984 fi
1985 fi
1986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1987 if test -n "$ac_ct_CC"; then
1988   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1989 echo "${ECHO_T}$ac_ct_CC" >&6
1990 else
1991   echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6
1993 fi
1994
1995   test -n "$ac_ct_CC" && break
1996 done
1997
1998   CC=$ac_ct_CC
1999 fi
2000
2001
2002 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2003 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2004    { (exit 1); exit 1; }; }
2005
2006 # Provide some information about the compiler.
2007 echo "$as_me:$LINENO:" \
2008      "checking for C compiler version" >&5
2009 ac_compiler=`set X $ac_compile; echo $2`
2010 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2011   (eval $ac_compiler --version </dev/null >&5) 2>&5
2012   ac_status=$?
2013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014   (exit $ac_status); }
2015 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2016   (eval $ac_compiler -v </dev/null >&5) 2>&5
2017   ac_status=$?
2018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019   (exit $ac_status); }
2020 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2021   (eval $ac_compiler -V </dev/null >&5) 2>&5
2022   ac_status=$?
2023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024   (exit $ac_status); }
2025
2026 cat >conftest.$ac_ext <<_ACEOF
2027 #line $LINENO "configure"
2028 #include "confdefs.h"
2029
2030 #ifdef F77_DUMMY_MAIN
2031 #  ifdef __cplusplus
2032      extern "C"
2033 #  endif
2034    int F77_DUMMY_MAIN() { return 1; }
2035 #endif
2036 int
2037 main ()
2038 {
2039
2040   ;
2041   return 0;
2042 }
2043 _ACEOF
2044 ac_clean_files_save=$ac_clean_files
2045 ac_clean_files="$ac_clean_files a.out a.exe"
2046 # Try to create an executable without -o first, disregard a.out.
2047 # It will help us diagnose broken compilers, and finding out an intuition
2048 # of exeext.
2049 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2050 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2051 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2052 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2053   (eval $ac_link_default) 2>&5
2054   ac_status=$?
2055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056   (exit $ac_status); }; then
2057   # Find the output, starting from the most likely.  This scheme is
2058 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2059 # resort.
2060
2061 # Be careful to initialize this variable, since it used to be cached.
2062 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2063 ac_cv_exeext=
2064 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2065                 ls a.out conftest 2>/dev/null;
2066                 ls a.* conftest.* 2>/dev/null`; do
2067   case $ac_file in
2068     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2069     a.out ) # We found the default executable, but exeext='' is most
2070             # certainly right.
2071             break;;
2072     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2073           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2074           export ac_cv_exeext
2075           break;;
2076     * ) break;;
2077   esac
2078 done
2079 else
2080   echo "$as_me: failed program was:" >&5
2081 cat conftest.$ac_ext >&5
2082 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2083 echo "$as_me: error: C compiler cannot create executables" >&2;}
2084    { (exit 77); exit 77; }; }
2085 fi
2086
2087 ac_exeext=$ac_cv_exeext
2088 echo "$as_me:$LINENO: result: $ac_file" >&5
2089 echo "${ECHO_T}$ac_file" >&6
2090
2091 # Check the compiler produces executables we can run.  If not, either
2092 # the compiler is broken, or we cross compile.
2093 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2094 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2095 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2096 # If not cross compiling, check that we can run a simple program.
2097 if test "$cross_compiling" != yes; then
2098   if { ac_try='./$ac_file'
2099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2100   (eval $ac_try) 2>&5
2101   ac_status=$?
2102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103   (exit $ac_status); }; }; then
2104     cross_compiling=no
2105   else
2106     if test "$cross_compiling" = maybe; then
2107         cross_compiling=yes
2108     else
2109         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2110 If you meant to cross compile, use \`--host'." >&5
2111 echo "$as_me: error: cannot run C compiled programs.
2112 If you meant to cross compile, use \`--host'." >&2;}
2113    { (exit 1); exit 1; }; }
2114     fi
2115   fi
2116 fi
2117 echo "$as_me:$LINENO: result: yes" >&5
2118 echo "${ECHO_T}yes" >&6
2119
2120 rm -f a.out a.exe conftest$ac_cv_exeext
2121 ac_clean_files=$ac_clean_files_save
2122 # Check the compiler produces executables we can run.  If not, either
2123 # the compiler is broken, or we cross compile.
2124 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2125 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2126 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2127 echo "${ECHO_T}$cross_compiling" >&6
2128
2129 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2130 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2132   (eval $ac_link) 2>&5
2133   ac_status=$?
2134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135   (exit $ac_status); }; then
2136   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2137 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2138 # work properly (i.e., refer to `conftest.exe'), while it won't with
2139 # `rm'.
2140 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2141   case $ac_file in
2142     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2143     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2144           export ac_cv_exeext
2145           break;;
2146     * ) break;;
2147   esac
2148 done
2149 else
2150   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2151 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2152    { (exit 1); exit 1; }; }
2153 fi
2154
2155 rm -f conftest$ac_cv_exeext
2156 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2157 echo "${ECHO_T}$ac_cv_exeext" >&6
2158
2159 rm -f conftest.$ac_ext
2160 EXEEXT=$ac_cv_exeext
2161 ac_exeext=$EXEEXT
2162 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2163 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2164 if test "${ac_cv_objext+set}" = set; then
2165   echo $ECHO_N "(cached) $ECHO_C" >&6
2166 else
2167   cat >conftest.$ac_ext <<_ACEOF
2168 #line $LINENO "configure"
2169 #include "confdefs.h"
2170
2171 #ifdef F77_DUMMY_MAIN
2172 #  ifdef __cplusplus
2173      extern "C"
2174 #  endif
2175    int F77_DUMMY_MAIN() { return 1; }
2176 #endif
2177 int
2178 main ()
2179 {
2180
2181   ;
2182   return 0;
2183 }
2184 _ACEOF
2185 rm -f conftest.o conftest.obj
2186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2187   (eval $ac_compile) 2>&5
2188   ac_status=$?
2189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190   (exit $ac_status); }; then
2191   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2192   case $ac_file in
2193     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2194     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2195        break;;
2196   esac
2197 done
2198 else
2199   echo "$as_me: failed program was:" >&5
2200 cat conftest.$ac_ext >&5
2201 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2202 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2203    { (exit 1); exit 1; }; }
2204 fi
2205
2206 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2207 fi
2208 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2209 echo "${ECHO_T}$ac_cv_objext" >&6
2210 OBJEXT=$ac_cv_objext
2211 ac_objext=$OBJEXT
2212 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2213 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2214 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2215   echo $ECHO_N "(cached) $ECHO_C" >&6
2216 else
2217   cat >conftest.$ac_ext <<_ACEOF
2218 #line $LINENO "configure"
2219 #include "confdefs.h"
2220
2221 #ifdef F77_DUMMY_MAIN
2222 #  ifdef __cplusplus
2223      extern "C"
2224 #  endif
2225    int F77_DUMMY_MAIN() { return 1; }
2226 #endif
2227 int
2228 main ()
2229 {
2230 #ifndef __GNUC__
2231        choke me
2232 #endif
2233
2234   ;
2235   return 0;
2236 }
2237 _ACEOF
2238 rm -f conftest.$ac_objext
2239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2240   (eval $ac_compile) 2>&5
2241   ac_status=$?
2242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243   (exit $ac_status); } &&
2244          { ac_try='test -s conftest.$ac_objext'
2245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2246   (eval $ac_try) 2>&5
2247   ac_status=$?
2248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249   (exit $ac_status); }; }; then
2250   ac_compiler_gnu=yes
2251 else
2252   echo "$as_me: failed program was:" >&5
2253 cat conftest.$ac_ext >&5
2254 ac_compiler_gnu=no
2255 fi
2256 rm -f conftest.$ac_objext conftest.$ac_ext
2257 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2258
2259 fi
2260 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2261 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2262 GCC=`test $ac_compiler_gnu = yes && echo yes`
2263 ac_test_CFLAGS=${CFLAGS+set}
2264 ac_save_CFLAGS=$CFLAGS
2265 CFLAGS="-g"
2266 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2267 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2268 if test "${ac_cv_prog_cc_g+set}" = set; then
2269   echo $ECHO_N "(cached) $ECHO_C" >&6
2270 else
2271   cat >conftest.$ac_ext <<_ACEOF
2272 #line $LINENO "configure"
2273 #include "confdefs.h"
2274
2275 #ifdef F77_DUMMY_MAIN
2276 #  ifdef __cplusplus
2277      extern "C"
2278 #  endif
2279    int F77_DUMMY_MAIN() { return 1; }
2280 #endif
2281 int
2282 main ()
2283 {
2284
2285   ;
2286   return 0;
2287 }
2288 _ACEOF
2289 rm -f conftest.$ac_objext
2290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2291   (eval $ac_compile) 2>&5
2292   ac_status=$?
2293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294   (exit $ac_status); } &&
2295          { ac_try='test -s conftest.$ac_objext'
2296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297   (eval $ac_try) 2>&5
2298   ac_status=$?
2299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300   (exit $ac_status); }; }; then
2301   ac_cv_prog_cc_g=yes
2302 else
2303   echo "$as_me: failed program was:" >&5
2304 cat conftest.$ac_ext >&5
2305 ac_cv_prog_cc_g=no
2306 fi
2307 rm -f conftest.$ac_objext conftest.$ac_ext
2308 fi
2309 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2310 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2311 if test "$ac_test_CFLAGS" = set; then
2312   CFLAGS=$ac_save_CFLAGS
2313 elif test $ac_cv_prog_cc_g = yes; then
2314   if test "$GCC" = yes; then
2315     CFLAGS="-g -O2"
2316   else
2317     CFLAGS="-g"
2318   fi
2319 else
2320   if test "$GCC" = yes; then
2321     CFLAGS="-O2"
2322   else
2323     CFLAGS=
2324   fi
2325 fi
2326 # Some people use a C++ compiler to compile C.  Since we use `exit',
2327 # in C++ we need to declare it.  In case someone uses the same compiler
2328 # for both compiling C and C++ we need to have the C++ compiler decide
2329 # the declaration of exit, since it's the most demanding environment.
2330 cat >conftest.$ac_ext <<_ACEOF
2331 #ifndef __cplusplus
2332   choke me
2333 #endif
2334 _ACEOF
2335 rm -f conftest.$ac_objext
2336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2337   (eval $ac_compile) 2>&5
2338   ac_status=$?
2339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340   (exit $ac_status); } &&
2341          { ac_try='test -s conftest.$ac_objext'
2342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343   (eval $ac_try) 2>&5
2344   ac_status=$?
2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346   (exit $ac_status); }; }; then
2347   for ac_declaration in \
2348    ''\
2349    '#include <stdlib.h>' \
2350    'extern "C" void std::exit (int) throw (); using std::exit;' \
2351    'extern "C" void std::exit (int); using std::exit;' \
2352    'extern "C" void exit (int) throw ();' \
2353    'extern "C" void exit (int);' \
2354    'void exit (int);'
2355 do
2356   cat >conftest.$ac_ext <<_ACEOF
2357 #line $LINENO "configure"
2358 #include "confdefs.h"
2359 #include <stdlib.h>
2360 $ac_declaration
2361 #ifdef F77_DUMMY_MAIN
2362 #  ifdef __cplusplus
2363      extern "C"
2364 #  endif
2365    int F77_DUMMY_MAIN() { return 1; }
2366 #endif
2367 int
2368 main ()
2369 {
2370 exit (42);
2371   ;
2372   return 0;
2373 }
2374 _ACEOF
2375 rm -f conftest.$ac_objext
2376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2377   (eval $ac_compile) 2>&5
2378   ac_status=$?
2379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380   (exit $ac_status); } &&
2381          { ac_try='test -s conftest.$ac_objext'
2382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383   (eval $ac_try) 2>&5
2384   ac_status=$?
2385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386   (exit $ac_status); }; }; then
2387   :
2388 else
2389   echo "$as_me: failed program was:" >&5
2390 cat conftest.$ac_ext >&5
2391 continue
2392 fi
2393 rm -f conftest.$ac_objext conftest.$ac_ext
2394   cat >conftest.$ac_ext <<_ACEOF
2395 #line $LINENO "configure"
2396 #include "confdefs.h"
2397 $ac_declaration
2398 #ifdef F77_DUMMY_MAIN
2399 #  ifdef __cplusplus
2400      extern "C"
2401 #  endif
2402    int F77_DUMMY_MAIN() { return 1; }
2403 #endif
2404 int
2405 main ()
2406 {
2407 exit (42);
2408   ;
2409   return 0;
2410 }
2411 _ACEOF
2412 rm -f conftest.$ac_objext
2413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2414   (eval $ac_compile) 2>&5
2415   ac_status=$?
2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417   (exit $ac_status); } &&
2418          { ac_try='test -s conftest.$ac_objext'
2419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420   (eval $ac_try) 2>&5
2421   ac_status=$?
2422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); }; }; then
2424   break
2425 else
2426   echo "$as_me: failed program was:" >&5
2427 cat conftest.$ac_ext >&5
2428 fi
2429 rm -f conftest.$ac_objext conftest.$ac_ext
2430 done
2431 rm -f conftest*
2432 if test -n "$ac_declaration"; then
2433   echo '#ifdef __cplusplus' >>confdefs.h
2434   echo $ac_declaration      >>confdefs.h
2435   echo '#endif'             >>confdefs.h
2436 fi
2437
2438 else
2439   echo "$as_me: failed program was:" >&5
2440 cat conftest.$ac_ext >&5
2441 fi
2442 rm -f conftest.$ac_objext conftest.$ac_ext
2443 ac_ext=c
2444 ac_cpp='$CPP $CPPFLAGS'
2445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2448
2449 # Read the template
2450 . "$srcdir/src/template/$template" || exit
2451
2452 if test "$ac_env_CFLAGS_set" = set; then
2453   CFLAGS=$ac_env_CFLAGS_value
2454 fi
2455 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2456   CFLAGS="$CFLAGS -g"
2457 fi
2458 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2459 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2460 # Check if the compiler still works with the template settings
2461 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2462 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2463
2464 cat >conftest.$ac_ext <<_ACEOF
2465 #line $LINENO "configure"
2466 #include "confdefs.h"
2467
2468 #ifdef F77_DUMMY_MAIN
2469 #  ifdef __cplusplus
2470      extern "C"
2471 #  endif
2472    int F77_DUMMY_MAIN() { return 1; }
2473 #endif
2474 int
2475 main ()
2476 {
2477 return 0;
2478   ;
2479   return 0;
2480 }
2481 _ACEOF
2482 rm -f conftest.$ac_objext conftest$ac_exeext
2483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2484   (eval $ac_link) 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); } &&
2488          { ac_try='test -s conftest$ac_exeext'
2489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490   (eval $ac_try) 2>&5
2491   ac_status=$?
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); }; }; then
2494   echo "$as_me:$LINENO: result: yes" >&5
2495 echo "${ECHO_T}yes" >&6
2496 else
2497   echo "$as_me: failed program was:" >&5
2498 cat conftest.$ac_ext >&5
2499 echo "$as_me:$LINENO: result: no" >&5
2500 echo "${ECHO_T}no" >&6
2501    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2502 echo "$as_me: error: cannot proceed" >&2;}
2503    { (exit 1); exit 1; }; }
2504 fi
2505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2506 ac_ext=c
2507 ac_cpp='$CPP $CPPFLAGS'
2508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2511 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2512 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2513 # On Suns, sometimes $CPP names a directory.
2514 if test -n "$CPP" && test -d "$CPP"; then
2515   CPP=
2516 fi
2517 if test -z "$CPP"; then
2518   if test "${ac_cv_prog_CPP+set}" = set; then
2519   echo $ECHO_N "(cached) $ECHO_C" >&6
2520 else
2521       # Double quotes because CPP needs to be expanded
2522     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2523     do
2524       ac_preproc_ok=false
2525 for ac_c_preproc_warn_flag in '' yes
2526 do
2527   # Use a header file that comes with gcc, so configuring glibc
2528   # with a fresh cross-compiler works.
2529   # On the NeXT, cc -E runs the code through the compiler's parser,
2530   # not just through cpp. "Syntax error" is here to catch this case.
2531   cat >conftest.$ac_ext <<_ACEOF
2532 #line $LINENO "configure"
2533 #include "confdefs.h"
2534 #include <assert.h>
2535                      Syntax error
2536 _ACEOF
2537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2538   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2539   ac_status=$?
2540   egrep -v '^ *\+' conftest.er1 >conftest.err
2541   rm -f conftest.er1
2542   cat conftest.err >&5
2543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544   (exit $ac_status); } >/dev/null; then
2545   if test -s conftest.err; then
2546     ac_cpp_err=$ac_c_preproc_warn_flag
2547   else
2548     ac_cpp_err=
2549   fi
2550 else
2551   ac_cpp_err=yes
2552 fi
2553 if test -z "$ac_cpp_err"; then
2554   :
2555 else
2556   echo "$as_me: failed program was:" >&5
2557   cat conftest.$ac_ext >&5
2558   # Broken: fails on valid input.
2559 continue
2560 fi
2561 rm -f conftest.err conftest.$ac_ext
2562
2563   # OK, works on sane cases.  Now check whether non-existent headers
2564   # can be detected and how.
2565   cat >conftest.$ac_ext <<_ACEOF
2566 #line $LINENO "configure"
2567 #include "confdefs.h"
2568 #include <ac_nonexistent.h>
2569 _ACEOF
2570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2571   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2572   ac_status=$?
2573   egrep -v '^ *\+' conftest.er1 >conftest.err
2574   rm -f conftest.er1
2575   cat conftest.err >&5
2576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577   (exit $ac_status); } >/dev/null; then
2578   if test -s conftest.err; then
2579     ac_cpp_err=$ac_c_preproc_warn_flag
2580   else
2581     ac_cpp_err=
2582   fi
2583 else
2584   ac_cpp_err=yes
2585 fi
2586 if test -z "$ac_cpp_err"; then
2587   # Broken: success on invalid input.
2588 continue
2589 else
2590   echo "$as_me: failed program was:" >&5
2591   cat conftest.$ac_ext >&5
2592   # Passes both tests.
2593 ac_preproc_ok=:
2594 break
2595 fi
2596 rm -f conftest.err conftest.$ac_ext
2597
2598 done
2599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2600 rm -f conftest.err conftest.$ac_ext
2601 if $ac_preproc_ok; then
2602   break
2603 fi
2604
2605     done
2606     ac_cv_prog_CPP=$CPP
2607
2608 fi
2609   CPP=$ac_cv_prog_CPP
2610 else
2611   ac_cv_prog_CPP=$CPP
2612 fi
2613 echo "$as_me:$LINENO: result: $CPP" >&5
2614 echo "${ECHO_T}$CPP" >&6
2615 ac_preproc_ok=false
2616 for ac_c_preproc_warn_flag in '' yes
2617 do
2618   # Use a header file that comes with gcc, so configuring glibc
2619   # with a fresh cross-compiler works.
2620   # On the NeXT, cc -E runs the code through the compiler's parser,
2621   # not just through cpp. "Syntax error" is here to catch this case.
2622   cat >conftest.$ac_ext <<_ACEOF
2623 #line $LINENO "configure"
2624 #include "confdefs.h"
2625 #include <assert.h>
2626                      Syntax error
2627 _ACEOF
2628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2629   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2630   ac_status=$?
2631   egrep -v '^ *\+' conftest.er1 >conftest.err
2632   rm -f conftest.er1
2633   cat conftest.err >&5
2634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635   (exit $ac_status); } >/dev/null; then
2636   if test -s conftest.err; then
2637     ac_cpp_err=$ac_c_preproc_warn_flag
2638   else
2639     ac_cpp_err=
2640   fi
2641 else
2642   ac_cpp_err=yes
2643 fi
2644 if test -z "$ac_cpp_err"; then
2645   :
2646 else
2647   echo "$as_me: failed program was:" >&5
2648   cat conftest.$ac_ext >&5
2649   # Broken: fails on valid input.
2650 continue
2651 fi
2652 rm -f conftest.err conftest.$ac_ext
2653
2654   # OK, works on sane cases.  Now check whether non-existent headers
2655   # can be detected and how.
2656   cat >conftest.$ac_ext <<_ACEOF
2657 #line $LINENO "configure"
2658 #include "confdefs.h"
2659 #include <ac_nonexistent.h>
2660 _ACEOF
2661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2662   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2663   ac_status=$?
2664   egrep -v '^ *\+' conftest.er1 >conftest.err
2665   rm -f conftest.er1
2666   cat conftest.err >&5
2667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668   (exit $ac_status); } >/dev/null; then
2669   if test -s conftest.err; then
2670     ac_cpp_err=$ac_c_preproc_warn_flag
2671   else
2672     ac_cpp_err=
2673   fi
2674 else
2675   ac_cpp_err=yes
2676 fi
2677 if test -z "$ac_cpp_err"; then
2678   # Broken: success on invalid input.
2679 continue
2680 else
2681   echo "$as_me: failed program was:" >&5
2682   cat conftest.$ac_ext >&5
2683   # Passes both tests.
2684 ac_preproc_ok=:
2685 break
2686 fi
2687 rm -f conftest.err conftest.$ac_ext
2688
2689 done
2690 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2691 rm -f conftest.err conftest.$ac_ext
2692 if $ac_preproc_ok; then
2693   :
2694 else
2695   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2696 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2697    { (exit 1); exit 1; }; }
2698 fi
2699
2700 ac_ext=c
2701 ac_cpp='$CPP $CPPFLAGS'
2702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2705
2706
2707
2708 # Create compiler version string
2709 if test x"$GCC" = x"yes" ; then
2710   cc_string="GCC `${CC} --version | sed q`"
2711 else
2712   cc_string=$CC
2713 fi
2714
2715 cat >>confdefs.h <<_ACEOF
2716 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2717 _ACEOF
2718
2719
2720
2721 #
2722 # Automatic dependency tracking
2723 #
2724
2725
2726 # Check whether --enable-depend or --disable-depend was given.
2727 if test "${enable_depend+set}" = set; then
2728   enableval="$enable_depend"
2729
2730   case $enableval in
2731     yes)
2732       autodepend=yes
2733       ;;
2734     no)
2735       :
2736       ;;
2737     *)
2738       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2739 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2740    { (exit 1); exit 1; }; }
2741       ;;
2742   esac
2743
2744 else
2745   enable_depend=no
2746
2747 fi;
2748
2749
2750
2751
2752 #
2753 # Enable assert checks
2754 #
2755
2756
2757 # Check whether --enable-cassert or --disable-cassert was given.
2758 if test "${enable_cassert+set}" = set; then
2759   enableval="$enable_cassert"
2760
2761   case $enableval in
2762     yes)
2763
2764 cat >>confdefs.h <<\_ACEOF
2765 #define USE_ASSERT_CHECKING 1
2766 _ACEOF
2767
2768       ;;
2769     no)
2770       :
2771       ;;
2772     *)
2773       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2774 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2775    { (exit 1); exit 1; }; }
2776       ;;
2777   esac
2778
2779 else
2780   enable_cassert=no
2781
2782 fi;
2783
2784
2785
2786 #
2787 # Include directories
2788 #
2789 ac_save_IFS=$IFS
2790 IFS="${IFS}:"
2791 # SRCH_INC comes from the template file
2792 for dir in $with_includes $SRCH_INC; do
2793   if test -d "$dir"; then
2794     INCLUDES="$INCLUDES -I$dir"
2795   else
2796     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2797 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2798   fi
2799 done
2800 IFS=$ac_save_IFS
2801
2802
2803
2804 #
2805 # Library directories
2806 #
2807 ac_save_IFS=$IFS
2808 IFS="${IFS}:"
2809 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2810 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2811   if test -d "$dir"; then
2812     LIBDIRS="$LIBDIRS -L$dir"
2813   else
2814     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2815 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2816   fi
2817 done
2818 IFS=$ac_save_IFS
2819
2820
2821 #
2822 # Tcl/Tk
2823 #
2824 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2825 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2826
2827
2828
2829 # Check whether --with-tcl or --without-tcl was given.
2830 if test "${with_tcl+set}" = set; then
2831   withval="$with_tcl"
2832
2833   case $withval in
2834     yes)
2835       :
2836       ;;
2837     no)
2838       :
2839       ;;
2840     *)
2841       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2842 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2843    { (exit 1); exit 1; }; }
2844       ;;
2845   esac
2846
2847 else
2848   with_tcl=no
2849
2850 fi;
2851
2852 echo "$as_me:$LINENO: result: $with_tcl" >&5
2853 echo "${ECHO_T}$with_tcl" >&6
2854
2855
2856 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2857 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2858 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2859 if test "$with_tcl" = yes; then
2860
2861
2862
2863 # Check whether --with-tk or --without-tk was given.
2864 if test "${with_tk+set}" = set; then
2865   withval="$with_tk"
2866
2867   case $withval in
2868     yes)
2869       :
2870       ;;
2871     no)
2872       :
2873       ;;
2874     *)
2875       { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2876 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2877    { (exit 1); exit 1; }; }
2878       ;;
2879   esac
2880
2881 else
2882   with_tk=yes
2883
2884 fi;
2885
2886 else
2887   with_tk=no
2888 fi
2889 echo "$as_me:$LINENO: result: $with_tk" >&5
2890 echo "${ECHO_T}$with_tk" >&6
2891
2892
2893
2894 # We see if the path to the Tcl/Tk configuration scripts is specified.
2895 # This will override the use of tclsh to find the paths to search.
2896
2897
2898
2899
2900 # Check whether --with-tclconfig or --without-tclconfig was given.
2901 if test "${with_tclconfig+set}" = set; then
2902   withval="$with_tclconfig"
2903
2904   case $withval in
2905     yes)
2906       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2907 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2908    { (exit 1); exit 1; }; }
2909       ;;
2910     no)
2911       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2912 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2913    { (exit 1); exit 1; }; }
2914       ;;
2915     *)
2916
2917       ;;
2918   esac
2919
2920 fi;
2921
2922
2923 # We see if the path to the Tk configuration scripts is specified.
2924 # This will override the use of tclsh to find the paths to search.
2925
2926
2927
2928
2929 # Check whether --with-tkconfig or --without-tkconfig was given.
2930 if test "${with_tkconfig+set}" = set; then
2931   withval="$with_tkconfig"
2932
2933   case $withval in
2934     yes)
2935       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2936 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2937    { (exit 1); exit 1; }; }
2938       ;;
2939     no)
2940       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2941 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2942    { (exit 1); exit 1; }; }
2943       ;;
2944     *)
2945
2946       ;;
2947   esac
2948
2949 fi;
2950
2951
2952 #
2953 # Optionally build Perl modules (Pg.pm and PL/Perl)
2954 #
2955 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2956 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2957
2958
2959
2960 # Check whether --with-perl or --without-perl was given.
2961 if test "${with_perl+set}" = set; then
2962   withval="$with_perl"
2963
2964   case $withval in
2965     yes)
2966       :
2967       ;;
2968     no)
2969       :
2970       ;;
2971     *)
2972       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
2973 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
2974    { (exit 1); exit 1; }; }
2975       ;;
2976   esac
2977
2978 else
2979   with_perl=no
2980
2981 fi;
2982
2983 echo "$as_me:$LINENO: result: $with_perl" >&5
2984 echo "${ECHO_T}$with_perl" >&6
2985
2986
2987 #
2988 # Optionally build Python interface module
2989 #
2990 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
2991 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
2992
2993
2994
2995 # Check whether --with-python or --without-python was given.
2996 if test "${with_python+set}" = set; then
2997   withval="$with_python"
2998
2999   case $withval in
3000     yes)
3001       :
3002       ;;
3003     no)
3004       :
3005       ;;
3006     *)
3007       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3008 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3009    { (exit 1); exit 1; }; }
3010       ;;
3011   esac
3012
3013 else
3014   with_python=no
3015
3016 fi;
3017
3018 echo "$as_me:$LINENO: result: $with_python" >&5
3019 echo "${ECHO_T}$with_python" >&6
3020
3021
3022 #
3023 # Optionally build the Java/JDBC tools
3024 #
3025 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3026 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3027
3028
3029
3030 # Check whether --with-java or --without-java was given.
3031 if test "${with_java+set}" = set; then
3032   withval="$with_java"
3033
3034   case $withval in
3035     yes)
3036       echo "$as_me:$LINENO: result: yes" >&5
3037 echo "${ECHO_T}yes" >&6
3038
3039   for ac_prog in jakarta-ant ant ant.sh ant.bat
3040 do
3041   # Extract the first word of "$ac_prog", so it can be a program name with args.
3042 set dummy $ac_prog; ac_word=$2
3043 echo "$as_me:$LINENO: checking for $ac_word" >&5
3044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3045 if test "${ac_cv_path_ANT+set}" = set; then
3046   echo $ECHO_N "(cached) $ECHO_C" >&6
3047 else
3048   case $ANT in
3049   [\\/]* | ?:[\\/]*)
3050   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3051   ;;
3052   *)
3053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH
3055 do
3056   IFS=$as_save_IFS
3057   test -z "$as_dir" && as_dir=.
3058   for ac_exec_ext in '' $ac_executable_extensions; do
3059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3060     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3062     break 2
3063   fi
3064 done
3065 done
3066
3067   ;;
3068 esac
3069 fi
3070 ANT=$ac_cv_path_ANT
3071
3072 if test -n "$ANT"; then
3073   echo "$as_me:$LINENO: result: $ANT" >&5
3074 echo "${ECHO_T}$ANT" >&6
3075 else
3076   echo "$as_me:$LINENO: result: no" >&5
3077 echo "${ECHO_T}no" >&6
3078 fi
3079
3080   test -n "$ANT" && break
3081 done
3082
3083
3084   echo "$as_me:$LINENO: checking whether $ANT works" >&5
3085 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3086 if test "${pgac_cv_prog_ant_works+set}" = set; then
3087   echo $ECHO_N "(cached) $ECHO_C" >&6
3088 else
3089
3090     cat > conftest.java << EOF
3091 public class conftest {
3092     int testmethod(int a, int b) {
3093         return a + b;
3094     }
3095 }
3096 EOF
3097
3098     cat > conftest.xml << EOF
3099 <project name="conftest" default="conftest">
3100  <target name="conftest">
3101   <javac srcdir="." includes="conftest.java">
3102   </javac>
3103  </target>
3104 </project>
3105 EOF
3106
3107     pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3108     { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3109   (eval $pgac_cmd) 2>&5
3110   ac_status=$?
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); }
3113     pgac_save_status=$?
3114     if test $? = 0 && test -f ./conftest.class ; then
3115       pgac_cv_prog_ant_works=yes
3116     else
3117       echo "configure: failed java program was:" >&5
3118       cat conftest.java >&5
3119       echo "configure: failed build file was:" >&5
3120       cat conftest.xml >&5
3121       pgac_cv_prog_ant_works=no
3122     fi
3123
3124     rm -f conftest* core core.* *.core
3125
3126 fi
3127 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3128 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3129
3130   if test "$pgac_cv_prog_ant_works" != yes; then
3131     { { echo "$as_me:$LINENO: error: ant does not work" >&5
3132 echo "$as_me: error: ant does not work" >&2;}
3133    { (exit 1); exit 1; }; }
3134   fi
3135
3136
3137 if test -z "$ANT"; then
3138   { { echo "$as_me:$LINENO: error: Ant is required to build Java components" >&5
3139 echo "$as_me: error: Ant is required to build Java components" >&2;}
3140    { (exit 1); exit 1; }; }
3141 fi
3142       ;;
3143     no)
3144       echo "$as_me:$LINENO: result: no" >&5
3145 echo "${ECHO_T}no" >&6
3146       ;;
3147     *)
3148       { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3149 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3150    { (exit 1); exit 1; }; }
3151       ;;
3152   esac
3153
3154 else
3155   with_java=no
3156 echo "$as_me:$LINENO: result: no" >&5
3157 echo "${ECHO_T}no" >&6
3158 fi;
3159
3160
3161
3162
3163 #
3164 # Kerberos 4
3165 #
3166 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3167 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3168
3169
3170
3171 # Check whether --with-krb4 or --without-krb4 was given.
3172 if test "${with_krb4+set}" = set; then
3173   withval="$with_krb4"
3174
3175   case $withval in
3176     yes)
3177       krb4_prefix=/usr/athena
3178       ;;
3179     no)
3180       :
3181       ;;
3182     *)
3183       with_krb4=yes
3184 krb4_prefix=$withval
3185       ;;
3186   esac
3187
3188 else
3189   with_krb4=no
3190 fi;
3191
3192
3193 if test "$with_krb4" = yes; then
3194
3195   echo "$as_me:$LINENO: result: yes" >&5
3196 echo "${ECHO_T}yes" >&6
3197
3198 cat >>confdefs.h <<\_ACEOF
3199 #define KRB4 1
3200 _ACEOF
3201
3202
3203   if test -d "$krb4_prefix/include"; then
3204     INCLUDES="$INCLUDES -I$krb4_prefix/include"
3205   fi
3206   if test -d "$krb4_prefix/lib"; then
3207     LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3208   fi
3209
3210   krb_srvtab="/etc/srvtab"
3211
3212 else
3213   echo "$as_me:$LINENO: result: no" >&5
3214 echo "${ECHO_T}no" >&6
3215 fi
3216
3217
3218
3219
3220
3221 #
3222 # Kerberos 5
3223 #
3224 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3225 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3226
3227
3228
3229 # Check whether --with-krb5 or --without-krb5 was given.
3230 if test "${with_krb5+set}" = set; then
3231   withval="$with_krb5"
3232
3233   case $withval in
3234     yes)
3235       krb5_prefix=/usr/athena
3236       ;;
3237     no)
3238       :
3239       ;;
3240     *)
3241       with_krb5=yes
3242 krb5_prefix=$withval
3243       ;;
3244   esac
3245
3246 else
3247   with_krb5=no
3248 fi;
3249
3250
3251 if test "$with_krb5" = yes; then
3252
3253   echo "$as_me:$LINENO: result: yes" >&5
3254 echo "${ECHO_T}yes" >&6
3255
3256 cat >>confdefs.h <<\_ACEOF
3257 #define KRB5 1
3258 _ACEOF
3259
3260
3261   if test -d "$krb5_prefix/include"; then
3262     INCLUDES="$INCLUDES -I$krb5_prefix/include"
3263   fi
3264   if test -d "$krb5_prefix/lib"; then
3265     LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3266   fi
3267
3268   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3269
3270 else
3271   echo "$as_me:$LINENO: result: no" >&5
3272 echo "${ECHO_T}no" >&6
3273 fi
3274
3275
3276
3277
3278
3279 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3280 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3281   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3282 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3283    { (exit 1); exit 1; }; }
3284 fi
3285
3286
3287
3288
3289 #
3290 # Kerberos configuration parameters
3291 #
3292
3293
3294
3295 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3296 if test "${with_krb_srvnam+set}" = set; then
3297   withval="$with_krb_srvnam"
3298
3299   case $withval in
3300     yes)
3301       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3302 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3303    { (exit 1); exit 1; }; }
3304       ;;
3305     no)
3306       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3307 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3308    { (exit 1); exit 1; }; }
3309       ;;
3310     *)
3311
3312       ;;
3313   esac
3314
3315 else
3316   with_krb_srvnam="postgres"
3317 fi;
3318
3319
3320 cat >>confdefs.h <<_ACEOF
3321 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3322 _ACEOF
3323
3324
3325
3326 #
3327 # PAM
3328 #
3329 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3330 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3331
3332
3333
3334 # Check whether --with-pam or --without-pam was given.
3335 if test "${with_pam+set}" = set; then
3336   withval="$with_pam"
3337
3338   case $withval in
3339     yes)
3340
3341 cat >>confdefs.h <<\_ACEOF
3342 #define USE_PAM 1
3343 _ACEOF
3344
3345       ;;
3346     no)
3347       :
3348       ;;
3349     *)
3350       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3351 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3352    { (exit 1); exit 1; }; }
3353       ;;
3354   esac
3355
3356 else
3357   with_pam=no
3358
3359 fi;
3360
3361 echo "$as_me:$LINENO: result: $with_pam" >&5
3362 echo "${ECHO_T}$with_pam" >&6
3363
3364
3365
3366 #
3367 # OpenSSL
3368 #
3369
3370
3371
3372 # Check whether --with-openssl or --without-openssl was given.
3373 if test "${with_openssl+set}" = set; then
3374   withval="$with_openssl"
3375
3376   case $withval in
3377     yes)
3378       openssl_prefix=/usr/local/ssl
3379       ;;
3380     no)
3381       :
3382       ;;
3383     *)
3384       with_openssl=yes
3385 openssl_prefix=$withval
3386       ;;
3387   esac
3388
3389 else
3390   with_openssl=no
3391 fi;
3392
3393
3394 if test "$with_openssl" = yes; then
3395
3396   echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3397 echo "${ECHO_T}building with OpenSSL support" >&6
3398
3399 cat >>confdefs.h <<\_ACEOF
3400 #define USE_SSL 1
3401 _ACEOF
3402
3403
3404   if test -d "${openssl_prefix}/include" ; then
3405     INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3406   fi
3407   if test -d "${openssl_prefix}/lib" ; then
3408     LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3409   fi
3410
3411 fi
3412
3413
3414
3415
3416
3417 #
3418 # Readline
3419 #
3420
3421
3422
3423 # Check whether --with-readline or --without-readline was given.
3424 if test "${with_readline+set}" = set; then
3425   withval="$with_readline"
3426
3427   case $withval in
3428     yes)
3429       :
3430       ;;
3431     no)
3432       :
3433       ;;
3434     *)
3435       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3436 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3437    { (exit 1); exit 1; }; }
3438       ;;
3439   esac
3440
3441 else
3442   with_readline=yes
3443
3444 fi;
3445
3446
3447 #
3448 # Zlib
3449 #
3450
3451
3452
3453 # Check whether --with-zlib or --without-zlib was given.
3454 if test "${with_zlib+set}" = set; then
3455   withval="$with_zlib"
3456
3457   case $withval in
3458     yes)
3459       :
3460       ;;
3461     no)
3462       :
3463       ;;
3464     *)
3465       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3466 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3467    { (exit 1); exit 1; }; }
3468       ;;
3469   esac
3470
3471 else
3472   with_zlib=yes
3473
3474 fi;
3475
3476
3477
3478
3479 #
3480 # Optionally enable the building of the ODBC driver
3481 #
3482
3483 # Old option name
3484 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
3485   enable_odbc=$with_odbc
3486 fi
3487
3488 echo "$as_me:$LINENO: checking whether to build the ODBC driver" >&5
3489 echo $ECHO_N "checking whether to build the ODBC driver... $ECHO_C" >&6
3490
3491
3492 # Check whether --enable-odbc or --disable-odbc was given.
3493 if test "${enable_odbc+set}" = set; then
3494   enableval="$enable_odbc"
3495
3496   case $enableval in
3497     yes)
3498       :
3499       ;;
3500     no)
3501       :
3502       ;;
3503     *)
3504       { { echo "$as_me:$LINENO: error: no argument expected for --enable-odbc option" >&5
3505 echo "$as_me: error: no argument expected for --enable-odbc option" >&2;}
3506    { (exit 1); exit 1; }; }
3507       ;;
3508   esac
3509
3510 else
3511   enable_odbc=no
3512
3513 fi;
3514
3515
3516
3517
3518 # Check whether --with-unixodbc or --without-unixodbc was given.
3519 if test "${with_unixodbc+set}" = set; then
3520   withval="$with_unixodbc"
3521
3522   case $withval in
3523     yes)
3524       :
3525       ;;
3526     no)
3527       :
3528       ;;
3529     *)
3530       { { echo "$as_me:$LINENO: error: no argument expected for --with-unixodbc option" >&5
3531 echo "$as_me: error: no argument expected for --with-unixodbc option" >&2;}
3532    { (exit 1); exit 1; }; }
3533       ;;
3534   esac
3535
3536 else
3537   with_unixodbc=no
3538
3539 fi;
3540
3541
3542
3543
3544 # Check whether --with-iodbc or --without-iodbc was given.
3545 if test "${with_iodbc+set}" = set; then
3546   withval="$with_iodbc"
3547
3548   case $withval in
3549     yes)
3550       :
3551       ;;
3552     no)
3553       :
3554       ;;
3555     *)
3556       { { echo "$as_me:$LINENO: error: no argument expected for --with-iodbc option" >&5
3557 echo "$as_me: error: no argument expected for --with-iodbc option" >&2;}
3558    { (exit 1); exit 1; }; }
3559       ;;
3560   esac
3561
3562 else
3563   with_iodbc=no
3564
3565 fi;
3566
3567 if test "$with_unixodbc" = yes && test "$with_iodbc" = yes; then
3568   { { echo "$as_me:$LINENO: error: ODBC driver cannot be built for both unixODBC and iODBC" >&5
3569 echo "$as_me: error: ODBC driver cannot be built for both unixODBC and iODBC" >&2;}
3570    { (exit 1); exit 1; }; }
3571 fi
3572 if test "$with_unixodbc" = yes || test "$with_iodbc" = yes; then
3573   enable_odbc=yes
3574 fi
3575 case $enable_odbc:$with_unixodbc:$with_iodbc in
3576   yes:no:no)    echo "$as_me:$LINENO: result: yes (stand-alone)" >&5
3577 echo "${ECHO_T}yes (stand-alone)" >&6;;
3578   yes:yes:no)   echo "$as_me:$LINENO: result: yes (unixODBC)" >&5
3579 echo "${ECHO_T}yes (unixODBC)" >&6
3580
3581 cat >>confdefs.h <<\_ACEOF
3582 #define WITH_UNIXODBC 1
3583 _ACEOF
3584
3585                 ;;
3586   yes:no:yes)   echo "$as_me:$LINENO: result: yes (iODBC)" >&5
3587 echo "${ECHO_T}yes (iODBC)" >&6
3588
3589 cat >>confdefs.h <<\_ACEOF
3590 #define WITH_IODBC 1
3591 _ACEOF
3592
3593                 ;;
3594   no:*)         echo "$as_me:$LINENO: result: no" >&5
3595 echo "${ECHO_T}no" >&6;;
3596 esac
3597
3598
3599
3600
3601
3602 # Allow for overriding the default location of the odbcinst.ini
3603 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
3604
3605
3606
3607 # Check whether --with-odbcinst or --without-odbcinst was given.
3608 if test "${with_odbcinst+set}" = set; then
3609   withval="$with_odbcinst"
3610
3611   case $withval in
3612     yes)
3613       { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3614 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3615    { (exit 1); exit 1; }; }
3616       ;;
3617     no)
3618       { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3619 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3620    { (exit 1); exit 1; }; }
3621       ;;
3622     *)
3623       odbcinst_ini_dir=$withval
3624       ;;
3625   esac
3626
3627 else
3628   odbcinst_ini_dir="\${sysconfdir}"
3629 fi;
3630
3631
3632
3633
3634
3635 # Assume system is ELF if it predefines __ELF__ as 1,
3636 # otherwise believe host_os based default.
3637 case $host_os in
3638     freebsd1*|freebsd2*) elf=no;;
3639     freebsd3*|freebsd4*) elf=yes;;
3640 esac
3641
3642
3643 cat >conftest.$ac_ext <<_ACEOF
3644 #line $LINENO "configure"
3645 #include "confdefs.h"
3646 #if __ELF__
3647   yes
3648 #endif
3649
3650 _ACEOF
3651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3652   egrep "yes" >/dev/null 2>&1; then
3653   ELF_SYS=true
3654 else
3655   if test "X$elf" = "Xyes" ; then
3656   ELF_SYS=true
3657 else
3658   ELF_SYS=
3659 fi
3660 fi
3661 rm -f conftest*
3662
3663
3664
3665
3666
3667 CPPFLAGS="$CPPFLAGS $INCLUDES"
3668 LDFLAGS="$LDFLAGS $LIBDIRS"
3669
3670 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3671 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3672 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3673 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3674
3675
3676 for ac_prog in gawk mawk nawk awk
3677 do
3678   # Extract the first word of "$ac_prog", so it can be a program name with args.
3679 set dummy $ac_prog; ac_word=$2
3680 echo "$as_me:$LINENO: checking for $ac_word" >&5
3681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3682 if test "${ac_cv_prog_AWK+set}" = set; then
3683   echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685   if test -n "$AWK"; then
3686   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3687 else
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 for as_dir in $PATH
3690 do
3691   IFS=$as_save_IFS
3692   test -z "$as_dir" && as_dir=.
3693   for ac_exec_ext in '' $ac_executable_extensions; do
3694   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3695     ac_cv_prog_AWK="$ac_prog"
3696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3697     break 2
3698   fi
3699 done
3700 done
3701
3702 fi
3703 fi
3704 AWK=$ac_cv_prog_AWK
3705 if test -n "$AWK"; then
3706   echo "$as_me:$LINENO: result: $AWK" >&5
3707 echo "${ECHO_T}$AWK" >&6
3708 else
3709   echo "$as_me:$LINENO: result: no" >&5
3710 echo "${ECHO_T}no" >&6
3711 fi
3712
3713   test -n "$AWK" && break
3714 done
3715
3716 echo "$as_me:$LINENO: checking for flex" >&5
3717 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3718 if test "${pgac_cv_path_flex+set}" = set; then
3719   echo $ECHO_N "(cached) $ECHO_C" >&6
3720 else
3721   # Let the user override the test
3722 if test -n "$FLEX"; then
3723   pgac_cv_path_flex=$FLEX
3724 else
3725   pgac_save_IFS=$IFS
3726   IFS=:
3727   for pgac_dir in $PATH; do
3728     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3729       pgac_dir=`pwd`
3730     fi
3731     for pgac_prog in flex lex; do
3732       pgac_candidate="$pgac_dir/$pgac_prog"
3733       if test -f "$pgac_candidate" \
3734         && $pgac_candidate --version </dev/null >/dev/null 2>&1
3735       then
3736         echo '%%'  > conftest.l
3737         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3738           if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
3739             pgac_broken_flex=$pgac_candidate
3740             continue
3741           fi
3742
3743           pgac_cv_path_flex=$pgac_candidate
3744           break 2
3745         fi
3746       fi
3747     done
3748   done
3749   IFS=$pgac_save_IFS
3750   rm -f conftest.l
3751   : ${pgac_cv_path_flex=no}
3752 fi
3753
3754 fi
3755 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3756 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3757 if test x"$pgac_cv_path_flex" = x"no"; then
3758   if test -n "$pgac_broken_flex"; then
3759     { echo "$as_me:$LINENO: WARNING:
3760 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3761 *** should get version 2.5.4 or later." >&5
3762 echo "$as_me: WARNING:
3763 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3764 *** should get version 2.5.4 or later." >&2;}
3765   fi
3766
3767   { echo "$as_me:$LINENO: WARNING:
3768 *** Without Flex you will not be able to build PostgreSQL from CVS or
3769 *** change any of the scanner definition files.  You can obtain Flex from
3770 *** a GNU mirror site.  (If you are using the official distribution of
3771 *** PostgreSQL then you do not need to worry about this because the Flex
3772 *** output is pre-generated.)" >&5
3773 echo "$as_me: WARNING:
3774 *** Without Flex you will not be able to build PostgreSQL from CVS or
3775 *** change any of the scanner definition files.  You can obtain Flex from
3776 *** a GNU mirror site.  (If you are using the official distribution of
3777 *** PostgreSQL then you do not need to worry about this because the Flex
3778 *** output is pre-generated.)" >&2;}
3779 fi
3780
3781 if test x"$pgac_cv_path_flex" = x"no"; then
3782   FLEX=
3783 else
3784   FLEX=$pgac_cv_path_flex
3785 fi
3786
3787
3788
3789
3790 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3791 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3792 LN_S=$as_ln_s
3793 if test "$LN_S" = "ln -s"; then
3794   echo "$as_me:$LINENO: result: yes" >&5
3795 echo "${ECHO_T}yes" >&6
3796 else
3797   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3798 echo "${ECHO_T}no, using $LN_S" >&6
3799 fi
3800
3801
3802 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3803 if test "${with_gnu_ld+set}" = set; then
3804   withval="$with_gnu_ld"
3805   test "$withval" = no || with_gnu_ld=yes
3806 else
3807   with_gnu_ld=no
3808 fi;
3809 ac_prog=ld
3810 if test "$GCC" = yes; then
3811   # Check if gcc -print-prog-name=ld gives a path.
3812   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3813 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3814   case $host in
3815   *-*-mingw*)
3816     # gcc leaves a trailing carriage return which upsets mingw
3817     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3818   *)
3819     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3820   esac
3821   case "$ac_prog" in
3822     # Accept absolute paths.
3823     [\\/]* | [A-Za-z]:[\\/]*)
3824       re_direlt='/[^/][^/]*/\.\./'
3825       # Canonicalize the path of ld
3826       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3827       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3828         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3829       done
3830       test -z "$LD" && LD="$ac_prog"
3831       ;;
3832   "")
3833     # If it fails, then pretend we aren't using GCC.
3834     ac_prog=ld
3835     ;;
3836   *)
3837     # If it is relative, then search for the first ld in PATH.
3838     with_gnu_ld=unknown
3839     ;;
3840   esac
3841 elif test "$with_gnu_ld" = yes; then
3842   echo "$as_me:$LINENO: checking for GNU ld" >&5
3843 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3844 else
3845   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3846 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3847 fi
3848 if test "${ac_cv_path_LD+set}" = set; then
3849   echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851   if test -z "$LD"; then
3852   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3853   for ac_dir in $PATH; do
3854     test -z "$ac_dir" && ac_dir=.
3855     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3856       ac_cv_path_LD="$ac_dir/$ac_prog"
3857       # Check to see if the program is GNU ld.  I'd rather use --version,
3858       # but apparently some GNU ld's only accept -v.
3859       # Break only if it was the GNU/non-GNU ld that we prefer.
3860       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3861         test "$with_gnu_ld" != no && break
3862       else
3863         test "$with_gnu_ld" != yes && break
3864       fi
3865     fi
3866   done
3867   IFS="$ac_save_ifs"
3868 else
3869   ac_cv_path_LD="$LD" # Let the user override the test with a path.
3870 fi
3871 fi
3872
3873 LD="$ac_cv_path_LD"
3874 if test -n "$LD"; then
3875   echo "$as_me:$LINENO: result: $LD" >&5
3876 echo "${ECHO_T}$LD" >&6
3877 else
3878   echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6
3880 fi
3881 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3882 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3883    { (exit 1); exit 1; }; }
3884 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3885 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3886 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3887   echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3890 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3891   ac_cv_prog_gnu_ld=yes
3892 else
3893   ac_cv_prog_gnu_ld=no
3894 fi
3895 fi
3896 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3897 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3898 with_gnu_ld=$ac_cv_prog_gnu_ld
3899
3900
3901
3902
3903 case $host_os in sysv5*)
3904   echo "$as_me:$LINENO: checking whether ld -R works" >&5
3905 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3906 if test "${pgac_cv_prog_ld_R+set}" = set; then
3907   echo $ECHO_N "(cached) $ECHO_C" >&6
3908 else
3909
3910     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3911     cat >conftest.$ac_ext <<_ACEOF
3912 #line $LINENO "configure"
3913 #include "confdefs.h"
3914
3915 #ifdef F77_DUMMY_MAIN
3916 #  ifdef __cplusplus
3917      extern "C"
3918 #  endif
3919    int F77_DUMMY_MAIN() { return 1; }
3920 #endif
3921 int
3922 main ()
3923 {
3924
3925   ;
3926   return 0;
3927 }
3928 _ACEOF
3929 rm -f conftest.$ac_objext conftest$ac_exeext
3930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3931   (eval $ac_link) 2>&5
3932   ac_status=$?
3933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934   (exit $ac_status); } &&
3935          { ac_try='test -s conftest$ac_exeext'
3936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937   (eval $ac_try) 2>&5
3938   ac_status=$?
3939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940   (exit $ac_status); }; }; then
3941   pgac_cv_prog_ld_R=yes
3942 else
3943   echo "$as_me: failed program was:" >&5
3944 cat conftest.$ac_ext >&5
3945 pgac_cv_prog_ld_R=no
3946 fi
3947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3948     LDFLAGS=$pgac_save_LDFLAGS
3949
3950 fi
3951 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3952 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3953   ld_R_works=$pgac_cv_prog_ld_R
3954
3955 esac
3956 if test -n "$ac_tool_prefix"; then
3957   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3958 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+set}" = set; then
3962   echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964   if test -n "$RANLIB"; then
3965   ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
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 RANLIB=$ac_cv_prog_RANLIB
3984 if test -n "$RANLIB"; then
3985   echo "$as_me:$LINENO: result: $RANLIB" >&5
3986 echo "${ECHO_T}$RANLIB" >&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_RANLIB"; then
3994   ac_ct_RANLIB=$RANLIB
3995   # Extract the first word of "ranlib", so it can be a program name with args.
3996 set dummy ranlib; 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_RANLIB+set}" = set; then
4000   echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002   if test -n "$ac_ct_RANLIB"; then
4003   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_RANLIB="ranlib"
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_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4020 fi
4021 fi
4022 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4023 if test -n "$ac_ct_RANLIB"; then
4024   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4025 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4026 else
4027   echo "$as_me:$LINENO: result: no" >&5
4028 echo "${ECHO_T}no" >&6
4029 fi
4030
4031   RANLIB=$ac_ct_RANLIB
4032 else
4033   RANLIB="$ac_cv_prog_RANLIB"
4034 fi
4035
4036 for ac_prog in lorder
4037 do
4038   # Extract the first word of "$ac_prog", so it can be a program name with args.
4039 set dummy $ac_prog; ac_word=$2
4040 echo "$as_me:$LINENO: checking for $ac_word" >&5
4041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4042 if test "${ac_cv_prog_LORDER+set}" = set; then
4043   echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045   if test -n "$LORDER"; then
4046   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4047 else
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 for as_dir in $PATH
4050 do
4051   IFS=$as_save_IFS
4052   test -z "$as_dir" && as_dir=.
4053   for ac_exec_ext in '' $ac_executable_extensions; do
4054   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4055     ac_cv_prog_LORDER="$ac_prog"
4056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4057     break 2
4058   fi
4059 done
4060 done
4061
4062 fi
4063 fi
4064 LORDER=$ac_cv_prog_LORDER
4065 if test -n "$LORDER"; then
4066   echo "$as_me:$LINENO: result: $LORDER" >&5
4067 echo "${ECHO_T}$LORDER" >&6
4068 else
4069   echo "$as_me:$LINENO: result: no" >&5
4070 echo "${ECHO_T}no" >&6
4071 fi
4072
4073   test -n "$LORDER" && break
4074 done
4075
4076 # Extract the first word of "tar", so it can be a program name with args.
4077 set dummy tar; ac_word=$2
4078 echo "$as_me:$LINENO: checking for $ac_word" >&5
4079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4080 if test "${ac_cv_path_TAR+set}" = set; then
4081   echo $ECHO_N "(cached) $ECHO_C" >&6
4082 else
4083   case $TAR in
4084   [\\/]* | ?:[\\/]*)
4085   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4086   ;;
4087   *)
4088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH
4090 do
4091   IFS=$as_save_IFS
4092   test -z "$as_dir" && as_dir=.
4093   for ac_exec_ext in '' $ac_executable_extensions; do
4094   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4095     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4097     break 2
4098   fi
4099 done
4100 done
4101
4102   ;;
4103 esac
4104 fi
4105 TAR=$ac_cv_path_TAR
4106
4107 if test -n "$TAR"; then
4108   echo "$as_me:$LINENO: result: $TAR" >&5
4109 echo "${ECHO_T}$TAR" >&6
4110 else
4111   echo "$as_me:$LINENO: result: no" >&5
4112 echo "${ECHO_T}no" >&6
4113 fi
4114
4115
4116   if test -n "$ac_tool_prefix"; then
4117   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4118 set dummy ${ac_tool_prefix}strip; ac_word=$2
4119 echo "$as_me:$LINENO: checking for $ac_word" >&5
4120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4121 if test "${ac_cv_prog_STRIP+set}" = set; then
4122   echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124   if test -n "$STRIP"; then
4125   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4126 else
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_prog_STRIP="${ac_tool_prefix}strip"
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 fi
4142 fi
4143 STRIP=$ac_cv_prog_STRIP
4144 if test -n "$STRIP"; then
4145   echo "$as_me:$LINENO: result: $STRIP" >&5
4146 echo "${ECHO_T}$STRIP" >&6
4147 else
4148   echo "$as_me:$LINENO: result: no" >&5
4149 echo "${ECHO_T}no" >&6
4150 fi
4151
4152 fi
4153 if test -z "$ac_cv_prog_STRIP"; then
4154   ac_ct_STRIP=$STRIP
4155   # Extract the first word of "strip", so it can be a program name with args.
4156 set dummy strip; ac_word=$2
4157 echo "$as_me:$LINENO: checking for $ac_word" >&5
4158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4159 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4160   echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162   if test -n "$ac_ct_STRIP"; then
4163   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4164 else
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH
4167 do
4168   IFS=$as_save_IFS
4169   test -z "$as_dir" && as_dir=.
4170   for ac_exec_ext in '' $ac_executable_extensions; do
4171   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4172     ac_cv_prog_ac_ct_STRIP="strip"
4173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4174     break 2
4175   fi
4176 done
4177 done
4178
4179   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4180 fi
4181 fi
4182 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4183 if test -n "$ac_ct_STRIP"; then
4184   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4185 echo "${ECHO_T}$ac_ct_STRIP" >&6
4186 else
4187   echo "$as_me:$LINENO: result: no" >&5
4188 echo "${ECHO_T}no" >&6
4189 fi
4190
4191   STRIP=$ac_ct_STRIP
4192 else
4193   STRIP="$ac_cv_prog_STRIP"
4194 fi
4195
4196
4197   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4198 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4199   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4200     STRIP_STATIC_LIB="$STRIP -x"
4201     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4202     echo "$as_me:$LINENO: result: yes" >&5
4203 echo "${ECHO_T}yes" >&6
4204   else
4205     STRIP_STATIC_LIB=:
4206     STRIP_SHARED_LIB=:
4207     echo "$as_me:$LINENO: result: no" >&5
4208 echo "${ECHO_T}no" >&6
4209   fi
4210
4211
4212
4213
4214 for ac_prog in 'bison -y'
4215 do
4216   # Extract the first word of "$ac_prog", so it can be a program name with args.
4217 set dummy $ac_prog; ac_word=$2
4218 echo "$as_me:$LINENO: checking for $ac_word" >&5
4219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4220 if test "${ac_cv_prog_YACC+set}" = set; then
4221   echo $ECHO_N "(cached) $ECHO_C" >&6
4222 else
4223   if test -n "$YACC"; then
4224   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4225 else
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 for as_dir in $PATH
4228 do
4229   IFS=$as_save_IFS
4230   test -z "$as_dir" && as_dir=.
4231   for ac_exec_ext in '' $ac_executable_extensions; do
4232   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4233     ac_cv_prog_YACC="$ac_prog"
4234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4235     break 2
4236   fi
4237 done
4238 done
4239
4240 fi
4241 fi
4242 YACC=$ac_cv_prog_YACC
4243 if test -n "$YACC"; then
4244   echo "$as_me:$LINENO: result: $YACC" >&5
4245 echo "${ECHO_T}$YACC" >&6
4246 else
4247   echo "$as_me:$LINENO: result: no" >&5
4248 echo "${ECHO_T}no" >&6
4249 fi
4250
4251   test -n "$YACC" && break
4252 done
4253
4254 if test -z "$YACC"; then
4255   { echo "$as_me:$LINENO: WARNING:
4256 *** Without Bison you will not be able to build PostgreSQL from CVS or
4257 *** change any of the parser definition files.  You can obtain Bison from
4258 *** a GNU mirror site.  (If you are using the official distribution of
4259 *** PostgreSQL then you do not need to worry about this because the Bison
4260 *** output is pre-generated.)  To use a different yacc program (possible,
4261 *** but not recommended), set the environment variable YACC before running
4262 *** 'configure'." >&5
4263 echo "$as_me: WARNING:
4264 *** Without Bison you will not be able to build PostgreSQL from CVS or
4265 *** change any of the parser definition files.  You can obtain Bison from
4266 *** a GNU mirror site.  (If you are using the official distribution of
4267 *** PostgreSQL then you do not need to worry about this because the Bison
4268 *** output is pre-generated.)  To use a different yacc program (possible,
4269 *** but not recommended), set the environment variable YACC before running
4270 *** 'configure'." >&2;}
4271 fi
4272
4273
4274 if test "$with_tk" = yes; then
4275     # Extract the first word of "wish", so it can be a program name with args.
4276 set dummy wish; ac_word=$2
4277 echo "$as_me:$LINENO: checking for $ac_word" >&5
4278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4279 if test "${ac_cv_path_WISH+set}" = set; then
4280   echo $ECHO_N "(cached) $ECHO_C" >&6
4281 else
4282   case $WISH in
4283   [\\/]* | ?:[\\/]*)
4284   ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
4285   ;;
4286   *)
4287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4289 do
4290   IFS=$as_save_IFS
4291   test -z "$as_dir" && as_dir=.
4292   for ac_exec_ext in '' $ac_executable_extensions; do
4293   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294     ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext"
4295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296     break 2
4297   fi
4298 done
4299 done
4300
4301   ;;
4302 esac
4303 fi
4304 WISH=$ac_cv_path_WISH
4305
4306 if test -n "$WISH"; then
4307   echo "$as_me:$LINENO: result: $WISH" >&5
4308 echo "${ECHO_T}$WISH" >&6
4309 else
4310   echo "$as_me:$LINENO: result: no" >&5
4311 echo "${ECHO_T}no" >&6
4312 fi
4313
4314     test -z "$WISH" && { { echo "$as_me:$LINENO: error: 'wish' is required for Tk support" >&5
4315 echo "$as_me: error: 'wish' is required for Tk support" >&2;}
4316    { (exit 1); exit 1; }; }
4317 fi
4318
4319 # Extract the first word of "perl", so it can be a program name with args.
4320 set dummy perl; ac_word=$2
4321 echo "$as_me:$LINENO: checking for $ac_word" >&5
4322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4323 if test "${ac_cv_path_PERL+set}" = set; then
4324   echo $ECHO_N "(cached) $ECHO_C" >&6
4325 else
4326   case $PERL in
4327   [\\/]* | ?:[\\/]*)
4328   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4329   ;;
4330   *)
4331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH
4333 do
4334   IFS=$as_save_IFS
4335   test -z "$as_dir" && as_dir=.
4336   for ac_exec_ext in '' $ac_executable_extensions; do
4337   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4340     break 2
4341   fi
4342 done
4343 done
4344
4345   ;;
4346 esac
4347 fi
4348 PERL=$ac_cv_path_PERL
4349
4350 if test -n "$PERL"; then
4351   echo "$as_me:$LINENO: result: $PERL" >&5
4352 echo "${ECHO_T}$PERL" >&6
4353 else
4354   echo "$as_me:$LINENO: result: no" >&5
4355 echo "${ECHO_T}no" >&6
4356 fi
4357
4358 if test "$with_perl" = yes; then
4359
4360 echo "$as_me:$LINENO: checking for Perl installsitearch" >&5
4361 echo $ECHO_N "checking for Perl installsitearch... $ECHO_C" >&6
4362 perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
4363 echo "$as_me:$LINENO: result: $perl_installsitearch" >&5
4364 echo "${ECHO_T}$perl_installsitearch" >&6
4365 echo "$as_me:$LINENO: checking for Perl installman3dir" >&5
4366 echo $ECHO_N "checking for Perl installman3dir... $ECHO_C" >&6
4367 perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
4368 echo "$as_me:$LINENO: result: $perl_installman3dir" >&5
4369 echo "${ECHO_T}$perl_installman3dir" >&6
4370 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4371 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4372 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4373 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4374 echo "${ECHO_T}$perl_archlibexp" >&6
4375 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4376 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4377 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4378 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4379 echo "${ECHO_T}$perl_privlibexp" >&6
4380 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4381 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4382 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4383 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4384 echo "${ECHO_T}$perl_useshrplib" >&6
4385 echo "$as_me:$LINENO: checking for Perl man3ext" >&5
4386 echo $ECHO_N "checking for Perl man3ext... $ECHO_C" >&6
4387 perl_man3ext=`$PERL -MConfig -e 'print $Config{man3ext}'`
4388 echo "$as_me:$LINENO: result: $perl_man3ext" >&5
4389 echo "${ECHO_T}$perl_man3ext" >&6
4390
4391 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4392 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4393 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4394 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4395 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4396 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4397 echo "${ECHO_T}$perl_embed_ldflags" >&6
4398 fi
4399
4400 if test "$with_python" = yes; then
4401   # Extract the first word of "python", so it can be a program name with args.
4402 set dummy python; ac_word=$2
4403 echo "$as_me:$LINENO: checking for $ac_word" >&5
4404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4405 if test "${ac_cv_path_PYTHON+set}" = set; then
4406   echo $ECHO_N "(cached) $ECHO_C" >&6
4407 else
4408   case $PYTHON in
4409   [\\/]* | ?:[\\/]*)
4410   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4411   ;;
4412   *)
4413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH
4415 do
4416   IFS=$as_save_IFS
4417   test -z "$as_dir" && as_dir=.
4418   for ac_exec_ext in '' $ac_executable_extensions; do
4419   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4420     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4422     break 2
4423   fi
4424 done
4425 done
4426
4427   ;;
4428 esac
4429 fi
4430 PYTHON=$ac_cv_path_PYTHON
4431
4432 if test -n "$PYTHON"; then
4433   echo "$as_me:$LINENO: result: $PYTHON" >&5
4434 echo "${ECHO_T}$PYTHON" >&6
4435 else
4436   echo "$as_me:$LINENO: result: no" >&5
4437 echo "${ECHO_T}no" >&6
4438 fi
4439
4440 if test x"$PYTHON" = x""; then
4441   { { echo "$as_me:$LINENO: error: Python not found" >&5
4442 echo "$as_me: error: Python not found" >&2;}
4443    { (exit 1); exit 1; }; }
4444 fi
4445
4446
4447 echo "$as_me:$LINENO: checking Python installation directories" >&5
4448 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4449 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4450 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4451 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4452 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4453 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
4454 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
4455 python_includespec="-I${python_prefix}/include/python${python_version}"
4456 if test "$python_prefix" != "$python_execprefix"; then
4457   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4458 fi
4459
4460 # This should be enough of a message.
4461 if test "$python_prefix" != "$python_execprefix"; then
4462   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4463 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4464 else
4465   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4466 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4467 fi
4468
4469
4470
4471
4472
4473 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4474 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4475
4476 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4477 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4478 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4479 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4480 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4481
4482 pgac_tab="      " # tab character
4483 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"`
4484
4485 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4486 echo "${ECHO_T}${python_libspec}" >&6
4487
4488
4489 fi
4490
4491
4492 ##
4493 ## Libraries
4494 ##
4495
4496 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4497 then
4498
4499 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4500 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4501 if test "${ac_cv_lib_bsd_main+set}" = set; then
4502   echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504   ac_check_lib_save_LIBS=$LIBS
4505 LIBS="-lbsd  $LIBS"
4506 cat >conftest.$ac_ext <<_ACEOF
4507 #line $LINENO "configure"
4508 #include "confdefs.h"
4509
4510
4511 #ifdef F77_DUMMY_MAIN
4512 #  ifdef __cplusplus
4513      extern "C"
4514 #  endif
4515    int F77_DUMMY_MAIN() { return 1; }
4516 #endif
4517 int
4518 main ()
4519 {
4520 main ();
4521   ;
4522   return 0;
4523 }
4524 _ACEOF
4525 rm -f conftest.$ac_objext conftest$ac_exeext
4526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4527   (eval $ac_link) 2>&5
4528   ac_status=$?
4529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530   (exit $ac_status); } &&
4531          { ac_try='test -s conftest$ac_exeext'
4532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533   (eval $ac_try) 2>&5
4534   ac_status=$?
4535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536   (exit $ac_status); }; }; then
4537   ac_cv_lib_bsd_main=yes
4538 else
4539   echo "$as_me: failed program was:" >&5
4540 cat conftest.$ac_ext >&5
4541 ac_cv_lib_bsd_main=no
4542 fi
4543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4544 LIBS=$ac_check_lib_save_LIBS
4545 fi
4546 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4547 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4548 if test $ac_cv_lib_bsd_main = yes; then
4549   cat >>confdefs.h <<_ACEOF
4550 #define HAVE_LIBBSD 1
4551 _ACEOF
4552
4553   LIBS="-lbsd $LIBS"
4554
4555 fi
4556
4557 fi
4558
4559 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4560 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4561 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4562   echo $ECHO_N "(cached) $ECHO_C" >&6
4563 else
4564   ac_check_lib_save_LIBS=$LIBS
4565 LIBS="-lutil  $LIBS"
4566 cat >conftest.$ac_ext <<_ACEOF
4567 #line $LINENO "configure"
4568 #include "confdefs.h"
4569
4570 /* Override any gcc2 internal prototype to avoid an error.  */
4571 #ifdef __cplusplus
4572 extern "C"
4573 #endif
4574 /* We use char because int might match the return type of a gcc2
4575    builtin and then its argument prototype would still apply.  */
4576 char setproctitle ();
4577 #ifdef F77_DUMMY_MAIN
4578 #  ifdef __cplusplus
4579      extern "C"
4580 #  endif
4581    int F77_DUMMY_MAIN() { return 1; }
4582 #endif
4583 int
4584 main ()
4585 {
4586 setproctitle ();
4587   ;
4588   return 0;
4589 }
4590 _ACEOF
4591 rm -f conftest.$ac_objext conftest$ac_exeext
4592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4593   (eval $ac_link) 2>&5
4594   ac_status=$?
4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); } &&
4597          { ac_try='test -s conftest$ac_exeext'
4598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599   (eval $ac_try) 2>&5
4600   ac_status=$?
4601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602   (exit $ac_status); }; }; then
4603   ac_cv_lib_util_setproctitle=yes
4604 else
4605   echo "$as_me: failed program was:" >&5
4606 cat conftest.$ac_ext >&5
4607 ac_cv_lib_util_setproctitle=no
4608 fi
4609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4610 LIBS=$ac_check_lib_save_LIBS
4611 fi
4612 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4613 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4614 if test $ac_cv_lib_util_setproctitle = yes; then
4615   cat >>confdefs.h <<_ACEOF
4616 #define HAVE_LIBUTIL 1
4617 _ACEOF
4618
4619   LIBS="-lutil $LIBS"
4620
4621 fi
4622
4623
4624 echo "$as_me:$LINENO: checking for main in -lm" >&5
4625 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4626 if test "${ac_cv_lib_m_main+set}" = set; then
4627   echo $ECHO_N "(cached) $ECHO_C" >&6
4628 else
4629   ac_check_lib_save_LIBS=$LIBS
4630 LIBS="-lm  $LIBS"
4631 cat >conftest.$ac_ext <<_ACEOF
4632 #line $LINENO "configure"
4633 #include "confdefs.h"
4634
4635
4636 #ifdef F77_DUMMY_MAIN
4637 #  ifdef __cplusplus
4638      extern "C"
4639 #  endif
4640    int F77_DUMMY_MAIN() { return 1; }
4641 #endif
4642 int
4643 main ()
4644 {
4645 main ();
4646   ;
4647   return 0;
4648 }
4649 _ACEOF
4650 rm -f conftest.$ac_objext conftest$ac_exeext
4651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4652   (eval $ac_link) 2>&5
4653   ac_status=$?
4654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655   (exit $ac_status); } &&
4656          { ac_try='test -s conftest$ac_exeext'
4657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658   (eval $ac_try) 2>&5
4659   ac_status=$?
4660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661   (exit $ac_status); }; }; then
4662   ac_cv_lib_m_main=yes
4663 else
4664   echo "$as_me: failed program was:" >&5
4665 cat conftest.$ac_ext >&5
4666 ac_cv_lib_m_main=no
4667 fi
4668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4669 LIBS=$ac_check_lib_save_LIBS
4670 fi
4671 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4672 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4673 if test $ac_cv_lib_m_main = yes; then
4674   cat >>confdefs.h <<_ACEOF
4675 #define HAVE_LIBM 1
4676 _ACEOF
4677
4678   LIBS="-lm $LIBS"
4679
4680 fi
4681
4682
4683 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4684 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4685 if test "${ac_cv_lib_dl_main+set}" = set; then
4686   echo $ECHO_N "(cached) $ECHO_C" >&6
4687 else
4688   ac_check_lib_save_LIBS=$LIBS
4689 LIBS="-ldl  $LIBS"
4690 cat >conftest.$ac_ext <<_ACEOF
4691 #line $LINENO "configure"
4692 #include "confdefs.h"
4693
4694
4695 #ifdef F77_DUMMY_MAIN
4696 #  ifdef __cplusplus
4697      extern "C"
4698 #  endif
4699    int F77_DUMMY_MAIN() { return 1; }
4700 #endif
4701 int
4702 main ()
4703 {
4704 main ();
4705   ;
4706   return 0;
4707 }
4708 _ACEOF
4709 rm -f conftest.$ac_objext conftest$ac_exeext
4710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4711   (eval $ac_link) 2>&5
4712   ac_status=$?
4713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714   (exit $ac_status); } &&
4715          { ac_try='test -s conftest$ac_exeext'
4716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717   (eval $ac_try) 2>&5
4718   ac_status=$?
4719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720   (exit $ac_status); }; }; then
4721   ac_cv_lib_dl_main=yes
4722 else
4723   echo "$as_me: failed program was:" >&5
4724 cat conftest.$ac_ext >&5
4725 ac_cv_lib_dl_main=no
4726 fi
4727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4728 LIBS=$ac_check_lib_save_LIBS
4729 fi
4730 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4731 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4732 if test $ac_cv_lib_dl_main = yes; then
4733   cat >>confdefs.h <<_ACEOF
4734 #define HAVE_LIBDL 1
4735 _ACEOF
4736
4737   LIBS="-ldl $LIBS"
4738
4739 fi
4740
4741
4742 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4743 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4744 if test "${ac_cv_lib_nsl_main+set}" = set; then
4745   echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747   ac_check_lib_save_LIBS=$LIBS
4748 LIBS="-lnsl  $LIBS"
4749 cat >conftest.$ac_ext <<_ACEOF
4750 #line $LINENO "configure"
4751 #include "confdefs.h"
4752
4753
4754 #ifdef F77_DUMMY_MAIN
4755 #  ifdef __cplusplus
4756      extern "C"
4757 #  endif
4758    int F77_DUMMY_MAIN() { return 1; }
4759 #endif
4760 int
4761 main ()
4762 {
4763 main ();
4764   ;
4765   return 0;
4766 }
4767 _ACEOF
4768 rm -f conftest.$ac_objext conftest$ac_exeext
4769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4770   (eval $ac_link) 2>&5
4771   ac_status=$?
4772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773   (exit $ac_status); } &&
4774          { ac_try='test -s conftest$ac_exeext'
4775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776   (eval $ac_try) 2>&5
4777   ac_status=$?
4778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779   (exit $ac_status); }; }; then
4780   ac_cv_lib_nsl_main=yes
4781 else
4782   echo "$as_me: failed program was:" >&5
4783 cat conftest.$ac_ext >&5
4784 ac_cv_lib_nsl_main=no
4785 fi
4786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4787 LIBS=$ac_check_lib_save_LIBS
4788 fi
4789 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4790 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4791 if test $ac_cv_lib_nsl_main = yes; then
4792   cat >>confdefs.h <<_ACEOF
4793 #define HAVE_LIBNSL 1
4794 _ACEOF
4795
4796   LIBS="-lnsl $LIBS"
4797
4798 fi
4799
4800
4801 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4802 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4803 if test "${ac_cv_lib_socket_main+set}" = set; then
4804   echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4806   ac_check_lib_save_LIBS=$LIBS
4807 LIBS="-lsocket  $LIBS"
4808 cat >conftest.$ac_ext <<_ACEOF
4809 #line $LINENO "configure"
4810 #include "confdefs.h"
4811
4812
4813 #ifdef F77_DUMMY_MAIN
4814 #  ifdef __cplusplus
4815      extern "C"
4816 #  endif
4817    int F77_DUMMY_MAIN() { return 1; }
4818 #endif
4819 int
4820 main ()
4821 {
4822 main ();
4823   ;
4824   return 0;
4825 }
4826 _ACEOF
4827 rm -f conftest.$ac_objext conftest$ac_exeext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4829   (eval $ac_link) 2>&5
4830   ac_status=$?
4831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832   (exit $ac_status); } &&
4833          { ac_try='test -s conftest$ac_exeext'
4834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835   (eval $ac_try) 2>&5
4836   ac_status=$?
4837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838   (exit $ac_status); }; }; then
4839   ac_cv_lib_socket_main=yes
4840 else
4841   echo "$as_me: failed program was:" >&5
4842 cat conftest.$ac_ext >&5
4843 ac_cv_lib_socket_main=no
4844 fi
4845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4846 LIBS=$ac_check_lib_save_LIBS
4847 fi
4848 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4849 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4850 if test $ac_cv_lib_socket_main = yes; then
4851   cat >>confdefs.h <<_ACEOF
4852 #define HAVE_LIBSOCKET 1
4853 _ACEOF
4854
4855   LIBS="-lsocket $LIBS"
4856
4857 fi
4858
4859
4860 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4861 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4862 if test "${ac_cv_lib_ipc_main+set}" = set; then
4863   echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865   ac_check_lib_save_LIBS=$LIBS
4866 LIBS="-lipc  $LIBS"
4867 cat >conftest.$ac_ext <<_ACEOF
4868 #line $LINENO "configure"
4869 #include "confdefs.h"
4870
4871
4872 #ifdef F77_DUMMY_MAIN
4873 #  ifdef __cplusplus
4874      extern "C"
4875 #  endif
4876    int F77_DUMMY_MAIN() { return 1; }
4877 #endif
4878 int
4879 main ()
4880 {
4881 main ();
4882   ;
4883   return 0;
4884 }
4885 _ACEOF
4886 rm -f conftest.$ac_objext conftest$ac_exeext
4887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4888   (eval $ac_link) 2>&5
4889   ac_status=$?
4890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891   (exit $ac_status); } &&
4892          { ac_try='test -s conftest$ac_exeext'
4893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894   (eval $ac_try) 2>&5
4895   ac_status=$?
4896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897   (exit $ac_status); }; }; then
4898   ac_cv_lib_ipc_main=yes
4899 else
4900   echo "$as_me: failed program was:" >&5
4901 cat conftest.$ac_ext >&5
4902 ac_cv_lib_ipc_main=no
4903 fi
4904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4905 LIBS=$ac_check_lib_save_LIBS
4906 fi
4907 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4908 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4909 if test $ac_cv_lib_ipc_main = yes; then
4910   cat >>confdefs.h <<_ACEOF
4911 #define HAVE_LIBIPC 1
4912 _ACEOF
4913
4914   LIBS="-lipc $LIBS"
4915
4916 fi
4917
4918
4919 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4920 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4921 if test "${ac_cv_lib_IPC_main+set}" = set; then
4922   echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924   ac_check_lib_save_LIBS=$LIBS
4925 LIBS="-lIPC  $LIBS"
4926 cat >conftest.$ac_ext <<_ACEOF
4927 #line $LINENO "configure"
4928 #include "confdefs.h"
4929
4930
4931 #ifdef F77_DUMMY_MAIN
4932 #  ifdef __cplusplus
4933      extern "C"
4934 #  endif
4935    int F77_DUMMY_MAIN() { return 1; }
4936 #endif
4937 int
4938 main ()
4939 {
4940 main ();
4941   ;
4942   return 0;
4943 }
4944 _ACEOF
4945 rm -f conftest.$ac_objext conftest$ac_exeext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4947   (eval $ac_link) 2>&5
4948   ac_status=$?
4949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950   (exit $ac_status); } &&
4951          { ac_try='test -s conftest$ac_exeext'
4952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953   (eval $ac_try) 2>&5
4954   ac_status=$?
4955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956   (exit $ac_status); }; }; then
4957   ac_cv_lib_IPC_main=yes
4958 else
4959   echo "$as_me: failed program was:" >&5
4960 cat conftest.$ac_ext >&5
4961 ac_cv_lib_IPC_main=no
4962 fi
4963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4964 LIBS=$ac_check_lib_save_LIBS
4965 fi
4966 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4967 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4968 if test $ac_cv_lib_IPC_main = yes; then
4969   cat >>confdefs.h <<_ACEOF
4970 #define HAVE_LIBIPC 1
4971 _ACEOF
4972
4973   LIBS="-lIPC $LIBS"
4974
4975 fi
4976
4977
4978 echo "$as_me:$LINENO: checking for main in -llc" >&5
4979 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4980 if test "${ac_cv_lib_lc_main+set}" = set; then
4981   echo $ECHO_N "(cached) $ECHO_C" >&6
4982 else
4983   ac_check_lib_save_LIBS=$LIBS
4984 LIBS="-llc  $LIBS"
4985 cat >conftest.$ac_ext <<_ACEOF
4986 #line $LINENO "configure"
4987 #include "confdefs.h"
4988
4989
4990 #ifdef F77_DUMMY_MAIN
4991 #  ifdef __cplusplus
4992      extern "C"
4993 #  endif
4994    int F77_DUMMY_MAIN() { return 1; }
4995 #endif
4996 int
4997 main ()
4998 {
4999 main ();
5000   ;
5001   return 0;
5002 }
5003 _ACEOF
5004 rm -f conftest.$ac_objext conftest$ac_exeext
5005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5006   (eval $ac_link) 2>&5
5007   ac_status=$?
5008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009   (exit $ac_status); } &&
5010          { ac_try='test -s conftest$ac_exeext'
5011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012   (eval $ac_try) 2>&5
5013   ac_status=$?
5014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015   (exit $ac_status); }; }; then
5016   ac_cv_lib_lc_main=yes
5017 else
5018   echo "$as_me: failed program was:" >&5
5019 cat conftest.$ac_ext >&5
5020 ac_cv_lib_lc_main=no
5021 fi
5022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5023 LIBS=$ac_check_lib_save_LIBS
5024 fi
5025 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
5026 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
5027 if test $ac_cv_lib_lc_main = yes; then
5028   cat >>confdefs.h <<_ACEOF
5029 #define HAVE_LIBLC 1
5030 _ACEOF
5031
5032   LIBS="-llc $LIBS"
5033
5034 fi
5035
5036
5037 echo "$as_me:$LINENO: checking for main in -ldld" >&5
5038 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
5039 if test "${ac_cv_lib_dld_main+set}" = set; then
5040   echo $ECHO_N "(cached) $ECHO_C" >&6
5041 else
5042   ac_check_lib_save_LIBS=$LIBS
5043 LIBS="-ldld  $LIBS"
5044 cat >conftest.$ac_ext <<_ACEOF
5045 #line $LINENO "configure"
5046 #include "confdefs.h"
5047
5048
5049 #ifdef F77_DUMMY_MAIN
5050 #  ifdef __cplusplus
5051      extern "C"
5052 #  endif
5053    int F77_DUMMY_MAIN() { return 1; }
5054 #endif
5055 int
5056 main ()
5057 {
5058 main ();
5059   ;
5060   return 0;
5061 }
5062 _ACEOF
5063 rm -f conftest.$ac_objext conftest$ac_exeext
5064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5065   (eval $ac_link) 2>&5
5066   ac_status=$?
5067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068   (exit $ac_status); } &&
5069          { ac_try='test -s conftest$ac_exeext'
5070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071   (eval $ac_try) 2>&5
5072   ac_status=$?
5073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074   (exit $ac_status); }; }; then
5075   ac_cv_lib_dld_main=yes
5076 else
5077   echo "$as_me: failed program was:" >&5
5078 cat conftest.$ac_ext >&5
5079 ac_cv_lib_dld_main=no
5080 fi
5081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5082 LIBS=$ac_check_lib_save_LIBS
5083 fi
5084 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5085 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5086 if test $ac_cv_lib_dld_main = yes; then
5087   cat >>confdefs.h <<_ACEOF
5088 #define HAVE_LIBDLD 1
5089 _ACEOF
5090
5091   LIBS="-ldld $LIBS"
5092
5093 fi
5094
5095
5096 echo "$as_me:$LINENO: checking for main in -lld" >&5
5097 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5098 if test "${ac_cv_lib_ld_main+set}" = set; then
5099   echo $ECHO_N "(cached) $ECHO_C" >&6
5100 else
5101   ac_check_lib_save_LIBS=$LIBS
5102 LIBS="-lld  $LIBS"
5103 cat >conftest.$ac_ext <<_ACEOF
5104 #line $LINENO "configure"
5105 #include "confdefs.h"
5106
5107
5108 #ifdef F77_DUMMY_MAIN
5109 #  ifdef __cplusplus
5110      extern "C"
5111 #  endif
5112    int F77_DUMMY_MAIN() { return 1; }
5113 #endif
5114 int
5115 main ()
5116 {
5117 main ();
5118   ;
5119   return 0;
5120 }
5121 _ACEOF
5122 rm -f conftest.$ac_objext conftest$ac_exeext
5123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5124   (eval $ac_link) 2>&5
5125   ac_status=$?
5126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127   (exit $ac_status); } &&
5128          { ac_try='test -s conftest$ac_exeext'
5129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5130   (eval $ac_try) 2>&5
5131   ac_status=$?
5132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133   (exit $ac_status); }; }; then
5134   ac_cv_lib_ld_main=yes
5135 else
5136   echo "$as_me: failed program was:" >&5
5137 cat conftest.$ac_ext >&5
5138 ac_cv_lib_ld_main=no
5139 fi
5140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5141 LIBS=$ac_check_lib_save_LIBS
5142 fi
5143 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5144 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5145 if test $ac_cv_lib_ld_main = yes; then
5146   cat >>confdefs.h <<_ACEOF
5147 #define HAVE_LIBLD 1
5148 _ACEOF
5149
5150   LIBS="-lld $LIBS"
5151
5152 fi
5153
5154
5155 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5156 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5157 if test "${ac_cv_lib_compat_main+set}" = set; then
5158   echo $ECHO_N "(cached) $ECHO_C" >&6
5159 else
5160   ac_check_lib_save_LIBS=$LIBS
5161 LIBS="-lcompat  $LIBS"
5162 cat >conftest.$ac_ext <<_ACEOF
5163 #line $LINENO "configure"
5164 #include "confdefs.h"
5165
5166
5167 #ifdef F77_DUMMY_MAIN
5168 #  ifdef __cplusplus
5169      extern "C"
5170 #  endif
5171    int F77_DUMMY_MAIN() { return 1; }
5172 #endif
5173 int
5174 main ()
5175 {
5176 main ();
5177   ;
5178   return 0;
5179 }
5180 _ACEOF
5181 rm -f conftest.$ac_objext conftest$ac_exeext
5182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5183   (eval $ac_link) 2>&5
5184   ac_status=$?
5185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186   (exit $ac_status); } &&
5187          { ac_try='test -s conftest$ac_exeext'
5188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5189   (eval $ac_try) 2>&5
5190   ac_status=$?
5191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192   (exit $ac_status); }; }; then
5193   ac_cv_lib_compat_main=yes
5194 else
5195   echo "$as_me: failed program was:" >&5
5196 cat conftest.$ac_ext >&5
5197 ac_cv_lib_compat_main=no
5198 fi
5199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5200 LIBS=$ac_check_lib_save_LIBS
5201 fi
5202 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5203 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5204 if test $ac_cv_lib_compat_main = yes; then
5205   cat >>confdefs.h <<_ACEOF
5206 #define HAVE_LIBCOMPAT 1
5207 _ACEOF
5208
5209   LIBS="-lcompat $LIBS"
5210
5211 fi
5212
5213
5214 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5215 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5216 if test "${ac_cv_lib_BSD_main+set}" = set; then
5217   echo $ECHO_N "(cached) $ECHO_C" >&6
5218 else
5219   ac_check_lib_save_LIBS=$LIBS
5220 LIBS="-lBSD  $LIBS"
5221 cat >conftest.$ac_ext <<_ACEOF
5222 #line $LINENO "configure"
5223 #include "confdefs.h"
5224
5225
5226 #ifdef F77_DUMMY_MAIN
5227 #  ifdef __cplusplus
5228      extern "C"
5229 #  endif
5230    int F77_DUMMY_MAIN() { return 1; }
5231 #endif
5232 int
5233 main ()
5234 {
5235 main ();
5236   ;
5237   return 0;
5238 }
5239 _ACEOF
5240 rm -f conftest.$ac_objext conftest$ac_exeext
5241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5242   (eval $ac_link) 2>&5
5243   ac_status=$?
5244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245   (exit $ac_status); } &&
5246          { ac_try='test -s conftest$ac_exeext'
5247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5248   (eval $ac_try) 2>&5
5249   ac_status=$?
5250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251   (exit $ac_status); }; }; then
5252   ac_cv_lib_BSD_main=yes
5253 else
5254   echo "$as_me: failed program was:" >&5
5255 cat conftest.$ac_ext >&5
5256 ac_cv_lib_BSD_main=no
5257 fi
5258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5259 LIBS=$ac_check_lib_save_LIBS
5260 fi
5261 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5262 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5263 if test $ac_cv_lib_BSD_main = yes; then
5264   cat >>confdefs.h <<_ACEOF
5265 #define HAVE_LIBBSD 1
5266 _ACEOF
5267
5268   LIBS="-lBSD $LIBS"
5269
5270 fi
5271
5272
5273 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5274 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5275 if test "${ac_cv_lib_gen_main+set}" = set; then
5276   echo $ECHO_N "(cached) $ECHO_C" >&6
5277 else
5278   ac_check_lib_save_LIBS=$LIBS
5279 LIBS="-lgen  $LIBS"
5280 cat >conftest.$ac_ext <<_ACEOF
5281 #line $LINENO "configure"
5282 #include "confdefs.h"
5283
5284
5285 #ifdef F77_DUMMY_MAIN
5286 #  ifdef __cplusplus
5287      extern "C"
5288 #  endif
5289    int F77_DUMMY_MAIN() { return 1; }
5290 #endif
5291 int
5292 main ()
5293 {
5294 main ();
5295   ;
5296   return 0;
5297 }
5298 _ACEOF
5299 rm -f conftest.$ac_objext conftest$ac_exeext
5300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5301   (eval $ac_link) 2>&5
5302   ac_status=$?
5303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304   (exit $ac_status); } &&
5305          { ac_try='test -s conftest$ac_exeext'
5306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307   (eval $ac_try) 2>&5
5308   ac_status=$?
5309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310   (exit $ac_status); }; }; then
5311   ac_cv_lib_gen_main=yes
5312 else
5313   echo "$as_me: failed program was:" >&5
5314 cat conftest.$ac_ext >&5
5315 ac_cv_lib_gen_main=no
5316 fi
5317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5318 LIBS=$ac_check_lib_save_LIBS
5319 fi
5320 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5321 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5322 if test $ac_cv_lib_gen_main = yes; then
5323   cat >>confdefs.h <<_ACEOF
5324 #define HAVE_LIBGEN 1
5325 _ACEOF
5326
5327   LIBS="-lgen $LIBS"
5328
5329 fi
5330
5331
5332 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5333 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5334 if test "${ac_cv_lib_PW_main+set}" = set; then
5335   echo $ECHO_N "(cached) $ECHO_C" >&6
5336 else
5337   ac_check_lib_save_LIBS=$LIBS
5338 LIBS="-lPW  $LIBS"
5339 cat >conftest.$ac_ext <<_ACEOF
5340 #line $LINENO "configure"
5341 #include "confdefs.h"
5342
5343
5344 #ifdef F77_DUMMY_MAIN
5345 #  ifdef __cplusplus
5346      extern "C"
5347 #  endif
5348    int F77_DUMMY_MAIN() { return 1; }
5349 #endif
5350 int
5351 main ()
5352 {
5353 main ();
5354   ;
5355   return 0;
5356 }
5357 _ACEOF
5358 rm -f conftest.$ac_objext conftest$ac_exeext
5359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5360   (eval $ac_link) 2>&5
5361   ac_status=$?
5362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363   (exit $ac_status); } &&
5364          { ac_try='test -s conftest$ac_exeext'
5365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366   (eval $ac_try) 2>&5
5367   ac_status=$?
5368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369   (exit $ac_status); }; }; then
5370   ac_cv_lib_PW_main=yes
5371 else
5372   echo "$as_me: failed program was:" >&5
5373 cat conftest.$ac_ext >&5
5374 ac_cv_lib_PW_main=no
5375 fi
5376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5377 LIBS=$ac_check_lib_save_LIBS
5378 fi
5379 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5380 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5381 if test $ac_cv_lib_PW_main = yes; then
5382   cat >>confdefs.h <<_ACEOF
5383 #define HAVE_LIBPW 1
5384 _ACEOF
5385
5386   LIBS="-lPW $LIBS"
5387
5388 fi
5389
5390
5391 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5392 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5393 if test "${ac_cv_lib_resolv_main+set}" = set; then
5394   echo $ECHO_N "(cached) $ECHO_C" >&6
5395 else
5396   ac_check_lib_save_LIBS=$LIBS
5397 LIBS="-lresolv  $LIBS"
5398 cat >conftest.$ac_ext <<_ACEOF
5399 #line $LINENO "configure"
5400 #include "confdefs.h"
5401
5402
5403 #ifdef F77_DUMMY_MAIN
5404 #  ifdef __cplusplus
5405      extern "C"
5406 #  endif
5407    int F77_DUMMY_MAIN() { return 1; }
5408 #endif
5409 int
5410 main ()
5411 {
5412 main ();
5413   ;
5414   return 0;
5415 }
5416 _ACEOF
5417 rm -f conftest.$ac_objext conftest$ac_exeext
5418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5419   (eval $ac_link) 2>&5
5420   ac_status=$?
5421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422   (exit $ac_status); } &&
5423          { ac_try='test -s conftest$ac_exeext'
5424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5425   (eval $ac_try) 2>&5
5426   ac_status=$?
5427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428   (exit $ac_status); }; }; then
5429   ac_cv_lib_resolv_main=yes
5430 else
5431   echo "$as_me: failed program was:" >&5
5432 cat conftest.$ac_ext >&5
5433 ac_cv_lib_resolv_main=no
5434 fi
5435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5436 LIBS=$ac_check_lib_save_LIBS
5437 fi
5438 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5439 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5440 if test $ac_cv_lib_resolv_main = yes; then
5441   cat >>confdefs.h <<_ACEOF
5442 #define HAVE_LIBRESOLV 1
5443 _ACEOF
5444
5445   LIBS="-lresolv $LIBS"
5446
5447 fi
5448
5449 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5450 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5451 if test "${ac_cv_search_getopt_long+set}" = set; then
5452   echo $ECHO_N "(cached) $ECHO_C" >&6
5453 else
5454   ac_func_search_save_LIBS=$LIBS
5455 ac_cv_search_getopt_long=no
5456 cat >conftest.$ac_ext <<_ACEOF
5457 #line $LINENO "configure"
5458 #include "confdefs.h"
5459
5460 /* Override any gcc2 internal prototype to avoid an error.  */
5461 #ifdef __cplusplus
5462 extern "C"
5463 #endif
5464 /* We use char because int might match the return type of a gcc2
5465    builtin and then its argument prototype would still apply.  */
5466 char getopt_long ();
5467 #ifdef F77_DUMMY_MAIN
5468 #  ifdef __cplusplus
5469      extern "C"
5470 #  endif
5471    int F77_DUMMY_MAIN() { return 1; }
5472 #endif
5473 int
5474 main ()
5475 {
5476 getopt_long ();
5477   ;
5478   return 0;
5479 }
5480 _ACEOF
5481 rm -f conftest.$ac_objext conftest$ac_exeext
5482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5483   (eval $ac_link) 2>&5
5484   ac_status=$?
5485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486   (exit $ac_status); } &&
5487          { ac_try='test -s conftest$ac_exeext'
5488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489   (eval $ac_try) 2>&5
5490   ac_status=$?
5491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492   (exit $ac_status); }; }; then
5493   ac_cv_search_getopt_long="none required"
5494 else
5495   echo "$as_me: failed program was:" >&5
5496 cat conftest.$ac_ext >&5
5497 fi
5498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5499 if test "$ac_cv_search_getopt_long" = no; then
5500   for ac_lib in getopt; do
5501     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5502     cat >conftest.$ac_ext <<_ACEOF
5503 #line $LINENO "configure"
5504 #include "confdefs.h"
5505
5506 /* Override any gcc2 internal prototype to avoid an error.  */
5507 #ifdef __cplusplus
5508 extern "C"
5509 #endif
5510 /* We use char because int might match the return type of a gcc2
5511    builtin and then its argument prototype would still apply.  */
5512 char getopt_long ();
5513 #ifdef F77_DUMMY_MAIN
5514 #  ifdef __cplusplus
5515      extern "C"
5516 #  endif
5517    int F77_DUMMY_MAIN() { return 1; }
5518 #endif
5519 int
5520 main ()
5521 {
5522 getopt_long ();
5523   ;
5524   return 0;
5525 }
5526 _ACEOF
5527 rm -f conftest.$ac_objext conftest$ac_exeext
5528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5529   (eval $ac_link) 2>&5
5530   ac_status=$?
5531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532   (exit $ac_status); } &&
5533          { ac_try='test -s conftest$ac_exeext'
5534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535   (eval $ac_try) 2>&5
5536   ac_status=$?
5537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538   (exit $ac_status); }; }; then
5539   ac_cv_search_getopt_long="-l$ac_lib"
5540 break
5541 else
5542   echo "$as_me: failed program was:" >&5
5543 cat conftest.$ac_ext >&5
5544 fi
5545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5546   done
5547 fi
5548 LIBS=$ac_func_search_save_LIBS
5549 fi
5550 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5551 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5552 if test "$ac_cv_search_getopt_long" != no; then
5553   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5554
5555 fi
5556
5557 # QNX:
5558
5559 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5560 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5561 if test "${ac_cv_lib_unix_main+set}" = set; then
5562   echo $ECHO_N "(cached) $ECHO_C" >&6
5563 else
5564   ac_check_lib_save_LIBS=$LIBS
5565 LIBS="-lunix  $LIBS"
5566 cat >conftest.$ac_ext <<_ACEOF
5567 #line $LINENO "configure"
5568 #include "confdefs.h"
5569
5570
5571 #ifdef F77_DUMMY_MAIN
5572 #  ifdef __cplusplus
5573      extern "C"
5574 #  endif
5575    int F77_DUMMY_MAIN() { return 1; }
5576 #endif
5577 int
5578 main ()
5579 {
5580 main ();
5581   ;
5582   return 0;
5583 }
5584 _ACEOF
5585 rm -f conftest.$ac_objext conftest$ac_exeext
5586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5587   (eval $ac_link) 2>&5
5588   ac_status=$?
5589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590   (exit $ac_status); } &&
5591          { ac_try='test -s conftest$ac_exeext'
5592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593   (eval $ac_try) 2>&5
5594   ac_status=$?
5595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596   (exit $ac_status); }; }; then
5597   ac_cv_lib_unix_main=yes
5598 else
5599   echo "$as_me: failed program was:" >&5
5600 cat conftest.$ac_ext >&5
5601 ac_cv_lib_unix_main=no
5602 fi
5603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5604 LIBS=$ac_check_lib_save_LIBS
5605 fi
5606 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5607 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5608 if test $ac_cv_lib_unix_main = yes; then
5609   cat >>confdefs.h <<_ACEOF
5610 #define HAVE_LIBUNIX 1
5611 _ACEOF
5612
5613   LIBS="-lunix $LIBS"
5614
5615 fi
5616
5617 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5618 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5619 if test "${ac_cv_search_crypt+set}" = set; then
5620   echo $ECHO_N "(cached) $ECHO_C" >&6
5621 else
5622   ac_func_search_save_LIBS=$LIBS
5623 ac_cv_search_crypt=no
5624 cat >conftest.$ac_ext <<_ACEOF
5625 #line $LINENO "configure"
5626 #include "confdefs.h"
5627
5628 /* Override any gcc2 internal prototype to avoid an error.  */
5629 #ifdef __cplusplus
5630 extern "C"
5631 #endif
5632 /* We use char because int might match the return type of a gcc2
5633    builtin and then its argument prototype would still apply.  */
5634 char crypt ();
5635 #ifdef F77_DUMMY_MAIN
5636 #  ifdef __cplusplus
5637      extern "C"
5638 #  endif
5639    int F77_DUMMY_MAIN() { return 1; }
5640 #endif
5641 int
5642 main ()
5643 {
5644 crypt ();
5645   ;
5646   return 0;
5647 }
5648 _ACEOF
5649 rm -f conftest.$ac_objext conftest$ac_exeext
5650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5651   (eval $ac_link) 2>&5
5652   ac_status=$?
5653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654   (exit $ac_status); } &&
5655          { ac_try='test -s conftest$ac_exeext'
5656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657   (eval $ac_try) 2>&5
5658   ac_status=$?
5659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660   (exit $ac_status); }; }; then
5661   ac_cv_search_crypt="none required"
5662 else
5663   echo "$as_me: failed program was:" >&5
5664 cat conftest.$ac_ext >&5
5665 fi
5666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5667 if test "$ac_cv_search_crypt" = no; then
5668   for ac_lib in crypt; do
5669     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5670     cat >conftest.$ac_ext <<_ACEOF
5671 #line $LINENO "configure"
5672 #include "confdefs.h"
5673
5674 /* Override any gcc2 internal prototype to avoid an error.  */
5675 #ifdef __cplusplus
5676 extern "C"
5677 #endif
5678 /* We use char because int might match the return type of a gcc2
5679    builtin and then its argument prototype would still apply.  */
5680 char crypt ();
5681 #ifdef F77_DUMMY_MAIN
5682 #  ifdef __cplusplus
5683      extern "C"
5684 #  endif
5685    int F77_DUMMY_MAIN() { return 1; }
5686 #endif
5687 int
5688 main ()
5689 {
5690 crypt ();
5691   ;
5692   return 0;
5693 }
5694 _ACEOF
5695 rm -f conftest.$ac_objext conftest$ac_exeext
5696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5697   (eval $ac_link) 2>&5
5698   ac_status=$?
5699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700   (exit $ac_status); } &&
5701          { ac_try='test -s conftest$ac_exeext'
5702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703   (eval $ac_try) 2>&5
5704   ac_status=$?
5705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706   (exit $ac_status); }; }; then
5707   ac_cv_search_crypt="-l$ac_lib"
5708 break
5709 else
5710   echo "$as_me: failed program was:" >&5
5711 cat conftest.$ac_ext >&5
5712 fi
5713 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5714   done
5715 fi
5716 LIBS=$ac_func_search_save_LIBS
5717 fi
5718 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5719 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5720 if test "$ac_cv_search_crypt" != no; then
5721   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5722
5723 fi
5724
5725 # BeOS:
5726
5727 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5728 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5729 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5730   echo $ECHO_N "(cached) $ECHO_C" >&6
5731 else
5732   ac_check_lib_save_LIBS=$LIBS
5733 LIBS="-lbind  $LIBS"
5734 cat >conftest.$ac_ext <<_ACEOF
5735 #line $LINENO "configure"
5736 #include "confdefs.h"
5737
5738 /* Override any gcc2 internal prototype to avoid an error.  */
5739 #ifdef __cplusplus
5740 extern "C"
5741 #endif
5742 /* We use char because int might match the return type of a gcc2
5743    builtin and then its argument prototype would still apply.  */
5744 char __inet_ntoa ();
5745 #ifdef F77_DUMMY_MAIN
5746 #  ifdef __cplusplus
5747      extern "C"
5748 #  endif
5749    int F77_DUMMY_MAIN() { return 1; }
5750 #endif
5751 int
5752 main ()
5753 {
5754 __inet_ntoa ();
5755   ;
5756   return 0;
5757 }
5758 _ACEOF
5759 rm -f conftest.$ac_objext conftest$ac_exeext
5760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5761   (eval $ac_link) 2>&5
5762   ac_status=$?
5763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764   (exit $ac_status); } &&
5765          { ac_try='test -s conftest$ac_exeext'
5766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5767   (eval $ac_try) 2>&5
5768   ac_status=$?
5769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770   (exit $ac_status); }; }; then
5771   ac_cv_lib_bind___inet_ntoa=yes
5772 else
5773   echo "$as_me: failed program was:" >&5
5774 cat conftest.$ac_ext >&5
5775 ac_cv_lib_bind___inet_ntoa=no
5776 fi
5777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5778 LIBS=$ac_check_lib_save_LIBS
5779 fi
5780 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5781 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5782 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5783   cat >>confdefs.h <<_ACEOF
5784 #define HAVE_LIBBIND 1
5785 _ACEOF
5786
5787   LIBS="-lbind $LIBS"
5788
5789 fi
5790
5791 # Solaris:
5792 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5793 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5794 if test "${ac_cv_search_fdatasync+set}" = set; then
5795   echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797   ac_func_search_save_LIBS=$LIBS
5798 ac_cv_search_fdatasync=no
5799 cat >conftest.$ac_ext <<_ACEOF
5800 #line $LINENO "configure"
5801 #include "confdefs.h"
5802
5803 /* Override any gcc2 internal prototype to avoid an error.  */
5804 #ifdef __cplusplus
5805 extern "C"
5806 #endif
5807 /* We use char because int might match the return type of a gcc2
5808    builtin and then its argument prototype would still apply.  */
5809 char fdatasync ();
5810 #ifdef F77_DUMMY_MAIN
5811 #  ifdef __cplusplus
5812      extern "C"
5813 #  endif
5814    int F77_DUMMY_MAIN() { return 1; }
5815 #endif
5816 int
5817 main ()
5818 {
5819 fdatasync ();
5820   ;
5821   return 0;
5822 }
5823 _ACEOF
5824 rm -f conftest.$ac_objext conftest$ac_exeext
5825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5826   (eval $ac_link) 2>&5
5827   ac_status=$?
5828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829   (exit $ac_status); } &&
5830          { ac_try='test -s conftest$ac_exeext'
5831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832   (eval $ac_try) 2>&5
5833   ac_status=$?
5834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835   (exit $ac_status); }; }; then
5836   ac_cv_search_fdatasync="none required"
5837 else
5838   echo "$as_me: failed program was:" >&5
5839 cat conftest.$ac_ext >&5
5840 fi
5841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5842 if test "$ac_cv_search_fdatasync" = no; then
5843   for ac_lib in rt posix4; do
5844     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5845     cat >conftest.$ac_ext <<_ACEOF
5846 #line $LINENO "configure"
5847 #include "confdefs.h"
5848
5849 /* Override any gcc2 internal prototype to avoid an error.  */
5850 #ifdef __cplusplus
5851 extern "C"
5852 #endif
5853 /* We use char because int might match the return type of a gcc2
5854    builtin and then its argument prototype would still apply.  */
5855 char fdatasync ();
5856 #ifdef F77_DUMMY_MAIN
5857 #  ifdef __cplusplus
5858      extern "C"
5859 #  endif
5860    int F77_DUMMY_MAIN() { return 1; }
5861 #endif
5862 int
5863 main ()
5864 {
5865 fdatasync ();
5866   ;
5867   return 0;
5868 }
5869 _ACEOF
5870 rm -f conftest.$ac_objext conftest$ac_exeext
5871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5872   (eval $ac_link) 2>&5
5873   ac_status=$?
5874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875   (exit $ac_status); } &&
5876          { ac_try='test -s conftest$ac_exeext'
5877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878   (eval $ac_try) 2>&5
5879   ac_status=$?
5880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881   (exit $ac_status); }; }; then
5882   ac_cv_search_fdatasync="-l$ac_lib"
5883 break
5884 else
5885   echo "$as_me: failed program was:" >&5
5886 cat conftest.$ac_ext >&5
5887 fi
5888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5889   done
5890 fi
5891 LIBS=$ac_func_search_save_LIBS
5892 fi
5893 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5894 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5895 if test "$ac_cv_search_fdatasync" != no; then
5896   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5897
5898 fi
5899
5900
5901 if test "$with_readline" = yes; then
5902
5903 echo "$as_me:$LINENO: checking for readline" >&5
5904 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5905
5906 if test "${pgac_cv_check_readline+set}" = set; then
5907   echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909   pgac_cv_check_readline=no
5910 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5911   for pgac_rllib in -lreadline -ledit ; do
5912     pgac_save_LIBS=$LIBS
5913     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5914     cat >conftest.$ac_ext <<_ACEOF
5915 #line $LINENO "configure"
5916 #include "confdefs.h"
5917
5918 /* Override any gcc2 internal prototype to avoid an error.  */
5919 #ifdef __cplusplus
5920 extern "C"
5921 #endif
5922 /* We use char because int might match the return type of a gcc2
5923    builtin and then its argument prototype would still apply.  */
5924 char readline ();
5925 #ifdef F77_DUMMY_MAIN
5926 #  ifdef __cplusplus
5927      extern "C"
5928 #  endif
5929    int F77_DUMMY_MAIN() { return 1; }
5930 #endif
5931 int
5932 main ()
5933 {
5934 readline ();
5935   ;
5936   return 0;
5937 }
5938 _ACEOF
5939 rm -f conftest.$ac_objext conftest$ac_exeext
5940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5941   (eval $ac_link) 2>&5
5942   ac_status=$?
5943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944   (exit $ac_status); } &&
5945          { ac_try='test -s conftest$ac_exeext'
5946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947   (eval $ac_try) 2>&5
5948   ac_status=$?
5949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950   (exit $ac_status); }; }; then
5951
5952       # NetBSD and OpenBSD have a broken linker that does not
5953       # recognize dependent libraries
5954       case $host_os in netbsd* | openbsd* )
5955         case $pgac_lib in
5956           *curses*) ;;
5957           *) pgac_lib=" -lcurses" ;;
5958         esac
5959       esac
5960
5961       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5962       break 2
5963
5964 else
5965   echo "$as_me: failed program was:" >&5
5966 cat conftest.$ac_ext >&5
5967 fi
5968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5969     LIBS=$pgac_save_LIBS
5970   done
5971 done
5972 LIBS=$pgac_save_LIBS
5973
5974 fi
5975
5976 if test "$pgac_cv_check_readline" != no ; then
5977
5978 cat >>confdefs.h <<\_ACEOF
5979 #define HAVE_LIBREADLINE 1
5980 _ACEOF
5981
5982   LIBS="$pgac_cv_check_readline $LIBS"
5983   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5984 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5985 else
5986   echo "$as_me:$LINENO: result: no" >&5
5987 echo "${ECHO_T}no" >&6
5988 fi
5989   if test x"$pgac_cv_check_readline" = x"no"; then
5990     { { echo "$as_me:$LINENO: error: readline library not found
5991 Use --without-readline to disable readline support." >&5
5992 echo "$as_me: error: readline library not found
5993 Use --without-readline to disable readline support." >&2;}
5994    { (exit 1); exit 1; }; }
5995   fi
5996 fi
5997
5998 if test "$with_zlib" = yes; then
5999
6000 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6001 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6002 if test "${ac_cv_lib_z_inflate+set}" = set; then
6003   echo $ECHO_N "(cached) $ECHO_C" >&6
6004 else
6005   ac_check_lib_save_LIBS=$LIBS
6006 LIBS="-lz  $LIBS"
6007 cat >conftest.$ac_ext <<_ACEOF
6008 #line $LINENO "configure"
6009 #include "confdefs.h"
6010
6011 /* Override any gcc2 internal prototype to avoid an error.  */
6012 #ifdef __cplusplus
6013 extern "C"
6014 #endif
6015 /* We use char because int might match the return type of a gcc2
6016    builtin and then its argument prototype would still apply.  */
6017 char inflate ();
6018 #ifdef F77_DUMMY_MAIN
6019 #  ifdef __cplusplus
6020      extern "C"
6021 #  endif
6022    int F77_DUMMY_MAIN() { return 1; }
6023 #endif
6024 int
6025 main ()
6026 {
6027 inflate ();
6028   ;
6029   return 0;
6030 }
6031 _ACEOF
6032 rm -f conftest.$ac_objext conftest$ac_exeext
6033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6034   (eval $ac_link) 2>&5
6035   ac_status=$?
6036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037   (exit $ac_status); } &&
6038          { ac_try='test -s conftest$ac_exeext'
6039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040   (eval $ac_try) 2>&5
6041   ac_status=$?
6042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043   (exit $ac_status); }; }; then
6044   ac_cv_lib_z_inflate=yes
6045 else
6046   echo "$as_me: failed program was:" >&5
6047 cat conftest.$ac_ext >&5
6048 ac_cv_lib_z_inflate=no
6049 fi
6050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6051 LIBS=$ac_check_lib_save_LIBS
6052 fi
6053 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6054 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6055 if test $ac_cv_lib_z_inflate = yes; then
6056   cat >>confdefs.h <<_ACEOF
6057 #define HAVE_LIBZ 1
6058 _ACEOF
6059
6060   LIBS="-lz $LIBS"
6061
6062 else
6063   { { echo "$as_me:$LINENO: error: zlib library not found
6064 Use --without-zlib to disable zlib support." >&5
6065 echo "$as_me: error: zlib library not found
6066 Use --without-zlib to disable zlib support." >&2;}
6067    { (exit 1); exit 1; }; }
6068 fi
6069
6070 fi
6071
6072 if test "$with_krb4" = yes ; then
6073
6074 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6075 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6076 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6077   echo $ECHO_N "(cached) $ECHO_C" >&6
6078 else
6079   ac_check_lib_save_LIBS=$LIBS
6080 LIBS="-ldes  $LIBS"
6081 cat >conftest.$ac_ext <<_ACEOF
6082 #line $LINENO "configure"
6083 #include "confdefs.h"
6084
6085 /* Override any gcc2 internal prototype to avoid an error.  */
6086 #ifdef __cplusplus
6087 extern "C"
6088 #endif
6089 /* We use char because int might match the return type of a gcc2
6090    builtin and then its argument prototype would still apply.  */
6091 char des_encrypt ();
6092 #ifdef F77_DUMMY_MAIN
6093 #  ifdef __cplusplus
6094      extern "C"
6095 #  endif
6096    int F77_DUMMY_MAIN() { return 1; }
6097 #endif
6098 int
6099 main ()
6100 {
6101 des_encrypt ();
6102   ;
6103   return 0;
6104 }
6105 _ACEOF
6106 rm -f conftest.$ac_objext conftest$ac_exeext
6107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6108   (eval $ac_link) 2>&5
6109   ac_status=$?
6110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111   (exit $ac_status); } &&
6112          { ac_try='test -s conftest$ac_exeext'
6113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114   (eval $ac_try) 2>&5
6115   ac_status=$?
6116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117   (exit $ac_status); }; }; then
6118   ac_cv_lib_des_des_encrypt=yes
6119 else
6120   echo "$as_me: failed program was:" >&5
6121 cat conftest.$ac_ext >&5
6122 ac_cv_lib_des_des_encrypt=no
6123 fi
6124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6125 LIBS=$ac_check_lib_save_LIBS
6126 fi
6127 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6128 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6129 if test $ac_cv_lib_des_des_encrypt = yes; then
6130   cat >>confdefs.h <<_ACEOF
6131 #define HAVE_LIBDES 1
6132 _ACEOF
6133
6134   LIBS="-ldes $LIBS"
6135
6136 else
6137   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6138 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6139    { (exit 1); exit 1; }; }
6140 fi
6141
6142
6143 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6144 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6145 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6146   echo $ECHO_N "(cached) $ECHO_C" >&6
6147 else
6148   ac_check_lib_save_LIBS=$LIBS
6149 LIBS="-lkrb  $LIBS"
6150 cat >conftest.$ac_ext <<_ACEOF
6151 #line $LINENO "configure"
6152 #include "confdefs.h"
6153
6154 /* Override any gcc2 internal prototype to avoid an error.  */
6155 #ifdef __cplusplus
6156 extern "C"
6157 #endif
6158 /* We use char because int might match the return type of a gcc2
6159    builtin and then its argument prototype would still apply.  */
6160 char krb_sendauth ();
6161 #ifdef F77_DUMMY_MAIN
6162 #  ifdef __cplusplus
6163      extern "C"
6164 #  endif
6165    int F77_DUMMY_MAIN() { return 1; }
6166 #endif
6167 int
6168 main ()
6169 {
6170 krb_sendauth ();
6171   ;
6172   return 0;
6173 }
6174 _ACEOF
6175 rm -f conftest.$ac_objext conftest$ac_exeext
6176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6177   (eval $ac_link) 2>&5
6178   ac_status=$?
6179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180   (exit $ac_status); } &&
6181          { ac_try='test -s conftest$ac_exeext'
6182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183   (eval $ac_try) 2>&5
6184   ac_status=$?
6185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186   (exit $ac_status); }; }; then
6187   ac_cv_lib_krb_krb_sendauth=yes
6188 else
6189   echo "$as_me: failed program was:" >&5
6190 cat conftest.$ac_ext >&5
6191 ac_cv_lib_krb_krb_sendauth=no
6192 fi
6193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6194 LIBS=$ac_check_lib_save_LIBS
6195 fi
6196 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6197 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6198 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6199   cat >>confdefs.h <<_ACEOF
6200 #define HAVE_LIBKRB 1
6201 _ACEOF
6202
6203   LIBS="-lkrb $LIBS"
6204
6205 else
6206   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6207 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6208    { (exit 1); exit 1; }; }
6209 fi
6210
6211 fi
6212
6213 if test "$with_krb5" = yes ; then
6214   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6215 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6216 if test "${ac_cv_search_com_err+set}" = set; then
6217   echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219   ac_func_search_save_LIBS=$LIBS
6220 ac_cv_search_com_err=no
6221 cat >conftest.$ac_ext <<_ACEOF
6222 #line $LINENO "configure"
6223 #include "confdefs.h"
6224
6225 /* Override any gcc2 internal prototype to avoid an error.  */
6226 #ifdef __cplusplus
6227 extern "C"
6228 #endif
6229 /* We use char because int might match the return type of a gcc2
6230    builtin and then its argument prototype would still apply.  */
6231 char com_err ();
6232 #ifdef F77_DUMMY_MAIN
6233 #  ifdef __cplusplus
6234      extern "C"
6235 #  endif
6236    int F77_DUMMY_MAIN() { return 1; }
6237 #endif
6238 int
6239 main ()
6240 {
6241 com_err ();
6242   ;
6243   return 0;
6244 }
6245 _ACEOF
6246 rm -f conftest.$ac_objext conftest$ac_exeext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6248   (eval $ac_link) 2>&5
6249   ac_status=$?
6250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251   (exit $ac_status); } &&
6252          { ac_try='test -s conftest$ac_exeext'
6253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254   (eval $ac_try) 2>&5
6255   ac_status=$?
6256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257   (exit $ac_status); }; }; then
6258   ac_cv_search_com_err="none required"
6259 else
6260   echo "$as_me: failed program was:" >&5
6261 cat conftest.$ac_ext >&5
6262 fi
6263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6264 if test "$ac_cv_search_com_err" = no; then
6265   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6266     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6267     cat >conftest.$ac_ext <<_ACEOF
6268 #line $LINENO "configure"
6269 #include "confdefs.h"
6270
6271 /* Override any gcc2 internal prototype to avoid an error.  */
6272 #ifdef __cplusplus
6273 extern "C"
6274 #endif
6275 /* We use char because int might match the return type of a gcc2
6276    builtin and then its argument prototype would still apply.  */
6277 char com_err ();
6278 #ifdef F77_DUMMY_MAIN
6279 #  ifdef __cplusplus
6280      extern "C"
6281 #  endif
6282    int F77_DUMMY_MAIN() { return 1; }
6283 #endif
6284 int
6285 main ()
6286 {
6287 com_err ();
6288   ;
6289   return 0;
6290 }
6291 _ACEOF
6292 rm -f conftest.$ac_objext conftest$ac_exeext
6293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6294   (eval $ac_link) 2>&5
6295   ac_status=$?
6296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297   (exit $ac_status); } &&
6298          { ac_try='test -s conftest$ac_exeext'
6299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300   (eval $ac_try) 2>&5
6301   ac_status=$?
6302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303   (exit $ac_status); }; }; then
6304   ac_cv_search_com_err="-l$ac_lib"
6305 break
6306 else
6307   echo "$as_me: failed program was:" >&5
6308 cat conftest.$ac_ext >&5
6309 fi
6310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6311   done
6312 fi
6313 LIBS=$ac_func_search_save_LIBS
6314 fi
6315 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6316 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6317 if test "$ac_cv_search_com_err" != no; then
6318   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6319
6320 else
6321   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6322 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6323    { (exit 1); exit 1; }; }
6324 fi
6325
6326   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6327 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6328 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6329   echo $ECHO_N "(cached) $ECHO_C" >&6
6330 else
6331   ac_func_search_save_LIBS=$LIBS
6332 ac_cv_search_krb5_encrypt=no
6333 cat >conftest.$ac_ext <<_ACEOF
6334 #line $LINENO "configure"
6335 #include "confdefs.h"
6336
6337 /* Override any gcc2 internal prototype to avoid an error.  */
6338 #ifdef __cplusplus
6339 extern "C"
6340 #endif
6341 /* We use char because int might match the return type of a gcc2
6342    builtin and then its argument prototype would still apply.  */
6343 char krb5_encrypt ();
6344 #ifdef F77_DUMMY_MAIN
6345 #  ifdef __cplusplus
6346      extern "C"
6347 #  endif
6348    int F77_DUMMY_MAIN() { return 1; }
6349 #endif
6350 int
6351 main ()
6352 {
6353 krb5_encrypt ();
6354   ;
6355   return 0;
6356 }
6357 _ACEOF
6358 rm -f conftest.$ac_objext conftest$ac_exeext
6359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6360   (eval $ac_link) 2>&5
6361   ac_status=$?
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); } &&
6364          { ac_try='test -s conftest$ac_exeext'
6365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366   (eval $ac_try) 2>&5
6367   ac_status=$?
6368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369   (exit $ac_status); }; }; then
6370   ac_cv_search_krb5_encrypt="none required"
6371 else
6372   echo "$as_me: failed program was:" >&5
6373 cat conftest.$ac_ext >&5
6374 fi
6375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6376 if test "$ac_cv_search_krb5_encrypt" = no; then
6377   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6378     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6379     cat >conftest.$ac_ext <<_ACEOF
6380 #line $LINENO "configure"
6381 #include "confdefs.h"
6382
6383 /* Override any gcc2 internal prototype to avoid an error.  */
6384 #ifdef __cplusplus
6385 extern "C"
6386 #endif
6387 /* We use char because int might match the return type of a gcc2
6388    builtin and then its argument prototype would still apply.  */
6389 char krb5_encrypt ();
6390 #ifdef F77_DUMMY_MAIN
6391 #  ifdef __cplusplus
6392      extern "C"
6393 #  endif
6394    int F77_DUMMY_MAIN() { return 1; }
6395 #endif
6396 int
6397 main ()
6398 {
6399 krb5_encrypt ();
6400   ;
6401   return 0;
6402 }
6403 _ACEOF
6404 rm -f conftest.$ac_objext conftest$ac_exeext
6405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6406   (eval $ac_link) 2>&5
6407   ac_status=$?
6408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409   (exit $ac_status); } &&
6410          { ac_try='test -s conftest$ac_exeext'
6411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412   (eval $ac_try) 2>&5
6413   ac_status=$?
6414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415   (exit $ac_status); }; }; then
6416   ac_cv_search_krb5_encrypt="-l$ac_lib"
6417 break
6418 else
6419   echo "$as_me: failed program was:" >&5
6420 cat conftest.$ac_ext >&5
6421 fi
6422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6423   done
6424 fi
6425 LIBS=$ac_func_search_save_LIBS
6426 fi
6427 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6428 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6429 if test "$ac_cv_search_krb5_encrypt" != no; then
6430   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6431
6432 else
6433   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6434 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6435    { (exit 1); exit 1; }; }
6436 fi
6437
6438   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6439 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6440 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6441   echo $ECHO_N "(cached) $ECHO_C" >&6
6442 else
6443   ac_func_search_save_LIBS=$LIBS
6444 ac_cv_search_krb5_sendauth=no
6445 cat >conftest.$ac_ext <<_ACEOF
6446 #line $LINENO "configure"
6447 #include "confdefs.h"
6448
6449 /* Override any gcc2 internal prototype to avoid an error.  */
6450 #ifdef __cplusplus
6451 extern "C"
6452 #endif
6453 /* We use char because int might match the return type of a gcc2
6454    builtin and then its argument prototype would still apply.  */
6455 char krb5_sendauth ();
6456 #ifdef F77_DUMMY_MAIN
6457 #  ifdef __cplusplus
6458      extern "C"
6459 #  endif
6460    int F77_DUMMY_MAIN() { return 1; }
6461 #endif
6462 int
6463 main ()
6464 {
6465 krb5_sendauth ();
6466   ;
6467   return 0;
6468 }
6469 _ACEOF
6470 rm -f conftest.$ac_objext conftest$ac_exeext
6471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6472   (eval $ac_link) 2>&5
6473   ac_status=$?
6474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475   (exit $ac_status); } &&
6476          { ac_try='test -s conftest$ac_exeext'
6477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478   (eval $ac_try) 2>&5
6479   ac_status=$?
6480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481   (exit $ac_status); }; }; then
6482   ac_cv_search_krb5_sendauth="none required"
6483 else
6484   echo "$as_me: failed program was:" >&5
6485 cat conftest.$ac_ext >&5
6486 fi
6487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6488 if test "$ac_cv_search_krb5_sendauth" = no; then
6489   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6490     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6491     cat >conftest.$ac_ext <<_ACEOF
6492 #line $LINENO "configure"
6493 #include "confdefs.h"
6494
6495 /* Override any gcc2 internal prototype to avoid an error.  */
6496 #ifdef __cplusplus
6497 extern "C"
6498 #endif
6499 /* We use char because int might match the return type of a gcc2
6500    builtin and then its argument prototype would still apply.  */
6501 char krb5_sendauth ();
6502 #ifdef F77_DUMMY_MAIN
6503 #  ifdef __cplusplus
6504      extern "C"
6505 #  endif
6506    int F77_DUMMY_MAIN() { return 1; }
6507 #endif
6508 int
6509 main ()
6510 {
6511 krb5_sendauth ();
6512   ;
6513   return 0;
6514 }
6515 _ACEOF
6516 rm -f conftest.$ac_objext conftest$ac_exeext
6517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6518   (eval $ac_link) 2>&5
6519   ac_status=$?
6520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521   (exit $ac_status); } &&
6522          { ac_try='test -s conftest$ac_exeext'
6523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6524   (eval $ac_try) 2>&5
6525   ac_status=$?
6526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527   (exit $ac_status); }; }; then
6528   ac_cv_search_krb5_sendauth="-l$ac_lib"
6529 break
6530 else
6531   echo "$as_me: failed program was:" >&5
6532 cat conftest.$ac_ext >&5
6533 fi
6534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6535   done
6536 fi
6537 LIBS=$ac_func_search_save_LIBS
6538 fi
6539 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6540 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6541 if test "$ac_cv_search_krb5_sendauth" != no; then
6542   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6543
6544 else
6545   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6546 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6547    { (exit 1); exit 1; }; }
6548 fi
6549
6550 fi
6551
6552 if test "$with_openssl" = yes ; then
6553
6554 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6555 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6556 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6557   echo $ECHO_N "(cached) $ECHO_C" >&6
6558 else
6559   ac_check_lib_save_LIBS=$LIBS
6560 LIBS="-lcrypto  $LIBS"
6561 cat >conftest.$ac_ext <<_ACEOF
6562 #line $LINENO "configure"
6563 #include "confdefs.h"
6564
6565 /* Override any gcc2 internal prototype to avoid an error.  */
6566 #ifdef __cplusplus
6567 extern "C"
6568 #endif
6569 /* We use char because int might match the return type of a gcc2
6570    builtin and then its argument prototype would still apply.  */
6571 char CRYPTO_new_ex_data ();
6572 #ifdef F77_DUMMY_MAIN
6573 #  ifdef __cplusplus
6574      extern "C"
6575 #  endif
6576    int F77_DUMMY_MAIN() { return 1; }
6577 #endif
6578 int
6579 main ()
6580 {
6581 CRYPTO_new_ex_data ();
6582   ;
6583   return 0;
6584 }
6585 _ACEOF
6586 rm -f conftest.$ac_objext conftest$ac_exeext
6587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6588   (eval $ac_link) 2>&5
6589   ac_status=$?
6590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591   (exit $ac_status); } &&
6592          { ac_try='test -s conftest$ac_exeext'
6593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594   (eval $ac_try) 2>&5
6595   ac_status=$?
6596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597   (exit $ac_status); }; }; then
6598   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6599 else
6600   echo "$as_me: failed program was:" >&5
6601 cat conftest.$ac_ext >&5
6602 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6603 fi
6604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6605 LIBS=$ac_check_lib_save_LIBS
6606 fi
6607 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6608 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6609 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6610   cat >>confdefs.h <<_ACEOF
6611 #define HAVE_LIBCRYPTO 1
6612 _ACEOF
6613
6614   LIBS="-lcrypto $LIBS"
6615
6616 else
6617   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6618 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6619    { (exit 1); exit 1; }; }
6620 fi
6621
6622
6623 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6624 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6625 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6626   echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6628   ac_check_lib_save_LIBS=$LIBS
6629 LIBS="-lssl  $LIBS"
6630 cat >conftest.$ac_ext <<_ACEOF
6631 #line $LINENO "configure"
6632 #include "confdefs.h"
6633
6634 /* Override any gcc2 internal prototype to avoid an error.  */
6635 #ifdef __cplusplus
6636 extern "C"
6637 #endif
6638 /* We use char because int might match the return type of a gcc2
6639    builtin and then its argument prototype would still apply.  */
6640 char SSL_library_init ();
6641 #ifdef F77_DUMMY_MAIN
6642 #  ifdef __cplusplus
6643      extern "C"
6644 #  endif
6645    int F77_DUMMY_MAIN() { return 1; }
6646 #endif
6647 int
6648 main ()
6649 {
6650 SSL_library_init ();
6651   ;
6652   return 0;
6653 }
6654 _ACEOF
6655 rm -f conftest.$ac_objext conftest$ac_exeext
6656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6657   (eval $ac_link) 2>&5
6658   ac_status=$?
6659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660   (exit $ac_status); } &&
6661          { ac_try='test -s conftest$ac_exeext'
6662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663   (eval $ac_try) 2>&5
6664   ac_status=$?
6665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666   (exit $ac_status); }; }; then
6667   ac_cv_lib_ssl_SSL_library_init=yes
6668 else
6669   echo "$as_me: failed program was:" >&5
6670 cat conftest.$ac_ext >&5
6671 ac_cv_lib_ssl_SSL_library_init=no
6672 fi
6673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6674 LIBS=$ac_check_lib_save_LIBS
6675 fi
6676 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6677 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6678 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6679   cat >>confdefs.h <<_ACEOF
6680 #define HAVE_LIBSSL 1
6681 _ACEOF
6682
6683   LIBS="-lssl $LIBS"
6684
6685 else
6686   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6687 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6688    { (exit 1); exit 1; }; }
6689 fi
6690
6691 fi
6692
6693 if test "$with_pam" = yes ; then
6694
6695 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6696 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6697 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6698   echo $ECHO_N "(cached) $ECHO_C" >&6
6699 else
6700   ac_check_lib_save_LIBS=$LIBS
6701 LIBS="-lpam  $LIBS"
6702 cat >conftest.$ac_ext <<_ACEOF
6703 #line $LINENO "configure"
6704 #include "confdefs.h"
6705
6706 /* Override any gcc2 internal prototype to avoid an error.  */
6707 #ifdef __cplusplus
6708 extern "C"
6709 #endif
6710 /* We use char because int might match the return type of a gcc2
6711    builtin and then its argument prototype would still apply.  */
6712 char pam_start ();
6713 #ifdef F77_DUMMY_MAIN
6714 #  ifdef __cplusplus
6715      extern "C"
6716 #  endif
6717    int F77_DUMMY_MAIN() { return 1; }
6718 #endif
6719 int
6720 main ()
6721 {
6722 pam_start ();
6723   ;
6724   return 0;
6725 }
6726 _ACEOF
6727 rm -f conftest.$ac_objext conftest$ac_exeext
6728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6729   (eval $ac_link) 2>&5
6730   ac_status=$?
6731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732   (exit $ac_status); } &&
6733          { ac_try='test -s conftest$ac_exeext'
6734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735   (eval $ac_try) 2>&5
6736   ac_status=$?
6737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738   (exit $ac_status); }; }; then
6739   ac_cv_lib_pam_pam_start=yes
6740 else
6741   echo "$as_me: failed program was:" >&5
6742 cat conftest.$ac_ext >&5
6743 ac_cv_lib_pam_pam_start=no
6744 fi
6745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6746 LIBS=$ac_check_lib_save_LIBS
6747 fi
6748 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6749 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6750 if test $ac_cv_lib_pam_pam_start = yes; then
6751   cat >>confdefs.h <<_ACEOF
6752 #define HAVE_LIBPAM 1
6753 _ACEOF
6754
6755   LIBS="-lpam $LIBS"
6756
6757 else
6758   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6759 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6760    { (exit 1); exit 1; }; }
6761 fi
6762
6763 fi
6764
6765
6766 ##
6767 ## Header files
6768 ##
6769
6770 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6771 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6772 if test "${ac_cv_header_stdc+set}" = set; then
6773   echo $ECHO_N "(cached) $ECHO_C" >&6
6774 else
6775   cat >conftest.$ac_ext <<_ACEOF
6776 #line $LINENO "configure"
6777 #include "confdefs.h"
6778 #include <stdlib.h>
6779 #include <stdarg.h>
6780 #include <string.h>
6781 #include <float.h>
6782
6783 _ACEOF
6784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6785   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6786   ac_status=$?
6787   egrep -v '^ *\+' conftest.er1 >conftest.err
6788   rm -f conftest.er1
6789   cat conftest.err >&5
6790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791   (exit $ac_status); } >/dev/null; then
6792   if test -s conftest.err; then
6793     ac_cpp_err=$ac_c_preproc_warn_flag
6794   else
6795     ac_cpp_err=
6796   fi
6797 else
6798   ac_cpp_err=yes
6799 fi
6800 if test -z "$ac_cpp_err"; then
6801   ac_cv_header_stdc=yes
6802 else
6803   echo "$as_me: failed program was:" >&5
6804   cat conftest.$ac_ext >&5
6805   ac_cv_header_stdc=no
6806 fi
6807 rm -f conftest.err conftest.$ac_ext
6808
6809 if test $ac_cv_header_stdc = yes; then
6810   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6811   cat >conftest.$ac_ext <<_ACEOF
6812 #line $LINENO "configure"
6813 #include "confdefs.h"
6814 #include <string.h>
6815
6816 _ACEOF
6817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6818   egrep "memchr" >/dev/null 2>&1; then
6819   :
6820 else
6821   ac_cv_header_stdc=no
6822 fi
6823 rm -f conftest*
6824
6825 fi
6826
6827 if test $ac_cv_header_stdc = yes; then
6828   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6829   cat >conftest.$ac_ext <<_ACEOF
6830 #line $LINENO "configure"
6831 #include "confdefs.h"
6832 #include <stdlib.h>
6833
6834 _ACEOF
6835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6836   egrep "free" >/dev/null 2>&1; then
6837   :
6838 else
6839   ac_cv_header_stdc=no
6840 fi
6841 rm -f conftest*
6842
6843 fi
6844
6845 if test $ac_cv_header_stdc = yes; then
6846   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6847   if test "$cross_compiling" = yes; then
6848   :
6849 else
6850   cat >conftest.$ac_ext <<_ACEOF
6851 #line $LINENO "configure"
6852 #include "confdefs.h"
6853 #include <ctype.h>
6854 #if ((' ' & 0x0FF) == 0x020)
6855 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6856 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6857 #else
6858 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6859                      || ('j' <= (c) && (c) <= 'r') \
6860                      || ('s' <= (c) && (c) <= 'z'))
6861 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6862 #endif
6863
6864 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6865 int
6866 main ()
6867 {
6868   int i;
6869   for (i = 0; i < 256; i++)
6870     if (XOR (islower (i), ISLOWER (i))
6871         || toupper (i) != TOUPPER (i))
6872       exit(2);
6873   exit (0);
6874 }
6875 _ACEOF
6876 rm -f conftest$ac_exeext
6877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6878   (eval $ac_link) 2>&5
6879   ac_status=$?
6880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883   (eval $ac_try) 2>&5
6884   ac_status=$?
6885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886   (exit $ac_status); }; }; then
6887   :
6888 else
6889   echo "$as_me: program exited with status $ac_status" >&5
6890 echo "$as_me: failed program was:" >&5
6891 cat conftest.$ac_ext >&5
6892 ( exit $ac_status )
6893 ac_cv_header_stdc=no
6894 fi
6895 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6896 fi
6897 fi
6898 fi
6899 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6900 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6901 if test $ac_cv_header_stdc = yes; then
6902
6903 cat >>confdefs.h <<\_ACEOF
6904 #define STDC_HEADERS 1
6905 _ACEOF
6906
6907 fi
6908
6909 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6920                   inttypes.h stdint.h unistd.h
6921 do
6922 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6923 echo "$as_me:$LINENO: checking for $ac_header" >&5
6924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6926   echo $ECHO_N "(cached) $ECHO_C" >&6
6927 else
6928   cat >conftest.$ac_ext <<_ACEOF
6929 #line $LINENO "configure"
6930 #include "confdefs.h"
6931 $ac_includes_default
6932
6933 #include <$ac_header>
6934 _ACEOF
6935 rm -f conftest.$ac_objext
6936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6937   (eval $ac_compile) 2>&5
6938   ac_status=$?
6939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940   (exit $ac_status); } &&
6941          { ac_try='test -s conftest.$ac_objext'
6942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943   (eval $ac_try) 2>&5
6944   ac_status=$?
6945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946   (exit $ac_status); }; }; then
6947   eval "$as_ac_Header=yes"
6948 else
6949   echo "$as_me: failed program was:" >&5
6950 cat conftest.$ac_ext >&5
6951 eval "$as_ac_Header=no"
6952 fi
6953 rm -f conftest.$ac_objext conftest.$ac_ext
6954 fi
6955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6958   cat >>confdefs.h <<_ACEOF
6959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6960 _ACEOF
6961
6962 fi
6963
6964 done
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985 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
6986 do
6987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6989   echo "$as_me:$LINENO: checking for $ac_header" >&5
6990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6992   echo $ECHO_N "(cached) $ECHO_C" >&6
6993 fi
6994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6996 else
6997   # Is the header compilable?
6998 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7000 cat >conftest.$ac_ext <<_ACEOF
7001 #line $LINENO "configure"
7002 #include "confdefs.h"
7003 $ac_includes_default
7004 #include <$ac_header>
7005 _ACEOF
7006 rm -f conftest.$ac_objext
7007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7008   (eval $ac_compile) 2>&5
7009   ac_status=$?
7010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011   (exit $ac_status); } &&
7012          { ac_try='test -s conftest.$ac_objext'
7013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014   (eval $ac_try) 2>&5
7015   ac_status=$?
7016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017   (exit $ac_status); }; }; then
7018   ac_header_compiler=yes
7019 else
7020   echo "$as_me: failed program was:" >&5
7021 cat conftest.$ac_ext >&5
7022 ac_header_compiler=no
7023 fi
7024 rm -f conftest.$ac_objext conftest.$ac_ext
7025 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7026 echo "${ECHO_T}$ac_header_compiler" >&6
7027
7028 # Is the header present?
7029 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7031 cat >conftest.$ac_ext <<_ACEOF
7032 #line $LINENO "configure"
7033 #include "confdefs.h"
7034 #include <$ac_header>
7035 _ACEOF
7036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7037   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7038   ac_status=$?
7039   egrep -v '^ *\+' conftest.er1 >conftest.err
7040   rm -f conftest.er1
7041   cat conftest.err >&5
7042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043   (exit $ac_status); } >/dev/null; then
7044   if test -s conftest.err; then
7045     ac_cpp_err=$ac_c_preproc_warn_flag
7046   else
7047     ac_cpp_err=
7048   fi
7049 else
7050   ac_cpp_err=yes
7051 fi
7052 if test -z "$ac_cpp_err"; then
7053   ac_header_preproc=yes
7054 else
7055   echo "$as_me: failed program was:" >&5
7056   cat conftest.$ac_ext >&5
7057   ac_header_preproc=no
7058 fi
7059 rm -f conftest.err conftest.$ac_ext
7060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7061 echo "${ECHO_T}$ac_header_preproc" >&6
7062
7063 # So?  What about this header?
7064 case $ac_header_compiler:$ac_header_preproc in
7065   yes:no )
7066     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7068     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7070   no:yes )
7071     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7072 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7073     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7074 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7075     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7077 esac
7078 echo "$as_me:$LINENO: checking for $ac_header" >&5
7079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7081   echo $ECHO_N "(cached) $ECHO_C" >&6
7082 else
7083   eval "$as_ac_Header=$ac_header_preproc"
7084 fi
7085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7087
7088 fi
7089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7090   cat >>confdefs.h <<_ACEOF
7091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7092 _ACEOF
7093
7094 fi
7095
7096 done
7097
7098
7099 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7100 # netinet/in.h is included first.
7101
7102 for ac_header in netinet/in.h
7103 do
7104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7106   echo "$as_me:$LINENO: checking for $ac_header" >&5
7107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7109   echo $ECHO_N "(cached) $ECHO_C" >&6
7110 fi
7111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7113 else
7114   # Is the header compilable?
7115 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7117 cat >conftest.$ac_ext <<_ACEOF
7118 #line $LINENO "configure"
7119 #include "confdefs.h"
7120 $ac_includes_default
7121 #include <$ac_header>
7122 _ACEOF
7123 rm -f conftest.$ac_objext
7124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7125   (eval $ac_compile) 2>&5
7126   ac_status=$?
7127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128   (exit $ac_status); } &&
7129          { ac_try='test -s conftest.$ac_objext'
7130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131   (eval $ac_try) 2>&5
7132   ac_status=$?
7133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134   (exit $ac_status); }; }; then
7135   ac_header_compiler=yes
7136 else
7137   echo "$as_me: failed program was:" >&5
7138 cat conftest.$ac_ext >&5
7139 ac_header_compiler=no
7140 fi
7141 rm -f conftest.$ac_objext conftest.$ac_ext
7142 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7143 echo "${ECHO_T}$ac_header_compiler" >&6
7144
7145 # Is the header present?
7146 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7148 cat >conftest.$ac_ext <<_ACEOF
7149 #line $LINENO "configure"
7150 #include "confdefs.h"
7151 #include <$ac_header>
7152 _ACEOF
7153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7154   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7155   ac_status=$?
7156   egrep -v '^ *\+' conftest.er1 >conftest.err
7157   rm -f conftest.er1
7158   cat conftest.err >&5
7159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160   (exit $ac_status); } >/dev/null; then
7161   if test -s conftest.err; then
7162     ac_cpp_err=$ac_c_preproc_warn_flag
7163   else
7164     ac_cpp_err=
7165   fi
7166 else
7167   ac_cpp_err=yes
7168 fi
7169 if test -z "$ac_cpp_err"; then
7170   ac_header_preproc=yes
7171 else
7172   echo "$as_me: failed program was:" >&5
7173   cat conftest.$ac_ext >&5
7174   ac_header_preproc=no
7175 fi
7176 rm -f conftest.err conftest.$ac_ext
7177 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7178 echo "${ECHO_T}$ac_header_preproc" >&6
7179
7180 # So?  What about this header?
7181 case $ac_header_compiler:$ac_header_preproc in
7182   yes:no )
7183     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7185     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7187   no:yes )
7188     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7190     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7191 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&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 esac
7195 echo "$as_me:$LINENO: checking for $ac_header" >&5
7196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7198   echo $ECHO_N "(cached) $ECHO_C" >&6
7199 else
7200   eval "$as_ac_Header=$ac_header_preproc"
7201 fi
7202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7204
7205 fi
7206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7207   cat >>confdefs.h <<_ACEOF
7208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7209 _ACEOF
7210
7211 fi
7212
7213 done
7214
7215
7216 for ac_header in netinet/tcp.h
7217 do
7218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7219 echo "$as_me:$LINENO: checking for $ac_header" >&5
7220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7222   echo $ECHO_N "(cached) $ECHO_C" >&6
7223 else
7224   cat >conftest.$ac_ext <<_ACEOF
7225 #line $LINENO "configure"
7226 #include "confdefs.h"
7227 $ac_includes_default
7228 #ifdef HAVE_NETINET_IN_H
7229 #include <netinet/in.h>
7230 #endif
7231
7232
7233 #include <$ac_header>
7234 _ACEOF
7235 rm -f conftest.$ac_objext
7236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7237   (eval $ac_compile) 2>&5
7238   ac_status=$?
7239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240   (exit $ac_status); } &&
7241          { ac_try='test -s conftest.$ac_objext'
7242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243   (eval $ac_try) 2>&5
7244   ac_status=$?
7245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246   (exit $ac_status); }; }; then
7247   eval "$as_ac_Header=yes"
7248 else
7249   echo "$as_me: failed program was:" >&5
7250 cat conftest.$ac_ext >&5
7251 eval "$as_ac_Header=no"
7252 fi
7253 rm -f conftest.$ac_objext conftest.$ac_ext
7254 fi
7255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7258   cat >>confdefs.h <<_ACEOF
7259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7260 _ACEOF
7261
7262 fi
7263
7264 done
7265
7266
7267 if test "$with_readline" = yes; then
7268
7269 for ac_header in readline/readline.h
7270 do
7271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7273   echo "$as_me:$LINENO: checking for $ac_header" >&5
7274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7276   echo $ECHO_N "(cached) $ECHO_C" >&6
7277 fi
7278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7280 else
7281   # Is the header compilable?
7282 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7283 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7284 cat >conftest.$ac_ext <<_ACEOF
7285 #line $LINENO "configure"
7286 #include "confdefs.h"
7287 $ac_includes_default
7288 #include <$ac_header>
7289 _ACEOF
7290 rm -f conftest.$ac_objext
7291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7292   (eval $ac_compile) 2>&5
7293   ac_status=$?
7294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295   (exit $ac_status); } &&
7296          { ac_try='test -s conftest.$ac_objext'
7297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298   (eval $ac_try) 2>&5
7299   ac_status=$?
7300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301   (exit $ac_status); }; }; then
7302   ac_header_compiler=yes
7303 else
7304   echo "$as_me: failed program was:" >&5
7305 cat conftest.$ac_ext >&5
7306 ac_header_compiler=no
7307 fi
7308 rm -f conftest.$ac_objext conftest.$ac_ext
7309 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7310 echo "${ECHO_T}$ac_header_compiler" >&6
7311
7312 # Is the header present?
7313 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7315 cat >conftest.$ac_ext <<_ACEOF
7316 #line $LINENO "configure"
7317 #include "confdefs.h"
7318 #include <$ac_header>
7319 _ACEOF
7320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7321   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7322   ac_status=$?
7323   egrep -v '^ *\+' conftest.er1 >conftest.err
7324   rm -f conftest.er1
7325   cat conftest.err >&5
7326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327   (exit $ac_status); } >/dev/null; then
7328   if test -s conftest.err; then
7329     ac_cpp_err=$ac_c_preproc_warn_flag
7330   else
7331     ac_cpp_err=
7332   fi
7333 else
7334   ac_cpp_err=yes
7335 fi
7336 if test -z "$ac_cpp_err"; then
7337   ac_header_preproc=yes
7338 else
7339   echo "$as_me: failed program was:" >&5
7340   cat conftest.$ac_ext >&5
7341   ac_header_preproc=no
7342 fi
7343 rm -f conftest.err conftest.$ac_ext
7344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7345 echo "${ECHO_T}$ac_header_preproc" >&6
7346
7347 # So?  What about this header?
7348 case $ac_header_compiler:$ac_header_preproc in
7349   yes:no )
7350     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7354   no:yes )
7355     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7357     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7358 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7359     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7361 esac
7362 echo "$as_me:$LINENO: checking for $ac_header" >&5
7363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7365   echo $ECHO_N "(cached) $ECHO_C" >&6
7366 else
7367   eval "$as_ac_Header=$ac_header_preproc"
7368 fi
7369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7371
7372 fi
7373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7374   cat >>confdefs.h <<_ACEOF
7375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7376 _ACEOF
7377
7378 else
7379
7380 for ac_header in readline.h
7381 do
7382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7384   echo "$as_me:$LINENO: checking for $ac_header" >&5
7385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7387   echo $ECHO_N "(cached) $ECHO_C" >&6
7388 fi
7389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7391 else
7392   # Is the header compilable?
7393 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7395 cat >conftest.$ac_ext <<_ACEOF
7396 #line $LINENO "configure"
7397 #include "confdefs.h"
7398 $ac_includes_default
7399 #include <$ac_header>
7400 _ACEOF
7401 rm -f conftest.$ac_objext
7402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7403   (eval $ac_compile) 2>&5
7404   ac_status=$?
7405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406   (exit $ac_status); } &&
7407          { ac_try='test -s conftest.$ac_objext'
7408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409   (eval $ac_try) 2>&5
7410   ac_status=$?
7411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412   (exit $ac_status); }; }; then
7413   ac_header_compiler=yes
7414 else
7415   echo "$as_me: failed program was:" >&5
7416 cat conftest.$ac_ext >&5
7417 ac_header_compiler=no
7418 fi
7419 rm -f conftest.$ac_objext conftest.$ac_ext
7420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7421 echo "${ECHO_T}$ac_header_compiler" >&6
7422
7423 # Is the header present?
7424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7426 cat >conftest.$ac_ext <<_ACEOF
7427 #line $LINENO "configure"
7428 #include "confdefs.h"
7429 #include <$ac_header>
7430 _ACEOF
7431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7432   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7433   ac_status=$?
7434   egrep -v '^ *\+' conftest.er1 >conftest.err
7435   rm -f conftest.er1
7436   cat conftest.err >&5
7437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438   (exit $ac_status); } >/dev/null; then
7439   if test -s conftest.err; then
7440     ac_cpp_err=$ac_c_preproc_warn_flag
7441   else
7442     ac_cpp_err=
7443   fi
7444 else
7445   ac_cpp_err=yes
7446 fi
7447 if test -z "$ac_cpp_err"; then
7448   ac_header_preproc=yes
7449 else
7450   echo "$as_me: failed program was:" >&5
7451   cat conftest.$ac_ext >&5
7452   ac_header_preproc=no
7453 fi
7454 rm -f conftest.err conftest.$ac_ext
7455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7456 echo "${ECHO_T}$ac_header_preproc" >&6
7457
7458 # So?  What about this header?
7459 case $ac_header_compiler:$ac_header_preproc in
7460   yes:no )
7461     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7463     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7465   no:yes )
7466     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7468     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7470     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7472 esac
7473 echo "$as_me:$LINENO: checking for $ac_header" >&5
7474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7476   echo $ECHO_N "(cached) $ECHO_C" >&6
7477 else
7478   eval "$as_ac_Header=$ac_header_preproc"
7479 fi
7480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7482
7483 fi
7484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7485   cat >>confdefs.h <<_ACEOF
7486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7487 _ACEOF
7488
7489 else
7490   { { echo "$as_me:$LINENO: error: readline header not found
7491 Use --without-readline to disable readline support." >&5
7492 echo "$as_me: error: readline header not found
7493 Use --without-readline to disable readline support." >&2;}
7494    { (exit 1); exit 1; }; }
7495 fi
7496
7497 done
7498
7499 fi
7500
7501 done
7502
7503
7504 for ac_header in readline/history.h
7505 do
7506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7508   echo "$as_me:$LINENO: checking for $ac_header" >&5
7509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7511   echo $ECHO_N "(cached) $ECHO_C" >&6
7512 fi
7513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7515 else
7516   # Is the header compilable?
7517 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7518 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7519 cat >conftest.$ac_ext <<_ACEOF
7520 #line $LINENO "configure"
7521 #include "confdefs.h"
7522 $ac_includes_default
7523 #include <$ac_header>
7524 _ACEOF
7525 rm -f conftest.$ac_objext
7526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7527   (eval $ac_compile) 2>&5
7528   ac_status=$?
7529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530   (exit $ac_status); } &&
7531          { ac_try='test -s conftest.$ac_objext'
7532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533   (eval $ac_try) 2>&5
7534   ac_status=$?
7535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536   (exit $ac_status); }; }; then
7537   ac_header_compiler=yes
7538 else
7539   echo "$as_me: failed program was:" >&5
7540 cat conftest.$ac_ext >&5
7541 ac_header_compiler=no
7542 fi
7543 rm -f conftest.$ac_objext conftest.$ac_ext
7544 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7545 echo "${ECHO_T}$ac_header_compiler" >&6
7546
7547 # Is the header present?
7548 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7550 cat >conftest.$ac_ext <<_ACEOF
7551 #line $LINENO "configure"
7552 #include "confdefs.h"
7553 #include <$ac_header>
7554 _ACEOF
7555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7556   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7557   ac_status=$?
7558   egrep -v '^ *\+' conftest.er1 >conftest.err
7559   rm -f conftest.er1
7560   cat conftest.err >&5
7561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562   (exit $ac_status); } >/dev/null; then
7563   if test -s conftest.err; then
7564     ac_cpp_err=$ac_c_preproc_warn_flag
7565   else
7566     ac_cpp_err=
7567   fi
7568 else
7569   ac_cpp_err=yes
7570 fi
7571 if test -z "$ac_cpp_err"; then
7572   ac_header_preproc=yes
7573 else
7574   echo "$as_me: failed program was:" >&5
7575   cat conftest.$ac_ext >&5
7576   ac_header_preproc=no
7577 fi
7578 rm -f conftest.err conftest.$ac_ext
7579 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7580 echo "${ECHO_T}$ac_header_preproc" >&6
7581
7582 # So?  What about this header?
7583 case $ac_header_compiler:$ac_header_preproc in
7584   yes:no )
7585     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7587     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7589   no:yes )
7590     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7592     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7593 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7594     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7596 esac
7597 echo "$as_me:$LINENO: checking for $ac_header" >&5
7598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7600   echo $ECHO_N "(cached) $ECHO_C" >&6
7601 else
7602   eval "$as_ac_Header=$ac_header_preproc"
7603 fi
7604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7606
7607 fi
7608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7609   cat >>confdefs.h <<_ACEOF
7610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7611 _ACEOF
7612
7613 else
7614
7615 for ac_header in history.h
7616 do
7617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7619   echo "$as_me:$LINENO: checking for $ac_header" >&5
7620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7622   echo $ECHO_N "(cached) $ECHO_C" >&6
7623 fi
7624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7626 else
7627   # Is the header compilable?
7628 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7630 cat >conftest.$ac_ext <<_ACEOF
7631 #line $LINENO "configure"
7632 #include "confdefs.h"
7633 $ac_includes_default
7634 #include <$ac_header>
7635 _ACEOF
7636 rm -f conftest.$ac_objext
7637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7638   (eval $ac_compile) 2>&5
7639   ac_status=$?
7640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641   (exit $ac_status); } &&
7642          { ac_try='test -s conftest.$ac_objext'
7643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644   (eval $ac_try) 2>&5
7645   ac_status=$?
7646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647   (exit $ac_status); }; }; then
7648   ac_header_compiler=yes
7649 else
7650   echo "$as_me: failed program was:" >&5
7651 cat conftest.$ac_ext >&5
7652 ac_header_compiler=no
7653 fi
7654 rm -f conftest.$ac_objext conftest.$ac_ext
7655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7656 echo "${ECHO_T}$ac_header_compiler" >&6
7657
7658 # Is the header present?
7659 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7661 cat >conftest.$ac_ext <<_ACEOF
7662 #line $LINENO "configure"
7663 #include "confdefs.h"
7664 #include <$ac_header>
7665 _ACEOF
7666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7667   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7668   ac_status=$?
7669   egrep -v '^ *\+' conftest.er1 >conftest.err
7670   rm -f conftest.er1
7671   cat conftest.err >&5
7672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673   (exit $ac_status); } >/dev/null; then
7674   if test -s conftest.err; then
7675     ac_cpp_err=$ac_c_preproc_warn_flag
7676   else
7677     ac_cpp_err=
7678   fi
7679 else
7680   ac_cpp_err=yes
7681 fi
7682 if test -z "$ac_cpp_err"; then
7683   ac_header_preproc=yes
7684 else
7685   echo "$as_me: failed program was:" >&5
7686   cat conftest.$ac_ext >&5
7687   ac_header_preproc=no
7688 fi
7689 rm -f conftest.err conftest.$ac_ext
7690 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7691 echo "${ECHO_T}$ac_header_preproc" >&6
7692
7693 # So?  What about this header?
7694 case $ac_header_compiler:$ac_header_preproc in
7695   yes:no )
7696     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7697 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7698     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7700   no:yes )
7701     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7703     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7705     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7707 esac
7708 echo "$as_me:$LINENO: checking for $ac_header" >&5
7709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7711   echo $ECHO_N "(cached) $ECHO_C" >&6
7712 else
7713   eval "$as_ac_Header=$ac_header_preproc"
7714 fi
7715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7717
7718 fi
7719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7720   cat >>confdefs.h <<_ACEOF
7721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7722 _ACEOF
7723
7724 else
7725   { { echo "$as_me:$LINENO: error: history header not found
7726 Use --without-readline to disable readline support." >&5
7727 echo "$as_me: error: history header not found
7728 Use --without-readline to disable readline support." >&2;}
7729    { (exit 1); exit 1; }; }
7730 fi
7731
7732 done
7733
7734 fi
7735
7736 done
7737
7738 fi
7739
7740 if test "$with_zlib" = yes; then
7741   if test "${ac_cv_header_zlib_h+set}" = set; then
7742   echo "$as_me:$LINENO: checking for zlib.h" >&5
7743 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7744 if test "${ac_cv_header_zlib_h+set}" = set; then
7745   echo $ECHO_N "(cached) $ECHO_C" >&6
7746 fi
7747 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7748 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7749 else
7750   # Is the header compilable?
7751 echo "$as_me:$LINENO: checking zlib.h usability" >&5
7752 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
7753 cat >conftest.$ac_ext <<_ACEOF
7754 #line $LINENO "configure"
7755 #include "confdefs.h"
7756 $ac_includes_default
7757 #include <zlib.h>
7758 _ACEOF
7759 rm -f conftest.$ac_objext
7760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7761   (eval $ac_compile) 2>&5
7762   ac_status=$?
7763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764   (exit $ac_status); } &&
7765          { ac_try='test -s conftest.$ac_objext'
7766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767   (eval $ac_try) 2>&5
7768   ac_status=$?
7769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770   (exit $ac_status); }; }; then
7771   ac_header_compiler=yes
7772 else
7773   echo "$as_me: failed program was:" >&5
7774 cat conftest.$ac_ext >&5
7775 ac_header_compiler=no
7776 fi
7777 rm -f conftest.$ac_objext conftest.$ac_ext
7778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7779 echo "${ECHO_T}$ac_header_compiler" >&6
7780
7781 # Is the header present?
7782 echo "$as_me:$LINENO: checking zlib.h presence" >&5
7783 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
7784 cat >conftest.$ac_ext <<_ACEOF
7785 #line $LINENO "configure"
7786 #include "confdefs.h"
7787 #include <zlib.h>
7788 _ACEOF
7789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7790   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7791   ac_status=$?
7792   egrep -v '^ *\+' conftest.er1 >conftest.err
7793   rm -f conftest.er1
7794   cat conftest.err >&5
7795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796   (exit $ac_status); } >/dev/null; then
7797   if test -s conftest.err; then
7798     ac_cpp_err=$ac_c_preproc_warn_flag
7799   else
7800     ac_cpp_err=
7801   fi
7802 else
7803   ac_cpp_err=yes
7804 fi
7805 if test -z "$ac_cpp_err"; then
7806   ac_header_preproc=yes
7807 else
7808   echo "$as_me: failed program was:" >&5
7809   cat conftest.$ac_ext >&5
7810   ac_header_preproc=no
7811 fi
7812 rm -f conftest.err conftest.$ac_ext
7813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7814 echo "${ECHO_T}$ac_header_preproc" >&6
7815
7816 # So?  What about this header?
7817 case $ac_header_compiler:$ac_header_preproc in
7818   yes:no )
7819     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7820 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7821     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7822 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7823   no:yes )
7824     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
7825 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
7826     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
7827 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
7828     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7829 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7830 esac
7831 echo "$as_me:$LINENO: checking for zlib.h" >&5
7832 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7833 if test "${ac_cv_header_zlib_h+set}" = set; then
7834   echo $ECHO_N "(cached) $ECHO_C" >&6
7835 else
7836   ac_cv_header_zlib_h=$ac_header_preproc
7837 fi
7838 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7839 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7840
7841 fi
7842 if test $ac_cv_header_zlib_h = yes; then
7843   :
7844 else
7845   { { echo "$as_me:$LINENO: error: zlib header not found
7846 Use --without-zlib to disable zlib support." >&5
7847 echo "$as_me: error: zlib header not found
7848 Use --without-zlib to disable zlib support." >&2;}
7849    { (exit 1); exit 1; }; }
7850 fi
7851
7852
7853 fi
7854
7855 if test "$with_krb4" = yes ; then
7856   if test "${ac_cv_header_krb_h+set}" = set; then
7857   echo "$as_me:$LINENO: checking for krb.h" >&5
7858 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
7859 if test "${ac_cv_header_krb_h+set}" = set; then
7860   echo $ECHO_N "(cached) $ECHO_C" >&6
7861 fi
7862 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
7863 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
7864 else
7865   # Is the header compilable?
7866 echo "$as_me:$LINENO: checking krb.h usability" >&5
7867 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
7868 cat >conftest.$ac_ext <<_ACEOF
7869 #line $LINENO "configure"
7870 #include "confdefs.h"
7871 $ac_includes_default
7872 #include <krb.h>
7873 _ACEOF
7874 rm -f conftest.$ac_objext
7875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7876   (eval $ac_compile) 2>&5
7877   ac_status=$?
7878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879   (exit $ac_status); } &&
7880          { ac_try='test -s conftest.$ac_objext'
7881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882   (eval $ac_try) 2>&5
7883   ac_status=$?
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); }; }; then
7886   ac_header_compiler=yes
7887 else
7888   echo "$as_me: failed program was:" >&5
7889 cat conftest.$ac_ext >&5
7890 ac_header_compiler=no
7891 fi
7892 rm -f conftest.$ac_objext conftest.$ac_ext
7893 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7894 echo "${ECHO_T}$ac_header_compiler" >&6
7895
7896 # Is the header present?
7897 echo "$as_me:$LINENO: checking krb.h presence" >&5
7898 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
7899 cat >conftest.$ac_ext <<_ACEOF
7900 #line $LINENO "configure"
7901 #include "confdefs.h"
7902 #include <krb.h>
7903 _ACEOF
7904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7905   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7906   ac_status=$?
7907   egrep -v '^ *\+' conftest.er1 >conftest.err
7908   rm -f conftest.er1
7909   cat conftest.err >&5
7910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911   (exit $ac_status); } >/dev/null; then
7912   if test -s conftest.err; then
7913     ac_cpp_err=$ac_c_preproc_warn_flag
7914   else
7915     ac_cpp_err=
7916   fi
7917 else
7918   ac_cpp_err=yes
7919 fi
7920 if test -z "$ac_cpp_err"; then
7921   ac_header_preproc=yes
7922 else
7923   echo "$as_me: failed program was:" >&5
7924   cat conftest.$ac_ext >&5
7925   ac_header_preproc=no
7926 fi
7927 rm -f conftest.err conftest.$ac_ext
7928 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7929 echo "${ECHO_T}$ac_header_preproc" >&6
7930
7931 # So?  What about this header?
7932 case $ac_header_compiler:$ac_header_preproc in
7933   yes:no )
7934     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
7935 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7936     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
7937 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
7938   no:yes )
7939     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
7940 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
7941     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
7942 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
7943     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
7944 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
7945 esac
7946 echo "$as_me:$LINENO: checking for krb.h" >&5
7947 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
7948 if test "${ac_cv_header_krb_h+set}" = set; then
7949   echo $ECHO_N "(cached) $ECHO_C" >&6
7950 else
7951   ac_cv_header_krb_h=$ac_header_preproc
7952 fi
7953 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
7954 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
7955
7956 fi
7957 if test $ac_cv_header_krb_h = yes; then
7958   :
7959 else
7960   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
7961 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
7962    { (exit 1); exit 1; }; }
7963 fi
7964
7965
7966 fi
7967
7968 if test "$with_krb5" = yes ; then
7969   if test "${ac_cv_header_krb5_h+set}" = set; then
7970   echo "$as_me:$LINENO: checking for krb5.h" >&5
7971 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
7972 if test "${ac_cv_header_krb5_h+set}" = set; then
7973   echo $ECHO_N "(cached) $ECHO_C" >&6
7974 fi
7975 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
7976 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
7977 else
7978   # Is the header compilable?
7979 echo "$as_me:$LINENO: checking krb5.h usability" >&5
7980 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
7981 cat >conftest.$ac_ext <<_ACEOF
7982 #line $LINENO "configure"
7983 #include "confdefs.h"
7984 $ac_includes_default
7985 #include <krb5.h>
7986 _ACEOF
7987 rm -f conftest.$ac_objext
7988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7989   (eval $ac_compile) 2>&5
7990   ac_status=$?
7991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992   (exit $ac_status); } &&
7993          { ac_try='test -s conftest.$ac_objext'
7994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7995   (eval $ac_try) 2>&5
7996   ac_status=$?
7997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998   (exit $ac_status); }; }; then
7999   ac_header_compiler=yes
8000 else
8001   echo "$as_me: failed program was:" >&5
8002 cat conftest.$ac_ext >&5
8003 ac_header_compiler=no
8004 fi
8005 rm -f conftest.$ac_objext conftest.$ac_ext
8006 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8007 echo "${ECHO_T}$ac_header_compiler" >&6
8008
8009 # Is the header present?
8010 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8011 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8012 cat >conftest.$ac_ext <<_ACEOF
8013 #line $LINENO "configure"
8014 #include "confdefs.h"
8015 #include <krb5.h>
8016 _ACEOF
8017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8018   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8019   ac_status=$?
8020   egrep -v '^ *\+' conftest.er1 >conftest.err
8021   rm -f conftest.er1
8022   cat conftest.err >&5
8023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024   (exit $ac_status); } >/dev/null; then
8025   if test -s conftest.err; then
8026     ac_cpp_err=$ac_c_preproc_warn_flag
8027   else
8028     ac_cpp_err=
8029   fi
8030 else
8031   ac_cpp_err=yes
8032 fi
8033 if test -z "$ac_cpp_err"; then
8034   ac_header_preproc=yes
8035 else
8036   echo "$as_me: failed program was:" >&5
8037   cat conftest.$ac_ext >&5
8038   ac_header_preproc=no
8039 fi
8040 rm -f conftest.err conftest.$ac_ext
8041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8042 echo "${ECHO_T}$ac_header_preproc" >&6
8043
8044 # So?  What about this header?
8045 case $ac_header_compiler:$ac_header_preproc in
8046   yes:no )
8047     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8048 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8049     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8050 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8051   no:yes )
8052     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8053 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8054     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8055 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8056     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8057 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8058 esac
8059 echo "$as_me:$LINENO: checking for krb5.h" >&5
8060 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8061 if test "${ac_cv_header_krb5_h+set}" = set; then
8062   echo $ECHO_N "(cached) $ECHO_C" >&6
8063 else
8064   ac_cv_header_krb5_h=$ac_header_preproc
8065 fi
8066 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8067 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8068
8069 fi
8070 if test $ac_cv_header_krb5_h = yes; then
8071   :
8072 else
8073   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8074 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8075    { (exit 1); exit 1; }; }
8076 fi
8077
8078
8079   if test "${ac_cv_header_com_err_h+set}" = set; then
8080   echo "$as_me:$LINENO: checking for com_err.h" >&5
8081 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8082 if test "${ac_cv_header_com_err_h+set}" = set; then
8083   echo $ECHO_N "(cached) $ECHO_C" >&6
8084 fi
8085 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8086 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8087 else
8088   # Is the header compilable?
8089 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8090 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8091 cat >conftest.$ac_ext <<_ACEOF
8092 #line $LINENO "configure"
8093 #include "confdefs.h"
8094 $ac_includes_default
8095 #include <com_err.h>
8096 _ACEOF
8097 rm -f conftest.$ac_objext
8098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8099   (eval $ac_compile) 2>&5
8100   ac_status=$?
8101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102   (exit $ac_status); } &&
8103          { ac_try='test -s conftest.$ac_objext'
8104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8105   (eval $ac_try) 2>&5
8106   ac_status=$?
8107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108   (exit $ac_status); }; }; then
8109   ac_header_compiler=yes
8110 else
8111   echo "$as_me: failed program was:" >&5
8112 cat conftest.$ac_ext >&5
8113 ac_header_compiler=no
8114 fi
8115 rm -f conftest.$ac_objext conftest.$ac_ext
8116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8117 echo "${ECHO_T}$ac_header_compiler" >&6
8118
8119 # Is the header present?
8120 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8121 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8122 cat >conftest.$ac_ext <<_ACEOF
8123 #line $LINENO "configure"
8124 #include "confdefs.h"
8125 #include <com_err.h>
8126 _ACEOF
8127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8128   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8129   ac_status=$?
8130   egrep -v '^ *\+' conftest.er1 >conftest.err
8131   rm -f conftest.er1
8132   cat conftest.err >&5
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); } >/dev/null; then
8135   if test -s conftest.err; then
8136     ac_cpp_err=$ac_c_preproc_warn_flag
8137   else
8138     ac_cpp_err=
8139   fi
8140 else
8141   ac_cpp_err=yes
8142 fi
8143 if test -z "$ac_cpp_err"; then
8144   ac_header_preproc=yes
8145 else
8146   echo "$as_me: failed program was:" >&5
8147   cat conftest.$ac_ext >&5
8148   ac_header_preproc=no
8149 fi
8150 rm -f conftest.err conftest.$ac_ext
8151 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8152 echo "${ECHO_T}$ac_header_preproc" >&6
8153
8154 # So?  What about this header?
8155 case $ac_header_compiler:$ac_header_preproc in
8156   yes:no )
8157     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8158 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8159     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8160 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8161   no:yes )
8162     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8163 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8164     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8165 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8166     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8167 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8168 esac
8169 echo "$as_me:$LINENO: checking for com_err.h" >&5
8170 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8171 if test "${ac_cv_header_com_err_h+set}" = set; then
8172   echo $ECHO_N "(cached) $ECHO_C" >&6
8173 else
8174   ac_cv_header_com_err_h=$ac_header_preproc
8175 fi
8176 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8177 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8178
8179 fi
8180 if test $ac_cv_header_com_err_h = yes; then
8181   :
8182 else
8183   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8184 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8185    { (exit 1); exit 1; }; }
8186 fi
8187
8188
8189 fi
8190
8191 if test "$with_openssl" = yes ; then
8192   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8193   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8194 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8195 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8196   echo $ECHO_N "(cached) $ECHO_C" >&6
8197 fi
8198 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8199 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8200 else
8201   # Is the header compilable?
8202 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8203 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8204 cat >conftest.$ac_ext <<_ACEOF
8205 #line $LINENO "configure"
8206 #include "confdefs.h"
8207 $ac_includes_default
8208 #include <openssl/ssl.h>
8209 _ACEOF
8210 rm -f conftest.$ac_objext
8211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8212   (eval $ac_compile) 2>&5
8213   ac_status=$?
8214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215   (exit $ac_status); } &&
8216          { ac_try='test -s conftest.$ac_objext'
8217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8218   (eval $ac_try) 2>&5
8219   ac_status=$?
8220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221   (exit $ac_status); }; }; then
8222   ac_header_compiler=yes
8223 else
8224   echo "$as_me: failed program was:" >&5
8225 cat conftest.$ac_ext >&5
8226 ac_header_compiler=no
8227 fi
8228 rm -f conftest.$ac_objext conftest.$ac_ext
8229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8230 echo "${ECHO_T}$ac_header_compiler" >&6
8231
8232 # Is the header present?
8233 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8234 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8235 cat >conftest.$ac_ext <<_ACEOF
8236 #line $LINENO "configure"
8237 #include "confdefs.h"
8238 #include <openssl/ssl.h>
8239 _ACEOF
8240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8241   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8242   ac_status=$?
8243   egrep -v '^ *\+' conftest.er1 >conftest.err
8244   rm -f conftest.er1
8245   cat conftest.err >&5
8246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247   (exit $ac_status); } >/dev/null; then
8248   if test -s conftest.err; then
8249     ac_cpp_err=$ac_c_preproc_warn_flag
8250   else
8251     ac_cpp_err=
8252   fi
8253 else
8254   ac_cpp_err=yes
8255 fi
8256 if test -z "$ac_cpp_err"; then
8257   ac_header_preproc=yes
8258 else
8259   echo "$as_me: failed program was:" >&5
8260   cat conftest.$ac_ext >&5
8261   ac_header_preproc=no
8262 fi
8263 rm -f conftest.err conftest.$ac_ext
8264 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8265 echo "${ECHO_T}$ac_header_preproc" >&6
8266
8267 # So?  What about this header?
8268 case $ac_header_compiler:$ac_header_preproc in
8269   yes:no )
8270     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8271 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8272     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8273 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8274   no:yes )
8275     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8276 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8277     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8278 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8279     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8280 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8281 esac
8282 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8283 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8284 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8285   echo $ECHO_N "(cached) $ECHO_C" >&6
8286 else
8287   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8288 fi
8289 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8290 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8291
8292 fi
8293 if test $ac_cv_header_openssl_ssl_h = yes; then
8294   :
8295 else
8296   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8297 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8298    { (exit 1); exit 1; }; }
8299 fi
8300
8301
8302   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8303   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8304 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8305 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8306   echo $ECHO_N "(cached) $ECHO_C" >&6
8307 fi
8308 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8309 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8310 else
8311   # Is the header compilable?
8312 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8313 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8314 cat >conftest.$ac_ext <<_ACEOF
8315 #line $LINENO "configure"
8316 #include "confdefs.h"
8317 $ac_includes_default
8318 #include <openssl/err.h>
8319 _ACEOF
8320 rm -f conftest.$ac_objext
8321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8322   (eval $ac_compile) 2>&5
8323   ac_status=$?
8324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325   (exit $ac_status); } &&
8326          { ac_try='test -s conftest.$ac_objext'
8327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328   (eval $ac_try) 2>&5
8329   ac_status=$?
8330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331   (exit $ac_status); }; }; then
8332   ac_header_compiler=yes
8333 else
8334   echo "$as_me: failed program was:" >&5
8335 cat conftest.$ac_ext >&5
8336 ac_header_compiler=no
8337 fi
8338 rm -f conftest.$ac_objext conftest.$ac_ext
8339 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8340 echo "${ECHO_T}$ac_header_compiler" >&6
8341
8342 # Is the header present?
8343 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8344 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8345 cat >conftest.$ac_ext <<_ACEOF
8346 #line $LINENO "configure"
8347 #include "confdefs.h"
8348 #include <openssl/err.h>
8349 _ACEOF
8350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8351   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8352   ac_status=$?
8353   egrep -v '^ *\+' conftest.er1 >conftest.err
8354   rm -f conftest.er1
8355   cat conftest.err >&5
8356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357   (exit $ac_status); } >/dev/null; then
8358   if test -s conftest.err; then
8359     ac_cpp_err=$ac_c_preproc_warn_flag
8360   else
8361     ac_cpp_err=
8362   fi
8363 else
8364   ac_cpp_err=yes
8365 fi
8366 if test -z "$ac_cpp_err"; then
8367   ac_header_preproc=yes
8368 else
8369   echo "$as_me: failed program was:" >&5
8370   cat conftest.$ac_ext >&5
8371   ac_header_preproc=no
8372 fi
8373 rm -f conftest.err conftest.$ac_ext
8374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8375 echo "${ECHO_T}$ac_header_preproc" >&6
8376
8377 # So?  What about this header?
8378 case $ac_header_compiler:$ac_header_preproc in
8379   yes:no )
8380     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8381 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8382     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8383 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8384   no:yes )
8385     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8386 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8387     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8388 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8389     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8390 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8391 esac
8392 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8393 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8394 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8395   echo $ECHO_N "(cached) $ECHO_C" >&6
8396 else
8397   ac_cv_header_openssl_err_h=$ac_header_preproc
8398 fi
8399 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8400 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8401
8402 fi
8403 if test $ac_cv_header_openssl_err_h = yes; then
8404   :
8405 else
8406   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8407 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8408    { (exit 1); exit 1; }; }
8409 fi
8410
8411
8412 fi
8413
8414 if test "$with_pam" = yes ; then
8415   if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8416   echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8417 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8418 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8419   echo $ECHO_N "(cached) $ECHO_C" >&6
8420 fi
8421 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8422 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8423 else
8424   # Is the header compilable?
8425 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
8426 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
8427 cat >conftest.$ac_ext <<_ACEOF
8428 #line $LINENO "configure"
8429 #include "confdefs.h"
8430 $ac_includes_default
8431 #include <security/pam_appl.h>
8432 _ACEOF
8433 rm -f conftest.$ac_objext
8434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8435   (eval $ac_compile) 2>&5
8436   ac_status=$?
8437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438   (exit $ac_status); } &&
8439          { ac_try='test -s conftest.$ac_objext'
8440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441   (eval $ac_try) 2>&5
8442   ac_status=$?
8443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444   (exit $ac_status); }; }; then
8445   ac_header_compiler=yes
8446 else
8447   echo "$as_me: failed program was:" >&5
8448 cat conftest.$ac_ext >&5
8449 ac_header_compiler=no
8450 fi
8451 rm -f conftest.$ac_objext conftest.$ac_ext
8452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8453 echo "${ECHO_T}$ac_header_compiler" >&6
8454
8455 # Is the header present?
8456 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
8457 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
8458 cat >conftest.$ac_ext <<_ACEOF
8459 #line $LINENO "configure"
8460 #include "confdefs.h"
8461 #include <security/pam_appl.h>
8462 _ACEOF
8463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8464   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8465   ac_status=$?
8466   egrep -v '^ *\+' conftest.er1 >conftest.err
8467   rm -f conftest.er1
8468   cat conftest.err >&5
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   (exit $ac_status); } >/dev/null; then
8471   if test -s conftest.err; then
8472     ac_cpp_err=$ac_c_preproc_warn_flag
8473   else
8474     ac_cpp_err=
8475   fi
8476 else
8477   ac_cpp_err=yes
8478 fi
8479 if test -z "$ac_cpp_err"; then
8480   ac_header_preproc=yes
8481 else
8482   echo "$as_me: failed program was:" >&5
8483   cat conftest.$ac_ext >&5
8484   ac_header_preproc=no
8485 fi
8486 rm -f conftest.err conftest.$ac_ext
8487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8488 echo "${ECHO_T}$ac_header_preproc" >&6
8489
8490 # So?  What about this header?
8491 case $ac_header_compiler:$ac_header_preproc in
8492   yes:no )
8493     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8494 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8495     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8496 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8497   no:yes )
8498     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
8499 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
8500     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
8501 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
8502     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8503 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8504 esac
8505 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8506 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8507 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8508   echo $ECHO_N "(cached) $ECHO_C" >&6
8509 else
8510   ac_cv_header_security_pam_appl_h=$ac_header_preproc
8511 fi
8512 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8513 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8514
8515 fi
8516 if test $ac_cv_header_security_pam_appl_h = yes; then
8517   :
8518 else
8519   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
8520 echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
8521    { (exit 1); exit 1; }; }
8522 fi
8523
8524
8525 fi
8526
8527
8528 ##
8529 ## Types, structures, compiler characteristics
8530 ##
8531
8532
8533 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8534 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8535 if test "${ac_cv_c_const+set}" = set; then
8536   echo $ECHO_N "(cached) $ECHO_C" >&6
8537 else
8538   cat >conftest.$ac_ext <<_ACEOF
8539 #line $LINENO "configure"
8540 #include "confdefs.h"
8541
8542 #ifdef F77_DUMMY_MAIN
8543 #  ifdef __cplusplus
8544      extern "C"
8545 #  endif
8546    int F77_DUMMY_MAIN() { return 1; }
8547 #endif
8548 int
8549 main ()
8550 {
8551 /* FIXME: Include the comments suggested by Paul. */
8552 #ifndef __cplusplus
8553   /* Ultrix mips cc rejects this.  */
8554   typedef int charset[2];
8555   const charset x;
8556   /* SunOS 4.1.1 cc rejects this.  */
8557   char const *const *ccp;
8558   char **p;
8559   /* NEC SVR4.0.2 mips cc rejects this.  */
8560   struct point {int x, y;};
8561   static struct point const zero = {0,0};
8562   /* AIX XL C 1.02.0.0 rejects this.
8563      It does not let you subtract one const X* pointer from another in
8564      an arm of an if-expression whose if-part is not a constant
8565      expression */
8566   const char *g = "string";
8567   ccp = &g + (g ? g-g : 0);
8568   /* HPUX 7.0 cc rejects these. */
8569   ++ccp;
8570   p = (char**) ccp;
8571   ccp = (char const *const *) p;
8572   { /* SCO 3.2v4 cc rejects this.  */
8573     char *t;
8574     char const *s = 0 ? (char *) 0 : (char const *) 0;
8575
8576     *t++ = 0;
8577   }
8578   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8579     int x[] = {25, 17};
8580     const int *foo = &x[0];
8581     ++foo;
8582   }
8583   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8584     typedef const int *iptr;
8585     iptr p = 0;
8586     ++p;
8587   }
8588   { /* AIX XL C 1.02.0.0 rejects this saying
8589        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8590     struct s { int j; const int *ap[3]; };
8591     struct s *b; b->j = 5;
8592   }
8593   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8594     const int foo = 10;
8595   }
8596 #endif
8597
8598   ;
8599   return 0;
8600 }
8601 _ACEOF
8602 rm -f conftest.$ac_objext
8603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8604   (eval $ac_compile) 2>&5
8605   ac_status=$?
8606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607   (exit $ac_status); } &&
8608          { ac_try='test -s conftest.$ac_objext'
8609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610   (eval $ac_try) 2>&5
8611   ac_status=$?
8612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613   (exit $ac_status); }; }; then
8614   ac_cv_c_const=yes
8615 else
8616   echo "$as_me: failed program was:" >&5
8617 cat conftest.$ac_ext >&5
8618 ac_cv_c_const=no
8619 fi
8620 rm -f conftest.$ac_objext conftest.$ac_ext
8621 fi
8622 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8623 echo "${ECHO_T}$ac_cv_c_const" >&6
8624 if test $ac_cv_c_const = no; then
8625
8626 cat >>confdefs.h <<\_ACEOF
8627 #define const
8628 _ACEOF
8629
8630 fi
8631
8632 echo "$as_me:$LINENO: checking for inline" >&5
8633 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8634 if test "${ac_cv_c_inline+set}" = set; then
8635   echo $ECHO_N "(cached) $ECHO_C" >&6
8636 else
8637   ac_cv_c_inline=no
8638 for ac_kw in inline __inline__ __inline; do
8639   cat >conftest.$ac_ext <<_ACEOF
8640 #line $LINENO "configure"
8641 #include "confdefs.h"
8642 #ifndef __cplusplus
8643 static $ac_kw int static_foo () {return 0; }
8644 $ac_kw int foo () {return 0; }
8645 #endif
8646
8647 _ACEOF
8648 rm -f conftest.$ac_objext
8649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8650   (eval $ac_compile) 2>&5
8651   ac_status=$?
8652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653   (exit $ac_status); } &&
8654          { ac_try='test -s conftest.$ac_objext'
8655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656   (eval $ac_try) 2>&5
8657   ac_status=$?
8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659   (exit $ac_status); }; }; then
8660   ac_cv_c_inline=$ac_kw; break
8661 else
8662   echo "$as_me: failed program was:" >&5
8663 cat conftest.$ac_ext >&5
8664 fi
8665 rm -f conftest.$ac_objext conftest.$ac_ext
8666 done
8667
8668 fi
8669 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8670 echo "${ECHO_T}$ac_cv_c_inline" >&6
8671 case $ac_cv_c_inline in
8672   inline | yes) ;;
8673   no)
8674 cat >>confdefs.h <<\_ACEOF
8675 #define inline
8676 _ACEOF
8677  ;;
8678   *)  cat >>confdefs.h <<_ACEOF
8679 #define inline $ac_cv_c_inline
8680 _ACEOF
8681  ;;
8682 esac
8683
8684 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8685 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8686 if test "${ac_cv_c_stringize+set}" = set; then
8687   echo $ECHO_N "(cached) $ECHO_C" >&6
8688 else
8689   cat >conftest.$ac_ext <<_ACEOF
8690 #line $LINENO "configure"
8691 #include "confdefs.h"
8692 #define x(y) #y
8693
8694 char *s = x(teststring);
8695 _ACEOF
8696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8697   egrep "#teststring" >/dev/null 2>&1; then
8698   ac_cv_c_stringize=no
8699 else
8700   ac_cv_c_stringize=yes
8701 fi
8702 rm -f conftest*
8703
8704 fi
8705 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8706 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8707 if test $ac_cv_c_stringize = yes; then
8708
8709 cat >>confdefs.h <<\_ACEOF
8710 #define HAVE_STRINGIZE 1
8711 _ACEOF
8712
8713 fi
8714
8715 echo "$as_me:$LINENO: checking for signed types" >&5
8716 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
8717 if test "${pgac_cv_c_signed+set}" = set; then
8718   echo $ECHO_N "(cached) $ECHO_C" >&6
8719 else
8720   cat >conftest.$ac_ext <<_ACEOF
8721 #line $LINENO "configure"
8722 #include "confdefs.h"
8723
8724 #ifdef F77_DUMMY_MAIN
8725 #  ifdef __cplusplus
8726      extern "C"
8727 #  endif
8728    int F77_DUMMY_MAIN() { return 1; }
8729 #endif
8730 int
8731 main ()
8732 {
8733 signed char c; signed short s; signed int i;
8734   ;
8735   return 0;
8736 }
8737 _ACEOF
8738 rm -f conftest.$ac_objext
8739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8740   (eval $ac_compile) 2>&5
8741   ac_status=$?
8742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743   (exit $ac_status); } &&
8744          { ac_try='test -s conftest.$ac_objext'
8745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8746   (eval $ac_try) 2>&5
8747   ac_status=$?
8748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749   (exit $ac_status); }; }; then
8750   pgac_cv_c_signed=yes
8751 else
8752   echo "$as_me: failed program was:" >&5
8753 cat conftest.$ac_ext >&5
8754 pgac_cv_c_signed=no
8755 fi
8756 rm -f conftest.$ac_objext conftest.$ac_ext
8757 fi
8758 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
8759 echo "${ECHO_T}$pgac_cv_c_signed" >&6
8760 if test x"$pgac_cv_c_signed" = xno ; then
8761
8762 cat >>confdefs.h <<\_ACEOF
8763 #define signed
8764 _ACEOF
8765
8766 fi
8767 echo "$as_me:$LINENO: checking for working volatile" >&5
8768 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8769 if test "${ac_cv_c_volatile+set}" = set; then
8770   echo $ECHO_N "(cached) $ECHO_C" >&6
8771 else
8772   cat >conftest.$ac_ext <<_ACEOF
8773 #line $LINENO "configure"
8774 #include "confdefs.h"
8775
8776 #ifdef F77_DUMMY_MAIN
8777 #  ifdef __cplusplus
8778      extern "C"
8779 #  endif
8780    int F77_DUMMY_MAIN() { return 1; }
8781 #endif
8782 int
8783 main ()
8784 {
8785
8786 volatile int x;
8787 int * volatile y;
8788   ;
8789   return 0;
8790 }
8791 _ACEOF
8792 rm -f conftest.$ac_objext
8793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8794   (eval $ac_compile) 2>&5
8795   ac_status=$?
8796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797   (exit $ac_status); } &&
8798          { ac_try='test -s conftest.$ac_objext'
8799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800   (eval $ac_try) 2>&5
8801   ac_status=$?
8802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803   (exit $ac_status); }; }; then
8804   ac_cv_c_volatile=yes
8805 else
8806   echo "$as_me: failed program was:" >&5
8807 cat conftest.$ac_ext >&5
8808 ac_cv_c_volatile=no
8809 fi
8810 rm -f conftest.$ac_objext conftest.$ac_ext
8811 fi
8812 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8813 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8814 if test $ac_cv_c_volatile = no; then
8815
8816 cat >>confdefs.h <<\_ACEOF
8817 #define volatile
8818 _ACEOF
8819
8820 fi
8821
8822 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8823 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8824 if test "${ac_cv_struct_tm+set}" = set; then
8825   echo $ECHO_N "(cached) $ECHO_C" >&6
8826 else
8827   cat >conftest.$ac_ext <<_ACEOF
8828 #line $LINENO "configure"
8829 #include "confdefs.h"
8830 #include <sys/types.h>
8831 #include <time.h>
8832
8833 #ifdef F77_DUMMY_MAIN
8834 #  ifdef __cplusplus
8835      extern "C"
8836 #  endif
8837    int F77_DUMMY_MAIN() { return 1; }
8838 #endif
8839 int
8840 main ()
8841 {
8842 struct tm *tp; tp->tm_sec;
8843   ;
8844   return 0;
8845 }
8846 _ACEOF
8847 rm -f conftest.$ac_objext
8848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8849   (eval $ac_compile) 2>&5
8850   ac_status=$?
8851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852   (exit $ac_status); } &&
8853          { ac_try='test -s conftest.$ac_objext'
8854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855   (eval $ac_try) 2>&5
8856   ac_status=$?
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); }; }; then
8859   ac_cv_struct_tm=time.h
8860 else
8861   echo "$as_me: failed program was:" >&5
8862 cat conftest.$ac_ext >&5
8863 ac_cv_struct_tm=sys/time.h
8864 fi
8865 rm -f conftest.$ac_objext conftest.$ac_ext
8866 fi
8867 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8868 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8869 if test $ac_cv_struct_tm = sys/time.h; then
8870
8871 cat >>confdefs.h <<\_ACEOF
8872 #define TM_IN_SYS_TIME 1
8873 _ACEOF
8874
8875 fi
8876
8877 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8878 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
8879 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8880   echo $ECHO_N "(cached) $ECHO_C" >&6
8881 else
8882   cat >conftest.$ac_ext <<_ACEOF
8883 #line $LINENO "configure"
8884 #include "confdefs.h"
8885 #include <sys/types.h>
8886 #include <$ac_cv_struct_tm>
8887
8888
8889 #ifdef F77_DUMMY_MAIN
8890 #  ifdef __cplusplus
8891      extern "C"
8892 #  endif
8893    int F77_DUMMY_MAIN() { return 1; }
8894 #endif
8895 int
8896 main ()
8897 {
8898 static struct tm ac_aggr;
8899 if (ac_aggr.tm_zone)
8900 return 0;
8901   ;
8902   return 0;
8903 }
8904 _ACEOF
8905 rm -f conftest.$ac_objext
8906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8907   (eval $ac_compile) 2>&5
8908   ac_status=$?
8909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910   (exit $ac_status); } &&
8911          { ac_try='test -s conftest.$ac_objext'
8912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913   (eval $ac_try) 2>&5
8914   ac_status=$?
8915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916   (exit $ac_status); }; }; then
8917   ac_cv_member_struct_tm_tm_zone=yes
8918 else
8919   echo "$as_me: failed program was:" >&5
8920 cat conftest.$ac_ext >&5
8921 ac_cv_member_struct_tm_tm_zone=no
8922 fi
8923 rm -f conftest.$ac_objext conftest.$ac_ext
8924 fi
8925 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8926 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
8927 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8928
8929 cat >>confdefs.h <<_ACEOF
8930 #define HAVE_STRUCT_TM_TM_ZONE 1
8931 _ACEOF
8932
8933
8934 fi
8935
8936 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8937
8938 cat >>confdefs.h <<\_ACEOF
8939 #define HAVE_TM_ZONE 1
8940 _ACEOF
8941
8942 else
8943   echo "$as_me:$LINENO: checking for tzname" >&5
8944 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
8945 if test "${ac_cv_var_tzname+set}" = set; then
8946   echo $ECHO_N "(cached) $ECHO_C" >&6
8947 else
8948   cat >conftest.$ac_ext <<_ACEOF
8949 #line $LINENO "configure"
8950 #include "confdefs.h"
8951 #include <time.h>
8952 #ifndef tzname /* For SGI.  */
8953 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
8954 #endif
8955
8956 #ifdef F77_DUMMY_MAIN
8957 #  ifdef __cplusplus
8958      extern "C"
8959 #  endif
8960    int F77_DUMMY_MAIN() { return 1; }
8961 #endif
8962 int
8963 main ()
8964 {
8965 atoi(*tzname);
8966   ;
8967   return 0;
8968 }
8969 _ACEOF
8970 rm -f conftest.$ac_objext conftest$ac_exeext
8971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8972   (eval $ac_link) 2>&5
8973   ac_status=$?
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   (exit $ac_status); } &&
8976          { ac_try='test -s conftest$ac_exeext'
8977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978   (eval $ac_try) 2>&5
8979   ac_status=$?
8980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981   (exit $ac_status); }; }; then
8982   ac_cv_var_tzname=yes
8983 else
8984   echo "$as_me: failed program was:" >&5
8985 cat conftest.$ac_ext >&5
8986 ac_cv_var_tzname=no
8987 fi
8988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8989 fi
8990 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8991 echo "${ECHO_T}$ac_cv_var_tzname" >&6
8992   if test $ac_cv_var_tzname = yes; then
8993
8994 cat >>confdefs.h <<\_ACEOF
8995 #define HAVE_TZNAME 1
8996 _ACEOF
8997
8998   fi
8999 fi
9000
9001 echo "$as_me:$LINENO: checking for union semun" >&5
9002 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9003 if test "${ac_cv_type_union_semun+set}" = set; then
9004   echo $ECHO_N "(cached) $ECHO_C" >&6
9005 else
9006   cat >conftest.$ac_ext <<_ACEOF
9007 #line $LINENO "configure"
9008 #include "confdefs.h"
9009 #include <sys/types.h>
9010 #include <sys/ipc.h>
9011 #include <sys/sem.h>
9012
9013 #ifdef F77_DUMMY_MAIN
9014 #  ifdef __cplusplus
9015      extern "C"
9016 #  endif
9017    int F77_DUMMY_MAIN() { return 1; }
9018 #endif
9019 int
9020 main ()
9021 {
9022 if ((union semun *) 0)
9023   return 0;
9024 if (sizeof (union semun))
9025   return 0;
9026   ;
9027   return 0;
9028 }
9029 _ACEOF
9030 rm -f conftest.$ac_objext
9031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9032   (eval $ac_compile) 2>&5
9033   ac_status=$?
9034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035   (exit $ac_status); } &&
9036          { ac_try='test -s conftest.$ac_objext'
9037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038   (eval $ac_try) 2>&5
9039   ac_status=$?
9040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041   (exit $ac_status); }; }; then
9042   ac_cv_type_union_semun=yes
9043 else
9044   echo "$as_me: failed program was:" >&5
9045 cat conftest.$ac_ext >&5
9046 ac_cv_type_union_semun=no
9047 fi
9048 rm -f conftest.$ac_objext conftest.$ac_ext
9049 fi
9050 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9051 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9052 if test $ac_cv_type_union_semun = yes; then
9053
9054 cat >>confdefs.h <<_ACEOF
9055 #define HAVE_UNION_SEMUN 1
9056 _ACEOF
9057
9058
9059 fi
9060
9061 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9062 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9063 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9064   echo $ECHO_N "(cached) $ECHO_C" >&6
9065 else
9066   cat >conftest.$ac_ext <<_ACEOF
9067 #line $LINENO "configure"
9068 #include "confdefs.h"
9069 #include <sys/types.h>
9070 #ifdef HAVE_SYS_UN_H
9071 #include <sys/un.h>
9072 #endif
9073
9074
9075 #ifdef F77_DUMMY_MAIN
9076 #  ifdef __cplusplus
9077      extern "C"
9078 #  endif
9079    int F77_DUMMY_MAIN() { return 1; }
9080 #endif
9081 int
9082 main ()
9083 {
9084 if ((struct sockaddr_un *) 0)
9085   return 0;
9086 if (sizeof (struct sockaddr_un))
9087   return 0;
9088   ;
9089   return 0;
9090 }
9091 _ACEOF
9092 rm -f conftest.$ac_objext
9093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9094   (eval $ac_compile) 2>&5
9095   ac_status=$?
9096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097   (exit $ac_status); } &&
9098          { ac_try='test -s conftest.$ac_objext'
9099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100   (eval $ac_try) 2>&5
9101   ac_status=$?
9102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103   (exit $ac_status); }; }; then
9104   ac_cv_type_struct_sockaddr_un=yes
9105 else
9106   echo "$as_me: failed program was:" >&5
9107 cat conftest.$ac_ext >&5
9108 ac_cv_type_struct_sockaddr_un=no
9109 fi
9110 rm -f conftest.$ac_objext conftest.$ac_ext
9111 fi
9112 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9113 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9114 if test $ac_cv_type_struct_sockaddr_un = yes; then
9115
9116 cat >>confdefs.h <<_ACEOF
9117 #define HAVE_STRUCT_SOCKADDR_UN 1
9118 _ACEOF
9119
9120
9121 fi
9122
9123
9124 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
9125 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
9126 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
9127   echo $ECHO_N "(cached) $ECHO_C" >&6
9128 else
9129   cat >conftest.$ac_ext <<_ACEOF
9130 #line $LINENO "configure"
9131 #include "confdefs.h"
9132 #include <sys/param.h>
9133 #include <sys/socket.h>
9134 #include <sys/ucred.h>
9135
9136 #ifdef F77_DUMMY_MAIN
9137 #  ifdef __cplusplus
9138      extern "C"
9139 #  endif
9140    int F77_DUMMY_MAIN() { return 1; }
9141 #endif
9142 int
9143 main ()
9144 {
9145 if ((struct cmsgcred *) 0)
9146   return 0;
9147 if (sizeof (struct cmsgcred))
9148   return 0;
9149   ;
9150   return 0;
9151 }
9152 _ACEOF
9153 rm -f conftest.$ac_objext
9154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9155   (eval $ac_compile) 2>&5
9156   ac_status=$?
9157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158   (exit $ac_status); } &&
9159          { ac_try='test -s conftest.$ac_objext'
9160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9161   (eval $ac_try) 2>&5
9162   ac_status=$?
9163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164   (exit $ac_status); }; }; then
9165   ac_cv_type_struct_cmsgcred=yes
9166 else
9167   echo "$as_me: failed program was:" >&5
9168 cat conftest.$ac_ext >&5
9169 ac_cv_type_struct_cmsgcred=no
9170 fi
9171 rm -f conftest.$ac_objext conftest.$ac_ext
9172 fi
9173 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9174 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9175 if test $ac_cv_type_struct_cmsgcred = yes; then
9176
9177 cat >>confdefs.h <<_ACEOF
9178 #define HAVE_STRUCT_CMSGCRED 1
9179 _ACEOF
9180
9181
9182 fi
9183 echo "$as_me:$LINENO: checking for struct fcred" >&5
9184 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9185 if test "${ac_cv_type_struct_fcred+set}" = set; then
9186   echo $ECHO_N "(cached) $ECHO_C" >&6
9187 else
9188   cat >conftest.$ac_ext <<_ACEOF
9189 #line $LINENO "configure"
9190 #include "confdefs.h"
9191 #include <sys/param.h>
9192 #include <sys/socket.h>
9193 #include <sys/ucred.h>
9194
9195 #ifdef F77_DUMMY_MAIN
9196 #  ifdef __cplusplus
9197      extern "C"
9198 #  endif
9199    int F77_DUMMY_MAIN() { return 1; }
9200 #endif
9201 int
9202 main ()
9203 {
9204 if ((struct fcred *) 0)
9205   return 0;
9206 if (sizeof (struct fcred))
9207   return 0;
9208   ;
9209   return 0;
9210 }
9211 _ACEOF
9212 rm -f conftest.$ac_objext
9213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9214   (eval $ac_compile) 2>&5
9215   ac_status=$?
9216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217   (exit $ac_status); } &&
9218          { ac_try='test -s conftest.$ac_objext'
9219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9220   (eval $ac_try) 2>&5
9221   ac_status=$?
9222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223   (exit $ac_status); }; }; then
9224   ac_cv_type_struct_fcred=yes
9225 else
9226   echo "$as_me: failed program was:" >&5
9227 cat conftest.$ac_ext >&5
9228 ac_cv_type_struct_fcred=no
9229 fi
9230 rm -f conftest.$ac_objext conftest.$ac_ext
9231 fi
9232 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9233 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9234 if test $ac_cv_type_struct_fcred = yes; then
9235
9236 cat >>confdefs.h <<_ACEOF
9237 #define HAVE_STRUCT_FCRED 1
9238 _ACEOF
9239
9240
9241 fi
9242 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9243 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9244 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9245   echo $ECHO_N "(cached) $ECHO_C" >&6
9246 else
9247   cat >conftest.$ac_ext <<_ACEOF
9248 #line $LINENO "configure"
9249 #include "confdefs.h"
9250 #include <sys/param.h>
9251 #include <sys/socket.h>
9252 #include <sys/ucred.h>
9253
9254 #ifdef F77_DUMMY_MAIN
9255 #  ifdef __cplusplus
9256      extern "C"
9257 #  endif
9258    int F77_DUMMY_MAIN() { return 1; }
9259 #endif
9260 int
9261 main ()
9262 {
9263 if ((struct sockcred *) 0)
9264   return 0;
9265 if (sizeof (struct sockcred))
9266   return 0;
9267   ;
9268   return 0;
9269 }
9270 _ACEOF
9271 rm -f conftest.$ac_objext
9272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9273   (eval $ac_compile) 2>&5
9274   ac_status=$?
9275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276   (exit $ac_status); } &&
9277          { ac_try='test -s conftest.$ac_objext'
9278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9279   (eval $ac_try) 2>&5
9280   ac_status=$?
9281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282   (exit $ac_status); }; }; then
9283   ac_cv_type_struct_sockcred=yes
9284 else
9285   echo "$as_me: failed program was:" >&5
9286 cat conftest.$ac_ext >&5
9287 ac_cv_type_struct_sockcred=no
9288 fi
9289 rm -f conftest.$ac_objext conftest.$ac_ext
9290 fi
9291 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9292 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9293 if test $ac_cv_type_struct_sockcred = yes; then
9294
9295 cat >>confdefs.h <<_ACEOF
9296 #define HAVE_STRUCT_SOCKCRED 1
9297 _ACEOF
9298
9299
9300 fi
9301
9302
9303 if test "$with_zlib" = yes; then
9304   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9305   # did not).  While we could work around the lack of z_streamp, it
9306   # seems unwise to encourage people to use such old zlib versions...
9307   echo "$as_me:$LINENO: checking for z_streamp" >&5
9308 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9309 if test "${ac_cv_type_z_streamp+set}" = set; then
9310   echo $ECHO_N "(cached) $ECHO_C" >&6
9311 else
9312   cat >conftest.$ac_ext <<_ACEOF
9313 #line $LINENO "configure"
9314 #include "confdefs.h"
9315 #include <zlib.h>
9316
9317 #ifdef F77_DUMMY_MAIN
9318 #  ifdef __cplusplus
9319      extern "C"
9320 #  endif
9321    int F77_DUMMY_MAIN() { return 1; }
9322 #endif
9323 int
9324 main ()
9325 {
9326 if ((z_streamp *) 0)
9327   return 0;
9328 if (sizeof (z_streamp))
9329   return 0;
9330   ;
9331   return 0;
9332 }
9333 _ACEOF
9334 rm -f conftest.$ac_objext
9335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9336   (eval $ac_compile) 2>&5
9337   ac_status=$?
9338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339   (exit $ac_status); } &&
9340          { ac_try='test -s conftest.$ac_objext'
9341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342   (eval $ac_try) 2>&5
9343   ac_status=$?
9344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345   (exit $ac_status); }; }; then
9346   ac_cv_type_z_streamp=yes
9347 else
9348   echo "$as_me: failed program was:" >&5
9349 cat conftest.$ac_ext >&5
9350 ac_cv_type_z_streamp=no
9351 fi
9352 rm -f conftest.$ac_objext conftest.$ac_ext
9353 fi
9354 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9355 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9356 if test $ac_cv_type_z_streamp = yes; then
9357   :
9358 else
9359   { { echo "$as_me:$LINENO: error: zlib version is too old
9360 Use --without-zlib to disable zlib support." >&5
9361 echo "$as_me: error: zlib version is too old
9362 Use --without-zlib to disable zlib support." >&2;}
9363    { (exit 1); exit 1; }; }
9364 fi
9365
9366 fi
9367
9368 if test "$with_krb5" = yes; then
9369 # Check for differences between MIT and Heimdal (KTH) releases
9370   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9371 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9372 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9373   echo $ECHO_N "(cached) $ECHO_C" >&6
9374 else
9375   cat >conftest.$ac_ext <<_ACEOF
9376 #line $LINENO "configure"
9377 #include "confdefs.h"
9378 #include <krb5.h>
9379
9380 #ifdef F77_DUMMY_MAIN
9381 #  ifdef __cplusplus
9382      extern "C"
9383 #  endif
9384    int F77_DUMMY_MAIN() { return 1; }
9385 #endif
9386 int
9387 main ()
9388 {
9389 static krb5_ticket ac_aggr;
9390 if (ac_aggr.enc_part2)
9391 return 0;
9392   ;
9393   return 0;
9394 }
9395 _ACEOF
9396 rm -f conftest.$ac_objext
9397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9398   (eval $ac_compile) 2>&5
9399   ac_status=$?
9400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401   (exit $ac_status); } &&
9402          { ac_try='test -s conftest.$ac_objext'
9403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404   (eval $ac_try) 2>&5
9405   ac_status=$?
9406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407   (exit $ac_status); }; }; then
9408   ac_cv_member_krb5_ticket_enc_part2=yes
9409 else
9410   echo "$as_me: failed program was:" >&5
9411 cat conftest.$ac_ext >&5
9412 ac_cv_member_krb5_ticket_enc_part2=no
9413 fi
9414 rm -f conftest.$ac_objext conftest.$ac_ext
9415 fi
9416 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9417 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9418 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
9419
9420 cat >>confdefs.h <<_ACEOF
9421 #define HAVE_KRB5_TICKET_ENC_PART2 1
9422 _ACEOF
9423
9424
9425 else
9426   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9427 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9428 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9429   echo $ECHO_N "(cached) $ECHO_C" >&6
9430 else
9431   cat >conftest.$ac_ext <<_ACEOF
9432 #line $LINENO "configure"
9433 #include "confdefs.h"
9434 #include <krb5.h>
9435
9436 #ifdef F77_DUMMY_MAIN
9437 #  ifdef __cplusplus
9438      extern "C"
9439 #  endif
9440    int F77_DUMMY_MAIN() { return 1; }
9441 #endif
9442 int
9443 main ()
9444 {
9445 static krb5_ticket ac_aggr;
9446 if (ac_aggr.client)
9447 return 0;
9448   ;
9449   return 0;
9450 }
9451 _ACEOF
9452 rm -f conftest.$ac_objext
9453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9454   (eval $ac_compile) 2>&5
9455   ac_status=$?
9456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457   (exit $ac_status); } &&
9458          { ac_try='test -s conftest.$ac_objext'
9459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460   (eval $ac_try) 2>&5
9461   ac_status=$?
9462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463   (exit $ac_status); }; }; then
9464   ac_cv_member_krb5_ticket_client=yes
9465 else
9466   echo "$as_me: failed program was:" >&5
9467 cat conftest.$ac_ext >&5
9468 ac_cv_member_krb5_ticket_client=no
9469 fi
9470 rm -f conftest.$ac_objext conftest.$ac_ext
9471 fi
9472 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
9473 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
9474 if test $ac_cv_member_krb5_ticket_client = yes; then
9475
9476 cat >>confdefs.h <<_ACEOF
9477 #define HAVE_KRB5_TICKET_CLIENT 1
9478 _ACEOF
9479
9480
9481 else
9482   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
9483 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
9484    { (exit 1); exit 1; }; }
9485 fi
9486
9487 fi
9488
9489   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
9490 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
9491 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
9492   echo $ECHO_N "(cached) $ECHO_C" >&6
9493 else
9494   cat >conftest.$ac_ext <<_ACEOF
9495 #line $LINENO "configure"
9496 #include "confdefs.h"
9497 #include <krb5.h>
9498
9499 #ifdef F77_DUMMY_MAIN
9500 #  ifdef __cplusplus
9501      extern "C"
9502 #  endif
9503    int F77_DUMMY_MAIN() { return 1; }
9504 #endif
9505 int
9506 main ()
9507 {
9508 static krb5_error ac_aggr;
9509 if (ac_aggr.text.data)
9510 return 0;
9511   ;
9512   return 0;
9513 }
9514 _ACEOF
9515 rm -f conftest.$ac_objext
9516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9517   (eval $ac_compile) 2>&5
9518   ac_status=$?
9519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520   (exit $ac_status); } &&
9521          { ac_try='test -s conftest.$ac_objext'
9522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9523   (eval $ac_try) 2>&5
9524   ac_status=$?
9525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526   (exit $ac_status); }; }; then
9527   ac_cv_member_krb5_error_text_data=yes
9528 else
9529   echo "$as_me: failed program was:" >&5
9530 cat conftest.$ac_ext >&5
9531 ac_cv_member_krb5_error_text_data=no
9532 fi
9533 rm -f conftest.$ac_objext conftest.$ac_ext
9534 fi
9535 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
9536 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
9537 if test $ac_cv_member_krb5_error_text_data = yes; then
9538
9539 cat >>confdefs.h <<_ACEOF
9540 #define HAVE_KRB5_ERROR_TEXT_DATA 1
9541 _ACEOF
9542
9543
9544 else
9545   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
9546 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
9547 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
9548   echo $ECHO_N "(cached) $ECHO_C" >&6
9549 else
9550   cat >conftest.$ac_ext <<_ACEOF
9551 #line $LINENO "configure"
9552 #include "confdefs.h"
9553 #include <krb5.h>
9554
9555 #ifdef F77_DUMMY_MAIN
9556 #  ifdef __cplusplus
9557      extern "C"
9558 #  endif
9559    int F77_DUMMY_MAIN() { return 1; }
9560 #endif
9561 int
9562 main ()
9563 {
9564 static krb5_error ac_aggr;
9565 if (ac_aggr.e_data)
9566 return 0;
9567   ;
9568   return 0;
9569 }
9570 _ACEOF
9571 rm -f conftest.$ac_objext
9572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9573   (eval $ac_compile) 2>&5
9574   ac_status=$?
9575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576   (exit $ac_status); } &&
9577          { ac_try='test -s conftest.$ac_objext'
9578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9579   (eval $ac_try) 2>&5
9580   ac_status=$?
9581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582   (exit $ac_status); }; }; then
9583   ac_cv_member_krb5_error_e_data=yes
9584 else
9585   echo "$as_me: failed program was:" >&5
9586 cat conftest.$ac_ext >&5
9587 ac_cv_member_krb5_error_e_data=no
9588 fi
9589 rm -f conftest.$ac_objext conftest.$ac_ext
9590 fi
9591 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
9592 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
9593 if test $ac_cv_member_krb5_error_e_data = yes; then
9594   :
9595 else
9596   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
9597 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
9598    { (exit 1); exit 1; }; }
9599 fi
9600
9601 fi
9602
9603 fi
9604
9605
9606 ##
9607 ## Functions, global variables
9608 ##
9609
9610 echo "$as_me:$LINENO: checking for int timezone" >&5
9611 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
9612 if test "${pgac_cv_var_int_timezone+set}" = set; then
9613   echo $ECHO_N "(cached) $ECHO_C" >&6
9614 else
9615   cat >conftest.$ac_ext <<_ACEOF
9616 #line $LINENO "configure"
9617 #include "confdefs.h"
9618 #include <time.h>
9619 int res;
9620 #ifdef F77_DUMMY_MAIN
9621 #  ifdef __cplusplus
9622      extern "C"
9623 #  endif
9624    int F77_DUMMY_MAIN() { return 1; }
9625 #endif
9626 int
9627 main ()
9628 {
9629 res = timezone / 60;
9630   ;
9631   return 0;
9632 }
9633 _ACEOF
9634 rm -f conftest.$ac_objext conftest$ac_exeext
9635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9636   (eval $ac_link) 2>&5
9637   ac_status=$?
9638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639   (exit $ac_status); } &&
9640          { ac_try='test -s conftest$ac_exeext'
9641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9642   (eval $ac_try) 2>&5
9643   ac_status=$?
9644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645   (exit $ac_status); }; }; then
9646   pgac_cv_var_int_timezone=yes
9647 else
9648   echo "$as_me: failed program was:" >&5
9649 cat conftest.$ac_ext >&5
9650 pgac_cv_var_int_timezone=no
9651 fi
9652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9653 fi
9654 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
9655 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
9656 if test x"$pgac_cv_var_int_timezone" = xyes ; then
9657
9658 cat >>confdefs.h <<\_ACEOF
9659 #define HAVE_INT_TIMEZONE
9660 _ACEOF
9661
9662 fi
9663 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
9664 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
9665  if test "${ac_cv_func_accept_arg1+set}" = set; then
9666   echo $ECHO_N "(cached) $ECHO_C" >&6
9667 else
9668    if test "${ac_cv_func_accept_arg2+set}" = set; then
9669   echo $ECHO_N "(cached) $ECHO_C" >&6
9670 else
9671     if test "${ac_cv_func_accept_arg3+set}" = set; then
9672   echo $ECHO_N "(cached) $ECHO_C" >&6
9673 else
9674      for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
9675      for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
9676       for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
9677        cat >conftest.$ac_ext <<_ACEOF
9678 #line $LINENO "configure"
9679 #include "confdefs.h"
9680 #ifdef HAVE_SYS_TYPES_H
9681 #include <sys/types.h>
9682 #endif
9683 #ifdef HAVE_SYS_SOCKET_H
9684 #include <sys/socket.h>
9685 #endif
9686 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
9687 #ifdef F77_DUMMY_MAIN
9688 #  ifdef __cplusplus
9689      extern "C"
9690 #  endif
9691    int F77_DUMMY_MAIN() { return 1; }
9692 #endif
9693 int
9694 main ()
9695 {
9696
9697   ;
9698   return 0;
9699 }
9700 _ACEOF
9701 rm -f conftest.$ac_objext
9702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9703   (eval $ac_compile) 2>&5
9704   ac_status=$?
9705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706   (exit $ac_status); } &&
9707          { ac_try='test -s conftest.$ac_objext'
9708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709   (eval $ac_try) 2>&5
9710   ac_status=$?
9711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712   (exit $ac_status); }; }; then
9713   ac_not_found=no; break 3
9714 else
9715   echo "$as_me: failed program was:" >&5
9716 cat conftest.$ac_ext >&5
9717 ac_not_found=yes
9718 fi
9719 rm -f conftest.$ac_objext conftest.$ac_ext
9720       done
9721      done
9722     done
9723     if test "$ac_not_found" = yes; then
9724       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
9725 echo "$as_me: error: could not determine argument types" >&2;}
9726    { (exit 1); exit 1; }; }
9727     fi
9728     if test "$ac_cv_func_accept_arg3" = "void"; then
9729       ac_cv_func_accept_arg3=int
9730     fi
9731
9732 fi
9733
9734 fi
9735
9736 fi
9737  echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
9738 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
9739
9740 cat >>confdefs.h <<_ACEOF
9741 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
9742 _ACEOF
9743
9744
9745 cat >>confdefs.h <<_ACEOF
9746 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
9747 _ACEOF
9748
9749
9750 cat >>confdefs.h <<_ACEOF
9751 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
9752 _ACEOF
9753
9754
9755 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
9756 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
9757 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
9758   echo $ECHO_N "(cached) $ECHO_C" >&6
9759 else
9760   cat >conftest.$ac_ext <<_ACEOF
9761 #line $LINENO "configure"
9762 #include "confdefs.h"
9763 #include <sys/time.h>
9764 #ifdef F77_DUMMY_MAIN
9765 #  ifdef __cplusplus
9766      extern "C"
9767 #  endif
9768    int F77_DUMMY_MAIN() { return 1; }
9769 #endif
9770 int
9771 main ()
9772 {
9773 struct timeval *tp;
9774 struct timezone *tzp;
9775 gettimeofday(tp,tzp);
9776   ;
9777   return 0;
9778 }
9779 _ACEOF
9780 rm -f conftest.$ac_objext
9781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9782   (eval $ac_compile) 2>&5
9783   ac_status=$?
9784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785   (exit $ac_status); } &&
9786          { ac_try='test -s conftest.$ac_objext'
9787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788   (eval $ac_try) 2>&5
9789   ac_status=$?
9790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791   (exit $ac_status); }; }; then
9792   pgac_cv_func_gettimeofday_1arg=no
9793 else
9794   echo "$as_me: failed program was:" >&5
9795 cat conftest.$ac_ext >&5
9796 pgac_cv_func_gettimeofday_1arg=yes
9797 fi
9798 rm -f conftest.$ac_objext conftest.$ac_ext
9799 fi
9800 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
9801 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
9802 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
9803
9804 cat >>confdefs.h <<\_ACEOF
9805 #define GETTIMEOFDAY_1ARG
9806 _ACEOF
9807
9808 fi
9809
9810 # SunOS doesn't handle negative byte comparisons properly with +/- return
9811 echo "$as_me:$LINENO: checking for working memcmp" >&5
9812 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9813 if test "${ac_cv_func_memcmp_working+set}" = set; then
9814   echo $ECHO_N "(cached) $ECHO_C" >&6
9815 else
9816   if test "$cross_compiling" = yes; then
9817   ac_cv_func_memcmp_working=no
9818 else
9819   cat >conftest.$ac_ext <<_ACEOF
9820 #line $LINENO "configure"
9821 #include "confdefs.h"
9822
9823 #ifdef F77_DUMMY_MAIN
9824 #  ifdef __cplusplus
9825      extern "C"
9826 #  endif
9827    int F77_DUMMY_MAIN() { return 1; }
9828 #endif
9829 int
9830 main ()
9831 {
9832
9833   /* Some versions of memcmp are not 8-bit clean.  */
9834   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9835   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9836     exit (1);
9837
9838   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9839      or more and with at least one buffer not starting on a 4-byte boundary.
9840      William Lewis provided this test program.   */
9841   {
9842     char foo[21];
9843     char bar[21];
9844     int i;
9845     for (i = 0; i < 4; i++)
9846       {
9847         char *a = foo + i;
9848         char *b = bar + i;
9849         strcpy (a, "--------01111111");
9850         strcpy (b, "--------10000000");
9851         if (memcmp (a, b, 16) >= 0)
9852           exit (1);
9853       }
9854     exit (0);
9855   }
9856
9857   ;
9858   return 0;
9859 }
9860 _ACEOF
9861 rm -f conftest$ac_exeext
9862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9863   (eval $ac_link) 2>&5
9864   ac_status=$?
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868   (eval $ac_try) 2>&5
9869   ac_status=$?
9870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871   (exit $ac_status); }; }; then
9872   ac_cv_func_memcmp_working=yes
9873 else
9874   echo "$as_me: program exited with status $ac_status" >&5
9875 echo "$as_me: failed program was:" >&5
9876 cat conftest.$ac_ext >&5
9877 ( exit $ac_status )
9878 ac_cv_func_memcmp_working=no
9879 fi
9880 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9881 fi
9882 fi
9883 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9884 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9885 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900 for ac_func in cbrt fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
9901 do
9902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9903 echo "$as_me:$LINENO: checking for $ac_func" >&5
9904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9905 if eval "test \"\${$as_ac_var+set}\" = set"; then
9906   echo $ECHO_N "(cached) $ECHO_C" >&6
9907 else
9908   cat >conftest.$ac_ext <<_ACEOF
9909 #line $LINENO "configure"
9910 #include "confdefs.h"
9911 /* System header to define __stub macros and hopefully few prototypes,
9912     which can conflict with char $ac_func (); below.  */
9913 #include <assert.h>
9914 /* Override any gcc2 internal prototype to avoid an error.  */
9915 #ifdef __cplusplus
9916 extern "C"
9917 #endif
9918 /* We use char because int might match the return type of a gcc2
9919    builtin and then its argument prototype would still apply.  */
9920 char $ac_func ();
9921 char (*f) ();
9922
9923 #ifdef F77_DUMMY_MAIN
9924 #  ifdef __cplusplus
9925      extern "C"
9926 #  endif
9927    int F77_DUMMY_MAIN() { return 1; }
9928 #endif
9929 int
9930 main ()
9931 {
9932 /* The GNU C library defines this for functions which it implements
9933     to always fail with ENOSYS.  Some functions are actually named
9934     something starting with __ and the normal name is an alias.  */
9935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9936 choke me
9937 #else
9938 f = $ac_func;
9939 #endif
9940
9941   ;
9942   return 0;
9943 }
9944 _ACEOF
9945 rm -f conftest.$ac_objext conftest$ac_exeext
9946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9947   (eval $ac_link) 2>&5
9948   ac_status=$?
9949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950   (exit $ac_status); } &&
9951          { ac_try='test -s conftest$ac_exeext'
9952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9953   (eval $ac_try) 2>&5
9954   ac_status=$?
9955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956   (exit $ac_status); }; }; then
9957   eval "$as_ac_var=yes"
9958 else
9959   echo "$as_me: failed program was:" >&5
9960 cat conftest.$ac_ext >&5
9961 eval "$as_ac_var=no"
9962 fi
9963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9964 fi
9965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9967 if test `eval echo '${'$as_ac_var'}'` = yes; then
9968   cat >>confdefs.h <<_ACEOF
9969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9970 _ACEOF
9971
9972 fi
9973 done
9974
9975
9976 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
9977 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
9978 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
9979   echo $ECHO_N "(cached) $ECHO_C" >&6
9980 else
9981   cat >conftest.$ac_ext <<_ACEOF
9982 #line $LINENO "configure"
9983 #include "confdefs.h"
9984 #include <unistd.h>
9985
9986 #ifdef F77_DUMMY_MAIN
9987 #  ifdef __cplusplus
9988      extern "C"
9989 #  endif
9990    int F77_DUMMY_MAIN() { return 1; }
9991 #endif
9992 int
9993 main ()
9994 {
9995 #ifndef fdatasync
9996   char *p = (char *) fdatasync;
9997 #endif
9998
9999   ;
10000   return 0;
10001 }
10002 _ACEOF
10003 rm -f conftest.$ac_objext
10004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10005   (eval $ac_compile) 2>&5
10006   ac_status=$?
10007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008   (exit $ac_status); } &&
10009          { ac_try='test -s conftest.$ac_objext'
10010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011   (eval $ac_try) 2>&5
10012   ac_status=$?
10013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014   (exit $ac_status); }; }; then
10015   ac_cv_have_decl_fdatasync=yes
10016 else
10017   echo "$as_me: failed program was:" >&5
10018 cat conftest.$ac_ext >&5
10019 ac_cv_have_decl_fdatasync=no
10020 fi
10021 rm -f conftest.$ac_objext conftest.$ac_ext
10022 fi
10023 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10024 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10025 if test $ac_cv_have_decl_fdatasync = yes; then
10026
10027 cat >>confdefs.h <<_ACEOF
10028 #define HAVE_DECL_FDATASYNC 1
10029 _ACEOF
10030
10031
10032 else
10033   cat >>confdefs.h <<_ACEOF
10034 #define HAVE_DECL_FDATASYNC 0
10035 _ACEOF
10036
10037
10038 fi
10039
10040
10041
10042 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
10043 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
10044 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
10045   echo $ECHO_N "(cached) $ECHO_C" >&6
10046 else
10047   cat >conftest.$ac_ext <<_ACEOF
10048 #line $LINENO "configure"
10049 #include "confdefs.h"
10050 #include <machine/vmparam.h>
10051 #include <sys/exec.h>
10052
10053 #ifdef F77_DUMMY_MAIN
10054 #  ifdef __cplusplus
10055      extern "C"
10056 #  endif
10057    int F77_DUMMY_MAIN() { return 1; }
10058 #endif
10059 int
10060 main ()
10061 {
10062 PS_STRINGS->ps_nargvstr = 1;
10063 PS_STRINGS->ps_argvstr = "foo";
10064   ;
10065   return 0;
10066 }
10067 _ACEOF
10068 rm -f conftest.$ac_objext conftest$ac_exeext
10069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10070   (eval $ac_link) 2>&5
10071   ac_status=$?
10072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073   (exit $ac_status); } &&
10074          { ac_try='test -s conftest$ac_exeext'
10075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10076   (eval $ac_try) 2>&5
10077   ac_status=$?
10078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079   (exit $ac_status); }; }; then
10080   pgac_cv_var_PS_STRINGS=yes
10081 else
10082   echo "$as_me: failed program was:" >&5
10083 cat conftest.$ac_ext >&5
10084 pgac_cv_var_PS_STRINGS=no
10085 fi
10086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10087 fi
10088 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
10089 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
10090 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
10091
10092 cat >>confdefs.h <<\_ACEOF
10093 #define HAVE_PS_STRINGS
10094 _ACEOF
10095
10096 fi
10097
10098
10099 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
10100 # is missing.  Yes, there are machines that have only one.  We may
10101 # also decide to use snprintf.c if snprintf() is present but does not
10102 # have working "long long int" support -- see below.
10103
10104 pgac_need_repl_snprintf=no
10105
10106 for ac_func in snprintf
10107 do
10108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10109 echo "$as_me:$LINENO: checking for $ac_func" >&5
10110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10111 if eval "test \"\${$as_ac_var+set}\" = set"; then
10112   echo $ECHO_N "(cached) $ECHO_C" >&6
10113 else
10114   cat >conftest.$ac_ext <<_ACEOF
10115 #line $LINENO "configure"
10116 #include "confdefs.h"
10117 /* System header to define __stub macros and hopefully few prototypes,
10118     which can conflict with char $ac_func (); below.  */
10119 #include <assert.h>
10120 /* Override any gcc2 internal prototype to avoid an error.  */
10121 #ifdef __cplusplus
10122 extern "C"
10123 #endif
10124 /* We use char because int might match the return type of a gcc2
10125    builtin and then its argument prototype would still apply.  */
10126 char $ac_func ();
10127 char (*f) ();
10128
10129 #ifdef F77_DUMMY_MAIN
10130 #  ifdef __cplusplus
10131      extern "C"
10132 #  endif
10133    int F77_DUMMY_MAIN() { return 1; }
10134 #endif
10135 int
10136 main ()
10137 {
10138 /* The GNU C library defines this for functions which it implements
10139     to always fail with ENOSYS.  Some functions are actually named
10140     something starting with __ and the normal name is an alias.  */
10141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10142 choke me
10143 #else
10144 f = $ac_func;
10145 #endif
10146
10147   ;
10148   return 0;
10149 }
10150 _ACEOF
10151 rm -f conftest.$ac_objext conftest$ac_exeext
10152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10153   (eval $ac_link) 2>&5
10154   ac_status=$?
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); } &&
10157          { ac_try='test -s conftest$ac_exeext'
10158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159   (eval $ac_try) 2>&5
10160   ac_status=$?
10161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162   (exit $ac_status); }; }; then
10163   eval "$as_ac_var=yes"
10164 else
10165   echo "$as_me: failed program was:" >&5
10166 cat conftest.$ac_ext >&5
10167 eval "$as_ac_var=no"
10168 fi
10169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10170 fi
10171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10173 if test `eval echo '${'$as_ac_var'}'` = yes; then
10174   cat >>confdefs.h <<_ACEOF
10175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10176 _ACEOF
10177
10178 else
10179   pgac_need_repl_snprintf=yes
10180 fi
10181 done
10182
10183
10184 for ac_func in vsnprintf
10185 do
10186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10187 echo "$as_me:$LINENO: checking for $ac_func" >&5
10188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10189 if eval "test \"\${$as_ac_var+set}\" = set"; then
10190   echo $ECHO_N "(cached) $ECHO_C" >&6
10191 else
10192   cat >conftest.$ac_ext <<_ACEOF
10193 #line $LINENO "configure"
10194 #include "confdefs.h"
10195 /* System header to define __stub macros and hopefully few prototypes,
10196     which can conflict with char $ac_func (); below.  */
10197 #include <assert.h>
10198 /* Override any gcc2 internal prototype to avoid an error.  */
10199 #ifdef __cplusplus
10200 extern "C"
10201 #endif
10202 /* We use char because int might match the return type of a gcc2
10203    builtin and then its argument prototype would still apply.  */
10204 char $ac_func ();
10205 char (*f) ();
10206
10207 #ifdef F77_DUMMY_MAIN
10208 #  ifdef __cplusplus
10209      extern "C"
10210 #  endif
10211    int F77_DUMMY_MAIN() { return 1; }
10212 #endif
10213 int
10214 main ()
10215 {
10216 /* The GNU C library defines this for functions which it implements
10217     to always fail with ENOSYS.  Some functions are actually named
10218     something starting with __ and the normal name is an alias.  */
10219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10220 choke me
10221 #else
10222 f = $ac_func;
10223 #endif
10224
10225   ;
10226   return 0;
10227 }
10228 _ACEOF
10229 rm -f conftest.$ac_objext conftest$ac_exeext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231   (eval $ac_link) 2>&5
10232   ac_status=$?
10233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234   (exit $ac_status); } &&
10235          { ac_try='test -s conftest$ac_exeext'
10236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237   (eval $ac_try) 2>&5
10238   ac_status=$?
10239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240   (exit $ac_status); }; }; then
10241   eval "$as_ac_var=yes"
10242 else
10243   echo "$as_me: failed program was:" >&5
10244 cat conftest.$ac_ext >&5
10245 eval "$as_ac_var=no"
10246 fi
10247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10248 fi
10249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10251 if test `eval echo '${'$as_ac_var'}'` = yes; then
10252   cat >>confdefs.h <<_ACEOF
10253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10254 _ACEOF
10255
10256 else
10257   pgac_need_repl_snprintf=yes
10258 fi
10259 done
10260
10261
10262
10263 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10264 # include/c.h will provide declarations.  Note this is a separate test
10265 # from whether the functions exist in the C library --- there are
10266 # systems that have the functions but don't bother to declare them :-(
10267
10268 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10269 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10270 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10271   echo $ECHO_N "(cached) $ECHO_C" >&6
10272 else
10273   cat >conftest.$ac_ext <<_ACEOF
10274 #line $LINENO "configure"
10275 #include "confdefs.h"
10276 $ac_includes_default
10277 #ifdef F77_DUMMY_MAIN
10278 #  ifdef __cplusplus
10279      extern "C"
10280 #  endif
10281    int F77_DUMMY_MAIN() { return 1; }
10282 #endif
10283 int
10284 main ()
10285 {
10286 #ifndef snprintf
10287   char *p = (char *) snprintf;
10288 #endif
10289
10290   ;
10291   return 0;
10292 }
10293 _ACEOF
10294 rm -f conftest.$ac_objext
10295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10296   (eval $ac_compile) 2>&5
10297   ac_status=$?
10298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299   (exit $ac_status); } &&
10300          { ac_try='test -s conftest.$ac_objext'
10301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10302   (eval $ac_try) 2>&5
10303   ac_status=$?
10304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305   (exit $ac_status); }; }; then
10306   ac_cv_have_decl_snprintf=yes
10307 else
10308   echo "$as_me: failed program was:" >&5
10309 cat conftest.$ac_ext >&5
10310 ac_cv_have_decl_snprintf=no
10311 fi
10312 rm -f conftest.$ac_objext conftest.$ac_ext
10313 fi
10314 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10315 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10316 if test $ac_cv_have_decl_snprintf = yes; then
10317
10318 cat >>confdefs.h <<_ACEOF
10319 #define HAVE_DECL_SNPRINTF 1
10320 _ACEOF
10321
10322
10323 else
10324   cat >>confdefs.h <<_ACEOF
10325 #define HAVE_DECL_SNPRINTF 0
10326 _ACEOF
10327
10328
10329 fi
10330 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10331 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10332 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10333   echo $ECHO_N "(cached) $ECHO_C" >&6
10334 else
10335   cat >conftest.$ac_ext <<_ACEOF
10336 #line $LINENO "configure"
10337 #include "confdefs.h"
10338 $ac_includes_default
10339 #ifdef F77_DUMMY_MAIN
10340 #  ifdef __cplusplus
10341      extern "C"
10342 #  endif
10343    int F77_DUMMY_MAIN() { return 1; }
10344 #endif
10345 int
10346 main ()
10347 {
10348 #ifndef vsnprintf
10349   char *p = (char *) vsnprintf;
10350 #endif
10351
10352   ;
10353   return 0;
10354 }
10355 _ACEOF
10356 rm -f conftest.$ac_objext
10357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10358   (eval $ac_compile) 2>&5
10359   ac_status=$?
10360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361   (exit $ac_status); } &&
10362          { ac_try='test -s conftest.$ac_objext'
10363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364   (eval $ac_try) 2>&5
10365   ac_status=$?
10366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367   (exit $ac_status); }; }; then
10368   ac_cv_have_decl_vsnprintf=yes
10369 else
10370   echo "$as_me: failed program was:" >&5
10371 cat conftest.$ac_ext >&5
10372 ac_cv_have_decl_vsnprintf=no
10373 fi
10374 rm -f conftest.$ac_objext conftest.$ac_ext
10375 fi
10376 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10377 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10378 if test $ac_cv_have_decl_vsnprintf = yes; then
10379
10380 cat >>confdefs.h <<_ACEOF
10381 #define HAVE_DECL_VSNPRINTF 1
10382 _ACEOF
10383
10384
10385 else
10386   cat >>confdefs.h <<_ACEOF
10387 #define HAVE_DECL_VSNPRINTF 0
10388 _ACEOF
10389
10390
10391 fi
10392
10393
10394
10395
10396 # do this one the hard way in case isinf() is a macro
10397 echo "$as_me:$LINENO: checking for isinf" >&5
10398 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10399 if test "${ac_cv_func_isinf+set}" = set; then
10400   echo $ECHO_N "(cached) $ECHO_C" >&6
10401 else
10402   cat >conftest.$ac_ext <<_ACEOF
10403 #line $LINENO "configure"
10404 #include "confdefs.h"
10405 #include <math.h>
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 double x = 0.0; int res = isinf(x);
10417   ;
10418   return 0;
10419 }
10420 _ACEOF
10421 rm -f conftest.$ac_objext conftest$ac_exeext
10422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10423   (eval $ac_link) 2>&5
10424   ac_status=$?
10425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426   (exit $ac_status); } &&
10427          { ac_try='test -s conftest$ac_exeext'
10428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429   (eval $ac_try) 2>&5
10430   ac_status=$?
10431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432   (exit $ac_status); }; }; then
10433   ac_cv_func_isinf=yes
10434 else
10435   echo "$as_me: failed program was:" >&5
10436 cat conftest.$ac_ext >&5
10437 ac_cv_func_isinf=no
10438 fi
10439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10440 fi
10441 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10442 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10443
10444 if test $ac_cv_func_isinf = yes ; then
10445
10446 cat >>confdefs.h <<\_ACEOF
10447 #define HAVE_ISINF 1
10448 _ACEOF
10449
10450 else
10451   LIBOBJS="$LIBOBJS isinf.$ac_objext"
10452   # Look for a way to implement a substitute for isinf()
10453
10454
10455
10456
10457 for ac_func in fpclass fp_class fp_class_d class
10458 do
10459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10460 echo "$as_me:$LINENO: checking for $ac_func" >&5
10461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10462 if eval "test \"\${$as_ac_var+set}\" = set"; then
10463   echo $ECHO_N "(cached) $ECHO_C" >&6
10464 else
10465   cat >conftest.$ac_ext <<_ACEOF
10466 #line $LINENO "configure"
10467 #include "confdefs.h"
10468 /* System header to define __stub macros and hopefully few prototypes,
10469     which can conflict with char $ac_func (); below.  */
10470 #include <assert.h>
10471 /* Override any gcc2 internal prototype to avoid an error.  */
10472 #ifdef __cplusplus
10473 extern "C"
10474 #endif
10475 /* We use char because int might match the return type of a gcc2
10476    builtin and then its argument prototype would still apply.  */
10477 char $ac_func ();
10478 char (*f) ();
10479
10480 #ifdef F77_DUMMY_MAIN
10481 #  ifdef __cplusplus
10482      extern "C"
10483 #  endif
10484    int F77_DUMMY_MAIN() { return 1; }
10485 #endif
10486 int
10487 main ()
10488 {
10489 /* The GNU C library defines this for functions which it implements
10490     to always fail with ENOSYS.  Some functions are actually named
10491     something starting with __ and the normal name is an alias.  */
10492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10493 choke me
10494 #else
10495 f = $ac_func;
10496 #endif
10497
10498   ;
10499   return 0;
10500 }
10501 _ACEOF
10502 rm -f conftest.$ac_objext conftest$ac_exeext
10503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10504   (eval $ac_link) 2>&5
10505   ac_status=$?
10506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507   (exit $ac_status); } &&
10508          { ac_try='test -s conftest$ac_exeext'
10509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10510   (eval $ac_try) 2>&5
10511   ac_status=$?
10512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513   (exit $ac_status); }; }; then
10514   eval "$as_ac_var=yes"
10515 else
10516   echo "$as_me: failed program was:" >&5
10517 cat conftest.$ac_ext >&5
10518 eval "$as_ac_var=no"
10519 fi
10520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10521 fi
10522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10523 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10524 if test `eval echo '${'$as_ac_var'}'` = yes; then
10525   cat >>confdefs.h <<_ACEOF
10526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10527 _ACEOF
10528  break
10529 fi
10530 done
10531
10532 fi
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544 for ac_func in gethostname getrusage inet_aton random srandom strcasecmp strdup strerror strtol strtoul
10545 do
10546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10547 echo "$as_me:$LINENO: checking for $ac_func" >&5
10548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10549 if eval "test \"\${$as_ac_var+set}\" = set"; then
10550   echo $ECHO_N "(cached) $ECHO_C" >&6
10551 else
10552   cat >conftest.$ac_ext <<_ACEOF
10553 #line $LINENO "configure"
10554 #include "confdefs.h"
10555 /* System header to define __stub macros and hopefully few prototypes,
10556     which can conflict with char $ac_func (); below.  */
10557 #include <assert.h>
10558 /* Override any gcc2 internal prototype to avoid an error.  */
10559 #ifdef __cplusplus
10560 extern "C"
10561 #endif
10562 /* We use char because int might match the return type of a gcc2
10563    builtin and then its argument prototype would still apply.  */
10564 char $ac_func ();
10565 char (*f) ();
10566
10567 #ifdef F77_DUMMY_MAIN
10568 #  ifdef __cplusplus
10569      extern "C"
10570 #  endif
10571    int F77_DUMMY_MAIN() { return 1; }
10572 #endif
10573 int
10574 main ()
10575 {
10576 /* The GNU C library defines this for functions which it implements
10577     to always fail with ENOSYS.  Some functions are actually named
10578     something starting with __ and the normal name is an alias.  */
10579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10580 choke me
10581 #else
10582 f = $ac_func;
10583 #endif
10584
10585   ;
10586   return 0;
10587 }
10588 _ACEOF
10589 rm -f conftest.$ac_objext conftest$ac_exeext
10590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10591   (eval $ac_link) 2>&5
10592   ac_status=$?
10593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594   (exit $ac_status); } &&
10595          { ac_try='test -s conftest$ac_exeext'
10596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597   (eval $ac_try) 2>&5
10598   ac_status=$?
10599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600   (exit $ac_status); }; }; then
10601   eval "$as_ac_var=yes"
10602 else
10603   echo "$as_me: failed program was:" >&5
10604 cat conftest.$ac_ext >&5
10605 eval "$as_ac_var=no"
10606 fi
10607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10608 fi
10609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10610 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10611 if test `eval echo '${'$as_ac_var'}'` = yes; then
10612   cat >>confdefs.h <<_ACEOF
10613 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10614 _ACEOF
10615
10616 else
10617   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
10618 fi
10619 done
10620
10621
10622
10623 # Solaris has a very slow qsort in certain cases.
10624 case $host_os in
10625   solaris*) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
10626 esac
10627
10628 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
10629 # this hackery with HPUXMATHLIB allows us to cope.
10630 HPUXMATHLIB=""
10631 case $host_cpu in
10632   hppa1.1)
10633         if [ -r /lib/pa1.1/libm.a ] ; then
10634             HPUXMATHLIB="-L /lib/pa1.1 -lm"
10635         fi ;;
10636 esac
10637
10638
10639
10640 for ac_func in rint
10641 do
10642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10643 echo "$as_me:$LINENO: checking for $ac_func" >&5
10644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10645 if eval "test \"\${$as_ac_var+set}\" = set"; then
10646   echo $ECHO_N "(cached) $ECHO_C" >&6
10647 else
10648   cat >conftest.$ac_ext <<_ACEOF
10649 #line $LINENO "configure"
10650 #include "confdefs.h"
10651 /* System header to define __stub macros and hopefully few prototypes,
10652     which can conflict with char $ac_func (); below.  */
10653 #include <assert.h>
10654 /* Override any gcc2 internal prototype to avoid an error.  */
10655 #ifdef __cplusplus
10656 extern "C"
10657 #endif
10658 /* We use char because int might match the return type of a gcc2
10659    builtin and then its argument prototype would still apply.  */
10660 char $ac_func ();
10661 char (*f) ();
10662
10663 #ifdef F77_DUMMY_MAIN
10664 #  ifdef __cplusplus
10665      extern "C"
10666 #  endif
10667    int F77_DUMMY_MAIN() { return 1; }
10668 #endif
10669 int
10670 main ()
10671 {
10672 /* The GNU C library defines this for functions which it implements
10673     to always fail with ENOSYS.  Some functions are actually named
10674     something starting with __ and the normal name is an alias.  */
10675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10676 choke me
10677 #else
10678 f = $ac_func;
10679 #endif
10680
10681   ;
10682   return 0;
10683 }
10684 _ACEOF
10685 rm -f conftest.$ac_objext conftest$ac_exeext
10686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10687   (eval $ac_link) 2>&5
10688   ac_status=$?
10689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690   (exit $ac_status); } &&
10691          { ac_try='test -s conftest$ac_exeext'
10692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693   (eval $ac_try) 2>&5
10694   ac_status=$?
10695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696   (exit $ac_status); }; }; then
10697   eval "$as_ac_var=yes"
10698 else
10699   echo "$as_me: failed program was:" >&5
10700 cat conftest.$ac_ext >&5
10701 eval "$as_ac_var=no"
10702 fi
10703 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10704 fi
10705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10706 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10707 if test `eval echo '${'$as_ac_var'}'` = yes; then
10708   cat >>confdefs.h <<_ACEOF
10709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10710 _ACEOF
10711
10712 else
10713   echo "$as_me:$LINENO: checking for rint in -lm" >&5
10714 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
10715 if test "${ac_cv_lib_m_rint+set}" = set; then
10716   echo $ECHO_N "(cached) $ECHO_C" >&6
10717 else
10718   ac_check_lib_save_LIBS=$LIBS
10719 LIBS="-lm $HPUXMATHLIB $LIBS"
10720 cat >conftest.$ac_ext <<_ACEOF
10721 #line $LINENO "configure"
10722 #include "confdefs.h"
10723
10724 /* Override any gcc2 internal prototype to avoid an error.  */
10725 #ifdef __cplusplus
10726 extern "C"
10727 #endif
10728 /* We use char because int might match the return type of a gcc2
10729    builtin and then its argument prototype would still apply.  */
10730 char rint ();
10731 #ifdef F77_DUMMY_MAIN
10732 #  ifdef __cplusplus
10733      extern "C"
10734 #  endif
10735    int F77_DUMMY_MAIN() { return 1; }
10736 #endif
10737 int
10738 main ()
10739 {
10740 rint ();
10741   ;
10742   return 0;
10743 }
10744 _ACEOF
10745 rm -f conftest.$ac_objext conftest$ac_exeext
10746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10747   (eval $ac_link) 2>&5
10748   ac_status=$?
10749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750   (exit $ac_status); } &&
10751          { ac_try='test -s conftest$ac_exeext'
10752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753   (eval $ac_try) 2>&5
10754   ac_status=$?
10755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756   (exit $ac_status); }; }; then
10757   ac_cv_lib_m_rint=yes
10758 else
10759   echo "$as_me: failed program was:" >&5
10760 cat conftest.$ac_ext >&5
10761 ac_cv_lib_m_rint=no
10762 fi
10763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10764 LIBS=$ac_check_lib_save_LIBS
10765 fi
10766 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
10767 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
10768 if test $ac_cv_lib_m_rint = yes; then
10769   cat >>confdefs.h <<\_ACEOF
10770 #define HAVE_RINT 1
10771 _ACEOF
10772
10773 fi
10774
10775 fi
10776 done
10777
10778
10779
10780 if test "$with_readline" = yes; then
10781   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
10782 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
10783 cat >conftest.$ac_ext <<_ACEOF
10784 #line $LINENO "configure"
10785 #include "confdefs.h"
10786 #include <stdio.h>
10787 #ifdef HAVE_READLINE_READLINE_H
10788 # include <readline/readline.h>
10789 #elif defined(HAVE_READLINE_H)
10790 # include <readline.h>
10791 #endif
10792
10793 #ifdef F77_DUMMY_MAIN
10794 #  ifdef __cplusplus
10795      extern "C"
10796 #  endif
10797    int F77_DUMMY_MAIN() { return 1; }
10798 #endif
10799 int
10800 main ()
10801 {
10802 rl_completion_append_character = 'x';
10803   ;
10804   return 0;
10805 }
10806 _ACEOF
10807 rm -f conftest.$ac_objext conftest$ac_exeext
10808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10809   (eval $ac_link) 2>&5
10810   ac_status=$?
10811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812   (exit $ac_status); } &&
10813          { ac_try='test -s conftest$ac_exeext'
10814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815   (eval $ac_try) 2>&5
10816   ac_status=$?
10817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818   (exit $ac_status); }; }; then
10819   echo "$as_me:$LINENO: result: yes" >&5
10820 echo "${ECHO_T}yes" >&6
10821
10822 cat >>confdefs.h <<\_ACEOF
10823 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
10824 _ACEOF
10825
10826 else
10827   echo "$as_me: failed program was:" >&5
10828 cat conftest.$ac_ext >&5
10829 echo "$as_me:$LINENO: result: no" >&5
10830 echo "${ECHO_T}no" >&6
10831 fi
10832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10833
10834
10835 for ac_func in rl_completion_matches rl_filename_completion_function
10836 do
10837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10838 echo "$as_me:$LINENO: checking for $ac_func" >&5
10839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10840 if eval "test \"\${$as_ac_var+set}\" = set"; then
10841   echo $ECHO_N "(cached) $ECHO_C" >&6
10842 else
10843   cat >conftest.$ac_ext <<_ACEOF
10844 #line $LINENO "configure"
10845 #include "confdefs.h"
10846 /* System header to define __stub macros and hopefully few prototypes,
10847     which can conflict with char $ac_func (); below.  */
10848 #include <assert.h>
10849 /* Override any gcc2 internal prototype to avoid an error.  */
10850 #ifdef __cplusplus
10851 extern "C"
10852 #endif
10853 /* We use char because int might match the return type of a gcc2
10854    builtin and then its argument prototype would still apply.  */
10855 char $ac_func ();
10856 char (*f) ();
10857
10858 #ifdef F77_DUMMY_MAIN
10859 #  ifdef __cplusplus
10860      extern "C"
10861 #  endif
10862    int F77_DUMMY_MAIN() { return 1; }
10863 #endif
10864 int
10865 main ()
10866 {
10867 /* The GNU C library defines this for functions which it implements
10868     to always fail with ENOSYS.  Some functions are actually named
10869     something starting with __ and the normal name is an alias.  */
10870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10871 choke me
10872 #else
10873 f = $ac_func;
10874 #endif
10875
10876   ;
10877   return 0;
10878 }
10879 _ACEOF
10880 rm -f conftest.$ac_objext conftest$ac_exeext
10881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10882   (eval $ac_link) 2>&5
10883   ac_status=$?
10884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885   (exit $ac_status); } &&
10886          { ac_try='test -s conftest$ac_exeext'
10887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10888   (eval $ac_try) 2>&5
10889   ac_status=$?
10890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891   (exit $ac_status); }; }; then
10892   eval "$as_ac_var=yes"
10893 else
10894   echo "$as_me: failed program was:" >&5
10895 cat conftest.$ac_ext >&5
10896 eval "$as_ac_var=no"
10897 fi
10898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10899 fi
10900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10901 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10902 if test `eval echo '${'$as_ac_var'}'` = yes; then
10903   cat >>confdefs.h <<_ACEOF
10904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10905 _ACEOF
10906
10907 fi
10908 done
10909
10910 fi
10911
10912
10913 echo "$as_me:$LINENO: checking for finite" >&5
10914 echo $ECHO_N "checking for finite... $ECHO_C" >&6
10915 cat >conftest.$ac_ext <<_ACEOF
10916 #line $LINENO "configure"
10917 #include "confdefs.h"
10918 #include <math.h>
10919 #ifdef F77_DUMMY_MAIN
10920 #  ifdef __cplusplus
10921      extern "C"
10922 #  endif
10923    int F77_DUMMY_MAIN() { return 1; }
10924 #endif
10925 int
10926 main ()
10927 {
10928 int dummy=finite(1.0);
10929   ;
10930   return 0;
10931 }
10932 _ACEOF
10933 rm -f conftest.$ac_objext conftest$ac_exeext
10934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10935   (eval $ac_link) 2>&5
10936   ac_status=$?
10937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938   (exit $ac_status); } &&
10939          { ac_try='test -s conftest$ac_exeext'
10940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941   (eval $ac_try) 2>&5
10942   ac_status=$?
10943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944   (exit $ac_status); }; }; then
10945
10946 cat >>confdefs.h <<\_ACEOF
10947 #define HAVE_FINITE 1
10948 _ACEOF
10949
10950 echo "$as_me:$LINENO: result: yes" >&5
10951 echo "${ECHO_T}yes" >&6
10952 else
10953   echo "$as_me: failed program was:" >&5
10954 cat conftest.$ac_ext >&5
10955 echo "$as_me:$LINENO: result: no" >&5
10956 echo "${ECHO_T}no" >&6
10957 fi
10958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10959
10960 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10961 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10962 cat >conftest.$ac_ext <<_ACEOF
10963 #line $LINENO "configure"
10964 #include "confdefs.h"
10965 #include <setjmp.h>
10966 #ifdef F77_DUMMY_MAIN
10967 #  ifdef __cplusplus
10968      extern "C"
10969 #  endif
10970    int F77_DUMMY_MAIN() { return 1; }
10971 #endif
10972 int
10973 main ()
10974 {
10975 sigjmp_buf x; sigsetjmp(x, 1);
10976   ;
10977   return 0;
10978 }
10979 _ACEOF
10980 rm -f conftest.$ac_objext conftest$ac_exeext
10981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10982   (eval $ac_link) 2>&5
10983   ac_status=$?
10984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985   (exit $ac_status); } &&
10986          { ac_try='test -s conftest$ac_exeext'
10987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10988   (eval $ac_try) 2>&5
10989   ac_status=$?
10990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991   (exit $ac_status); }; }; then
10992
10993 cat >>confdefs.h <<\_ACEOF
10994 #define HAVE_SIGSETJMP 1
10995 _ACEOF
10996
10997 echo "$as_me:$LINENO: result: yes" >&5
10998 echo "${ECHO_T}yes" >&6
10999 else
11000   echo "$as_me: failed program was:" >&5
11001 cat conftest.$ac_ext >&5
11002 echo "$as_me:$LINENO: result: no" >&5
11003 echo "${ECHO_T}no" >&6
11004 fi
11005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11006
11007 echo "$as_me:$LINENO: checking for syslog" >&5
11008 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
11009 if test "${ac_cv_func_syslog+set}" = set; then
11010   echo $ECHO_N "(cached) $ECHO_C" >&6
11011 else
11012   cat >conftest.$ac_ext <<_ACEOF
11013 #line $LINENO "configure"
11014 #include "confdefs.h"
11015 /* System header to define __stub macros and hopefully few prototypes,
11016     which can conflict with char syslog (); below.  */
11017 #include <assert.h>
11018 /* Override any gcc2 internal prototype to avoid an error.  */
11019 #ifdef __cplusplus
11020 extern "C"
11021 #endif
11022 /* We use char because int might match the return type of a gcc2
11023    builtin and then its argument prototype would still apply.  */
11024 char syslog ();
11025 char (*f) ();
11026
11027 #ifdef F77_DUMMY_MAIN
11028 #  ifdef __cplusplus
11029      extern "C"
11030 #  endif
11031    int F77_DUMMY_MAIN() { return 1; }
11032 #endif
11033 int
11034 main ()
11035 {
11036 /* The GNU C library defines this for functions which it implements
11037     to always fail with ENOSYS.  Some functions are actually named
11038     something starting with __ and the normal name is an alias.  */
11039 #if defined (__stub_syslog) || defined (__stub___syslog)
11040 choke me
11041 #else
11042 f = syslog;
11043 #endif
11044
11045   ;
11046   return 0;
11047 }
11048 _ACEOF
11049 rm -f conftest.$ac_objext conftest$ac_exeext
11050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11051   (eval $ac_link) 2>&5
11052   ac_status=$?
11053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054   (exit $ac_status); } &&
11055          { ac_try='test -s conftest$ac_exeext'
11056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11057   (eval $ac_try) 2>&5
11058   ac_status=$?
11059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060   (exit $ac_status); }; }; then
11061   ac_cv_func_syslog=yes
11062 else
11063   echo "$as_me: failed program was:" >&5
11064 cat conftest.$ac_ext >&5
11065 ac_cv_func_syslog=no
11066 fi
11067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11068 fi
11069 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
11070 echo "${ECHO_T}$ac_cv_func_syslog" >&6
11071 if test $ac_cv_func_syslog = yes; then
11072   if test "${ac_cv_header_syslog_h+set}" = set; then
11073   echo "$as_me:$LINENO: checking for syslog.h" >&5
11074 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11075 if test "${ac_cv_header_syslog_h+set}" = set; then
11076   echo $ECHO_N "(cached) $ECHO_C" >&6
11077 fi
11078 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11079 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11080 else
11081   # Is the header compilable?
11082 echo "$as_me:$LINENO: checking syslog.h usability" >&5
11083 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
11084 cat >conftest.$ac_ext <<_ACEOF
11085 #line $LINENO "configure"
11086 #include "confdefs.h"
11087 $ac_includes_default
11088 #include <syslog.h>
11089 _ACEOF
11090 rm -f conftest.$ac_objext
11091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11092   (eval $ac_compile) 2>&5
11093   ac_status=$?
11094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095   (exit $ac_status); } &&
11096          { ac_try='test -s conftest.$ac_objext'
11097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098   (eval $ac_try) 2>&5
11099   ac_status=$?
11100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101   (exit $ac_status); }; }; then
11102   ac_header_compiler=yes
11103 else
11104   echo "$as_me: failed program was:" >&5
11105 cat conftest.$ac_ext >&5
11106 ac_header_compiler=no
11107 fi
11108 rm -f conftest.$ac_objext conftest.$ac_ext
11109 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11110 echo "${ECHO_T}$ac_header_compiler" >&6
11111
11112 # Is the header present?
11113 echo "$as_me:$LINENO: checking syslog.h presence" >&5
11114 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
11115 cat >conftest.$ac_ext <<_ACEOF
11116 #line $LINENO "configure"
11117 #include "confdefs.h"
11118 #include <syslog.h>
11119 _ACEOF
11120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11121   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11122   ac_status=$?
11123   egrep -v '^ *\+' conftest.er1 >conftest.err
11124   rm -f conftest.er1
11125   cat conftest.err >&5
11126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127   (exit $ac_status); } >/dev/null; then
11128   if test -s conftest.err; then
11129     ac_cpp_err=$ac_c_preproc_warn_flag
11130   else
11131     ac_cpp_err=
11132   fi
11133 else
11134   ac_cpp_err=yes
11135 fi
11136 if test -z "$ac_cpp_err"; then
11137   ac_header_preproc=yes
11138 else
11139   echo "$as_me: failed program was:" >&5
11140   cat conftest.$ac_ext >&5
11141   ac_header_preproc=no
11142 fi
11143 rm -f conftest.err conftest.$ac_ext
11144 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11145 echo "${ECHO_T}$ac_header_preproc" >&6
11146
11147 # So?  What about this header?
11148 case $ac_header_compiler:$ac_header_preproc in
11149   yes:no )
11150     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
11151 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11152     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11153 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11154   no:yes )
11155     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
11156 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
11157     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
11158 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
11159     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11160 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11161 esac
11162 echo "$as_me:$LINENO: checking for syslog.h" >&5
11163 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11164 if test "${ac_cv_header_syslog_h+set}" = set; then
11165   echo $ECHO_N "(cached) $ECHO_C" >&6
11166 else
11167   ac_cv_header_syslog_h=$ac_header_preproc
11168 fi
11169 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11170 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11171
11172 fi
11173 if test $ac_cv_header_syslog_h = yes; then
11174   cat >>confdefs.h <<\_ACEOF
11175 #define HAVE_SYSLOG 1
11176 _ACEOF
11177
11178 fi
11179
11180
11181 fi
11182
11183
11184 echo "$as_me:$LINENO: checking for optreset" >&5
11185 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
11186 if test "${pgac_cv_var_int_optreset+set}" = set; then
11187   echo $ECHO_N "(cached) $ECHO_C" >&6
11188 else
11189   cat >conftest.$ac_ext <<_ACEOF
11190 #line $LINENO "configure"
11191 #include "confdefs.h"
11192 #include <unistd.h>
11193 #ifdef F77_DUMMY_MAIN
11194 #  ifdef __cplusplus
11195      extern "C"
11196 #  endif
11197    int F77_DUMMY_MAIN() { return 1; }
11198 #endif
11199 int
11200 main ()
11201 {
11202 extern int optreset; optreset = 1;
11203   ;
11204   return 0;
11205 }
11206 _ACEOF
11207 rm -f conftest.$ac_objext conftest$ac_exeext
11208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11209   (eval $ac_link) 2>&5
11210   ac_status=$?
11211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212   (exit $ac_status); } &&
11213          { ac_try='test -s conftest$ac_exeext'
11214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11215   (eval $ac_try) 2>&5
11216   ac_status=$?
11217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218   (exit $ac_status); }; }; then
11219   pgac_cv_var_int_optreset=yes
11220 else
11221   echo "$as_me: failed program was:" >&5
11222 cat conftest.$ac_ext >&5
11223 pgac_cv_var_int_optreset=no
11224 fi
11225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11226 fi
11227 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
11228 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
11229 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
11230
11231 cat >>confdefs.h <<\_ACEOF
11232 #define HAVE_INT_OPTRESET 1
11233 _ACEOF
11234
11235 fi
11236
11237
11238
11239 for ac_func in strtoll strtoq
11240 do
11241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11242 echo "$as_me:$LINENO: checking for $ac_func" >&5
11243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11244 if eval "test \"\${$as_ac_var+set}\" = set"; then
11245   echo $ECHO_N "(cached) $ECHO_C" >&6
11246 else
11247   cat >conftest.$ac_ext <<_ACEOF
11248 #line $LINENO "configure"
11249 #include "confdefs.h"
11250 /* System header to define __stub macros and hopefully few prototypes,
11251     which can conflict with char $ac_func (); below.  */
11252 #include <assert.h>
11253 /* Override any gcc2 internal prototype to avoid an error.  */
11254 #ifdef __cplusplus
11255 extern "C"
11256 #endif
11257 /* We use char because int might match the return type of a gcc2
11258    builtin and then its argument prototype would still apply.  */
11259 char $ac_func ();
11260 char (*f) ();
11261
11262 #ifdef F77_DUMMY_MAIN
11263 #  ifdef __cplusplus
11264      extern "C"
11265 #  endif
11266    int F77_DUMMY_MAIN() { return 1; }
11267 #endif
11268 int
11269 main ()
11270 {
11271 /* The GNU C library defines this for functions which it implements
11272     to always fail with ENOSYS.  Some functions are actually named
11273     something starting with __ and the normal name is an alias.  */
11274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11275 choke me
11276 #else
11277 f = $ac_func;
11278 #endif
11279
11280   ;
11281   return 0;
11282 }
11283 _ACEOF
11284 rm -f conftest.$ac_objext conftest$ac_exeext
11285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11286   (eval $ac_link) 2>&5
11287   ac_status=$?
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); } &&
11290          { ac_try='test -s conftest$ac_exeext'
11291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11292   (eval $ac_try) 2>&5
11293   ac_status=$?
11294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295   (exit $ac_status); }; }; then
11296   eval "$as_ac_var=yes"
11297 else
11298   echo "$as_me: failed program was:" >&5
11299 cat conftest.$ac_ext >&5
11300 eval "$as_ac_var=no"
11301 fi
11302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11303 fi
11304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11306 if test `eval echo '${'$as_ac_var'}'` = yes; then
11307   cat >>confdefs.h <<_ACEOF
11308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11309 _ACEOF
11310  break
11311 fi
11312 done
11313
11314
11315
11316 for ac_func in strtoull strtouq
11317 do
11318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11319 echo "$as_me:$LINENO: checking for $ac_func" >&5
11320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11321 if eval "test \"\${$as_ac_var+set}\" = set"; then
11322   echo $ECHO_N "(cached) $ECHO_C" >&6
11323 else
11324   cat >conftest.$ac_ext <<_ACEOF
11325 #line $LINENO "configure"
11326 #include "confdefs.h"
11327 /* System header to define __stub macros and hopefully few prototypes,
11328     which can conflict with char $ac_func (); below.  */
11329 #include <assert.h>
11330 /* Override any gcc2 internal prototype to avoid an error.  */
11331 #ifdef __cplusplus
11332 extern "C"
11333 #endif
11334 /* We use char because int might match the return type of a gcc2
11335    builtin and then its argument prototype would still apply.  */
11336 char $ac_func ();
11337 char (*f) ();
11338
11339 #ifdef F77_DUMMY_MAIN
11340 #  ifdef __cplusplus
11341      extern "C"
11342 #  endif
11343    int F77_DUMMY_MAIN() { return 1; }
11344 #endif
11345 int
11346 main ()
11347 {
11348 /* The GNU C library defines this for functions which it implements
11349     to always fail with ENOSYS.  Some functions are actually named
11350     something starting with __ and the normal name is an alias.  */
11351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11352 choke me
11353 #else
11354 f = $ac_func;
11355 #endif
11356
11357   ;
11358   return 0;
11359 }
11360 _ACEOF
11361 rm -f conftest.$ac_objext conftest$ac_exeext
11362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11363   (eval $ac_link) 2>&5
11364   ac_status=$?
11365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366   (exit $ac_status); } &&
11367          { ac_try='test -s conftest$ac_exeext'
11368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11369   (eval $ac_try) 2>&5
11370   ac_status=$?
11371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372   (exit $ac_status); }; }; then
11373   eval "$as_ac_var=yes"
11374 else
11375   echo "$as_me: failed program was:" >&5
11376 cat conftest.$ac_ext >&5
11377 eval "$as_ac_var=no"
11378 fi
11379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11380 fi
11381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11382 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11383 if test `eval echo '${'$as_ac_var'}'` = yes; then
11384   cat >>confdefs.h <<_ACEOF
11385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11386 _ACEOF
11387  break
11388 fi
11389 done
11390
11391
11392 # Check for one of atexit() or on_exit()
11393
11394 for ac_func in atexit
11395 do
11396 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11397 echo "$as_me:$LINENO: checking for $ac_func" >&5
11398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11399 if eval "test \"\${$as_ac_var+set}\" = set"; then
11400   echo $ECHO_N "(cached) $ECHO_C" >&6
11401 else
11402   cat >conftest.$ac_ext <<_ACEOF
11403 #line $LINENO "configure"
11404 #include "confdefs.h"
11405 /* System header to define __stub macros and hopefully few prototypes,
11406     which can conflict with char $ac_func (); below.  */
11407 #include <assert.h>
11408 /* Override any gcc2 internal prototype to avoid an error.  */
11409 #ifdef __cplusplus
11410 extern "C"
11411 #endif
11412 /* We use char because int might match the return type of a gcc2
11413    builtin and then its argument prototype would still apply.  */
11414 char $ac_func ();
11415 char (*f) ();
11416
11417 #ifdef F77_DUMMY_MAIN
11418 #  ifdef __cplusplus
11419      extern "C"
11420 #  endif
11421    int F77_DUMMY_MAIN() { return 1; }
11422 #endif
11423 int
11424 main ()
11425 {
11426 /* The GNU C library defines this for functions which it implements
11427     to always fail with ENOSYS.  Some functions are actually named
11428     something starting with __ and the normal name is an alias.  */
11429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11430 choke me
11431 #else
11432 f = $ac_func;
11433 #endif
11434
11435   ;
11436   return 0;
11437 }
11438 _ACEOF
11439 rm -f conftest.$ac_objext conftest$ac_exeext
11440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11441   (eval $ac_link) 2>&5
11442   ac_status=$?
11443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444   (exit $ac_status); } &&
11445          { ac_try='test -s conftest$ac_exeext'
11446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11447   (eval $ac_try) 2>&5
11448   ac_status=$?
11449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450   (exit $ac_status); }; }; then
11451   eval "$as_ac_var=yes"
11452 else
11453   echo "$as_me: failed program was:" >&5
11454 cat conftest.$ac_ext >&5
11455 eval "$as_ac_var=no"
11456 fi
11457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11458 fi
11459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11461 if test `eval echo '${'$as_ac_var'}'` = yes; then
11462   cat >>confdefs.h <<_ACEOF
11463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11464 _ACEOF
11465
11466 else
11467
11468 for ac_func in on_exit
11469 do
11470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11471 echo "$as_me:$LINENO: checking for $ac_func" >&5
11472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11473 if eval "test \"\${$as_ac_var+set}\" = set"; then
11474   echo $ECHO_N "(cached) $ECHO_C" >&6
11475 else
11476   cat >conftest.$ac_ext <<_ACEOF
11477 #line $LINENO "configure"
11478 #include "confdefs.h"
11479 /* System header to define __stub macros and hopefully few prototypes,
11480     which can conflict with char $ac_func (); below.  */
11481 #include <assert.h>
11482 /* Override any gcc2 internal prototype to avoid an error.  */
11483 #ifdef __cplusplus
11484 extern "C"
11485 #endif
11486 /* We use char because int might match the return type of a gcc2
11487    builtin and then its argument prototype would still apply.  */
11488 char $ac_func ();
11489 char (*f) ();
11490
11491 #ifdef F77_DUMMY_MAIN
11492 #  ifdef __cplusplus
11493      extern "C"
11494 #  endif
11495    int F77_DUMMY_MAIN() { return 1; }
11496 #endif
11497 int
11498 main ()
11499 {
11500 /* The GNU C library defines this for functions which it implements
11501     to always fail with ENOSYS.  Some functions are actually named
11502     something starting with __ and the normal name is an alias.  */
11503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11504 choke me
11505 #else
11506 f = $ac_func;
11507 #endif
11508
11509   ;
11510   return 0;
11511 }
11512 _ACEOF
11513 rm -f conftest.$ac_objext conftest$ac_exeext
11514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11515   (eval $ac_link) 2>&5
11516   ac_status=$?
11517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518   (exit $ac_status); } &&
11519          { ac_try='test -s conftest$ac_exeext'
11520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521   (eval $ac_try) 2>&5
11522   ac_status=$?
11523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524   (exit $ac_status); }; }; then
11525   eval "$as_ac_var=yes"
11526 else
11527   echo "$as_me: failed program was:" >&5
11528 cat conftest.$ac_ext >&5
11529 eval "$as_ac_var=no"
11530 fi
11531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11532 fi
11533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11534 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11535 if test `eval echo '${'$as_ac_var'}'` = yes; then
11536   cat >>confdefs.h <<_ACEOF
11537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11538 _ACEOF
11539
11540 else
11541   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
11542 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
11543    { (exit 1); exit 1; }; }
11544 fi
11545 done
11546
11547 fi
11548 done
11549
11550
11551 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11552 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
11553 if test "${ac_cv_sys_largefile_source+set}" = set; then
11554   echo $ECHO_N "(cached) $ECHO_C" >&6
11555 else
11556   while :; do
11557   ac_cv_sys_largefile_source=no
11558   cat >conftest.$ac_ext <<_ACEOF
11559 #line $LINENO "configure"
11560 #include "confdefs.h"
11561 #include <stdio.h>
11562 #ifdef F77_DUMMY_MAIN
11563 #  ifdef __cplusplus
11564      extern "C"
11565 #  endif
11566    int F77_DUMMY_MAIN() { return 1; }
11567 #endif
11568 int
11569 main ()
11570 {
11571 return !fseeko;
11572   ;
11573   return 0;
11574 }
11575 _ACEOF
11576 rm -f conftest.$ac_objext
11577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11578   (eval $ac_compile) 2>&5
11579   ac_status=$?
11580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581   (exit $ac_status); } &&
11582          { ac_try='test -s conftest.$ac_objext'
11583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584   (eval $ac_try) 2>&5
11585   ac_status=$?
11586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587   (exit $ac_status); }; }; then
11588   break
11589 else
11590   echo "$as_me: failed program was:" >&5
11591 cat conftest.$ac_ext >&5
11592 fi
11593 rm -f conftest.$ac_objext conftest.$ac_ext
11594   cat >conftest.$ac_ext <<_ACEOF
11595 #line $LINENO "configure"
11596 #include "confdefs.h"
11597 #define _LARGEFILE_SOURCE 1
11598 #include <stdio.h>
11599 #ifdef F77_DUMMY_MAIN
11600 #  ifdef __cplusplus
11601      extern "C"
11602 #  endif
11603    int F77_DUMMY_MAIN() { return 1; }
11604 #endif
11605 int
11606 main ()
11607 {
11608 return !fseeko;
11609   ;
11610   return 0;
11611 }
11612 _ACEOF
11613 rm -f conftest.$ac_objext
11614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11615   (eval $ac_compile) 2>&5
11616   ac_status=$?
11617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618   (exit $ac_status); } &&
11619          { ac_try='test -s conftest.$ac_objext'
11620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621   (eval $ac_try) 2>&5
11622   ac_status=$?
11623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624   (exit $ac_status); }; }; then
11625   ac_cv_sys_largefile_source=1; break
11626 else
11627   echo "$as_me: failed program was:" >&5
11628 cat conftest.$ac_ext >&5
11629 fi
11630 rm -f conftest.$ac_objext conftest.$ac_ext
11631   break
11632 done
11633 fi
11634 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11635 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
11636 if test "$ac_cv_sys_largefile_source" != no; then
11637
11638 cat >>confdefs.h <<_ACEOF
11639 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11640 _ACEOF
11641
11642 fi
11643 rm -f conftest*
11644
11645 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11646 # in glibc 2.1.3, but that breaks too many other things.
11647 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11648 echo "$as_me:$LINENO: checking for fseeko" >&5
11649 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
11650 if test "${ac_cv_func_fseeko+set}" = set; then
11651   echo $ECHO_N "(cached) $ECHO_C" >&6
11652 else
11653   cat >conftest.$ac_ext <<_ACEOF
11654 #line $LINENO "configure"
11655 #include "confdefs.h"
11656 #include <stdio.h>
11657 #ifdef F77_DUMMY_MAIN
11658 #  ifdef __cplusplus
11659      extern "C"
11660 #  endif
11661    int F77_DUMMY_MAIN() { return 1; }
11662 #endif
11663 int
11664 main ()
11665 {
11666 return fseeko && fseeko (stdin, 0, 0);
11667   ;
11668   return 0;
11669 }
11670 _ACEOF
11671 rm -f conftest.$ac_objext conftest$ac_exeext
11672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11673   (eval $ac_link) 2>&5
11674   ac_status=$?
11675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676   (exit $ac_status); } &&
11677          { ac_try='test -s conftest$ac_exeext'
11678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679   (eval $ac_try) 2>&5
11680   ac_status=$?
11681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682   (exit $ac_status); }; }; then
11683   ac_cv_func_fseeko=yes
11684 else
11685   echo "$as_me: failed program was:" >&5
11686 cat conftest.$ac_ext >&5
11687 ac_cv_func_fseeko=no
11688 fi
11689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11690 fi
11691 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
11692 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
11693 if test $ac_cv_func_fseeko = yes; then
11694
11695 cat >>confdefs.h <<\_ACEOF
11696 #define HAVE_FSEEKO 1
11697 _ACEOF
11698
11699 fi
11700
11701
11702
11703 # This test makes sure that run tests work at all.  Sometimes a shared
11704 # library is found by the linker, but the runtime linker can't find it.
11705 # This check should come after all modifications of compiler or linker
11706 # variables, and before any other run tests.
11707 echo "$as_me:$LINENO: checking test program" >&5
11708 echo $ECHO_N "checking test program... $ECHO_C" >&6
11709 if test "$cross_compiling" = yes; then
11710   echo "$as_me:$LINENO: result: cross-compiling" >&5
11711 echo "${ECHO_T}cross-compiling" >&6
11712 else
11713   cat >conftest.$ac_ext <<_ACEOF
11714 #line $LINENO "configure"
11715 #include "confdefs.h"
11716 int main() { return 0; }
11717 _ACEOF
11718 rm -f conftest$ac_exeext
11719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11720   (eval $ac_link) 2>&5
11721   ac_status=$?
11722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725   (eval $ac_try) 2>&5
11726   ac_status=$?
11727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728   (exit $ac_status); }; }; then
11729   echo "$as_me:$LINENO: result: ok" >&5
11730 echo "${ECHO_T}ok" >&6
11731 else
11732   echo "$as_me: program exited with status $ac_status" >&5
11733 echo "$as_me: failed program was:" >&5
11734 cat conftest.$ac_ext >&5
11735 ( exit $ac_status )
11736 echo "$as_me:$LINENO: result: failed" >&5
11737 echo "${ECHO_T}failed" >&6
11738 { { echo "$as_me:$LINENO: error:
11739 *** Could not execute a simple test program.  This may be a problem
11740 *** related to locating shared libraries.  Check the file 'config.log'
11741 *** for the exact reason." >&5
11742 echo "$as_me: error:
11743 *** Could not execute a simple test program.  This may be a problem
11744 *** related to locating shared libraries.  Check the file 'config.log'
11745 *** for the exact reason." >&2;}
11746    { (exit 1); exit 1; }; }
11747 fi
11748 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11749 fi
11750
11751
11752
11753 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
11754 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
11755 if test "${pgac_cv_type_long_int_64+set}" = set; then
11756   echo $ECHO_N "(cached) $ECHO_C" >&6
11757 else
11758   if test "$cross_compiling" = yes; then
11759   pgac_cv_type_long_int_64=no
11760 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
11761 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
11762 else
11763   cat >conftest.$ac_ext <<_ACEOF
11764 #line $LINENO "configure"
11765 #include "confdefs.h"
11766 typedef long int int64;
11767
11768 /*
11769  * These are globals to discourage the compiler from folding all the
11770  * arithmetic tests down to compile-time constants.
11771  */
11772 int64 a = 20000001;
11773 int64 b = 40000005;
11774
11775 int does_int64_work()
11776 {
11777   int64 c,d;
11778
11779   if (sizeof(int64) != 8)
11780     return 0;                   /* definitely not the right size */
11781
11782   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
11783   c = a * b;
11784   d = (c + b) / b;
11785   if (d != a+1)
11786     return 0;
11787   return 1;
11788 }
11789 main() {
11790   exit(! does_int64_work());
11791 }
11792 _ACEOF
11793 rm -f conftest$ac_exeext
11794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11795   (eval $ac_link) 2>&5
11796   ac_status=$?
11797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800   (eval $ac_try) 2>&5
11801   ac_status=$?
11802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803   (exit $ac_status); }; }; then
11804   pgac_cv_type_long_int_64=yes
11805 else
11806   echo "$as_me: program exited with status $ac_status" >&5
11807 echo "$as_me: failed program was:" >&5
11808 cat conftest.$ac_ext >&5
11809 ( exit $ac_status )
11810 pgac_cv_type_long_int_64=no
11811 fi
11812 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11813 fi
11814 fi
11815 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
11816 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
11817
11818 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
11819 if test x"$pgac_cv_type_long_int_64" = xyes ; then
11820
11821 cat >>confdefs.h <<\_ACEOF
11822 #define HAVE_LONG_INT_64
11823 _ACEOF
11824
11825 fi
11826
11827
11828 if test x"$HAVE_LONG_INT_64" = x"no" ; then
11829   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
11830 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
11831 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
11832   echo $ECHO_N "(cached) $ECHO_C" >&6
11833 else
11834   if test "$cross_compiling" = yes; then
11835   pgac_cv_type_long_long_int_64=no
11836 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
11837 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
11838 else
11839   cat >conftest.$ac_ext <<_ACEOF
11840 #line $LINENO "configure"
11841 #include "confdefs.h"
11842 typedef long long int int64;
11843
11844 /*
11845  * These are globals to discourage the compiler from folding all the
11846  * arithmetic tests down to compile-time constants.
11847  */
11848 int64 a = 20000001;
11849 int64 b = 40000005;
11850
11851 int does_int64_work()
11852 {
11853   int64 c,d;
11854
11855   if (sizeof(int64) != 8)
11856     return 0;                   /* definitely not the right size */
11857
11858   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
11859   c = a * b;
11860   d = (c + b) / b;
11861   if (d != a+1)
11862     return 0;
11863   return 1;
11864 }
11865 main() {
11866   exit(! does_int64_work());
11867 }
11868 _ACEOF
11869 rm -f conftest$ac_exeext
11870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11871   (eval $ac_link) 2>&5
11872   ac_status=$?
11873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11876   (eval $ac_try) 2>&5
11877   ac_status=$?
11878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879   (exit $ac_status); }; }; then
11880   pgac_cv_type_long_long_int_64=yes
11881 else
11882   echo "$as_me: program exited with status $ac_status" >&5
11883 echo "$as_me: failed program was:" >&5
11884 cat conftest.$ac_ext >&5
11885 ( exit $ac_status )
11886 pgac_cv_type_long_long_int_64=no
11887 fi
11888 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11889 fi
11890 fi
11891 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
11892 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
11893
11894 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
11895 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
11896
11897 cat >>confdefs.h <<\_ACEOF
11898 #define HAVE_LONG_LONG_INT_64
11899 _ACEOF
11900
11901 fi
11902
11903 fi
11904
11905
11906
11907 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
11908   cat >conftest.$ac_ext <<_ACEOF
11909 #line $LINENO "configure"
11910 #include "confdefs.h"
11911
11912 #define INT64CONST(x)  x##LL
11913 long long int foo = INT64CONST(0x1234567890123456);
11914
11915 #ifdef F77_DUMMY_MAIN
11916 #  ifdef __cplusplus
11917      extern "C"
11918 #  endif
11919    int F77_DUMMY_MAIN() { return 1; }
11920 #endif
11921 int
11922 main ()
11923 {
11924
11925   ;
11926   return 0;
11927 }
11928 _ACEOF
11929 rm -f conftest.$ac_objext
11930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11931   (eval $ac_compile) 2>&5
11932   ac_status=$?
11933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934   (exit $ac_status); } &&
11935          { ac_try='test -s conftest.$ac_objext'
11936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11937   (eval $ac_try) 2>&5
11938   ac_status=$?
11939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940   (exit $ac_status); }; }; then
11941
11942 cat >>confdefs.h <<\_ACEOF
11943 #define HAVE_LL_CONSTANTS 1
11944 _ACEOF
11945
11946 else
11947   echo "$as_me: failed program was:" >&5
11948 cat conftest.$ac_ext >&5
11949 fi
11950 rm -f conftest.$ac_objext conftest.$ac_ext
11951 fi
11952
11953
11954
11955 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
11956   if test $pgac_need_repl_snprintf = no; then
11957     echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
11958 echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
11959     if test "$cross_compiling" = yes; then
11960    echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
11961 echo "${ECHO_T}cannot test (not on host machine)" >&6
11962         # Force usage of our own snprintf, since we cannot test foreign snprintf
11963         pgac_need_repl_snprintf=yes
11964         INT64_FORMAT='"%lld"'
11965
11966 else
11967   cat >conftest.$ac_ext <<_ACEOF
11968 #line $LINENO "configure"
11969 #include "confdefs.h"
11970 #include <stdio.h>
11971 typedef long long int int64;
11972 #define INT64_FORMAT "%lld"
11973
11974 int64 a = 20000001;
11975 int64 b = 40000005;
11976
11977 int does_int64_snprintf_work()
11978 {
11979   int64 c;
11980   char buf[100];
11981
11982   if (sizeof(int64) != 8)
11983     return 0;                   /* doesn't look like the right size */
11984
11985   c = a * b;
11986   snprintf(buf, 100, INT64_FORMAT, c);
11987   if (strcmp(buf, "800000140000005") != 0)
11988     return 0;                   /* either multiply or snprintf is busted */
11989   return 1;
11990 }
11991 main() {
11992   exit(! does_int64_snprintf_work());
11993 }
11994 _ACEOF
11995 rm -f conftest$ac_exeext
11996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11997   (eval $ac_link) 2>&5
11998   ac_status=$?
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12002   (eval $ac_try) 2>&5
12003   ac_status=$?
12004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005   (exit $ac_status); }; }; then
12006    echo "$as_me:$LINENO: result: yes" >&5
12007 echo "${ECHO_T}yes" >&6
12008           INT64_FORMAT='"%lld"'
12009
12010 else
12011   echo "$as_me: program exited with status $ac_status" >&5
12012 echo "$as_me: failed program was:" >&5
12013 cat conftest.$ac_ext >&5
12014 ( exit $ac_status )
12015  echo "$as_me:$LINENO: result: no" >&5
12016 echo "${ECHO_T}no" >&6
12017     echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
12018 echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
12019     if test "$cross_compiling" = yes; then
12020    echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
12021 echo "${ECHO_T}cannot test (not on host machine)" >&6
12022         # Force usage of our own snprintf, since we cannot test foreign snprintf
12023         pgac_need_repl_snprintf=yes
12024         INT64_FORMAT='"%lld"'
12025
12026 else
12027   cat >conftest.$ac_ext <<_ACEOF
12028 #line $LINENO "configure"
12029 #include "confdefs.h"
12030 #include <stdio.h>
12031 typedef long long int int64;
12032 #define INT64_FORMAT "%qd"
12033
12034 int64 a = 20000001;
12035 int64 b = 40000005;
12036
12037 int does_int64_snprintf_work()
12038 {
12039   int64 c;
12040   char buf[100];
12041
12042   if (sizeof(int64) != 8)
12043     return 0;     /* doesn't look like the right size */
12044
12045   c = a * b;
12046   snprintf(buf, 100, INT64_FORMAT, c);
12047   if (strcmp(buf, "800000140000005") != 0)
12048     return 0;     /* either multiply or snprintf is busted */
12049   return 1;
12050 }
12051 main() {
12052   exit(! does_int64_snprintf_work());
12053 }
12054 _ACEOF
12055 rm -f conftest$ac_exeext
12056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12057   (eval $ac_link) 2>&5
12058   ac_status=$?
12059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12062   (eval $ac_try) 2>&5
12063   ac_status=$?
12064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065   (exit $ac_status); }; }; then
12066    echo "$as_me:$LINENO: result: yes" >&5
12067 echo "${ECHO_T}yes" >&6
12068     INT64_FORMAT='"%qd"'
12069
12070 else
12071   echo "$as_me: program exited with status $ac_status" >&5
12072 echo "$as_me: failed program was:" >&5
12073 cat conftest.$ac_ext >&5
12074 ( exit $ac_status )
12075  echo "$as_me:$LINENO: result: no" >&5
12076 echo "${ECHO_T}no" >&6
12077         # Force usage of our own snprintf, since system snprintf is broken
12078         pgac_need_repl_snprintf=yes
12079         INT64_FORMAT='"%lld"'
12080
12081 fi
12082 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12083 fi
12084 fi
12085 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12086 fi
12087   else
12088     # here if we previously decided we needed to use our own snprintf
12089     INT64_FORMAT='"%lld"'
12090   fi
12091 else
12092   # Here if we are not using 'long long int' at all
12093   INT64_FORMAT='"%ld"'
12094 fi
12095
12096
12097 cat >>confdefs.h <<_ACEOF
12098 #define INT64_FORMAT $INT64_FORMAT
12099 _ACEOF
12100
12101
12102 if test $pgac_need_repl_snprintf = yes; then
12103   LIBOBJS="$LIBOBJS snprintf.$ac_objext"
12104 fi
12105
12106
12107 echo "$as_me:$LINENO: checking for unsigned long" >&5
12108 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
12109 if test "${ac_cv_type_unsigned_long+set}" = set; then
12110   echo $ECHO_N "(cached) $ECHO_C" >&6
12111 else
12112   cat >conftest.$ac_ext <<_ACEOF
12113 #line $LINENO "configure"
12114 #include "confdefs.h"
12115 $ac_includes_default
12116 #ifdef F77_DUMMY_MAIN
12117 #  ifdef __cplusplus
12118      extern "C"
12119 #  endif
12120    int F77_DUMMY_MAIN() { return 1; }
12121 #endif
12122 int
12123 main ()
12124 {
12125 if ((unsigned long *) 0)
12126   return 0;
12127 if (sizeof (unsigned long))
12128   return 0;
12129   ;
12130   return 0;
12131 }
12132 _ACEOF
12133 rm -f conftest.$ac_objext
12134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12135   (eval $ac_compile) 2>&5
12136   ac_status=$?
12137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138   (exit $ac_status); } &&
12139          { ac_try='test -s conftest.$ac_objext'
12140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141   (eval $ac_try) 2>&5
12142   ac_status=$?
12143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144   (exit $ac_status); }; }; then
12145   ac_cv_type_unsigned_long=yes
12146 else
12147   echo "$as_me: failed program was:" >&5
12148 cat conftest.$ac_ext >&5
12149 ac_cv_type_unsigned_long=no
12150 fi
12151 rm -f conftest.$ac_objext conftest.$ac_ext
12152 fi
12153 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
12154 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
12155
12156 echo "$as_me:$LINENO: checking size of unsigned long" >&5
12157 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
12158 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
12159   echo $ECHO_N "(cached) $ECHO_C" >&6
12160 else
12161   if test "$ac_cv_type_unsigned_long" = yes; then
12162   # The cast to unsigned long works around a bug in the HP C Compiler
12163   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12164   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12165   # This bug is HP SR number 8606223364.
12166   if test "$cross_compiling" = yes; then
12167   # Depending upon the size, compute the lo and hi bounds.
12168 cat >conftest.$ac_ext <<_ACEOF
12169 #line $LINENO "configure"
12170 #include "confdefs.h"
12171 $ac_includes_default
12172 #ifdef F77_DUMMY_MAIN
12173 #  ifdef __cplusplus
12174      extern "C"
12175 #  endif
12176    int F77_DUMMY_MAIN() { return 1; }
12177 #endif
12178 int
12179 main ()
12180 {
12181 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
12182 test_array [0] = 0
12183
12184   ;
12185   return 0;
12186 }
12187 _ACEOF
12188 rm -f conftest.$ac_objext
12189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12190   (eval $ac_compile) 2>&5
12191   ac_status=$?
12192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193   (exit $ac_status); } &&
12194          { ac_try='test -s conftest.$ac_objext'
12195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196   (eval $ac_try) 2>&5
12197   ac_status=$?
12198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199   (exit $ac_status); }; }; then
12200   ac_lo=0 ac_mid=0
12201   while :; do
12202     cat >conftest.$ac_ext <<_ACEOF
12203 #line $LINENO "configure"
12204 #include "confdefs.h"
12205 $ac_includes_default
12206 #ifdef F77_DUMMY_MAIN
12207 #  ifdef __cplusplus
12208      extern "C"
12209 #  endif
12210    int F77_DUMMY_MAIN() { return 1; }
12211 #endif
12212 int
12213 main ()
12214 {
12215 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12216 test_array [0] = 0
12217
12218   ;
12219   return 0;
12220 }
12221 _ACEOF
12222 rm -f conftest.$ac_objext
12223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12224   (eval $ac_compile) 2>&5
12225   ac_status=$?
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); } &&
12228          { ac_try='test -s conftest.$ac_objext'
12229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230   (eval $ac_try) 2>&5
12231   ac_status=$?
12232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233   (exit $ac_status); }; }; then
12234   ac_hi=$ac_mid; break
12235 else
12236   echo "$as_me: failed program was:" >&5
12237 cat conftest.$ac_ext >&5
12238 ac_lo=`expr $ac_mid + 1`
12239                     if test $ac_lo -le $ac_mid; then
12240                       ac_lo= ac_hi=
12241                       break
12242                     fi
12243                     ac_mid=`expr 2 '*' $ac_mid + 1`
12244 fi
12245 rm -f conftest.$ac_objext conftest.$ac_ext
12246   done
12247 else
12248   echo "$as_me: failed program was:" >&5
12249 cat conftest.$ac_ext >&5
12250 cat >conftest.$ac_ext <<_ACEOF
12251 #line $LINENO "configure"
12252 #include "confdefs.h"
12253 $ac_includes_default
12254 #ifdef F77_DUMMY_MAIN
12255 #  ifdef __cplusplus
12256      extern "C"
12257 #  endif
12258    int F77_DUMMY_MAIN() { return 1; }
12259 #endif
12260 int
12261 main ()
12262 {
12263 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
12264 test_array [0] = 0
12265
12266   ;
12267   return 0;
12268 }
12269 _ACEOF
12270 rm -f conftest.$ac_objext
12271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12272   (eval $ac_compile) 2>&5
12273   ac_status=$?
12274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275   (exit $ac_status); } &&
12276          { ac_try='test -s conftest.$ac_objext'
12277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278   (eval $ac_try) 2>&5
12279   ac_status=$?
12280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281   (exit $ac_status); }; }; then
12282   ac_hi=-1 ac_mid=-1
12283   while :; do
12284     cat >conftest.$ac_ext <<_ACEOF
12285 #line $LINENO "configure"
12286 #include "confdefs.h"
12287 $ac_includes_default
12288 #ifdef F77_DUMMY_MAIN
12289 #  ifdef __cplusplus
12290      extern "C"
12291 #  endif
12292    int F77_DUMMY_MAIN() { return 1; }
12293 #endif
12294 int
12295 main ()
12296 {
12297 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
12298 test_array [0] = 0
12299
12300   ;
12301   return 0;
12302 }
12303 _ACEOF
12304 rm -f conftest.$ac_objext
12305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12306   (eval $ac_compile) 2>&5
12307   ac_status=$?
12308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309   (exit $ac_status); } &&
12310          { ac_try='test -s conftest.$ac_objext'
12311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12312   (eval $ac_try) 2>&5
12313   ac_status=$?
12314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315   (exit $ac_status); }; }; then
12316   ac_lo=$ac_mid; break
12317 else
12318   echo "$as_me: failed program was:" >&5
12319 cat conftest.$ac_ext >&5
12320 ac_hi=`expr '(' $ac_mid ')' - 1`
12321                        if test $ac_mid -le $ac_hi; then
12322                          ac_lo= ac_hi=
12323                          break
12324                        fi
12325                        ac_mid=`expr 2 '*' $ac_mid`
12326 fi
12327 rm -f conftest.$ac_objext conftest.$ac_ext
12328   done
12329 else
12330   echo "$as_me: failed program was:" >&5
12331 cat conftest.$ac_ext >&5
12332 ac_lo= ac_hi=
12333 fi
12334 rm -f conftest.$ac_objext conftest.$ac_ext
12335 fi
12336 rm -f conftest.$ac_objext conftest.$ac_ext
12337 # Binary search between lo and hi bounds.
12338 while test "x$ac_lo" != "x$ac_hi"; do
12339   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12340   cat >conftest.$ac_ext <<_ACEOF
12341 #line $LINENO "configure"
12342 #include "confdefs.h"
12343 $ac_includes_default
12344 #ifdef F77_DUMMY_MAIN
12345 #  ifdef __cplusplus
12346      extern "C"
12347 #  endif
12348    int F77_DUMMY_MAIN() { return 1; }
12349 #endif
12350 int
12351 main ()
12352 {
12353 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12354 test_array [0] = 0
12355
12356   ;
12357   return 0;
12358 }
12359 _ACEOF
12360 rm -f conftest.$ac_objext
12361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12362   (eval $ac_compile) 2>&5
12363   ac_status=$?
12364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365   (exit $ac_status); } &&
12366          { ac_try='test -s conftest.$ac_objext'
12367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368   (eval $ac_try) 2>&5
12369   ac_status=$?
12370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371   (exit $ac_status); }; }; then
12372   ac_hi=$ac_mid
12373 else
12374   echo "$as_me: failed program was:" >&5
12375 cat conftest.$ac_ext >&5
12376 ac_lo=`expr '(' $ac_mid ')' + 1`
12377 fi
12378 rm -f conftest.$ac_objext conftest.$ac_ext
12379 done
12380 case $ac_lo in
12381 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
12382 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12383 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12384    { (exit 1); exit 1; }; } ;;
12385 esac
12386 else
12387   if test "$cross_compiling" = yes; then
12388   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12389 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12390    { (exit 1); exit 1; }; }
12391 else
12392   cat >conftest.$ac_ext <<_ACEOF
12393 #line $LINENO "configure"
12394 #include "confdefs.h"
12395 $ac_includes_default
12396 long longval () { return (long) (sizeof (unsigned long)); }
12397 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
12398 #include <stdio.h>
12399 #include <stdlib.h>
12400 #ifdef F77_DUMMY_MAIN
12401 #  ifdef __cplusplus
12402      extern "C"
12403 #  endif
12404    int F77_DUMMY_MAIN() { return 1; }
12405 #endif
12406 int
12407 main ()
12408 {
12409
12410   FILE *f = fopen ("conftest.val", "w");
12411   if (! f)
12412     exit (1);
12413   if (((long) (sizeof (unsigned long))) < 0)
12414     {
12415       long i = longval ();
12416       if (i != ((long) (sizeof (unsigned long))))
12417         exit (1);
12418       fprintf (f, "%ld\n", i);
12419     }
12420   else
12421     {
12422       unsigned long i = ulongval ();
12423       if (i != ((long) (sizeof (unsigned long))))
12424         exit (1);
12425       fprintf (f, "%lu\n", i);
12426     }
12427   exit (ferror (f) || fclose (f) != 0);
12428
12429   ;
12430   return 0;
12431 }
12432 _ACEOF
12433 rm -f conftest$ac_exeext
12434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12435   (eval $ac_link) 2>&5
12436   ac_status=$?
12437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440   (eval $ac_try) 2>&5
12441   ac_status=$?
12442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443   (exit $ac_status); }; }; then
12444   ac_cv_sizeof_unsigned_long=`cat conftest.val`
12445 else
12446   echo "$as_me: program exited with status $ac_status" >&5
12447 echo "$as_me: failed program was:" >&5
12448 cat conftest.$ac_ext >&5
12449 ( exit $ac_status )
12450 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12451 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12452    { (exit 1); exit 1; }; }
12453 fi
12454 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12455 fi
12456 fi
12457 rm -f conftest.val
12458 else
12459   ac_cv_sizeof_unsigned_long=0
12460 fi
12461 fi
12462 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
12463 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
12464 cat >>confdefs.h <<_ACEOF
12465 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
12466 _ACEOF
12467
12468
12469
12470 cat >>confdefs.h <<_ACEOF
12471 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
12472 _ACEOF
12473
12474
12475 # Determine memory alignment requirements for the basic C data types.
12476
12477 echo "$as_me:$LINENO: checking for short" >&5
12478 echo $ECHO_N "checking for short... $ECHO_C" >&6
12479 if test "${ac_cv_type_short+set}" = set; then
12480   echo $ECHO_N "(cached) $ECHO_C" >&6
12481 else
12482   cat >conftest.$ac_ext <<_ACEOF
12483 #line $LINENO "configure"
12484 #include "confdefs.h"
12485 $ac_includes_default
12486 #ifdef F77_DUMMY_MAIN
12487 #  ifdef __cplusplus
12488      extern "C"
12489 #  endif
12490    int F77_DUMMY_MAIN() { return 1; }
12491 #endif
12492 int
12493 main ()
12494 {
12495 if ((short *) 0)
12496   return 0;
12497 if (sizeof (short))
12498   return 0;
12499   ;
12500   return 0;
12501 }
12502 _ACEOF
12503 rm -f conftest.$ac_objext
12504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12505   (eval $ac_compile) 2>&5
12506   ac_status=$?
12507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508   (exit $ac_status); } &&
12509          { ac_try='test -s conftest.$ac_objext'
12510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511   (eval $ac_try) 2>&5
12512   ac_status=$?
12513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514   (exit $ac_status); }; }; then
12515   ac_cv_type_short=yes
12516 else
12517   echo "$as_me: failed program was:" >&5
12518 cat conftest.$ac_ext >&5
12519 ac_cv_type_short=no
12520 fi
12521 rm -f conftest.$ac_objext conftest.$ac_ext
12522 fi
12523 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12524 echo "${ECHO_T}$ac_cv_type_short" >&6
12525
12526 echo "$as_me:$LINENO: checking alignment of short" >&5
12527 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
12528 if test "${pgac_cv_alignof_short+set}" = set; then
12529   echo $ECHO_N "(cached) $ECHO_C" >&6
12530 else
12531   if test "$ac_cv_type_short" = yes; then
12532   if test "$cross_compiling" = yes; then
12533   # Depending upon the size, compute the lo and hi bounds.
12534 cat >conftest.$ac_ext <<_ACEOF
12535 #line $LINENO "configure"
12536 #include "confdefs.h"
12537 $ac_includes_default
12538 struct { char filler; short field; } pgac_struct;
12539 #ifdef F77_DUMMY_MAIN
12540 #  ifdef __cplusplus
12541      extern "C"
12542 #  endif
12543    int F77_DUMMY_MAIN() { return 1; }
12544 #endif
12545 int
12546 main ()
12547 {
12548 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
12549 test_array [0] = 0
12550
12551   ;
12552   return 0;
12553 }
12554 _ACEOF
12555 rm -f conftest.$ac_objext
12556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12557   (eval $ac_compile) 2>&5
12558   ac_status=$?
12559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560   (exit $ac_status); } &&
12561          { ac_try='test -s conftest.$ac_objext'
12562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563   (eval $ac_try) 2>&5
12564   ac_status=$?
12565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566   (exit $ac_status); }; }; then
12567   ac_lo=0 ac_mid=0
12568   while :; do
12569     cat >conftest.$ac_ext <<_ACEOF
12570 #line $LINENO "configure"
12571 #include "confdefs.h"
12572 $ac_includes_default
12573 struct { char filler; short field; } pgac_struct;
12574 #ifdef F77_DUMMY_MAIN
12575 #  ifdef __cplusplus
12576      extern "C"
12577 #  endif
12578    int F77_DUMMY_MAIN() { return 1; }
12579 #endif
12580 int
12581 main ()
12582 {
12583 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12584 test_array [0] = 0
12585
12586   ;
12587   return 0;
12588 }
12589 _ACEOF
12590 rm -f conftest.$ac_objext
12591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12592   (eval $ac_compile) 2>&5
12593   ac_status=$?
12594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595   (exit $ac_status); } &&
12596          { ac_try='test -s conftest.$ac_objext'
12597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12598   (eval $ac_try) 2>&5
12599   ac_status=$?
12600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601   (exit $ac_status); }; }; then
12602   ac_hi=$ac_mid; break
12603 else
12604   echo "$as_me: failed program was:" >&5
12605 cat conftest.$ac_ext >&5
12606 ac_lo=`expr $ac_mid + 1`
12607                     if test $ac_lo -le $ac_mid; then
12608                       ac_lo= ac_hi=
12609                       break
12610                     fi
12611                     ac_mid=`expr 2 '*' $ac_mid + 1`
12612 fi
12613 rm -f conftest.$ac_objext conftest.$ac_ext
12614   done
12615 else
12616   echo "$as_me: failed program was:" >&5
12617 cat conftest.$ac_ext >&5
12618 cat >conftest.$ac_ext <<_ACEOF
12619 #line $LINENO "configure"
12620 #include "confdefs.h"
12621 $ac_includes_default
12622 struct { char filler; short field; } pgac_struct;
12623 #ifdef F77_DUMMY_MAIN
12624 #  ifdef __cplusplus
12625      extern "C"
12626 #  endif
12627    int F77_DUMMY_MAIN() { return 1; }
12628 #endif
12629 int
12630 main ()
12631 {
12632 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
12633 test_array [0] = 0
12634
12635   ;
12636   return 0;
12637 }
12638 _ACEOF
12639 rm -f conftest.$ac_objext
12640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12641   (eval $ac_compile) 2>&5
12642   ac_status=$?
12643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644   (exit $ac_status); } &&
12645          { ac_try='test -s conftest.$ac_objext'
12646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647   (eval $ac_try) 2>&5
12648   ac_status=$?
12649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650   (exit $ac_status); }; }; then
12651   ac_hi=-1 ac_mid=-1
12652   while :; do
12653     cat >conftest.$ac_ext <<_ACEOF
12654 #line $LINENO "configure"
12655 #include "confdefs.h"
12656 $ac_includes_default
12657 struct { char filler; short field; } pgac_struct;
12658 #ifdef F77_DUMMY_MAIN
12659 #  ifdef __cplusplus
12660      extern "C"
12661 #  endif
12662    int F77_DUMMY_MAIN() { return 1; }
12663 #endif
12664 int
12665 main ()
12666 {
12667 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
12668 test_array [0] = 0
12669
12670   ;
12671   return 0;
12672 }
12673 _ACEOF
12674 rm -f conftest.$ac_objext
12675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12676   (eval $ac_compile) 2>&5
12677   ac_status=$?
12678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679   (exit $ac_status); } &&
12680          { ac_try='test -s conftest.$ac_objext'
12681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12682   (eval $ac_try) 2>&5
12683   ac_status=$?
12684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685   (exit $ac_status); }; }; then
12686   ac_lo=$ac_mid; break
12687 else
12688   echo "$as_me: failed program was:" >&5
12689 cat conftest.$ac_ext >&5
12690 ac_hi=`expr '(' $ac_mid ')' - 1`
12691                        if test $ac_mid -le $ac_hi; then
12692                          ac_lo= ac_hi=
12693                          break
12694                        fi
12695                        ac_mid=`expr 2 '*' $ac_mid`
12696 fi
12697 rm -f conftest.$ac_objext conftest.$ac_ext
12698   done
12699 else
12700   echo "$as_me: failed program was:" >&5
12701 cat conftest.$ac_ext >&5
12702 ac_lo= ac_hi=
12703 fi
12704 rm -f conftest.$ac_objext conftest.$ac_ext
12705 fi
12706 rm -f conftest.$ac_objext conftest.$ac_ext
12707 # Binary search between lo and hi bounds.
12708 while test "x$ac_lo" != "x$ac_hi"; do
12709   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12710   cat >conftest.$ac_ext <<_ACEOF
12711 #line $LINENO "configure"
12712 #include "confdefs.h"
12713 $ac_includes_default
12714 struct { char filler; short field; } pgac_struct;
12715 #ifdef F77_DUMMY_MAIN
12716 #  ifdef __cplusplus
12717      extern "C"
12718 #  endif
12719    int F77_DUMMY_MAIN() { return 1; }
12720 #endif
12721 int
12722 main ()
12723 {
12724 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12725 test_array [0] = 0
12726
12727   ;
12728   return 0;
12729 }
12730 _ACEOF
12731 rm -f conftest.$ac_objext
12732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12733   (eval $ac_compile) 2>&5
12734   ac_status=$?
12735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736   (exit $ac_status); } &&
12737          { ac_try='test -s conftest.$ac_objext'
12738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739   (eval $ac_try) 2>&5
12740   ac_status=$?
12741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742   (exit $ac_status); }; }; then
12743   ac_hi=$ac_mid
12744 else
12745   echo "$as_me: failed program was:" >&5
12746 cat conftest.$ac_ext >&5
12747 ac_lo=`expr '(' $ac_mid ')' + 1`
12748 fi
12749 rm -f conftest.$ac_objext conftest.$ac_ext
12750 done
12751 case $ac_lo in
12752 ?*) pgac_cv_alignof_short=$ac_lo;;
12753 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
12754 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
12755    { (exit 1); exit 1; }; } ;;
12756 esac
12757 else
12758   if test "$cross_compiling" = yes; then
12759   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12760 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12761    { (exit 1); exit 1; }; }
12762 else
12763   cat >conftest.$ac_ext <<_ACEOF
12764 #line $LINENO "configure"
12765 #include "confdefs.h"
12766 $ac_includes_default
12767 struct { char filler; short field; } pgac_struct;
12768 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12769 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12770 #include <stdio.h>
12771 #include <stdlib.h>
12772 #ifdef F77_DUMMY_MAIN
12773 #  ifdef __cplusplus
12774      extern "C"
12775 #  endif
12776    int F77_DUMMY_MAIN() { return 1; }
12777 #endif
12778 int
12779 main ()
12780 {
12781
12782   FILE *f = fopen ("conftest.val", "w");
12783   if (! f)
12784     exit (1);
12785   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
12786     {
12787       long i = longval ();
12788       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12789         exit (1);
12790       fprintf (f, "%ld\n", i);
12791     }
12792   else
12793     {
12794       unsigned long i = ulongval ();
12795       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12796         exit (1);
12797       fprintf (f, "%lu\n", i);
12798     }
12799   exit (ferror (f) || fclose (f) != 0);
12800
12801   ;
12802   return 0;
12803 }
12804 _ACEOF
12805 rm -f conftest$ac_exeext
12806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12807   (eval $ac_link) 2>&5
12808   ac_status=$?
12809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12812   (eval $ac_try) 2>&5
12813   ac_status=$?
12814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815   (exit $ac_status); }; }; then
12816   pgac_cv_alignof_short=`cat conftest.val`
12817 else
12818   echo "$as_me: program exited with status $ac_status" >&5
12819 echo "$as_me: failed program was:" >&5
12820 cat conftest.$ac_ext >&5
12821 ( exit $ac_status )
12822 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
12823 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
12824    { (exit 1); exit 1; }; }
12825 fi
12826 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12827 fi
12828 fi
12829 rm -f conftest.val
12830 else
12831   pgac_cv_alignof_short=0
12832 fi
12833 fi
12834 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
12835 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
12836 cat >>confdefs.h <<_ACEOF
12837 #define ALIGNOF_SHORT $pgac_cv_alignof_short
12838 _ACEOF
12839
12840
12841 echo "$as_me:$LINENO: checking for int" >&5
12842 echo $ECHO_N "checking for int... $ECHO_C" >&6
12843 if test "${ac_cv_type_int+set}" = set; then
12844   echo $ECHO_N "(cached) $ECHO_C" >&6
12845 else
12846   cat >conftest.$ac_ext <<_ACEOF
12847 #line $LINENO "configure"
12848 #include "confdefs.h"
12849 $ac_includes_default
12850 #ifdef F77_DUMMY_MAIN
12851 #  ifdef __cplusplus
12852      extern "C"
12853 #  endif
12854    int F77_DUMMY_MAIN() { return 1; }
12855 #endif
12856 int
12857 main ()
12858 {
12859 if ((int *) 0)
12860   return 0;
12861 if (sizeof (int))
12862   return 0;
12863   ;
12864   return 0;
12865 }
12866 _ACEOF
12867 rm -f conftest.$ac_objext
12868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12869   (eval $ac_compile) 2>&5
12870   ac_status=$?
12871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872   (exit $ac_status); } &&
12873          { ac_try='test -s conftest.$ac_objext'
12874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875   (eval $ac_try) 2>&5
12876   ac_status=$?
12877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878   (exit $ac_status); }; }; then
12879   ac_cv_type_int=yes
12880 else
12881   echo "$as_me: failed program was:" >&5
12882 cat conftest.$ac_ext >&5
12883 ac_cv_type_int=no
12884 fi
12885 rm -f conftest.$ac_objext conftest.$ac_ext
12886 fi
12887 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12888 echo "${ECHO_T}$ac_cv_type_int" >&6
12889
12890 echo "$as_me:$LINENO: checking alignment of int" >&5
12891 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
12892 if test "${pgac_cv_alignof_int+set}" = set; then
12893   echo $ECHO_N "(cached) $ECHO_C" >&6
12894 else
12895   if test "$ac_cv_type_int" = yes; then
12896   if test "$cross_compiling" = yes; then
12897   # Depending upon the size, compute the lo and hi bounds.
12898 cat >conftest.$ac_ext <<_ACEOF
12899 #line $LINENO "configure"
12900 #include "confdefs.h"
12901 $ac_includes_default
12902 struct { char filler; int field; } pgac_struct;
12903 #ifdef F77_DUMMY_MAIN
12904 #  ifdef __cplusplus
12905      extern "C"
12906 #  endif
12907    int F77_DUMMY_MAIN() { return 1; }
12908 #endif
12909 int
12910 main ()
12911 {
12912 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
12913 test_array [0] = 0
12914
12915   ;
12916   return 0;
12917 }
12918 _ACEOF
12919 rm -f conftest.$ac_objext
12920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12921   (eval $ac_compile) 2>&5
12922   ac_status=$?
12923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924   (exit $ac_status); } &&
12925          { ac_try='test -s conftest.$ac_objext'
12926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12927   (eval $ac_try) 2>&5
12928   ac_status=$?
12929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930   (exit $ac_status); }; }; then
12931   ac_lo=0 ac_mid=0
12932   while :; do
12933     cat >conftest.$ac_ext <<_ACEOF
12934 #line $LINENO "configure"
12935 #include "confdefs.h"
12936 $ac_includes_default
12937 struct { char filler; int field; } pgac_struct;
12938 #ifdef F77_DUMMY_MAIN
12939 #  ifdef __cplusplus
12940      extern "C"
12941 #  endif
12942    int F77_DUMMY_MAIN() { return 1; }
12943 #endif
12944 int
12945 main ()
12946 {
12947 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12948 test_array [0] = 0
12949
12950   ;
12951   return 0;
12952 }
12953 _ACEOF
12954 rm -f conftest.$ac_objext
12955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12956   (eval $ac_compile) 2>&5
12957   ac_status=$?
12958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959   (exit $ac_status); } &&
12960          { ac_try='test -s conftest.$ac_objext'
12961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962   (eval $ac_try) 2>&5
12963   ac_status=$?
12964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965   (exit $ac_status); }; }; then
12966   ac_hi=$ac_mid; break
12967 else
12968   echo "$as_me: failed program was:" >&5
12969 cat conftest.$ac_ext >&5
12970 ac_lo=`expr $ac_mid + 1`
12971                     if test $ac_lo -le $ac_mid; then
12972                       ac_lo= ac_hi=
12973                       break
12974                     fi
12975                     ac_mid=`expr 2 '*' $ac_mid + 1`
12976 fi
12977 rm -f conftest.$ac_objext conftest.$ac_ext
12978   done
12979 else
12980   echo "$as_me: failed program was:" >&5
12981 cat conftest.$ac_ext >&5
12982 cat >conftest.$ac_ext <<_ACEOF
12983 #line $LINENO "configure"
12984 #include "confdefs.h"
12985 $ac_includes_default
12986 struct { char filler; int field; } pgac_struct;
12987 #ifdef F77_DUMMY_MAIN
12988 #  ifdef __cplusplus
12989      extern "C"
12990 #  endif
12991    int F77_DUMMY_MAIN() { return 1; }
12992 #endif
12993 int
12994 main ()
12995 {
12996 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
12997 test_array [0] = 0
12998
12999   ;
13000   return 0;
13001 }
13002 _ACEOF
13003 rm -f conftest.$ac_objext
13004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13005   (eval $ac_compile) 2>&5
13006   ac_status=$?
13007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008   (exit $ac_status); } &&
13009          { ac_try='test -s conftest.$ac_objext'
13010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13011   (eval $ac_try) 2>&5
13012   ac_status=$?
13013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014   (exit $ac_status); }; }; then
13015   ac_hi=-1 ac_mid=-1
13016   while :; do
13017     cat >conftest.$ac_ext <<_ACEOF
13018 #line $LINENO "configure"
13019 #include "confdefs.h"
13020 $ac_includes_default
13021 struct { char filler; int field; } pgac_struct;
13022 #ifdef F77_DUMMY_MAIN
13023 #  ifdef __cplusplus
13024      extern "C"
13025 #  endif
13026    int F77_DUMMY_MAIN() { return 1; }
13027 #endif
13028 int
13029 main ()
13030 {
13031 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13032 test_array [0] = 0
13033
13034   ;
13035   return 0;
13036 }
13037 _ACEOF
13038 rm -f conftest.$ac_objext
13039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13040   (eval $ac_compile) 2>&5
13041   ac_status=$?
13042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043   (exit $ac_status); } &&
13044          { ac_try='test -s conftest.$ac_objext'
13045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13046   (eval $ac_try) 2>&5
13047   ac_status=$?
13048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049   (exit $ac_status); }; }; then
13050   ac_lo=$ac_mid; break
13051 else
13052   echo "$as_me: failed program was:" >&5
13053 cat conftest.$ac_ext >&5
13054 ac_hi=`expr '(' $ac_mid ')' - 1`
13055                        if test $ac_mid -le $ac_hi; then
13056                          ac_lo= ac_hi=
13057                          break
13058                        fi
13059                        ac_mid=`expr 2 '*' $ac_mid`
13060 fi
13061 rm -f conftest.$ac_objext conftest.$ac_ext
13062   done
13063 else
13064   echo "$as_me: failed program was:" >&5
13065 cat conftest.$ac_ext >&5
13066 ac_lo= ac_hi=
13067 fi
13068 rm -f conftest.$ac_objext conftest.$ac_ext
13069 fi
13070 rm -f conftest.$ac_objext conftest.$ac_ext
13071 # Binary search between lo and hi bounds.
13072 while test "x$ac_lo" != "x$ac_hi"; do
13073   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13074   cat >conftest.$ac_ext <<_ACEOF
13075 #line $LINENO "configure"
13076 #include "confdefs.h"
13077 $ac_includes_default
13078 struct { char filler; int field; } pgac_struct;
13079 #ifdef F77_DUMMY_MAIN
13080 #  ifdef __cplusplus
13081      extern "C"
13082 #  endif
13083    int F77_DUMMY_MAIN() { return 1; }
13084 #endif
13085 int
13086 main ()
13087 {
13088 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13089 test_array [0] = 0
13090
13091   ;
13092   return 0;
13093 }
13094 _ACEOF
13095 rm -f conftest.$ac_objext
13096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13097   (eval $ac_compile) 2>&5
13098   ac_status=$?
13099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100   (exit $ac_status); } &&
13101          { ac_try='test -s conftest.$ac_objext'
13102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103   (eval $ac_try) 2>&5
13104   ac_status=$?
13105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106   (exit $ac_status); }; }; then
13107   ac_hi=$ac_mid
13108 else
13109   echo "$as_me: failed program was:" >&5
13110 cat conftest.$ac_ext >&5
13111 ac_lo=`expr '(' $ac_mid ')' + 1`
13112 fi
13113 rm -f conftest.$ac_objext conftest.$ac_ext
13114 done
13115 case $ac_lo in
13116 ?*) pgac_cv_alignof_int=$ac_lo;;
13117 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13118 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13119    { (exit 1); exit 1; }; } ;;
13120 esac
13121 else
13122   if test "$cross_compiling" = yes; then
13123   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13124 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13125    { (exit 1); exit 1; }; }
13126 else
13127   cat >conftest.$ac_ext <<_ACEOF
13128 #line $LINENO "configure"
13129 #include "confdefs.h"
13130 $ac_includes_default
13131 struct { char filler; int field; } pgac_struct;
13132 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13133 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13134 #include <stdio.h>
13135 #include <stdlib.h>
13136 #ifdef F77_DUMMY_MAIN
13137 #  ifdef __cplusplus
13138      extern "C"
13139 #  endif
13140    int F77_DUMMY_MAIN() { return 1; }
13141 #endif
13142 int
13143 main ()
13144 {
13145
13146   FILE *f = fopen ("conftest.val", "w");
13147   if (! f)
13148     exit (1);
13149   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13150     {
13151       long i = longval ();
13152       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13153         exit (1);
13154       fprintf (f, "%ld\n", i);
13155     }
13156   else
13157     {
13158       unsigned long i = ulongval ();
13159       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13160         exit (1);
13161       fprintf (f, "%lu\n", i);
13162     }
13163   exit (ferror (f) || fclose (f) != 0);
13164
13165   ;
13166   return 0;
13167 }
13168 _ACEOF
13169 rm -f conftest$ac_exeext
13170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13171   (eval $ac_link) 2>&5
13172   ac_status=$?
13173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13176   (eval $ac_try) 2>&5
13177   ac_status=$?
13178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179   (exit $ac_status); }; }; then
13180   pgac_cv_alignof_int=`cat conftest.val`
13181 else
13182   echo "$as_me: program exited with status $ac_status" >&5
13183 echo "$as_me: failed program was:" >&5
13184 cat conftest.$ac_ext >&5
13185 ( exit $ac_status )
13186 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13187 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13188    { (exit 1); exit 1; }; }
13189 fi
13190 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13191 fi
13192 fi
13193 rm -f conftest.val
13194 else
13195   pgac_cv_alignof_int=0
13196 fi
13197 fi
13198 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
13199 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
13200 cat >>confdefs.h <<_ACEOF
13201 #define ALIGNOF_INT $pgac_cv_alignof_int
13202 _ACEOF
13203
13204
13205 echo "$as_me:$LINENO: checking for long" >&5
13206 echo $ECHO_N "checking for long... $ECHO_C" >&6
13207 if test "${ac_cv_type_long+set}" = set; then
13208   echo $ECHO_N "(cached) $ECHO_C" >&6
13209 else
13210   cat >conftest.$ac_ext <<_ACEOF
13211 #line $LINENO "configure"
13212 #include "confdefs.h"
13213 $ac_includes_default
13214 #ifdef F77_DUMMY_MAIN
13215 #  ifdef __cplusplus
13216      extern "C"
13217 #  endif
13218    int F77_DUMMY_MAIN() { return 1; }
13219 #endif
13220 int
13221 main ()
13222 {
13223 if ((long *) 0)
13224   return 0;
13225 if (sizeof (long))
13226   return 0;
13227   ;
13228   return 0;
13229 }
13230 _ACEOF
13231 rm -f conftest.$ac_objext
13232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13233   (eval $ac_compile) 2>&5
13234   ac_status=$?
13235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236   (exit $ac_status); } &&
13237          { ac_try='test -s conftest.$ac_objext'
13238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239   (eval $ac_try) 2>&5
13240   ac_status=$?
13241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242   (exit $ac_status); }; }; then
13243   ac_cv_type_long=yes
13244 else
13245   echo "$as_me: failed program was:" >&5
13246 cat conftest.$ac_ext >&5
13247 ac_cv_type_long=no
13248 fi
13249 rm -f conftest.$ac_objext conftest.$ac_ext
13250 fi
13251 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13252 echo "${ECHO_T}$ac_cv_type_long" >&6
13253
13254 echo "$as_me:$LINENO: checking alignment of long" >&5
13255 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
13256 if test "${pgac_cv_alignof_long+set}" = set; then
13257   echo $ECHO_N "(cached) $ECHO_C" >&6
13258 else
13259   if test "$ac_cv_type_long" = yes; then
13260   if test "$cross_compiling" = yes; then
13261   # Depending upon the size, compute the lo and hi bounds.
13262 cat >conftest.$ac_ext <<_ACEOF
13263 #line $LINENO "configure"
13264 #include "confdefs.h"
13265 $ac_includes_default
13266 struct { char filler; long field; } pgac_struct;
13267 #ifdef F77_DUMMY_MAIN
13268 #  ifdef __cplusplus
13269      extern "C"
13270 #  endif
13271    int F77_DUMMY_MAIN() { return 1; }
13272 #endif
13273 int
13274 main ()
13275 {
13276 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13277 test_array [0] = 0
13278
13279   ;
13280   return 0;
13281 }
13282 _ACEOF
13283 rm -f conftest.$ac_objext
13284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13285   (eval $ac_compile) 2>&5
13286   ac_status=$?
13287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288   (exit $ac_status); } &&
13289          { ac_try='test -s conftest.$ac_objext'
13290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13291   (eval $ac_try) 2>&5
13292   ac_status=$?
13293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294   (exit $ac_status); }; }; then
13295   ac_lo=0 ac_mid=0
13296   while :; do
13297     cat >conftest.$ac_ext <<_ACEOF
13298 #line $LINENO "configure"
13299 #include "confdefs.h"
13300 $ac_includes_default
13301 struct { char filler; long field; } pgac_struct;
13302 #ifdef F77_DUMMY_MAIN
13303 #  ifdef __cplusplus
13304      extern "C"
13305 #  endif
13306    int F77_DUMMY_MAIN() { return 1; }
13307 #endif
13308 int
13309 main ()
13310 {
13311 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13312 test_array [0] = 0
13313
13314   ;
13315   return 0;
13316 }
13317 _ACEOF
13318 rm -f conftest.$ac_objext
13319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13320   (eval $ac_compile) 2>&5
13321   ac_status=$?
13322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323   (exit $ac_status); } &&
13324          { ac_try='test -s conftest.$ac_objext'
13325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13326   (eval $ac_try) 2>&5
13327   ac_status=$?
13328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329   (exit $ac_status); }; }; then
13330   ac_hi=$ac_mid; break
13331 else
13332   echo "$as_me: failed program was:" >&5
13333 cat conftest.$ac_ext >&5
13334 ac_lo=`expr $ac_mid + 1`
13335                     if test $ac_lo -le $ac_mid; then
13336                       ac_lo= ac_hi=
13337                       break
13338                     fi
13339                     ac_mid=`expr 2 '*' $ac_mid + 1`
13340 fi
13341 rm -f conftest.$ac_objext conftest.$ac_ext
13342   done
13343 else
13344   echo "$as_me: failed program was:" >&5
13345 cat conftest.$ac_ext >&5
13346 cat >conftest.$ac_ext <<_ACEOF
13347 #line $LINENO "configure"
13348 #include "confdefs.h"
13349 $ac_includes_default
13350 struct { char filler; long field; } pgac_struct;
13351 #ifdef F77_DUMMY_MAIN
13352 #  ifdef __cplusplus
13353      extern "C"
13354 #  endif
13355    int F77_DUMMY_MAIN() { return 1; }
13356 #endif
13357 int
13358 main ()
13359 {
13360 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13361 test_array [0] = 0
13362
13363   ;
13364   return 0;
13365 }
13366 _ACEOF
13367 rm -f conftest.$ac_objext
13368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13369   (eval $ac_compile) 2>&5
13370   ac_status=$?
13371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372   (exit $ac_status); } &&
13373          { ac_try='test -s conftest.$ac_objext'
13374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13375   (eval $ac_try) 2>&5
13376   ac_status=$?
13377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378   (exit $ac_status); }; }; then
13379   ac_hi=-1 ac_mid=-1
13380   while :; do
13381     cat >conftest.$ac_ext <<_ACEOF
13382 #line $LINENO "configure"
13383 #include "confdefs.h"
13384 $ac_includes_default
13385 struct { char filler; long field; } pgac_struct;
13386 #ifdef F77_DUMMY_MAIN
13387 #  ifdef __cplusplus
13388      extern "C"
13389 #  endif
13390    int F77_DUMMY_MAIN() { return 1; }
13391 #endif
13392 int
13393 main ()
13394 {
13395 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13396 test_array [0] = 0
13397
13398   ;
13399   return 0;
13400 }
13401 _ACEOF
13402 rm -f conftest.$ac_objext
13403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13404   (eval $ac_compile) 2>&5
13405   ac_status=$?
13406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407   (exit $ac_status); } &&
13408          { ac_try='test -s conftest.$ac_objext'
13409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13410   (eval $ac_try) 2>&5
13411   ac_status=$?
13412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413   (exit $ac_status); }; }; then
13414   ac_lo=$ac_mid; break
13415 else
13416   echo "$as_me: failed program was:" >&5
13417 cat conftest.$ac_ext >&5
13418 ac_hi=`expr '(' $ac_mid ')' - 1`
13419                        if test $ac_mid -le $ac_hi; then
13420                          ac_lo= ac_hi=
13421                          break
13422                        fi
13423                        ac_mid=`expr 2 '*' $ac_mid`
13424 fi
13425 rm -f conftest.$ac_objext conftest.$ac_ext
13426   done
13427 else
13428   echo "$as_me: failed program was:" >&5
13429 cat conftest.$ac_ext >&5
13430 ac_lo= ac_hi=
13431 fi
13432 rm -f conftest.$ac_objext conftest.$ac_ext
13433 fi
13434 rm -f conftest.$ac_objext conftest.$ac_ext
13435 # Binary search between lo and hi bounds.
13436 while test "x$ac_lo" != "x$ac_hi"; do
13437   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13438   cat >conftest.$ac_ext <<_ACEOF
13439 #line $LINENO "configure"
13440 #include "confdefs.h"
13441 $ac_includes_default
13442 struct { char filler; long field; } pgac_struct;
13443 #ifdef F77_DUMMY_MAIN
13444 #  ifdef __cplusplus
13445      extern "C"
13446 #  endif
13447    int F77_DUMMY_MAIN() { return 1; }
13448 #endif
13449 int
13450 main ()
13451 {
13452 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13453 test_array [0] = 0
13454
13455   ;
13456   return 0;
13457 }
13458 _ACEOF
13459 rm -f conftest.$ac_objext
13460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13461   (eval $ac_compile) 2>&5
13462   ac_status=$?
13463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464   (exit $ac_status); } &&
13465          { ac_try='test -s conftest.$ac_objext'
13466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13467   (eval $ac_try) 2>&5
13468   ac_status=$?
13469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470   (exit $ac_status); }; }; then
13471   ac_hi=$ac_mid
13472 else
13473   echo "$as_me: failed program was:" >&5
13474 cat conftest.$ac_ext >&5
13475 ac_lo=`expr '(' $ac_mid ')' + 1`
13476 fi
13477 rm -f conftest.$ac_objext conftest.$ac_ext
13478 done
13479 case $ac_lo in
13480 ?*) pgac_cv_alignof_long=$ac_lo;;
13481 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
13482 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
13483    { (exit 1); exit 1; }; } ;;
13484 esac
13485 else
13486   if test "$cross_compiling" = yes; then
13487   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13488 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13489    { (exit 1); exit 1; }; }
13490 else
13491   cat >conftest.$ac_ext <<_ACEOF
13492 #line $LINENO "configure"
13493 #include "confdefs.h"
13494 $ac_includes_default
13495 struct { char filler; long field; } pgac_struct;
13496 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13497 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13498 #include <stdio.h>
13499 #include <stdlib.h>
13500 #ifdef F77_DUMMY_MAIN
13501 #  ifdef __cplusplus
13502      extern "C"
13503 #  endif
13504    int F77_DUMMY_MAIN() { return 1; }
13505 #endif
13506 int
13507 main ()
13508 {
13509
13510   FILE *f = fopen ("conftest.val", "w");
13511   if (! f)
13512     exit (1);
13513   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13514     {
13515       long i = longval ();
13516       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13517         exit (1);
13518       fprintf (f, "%ld\n", i);
13519     }
13520   else
13521     {
13522       unsigned long i = ulongval ();
13523       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13524         exit (1);
13525       fprintf (f, "%lu\n", i);
13526     }
13527   exit (ferror (f) || fclose (f) != 0);
13528
13529   ;
13530   return 0;
13531 }
13532 _ACEOF
13533 rm -f conftest$ac_exeext
13534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13535   (eval $ac_link) 2>&5
13536   ac_status=$?
13537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13540   (eval $ac_try) 2>&5
13541   ac_status=$?
13542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543   (exit $ac_status); }; }; then
13544   pgac_cv_alignof_long=`cat conftest.val`
13545 else
13546   echo "$as_me: program exited with status $ac_status" >&5
13547 echo "$as_me: failed program was:" >&5
13548 cat conftest.$ac_ext >&5
13549 ( exit $ac_status )
13550 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
13551 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
13552    { (exit 1); exit 1; }; }
13553 fi
13554 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13555 fi
13556 fi
13557 rm -f conftest.val
13558 else
13559   pgac_cv_alignof_long=0
13560 fi
13561 fi
13562 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
13563 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
13564 cat >>confdefs.h <<_ACEOF
13565 #define ALIGNOF_LONG $pgac_cv_alignof_long
13566 _ACEOF
13567
13568
13569 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
13570   echo "$as_me:$LINENO: checking for long long int" >&5
13571 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13572 if test "${ac_cv_type_long_long_int+set}" = set; then
13573   echo $ECHO_N "(cached) $ECHO_C" >&6
13574 else
13575   cat >conftest.$ac_ext <<_ACEOF
13576 #line $LINENO "configure"
13577 #include "confdefs.h"
13578 $ac_includes_default
13579 #ifdef F77_DUMMY_MAIN
13580 #  ifdef __cplusplus
13581      extern "C"
13582 #  endif
13583    int F77_DUMMY_MAIN() { return 1; }
13584 #endif
13585 int
13586 main ()
13587 {
13588 if ((long long int *) 0)
13589   return 0;
13590 if (sizeof (long long int))
13591   return 0;
13592   ;
13593   return 0;
13594 }
13595 _ACEOF
13596 rm -f conftest.$ac_objext
13597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13598   (eval $ac_compile) 2>&5
13599   ac_status=$?
13600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601   (exit $ac_status); } &&
13602          { ac_try='test -s conftest.$ac_objext'
13603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604   (eval $ac_try) 2>&5
13605   ac_status=$?
13606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607   (exit $ac_status); }; }; then
13608   ac_cv_type_long_long_int=yes
13609 else
13610   echo "$as_me: failed program was:" >&5
13611 cat conftest.$ac_ext >&5
13612 ac_cv_type_long_long_int=no
13613 fi
13614 rm -f conftest.$ac_objext conftest.$ac_ext
13615 fi
13616 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13617 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13618
13619 echo "$as_me:$LINENO: checking alignment of long long int" >&5
13620 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
13621 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
13622   echo $ECHO_N "(cached) $ECHO_C" >&6
13623 else
13624   if test "$ac_cv_type_long_long_int" = yes; then
13625   if test "$cross_compiling" = yes; then
13626   # Depending upon the size, compute the lo and hi bounds.
13627 cat >conftest.$ac_ext <<_ACEOF
13628 #line $LINENO "configure"
13629 #include "confdefs.h"
13630 $ac_includes_default
13631 struct { char filler; long long int field; } pgac_struct;
13632 #ifdef F77_DUMMY_MAIN
13633 #  ifdef __cplusplus
13634      extern "C"
13635 #  endif
13636    int F77_DUMMY_MAIN() { return 1; }
13637 #endif
13638 int
13639 main ()
13640 {
13641 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13642 test_array [0] = 0
13643
13644   ;
13645   return 0;
13646 }
13647 _ACEOF
13648 rm -f conftest.$ac_objext
13649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13650   (eval $ac_compile) 2>&5
13651   ac_status=$?
13652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653   (exit $ac_status); } &&
13654          { ac_try='test -s conftest.$ac_objext'
13655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656   (eval $ac_try) 2>&5
13657   ac_status=$?
13658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659   (exit $ac_status); }; }; then
13660   ac_lo=0 ac_mid=0
13661   while :; do
13662     cat >conftest.$ac_ext <<_ACEOF
13663 #line $LINENO "configure"
13664 #include "confdefs.h"
13665 $ac_includes_default
13666 struct { char filler; long long int field; } pgac_struct;
13667 #ifdef F77_DUMMY_MAIN
13668 #  ifdef __cplusplus
13669      extern "C"
13670 #  endif
13671    int F77_DUMMY_MAIN() { return 1; }
13672 #endif
13673 int
13674 main ()
13675 {
13676 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13677 test_array [0] = 0
13678
13679   ;
13680   return 0;
13681 }
13682 _ACEOF
13683 rm -f conftest.$ac_objext
13684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13685   (eval $ac_compile) 2>&5
13686   ac_status=$?
13687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688   (exit $ac_status); } &&
13689          { ac_try='test -s conftest.$ac_objext'
13690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691   (eval $ac_try) 2>&5
13692   ac_status=$?
13693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694   (exit $ac_status); }; }; then
13695   ac_hi=$ac_mid; break
13696 else
13697   echo "$as_me: failed program was:" >&5
13698 cat conftest.$ac_ext >&5
13699 ac_lo=`expr $ac_mid + 1`
13700                     if test $ac_lo -le $ac_mid; then
13701                       ac_lo= ac_hi=
13702                       break
13703                     fi
13704                     ac_mid=`expr 2 '*' $ac_mid + 1`
13705 fi
13706 rm -f conftest.$ac_objext conftest.$ac_ext
13707   done
13708 else
13709   echo "$as_me: failed program was:" >&5
13710 cat conftest.$ac_ext >&5
13711 cat >conftest.$ac_ext <<_ACEOF
13712 #line $LINENO "configure"
13713 #include "confdefs.h"
13714 $ac_includes_default
13715 struct { char filler; long long int field; } pgac_struct;
13716 #ifdef F77_DUMMY_MAIN
13717 #  ifdef __cplusplus
13718      extern "C"
13719 #  endif
13720    int F77_DUMMY_MAIN() { return 1; }
13721 #endif
13722 int
13723 main ()
13724 {
13725 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13726 test_array [0] = 0
13727
13728   ;
13729   return 0;
13730 }
13731 _ACEOF
13732 rm -f conftest.$ac_objext
13733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13734   (eval $ac_compile) 2>&5
13735   ac_status=$?
13736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737   (exit $ac_status); } &&
13738          { ac_try='test -s conftest.$ac_objext'
13739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740   (eval $ac_try) 2>&5
13741   ac_status=$?
13742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743   (exit $ac_status); }; }; then
13744   ac_hi=-1 ac_mid=-1
13745   while :; do
13746     cat >conftest.$ac_ext <<_ACEOF
13747 #line $LINENO "configure"
13748 #include "confdefs.h"
13749 $ac_includes_default
13750 struct { char filler; long long int field; } pgac_struct;
13751 #ifdef F77_DUMMY_MAIN
13752 #  ifdef __cplusplus
13753      extern "C"
13754 #  endif
13755    int F77_DUMMY_MAIN() { return 1; }
13756 #endif
13757 int
13758 main ()
13759 {
13760 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13761 test_array [0] = 0
13762
13763   ;
13764   return 0;
13765 }
13766 _ACEOF
13767 rm -f conftest.$ac_objext
13768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13769   (eval $ac_compile) 2>&5
13770   ac_status=$?
13771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772   (exit $ac_status); } &&
13773          { ac_try='test -s conftest.$ac_objext'
13774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775   (eval $ac_try) 2>&5
13776   ac_status=$?
13777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778   (exit $ac_status); }; }; then
13779   ac_lo=$ac_mid; break
13780 else
13781   echo "$as_me: failed program was:" >&5
13782 cat conftest.$ac_ext >&5
13783 ac_hi=`expr '(' $ac_mid ')' - 1`
13784                        if test $ac_mid -le $ac_hi; then
13785                          ac_lo= ac_hi=
13786                          break
13787                        fi
13788                        ac_mid=`expr 2 '*' $ac_mid`
13789 fi
13790 rm -f conftest.$ac_objext conftest.$ac_ext
13791   done
13792 else
13793   echo "$as_me: failed program was:" >&5
13794 cat conftest.$ac_ext >&5
13795 ac_lo= ac_hi=
13796 fi
13797 rm -f conftest.$ac_objext conftest.$ac_ext
13798 fi
13799 rm -f conftest.$ac_objext conftest.$ac_ext
13800 # Binary search between lo and hi bounds.
13801 while test "x$ac_lo" != "x$ac_hi"; do
13802   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13803   cat >conftest.$ac_ext <<_ACEOF
13804 #line $LINENO "configure"
13805 #include "confdefs.h"
13806 $ac_includes_default
13807 struct { char filler; long long int field; } pgac_struct;
13808 #ifdef F77_DUMMY_MAIN
13809 #  ifdef __cplusplus
13810      extern "C"
13811 #  endif
13812    int F77_DUMMY_MAIN() { return 1; }
13813 #endif
13814 int
13815 main ()
13816 {
13817 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13818 test_array [0] = 0
13819
13820   ;
13821   return 0;
13822 }
13823 _ACEOF
13824 rm -f conftest.$ac_objext
13825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13826   (eval $ac_compile) 2>&5
13827   ac_status=$?
13828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829   (exit $ac_status); } &&
13830          { ac_try='test -s conftest.$ac_objext'
13831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832   (eval $ac_try) 2>&5
13833   ac_status=$?
13834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835   (exit $ac_status); }; }; then
13836   ac_hi=$ac_mid
13837 else
13838   echo "$as_me: failed program was:" >&5
13839 cat conftest.$ac_ext >&5
13840 ac_lo=`expr '(' $ac_mid ')' + 1`
13841 fi
13842 rm -f conftest.$ac_objext conftest.$ac_ext
13843 done
13844 case $ac_lo in
13845 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
13846 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
13847 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
13848    { (exit 1); exit 1; }; } ;;
13849 esac
13850 else
13851   if test "$cross_compiling" = yes; then
13852   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13853 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13854    { (exit 1); exit 1; }; }
13855 else
13856   cat >conftest.$ac_ext <<_ACEOF
13857 #line $LINENO "configure"
13858 #include "confdefs.h"
13859 $ac_includes_default
13860 struct { char filler; long long int field; } pgac_struct;
13861 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13862 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13863 #include <stdio.h>
13864 #include <stdlib.h>
13865 #ifdef F77_DUMMY_MAIN
13866 #  ifdef __cplusplus
13867      extern "C"
13868 #  endif
13869    int F77_DUMMY_MAIN() { return 1; }
13870 #endif
13871 int
13872 main ()
13873 {
13874
13875   FILE *f = fopen ("conftest.val", "w");
13876   if (! f)
13877     exit (1);
13878   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13879     {
13880       long i = longval ();
13881       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13882         exit (1);
13883       fprintf (f, "%ld\n", i);
13884     }
13885   else
13886     {
13887       unsigned long i = ulongval ();
13888       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13889         exit (1);
13890       fprintf (f, "%lu\n", i);
13891     }
13892   exit (ferror (f) || fclose (f) != 0);
13893
13894   ;
13895   return 0;
13896 }
13897 _ACEOF
13898 rm -f conftest$ac_exeext
13899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13900   (eval $ac_link) 2>&5
13901   ac_status=$?
13902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905   (eval $ac_try) 2>&5
13906   ac_status=$?
13907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908   (exit $ac_status); }; }; then
13909   pgac_cv_alignof_long_long_int=`cat conftest.val`
13910 else
13911   echo "$as_me: program exited with status $ac_status" >&5
13912 echo "$as_me: failed program was:" >&5
13913 cat conftest.$ac_ext >&5
13914 ( exit $ac_status )
13915 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
13916 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
13917    { (exit 1); exit 1; }; }
13918 fi
13919 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13920 fi
13921 fi
13922 rm -f conftest.val
13923 else
13924   pgac_cv_alignof_long_long_int=0
13925 fi
13926 fi
13927 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
13928 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
13929 cat >>confdefs.h <<_ACEOF
13930 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
13931 _ACEOF
13932
13933
13934 fi
13935 echo "$as_me:$LINENO: checking for double" >&5
13936 echo $ECHO_N "checking for double... $ECHO_C" >&6
13937 if test "${ac_cv_type_double+set}" = set; then
13938   echo $ECHO_N "(cached) $ECHO_C" >&6
13939 else
13940   cat >conftest.$ac_ext <<_ACEOF
13941 #line $LINENO "configure"
13942 #include "confdefs.h"
13943 $ac_includes_default
13944 #ifdef F77_DUMMY_MAIN
13945 #  ifdef __cplusplus
13946      extern "C"
13947 #  endif
13948    int F77_DUMMY_MAIN() { return 1; }
13949 #endif
13950 int
13951 main ()
13952 {
13953 if ((double *) 0)
13954   return 0;
13955 if (sizeof (double))
13956   return 0;
13957   ;
13958   return 0;
13959 }
13960 _ACEOF
13961 rm -f conftest.$ac_objext
13962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13963   (eval $ac_compile) 2>&5
13964   ac_status=$?
13965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966   (exit $ac_status); } &&
13967          { ac_try='test -s conftest.$ac_objext'
13968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13969   (eval $ac_try) 2>&5
13970   ac_status=$?
13971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972   (exit $ac_status); }; }; then
13973   ac_cv_type_double=yes
13974 else
13975   echo "$as_me: failed program was:" >&5
13976 cat conftest.$ac_ext >&5
13977 ac_cv_type_double=no
13978 fi
13979 rm -f conftest.$ac_objext conftest.$ac_ext
13980 fi
13981 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
13982 echo "${ECHO_T}$ac_cv_type_double" >&6
13983
13984 echo "$as_me:$LINENO: checking alignment of double" >&5
13985 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
13986 if test "${pgac_cv_alignof_double+set}" = set; then
13987   echo $ECHO_N "(cached) $ECHO_C" >&6
13988 else
13989   if test "$ac_cv_type_double" = yes; then
13990   if test "$cross_compiling" = yes; then
13991   # Depending upon the size, compute the lo and hi bounds.
13992 cat >conftest.$ac_ext <<_ACEOF
13993 #line $LINENO "configure"
13994 #include "confdefs.h"
13995 $ac_includes_default
13996 struct { char filler; double field; } pgac_struct;
13997 #ifdef F77_DUMMY_MAIN
13998 #  ifdef __cplusplus
13999      extern "C"
14000 #  endif
14001    int F77_DUMMY_MAIN() { return 1; }
14002 #endif
14003 int
14004 main ()
14005 {
14006 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14007 test_array [0] = 0
14008
14009   ;
14010   return 0;
14011 }
14012 _ACEOF
14013 rm -f conftest.$ac_objext
14014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14015   (eval $ac_compile) 2>&5
14016   ac_status=$?
14017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018   (exit $ac_status); } &&
14019          { ac_try='test -s conftest.$ac_objext'
14020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021   (eval $ac_try) 2>&5
14022   ac_status=$?
14023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024   (exit $ac_status); }; }; then
14025   ac_lo=0 ac_mid=0
14026   while :; do
14027     cat >conftest.$ac_ext <<_ACEOF
14028 #line $LINENO "configure"
14029 #include "confdefs.h"
14030 $ac_includes_default
14031 struct { char filler; double field; } pgac_struct;
14032 #ifdef F77_DUMMY_MAIN
14033 #  ifdef __cplusplus
14034      extern "C"
14035 #  endif
14036    int F77_DUMMY_MAIN() { return 1; }
14037 #endif
14038 int
14039 main ()
14040 {
14041 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14042 test_array [0] = 0
14043
14044   ;
14045   return 0;
14046 }
14047 _ACEOF
14048 rm -f conftest.$ac_objext
14049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14050   (eval $ac_compile) 2>&5
14051   ac_status=$?
14052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053   (exit $ac_status); } &&
14054          { ac_try='test -s conftest.$ac_objext'
14055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056   (eval $ac_try) 2>&5
14057   ac_status=$?
14058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059   (exit $ac_status); }; }; then
14060   ac_hi=$ac_mid; break
14061 else
14062   echo "$as_me: failed program was:" >&5
14063 cat conftest.$ac_ext >&5
14064 ac_lo=`expr $ac_mid + 1`
14065                     if test $ac_lo -le $ac_mid; then
14066                       ac_lo= ac_hi=
14067                       break
14068                     fi
14069                     ac_mid=`expr 2 '*' $ac_mid + 1`
14070 fi
14071 rm -f conftest.$ac_objext conftest.$ac_ext
14072   done
14073 else
14074   echo "$as_me: failed program was:" >&5
14075 cat conftest.$ac_ext >&5
14076 cat >conftest.$ac_ext <<_ACEOF
14077 #line $LINENO "configure"
14078 #include "confdefs.h"
14079 $ac_includes_default
14080 struct { char filler; double field; } pgac_struct;
14081 #ifdef F77_DUMMY_MAIN
14082 #  ifdef __cplusplus
14083      extern "C"
14084 #  endif
14085    int F77_DUMMY_MAIN() { return 1; }
14086 #endif
14087 int
14088 main ()
14089 {
14090 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14091 test_array [0] = 0
14092
14093   ;
14094   return 0;
14095 }
14096 _ACEOF
14097 rm -f conftest.$ac_objext
14098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14099   (eval $ac_compile) 2>&5
14100   ac_status=$?
14101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102   (exit $ac_status); } &&
14103          { ac_try='test -s conftest.$ac_objext'
14104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105   (eval $ac_try) 2>&5
14106   ac_status=$?
14107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108   (exit $ac_status); }; }; then
14109   ac_hi=-1 ac_mid=-1
14110   while :; do
14111     cat >conftest.$ac_ext <<_ACEOF
14112 #line $LINENO "configure"
14113 #include "confdefs.h"
14114 $ac_includes_default
14115 struct { char filler; double field; } pgac_struct;
14116 #ifdef F77_DUMMY_MAIN
14117 #  ifdef __cplusplus
14118      extern "C"
14119 #  endif
14120    int F77_DUMMY_MAIN() { return 1; }
14121 #endif
14122 int
14123 main ()
14124 {
14125 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14126 test_array [0] = 0
14127
14128   ;
14129   return 0;
14130 }
14131 _ACEOF
14132 rm -f conftest.$ac_objext
14133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14134   (eval $ac_compile) 2>&5
14135   ac_status=$?
14136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137   (exit $ac_status); } &&
14138          { ac_try='test -s conftest.$ac_objext'
14139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140   (eval $ac_try) 2>&5
14141   ac_status=$?
14142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143   (exit $ac_status); }; }; then
14144   ac_lo=$ac_mid; break
14145 else
14146   echo "$as_me: failed program was:" >&5
14147 cat conftest.$ac_ext >&5
14148 ac_hi=`expr '(' $ac_mid ')' - 1`
14149                        if test $ac_mid -le $ac_hi; then
14150                          ac_lo= ac_hi=
14151                          break
14152                        fi
14153                        ac_mid=`expr 2 '*' $ac_mid`
14154 fi
14155 rm -f conftest.$ac_objext conftest.$ac_ext
14156   done
14157 else
14158   echo "$as_me: failed program was:" >&5
14159 cat conftest.$ac_ext >&5
14160 ac_lo= ac_hi=
14161 fi
14162 rm -f conftest.$ac_objext conftest.$ac_ext
14163 fi
14164 rm -f conftest.$ac_objext conftest.$ac_ext
14165 # Binary search between lo and hi bounds.
14166 while test "x$ac_lo" != "x$ac_hi"; do
14167   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14168   cat >conftest.$ac_ext <<_ACEOF
14169 #line $LINENO "configure"
14170 #include "confdefs.h"
14171 $ac_includes_default
14172 struct { char filler; double field; } pgac_struct;
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 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14183 test_array [0] = 0
14184
14185   ;
14186   return 0;
14187 }
14188 _ACEOF
14189 rm -f conftest.$ac_objext
14190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14191   (eval $ac_compile) 2>&5
14192   ac_status=$?
14193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194   (exit $ac_status); } &&
14195          { ac_try='test -s conftest.$ac_objext'
14196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14197   (eval $ac_try) 2>&5
14198   ac_status=$?
14199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200   (exit $ac_status); }; }; then
14201   ac_hi=$ac_mid
14202 else
14203   echo "$as_me: failed program was:" >&5
14204 cat conftest.$ac_ext >&5
14205 ac_lo=`expr '(' $ac_mid ')' + 1`
14206 fi
14207 rm -f conftest.$ac_objext conftest.$ac_ext
14208 done
14209 case $ac_lo in
14210 ?*) pgac_cv_alignof_double=$ac_lo;;
14211 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14212 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14213    { (exit 1); exit 1; }; } ;;
14214 esac
14215 else
14216   if test "$cross_compiling" = yes; then
14217   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14218 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14219    { (exit 1); exit 1; }; }
14220 else
14221   cat >conftest.$ac_ext <<_ACEOF
14222 #line $LINENO "configure"
14223 #include "confdefs.h"
14224 $ac_includes_default
14225 struct { char filler; double field; } pgac_struct;
14226 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14227 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14228 #include <stdio.h>
14229 #include <stdlib.h>
14230 #ifdef F77_DUMMY_MAIN
14231 #  ifdef __cplusplus
14232      extern "C"
14233 #  endif
14234    int F77_DUMMY_MAIN() { return 1; }
14235 #endif
14236 int
14237 main ()
14238 {
14239
14240   FILE *f = fopen ("conftest.val", "w");
14241   if (! f)
14242     exit (1);
14243   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14244     {
14245       long i = longval ();
14246       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14247         exit (1);
14248       fprintf (f, "%ld\n", i);
14249     }
14250   else
14251     {
14252       unsigned long i = ulongval ();
14253       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14254         exit (1);
14255       fprintf (f, "%lu\n", i);
14256     }
14257   exit (ferror (f) || fclose (f) != 0);
14258
14259   ;
14260   return 0;
14261 }
14262 _ACEOF
14263 rm -f conftest$ac_exeext
14264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14265   (eval $ac_link) 2>&5
14266   ac_status=$?
14267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270   (eval $ac_try) 2>&5
14271   ac_status=$?
14272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273   (exit $ac_status); }; }; then
14274   pgac_cv_alignof_double=`cat conftest.val`
14275 else
14276   echo "$as_me: program exited with status $ac_status" >&5
14277 echo "$as_me: failed program was:" >&5
14278 cat conftest.$ac_ext >&5
14279 ( exit $ac_status )
14280 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14281 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14282    { (exit 1); exit 1; }; }
14283 fi
14284 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14285 fi
14286 fi
14287 rm -f conftest.val
14288 else
14289   pgac_cv_alignof_double=0
14290 fi
14291 fi
14292 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
14293 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
14294 cat >>confdefs.h <<_ACEOF
14295 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
14296 _ACEOF
14297
14298
14299
14300 # Compute maximum alignment of any basic type.
14301 # We assume long's alignment is at least as strong as char, short, or int;
14302 # but we must check long long (if it exists) and double.
14303
14304 MAX_ALIGNOF=$pgac_cv_alignof_long
14305 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
14306   MAX_ALIGNOF=$pgac_cv_alignof_double
14307 fi
14308 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
14309   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
14310 fi
14311
14312 cat >>confdefs.h <<_ACEOF
14313 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
14314 _ACEOF
14315
14316
14317
14318 # Some platforms predefine the types int8, int16, etc.  Only check
14319 # a (hopefully) representative subset.
14320 echo "$as_me:$LINENO: checking for int8" >&5
14321 echo $ECHO_N "checking for int8... $ECHO_C" >&6
14322 if test "${ac_cv_type_int8+set}" = set; then
14323   echo $ECHO_N "(cached) $ECHO_C" >&6
14324 else
14325   cat >conftest.$ac_ext <<_ACEOF
14326 #line $LINENO "configure"
14327 #include "confdefs.h"
14328 #include <stdio.h>
14329 #ifdef HAVE_SUPPORTDEFS_H
14330 #include <SupportDefs.h>
14331 #endif
14332
14333 #ifdef F77_DUMMY_MAIN
14334 #  ifdef __cplusplus
14335      extern "C"
14336 #  endif
14337    int F77_DUMMY_MAIN() { return 1; }
14338 #endif
14339 int
14340 main ()
14341 {
14342 if ((int8 *) 0)
14343   return 0;
14344 if (sizeof (int8))
14345   return 0;
14346   ;
14347   return 0;
14348 }
14349 _ACEOF
14350 rm -f conftest.$ac_objext
14351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14352   (eval $ac_compile) 2>&5
14353   ac_status=$?
14354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355   (exit $ac_status); } &&
14356          { ac_try='test -s conftest.$ac_objext'
14357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358   (eval $ac_try) 2>&5
14359   ac_status=$?
14360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361   (exit $ac_status); }; }; then
14362   ac_cv_type_int8=yes
14363 else
14364   echo "$as_me: failed program was:" >&5
14365 cat conftest.$ac_ext >&5
14366 ac_cv_type_int8=no
14367 fi
14368 rm -f conftest.$ac_objext conftest.$ac_ext
14369 fi
14370 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
14371 echo "${ECHO_T}$ac_cv_type_int8" >&6
14372 if test $ac_cv_type_int8 = yes; then
14373
14374 cat >>confdefs.h <<_ACEOF
14375 #define HAVE_INT8 1
14376 _ACEOF
14377
14378
14379 fi
14380 echo "$as_me:$LINENO: checking for uint8" >&5
14381 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
14382 if test "${ac_cv_type_uint8+set}" = set; then
14383   echo $ECHO_N "(cached) $ECHO_C" >&6
14384 else
14385   cat >conftest.$ac_ext <<_ACEOF
14386 #line $LINENO "configure"
14387 #include "confdefs.h"
14388 #include <stdio.h>
14389 #ifdef HAVE_SUPPORTDEFS_H
14390 #include <SupportDefs.h>
14391 #endif
14392
14393 #ifdef F77_DUMMY_MAIN
14394 #  ifdef __cplusplus
14395      extern "C"
14396 #  endif
14397    int F77_DUMMY_MAIN() { return 1; }
14398 #endif
14399 int
14400 main ()
14401 {
14402 if ((uint8 *) 0)
14403   return 0;
14404 if (sizeof (uint8))
14405   return 0;
14406   ;
14407   return 0;
14408 }
14409 _ACEOF
14410 rm -f conftest.$ac_objext
14411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14412   (eval $ac_compile) 2>&5
14413   ac_status=$?
14414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415   (exit $ac_status); } &&
14416          { ac_try='test -s conftest.$ac_objext'
14417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418   (eval $ac_try) 2>&5
14419   ac_status=$?
14420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421   (exit $ac_status); }; }; then
14422   ac_cv_type_uint8=yes
14423 else
14424   echo "$as_me: failed program was:" >&5
14425 cat conftest.$ac_ext >&5
14426 ac_cv_type_uint8=no
14427 fi
14428 rm -f conftest.$ac_objext conftest.$ac_ext
14429 fi
14430 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
14431 echo "${ECHO_T}$ac_cv_type_uint8" >&6
14432 if test $ac_cv_type_uint8 = yes; then
14433
14434 cat >>confdefs.h <<_ACEOF
14435 #define HAVE_UINT8 1
14436 _ACEOF
14437
14438
14439 fi
14440 echo "$as_me:$LINENO: checking for int64" >&5
14441 echo $ECHO_N "checking for int64... $ECHO_C" >&6
14442 if test "${ac_cv_type_int64+set}" = set; then
14443   echo $ECHO_N "(cached) $ECHO_C" >&6
14444 else
14445   cat >conftest.$ac_ext <<_ACEOF
14446 #line $LINENO "configure"
14447 #include "confdefs.h"
14448 #include <stdio.h>
14449 #ifdef HAVE_SUPPORTDEFS_H
14450 #include <SupportDefs.h>
14451 #endif
14452
14453 #ifdef F77_DUMMY_MAIN
14454 #  ifdef __cplusplus
14455      extern "C"
14456 #  endif
14457    int F77_DUMMY_MAIN() { return 1; }
14458 #endif
14459 int
14460 main ()
14461 {
14462 if ((int64 *) 0)
14463   return 0;
14464 if (sizeof (int64))
14465   return 0;
14466   ;
14467   return 0;
14468 }
14469 _ACEOF
14470 rm -f conftest.$ac_objext
14471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14472   (eval $ac_compile) 2>&5
14473   ac_status=$?
14474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475   (exit $ac_status); } &&
14476          { ac_try='test -s conftest.$ac_objext'
14477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478   (eval $ac_try) 2>&5
14479   ac_status=$?
14480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481   (exit $ac_status); }; }; then
14482   ac_cv_type_int64=yes
14483 else
14484   echo "$as_me: failed program was:" >&5
14485 cat conftest.$ac_ext >&5
14486 ac_cv_type_int64=no
14487 fi
14488 rm -f conftest.$ac_objext conftest.$ac_ext
14489 fi
14490 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
14491 echo "${ECHO_T}$ac_cv_type_int64" >&6
14492 if test $ac_cv_type_int64 = yes; then
14493
14494 cat >>confdefs.h <<_ACEOF
14495 #define HAVE_INT64 1
14496 _ACEOF
14497
14498
14499 fi
14500 echo "$as_me:$LINENO: checking for uint64" >&5
14501 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
14502 if test "${ac_cv_type_uint64+set}" = set; then
14503   echo $ECHO_N "(cached) $ECHO_C" >&6
14504 else
14505   cat >conftest.$ac_ext <<_ACEOF
14506 #line $LINENO "configure"
14507 #include "confdefs.h"
14508 #include <stdio.h>
14509 #ifdef HAVE_SUPPORTDEFS_H
14510 #include <SupportDefs.h>
14511 #endif
14512
14513 #ifdef F77_DUMMY_MAIN
14514 #  ifdef __cplusplus
14515      extern "C"
14516 #  endif
14517    int F77_DUMMY_MAIN() { return 1; }
14518 #endif
14519 int
14520 main ()
14521 {
14522 if ((uint64 *) 0)
14523   return 0;
14524 if (sizeof (uint64))
14525   return 0;
14526   ;
14527   return 0;
14528 }
14529 _ACEOF
14530 rm -f conftest.$ac_objext
14531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14532   (eval $ac_compile) 2>&5
14533   ac_status=$?
14534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535   (exit $ac_status); } &&
14536          { ac_try='test -s conftest.$ac_objext'
14537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538   (eval $ac_try) 2>&5
14539   ac_status=$?
14540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541   (exit $ac_status); }; }; then
14542   ac_cv_type_uint64=yes
14543 else
14544   echo "$as_me: failed program was:" >&5
14545 cat conftest.$ac_ext >&5
14546 ac_cv_type_uint64=no
14547 fi
14548 rm -f conftest.$ac_objext conftest.$ac_ext
14549 fi
14550 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
14551 echo "${ECHO_T}$ac_cv_type_uint64" >&6
14552 if test $ac_cv_type_uint64 = yes; then
14553
14554 cat >>confdefs.h <<_ACEOF
14555 #define HAVE_UINT64 1
14556 _ACEOF
14557
14558
14559 fi
14560
14561
14562 # We also check for sig_atomic_t, which *should* be defined per ANSI
14563 # C, but is missing on some old platforms.
14564 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
14565 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
14566 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
14567   echo $ECHO_N "(cached) $ECHO_C" >&6
14568 else
14569   cat >conftest.$ac_ext <<_ACEOF
14570 #line $LINENO "configure"
14571 #include "confdefs.h"
14572 #include <signal.h>
14573
14574 #ifdef F77_DUMMY_MAIN
14575 #  ifdef __cplusplus
14576      extern "C"
14577 #  endif
14578    int F77_DUMMY_MAIN() { return 1; }
14579 #endif
14580 int
14581 main ()
14582 {
14583 if ((sig_atomic_t *) 0)
14584   return 0;
14585 if (sizeof (sig_atomic_t))
14586   return 0;
14587   ;
14588   return 0;
14589 }
14590 _ACEOF
14591 rm -f conftest.$ac_objext
14592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14593   (eval $ac_compile) 2>&5
14594   ac_status=$?
14595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596   (exit $ac_status); } &&
14597          { ac_try='test -s conftest.$ac_objext'
14598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14599   (eval $ac_try) 2>&5
14600   ac_status=$?
14601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602   (exit $ac_status); }; }; then
14603   ac_cv_type_sig_atomic_t=yes
14604 else
14605   echo "$as_me: failed program was:" >&5
14606 cat conftest.$ac_ext >&5
14607 ac_cv_type_sig_atomic_t=no
14608 fi
14609 rm -f conftest.$ac_objext conftest.$ac_ext
14610 fi
14611 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
14612 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
14613 if test $ac_cv_type_sig_atomic_t = yes; then
14614
14615 cat >>confdefs.h <<_ACEOF
14616 #define HAVE_SIG_ATOMIC_T 1
14617 _ACEOF
14618
14619
14620 fi
14621
14622
14623
14624 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
14625 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
14626 if test "${pgac_cv_func_posix_signals+set}" = set; then
14627   echo $ECHO_N "(cached) $ECHO_C" >&6
14628 else
14629   cat >conftest.$ac_ext <<_ACEOF
14630 #line $LINENO "configure"
14631 #include "confdefs.h"
14632 #include <signal.h>
14633
14634 #ifdef F77_DUMMY_MAIN
14635 #  ifdef __cplusplus
14636      extern "C"
14637 #  endif
14638    int F77_DUMMY_MAIN() { return 1; }
14639 #endif
14640 int
14641 main ()
14642 {
14643 struct sigaction act, oact;
14644 sigemptyset(&act.sa_mask);
14645 act.sa_flags = SA_RESTART;
14646 sigaction(0, &act, &oact);
14647   ;
14648   return 0;
14649 }
14650 _ACEOF
14651 rm -f conftest.$ac_objext conftest$ac_exeext
14652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14653   (eval $ac_link) 2>&5
14654   ac_status=$?
14655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656   (exit $ac_status); } &&
14657          { ac_try='test -s conftest$ac_exeext'
14658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14659   (eval $ac_try) 2>&5
14660   ac_status=$?
14661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662   (exit $ac_status); }; }; then
14663   pgac_cv_func_posix_signals=yes
14664 else
14665   echo "$as_me: failed program was:" >&5
14666 cat conftest.$ac_ext >&5
14667 pgac_cv_func_posix_signals=no
14668 fi
14669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14670 fi
14671 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
14672 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
14673 if test x"$pgac_cv_func_posix_signals" = xyes ; then
14674
14675 cat >>confdefs.h <<\_ACEOF
14676 #define HAVE_POSIX_SIGNALS
14677 _ACEOF
14678
14679 fi
14680 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
14681
14682 if test $ac_cv_func_fseeko = yes; then
14683 # Check whether --enable-largefile or --disable-largefile was given.
14684 if test "${enable_largefile+set}" = set; then
14685   enableval="$enable_largefile"
14686
14687 fi;
14688 if test "$enable_largefile" != no; then
14689
14690   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
14691 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
14692 if test "${ac_cv_sys_largefile_CC+set}" = set; then
14693   echo $ECHO_N "(cached) $ECHO_C" >&6
14694 else
14695   ac_cv_sys_largefile_CC=no
14696      if test "$GCC" != yes; then
14697        ac_save_CC=$CC
14698        while :; do
14699          # IRIX 6.2 and later do not support large files by default,
14700          # so use the C compiler's -n32 option if that helps.
14701          cat >conftest.$ac_ext <<_ACEOF
14702 #line $LINENO "configure"
14703 #include "confdefs.h"
14704 #include <sys/types.h>
14705  /* Check that off_t can represent 2**63 - 1 correctly.
14706     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14707     since some C++ compilers masquerading as C compilers
14708     incorrectly reject 9223372036854775807.  */
14709 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14710   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14711                        && LARGE_OFF_T % 2147483647 == 1)
14712                       ? 1 : -1];
14713 #ifdef F77_DUMMY_MAIN
14714 #  ifdef __cplusplus
14715      extern "C"
14716 #  endif
14717    int F77_DUMMY_MAIN() { return 1; }
14718 #endif
14719 int
14720 main ()
14721 {
14722
14723   ;
14724   return 0;
14725 }
14726 _ACEOF
14727          rm -f conftest.$ac_objext
14728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14729   (eval $ac_compile) 2>&5
14730   ac_status=$?
14731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732   (exit $ac_status); } &&
14733          { ac_try='test -s conftest.$ac_objext'
14734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735   (eval $ac_try) 2>&5
14736   ac_status=$?
14737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738   (exit $ac_status); }; }; then
14739   break
14740 else
14741   echo "$as_me: failed program was:" >&5
14742 cat conftest.$ac_ext >&5
14743 fi
14744 rm -f conftest.$ac_objext
14745          CC="$CC -n32"
14746          rm -f conftest.$ac_objext
14747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14748   (eval $ac_compile) 2>&5
14749   ac_status=$?
14750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751   (exit $ac_status); } &&
14752          { ac_try='test -s conftest.$ac_objext'
14753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754   (eval $ac_try) 2>&5
14755   ac_status=$?
14756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757   (exit $ac_status); }; }; then
14758   ac_cv_sys_largefile_CC=' -n32'; break
14759 else
14760   echo "$as_me: failed program was:" >&5
14761 cat conftest.$ac_ext >&5
14762 fi
14763 rm -f conftest.$ac_objext
14764          break
14765        done
14766        CC=$ac_save_CC
14767        rm -f conftest.$ac_ext
14768     fi
14769 fi
14770 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
14771 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
14772   if test "$ac_cv_sys_largefile_CC" != no; then
14773     CC=$CC$ac_cv_sys_largefile_CC
14774   fi
14775
14776   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14777 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
14778 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
14779   echo $ECHO_N "(cached) $ECHO_C" >&6
14780 else
14781   while :; do
14782   ac_cv_sys_file_offset_bits=no
14783   cat >conftest.$ac_ext <<_ACEOF
14784 #line $LINENO "configure"
14785 #include "confdefs.h"
14786 #include <sys/types.h>
14787  /* Check that off_t can represent 2**63 - 1 correctly.
14788     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14789     since some C++ compilers masquerading as C compilers
14790     incorrectly reject 9223372036854775807.  */
14791 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14792   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14793                        && LARGE_OFF_T % 2147483647 == 1)
14794                       ? 1 : -1];
14795 #ifdef F77_DUMMY_MAIN
14796 #  ifdef __cplusplus
14797      extern "C"
14798 #  endif
14799    int F77_DUMMY_MAIN() { return 1; }
14800 #endif
14801 int
14802 main ()
14803 {
14804
14805   ;
14806   return 0;
14807 }
14808 _ACEOF
14809 rm -f conftest.$ac_objext
14810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14811   (eval $ac_compile) 2>&5
14812   ac_status=$?
14813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814   (exit $ac_status); } &&
14815          { ac_try='test -s conftest.$ac_objext'
14816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817   (eval $ac_try) 2>&5
14818   ac_status=$?
14819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820   (exit $ac_status); }; }; then
14821   break
14822 else
14823   echo "$as_me: failed program was:" >&5
14824 cat conftest.$ac_ext >&5
14825 fi
14826 rm -f conftest.$ac_objext conftest.$ac_ext
14827   cat >conftest.$ac_ext <<_ACEOF
14828 #line $LINENO "configure"
14829 #include "confdefs.h"
14830 #define _FILE_OFFSET_BITS 64
14831 #include <sys/types.h>
14832  /* Check that off_t can represent 2**63 - 1 correctly.
14833     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14834     since some C++ compilers masquerading as C compilers
14835     incorrectly reject 9223372036854775807.  */
14836 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14837   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14838                        && LARGE_OFF_T % 2147483647 == 1)
14839                       ? 1 : -1];
14840 #ifdef F77_DUMMY_MAIN
14841 #  ifdef __cplusplus
14842      extern "C"
14843 #  endif
14844    int F77_DUMMY_MAIN() { return 1; }
14845 #endif
14846 int
14847 main ()
14848 {
14849
14850   ;
14851   return 0;
14852 }
14853 _ACEOF
14854 rm -f conftest.$ac_objext
14855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14856   (eval $ac_compile) 2>&5
14857   ac_status=$?
14858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859   (exit $ac_status); } &&
14860          { ac_try='test -s conftest.$ac_objext'
14861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862   (eval $ac_try) 2>&5
14863   ac_status=$?
14864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865   (exit $ac_status); }; }; then
14866   ac_cv_sys_file_offset_bits=64; break
14867 else
14868   echo "$as_me: failed program was:" >&5
14869 cat conftest.$ac_ext >&5
14870 fi
14871 rm -f conftest.$ac_objext conftest.$ac_ext
14872   break
14873 done
14874 fi
14875 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
14876 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
14877 if test "$ac_cv_sys_file_offset_bits" != no; then
14878
14879 cat >>confdefs.h <<_ACEOF
14880 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14881 _ACEOF
14882
14883 fi
14884 rm -f conftest*
14885   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
14886 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
14887 if test "${ac_cv_sys_large_files+set}" = set; then
14888   echo $ECHO_N "(cached) $ECHO_C" >&6
14889 else
14890   while :; do
14891   ac_cv_sys_large_files=no
14892   cat >conftest.$ac_ext <<_ACEOF
14893 #line $LINENO "configure"
14894 #include "confdefs.h"
14895 #include <sys/types.h>
14896  /* Check that off_t can represent 2**63 - 1 correctly.
14897     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14898     since some C++ compilers masquerading as C compilers
14899     incorrectly reject 9223372036854775807.  */
14900 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14901   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14902                        && LARGE_OFF_T % 2147483647 == 1)
14903                       ? 1 : -1];
14904 #ifdef F77_DUMMY_MAIN
14905 #  ifdef __cplusplus
14906      extern "C"
14907 #  endif
14908    int F77_DUMMY_MAIN() { return 1; }
14909 #endif
14910 int
14911 main ()
14912 {
14913
14914   ;
14915   return 0;
14916 }
14917 _ACEOF
14918 rm -f conftest.$ac_objext
14919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14920   (eval $ac_compile) 2>&5
14921   ac_status=$?
14922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923   (exit $ac_status); } &&
14924          { ac_try='test -s conftest.$ac_objext'
14925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14926   (eval $ac_try) 2>&5
14927   ac_status=$?
14928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929   (exit $ac_status); }; }; then
14930   break
14931 else
14932   echo "$as_me: failed program was:" >&5
14933 cat conftest.$ac_ext >&5
14934 fi
14935 rm -f conftest.$ac_objext conftest.$ac_ext
14936   cat >conftest.$ac_ext <<_ACEOF
14937 #line $LINENO "configure"
14938 #include "confdefs.h"
14939 #define _LARGE_FILES 1
14940 #include <sys/types.h>
14941  /* Check that off_t can represent 2**63 - 1 correctly.
14942     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14943     since some C++ compilers masquerading as C compilers
14944     incorrectly reject 9223372036854775807.  */
14945 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14946   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14947                        && LARGE_OFF_T % 2147483647 == 1)
14948                       ? 1 : -1];
14949 #ifdef F77_DUMMY_MAIN
14950 #  ifdef __cplusplus
14951      extern "C"
14952 #  endif
14953    int F77_DUMMY_MAIN() { return 1; }
14954 #endif
14955 int
14956 main ()
14957 {
14958
14959   ;
14960   return 0;
14961 }
14962 _ACEOF
14963 rm -f conftest.$ac_objext
14964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14965   (eval $ac_compile) 2>&5
14966   ac_status=$?
14967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968   (exit $ac_status); } &&
14969          { ac_try='test -s conftest.$ac_objext'
14970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971   (eval $ac_try) 2>&5
14972   ac_status=$?
14973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974   (exit $ac_status); }; }; then
14975   ac_cv_sys_large_files=1; break
14976 else
14977   echo "$as_me: failed program was:" >&5
14978 cat conftest.$ac_ext >&5
14979 fi
14980 rm -f conftest.$ac_objext conftest.$ac_ext
14981   break
14982 done
14983 fi
14984 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
14985 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
14986 if test "$ac_cv_sys_large_files" != no; then
14987
14988 cat >>confdefs.h <<_ACEOF
14989 #define _LARGE_FILES $ac_cv_sys_large_files
14990 _ACEOF
14991
14992 fi
14993 rm -f conftest*
14994 fi
14995
14996 fi
14997
14998
14999 # Select semaphore implementation type.
15000 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
15001
15002 cat >>confdefs.h <<\_ACEOF
15003 #define USE_NAMED_POSIX_SEMAPHORES 1
15004 _ACEOF
15005
15006   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15007 else
15008   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
15009
15010 cat >>confdefs.h <<\_ACEOF
15011 #define USE_UNNAMED_POSIX_SEMAPHORES 1
15012 _ACEOF
15013
15014     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15015   else
15016
15017 cat >>confdefs.h <<\_ACEOF
15018 #define USE_SYSV_SEMAPHORES 1
15019 _ACEOF
15020
15021     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
15022   fi
15023 fi
15024
15025
15026 # Select shared-memory implementation type.
15027
15028 cat >>confdefs.h <<\_ACEOF
15029 #define USE_SYSV_SHARED_MEMORY 1
15030 _ACEOF
15031
15032 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
15033
15034
15035 if test "$enable_nls" = yes ; then
15036
15037   echo "$as_me:$LINENO: checking for library containing gettext" >&5
15038 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
15039 if test "${ac_cv_search_gettext+set}" = set; then
15040   echo $ECHO_N "(cached) $ECHO_C" >&6
15041 else
15042   ac_func_search_save_LIBS=$LIBS
15043 ac_cv_search_gettext=no
15044 cat >conftest.$ac_ext <<_ACEOF
15045 #line $LINENO "configure"
15046 #include "confdefs.h"
15047
15048 /* Override any gcc2 internal prototype to avoid an error.  */
15049 #ifdef __cplusplus
15050 extern "C"
15051 #endif
15052 /* We use char because int might match the return type of a gcc2
15053    builtin and then its argument prototype would still apply.  */
15054 char gettext ();
15055 #ifdef F77_DUMMY_MAIN
15056 #  ifdef __cplusplus
15057      extern "C"
15058 #  endif
15059    int F77_DUMMY_MAIN() { return 1; }
15060 #endif
15061 int
15062 main ()
15063 {
15064 gettext ();
15065   ;
15066   return 0;
15067 }
15068 _ACEOF
15069 rm -f conftest.$ac_objext conftest$ac_exeext
15070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15071   (eval $ac_link) 2>&5
15072   ac_status=$?
15073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074   (exit $ac_status); } &&
15075          { ac_try='test -s conftest$ac_exeext'
15076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15077   (eval $ac_try) 2>&5
15078   ac_status=$?
15079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080   (exit $ac_status); }; }; then
15081   ac_cv_search_gettext="none required"
15082 else
15083   echo "$as_me: failed program was:" >&5
15084 cat conftest.$ac_ext >&5
15085 fi
15086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15087 if test "$ac_cv_search_gettext" = no; then
15088   for ac_lib in intl; do
15089     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15090     cat >conftest.$ac_ext <<_ACEOF
15091 #line $LINENO "configure"
15092 #include "confdefs.h"
15093
15094 /* Override any gcc2 internal prototype to avoid an error.  */
15095 #ifdef __cplusplus
15096 extern "C"
15097 #endif
15098 /* We use char because int might match the return type of a gcc2
15099    builtin and then its argument prototype would still apply.  */
15100 char gettext ();
15101 #ifdef F77_DUMMY_MAIN
15102 #  ifdef __cplusplus
15103      extern "C"
15104 #  endif
15105    int F77_DUMMY_MAIN() { return 1; }
15106 #endif
15107 int
15108 main ()
15109 {
15110 gettext ();
15111   ;
15112   return 0;
15113 }
15114 _ACEOF
15115 rm -f conftest.$ac_objext conftest$ac_exeext
15116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15117   (eval $ac_link) 2>&5
15118   ac_status=$?
15119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120   (exit $ac_status); } &&
15121          { ac_try='test -s conftest$ac_exeext'
15122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15123   (eval $ac_try) 2>&5
15124   ac_status=$?
15125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126   (exit $ac_status); }; }; then
15127   ac_cv_search_gettext="-l$ac_lib"
15128 break
15129 else
15130   echo "$as_me: failed program was:" >&5
15131 cat conftest.$ac_ext >&5
15132 fi
15133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15134   done
15135 fi
15136 LIBS=$ac_func_search_save_LIBS
15137 fi
15138 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15139 echo "${ECHO_T}$ac_cv_search_gettext" >&6
15140 if test "$ac_cv_search_gettext" != no; then
15141   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15142
15143 else
15144   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15145 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15146    { (exit 1); exit 1; }; }
15147 fi
15148
15149   if test "${ac_cv_header_libintl_h+set}" = set; then
15150   echo "$as_me:$LINENO: checking for libintl.h" >&5
15151 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15152 if test "${ac_cv_header_libintl_h+set}" = set; then
15153   echo $ECHO_N "(cached) $ECHO_C" >&6
15154 fi
15155 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15156 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15157 else
15158   # Is the header compilable?
15159 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15160 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15161 cat >conftest.$ac_ext <<_ACEOF
15162 #line $LINENO "configure"
15163 #include "confdefs.h"
15164 $ac_includes_default
15165 #include <libintl.h>
15166 _ACEOF
15167 rm -f conftest.$ac_objext
15168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15169   (eval $ac_compile) 2>&5
15170   ac_status=$?
15171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172   (exit $ac_status); } &&
15173          { ac_try='test -s conftest.$ac_objext'
15174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15175   (eval $ac_try) 2>&5
15176   ac_status=$?
15177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178   (exit $ac_status); }; }; then
15179   ac_header_compiler=yes
15180 else
15181   echo "$as_me: failed program was:" >&5
15182 cat conftest.$ac_ext >&5
15183 ac_header_compiler=no
15184 fi
15185 rm -f conftest.$ac_objext conftest.$ac_ext
15186 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15187 echo "${ECHO_T}$ac_header_compiler" >&6
15188
15189 # Is the header present?
15190 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15191 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15192 cat >conftest.$ac_ext <<_ACEOF
15193 #line $LINENO "configure"
15194 #include "confdefs.h"
15195 #include <libintl.h>
15196 _ACEOF
15197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15198   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15199   ac_status=$?
15200   egrep -v '^ *\+' conftest.er1 >conftest.err
15201   rm -f conftest.er1
15202   cat conftest.err >&5
15203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204   (exit $ac_status); } >/dev/null; then
15205   if test -s conftest.err; then
15206     ac_cpp_err=$ac_c_preproc_warn_flag
15207   else
15208     ac_cpp_err=
15209   fi
15210 else
15211   ac_cpp_err=yes
15212 fi
15213 if test -z "$ac_cpp_err"; then
15214   ac_header_preproc=yes
15215 else
15216   echo "$as_me: failed program was:" >&5
15217   cat conftest.$ac_ext >&5
15218   ac_header_preproc=no
15219 fi
15220 rm -f conftest.err conftest.$ac_ext
15221 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15222 echo "${ECHO_T}$ac_header_preproc" >&6
15223
15224 # So?  What about this header?
15225 case $ac_header_compiler:$ac_header_preproc in
15226   yes:no )
15227     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15228 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15229     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15230 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15231   no:yes )
15232     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15233 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15234     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15235 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15236     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15237 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15238 esac
15239 echo "$as_me:$LINENO: checking for libintl.h" >&5
15240 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15241 if test "${ac_cv_header_libintl_h+set}" = set; then
15242   echo $ECHO_N "(cached) $ECHO_C" >&6
15243 else
15244   ac_cv_header_libintl_h=$ac_header_preproc
15245 fi
15246 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15247 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15248
15249 fi
15250 if test $ac_cv_header_libintl_h = yes; then
15251   :
15252 else
15253   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15254 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15255    { (exit 1); exit 1; }; }
15256 fi
15257
15258
15259   for ac_prog in msgfmt
15260 do
15261   # Extract the first word of "$ac_prog", so it can be a program name with args.
15262 set dummy $ac_prog; ac_word=$2
15263 echo "$as_me:$LINENO: checking for $ac_word" >&5
15264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15265 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15266   echo $ECHO_N "(cached) $ECHO_C" >&6
15267 else
15268   if test -n "$MSGFMT"; then
15269   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15270 else
15271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15272 for as_dir in $PATH
15273 do
15274   IFS=$as_save_IFS
15275   test -z "$as_dir" && as_dir=.
15276   for ac_exec_ext in '' $ac_executable_extensions; do
15277   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15278     ac_cv_prog_MSGFMT="$ac_prog"
15279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15280     break 2
15281   fi
15282 done
15283 done
15284
15285 fi
15286 fi
15287 MSGFMT=$ac_cv_prog_MSGFMT
15288 if test -n "$MSGFMT"; then
15289   echo "$as_me:$LINENO: result: $MSGFMT" >&5
15290 echo "${ECHO_T}$MSGFMT" >&6
15291 else
15292   echo "$as_me:$LINENO: result: no" >&5
15293 echo "${ECHO_T}no" >&6
15294 fi
15295
15296   test -n "$MSGFMT" && break
15297 done
15298
15299   if test -z "$MSGFMT"; then
15300     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15301 echo "$as_me: error: msgfmt is required for NLS" >&2;}
15302    { (exit 1); exit 1; }; }
15303   fi
15304   for ac_prog in msgmerge
15305 do
15306   # Extract the first word of "$ac_prog", so it can be a program name with args.
15307 set dummy $ac_prog; ac_word=$2
15308 echo "$as_me:$LINENO: checking for $ac_word" >&5
15309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15310 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
15311   echo $ECHO_N "(cached) $ECHO_C" >&6
15312 else
15313   if test -n "$MSGMERGE"; then
15314   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15315 else
15316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15317 for as_dir in $PATH
15318 do
15319   IFS=$as_save_IFS
15320   test -z "$as_dir" && as_dir=.
15321   for ac_exec_ext in '' $ac_executable_extensions; do
15322   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15323     ac_cv_prog_MSGMERGE="$ac_prog"
15324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15325     break 2
15326   fi
15327 done
15328 done
15329
15330 fi
15331 fi
15332 MSGMERGE=$ac_cv_prog_MSGMERGE
15333 if test -n "$MSGMERGE"; then
15334   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15335 echo "${ECHO_T}$MSGMERGE" >&6
15336 else
15337   echo "$as_me:$LINENO: result: no" >&5
15338 echo "${ECHO_T}no" >&6
15339 fi
15340
15341   test -n "$MSGMERGE" && break
15342 done
15343
15344   for ac_prog in xgettext
15345 do
15346   # Extract the first word of "$ac_prog", so it can be a program name with args.
15347 set dummy $ac_prog; ac_word=$2
15348 echo "$as_me:$LINENO: checking for $ac_word" >&5
15349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15350 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
15351   echo $ECHO_N "(cached) $ECHO_C" >&6
15352 else
15353   if test -n "$XGETTEXT"; then
15354   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
15355 else
15356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15357 for as_dir in $PATH
15358 do
15359   IFS=$as_save_IFS
15360   test -z "$as_dir" && as_dir=.
15361   for ac_exec_ext in '' $ac_executable_extensions; do
15362   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15363     ac_cv_prog_XGETTEXT="$ac_prog"
15364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15365     break 2
15366   fi
15367 done
15368 done
15369
15370 fi
15371 fi
15372 XGETTEXT=$ac_cv_prog_XGETTEXT
15373 if test -n "$XGETTEXT"; then
15374   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15375 echo "${ECHO_T}$XGETTEXT" >&6
15376 else
15377   echo "$as_me:$LINENO: result: no" >&5
15378 echo "${ECHO_T}no" >&6
15379 fi
15380
15381   test -n "$XGETTEXT" && break
15382 done
15383
15384
15385   # Note: share/locale is always the default, independent of $datadir
15386   localedir='${prefix}/share/locale'
15387   if test x"$prefix" = x"NONE"; then
15388     exp_localedir="$ac_default_prefix/share/locale"
15389   else
15390     exp_localedir="$prefix/share/locale"
15391   fi
15392
15393
15394
15395 cat >>confdefs.h <<_ACEOF
15396 #define LOCALEDIR "$exp_localedir"
15397 _ACEOF
15398
15399
15400 fi
15401
15402 # Check for Tcl configuration script tclConfig.sh
15403 if test "$with_tcl" = yes; then
15404     for ac_prog in tclsh tcl
15405 do
15406   # Extract the first word of "$ac_prog", so it can be a program name with args.
15407 set dummy $ac_prog; ac_word=$2
15408 echo "$as_me:$LINENO: checking for $ac_word" >&5
15409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15410 if test "${ac_cv_path_TCLSH+set}" = set; then
15411   echo $ECHO_N "(cached) $ECHO_C" >&6
15412 else
15413   case $TCLSH in
15414   [\\/]* | ?:[\\/]*)
15415   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
15416   ;;
15417   *)
15418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15419 for as_dir in $PATH
15420 do
15421   IFS=$as_save_IFS
15422   test -z "$as_dir" && as_dir=.
15423   for ac_exec_ext in '' $ac_executable_extensions; do
15424   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15425     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
15426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15427     break 2
15428   fi
15429 done
15430 done
15431
15432   ;;
15433 esac
15434 fi
15435 TCLSH=$ac_cv_path_TCLSH
15436
15437 if test -n "$TCLSH"; then
15438   echo "$as_me:$LINENO: result: $TCLSH" >&5
15439 echo "${ECHO_T}$TCLSH" >&6
15440 else
15441   echo "$as_me:$LINENO: result: no" >&5
15442 echo "${ECHO_T}no" >&6
15443 fi
15444
15445   test -n "$TCLSH" && break
15446 done
15447
15448 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
15449 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
15450 # Let user override test
15451 if test -z "$TCL_CONFIG_SH"; then
15452     pgac_test_dirs="$with_tclconfig"
15453
15454     set X $pgac_test_dirs; shift
15455     if test $# -eq 0; then
15456         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
15457 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
15458    { (exit 1); exit 1; }; }
15459         set X `echo 'puts $auto_path' | $TCLSH`; shift
15460     fi
15461
15462     for pgac_dir do
15463         if test -r "$pgac_dir/tclConfig.sh"; then
15464             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
15465             break
15466         fi
15467     done
15468 fi
15469
15470 if test -z "$TCL_CONFIG_SH"; then
15471     echo "$as_me:$LINENO: result: no" >&5
15472 echo "${ECHO_T}no" >&6
15473     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
15474 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
15475    { (exit 1); exit 1; }; }
15476 else
15477     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
15478 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
15479 fi
15480
15481
15482
15483     . "$TCL_CONFIG_SH"
15484 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
15485 eval TCL_LIBS=\"$TCL_LIBS\"
15486 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
15487 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
15488
15489     fi
15490
15491 # Check for Tk configuration script tkConfig.sh
15492 if test "$with_tk" = yes; then
15493     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
15494 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
15495 # Let user override test
15496 if test -z "$TK_CONFIG_SH"; then
15497     pgac_test_dirs="$with_tkconfig $with_tclconfig"
15498
15499     set X $pgac_test_dirs; shift
15500     if test $# -eq 0; then
15501         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
15502 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
15503    { (exit 1); exit 1; }; }
15504         set X `echo 'puts $auto_path' | $TCLSH`; shift
15505     fi
15506
15507     for pgac_dir do
15508         if test -r "$pgac_dir/tkConfig.sh"; then
15509             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
15510             break
15511         fi
15512     done
15513 fi
15514
15515 if test -z "$TK_CONFIG_SH"; then
15516     echo "$as_me:$LINENO: result: no" >&5
15517 echo "${ECHO_T}no" >&6
15518     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
15519 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
15520    { (exit 1); exit 1; }; }
15521 else
15522     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
15523 echo "${ECHO_T}$TK_CONFIG_SH" >&6
15524 fi
15525
15526
15527
15528     . "$TK_CONFIG_SH"
15529 eval TK_LIBS=\"$TK_LIBS\"
15530 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
15531 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
15532
15533 fi
15534
15535
15536 #
15537 # Check for DocBook and tools
15538 #
15539 for ac_prog in onsgmls nsgmls
15540 do
15541   # Extract the first word of "$ac_prog", so it can be a program name with args.
15542 set dummy $ac_prog; ac_word=$2
15543 echo "$as_me:$LINENO: checking for $ac_word" >&5
15544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15545 if test "${ac_cv_prog_NSGMLS+set}" = set; then
15546   echo $ECHO_N "(cached) $ECHO_C" >&6
15547 else
15548   if test -n "$NSGMLS"; then
15549   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
15550 else
15551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15552 for as_dir in $PATH
15553 do
15554   IFS=$as_save_IFS
15555   test -z "$as_dir" && as_dir=.
15556   for ac_exec_ext in '' $ac_executable_extensions; do
15557   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15558     ac_cv_prog_NSGMLS="$ac_prog"
15559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15560     break 2
15561   fi
15562 done
15563 done
15564
15565 fi
15566 fi
15567 NSGMLS=$ac_cv_prog_NSGMLS
15568 if test -n "$NSGMLS"; then
15569   echo "$as_me:$LINENO: result: $NSGMLS" >&5
15570 echo "${ECHO_T}$NSGMLS" >&6
15571 else
15572   echo "$as_me:$LINENO: result: no" >&5
15573 echo "${ECHO_T}no" >&6
15574 fi
15575
15576   test -n "$NSGMLS" && break
15577 done
15578
15579 for ac_prog in openjade jade
15580 do
15581   # Extract the first word of "$ac_prog", so it can be a program name with args.
15582 set dummy $ac_prog; ac_word=$2
15583 echo "$as_me:$LINENO: checking for $ac_word" >&5
15584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15585 if test "${ac_cv_prog_JADE+set}" = set; then
15586   echo $ECHO_N "(cached) $ECHO_C" >&6
15587 else
15588   if test -n "$JADE"; then
15589   ac_cv_prog_JADE="$JADE" # Let the user override the test.
15590 else
15591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15592 for as_dir in $PATH
15593 do
15594   IFS=$as_save_IFS
15595   test -z "$as_dir" && as_dir=.
15596   for ac_exec_ext in '' $ac_executable_extensions; do
15597   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15598     ac_cv_prog_JADE="$ac_prog"
15599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15600     break 2
15601   fi
15602 done
15603 done
15604
15605 fi
15606 fi
15607 JADE=$ac_cv_prog_JADE
15608 if test -n "$JADE"; then
15609   echo "$as_me:$LINENO: result: $JADE" >&5
15610 echo "${ECHO_T}$JADE" >&6
15611 else
15612   echo "$as_me:$LINENO: result: no" >&5
15613 echo "${ECHO_T}no" >&6
15614 fi
15615
15616   test -n "$JADE" && break
15617 done
15618
15619
15620 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
15621 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
15622 if test "${pgac_cv_check_docbook+set}" = set; then
15623   echo $ECHO_N "(cached) $ECHO_C" >&6
15624 else
15625   cat >conftest.sgml <<EOF
15626 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
15627 <book>
15628  <title>test</title>
15629  <chapter>
15630   <title>random</title>
15631    <sect1>
15632     <title>testsect</title>
15633     <para>text</para>
15634   </sect1>
15635  </chapter>
15636 </book>
15637 EOF
15638
15639 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
15640 if test $? -eq 0; then
15641   pgac_cv_check_docbook=yes
15642 else
15643   pgac_cv_check_docbook=no
15644 fi
15645 rm -f conftest.sgml
15646 fi
15647 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
15648 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
15649
15650 have_docbook=$pgac_cv_check_docbook
15651
15652
15653 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
15654 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
15655 if test "${pgac_cv_path_stylesheets+set}" = set; then
15656   echo $ECHO_N "(cached) $ECHO_C" >&6
15657 else
15658   if test -n "$DOCBOOKSTYLE"; then
15659   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
15660 else
15661   for pgac_prefix in /usr /usr/local /opt; do
15662     for pgac_infix in share lib; do
15663       for pgac_postfix in \
15664         sgml/stylesheets/nwalsh-modular \
15665         sgml/stylesheets/docbook \
15666         sgml/docbook/dsssl/modular \
15667         sgml/docbook/stylesheet/dsssl/modular \
15668         sgml/docbook/dsssl-stylesheets
15669       do
15670         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
15671         if test -r "$pgac_candidate/html/docbook.dsl" \
15672            && test -r "$pgac_candidate/print/docbook.dsl"
15673         then
15674           pgac_cv_path_stylesheets=$pgac_candidate
15675           break 3
15676         fi
15677       done
15678     done
15679   done
15680 fi
15681 fi
15682
15683 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
15684
15685 if test -n "$DOCBOOKSTYLE"; then
15686   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
15687 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
15688 else
15689   echo "$as_me:$LINENO: result: no" >&5
15690 echo "${ECHO_T}no" >&6
15691 fi
15692 if test -n "$DOCBOOKSTYLE"; then
15693   for ac_prog in collateindex.pl
15694 do
15695   # Extract the first word of "$ac_prog", so it can be a program name with args.
15696 set dummy $ac_prog; ac_word=$2
15697 echo "$as_me:$LINENO: checking for $ac_word" >&5
15698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15699 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
15700   echo $ECHO_N "(cached) $ECHO_C" >&6
15701 else
15702   case $COLLATEINDEX in
15703   [\\/]* | ?:[\\/]*)
15704   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
15705   ;;
15706   *)
15707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15708 for as_dir in $DOCBOOKSTYLE/bin $PATH
15709 do
15710   IFS=$as_save_IFS
15711   test -z "$as_dir" && as_dir=.
15712   for ac_exec_ext in '' $ac_executable_extensions; do
15713   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15714     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
15715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15716     break 2
15717   fi
15718 done
15719 done
15720
15721   ;;
15722 esac
15723 fi
15724 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
15725
15726 if test -n "$COLLATEINDEX"; then
15727   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
15728 echo "${ECHO_T}$COLLATEINDEX" >&6
15729 else
15730   echo "$as_me:$LINENO: result: no" >&5
15731 echo "${ECHO_T}no" >&6
15732 fi
15733
15734   test -n "$COLLATEINDEX" && break
15735 done
15736
15737 else
15738   for ac_prog in collateindex.pl
15739 do
15740   # Extract the first word of "$ac_prog", so it can be a program name with args.
15741 set dummy $ac_prog; ac_word=$2
15742 echo "$as_me:$LINENO: checking for $ac_word" >&5
15743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15744 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
15745   echo $ECHO_N "(cached) $ECHO_C" >&6
15746 else
15747   case $COLLATEINDEX in
15748   [\\/]* | ?:[\\/]*)
15749   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
15750   ;;
15751   *)
15752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15753 for as_dir in $PATH
15754 do
15755   IFS=$as_save_IFS
15756   test -z "$as_dir" && as_dir=.
15757   for ac_exec_ext in '' $ac_executable_extensions; do
15758   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15759     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
15760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15761     break 2
15762   fi
15763 done
15764 done
15765
15766   ;;
15767 esac
15768 fi
15769 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
15770
15771 if test -n "$COLLATEINDEX"; then
15772   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
15773 echo "${ECHO_T}$COLLATEINDEX" >&6
15774 else
15775   echo "$as_me:$LINENO: result: no" >&5
15776 echo "${ECHO_T}no" >&6
15777 fi
15778
15779   test -n "$COLLATEINDEX" && break
15780 done
15781
15782 fi
15783 for ac_prog in sgmlspl
15784 do
15785   # Extract the first word of "$ac_prog", so it can be a program name with args.
15786 set dummy $ac_prog; ac_word=$2
15787 echo "$as_me:$LINENO: checking for $ac_word" >&5
15788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15789 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
15790   echo $ECHO_N "(cached) $ECHO_C" >&6
15791 else
15792   if test -n "$SGMLSPL"; then
15793   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
15794 else
15795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15796 for as_dir in $PATH
15797 do
15798   IFS=$as_save_IFS
15799   test -z "$as_dir" && as_dir=.
15800   for ac_exec_ext in '' $ac_executable_extensions; do
15801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15802     ac_cv_prog_SGMLSPL="$ac_prog"
15803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15804     break 2
15805   fi
15806 done
15807 done
15808
15809 fi
15810 fi
15811 SGMLSPL=$ac_cv_prog_SGMLSPL
15812 if test -n "$SGMLSPL"; then
15813   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
15814 echo "${ECHO_T}$SGMLSPL" >&6
15815 else
15816   echo "$as_me:$LINENO: result: no" >&5
15817 echo "${ECHO_T}no" >&6
15818 fi
15819
15820   test -n "$SGMLSPL" && break
15821 done
15822
15823
15824
15825 # prepare build tree if outside source tree
15826 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
15827 # Note 2: /bin/pwd might be better than shell's built-in at getting
15828 #         a symlink-free name.
15829 if test "$no_create" != yes; then
15830   if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
15831     :
15832   else
15833     vpath_build=yes
15834
15835     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
15836     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
15837     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
15838       || { { echo "$as_me:$LINENO: error: failed" >&5
15839 echo "$as_me: error: failed" >&2;}
15840    { (exit 1); exit 1; }; }
15841     echo "$as_me:$LINENO: result: done" >&5
15842 echo "${ECHO_T}done" >&6
15843   fi
15844 fi
15845
15846
15847 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
15848
15849
15850 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}"
15851
15852
15853 ac_config_headers="$ac_config_headers src/include/pg_config.h"
15854
15855
15856 cat >confcache <<\_ACEOF
15857 # This file is a shell script that caches the results of configure
15858 # tests run on this system so they can be shared between configure
15859 # scripts and configure runs, see configure's option --config-cache.
15860 # It is not useful on other systems.  If it contains results you don't
15861 # want to keep, you may remove or edit it.
15862 #
15863 # config.status only pays attention to the cache file if you give it
15864 # the --recheck option to rerun configure.
15865 #
15866 # `ac_cv_env_foo' variables (set or unset) will be overriden when
15867 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15868 # following values.
15869
15870 _ACEOF
15871
15872 # The following way of writing the cache mishandles newlines in values,
15873 # but we know of no workaround that is simple, portable, and efficient.
15874 # So, don't put newlines in cache variables' values.
15875 # Ultrix sh set writes to stderr and can't be redirected directly,
15876 # and sets the high bit in the cache file unless we assign to the vars.
15877 {
15878   (set) 2>&1 |
15879     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15880     *ac_space=\ *)
15881       # `set' does not quote correctly, so add quotes (double-quote
15882       # substitution turns \\\\ into \\, and sed turns \\ into \).
15883       sed -n \
15884         "s/'/'\\\\''/g;
15885           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15886       ;;
15887     *)
15888       # `set' quotes correctly as required by POSIX, so do not add quotes.
15889       sed -n \
15890         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15891       ;;
15892     esac;
15893 } |
15894   sed '
15895      t clear
15896      : clear
15897      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15898      t end
15899      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15900      : end' >>confcache
15901 if cmp -s $cache_file confcache; then :; else
15902   if test -w $cache_file; then
15903     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15904     cat confcache >$cache_file
15905   else
15906     echo "not updating unwritable cache $cache_file"
15907   fi
15908 fi
15909 rm -f confcache
15910
15911 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15912 # Let make expand exec_prefix.
15913 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15914
15915 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15916 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15917 # trailing colons and then remove the whole line if VPATH becomes empty
15918 # (actually we leave an empty line to preserve line numbers).
15919 if test "x$srcdir" = x.; then
15920   ac_vpsub='/^[         ]*VPATH[        ]*=/{
15921 s/:*\$(srcdir):*/:/;
15922 s/:*\${srcdir}:*/:/;
15923 s/:*@srcdir@:*/:/;
15924 s/^\([^=]*=[    ]*\):*/\1/;
15925 s/:*$//;
15926 s/^[^=]*=[      ]*$//;
15927 }'
15928 fi
15929
15930 DEFS=-DHAVE_CONFIG_H
15931
15932
15933 : ${CONFIG_STATUS=./config.status}
15934 ac_clean_files_save=$ac_clean_files
15935 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15936 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15937 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15938 cat >$CONFIG_STATUS <<_ACEOF
15939 #! $SHELL
15940 # Generated by $as_me.
15941 # Run this file to recreate the current configuration.
15942 # Compiler output produced by configure, useful for debugging
15943 # configure, is in config.log if it exists.
15944
15945 debug=false
15946 SHELL=\${CONFIG_SHELL-$SHELL}
15947 _ACEOF
15948
15949 cat >>$CONFIG_STATUS <<\_ACEOF
15950
15951 ## --------------------- ##
15952 ## M4sh Initialization.  ##
15953 ## --------------------- ##
15954
15955 # Be Bourne compatible
15956 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15957   emulate sh
15958   NULLCMD=:
15959 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15960   set -o posix
15961 fi
15962
15963 # NLS nuisances.
15964 # Support unset when possible.
15965 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15966   as_unset=unset
15967 else
15968   as_unset=false
15969 fi
15970
15971 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
15972     { $as_unset LANG || test "${LANG+set}" != set; } ||
15973       { LANG=C; export LANG; }
15974 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
15975     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
15976       { LC_ALL=C; export LC_ALL; }
15977 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
15978     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
15979       { LC_TIME=C; export LC_TIME; }
15980 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
15981     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
15982       { LC_CTYPE=C; export LC_CTYPE; }
15983 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
15984     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
15985       { LANGUAGE=C; export LANGUAGE; }
15986 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
15987     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
15988       { LC_COLLATE=C; export LC_COLLATE; }
15989 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
15990     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
15991       { LC_NUMERIC=C; export LC_NUMERIC; }
15992 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
15993     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
15994       { LC_MESSAGES=C; export LC_MESSAGES; }
15995
15996
15997 # Name of the executable.
15998 as_me=`(basename "$0") 2>/dev/null ||
15999 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16000          X"$0" : 'X\(//\)$' \| \
16001          X"$0" : 'X\(/\)$' \| \
16002          .     : '\(.\)' 2>/dev/null ||
16003 echo X/"$0" |
16004     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16005           /^X\/\(\/\/\)$/{ s//\1/; q; }
16006           /^X\/\(\/\).*/{ s//\1/; q; }
16007           s/.*/./; q'`
16008
16009 # PATH needs CR, and LINENO needs CR and PATH.
16010 # Avoid depending upon Character Ranges.
16011 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16012 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16013 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16014 as_cr_digits='0123456789'
16015 as_cr_alnum=$as_cr_Letters$as_cr_digits
16016
16017 # The user is always right.
16018 if test "${PATH_SEPARATOR+set}" != set; then
16019   echo "#! /bin/sh" >conftest.sh
16020   echo  "exit 0"   >>conftest.sh
16021   chmod +x conftest.sh
16022   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16023     PATH_SEPARATOR=';'
16024   else
16025     PATH_SEPARATOR=:
16026   fi
16027   rm -f conftest.sh
16028 fi
16029
16030
16031   as_lineno_1=$LINENO
16032   as_lineno_2=$LINENO
16033   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16034   test "x$as_lineno_1" != "x$as_lineno_2" &&
16035   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16036   # Find who we are.  Look in the path if we contain no path at all
16037   # relative or not.
16038   case $0 in
16039     *[\\/]* ) as_myself=$0 ;;
16040     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16041 for as_dir in $PATH
16042 do
16043   IFS=$as_save_IFS
16044   test -z "$as_dir" && as_dir=.
16045   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16046 done
16047
16048        ;;
16049   esac
16050   # We did not find ourselves, most probably we were run as `sh COMMAND'
16051   # in which case we are not to be found in the path.
16052   if test "x$as_myself" = x; then
16053     as_myself=$0
16054   fi
16055   if test ! -f "$as_myself"; then
16056     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16057 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16058    { (exit 1); exit 1; }; }
16059   fi
16060   case $CONFIG_SHELL in
16061   '')
16062     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16063 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16064 do
16065   IFS=$as_save_IFS
16066   test -z "$as_dir" && as_dir=.
16067   for as_base in sh bash ksh sh5; do
16068          case $as_dir in
16069          /*)
16070            if ("$as_dir/$as_base" -c '
16071   as_lineno_1=$LINENO
16072   as_lineno_2=$LINENO
16073   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16074   test "x$as_lineno_1" != "x$as_lineno_2" &&
16075   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16076              CONFIG_SHELL=$as_dir/$as_base
16077              export CONFIG_SHELL
16078              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16079            fi;;
16080          esac
16081        done
16082 done
16083 ;;
16084   esac
16085
16086   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16087   # uniformly replaced by the line number.  The first 'sed' inserts a
16088   # line-number line before each line; the second 'sed' does the real
16089   # work.  The second script uses 'N' to pair each line-number line
16090   # with the numbered line, and appends trailing '-' during
16091   # substitution so that $LINENO is not a special case at line end.
16092   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16093   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16094   sed '=' <$as_myself |
16095     sed '
16096       N
16097       s,$,-,
16098       : loop
16099       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16100       t loop
16101       s,-$,,
16102       s,^['$as_cr_digits']*\n,,
16103     ' >$as_me.lineno &&
16104   chmod +x $as_me.lineno ||
16105     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16106 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16107    { (exit 1); exit 1; }; }
16108
16109   # Don't try to exec as it changes $[0], causing all sort of problems
16110   # (the dirname of $[0] is not the place where we might find the
16111   # original and so on.  Autoconf is especially sensible to this).
16112   . ./$as_me.lineno
16113   # Exit status is that of the last command.
16114   exit
16115 }
16116
16117
16118 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16119   *c*,-n*) ECHO_N= ECHO_C='
16120 ' ECHO_T='      ' ;;
16121   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16122   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16123 esac
16124
16125 if expr a : '\(a\)' >/dev/null 2>&1; then
16126   as_expr=expr
16127 else
16128   as_expr=false
16129 fi
16130
16131 rm -f conf$$ conf$$.exe conf$$.file
16132 echo >conf$$.file
16133 if ln -s conf$$.file conf$$ 2>/dev/null; then
16134   # We could just check for DJGPP; but this test a) works b) is more generic
16135   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16136   if test -f conf$$.exe; then
16137     # Don't use ln at all; we don't have any links
16138     as_ln_s='cp -p'
16139   else
16140     as_ln_s='ln -s'
16141   fi
16142 elif ln conf$$.file conf$$ 2>/dev/null; then
16143   as_ln_s=ln
16144 else
16145   as_ln_s='cp -p'
16146 fi
16147 rm -f conf$$ conf$$.exe conf$$.file
16148
16149 as_executable_p="test -f"
16150
16151 # Sed expression to map a string onto a valid CPP name.
16152 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16153
16154 # Sed expression to map a string onto a valid variable name.
16155 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16156
16157
16158 # IFS
16159 # We need space, tab and new line, in precisely that order.
16160 as_nl='
16161 '
16162 IFS="   $as_nl"
16163
16164 # CDPATH.
16165 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16166
16167 exec 6>&1
16168
16169 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16170 # report actual input values of CONFIG_FILES etc. instead of their
16171 # values after options handling.  Logging --version etc. is OK.
16172 exec 5>>config.log
16173 {
16174   echo
16175   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16176 ## Running $as_me. ##
16177 _ASBOX
16178 } >&5
16179 cat >&5 <<_CSEOF
16180
16181 This file was extended by PostgreSQL $as_me 7.3devel, which was
16182 generated by GNU Autoconf 2.53.  Invocation command line was
16183
16184   CONFIG_FILES    = $CONFIG_FILES
16185   CONFIG_HEADERS  = $CONFIG_HEADERS
16186   CONFIG_LINKS    = $CONFIG_LINKS
16187   CONFIG_COMMANDS = $CONFIG_COMMANDS
16188   $ $0 $@
16189
16190 _CSEOF
16191 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16192 echo >&5
16193 _ACEOF
16194
16195 # Files that config.status was made for.
16196 if test -n "$ac_config_files"; then
16197   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16198 fi
16199
16200 if test -n "$ac_config_headers"; then
16201   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16202 fi
16203
16204 if test -n "$ac_config_links"; then
16205   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16206 fi
16207
16208 if test -n "$ac_config_commands"; then
16209   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16210 fi
16211
16212 cat >>$CONFIG_STATUS <<\_ACEOF
16213
16214 ac_cs_usage="\
16215 \`$as_me' instantiates files from templates according to the
16216 current configuration.
16217
16218 Usage: $0 [OPTIONS] [FILE]...
16219
16220   -h, --help       print this help, then exit
16221   -V, --version    print version number, then exit
16222   -d, --debug      don't remove temporary files
16223       --recheck    update $as_me by reconfiguring in the same conditions
16224   --file=FILE[:TEMPLATE]
16225                    instantiate the configuration file FILE
16226   --header=FILE[:TEMPLATE]
16227                    instantiate the configuration header FILE
16228
16229 Configuration files:
16230 $config_files
16231
16232 Configuration headers:
16233 $config_headers
16234
16235 Configuration links:
16236 $config_links
16237
16238 Report bugs to <bug-autoconf@gnu.org>."
16239 _ACEOF
16240
16241 cat >>$CONFIG_STATUS <<_ACEOF
16242 ac_cs_version="\\
16243 PostgreSQL config.status 7.3devel
16244 configured by $0, generated by GNU Autoconf 2.53,
16245   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16246
16247 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16248 Free Software Foundation, Inc.
16249 This config.status script is free software; the Free Software Foundation
16250 gives unlimited permission to copy, distribute and modify it."
16251 srcdir=$srcdir
16252 _ACEOF
16253
16254 cat >>$CONFIG_STATUS <<\_ACEOF
16255 # If no file are specified by the user, then we need to provide default
16256 # value.  By we need to know if files were specified by the user.
16257 ac_need_defaults=:
16258 while test $# != 0
16259 do
16260   case $1 in
16261   --*=*)
16262     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16263     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16264     shift
16265     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16266     shift
16267     ;;
16268   -*);;
16269   *) # This is not an option, so the user has probably given explicit
16270      # arguments.
16271      ac_need_defaults=false;;
16272   esac
16273
16274   case $1 in
16275   # Handling of the options.
16276 _ACEOF
16277 cat >>$CONFIG_STATUS <<_ACEOF
16278   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16279     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16280     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16281 _ACEOF
16282 cat >>$CONFIG_STATUS <<\_ACEOF
16283   --version | --vers* | -V )
16284     echo "$ac_cs_version"; exit 0 ;;
16285   --he | --h)
16286     # Conflict between --help and --header
16287     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16288 Try \`$0 --help' for more information." >&5
16289 echo "$as_me: error: ambiguous option: $1
16290 Try \`$0 --help' for more information." >&2;}
16291    { (exit 1); exit 1; }; };;
16292   --help | --hel | -h )
16293     echo "$ac_cs_usage"; exit 0 ;;
16294   --debug | --d* | -d )
16295     debug=: ;;
16296   --file | --fil | --fi | --f )
16297     shift
16298     CONFIG_FILES="$CONFIG_FILES $1"
16299     ac_need_defaults=false;;
16300   --header | --heade | --head | --hea )
16301     shift
16302     CONFIG_HEADERS="$CONFIG_HEADERS $1"
16303     ac_need_defaults=false;;
16304
16305   # This is an error.
16306   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16307 Try \`$0 --help' for more information." >&5
16308 echo "$as_me: error: unrecognized option: $1
16309 Try \`$0 --help' for more information." >&2;}
16310    { (exit 1); exit 1; }; } ;;
16311
16312   *) ac_config_targets="$ac_config_targets $1" ;;
16313
16314   esac
16315   shift
16316 done
16317
16318 _ACEOF
16319
16320
16321
16322
16323
16324 cat >>$CONFIG_STATUS <<\_ACEOF
16325 for ac_config_target in $ac_config_targets
16326 do
16327   case "$ac_config_target" in
16328   # Handling of arguments.
16329   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
16330   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
16331   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
16332   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
16333   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
16334   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
16335   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
16336   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
16337   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
16338   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
16339   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16340 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16341    { (exit 1); exit 1; }; };;
16342   esac
16343 done
16344
16345 # If the user did not use the arguments to specify the items to instantiate,
16346 # then the envvar interface is used.  Set only those that are not.
16347 # We use the long form for the default assignment because of an extremely
16348 # bizarre bug on SunOS 4.1.3.
16349 if $ac_need_defaults; then
16350   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16351   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16352   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16353 fi
16354
16355 # Create a temporary directory, and hook for its removal unless debugging.
16356 $debug ||
16357 {
16358   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16359   trap '{ (exit 1); exit 1; }' 1 2 13 15
16360 }
16361
16362 # Create a (secure) tmp directory for tmp files.
16363 : ${TMPDIR=/tmp}
16364 {
16365   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16366   test -n "$tmp" && test -d "$tmp"
16367 }  ||
16368 {
16369   tmp=$TMPDIR/cs$$-$RANDOM
16370   (umask 077 && mkdir $tmp)
16371 } ||
16372 {
16373    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16374    { (exit 1); exit 1; }
16375 }
16376
16377 _ACEOF
16378
16379 cat >>$CONFIG_STATUS <<_ACEOF
16380
16381 #
16382 # CONFIG_FILES section.
16383 #
16384
16385 # No need to generate the scripts if there are no CONFIG_FILES.
16386 # This happens for instance when ./config.status config.h
16387 if test -n "\$CONFIG_FILES"; then
16388   # Protect against being on the right side of a sed subst in config.status.
16389   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16390    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16391 s,@SHELL@,$SHELL,;t t
16392 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16393 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16394 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16395 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16396 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16397 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16398 s,@exec_prefix@,$exec_prefix,;t t
16399 s,@prefix@,$prefix,;t t
16400 s,@program_transform_name@,$program_transform_name,;t t
16401 s,@bindir@,$bindir,;t t
16402 s,@sbindir@,$sbindir,;t t
16403 s,@libexecdir@,$libexecdir,;t t
16404 s,@datadir@,$datadir,;t t
16405 s,@sysconfdir@,$sysconfdir,;t t
16406 s,@sharedstatedir@,$sharedstatedir,;t t
16407 s,@localstatedir@,$localstatedir,;t t
16408 s,@libdir@,$libdir,;t t
16409 s,@includedir@,$includedir,;t t
16410 s,@oldincludedir@,$oldincludedir,;t t
16411 s,@infodir@,$infodir,;t t
16412 s,@mandir@,$mandir,;t t
16413 s,@build_alias@,$build_alias,;t t
16414 s,@host_alias@,$host_alias,;t t
16415 s,@target_alias@,$target_alias,;t t
16416 s,@DEFS@,$DEFS,;t t
16417 s,@ECHO_C@,$ECHO_C,;t t
16418 s,@ECHO_N@,$ECHO_N,;t t
16419 s,@ECHO_T@,$ECHO_T,;t t
16420 s,@LIBS@,$LIBS,;t t
16421 s,@docdir@,$docdir,;t t
16422 s,@configure_args@,$configure_args,;t t
16423 s,@build@,$build,;t t
16424 s,@build_cpu@,$build_cpu,;t t
16425 s,@build_vendor@,$build_vendor,;t t
16426 s,@build_os@,$build_os,;t t
16427 s,@host@,$host,;t t
16428 s,@host_cpu@,$host_cpu,;t t
16429 s,@host_vendor@,$host_vendor,;t t
16430 s,@host_os@,$host_os,;t t
16431 s,@PORTNAME@,$PORTNAME,;t t
16432 s,@TAS@,$TAS,;t t
16433 s,@MULTIBYTE@,$MULTIBYTE,;t t
16434 s,@enable_nls@,$enable_nls,;t t
16435 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
16436 s,@default_port@,$default_port,;t t
16437 s,@enable_shared@,$enable_shared,;t t
16438 s,@enable_rpath@,$enable_rpath,;t t
16439 s,@enable_debug@,$enable_debug,;t t
16440 s,@CC@,$CC,;t t
16441 s,@CFLAGS@,$CFLAGS,;t t
16442 s,@LDFLAGS@,$LDFLAGS,;t t
16443 s,@CPPFLAGS@,$CPPFLAGS,;t t
16444 s,@ac_ct_CC@,$ac_ct_CC,;t t
16445 s,@EXEEXT@,$EXEEXT,;t t
16446 s,@OBJEXT@,$OBJEXT,;t t
16447 s,@CPP@,$CPP,;t t
16448 s,@GCC@,$GCC,;t t
16449 s,@autodepend@,$autodepend,;t t
16450 s,@INCLUDES@,$INCLUDES,;t t
16451 s,@with_tcl@,$with_tcl,;t t
16452 s,@with_tk@,$with_tk,;t t
16453 s,@with_perl@,$with_perl,;t t
16454 s,@with_python@,$with_python,;t t
16455 s,@ANT@,$ANT,;t t
16456 s,@with_java@,$with_java,;t t
16457 s,@with_krb4@,$with_krb4,;t t
16458 s,@with_krb5@,$with_krb5,;t t
16459 s,@krb_srvtab@,$krb_srvtab,;t t
16460 s,@with_pam@,$with_pam,;t t
16461 s,@with_openssl@,$with_openssl,;t t
16462 s,@enable_odbc@,$enable_odbc,;t t
16463 s,@with_unixodbc@,$with_unixodbc,;t t
16464 s,@with_iodbc@,$with_iodbc,;t t
16465 s,@odbcinst_ini_dir@,$odbcinst_ini_dir,;t t
16466 s,@ELF_SYS@,$ELF_SYS,;t t
16467 s,@AWK@,$AWK,;t t
16468 s,@FLEX@,$FLEX,;t t
16469 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
16470 s,@LN_S@,$LN_S,;t t
16471 s,@LD@,$LD,;t t
16472 s,@with_gnu_ld@,$with_gnu_ld,;t t
16473 s,@ld_R_works@,$ld_R_works,;t t
16474 s,@RANLIB@,$RANLIB,;t t
16475 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16476 s,@LORDER@,$LORDER,;t t
16477 s,@TAR@,$TAR,;t t
16478 s,@STRIP@,$STRIP,;t t
16479 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16480 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
16481 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
16482 s,@YACC@,$YACC,;t t
16483 s,@YFLAGS@,$YFLAGS,;t t
16484 s,@WISH@,$WISH,;t t
16485 s,@PERL@,$PERL,;t t
16486 s,@perl_installsitearch@,$perl_installsitearch,;t t
16487 s,@perl_installman3dir@,$perl_installman3dir,;t t
16488 s,@perl_archlibexp@,$perl_archlibexp,;t t
16489 s,@perl_privlibexp@,$perl_privlibexp,;t t
16490 s,@perl_useshrplib@,$perl_useshrplib,;t t
16491 s,@perl_man3ext@,$perl_man3ext,;t t
16492 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
16493 s,@PYTHON@,$PYTHON,;t t
16494 s,@python_version@,$python_version,;t t
16495 s,@python_prefix@,$python_prefix,;t t
16496 s,@python_execprefix@,$python_execprefix,;t t
16497 s,@python_configdir@,$python_configdir,;t t
16498 s,@python_moduledir@,$python_moduledir,;t t
16499 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
16500 s,@python_includespec@,$python_includespec,;t t
16501 s,@python_libspec@,$python_libspec,;t t
16502 s,@LIBOBJS@,$LIBOBJS,;t t
16503 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
16504 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
16505 s,@MSGFMT@,$MSGFMT,;t t
16506 s,@MSGMERGE@,$MSGMERGE,;t t
16507 s,@XGETTEXT@,$XGETTEXT,;t t
16508 s,@localedir@,$localedir,;t t
16509 s,@TCLSH@,$TCLSH,;t t
16510 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
16511 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
16512 s,@TCL_LIBS@,$TCL_LIBS,;t t
16513 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
16514 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
16515 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
16516 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
16517 s,@TK_LIBS@,$TK_LIBS,;t t
16518 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
16519 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
16520 s,@NSGMLS@,$NSGMLS,;t t
16521 s,@JADE@,$JADE,;t t
16522 s,@have_docbook@,$have_docbook,;t t
16523 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
16524 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
16525 s,@SGMLSPL@,$SGMLSPL,;t t
16526 s,@vpath_build@,$vpath_build,;t t
16527 CEOF
16528
16529 _ACEOF
16530
16531   cat >>$CONFIG_STATUS <<\_ACEOF
16532   # Split the substitutions into bite-sized pieces for seds with
16533   # small command number limits, like on Digital OSF/1 and HP-UX.
16534   ac_max_sed_lines=48
16535   ac_sed_frag=1 # Number of current file.
16536   ac_beg=1 # First line for current file.
16537   ac_end=$ac_max_sed_lines # Line after last line for current file.
16538   ac_more_lines=:
16539   ac_sed_cmds=
16540   while $ac_more_lines; do
16541     if test $ac_beg -gt 1; then
16542       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16543     else
16544       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16545     fi
16546     if test ! -s $tmp/subs.frag; then
16547       ac_more_lines=false
16548     else
16549       # The purpose of the label and of the branching condition is to
16550       # speed up the sed processing (if there are no `@' at all, there
16551       # is no need to browse any of the substitutions).
16552       # These are the two extra sed commands mentioned above.
16553       (echo ':t
16554   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16555       if test -z "$ac_sed_cmds"; then
16556         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16557       else
16558         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16559       fi
16560       ac_sed_frag=`expr $ac_sed_frag + 1`
16561       ac_beg=$ac_end
16562       ac_end=`expr $ac_end + $ac_max_sed_lines`
16563     fi
16564   done
16565   if test -z "$ac_sed_cmds"; then
16566     ac_sed_cmds=cat
16567   fi
16568 fi # test -n "$CONFIG_FILES"
16569
16570 _ACEOF
16571 cat >>$CONFIG_STATUS <<\_ACEOF
16572 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16573   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16574   case $ac_file in
16575   - | *:- | *:-:* ) # input from stdin
16576         cat >$tmp/stdin
16577         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16578         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16579   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16580         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16581   * )   ac_file_in=$ac_file.in ;;
16582   esac
16583
16584   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16585   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16586 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16587          X"$ac_file" : 'X\(//\)[^/]' \| \
16588          X"$ac_file" : 'X\(//\)$' \| \
16589          X"$ac_file" : 'X\(/\)' \| \
16590          .     : '\(.\)' 2>/dev/null ||
16591 echo X"$ac_file" |
16592     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16593           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16594           /^X\(\/\/\)$/{ s//\1/; q; }
16595           /^X\(\/\).*/{ s//\1/; q; }
16596           s/.*/./; q'`
16597   { case "$ac_dir" in
16598   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16599   *)                      as_incr_dir=.;;
16600 esac
16601 as_dummy="$ac_dir"
16602 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16603   case $as_mkdir_dir in
16604     # Skip DOS drivespec
16605     ?:) as_incr_dir=$as_mkdir_dir ;;
16606     *)
16607       as_incr_dir=$as_incr_dir/$as_mkdir_dir
16608       test -d "$as_incr_dir" ||
16609         mkdir "$as_incr_dir" ||
16610         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16611 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16612    { (exit 1); exit 1; }; }
16613     ;;
16614   esac
16615 done; }
16616
16617   ac_builddir=.
16618
16619 if test "$ac_dir" != .; then
16620   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16621   # A "../" for each directory in $ac_dir_suffix.
16622   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16623 else
16624   ac_dir_suffix= ac_top_builddir=
16625 fi
16626
16627 case $srcdir in
16628   .)  # No --srcdir option.  We are building in place.
16629     ac_srcdir=.
16630     if test -z "$ac_top_builddir"; then
16631        ac_top_srcdir=.
16632     else
16633        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16634     fi ;;
16635   [\\/]* | ?:[\\/]* )  # Absolute path.
16636     ac_srcdir=$srcdir$ac_dir_suffix;
16637     ac_top_srcdir=$srcdir ;;
16638   *) # Relative path.
16639     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16640     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16641 esac
16642 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16643 # absolute.
16644 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16645 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16646 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16647 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16648
16649
16650
16651   if test x"$ac_file" != x-; then
16652     { echo "$as_me:$LINENO: creating $ac_file" >&5
16653 echo "$as_me: creating $ac_file" >&6;}
16654     rm -f "$ac_file"
16655   fi
16656   # Let's still pretend it is `configure' which instantiates (i.e., don't
16657   # use $as_me), people would be surprised to read:
16658   #    /* config.h.  Generated by config.status.  */
16659   if test x"$ac_file" = x-; then
16660     configure_input=
16661   else
16662     configure_input="$ac_file.  "
16663   fi
16664   configure_input=$configure_input"Generated from `echo $ac_file_in |
16665                                      sed 's,.*/,,'` by configure."
16666
16667   # First look for the input files in the build tree, otherwise in the
16668   # src tree.
16669   ac_file_inputs=`IFS=:
16670     for f in $ac_file_in; do
16671       case $f in
16672       -) echo $tmp/stdin ;;
16673       [\\/$]*)
16674          # Absolute (can't be DOS-style, as IFS=:)
16675          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16676 echo "$as_me: error: cannot find input file: $f" >&2;}
16677    { (exit 1); exit 1; }; }
16678          echo $f;;
16679       *) # Relative
16680          if test -f "$f"; then
16681            # Build tree
16682            echo $f
16683          elif test -f "$srcdir/$f"; then
16684            # Source tree
16685            echo $srcdir/$f
16686          else
16687            # /dev/null tree
16688            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16689 echo "$as_me: error: cannot find input file: $f" >&2;}
16690    { (exit 1); exit 1; }; }
16691          fi;;
16692       esac
16693     done` || { (exit 1); exit 1; }
16694 _ACEOF
16695 cat >>$CONFIG_STATUS <<_ACEOF
16696   sed "$ac_vpsub
16697 $extrasub
16698 _ACEOF
16699 cat >>$CONFIG_STATUS <<\_ACEOF
16700 :t
16701 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16702 s,@configure_input@,$configure_input,;t t
16703 s,@srcdir@,$ac_srcdir,;t t
16704 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16705 s,@top_srcdir@,$ac_top_srcdir,;t t
16706 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16707 s,@builddir@,$ac_builddir,;t t
16708 s,@abs_builddir@,$ac_abs_builddir,;t t
16709 s,@top_builddir@,$ac_top_builddir,;t t
16710 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16711 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16712   rm -f $tmp/stdin
16713   if test x"$ac_file" != x-; then
16714     mv $tmp/out $ac_file
16715   else
16716     cat $tmp/out
16717     rm -f $tmp/out
16718   fi
16719
16720 done
16721 _ACEOF
16722 cat >>$CONFIG_STATUS <<\_ACEOF
16723
16724 #
16725 # CONFIG_HEADER section.
16726 #
16727
16728 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16729 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16730 #
16731 # ac_d sets the value in "#define NAME VALUE" lines.
16732 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
16733 ac_dB='[        ].*$,\1#\2'
16734 ac_dC=' '
16735 ac_dD=',;t'
16736 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16737 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16738 ac_uB='$,\1#\2define\3'
16739 ac_uC=' '
16740 ac_uD=',;t'
16741
16742 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16743   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16744   case $ac_file in
16745   - | *:- | *:-:* ) # input from stdin
16746         cat >$tmp/stdin
16747         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16748         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16749   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16750         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16751   * )   ac_file_in=$ac_file.in ;;
16752   esac
16753
16754   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16755 echo "$as_me: creating $ac_file" >&6;}
16756
16757   # First look for the input files in the build tree, otherwise in the
16758   # src tree.
16759   ac_file_inputs=`IFS=:
16760     for f in $ac_file_in; do
16761       case $f in
16762       -) echo $tmp/stdin ;;
16763       [\\/$]*)
16764          # Absolute (can't be DOS-style, as IFS=:)
16765          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16766 echo "$as_me: error: cannot find input file: $f" >&2;}
16767    { (exit 1); exit 1; }; }
16768          echo $f;;
16769       *) # Relative
16770          if test -f "$f"; then
16771            # Build tree
16772            echo $f
16773          elif test -f "$srcdir/$f"; then
16774            # Source tree
16775            echo $srcdir/$f
16776          else
16777            # /dev/null tree
16778            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16779 echo "$as_me: error: cannot find input file: $f" >&2;}
16780    { (exit 1); exit 1; }; }
16781          fi;;
16782       esac
16783     done` || { (exit 1); exit 1; }
16784   # Remove the trailing spaces.
16785   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
16786
16787 _ACEOF
16788
16789 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16790 # `conftest.undefs', that substitutes the proper values into
16791 # config.h.in to produce config.h.  The first handles `#define'
16792 # templates, and the second `#undef' templates.
16793 # And first: Protect against being on the right side of a sed subst in
16794 # config.status.  Protect against being in an unquoted here document
16795 # in config.status.
16796 rm -f conftest.defines conftest.undefs
16797 # Using a here document instead of a string reduces the quoting nightmare.
16798 # Putting comments in sed scripts is not portable.
16799 #
16800 # `end' is used to avoid that the second main sed command (meant for
16801 # 0-ary CPP macros) applies to n-ary macro definitions.
16802 # See the Autoconf documentation for `clear'.
16803 cat >confdef2sed.sed <<\_ACEOF
16804 s/[\\&,]/\\&/g
16805 s,[\\$`],\\&,g
16806 t clear
16807 : clear
16808 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16809 t end
16810 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16811 : end
16812 _ACEOF
16813 # If some macros were called several times there might be several times
16814 # the same #defines, which is useless.  Nevertheless, we may not want to
16815 # sort them, since we want the *last* AC-DEFINE to be honored.
16816 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16817 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16818 rm -f confdef2sed.sed
16819
16820 # This sed command replaces #undef with comments.  This is necessary, for
16821 # example, in the case of _POSIX_SOURCE, which is predefined and required
16822 # on some systems where configure will not decide to define it.
16823 cat >>conftest.undefs <<\_ACEOF
16824 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16825 _ACEOF
16826
16827 # Break up conftest.defines because some shells have a limit on the size
16828 # of here documents, and old seds have small limits too (100 cmds).
16829 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16830 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16831 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16832 echo '  :' >>$CONFIG_STATUS
16833 rm -f conftest.tail
16834 while grep . conftest.defines >/dev/null
16835 do
16836   # Write a limited-size here document to $tmp/defines.sed.
16837   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16838   # Speed up: don't consider the non `#define' lines.
16839   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
16840   # Work around the forget-to-reset-the-flag bug.
16841   echo 't clr' >>$CONFIG_STATUS
16842   echo ': clr' >>$CONFIG_STATUS
16843   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16844   echo 'CEOF
16845   sed -f $tmp/defines.sed $tmp/in >$tmp/out
16846   rm -f $tmp/in
16847   mv $tmp/out $tmp/in
16848 ' >>$CONFIG_STATUS
16849   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16850   rm -f conftest.defines
16851   mv conftest.tail conftest.defines
16852 done
16853 rm -f conftest.defines
16854 echo '  fi # egrep' >>$CONFIG_STATUS
16855 echo >>$CONFIG_STATUS
16856
16857 # Break up conftest.undefs because some shells have a limit on the size
16858 # of here documents, and old seds have small limits too (100 cmds).
16859 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16860 rm -f conftest.tail
16861 while grep . conftest.undefs >/dev/null
16862 do
16863   # Write a limited-size here document to $tmp/undefs.sed.
16864   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16865   # Speed up: don't consider the non `#undef'
16866   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16867   # Work around the forget-to-reset-the-flag bug.
16868   echo 't clr' >>$CONFIG_STATUS
16869   echo ': clr' >>$CONFIG_STATUS
16870   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16871   echo 'CEOF
16872   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16873   rm -f $tmp/in
16874   mv $tmp/out $tmp/in
16875 ' >>$CONFIG_STATUS
16876   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16877   rm -f conftest.undefs
16878   mv conftest.tail conftest.undefs
16879 done
16880 rm -f conftest.undefs
16881
16882 cat >>$CONFIG_STATUS <<\_ACEOF
16883   # Let's still pretend it is `configure' which instantiates (i.e., don't
16884   # use $as_me), people would be surprised to read:
16885   #    /* config.h.  Generated by config.status.  */
16886   if test x"$ac_file" = x-; then
16887     echo "/* Generated by configure.  */" >$tmp/config.h
16888   else
16889     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16890   fi
16891   cat $tmp/in >>$tmp/config.h
16892   rm -f $tmp/in
16893   if test x"$ac_file" != x-; then
16894     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
16895       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16896 echo "$as_me: $ac_file is unchanged" >&6;}
16897     else
16898       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16899 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16900          X"$ac_file" : 'X\(//\)[^/]' \| \
16901          X"$ac_file" : 'X\(//\)$' \| \
16902          X"$ac_file" : 'X\(/\)' \| \
16903          .     : '\(.\)' 2>/dev/null ||
16904 echo X"$ac_file" |
16905     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16906           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16907           /^X\(\/\/\)$/{ s//\1/; q; }
16908           /^X\(\/\).*/{ s//\1/; q; }
16909           s/.*/./; q'`
16910       { case "$ac_dir" in
16911   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16912   *)                      as_incr_dir=.;;
16913 esac
16914 as_dummy="$ac_dir"
16915 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16916   case $as_mkdir_dir in
16917     # Skip DOS drivespec
16918     ?:) as_incr_dir=$as_mkdir_dir ;;
16919     *)
16920       as_incr_dir=$as_incr_dir/$as_mkdir_dir
16921       test -d "$as_incr_dir" ||
16922         mkdir "$as_incr_dir" ||
16923         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16924 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16925    { (exit 1); exit 1; }; }
16926     ;;
16927   esac
16928 done; }
16929
16930       rm -f $ac_file
16931       mv $tmp/config.h $ac_file
16932     fi
16933   else
16934     cat $tmp/config.h
16935     rm -f $tmp/config.h
16936   fi
16937   # Run the commands associated with the file.
16938   case $ac_file in
16939     src/include/pg_config.h )
16940 # Update timestamp for pg_config.h (see Makefile.global)
16941 echo >src/include/stamp-h
16942  ;;
16943   esac
16944 done
16945 _ACEOF
16946 cat >>$CONFIG_STATUS <<\_ACEOF
16947
16948 #
16949 # CONFIG_LINKS section.
16950 #
16951
16952 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
16953   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16954   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16955
16956   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
16957 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
16958
16959   if test ! -r $srcdir/$ac_source; then
16960     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
16961 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
16962    { (exit 1); exit 1; }; }
16963   fi
16964   rm -f $ac_dest
16965
16966   # Make relative symlinks.
16967   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
16968 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16969          X"$ac_dest" : 'X\(//\)[^/]' \| \
16970          X"$ac_dest" : 'X\(//\)$' \| \
16971          X"$ac_dest" : 'X\(/\)' \| \
16972          .     : '\(.\)' 2>/dev/null ||
16973 echo X"$ac_dest" |
16974     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16975           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16976           /^X\(\/\/\)$/{ s//\1/; q; }
16977           /^X\(\/\).*/{ s//\1/; q; }
16978           s/.*/./; q'`
16979   { case "$ac_dest_dir" in
16980   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16981   *)                      as_incr_dir=.;;
16982 esac
16983 as_dummy="$ac_dest_dir"
16984 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16985   case $as_mkdir_dir in
16986     # Skip DOS drivespec
16987     ?:) as_incr_dir=$as_mkdir_dir ;;
16988     *)
16989       as_incr_dir=$as_incr_dir/$as_mkdir_dir
16990       test -d "$as_incr_dir" ||
16991         mkdir "$as_incr_dir" ||
16992         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
16993 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
16994    { (exit 1); exit 1; }; }
16995     ;;
16996   esac
16997 done; }
16998
16999   ac_builddir=.
17000
17001 if test "$ac_dest_dir" != .; then
17002   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17003   # A "../" for each directory in $ac_dir_suffix.
17004   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17005 else
17006   ac_dir_suffix= ac_top_builddir=
17007 fi
17008
17009 case $srcdir in
17010   .)  # No --srcdir option.  We are building in place.
17011     ac_srcdir=.
17012     if test -z "$ac_top_builddir"; then
17013        ac_top_srcdir=.
17014     else
17015        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17016     fi ;;
17017   [\\/]* | ?:[\\/]* )  # Absolute path.
17018     ac_srcdir=$srcdir$ac_dir_suffix;
17019     ac_top_srcdir=$srcdir ;;
17020   *) # Relative path.
17021     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17022     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17023 esac
17024 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
17025 # absolute.
17026 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
17027 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
17028 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
17029 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
17030
17031
17032   case $srcdir in
17033   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17034       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17035   esac
17036
17037   # Make a symlink if possible; otherwise try a hard link.
17038   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17039     ln $srcdir/$ac_source $ac_dest ||
17040     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
17041 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
17042    { (exit 1); exit 1; }; }
17043 done
17044 _ACEOF
17045
17046 cat >>$CONFIG_STATUS <<\_ACEOF
17047
17048 { (exit 0); exit 0; }
17049 _ACEOF
17050 chmod +x $CONFIG_STATUS
17051 ac_clean_files=$ac_clean_files_save
17052
17053
17054 # configure is writing to config.log, and then calls config.status.
17055 # config.status does its own redirection, appending to config.log.
17056 # Unfortunately, on DOS this fails, as config.log is still kept open
17057 # by configure, so config.status won't be able to write to it; its
17058 # output is simply discarded.  So we exec the FD to /dev/null,
17059 # effectively closing config.log, so it can be properly (re)opened and
17060 # appended to by config.status.  When coming back to configure, we
17061 # need to make the FD available again.
17062 if test "$no_create" != yes; then
17063   ac_cs_success=:
17064   exec 5>/dev/null
17065   $SHELL $CONFIG_STATUS || ac_cs_success=false
17066   exec 5>>config.log
17067   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17068   # would make configure fail if this is the last instruction.
17069   $ac_cs_success || { (exit 1); exit 1; }
17070 fi
17071