]> granicus.if.org Git - postgresql/blob - configure
Clean up after pygresql removal: adjust/remove documentation and remove
[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.4beta2.
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 2003 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.4beta2'
262 PACKAGE_STRING='PostgreSQL 7.4beta2'
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.4beta2 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.4beta2:";;
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-nls[=LANGUAGES]  enable Native Language Support
842   --disable-shared        do not build shared libraries
843   --disable-rpath         do not embed shared library search path in executables
844   --enable-debug          build with debugging symbols (-g)
845   --enable-depend         turn on automatic dependency tracking
846   --enable-cassert        enable assertion checks (for debugging)
847   --enable-thread-safety  make client libraries thread-safe
848   --disable-largefile     omit support for large files
849
850 Optional Packages:
851   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
852   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
853
854   --with-includes=DIRS    look for additional header files in DIRS
855   --with-libraries=DIRS   look for additional libraries in DIRS
856   --with-libs=DIRS        alternative spelling of --with-libraries
857   --with-pgport=PORTNUM   change default port number 5432
858   --with-tcl              build Tcl and Tk interfaces
859   --without-tk            do not build Tk interfaces if Tcl is enabled
860   --with-tclconfig=DIR    tclConfig.sh and tkConfig.sh are in DIR
861   --with-tkconfig=DIR     tkConfig.sh is in DIR
862   --with-perl             build Perl modules (PL/Perl)
863   --with-python           build Python modules (PL/Python)
864   --with-java             build JDBC interface and Java tools
865   --with-krb4[=DIR]       build with Kerberos 4 support [/usr/athena]
866   --with-krb5[=DIR]       build with Kerberos 5 support [/usr/athena]
867   --with-krb-srvnam=NAME  name of the service principal in Kerberos postgres
868   --with-pam              build with PAM support
869   --with-rendezvous       build with Rendezvous support
870   --with-openssl[=DIR]    build with OpenSSL support [/usr/local/ssl]
871   --without-readline      do not use Readline
872   --without-zlib          do not use Zlib
873   --with-gnu-ld           assume the C compiler uses GNU ld default=no
874
875 Some influential environment variables:
876   CC          C compiler command
877   CFLAGS      C compiler flags
878   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
879               nonstandard directory <lib dir>
880   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
881               headers in a nonstandard directory <include dir>
882   CPP         C preprocessor
883   DOCBOOKSTYLE
884               location of DocBook stylesheets
885
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
888
889 Report bugs to <pgsql-bugs@postgresql.org>.
890 _ACEOF
891 fi
892
893 if test "$ac_init_help" = "recursive"; then
894   # If there are subdirs, report their specific --help.
895   ac_popdir=`pwd`
896   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897     test -d $ac_dir || continue
898     ac_builddir=.
899
900 if test "$ac_dir" != .; then
901   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902   # A "../" for each directory in $ac_dir_suffix.
903   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904 else
905   ac_dir_suffix= ac_top_builddir=
906 fi
907
908 case $srcdir in
909   .)  # No --srcdir option.  We are building in place.
910     ac_srcdir=.
911     if test -z "$ac_top_builddir"; then
912        ac_top_srcdir=.
913     else
914        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915     fi ;;
916   [\\/]* | ?:[\\/]* )  # Absolute path.
917     ac_srcdir=$srcdir$ac_dir_suffix;
918     ac_top_srcdir=$srcdir ;;
919   *) # Relative path.
920     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921     ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 esac
923 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
924 # absolute.
925 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
926 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
927 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
928 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
929
930     cd $ac_dir
931     # Check for guested configure; otherwise get Cygnus style configure.
932     if test -f $ac_srcdir/configure.gnu; then
933       echo
934       $SHELL $ac_srcdir/configure.gnu  --help=recursive
935     elif test -f $ac_srcdir/configure; then
936       echo
937       $SHELL $ac_srcdir/configure  --help=recursive
938     elif test -f $ac_srcdir/configure.ac ||
939            test -f $ac_srcdir/configure.in; then
940       echo
941       $ac_configure --help
942     else
943       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
944     fi
945     cd $ac_popdir
946   done
947 fi
948
949 test -n "$ac_init_help" && exit 0
950 if $ac_init_version; then
951   cat <<\_ACEOF
952 PostgreSQL configure 7.4beta2
953 generated by GNU Autoconf 2.53
954
955 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
956 Free Software Foundation, Inc.
957 This configure script is free software; the Free Software Foundation
958 gives unlimited permission to copy, distribute and modify it.
959
960 Copyright 2003 PostgreSQL Global Development Group
961 _ACEOF
962   exit 0
963 fi
964 exec 5>config.log
965 cat >&5 <<_ACEOF
966 This file contains any messages produced by compilers while
967 running configure, to aid debugging if configure makes a mistake.
968
969 It was created by PostgreSQL $as_me 7.4beta2, which was
970 generated by GNU Autoconf 2.53.  Invocation command line was
971
972   $ $0 $@
973
974 _ACEOF
975 {
976 cat <<_ASUNAME
977 ## --------- ##
978 ## Platform. ##
979 ## --------- ##
980
981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
986
987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
988 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
989
990 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
991 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
993 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
994 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
995 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
996 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
997
998 _ASUNAME
999
1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1001 for as_dir in $PATH
1002 do
1003   IFS=$as_save_IFS
1004   test -z "$as_dir" && as_dir=.
1005   echo "PATH: $as_dir"
1006 done
1007
1008 } >&5
1009
1010 cat >&5 <<_ACEOF
1011
1012
1013 ## ----------- ##
1014 ## Core tests. ##
1015 ## ----------- ##
1016
1017 _ACEOF
1018
1019
1020 # Keep a trace of the command line.
1021 # Strip out --no-create and --no-recursion so they do not pile up.
1022 # Also quote any args containing shell meta-characters.
1023 ac_configure_args=
1024 ac_sep=
1025 for ac_arg
1026 do
1027   case $ac_arg in
1028   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029   | --no-cr | --no-c | -n ) continue ;;
1030   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032     continue ;;
1033   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1034     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1035   esac
1036   case " $ac_configure_args " in
1037     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1038     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1039        ac_sep=" " ;;
1040   esac
1041   # Get rid of the leading space.
1042 done
1043
1044 # When interrupted or exit'd, cleanup temporary files, and complete
1045 # config.log.  We remove comments because anyway the quotes in there
1046 # would cause problems or look ugly.
1047 # WARNING: Be sure not to use single quotes in there, as some shells,
1048 # such as our DU 5.0 friend, will then `close' the trap.
1049 trap 'exit_status=$?
1050   # Save into config.log some information that might help in debugging.
1051   {
1052     echo
1053     cat <<\_ASBOX
1054 ## ---------------- ##
1055 ## Cache variables. ##
1056 ## ---------------- ##
1057 _ASBOX
1058     echo
1059     # The following way of writing the cache mishandles newlines in values,
1060 {
1061   (set) 2>&1 |
1062     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1063     *ac_space=\ *)
1064       sed -n \
1065         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1066           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1067       ;;
1068     *)
1069       sed -n \
1070         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1071       ;;
1072     esac;
1073 }
1074     echo
1075     if test -s confdefs.h; then
1076       cat <<\_ASBOX
1077 ## ----------- ##
1078 ## confdefs.h. ##
1079 ## ----------- ##
1080 _ASBOX
1081       echo
1082       sed "/^$/d" confdefs.h
1083       echo
1084     fi
1085     test "$ac_signal" != 0 &&
1086       echo "$as_me: caught signal $ac_signal"
1087     echo "$as_me: exit $exit_status"
1088   } >&5
1089   rm -f core core.* *.core &&
1090   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1091     exit $exit_status
1092      ' 0
1093 for ac_signal in 1 2 13 15; do
1094   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1095 done
1096 ac_signal=0
1097
1098 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1099 rm -rf conftest* confdefs.h
1100 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1101 echo >confdefs.h
1102
1103 # Predefined preprocessor variables.
1104
1105 cat >>confdefs.h <<_ACEOF
1106 #define PACKAGE_NAME "$PACKAGE_NAME"
1107 _ACEOF
1108
1109
1110 cat >>confdefs.h <<_ACEOF
1111 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1112 _ACEOF
1113
1114
1115 cat >>confdefs.h <<_ACEOF
1116 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1117 _ACEOF
1118
1119
1120 cat >>confdefs.h <<_ACEOF
1121 #define PACKAGE_STRING "$PACKAGE_STRING"
1122 _ACEOF
1123
1124
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1127 _ACEOF
1128
1129
1130 # Let the site file select an alternate cache file if it wants to.
1131 # Prefer explicitly selected file to automatically selected ones.
1132 if test -z "$CONFIG_SITE"; then
1133   if test "x$prefix" != xNONE; then
1134     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1135   else
1136     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1137   fi
1138 fi
1139 for ac_site_file in $CONFIG_SITE; do
1140   if test -r "$ac_site_file"; then
1141     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1142 echo "$as_me: loading site script $ac_site_file" >&6;}
1143     sed 's/^/| /' "$ac_site_file" >&5
1144     . "$ac_site_file"
1145   fi
1146 done
1147
1148 if test -r "$cache_file"; then
1149   # Some versions of bash will fail to source /dev/null (special
1150   # files actually), so we avoid doing that.
1151   if test -f "$cache_file"; then
1152     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1153 echo "$as_me: loading cache $cache_file" >&6;}
1154     case $cache_file in
1155       [\\/]* | ?:[\\/]* ) . $cache_file;;
1156       *)                      . ./$cache_file;;
1157     esac
1158   fi
1159 else
1160   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1161 echo "$as_me: creating cache $cache_file" >&6;}
1162   >$cache_file
1163 fi
1164
1165 # Check that the precious variables saved in the cache have kept the same
1166 # value.
1167 ac_cache_corrupted=false
1168 for ac_var in `(set) 2>&1 |
1169                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1170   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1171   eval ac_new_set=\$ac_env_${ac_var}_set
1172   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1173   eval ac_new_val="\$ac_env_${ac_var}_value"
1174   case $ac_old_set,$ac_new_set in
1175     set,)
1176       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1177 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1178       ac_cache_corrupted=: ;;
1179     ,set)
1180       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1181 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1182       ac_cache_corrupted=: ;;
1183     ,);;
1184     *)
1185       if test "x$ac_old_val" != "x$ac_new_val"; then
1186         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1187 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1188         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1189 echo "$as_me:   former value:  $ac_old_val" >&2;}
1190         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1191 echo "$as_me:   current value: $ac_new_val" >&2;}
1192         ac_cache_corrupted=:
1193       fi;;
1194   esac
1195   # Pass precious variables to config.status.
1196   if test "$ac_new_set" = set; then
1197     case $ac_new_val in
1198     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1199       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1200     *) ac_arg=$ac_var=$ac_new_val ;;
1201     esac
1202     case " $ac_configure_args " in
1203       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1204       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1205     esac
1206   fi
1207 done
1208 if $ac_cache_corrupted; then
1209   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1210 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1211   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1212 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1213    { (exit 1); exit 1; }; }
1214 fi
1215
1216 ac_ext=c
1217 ac_cpp='$CPP $CPPFLAGS'
1218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254 ac_aux_dir=
1255 for ac_dir in config $srcdir/config; do
1256   if test -f $ac_dir/install-sh; then
1257     ac_aux_dir=$ac_dir
1258     ac_install_sh="$ac_aux_dir/install-sh -c"
1259     break
1260   elif test -f $ac_dir/install.sh; then
1261     ac_aux_dir=$ac_dir
1262     ac_install_sh="$ac_aux_dir/install.sh -c"
1263     break
1264   elif test -f $ac_dir/shtool; then
1265     ac_aux_dir=$ac_dir
1266     ac_install_sh="$ac_aux_dir/shtool install -c"
1267     break
1268   fi
1269 done
1270 if test -z "$ac_aux_dir"; then
1271   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1272 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1273    { (exit 1); exit 1; }; }
1274 fi
1275 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1276 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1277 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1278
1279
1280 configure_args=$ac_configure_args
1281
1282
1283
1284 cat >>confdefs.h <<_ACEOF
1285 #define PG_VERSION "$PACKAGE_VERSION"
1286 _ACEOF
1287
1288
1289 # Make sure we can run config.sub.
1290 $ac_config_sub sun4 >/dev/null 2>&1 ||
1291   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1292 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1293    { (exit 1); exit 1; }; }
1294
1295 echo "$as_me:$LINENO: checking build system type" >&5
1296 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1297 if test "${ac_cv_build+set}" = set; then
1298   echo $ECHO_N "(cached) $ECHO_C" >&6
1299 else
1300   ac_cv_build_alias=$build_alias
1301 test -z "$ac_cv_build_alias" &&
1302   ac_cv_build_alias=`$ac_config_guess`
1303 test -z "$ac_cv_build_alias" &&
1304   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1305 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1306    { (exit 1); exit 1; }; }
1307 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1308   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1309 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1310    { (exit 1); exit 1; }; }
1311
1312 fi
1313 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1314 echo "${ECHO_T}$ac_cv_build" >&6
1315 build=$ac_cv_build
1316 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1317 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1318 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1319
1320
1321 echo "$as_me:$LINENO: checking host system type" >&5
1322 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1323 if test "${ac_cv_host+set}" = set; then
1324   echo $ECHO_N "(cached) $ECHO_C" >&6
1325 else
1326   ac_cv_host_alias=$host_alias
1327 test -z "$ac_cv_host_alias" &&
1328   ac_cv_host_alias=$ac_cv_build_alias
1329 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1330   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1331 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1332    { (exit 1); exit 1; }; }
1333
1334 fi
1335 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1336 echo "${ECHO_T}$ac_cv_host" >&6
1337 host=$ac_cv_host
1338 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1339 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1340 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1341
1342
1343
1344 template=
1345 echo "$as_me:$LINENO: checking which template to use" >&5
1346 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1347
1348
1349
1350
1351 # Check whether --with-template or --without-template was given.
1352 if test "${with_template+set}" = set; then
1353   withval="$with_template"
1354
1355   case $withval in
1356     yes)
1357       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1358 echo "$as_me: error: argument required for --with-template option" >&2;}
1359    { (exit 1); exit 1; }; }
1360       ;;
1361     no)
1362       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1363 echo "$as_me: error: argument required for --with-template option" >&2;}
1364    { (exit 1); exit 1; }; }
1365       ;;
1366     *)
1367
1368   case $withval in
1369     list)   echo; ls "$srcdir/src/template"; exit;;
1370     *)      if test -f "$srcdir/src/template/$with_template" ; then
1371               template=$withval
1372             else
1373               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1374 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1375    { (exit 1); exit 1; }; }
1376             fi;;
1377   esac
1378
1379       ;;
1380   esac
1381
1382 else
1383
1384 # --with-template not given
1385
1386 case $host_os in
1387      aix*) template=aix ;;
1388     beos*) template=beos ;;
1389     bsdi*) template=bsdi ;;
1390   cygwin*) template=cygwin ;;
1391   darwin*) template=darwin ;;
1392     dgux*) template=dgux ;;
1393  freebsd*) template=freebsd ;;
1394     hpux*) template=hpux ;;
1395     irix*) template=irix5 ;;
1396    linux*) template=linux ;;
1397    mingw*) template=win32 ;;
1398   netbsd*) template=netbsd ;;
1399 nextstep*) template=nextstep ;;
1400  openbsd*) template=openbsd ;;
1401      osf*) template=osf ;;
1402      qnx*) template=qnx4 ;;
1403      sco*) template=sco ;;
1404  solaris*) template=solaris ;;
1405    sunos*) template=sunos4 ;;
1406  sysv4.2*)
1407         case $host_vendor in
1408           univel) template=univel ;;
1409         esac ;;
1410    sysv4*) template=svr4 ;;
1411    sysv5*) template=unixware ;;
1412   ultrix*) template=ultrix4 ;;
1413 esac
1414
1415   if test x"$template" = x"" ; then
1416     { { echo "$as_me:$LINENO: error:
1417 *******************************************************************
1418 PostgreSQL has apparently not been ported to your platform yet.
1419 To try a manual configuration, look into the src/template directory
1420 for a similar platform and use the '--with-template=' option.
1421
1422 Please also contact <pgsql-ports@postgresql.org> to see about
1423 rectifying this.  Include the above 'checking host system type...'
1424 line.
1425 *******************************************************************
1426 " >&5
1427 echo "$as_me: error:
1428 *******************************************************************
1429 PostgreSQL has apparently not been ported to your platform yet.
1430 To try a manual configuration, look into the src/template directory
1431 for a similar platform and use the '--with-template=' option.
1432
1433 Please also contact <pgsql-ports@postgresql.org> to see about
1434 rectifying this.  Include the above 'checking host system type...'
1435 line.
1436 *******************************************************************
1437 " >&2;}
1438    { (exit 1); exit 1; }; }
1439   fi
1440
1441
1442 fi;
1443
1444
1445 echo "$as_me:$LINENO: result: $template" >&5
1446 echo "${ECHO_T}$template" >&6
1447
1448 PORTNAME=$template
1449
1450
1451 # Pick right test-and-set (TAS) code.  Most platforms have inline
1452 # assembler code in src/include/storage/s_lock.h, so we just use
1453 # a dummy file here.
1454 case $host in
1455   hppa*-*-hpux*)        need_tas=yes; tas_file=hpux_hppa.s ;;
1456   sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1457   i?86-*-solaris*)   need_tas=yes; tas_file=solaris_i386.s ;;
1458   *)                need_tas=no;  tas_file=dummy.s ;;
1459 esac
1460 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1461
1462
1463 if test "$need_tas" = yes ; then
1464   TAS=tas.o
1465 fi
1466
1467
1468
1469
1470 ##
1471 ## Command line options
1472 ##
1473
1474
1475 #
1476 # Add non-standard directories to the include path
1477 #
1478
1479
1480
1481 # Check whether --with-includes or --without-includes was given.
1482 if test "${with_includes+set}" = set; then
1483   withval="$with_includes"
1484
1485   case $withval in
1486     yes)
1487       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1488 echo "$as_me: error: argument required for --with-includes option" >&2;}
1489    { (exit 1); exit 1; }; }
1490       ;;
1491     no)
1492       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1493 echo "$as_me: error: argument required for --with-includes option" >&2;}
1494    { (exit 1); exit 1; }; }
1495       ;;
1496     *)
1497
1498       ;;
1499   esac
1500
1501 fi;
1502
1503
1504
1505 #
1506 # Add non-standard directories to the library search path
1507 #
1508
1509
1510
1511 # Check whether --with-libraries or --without-libraries was given.
1512 if test "${with_libraries+set}" = set; then
1513   withval="$with_libraries"
1514
1515   case $withval in
1516     yes)
1517       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1518 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1519    { (exit 1); exit 1; }; }
1520       ;;
1521     no)
1522       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1523 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1524    { (exit 1); exit 1; }; }
1525       ;;
1526     *)
1527       LIBRARY_DIRS=$withval
1528       ;;
1529   esac
1530
1531 fi;
1532
1533
1534
1535
1536
1537 # Check whether --with-libs or --without-libs was given.
1538 if test "${with_libs+set}" = set; then
1539   withval="$with_libs"
1540
1541   case $withval in
1542     yes)
1543       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1544 echo "$as_me: error: argument required for --with-libs option" >&2;}
1545    { (exit 1); exit 1; }; }
1546       ;;
1547     no)
1548       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1549 echo "$as_me: error: argument required for --with-libs option" >&2;}
1550    { (exit 1); exit 1; }; }
1551       ;;
1552     *)
1553       LIBRARY_DIRS=$withval
1554       ;;
1555   esac
1556
1557 fi;
1558
1559
1560
1561 #
1562 # 64-bit integer date/time storage (--enable-integer-datetimes)
1563 #
1564 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1565 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1566
1567
1568 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1569 if test "${enable_integer_datetimes+set}" = set; then
1570   enableval="$enable_integer_datetimes"
1571
1572   case $enableval in
1573     yes)
1574
1575 cat >>confdefs.h <<\_ACEOF
1576 #define USE_INTEGER_DATETIMES 1
1577 _ACEOF
1578
1579       ;;
1580     no)
1581       :
1582       ;;
1583     *)
1584       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1585 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1586    { (exit 1); exit 1; }; }
1587       ;;
1588   esac
1589
1590 else
1591   enable_integer_datetimes=no
1592
1593 fi;
1594
1595 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1596 echo "${ECHO_T}$enable_integer_datetimes" >&6
1597
1598
1599 #
1600 # NLS
1601 #
1602 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1603 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1604
1605
1606 # Check whether --enable-nls or --disable-nls was given.
1607 if test "${enable_nls+set}" = set; then
1608   enableval="$enable_nls"
1609
1610   case $enableval in
1611     yes)
1612       :
1613       ;;
1614     no)
1615       :
1616       ;;
1617     *)
1618       enable_nls=yes
1619 WANTED_LANGUAGES=$enableval
1620       ;;
1621   esac
1622
1623 else
1624   enable_nls=no
1625 fi;
1626
1627
1628 if test "$enable_nls" = yes; then
1629
1630 cat >>confdefs.h <<\_ACEOF
1631 #define ENABLE_NLS 1
1632 _ACEOF
1633
1634 fi
1635
1636 echo "$as_me:$LINENO: result: $enable_nls" >&5
1637 echo "${ECHO_T}$enable_nls" >&6
1638
1639
1640
1641 #
1642 # Default port number (--with-pgport), default 5432
1643 #
1644 echo "$as_me:$LINENO: checking for default port number" >&5
1645 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1646
1647
1648
1649 # Check whether --with-pgport or --without-pgport was given.
1650 if test "${with_pgport+set}" = set; then
1651   withval="$with_pgport"
1652
1653   case $withval in
1654     yes)
1655       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1656 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1657    { (exit 1); exit 1; }; }
1658       ;;
1659     no)
1660       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1661 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1662    { (exit 1); exit 1; }; }
1663       ;;
1664     *)
1665       default_port=$withval
1666       ;;
1667   esac
1668
1669 else
1670   default_port=5432
1671 fi;
1672
1673 echo "$as_me:$LINENO: result: $default_port" >&5
1674 echo "${ECHO_T}$default_port" >&6
1675 # Need both of these because some places want an integer and some a string
1676
1677 cat >>confdefs.h <<_ACEOF
1678 #define DEF_PGPORT ${default_port}
1679 _ACEOF
1680
1681
1682 cat >>confdefs.h <<_ACEOF
1683 #define DEF_PGPORT_STR "${default_port}"
1684 _ACEOF
1685
1686
1687
1688 #
1689 # Option to disable shared libraries
1690 #
1691
1692
1693 # Check whether --enable-shared or --disable-shared was given.
1694 if test "${enable_shared+set}" = set; then
1695   enableval="$enable_shared"
1696
1697   case $enableval in
1698     yes)
1699       :
1700       ;;
1701     no)
1702       :
1703       ;;
1704     *)
1705       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1706 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1707    { (exit 1); exit 1; }; }
1708       ;;
1709   esac
1710
1711 else
1712   enable_shared=yes
1713
1714 fi;
1715
1716
1717
1718 #
1719 # '-rpath'-like feature can be disabled
1720 #
1721
1722
1723 # Check whether --enable-rpath or --disable-rpath was given.
1724 if test "${enable_rpath+set}" = set; then
1725   enableval="$enable_rpath"
1726
1727   case $enableval in
1728     yes)
1729       :
1730       ;;
1731     no)
1732       :
1733       ;;
1734     *)
1735       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1736 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1737    { (exit 1); exit 1; }; }
1738       ;;
1739   esac
1740
1741 else
1742   enable_rpath=yes
1743
1744 fi;
1745
1746
1747
1748
1749 #
1750 # --enable-debug adds -g to compiler flags
1751 #
1752
1753
1754 # Check whether --enable-debug or --disable-debug was given.
1755 if test "${enable_debug+set}" = set; then
1756   enableval="$enable_debug"
1757
1758   case $enableval in
1759     yes)
1760       :
1761       ;;
1762     no)
1763       :
1764       ;;
1765     *)
1766       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1767 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1768    { (exit 1); exit 1; }; }
1769       ;;
1770   esac
1771
1772 else
1773   enable_debug=no
1774
1775 fi;
1776
1777
1778
1779 #
1780 # C compiler
1781 #
1782
1783 # For historical reasons you can also use --with-CC to specify the C compiler
1784 # to use, although the standard way to do this is to set the CC environment
1785 # variable.
1786
1787
1788
1789 # Check whether --with-CC or --without-CC was given.
1790 if test "${with_CC+set}" = set; then
1791   withval="$with_CC"
1792
1793   case $withval in
1794     yes)
1795       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1796 echo "$as_me: error: argument required for --with-CC option" >&2;}
1797    { (exit 1); exit 1; }; }
1798       ;;
1799     no)
1800       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1801 echo "$as_me: error: argument required for --with-CC option" >&2;}
1802    { (exit 1); exit 1; }; }
1803       ;;
1804     *)
1805       CC=$with_CC
1806       ;;
1807   esac
1808
1809 fi;
1810
1811
1812 case $template in
1813   aix) pgac_cc_list="gcc xlc";;
1814  irix) pgac_cc_list="cc";; # no gcc
1815     *) pgac_cc_list="gcc cc";;
1816 esac
1817
1818 ac_ext=c
1819 ac_cpp='$CPP $CPPFLAGS'
1820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823 if test -n "$ac_tool_prefix"; then
1824   for ac_prog in $pgac_cc_list
1825   do
1826     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_CC+set}" = set; then
1831   echo $ECHO_N "(cached) $ECHO_C" >&6
1832 else
1833   if test -n "$CC"; then
1834   ac_cv_prog_CC="$CC" # Let the user override the test.
1835 else
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837 for as_dir in $PATH
1838 do
1839   IFS=$as_save_IFS
1840   test -z "$as_dir" && as_dir=.
1841   for ac_exec_ext in '' $ac_executable_extensions; do
1842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845     break 2
1846   fi
1847 done
1848 done
1849
1850 fi
1851 fi
1852 CC=$ac_cv_prog_CC
1853 if test -n "$CC"; then
1854   echo "$as_me:$LINENO: result: $CC" >&5
1855 echo "${ECHO_T}$CC" >&6
1856 else
1857   echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1859 fi
1860
1861     test -n "$CC" && break
1862   done
1863 fi
1864 if test -z "$CC"; then
1865   ac_ct_CC=$CC
1866   for ac_prog in $pgac_cc_list
1867 do
1868   # Extract the first word of "$ac_prog", so it can be a program name with args.
1869 set dummy $ac_prog; ac_word=$2
1870 echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1873   echo $ECHO_N "(cached) $ECHO_C" >&6
1874 else
1875   if test -n "$ac_ct_CC"; then
1876   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1877 else
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1879 for as_dir in $PATH
1880 do
1881   IFS=$as_save_IFS
1882   test -z "$as_dir" && as_dir=.
1883   for ac_exec_ext in '' $ac_executable_extensions; do
1884   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1885     ac_cv_prog_ac_ct_CC="$ac_prog"
1886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1887     break 2
1888   fi
1889 done
1890 done
1891
1892 fi
1893 fi
1894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1895 if test -n "$ac_ct_CC"; then
1896   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1897 echo "${ECHO_T}$ac_ct_CC" >&6
1898 else
1899   echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1901 fi
1902
1903   test -n "$ac_ct_CC" && break
1904 done
1905
1906   CC=$ac_ct_CC
1907 fi
1908
1909
1910 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1911 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1912    { (exit 1); exit 1; }; }
1913
1914 # Provide some information about the compiler.
1915 echo "$as_me:$LINENO:" \
1916      "checking for C compiler version" >&5
1917 ac_compiler=`set X $ac_compile; echo $2`
1918 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1919   (eval $ac_compiler --version </dev/null >&5) 2>&5
1920   ac_status=$?
1921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922   (exit $ac_status); }
1923 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1924   (eval $ac_compiler -v </dev/null >&5) 2>&5
1925   ac_status=$?
1926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927   (exit $ac_status); }
1928 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1929   (eval $ac_compiler -V </dev/null >&5) 2>&5
1930   ac_status=$?
1931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932   (exit $ac_status); }
1933
1934 cat >conftest.$ac_ext <<_ACEOF
1935 #line $LINENO "configure"
1936 #include "confdefs.h"
1937
1938 #ifdef F77_DUMMY_MAIN
1939 #  ifdef __cplusplus
1940      extern "C"
1941 #  endif
1942    int F77_DUMMY_MAIN() { return 1; }
1943 #endif
1944 int
1945 main ()
1946 {
1947
1948   ;
1949   return 0;
1950 }
1951 _ACEOF
1952 ac_clean_files_save=$ac_clean_files
1953 ac_clean_files="$ac_clean_files a.out a.exe"
1954 # Try to create an executable without -o first, disregard a.out.
1955 # It will help us diagnose broken compilers, and finding out an intuition
1956 # of exeext.
1957 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1958 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1959 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1960 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1961   (eval $ac_link_default) 2>&5
1962   ac_status=$?
1963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964   (exit $ac_status); }; then
1965   # Find the output, starting from the most likely.  This scheme is
1966 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1967 # resort.
1968
1969 # Be careful to initialize this variable, since it used to be cached.
1970 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1971 ac_cv_exeext=
1972 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1973                 ls a.out conftest 2>/dev/null;
1974                 ls a.* conftest.* 2>/dev/null`; do
1975   case $ac_file in
1976     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1977     a.out ) # We found the default executable, but exeext='' is most
1978             # certainly right.
1979             break;;
1980     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1981           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1982           export ac_cv_exeext
1983           break;;
1984     * ) break;;
1985   esac
1986 done
1987 else
1988   echo "$as_me: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1990 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1991 echo "$as_me: error: C compiler cannot create executables" >&2;}
1992    { (exit 77); exit 77; }; }
1993 fi
1994
1995 ac_exeext=$ac_cv_exeext
1996 echo "$as_me:$LINENO: result: $ac_file" >&5
1997 echo "${ECHO_T}$ac_file" >&6
1998
1999 # Check the compiler produces executables we can run.  If not, either
2000 # the compiler is broken, or we cross compile.
2001 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2002 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2003 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2004 # If not cross compiling, check that we can run a simple program.
2005 if test "$cross_compiling" != yes; then
2006   if { ac_try='./$ac_file'
2007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2008   (eval $ac_try) 2>&5
2009   ac_status=$?
2010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011   (exit $ac_status); }; }; then
2012     cross_compiling=no
2013   else
2014     if test "$cross_compiling" = maybe; then
2015         cross_compiling=yes
2016     else
2017         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2018 If you meant to cross compile, use \`--host'." >&5
2019 echo "$as_me: error: cannot run C compiled programs.
2020 If you meant to cross compile, use \`--host'." >&2;}
2021    { (exit 1); exit 1; }; }
2022     fi
2023   fi
2024 fi
2025 echo "$as_me:$LINENO: result: yes" >&5
2026 echo "${ECHO_T}yes" >&6
2027
2028 rm -f a.out a.exe conftest$ac_cv_exeext
2029 ac_clean_files=$ac_clean_files_save
2030 # Check the compiler produces executables we can run.  If not, either
2031 # the compiler is broken, or we cross compile.
2032 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2033 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2034 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2035 echo "${ECHO_T}$cross_compiling" >&6
2036
2037 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2038 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2040   (eval $ac_link) 2>&5
2041   ac_status=$?
2042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043   (exit $ac_status); }; then
2044   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2045 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2046 # work properly (i.e., refer to `conftest.exe'), while it won't with
2047 # `rm'.
2048 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2049   case $ac_file in
2050     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2051     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2052           export ac_cv_exeext
2053           break;;
2054     * ) break;;
2055   esac
2056 done
2057 else
2058   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2059 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2060    { (exit 1); exit 1; }; }
2061 fi
2062
2063 rm -f conftest$ac_cv_exeext
2064 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2065 echo "${ECHO_T}$ac_cv_exeext" >&6
2066
2067 rm -f conftest.$ac_ext
2068 EXEEXT=$ac_cv_exeext
2069 ac_exeext=$EXEEXT
2070 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2071 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2072 if test "${ac_cv_objext+set}" = set; then
2073   echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075   cat >conftest.$ac_ext <<_ACEOF
2076 #line $LINENO "configure"
2077 #include "confdefs.h"
2078
2079 #ifdef F77_DUMMY_MAIN
2080 #  ifdef __cplusplus
2081      extern "C"
2082 #  endif
2083    int F77_DUMMY_MAIN() { return 1; }
2084 #endif
2085 int
2086 main ()
2087 {
2088
2089   ;
2090   return 0;
2091 }
2092 _ACEOF
2093 rm -f conftest.o conftest.obj
2094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095   (eval $ac_compile) 2>&5
2096   ac_status=$?
2097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098   (exit $ac_status); }; then
2099   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2100   case $ac_file in
2101     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2102     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2103        break;;
2104   esac
2105 done
2106 else
2107   echo "$as_me: failed program was:" >&5
2108 cat conftest.$ac_ext >&5
2109 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2110 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2111    { (exit 1); exit 1; }; }
2112 fi
2113
2114 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2115 fi
2116 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2117 echo "${ECHO_T}$ac_cv_objext" >&6
2118 OBJEXT=$ac_cv_objext
2119 ac_objext=$OBJEXT
2120 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2121 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2122 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2123   echo $ECHO_N "(cached) $ECHO_C" >&6
2124 else
2125   cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2127 #include "confdefs.h"
2128
2129 #ifdef F77_DUMMY_MAIN
2130 #  ifdef __cplusplus
2131      extern "C"
2132 #  endif
2133    int F77_DUMMY_MAIN() { return 1; }
2134 #endif
2135 int
2136 main ()
2137 {
2138 #ifndef __GNUC__
2139        choke me
2140 #endif
2141
2142   ;
2143   return 0;
2144 }
2145 _ACEOF
2146 rm -f conftest.$ac_objext
2147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2148   (eval $ac_compile) 2>&5
2149   ac_status=$?
2150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151   (exit $ac_status); } &&
2152          { ac_try='test -s conftest.$ac_objext'
2153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154   (eval $ac_try) 2>&5
2155   ac_status=$?
2156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157   (exit $ac_status); }; }; then
2158   ac_compiler_gnu=yes
2159 else
2160   echo "$as_me: failed program was:" >&5
2161 cat conftest.$ac_ext >&5
2162 ac_compiler_gnu=no
2163 fi
2164 rm -f conftest.$ac_objext conftest.$ac_ext
2165 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2166
2167 fi
2168 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2169 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2170 GCC=`test $ac_compiler_gnu = yes && echo yes`
2171 ac_test_CFLAGS=${CFLAGS+set}
2172 ac_save_CFLAGS=$CFLAGS
2173 CFLAGS="-g"
2174 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2175 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2176 if test "${ac_cv_prog_cc_g+set}" = set; then
2177   echo $ECHO_N "(cached) $ECHO_C" >&6
2178 else
2179   cat >conftest.$ac_ext <<_ACEOF
2180 #line $LINENO "configure"
2181 #include "confdefs.h"
2182
2183 #ifdef F77_DUMMY_MAIN
2184 #  ifdef __cplusplus
2185      extern "C"
2186 #  endif
2187    int F77_DUMMY_MAIN() { return 1; }
2188 #endif
2189 int
2190 main ()
2191 {
2192
2193   ;
2194   return 0;
2195 }
2196 _ACEOF
2197 rm -f conftest.$ac_objext
2198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2199   (eval $ac_compile) 2>&5
2200   ac_status=$?
2201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202   (exit $ac_status); } &&
2203          { ac_try='test -s conftest.$ac_objext'
2204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205   (eval $ac_try) 2>&5
2206   ac_status=$?
2207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208   (exit $ac_status); }; }; then
2209   ac_cv_prog_cc_g=yes
2210 else
2211   echo "$as_me: failed program was:" >&5
2212 cat conftest.$ac_ext >&5
2213 ac_cv_prog_cc_g=no
2214 fi
2215 rm -f conftest.$ac_objext conftest.$ac_ext
2216 fi
2217 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2218 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2219 if test "$ac_test_CFLAGS" = set; then
2220   CFLAGS=$ac_save_CFLAGS
2221 elif test $ac_cv_prog_cc_g = yes; then
2222   if test "$GCC" = yes; then
2223     CFLAGS="-g -O2"
2224   else
2225     CFLAGS="-g"
2226   fi
2227 else
2228   if test "$GCC" = yes; then
2229     CFLAGS="-O2"
2230   else
2231     CFLAGS=
2232   fi
2233 fi
2234 # Some people use a C++ compiler to compile C.  Since we use `exit',
2235 # in C++ we need to declare it.  In case someone uses the same compiler
2236 # for both compiling C and C++ we need to have the C++ compiler decide
2237 # the declaration of exit, since it's the most demanding environment.
2238 cat >conftest.$ac_ext <<_ACEOF
2239 #ifndef __cplusplus
2240   choke me
2241 #endif
2242 _ACEOF
2243 rm -f conftest.$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245   (eval $ac_compile) 2>&5
2246   ac_status=$?
2247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248   (exit $ac_status); } &&
2249          { ac_try='test -s conftest.$ac_objext'
2250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251   (eval $ac_try) 2>&5
2252   ac_status=$?
2253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254   (exit $ac_status); }; }; then
2255   for ac_declaration in \
2256    ''\
2257    '#include <stdlib.h>' \
2258    'extern "C" void std::exit (int) throw (); using std::exit;' \
2259    'extern "C" void std::exit (int); using std::exit;' \
2260    'extern "C" void exit (int) throw ();' \
2261    'extern "C" void exit (int);' \
2262    'void exit (int);'
2263 do
2264   cat >conftest.$ac_ext <<_ACEOF
2265 #line $LINENO "configure"
2266 #include "confdefs.h"
2267 #include <stdlib.h>
2268 $ac_declaration
2269 #ifdef F77_DUMMY_MAIN
2270 #  ifdef __cplusplus
2271      extern "C"
2272 #  endif
2273    int F77_DUMMY_MAIN() { return 1; }
2274 #endif
2275 int
2276 main ()
2277 {
2278 exit (42);
2279   ;
2280   return 0;
2281 }
2282 _ACEOF
2283 rm -f conftest.$ac_objext
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285   (eval $ac_compile) 2>&5
2286   ac_status=$?
2287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288   (exit $ac_status); } &&
2289          { ac_try='test -s conftest.$ac_objext'
2290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291   (eval $ac_try) 2>&5
2292   ac_status=$?
2293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294   (exit $ac_status); }; }; then
2295   :
2296 else
2297   echo "$as_me: failed program was:" >&5
2298 cat conftest.$ac_ext >&5
2299 continue
2300 fi
2301 rm -f conftest.$ac_objext conftest.$ac_ext
2302   cat >conftest.$ac_ext <<_ACEOF
2303 #line $LINENO "configure"
2304 #include "confdefs.h"
2305 $ac_declaration
2306 #ifdef F77_DUMMY_MAIN
2307 #  ifdef __cplusplus
2308      extern "C"
2309 #  endif
2310    int F77_DUMMY_MAIN() { return 1; }
2311 #endif
2312 int
2313 main ()
2314 {
2315 exit (42);
2316   ;
2317   return 0;
2318 }
2319 _ACEOF
2320 rm -f conftest.$ac_objext
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322   (eval $ac_compile) 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); } &&
2326          { ac_try='test -s conftest.$ac_objext'
2327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328   (eval $ac_try) 2>&5
2329   ac_status=$?
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); }; }; then
2332   break
2333 else
2334   echo "$as_me: failed program was:" >&5
2335 cat conftest.$ac_ext >&5
2336 fi
2337 rm -f conftest.$ac_objext conftest.$ac_ext
2338 done
2339 rm -f conftest*
2340 if test -n "$ac_declaration"; then
2341   echo '#ifdef __cplusplus' >>confdefs.h
2342   echo $ac_declaration      >>confdefs.h
2343   echo '#endif'             >>confdefs.h
2344 fi
2345
2346 else
2347   echo "$as_me: failed program was:" >&5
2348 cat conftest.$ac_ext >&5
2349 fi
2350 rm -f conftest.$ac_objext conftest.$ac_ext
2351 ac_ext=c
2352 ac_cpp='$CPP $CPPFLAGS'
2353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2356
2357
2358 #
2359 # Read the template
2360 #
2361 . "$srcdir/src/template/$template" || exit
2362
2363 # adjust CFLAGS per template
2364 if test "$ac_env_CFLAGS_set" = set; then
2365   CFLAGS=$ac_env_CFLAGS_value
2366 fi
2367 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2368   CFLAGS="$CFLAGS -g"
2369 fi
2370 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2371 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2372
2373 # Check if the compiler still works with the template settings
2374 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2375 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2376
2377 cat >conftest.$ac_ext <<_ACEOF
2378 #line $LINENO "configure"
2379 #include "confdefs.h"
2380
2381 #ifdef F77_DUMMY_MAIN
2382 #  ifdef __cplusplus
2383      extern "C"
2384 #  endif
2385    int F77_DUMMY_MAIN() { return 1; }
2386 #endif
2387 int
2388 main ()
2389 {
2390 return 0;
2391   ;
2392   return 0;
2393 }
2394 _ACEOF
2395 rm -f conftest.$ac_objext conftest$ac_exeext
2396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2397   (eval $ac_link) 2>&5
2398   ac_status=$?
2399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400   (exit $ac_status); } &&
2401          { ac_try='test -s conftest$ac_exeext'
2402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403   (eval $ac_try) 2>&5
2404   ac_status=$?
2405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406   (exit $ac_status); }; }; then
2407   echo "$as_me:$LINENO: result: yes" >&5
2408 echo "${ECHO_T}yes" >&6
2409 else
2410   echo "$as_me: failed program was:" >&5
2411 cat conftest.$ac_ext >&5
2412 echo "$as_me:$LINENO: result: no" >&5
2413 echo "${ECHO_T}no" >&6
2414    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2415 echo "$as_me: error: cannot proceed" >&2;}
2416    { (exit 1); exit 1; }; }
2417 fi
2418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2419
2420 # Defend against gcc -ffastmath
2421 if test "$GCC" = yes; then
2422 cat >conftest.$ac_ext <<_ACEOF
2423 #line $LINENO "configure"
2424 #include "confdefs.h"
2425
2426 #ifdef F77_DUMMY_MAIN
2427 #  ifdef __cplusplus
2428      extern "C"
2429 #  endif
2430    int F77_DUMMY_MAIN() { return 1; }
2431 #endif
2432 int
2433 main ()
2434 {
2435 #ifdef __FAST_MATH__
2436 choke me
2437 #endif
2438   ;
2439   return 0;
2440 }
2441 _ACEOF
2442 rm -f conftest.$ac_objext
2443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444   (eval $ac_compile) 2>&5
2445   ac_status=$?
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); } &&
2448          { ac_try='test -s conftest.$ac_objext'
2449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450   (eval $ac_try) 2>&5
2451   ac_status=$?
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); }; }; then
2454   :
2455 else
2456   echo "$as_me: failed program was:" >&5
2457 cat conftest.$ac_ext >&5
2458 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2459 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2460    { (exit 1); exit 1; }; }
2461 fi
2462 rm -f conftest.$ac_objext conftest.$ac_ext
2463 fi
2464
2465 ac_ext=c
2466 ac_cpp='$CPP $CPPFLAGS'
2467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2470 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2471 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2472 # On Suns, sometimes $CPP names a directory.
2473 if test -n "$CPP" && test -d "$CPP"; then
2474   CPP=
2475 fi
2476 if test -z "$CPP"; then
2477   if test "${ac_cv_prog_CPP+set}" = set; then
2478   echo $ECHO_N "(cached) $ECHO_C" >&6
2479 else
2480       # Double quotes because CPP needs to be expanded
2481     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2482     do
2483       ac_preproc_ok=false
2484 for ac_c_preproc_warn_flag in '' yes
2485 do
2486   # Use a header file that comes with gcc, so configuring glibc
2487   # with a fresh cross-compiler works.
2488   # On the NeXT, cc -E runs the code through the compiler's parser,
2489   # not just through cpp. "Syntax error" is here to catch this case.
2490   cat >conftest.$ac_ext <<_ACEOF
2491 #line $LINENO "configure"
2492 #include "confdefs.h"
2493 #include <assert.h>
2494                      Syntax error
2495 _ACEOF
2496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2497   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2498   ac_status=$?
2499   egrep -v '^ *\+' conftest.er1 >conftest.err
2500   rm -f conftest.er1
2501   cat conftest.err >&5
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); } >/dev/null; then
2504   if test -s conftest.err; then
2505     ac_cpp_err=$ac_c_preproc_warn_flag
2506   else
2507     ac_cpp_err=
2508   fi
2509 else
2510   ac_cpp_err=yes
2511 fi
2512 if test -z "$ac_cpp_err"; then
2513   :
2514 else
2515   echo "$as_me: failed program was:" >&5
2516   cat conftest.$ac_ext >&5
2517   # Broken: fails on valid input.
2518 continue
2519 fi
2520 rm -f conftest.err conftest.$ac_ext
2521
2522   # OK, works on sane cases.  Now check whether non-existent headers
2523   # can be detected and how.
2524   cat >conftest.$ac_ext <<_ACEOF
2525 #line $LINENO "configure"
2526 #include "confdefs.h"
2527 #include <ac_nonexistent.h>
2528 _ACEOF
2529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2530   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2531   ac_status=$?
2532   egrep -v '^ *\+' conftest.er1 >conftest.err
2533   rm -f conftest.er1
2534   cat conftest.err >&5
2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536   (exit $ac_status); } >/dev/null; then
2537   if test -s conftest.err; then
2538     ac_cpp_err=$ac_c_preproc_warn_flag
2539   else
2540     ac_cpp_err=
2541   fi
2542 else
2543   ac_cpp_err=yes
2544 fi
2545 if test -z "$ac_cpp_err"; then
2546   # Broken: success on invalid input.
2547 continue
2548 else
2549   echo "$as_me: failed program was:" >&5
2550   cat conftest.$ac_ext >&5
2551   # Passes both tests.
2552 ac_preproc_ok=:
2553 break
2554 fi
2555 rm -f conftest.err conftest.$ac_ext
2556
2557 done
2558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2559 rm -f conftest.err conftest.$ac_ext
2560 if $ac_preproc_ok; then
2561   break
2562 fi
2563
2564     done
2565     ac_cv_prog_CPP=$CPP
2566
2567 fi
2568   CPP=$ac_cv_prog_CPP
2569 else
2570   ac_cv_prog_CPP=$CPP
2571 fi
2572 echo "$as_me:$LINENO: result: $CPP" >&5
2573 echo "${ECHO_T}$CPP" >&6
2574 ac_preproc_ok=false
2575 for ac_c_preproc_warn_flag in '' yes
2576 do
2577   # Use a header file that comes with gcc, so configuring glibc
2578   # with a fresh cross-compiler works.
2579   # On the NeXT, cc -E runs the code through the compiler's parser,
2580   # not just through cpp. "Syntax error" is here to catch this case.
2581   cat >conftest.$ac_ext <<_ACEOF
2582 #line $LINENO "configure"
2583 #include "confdefs.h"
2584 #include <assert.h>
2585                      Syntax error
2586 _ACEOF
2587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2588   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2589   ac_status=$?
2590   egrep -v '^ *\+' conftest.er1 >conftest.err
2591   rm -f conftest.er1
2592   cat conftest.err >&5
2593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594   (exit $ac_status); } >/dev/null; then
2595   if test -s conftest.err; then
2596     ac_cpp_err=$ac_c_preproc_warn_flag
2597   else
2598     ac_cpp_err=
2599   fi
2600 else
2601   ac_cpp_err=yes
2602 fi
2603 if test -z "$ac_cpp_err"; then
2604   :
2605 else
2606   echo "$as_me: failed program was:" >&5
2607   cat conftest.$ac_ext >&5
2608   # Broken: fails on valid input.
2609 continue
2610 fi
2611 rm -f conftest.err conftest.$ac_ext
2612
2613   # OK, works on sane cases.  Now check whether non-existent headers
2614   # can be detected and how.
2615   cat >conftest.$ac_ext <<_ACEOF
2616 #line $LINENO "configure"
2617 #include "confdefs.h"
2618 #include <ac_nonexistent.h>
2619 _ACEOF
2620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2621   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2622   ac_status=$?
2623   egrep -v '^ *\+' conftest.er1 >conftest.err
2624   rm -f conftest.er1
2625   cat conftest.err >&5
2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627   (exit $ac_status); } >/dev/null; then
2628   if test -s conftest.err; then
2629     ac_cpp_err=$ac_c_preproc_warn_flag
2630   else
2631     ac_cpp_err=
2632   fi
2633 else
2634   ac_cpp_err=yes
2635 fi
2636 if test -z "$ac_cpp_err"; then
2637   # Broken: success on invalid input.
2638 continue
2639 else
2640   echo "$as_me: failed program was:" >&5
2641   cat conftest.$ac_ext >&5
2642   # Passes both tests.
2643 ac_preproc_ok=:
2644 break
2645 fi
2646 rm -f conftest.err conftest.$ac_ext
2647
2648 done
2649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2650 rm -f conftest.err conftest.$ac_ext
2651 if $ac_preproc_ok; then
2652   :
2653 else
2654   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2655 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2656    { (exit 1); exit 1; }; }
2657 fi
2658
2659 ac_ext=c
2660 ac_cpp='$CPP $CPPFLAGS'
2661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2664
2665
2666
2667 # Create compiler version string
2668 if test x"$GCC" = x"yes" ; then
2669   cc_string="GCC `${CC} --version | sed q`"
2670 else
2671   cc_string=$CC
2672 fi
2673
2674 cat >>confdefs.h <<_ACEOF
2675 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2676 _ACEOF
2677
2678
2679
2680 #
2681 # Automatic dependency tracking
2682 #
2683
2684
2685 # Check whether --enable-depend or --disable-depend was given.
2686 if test "${enable_depend+set}" = set; then
2687   enableval="$enable_depend"
2688
2689   case $enableval in
2690     yes)
2691       autodepend=yes
2692       ;;
2693     no)
2694       :
2695       ;;
2696     *)
2697       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2698 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2699    { (exit 1); exit 1; }; }
2700       ;;
2701   esac
2702
2703 else
2704   enable_depend=no
2705
2706 fi;
2707
2708
2709
2710
2711 #
2712 # Enable assert checks
2713 #
2714
2715
2716 # Check whether --enable-cassert or --disable-cassert was given.
2717 if test "${enable_cassert+set}" = set; then
2718   enableval="$enable_cassert"
2719
2720   case $enableval in
2721     yes)
2722
2723 cat >>confdefs.h <<\_ACEOF
2724 #define USE_ASSERT_CHECKING 1
2725 _ACEOF
2726
2727       ;;
2728     no)
2729       :
2730       ;;
2731     *)
2732       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2733 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2734    { (exit 1); exit 1; }; }
2735       ;;
2736   esac
2737
2738 else
2739   enable_cassert=no
2740
2741 fi;
2742
2743
2744
2745 #
2746 # Include directories
2747 #
2748 ac_save_IFS=$IFS
2749 IFS="${IFS}:"
2750 # SRCH_INC comes from the template file
2751 for dir in $with_includes $SRCH_INC; do
2752   if test -d "$dir"; then
2753     INCLUDES="$INCLUDES -I$dir"
2754   else
2755     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2756 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2757   fi
2758 done
2759 IFS=$ac_save_IFS
2760
2761
2762
2763 #
2764 # Library directories
2765 #
2766 ac_save_IFS=$IFS
2767 IFS="${IFS}:"
2768 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2769 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2770   if test -d "$dir"; then
2771     LIBDIRS="$LIBDIRS -L$dir"
2772   else
2773     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2774 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2775   fi
2776 done
2777 IFS=$ac_save_IFS
2778
2779 #
2780 # Enable thread-safe client libraries
2781 #
2782 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
2783 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
2784
2785
2786 # Check whether --enable-thread-safety or --disable-thread-safety was given.
2787 if test "${enable_thread_safety+set}" = set; then
2788   enableval="$enable_thread_safety"
2789
2790   case $enableval in
2791     yes)
2792
2793 cat >>confdefs.h <<\_ACEOF
2794 #define USE_THREADS 1
2795 _ACEOF
2796
2797       ;;
2798     no)
2799       :
2800       ;;
2801     *)
2802       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
2803 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
2804    { (exit 1); exit 1; }; }
2805       ;;
2806   esac
2807
2808 else
2809   enable_thread_safety=no
2810
2811 fi;
2812
2813 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
2814 echo "${ECHO_T}$enable_thread_safety" >&6
2815
2816
2817 #
2818 # Tcl/Tk
2819 #
2820 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2821 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2822
2823
2824
2825 # Check whether --with-tcl or --without-tcl was given.
2826 if test "${with_tcl+set}" = set; then
2827   withval="$with_tcl"
2828
2829   case $withval in
2830     yes)
2831       :
2832       ;;
2833     no)
2834       :
2835       ;;
2836     *)
2837       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2838 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2839    { (exit 1); exit 1; }; }
2840       ;;
2841   esac
2842
2843 else
2844   with_tcl=no
2845
2846 fi;
2847
2848 echo "$as_me:$LINENO: result: $with_tcl" >&5
2849 echo "${ECHO_T}$with_tcl" >&6
2850
2851
2852 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2853 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2854 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2855 if test "$with_tcl" = yes; then
2856
2857
2858
2859 # Check whether --with-tk or --without-tk was given.
2860 if test "${with_tk+set}" = set; then
2861   withval="$with_tk"
2862
2863   case $withval in
2864     yes)
2865       :
2866       ;;
2867     no)
2868       :
2869       ;;
2870     *)
2871       { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2872 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2873    { (exit 1); exit 1; }; }
2874       ;;
2875   esac
2876
2877 else
2878   with_tk=yes
2879
2880 fi;
2881
2882 else
2883   with_tk=no
2884 fi
2885 echo "$as_me:$LINENO: result: $with_tk" >&5
2886 echo "${ECHO_T}$with_tk" >&6
2887
2888
2889
2890 # We see if the path to the Tcl/Tk configuration scripts is specified.
2891 # This will override the use of tclsh to find the paths to search.
2892
2893
2894
2895
2896 # Check whether --with-tclconfig or --without-tclconfig was given.
2897 if test "${with_tclconfig+set}" = set; then
2898   withval="$with_tclconfig"
2899
2900   case $withval in
2901     yes)
2902       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2903 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2904    { (exit 1); exit 1; }; }
2905       ;;
2906     no)
2907       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2908 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2909    { (exit 1); exit 1; }; }
2910       ;;
2911     *)
2912
2913       ;;
2914   esac
2915
2916 fi;
2917
2918
2919 # We see if the path to the Tk configuration scripts is specified.
2920 # This will override the use of tclsh to find the paths to search.
2921
2922
2923
2924
2925 # Check whether --with-tkconfig or --without-tkconfig was given.
2926 if test "${with_tkconfig+set}" = set; then
2927   withval="$with_tkconfig"
2928
2929   case $withval in
2930     yes)
2931       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2932 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2933    { (exit 1); exit 1; }; }
2934       ;;
2935     no)
2936       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2937 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2938    { (exit 1); exit 1; }; }
2939       ;;
2940     *)
2941
2942       ;;
2943   esac
2944
2945 fi;
2946
2947
2948 #
2949 # Optionally build Perl modules (PL/Perl)
2950 #
2951 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2952 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2953
2954
2955
2956 # Check whether --with-perl or --without-perl was given.
2957 if test "${with_perl+set}" = set; then
2958   withval="$with_perl"
2959
2960   case $withval in
2961     yes)
2962       :
2963       ;;
2964     no)
2965       :
2966       ;;
2967     *)
2968       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
2969 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
2970    { (exit 1); exit 1; }; }
2971       ;;
2972   esac
2973
2974 else
2975   with_perl=no
2976
2977 fi;
2978
2979 echo "$as_me:$LINENO: result: $with_perl" >&5
2980 echo "${ECHO_T}$with_perl" >&6
2981
2982
2983 #
2984 # Optionally build Python modules (PL/Python)
2985 #
2986 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
2987 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
2988
2989
2990
2991 # Check whether --with-python or --without-python was given.
2992 if test "${with_python+set}" = set; then
2993   withval="$with_python"
2994
2995   case $withval in
2996     yes)
2997       :
2998       ;;
2999     no)
3000       :
3001       ;;
3002     *)
3003       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3004 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3005    { (exit 1); exit 1; }; }
3006       ;;
3007   esac
3008
3009 else
3010   with_python=no
3011
3012 fi;
3013
3014 echo "$as_me:$LINENO: result: $with_python" >&5
3015 echo "${ECHO_T}$with_python" >&6
3016
3017
3018 #
3019 # Optionally build the Java/JDBC tools
3020 #
3021 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3022 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3023
3024
3025
3026 # Check whether --with-java or --without-java was given.
3027 if test "${with_java+set}" = set; then
3028   withval="$with_java"
3029
3030   case $withval in
3031     yes)
3032       echo "$as_me:$LINENO: result: yes" >&5
3033 echo "${ECHO_T}yes" >&6
3034
3035   for ac_prog in jakarta-ant ant ant.sh ant.bat
3036 do
3037   # Extract the first word of "$ac_prog", so it can be a program name with args.
3038 set dummy $ac_prog; ac_word=$2
3039 echo "$as_me:$LINENO: checking for $ac_word" >&5
3040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3041 if test "${ac_cv_path_ANT+set}" = set; then
3042   echo $ECHO_N "(cached) $ECHO_C" >&6
3043 else
3044   case $ANT in
3045   [\\/]* | ?:[\\/]*)
3046   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3047   ;;
3048   *)
3049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 for as_dir in $PATH
3051 do
3052   IFS=$as_save_IFS
3053   test -z "$as_dir" && as_dir=.
3054   for ac_exec_ext in '' $ac_executable_extensions; do
3055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3056     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3058     break 2
3059   fi
3060 done
3061 done
3062
3063   ;;
3064 esac
3065 fi
3066 ANT=$ac_cv_path_ANT
3067
3068 if test -n "$ANT"; then
3069   echo "$as_me:$LINENO: result: $ANT" >&5
3070 echo "${ECHO_T}$ANT" >&6
3071 else
3072   echo "$as_me:$LINENO: result: no" >&5
3073 echo "${ECHO_T}no" >&6
3074 fi
3075
3076   test -n "$ANT" && break
3077 done
3078
3079
3080   echo "$as_me:$LINENO: checking whether $ANT works" >&5
3081 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3082 if test "${pgac_cv_prog_ant_works+set}" = set; then
3083   echo $ECHO_N "(cached) $ECHO_C" >&6
3084 else
3085
3086     cat > conftest.java << EOF
3087 public class conftest {
3088     int testmethod(int a, int b) {
3089         return a + b;
3090     }
3091 }
3092 EOF
3093
3094     cat > conftest.xml << EOF
3095 <project name="conftest" default="conftest">
3096  <target name="conftest">
3097   <javac srcdir="." includes="conftest.java">
3098   </javac>
3099  </target>
3100 </project>
3101 EOF
3102
3103     pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3104     { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3105   (eval $pgac_cmd) 2>&5
3106   ac_status=$?
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); }
3109     pgac_save_status=$?
3110     if test $? = 0 && test -f ./conftest.class ; then
3111       pgac_cv_prog_ant_works=yes
3112     else
3113       echo "configure: failed java program was:" >&5
3114       cat conftest.java >&5
3115       echo "configure: failed build file was:" >&5
3116       cat conftest.xml >&5
3117       pgac_cv_prog_ant_works=no
3118     fi
3119
3120     rm -f conftest* core core.* *.core
3121
3122 fi
3123 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3124 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3125
3126   if test "$pgac_cv_prog_ant_works" != yes; then
3127     { { echo "$as_me:$LINENO: error: ant does not work" >&5
3128 echo "$as_me: error: ant does not work" >&2;}
3129    { (exit 1); exit 1; }; }
3130   fi
3131
3132
3133 if test -z "$ANT"; then
3134   { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3135 If you have Ant already installed, see config.log for details on the failure." >&5
3136 echo "$as_me: error: Ant is required to build Java components
3137 If you have Ant already installed, see config.log for details on the failure." >&2;}
3138    { (exit 1); exit 1; }; }
3139 fi
3140 if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3141   { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3142 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3143    { (exit 1); exit 1; }; }
3144 fi
3145       ;;
3146     no)
3147       echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6
3149       ;;
3150     *)
3151       { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3152 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3153    { (exit 1); exit 1; }; }
3154       ;;
3155   esac
3156
3157 else
3158   with_java=no
3159 echo "$as_me:$LINENO: result: no" >&5
3160 echo "${ECHO_T}no" >&6
3161 fi;
3162
3163
3164
3165
3166 #
3167 # Kerberos 4
3168 #
3169 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3170 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3171
3172
3173
3174 # Check whether --with-krb4 or --without-krb4 was given.
3175 if test "${with_krb4+set}" = set; then
3176   withval="$with_krb4"
3177
3178   case $withval in
3179     yes)
3180       krb4_prefix=/usr/athena
3181       ;;
3182     no)
3183       :
3184       ;;
3185     *)
3186       with_krb4=yes
3187 krb4_prefix=$withval
3188       ;;
3189   esac
3190
3191 else
3192   with_krb4=no
3193 fi;
3194
3195
3196 if test "$with_krb4" = yes; then
3197
3198   echo "$as_me:$LINENO: result: yes" >&5
3199 echo "${ECHO_T}yes" >&6
3200
3201 cat >>confdefs.h <<\_ACEOF
3202 #define KRB4 1
3203 _ACEOF
3204
3205
3206   if test -d "$krb4_prefix/include"; then
3207     INCLUDES="$INCLUDES -I$krb4_prefix/include"
3208   fi
3209   if test -d "$krb4_prefix/lib"; then
3210     LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3211   fi
3212
3213   krb_srvtab="/etc/srvtab"
3214
3215 else
3216   echo "$as_me:$LINENO: result: no" >&5
3217 echo "${ECHO_T}no" >&6
3218 fi
3219
3220
3221
3222
3223
3224 #
3225 # Kerberos 5
3226 #
3227 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3228 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3229
3230
3231
3232 # Check whether --with-krb5 or --without-krb5 was given.
3233 if test "${with_krb5+set}" = set; then
3234   withval="$with_krb5"
3235
3236   case $withval in
3237     yes)
3238       krb5_prefix=/usr/athena
3239       ;;
3240     no)
3241       :
3242       ;;
3243     *)
3244       with_krb5=yes
3245 krb5_prefix=$withval
3246       ;;
3247   esac
3248
3249 else
3250   with_krb5=no
3251 fi;
3252
3253
3254 if test "$with_krb5" = yes; then
3255
3256   echo "$as_me:$LINENO: result: yes" >&5
3257 echo "${ECHO_T}yes" >&6
3258
3259 cat >>confdefs.h <<\_ACEOF
3260 #define KRB5 1
3261 _ACEOF
3262
3263
3264   if test -d "$krb5_prefix/include"; then
3265     INCLUDES="$INCLUDES -I$krb5_prefix/include"
3266   fi
3267   if test -d "$krb5_prefix/lib"; then
3268     LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3269   fi
3270
3271   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3272
3273 else
3274   echo "$as_me:$LINENO: result: no" >&5
3275 echo "${ECHO_T}no" >&6
3276 fi
3277
3278
3279
3280
3281
3282 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3283 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3284   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3285 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3286    { (exit 1); exit 1; }; }
3287 fi
3288
3289
3290
3291
3292 #
3293 # Kerberos configuration parameters
3294 #
3295
3296
3297
3298 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3299 if test "${with_krb_srvnam+set}" = set; then
3300   withval="$with_krb_srvnam"
3301
3302   case $withval in
3303     yes)
3304       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3305 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3306    { (exit 1); exit 1; }; }
3307       ;;
3308     no)
3309       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3310 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3311    { (exit 1); exit 1; }; }
3312       ;;
3313     *)
3314
3315       ;;
3316   esac
3317
3318 else
3319   with_krb_srvnam="postgres"
3320 fi;
3321
3322
3323 cat >>confdefs.h <<_ACEOF
3324 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3325 _ACEOF
3326
3327
3328
3329 #
3330 # PAM
3331 #
3332 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3333 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3334
3335
3336
3337 # Check whether --with-pam or --without-pam was given.
3338 if test "${with_pam+set}" = set; then
3339   withval="$with_pam"
3340
3341   case $withval in
3342     yes)
3343
3344 cat >>confdefs.h <<\_ACEOF
3345 #define USE_PAM 1
3346 _ACEOF
3347
3348       ;;
3349     no)
3350       :
3351       ;;
3352     *)
3353       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3354 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3355    { (exit 1); exit 1; }; }
3356       ;;
3357   esac
3358
3359 else
3360   with_pam=no
3361
3362 fi;
3363
3364 echo "$as_me:$LINENO: result: $with_pam" >&5
3365 echo "${ECHO_T}$with_pam" >&6
3366
3367
3368
3369 #
3370 # Rendezvous
3371 #
3372 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3373 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3374
3375
3376
3377 # Check whether --with-rendezvous or --without-rendezvous was given.
3378 if test "${with_rendezvous+set}" = set; then
3379   withval="$with_rendezvous"
3380
3381   case $withval in
3382     yes)
3383
3384 cat >>confdefs.h <<\_ACEOF
3385 #define USE_RENDEZVOUS 1
3386 _ACEOF
3387
3388       ;;
3389     no)
3390       :
3391       ;;
3392     *)
3393       { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3394 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3395    { (exit 1); exit 1; }; }
3396       ;;
3397   esac
3398
3399 else
3400   with_rendezvous=no
3401
3402 fi;
3403
3404 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3405 echo "${ECHO_T}$with_rendezvous" >&6
3406
3407
3408
3409 #
3410 # OpenSSL
3411 #
3412
3413
3414
3415 # Check whether --with-openssl or --without-openssl was given.
3416 if test "${with_openssl+set}" = set; then
3417   withval="$with_openssl"
3418
3419   case $withval in
3420     yes)
3421       openssl_prefix=/usr/local/ssl
3422       ;;
3423     no)
3424       :
3425       ;;
3426     *)
3427       with_openssl=yes
3428 openssl_prefix=$withval
3429       ;;
3430   esac
3431
3432 else
3433   with_openssl=no
3434 fi;
3435
3436
3437 if test "$with_openssl" = yes; then
3438
3439   echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3440 echo "${ECHO_T}building with OpenSSL support" >&6
3441
3442 cat >>confdefs.h <<\_ACEOF
3443 #define USE_SSL 1
3444 _ACEOF
3445
3446
3447   if test -d "${openssl_prefix}/include" ; then
3448     INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3449   fi
3450   if test -d "${openssl_prefix}/lib" ; then
3451     LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3452   fi
3453
3454 fi
3455
3456
3457
3458
3459
3460 #
3461 # Readline
3462 #
3463
3464
3465
3466 # Check whether --with-readline or --without-readline was given.
3467 if test "${with_readline+set}" = set; then
3468   withval="$with_readline"
3469
3470   case $withval in
3471     yes)
3472       :
3473       ;;
3474     no)
3475       :
3476       ;;
3477     *)
3478       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3479 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3480    { (exit 1); exit 1; }; }
3481       ;;
3482   esac
3483
3484 else
3485   with_readline=yes
3486
3487 fi;
3488
3489
3490 #
3491 # Zlib
3492 #
3493
3494
3495
3496 # Check whether --with-zlib or --without-zlib was given.
3497 if test "${with_zlib+set}" = set; then
3498   withval="$with_zlib"
3499
3500   case $withval in
3501     yes)
3502       :
3503       ;;
3504     no)
3505       :
3506       ;;
3507     *)
3508       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3509 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3510    { (exit 1); exit 1; }; }
3511       ;;
3512   esac
3513
3514 else
3515   with_zlib=yes
3516
3517 fi;
3518
3519
3520
3521 #
3522 # Elf
3523 #
3524
3525 # Assume system is ELF if it predefines __ELF__ as 1,
3526 # otherwise believe host_os based default.
3527 case $host_os in
3528     freebsd1*|freebsd2*) elf=no;;
3529     freebsd3*|freebsd4*) elf=yes;;
3530 esac
3531
3532
3533 cat >conftest.$ac_ext <<_ACEOF
3534 #line $LINENO "configure"
3535 #include "confdefs.h"
3536 #if __ELF__
3537   yes
3538 #endif
3539
3540 _ACEOF
3541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3542   egrep "yes" >/dev/null 2>&1; then
3543   ELF_SYS=true
3544 else
3545   if test "X$elf" = "Xyes" ; then
3546   ELF_SYS=true
3547 else
3548   ELF_SYS=
3549 fi
3550 fi
3551 rm -f conftest*
3552
3553
3554
3555 #
3556 # Assignments
3557 #
3558
3559 CPPFLAGS="$CPPFLAGS $INCLUDES"
3560 LDFLAGS="$LDFLAGS $LIBDIRS"
3561
3562 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3563 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3564 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3565 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3566
3567
3568 for ac_prog in gawk mawk nawk awk
3569 do
3570   # Extract the first word of "$ac_prog", so it can be a program name with args.
3571 set dummy $ac_prog; ac_word=$2
3572 echo "$as_me:$LINENO: checking for $ac_word" >&5
3573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3574 if test "${ac_cv_prog_AWK+set}" = set; then
3575   echo $ECHO_N "(cached) $ECHO_C" >&6
3576 else
3577   if test -n "$AWK"; then
3578   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3579 else
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581 for as_dir in $PATH
3582 do
3583   IFS=$as_save_IFS
3584   test -z "$as_dir" && as_dir=.
3585   for ac_exec_ext in '' $ac_executable_extensions; do
3586   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3587     ac_cv_prog_AWK="$ac_prog"
3588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3589     break 2
3590   fi
3591 done
3592 done
3593
3594 fi
3595 fi
3596 AWK=$ac_cv_prog_AWK
3597 if test -n "$AWK"; then
3598   echo "$as_me:$LINENO: result: $AWK" >&5
3599 echo "${ECHO_T}$AWK" >&6
3600 else
3601   echo "$as_me:$LINENO: result: no" >&5
3602 echo "${ECHO_T}no" >&6
3603 fi
3604
3605   test -n "$AWK" && break
3606 done
3607
3608 echo "$as_me:$LINENO: checking for flex" >&5
3609 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3610 if test "${pgac_cv_path_flex+set}" = set; then
3611   echo $ECHO_N "(cached) $ECHO_C" >&6
3612 else
3613   # Let the user override the test
3614 if test -n "$FLEX"; then
3615   pgac_cv_path_flex=$FLEX
3616 else
3617   pgac_save_IFS=$IFS
3618   IFS=:
3619   for pgac_dir in $PATH; do
3620     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3621       pgac_dir=`pwd`
3622     fi
3623     for pgac_prog in flex lex; do
3624       pgac_candidate="$pgac_dir/$pgac_prog"
3625       if test -f "$pgac_candidate" \
3626         && $pgac_candidate --version </dev/null >/dev/null 2>&1
3627       then
3628         echo '%%'  > conftest.l
3629         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3630           if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3631             pgac_broken_flex=$pgac_candidate
3632             continue
3633           fi
3634
3635           pgac_cv_path_flex=$pgac_candidate
3636           break 2
3637         fi
3638       fi
3639     done
3640   done
3641   IFS=$pgac_save_IFS
3642   rm -f conftest.l
3643   : ${pgac_cv_path_flex=no}
3644 fi
3645
3646 fi
3647 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3648 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3649 if test x"$pgac_cv_path_flex" = x"no"; then
3650   if test -n "$pgac_broken_flex"; then
3651     { echo "$as_me:$LINENO: WARNING:
3652 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3653 *** should get version 2.5.4 or later." >&5
3654 echo "$as_me: WARNING:
3655 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3656 *** should get version 2.5.4 or later." >&2;}
3657   fi
3658
3659   { echo "$as_me:$LINENO: WARNING:
3660 *** Without Flex you will not be able to build PostgreSQL from CVS or
3661 *** change any of the scanner definition files.  You can obtain Flex from
3662 *** a GNU mirror site.  (If you are using the official distribution of
3663 *** PostgreSQL then you do not need to worry about this because the Flex
3664 *** output is pre-generated.)" >&5
3665 echo "$as_me: WARNING:
3666 *** Without Flex you will not be able to build PostgreSQL from CVS or
3667 *** change any of the scanner definition files.  You can obtain Flex from
3668 *** a GNU mirror site.  (If you are using the official distribution of
3669 *** PostgreSQL then you do not need to worry about this because the Flex
3670 *** output is pre-generated.)" >&2;}
3671 fi
3672
3673 if test x"$pgac_cv_path_flex" = x"no"; then
3674   FLEX=
3675 else
3676   FLEX=$pgac_cv_path_flex
3677 fi
3678
3679
3680
3681
3682 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3683 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3684 LN_S=$as_ln_s
3685 if test "$LN_S" = "ln -s"; then
3686   echo "$as_me:$LINENO: result: yes" >&5
3687 echo "${ECHO_T}yes" >&6
3688 else
3689   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3690 echo "${ECHO_T}no, using $LN_S" >&6
3691 fi
3692
3693
3694 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3695 if test "${with_gnu_ld+set}" = set; then
3696   withval="$with_gnu_ld"
3697   test "$withval" = no || with_gnu_ld=yes
3698 else
3699   with_gnu_ld=no
3700 fi;
3701 ac_prog=ld
3702 if test "$GCC" = yes; then
3703   # Check if gcc -print-prog-name=ld gives a path.
3704   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3705 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3706   case $host in
3707   *-*-mingw*)
3708     # gcc leaves a trailing carriage return which upsets mingw
3709     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3710   *)
3711     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3712   esac
3713   case "$ac_prog" in
3714     # Accept absolute paths.
3715     [\\/]* | [A-Za-z]:[\\/]*)
3716       re_direlt='/[^/][^/]*/\.\./'
3717       # Canonicalize the path of ld
3718       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3719       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3720         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3721       done
3722       test -z "$LD" && LD="$ac_prog"
3723       ;;
3724   "")
3725     # If it fails, then pretend we aren't using GCC.
3726     ac_prog=ld
3727     ;;
3728   *)
3729     # If it is relative, then search for the first ld in PATH.
3730     with_gnu_ld=unknown
3731     ;;
3732   esac
3733 elif test "$with_gnu_ld" = yes; then
3734   echo "$as_me:$LINENO: checking for GNU ld" >&5
3735 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3736 else
3737   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3738 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3739 fi
3740 if test "${ac_cv_path_LD+set}" = set; then
3741   echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743   if test -z "$LD"; then
3744   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3745   for ac_dir in $PATH; do
3746     test -z "$ac_dir" && ac_dir=.
3747     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3748       ac_cv_path_LD="$ac_dir/$ac_prog"
3749       # Check to see if the program is GNU ld.  I'd rather use --version,
3750       # but apparently some GNU ld's only accept -v.
3751       # Break only if it was the GNU/non-GNU ld that we prefer.
3752       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3753         test "$with_gnu_ld" != no && break
3754       else
3755         test "$with_gnu_ld" != yes && break
3756       fi
3757     fi
3758   done
3759   IFS="$ac_save_ifs"
3760 else
3761   ac_cv_path_LD="$LD" # Let the user override the test with a path.
3762 fi
3763 fi
3764
3765 LD="$ac_cv_path_LD"
3766 if test -n "$LD"; then
3767   echo "$as_me:$LINENO: result: $LD" >&5
3768 echo "${ECHO_T}$LD" >&6
3769 else
3770   echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6
3772 fi
3773 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3774 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3775    { (exit 1); exit 1; }; }
3776 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3777 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3778 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3779   echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3782 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3783   ac_cv_prog_gnu_ld=yes
3784 else
3785   ac_cv_prog_gnu_ld=no
3786 fi
3787 fi
3788 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3789 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3790 with_gnu_ld=$ac_cv_prog_gnu_ld
3791
3792
3793
3794
3795 case $host_os in sysv5*)
3796   echo "$as_me:$LINENO: checking whether ld -R works" >&5
3797 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3798 if test "${pgac_cv_prog_ld_R+set}" = set; then
3799   echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801
3802     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3803     cat >conftest.$ac_ext <<_ACEOF
3804 #line $LINENO "configure"
3805 #include "confdefs.h"
3806
3807 #ifdef F77_DUMMY_MAIN
3808 #  ifdef __cplusplus
3809      extern "C"
3810 #  endif
3811    int F77_DUMMY_MAIN() { return 1; }
3812 #endif
3813 int
3814 main ()
3815 {
3816
3817   ;
3818   return 0;
3819 }
3820 _ACEOF
3821 rm -f conftest.$ac_objext conftest$ac_exeext
3822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3823   (eval $ac_link) 2>&5
3824   ac_status=$?
3825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826   (exit $ac_status); } &&
3827          { ac_try='test -s conftest$ac_exeext'
3828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3829   (eval $ac_try) 2>&5
3830   ac_status=$?
3831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832   (exit $ac_status); }; }; then
3833   pgac_cv_prog_ld_R=yes
3834 else
3835   echo "$as_me: failed program was:" >&5
3836 cat conftest.$ac_ext >&5
3837 pgac_cv_prog_ld_R=no
3838 fi
3839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3840     LDFLAGS=$pgac_save_LDFLAGS
3841
3842 fi
3843 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3844 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3845   ld_R_works=$pgac_cv_prog_ld_R
3846
3847 esac
3848 if test -n "$ac_tool_prefix"; then
3849   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3850 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3851 echo "$as_me:$LINENO: checking for $ac_word" >&5
3852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3853 if test "${ac_cv_prog_RANLIB+set}" = set; then
3854   echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856   if test -n "$RANLIB"; then
3857   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3858 else
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 for as_dir in $PATH
3861 do
3862   IFS=$as_save_IFS
3863   test -z "$as_dir" && as_dir=.
3864   for ac_exec_ext in '' $ac_executable_extensions; do
3865   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3866     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3868     break 2
3869   fi
3870 done
3871 done
3872
3873 fi
3874 fi
3875 RANLIB=$ac_cv_prog_RANLIB
3876 if test -n "$RANLIB"; then
3877   echo "$as_me:$LINENO: result: $RANLIB" >&5
3878 echo "${ECHO_T}$RANLIB" >&6
3879 else
3880   echo "$as_me:$LINENO: result: no" >&5
3881 echo "${ECHO_T}no" >&6
3882 fi
3883
3884 fi
3885 if test -z "$ac_cv_prog_RANLIB"; then
3886   ac_ct_RANLIB=$RANLIB
3887   # Extract the first word of "ranlib", so it can be a program name with args.
3888 set dummy ranlib; ac_word=$2
3889 echo "$as_me:$LINENO: checking for $ac_word" >&5
3890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3891 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3892   echo $ECHO_N "(cached) $ECHO_C" >&6
3893 else
3894   if test -n "$ac_ct_RANLIB"; then
3895   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3896 else
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 for as_dir in $PATH
3899 do
3900   IFS=$as_save_IFS
3901   test -z "$as_dir" && as_dir=.
3902   for ac_exec_ext in '' $ac_executable_extensions; do
3903   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3904     ac_cv_prog_ac_ct_RANLIB="ranlib"
3905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3906     break 2
3907   fi
3908 done
3909 done
3910
3911   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3912 fi
3913 fi
3914 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3915 if test -n "$ac_ct_RANLIB"; then
3916   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3917 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3918 else
3919   echo "$as_me:$LINENO: result: no" >&5
3920 echo "${ECHO_T}no" >&6
3921 fi
3922
3923   RANLIB=$ac_ct_RANLIB
3924 else
3925   RANLIB="$ac_cv_prog_RANLIB"
3926 fi
3927
3928 for ac_prog in lorder
3929 do
3930   # Extract the first word of "$ac_prog", so it can be a program name with args.
3931 set dummy $ac_prog; ac_word=$2
3932 echo "$as_me:$LINENO: checking for $ac_word" >&5
3933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3934 if test "${ac_cv_prog_LORDER+set}" = set; then
3935   echo $ECHO_N "(cached) $ECHO_C" >&6
3936 else
3937   if test -n "$LORDER"; then
3938   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3939 else
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 for as_dir in $PATH
3942 do
3943   IFS=$as_save_IFS
3944   test -z "$as_dir" && as_dir=.
3945   for ac_exec_ext in '' $ac_executable_extensions; do
3946   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3947     ac_cv_prog_LORDER="$ac_prog"
3948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3949     break 2
3950   fi
3951 done
3952 done
3953
3954 fi
3955 fi
3956 LORDER=$ac_cv_prog_LORDER
3957 if test -n "$LORDER"; then
3958   echo "$as_me:$LINENO: result: $LORDER" >&5
3959 echo "${ECHO_T}$LORDER" >&6
3960 else
3961   echo "$as_me:$LINENO: result: no" >&5
3962 echo "${ECHO_T}no" >&6
3963 fi
3964
3965   test -n "$LORDER" && break
3966 done
3967
3968 # Extract the first word of "tar", so it can be a program name with args.
3969 set dummy tar; ac_word=$2
3970 echo "$as_me:$LINENO: checking for $ac_word" >&5
3971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3972 if test "${ac_cv_path_TAR+set}" = set; then
3973   echo $ECHO_N "(cached) $ECHO_C" >&6
3974 else
3975   case $TAR in
3976   [\\/]* | ?:[\\/]*)
3977   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3978   ;;
3979   *)
3980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 for as_dir in $PATH
3982 do
3983   IFS=$as_save_IFS
3984   test -z "$as_dir" && as_dir=.
3985   for ac_exec_ext in '' $ac_executable_extensions; do
3986   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3987     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3989     break 2
3990   fi
3991 done
3992 done
3993
3994   ;;
3995 esac
3996 fi
3997 TAR=$ac_cv_path_TAR
3998
3999 if test -n "$TAR"; then
4000   echo "$as_me:$LINENO: result: $TAR" >&5
4001 echo "${ECHO_T}$TAR" >&6
4002 else
4003   echo "$as_me:$LINENO: result: no" >&5
4004 echo "${ECHO_T}no" >&6
4005 fi
4006
4007
4008   if test -n "$ac_tool_prefix"; then
4009   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4010 set dummy ${ac_tool_prefix}strip; ac_word=$2
4011 echo "$as_me:$LINENO: checking for $ac_word" >&5
4012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4013 if test "${ac_cv_prog_STRIP+set}" = set; then
4014   echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016   if test -n "$STRIP"; then
4017   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4018 else
4019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020 for as_dir in $PATH
4021 do
4022   IFS=$as_save_IFS
4023   test -z "$as_dir" && as_dir=.
4024   for ac_exec_ext in '' $ac_executable_extensions; do
4025   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4026     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4028     break 2
4029   fi
4030 done
4031 done
4032
4033 fi
4034 fi
4035 STRIP=$ac_cv_prog_STRIP
4036 if test -n "$STRIP"; then
4037   echo "$as_me:$LINENO: result: $STRIP" >&5
4038 echo "${ECHO_T}$STRIP" >&6
4039 else
4040   echo "$as_me:$LINENO: result: no" >&5
4041 echo "${ECHO_T}no" >&6
4042 fi
4043
4044 fi
4045 if test -z "$ac_cv_prog_STRIP"; then
4046   ac_ct_STRIP=$STRIP
4047   # Extract the first word of "strip", so it can be a program name with args.
4048 set dummy strip; ac_word=$2
4049 echo "$as_me:$LINENO: checking for $ac_word" >&5
4050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4051 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4052   echo $ECHO_N "(cached) $ECHO_C" >&6
4053 else
4054   if test -n "$ac_ct_STRIP"; then
4055   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4056 else
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 for as_dir in $PATH
4059 do
4060   IFS=$as_save_IFS
4061   test -z "$as_dir" && as_dir=.
4062   for ac_exec_ext in '' $ac_executable_extensions; do
4063   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4064     ac_cv_prog_ac_ct_STRIP="strip"
4065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4066     break 2
4067   fi
4068 done
4069 done
4070
4071   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4072 fi
4073 fi
4074 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4075 if test -n "$ac_ct_STRIP"; then
4076   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4077 echo "${ECHO_T}$ac_ct_STRIP" >&6
4078 else
4079   echo "$as_me:$LINENO: result: no" >&5
4080 echo "${ECHO_T}no" >&6
4081 fi
4082
4083   STRIP=$ac_ct_STRIP
4084 else
4085   STRIP="$ac_cv_prog_STRIP"
4086 fi
4087
4088
4089   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4090 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4091   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4092     STRIP_STATIC_LIB="$STRIP -x"
4093     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4094     echo "$as_me:$LINENO: result: yes" >&5
4095 echo "${ECHO_T}yes" >&6
4096   else
4097     STRIP_STATIC_LIB=:
4098     STRIP_SHARED_LIB=:
4099     echo "$as_me:$LINENO: result: no" >&5
4100 echo "${ECHO_T}no" >&6
4101   fi
4102
4103
4104
4105
4106 for ac_prog in 'bison -y'
4107 do
4108   # Extract the first word of "$ac_prog", so it can be a program name with args.
4109 set dummy $ac_prog; ac_word=$2
4110 echo "$as_me:$LINENO: checking for $ac_word" >&5
4111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4112 if test "${ac_cv_prog_YACC+set}" = set; then
4113   echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115   if test -n "$YACC"; then
4116   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4117 else
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 for as_dir in $PATH
4120 do
4121   IFS=$as_save_IFS
4122   test -z "$as_dir" && as_dir=.
4123   for ac_exec_ext in '' $ac_executable_extensions; do
4124   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4125     ac_cv_prog_YACC="$ac_prog"
4126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4127     break 2
4128   fi
4129 done
4130 done
4131
4132 fi
4133 fi
4134 YACC=$ac_cv_prog_YACC
4135 if test -n "$YACC"; then
4136   echo "$as_me:$LINENO: result: $YACC" >&5
4137 echo "${ECHO_T}$YACC" >&6
4138 else
4139   echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4141 fi
4142
4143   test -n "$YACC" && break
4144 done
4145
4146
4147 if test "$YACC"; then
4148   if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4149     { echo "$as_me:$LINENO: WARNING:
4150 *** The installed version of Bison is too old.  PostgreSQL needs
4151 *** Bison version 1.875 or later." >&5
4152 echo "$as_me: WARNING:
4153 *** The installed version of Bison is too old.  PostgreSQL needs
4154 *** Bison version 1.875 or later." >&2;}
4155   fi
4156 fi
4157
4158 if test -z "$YACC"; then
4159   { echo "$as_me:$LINENO: WARNING:
4160 *** Without Bison you will not be able to build PostgreSQL from CVS or
4161 *** change any of the parser definition files.  You can obtain Bison from
4162 *** a GNU mirror site.  (If you are using the official distribution of
4163 *** PostgreSQL then you do not need to worry about this because the Bison
4164 *** output is pre-generated.)  To use a different yacc program (possible,
4165 *** but not recommended), set the environment variable YACC before running
4166 *** 'configure'." >&5
4167 echo "$as_me: WARNING:
4168 *** Without Bison you will not be able to build PostgreSQL from CVS or
4169 *** change any of the parser definition files.  You can obtain Bison from
4170 *** a GNU mirror site.  (If you are using the official distribution of
4171 *** PostgreSQL then you do not need to worry about this because the Bison
4172 *** output is pre-generated.)  To use a different yacc program (possible,
4173 *** but not recommended), set the environment variable YACC before running
4174 *** 'configure'." >&2;}
4175 fi
4176
4177
4178 # Extract the first word of "perl", so it can be a program name with args.
4179 set dummy perl; ac_word=$2
4180 echo "$as_me:$LINENO: checking for $ac_word" >&5
4181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4182 if test "${ac_cv_path_PERL+set}" = set; then
4183   echo $ECHO_N "(cached) $ECHO_C" >&6
4184 else
4185   case $PERL in
4186   [\\/]* | ?:[\\/]*)
4187   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4188   ;;
4189   *)
4190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH
4192 do
4193   IFS=$as_save_IFS
4194   test -z "$as_dir" && as_dir=.
4195   for ac_exec_ext in '' $ac_executable_extensions; do
4196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4197     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4199     break 2
4200   fi
4201 done
4202 done
4203
4204   ;;
4205 esac
4206 fi
4207 PERL=$ac_cv_path_PERL
4208
4209 if test -n "$PERL"; then
4210   echo "$as_me:$LINENO: result: $PERL" >&5
4211 echo "${ECHO_T}$PERL" >&6
4212 else
4213   echo "$as_me:$LINENO: result: no" >&5
4214 echo "${ECHO_T}no" >&6
4215 fi
4216
4217 if test "$with_perl" = yes; then
4218
4219 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4220 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4221 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4222 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4223 echo "${ECHO_T}$perl_archlibexp" >&6
4224 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4225 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4226 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4227 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4228 echo "${ECHO_T}$perl_privlibexp" >&6
4229 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4230 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4231 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4232 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4233 echo "${ECHO_T}$perl_useshrplib" >&6
4234
4235 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4236 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4237 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4238 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4239 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4240 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4241 echo "${ECHO_T}$perl_embed_ldflags" >&6
4242 fi
4243
4244 if test "$with_python" = yes; then
4245   # Extract the first word of "python", so it can be a program name with args.
4246 set dummy python; ac_word=$2
4247 echo "$as_me:$LINENO: checking for $ac_word" >&5
4248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4249 if test "${ac_cv_path_PYTHON+set}" = set; then
4250   echo $ECHO_N "(cached) $ECHO_C" >&6
4251 else
4252   case $PYTHON in
4253   [\\/]* | ?:[\\/]*)
4254   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4255   ;;
4256   *)
4257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 for as_dir in $PATH
4259 do
4260   IFS=$as_save_IFS
4261   test -z "$as_dir" && as_dir=.
4262   for ac_exec_ext in '' $ac_executable_extensions; do
4263   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4264     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4266     break 2
4267   fi
4268 done
4269 done
4270
4271   ;;
4272 esac
4273 fi
4274 PYTHON=$ac_cv_path_PYTHON
4275
4276 if test -n "$PYTHON"; then
4277   echo "$as_me:$LINENO: result: $PYTHON" >&5
4278 echo "${ECHO_T}$PYTHON" >&6
4279 else
4280   echo "$as_me:$LINENO: result: no" >&5
4281 echo "${ECHO_T}no" >&6
4282 fi
4283
4284 if test x"$PYTHON" = x""; then
4285   { { echo "$as_me:$LINENO: error: Python not found" >&5
4286 echo "$as_me: error: Python not found" >&2;}
4287    { (exit 1); exit 1; }; }
4288 fi
4289
4290
4291 echo "$as_me:$LINENO: checking Python installation directories" >&5
4292 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4293 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4294 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4295 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4296 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4297 python_includespec="-I${python_prefix}/include/python${python_version}"
4298 if test "$python_prefix" != "$python_execprefix"; then
4299   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4300 fi
4301
4302 # This should be enough of a message.
4303 if test "$python_prefix" != "$python_execprefix"; then
4304   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4305 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4306 else
4307   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4308 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4309 fi
4310
4311
4312 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4313 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4314
4315 if test ! -f "$python_configdir/Makefile"; then
4316   echo "$as_me:$LINENO: result: no" >&5
4317 echo "${ECHO_T}no" >&6
4318   { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4319 echo "$as_me: error: Python Makefile not found" >&2;}
4320    { (exit 1); exit 1; }; }
4321 fi
4322
4323 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4324 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4325 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4326 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4327 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4328
4329 pgac_tab="      " # tab character
4330 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"`
4331
4332 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4333 echo "${ECHO_T}${python_libspec}" >&6
4334
4335
4336 fi
4337
4338
4339 ##
4340 ## Libraries
4341 ##
4342
4343 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4344 then
4345
4346 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4347 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4348 if test "${ac_cv_lib_bsd_main+set}" = set; then
4349   echo $ECHO_N "(cached) $ECHO_C" >&6
4350 else
4351   ac_check_lib_save_LIBS=$LIBS
4352 LIBS="-lbsd  $LIBS"
4353 cat >conftest.$ac_ext <<_ACEOF
4354 #line $LINENO "configure"
4355 #include "confdefs.h"
4356
4357
4358 #ifdef F77_DUMMY_MAIN
4359 #  ifdef __cplusplus
4360      extern "C"
4361 #  endif
4362    int F77_DUMMY_MAIN() { return 1; }
4363 #endif
4364 int
4365 main ()
4366 {
4367 main ();
4368   ;
4369   return 0;
4370 }
4371 _ACEOF
4372 rm -f conftest.$ac_objext conftest$ac_exeext
4373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4374   (eval $ac_link) 2>&5
4375   ac_status=$?
4376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); } &&
4378          { ac_try='test -s conftest$ac_exeext'
4379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380   (eval $ac_try) 2>&5
4381   ac_status=$?
4382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383   (exit $ac_status); }; }; then
4384   ac_cv_lib_bsd_main=yes
4385 else
4386   echo "$as_me: failed program was:" >&5
4387 cat conftest.$ac_ext >&5
4388 ac_cv_lib_bsd_main=no
4389 fi
4390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4391 LIBS=$ac_check_lib_save_LIBS
4392 fi
4393 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4394 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4395 if test $ac_cv_lib_bsd_main = yes; then
4396   cat >>confdefs.h <<_ACEOF
4397 #define HAVE_LIBBSD 1
4398 _ACEOF
4399
4400   LIBS="-lbsd $LIBS"
4401
4402 fi
4403
4404 fi
4405
4406 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4407 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4408 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4409   echo $ECHO_N "(cached) $ECHO_C" >&6
4410 else
4411   ac_check_lib_save_LIBS=$LIBS
4412 LIBS="-lutil  $LIBS"
4413 cat >conftest.$ac_ext <<_ACEOF
4414 #line $LINENO "configure"
4415 #include "confdefs.h"
4416
4417 /* Override any gcc2 internal prototype to avoid an error.  */
4418 #ifdef __cplusplus
4419 extern "C"
4420 #endif
4421 /* We use char because int might match the return type of a gcc2
4422    builtin and then its argument prototype would still apply.  */
4423 char setproctitle ();
4424 #ifdef F77_DUMMY_MAIN
4425 #  ifdef __cplusplus
4426      extern "C"
4427 #  endif
4428    int F77_DUMMY_MAIN() { return 1; }
4429 #endif
4430 int
4431 main ()
4432 {
4433 setproctitle ();
4434   ;
4435   return 0;
4436 }
4437 _ACEOF
4438 rm -f conftest.$ac_objext conftest$ac_exeext
4439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4440   (eval $ac_link) 2>&5
4441   ac_status=$?
4442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443   (exit $ac_status); } &&
4444          { ac_try='test -s conftest$ac_exeext'
4445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446   (eval $ac_try) 2>&5
4447   ac_status=$?
4448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449   (exit $ac_status); }; }; then
4450   ac_cv_lib_util_setproctitle=yes
4451 else
4452   echo "$as_me: failed program was:" >&5
4453 cat conftest.$ac_ext >&5
4454 ac_cv_lib_util_setproctitle=no
4455 fi
4456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4457 LIBS=$ac_check_lib_save_LIBS
4458 fi
4459 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4460 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4461 if test $ac_cv_lib_util_setproctitle = yes; then
4462   cat >>confdefs.h <<_ACEOF
4463 #define HAVE_LIBUTIL 1
4464 _ACEOF
4465
4466   LIBS="-lutil $LIBS"
4467
4468 fi
4469
4470
4471 echo "$as_me:$LINENO: checking for main in -lm" >&5
4472 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4473 if test "${ac_cv_lib_m_main+set}" = set; then
4474   echo $ECHO_N "(cached) $ECHO_C" >&6
4475 else
4476   ac_check_lib_save_LIBS=$LIBS
4477 LIBS="-lm  $LIBS"
4478 cat >conftest.$ac_ext <<_ACEOF
4479 #line $LINENO "configure"
4480 #include "confdefs.h"
4481
4482
4483 #ifdef F77_DUMMY_MAIN
4484 #  ifdef __cplusplus
4485      extern "C"
4486 #  endif
4487    int F77_DUMMY_MAIN() { return 1; }
4488 #endif
4489 int
4490 main ()
4491 {
4492 main ();
4493   ;
4494   return 0;
4495 }
4496 _ACEOF
4497 rm -f conftest.$ac_objext conftest$ac_exeext
4498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4499   (eval $ac_link) 2>&5
4500   ac_status=$?
4501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502   (exit $ac_status); } &&
4503          { ac_try='test -s conftest$ac_exeext'
4504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4505   (eval $ac_try) 2>&5
4506   ac_status=$?
4507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508   (exit $ac_status); }; }; then
4509   ac_cv_lib_m_main=yes
4510 else
4511   echo "$as_me: failed program was:" >&5
4512 cat conftest.$ac_ext >&5
4513 ac_cv_lib_m_main=no
4514 fi
4515 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4516 LIBS=$ac_check_lib_save_LIBS
4517 fi
4518 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4519 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4520 if test $ac_cv_lib_m_main = yes; then
4521   cat >>confdefs.h <<_ACEOF
4522 #define HAVE_LIBM 1
4523 _ACEOF
4524
4525   LIBS="-lm $LIBS"
4526
4527 fi
4528
4529
4530 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4531 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4532 if test "${ac_cv_lib_dl_main+set}" = set; then
4533   echo $ECHO_N "(cached) $ECHO_C" >&6
4534 else
4535   ac_check_lib_save_LIBS=$LIBS
4536 LIBS="-ldl  $LIBS"
4537 cat >conftest.$ac_ext <<_ACEOF
4538 #line $LINENO "configure"
4539 #include "confdefs.h"
4540
4541
4542 #ifdef F77_DUMMY_MAIN
4543 #  ifdef __cplusplus
4544      extern "C"
4545 #  endif
4546    int F77_DUMMY_MAIN() { return 1; }
4547 #endif
4548 int
4549 main ()
4550 {
4551 main ();
4552   ;
4553   return 0;
4554 }
4555 _ACEOF
4556 rm -f conftest.$ac_objext conftest$ac_exeext
4557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4558   (eval $ac_link) 2>&5
4559   ac_status=$?
4560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561   (exit $ac_status); } &&
4562          { ac_try='test -s conftest$ac_exeext'
4563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4564   (eval $ac_try) 2>&5
4565   ac_status=$?
4566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567   (exit $ac_status); }; }; then
4568   ac_cv_lib_dl_main=yes
4569 else
4570   echo "$as_me: failed program was:" >&5
4571 cat conftest.$ac_ext >&5
4572 ac_cv_lib_dl_main=no
4573 fi
4574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4575 LIBS=$ac_check_lib_save_LIBS
4576 fi
4577 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4578 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4579 if test $ac_cv_lib_dl_main = yes; then
4580   cat >>confdefs.h <<_ACEOF
4581 #define HAVE_LIBDL 1
4582 _ACEOF
4583
4584   LIBS="-ldl $LIBS"
4585
4586 fi
4587
4588
4589 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4590 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4591 if test "${ac_cv_lib_nsl_main+set}" = set; then
4592   echo $ECHO_N "(cached) $ECHO_C" >&6
4593 else
4594   ac_check_lib_save_LIBS=$LIBS
4595 LIBS="-lnsl  $LIBS"
4596 cat >conftest.$ac_ext <<_ACEOF
4597 #line $LINENO "configure"
4598 #include "confdefs.h"
4599
4600
4601 #ifdef F77_DUMMY_MAIN
4602 #  ifdef __cplusplus
4603      extern "C"
4604 #  endif
4605    int F77_DUMMY_MAIN() { return 1; }
4606 #endif
4607 int
4608 main ()
4609 {
4610 main ();
4611   ;
4612   return 0;
4613 }
4614 _ACEOF
4615 rm -f conftest.$ac_objext conftest$ac_exeext
4616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4617   (eval $ac_link) 2>&5
4618   ac_status=$?
4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); } &&
4621          { ac_try='test -s conftest$ac_exeext'
4622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623   (eval $ac_try) 2>&5
4624   ac_status=$?
4625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626   (exit $ac_status); }; }; then
4627   ac_cv_lib_nsl_main=yes
4628 else
4629   echo "$as_me: failed program was:" >&5
4630 cat conftest.$ac_ext >&5
4631 ac_cv_lib_nsl_main=no
4632 fi
4633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4634 LIBS=$ac_check_lib_save_LIBS
4635 fi
4636 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4637 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4638 if test $ac_cv_lib_nsl_main = yes; then
4639   cat >>confdefs.h <<_ACEOF
4640 #define HAVE_LIBNSL 1
4641 _ACEOF
4642
4643   LIBS="-lnsl $LIBS"
4644
4645 fi
4646
4647
4648 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4649 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4650 if test "${ac_cv_lib_socket_main+set}" = set; then
4651   echo $ECHO_N "(cached) $ECHO_C" >&6
4652 else
4653   ac_check_lib_save_LIBS=$LIBS
4654 LIBS="-lsocket  $LIBS"
4655 cat >conftest.$ac_ext <<_ACEOF
4656 #line $LINENO "configure"
4657 #include "confdefs.h"
4658
4659
4660 #ifdef F77_DUMMY_MAIN
4661 #  ifdef __cplusplus
4662      extern "C"
4663 #  endif
4664    int F77_DUMMY_MAIN() { return 1; }
4665 #endif
4666 int
4667 main ()
4668 {
4669 main ();
4670   ;
4671   return 0;
4672 }
4673 _ACEOF
4674 rm -f conftest.$ac_objext conftest$ac_exeext
4675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4676   (eval $ac_link) 2>&5
4677   ac_status=$?
4678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679   (exit $ac_status); } &&
4680          { ac_try='test -s conftest$ac_exeext'
4681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682   (eval $ac_try) 2>&5
4683   ac_status=$?
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); }; }; then
4686   ac_cv_lib_socket_main=yes
4687 else
4688   echo "$as_me: failed program was:" >&5
4689 cat conftest.$ac_ext >&5
4690 ac_cv_lib_socket_main=no
4691 fi
4692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4693 LIBS=$ac_check_lib_save_LIBS
4694 fi
4695 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4696 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4697 if test $ac_cv_lib_socket_main = yes; then
4698   cat >>confdefs.h <<_ACEOF
4699 #define HAVE_LIBSOCKET 1
4700 _ACEOF
4701
4702   LIBS="-lsocket $LIBS"
4703
4704 fi
4705
4706
4707 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4708 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4709 if test "${ac_cv_lib_ipc_main+set}" = set; then
4710   echo $ECHO_N "(cached) $ECHO_C" >&6
4711 else
4712   ac_check_lib_save_LIBS=$LIBS
4713 LIBS="-lipc  $LIBS"
4714 cat >conftest.$ac_ext <<_ACEOF
4715 #line $LINENO "configure"
4716 #include "confdefs.h"
4717
4718
4719 #ifdef F77_DUMMY_MAIN
4720 #  ifdef __cplusplus
4721      extern "C"
4722 #  endif
4723    int F77_DUMMY_MAIN() { return 1; }
4724 #endif
4725 int
4726 main ()
4727 {
4728 main ();
4729   ;
4730   return 0;
4731 }
4732 _ACEOF
4733 rm -f conftest.$ac_objext conftest$ac_exeext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4735   (eval $ac_link) 2>&5
4736   ac_status=$?
4737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738   (exit $ac_status); } &&
4739          { ac_try='test -s conftest$ac_exeext'
4740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741   (eval $ac_try) 2>&5
4742   ac_status=$?
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); }; }; then
4745   ac_cv_lib_ipc_main=yes
4746 else
4747   echo "$as_me: failed program was:" >&5
4748 cat conftest.$ac_ext >&5
4749 ac_cv_lib_ipc_main=no
4750 fi
4751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4752 LIBS=$ac_check_lib_save_LIBS
4753 fi
4754 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4755 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4756 if test $ac_cv_lib_ipc_main = yes; then
4757   cat >>confdefs.h <<_ACEOF
4758 #define HAVE_LIBIPC 1
4759 _ACEOF
4760
4761   LIBS="-lipc $LIBS"
4762
4763 fi
4764
4765
4766 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4767 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4768 if test "${ac_cv_lib_IPC_main+set}" = set; then
4769   echo $ECHO_N "(cached) $ECHO_C" >&6
4770 else
4771   ac_check_lib_save_LIBS=$LIBS
4772 LIBS="-lIPC  $LIBS"
4773 cat >conftest.$ac_ext <<_ACEOF
4774 #line $LINENO "configure"
4775 #include "confdefs.h"
4776
4777
4778 #ifdef F77_DUMMY_MAIN
4779 #  ifdef __cplusplus
4780      extern "C"
4781 #  endif
4782    int F77_DUMMY_MAIN() { return 1; }
4783 #endif
4784 int
4785 main ()
4786 {
4787 main ();
4788   ;
4789   return 0;
4790 }
4791 _ACEOF
4792 rm -f conftest.$ac_objext conftest$ac_exeext
4793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4794   (eval $ac_link) 2>&5
4795   ac_status=$?
4796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797   (exit $ac_status); } &&
4798          { ac_try='test -s conftest$ac_exeext'
4799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800   (eval $ac_try) 2>&5
4801   ac_status=$?
4802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803   (exit $ac_status); }; }; then
4804   ac_cv_lib_IPC_main=yes
4805 else
4806   echo "$as_me: failed program was:" >&5
4807 cat conftest.$ac_ext >&5
4808 ac_cv_lib_IPC_main=no
4809 fi
4810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4811 LIBS=$ac_check_lib_save_LIBS
4812 fi
4813 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4814 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4815 if test $ac_cv_lib_IPC_main = yes; then
4816   cat >>confdefs.h <<_ACEOF
4817 #define HAVE_LIBIPC 1
4818 _ACEOF
4819
4820   LIBS="-lIPC $LIBS"
4821
4822 fi
4823
4824
4825 echo "$as_me:$LINENO: checking for main in -llc" >&5
4826 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4827 if test "${ac_cv_lib_lc_main+set}" = set; then
4828   echo $ECHO_N "(cached) $ECHO_C" >&6
4829 else
4830   ac_check_lib_save_LIBS=$LIBS
4831 LIBS="-llc  $LIBS"
4832 cat >conftest.$ac_ext <<_ACEOF
4833 #line $LINENO "configure"
4834 #include "confdefs.h"
4835
4836
4837 #ifdef F77_DUMMY_MAIN
4838 #  ifdef __cplusplus
4839      extern "C"
4840 #  endif
4841    int F77_DUMMY_MAIN() { return 1; }
4842 #endif
4843 int
4844 main ()
4845 {
4846 main ();
4847   ;
4848   return 0;
4849 }
4850 _ACEOF
4851 rm -f conftest.$ac_objext conftest$ac_exeext
4852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4853   (eval $ac_link) 2>&5
4854   ac_status=$?
4855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856   (exit $ac_status); } &&
4857          { ac_try='test -s conftest$ac_exeext'
4858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859   (eval $ac_try) 2>&5
4860   ac_status=$?
4861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862   (exit $ac_status); }; }; then
4863   ac_cv_lib_lc_main=yes
4864 else
4865   echo "$as_me: failed program was:" >&5
4866 cat conftest.$ac_ext >&5
4867 ac_cv_lib_lc_main=no
4868 fi
4869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4870 LIBS=$ac_check_lib_save_LIBS
4871 fi
4872 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4873 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4874 if test $ac_cv_lib_lc_main = yes; then
4875   cat >>confdefs.h <<_ACEOF
4876 #define HAVE_LIBLC 1
4877 _ACEOF
4878
4879   LIBS="-llc $LIBS"
4880
4881 fi
4882
4883
4884 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4885 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4886 if test "${ac_cv_lib_dld_main+set}" = set; then
4887   echo $ECHO_N "(cached) $ECHO_C" >&6
4888 else
4889   ac_check_lib_save_LIBS=$LIBS
4890 LIBS="-ldld  $LIBS"
4891 cat >conftest.$ac_ext <<_ACEOF
4892 #line $LINENO "configure"
4893 #include "confdefs.h"
4894
4895
4896 #ifdef F77_DUMMY_MAIN
4897 #  ifdef __cplusplus
4898      extern "C"
4899 #  endif
4900    int F77_DUMMY_MAIN() { return 1; }
4901 #endif
4902 int
4903 main ()
4904 {
4905 main ();
4906   ;
4907   return 0;
4908 }
4909 _ACEOF
4910 rm -f conftest.$ac_objext conftest$ac_exeext
4911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4912   (eval $ac_link) 2>&5
4913   ac_status=$?
4914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915   (exit $ac_status); } &&
4916          { ac_try='test -s conftest$ac_exeext'
4917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918   (eval $ac_try) 2>&5
4919   ac_status=$?
4920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); }; }; then
4922   ac_cv_lib_dld_main=yes
4923 else
4924   echo "$as_me: failed program was:" >&5
4925 cat conftest.$ac_ext >&5
4926 ac_cv_lib_dld_main=no
4927 fi
4928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4929 LIBS=$ac_check_lib_save_LIBS
4930 fi
4931 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4932 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4933 if test $ac_cv_lib_dld_main = yes; then
4934   cat >>confdefs.h <<_ACEOF
4935 #define HAVE_LIBDLD 1
4936 _ACEOF
4937
4938   LIBS="-ldld $LIBS"
4939
4940 fi
4941
4942
4943 echo "$as_me:$LINENO: checking for main in -lld" >&5
4944 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4945 if test "${ac_cv_lib_ld_main+set}" = set; then
4946   echo $ECHO_N "(cached) $ECHO_C" >&6
4947 else
4948   ac_check_lib_save_LIBS=$LIBS
4949 LIBS="-lld  $LIBS"
4950 cat >conftest.$ac_ext <<_ACEOF
4951 #line $LINENO "configure"
4952 #include "confdefs.h"
4953
4954
4955 #ifdef F77_DUMMY_MAIN
4956 #  ifdef __cplusplus
4957      extern "C"
4958 #  endif
4959    int F77_DUMMY_MAIN() { return 1; }
4960 #endif
4961 int
4962 main ()
4963 {
4964 main ();
4965   ;
4966   return 0;
4967 }
4968 _ACEOF
4969 rm -f conftest.$ac_objext conftest$ac_exeext
4970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4971   (eval $ac_link) 2>&5
4972   ac_status=$?
4973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974   (exit $ac_status); } &&
4975          { ac_try='test -s conftest$ac_exeext'
4976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977   (eval $ac_try) 2>&5
4978   ac_status=$?
4979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980   (exit $ac_status); }; }; then
4981   ac_cv_lib_ld_main=yes
4982 else
4983   echo "$as_me: failed program was:" >&5
4984 cat conftest.$ac_ext >&5
4985 ac_cv_lib_ld_main=no
4986 fi
4987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4988 LIBS=$ac_check_lib_save_LIBS
4989 fi
4990 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
4991 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
4992 if test $ac_cv_lib_ld_main = yes; then
4993   cat >>confdefs.h <<_ACEOF
4994 #define HAVE_LIBLD 1
4995 _ACEOF
4996
4997   LIBS="-lld $LIBS"
4998
4999 fi
5000
5001
5002 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5003 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5004 if test "${ac_cv_lib_compat_main+set}" = set; then
5005   echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007   ac_check_lib_save_LIBS=$LIBS
5008 LIBS="-lcompat  $LIBS"
5009 cat >conftest.$ac_ext <<_ACEOF
5010 #line $LINENO "configure"
5011 #include "confdefs.h"
5012
5013
5014 #ifdef F77_DUMMY_MAIN
5015 #  ifdef __cplusplus
5016      extern "C"
5017 #  endif
5018    int F77_DUMMY_MAIN() { return 1; }
5019 #endif
5020 int
5021 main ()
5022 {
5023 main ();
5024   ;
5025   return 0;
5026 }
5027 _ACEOF
5028 rm -f conftest.$ac_objext conftest$ac_exeext
5029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5030   (eval $ac_link) 2>&5
5031   ac_status=$?
5032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033   (exit $ac_status); } &&
5034          { ac_try='test -s conftest$ac_exeext'
5035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036   (eval $ac_try) 2>&5
5037   ac_status=$?
5038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039   (exit $ac_status); }; }; then
5040   ac_cv_lib_compat_main=yes
5041 else
5042   echo "$as_me: failed program was:" >&5
5043 cat conftest.$ac_ext >&5
5044 ac_cv_lib_compat_main=no
5045 fi
5046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5047 LIBS=$ac_check_lib_save_LIBS
5048 fi
5049 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5050 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5051 if test $ac_cv_lib_compat_main = yes; then
5052   cat >>confdefs.h <<_ACEOF
5053 #define HAVE_LIBCOMPAT 1
5054 _ACEOF
5055
5056   LIBS="-lcompat $LIBS"
5057
5058 fi
5059
5060
5061 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5062 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5063 if test "${ac_cv_lib_BSD_main+set}" = set; then
5064   echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066   ac_check_lib_save_LIBS=$LIBS
5067 LIBS="-lBSD  $LIBS"
5068 cat >conftest.$ac_ext <<_ACEOF
5069 #line $LINENO "configure"
5070 #include "confdefs.h"
5071
5072
5073 #ifdef F77_DUMMY_MAIN
5074 #  ifdef __cplusplus
5075      extern "C"
5076 #  endif
5077    int F77_DUMMY_MAIN() { return 1; }
5078 #endif
5079 int
5080 main ()
5081 {
5082 main ();
5083   ;
5084   return 0;
5085 }
5086 _ACEOF
5087 rm -f conftest.$ac_objext conftest$ac_exeext
5088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5089   (eval $ac_link) 2>&5
5090   ac_status=$?
5091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092   (exit $ac_status); } &&
5093          { ac_try='test -s conftest$ac_exeext'
5094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095   (eval $ac_try) 2>&5
5096   ac_status=$?
5097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098   (exit $ac_status); }; }; then
5099   ac_cv_lib_BSD_main=yes
5100 else
5101   echo "$as_me: failed program was:" >&5
5102 cat conftest.$ac_ext >&5
5103 ac_cv_lib_BSD_main=no
5104 fi
5105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5106 LIBS=$ac_check_lib_save_LIBS
5107 fi
5108 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5109 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5110 if test $ac_cv_lib_BSD_main = yes; then
5111   cat >>confdefs.h <<_ACEOF
5112 #define HAVE_LIBBSD 1
5113 _ACEOF
5114
5115   LIBS="-lBSD $LIBS"
5116
5117 fi
5118
5119
5120 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5121 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5122 if test "${ac_cv_lib_gen_main+set}" = set; then
5123   echo $ECHO_N "(cached) $ECHO_C" >&6
5124 else
5125   ac_check_lib_save_LIBS=$LIBS
5126 LIBS="-lgen  $LIBS"
5127 cat >conftest.$ac_ext <<_ACEOF
5128 #line $LINENO "configure"
5129 #include "confdefs.h"
5130
5131
5132 #ifdef F77_DUMMY_MAIN
5133 #  ifdef __cplusplus
5134      extern "C"
5135 #  endif
5136    int F77_DUMMY_MAIN() { return 1; }
5137 #endif
5138 int
5139 main ()
5140 {
5141 main ();
5142   ;
5143   return 0;
5144 }
5145 _ACEOF
5146 rm -f conftest.$ac_objext conftest$ac_exeext
5147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5148   (eval $ac_link) 2>&5
5149   ac_status=$?
5150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151   (exit $ac_status); } &&
5152          { ac_try='test -s conftest$ac_exeext'
5153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154   (eval $ac_try) 2>&5
5155   ac_status=$?
5156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157   (exit $ac_status); }; }; then
5158   ac_cv_lib_gen_main=yes
5159 else
5160   echo "$as_me: failed program was:" >&5
5161 cat conftest.$ac_ext >&5
5162 ac_cv_lib_gen_main=no
5163 fi
5164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5165 LIBS=$ac_check_lib_save_LIBS
5166 fi
5167 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5168 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5169 if test $ac_cv_lib_gen_main = yes; then
5170   cat >>confdefs.h <<_ACEOF
5171 #define HAVE_LIBGEN 1
5172 _ACEOF
5173
5174   LIBS="-lgen $LIBS"
5175
5176 fi
5177
5178
5179 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5180 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5181 if test "${ac_cv_lib_PW_main+set}" = set; then
5182   echo $ECHO_N "(cached) $ECHO_C" >&6
5183 else
5184   ac_check_lib_save_LIBS=$LIBS
5185 LIBS="-lPW  $LIBS"
5186 cat >conftest.$ac_ext <<_ACEOF
5187 #line $LINENO "configure"
5188 #include "confdefs.h"
5189
5190
5191 #ifdef F77_DUMMY_MAIN
5192 #  ifdef __cplusplus
5193      extern "C"
5194 #  endif
5195    int F77_DUMMY_MAIN() { return 1; }
5196 #endif
5197 int
5198 main ()
5199 {
5200 main ();
5201   ;
5202   return 0;
5203 }
5204 _ACEOF
5205 rm -f conftest.$ac_objext conftest$ac_exeext
5206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5207   (eval $ac_link) 2>&5
5208   ac_status=$?
5209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210   (exit $ac_status); } &&
5211          { ac_try='test -s conftest$ac_exeext'
5212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213   (eval $ac_try) 2>&5
5214   ac_status=$?
5215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216   (exit $ac_status); }; }; then
5217   ac_cv_lib_PW_main=yes
5218 else
5219   echo "$as_me: failed program was:" >&5
5220 cat conftest.$ac_ext >&5
5221 ac_cv_lib_PW_main=no
5222 fi
5223 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5224 LIBS=$ac_check_lib_save_LIBS
5225 fi
5226 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5227 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5228 if test $ac_cv_lib_PW_main = yes; then
5229   cat >>confdefs.h <<_ACEOF
5230 #define HAVE_LIBPW 1
5231 _ACEOF
5232
5233   LIBS="-lPW $LIBS"
5234
5235 fi
5236
5237
5238 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5239 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5240 if test "${ac_cv_lib_resolv_main+set}" = set; then
5241   echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243   ac_check_lib_save_LIBS=$LIBS
5244 LIBS="-lresolv  $LIBS"
5245 cat >conftest.$ac_ext <<_ACEOF
5246 #line $LINENO "configure"
5247 #include "confdefs.h"
5248
5249
5250 #ifdef F77_DUMMY_MAIN
5251 #  ifdef __cplusplus
5252      extern "C"
5253 #  endif
5254    int F77_DUMMY_MAIN() { return 1; }
5255 #endif
5256 int
5257 main ()
5258 {
5259 main ();
5260   ;
5261   return 0;
5262 }
5263 _ACEOF
5264 rm -f conftest.$ac_objext conftest$ac_exeext
5265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5266   (eval $ac_link) 2>&5
5267   ac_status=$?
5268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269   (exit $ac_status); } &&
5270          { ac_try='test -s conftest$ac_exeext'
5271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272   (eval $ac_try) 2>&5
5273   ac_status=$?
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); }; }; then
5276   ac_cv_lib_resolv_main=yes
5277 else
5278   echo "$as_me: failed program was:" >&5
5279 cat conftest.$ac_ext >&5
5280 ac_cv_lib_resolv_main=no
5281 fi
5282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5283 LIBS=$ac_check_lib_save_LIBS
5284 fi
5285 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5286 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5287 if test $ac_cv_lib_resolv_main = yes; then
5288   cat >>confdefs.h <<_ACEOF
5289 #define HAVE_LIBRESOLV 1
5290 _ACEOF
5291
5292   LIBS="-lresolv $LIBS"
5293
5294 fi
5295
5296 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5297 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5298 if test "${ac_cv_search_getopt_long+set}" = set; then
5299   echo $ECHO_N "(cached) $ECHO_C" >&6
5300 else
5301   ac_func_search_save_LIBS=$LIBS
5302 ac_cv_search_getopt_long=no
5303 cat >conftest.$ac_ext <<_ACEOF
5304 #line $LINENO "configure"
5305 #include "confdefs.h"
5306
5307 /* Override any gcc2 internal prototype to avoid an error.  */
5308 #ifdef __cplusplus
5309 extern "C"
5310 #endif
5311 /* We use char because int might match the return type of a gcc2
5312    builtin and then its argument prototype would still apply.  */
5313 char getopt_long ();
5314 #ifdef F77_DUMMY_MAIN
5315 #  ifdef __cplusplus
5316      extern "C"
5317 #  endif
5318    int F77_DUMMY_MAIN() { return 1; }
5319 #endif
5320 int
5321 main ()
5322 {
5323 getopt_long ();
5324   ;
5325   return 0;
5326 }
5327 _ACEOF
5328 rm -f conftest.$ac_objext conftest$ac_exeext
5329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5330   (eval $ac_link) 2>&5
5331   ac_status=$?
5332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333   (exit $ac_status); } &&
5334          { ac_try='test -s conftest$ac_exeext'
5335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336   (eval $ac_try) 2>&5
5337   ac_status=$?
5338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339   (exit $ac_status); }; }; then
5340   ac_cv_search_getopt_long="none required"
5341 else
5342   echo "$as_me: failed program was:" >&5
5343 cat conftest.$ac_ext >&5
5344 fi
5345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5346 if test "$ac_cv_search_getopt_long" = no; then
5347   for ac_lib in getopt gnugetopt; do
5348     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5349     cat >conftest.$ac_ext <<_ACEOF
5350 #line $LINENO "configure"
5351 #include "confdefs.h"
5352
5353 /* Override any gcc2 internal prototype to avoid an error.  */
5354 #ifdef __cplusplus
5355 extern "C"
5356 #endif
5357 /* We use char because int might match the return type of a gcc2
5358    builtin and then its argument prototype would still apply.  */
5359 char getopt_long ();
5360 #ifdef F77_DUMMY_MAIN
5361 #  ifdef __cplusplus
5362      extern "C"
5363 #  endif
5364    int F77_DUMMY_MAIN() { return 1; }
5365 #endif
5366 int
5367 main ()
5368 {
5369 getopt_long ();
5370   ;
5371   return 0;
5372 }
5373 _ACEOF
5374 rm -f conftest.$ac_objext conftest$ac_exeext
5375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5376   (eval $ac_link) 2>&5
5377   ac_status=$?
5378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379   (exit $ac_status); } &&
5380          { ac_try='test -s conftest$ac_exeext'
5381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382   (eval $ac_try) 2>&5
5383   ac_status=$?
5384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385   (exit $ac_status); }; }; then
5386   ac_cv_search_getopt_long="-l$ac_lib"
5387 break
5388 else
5389   echo "$as_me: failed program was:" >&5
5390 cat conftest.$ac_ext >&5
5391 fi
5392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5393   done
5394 fi
5395 LIBS=$ac_func_search_save_LIBS
5396 fi
5397 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5398 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5399 if test "$ac_cv_search_getopt_long" != no; then
5400   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5401
5402 fi
5403
5404 # QNX:
5405
5406 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5407 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5408 if test "${ac_cv_lib_unix_main+set}" = set; then
5409   echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411   ac_check_lib_save_LIBS=$LIBS
5412 LIBS="-lunix  $LIBS"
5413 cat >conftest.$ac_ext <<_ACEOF
5414 #line $LINENO "configure"
5415 #include "confdefs.h"
5416
5417
5418 #ifdef F77_DUMMY_MAIN
5419 #  ifdef __cplusplus
5420      extern "C"
5421 #  endif
5422    int F77_DUMMY_MAIN() { return 1; }
5423 #endif
5424 int
5425 main ()
5426 {
5427 main ();
5428   ;
5429   return 0;
5430 }
5431 _ACEOF
5432 rm -f conftest.$ac_objext conftest$ac_exeext
5433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5434   (eval $ac_link) 2>&5
5435   ac_status=$?
5436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437   (exit $ac_status); } &&
5438          { ac_try='test -s conftest$ac_exeext'
5439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440   (eval $ac_try) 2>&5
5441   ac_status=$?
5442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443   (exit $ac_status); }; }; then
5444   ac_cv_lib_unix_main=yes
5445 else
5446   echo "$as_me: failed program was:" >&5
5447 cat conftest.$ac_ext >&5
5448 ac_cv_lib_unix_main=no
5449 fi
5450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5451 LIBS=$ac_check_lib_save_LIBS
5452 fi
5453 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5454 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5455 if test $ac_cv_lib_unix_main = yes; then
5456   cat >>confdefs.h <<_ACEOF
5457 #define HAVE_LIBUNIX 1
5458 _ACEOF
5459
5460   LIBS="-lunix $LIBS"
5461
5462 fi
5463
5464 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5465 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5466 if test "${ac_cv_search_crypt+set}" = set; then
5467   echo $ECHO_N "(cached) $ECHO_C" >&6
5468 else
5469   ac_func_search_save_LIBS=$LIBS
5470 ac_cv_search_crypt=no
5471 cat >conftest.$ac_ext <<_ACEOF
5472 #line $LINENO "configure"
5473 #include "confdefs.h"
5474
5475 /* Override any gcc2 internal prototype to avoid an error.  */
5476 #ifdef __cplusplus
5477 extern "C"
5478 #endif
5479 /* We use char because int might match the return type of a gcc2
5480    builtin and then its argument prototype would still apply.  */
5481 char crypt ();
5482 #ifdef F77_DUMMY_MAIN
5483 #  ifdef __cplusplus
5484      extern "C"
5485 #  endif
5486    int F77_DUMMY_MAIN() { return 1; }
5487 #endif
5488 int
5489 main ()
5490 {
5491 crypt ();
5492   ;
5493   return 0;
5494 }
5495 _ACEOF
5496 rm -f conftest.$ac_objext conftest$ac_exeext
5497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5498   (eval $ac_link) 2>&5
5499   ac_status=$?
5500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501   (exit $ac_status); } &&
5502          { ac_try='test -s conftest$ac_exeext'
5503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504   (eval $ac_try) 2>&5
5505   ac_status=$?
5506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507   (exit $ac_status); }; }; then
5508   ac_cv_search_crypt="none required"
5509 else
5510   echo "$as_me: failed program was:" >&5
5511 cat conftest.$ac_ext >&5
5512 fi
5513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5514 if test "$ac_cv_search_crypt" = no; then
5515   for ac_lib in crypt; do
5516     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5517     cat >conftest.$ac_ext <<_ACEOF
5518 #line $LINENO "configure"
5519 #include "confdefs.h"
5520
5521 /* Override any gcc2 internal prototype to avoid an error.  */
5522 #ifdef __cplusplus
5523 extern "C"
5524 #endif
5525 /* We use char because int might match the return type of a gcc2
5526    builtin and then its argument prototype would still apply.  */
5527 char crypt ();
5528 #ifdef F77_DUMMY_MAIN
5529 #  ifdef __cplusplus
5530      extern "C"
5531 #  endif
5532    int F77_DUMMY_MAIN() { return 1; }
5533 #endif
5534 int
5535 main ()
5536 {
5537 crypt ();
5538   ;
5539   return 0;
5540 }
5541 _ACEOF
5542 rm -f conftest.$ac_objext conftest$ac_exeext
5543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5544   (eval $ac_link) 2>&5
5545   ac_status=$?
5546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547   (exit $ac_status); } &&
5548          { ac_try='test -s conftest$ac_exeext'
5549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550   (eval $ac_try) 2>&5
5551   ac_status=$?
5552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553   (exit $ac_status); }; }; then
5554   ac_cv_search_crypt="-l$ac_lib"
5555 break
5556 else
5557   echo "$as_me: failed program was:" >&5
5558 cat conftest.$ac_ext >&5
5559 fi
5560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5561   done
5562 fi
5563 LIBS=$ac_func_search_save_LIBS
5564 fi
5565 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5566 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5567 if test "$ac_cv_search_crypt" != no; then
5568   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5569
5570 fi
5571
5572 # BeOS:
5573 if test "$PORTNAME" = "beos"
5574 then
5575
5576 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5577 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5578 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5579   echo $ECHO_N "(cached) $ECHO_C" >&6
5580 else
5581   ac_check_lib_save_LIBS=$LIBS
5582 LIBS="-lbind  $LIBS"
5583 cat >conftest.$ac_ext <<_ACEOF
5584 #line $LINENO "configure"
5585 #include "confdefs.h"
5586
5587 /* Override any gcc2 internal prototype to avoid an error.  */
5588 #ifdef __cplusplus
5589 extern "C"
5590 #endif
5591 /* We use char because int might match the return type of a gcc2
5592    builtin and then its argument prototype would still apply.  */
5593 char __inet_ntoa ();
5594 #ifdef F77_DUMMY_MAIN
5595 #  ifdef __cplusplus
5596      extern "C"
5597 #  endif
5598    int F77_DUMMY_MAIN() { return 1; }
5599 #endif
5600 int
5601 main ()
5602 {
5603 __inet_ntoa ();
5604   ;
5605   return 0;
5606 }
5607 _ACEOF
5608 rm -f conftest.$ac_objext conftest$ac_exeext
5609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5610   (eval $ac_link) 2>&5
5611   ac_status=$?
5612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613   (exit $ac_status); } &&
5614          { ac_try='test -s conftest$ac_exeext'
5615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616   (eval $ac_try) 2>&5
5617   ac_status=$?
5618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619   (exit $ac_status); }; }; then
5620   ac_cv_lib_bind___inet_ntoa=yes
5621 else
5622   echo "$as_me: failed program was:" >&5
5623 cat conftest.$ac_ext >&5
5624 ac_cv_lib_bind___inet_ntoa=no
5625 fi
5626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5627 LIBS=$ac_check_lib_save_LIBS
5628 fi
5629 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5630 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5631 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5632   cat >>confdefs.h <<_ACEOF
5633 #define HAVE_LIBBIND 1
5634 _ACEOF
5635
5636   LIBS="-lbind $LIBS"
5637
5638 fi
5639
5640 fi
5641 # Solaris:
5642 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5643 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5644 if test "${ac_cv_search_fdatasync+set}" = set; then
5645   echo $ECHO_N "(cached) $ECHO_C" >&6
5646 else
5647   ac_func_search_save_LIBS=$LIBS
5648 ac_cv_search_fdatasync=no
5649 cat >conftest.$ac_ext <<_ACEOF
5650 #line $LINENO "configure"
5651 #include "confdefs.h"
5652
5653 /* Override any gcc2 internal prototype to avoid an error.  */
5654 #ifdef __cplusplus
5655 extern "C"
5656 #endif
5657 /* We use char because int might match the return type of a gcc2
5658    builtin and then its argument prototype would still apply.  */
5659 char fdatasync ();
5660 #ifdef F77_DUMMY_MAIN
5661 #  ifdef __cplusplus
5662      extern "C"
5663 #  endif
5664    int F77_DUMMY_MAIN() { return 1; }
5665 #endif
5666 int
5667 main ()
5668 {
5669 fdatasync ();
5670   ;
5671   return 0;
5672 }
5673 _ACEOF
5674 rm -f conftest.$ac_objext conftest$ac_exeext
5675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5676   (eval $ac_link) 2>&5
5677   ac_status=$?
5678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679   (exit $ac_status); } &&
5680          { ac_try='test -s conftest$ac_exeext'
5681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682   (eval $ac_try) 2>&5
5683   ac_status=$?
5684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685   (exit $ac_status); }; }; then
5686   ac_cv_search_fdatasync="none required"
5687 else
5688   echo "$as_me: failed program was:" >&5
5689 cat conftest.$ac_ext >&5
5690 fi
5691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5692 if test "$ac_cv_search_fdatasync" = no; then
5693   for ac_lib in rt posix4; do
5694     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5695     cat >conftest.$ac_ext <<_ACEOF
5696 #line $LINENO "configure"
5697 #include "confdefs.h"
5698
5699 /* Override any gcc2 internal prototype to avoid an error.  */
5700 #ifdef __cplusplus
5701 extern "C"
5702 #endif
5703 /* We use char because int might match the return type of a gcc2
5704    builtin and then its argument prototype would still apply.  */
5705 char fdatasync ();
5706 #ifdef F77_DUMMY_MAIN
5707 #  ifdef __cplusplus
5708      extern "C"
5709 #  endif
5710    int F77_DUMMY_MAIN() { return 1; }
5711 #endif
5712 int
5713 main ()
5714 {
5715 fdatasync ();
5716   ;
5717   return 0;
5718 }
5719 _ACEOF
5720 rm -f conftest.$ac_objext conftest$ac_exeext
5721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5722   (eval $ac_link) 2>&5
5723   ac_status=$?
5724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725   (exit $ac_status); } &&
5726          { ac_try='test -s conftest$ac_exeext'
5727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728   (eval $ac_try) 2>&5
5729   ac_status=$?
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); }; }; then
5732   ac_cv_search_fdatasync="-l$ac_lib"
5733 break
5734 else
5735   echo "$as_me: failed program was:" >&5
5736 cat conftest.$ac_ext >&5
5737 fi
5738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5739   done
5740 fi
5741 LIBS=$ac_func_search_save_LIBS
5742 fi
5743 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5744 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5745 if test "$ac_cv_search_fdatasync" != no; then
5746   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5747
5748 fi
5749
5750 # Cygwin:
5751
5752 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5753 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5754 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5755   echo $ECHO_N "(cached) $ECHO_C" >&6
5756 else
5757   ac_check_lib_save_LIBS=$LIBS
5758 LIBS="-lcygipc  $LIBS"
5759 cat >conftest.$ac_ext <<_ACEOF
5760 #line $LINENO "configure"
5761 #include "confdefs.h"
5762
5763 /* Override any gcc2 internal prototype to avoid an error.  */
5764 #ifdef __cplusplus
5765 extern "C"
5766 #endif
5767 /* We use char because int might match the return type of a gcc2
5768    builtin and then its argument prototype would still apply.  */
5769 char shmget ();
5770 #ifdef F77_DUMMY_MAIN
5771 #  ifdef __cplusplus
5772      extern "C"
5773 #  endif
5774    int F77_DUMMY_MAIN() { return 1; }
5775 #endif
5776 int
5777 main ()
5778 {
5779 shmget ();
5780   ;
5781   return 0;
5782 }
5783 _ACEOF
5784 rm -f conftest.$ac_objext conftest$ac_exeext
5785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5786   (eval $ac_link) 2>&5
5787   ac_status=$?
5788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789   (exit $ac_status); } &&
5790          { ac_try='test -s conftest$ac_exeext'
5791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792   (eval $ac_try) 2>&5
5793   ac_status=$?
5794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795   (exit $ac_status); }; }; then
5796   ac_cv_lib_cygipc_shmget=yes
5797 else
5798   echo "$as_me: failed program was:" >&5
5799 cat conftest.$ac_ext >&5
5800 ac_cv_lib_cygipc_shmget=no
5801 fi
5802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5803 LIBS=$ac_check_lib_save_LIBS
5804 fi
5805 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5806 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5807 if test $ac_cv_lib_cygipc_shmget = yes; then
5808   cat >>confdefs.h <<_ACEOF
5809 #define HAVE_LIBCYGIPC 1
5810 _ACEOF
5811
5812   LIBS="-lcygipc $LIBS"
5813
5814 fi
5815
5816 # WIN32:
5817 if test "$PORTNAME" = "win32"
5818 then
5819
5820 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5821 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5822 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5823   echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825   ac_check_lib_save_LIBS=$LIBS
5826 LIBS="-lwsock32  $LIBS"
5827 cat >conftest.$ac_ext <<_ACEOF
5828 #line $LINENO "configure"
5829 #include "confdefs.h"
5830
5831
5832 #ifdef F77_DUMMY_MAIN
5833 #  ifdef __cplusplus
5834      extern "C"
5835 #  endif
5836    int F77_DUMMY_MAIN() { return 1; }
5837 #endif
5838 int
5839 main ()
5840 {
5841 main ();
5842   ;
5843   return 0;
5844 }
5845 _ACEOF
5846 rm -f conftest.$ac_objext conftest$ac_exeext
5847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5848   (eval $ac_link) 2>&5
5849   ac_status=$?
5850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851   (exit $ac_status); } &&
5852          { ac_try='test -s conftest$ac_exeext'
5853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854   (eval $ac_try) 2>&5
5855   ac_status=$?
5856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857   (exit $ac_status); }; }; then
5858   ac_cv_lib_wsock32_main=yes
5859 else
5860   echo "$as_me: failed program was:" >&5
5861 cat conftest.$ac_ext >&5
5862 ac_cv_lib_wsock32_main=no
5863 fi
5864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5865 LIBS=$ac_check_lib_save_LIBS
5866 fi
5867 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5868 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5869 if test $ac_cv_lib_wsock32_main = yes; then
5870   cat >>confdefs.h <<_ACEOF
5871 #define HAVE_LIBWSOCK32 1
5872 _ACEOF
5873
5874   LIBS="-lwsock32 $LIBS"
5875
5876 fi
5877
5878 fi
5879
5880 if test "$with_readline" = yes; then
5881
5882 echo "$as_me:$LINENO: checking for readline" >&5
5883 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5884
5885 if test "${pgac_cv_check_readline+set}" = set; then
5886   echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888   pgac_cv_check_readline=no
5889 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5890   for pgac_rllib in -lreadline -ledit ; do
5891     pgac_save_LIBS=$LIBS
5892     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5893     cat >conftest.$ac_ext <<_ACEOF
5894 #line $LINENO "configure"
5895 #include "confdefs.h"
5896
5897 /* Override any gcc2 internal prototype to avoid an error.  */
5898 #ifdef __cplusplus
5899 extern "C"
5900 #endif
5901 /* We use char because int might match the return type of a gcc2
5902    builtin and then its argument prototype would still apply.  */
5903 char readline ();
5904 #ifdef F77_DUMMY_MAIN
5905 #  ifdef __cplusplus
5906      extern "C"
5907 #  endif
5908    int F77_DUMMY_MAIN() { return 1; }
5909 #endif
5910 int
5911 main ()
5912 {
5913 readline ();
5914   ;
5915   return 0;
5916 }
5917 _ACEOF
5918 rm -f conftest.$ac_objext conftest$ac_exeext
5919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5920   (eval $ac_link) 2>&5
5921   ac_status=$?
5922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923   (exit $ac_status); } &&
5924          { ac_try='test -s conftest$ac_exeext'
5925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926   (eval $ac_try) 2>&5
5927   ac_status=$?
5928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929   (exit $ac_status); }; }; then
5930
5931       # NetBSD and OpenBSD have a broken linker that does not
5932       # recognize dependent libraries
5933       case $host_os in netbsd* | openbsd* )
5934         case $pgac_lib in
5935           *curses*) ;;
5936           *) pgac_lib=" -lcurses" ;;
5937         esac
5938       esac
5939
5940       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5941       break 2
5942
5943 else
5944   echo "$as_me: failed program was:" >&5
5945 cat conftest.$ac_ext >&5
5946 fi
5947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5948     LIBS=$pgac_save_LIBS
5949   done
5950 done
5951 LIBS=$pgac_save_LIBS
5952
5953 fi
5954
5955 if test "$pgac_cv_check_readline" != no ; then
5956
5957 cat >>confdefs.h <<\_ACEOF
5958 #define HAVE_LIBREADLINE 1
5959 _ACEOF
5960
5961   LIBS="$pgac_cv_check_readline $LIBS"
5962   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5963 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5964 else
5965   echo "$as_me:$LINENO: result: no" >&5
5966 echo "${ECHO_T}no" >&6
5967 fi
5968   if test x"$pgac_cv_check_readline" = x"no"; then
5969     { { echo "$as_me:$LINENO: error: readline library not found
5970 If you have readline already installed, see config.log for details on the
5971 failure.  It is possible the compiler isn't looking in the proper directory.
5972 Use --without-readline to disable readline support." >&5
5973 echo "$as_me: error: readline library not found
5974 If you have readline already installed, see config.log for details on the
5975 failure.  It is possible the compiler isn't looking in the proper directory.
5976 Use --without-readline to disable readline support." >&2;}
5977    { (exit 1); exit 1; }; }
5978   fi
5979 fi
5980
5981 if test "$with_zlib" = yes; then
5982
5983 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5984 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5985 if test "${ac_cv_lib_z_inflate+set}" = set; then
5986   echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988   ac_check_lib_save_LIBS=$LIBS
5989 LIBS="-lz  $LIBS"
5990 cat >conftest.$ac_ext <<_ACEOF
5991 #line $LINENO "configure"
5992 #include "confdefs.h"
5993
5994 /* Override any gcc2 internal prototype to avoid an error.  */
5995 #ifdef __cplusplus
5996 extern "C"
5997 #endif
5998 /* We use char because int might match the return type of a gcc2
5999    builtin and then its argument prototype would still apply.  */
6000 char inflate ();
6001 #ifdef F77_DUMMY_MAIN
6002 #  ifdef __cplusplus
6003      extern "C"
6004 #  endif
6005    int F77_DUMMY_MAIN() { return 1; }
6006 #endif
6007 int
6008 main ()
6009 {
6010 inflate ();
6011   ;
6012   return 0;
6013 }
6014 _ACEOF
6015 rm -f conftest.$ac_objext conftest$ac_exeext
6016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6017   (eval $ac_link) 2>&5
6018   ac_status=$?
6019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020   (exit $ac_status); } &&
6021          { ac_try='test -s conftest$ac_exeext'
6022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023   (eval $ac_try) 2>&5
6024   ac_status=$?
6025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026   (exit $ac_status); }; }; then
6027   ac_cv_lib_z_inflate=yes
6028 else
6029   echo "$as_me: failed program was:" >&5
6030 cat conftest.$ac_ext >&5
6031 ac_cv_lib_z_inflate=no
6032 fi
6033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6034 LIBS=$ac_check_lib_save_LIBS
6035 fi
6036 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6037 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6038 if test $ac_cv_lib_z_inflate = yes; then
6039   cat >>confdefs.h <<_ACEOF
6040 #define HAVE_LIBZ 1
6041 _ACEOF
6042
6043   LIBS="-lz $LIBS"
6044
6045 else
6046   { { echo "$as_me:$LINENO: error: zlib library not found
6047 If you have zlib already installed, see config.log for details on the
6048 failure.  It is possible the compiler isn't looking in the proper directory.
6049 Use --without-zlib to disable zlib support." >&5
6050 echo "$as_me: error: zlib library not found
6051 If you have zlib already installed, see config.log for details on the
6052 failure.  It is possible the compiler isn't looking in the proper directory.
6053 Use --without-zlib to disable zlib support." >&2;}
6054    { (exit 1); exit 1; }; }
6055 fi
6056
6057 fi
6058
6059 if test "$with_krb4" = yes ; then
6060
6061 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6062 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6063 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6064   echo $ECHO_N "(cached) $ECHO_C" >&6
6065 else
6066   ac_check_lib_save_LIBS=$LIBS
6067 LIBS="-ldes  $LIBS"
6068 cat >conftest.$ac_ext <<_ACEOF
6069 #line $LINENO "configure"
6070 #include "confdefs.h"
6071
6072 /* Override any gcc2 internal prototype to avoid an error.  */
6073 #ifdef __cplusplus
6074 extern "C"
6075 #endif
6076 /* We use char because int might match the return type of a gcc2
6077    builtin and then its argument prototype would still apply.  */
6078 char des_encrypt ();
6079 #ifdef F77_DUMMY_MAIN
6080 #  ifdef __cplusplus
6081      extern "C"
6082 #  endif
6083    int F77_DUMMY_MAIN() { return 1; }
6084 #endif
6085 int
6086 main ()
6087 {
6088 des_encrypt ();
6089   ;
6090   return 0;
6091 }
6092 _ACEOF
6093 rm -f conftest.$ac_objext conftest$ac_exeext
6094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6095   (eval $ac_link) 2>&5
6096   ac_status=$?
6097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098   (exit $ac_status); } &&
6099          { ac_try='test -s conftest$ac_exeext'
6100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101   (eval $ac_try) 2>&5
6102   ac_status=$?
6103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104   (exit $ac_status); }; }; then
6105   ac_cv_lib_des_des_encrypt=yes
6106 else
6107   echo "$as_me: failed program was:" >&5
6108 cat conftest.$ac_ext >&5
6109 ac_cv_lib_des_des_encrypt=no
6110 fi
6111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6112 LIBS=$ac_check_lib_save_LIBS
6113 fi
6114 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6115 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6116 if test $ac_cv_lib_des_des_encrypt = yes; then
6117   cat >>confdefs.h <<_ACEOF
6118 #define HAVE_LIBDES 1
6119 _ACEOF
6120
6121   LIBS="-ldes $LIBS"
6122
6123 else
6124   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6125 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6126    { (exit 1); exit 1; }; }
6127 fi
6128
6129
6130 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6131 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6132 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6133   echo $ECHO_N "(cached) $ECHO_C" >&6
6134 else
6135   ac_check_lib_save_LIBS=$LIBS
6136 LIBS="-lkrb  $LIBS"
6137 cat >conftest.$ac_ext <<_ACEOF
6138 #line $LINENO "configure"
6139 #include "confdefs.h"
6140
6141 /* Override any gcc2 internal prototype to avoid an error.  */
6142 #ifdef __cplusplus
6143 extern "C"
6144 #endif
6145 /* We use char because int might match the return type of a gcc2
6146    builtin and then its argument prototype would still apply.  */
6147 char krb_sendauth ();
6148 #ifdef F77_DUMMY_MAIN
6149 #  ifdef __cplusplus
6150      extern "C"
6151 #  endif
6152    int F77_DUMMY_MAIN() { return 1; }
6153 #endif
6154 int
6155 main ()
6156 {
6157 krb_sendauth ();
6158   ;
6159   return 0;
6160 }
6161 _ACEOF
6162 rm -f conftest.$ac_objext conftest$ac_exeext
6163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6164   (eval $ac_link) 2>&5
6165   ac_status=$?
6166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167   (exit $ac_status); } &&
6168          { ac_try='test -s conftest$ac_exeext'
6169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6170   (eval $ac_try) 2>&5
6171   ac_status=$?
6172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173   (exit $ac_status); }; }; then
6174   ac_cv_lib_krb_krb_sendauth=yes
6175 else
6176   echo "$as_me: failed program was:" >&5
6177 cat conftest.$ac_ext >&5
6178 ac_cv_lib_krb_krb_sendauth=no
6179 fi
6180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6181 LIBS=$ac_check_lib_save_LIBS
6182 fi
6183 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6184 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6185 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6186   cat >>confdefs.h <<_ACEOF
6187 #define HAVE_LIBKRB 1
6188 _ACEOF
6189
6190   LIBS="-lkrb $LIBS"
6191
6192 else
6193   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6194 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6195    { (exit 1); exit 1; }; }
6196 fi
6197
6198
6199 for ac_func in gethostname
6200 do
6201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6202 echo "$as_me:$LINENO: checking for $ac_func" >&5
6203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6204 if eval "test \"\${$as_ac_var+set}\" = set"; then
6205   echo $ECHO_N "(cached) $ECHO_C" >&6
6206 else
6207   cat >conftest.$ac_ext <<_ACEOF
6208 #line $LINENO "configure"
6209 #include "confdefs.h"
6210 /* System header to define __stub macros and hopefully few prototypes,
6211     which can conflict with char $ac_func (); below.  */
6212 #include <assert.h>
6213 /* Override any gcc2 internal prototype to avoid an error.  */
6214 #ifdef __cplusplus
6215 extern "C"
6216 #endif
6217 /* We use char because int might match the return type of a gcc2
6218    builtin and then its argument prototype would still apply.  */
6219 char $ac_func ();
6220 char (*f) ();
6221
6222 #ifdef F77_DUMMY_MAIN
6223 #  ifdef __cplusplus
6224      extern "C"
6225 #  endif
6226    int F77_DUMMY_MAIN() { return 1; }
6227 #endif
6228 int
6229 main ()
6230 {
6231 /* The GNU C library defines this for functions which it implements
6232     to always fail with ENOSYS.  Some functions are actually named
6233     something starting with __ and the normal name is an alias.  */
6234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6235 choke me
6236 #else
6237 f = $ac_func;
6238 #endif
6239
6240   ;
6241   return 0;
6242 }
6243 _ACEOF
6244 rm -f conftest.$ac_objext conftest$ac_exeext
6245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6246   (eval $ac_link) 2>&5
6247   ac_status=$?
6248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249   (exit $ac_status); } &&
6250          { ac_try='test -s conftest$ac_exeext'
6251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6252   (eval $ac_try) 2>&5
6253   ac_status=$?
6254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255   (exit $ac_status); }; }; then
6256   eval "$as_ac_var=yes"
6257 else
6258   echo "$as_me: failed program was:" >&5
6259 cat conftest.$ac_ext >&5
6260 eval "$as_ac_var=no"
6261 fi
6262 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6263 fi
6264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6265 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6266 if test `eval echo '${'$as_ac_var'}'` = yes; then
6267   cat >>confdefs.h <<_ACEOF
6268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6269 _ACEOF
6270
6271 else
6272   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6273 fi
6274 done
6275
6276
6277 fi
6278
6279 if test "$with_krb5" = yes ; then
6280   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6281 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6282 if test "${ac_cv_search_com_err+set}" = set; then
6283   echo $ECHO_N "(cached) $ECHO_C" >&6
6284 else
6285   ac_func_search_save_LIBS=$LIBS
6286 ac_cv_search_com_err=no
6287 cat >conftest.$ac_ext <<_ACEOF
6288 #line $LINENO "configure"
6289 #include "confdefs.h"
6290
6291 /* Override any gcc2 internal prototype to avoid an error.  */
6292 #ifdef __cplusplus
6293 extern "C"
6294 #endif
6295 /* We use char because int might match the return type of a gcc2
6296    builtin and then its argument prototype would still apply.  */
6297 char com_err ();
6298 #ifdef F77_DUMMY_MAIN
6299 #  ifdef __cplusplus
6300      extern "C"
6301 #  endif
6302    int F77_DUMMY_MAIN() { return 1; }
6303 #endif
6304 int
6305 main ()
6306 {
6307 com_err ();
6308   ;
6309   return 0;
6310 }
6311 _ACEOF
6312 rm -f conftest.$ac_objext conftest$ac_exeext
6313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6314   (eval $ac_link) 2>&5
6315   ac_status=$?
6316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317   (exit $ac_status); } &&
6318          { ac_try='test -s conftest$ac_exeext'
6319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320   (eval $ac_try) 2>&5
6321   ac_status=$?
6322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323   (exit $ac_status); }; }; then
6324   ac_cv_search_com_err="none required"
6325 else
6326   echo "$as_me: failed program was:" >&5
6327 cat conftest.$ac_ext >&5
6328 fi
6329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6330 if test "$ac_cv_search_com_err" = no; then
6331   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6332     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
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 com_err ();
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 com_err ();
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_com_err="-l$ac_lib"
6371 break
6372 else
6373   echo "$as_me: failed program was:" >&5
6374 cat conftest.$ac_ext >&5
6375 fi
6376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6377   done
6378 fi
6379 LIBS=$ac_func_search_save_LIBS
6380 fi
6381 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6382 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6383 if test "$ac_cv_search_com_err" != no; then
6384   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6385
6386 else
6387   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6388 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6389    { (exit 1); exit 1; }; }
6390 fi
6391
6392   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6393 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6394 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6395   echo $ECHO_N "(cached) $ECHO_C" >&6
6396 else
6397   ac_func_search_save_LIBS=$LIBS
6398 ac_cv_search_krb5_encrypt=no
6399 cat >conftest.$ac_ext <<_ACEOF
6400 #line $LINENO "configure"
6401 #include "confdefs.h"
6402
6403 /* Override any gcc2 internal prototype to avoid an error.  */
6404 #ifdef __cplusplus
6405 extern "C"
6406 #endif
6407 /* We use char because int might match the return type of a gcc2
6408    builtin and then its argument prototype would still apply.  */
6409 char krb5_encrypt ();
6410 #ifdef F77_DUMMY_MAIN
6411 #  ifdef __cplusplus
6412      extern "C"
6413 #  endif
6414    int F77_DUMMY_MAIN() { return 1; }
6415 #endif
6416 int
6417 main ()
6418 {
6419 krb5_encrypt ();
6420   ;
6421   return 0;
6422 }
6423 _ACEOF
6424 rm -f conftest.$ac_objext conftest$ac_exeext
6425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6426   (eval $ac_link) 2>&5
6427   ac_status=$?
6428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429   (exit $ac_status); } &&
6430          { ac_try='test -s conftest$ac_exeext'
6431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432   (eval $ac_try) 2>&5
6433   ac_status=$?
6434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435   (exit $ac_status); }; }; then
6436   ac_cv_search_krb5_encrypt="none required"
6437 else
6438   echo "$as_me: failed program was:" >&5
6439 cat conftest.$ac_ext >&5
6440 fi
6441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6442 if test "$ac_cv_search_krb5_encrypt" = no; then
6443   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6444     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
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_encrypt ();
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_encrypt ();
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_encrypt="-l$ac_lib"
6483 break
6484 else
6485   echo "$as_me: failed program was:" >&5
6486 cat conftest.$ac_ext >&5
6487 fi
6488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6489   done
6490 fi
6491 LIBS=$ac_func_search_save_LIBS
6492 fi
6493 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6494 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6495 if test "$ac_cv_search_krb5_encrypt" != no; then
6496   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6497
6498 else
6499   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6500 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6501    { (exit 1); exit 1; }; }
6502 fi
6503
6504   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6505 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6506 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6507   echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509   ac_func_search_save_LIBS=$LIBS
6510 ac_cv_search_krb5_sendauth=no
6511 cat >conftest.$ac_ext <<_ACEOF
6512 #line $LINENO "configure"
6513 #include "confdefs.h"
6514
6515 /* Override any gcc2 internal prototype to avoid an error.  */
6516 #ifdef __cplusplus
6517 extern "C"
6518 #endif
6519 /* We use char because int might match the return type of a gcc2
6520    builtin and then its argument prototype would still apply.  */
6521 char krb5_sendauth ();
6522 #ifdef F77_DUMMY_MAIN
6523 #  ifdef __cplusplus
6524      extern "C"
6525 #  endif
6526    int F77_DUMMY_MAIN() { return 1; }
6527 #endif
6528 int
6529 main ()
6530 {
6531 krb5_sendauth ();
6532   ;
6533   return 0;
6534 }
6535 _ACEOF
6536 rm -f conftest.$ac_objext conftest$ac_exeext
6537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6538   (eval $ac_link) 2>&5
6539   ac_status=$?
6540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541   (exit $ac_status); } &&
6542          { ac_try='test -s conftest$ac_exeext'
6543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6544   (eval $ac_try) 2>&5
6545   ac_status=$?
6546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547   (exit $ac_status); }; }; then
6548   ac_cv_search_krb5_sendauth="none required"
6549 else
6550   echo "$as_me: failed program was:" >&5
6551 cat conftest.$ac_ext >&5
6552 fi
6553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6554 if test "$ac_cv_search_krb5_sendauth" = no; then
6555   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6556     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6557     cat >conftest.$ac_ext <<_ACEOF
6558 #line $LINENO "configure"
6559 #include "confdefs.h"
6560
6561 /* Override any gcc2 internal prototype to avoid an error.  */
6562 #ifdef __cplusplus
6563 extern "C"
6564 #endif
6565 /* We use char because int might match the return type of a gcc2
6566    builtin and then its argument prototype would still apply.  */
6567 char krb5_sendauth ();
6568 #ifdef F77_DUMMY_MAIN
6569 #  ifdef __cplusplus
6570      extern "C"
6571 #  endif
6572    int F77_DUMMY_MAIN() { return 1; }
6573 #endif
6574 int
6575 main ()
6576 {
6577 krb5_sendauth ();
6578   ;
6579   return 0;
6580 }
6581 _ACEOF
6582 rm -f conftest.$ac_objext conftest$ac_exeext
6583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6584   (eval $ac_link) 2>&5
6585   ac_status=$?
6586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587   (exit $ac_status); } &&
6588          { ac_try='test -s conftest$ac_exeext'
6589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590   (eval $ac_try) 2>&5
6591   ac_status=$?
6592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593   (exit $ac_status); }; }; then
6594   ac_cv_search_krb5_sendauth="-l$ac_lib"
6595 break
6596 else
6597   echo "$as_me: failed program was:" >&5
6598 cat conftest.$ac_ext >&5
6599 fi
6600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6601   done
6602 fi
6603 LIBS=$ac_func_search_save_LIBS
6604 fi
6605 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6606 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6607 if test "$ac_cv_search_krb5_sendauth" != no; then
6608   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6609
6610 else
6611   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6612 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6613    { (exit 1); exit 1; }; }
6614 fi
6615
6616 fi
6617
6618 if test "$with_openssl" = yes ; then
6619
6620 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6621 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6622 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6623   echo $ECHO_N "(cached) $ECHO_C" >&6
6624 else
6625   ac_check_lib_save_LIBS=$LIBS
6626 LIBS="-lcrypto  $LIBS"
6627 cat >conftest.$ac_ext <<_ACEOF
6628 #line $LINENO "configure"
6629 #include "confdefs.h"
6630
6631 /* Override any gcc2 internal prototype to avoid an error.  */
6632 #ifdef __cplusplus
6633 extern "C"
6634 #endif
6635 /* We use char because int might match the return type of a gcc2
6636    builtin and then its argument prototype would still apply.  */
6637 char CRYPTO_new_ex_data ();
6638 #ifdef F77_DUMMY_MAIN
6639 #  ifdef __cplusplus
6640      extern "C"
6641 #  endif
6642    int F77_DUMMY_MAIN() { return 1; }
6643 #endif
6644 int
6645 main ()
6646 {
6647 CRYPTO_new_ex_data ();
6648   ;
6649   return 0;
6650 }
6651 _ACEOF
6652 rm -f conftest.$ac_objext conftest$ac_exeext
6653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6654   (eval $ac_link) 2>&5
6655   ac_status=$?
6656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657   (exit $ac_status); } &&
6658          { ac_try='test -s conftest$ac_exeext'
6659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6660   (eval $ac_try) 2>&5
6661   ac_status=$?
6662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663   (exit $ac_status); }; }; then
6664   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6665 else
6666   echo "$as_me: failed program was:" >&5
6667 cat conftest.$ac_ext >&5
6668 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6669 fi
6670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6671 LIBS=$ac_check_lib_save_LIBS
6672 fi
6673 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6674 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6675 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6676   cat >>confdefs.h <<_ACEOF
6677 #define HAVE_LIBCRYPTO 1
6678 _ACEOF
6679
6680   LIBS="-lcrypto $LIBS"
6681
6682 else
6683   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6684 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6685    { (exit 1); exit 1; }; }
6686 fi
6687
6688
6689 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6690 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6691 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6692   echo $ECHO_N "(cached) $ECHO_C" >&6
6693 else
6694   ac_check_lib_save_LIBS=$LIBS
6695 LIBS="-lssl  $LIBS"
6696 cat >conftest.$ac_ext <<_ACEOF
6697 #line $LINENO "configure"
6698 #include "confdefs.h"
6699
6700 /* Override any gcc2 internal prototype to avoid an error.  */
6701 #ifdef __cplusplus
6702 extern "C"
6703 #endif
6704 /* We use char because int might match the return type of a gcc2
6705    builtin and then its argument prototype would still apply.  */
6706 char SSL_library_init ();
6707 #ifdef F77_DUMMY_MAIN
6708 #  ifdef __cplusplus
6709      extern "C"
6710 #  endif
6711    int F77_DUMMY_MAIN() { return 1; }
6712 #endif
6713 int
6714 main ()
6715 {
6716 SSL_library_init ();
6717   ;
6718   return 0;
6719 }
6720 _ACEOF
6721 rm -f conftest.$ac_objext conftest$ac_exeext
6722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6723   (eval $ac_link) 2>&5
6724   ac_status=$?
6725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726   (exit $ac_status); } &&
6727          { ac_try='test -s conftest$ac_exeext'
6728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729   (eval $ac_try) 2>&5
6730   ac_status=$?
6731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732   (exit $ac_status); }; }; then
6733   ac_cv_lib_ssl_SSL_library_init=yes
6734 else
6735   echo "$as_me: failed program was:" >&5
6736 cat conftest.$ac_ext >&5
6737 ac_cv_lib_ssl_SSL_library_init=no
6738 fi
6739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6740 LIBS=$ac_check_lib_save_LIBS
6741 fi
6742 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6743 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6744 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6745   cat >>confdefs.h <<_ACEOF
6746 #define HAVE_LIBSSL 1
6747 _ACEOF
6748
6749   LIBS="-lssl $LIBS"
6750
6751 else
6752   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6753 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6754    { (exit 1); exit 1; }; }
6755 fi
6756
6757 fi
6758
6759 if test "$with_pam" = yes ; then
6760
6761 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6762 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6763 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6764   echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766   ac_check_lib_save_LIBS=$LIBS
6767 LIBS="-lpam  $LIBS"
6768 cat >conftest.$ac_ext <<_ACEOF
6769 #line $LINENO "configure"
6770 #include "confdefs.h"
6771
6772 /* Override any gcc2 internal prototype to avoid an error.  */
6773 #ifdef __cplusplus
6774 extern "C"
6775 #endif
6776 /* We use char because int might match the return type of a gcc2
6777    builtin and then its argument prototype would still apply.  */
6778 char pam_start ();
6779 #ifdef F77_DUMMY_MAIN
6780 #  ifdef __cplusplus
6781      extern "C"
6782 #  endif
6783    int F77_DUMMY_MAIN() { return 1; }
6784 #endif
6785 int
6786 main ()
6787 {
6788 pam_start ();
6789   ;
6790   return 0;
6791 }
6792 _ACEOF
6793 rm -f conftest.$ac_objext conftest$ac_exeext
6794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6795   (eval $ac_link) 2>&5
6796   ac_status=$?
6797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798   (exit $ac_status); } &&
6799          { ac_try='test -s conftest$ac_exeext'
6800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801   (eval $ac_try) 2>&5
6802   ac_status=$?
6803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804   (exit $ac_status); }; }; then
6805   ac_cv_lib_pam_pam_start=yes
6806 else
6807   echo "$as_me: failed program was:" >&5
6808 cat conftest.$ac_ext >&5
6809 ac_cv_lib_pam_pam_start=no
6810 fi
6811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6812 LIBS=$ac_check_lib_save_LIBS
6813 fi
6814 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6815 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6816 if test $ac_cv_lib_pam_pam_start = yes; then
6817   cat >>confdefs.h <<_ACEOF
6818 #define HAVE_LIBPAM 1
6819 _ACEOF
6820
6821   LIBS="-lpam $LIBS"
6822
6823 else
6824   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6825 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6826    { (exit 1); exit 1; }; }
6827 fi
6828
6829 fi
6830
6831
6832 ##
6833 ## Header files
6834 ##
6835
6836 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6837 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6838 if test "${ac_cv_header_stdc+set}" = set; then
6839   echo $ECHO_N "(cached) $ECHO_C" >&6
6840 else
6841   cat >conftest.$ac_ext <<_ACEOF
6842 #line $LINENO "configure"
6843 #include "confdefs.h"
6844 #include <stdlib.h>
6845 #include <stdarg.h>
6846 #include <string.h>
6847 #include <float.h>
6848
6849 _ACEOF
6850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6851   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6852   ac_status=$?
6853   egrep -v '^ *\+' conftest.er1 >conftest.err
6854   rm -f conftest.er1
6855   cat conftest.err >&5
6856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857   (exit $ac_status); } >/dev/null; then
6858   if test -s conftest.err; then
6859     ac_cpp_err=$ac_c_preproc_warn_flag
6860   else
6861     ac_cpp_err=
6862   fi
6863 else
6864   ac_cpp_err=yes
6865 fi
6866 if test -z "$ac_cpp_err"; then
6867   ac_cv_header_stdc=yes
6868 else
6869   echo "$as_me: failed program was:" >&5
6870   cat conftest.$ac_ext >&5
6871   ac_cv_header_stdc=no
6872 fi
6873 rm -f conftest.err conftest.$ac_ext
6874
6875 if test $ac_cv_header_stdc = yes; then
6876   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6877   cat >conftest.$ac_ext <<_ACEOF
6878 #line $LINENO "configure"
6879 #include "confdefs.h"
6880 #include <string.h>
6881
6882 _ACEOF
6883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6884   egrep "memchr" >/dev/null 2>&1; then
6885   :
6886 else
6887   ac_cv_header_stdc=no
6888 fi
6889 rm -f conftest*
6890
6891 fi
6892
6893 if test $ac_cv_header_stdc = yes; then
6894   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6895   cat >conftest.$ac_ext <<_ACEOF
6896 #line $LINENO "configure"
6897 #include "confdefs.h"
6898 #include <stdlib.h>
6899
6900 _ACEOF
6901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6902   egrep "free" >/dev/null 2>&1; then
6903   :
6904 else
6905   ac_cv_header_stdc=no
6906 fi
6907 rm -f conftest*
6908
6909 fi
6910
6911 if test $ac_cv_header_stdc = yes; then
6912   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6913   if test "$cross_compiling" = yes; then
6914   :
6915 else
6916   cat >conftest.$ac_ext <<_ACEOF
6917 #line $LINENO "configure"
6918 #include "confdefs.h"
6919 #include <ctype.h>
6920 #if ((' ' & 0x0FF) == 0x020)
6921 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6922 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6923 #else
6924 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6925                      || ('j' <= (c) && (c) <= 'r') \
6926                      || ('s' <= (c) && (c) <= 'z'))
6927 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6928 #endif
6929
6930 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6931 int
6932 main ()
6933 {
6934   int i;
6935   for (i = 0; i < 256; i++)
6936     if (XOR (islower (i), ISLOWER (i))
6937         || toupper (i) != TOUPPER (i))
6938       exit(2);
6939   exit (0);
6940 }
6941 _ACEOF
6942 rm -f conftest$ac_exeext
6943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6944   (eval $ac_link) 2>&5
6945   ac_status=$?
6946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949   (eval $ac_try) 2>&5
6950   ac_status=$?
6951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952   (exit $ac_status); }; }; then
6953   :
6954 else
6955   echo "$as_me: program exited with status $ac_status" >&5
6956 echo "$as_me: failed program was:" >&5
6957 cat conftest.$ac_ext >&5
6958 ( exit $ac_status )
6959 ac_cv_header_stdc=no
6960 fi
6961 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6962 fi
6963 fi
6964 fi
6965 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6966 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6967 if test $ac_cv_header_stdc = yes; then
6968
6969 cat >>confdefs.h <<\_ACEOF
6970 #define STDC_HEADERS 1
6971 _ACEOF
6972
6973 fi
6974
6975 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6986                   inttypes.h stdint.h unistd.h
6987 do
6988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
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 else
6994   cat >conftest.$ac_ext <<_ACEOF
6995 #line $LINENO "configure"
6996 #include "confdefs.h"
6997 $ac_includes_default
6998
6999 #include <$ac_header>
7000 _ACEOF
7001 rm -f conftest.$ac_objext
7002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7003   (eval $ac_compile) 2>&5
7004   ac_status=$?
7005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006   (exit $ac_status); } &&
7007          { ac_try='test -s conftest.$ac_objext'
7008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009   (eval $ac_try) 2>&5
7010   ac_status=$?
7011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012   (exit $ac_status); }; }; then
7013   eval "$as_ac_Header=yes"
7014 else
7015   echo "$as_me: failed program was:" >&5
7016 cat conftest.$ac_ext >&5
7017 eval "$as_ac_Header=no"
7018 fi
7019 rm -f conftest.$ac_objext conftest.$ac_ext
7020 fi
7021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7024   cat >>confdefs.h <<_ACEOF
7025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7026 _ACEOF
7027
7028 fi
7029
7030 done
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h utime.h kernel/OS.h kernel/image.h SupportDefs.h
7055 do
7056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7058   echo "$as_me:$LINENO: checking for $ac_header" >&5
7059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7061   echo $ECHO_N "(cached) $ECHO_C" >&6
7062 fi
7063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7065 else
7066   # Is the header compilable?
7067 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7069 cat >conftest.$ac_ext <<_ACEOF
7070 #line $LINENO "configure"
7071 #include "confdefs.h"
7072 $ac_includes_default
7073 #include <$ac_header>
7074 _ACEOF
7075 rm -f conftest.$ac_objext
7076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7077   (eval $ac_compile) 2>&5
7078   ac_status=$?
7079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080   (exit $ac_status); } &&
7081          { ac_try='test -s conftest.$ac_objext'
7082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083   (eval $ac_try) 2>&5
7084   ac_status=$?
7085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086   (exit $ac_status); }; }; then
7087   ac_header_compiler=yes
7088 else
7089   echo "$as_me: failed program was:" >&5
7090 cat conftest.$ac_ext >&5
7091 ac_header_compiler=no
7092 fi
7093 rm -f conftest.$ac_objext conftest.$ac_ext
7094 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7095 echo "${ECHO_T}$ac_header_compiler" >&6
7096
7097 # Is the header present?
7098 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7100 cat >conftest.$ac_ext <<_ACEOF
7101 #line $LINENO "configure"
7102 #include "confdefs.h"
7103 #include <$ac_header>
7104 _ACEOF
7105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7106   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7107   ac_status=$?
7108   egrep -v '^ *\+' conftest.er1 >conftest.err
7109   rm -f conftest.er1
7110   cat conftest.err >&5
7111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112   (exit $ac_status); } >/dev/null; then
7113   if test -s conftest.err; then
7114     ac_cpp_err=$ac_c_preproc_warn_flag
7115   else
7116     ac_cpp_err=
7117   fi
7118 else
7119   ac_cpp_err=yes
7120 fi
7121 if test -z "$ac_cpp_err"; then
7122   ac_header_preproc=yes
7123 else
7124   echo "$as_me: failed program was:" >&5
7125   cat conftest.$ac_ext >&5
7126   ac_header_preproc=no
7127 fi
7128 rm -f conftest.err conftest.$ac_ext
7129 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7130 echo "${ECHO_T}$ac_header_preproc" >&6
7131
7132 # So?  What about this header?
7133 case $ac_header_compiler:$ac_header_preproc in
7134   yes:no )
7135     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7137     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7139   no:yes )
7140     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7141 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7142     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7143 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7144     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7146 esac
7147 echo "$as_me:$LINENO: checking for $ac_header" >&5
7148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7150   echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152   eval "$as_ac_Header=$ac_header_preproc"
7153 fi
7154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7156
7157 fi
7158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7159   cat >>confdefs.h <<_ACEOF
7160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7161 _ACEOF
7162
7163 fi
7164
7165 done
7166
7167
7168 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7169 # netinet/in.h is included first.
7170
7171 for ac_header in netinet/in.h
7172 do
7173 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7175   echo "$as_me:$LINENO: checking for $ac_header" >&5
7176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7178   echo $ECHO_N "(cached) $ECHO_C" >&6
7179 fi
7180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7182 else
7183   # Is the header compilable?
7184 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7186 cat >conftest.$ac_ext <<_ACEOF
7187 #line $LINENO "configure"
7188 #include "confdefs.h"
7189 $ac_includes_default
7190 #include <$ac_header>
7191 _ACEOF
7192 rm -f conftest.$ac_objext
7193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7194   (eval $ac_compile) 2>&5
7195   ac_status=$?
7196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197   (exit $ac_status); } &&
7198          { ac_try='test -s conftest.$ac_objext'
7199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200   (eval $ac_try) 2>&5
7201   ac_status=$?
7202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203   (exit $ac_status); }; }; then
7204   ac_header_compiler=yes
7205 else
7206   echo "$as_me: failed program was:" >&5
7207 cat conftest.$ac_ext >&5
7208 ac_header_compiler=no
7209 fi
7210 rm -f conftest.$ac_objext conftest.$ac_ext
7211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7212 echo "${ECHO_T}$ac_header_compiler" >&6
7213
7214 # Is the header present?
7215 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7216 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7217 cat >conftest.$ac_ext <<_ACEOF
7218 #line $LINENO "configure"
7219 #include "confdefs.h"
7220 #include <$ac_header>
7221 _ACEOF
7222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7223   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7224   ac_status=$?
7225   egrep -v '^ *\+' conftest.er1 >conftest.err
7226   rm -f conftest.er1
7227   cat conftest.err >&5
7228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229   (exit $ac_status); } >/dev/null; then
7230   if test -s conftest.err; then
7231     ac_cpp_err=$ac_c_preproc_warn_flag
7232   else
7233     ac_cpp_err=
7234   fi
7235 else
7236   ac_cpp_err=yes
7237 fi
7238 if test -z "$ac_cpp_err"; then
7239   ac_header_preproc=yes
7240 else
7241   echo "$as_me: failed program was:" >&5
7242   cat conftest.$ac_ext >&5
7243   ac_header_preproc=no
7244 fi
7245 rm -f conftest.err conftest.$ac_ext
7246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7247 echo "${ECHO_T}$ac_header_preproc" >&6
7248
7249 # So?  What about this header?
7250 case $ac_header_compiler:$ac_header_preproc in
7251   yes:no )
7252     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7256   no:yes )
7257     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7259     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7261     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7263 esac
7264 echo "$as_me:$LINENO: checking for $ac_header" >&5
7265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7267   echo $ECHO_N "(cached) $ECHO_C" >&6
7268 else
7269   eval "$as_ac_Header=$ac_header_preproc"
7270 fi
7271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7272 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7273
7274 fi
7275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7276   cat >>confdefs.h <<_ACEOF
7277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7278 _ACEOF
7279
7280 fi
7281
7282 done
7283
7284
7285 for ac_header in netinet/tcp.h
7286 do
7287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7288 echo "$as_me:$LINENO: checking for $ac_header" >&5
7289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7291   echo $ECHO_N "(cached) $ECHO_C" >&6
7292 else
7293   cat >conftest.$ac_ext <<_ACEOF
7294 #line $LINENO "configure"
7295 #include "confdefs.h"
7296 $ac_includes_default
7297 #ifdef HAVE_NETINET_IN_H
7298 #include <netinet/in.h>
7299 #endif
7300
7301
7302 #include <$ac_header>
7303 _ACEOF
7304 rm -f conftest.$ac_objext
7305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7306   (eval $ac_compile) 2>&5
7307   ac_status=$?
7308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309   (exit $ac_status); } &&
7310          { ac_try='test -s conftest.$ac_objext'
7311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7312   (eval $ac_try) 2>&5
7313   ac_status=$?
7314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315   (exit $ac_status); }; }; then
7316   eval "$as_ac_Header=yes"
7317 else
7318   echo "$as_me: failed program was:" >&5
7319 cat conftest.$ac_ext >&5
7320 eval "$as_ac_Header=no"
7321 fi
7322 rm -f conftest.$ac_objext conftest.$ac_ext
7323 fi
7324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7327   cat >>confdefs.h <<_ACEOF
7328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7329 _ACEOF
7330
7331 fi
7332
7333 done
7334
7335
7336 if test "$with_readline" = yes; then
7337
7338 for ac_header in readline/readline.h
7339 do
7340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7342   echo "$as_me:$LINENO: checking for $ac_header" >&5
7343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7345   echo $ECHO_N "(cached) $ECHO_C" >&6
7346 fi
7347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7349 else
7350   # Is the header compilable?
7351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7353 cat >conftest.$ac_ext <<_ACEOF
7354 #line $LINENO "configure"
7355 #include "confdefs.h"
7356 $ac_includes_default
7357 #include <$ac_header>
7358 _ACEOF
7359 rm -f conftest.$ac_objext
7360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7361   (eval $ac_compile) 2>&5
7362   ac_status=$?
7363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364   (exit $ac_status); } &&
7365          { ac_try='test -s conftest.$ac_objext'
7366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367   (eval $ac_try) 2>&5
7368   ac_status=$?
7369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370   (exit $ac_status); }; }; then
7371   ac_header_compiler=yes
7372 else
7373   echo "$as_me: failed program was:" >&5
7374 cat conftest.$ac_ext >&5
7375 ac_header_compiler=no
7376 fi
7377 rm -f conftest.$ac_objext conftest.$ac_ext
7378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7379 echo "${ECHO_T}$ac_header_compiler" >&6
7380
7381 # Is the header present?
7382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7384 cat >conftest.$ac_ext <<_ACEOF
7385 #line $LINENO "configure"
7386 #include "confdefs.h"
7387 #include <$ac_header>
7388 _ACEOF
7389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7390   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7391   ac_status=$?
7392   egrep -v '^ *\+' conftest.er1 >conftest.err
7393   rm -f conftest.er1
7394   cat conftest.err >&5
7395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396   (exit $ac_status); } >/dev/null; then
7397   if test -s conftest.err; then
7398     ac_cpp_err=$ac_c_preproc_warn_flag
7399   else
7400     ac_cpp_err=
7401   fi
7402 else
7403   ac_cpp_err=yes
7404 fi
7405 if test -z "$ac_cpp_err"; then
7406   ac_header_preproc=yes
7407 else
7408   echo "$as_me: failed program was:" >&5
7409   cat conftest.$ac_ext >&5
7410   ac_header_preproc=no
7411 fi
7412 rm -f conftest.err conftest.$ac_ext
7413 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7414 echo "${ECHO_T}$ac_header_preproc" >&6
7415
7416 # So?  What about this header?
7417 case $ac_header_compiler:$ac_header_preproc in
7418   yes:no )
7419     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7421     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7423   no:yes )
7424     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7426     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7428     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7430 esac
7431 echo "$as_me:$LINENO: checking for $ac_header" >&5
7432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7434   echo $ECHO_N "(cached) $ECHO_C" >&6
7435 else
7436   eval "$as_ac_Header=$ac_header_preproc"
7437 fi
7438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7440
7441 fi
7442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7443   cat >>confdefs.h <<_ACEOF
7444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7445 _ACEOF
7446
7447 else
7448
7449 for ac_header in editline/readline.h
7450 do
7451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7453   echo "$as_me:$LINENO: checking for $ac_header" >&5
7454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7456   echo $ECHO_N "(cached) $ECHO_C" >&6
7457 fi
7458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7460 else
7461   # Is the header compilable?
7462 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7464 cat >conftest.$ac_ext <<_ACEOF
7465 #line $LINENO "configure"
7466 #include "confdefs.h"
7467 $ac_includes_default
7468 #include <$ac_header>
7469 _ACEOF
7470 rm -f conftest.$ac_objext
7471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7472   (eval $ac_compile) 2>&5
7473   ac_status=$?
7474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475   (exit $ac_status); } &&
7476          { ac_try='test -s conftest.$ac_objext'
7477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478   (eval $ac_try) 2>&5
7479   ac_status=$?
7480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481   (exit $ac_status); }; }; then
7482   ac_header_compiler=yes
7483 else
7484   echo "$as_me: failed program was:" >&5
7485 cat conftest.$ac_ext >&5
7486 ac_header_compiler=no
7487 fi
7488 rm -f conftest.$ac_objext conftest.$ac_ext
7489 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7490 echo "${ECHO_T}$ac_header_compiler" >&6
7491
7492 # Is the header present?
7493 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7494 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7495 cat >conftest.$ac_ext <<_ACEOF
7496 #line $LINENO "configure"
7497 #include "confdefs.h"
7498 #include <$ac_header>
7499 _ACEOF
7500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7501   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7502   ac_status=$?
7503   egrep -v '^ *\+' conftest.er1 >conftest.err
7504   rm -f conftest.er1
7505   cat conftest.err >&5
7506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507   (exit $ac_status); } >/dev/null; then
7508   if test -s conftest.err; then
7509     ac_cpp_err=$ac_c_preproc_warn_flag
7510   else
7511     ac_cpp_err=
7512   fi
7513 else
7514   ac_cpp_err=yes
7515 fi
7516 if test -z "$ac_cpp_err"; then
7517   ac_header_preproc=yes
7518 else
7519   echo "$as_me: failed program was:" >&5
7520   cat conftest.$ac_ext >&5
7521   ac_header_preproc=no
7522 fi
7523 rm -f conftest.err conftest.$ac_ext
7524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7525 echo "${ECHO_T}$ac_header_preproc" >&6
7526
7527 # So?  What about this header?
7528 case $ac_header_compiler:$ac_header_preproc in
7529   yes:no )
7530     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7532     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7534   no:yes )
7535     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7536 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7537     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7538 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7539     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7541 esac
7542 echo "$as_me:$LINENO: checking for $ac_header" >&5
7543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7545   echo $ECHO_N "(cached) $ECHO_C" >&6
7546 else
7547   eval "$as_ac_Header=$ac_header_preproc"
7548 fi
7549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7551
7552 fi
7553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7554   cat >>confdefs.h <<_ACEOF
7555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7556 _ACEOF
7557
7558 else
7559
7560 for ac_header in readline.h
7561 do
7562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7564   echo "$as_me:$LINENO: checking for $ac_header" >&5
7565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7567   echo $ECHO_N "(cached) $ECHO_C" >&6
7568 fi
7569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7571 else
7572   # Is the header compilable?
7573 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7575 cat >conftest.$ac_ext <<_ACEOF
7576 #line $LINENO "configure"
7577 #include "confdefs.h"
7578 $ac_includes_default
7579 #include <$ac_header>
7580 _ACEOF
7581 rm -f conftest.$ac_objext
7582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7583   (eval $ac_compile) 2>&5
7584   ac_status=$?
7585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586   (exit $ac_status); } &&
7587          { ac_try='test -s conftest.$ac_objext'
7588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7589   (eval $ac_try) 2>&5
7590   ac_status=$?
7591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592   (exit $ac_status); }; }; then
7593   ac_header_compiler=yes
7594 else
7595   echo "$as_me: failed program was:" >&5
7596 cat conftest.$ac_ext >&5
7597 ac_header_compiler=no
7598 fi
7599 rm -f conftest.$ac_objext conftest.$ac_ext
7600 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7601 echo "${ECHO_T}$ac_header_compiler" >&6
7602
7603 # Is the header present?
7604 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7606 cat >conftest.$ac_ext <<_ACEOF
7607 #line $LINENO "configure"
7608 #include "confdefs.h"
7609 #include <$ac_header>
7610 _ACEOF
7611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7612   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7613   ac_status=$?
7614   egrep -v '^ *\+' conftest.er1 >conftest.err
7615   rm -f conftest.er1
7616   cat conftest.err >&5
7617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618   (exit $ac_status); } >/dev/null; then
7619   if test -s conftest.err; then
7620     ac_cpp_err=$ac_c_preproc_warn_flag
7621   else
7622     ac_cpp_err=
7623   fi
7624 else
7625   ac_cpp_err=yes
7626 fi
7627 if test -z "$ac_cpp_err"; then
7628   ac_header_preproc=yes
7629 else
7630   echo "$as_me: failed program was:" >&5
7631   cat conftest.$ac_ext >&5
7632   ac_header_preproc=no
7633 fi
7634 rm -f conftest.err conftest.$ac_ext
7635 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7636 echo "${ECHO_T}$ac_header_preproc" >&6
7637
7638 # So?  What about this header?
7639 case $ac_header_compiler:$ac_header_preproc in
7640   yes:no )
7641     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7643     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7645   no:yes )
7646     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7648     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7649 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7650     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7652 esac
7653 echo "$as_me:$LINENO: checking for $ac_header" >&5
7654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7656   echo $ECHO_N "(cached) $ECHO_C" >&6
7657 else
7658   eval "$as_ac_Header=$ac_header_preproc"
7659 fi
7660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7662
7663 fi
7664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7665   cat >>confdefs.h <<_ACEOF
7666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7667 _ACEOF
7668
7669 else
7670   { { echo "$as_me:$LINENO: error: readline header not found
7671 If you have readline already installed, see config.log for details on the
7672 failure.  It is possible the compiler isn't looking in the proper directory.
7673 Use --without-readline to disable readline support." >&5
7674 echo "$as_me: error: readline header not found
7675 If you have readline already installed, see config.log for details on the
7676 failure.  It is possible the compiler isn't looking in the proper directory.
7677 Use --without-readline to disable readline support." >&2;}
7678    { (exit 1); exit 1; }; }
7679 fi
7680
7681 done
7682
7683 fi
7684
7685 done
7686
7687 fi
7688
7689 done
7690
7691
7692 for ac_header in readline/history.h
7693 do
7694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7696   echo "$as_me:$LINENO: checking for $ac_header" >&5
7697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7699   echo $ECHO_N "(cached) $ECHO_C" >&6
7700 fi
7701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7703 else
7704   # Is the header compilable?
7705 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7707 cat >conftest.$ac_ext <<_ACEOF
7708 #line $LINENO "configure"
7709 #include "confdefs.h"
7710 $ac_includes_default
7711 #include <$ac_header>
7712 _ACEOF
7713 rm -f conftest.$ac_objext
7714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7715   (eval $ac_compile) 2>&5
7716   ac_status=$?
7717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718   (exit $ac_status); } &&
7719          { ac_try='test -s conftest.$ac_objext'
7720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721   (eval $ac_try) 2>&5
7722   ac_status=$?
7723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724   (exit $ac_status); }; }; then
7725   ac_header_compiler=yes
7726 else
7727   echo "$as_me: failed program was:" >&5
7728 cat conftest.$ac_ext >&5
7729 ac_header_compiler=no
7730 fi
7731 rm -f conftest.$ac_objext conftest.$ac_ext
7732 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7733 echo "${ECHO_T}$ac_header_compiler" >&6
7734
7735 # Is the header present?
7736 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7738 cat >conftest.$ac_ext <<_ACEOF
7739 #line $LINENO "configure"
7740 #include "confdefs.h"
7741 #include <$ac_header>
7742 _ACEOF
7743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7744   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7745   ac_status=$?
7746   egrep -v '^ *\+' conftest.er1 >conftest.err
7747   rm -f conftest.er1
7748   cat conftest.err >&5
7749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750   (exit $ac_status); } >/dev/null; then
7751   if test -s conftest.err; then
7752     ac_cpp_err=$ac_c_preproc_warn_flag
7753   else
7754     ac_cpp_err=
7755   fi
7756 else
7757   ac_cpp_err=yes
7758 fi
7759 if test -z "$ac_cpp_err"; then
7760   ac_header_preproc=yes
7761 else
7762   echo "$as_me: failed program was:" >&5
7763   cat conftest.$ac_ext >&5
7764   ac_header_preproc=no
7765 fi
7766 rm -f conftest.err conftest.$ac_ext
7767 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7768 echo "${ECHO_T}$ac_header_preproc" >&6
7769
7770 # So?  What about this header?
7771 case $ac_header_compiler:$ac_header_preproc in
7772   yes:no )
7773     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7774 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7775     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7777   no:yes )
7778     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7780     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7781 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7782     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7784 esac
7785 echo "$as_me:$LINENO: checking for $ac_header" >&5
7786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7788   echo $ECHO_N "(cached) $ECHO_C" >&6
7789 else
7790   eval "$as_ac_Header=$ac_header_preproc"
7791 fi
7792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7794
7795 fi
7796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7797   cat >>confdefs.h <<_ACEOF
7798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7799 _ACEOF
7800
7801 else
7802
7803 for ac_header in editline/history.h
7804 do
7805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7807   echo "$as_me:$LINENO: checking for $ac_header" >&5
7808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7810   echo $ECHO_N "(cached) $ECHO_C" >&6
7811 fi
7812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7814 else
7815   # Is the header compilable?
7816 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7818 cat >conftest.$ac_ext <<_ACEOF
7819 #line $LINENO "configure"
7820 #include "confdefs.h"
7821 $ac_includes_default
7822 #include <$ac_header>
7823 _ACEOF
7824 rm -f conftest.$ac_objext
7825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7826   (eval $ac_compile) 2>&5
7827   ac_status=$?
7828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829   (exit $ac_status); } &&
7830          { ac_try='test -s conftest.$ac_objext'
7831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832   (eval $ac_try) 2>&5
7833   ac_status=$?
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); }; }; then
7836   ac_header_compiler=yes
7837 else
7838   echo "$as_me: failed program was:" >&5
7839 cat conftest.$ac_ext >&5
7840 ac_header_compiler=no
7841 fi
7842 rm -f conftest.$ac_objext conftest.$ac_ext
7843 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7844 echo "${ECHO_T}$ac_header_compiler" >&6
7845
7846 # Is the header present?
7847 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7849 cat >conftest.$ac_ext <<_ACEOF
7850 #line $LINENO "configure"
7851 #include "confdefs.h"
7852 #include <$ac_header>
7853 _ACEOF
7854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7855   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7856   ac_status=$?
7857   egrep -v '^ *\+' conftest.er1 >conftest.err
7858   rm -f conftest.er1
7859   cat conftest.err >&5
7860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861   (exit $ac_status); } >/dev/null; then
7862   if test -s conftest.err; then
7863     ac_cpp_err=$ac_c_preproc_warn_flag
7864   else
7865     ac_cpp_err=
7866   fi
7867 else
7868   ac_cpp_err=yes
7869 fi
7870 if test -z "$ac_cpp_err"; then
7871   ac_header_preproc=yes
7872 else
7873   echo "$as_me: failed program was:" >&5
7874   cat conftest.$ac_ext >&5
7875   ac_header_preproc=no
7876 fi
7877 rm -f conftest.err conftest.$ac_ext
7878 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7879 echo "${ECHO_T}$ac_header_preproc" >&6
7880
7881 # So?  What about this header?
7882 case $ac_header_compiler:$ac_header_preproc in
7883   yes:no )
7884     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7886     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7888   no:yes )
7889     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7891     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7893     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7895 esac
7896 echo "$as_me:$LINENO: checking for $ac_header" >&5
7897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7899   echo $ECHO_N "(cached) $ECHO_C" >&6
7900 else
7901   eval "$as_ac_Header=$ac_header_preproc"
7902 fi
7903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7905
7906 fi
7907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7908   cat >>confdefs.h <<_ACEOF
7909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7910 _ACEOF
7911
7912 else
7913
7914 for ac_header in history.h
7915 do
7916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7918   echo "$as_me:$LINENO: checking for $ac_header" >&5
7919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7921   echo $ECHO_N "(cached) $ECHO_C" >&6
7922 fi
7923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7925 else
7926   # Is the header compilable?
7927 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7929 cat >conftest.$ac_ext <<_ACEOF
7930 #line $LINENO "configure"
7931 #include "confdefs.h"
7932 $ac_includes_default
7933 #include <$ac_header>
7934 _ACEOF
7935 rm -f conftest.$ac_objext
7936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7937   (eval $ac_compile) 2>&5
7938   ac_status=$?
7939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940   (exit $ac_status); } &&
7941          { ac_try='test -s conftest.$ac_objext'
7942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7943   (eval $ac_try) 2>&5
7944   ac_status=$?
7945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946   (exit $ac_status); }; }; then
7947   ac_header_compiler=yes
7948 else
7949   echo "$as_me: failed program was:" >&5
7950 cat conftest.$ac_ext >&5
7951 ac_header_compiler=no
7952 fi
7953 rm -f conftest.$ac_objext conftest.$ac_ext
7954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7955 echo "${ECHO_T}$ac_header_compiler" >&6
7956
7957 # Is the header present?
7958 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7960 cat >conftest.$ac_ext <<_ACEOF
7961 #line $LINENO "configure"
7962 #include "confdefs.h"
7963 #include <$ac_header>
7964 _ACEOF
7965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7966   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7967   ac_status=$?
7968   egrep -v '^ *\+' conftest.er1 >conftest.err
7969   rm -f conftest.er1
7970   cat conftest.err >&5
7971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972   (exit $ac_status); } >/dev/null; then
7973   if test -s conftest.err; then
7974     ac_cpp_err=$ac_c_preproc_warn_flag
7975   else
7976     ac_cpp_err=
7977   fi
7978 else
7979   ac_cpp_err=yes
7980 fi
7981 if test -z "$ac_cpp_err"; then
7982   ac_header_preproc=yes
7983 else
7984   echo "$as_me: failed program was:" >&5
7985   cat conftest.$ac_ext >&5
7986   ac_header_preproc=no
7987 fi
7988 rm -f conftest.err conftest.$ac_ext
7989 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7990 echo "${ECHO_T}$ac_header_preproc" >&6
7991
7992 # So?  What about this header?
7993 case $ac_header_compiler:$ac_header_preproc in
7994   yes:no )
7995     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7996 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7997     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7999   no:yes )
8000     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8002     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8004     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8006 esac
8007 echo "$as_me:$LINENO: checking for $ac_header" >&5
8008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8010   echo $ECHO_N "(cached) $ECHO_C" >&6
8011 else
8012   eval "$as_ac_Header=$ac_header_preproc"
8013 fi
8014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8016
8017 fi
8018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8019   cat >>confdefs.h <<_ACEOF
8020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8021 _ACEOF
8022
8023 else
8024   { { echo "$as_me:$LINENO: error: history header not found
8025 If you have readline already installed, see config.log for details on the
8026 failure.  It is possible the compiler isn't looking in the proper directory.
8027 Use --without-readline to disable readline support." >&5
8028 echo "$as_me: error: history header not found
8029 If you have readline already installed, see config.log for details on the
8030 failure.  It is possible the compiler isn't looking in the proper directory.
8031 Use --without-readline to disable readline support." >&2;}
8032    { (exit 1); exit 1; }; }
8033 fi
8034
8035 done
8036
8037 fi
8038
8039 done
8040
8041 fi
8042
8043 done
8044
8045 fi
8046
8047 if test "$with_zlib" = yes; then
8048   if test "${ac_cv_header_zlib_h+set}" = set; then
8049   echo "$as_me:$LINENO: checking for zlib.h" >&5
8050 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8051 if test "${ac_cv_header_zlib_h+set}" = set; then
8052   echo $ECHO_N "(cached) $ECHO_C" >&6
8053 fi
8054 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8055 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8056 else
8057   # Is the header compilable?
8058 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8059 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8060 cat >conftest.$ac_ext <<_ACEOF
8061 #line $LINENO "configure"
8062 #include "confdefs.h"
8063 $ac_includes_default
8064 #include <zlib.h>
8065 _ACEOF
8066 rm -f conftest.$ac_objext
8067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8068   (eval $ac_compile) 2>&5
8069   ac_status=$?
8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071   (exit $ac_status); } &&
8072          { ac_try='test -s conftest.$ac_objext'
8073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074   (eval $ac_try) 2>&5
8075   ac_status=$?
8076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077   (exit $ac_status); }; }; then
8078   ac_header_compiler=yes
8079 else
8080   echo "$as_me: failed program was:" >&5
8081 cat conftest.$ac_ext >&5
8082 ac_header_compiler=no
8083 fi
8084 rm -f conftest.$ac_objext conftest.$ac_ext
8085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8086 echo "${ECHO_T}$ac_header_compiler" >&6
8087
8088 # Is the header present?
8089 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8090 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8091 cat >conftest.$ac_ext <<_ACEOF
8092 #line $LINENO "configure"
8093 #include "confdefs.h"
8094 #include <zlib.h>
8095 _ACEOF
8096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8097   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8098   ac_status=$?
8099   egrep -v '^ *\+' conftest.er1 >conftest.err
8100   rm -f conftest.er1
8101   cat conftest.err >&5
8102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103   (exit $ac_status); } >/dev/null; then
8104   if test -s conftest.err; then
8105     ac_cpp_err=$ac_c_preproc_warn_flag
8106   else
8107     ac_cpp_err=
8108   fi
8109 else
8110   ac_cpp_err=yes
8111 fi
8112 if test -z "$ac_cpp_err"; then
8113   ac_header_preproc=yes
8114 else
8115   echo "$as_me: failed program was:" >&5
8116   cat conftest.$ac_ext >&5
8117   ac_header_preproc=no
8118 fi
8119 rm -f conftest.err conftest.$ac_ext
8120 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8121 echo "${ECHO_T}$ac_header_preproc" >&6
8122
8123 # So?  What about this header?
8124 case $ac_header_compiler:$ac_header_preproc in
8125   yes:no )
8126     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8127 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8128     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8129 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8130   no:yes )
8131     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8132 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8133     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8134 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8135     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8136 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8137 esac
8138 echo "$as_me:$LINENO: checking for zlib.h" >&5
8139 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8140 if test "${ac_cv_header_zlib_h+set}" = set; then
8141   echo $ECHO_N "(cached) $ECHO_C" >&6
8142 else
8143   ac_cv_header_zlib_h=$ac_header_preproc
8144 fi
8145 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8146 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8147
8148 fi
8149 if test $ac_cv_header_zlib_h = yes; then
8150   :
8151 else
8152   { { echo "$as_me:$LINENO: error: zlib header not found
8153 If you have zlib already installed, see config.log for details on the
8154 failure.  It is possible the compiler isn't looking in the proper directory.
8155 Use --without-zlib to disable zlib support." >&5
8156 echo "$as_me: error: zlib header not found
8157 If you have zlib already installed, see config.log for details on the
8158 failure.  It is possible the compiler isn't looking in the proper directory.
8159 Use --without-zlib to disable zlib support." >&2;}
8160    { (exit 1); exit 1; }; }
8161 fi
8162
8163
8164 fi
8165
8166 if test "$with_krb4" = yes ; then
8167   if test "${ac_cv_header_krb_h+set}" = set; then
8168   echo "$as_me:$LINENO: checking for krb.h" >&5
8169 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8170 if test "${ac_cv_header_krb_h+set}" = set; then
8171   echo $ECHO_N "(cached) $ECHO_C" >&6
8172 fi
8173 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8174 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8175 else
8176   # Is the header compilable?
8177 echo "$as_me:$LINENO: checking krb.h usability" >&5
8178 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8179 cat >conftest.$ac_ext <<_ACEOF
8180 #line $LINENO "configure"
8181 #include "confdefs.h"
8182 $ac_includes_default
8183 #include <krb.h>
8184 _ACEOF
8185 rm -f conftest.$ac_objext
8186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8187   (eval $ac_compile) 2>&5
8188   ac_status=$?
8189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190   (exit $ac_status); } &&
8191          { ac_try='test -s conftest.$ac_objext'
8192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193   (eval $ac_try) 2>&5
8194   ac_status=$?
8195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   (exit $ac_status); }; }; then
8197   ac_header_compiler=yes
8198 else
8199   echo "$as_me: failed program was:" >&5
8200 cat conftest.$ac_ext >&5
8201 ac_header_compiler=no
8202 fi
8203 rm -f conftest.$ac_objext conftest.$ac_ext
8204 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8205 echo "${ECHO_T}$ac_header_compiler" >&6
8206
8207 # Is the header present?
8208 echo "$as_me:$LINENO: checking krb.h presence" >&5
8209 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8210 cat >conftest.$ac_ext <<_ACEOF
8211 #line $LINENO "configure"
8212 #include "confdefs.h"
8213 #include <krb.h>
8214 _ACEOF
8215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8216   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8217   ac_status=$?
8218   egrep -v '^ *\+' conftest.er1 >conftest.err
8219   rm -f conftest.er1
8220   cat conftest.err >&5
8221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222   (exit $ac_status); } >/dev/null; then
8223   if test -s conftest.err; then
8224     ac_cpp_err=$ac_c_preproc_warn_flag
8225   else
8226     ac_cpp_err=
8227   fi
8228 else
8229   ac_cpp_err=yes
8230 fi
8231 if test -z "$ac_cpp_err"; then
8232   ac_header_preproc=yes
8233 else
8234   echo "$as_me: failed program was:" >&5
8235   cat conftest.$ac_ext >&5
8236   ac_header_preproc=no
8237 fi
8238 rm -f conftest.err conftest.$ac_ext
8239 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8240 echo "${ECHO_T}$ac_header_preproc" >&6
8241
8242 # So?  What about this header?
8243 case $ac_header_compiler:$ac_header_preproc in
8244   yes:no )
8245     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8246 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8247     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8248 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8249   no:yes )
8250     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8251 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8252     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8253 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8254     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8255 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8256 esac
8257 echo "$as_me:$LINENO: checking for krb.h" >&5
8258 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8259 if test "${ac_cv_header_krb_h+set}" = set; then
8260   echo $ECHO_N "(cached) $ECHO_C" >&6
8261 else
8262   ac_cv_header_krb_h=$ac_header_preproc
8263 fi
8264 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8265 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8266
8267 fi
8268 if test $ac_cv_header_krb_h = yes; then
8269   :
8270 else
8271   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8272 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8273    { (exit 1); exit 1; }; }
8274 fi
8275
8276
8277 fi
8278
8279 if test "$with_krb5" = yes ; then
8280   if test "${ac_cv_header_krb5_h+set}" = set; then
8281   echo "$as_me:$LINENO: checking for krb5.h" >&5
8282 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8283 if test "${ac_cv_header_krb5_h+set}" = set; then
8284   echo $ECHO_N "(cached) $ECHO_C" >&6
8285 fi
8286 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8287 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8288 else
8289   # Is the header compilable?
8290 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8291 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8292 cat >conftest.$ac_ext <<_ACEOF
8293 #line $LINENO "configure"
8294 #include "confdefs.h"
8295 $ac_includes_default
8296 #include <krb5.h>
8297 _ACEOF
8298 rm -f conftest.$ac_objext
8299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8300   (eval $ac_compile) 2>&5
8301   ac_status=$?
8302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303   (exit $ac_status); } &&
8304          { ac_try='test -s conftest.$ac_objext'
8305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8306   (eval $ac_try) 2>&5
8307   ac_status=$?
8308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309   (exit $ac_status); }; }; then
8310   ac_header_compiler=yes
8311 else
8312   echo "$as_me: failed program was:" >&5
8313 cat conftest.$ac_ext >&5
8314 ac_header_compiler=no
8315 fi
8316 rm -f conftest.$ac_objext conftest.$ac_ext
8317 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8318 echo "${ECHO_T}$ac_header_compiler" >&6
8319
8320 # Is the header present?
8321 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8322 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8323 cat >conftest.$ac_ext <<_ACEOF
8324 #line $LINENO "configure"
8325 #include "confdefs.h"
8326 #include <krb5.h>
8327 _ACEOF
8328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8329   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8330   ac_status=$?
8331   egrep -v '^ *\+' conftest.er1 >conftest.err
8332   rm -f conftest.er1
8333   cat conftest.err >&5
8334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335   (exit $ac_status); } >/dev/null; then
8336   if test -s conftest.err; then
8337     ac_cpp_err=$ac_c_preproc_warn_flag
8338   else
8339     ac_cpp_err=
8340   fi
8341 else
8342   ac_cpp_err=yes
8343 fi
8344 if test -z "$ac_cpp_err"; then
8345   ac_header_preproc=yes
8346 else
8347   echo "$as_me: failed program was:" >&5
8348   cat conftest.$ac_ext >&5
8349   ac_header_preproc=no
8350 fi
8351 rm -f conftest.err conftest.$ac_ext
8352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8353 echo "${ECHO_T}$ac_header_preproc" >&6
8354
8355 # So?  What about this header?
8356 case $ac_header_compiler:$ac_header_preproc in
8357   yes:no )
8358     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8359 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8360     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8361 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8362   no:yes )
8363     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8364 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8365     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8366 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8367     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8368 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8369 esac
8370 echo "$as_me:$LINENO: checking for krb5.h" >&5
8371 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8372 if test "${ac_cv_header_krb5_h+set}" = set; then
8373   echo $ECHO_N "(cached) $ECHO_C" >&6
8374 else
8375   ac_cv_header_krb5_h=$ac_header_preproc
8376 fi
8377 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8378 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8379
8380 fi
8381 if test $ac_cv_header_krb5_h = yes; then
8382   :
8383 else
8384   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8385 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8386    { (exit 1); exit 1; }; }
8387 fi
8388
8389
8390   if test "${ac_cv_header_com_err_h+set}" = set; then
8391   echo "$as_me:$LINENO: checking for com_err.h" >&5
8392 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8393 if test "${ac_cv_header_com_err_h+set}" = set; then
8394   echo $ECHO_N "(cached) $ECHO_C" >&6
8395 fi
8396 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8397 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8398 else
8399   # Is the header compilable?
8400 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8401 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8402 cat >conftest.$ac_ext <<_ACEOF
8403 #line $LINENO "configure"
8404 #include "confdefs.h"
8405 $ac_includes_default
8406 #include <com_err.h>
8407 _ACEOF
8408 rm -f conftest.$ac_objext
8409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8410   (eval $ac_compile) 2>&5
8411   ac_status=$?
8412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413   (exit $ac_status); } &&
8414          { ac_try='test -s conftest.$ac_objext'
8415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416   (eval $ac_try) 2>&5
8417   ac_status=$?
8418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419   (exit $ac_status); }; }; then
8420   ac_header_compiler=yes
8421 else
8422   echo "$as_me: failed program was:" >&5
8423 cat conftest.$ac_ext >&5
8424 ac_header_compiler=no
8425 fi
8426 rm -f conftest.$ac_objext conftest.$ac_ext
8427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8428 echo "${ECHO_T}$ac_header_compiler" >&6
8429
8430 # Is the header present?
8431 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8432 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8433 cat >conftest.$ac_ext <<_ACEOF
8434 #line $LINENO "configure"
8435 #include "confdefs.h"
8436 #include <com_err.h>
8437 _ACEOF
8438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8439   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8440   ac_status=$?
8441   egrep -v '^ *\+' conftest.er1 >conftest.err
8442   rm -f conftest.er1
8443   cat conftest.err >&5
8444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445   (exit $ac_status); } >/dev/null; then
8446   if test -s conftest.err; then
8447     ac_cpp_err=$ac_c_preproc_warn_flag
8448   else
8449     ac_cpp_err=
8450   fi
8451 else
8452   ac_cpp_err=yes
8453 fi
8454 if test -z "$ac_cpp_err"; then
8455   ac_header_preproc=yes
8456 else
8457   echo "$as_me: failed program was:" >&5
8458   cat conftest.$ac_ext >&5
8459   ac_header_preproc=no
8460 fi
8461 rm -f conftest.err conftest.$ac_ext
8462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8463 echo "${ECHO_T}$ac_header_preproc" >&6
8464
8465 # So?  What about this header?
8466 case $ac_header_compiler:$ac_header_preproc in
8467   yes:no )
8468     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8469 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8470     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8471 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8472   no:yes )
8473     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8474 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8475     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8476 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8477     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8478 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8479 esac
8480 echo "$as_me:$LINENO: checking for com_err.h" >&5
8481 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8482 if test "${ac_cv_header_com_err_h+set}" = set; then
8483   echo $ECHO_N "(cached) $ECHO_C" >&6
8484 else
8485   ac_cv_header_com_err_h=$ac_header_preproc
8486 fi
8487 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8488 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8489
8490 fi
8491 if test $ac_cv_header_com_err_h = yes; then
8492   :
8493 else
8494   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8495 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8496    { (exit 1); exit 1; }; }
8497 fi
8498
8499
8500 fi
8501
8502 if test "$with_openssl" = yes ; then
8503   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8504   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8505 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8506 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8507   echo $ECHO_N "(cached) $ECHO_C" >&6
8508 fi
8509 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8510 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8511 else
8512   # Is the header compilable?
8513 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8514 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8515 cat >conftest.$ac_ext <<_ACEOF
8516 #line $LINENO "configure"
8517 #include "confdefs.h"
8518 $ac_includes_default
8519 #include <openssl/ssl.h>
8520 _ACEOF
8521 rm -f conftest.$ac_objext
8522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8523   (eval $ac_compile) 2>&5
8524   ac_status=$?
8525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526   (exit $ac_status); } &&
8527          { ac_try='test -s conftest.$ac_objext'
8528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8529   (eval $ac_try) 2>&5
8530   ac_status=$?
8531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532   (exit $ac_status); }; }; then
8533   ac_header_compiler=yes
8534 else
8535   echo "$as_me: failed program was:" >&5
8536 cat conftest.$ac_ext >&5
8537 ac_header_compiler=no
8538 fi
8539 rm -f conftest.$ac_objext conftest.$ac_ext
8540 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8541 echo "${ECHO_T}$ac_header_compiler" >&6
8542
8543 # Is the header present?
8544 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8545 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8546 cat >conftest.$ac_ext <<_ACEOF
8547 #line $LINENO "configure"
8548 #include "confdefs.h"
8549 #include <openssl/ssl.h>
8550 _ACEOF
8551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8552   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8553   ac_status=$?
8554   egrep -v '^ *\+' conftest.er1 >conftest.err
8555   rm -f conftest.er1
8556   cat conftest.err >&5
8557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558   (exit $ac_status); } >/dev/null; then
8559   if test -s conftest.err; then
8560     ac_cpp_err=$ac_c_preproc_warn_flag
8561   else
8562     ac_cpp_err=
8563   fi
8564 else
8565   ac_cpp_err=yes
8566 fi
8567 if test -z "$ac_cpp_err"; then
8568   ac_header_preproc=yes
8569 else
8570   echo "$as_me: failed program was:" >&5
8571   cat conftest.$ac_ext >&5
8572   ac_header_preproc=no
8573 fi
8574 rm -f conftest.err conftest.$ac_ext
8575 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8576 echo "${ECHO_T}$ac_header_preproc" >&6
8577
8578 # So?  What about this header?
8579 case $ac_header_compiler:$ac_header_preproc in
8580   yes:no )
8581     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8582 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8583     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8584 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8585   no:yes )
8586     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8587 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8588     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8589 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8590     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8591 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8592 esac
8593 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8594 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8595 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8596   echo $ECHO_N "(cached) $ECHO_C" >&6
8597 else
8598   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8599 fi
8600 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8601 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8602
8603 fi
8604 if test $ac_cv_header_openssl_ssl_h = yes; then
8605   :
8606 else
8607   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8608 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8609    { (exit 1); exit 1; }; }
8610 fi
8611
8612
8613   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8614   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8615 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8616 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8617   echo $ECHO_N "(cached) $ECHO_C" >&6
8618 fi
8619 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8620 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8621 else
8622   # Is the header compilable?
8623 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8624 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8625 cat >conftest.$ac_ext <<_ACEOF
8626 #line $LINENO "configure"
8627 #include "confdefs.h"
8628 $ac_includes_default
8629 #include <openssl/err.h>
8630 _ACEOF
8631 rm -f conftest.$ac_objext
8632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8633   (eval $ac_compile) 2>&5
8634   ac_status=$?
8635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636   (exit $ac_status); } &&
8637          { ac_try='test -s conftest.$ac_objext'
8638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8639   (eval $ac_try) 2>&5
8640   ac_status=$?
8641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642   (exit $ac_status); }; }; then
8643   ac_header_compiler=yes
8644 else
8645   echo "$as_me: failed program was:" >&5
8646 cat conftest.$ac_ext >&5
8647 ac_header_compiler=no
8648 fi
8649 rm -f conftest.$ac_objext conftest.$ac_ext
8650 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8651 echo "${ECHO_T}$ac_header_compiler" >&6
8652
8653 # Is the header present?
8654 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8655 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8656 cat >conftest.$ac_ext <<_ACEOF
8657 #line $LINENO "configure"
8658 #include "confdefs.h"
8659 #include <openssl/err.h>
8660 _ACEOF
8661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8662   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8663   ac_status=$?
8664   egrep -v '^ *\+' conftest.er1 >conftest.err
8665   rm -f conftest.er1
8666   cat conftest.err >&5
8667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668   (exit $ac_status); } >/dev/null; then
8669   if test -s conftest.err; then
8670     ac_cpp_err=$ac_c_preproc_warn_flag
8671   else
8672     ac_cpp_err=
8673   fi
8674 else
8675   ac_cpp_err=yes
8676 fi
8677 if test -z "$ac_cpp_err"; then
8678   ac_header_preproc=yes
8679 else
8680   echo "$as_me: failed program was:" >&5
8681   cat conftest.$ac_ext >&5
8682   ac_header_preproc=no
8683 fi
8684 rm -f conftest.err conftest.$ac_ext
8685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8686 echo "${ECHO_T}$ac_header_preproc" >&6
8687
8688 # So?  What about this header?
8689 case $ac_header_compiler:$ac_header_preproc in
8690   yes:no )
8691     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8692 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8693     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8694 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8695   no:yes )
8696     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8697 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8698     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8699 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8700     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8701 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8702 esac
8703 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8704 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8705 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8706   echo $ECHO_N "(cached) $ECHO_C" >&6
8707 else
8708   ac_cv_header_openssl_err_h=$ac_header_preproc
8709 fi
8710 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8711 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8712
8713 fi
8714 if test $ac_cv_header_openssl_err_h = yes; then
8715   :
8716 else
8717   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8718 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8719    { (exit 1); exit 1; }; }
8720 fi
8721
8722
8723 fi
8724
8725 if test "$with_pam" = yes ; then
8726
8727 for ac_header in security/pam_appl.h
8728 do
8729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8731   echo "$as_me:$LINENO: checking for $ac_header" >&5
8732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8734   echo $ECHO_N "(cached) $ECHO_C" >&6
8735 fi
8736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8738 else
8739   # Is the header compilable?
8740 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8742 cat >conftest.$ac_ext <<_ACEOF
8743 #line $LINENO "configure"
8744 #include "confdefs.h"
8745 $ac_includes_default
8746 #include <$ac_header>
8747 _ACEOF
8748 rm -f conftest.$ac_objext
8749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8750   (eval $ac_compile) 2>&5
8751   ac_status=$?
8752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753   (exit $ac_status); } &&
8754          { ac_try='test -s conftest.$ac_objext'
8755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756   (eval $ac_try) 2>&5
8757   ac_status=$?
8758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759   (exit $ac_status); }; }; then
8760   ac_header_compiler=yes
8761 else
8762   echo "$as_me: failed program was:" >&5
8763 cat conftest.$ac_ext >&5
8764 ac_header_compiler=no
8765 fi
8766 rm -f conftest.$ac_objext conftest.$ac_ext
8767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8768 echo "${ECHO_T}$ac_header_compiler" >&6
8769
8770 # Is the header present?
8771 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8773 cat >conftest.$ac_ext <<_ACEOF
8774 #line $LINENO "configure"
8775 #include "confdefs.h"
8776 #include <$ac_header>
8777 _ACEOF
8778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8779   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8780   ac_status=$?
8781   egrep -v '^ *\+' conftest.er1 >conftest.err
8782   rm -f conftest.er1
8783   cat conftest.err >&5
8784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); } >/dev/null; then
8786   if test -s conftest.err; then
8787     ac_cpp_err=$ac_c_preproc_warn_flag
8788   else
8789     ac_cpp_err=
8790   fi
8791 else
8792   ac_cpp_err=yes
8793 fi
8794 if test -z "$ac_cpp_err"; then
8795   ac_header_preproc=yes
8796 else
8797   echo "$as_me: failed program was:" >&5
8798   cat conftest.$ac_ext >&5
8799   ac_header_preproc=no
8800 fi
8801 rm -f conftest.err conftest.$ac_ext
8802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8803 echo "${ECHO_T}$ac_header_preproc" >&6
8804
8805 # So?  What about this header?
8806 case $ac_header_compiler:$ac_header_preproc in
8807   yes:no )
8808     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8812   no:yes )
8813     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8815     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8816 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8817     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8819 esac
8820 echo "$as_me:$LINENO: checking for $ac_header" >&5
8821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8823   echo $ECHO_N "(cached) $ECHO_C" >&6
8824 else
8825   eval "$as_ac_Header=$ac_header_preproc"
8826 fi
8827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8829
8830 fi
8831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8832   cat >>confdefs.h <<_ACEOF
8833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8834 _ACEOF
8835
8836 else
8837
8838 for ac_header in pam/pam_appl.h
8839 do
8840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8842   echo "$as_me:$LINENO: checking for $ac_header" >&5
8843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8845   echo $ECHO_N "(cached) $ECHO_C" >&6
8846 fi
8847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8849 else
8850   # Is the header compilable?
8851 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8853 cat >conftest.$ac_ext <<_ACEOF
8854 #line $LINENO "configure"
8855 #include "confdefs.h"
8856 $ac_includes_default
8857 #include <$ac_header>
8858 _ACEOF
8859 rm -f conftest.$ac_objext
8860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8861   (eval $ac_compile) 2>&5
8862   ac_status=$?
8863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); } &&
8865          { ac_try='test -s conftest.$ac_objext'
8866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867   (eval $ac_try) 2>&5
8868   ac_status=$?
8869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870   (exit $ac_status); }; }; then
8871   ac_header_compiler=yes
8872 else
8873   echo "$as_me: failed program was:" >&5
8874 cat conftest.$ac_ext >&5
8875 ac_header_compiler=no
8876 fi
8877 rm -f conftest.$ac_objext conftest.$ac_ext
8878 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8879 echo "${ECHO_T}$ac_header_compiler" >&6
8880
8881 # Is the header present?
8882 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8884 cat >conftest.$ac_ext <<_ACEOF
8885 #line $LINENO "configure"
8886 #include "confdefs.h"
8887 #include <$ac_header>
8888 _ACEOF
8889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8890   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8891   ac_status=$?
8892   egrep -v '^ *\+' conftest.er1 >conftest.err
8893   rm -f conftest.er1
8894   cat conftest.err >&5
8895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896   (exit $ac_status); } >/dev/null; then
8897   if test -s conftest.err; then
8898     ac_cpp_err=$ac_c_preproc_warn_flag
8899   else
8900     ac_cpp_err=
8901   fi
8902 else
8903   ac_cpp_err=yes
8904 fi
8905 if test -z "$ac_cpp_err"; then
8906   ac_header_preproc=yes
8907 else
8908   echo "$as_me: failed program was:" >&5
8909   cat conftest.$ac_ext >&5
8910   ac_header_preproc=no
8911 fi
8912 rm -f conftest.err conftest.$ac_ext
8913 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8914 echo "${ECHO_T}$ac_header_preproc" >&6
8915
8916 # So?  What about this header?
8917 case $ac_header_compiler:$ac_header_preproc in
8918   yes:no )
8919     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8921     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8923   no:yes )
8924     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8926     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8928     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8930 esac
8931 echo "$as_me:$LINENO: checking for $ac_header" >&5
8932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8934   echo $ECHO_N "(cached) $ECHO_C" >&6
8935 else
8936   eval "$as_ac_Header=$ac_header_preproc"
8937 fi
8938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8940
8941 fi
8942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8943   cat >>confdefs.h <<_ACEOF
8944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8945 _ACEOF
8946
8947 else
8948   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
8949 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
8950    { (exit 1); exit 1; }; }
8951 fi
8952
8953 done
8954
8955 fi
8956
8957 done
8958
8959 fi
8960
8961 if test "$with_rendezvous" = yes ; then
8962   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8963   echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
8964 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
8965 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8966   echo $ECHO_N "(cached) $ECHO_C" >&6
8967 fi
8968 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
8969 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
8970 else
8971   # Is the header compilable?
8972 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
8973 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
8974 cat >conftest.$ac_ext <<_ACEOF
8975 #line $LINENO "configure"
8976 #include "confdefs.h"
8977 $ac_includes_default
8978 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
8979 _ACEOF
8980 rm -f conftest.$ac_objext
8981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8982   (eval $ac_compile) 2>&5
8983   ac_status=$?
8984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985   (exit $ac_status); } &&
8986          { ac_try='test -s conftest.$ac_objext'
8987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988   (eval $ac_try) 2>&5
8989   ac_status=$?
8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991   (exit $ac_status); }; }; then
8992   ac_header_compiler=yes
8993 else
8994   echo "$as_me: failed program was:" >&5
8995 cat conftest.$ac_ext >&5
8996 ac_header_compiler=no
8997 fi
8998 rm -f conftest.$ac_objext conftest.$ac_ext
8999 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9000 echo "${ECHO_T}$ac_header_compiler" >&6
9001
9002 # Is the header present?
9003 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9004 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9005 cat >conftest.$ac_ext <<_ACEOF
9006 #line $LINENO "configure"
9007 #include "confdefs.h"
9008 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9009 _ACEOF
9010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9011   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9012   ac_status=$?
9013   egrep -v '^ *\+' conftest.er1 >conftest.err
9014   rm -f conftest.er1
9015   cat conftest.err >&5
9016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017   (exit $ac_status); } >/dev/null; then
9018   if test -s conftest.err; then
9019     ac_cpp_err=$ac_c_preproc_warn_flag
9020   else
9021     ac_cpp_err=
9022   fi
9023 else
9024   ac_cpp_err=yes
9025 fi
9026 if test -z "$ac_cpp_err"; then
9027   ac_header_preproc=yes
9028 else
9029   echo "$as_me: failed program was:" >&5
9030   cat conftest.$ac_ext >&5
9031   ac_header_preproc=no
9032 fi
9033 rm -f conftest.err conftest.$ac_ext
9034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9035 echo "${ECHO_T}$ac_header_preproc" >&6
9036
9037 # So?  What about this header?
9038 case $ac_header_compiler:$ac_header_preproc in
9039   yes:no )
9040     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9041 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9042     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9043 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9044   no:yes )
9045     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9046 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9047     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9048 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9049     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9050 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9051 esac
9052 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9053 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9054 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9055   echo $ECHO_N "(cached) $ECHO_C" >&6
9056 else
9057   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9058 fi
9059 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9060 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9061
9062 fi
9063 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9064   :
9065 else
9066   { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9067 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9068    { (exit 1); exit 1; }; }
9069 fi
9070
9071
9072 fi
9073
9074
9075 ##
9076 ## Types, structures, compiler characteristics
9077 ##
9078
9079
9080 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9081 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9082 if test "${ac_cv_c_const+set}" = set; then
9083   echo $ECHO_N "(cached) $ECHO_C" >&6
9084 else
9085   cat >conftest.$ac_ext <<_ACEOF
9086 #line $LINENO "configure"
9087 #include "confdefs.h"
9088
9089 #ifdef F77_DUMMY_MAIN
9090 #  ifdef __cplusplus
9091      extern "C"
9092 #  endif
9093    int F77_DUMMY_MAIN() { return 1; }
9094 #endif
9095 int
9096 main ()
9097 {
9098 /* FIXME: Include the comments suggested by Paul. */
9099 #ifndef __cplusplus
9100   /* Ultrix mips cc rejects this.  */
9101   typedef int charset[2];
9102   const charset x;
9103   /* SunOS 4.1.1 cc rejects this.  */
9104   char const *const *ccp;
9105   char **p;
9106   /* NEC SVR4.0.2 mips cc rejects this.  */
9107   struct point {int x, y;};
9108   static struct point const zero = {0,0};
9109   /* AIX XL C 1.02.0.0 rejects this.
9110      It does not let you subtract one const X* pointer from another in
9111      an arm of an if-expression whose if-part is not a constant
9112      expression */
9113   const char *g = "string";
9114   ccp = &g + (g ? g-g : 0);
9115   /* HPUX 7.0 cc rejects these. */
9116   ++ccp;
9117   p = (char**) ccp;
9118   ccp = (char const *const *) p;
9119   { /* SCO 3.2v4 cc rejects this.  */
9120     char *t;
9121     char const *s = 0 ? (char *) 0 : (char const *) 0;
9122
9123     *t++ = 0;
9124   }
9125   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9126     int x[] = {25, 17};
9127     const int *foo = &x[0];
9128     ++foo;
9129   }
9130   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9131     typedef const int *iptr;
9132     iptr p = 0;
9133     ++p;
9134   }
9135   { /* AIX XL C 1.02.0.0 rejects this saying
9136        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9137     struct s { int j; const int *ap[3]; };
9138     struct s *b; b->j = 5;
9139   }
9140   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9141     const int foo = 10;
9142   }
9143 #endif
9144
9145   ;
9146   return 0;
9147 }
9148 _ACEOF
9149 rm -f conftest.$ac_objext
9150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9151   (eval $ac_compile) 2>&5
9152   ac_status=$?
9153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154   (exit $ac_status); } &&
9155          { ac_try='test -s conftest.$ac_objext'
9156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9157   (eval $ac_try) 2>&5
9158   ac_status=$?
9159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160   (exit $ac_status); }; }; then
9161   ac_cv_c_const=yes
9162 else
9163   echo "$as_me: failed program was:" >&5
9164 cat conftest.$ac_ext >&5
9165 ac_cv_c_const=no
9166 fi
9167 rm -f conftest.$ac_objext conftest.$ac_ext
9168 fi
9169 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9170 echo "${ECHO_T}$ac_cv_c_const" >&6
9171 if test $ac_cv_c_const = no; then
9172
9173 cat >>confdefs.h <<\_ACEOF
9174 #define const
9175 _ACEOF
9176
9177 fi
9178
9179 echo "$as_me:$LINENO: checking for inline" >&5
9180 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9181 if test "${ac_cv_c_inline+set}" = set; then
9182   echo $ECHO_N "(cached) $ECHO_C" >&6
9183 else
9184   ac_cv_c_inline=no
9185 for ac_kw in inline __inline__ __inline; do
9186   cat >conftest.$ac_ext <<_ACEOF
9187 #line $LINENO "configure"
9188 #include "confdefs.h"
9189 #ifndef __cplusplus
9190 static $ac_kw int static_foo () {return 0; }
9191 $ac_kw int foo () {return 0; }
9192 #endif
9193
9194 _ACEOF
9195 rm -f conftest.$ac_objext
9196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9197   (eval $ac_compile) 2>&5
9198   ac_status=$?
9199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200   (exit $ac_status); } &&
9201          { ac_try='test -s conftest.$ac_objext'
9202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9203   (eval $ac_try) 2>&5
9204   ac_status=$?
9205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206   (exit $ac_status); }; }; then
9207   ac_cv_c_inline=$ac_kw; break
9208 else
9209   echo "$as_me: failed program was:" >&5
9210 cat conftest.$ac_ext >&5
9211 fi
9212 rm -f conftest.$ac_objext conftest.$ac_ext
9213 done
9214
9215 fi
9216 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9217 echo "${ECHO_T}$ac_cv_c_inline" >&6
9218 case $ac_cv_c_inline in
9219   inline | yes) ;;
9220   no)
9221 cat >>confdefs.h <<\_ACEOF
9222 #define inline
9223 _ACEOF
9224  ;;
9225   *)  cat >>confdefs.h <<_ACEOF
9226 #define inline $ac_cv_c_inline
9227 _ACEOF
9228  ;;
9229 esac
9230
9231 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9232 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9233 if test "${ac_cv_c_stringize+set}" = set; then
9234   echo $ECHO_N "(cached) $ECHO_C" >&6
9235 else
9236   cat >conftest.$ac_ext <<_ACEOF
9237 #line $LINENO "configure"
9238 #include "confdefs.h"
9239 #define x(y) #y
9240
9241 char *s = x(teststring);
9242 _ACEOF
9243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9244   egrep "#teststring" >/dev/null 2>&1; then
9245   ac_cv_c_stringize=no
9246 else
9247   ac_cv_c_stringize=yes
9248 fi
9249 rm -f conftest*
9250
9251 fi
9252 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9253 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9254 if test $ac_cv_c_stringize = yes; then
9255
9256 cat >>confdefs.h <<\_ACEOF
9257 #define HAVE_STRINGIZE 1
9258 _ACEOF
9259
9260 fi
9261
9262 echo "$as_me:$LINENO: checking for signed types" >&5
9263 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9264 if test "${pgac_cv_c_signed+set}" = set; then
9265   echo $ECHO_N "(cached) $ECHO_C" >&6
9266 else
9267   cat >conftest.$ac_ext <<_ACEOF
9268 #line $LINENO "configure"
9269 #include "confdefs.h"
9270
9271 #ifdef F77_DUMMY_MAIN
9272 #  ifdef __cplusplus
9273      extern "C"
9274 #  endif
9275    int F77_DUMMY_MAIN() { return 1; }
9276 #endif
9277 int
9278 main ()
9279 {
9280 signed char c; signed short s; signed int i;
9281   ;
9282   return 0;
9283 }
9284 _ACEOF
9285 rm -f conftest.$ac_objext
9286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9287   (eval $ac_compile) 2>&5
9288   ac_status=$?
9289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290   (exit $ac_status); } &&
9291          { ac_try='test -s conftest.$ac_objext'
9292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293   (eval $ac_try) 2>&5
9294   ac_status=$?
9295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296   (exit $ac_status); }; }; then
9297   pgac_cv_c_signed=yes
9298 else
9299   echo "$as_me: failed program was:" >&5
9300 cat conftest.$ac_ext >&5
9301 pgac_cv_c_signed=no
9302 fi
9303 rm -f conftest.$ac_objext conftest.$ac_ext
9304 fi
9305 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9306 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9307 if test x"$pgac_cv_c_signed" = xno ; then
9308
9309 cat >>confdefs.h <<\_ACEOF
9310 #define signed
9311 _ACEOF
9312
9313 fi
9314 echo "$as_me:$LINENO: checking for working volatile" >&5
9315 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9316 if test "${ac_cv_c_volatile+set}" = set; then
9317   echo $ECHO_N "(cached) $ECHO_C" >&6
9318 else
9319   cat >conftest.$ac_ext <<_ACEOF
9320 #line $LINENO "configure"
9321 #include "confdefs.h"
9322
9323 #ifdef F77_DUMMY_MAIN
9324 #  ifdef __cplusplus
9325      extern "C"
9326 #  endif
9327    int F77_DUMMY_MAIN() { return 1; }
9328 #endif
9329 int
9330 main ()
9331 {
9332
9333 volatile int x;
9334 int * volatile y;
9335   ;
9336   return 0;
9337 }
9338 _ACEOF
9339 rm -f conftest.$ac_objext
9340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9341   (eval $ac_compile) 2>&5
9342   ac_status=$?
9343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344   (exit $ac_status); } &&
9345          { ac_try='test -s conftest.$ac_objext'
9346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9347   (eval $ac_try) 2>&5
9348   ac_status=$?
9349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350   (exit $ac_status); }; }; then
9351   ac_cv_c_volatile=yes
9352 else
9353   echo "$as_me: failed program was:" >&5
9354 cat conftest.$ac_ext >&5
9355 ac_cv_c_volatile=no
9356 fi
9357 rm -f conftest.$ac_objext conftest.$ac_ext
9358 fi
9359 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9360 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9361 if test $ac_cv_c_volatile = no; then
9362
9363 cat >>confdefs.h <<\_ACEOF
9364 #define volatile
9365 _ACEOF
9366
9367 fi
9368
9369 echo "$as_me:$LINENO: checking for __func__" >&5
9370 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9371 if test "${pgac_cv_funcname_func_support+set}" = set; then
9372   echo $ECHO_N "(cached) $ECHO_C" >&6
9373 else
9374   cat >conftest.$ac_ext <<_ACEOF
9375 #line $LINENO "configure"
9376 #include "confdefs.h"
9377 #include <stdio.h>
9378 #ifdef F77_DUMMY_MAIN
9379 #  ifdef __cplusplus
9380      extern "C"
9381 #  endif
9382    int F77_DUMMY_MAIN() { return 1; }
9383 #endif
9384 int
9385 main ()
9386 {
9387 printf("%s\n", __func__);
9388   ;
9389   return 0;
9390 }
9391 _ACEOF
9392 rm -f conftest.$ac_objext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9394   (eval $ac_compile) 2>&5
9395   ac_status=$?
9396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397   (exit $ac_status); } &&
9398          { ac_try='test -s conftest.$ac_objext'
9399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400   (eval $ac_try) 2>&5
9401   ac_status=$?
9402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403   (exit $ac_status); }; }; then
9404   pgac_cv_funcname_func_support=yes
9405 else
9406   echo "$as_me: failed program was:" >&5
9407 cat conftest.$ac_ext >&5
9408 pgac_cv_funcname_func_support=no
9409 fi
9410 rm -f conftest.$ac_objext conftest.$ac_ext
9411 fi
9412 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9413 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9414 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9415
9416 cat >>confdefs.h <<\_ACEOF
9417 #define HAVE_FUNCNAME__FUNC 1
9418 _ACEOF
9419
9420 else
9421 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9422 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9423 if test "${pgac_cv_funcname_function_support+set}" = set; then
9424   echo $ECHO_N "(cached) $ECHO_C" >&6
9425 else
9426   cat >conftest.$ac_ext <<_ACEOF
9427 #line $LINENO "configure"
9428 #include "confdefs.h"
9429 #include <stdio.h>
9430 #ifdef F77_DUMMY_MAIN
9431 #  ifdef __cplusplus
9432      extern "C"
9433 #  endif
9434    int F77_DUMMY_MAIN() { return 1; }
9435 #endif
9436 int
9437 main ()
9438 {
9439 printf("%s\n", __FUNCTION__);
9440   ;
9441   return 0;
9442 }
9443 _ACEOF
9444 rm -f conftest.$ac_objext
9445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9446   (eval $ac_compile) 2>&5
9447   ac_status=$?
9448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449   (exit $ac_status); } &&
9450          { ac_try='test -s conftest.$ac_objext'
9451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452   (eval $ac_try) 2>&5
9453   ac_status=$?
9454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455   (exit $ac_status); }; }; then
9456   pgac_cv_funcname_function_support=yes
9457 else
9458   echo "$as_me: failed program was:" >&5
9459 cat conftest.$ac_ext >&5
9460 pgac_cv_funcname_function_support=no
9461 fi
9462 rm -f conftest.$ac_objext conftest.$ac_ext
9463 fi
9464 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9465 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9466 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9467
9468 cat >>confdefs.h <<\_ACEOF
9469 #define HAVE_FUNCNAME__FUNCTION 1
9470 _ACEOF
9471
9472 fi
9473 fi
9474 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9475 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9476 if test "${ac_cv_struct_tm+set}" = set; then
9477   echo $ECHO_N "(cached) $ECHO_C" >&6
9478 else
9479   cat >conftest.$ac_ext <<_ACEOF
9480 #line $LINENO "configure"
9481 #include "confdefs.h"
9482 #include <sys/types.h>
9483 #include <time.h>
9484
9485 #ifdef F77_DUMMY_MAIN
9486 #  ifdef __cplusplus
9487      extern "C"
9488 #  endif
9489    int F77_DUMMY_MAIN() { return 1; }
9490 #endif
9491 int
9492 main ()
9493 {
9494 struct tm *tp; tp->tm_sec;
9495   ;
9496   return 0;
9497 }
9498 _ACEOF
9499 rm -f conftest.$ac_objext
9500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9501   (eval $ac_compile) 2>&5
9502   ac_status=$?
9503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504   (exit $ac_status); } &&
9505          { ac_try='test -s conftest.$ac_objext'
9506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507   (eval $ac_try) 2>&5
9508   ac_status=$?
9509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510   (exit $ac_status); }; }; then
9511   ac_cv_struct_tm=time.h
9512 else
9513   echo "$as_me: failed program was:" >&5
9514 cat conftest.$ac_ext >&5
9515 ac_cv_struct_tm=sys/time.h
9516 fi
9517 rm -f conftest.$ac_objext conftest.$ac_ext
9518 fi
9519 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9520 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9521 if test $ac_cv_struct_tm = sys/time.h; then
9522
9523 cat >>confdefs.h <<\_ACEOF
9524 #define TM_IN_SYS_TIME 1
9525 _ACEOF
9526
9527 fi
9528
9529 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9530 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9531 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9532   echo $ECHO_N "(cached) $ECHO_C" >&6
9533 else
9534   cat >conftest.$ac_ext <<_ACEOF
9535 #line $LINENO "configure"
9536 #include "confdefs.h"
9537 #include <sys/types.h>
9538 #include <$ac_cv_struct_tm>
9539
9540
9541 #ifdef F77_DUMMY_MAIN
9542 #  ifdef __cplusplus
9543      extern "C"
9544 #  endif
9545    int F77_DUMMY_MAIN() { return 1; }
9546 #endif
9547 int
9548 main ()
9549 {
9550 static struct tm ac_aggr;
9551 if (ac_aggr.tm_zone)
9552 return 0;
9553   ;
9554   return 0;
9555 }
9556 _ACEOF
9557 rm -f conftest.$ac_objext
9558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9559   (eval $ac_compile) 2>&5
9560   ac_status=$?
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); } &&
9563          { ac_try='test -s conftest.$ac_objext'
9564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9565   (eval $ac_try) 2>&5
9566   ac_status=$?
9567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568   (exit $ac_status); }; }; then
9569   ac_cv_member_struct_tm_tm_zone=yes
9570 else
9571   echo "$as_me: failed program was:" >&5
9572 cat conftest.$ac_ext >&5
9573 ac_cv_member_struct_tm_tm_zone=no
9574 fi
9575 rm -f conftest.$ac_objext conftest.$ac_ext
9576 fi
9577 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9578 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9579 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9580
9581 cat >>confdefs.h <<_ACEOF
9582 #define HAVE_STRUCT_TM_TM_ZONE 1
9583 _ACEOF
9584
9585
9586 fi
9587
9588 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9589
9590 cat >>confdefs.h <<\_ACEOF
9591 #define HAVE_TM_ZONE 1
9592 _ACEOF
9593
9594 fi
9595 echo "$as_me:$LINENO: checking for tzname" >&5
9596 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9597 if test "${ac_cv_var_tzname+set}" = set; then
9598   echo $ECHO_N "(cached) $ECHO_C" >&6
9599 else
9600   cat >conftest.$ac_ext <<_ACEOF
9601 #line $LINENO "configure"
9602 #include "confdefs.h"
9603 #include <time.h>
9604 #ifndef tzname /* For SGI.  */
9605 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9606 #endif
9607
9608 #ifdef F77_DUMMY_MAIN
9609 #  ifdef __cplusplus
9610      extern "C"
9611 #  endif
9612    int F77_DUMMY_MAIN() { return 1; }
9613 #endif
9614 int
9615 main ()
9616 {
9617 atoi(*tzname);
9618   ;
9619   return 0;
9620 }
9621 _ACEOF
9622 rm -f conftest.$ac_objext conftest$ac_exeext
9623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9624   (eval $ac_link) 2>&5
9625   ac_status=$?
9626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627   (exit $ac_status); } &&
9628          { ac_try='test -s conftest$ac_exeext'
9629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630   (eval $ac_try) 2>&5
9631   ac_status=$?
9632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633   (exit $ac_status); }; }; then
9634   ac_cv_var_tzname=yes
9635 else
9636   echo "$as_me: failed program was:" >&5
9637 cat conftest.$ac_ext >&5
9638 ac_cv_var_tzname=no
9639 fi
9640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9641 fi
9642 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9643 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9644 if test $ac_cv_var_tzname = yes; then
9645
9646 cat >>confdefs.h <<\_ACEOF
9647 #define HAVE_TZNAME 1
9648 _ACEOF
9649
9650 fi
9651
9652 echo "$as_me:$LINENO: checking for union semun" >&5
9653 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9654 if test "${ac_cv_type_union_semun+set}" = set; then
9655   echo $ECHO_N "(cached) $ECHO_C" >&6
9656 else
9657   cat >conftest.$ac_ext <<_ACEOF
9658 #line $LINENO "configure"
9659 #include "confdefs.h"
9660 #include <sys/types.h>
9661 #include <sys/ipc.h>
9662 #include <sys/sem.h>
9663
9664 #ifdef F77_DUMMY_MAIN
9665 #  ifdef __cplusplus
9666      extern "C"
9667 #  endif
9668    int F77_DUMMY_MAIN() { return 1; }
9669 #endif
9670 int
9671 main ()
9672 {
9673 if ((union semun *) 0)
9674   return 0;
9675 if (sizeof (union semun))
9676   return 0;
9677   ;
9678   return 0;
9679 }
9680 _ACEOF
9681 rm -f conftest.$ac_objext
9682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9683   (eval $ac_compile) 2>&5
9684   ac_status=$?
9685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686   (exit $ac_status); } &&
9687          { ac_try='test -s conftest.$ac_objext'
9688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689   (eval $ac_try) 2>&5
9690   ac_status=$?
9691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692   (exit $ac_status); }; }; then
9693   ac_cv_type_union_semun=yes
9694 else
9695   echo "$as_me: failed program was:" >&5
9696 cat conftest.$ac_ext >&5
9697 ac_cv_type_union_semun=no
9698 fi
9699 rm -f conftest.$ac_objext conftest.$ac_ext
9700 fi
9701 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9702 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9703 if test $ac_cv_type_union_semun = yes; then
9704
9705 cat >>confdefs.h <<_ACEOF
9706 #define HAVE_UNION_SEMUN 1
9707 _ACEOF
9708
9709
9710 fi
9711
9712 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9713 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9714 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9715   echo $ECHO_N "(cached) $ECHO_C" >&6
9716 else
9717   cat >conftest.$ac_ext <<_ACEOF
9718 #line $LINENO "configure"
9719 #include "confdefs.h"
9720 #include <sys/types.h>
9721 #ifdef HAVE_SYS_UN_H
9722 #include <sys/un.h>
9723 #endif
9724
9725
9726 #ifdef F77_DUMMY_MAIN
9727 #  ifdef __cplusplus
9728      extern "C"
9729 #  endif
9730    int F77_DUMMY_MAIN() { return 1; }
9731 #endif
9732 int
9733 main ()
9734 {
9735 if ((struct sockaddr_un *) 0)
9736   return 0;
9737 if (sizeof (struct sockaddr_un))
9738   return 0;
9739   ;
9740   return 0;
9741 }
9742 _ACEOF
9743 rm -f conftest.$ac_objext
9744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9745   (eval $ac_compile) 2>&5
9746   ac_status=$?
9747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748   (exit $ac_status); } &&
9749          { ac_try='test -s conftest.$ac_objext'
9750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751   (eval $ac_try) 2>&5
9752   ac_status=$?
9753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754   (exit $ac_status); }; }; then
9755   ac_cv_type_struct_sockaddr_un=yes
9756 else
9757   echo "$as_me: failed program was:" >&5
9758 cat conftest.$ac_ext >&5
9759 ac_cv_type_struct_sockaddr_un=no
9760 fi
9761 rm -f conftest.$ac_objext conftest.$ac_ext
9762 fi
9763 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9764 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9765 if test $ac_cv_type_struct_sockaddr_un = yes; then
9766
9767 cat >>confdefs.h <<_ACEOF
9768 #define HAVE_STRUCT_SOCKADDR_UN 1
9769 _ACEOF
9770
9771
9772 cat >>confdefs.h <<\_ACEOF
9773 #define HAVE_UNIX_SOCKETS 1
9774 _ACEOF
9775
9776 fi
9777
9778 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9779 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9780 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9781   echo $ECHO_N "(cached) $ECHO_C" >&6
9782 else
9783   cat >conftest.$ac_ext <<_ACEOF
9784 #line $LINENO "configure"
9785 #include "confdefs.h"
9786 #include <sys/types.h>
9787 #ifdef HAVE_SYS_SOCKET_H
9788 #include <sys/socket.h>
9789 #endif
9790
9791
9792 #ifdef F77_DUMMY_MAIN
9793 #  ifdef __cplusplus
9794      extern "C"
9795 #  endif
9796    int F77_DUMMY_MAIN() { return 1; }
9797 #endif
9798 int
9799 main ()
9800 {
9801 if ((struct sockaddr_storage *) 0)
9802   return 0;
9803 if (sizeof (struct sockaddr_storage))
9804   return 0;
9805   ;
9806   return 0;
9807 }
9808 _ACEOF
9809 rm -f conftest.$ac_objext
9810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9811   (eval $ac_compile) 2>&5
9812   ac_status=$?
9813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814   (exit $ac_status); } &&
9815          { ac_try='test -s conftest.$ac_objext'
9816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9817   (eval $ac_try) 2>&5
9818   ac_status=$?
9819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820   (exit $ac_status); }; }; then
9821   ac_cv_type_struct_sockaddr_storage=yes
9822 else
9823   echo "$as_me: failed program was:" >&5
9824 cat conftest.$ac_ext >&5
9825 ac_cv_type_struct_sockaddr_storage=no
9826 fi
9827 rm -f conftest.$ac_objext conftest.$ac_ext
9828 fi
9829 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
9830 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
9831 if test $ac_cv_type_struct_sockaddr_storage = yes; then
9832
9833 cat >>confdefs.h <<_ACEOF
9834 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9835 _ACEOF
9836
9837
9838 fi
9839
9840 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
9841 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
9842 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
9843   echo $ECHO_N "(cached) $ECHO_C" >&6
9844 else
9845   cat >conftest.$ac_ext <<_ACEOF
9846 #line $LINENO "configure"
9847 #include "confdefs.h"
9848 #include <sys/types.h>
9849 #ifdef HAVE_SYS_SOCKET_H
9850 #include <sys/socket.h>
9851 #endif
9852
9853
9854 #ifdef F77_DUMMY_MAIN
9855 #  ifdef __cplusplus
9856      extern "C"
9857 #  endif
9858    int F77_DUMMY_MAIN() { return 1; }
9859 #endif
9860 int
9861 main ()
9862 {
9863 static struct sockaddr_storage ac_aggr;
9864 if (ac_aggr.ss_family)
9865 return 0;
9866   ;
9867   return 0;
9868 }
9869 _ACEOF
9870 rm -f conftest.$ac_objext
9871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9872   (eval $ac_compile) 2>&5
9873   ac_status=$?
9874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875   (exit $ac_status); } &&
9876          { ac_try='test -s conftest.$ac_objext'
9877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878   (eval $ac_try) 2>&5
9879   ac_status=$?
9880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881   (exit $ac_status); }; }; then
9882   ac_cv_member_struct_sockaddr_storage_ss_family=yes
9883 else
9884   echo "$as_me: failed program was:" >&5
9885 cat conftest.$ac_ext >&5
9886 ac_cv_member_struct_sockaddr_storage_ss_family=no
9887 fi
9888 rm -f conftest.$ac_objext conftest.$ac_ext
9889 fi
9890 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
9891 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
9892 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
9893
9894 cat >>confdefs.h <<_ACEOF
9895 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
9896 _ACEOF
9897
9898
9899 fi
9900 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
9901 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
9902 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
9903   echo $ECHO_N "(cached) $ECHO_C" >&6
9904 else
9905   cat >conftest.$ac_ext <<_ACEOF
9906 #line $LINENO "configure"
9907 #include "confdefs.h"
9908 #include <sys/types.h>
9909 #ifdef HAVE_SYS_SOCKET_H
9910 #include <sys/socket.h>
9911 #endif
9912
9913
9914 #ifdef F77_DUMMY_MAIN
9915 #  ifdef __cplusplus
9916      extern "C"
9917 #  endif
9918    int F77_DUMMY_MAIN() { return 1; }
9919 #endif
9920 int
9921 main ()
9922 {
9923 static struct sockaddr_storage ac_aggr;
9924 if (ac_aggr.__ss_family)
9925 return 0;
9926   ;
9927   return 0;
9928 }
9929 _ACEOF
9930 rm -f conftest.$ac_objext
9931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9932   (eval $ac_compile) 2>&5
9933   ac_status=$?
9934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935   (exit $ac_status); } &&
9936          { ac_try='test -s conftest.$ac_objext'
9937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938   (eval $ac_try) 2>&5
9939   ac_status=$?
9940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941   (exit $ac_status); }; }; then
9942   ac_cv_member_struct_sockaddr_storage___ss_family=yes
9943 else
9944   echo "$as_me: failed program was:" >&5
9945 cat conftest.$ac_ext >&5
9946 ac_cv_member_struct_sockaddr_storage___ss_family=no
9947 fi
9948 rm -f conftest.$ac_objext conftest.$ac_ext
9949 fi
9950 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
9951 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
9952 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
9953
9954 cat >>confdefs.h <<_ACEOF
9955 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
9956 _ACEOF
9957
9958
9959 fi
9960 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
9961 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
9962 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
9963   echo $ECHO_N "(cached) $ECHO_C" >&6
9964 else
9965   cat >conftest.$ac_ext <<_ACEOF
9966 #line $LINENO "configure"
9967 #include "confdefs.h"
9968 #include <sys/types.h>
9969 #ifdef HAVE_SYS_SOCKET_H
9970 #include <sys/socket.h>
9971 #endif
9972
9973
9974 #ifdef F77_DUMMY_MAIN
9975 #  ifdef __cplusplus
9976      extern "C"
9977 #  endif
9978    int F77_DUMMY_MAIN() { return 1; }
9979 #endif
9980 int
9981 main ()
9982 {
9983 static struct sockaddr_storage ac_aggr;
9984 if (ac_aggr.ss_len)
9985 return 0;
9986   ;
9987   return 0;
9988 }
9989 _ACEOF
9990 rm -f conftest.$ac_objext
9991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9992   (eval $ac_compile) 2>&5
9993   ac_status=$?
9994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995   (exit $ac_status); } &&
9996          { ac_try='test -s conftest.$ac_objext'
9997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998   (eval $ac_try) 2>&5
9999   ac_status=$?
10000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001   (exit $ac_status); }; }; then
10002   ac_cv_member_struct_sockaddr_storage_ss_len=yes
10003 else
10004   echo "$as_me: failed program was:" >&5
10005 cat conftest.$ac_ext >&5
10006 ac_cv_member_struct_sockaddr_storage_ss_len=no
10007 fi
10008 rm -f conftest.$ac_objext conftest.$ac_ext
10009 fi
10010 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
10011 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
10012 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
10013
10014 cat >>confdefs.h <<_ACEOF
10015 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
10016 _ACEOF
10017
10018
10019 fi
10020 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
10021 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
10022 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
10023   echo $ECHO_N "(cached) $ECHO_C" >&6
10024 else
10025   cat >conftest.$ac_ext <<_ACEOF
10026 #line $LINENO "configure"
10027 #include "confdefs.h"
10028 #include <sys/types.h>
10029 #ifdef HAVE_SYS_SOCKET_H
10030 #include <sys/socket.h>
10031 #endif
10032
10033
10034 #ifdef F77_DUMMY_MAIN
10035 #  ifdef __cplusplus
10036      extern "C"
10037 #  endif
10038    int F77_DUMMY_MAIN() { return 1; }
10039 #endif
10040 int
10041 main ()
10042 {
10043 static struct sockaddr_storage ac_aggr;
10044 if (ac_aggr.__ss_len)
10045 return 0;
10046   ;
10047   return 0;
10048 }
10049 _ACEOF
10050 rm -f conftest.$ac_objext
10051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10052   (eval $ac_compile) 2>&5
10053   ac_status=$?
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); } &&
10056          { ac_try='test -s conftest.$ac_objext'
10057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058   (eval $ac_try) 2>&5
10059   ac_status=$?
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); }; }; then
10062   ac_cv_member_struct_sockaddr_storage___ss_len=yes
10063 else
10064   echo "$as_me: failed program was:" >&5
10065 cat conftest.$ac_ext >&5
10066 ac_cv_member_struct_sockaddr_storage___ss_len=no
10067 fi
10068 rm -f conftest.$ac_objext conftest.$ac_ext
10069 fi
10070 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
10071 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
10072 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
10073
10074 cat >>confdefs.h <<_ACEOF
10075 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10076 _ACEOF
10077
10078
10079 fi
10080 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
10081 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
10082 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
10083   echo $ECHO_N "(cached) $ECHO_C" >&6
10084 else
10085   cat >conftest.$ac_ext <<_ACEOF
10086 #line $LINENO "configure"
10087 #include "confdefs.h"
10088 #include <sys/types.h>
10089 #ifdef HAVE_SYS_SOCKET_H
10090 #include <sys/socket.h>
10091 #endif
10092
10093
10094 #ifdef F77_DUMMY_MAIN
10095 #  ifdef __cplusplus
10096      extern "C"
10097 #  endif
10098    int F77_DUMMY_MAIN() { return 1; }
10099 #endif
10100 int
10101 main ()
10102 {
10103 static struct sockaddr ac_aggr;
10104 if (ac_aggr.sa_len)
10105 return 0;
10106   ;
10107   return 0;
10108 }
10109 _ACEOF
10110 rm -f conftest.$ac_objext
10111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10112   (eval $ac_compile) 2>&5
10113   ac_status=$?
10114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115   (exit $ac_status); } &&
10116          { ac_try='test -s conftest.$ac_objext'
10117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118   (eval $ac_try) 2>&5
10119   ac_status=$?
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); }; }; then
10122   ac_cv_member_struct_sockaddr_sa_len=yes
10123 else
10124   echo "$as_me: failed program was:" >&5
10125 cat conftest.$ac_ext >&5
10126 ac_cv_member_struct_sockaddr_sa_len=no
10127 fi
10128 rm -f conftest.$ac_objext conftest.$ac_ext
10129 fi
10130 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10131 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10132 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10133
10134 cat >>confdefs.h <<_ACEOF
10135 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10136 _ACEOF
10137
10138
10139 fi
10140
10141 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10142 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10143 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10144   echo $ECHO_N "(cached) $ECHO_C" >&6
10145 else
10146   cat >conftest.$ac_ext <<_ACEOF
10147 #line $LINENO "configure"
10148 #include "confdefs.h"
10149 #include <sys/types.h>
10150 #include <sys/socket.h>
10151 #include <netdb.h>
10152
10153
10154 #ifdef F77_DUMMY_MAIN
10155 #  ifdef __cplusplus
10156      extern "C"
10157 #  endif
10158    int F77_DUMMY_MAIN() { return 1; }
10159 #endif
10160 int
10161 main ()
10162 {
10163 if ((struct addrinfo *) 0)
10164   return 0;
10165 if (sizeof (struct addrinfo))
10166   return 0;
10167   ;
10168   return 0;
10169 }
10170 _ACEOF
10171 rm -f conftest.$ac_objext
10172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10173   (eval $ac_compile) 2>&5
10174   ac_status=$?
10175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176   (exit $ac_status); } &&
10177          { ac_try='test -s conftest.$ac_objext'
10178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179   (eval $ac_try) 2>&5
10180   ac_status=$?
10181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182   (exit $ac_status); }; }; then
10183   ac_cv_type_struct_addrinfo=yes
10184 else
10185   echo "$as_me: failed program was:" >&5
10186 cat conftest.$ac_ext >&5
10187 ac_cv_type_struct_addrinfo=no
10188 fi
10189 rm -f conftest.$ac_objext conftest.$ac_ext
10190 fi
10191 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10192 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10193 if test $ac_cv_type_struct_addrinfo = yes; then
10194
10195 cat >>confdefs.h <<_ACEOF
10196 #define HAVE_STRUCT_ADDRINFO 1
10197 _ACEOF
10198
10199
10200 fi
10201
10202
10203 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10204 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10205 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10206   echo $ECHO_N "(cached) $ECHO_C" >&6
10207 else
10208   cat >conftest.$ac_ext <<_ACEOF
10209 #line $LINENO "configure"
10210 #include "confdefs.h"
10211 #include <sys/param.h>
10212 #include <sys/types.h>
10213 #include <sys/socket.h>
10214 #include <sys/ucred.h>
10215
10216 #ifdef F77_DUMMY_MAIN
10217 #  ifdef __cplusplus
10218      extern "C"
10219 #  endif
10220    int F77_DUMMY_MAIN() { return 1; }
10221 #endif
10222 int
10223 main ()
10224 {
10225 if ((struct cmsgcred *) 0)
10226   return 0;
10227 if (sizeof (struct cmsgcred))
10228   return 0;
10229   ;
10230   return 0;
10231 }
10232 _ACEOF
10233 rm -f conftest.$ac_objext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10235   (eval $ac_compile) 2>&5
10236   ac_status=$?
10237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238   (exit $ac_status); } &&
10239          { ac_try='test -s conftest.$ac_objext'
10240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10241   (eval $ac_try) 2>&5
10242   ac_status=$?
10243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244   (exit $ac_status); }; }; then
10245   ac_cv_type_struct_cmsgcred=yes
10246 else
10247   echo "$as_me: failed program was:" >&5
10248 cat conftest.$ac_ext >&5
10249 ac_cv_type_struct_cmsgcred=no
10250 fi
10251 rm -f conftest.$ac_objext conftest.$ac_ext
10252 fi
10253 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10254 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10255 if test $ac_cv_type_struct_cmsgcred = yes; then
10256
10257 cat >>confdefs.h <<_ACEOF
10258 #define HAVE_STRUCT_CMSGCRED 1
10259 _ACEOF
10260
10261
10262 fi
10263 echo "$as_me:$LINENO: checking for struct fcred" >&5
10264 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10265 if test "${ac_cv_type_struct_fcred+set}" = set; then
10266   echo $ECHO_N "(cached) $ECHO_C" >&6
10267 else
10268   cat >conftest.$ac_ext <<_ACEOF
10269 #line $LINENO "configure"
10270 #include "confdefs.h"
10271 #include <sys/param.h>
10272 #include <sys/types.h>
10273 #include <sys/socket.h>
10274 #include <sys/ucred.h>
10275
10276 #ifdef F77_DUMMY_MAIN
10277 #  ifdef __cplusplus
10278      extern "C"
10279 #  endif
10280    int F77_DUMMY_MAIN() { return 1; }
10281 #endif
10282 int
10283 main ()
10284 {
10285 if ((struct fcred *) 0)
10286   return 0;
10287 if (sizeof (struct fcred))
10288   return 0;
10289   ;
10290   return 0;
10291 }
10292 _ACEOF
10293 rm -f conftest.$ac_objext
10294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10295   (eval $ac_compile) 2>&5
10296   ac_status=$?
10297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298   (exit $ac_status); } &&
10299          { ac_try='test -s conftest.$ac_objext'
10300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301   (eval $ac_try) 2>&5
10302   ac_status=$?
10303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304   (exit $ac_status); }; }; then
10305   ac_cv_type_struct_fcred=yes
10306 else
10307   echo "$as_me: failed program was:" >&5
10308 cat conftest.$ac_ext >&5
10309 ac_cv_type_struct_fcred=no
10310 fi
10311 rm -f conftest.$ac_objext conftest.$ac_ext
10312 fi
10313 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10314 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10315 if test $ac_cv_type_struct_fcred = yes; then
10316
10317 cat >>confdefs.h <<_ACEOF
10318 #define HAVE_STRUCT_FCRED 1
10319 _ACEOF
10320
10321
10322 fi
10323 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10324 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10325 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10326   echo $ECHO_N "(cached) $ECHO_C" >&6
10327 else
10328   cat >conftest.$ac_ext <<_ACEOF
10329 #line $LINENO "configure"
10330 #include "confdefs.h"
10331 #include <sys/param.h>
10332 #include <sys/types.h>
10333 #include <sys/socket.h>
10334 #include <sys/ucred.h>
10335
10336 #ifdef F77_DUMMY_MAIN
10337 #  ifdef __cplusplus
10338      extern "C"
10339 #  endif
10340    int F77_DUMMY_MAIN() { return 1; }
10341 #endif
10342 int
10343 main ()
10344 {
10345 if ((struct sockcred *) 0)
10346   return 0;
10347 if (sizeof (struct sockcred))
10348   return 0;
10349   ;
10350   return 0;
10351 }
10352 _ACEOF
10353 rm -f conftest.$ac_objext
10354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10355   (eval $ac_compile) 2>&5
10356   ac_status=$?
10357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358   (exit $ac_status); } &&
10359          { ac_try='test -s conftest.$ac_objext'
10360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361   (eval $ac_try) 2>&5
10362   ac_status=$?
10363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364   (exit $ac_status); }; }; then
10365   ac_cv_type_struct_sockcred=yes
10366 else
10367   echo "$as_me: failed program was:" >&5
10368 cat conftest.$ac_ext >&5
10369 ac_cv_type_struct_sockcred=no
10370 fi
10371 rm -f conftest.$ac_objext conftest.$ac_ext
10372 fi
10373 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10374 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10375 if test $ac_cv_type_struct_sockcred = yes; then
10376
10377 cat >>confdefs.h <<_ACEOF
10378 #define HAVE_STRUCT_SOCKCRED 1
10379 _ACEOF
10380
10381
10382 fi
10383
10384
10385 echo "$as_me:$LINENO: checking for struct option" >&5
10386 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
10387 if test "${ac_cv_type_struct_option+set}" = set; then
10388   echo $ECHO_N "(cached) $ECHO_C" >&6
10389 else
10390   cat >conftest.$ac_ext <<_ACEOF
10391 #line $LINENO "configure"
10392 #include "confdefs.h"
10393 #ifdef HAVE_GETOPT_H
10394 #include <getopt.h>
10395 #endif
10396
10397 #ifdef F77_DUMMY_MAIN
10398 #  ifdef __cplusplus
10399      extern "C"
10400 #  endif
10401    int F77_DUMMY_MAIN() { return 1; }
10402 #endif
10403 int
10404 main ()
10405 {
10406 if ((struct option *) 0)
10407   return 0;
10408 if (sizeof (struct option))
10409   return 0;
10410   ;
10411   return 0;
10412 }
10413 _ACEOF
10414 rm -f conftest.$ac_objext
10415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10416   (eval $ac_compile) 2>&5
10417   ac_status=$?
10418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419   (exit $ac_status); } &&
10420          { ac_try='test -s conftest.$ac_objext'
10421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10422   (eval $ac_try) 2>&5
10423   ac_status=$?
10424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425   (exit $ac_status); }; }; then
10426   ac_cv_type_struct_option=yes
10427 else
10428   echo "$as_me: failed program was:" >&5
10429 cat conftest.$ac_ext >&5
10430 ac_cv_type_struct_option=no
10431 fi
10432 rm -f conftest.$ac_objext conftest.$ac_ext
10433 fi
10434 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
10435 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
10436 if test $ac_cv_type_struct_option = yes; then
10437
10438 cat >>confdefs.h <<_ACEOF
10439 #define HAVE_STRUCT_OPTION 1
10440 _ACEOF
10441
10442
10443 fi
10444
10445
10446 if test "$with_zlib" = yes; then
10447   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10448   # did not).  While we could work around the lack of z_streamp, it
10449   # seems unwise to encourage people to use such old zlib versions...
10450   echo "$as_me:$LINENO: checking for z_streamp" >&5
10451 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10452 if test "${ac_cv_type_z_streamp+set}" = set; then
10453   echo $ECHO_N "(cached) $ECHO_C" >&6
10454 else
10455   cat >conftest.$ac_ext <<_ACEOF
10456 #line $LINENO "configure"
10457 #include "confdefs.h"
10458 #include <zlib.h>
10459
10460 #ifdef F77_DUMMY_MAIN
10461 #  ifdef __cplusplus
10462      extern "C"
10463 #  endif
10464    int F77_DUMMY_MAIN() { return 1; }
10465 #endif
10466 int
10467 main ()
10468 {
10469 if ((z_streamp *) 0)
10470   return 0;
10471 if (sizeof (z_streamp))
10472   return 0;
10473   ;
10474   return 0;
10475 }
10476 _ACEOF
10477 rm -f conftest.$ac_objext
10478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10479   (eval $ac_compile) 2>&5
10480   ac_status=$?
10481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482   (exit $ac_status); } &&
10483          { ac_try='test -s conftest.$ac_objext'
10484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485   (eval $ac_try) 2>&5
10486   ac_status=$?
10487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488   (exit $ac_status); }; }; then
10489   ac_cv_type_z_streamp=yes
10490 else
10491   echo "$as_me: failed program was:" >&5
10492 cat conftest.$ac_ext >&5
10493 ac_cv_type_z_streamp=no
10494 fi
10495 rm -f conftest.$ac_objext conftest.$ac_ext
10496 fi
10497 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10498 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10499 if test $ac_cv_type_z_streamp = yes; then
10500   :
10501 else
10502   { { echo "$as_me:$LINENO: error: zlib version is too old
10503 Use --without-zlib to disable zlib support." >&5
10504 echo "$as_me: error: zlib version is too old
10505 Use --without-zlib to disable zlib support." >&2;}
10506    { (exit 1); exit 1; }; }
10507 fi
10508
10509 fi
10510
10511 if test "$with_krb5" = yes; then
10512 # Check for differences between MIT and Heimdal (KTH) releases
10513   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10514 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10515 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10516   echo $ECHO_N "(cached) $ECHO_C" >&6
10517 else
10518   cat >conftest.$ac_ext <<_ACEOF
10519 #line $LINENO "configure"
10520 #include "confdefs.h"
10521 #include <krb5.h>
10522
10523 #ifdef F77_DUMMY_MAIN
10524 #  ifdef __cplusplus
10525      extern "C"
10526 #  endif
10527    int F77_DUMMY_MAIN() { return 1; }
10528 #endif
10529 int
10530 main ()
10531 {
10532 static krb5_ticket ac_aggr;
10533 if (ac_aggr.enc_part2)
10534 return 0;
10535   ;
10536   return 0;
10537 }
10538 _ACEOF
10539 rm -f conftest.$ac_objext
10540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10541   (eval $ac_compile) 2>&5
10542   ac_status=$?
10543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544   (exit $ac_status); } &&
10545          { ac_try='test -s conftest.$ac_objext'
10546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547   (eval $ac_try) 2>&5
10548   ac_status=$?
10549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550   (exit $ac_status); }; }; then
10551   ac_cv_member_krb5_ticket_enc_part2=yes
10552 else
10553   echo "$as_me: failed program was:" >&5
10554 cat conftest.$ac_ext >&5
10555 ac_cv_member_krb5_ticket_enc_part2=no
10556 fi
10557 rm -f conftest.$ac_objext conftest.$ac_ext
10558 fi
10559 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10560 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10561 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10562
10563 cat >>confdefs.h <<_ACEOF
10564 #define HAVE_KRB5_TICKET_ENC_PART2 1
10565 _ACEOF
10566
10567
10568 else
10569   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10570 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10571 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10572   echo $ECHO_N "(cached) $ECHO_C" >&6
10573 else
10574   cat >conftest.$ac_ext <<_ACEOF
10575 #line $LINENO "configure"
10576 #include "confdefs.h"
10577 #include <krb5.h>
10578
10579 #ifdef F77_DUMMY_MAIN
10580 #  ifdef __cplusplus
10581      extern "C"
10582 #  endif
10583    int F77_DUMMY_MAIN() { return 1; }
10584 #endif
10585 int
10586 main ()
10587 {
10588 static krb5_ticket ac_aggr;
10589 if (ac_aggr.client)
10590 return 0;
10591   ;
10592   return 0;
10593 }
10594 _ACEOF
10595 rm -f conftest.$ac_objext
10596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10597   (eval $ac_compile) 2>&5
10598   ac_status=$?
10599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600   (exit $ac_status); } &&
10601          { ac_try='test -s conftest.$ac_objext'
10602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10603   (eval $ac_try) 2>&5
10604   ac_status=$?
10605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606   (exit $ac_status); }; }; then
10607   ac_cv_member_krb5_ticket_client=yes
10608 else
10609   echo "$as_me: failed program was:" >&5
10610 cat conftest.$ac_ext >&5
10611 ac_cv_member_krb5_ticket_client=no
10612 fi
10613 rm -f conftest.$ac_objext conftest.$ac_ext
10614 fi
10615 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10616 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10617 if test $ac_cv_member_krb5_ticket_client = yes; then
10618
10619 cat >>confdefs.h <<_ACEOF
10620 #define HAVE_KRB5_TICKET_CLIENT 1
10621 _ACEOF
10622
10623
10624 else
10625   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10626 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10627    { (exit 1); exit 1; }; }
10628 fi
10629
10630 fi
10631
10632   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10633 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10634 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10635   echo $ECHO_N "(cached) $ECHO_C" >&6
10636 else
10637   cat >conftest.$ac_ext <<_ACEOF
10638 #line $LINENO "configure"
10639 #include "confdefs.h"
10640 #include <krb5.h>
10641
10642 #ifdef F77_DUMMY_MAIN
10643 #  ifdef __cplusplus
10644      extern "C"
10645 #  endif
10646    int F77_DUMMY_MAIN() { return 1; }
10647 #endif
10648 int
10649 main ()
10650 {
10651 static krb5_error ac_aggr;
10652 if (ac_aggr.text.data)
10653 return 0;
10654   ;
10655   return 0;
10656 }
10657 _ACEOF
10658 rm -f conftest.$ac_objext
10659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10660   (eval $ac_compile) 2>&5
10661   ac_status=$?
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); } &&
10664          { ac_try='test -s conftest.$ac_objext'
10665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666   (eval $ac_try) 2>&5
10667   ac_status=$?
10668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669   (exit $ac_status); }; }; then
10670   ac_cv_member_krb5_error_text_data=yes
10671 else
10672   echo "$as_me: failed program was:" >&5
10673 cat conftest.$ac_ext >&5
10674 ac_cv_member_krb5_error_text_data=no
10675 fi
10676 rm -f conftest.$ac_objext conftest.$ac_ext
10677 fi
10678 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10679 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10680 if test $ac_cv_member_krb5_error_text_data = yes; then
10681
10682 cat >>confdefs.h <<_ACEOF
10683 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10684 _ACEOF
10685
10686
10687 else
10688   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10689 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10690 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10691   echo $ECHO_N "(cached) $ECHO_C" >&6
10692 else
10693   cat >conftest.$ac_ext <<_ACEOF
10694 #line $LINENO "configure"
10695 #include "confdefs.h"
10696 #include <krb5.h>
10697
10698 #ifdef F77_DUMMY_MAIN
10699 #  ifdef __cplusplus
10700      extern "C"
10701 #  endif
10702    int F77_DUMMY_MAIN() { return 1; }
10703 #endif
10704 int
10705 main ()
10706 {
10707 static krb5_error ac_aggr;
10708 if (ac_aggr.e_data)
10709 return 0;
10710   ;
10711   return 0;
10712 }
10713 _ACEOF
10714 rm -f conftest.$ac_objext
10715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10716   (eval $ac_compile) 2>&5
10717   ac_status=$?
10718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719   (exit $ac_status); } &&
10720          { ac_try='test -s conftest.$ac_objext'
10721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722   (eval $ac_try) 2>&5
10723   ac_status=$?
10724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725   (exit $ac_status); }; }; then
10726   ac_cv_member_krb5_error_e_data=yes
10727 else
10728   echo "$as_me: failed program was:" >&5
10729 cat conftest.$ac_ext >&5
10730 ac_cv_member_krb5_error_e_data=no
10731 fi
10732 rm -f conftest.$ac_objext conftest.$ac_ext
10733 fi
10734 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10735 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10736 if test $ac_cv_member_krb5_error_e_data = yes; then
10737
10738 cat >>confdefs.h <<_ACEOF
10739 #define HAVE_KRB5_ERROR_E_DATA 1
10740 _ACEOF
10741
10742
10743 else
10744   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10745 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10746    { (exit 1); exit 1; }; }
10747 fi
10748
10749 fi
10750
10751 fi
10752
10753
10754 ##
10755 ## Functions, global variables
10756 ##
10757
10758 echo "$as_me:$LINENO: checking for int timezone" >&5
10759 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10760 if test "${pgac_cv_var_int_timezone+set}" = set; then
10761   echo $ECHO_N "(cached) $ECHO_C" >&6
10762 else
10763   cat >conftest.$ac_ext <<_ACEOF
10764 #line $LINENO "configure"
10765 #include "confdefs.h"
10766 #include <time.h>
10767 int res;
10768 #ifdef F77_DUMMY_MAIN
10769 #  ifdef __cplusplus
10770      extern "C"
10771 #  endif
10772    int F77_DUMMY_MAIN() { return 1; }
10773 #endif
10774 int
10775 main ()
10776 {
10777 res = timezone / 60;
10778   ;
10779   return 0;
10780 }
10781 _ACEOF
10782 rm -f conftest.$ac_objext conftest$ac_exeext
10783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10784   (eval $ac_link) 2>&5
10785   ac_status=$?
10786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787   (exit $ac_status); } &&
10788          { ac_try='test -s conftest$ac_exeext'
10789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790   (eval $ac_try) 2>&5
10791   ac_status=$?
10792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793   (exit $ac_status); }; }; then
10794   pgac_cv_var_int_timezone=yes
10795 else
10796   echo "$as_me: failed program was:" >&5
10797 cat conftest.$ac_ext >&5
10798 pgac_cv_var_int_timezone=no
10799 fi
10800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10801 fi
10802 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10803 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10804 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10805
10806 cat >>confdefs.h <<\_ACEOF
10807 #define HAVE_INT_TIMEZONE
10808 _ACEOF
10809
10810 fi
10811 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10812 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10813  if test "${ac_cv_func_accept_arg1+set}" = set; then
10814   echo $ECHO_N "(cached) $ECHO_C" >&6
10815 else
10816    if test "${ac_cv_func_accept_arg2+set}" = set; then
10817   echo $ECHO_N "(cached) $ECHO_C" >&6
10818 else
10819     if test "${ac_cv_func_accept_arg3+set}" = set; then
10820   echo $ECHO_N "(cached) $ECHO_C" >&6
10821 else
10822      for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10823      for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10824       for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10825        cat >conftest.$ac_ext <<_ACEOF
10826 #line $LINENO "configure"
10827 #include "confdefs.h"
10828 #ifdef HAVE_SYS_TYPES_H
10829 #include <sys/types.h>
10830 #endif
10831 #ifdef HAVE_SYS_SOCKET_H
10832 #include <sys/socket.h>
10833 #endif
10834 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10835 #ifdef F77_DUMMY_MAIN
10836 #  ifdef __cplusplus
10837      extern "C"
10838 #  endif
10839    int F77_DUMMY_MAIN() { return 1; }
10840 #endif
10841 int
10842 main ()
10843 {
10844
10845   ;
10846   return 0;
10847 }
10848 _ACEOF
10849 rm -f conftest.$ac_objext
10850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10851   (eval $ac_compile) 2>&5
10852   ac_status=$?
10853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854   (exit $ac_status); } &&
10855          { ac_try='test -s conftest.$ac_objext'
10856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10857   (eval $ac_try) 2>&5
10858   ac_status=$?
10859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860   (exit $ac_status); }; }; then
10861   ac_not_found=no; break 3
10862 else
10863   echo "$as_me: failed program was:" >&5
10864 cat conftest.$ac_ext >&5
10865 ac_not_found=yes
10866 fi
10867 rm -f conftest.$ac_objext conftest.$ac_ext
10868       done
10869      done
10870     done
10871     if test "$ac_not_found" = yes; then
10872       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10873 echo "$as_me: error: could not determine argument types" >&2;}
10874    { (exit 1); exit 1; }; }
10875     fi
10876     if test "$ac_cv_func_accept_arg3" = "void"; then
10877       ac_cv_func_accept_arg3=int
10878     fi
10879
10880 fi
10881
10882 fi
10883
10884 fi
10885  echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10886 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10887
10888 cat >>confdefs.h <<_ACEOF
10889 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10890 _ACEOF
10891
10892
10893 cat >>confdefs.h <<_ACEOF
10894 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10895 _ACEOF
10896
10897
10898 cat >>confdefs.h <<_ACEOF
10899 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10900 _ACEOF
10901
10902
10903 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10904 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10905 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10906   echo $ECHO_N "(cached) $ECHO_C" >&6
10907 else
10908   cat >conftest.$ac_ext <<_ACEOF
10909 #line $LINENO "configure"
10910 #include "confdefs.h"
10911 #include <sys/time.h>
10912 #ifdef F77_DUMMY_MAIN
10913 #  ifdef __cplusplus
10914      extern "C"
10915 #  endif
10916    int F77_DUMMY_MAIN() { return 1; }
10917 #endif
10918 int
10919 main ()
10920 {
10921 struct timeval *tp;
10922 struct timezone *tzp;
10923 gettimeofday(tp,tzp);
10924   ;
10925   return 0;
10926 }
10927 _ACEOF
10928 rm -f conftest.$ac_objext
10929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10930   (eval $ac_compile) 2>&5
10931   ac_status=$?
10932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933   (exit $ac_status); } &&
10934          { ac_try='test -s conftest.$ac_objext'
10935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936   (eval $ac_try) 2>&5
10937   ac_status=$?
10938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939   (exit $ac_status); }; }; then
10940   pgac_cv_func_gettimeofday_1arg=no
10941 else
10942   echo "$as_me: failed program was:" >&5
10943 cat conftest.$ac_ext >&5
10944 pgac_cv_func_gettimeofday_1arg=yes
10945 fi
10946 rm -f conftest.$ac_objext conftest.$ac_ext
10947 fi
10948 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10949 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10950 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10951
10952 cat >>confdefs.h <<\_ACEOF
10953 #define GETTIMEOFDAY_1ARG
10954 _ACEOF
10955
10956 fi
10957
10958
10959
10960 # SunOS doesn't handle negative byte comparisons properly with +/- return
10961 echo "$as_me:$LINENO: checking for working memcmp" >&5
10962 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10963 if test "${ac_cv_func_memcmp_working+set}" = set; then
10964   echo $ECHO_N "(cached) $ECHO_C" >&6
10965 else
10966   if test "$cross_compiling" = yes; then
10967   ac_cv_func_memcmp_working=no
10968 else
10969   cat >conftest.$ac_ext <<_ACEOF
10970 #line $LINENO "configure"
10971 #include "confdefs.h"
10972
10973 #ifdef F77_DUMMY_MAIN
10974 #  ifdef __cplusplus
10975      extern "C"
10976 #  endif
10977    int F77_DUMMY_MAIN() { return 1; }
10978 #endif
10979 int
10980 main ()
10981 {
10982
10983   /* Some versions of memcmp are not 8-bit clean.  */
10984   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10985   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10986     exit (1);
10987
10988   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10989      or more and with at least one buffer not starting on a 4-byte boundary.
10990      William Lewis provided this test program.   */
10991   {
10992     char foo[21];
10993     char bar[21];
10994     int i;
10995     for (i = 0; i < 4; i++)
10996       {
10997         char *a = foo + i;
10998         char *b = bar + i;
10999         strcpy (a, "--------01111111");
11000         strcpy (b, "--------10000000");
11001         if (memcmp (a, b, 16) >= 0)
11002           exit (1);
11003       }
11004     exit (0);
11005   }
11006
11007   ;
11008   return 0;
11009 }
11010 _ACEOF
11011 rm -f conftest$ac_exeext
11012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11013   (eval $ac_link) 2>&5
11014   ac_status=$?
11015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018   (eval $ac_try) 2>&5
11019   ac_status=$?
11020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021   (exit $ac_status); }; }; then
11022   ac_cv_func_memcmp_working=yes
11023 else
11024   echo "$as_me: program exited with status $ac_status" >&5
11025 echo "$as_me: failed program was:" >&5
11026 cat conftest.$ac_ext >&5
11027 ( exit $ac_status )
11028 ac_cv_func_memcmp_working=no
11029 fi
11030 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11031 fi
11032 fi
11033 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11034 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
11035 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid
11055 do
11056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11057 echo "$as_me:$LINENO: checking for $ac_func" >&5
11058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11059 if eval "test \"\${$as_ac_var+set}\" = set"; then
11060   echo $ECHO_N "(cached) $ECHO_C" >&6
11061 else
11062   cat >conftest.$ac_ext <<_ACEOF
11063 #line $LINENO "configure"
11064 #include "confdefs.h"
11065 /* System header to define __stub macros and hopefully few prototypes,
11066     which can conflict with char $ac_func (); below.  */
11067 #include <assert.h>
11068 /* Override any gcc2 internal prototype to avoid an error.  */
11069 #ifdef __cplusplus
11070 extern "C"
11071 #endif
11072 /* We use char because int might match the return type of a gcc2
11073    builtin and then its argument prototype would still apply.  */
11074 char $ac_func ();
11075 char (*f) ();
11076
11077 #ifdef F77_DUMMY_MAIN
11078 #  ifdef __cplusplus
11079      extern "C"
11080 #  endif
11081    int F77_DUMMY_MAIN() { return 1; }
11082 #endif
11083 int
11084 main ()
11085 {
11086 /* The GNU C library defines this for functions which it implements
11087     to always fail with ENOSYS.  Some functions are actually named
11088     something starting with __ and the normal name is an alias.  */
11089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11090 choke me
11091 #else
11092 f = $ac_func;
11093 #endif
11094
11095   ;
11096   return 0;
11097 }
11098 _ACEOF
11099 rm -f conftest.$ac_objext conftest$ac_exeext
11100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11101   (eval $ac_link) 2>&5
11102   ac_status=$?
11103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104   (exit $ac_status); } &&
11105          { ac_try='test -s conftest$ac_exeext'
11106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107   (eval $ac_try) 2>&5
11108   ac_status=$?
11109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110   (exit $ac_status); }; }; then
11111   eval "$as_ac_var=yes"
11112 else
11113   echo "$as_me: failed program was:" >&5
11114 cat conftest.$ac_ext >&5
11115 eval "$as_ac_var=no"
11116 fi
11117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11118 fi
11119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11120 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11121 if test `eval echo '${'$as_ac_var'}'` = yes; then
11122   cat >>confdefs.h <<_ACEOF
11123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11124 _ACEOF
11125
11126 fi
11127 done
11128
11129
11130 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11131 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11132 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11133   echo $ECHO_N "(cached) $ECHO_C" >&6
11134 else
11135   cat >conftest.$ac_ext <<_ACEOF
11136 #line $LINENO "configure"
11137 #include "confdefs.h"
11138 #include <unistd.h>
11139
11140 #ifdef F77_DUMMY_MAIN
11141 #  ifdef __cplusplus
11142      extern "C"
11143 #  endif
11144    int F77_DUMMY_MAIN() { return 1; }
11145 #endif
11146 int
11147 main ()
11148 {
11149 #ifndef fdatasync
11150   char *p = (char *) fdatasync;
11151 #endif
11152
11153   ;
11154   return 0;
11155 }
11156 _ACEOF
11157 rm -f conftest.$ac_objext
11158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11159   (eval $ac_compile) 2>&5
11160   ac_status=$?
11161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162   (exit $ac_status); } &&
11163          { ac_try='test -s conftest.$ac_objext'
11164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165   (eval $ac_try) 2>&5
11166   ac_status=$?
11167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168   (exit $ac_status); }; }; then
11169   ac_cv_have_decl_fdatasync=yes
11170 else
11171   echo "$as_me: failed program was:" >&5
11172 cat conftest.$ac_ext >&5
11173 ac_cv_have_decl_fdatasync=no
11174 fi
11175 rm -f conftest.$ac_objext conftest.$ac_ext
11176 fi
11177 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11178 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11179 if test $ac_cv_have_decl_fdatasync = yes; then
11180
11181 cat >>confdefs.h <<_ACEOF
11182 #define HAVE_DECL_FDATASYNC 1
11183 _ACEOF
11184
11185
11186 else
11187   cat >>confdefs.h <<_ACEOF
11188 #define HAVE_DECL_FDATASYNC 0
11189 _ACEOF
11190
11191
11192 fi
11193
11194
11195
11196 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11197 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11198 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11199   echo $ECHO_N "(cached) $ECHO_C" >&6
11200 else
11201   cat >conftest.$ac_ext <<_ACEOF
11202 #line $LINENO "configure"
11203 #include "confdefs.h"
11204 $ac_includes_default
11205 #include <netinet/in.h>
11206
11207 #ifdef F77_DUMMY_MAIN
11208 #  ifdef __cplusplus
11209      extern "C"
11210 #  endif
11211    int F77_DUMMY_MAIN() { return 1; }
11212 #endif
11213 int
11214 main ()
11215 {
11216 if ((struct sockaddr_in6 *) 0)
11217   return 0;
11218 if (sizeof (struct sockaddr_in6))
11219   return 0;
11220   ;
11221   return 0;
11222 }
11223 _ACEOF
11224 rm -f conftest.$ac_objext
11225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11226   (eval $ac_compile) 2>&5
11227   ac_status=$?
11228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229   (exit $ac_status); } &&
11230          { ac_try='test -s conftest.$ac_objext'
11231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232   (eval $ac_try) 2>&5
11233   ac_status=$?
11234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235   (exit $ac_status); }; }; then
11236   ac_cv_type_struct_sockaddr_in6=yes
11237 else
11238   echo "$as_me: failed program was:" >&5
11239 cat conftest.$ac_ext >&5
11240 ac_cv_type_struct_sockaddr_in6=no
11241 fi
11242 rm -f conftest.$ac_objext conftest.$ac_ext
11243 fi
11244 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11245 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11246 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11247   echo "$as_me:$LINENO: checking for inet_ntop" >&5
11248 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11249 if test "${ac_cv_func_inet_ntop+set}" = set; then
11250   echo $ECHO_N "(cached) $ECHO_C" >&6
11251 else
11252   cat >conftest.$ac_ext <<_ACEOF
11253 #line $LINENO "configure"
11254 #include "confdefs.h"
11255 /* System header to define __stub macros and hopefully few prototypes,
11256     which can conflict with char inet_ntop (); below.  */
11257 #include <assert.h>
11258 /* Override any gcc2 internal prototype to avoid an error.  */
11259 #ifdef __cplusplus
11260 extern "C"
11261 #endif
11262 /* We use char because int might match the return type of a gcc2
11263    builtin and then its argument prototype would still apply.  */
11264 char inet_ntop ();
11265 char (*f) ();
11266
11267 #ifdef F77_DUMMY_MAIN
11268 #  ifdef __cplusplus
11269      extern "C"
11270 #  endif
11271    int F77_DUMMY_MAIN() { return 1; }
11272 #endif
11273 int
11274 main ()
11275 {
11276 /* The GNU C library defines this for functions which it implements
11277     to always fail with ENOSYS.  Some functions are actually named
11278     something starting with __ and the normal name is an alias.  */
11279 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11280 choke me
11281 #else
11282 f = inet_ntop;
11283 #endif
11284
11285   ;
11286   return 0;
11287 }
11288 _ACEOF
11289 rm -f conftest.$ac_objext conftest$ac_exeext
11290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11291   (eval $ac_link) 2>&5
11292   ac_status=$?
11293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294   (exit $ac_status); } &&
11295          { ac_try='test -s conftest$ac_exeext'
11296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11297   (eval $ac_try) 2>&5
11298   ac_status=$?
11299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300   (exit $ac_status); }; }; then
11301   ac_cv_func_inet_ntop=yes
11302 else
11303   echo "$as_me: failed program was:" >&5
11304 cat conftest.$ac_ext >&5
11305 ac_cv_func_inet_ntop=no
11306 fi
11307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11308 fi
11309 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11310 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11311 if test $ac_cv_func_inet_ntop = yes; then
11312
11313 cat >>confdefs.h <<\_ACEOF
11314 #define HAVE_IPV6 1
11315 _ACEOF
11316
11317 fi
11318
11319 fi
11320
11321
11322 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11323 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11324 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11325   echo $ECHO_N "(cached) $ECHO_C" >&6
11326 else
11327   cat >conftest.$ac_ext <<_ACEOF
11328 #line $LINENO "configure"
11329 #include "confdefs.h"
11330 #include <machine/vmparam.h>
11331 #include <sys/exec.h>
11332
11333 #ifdef F77_DUMMY_MAIN
11334 #  ifdef __cplusplus
11335      extern "C"
11336 #  endif
11337    int F77_DUMMY_MAIN() { return 1; }
11338 #endif
11339 int
11340 main ()
11341 {
11342 PS_STRINGS->ps_nargvstr = 1;
11343 PS_STRINGS->ps_argvstr = "foo";
11344   ;
11345   return 0;
11346 }
11347 _ACEOF
11348 rm -f conftest.$ac_objext conftest$ac_exeext
11349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11350   (eval $ac_link) 2>&5
11351   ac_status=$?
11352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353   (exit $ac_status); } &&
11354          { ac_try='test -s conftest$ac_exeext'
11355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11356   (eval $ac_try) 2>&5
11357   ac_status=$?
11358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359   (exit $ac_status); }; }; then
11360   pgac_cv_var_PS_STRINGS=yes
11361 else
11362   echo "$as_me: failed program was:" >&5
11363 cat conftest.$ac_ext >&5
11364 pgac_cv_var_PS_STRINGS=no
11365 fi
11366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11367 fi
11368 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11369 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11370 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11371
11372 cat >>confdefs.h <<\_ACEOF
11373 #define HAVE_PS_STRINGS
11374 _ACEOF
11375
11376 fi
11377
11378
11379 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11380 # is missing.  Yes, there are machines that have only one.  We may
11381 # also decide to use snprintf.c if snprintf() is present but does not
11382 # have working "long long int" support -- see below.
11383
11384 pgac_need_repl_snprintf=no
11385
11386 for ac_func in snprintf
11387 do
11388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11389 echo "$as_me:$LINENO: checking for $ac_func" >&5
11390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11391 if eval "test \"\${$as_ac_var+set}\" = set"; then
11392   echo $ECHO_N "(cached) $ECHO_C" >&6
11393 else
11394   cat >conftest.$ac_ext <<_ACEOF
11395 #line $LINENO "configure"
11396 #include "confdefs.h"
11397 /* System header to define __stub macros and hopefully few prototypes,
11398     which can conflict with char $ac_func (); below.  */
11399 #include <assert.h>
11400 /* Override any gcc2 internal prototype to avoid an error.  */
11401 #ifdef __cplusplus
11402 extern "C"
11403 #endif
11404 /* We use char because int might match the return type of a gcc2
11405    builtin and then its argument prototype would still apply.  */
11406 char $ac_func ();
11407 char (*f) ();
11408
11409 #ifdef F77_DUMMY_MAIN
11410 #  ifdef __cplusplus
11411      extern "C"
11412 #  endif
11413    int F77_DUMMY_MAIN() { return 1; }
11414 #endif
11415 int
11416 main ()
11417 {
11418 /* The GNU C library defines this for functions which it implements
11419     to always fail with ENOSYS.  Some functions are actually named
11420     something starting with __ and the normal name is an alias.  */
11421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11422 choke me
11423 #else
11424 f = $ac_func;
11425 #endif
11426
11427   ;
11428   return 0;
11429 }
11430 _ACEOF
11431 rm -f conftest.$ac_objext conftest$ac_exeext
11432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11433   (eval $ac_link) 2>&5
11434   ac_status=$?
11435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436   (exit $ac_status); } &&
11437          { ac_try='test -s conftest$ac_exeext'
11438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11439   (eval $ac_try) 2>&5
11440   ac_status=$?
11441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442   (exit $ac_status); }; }; then
11443   eval "$as_ac_var=yes"
11444 else
11445   echo "$as_me: failed program was:" >&5
11446 cat conftest.$ac_ext >&5
11447 eval "$as_ac_var=no"
11448 fi
11449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11450 fi
11451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11453 if test `eval echo '${'$as_ac_var'}'` = yes; then
11454   cat >>confdefs.h <<_ACEOF
11455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11456 _ACEOF
11457
11458 else
11459   pgac_need_repl_snprintf=yes
11460 fi
11461 done
11462
11463
11464 for ac_func in vsnprintf
11465 do
11466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11467 echo "$as_me:$LINENO: checking for $ac_func" >&5
11468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11469 if eval "test \"\${$as_ac_var+set}\" = set"; then
11470   echo $ECHO_N "(cached) $ECHO_C" >&6
11471 else
11472   cat >conftest.$ac_ext <<_ACEOF
11473 #line $LINENO "configure"
11474 #include "confdefs.h"
11475 /* System header to define __stub macros and hopefully few prototypes,
11476     which can conflict with char $ac_func (); below.  */
11477 #include <assert.h>
11478 /* Override any gcc2 internal prototype to avoid an error.  */
11479 #ifdef __cplusplus
11480 extern "C"
11481 #endif
11482 /* We use char because int might match the return type of a gcc2
11483    builtin and then its argument prototype would still apply.  */
11484 char $ac_func ();
11485 char (*f) ();
11486
11487 #ifdef F77_DUMMY_MAIN
11488 #  ifdef __cplusplus
11489      extern "C"
11490 #  endif
11491    int F77_DUMMY_MAIN() { return 1; }
11492 #endif
11493 int
11494 main ()
11495 {
11496 /* The GNU C library defines this for functions which it implements
11497     to always fail with ENOSYS.  Some functions are actually named
11498     something starting with __ and the normal name is an alias.  */
11499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11500 choke me
11501 #else
11502 f = $ac_func;
11503 #endif
11504
11505   ;
11506   return 0;
11507 }
11508 _ACEOF
11509 rm -f conftest.$ac_objext conftest$ac_exeext
11510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11511   (eval $ac_link) 2>&5
11512   ac_status=$?
11513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514   (exit $ac_status); } &&
11515          { ac_try='test -s conftest$ac_exeext'
11516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11517   (eval $ac_try) 2>&5
11518   ac_status=$?
11519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520   (exit $ac_status); }; }; then
11521   eval "$as_ac_var=yes"
11522 else
11523   echo "$as_me: failed program was:" >&5
11524 cat conftest.$ac_ext >&5
11525 eval "$as_ac_var=no"
11526 fi
11527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11528 fi
11529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11531 if test `eval echo '${'$as_ac_var'}'` = yes; then
11532   cat >>confdefs.h <<_ACEOF
11533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11534 _ACEOF
11535
11536 else
11537   pgac_need_repl_snprintf=yes
11538 fi
11539 done
11540
11541
11542
11543 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11544 # include/c.h will provide declarations.  Note this is a separate test
11545 # from whether the functions exist in the C library --- there are
11546 # systems that have the functions but don't bother to declare them :-(
11547
11548 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11549 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11550 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11551   echo $ECHO_N "(cached) $ECHO_C" >&6
11552 else
11553   cat >conftest.$ac_ext <<_ACEOF
11554 #line $LINENO "configure"
11555 #include "confdefs.h"
11556 $ac_includes_default
11557 #ifdef F77_DUMMY_MAIN
11558 #  ifdef __cplusplus
11559      extern "C"
11560 #  endif
11561    int F77_DUMMY_MAIN() { return 1; }
11562 #endif
11563 int
11564 main ()
11565 {
11566 #ifndef snprintf
11567   char *p = (char *) snprintf;
11568 #endif
11569
11570   ;
11571   return 0;
11572 }
11573 _ACEOF
11574 rm -f conftest.$ac_objext
11575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11576   (eval $ac_compile) 2>&5
11577   ac_status=$?
11578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579   (exit $ac_status); } &&
11580          { ac_try='test -s conftest.$ac_objext'
11581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11582   (eval $ac_try) 2>&5
11583   ac_status=$?
11584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585   (exit $ac_status); }; }; then
11586   ac_cv_have_decl_snprintf=yes
11587 else
11588   echo "$as_me: failed program was:" >&5
11589 cat conftest.$ac_ext >&5
11590 ac_cv_have_decl_snprintf=no
11591 fi
11592 rm -f conftest.$ac_objext conftest.$ac_ext
11593 fi
11594 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11595 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11596 if test $ac_cv_have_decl_snprintf = yes; then
11597
11598 cat >>confdefs.h <<_ACEOF
11599 #define HAVE_DECL_SNPRINTF 1
11600 _ACEOF
11601
11602
11603 else
11604   cat >>confdefs.h <<_ACEOF
11605 #define HAVE_DECL_SNPRINTF 0
11606 _ACEOF
11607
11608
11609 fi
11610 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11611 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11612 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11613   echo $ECHO_N "(cached) $ECHO_C" >&6
11614 else
11615   cat >conftest.$ac_ext <<_ACEOF
11616 #line $LINENO "configure"
11617 #include "confdefs.h"
11618 $ac_includes_default
11619 #ifdef F77_DUMMY_MAIN
11620 #  ifdef __cplusplus
11621      extern "C"
11622 #  endif
11623    int F77_DUMMY_MAIN() { return 1; }
11624 #endif
11625 int
11626 main ()
11627 {
11628 #ifndef vsnprintf
11629   char *p = (char *) vsnprintf;
11630 #endif
11631
11632   ;
11633   return 0;
11634 }
11635 _ACEOF
11636 rm -f conftest.$ac_objext
11637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11638   (eval $ac_compile) 2>&5
11639   ac_status=$?
11640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641   (exit $ac_status); } &&
11642          { ac_try='test -s conftest.$ac_objext'
11643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644   (eval $ac_try) 2>&5
11645   ac_status=$?
11646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647   (exit $ac_status); }; }; then
11648   ac_cv_have_decl_vsnprintf=yes
11649 else
11650   echo "$as_me: failed program was:" >&5
11651 cat conftest.$ac_ext >&5
11652 ac_cv_have_decl_vsnprintf=no
11653 fi
11654 rm -f conftest.$ac_objext conftest.$ac_ext
11655 fi
11656 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11657 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11658 if test $ac_cv_have_decl_vsnprintf = yes; then
11659
11660 cat >>confdefs.h <<_ACEOF
11661 #define HAVE_DECL_VSNPRINTF 1
11662 _ACEOF
11663
11664
11665 else
11666   cat >>confdefs.h <<_ACEOF
11667 #define HAVE_DECL_VSNPRINTF 0
11668 _ACEOF
11669
11670
11671 fi
11672
11673
11674
11675
11676 # do this one the hard way in case isinf() is a macro
11677 echo "$as_me:$LINENO: checking for isinf" >&5
11678 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11679 if test "${ac_cv_func_isinf+set}" = set; then
11680   echo $ECHO_N "(cached) $ECHO_C" >&6
11681 else
11682   cat >conftest.$ac_ext <<_ACEOF
11683 #line $LINENO "configure"
11684 #include "confdefs.h"
11685 #include <math.h>
11686
11687 #ifdef F77_DUMMY_MAIN
11688 #  ifdef __cplusplus
11689      extern "C"
11690 #  endif
11691    int F77_DUMMY_MAIN() { return 1; }
11692 #endif
11693 int
11694 main ()
11695 {
11696 double x = 0.0; int res = isinf(x);
11697   ;
11698   return 0;
11699 }
11700 _ACEOF
11701 rm -f conftest.$ac_objext conftest$ac_exeext
11702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11703   (eval $ac_link) 2>&5
11704   ac_status=$?
11705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706   (exit $ac_status); } &&
11707          { ac_try='test -s conftest$ac_exeext'
11708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11709   (eval $ac_try) 2>&5
11710   ac_status=$?
11711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712   (exit $ac_status); }; }; then
11713   ac_cv_func_isinf=yes
11714 else
11715   echo "$as_me: failed program was:" >&5
11716 cat conftest.$ac_ext >&5
11717 ac_cv_func_isinf=no
11718 fi
11719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11720 fi
11721 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11722 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11723
11724 if test $ac_cv_func_isinf = yes ; then
11725
11726 cat >>confdefs.h <<\_ACEOF
11727 #define HAVE_ISINF 1
11728 _ACEOF
11729
11730 else
11731   LIBOBJS="$LIBOBJS isinf.$ac_objext"
11732   # Look for a way to implement a substitute for isinf()
11733
11734
11735
11736
11737 for ac_func in fpclass fp_class fp_class_d class
11738 do
11739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11740 echo "$as_me:$LINENO: checking for $ac_func" >&5
11741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11742 if eval "test \"\${$as_ac_var+set}\" = set"; then
11743   echo $ECHO_N "(cached) $ECHO_C" >&6
11744 else
11745   cat >conftest.$ac_ext <<_ACEOF
11746 #line $LINENO "configure"
11747 #include "confdefs.h"
11748 /* System header to define __stub macros and hopefully few prototypes,
11749     which can conflict with char $ac_func (); below.  */
11750 #include <assert.h>
11751 /* Override any gcc2 internal prototype to avoid an error.  */
11752 #ifdef __cplusplus
11753 extern "C"
11754 #endif
11755 /* We use char because int might match the return type of a gcc2
11756    builtin and then its argument prototype would still apply.  */
11757 char $ac_func ();
11758 char (*f) ();
11759
11760 #ifdef F77_DUMMY_MAIN
11761 #  ifdef __cplusplus
11762      extern "C"
11763 #  endif
11764    int F77_DUMMY_MAIN() { return 1; }
11765 #endif
11766 int
11767 main ()
11768 {
11769 /* The GNU C library defines this for functions which it implements
11770     to always fail with ENOSYS.  Some functions are actually named
11771     something starting with __ and the normal name is an alias.  */
11772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11773 choke me
11774 #else
11775 f = $ac_func;
11776 #endif
11777
11778   ;
11779   return 0;
11780 }
11781 _ACEOF
11782 rm -f conftest.$ac_objext conftest$ac_exeext
11783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11784   (eval $ac_link) 2>&5
11785   ac_status=$?
11786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787   (exit $ac_status); } &&
11788          { ac_try='test -s conftest$ac_exeext'
11789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790   (eval $ac_try) 2>&5
11791   ac_status=$?
11792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793   (exit $ac_status); }; }; then
11794   eval "$as_ac_var=yes"
11795 else
11796   echo "$as_me: failed program was:" >&5
11797 cat conftest.$ac_ext >&5
11798 eval "$as_ac_var=no"
11799 fi
11800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11801 fi
11802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11803 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11804 if test `eval echo '${'$as_ac_var'}'` = yes; then
11805   cat >>confdefs.h <<_ACEOF
11806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11807 _ACEOF
11808  break
11809 fi
11810 done
11811
11812 fi
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strcasecmp strdup strerror strtol strtoul
11828 do
11829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11830 echo "$as_me:$LINENO: checking for $ac_func" >&5
11831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11832 if eval "test \"\${$as_ac_var+set}\" = set"; then
11833   echo $ECHO_N "(cached) $ECHO_C" >&6
11834 else
11835   cat >conftest.$ac_ext <<_ACEOF
11836 #line $LINENO "configure"
11837 #include "confdefs.h"
11838 /* System header to define __stub macros and hopefully few prototypes,
11839     which can conflict with char $ac_func (); below.  */
11840 #include <assert.h>
11841 /* Override any gcc2 internal prototype to avoid an error.  */
11842 #ifdef __cplusplus
11843 extern "C"
11844 #endif
11845 /* We use char because int might match the return type of a gcc2
11846    builtin and then its argument prototype would still apply.  */
11847 char $ac_func ();
11848 char (*f) ();
11849
11850 #ifdef F77_DUMMY_MAIN
11851 #  ifdef __cplusplus
11852      extern "C"
11853 #  endif
11854    int F77_DUMMY_MAIN() { return 1; }
11855 #endif
11856 int
11857 main ()
11858 {
11859 /* The GNU C library defines this for functions which it implements
11860     to always fail with ENOSYS.  Some functions are actually named
11861     something starting with __ and the normal name is an alias.  */
11862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11863 choke me
11864 #else
11865 f = $ac_func;
11866 #endif
11867
11868   ;
11869   return 0;
11870 }
11871 _ACEOF
11872 rm -f conftest.$ac_objext conftest$ac_exeext
11873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11874   (eval $ac_link) 2>&5
11875   ac_status=$?
11876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877   (exit $ac_status); } &&
11878          { ac_try='test -s conftest$ac_exeext'
11879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880   (eval $ac_try) 2>&5
11881   ac_status=$?
11882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883   (exit $ac_status); }; }; then
11884   eval "$as_ac_var=yes"
11885 else
11886   echo "$as_me: failed program was:" >&5
11887 cat conftest.$ac_ext >&5
11888 eval "$as_ac_var=no"
11889 fi
11890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11891 fi
11892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11894 if test `eval echo '${'$as_ac_var'}'` = yes; then
11895   cat >>confdefs.h <<_ACEOF
11896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11897 _ACEOF
11898
11899 else
11900   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11901 fi
11902 done
11903
11904
11905
11906 # system's version of getaddrinfo(), if any, may be used only if we found
11907 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
11908 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11909
11910 for ac_func in getaddrinfo
11911 do
11912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11913 echo "$as_me:$LINENO: checking for $ac_func" >&5
11914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11915 if eval "test \"\${$as_ac_var+set}\" = set"; then
11916   echo $ECHO_N "(cached) $ECHO_C" >&6
11917 else
11918   cat >conftest.$ac_ext <<_ACEOF
11919 #line $LINENO "configure"
11920 #include "confdefs.h"
11921 /* System header to define __stub macros and hopefully few prototypes,
11922     which can conflict with char $ac_func (); below.  */
11923 #include <assert.h>
11924 /* Override any gcc2 internal prototype to avoid an error.  */
11925 #ifdef __cplusplus
11926 extern "C"
11927 #endif
11928 /* We use char because int might match the return type of a gcc2
11929    builtin and then its argument prototype would still apply.  */
11930 char $ac_func ();
11931 char (*f) ();
11932
11933 #ifdef F77_DUMMY_MAIN
11934 #  ifdef __cplusplus
11935      extern "C"
11936 #  endif
11937    int F77_DUMMY_MAIN() { return 1; }
11938 #endif
11939 int
11940 main ()
11941 {
11942 /* The GNU C library defines this for functions which it implements
11943     to always fail with ENOSYS.  Some functions are actually named
11944     something starting with __ and the normal name is an alias.  */
11945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11946 choke me
11947 #else
11948 f = $ac_func;
11949 #endif
11950
11951   ;
11952   return 0;
11953 }
11954 _ACEOF
11955 rm -f conftest.$ac_objext conftest$ac_exeext
11956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11957   (eval $ac_link) 2>&5
11958   ac_status=$?
11959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960   (exit $ac_status); } &&
11961          { ac_try='test -s conftest$ac_exeext'
11962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11963   (eval $ac_try) 2>&5
11964   ac_status=$?
11965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966   (exit $ac_status); }; }; then
11967   eval "$as_ac_var=yes"
11968 else
11969   echo "$as_me: failed program was:" >&5
11970 cat conftest.$ac_ext >&5
11971 eval "$as_ac_var=no"
11972 fi
11973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11974 fi
11975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11976 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11977 if test `eval echo '${'$as_ac_var'}'` = yes; then
11978   cat >>confdefs.h <<_ACEOF
11979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11980 _ACEOF
11981
11982 else
11983   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11984 fi
11985 done
11986
11987
11988 else
11989   LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11990 fi
11991
11992 # similarly, use system's getopt_long() only if system provides struct option.
11993 if test x"$ac_cv_type_struct_option" = xyes ; then
11994
11995 for ac_func in getopt_long
11996 do
11997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11998 echo "$as_me:$LINENO: checking for $ac_func" >&5
11999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12000 if eval "test \"\${$as_ac_var+set}\" = set"; then
12001   echo $ECHO_N "(cached) $ECHO_C" >&6
12002 else
12003   cat >conftest.$ac_ext <<_ACEOF
12004 #line $LINENO "configure"
12005 #include "confdefs.h"
12006 /* System header to define __stub macros and hopefully few prototypes,
12007     which can conflict with char $ac_func (); below.  */
12008 #include <assert.h>
12009 /* Override any gcc2 internal prototype to avoid an error.  */
12010 #ifdef __cplusplus
12011 extern "C"
12012 #endif
12013 /* We use char because int might match the return type of a gcc2
12014    builtin and then its argument prototype would still apply.  */
12015 char $ac_func ();
12016 char (*f) ();
12017
12018 #ifdef F77_DUMMY_MAIN
12019 #  ifdef __cplusplus
12020      extern "C"
12021 #  endif
12022    int F77_DUMMY_MAIN() { return 1; }
12023 #endif
12024 int
12025 main ()
12026 {
12027 /* The GNU C library defines this for functions which it implements
12028     to always fail with ENOSYS.  Some functions are actually named
12029     something starting with __ and the normal name is an alias.  */
12030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12031 choke me
12032 #else
12033 f = $ac_func;
12034 #endif
12035
12036   ;
12037   return 0;
12038 }
12039 _ACEOF
12040 rm -f conftest.$ac_objext conftest$ac_exeext
12041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12042   (eval $ac_link) 2>&5
12043   ac_status=$?
12044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045   (exit $ac_status); } &&
12046          { ac_try='test -s conftest$ac_exeext'
12047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12048   (eval $ac_try) 2>&5
12049   ac_status=$?
12050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051   (exit $ac_status); }; }; then
12052   eval "$as_ac_var=yes"
12053 else
12054   echo "$as_me: failed program was:" >&5
12055 cat conftest.$ac_ext >&5
12056 eval "$as_ac_var=no"
12057 fi
12058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12059 fi
12060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12062 if test `eval echo '${'$as_ac_var'}'` = yes; then
12063   cat >>confdefs.h <<_ACEOF
12064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12065 _ACEOF
12066
12067 else
12068   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12069 fi
12070 done
12071
12072
12073 else
12074   LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12075 fi
12076
12077 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
12078 # We override the previous test that said fseeko/ftello didn't exist
12079 # OS tests are also done in include/c.h and port/fseeko.c
12080 case $host_os in bsdi*|netbsd*)
12081 ac_cv_func_fseeko=yes
12082 esac
12083
12084 # Solaris has a very slow qsort in certain cases, so we replace it.
12085 case $host_os in solaris*)
12086 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
12087 esac
12088
12089 # Win32 can't to rename or unlink on an open file
12090 case $host_os in mingw*)
12091 LIBOBJS="$LIBOBJS dirmod.$ac_objext"
12092 LIBOBJS="$LIBOBJS copydir.$ac_objext"
12093 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
12094 esac
12095
12096 if test "$with_readline" = yes; then
12097   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12098 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12099 cat >conftest.$ac_ext <<_ACEOF
12100 #line $LINENO "configure"
12101 #include "confdefs.h"
12102 #include <stdio.h>
12103 #ifdef HAVE_READLINE_READLINE_H
12104 # include <readline/readline.h>
12105 #elif defined(HAVE_READLINE_H)
12106 # include <readline.h>
12107 #endif
12108
12109 #ifdef F77_DUMMY_MAIN
12110 #  ifdef __cplusplus
12111      extern "C"
12112 #  endif
12113    int F77_DUMMY_MAIN() { return 1; }
12114 #endif
12115 int
12116 main ()
12117 {
12118 rl_completion_append_character = 'x';
12119   ;
12120   return 0;
12121 }
12122 _ACEOF
12123 rm -f conftest.$ac_objext conftest$ac_exeext
12124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12125   (eval $ac_link) 2>&5
12126   ac_status=$?
12127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128   (exit $ac_status); } &&
12129          { ac_try='test -s conftest$ac_exeext'
12130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12131   (eval $ac_try) 2>&5
12132   ac_status=$?
12133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134   (exit $ac_status); }; }; then
12135   echo "$as_me:$LINENO: result: yes" >&5
12136 echo "${ECHO_T}yes" >&6
12137
12138 cat >>confdefs.h <<\_ACEOF
12139 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12140 _ACEOF
12141
12142 else
12143   echo "$as_me: failed program was:" >&5
12144 cat conftest.$ac_ext >&5
12145 echo "$as_me:$LINENO: result: no" >&5
12146 echo "${ECHO_T}no" >&6
12147 fi
12148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12149
12150
12151 for ac_func in rl_completion_matches rl_filename_completion_function
12152 do
12153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12154 echo "$as_me:$LINENO: checking for $ac_func" >&5
12155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12156 if eval "test \"\${$as_ac_var+set}\" = set"; then
12157   echo $ECHO_N "(cached) $ECHO_C" >&6
12158 else
12159   cat >conftest.$ac_ext <<_ACEOF
12160 #line $LINENO "configure"
12161 #include "confdefs.h"
12162 /* System header to define __stub macros and hopefully few prototypes,
12163     which can conflict with char $ac_func (); below.  */
12164 #include <assert.h>
12165 /* Override any gcc2 internal prototype to avoid an error.  */
12166 #ifdef __cplusplus
12167 extern "C"
12168 #endif
12169 /* We use char because int might match the return type of a gcc2
12170    builtin and then its argument prototype would still apply.  */
12171 char $ac_func ();
12172 char (*f) ();
12173
12174 #ifdef F77_DUMMY_MAIN
12175 #  ifdef __cplusplus
12176      extern "C"
12177 #  endif
12178    int F77_DUMMY_MAIN() { return 1; }
12179 #endif
12180 int
12181 main ()
12182 {
12183 /* The GNU C library defines this for functions which it implements
12184     to always fail with ENOSYS.  Some functions are actually named
12185     something starting with __ and the normal name is an alias.  */
12186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12187 choke me
12188 #else
12189 f = $ac_func;
12190 #endif
12191
12192   ;
12193   return 0;
12194 }
12195 _ACEOF
12196 rm -f conftest.$ac_objext conftest$ac_exeext
12197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12198   (eval $ac_link) 2>&5
12199   ac_status=$?
12200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201   (exit $ac_status); } &&
12202          { ac_try='test -s conftest$ac_exeext'
12203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12204   (eval $ac_try) 2>&5
12205   ac_status=$?
12206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207   (exit $ac_status); }; }; then
12208   eval "$as_ac_var=yes"
12209 else
12210   echo "$as_me: failed program was:" >&5
12211 cat conftest.$ac_ext >&5
12212 eval "$as_ac_var=no"
12213 fi
12214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12215 fi
12216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12217 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12218 if test `eval echo '${'$as_ac_var'}'` = yes; then
12219   cat >>confdefs.h <<_ACEOF
12220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12221 _ACEOF
12222
12223 fi
12224 done
12225
12226
12227 for ac_func in replace_history_entry
12228 do
12229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12230 echo "$as_me:$LINENO: checking for $ac_func" >&5
12231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12232 if eval "test \"\${$as_ac_var+set}\" = set"; then
12233   echo $ECHO_N "(cached) $ECHO_C" >&6
12234 else
12235   cat >conftest.$ac_ext <<_ACEOF
12236 #line $LINENO "configure"
12237 #include "confdefs.h"
12238 /* System header to define __stub macros and hopefully few prototypes,
12239     which can conflict with char $ac_func (); below.  */
12240 #include <assert.h>
12241 /* Override any gcc2 internal prototype to avoid an error.  */
12242 #ifdef __cplusplus
12243 extern "C"
12244 #endif
12245 /* We use char because int might match the return type of a gcc2
12246    builtin and then its argument prototype would still apply.  */
12247 char $ac_func ();
12248 char (*f) ();
12249
12250 #ifdef F77_DUMMY_MAIN
12251 #  ifdef __cplusplus
12252      extern "C"
12253 #  endif
12254    int F77_DUMMY_MAIN() { return 1; }
12255 #endif
12256 int
12257 main ()
12258 {
12259 /* The GNU C library defines this for functions which it implements
12260     to always fail with ENOSYS.  Some functions are actually named
12261     something starting with __ and the normal name is an alias.  */
12262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12263 choke me
12264 #else
12265 f = $ac_func;
12266 #endif
12267
12268   ;
12269   return 0;
12270 }
12271 _ACEOF
12272 rm -f conftest.$ac_objext conftest$ac_exeext
12273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12274   (eval $ac_link) 2>&5
12275   ac_status=$?
12276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277   (exit $ac_status); } &&
12278          { ac_try='test -s conftest$ac_exeext'
12279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280   (eval $ac_try) 2>&5
12281   ac_status=$?
12282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283   (exit $ac_status); }; }; then
12284   eval "$as_ac_var=yes"
12285 else
12286   echo "$as_me: failed program was:" >&5
12287 cat conftest.$ac_ext >&5
12288 eval "$as_ac_var=no"
12289 fi
12290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12291 fi
12292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12293 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12294 if test `eval echo '${'$as_ac_var'}'` = yes; then
12295   cat >>confdefs.h <<_ACEOF
12296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12297 _ACEOF
12298
12299 fi
12300 done
12301
12302 fi
12303
12304
12305 echo "$as_me:$LINENO: checking for finite" >&5
12306 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12307 cat >conftest.$ac_ext <<_ACEOF
12308 #line $LINENO "configure"
12309 #include "confdefs.h"
12310 #include <math.h>
12311 #ifdef F77_DUMMY_MAIN
12312 #  ifdef __cplusplus
12313      extern "C"
12314 #  endif
12315    int F77_DUMMY_MAIN() { return 1; }
12316 #endif
12317 int
12318 main ()
12319 {
12320 int dummy=finite(1.0);
12321   ;
12322   return 0;
12323 }
12324 _ACEOF
12325 rm -f conftest.$ac_objext conftest$ac_exeext
12326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12327   (eval $ac_link) 2>&5
12328   ac_status=$?
12329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330   (exit $ac_status); } &&
12331          { ac_try='test -s conftest$ac_exeext'
12332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333   (eval $ac_try) 2>&5
12334   ac_status=$?
12335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336   (exit $ac_status); }; }; then
12337
12338 cat >>confdefs.h <<\_ACEOF
12339 #define HAVE_FINITE 1
12340 _ACEOF
12341
12342 echo "$as_me:$LINENO: result: yes" >&5
12343 echo "${ECHO_T}yes" >&6
12344 else
12345   echo "$as_me: failed program was:" >&5
12346 cat conftest.$ac_ext >&5
12347 echo "$as_me:$LINENO: result: no" >&5
12348 echo "${ECHO_T}no" >&6
12349 fi
12350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12351
12352 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12353 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12354 cat >conftest.$ac_ext <<_ACEOF
12355 #line $LINENO "configure"
12356 #include "confdefs.h"
12357 #include <setjmp.h>
12358 #ifdef F77_DUMMY_MAIN
12359 #  ifdef __cplusplus
12360      extern "C"
12361 #  endif
12362    int F77_DUMMY_MAIN() { return 1; }
12363 #endif
12364 int
12365 main ()
12366 {
12367 sigjmp_buf x; sigsetjmp(x, 1);
12368   ;
12369   return 0;
12370 }
12371 _ACEOF
12372 rm -f conftest.$ac_objext conftest$ac_exeext
12373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12374   (eval $ac_link) 2>&5
12375   ac_status=$?
12376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377   (exit $ac_status); } &&
12378          { ac_try='test -s conftest$ac_exeext'
12379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380   (eval $ac_try) 2>&5
12381   ac_status=$?
12382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383   (exit $ac_status); }; }; then
12384
12385 cat >>confdefs.h <<\_ACEOF
12386 #define HAVE_SIGSETJMP 1
12387 _ACEOF
12388
12389 echo "$as_me:$LINENO: result: yes" >&5
12390 echo "${ECHO_T}yes" >&6
12391 else
12392   echo "$as_me: failed program was:" >&5
12393 cat conftest.$ac_ext >&5
12394 echo "$as_me:$LINENO: result: no" >&5
12395 echo "${ECHO_T}no" >&6
12396 fi
12397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12398
12399 echo "$as_me:$LINENO: checking for syslog" >&5
12400 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12401 if test "${ac_cv_func_syslog+set}" = set; then
12402   echo $ECHO_N "(cached) $ECHO_C" >&6
12403 else
12404   cat >conftest.$ac_ext <<_ACEOF
12405 #line $LINENO "configure"
12406 #include "confdefs.h"
12407 /* System header to define __stub macros and hopefully few prototypes,
12408     which can conflict with char syslog (); below.  */
12409 #include <assert.h>
12410 /* Override any gcc2 internal prototype to avoid an error.  */
12411 #ifdef __cplusplus
12412 extern "C"
12413 #endif
12414 /* We use char because int might match the return type of a gcc2
12415    builtin and then its argument prototype would still apply.  */
12416 char syslog ();
12417 char (*f) ();
12418
12419 #ifdef F77_DUMMY_MAIN
12420 #  ifdef __cplusplus
12421      extern "C"
12422 #  endif
12423    int F77_DUMMY_MAIN() { return 1; }
12424 #endif
12425 int
12426 main ()
12427 {
12428 /* The GNU C library defines this for functions which it implements
12429     to always fail with ENOSYS.  Some functions are actually named
12430     something starting with __ and the normal name is an alias.  */
12431 #if defined (__stub_syslog) || defined (__stub___syslog)
12432 choke me
12433 #else
12434 f = syslog;
12435 #endif
12436
12437   ;
12438   return 0;
12439 }
12440 _ACEOF
12441 rm -f conftest.$ac_objext conftest$ac_exeext
12442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12443   (eval $ac_link) 2>&5
12444   ac_status=$?
12445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446   (exit $ac_status); } &&
12447          { ac_try='test -s conftest$ac_exeext'
12448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449   (eval $ac_try) 2>&5
12450   ac_status=$?
12451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452   (exit $ac_status); }; }; then
12453   ac_cv_func_syslog=yes
12454 else
12455   echo "$as_me: failed program was:" >&5
12456 cat conftest.$ac_ext >&5
12457 ac_cv_func_syslog=no
12458 fi
12459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12460 fi
12461 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12462 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12463 if test $ac_cv_func_syslog = yes; then
12464   if test "${ac_cv_header_syslog_h+set}" = set; then
12465   echo "$as_me:$LINENO: checking for syslog.h" >&5
12466 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12467 if test "${ac_cv_header_syslog_h+set}" = set; then
12468   echo $ECHO_N "(cached) $ECHO_C" >&6
12469 fi
12470 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12471 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12472 else
12473   # Is the header compilable?
12474 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12475 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12476 cat >conftest.$ac_ext <<_ACEOF
12477 #line $LINENO "configure"
12478 #include "confdefs.h"
12479 $ac_includes_default
12480 #include <syslog.h>
12481 _ACEOF
12482 rm -f conftest.$ac_objext
12483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12484   (eval $ac_compile) 2>&5
12485   ac_status=$?
12486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487   (exit $ac_status); } &&
12488          { ac_try='test -s conftest.$ac_objext'
12489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490   (eval $ac_try) 2>&5
12491   ac_status=$?
12492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493   (exit $ac_status); }; }; then
12494   ac_header_compiler=yes
12495 else
12496   echo "$as_me: failed program was:" >&5
12497 cat conftest.$ac_ext >&5
12498 ac_header_compiler=no
12499 fi
12500 rm -f conftest.$ac_objext conftest.$ac_ext
12501 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12502 echo "${ECHO_T}$ac_header_compiler" >&6
12503
12504 # Is the header present?
12505 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12506 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12507 cat >conftest.$ac_ext <<_ACEOF
12508 #line $LINENO "configure"
12509 #include "confdefs.h"
12510 #include <syslog.h>
12511 _ACEOF
12512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12513   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12514   ac_status=$?
12515   egrep -v '^ *\+' conftest.er1 >conftest.err
12516   rm -f conftest.er1
12517   cat conftest.err >&5
12518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519   (exit $ac_status); } >/dev/null; then
12520   if test -s conftest.err; then
12521     ac_cpp_err=$ac_c_preproc_warn_flag
12522   else
12523     ac_cpp_err=
12524   fi
12525 else
12526   ac_cpp_err=yes
12527 fi
12528 if test -z "$ac_cpp_err"; then
12529   ac_header_preproc=yes
12530 else
12531   echo "$as_me: failed program was:" >&5
12532   cat conftest.$ac_ext >&5
12533   ac_header_preproc=no
12534 fi
12535 rm -f conftest.err conftest.$ac_ext
12536 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12537 echo "${ECHO_T}$ac_header_preproc" >&6
12538
12539 # So?  What about this header?
12540 case $ac_header_compiler:$ac_header_preproc in
12541   yes:no )
12542     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12543 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12544     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12545 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12546   no:yes )
12547     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12548 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12549     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12550 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12551     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12552 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12553 esac
12554 echo "$as_me:$LINENO: checking for syslog.h" >&5
12555 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12556 if test "${ac_cv_header_syslog_h+set}" = set; then
12557   echo $ECHO_N "(cached) $ECHO_C" >&6
12558 else
12559   ac_cv_header_syslog_h=$ac_header_preproc
12560 fi
12561 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12562 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12563
12564 fi
12565 if test $ac_cv_header_syslog_h = yes; then
12566
12567 cat >>confdefs.h <<\_ACEOF
12568 #define HAVE_SYSLOG 1
12569 _ACEOF
12570
12571 fi
12572
12573
12574 fi
12575
12576
12577 echo "$as_me:$LINENO: checking for optreset" >&5
12578 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12579 if test "${pgac_cv_var_int_optreset+set}" = set; then
12580   echo $ECHO_N "(cached) $ECHO_C" >&6
12581 else
12582   cat >conftest.$ac_ext <<_ACEOF
12583 #line $LINENO "configure"
12584 #include "confdefs.h"
12585 #include <unistd.h>
12586 #ifdef F77_DUMMY_MAIN
12587 #  ifdef __cplusplus
12588      extern "C"
12589 #  endif
12590    int F77_DUMMY_MAIN() { return 1; }
12591 #endif
12592 int
12593 main ()
12594 {
12595 extern int optreset; optreset = 1;
12596   ;
12597   return 0;
12598 }
12599 _ACEOF
12600 rm -f conftest.$ac_objext conftest$ac_exeext
12601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12602   (eval $ac_link) 2>&5
12603   ac_status=$?
12604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605   (exit $ac_status); } &&
12606          { ac_try='test -s conftest$ac_exeext'
12607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12608   (eval $ac_try) 2>&5
12609   ac_status=$?
12610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611   (exit $ac_status); }; }; then
12612   pgac_cv_var_int_optreset=yes
12613 else
12614   echo "$as_me: failed program was:" >&5
12615 cat conftest.$ac_ext >&5
12616 pgac_cv_var_int_optreset=no
12617 fi
12618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12619 fi
12620 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12621 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12622 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12623
12624 cat >>confdefs.h <<\_ACEOF
12625 #define HAVE_INT_OPTRESET 1
12626 _ACEOF
12627
12628 fi
12629
12630
12631
12632 for ac_func in strtoll strtoq
12633 do
12634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12635 echo "$as_me:$LINENO: checking for $ac_func" >&5
12636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12637 if eval "test \"\${$as_ac_var+set}\" = set"; then
12638   echo $ECHO_N "(cached) $ECHO_C" >&6
12639 else
12640   cat >conftest.$ac_ext <<_ACEOF
12641 #line $LINENO "configure"
12642 #include "confdefs.h"
12643 /* System header to define __stub macros and hopefully few prototypes,
12644     which can conflict with char $ac_func (); below.  */
12645 #include <assert.h>
12646 /* Override any gcc2 internal prototype to avoid an error.  */
12647 #ifdef __cplusplus
12648 extern "C"
12649 #endif
12650 /* We use char because int might match the return type of a gcc2
12651    builtin and then its argument prototype would still apply.  */
12652 char $ac_func ();
12653 char (*f) ();
12654
12655 #ifdef F77_DUMMY_MAIN
12656 #  ifdef __cplusplus
12657      extern "C"
12658 #  endif
12659    int F77_DUMMY_MAIN() { return 1; }
12660 #endif
12661 int
12662 main ()
12663 {
12664 /* The GNU C library defines this for functions which it implements
12665     to always fail with ENOSYS.  Some functions are actually named
12666     something starting with __ and the normal name is an alias.  */
12667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12668 choke me
12669 #else
12670 f = $ac_func;
12671 #endif
12672
12673   ;
12674   return 0;
12675 }
12676 _ACEOF
12677 rm -f conftest.$ac_objext conftest$ac_exeext
12678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12679   (eval $ac_link) 2>&5
12680   ac_status=$?
12681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682   (exit $ac_status); } &&
12683          { ac_try='test -s conftest$ac_exeext'
12684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685   (eval $ac_try) 2>&5
12686   ac_status=$?
12687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688   (exit $ac_status); }; }; then
12689   eval "$as_ac_var=yes"
12690 else
12691   echo "$as_me: failed program was:" >&5
12692 cat conftest.$ac_ext >&5
12693 eval "$as_ac_var=no"
12694 fi
12695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12696 fi
12697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12699 if test `eval echo '${'$as_ac_var'}'` = yes; then
12700   cat >>confdefs.h <<_ACEOF
12701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12702 _ACEOF
12703  break
12704 fi
12705 done
12706
12707
12708
12709 for ac_func in strtoull strtouq
12710 do
12711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12712 echo "$as_me:$LINENO: checking for $ac_func" >&5
12713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12714 if eval "test \"\${$as_ac_var+set}\" = set"; then
12715   echo $ECHO_N "(cached) $ECHO_C" >&6
12716 else
12717   cat >conftest.$ac_ext <<_ACEOF
12718 #line $LINENO "configure"
12719 #include "confdefs.h"
12720 /* System header to define __stub macros and hopefully few prototypes,
12721     which can conflict with char $ac_func (); below.  */
12722 #include <assert.h>
12723 /* Override any gcc2 internal prototype to avoid an error.  */
12724 #ifdef __cplusplus
12725 extern "C"
12726 #endif
12727 /* We use char because int might match the return type of a gcc2
12728    builtin and then its argument prototype would still apply.  */
12729 char $ac_func ();
12730 char (*f) ();
12731
12732 #ifdef F77_DUMMY_MAIN
12733 #  ifdef __cplusplus
12734      extern "C"
12735 #  endif
12736    int F77_DUMMY_MAIN() { return 1; }
12737 #endif
12738 int
12739 main ()
12740 {
12741 /* The GNU C library defines this for functions which it implements
12742     to always fail with ENOSYS.  Some functions are actually named
12743     something starting with __ and the normal name is an alias.  */
12744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12745 choke me
12746 #else
12747 f = $ac_func;
12748 #endif
12749
12750   ;
12751   return 0;
12752 }
12753 _ACEOF
12754 rm -f conftest.$ac_objext conftest$ac_exeext
12755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12756   (eval $ac_link) 2>&5
12757   ac_status=$?
12758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759   (exit $ac_status); } &&
12760          { ac_try='test -s conftest$ac_exeext'
12761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762   (eval $ac_try) 2>&5
12763   ac_status=$?
12764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765   (exit $ac_status); }; }; then
12766   eval "$as_ac_var=yes"
12767 else
12768   echo "$as_me: failed program was:" >&5
12769 cat conftest.$ac_ext >&5
12770 eval "$as_ac_var=no"
12771 fi
12772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12773 fi
12774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12776 if test `eval echo '${'$as_ac_var'}'` = yes; then
12777   cat >>confdefs.h <<_ACEOF
12778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12779 _ACEOF
12780  break
12781 fi
12782 done
12783
12784
12785 # Check for one of atexit() or on_exit()
12786
12787 for ac_func in atexit
12788 do
12789 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12790 echo "$as_me:$LINENO: checking for $ac_func" >&5
12791 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12792 if eval "test \"\${$as_ac_var+set}\" = set"; then
12793   echo $ECHO_N "(cached) $ECHO_C" >&6
12794 else
12795   cat >conftest.$ac_ext <<_ACEOF
12796 #line $LINENO "configure"
12797 #include "confdefs.h"
12798 /* System header to define __stub macros and hopefully few prototypes,
12799     which can conflict with char $ac_func (); below.  */
12800 #include <assert.h>
12801 /* Override any gcc2 internal prototype to avoid an error.  */
12802 #ifdef __cplusplus
12803 extern "C"
12804 #endif
12805 /* We use char because int might match the return type of a gcc2
12806    builtin and then its argument prototype would still apply.  */
12807 char $ac_func ();
12808 char (*f) ();
12809
12810 #ifdef F77_DUMMY_MAIN
12811 #  ifdef __cplusplus
12812      extern "C"
12813 #  endif
12814    int F77_DUMMY_MAIN() { return 1; }
12815 #endif
12816 int
12817 main ()
12818 {
12819 /* The GNU C library defines this for functions which it implements
12820     to always fail with ENOSYS.  Some functions are actually named
12821     something starting with __ and the normal name is an alias.  */
12822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12823 choke me
12824 #else
12825 f = $ac_func;
12826 #endif
12827
12828   ;
12829   return 0;
12830 }
12831 _ACEOF
12832 rm -f conftest.$ac_objext conftest$ac_exeext
12833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12834   (eval $ac_link) 2>&5
12835   ac_status=$?
12836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837   (exit $ac_status); } &&
12838          { ac_try='test -s conftest$ac_exeext'
12839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840   (eval $ac_try) 2>&5
12841   ac_status=$?
12842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843   (exit $ac_status); }; }; then
12844   eval "$as_ac_var=yes"
12845 else
12846   echo "$as_me: failed program was:" >&5
12847 cat conftest.$ac_ext >&5
12848 eval "$as_ac_var=no"
12849 fi
12850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12851 fi
12852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12853 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12854 if test `eval echo '${'$as_ac_var'}'` = yes; then
12855   cat >>confdefs.h <<_ACEOF
12856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12857 _ACEOF
12858
12859 else
12860
12861 for ac_func in on_exit
12862 do
12863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12864 echo "$as_me:$LINENO: checking for $ac_func" >&5
12865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12866 if eval "test \"\${$as_ac_var+set}\" = set"; then
12867   echo $ECHO_N "(cached) $ECHO_C" >&6
12868 else
12869   cat >conftest.$ac_ext <<_ACEOF
12870 #line $LINENO "configure"
12871 #include "confdefs.h"
12872 /* System header to define __stub macros and hopefully few prototypes,
12873     which can conflict with char $ac_func (); below.  */
12874 #include <assert.h>
12875 /* Override any gcc2 internal prototype to avoid an error.  */
12876 #ifdef __cplusplus
12877 extern "C"
12878 #endif
12879 /* We use char because int might match the return type of a gcc2
12880    builtin and then its argument prototype would still apply.  */
12881 char $ac_func ();
12882 char (*f) ();
12883
12884 #ifdef F77_DUMMY_MAIN
12885 #  ifdef __cplusplus
12886      extern "C"
12887 #  endif
12888    int F77_DUMMY_MAIN() { return 1; }
12889 #endif
12890 int
12891 main ()
12892 {
12893 /* The GNU C library defines this for functions which it implements
12894     to always fail with ENOSYS.  Some functions are actually named
12895     something starting with __ and the normal name is an alias.  */
12896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12897 choke me
12898 #else
12899 f = $ac_func;
12900 #endif
12901
12902   ;
12903   return 0;
12904 }
12905 _ACEOF
12906 rm -f conftest.$ac_objext conftest$ac_exeext
12907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12908   (eval $ac_link) 2>&5
12909   ac_status=$?
12910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911   (exit $ac_status); } &&
12912          { ac_try='test -s conftest$ac_exeext'
12913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12914   (eval $ac_try) 2>&5
12915   ac_status=$?
12916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917   (exit $ac_status); }; }; then
12918   eval "$as_ac_var=yes"
12919 else
12920   echo "$as_me: failed program was:" >&5
12921 cat conftest.$ac_ext >&5
12922 eval "$as_ac_var=no"
12923 fi
12924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12925 fi
12926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12927 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12928 if test `eval echo '${'$as_ac_var'}'` = yes; then
12929   cat >>confdefs.h <<_ACEOF
12930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12931 _ACEOF
12932
12933 else
12934   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12935 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12936    { (exit 1); exit 1; }; }
12937 fi
12938 done
12939
12940 fi
12941 done
12942
12943
12944 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12945 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12946 if test "${ac_cv_sys_largefile_source+set}" = set; then
12947   echo $ECHO_N "(cached) $ECHO_C" >&6
12948 else
12949   while :; do
12950   ac_cv_sys_largefile_source=no
12951   cat >conftest.$ac_ext <<_ACEOF
12952 #line $LINENO "configure"
12953 #include "confdefs.h"
12954 #include <stdio.h>
12955 #ifdef F77_DUMMY_MAIN
12956 #  ifdef __cplusplus
12957      extern "C"
12958 #  endif
12959    int F77_DUMMY_MAIN() { return 1; }
12960 #endif
12961 int
12962 main ()
12963 {
12964 return !fseeko;
12965   ;
12966   return 0;
12967 }
12968 _ACEOF
12969 rm -f conftest.$ac_objext
12970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12971   (eval $ac_compile) 2>&5
12972   ac_status=$?
12973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974   (exit $ac_status); } &&
12975          { ac_try='test -s conftest.$ac_objext'
12976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977   (eval $ac_try) 2>&5
12978   ac_status=$?
12979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980   (exit $ac_status); }; }; then
12981   break
12982 else
12983   echo "$as_me: failed program was:" >&5
12984 cat conftest.$ac_ext >&5
12985 fi
12986 rm -f conftest.$ac_objext conftest.$ac_ext
12987   cat >conftest.$ac_ext <<_ACEOF
12988 #line $LINENO "configure"
12989 #include "confdefs.h"
12990 #define _LARGEFILE_SOURCE 1
12991 #include <stdio.h>
12992 #ifdef F77_DUMMY_MAIN
12993 #  ifdef __cplusplus
12994      extern "C"
12995 #  endif
12996    int F77_DUMMY_MAIN() { return 1; }
12997 #endif
12998 int
12999 main ()
13000 {
13001 return !fseeko;
13002   ;
13003   return 0;
13004 }
13005 _ACEOF
13006 rm -f conftest.$ac_objext
13007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13008   (eval $ac_compile) 2>&5
13009   ac_status=$?
13010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011   (exit $ac_status); } &&
13012          { ac_try='test -s conftest.$ac_objext'
13013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13014   (eval $ac_try) 2>&5
13015   ac_status=$?
13016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017   (exit $ac_status); }; }; then
13018   ac_cv_sys_largefile_source=1; break
13019 else
13020   echo "$as_me: failed program was:" >&5
13021 cat conftest.$ac_ext >&5
13022 fi
13023 rm -f conftest.$ac_objext conftest.$ac_ext
13024   break
13025 done
13026 fi
13027 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13028 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13029 if test "$ac_cv_sys_largefile_source" != no; then
13030
13031 cat >>confdefs.h <<_ACEOF
13032 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13033 _ACEOF
13034
13035 fi
13036 rm -f conftest*
13037
13038 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13039 # in glibc 2.1.3, but that breaks too many other things.
13040 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13041 echo "$as_me:$LINENO: checking for fseeko" >&5
13042 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13043 if test "${ac_cv_func_fseeko+set}" = set; then
13044   echo $ECHO_N "(cached) $ECHO_C" >&6
13045 else
13046   cat >conftest.$ac_ext <<_ACEOF
13047 #line $LINENO "configure"
13048 #include "confdefs.h"
13049 #include <stdio.h>
13050 #ifdef F77_DUMMY_MAIN
13051 #  ifdef __cplusplus
13052      extern "C"
13053 #  endif
13054    int F77_DUMMY_MAIN() { return 1; }
13055 #endif
13056 int
13057 main ()
13058 {
13059 return fseeko && fseeko (stdin, 0, 0);
13060   ;
13061   return 0;
13062 }
13063 _ACEOF
13064 rm -f conftest.$ac_objext conftest$ac_exeext
13065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13066   (eval $ac_link) 2>&5
13067   ac_status=$?
13068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069   (exit $ac_status); } &&
13070          { ac_try='test -s conftest$ac_exeext'
13071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072   (eval $ac_try) 2>&5
13073   ac_status=$?
13074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075   (exit $ac_status); }; }; then
13076   ac_cv_func_fseeko=yes
13077 else
13078   echo "$as_me: failed program was:" >&5
13079 cat conftest.$ac_ext >&5
13080 ac_cv_func_fseeko=no
13081 fi
13082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13083 fi
13084 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13085 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13086 if test $ac_cv_func_fseeko = yes; then
13087
13088 cat >>confdefs.h <<\_ACEOF
13089 #define HAVE_FSEEKO 1
13090 _ACEOF
13091
13092 fi
13093
13094
13095 #
13096 # Pthreads
13097 #
13098 # For each platform, we need to know about any special compile and link
13099 # libraries, and whether the normal C function names are thread-safe.
13100 # See the comment at the top of src/port/thread.c for more information.
13101 #
13102 if test "$enable_thread_safety" = yes; then
13103 if test "${ac_cv_header_pthread_h+set}" = set; then
13104   echo "$as_me:$LINENO: checking for pthread.h" >&5
13105 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13106 if test "${ac_cv_header_pthread_h+set}" = set; then
13107   echo $ECHO_N "(cached) $ECHO_C" >&6
13108 fi
13109 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13110 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13111 else
13112   # Is the header compilable?
13113 echo "$as_me:$LINENO: checking pthread.h usability" >&5
13114 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
13115 cat >conftest.$ac_ext <<_ACEOF
13116 #line $LINENO "configure"
13117 #include "confdefs.h"
13118 $ac_includes_default
13119 #include <pthread.h>
13120 _ACEOF
13121 rm -f conftest.$ac_objext
13122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13123   (eval $ac_compile) 2>&5
13124   ac_status=$?
13125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126   (exit $ac_status); } &&
13127          { ac_try='test -s conftest.$ac_objext'
13128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129   (eval $ac_try) 2>&5
13130   ac_status=$?
13131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132   (exit $ac_status); }; }; then
13133   ac_header_compiler=yes
13134 else
13135   echo "$as_me: failed program was:" >&5
13136 cat conftest.$ac_ext >&5
13137 ac_header_compiler=no
13138 fi
13139 rm -f conftest.$ac_objext conftest.$ac_ext
13140 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13141 echo "${ECHO_T}$ac_header_compiler" >&6
13142
13143 # Is the header present?
13144 echo "$as_me:$LINENO: checking pthread.h presence" >&5
13145 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
13146 cat >conftest.$ac_ext <<_ACEOF
13147 #line $LINENO "configure"
13148 #include "confdefs.h"
13149 #include <pthread.h>
13150 _ACEOF
13151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13152   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13153   ac_status=$?
13154   egrep -v '^ *\+' conftest.er1 >conftest.err
13155   rm -f conftest.er1
13156   cat conftest.err >&5
13157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158   (exit $ac_status); } >/dev/null; then
13159   if test -s conftest.err; then
13160     ac_cpp_err=$ac_c_preproc_warn_flag
13161   else
13162     ac_cpp_err=
13163   fi
13164 else
13165   ac_cpp_err=yes
13166 fi
13167 if test -z "$ac_cpp_err"; then
13168   ac_header_preproc=yes
13169 else
13170   echo "$as_me: failed program was:" >&5
13171   cat conftest.$ac_ext >&5
13172   ac_header_preproc=no
13173 fi
13174 rm -f conftest.err conftest.$ac_ext
13175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13176 echo "${ECHO_T}$ac_header_preproc" >&6
13177
13178 # So?  What about this header?
13179 case $ac_header_compiler:$ac_header_preproc in
13180   yes:no )
13181     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13182 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13183     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13184 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13185   no:yes )
13186     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13187 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13188     { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13189 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13190     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13191 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13192 esac
13193 echo "$as_me:$LINENO: checking for pthread.h" >&5
13194 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13195 if test "${ac_cv_header_pthread_h+set}" = set; then
13196   echo $ECHO_N "(cached) $ECHO_C" >&6
13197 else
13198   ac_cv_header_pthread_h=$ac_header_preproc
13199 fi
13200 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13201 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13202
13203 fi
13204 if test $ac_cv_header_pthread_h = yes; then
13205   :
13206 else
13207   { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safetys" >&5
13208 echo "$as_me: error: pthread.h not found, required for --enable-thread-safetys" >&2;}
13209    { (exit 1); exit 1; }; }
13210 fi
13211
13212
13213
13214 if test "$SUPPORTS_THREADS" != yes; then
13215 { { echo "$as_me:$LINENO: error:
13216 Cannot enable threads on your platform.
13217 Please report your platform threading info to the PostgreSQL mailing lists
13218 so it can be added to the next release.  Report all compile flags, link flags,
13219 functions, or libraries required for threading support.
13220 See the comment at the top of src/port/thread.c for more information.
13221 " >&5
13222 echo "$as_me: error:
13223 Cannot enable threads on your platform.
13224 Please report your platform threading info to the PostgreSQL mailing lists
13225 so it can be added to the next release.  Report all compile flags, link flags,
13226 functions, or libraries required for threading support.
13227 See the comment at the top of src/port/thread.c for more information.
13228 " >&2;}
13229    { (exit 1); exit 1; }; }
13230 fi
13231 else
13232 # do not use values from template file
13233 THREAD_CFLAGS=
13234 THREAD_LIBS=
13235 fi
13236
13237
13238
13239
13240 #
13241 # Check for re-entrant versions of certain functions
13242 #
13243 # Include special flags if threads are enabled _and_ if required for
13244 # threading on this platform.  Some platforms have *_r functions but
13245 # their natively named funcs are threadsafe, and should be used instead.
13246 #
13247 # One trick here is that if we don't call AC_CHECK_FUNCS, the
13248 # functions are marked "not found", which is perfect.
13249 #
13250 if test "$enable_thread_safety" = yes -a "$NEED_REENTRANT_FUNC_NAMES" = yes ; then
13251 _CFLAGS="$CFLAGS"
13252 _LIBS="$LIBS"
13253 CFLAGS="$CFLAGS $THREAD_CFLAGS"
13254 LIBS="$LIBS $THREAD_LIBS"
13255 echo "$as_me:$LINENO: checking for strerror_r" >&5
13256 echo $ECHO_N "checking for strerror_r... $ECHO_C" >&6
13257 if test "${ac_cv_func_strerror_r+set}" = set; then
13258   echo $ECHO_N "(cached) $ECHO_C" >&6
13259 else
13260   cat >conftest.$ac_ext <<_ACEOF
13261 #line $LINENO "configure"
13262 #include "confdefs.h"
13263 /* System header to define __stub macros and hopefully few prototypes,
13264     which can conflict with char strerror_r (); below.  */
13265 #include <assert.h>
13266 /* Override any gcc2 internal prototype to avoid an error.  */
13267 #ifdef __cplusplus
13268 extern "C"
13269 #endif
13270 /* We use char because int might match the return type of a gcc2
13271    builtin and then its argument prototype would still apply.  */
13272 char strerror_r ();
13273 char (*f) ();
13274
13275 #ifdef F77_DUMMY_MAIN
13276 #  ifdef __cplusplus
13277      extern "C"
13278 #  endif
13279    int F77_DUMMY_MAIN() { return 1; }
13280 #endif
13281 int
13282 main ()
13283 {
13284 /* The GNU C library defines this for functions which it implements
13285     to always fail with ENOSYS.  Some functions are actually named
13286     something starting with __ and the normal name is an alias.  */
13287 #if defined (__stub_strerror_r) || defined (__stub___strerror_r)
13288 choke me
13289 #else
13290 f = strerror_r;
13291 #endif
13292
13293   ;
13294   return 0;
13295 }
13296 _ACEOF
13297 rm -f conftest.$ac_objext conftest$ac_exeext
13298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13299   (eval $ac_link) 2>&5
13300   ac_status=$?
13301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302   (exit $ac_status); } &&
13303          { ac_try='test -s conftest$ac_exeext'
13304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13305   (eval $ac_try) 2>&5
13306   ac_status=$?
13307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308   (exit $ac_status); }; }; then
13309   ac_cv_func_strerror_r=yes
13310 else
13311   echo "$as_me: failed program was:" >&5
13312 cat conftest.$ac_ext >&5
13313 ac_cv_func_strerror_r=no
13314 fi
13315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13316 fi
13317 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r" >&5
13318 echo "${ECHO_T}$ac_cv_func_strerror_r" >&6
13319 if test $ac_cv_func_strerror_r = yes; then
13320   :
13321 else
13322   { { echo "$as_me:$LINENO: error: strerror_r not found, required on this platform for --enable-thread-safety" >&5
13323 echo "$as_me: error: strerror_r not found, required on this platform for --enable-thread-safety" >&2;}
13324    { (exit 1); exit 1; }; }
13325 fi
13326
13327 echo "$as_me:$LINENO: checking for getpwuid_r" >&5
13328 echo $ECHO_N "checking for getpwuid_r... $ECHO_C" >&6
13329 if test "${ac_cv_func_getpwuid_r+set}" = set; then
13330   echo $ECHO_N "(cached) $ECHO_C" >&6
13331 else
13332   cat >conftest.$ac_ext <<_ACEOF
13333 #line $LINENO "configure"
13334 #include "confdefs.h"
13335 /* System header to define __stub macros and hopefully few prototypes,
13336     which can conflict with char getpwuid_r (); below.  */
13337 #include <assert.h>
13338 /* Override any gcc2 internal prototype to avoid an error.  */
13339 #ifdef __cplusplus
13340 extern "C"
13341 #endif
13342 /* We use char because int might match the return type of a gcc2
13343    builtin and then its argument prototype would still apply.  */
13344 char getpwuid_r ();
13345 char (*f) ();
13346
13347 #ifdef F77_DUMMY_MAIN
13348 #  ifdef __cplusplus
13349      extern "C"
13350 #  endif
13351    int F77_DUMMY_MAIN() { return 1; }
13352 #endif
13353 int
13354 main ()
13355 {
13356 /* The GNU C library defines this for functions which it implements
13357     to always fail with ENOSYS.  Some functions are actually named
13358     something starting with __ and the normal name is an alias.  */
13359 #if defined (__stub_getpwuid_r) || defined (__stub___getpwuid_r)
13360 choke me
13361 #else
13362 f = getpwuid_r;
13363 #endif
13364
13365   ;
13366   return 0;
13367 }
13368 _ACEOF
13369 rm -f conftest.$ac_objext conftest$ac_exeext
13370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13371   (eval $ac_link) 2>&5
13372   ac_status=$?
13373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374   (exit $ac_status); } &&
13375          { ac_try='test -s conftest$ac_exeext'
13376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377   (eval $ac_try) 2>&5
13378   ac_status=$?
13379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380   (exit $ac_status); }; }; then
13381   ac_cv_func_getpwuid_r=yes
13382 else
13383   echo "$as_me: failed program was:" >&5
13384 cat conftest.$ac_ext >&5
13385 ac_cv_func_getpwuid_r=no
13386 fi
13387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13388 fi
13389 echo "$as_me:$LINENO: result: $ac_cv_func_getpwuid_r" >&5
13390 echo "${ECHO_T}$ac_cv_func_getpwuid_r" >&6
13391 if test $ac_cv_func_getpwuid_r = yes; then
13392   :
13393 else
13394   { { echo "$as_me:$LINENO: error: getpwuid_r not found, required on this platform for --enable-thread-safety" >&5
13395 echo "$as_me: error: getpwuid_r not found, required on this platform for --enable-thread-safety" >&2;}
13396    { (exit 1); exit 1; }; }
13397 fi
13398
13399 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
13400 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
13401 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
13402   echo $ECHO_N "(cached) $ECHO_C" >&6
13403 else
13404   cat >conftest.$ac_ext <<_ACEOF
13405 #line $LINENO "configure"
13406 #include "confdefs.h"
13407 /* System header to define __stub macros and hopefully few prototypes,
13408     which can conflict with char gethostbyname_r (); below.  */
13409 #include <assert.h>
13410 /* Override any gcc2 internal prototype to avoid an error.  */
13411 #ifdef __cplusplus
13412 extern "C"
13413 #endif
13414 /* We use char because int might match the return type of a gcc2
13415    builtin and then its argument prototype would still apply.  */
13416 char gethostbyname_r ();
13417 char (*f) ();
13418
13419 #ifdef F77_DUMMY_MAIN
13420 #  ifdef __cplusplus
13421      extern "C"
13422 #  endif
13423    int F77_DUMMY_MAIN() { return 1; }
13424 #endif
13425 int
13426 main ()
13427 {
13428 /* The GNU C library defines this for functions which it implements
13429     to always fail with ENOSYS.  Some functions are actually named
13430     something starting with __ and the normal name is an alias.  */
13431 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
13432 choke me
13433 #else
13434 f = gethostbyname_r;
13435 #endif
13436
13437   ;
13438   return 0;
13439 }
13440 _ACEOF
13441 rm -f conftest.$ac_objext conftest$ac_exeext
13442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13443   (eval $ac_link) 2>&5
13444   ac_status=$?
13445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446   (exit $ac_status); } &&
13447          { ac_try='test -s conftest$ac_exeext'
13448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449   (eval $ac_try) 2>&5
13450   ac_status=$?
13451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452   (exit $ac_status); }; }; then
13453   ac_cv_func_gethostbyname_r=yes
13454 else
13455   echo "$as_me: failed program was:" >&5
13456 cat conftest.$ac_ext >&5
13457 ac_cv_func_gethostbyname_r=no
13458 fi
13459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13460 fi
13461 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
13462 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
13463 if test $ac_cv_func_gethostbyname_r = yes; then
13464   :
13465 else
13466   { { echo "$as_me:$LINENO: error: gethostbyname_r not found, required on this platform for --enable-thread-safety" >&5
13467 echo "$as_me: error: gethostbyname_r not found, required on this platform for --enable-thread-safety" >&2;}
13468    { (exit 1); exit 1; }; }
13469 fi
13470
13471 CFLAGS="$_CFLAGS"
13472 LIBS="$_LIBS"
13473 fi
13474
13475
13476 # This test makes sure that run tests work at all.  Sometimes a shared
13477 # library is found by the linker, but the runtime linker can't find it.
13478 # This check should come after all modifications of compiler or linker
13479 # variables, and before any other run tests.
13480 echo "$as_me:$LINENO: checking test program" >&5
13481 echo $ECHO_N "checking test program... $ECHO_C" >&6
13482 if test "$cross_compiling" = yes; then
13483   echo "$as_me:$LINENO: result: cross-compiling" >&5
13484 echo "${ECHO_T}cross-compiling" >&6
13485 else
13486   cat >conftest.$ac_ext <<_ACEOF
13487 #line $LINENO "configure"
13488 #include "confdefs.h"
13489 int main() { return 0; }
13490 _ACEOF
13491 rm -f conftest$ac_exeext
13492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13493   (eval $ac_link) 2>&5
13494   ac_status=$?
13495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498   (eval $ac_try) 2>&5
13499   ac_status=$?
13500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501   (exit $ac_status); }; }; then
13502   echo "$as_me:$LINENO: result: ok" >&5
13503 echo "${ECHO_T}ok" >&6
13504 else
13505   echo "$as_me: program exited with status $ac_status" >&5
13506 echo "$as_me: failed program was:" >&5
13507 cat conftest.$ac_ext >&5
13508 ( exit $ac_status )
13509 echo "$as_me:$LINENO: result: failed" >&5
13510 echo "${ECHO_T}failed" >&6
13511 { { echo "$as_me:$LINENO: error:
13512 *** Could not execute a simple test program.  This may be a problem
13513 *** related to locating shared libraries.  Check the file 'config.log'
13514 *** for the exact reason." >&5
13515 echo "$as_me: error:
13516 *** Could not execute a simple test program.  This may be a problem
13517 *** related to locating shared libraries.  Check the file 'config.log'
13518 *** for the exact reason." >&2;}
13519    { (exit 1); exit 1; }; }
13520 fi
13521 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13522 fi
13523
13524
13525
13526 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
13527 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
13528 if test "${pgac_cv_type_long_int_64+set}" = set; then
13529   echo $ECHO_N "(cached) $ECHO_C" >&6
13530 else
13531   if test "$cross_compiling" = yes; then
13532   # If cross-compiling, check the size reported by the compiler and
13533 # trust that the arithmetic works.
13534 cat >conftest.$ac_ext <<_ACEOF
13535 #line $LINENO "configure"
13536 #include "confdefs.h"
13537
13538 #ifdef F77_DUMMY_MAIN
13539 #  ifdef __cplusplus
13540      extern "C"
13541 #  endif
13542    int F77_DUMMY_MAIN() { return 1; }
13543 #endif
13544 int
13545 main ()
13546 {
13547 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13548 test_array [0] = 0
13549
13550   ;
13551   return 0;
13552 }
13553 _ACEOF
13554 rm -f conftest.$ac_objext
13555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13556   (eval $ac_compile) 2>&5
13557   ac_status=$?
13558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559   (exit $ac_status); } &&
13560          { ac_try='test -s conftest.$ac_objext'
13561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562   (eval $ac_try) 2>&5
13563   ac_status=$?
13564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565   (exit $ac_status); }; }; then
13566   pgac_cv_type_long_int_64=yes
13567 else
13568   echo "$as_me: failed program was:" >&5
13569 cat conftest.$ac_ext >&5
13570 pgac_cv_type_long_int_64=no
13571 fi
13572 rm -f conftest.$ac_objext conftest.$ac_ext
13573 else
13574   cat >conftest.$ac_ext <<_ACEOF
13575 #line $LINENO "configure"
13576 #include "confdefs.h"
13577 typedef long int int64;
13578
13579 /*
13580  * These are globals to discourage the compiler from folding all the
13581  * arithmetic tests down to compile-time constants.
13582  */
13583 int64 a = 20000001;
13584 int64 b = 40000005;
13585
13586 int does_int64_work()
13587 {
13588   int64 c,d;
13589
13590   if (sizeof(int64) != 8)
13591     return 0;                   /* definitely not the right size */
13592
13593   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13594   c = a * b;
13595   d = (c + b) / b;
13596   if (d != a+1)
13597     return 0;
13598   return 1;
13599 }
13600 main() {
13601   exit(! does_int64_work());
13602 }
13603 _ACEOF
13604 rm -f conftest$ac_exeext
13605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13606   (eval $ac_link) 2>&5
13607   ac_status=$?
13608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13611   (eval $ac_try) 2>&5
13612   ac_status=$?
13613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614   (exit $ac_status); }; }; then
13615   pgac_cv_type_long_int_64=yes
13616 else
13617   echo "$as_me: program exited with status $ac_status" >&5
13618 echo "$as_me: failed program was:" >&5
13619 cat conftest.$ac_ext >&5
13620 ( exit $ac_status )
13621 pgac_cv_type_long_int_64=no
13622 fi
13623 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13624 fi
13625 fi
13626 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
13627 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
13628
13629 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13630 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13631
13632 cat >>confdefs.h <<\_ACEOF
13633 #define HAVE_LONG_INT_64
13634 _ACEOF
13635
13636 fi
13637
13638
13639 if test x"$HAVE_LONG_INT_64" = x"no" ; then
13640   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
13641 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
13642 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
13643   echo $ECHO_N "(cached) $ECHO_C" >&6
13644 else
13645   if test "$cross_compiling" = yes; then
13646   # If cross-compiling, check the size reported by the compiler and
13647 # trust that the arithmetic works.
13648 cat >conftest.$ac_ext <<_ACEOF
13649 #line $LINENO "configure"
13650 #include "confdefs.h"
13651
13652 #ifdef F77_DUMMY_MAIN
13653 #  ifdef __cplusplus
13654      extern "C"
13655 #  endif
13656    int F77_DUMMY_MAIN() { return 1; }
13657 #endif
13658 int
13659 main ()
13660 {
13661 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13662 test_array [0] = 0
13663
13664   ;
13665   return 0;
13666 }
13667 _ACEOF
13668 rm -f conftest.$ac_objext
13669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13670   (eval $ac_compile) 2>&5
13671   ac_status=$?
13672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673   (exit $ac_status); } &&
13674          { ac_try='test -s conftest.$ac_objext'
13675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676   (eval $ac_try) 2>&5
13677   ac_status=$?
13678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679   (exit $ac_status); }; }; then
13680   pgac_cv_type_long_long_int_64=yes
13681 else
13682   echo "$as_me: failed program was:" >&5
13683 cat conftest.$ac_ext >&5
13684 pgac_cv_type_long_long_int_64=no
13685 fi
13686 rm -f conftest.$ac_objext conftest.$ac_ext
13687 else
13688   cat >conftest.$ac_ext <<_ACEOF
13689 #line $LINENO "configure"
13690 #include "confdefs.h"
13691 typedef long long int int64;
13692
13693 /*
13694  * These are globals to discourage the compiler from folding all the
13695  * arithmetic tests down to compile-time constants.
13696  */
13697 int64 a = 20000001;
13698 int64 b = 40000005;
13699
13700 int does_int64_work()
13701 {
13702   int64 c,d;
13703
13704   if (sizeof(int64) != 8)
13705     return 0;                   /* definitely not the right size */
13706
13707   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13708   c = a * b;
13709   d = (c + b) / b;
13710   if (d != a+1)
13711     return 0;
13712   return 1;
13713 }
13714 main() {
13715   exit(! does_int64_work());
13716 }
13717 _ACEOF
13718 rm -f conftest$ac_exeext
13719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13720   (eval $ac_link) 2>&5
13721   ac_status=$?
13722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725   (eval $ac_try) 2>&5
13726   ac_status=$?
13727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728   (exit $ac_status); }; }; then
13729   pgac_cv_type_long_long_int_64=yes
13730 else
13731   echo "$as_me: program exited with status $ac_status" >&5
13732 echo "$as_me: failed program was:" >&5
13733 cat conftest.$ac_ext >&5
13734 ( exit $ac_status )
13735 pgac_cv_type_long_long_int_64=no
13736 fi
13737 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13738 fi
13739 fi
13740 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
13741 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
13742
13743 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13744 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13745
13746 cat >>confdefs.h <<\_ACEOF
13747 #define HAVE_LONG_LONG_INT_64
13748 _ACEOF
13749
13750 fi
13751
13752 fi
13753
13754
13755
13756 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13757   cat >conftest.$ac_ext <<_ACEOF
13758 #line $LINENO "configure"
13759 #include "confdefs.h"
13760
13761 #define INT64CONST(x)  x##LL
13762 long long int foo = INT64CONST(0x1234567890123456);
13763
13764 #ifdef F77_DUMMY_MAIN
13765 #  ifdef __cplusplus
13766      extern "C"
13767 #  endif
13768    int F77_DUMMY_MAIN() { return 1; }
13769 #endif
13770 int
13771 main ()
13772 {
13773
13774   ;
13775   return 0;
13776 }
13777 _ACEOF
13778 rm -f conftest.$ac_objext
13779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13780   (eval $ac_compile) 2>&5
13781   ac_status=$?
13782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783   (exit $ac_status); } &&
13784          { ac_try='test -s conftest.$ac_objext'
13785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786   (eval $ac_try) 2>&5
13787   ac_status=$?
13788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789   (exit $ac_status); }; }; then
13790
13791 cat >>confdefs.h <<\_ACEOF
13792 #define HAVE_LL_CONSTANTS 1
13793 _ACEOF
13794
13795 else
13796   echo "$as_me: failed program was:" >&5
13797 cat conftest.$ac_ext >&5
13798 fi
13799 rm -f conftest.$ac_objext conftest.$ac_ext
13800 fi
13801
13802
13803 # If we found "long int" is 64 bits, assume snprintf handles it.  If
13804 # we found we need to use "long long int", better check.  We cope with
13805 # snprintfs that use either %lld, %qd, or %I64d as the format.  If
13806 # neither works, fall back to our own snprintf emulation (which we
13807 # know uses %lld).
13808
13809 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13810   if test $pgac_need_repl_snprintf = no; then
13811     echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
13812 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
13813 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
13814   echo $ECHO_N "(cached) $ECHO_C" >&6
13815 else
13816   for pgac_format in '%lld' '%qd' '%I64d'; do
13817 if test "$cross_compiling" = yes; then
13818   pgac_cv_snprintf_long_long_int_format=cross; break
13819 else
13820   cat >conftest.$ac_ext <<_ACEOF
13821 #line $LINENO "configure"
13822 #include "confdefs.h"
13823 #include <stdio.h>
13824 typedef long long int int64;
13825 #define INT64_FORMAT "$pgac_format"
13826
13827 int64 a = 20000001;
13828 int64 b = 40000005;
13829
13830 int does_int64_snprintf_work()
13831 {
13832   int64 c;
13833   char buf[100];
13834
13835   if (sizeof(int64) != 8)
13836     return 0;                   /* doesn't look like the right size */
13837
13838   c = a * b;
13839   snprintf(buf, 100, INT64_FORMAT, c);
13840   if (strcmp(buf, "800000140000005") != 0)
13841     return 0;                   /* either multiply or snprintf is busted */
13842   return 1;
13843 }
13844 main() {
13845   exit(! does_int64_snprintf_work());
13846 }
13847 _ACEOF
13848 rm -f conftest$ac_exeext
13849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13850   (eval $ac_link) 2>&5
13851   ac_status=$?
13852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855   (eval $ac_try) 2>&5
13856   ac_status=$?
13857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858   (exit $ac_status); }; }; then
13859   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
13860 else
13861   echo "$as_me: program exited with status $ac_status" >&5
13862 echo "$as_me: failed program was:" >&5
13863 cat conftest.$ac_ext >&5
13864 fi
13865 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13866 fi
13867 done
13868 fi
13869
13870 LONG_LONG_INT_FORMAT=''
13871
13872 case $pgac_cv_snprintf_long_long_int_format in
13873   cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
13874 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
13875   ?*)    echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
13876 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
13877          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13878   *)     echo "$as_me:$LINENO: result: none" >&5
13879 echo "${ECHO_T}none" >&6;;
13880 esac
13881     if test "$LONG_LONG_INT_FORMAT" = ""; then
13882       # Force usage of our own snprintf, since system snprintf is broken
13883       pgac_need_repl_snprintf=yes
13884       LONG_LONG_INT_FORMAT='%lld'
13885     fi
13886   else
13887     # Here if we previously decided we needed to use our own snprintf
13888     LONG_LONG_INT_FORMAT='%lld'
13889   fi
13890   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13891 else
13892   # Here if we are not using 'long long int' at all
13893   INT64_FORMAT='"%ld"'
13894 fi
13895
13896
13897 cat >>confdefs.h <<_ACEOF
13898 #define INT64_FORMAT $INT64_FORMAT
13899 _ACEOF
13900
13901
13902 if test $pgac_need_repl_snprintf = yes; then
13903   LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13904 fi
13905
13906 # Need a #define for the size of Datum (unsigned long)
13907 echo "$as_me:$LINENO: checking for unsigned long" >&5
13908 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13909 if test "${ac_cv_type_unsigned_long+set}" = set; then
13910   echo $ECHO_N "(cached) $ECHO_C" >&6
13911 else
13912   cat >conftest.$ac_ext <<_ACEOF
13913 #line $LINENO "configure"
13914 #include "confdefs.h"
13915 $ac_includes_default
13916 #ifdef F77_DUMMY_MAIN
13917 #  ifdef __cplusplus
13918      extern "C"
13919 #  endif
13920    int F77_DUMMY_MAIN() { return 1; }
13921 #endif
13922 int
13923 main ()
13924 {
13925 if ((unsigned long *) 0)
13926   return 0;
13927 if (sizeof (unsigned long))
13928   return 0;
13929   ;
13930   return 0;
13931 }
13932 _ACEOF
13933 rm -f conftest.$ac_objext
13934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13935   (eval $ac_compile) 2>&5
13936   ac_status=$?
13937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938   (exit $ac_status); } &&
13939          { ac_try='test -s conftest.$ac_objext'
13940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941   (eval $ac_try) 2>&5
13942   ac_status=$?
13943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944   (exit $ac_status); }; }; then
13945   ac_cv_type_unsigned_long=yes
13946 else
13947   echo "$as_me: failed program was:" >&5
13948 cat conftest.$ac_ext >&5
13949 ac_cv_type_unsigned_long=no
13950 fi
13951 rm -f conftest.$ac_objext conftest.$ac_ext
13952 fi
13953 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13954 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13955
13956 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13957 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13958 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13959   echo $ECHO_N "(cached) $ECHO_C" >&6
13960 else
13961   if test "$ac_cv_type_unsigned_long" = yes; then
13962   # The cast to unsigned long works around a bug in the HP C Compiler
13963   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13964   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13965   # This bug is HP SR number 8606223364.
13966   if test "$cross_compiling" = yes; then
13967   # Depending upon the size, compute the lo and hi bounds.
13968 cat >conftest.$ac_ext <<_ACEOF
13969 #line $LINENO "configure"
13970 #include "confdefs.h"
13971 $ac_includes_default
13972 #ifdef F77_DUMMY_MAIN
13973 #  ifdef __cplusplus
13974      extern "C"
13975 #  endif
13976    int F77_DUMMY_MAIN() { return 1; }
13977 #endif
13978 int
13979 main ()
13980 {
13981 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13982 test_array [0] = 0
13983
13984   ;
13985   return 0;
13986 }
13987 _ACEOF
13988 rm -f conftest.$ac_objext
13989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13990   (eval $ac_compile) 2>&5
13991   ac_status=$?
13992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993   (exit $ac_status); } &&
13994          { ac_try='test -s conftest.$ac_objext'
13995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13996   (eval $ac_try) 2>&5
13997   ac_status=$?
13998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999   (exit $ac_status); }; }; then
14000   ac_lo=0 ac_mid=0
14001   while :; do
14002     cat >conftest.$ac_ext <<_ACEOF
14003 #line $LINENO "configure"
14004 #include "confdefs.h"
14005 $ac_includes_default
14006 #ifdef F77_DUMMY_MAIN
14007 #  ifdef __cplusplus
14008      extern "C"
14009 #  endif
14010    int F77_DUMMY_MAIN() { return 1; }
14011 #endif
14012 int
14013 main ()
14014 {
14015 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14016 test_array [0] = 0
14017
14018   ;
14019   return 0;
14020 }
14021 _ACEOF
14022 rm -f conftest.$ac_objext
14023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14024   (eval $ac_compile) 2>&5
14025   ac_status=$?
14026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027   (exit $ac_status); } &&
14028          { ac_try='test -s conftest.$ac_objext'
14029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030   (eval $ac_try) 2>&5
14031   ac_status=$?
14032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033   (exit $ac_status); }; }; then
14034   ac_hi=$ac_mid; break
14035 else
14036   echo "$as_me: failed program was:" >&5
14037 cat conftest.$ac_ext >&5
14038 ac_lo=`expr $ac_mid + 1`
14039                     if test $ac_lo -le $ac_mid; then
14040                       ac_lo= ac_hi=
14041                       break
14042                     fi
14043                     ac_mid=`expr 2 '*' $ac_mid + 1`
14044 fi
14045 rm -f conftest.$ac_objext conftest.$ac_ext
14046   done
14047 else
14048   echo "$as_me: failed program was:" >&5
14049 cat conftest.$ac_ext >&5
14050 cat >conftest.$ac_ext <<_ACEOF
14051 #line $LINENO "configure"
14052 #include "confdefs.h"
14053 $ac_includes_default
14054 #ifdef F77_DUMMY_MAIN
14055 #  ifdef __cplusplus
14056      extern "C"
14057 #  endif
14058    int F77_DUMMY_MAIN() { return 1; }
14059 #endif
14060 int
14061 main ()
14062 {
14063 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
14064 test_array [0] = 0
14065
14066   ;
14067   return 0;
14068 }
14069 _ACEOF
14070 rm -f conftest.$ac_objext
14071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14072   (eval $ac_compile) 2>&5
14073   ac_status=$?
14074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075   (exit $ac_status); } &&
14076          { ac_try='test -s conftest.$ac_objext'
14077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14078   (eval $ac_try) 2>&5
14079   ac_status=$?
14080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081   (exit $ac_status); }; }; then
14082   ac_hi=-1 ac_mid=-1
14083   while :; do
14084     cat >conftest.$ac_ext <<_ACEOF
14085 #line $LINENO "configure"
14086 #include "confdefs.h"
14087 $ac_includes_default
14088 #ifdef F77_DUMMY_MAIN
14089 #  ifdef __cplusplus
14090      extern "C"
14091 #  endif
14092    int F77_DUMMY_MAIN() { return 1; }
14093 #endif
14094 int
14095 main ()
14096 {
14097 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
14098 test_array [0] = 0
14099
14100   ;
14101   return 0;
14102 }
14103 _ACEOF
14104 rm -f conftest.$ac_objext
14105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14106   (eval $ac_compile) 2>&5
14107   ac_status=$?
14108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109   (exit $ac_status); } &&
14110          { ac_try='test -s conftest.$ac_objext'
14111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112   (eval $ac_try) 2>&5
14113   ac_status=$?
14114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115   (exit $ac_status); }; }; then
14116   ac_lo=$ac_mid; break
14117 else
14118   echo "$as_me: failed program was:" >&5
14119 cat conftest.$ac_ext >&5
14120 ac_hi=`expr '(' $ac_mid ')' - 1`
14121                        if test $ac_mid -le $ac_hi; then
14122                          ac_lo= ac_hi=
14123                          break
14124                        fi
14125                        ac_mid=`expr 2 '*' $ac_mid`
14126 fi
14127 rm -f conftest.$ac_objext conftest.$ac_ext
14128   done
14129 else
14130   echo "$as_me: failed program was:" >&5
14131 cat conftest.$ac_ext >&5
14132 ac_lo= ac_hi=
14133 fi
14134 rm -f conftest.$ac_objext conftest.$ac_ext
14135 fi
14136 rm -f conftest.$ac_objext conftest.$ac_ext
14137 # Binary search between lo and hi bounds.
14138 while test "x$ac_lo" != "x$ac_hi"; do
14139   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14140   cat >conftest.$ac_ext <<_ACEOF
14141 #line $LINENO "configure"
14142 #include "confdefs.h"
14143 $ac_includes_default
14144 #ifdef F77_DUMMY_MAIN
14145 #  ifdef __cplusplus
14146      extern "C"
14147 #  endif
14148    int F77_DUMMY_MAIN() { return 1; }
14149 #endif
14150 int
14151 main ()
14152 {
14153 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14154 test_array [0] = 0
14155
14156   ;
14157   return 0;
14158 }
14159 _ACEOF
14160 rm -f conftest.$ac_objext
14161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14162   (eval $ac_compile) 2>&5
14163   ac_status=$?
14164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165   (exit $ac_status); } &&
14166          { ac_try='test -s conftest.$ac_objext'
14167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168   (eval $ac_try) 2>&5
14169   ac_status=$?
14170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171   (exit $ac_status); }; }; then
14172   ac_hi=$ac_mid
14173 else
14174   echo "$as_me: failed program was:" >&5
14175 cat conftest.$ac_ext >&5
14176 ac_lo=`expr '(' $ac_mid ')' + 1`
14177 fi
14178 rm -f conftest.$ac_objext conftest.$ac_ext
14179 done
14180 case $ac_lo in
14181 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
14182 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14183 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14184    { (exit 1); exit 1; }; } ;;
14185 esac
14186 else
14187   if test "$cross_compiling" = yes; then
14188   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14189 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14190    { (exit 1); exit 1; }; }
14191 else
14192   cat >conftest.$ac_ext <<_ACEOF
14193 #line $LINENO "configure"
14194 #include "confdefs.h"
14195 $ac_includes_default
14196 long longval () { return (long) (sizeof (unsigned long)); }
14197 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
14198 #include <stdio.h>
14199 #include <stdlib.h>
14200 #ifdef F77_DUMMY_MAIN
14201 #  ifdef __cplusplus
14202      extern "C"
14203 #  endif
14204    int F77_DUMMY_MAIN() { return 1; }
14205 #endif
14206 int
14207 main ()
14208 {
14209
14210   FILE *f = fopen ("conftest.val", "w");
14211   if (! f)
14212     exit (1);
14213   if (((long) (sizeof (unsigned long))) < 0)
14214     {
14215       long i = longval ();
14216       if (i != ((long) (sizeof (unsigned long))))
14217         exit (1);
14218       fprintf (f, "%ld\n", i);
14219     }
14220   else
14221     {
14222       unsigned long i = ulongval ();
14223       if (i != ((long) (sizeof (unsigned long))))
14224         exit (1);
14225       fprintf (f, "%lu\n", i);
14226     }
14227   exit (ferror (f) || fclose (f) != 0);
14228
14229   ;
14230   return 0;
14231 }
14232 _ACEOF
14233 rm -f conftest$ac_exeext
14234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14235   (eval $ac_link) 2>&5
14236   ac_status=$?
14237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240   (eval $ac_try) 2>&5
14241   ac_status=$?
14242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243   (exit $ac_status); }; }; then
14244   ac_cv_sizeof_unsigned_long=`cat conftest.val`
14245 else
14246   echo "$as_me: program exited with status $ac_status" >&5
14247 echo "$as_me: failed program was:" >&5
14248 cat conftest.$ac_ext >&5
14249 ( exit $ac_status )
14250 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14251 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14252    { (exit 1); exit 1; }; }
14253 fi
14254 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14255 fi
14256 fi
14257 rm -f conftest.val
14258 else
14259   ac_cv_sizeof_unsigned_long=0
14260 fi
14261 fi
14262 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
14263 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
14264 cat >>confdefs.h <<_ACEOF
14265 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14266 _ACEOF
14267
14268
14269
14270 # Determine memory alignment requirements for the basic C data types.
14271
14272 echo "$as_me:$LINENO: checking for short" >&5
14273 echo $ECHO_N "checking for short... $ECHO_C" >&6
14274 if test "${ac_cv_type_short+set}" = set; then
14275   echo $ECHO_N "(cached) $ECHO_C" >&6
14276 else
14277   cat >conftest.$ac_ext <<_ACEOF
14278 #line $LINENO "configure"
14279 #include "confdefs.h"
14280 $ac_includes_default
14281 #ifdef F77_DUMMY_MAIN
14282 #  ifdef __cplusplus
14283      extern "C"
14284 #  endif
14285    int F77_DUMMY_MAIN() { return 1; }
14286 #endif
14287 int
14288 main ()
14289 {
14290 if ((short *) 0)
14291   return 0;
14292 if (sizeof (short))
14293   return 0;
14294   ;
14295   return 0;
14296 }
14297 _ACEOF
14298 rm -f conftest.$ac_objext
14299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14300   (eval $ac_compile) 2>&5
14301   ac_status=$?
14302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303   (exit $ac_status); } &&
14304          { ac_try='test -s conftest.$ac_objext'
14305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306   (eval $ac_try) 2>&5
14307   ac_status=$?
14308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309   (exit $ac_status); }; }; then
14310   ac_cv_type_short=yes
14311 else
14312   echo "$as_me: failed program was:" >&5
14313 cat conftest.$ac_ext >&5
14314 ac_cv_type_short=no
14315 fi
14316 rm -f conftest.$ac_objext conftest.$ac_ext
14317 fi
14318 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14319 echo "${ECHO_T}$ac_cv_type_short" >&6
14320
14321 echo "$as_me:$LINENO: checking alignment of short" >&5
14322 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
14323 if test "${pgac_cv_alignof_short+set}" = set; then
14324   echo $ECHO_N "(cached) $ECHO_C" >&6
14325 else
14326   if test "$ac_cv_type_short" = yes; then
14327   if test "$cross_compiling" = yes; then
14328   # Depending upon the size, compute the lo and hi bounds.
14329 cat >conftest.$ac_ext <<_ACEOF
14330 #line $LINENO "configure"
14331 #include "confdefs.h"
14332 $ac_includes_default
14333 struct { char filler; short field; } pgac_struct;
14334 #ifdef F77_DUMMY_MAIN
14335 #  ifdef __cplusplus
14336      extern "C"
14337 #  endif
14338    int F77_DUMMY_MAIN() { return 1; }
14339 #endif
14340 int
14341 main ()
14342 {
14343 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14344 test_array [0] = 0
14345
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_lo=0 ac_mid=0
14363   while :; do
14364     cat >conftest.$ac_ext <<_ACEOF
14365 #line $LINENO "configure"
14366 #include "confdefs.h"
14367 $ac_includes_default
14368 struct { char filler; short field; } pgac_struct;
14369 #ifdef F77_DUMMY_MAIN
14370 #  ifdef __cplusplus
14371      extern "C"
14372 #  endif
14373    int F77_DUMMY_MAIN() { return 1; }
14374 #endif
14375 int
14376 main ()
14377 {
14378 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14379 test_array [0] = 0
14380
14381   ;
14382   return 0;
14383 }
14384 _ACEOF
14385 rm -f conftest.$ac_objext
14386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14387   (eval $ac_compile) 2>&5
14388   ac_status=$?
14389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390   (exit $ac_status); } &&
14391          { ac_try='test -s conftest.$ac_objext'
14392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393   (eval $ac_try) 2>&5
14394   ac_status=$?
14395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396   (exit $ac_status); }; }; then
14397   ac_hi=$ac_mid; break
14398 else
14399   echo "$as_me: failed program was:" >&5
14400 cat conftest.$ac_ext >&5
14401 ac_lo=`expr $ac_mid + 1`
14402                     if test $ac_lo -le $ac_mid; then
14403                       ac_lo= ac_hi=
14404                       break
14405                     fi
14406                     ac_mid=`expr 2 '*' $ac_mid + 1`
14407 fi
14408 rm -f conftest.$ac_objext conftest.$ac_ext
14409   done
14410 else
14411   echo "$as_me: failed program was:" >&5
14412 cat conftest.$ac_ext >&5
14413 cat >conftest.$ac_ext <<_ACEOF
14414 #line $LINENO "configure"
14415 #include "confdefs.h"
14416 $ac_includes_default
14417 struct { char filler; short field; } pgac_struct;
14418 #ifdef F77_DUMMY_MAIN
14419 #  ifdef __cplusplus
14420      extern "C"
14421 #  endif
14422    int F77_DUMMY_MAIN() { return 1; }
14423 #endif
14424 int
14425 main ()
14426 {
14427 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14428 test_array [0] = 0
14429
14430   ;
14431   return 0;
14432 }
14433 _ACEOF
14434 rm -f conftest.$ac_objext
14435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14436   (eval $ac_compile) 2>&5
14437   ac_status=$?
14438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439   (exit $ac_status); } &&
14440          { ac_try='test -s conftest.$ac_objext'
14441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14442   (eval $ac_try) 2>&5
14443   ac_status=$?
14444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445   (exit $ac_status); }; }; then
14446   ac_hi=-1 ac_mid=-1
14447   while :; do
14448     cat >conftest.$ac_ext <<_ACEOF
14449 #line $LINENO "configure"
14450 #include "confdefs.h"
14451 $ac_includes_default
14452 struct { char filler; short field; } pgac_struct;
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 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14463 test_array [0] = 0
14464
14465   ;
14466   return 0;
14467 }
14468 _ACEOF
14469 rm -f conftest.$ac_objext
14470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14471   (eval $ac_compile) 2>&5
14472   ac_status=$?
14473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474   (exit $ac_status); } &&
14475          { ac_try='test -s conftest.$ac_objext'
14476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477   (eval $ac_try) 2>&5
14478   ac_status=$?
14479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480   (exit $ac_status); }; }; then
14481   ac_lo=$ac_mid; break
14482 else
14483   echo "$as_me: failed program was:" >&5
14484 cat conftest.$ac_ext >&5
14485 ac_hi=`expr '(' $ac_mid ')' - 1`
14486                        if test $ac_mid -le $ac_hi; then
14487                          ac_lo= ac_hi=
14488                          break
14489                        fi
14490                        ac_mid=`expr 2 '*' $ac_mid`
14491 fi
14492 rm -f conftest.$ac_objext conftest.$ac_ext
14493   done
14494 else
14495   echo "$as_me: failed program was:" >&5
14496 cat conftest.$ac_ext >&5
14497 ac_lo= ac_hi=
14498 fi
14499 rm -f conftest.$ac_objext conftest.$ac_ext
14500 fi
14501 rm -f conftest.$ac_objext conftest.$ac_ext
14502 # Binary search between lo and hi bounds.
14503 while test "x$ac_lo" != "x$ac_hi"; do
14504   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14505   cat >conftest.$ac_ext <<_ACEOF
14506 #line $LINENO "configure"
14507 #include "confdefs.h"
14508 $ac_includes_default
14509 struct { char filler; short field; } pgac_struct;
14510 #ifdef F77_DUMMY_MAIN
14511 #  ifdef __cplusplus
14512      extern "C"
14513 #  endif
14514    int F77_DUMMY_MAIN() { return 1; }
14515 #endif
14516 int
14517 main ()
14518 {
14519 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14520 test_array [0] = 0
14521
14522   ;
14523   return 0;
14524 }
14525 _ACEOF
14526 rm -f conftest.$ac_objext
14527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14528   (eval $ac_compile) 2>&5
14529   ac_status=$?
14530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); } &&
14532          { ac_try='test -s conftest.$ac_objext'
14533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534   (eval $ac_try) 2>&5
14535   ac_status=$?
14536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537   (exit $ac_status); }; }; then
14538   ac_hi=$ac_mid
14539 else
14540   echo "$as_me: failed program was:" >&5
14541 cat conftest.$ac_ext >&5
14542 ac_lo=`expr '(' $ac_mid ')' + 1`
14543 fi
14544 rm -f conftest.$ac_objext conftest.$ac_ext
14545 done
14546 case $ac_lo in
14547 ?*) pgac_cv_alignof_short=$ac_lo;;
14548 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14549 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14550    { (exit 1); exit 1; }; } ;;
14551 esac
14552 else
14553   if test "$cross_compiling" = yes; then
14554   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14555 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14556    { (exit 1); exit 1; }; }
14557 else
14558   cat >conftest.$ac_ext <<_ACEOF
14559 #line $LINENO "configure"
14560 #include "confdefs.h"
14561 $ac_includes_default
14562 struct { char filler; short field; } pgac_struct;
14563 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14564 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14565 #include <stdio.h>
14566 #include <stdlib.h>
14567 #ifdef F77_DUMMY_MAIN
14568 #  ifdef __cplusplus
14569      extern "C"
14570 #  endif
14571    int F77_DUMMY_MAIN() { return 1; }
14572 #endif
14573 int
14574 main ()
14575 {
14576
14577   FILE *f = fopen ("conftest.val", "w");
14578   if (! f)
14579     exit (1);
14580   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14581     {
14582       long i = longval ();
14583       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14584         exit (1);
14585       fprintf (f, "%ld\n", i);
14586     }
14587   else
14588     {
14589       unsigned long i = ulongval ();
14590       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14591         exit (1);
14592       fprintf (f, "%lu\n", i);
14593     }
14594   exit (ferror (f) || fclose (f) != 0);
14595
14596   ;
14597   return 0;
14598 }
14599 _ACEOF
14600 rm -f conftest$ac_exeext
14601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14602   (eval $ac_link) 2>&5
14603   ac_status=$?
14604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607   (eval $ac_try) 2>&5
14608   ac_status=$?
14609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610   (exit $ac_status); }; }; then
14611   pgac_cv_alignof_short=`cat conftest.val`
14612 else
14613   echo "$as_me: program exited with status $ac_status" >&5
14614 echo "$as_me: failed program was:" >&5
14615 cat conftest.$ac_ext >&5
14616 ( exit $ac_status )
14617 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14618 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14619    { (exit 1); exit 1; }; }
14620 fi
14621 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14622 fi
14623 fi
14624 rm -f conftest.val
14625 else
14626   pgac_cv_alignof_short=0
14627 fi
14628 fi
14629 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
14630 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
14631 cat >>confdefs.h <<_ACEOF
14632 #define ALIGNOF_SHORT $pgac_cv_alignof_short
14633 _ACEOF
14634
14635
14636 echo "$as_me:$LINENO: checking for int" >&5
14637 echo $ECHO_N "checking for int... $ECHO_C" >&6
14638 if test "${ac_cv_type_int+set}" = set; then
14639   echo $ECHO_N "(cached) $ECHO_C" >&6
14640 else
14641   cat >conftest.$ac_ext <<_ACEOF
14642 #line $LINENO "configure"
14643 #include "confdefs.h"
14644 $ac_includes_default
14645 #ifdef F77_DUMMY_MAIN
14646 #  ifdef __cplusplus
14647      extern "C"
14648 #  endif
14649    int F77_DUMMY_MAIN() { return 1; }
14650 #endif
14651 int
14652 main ()
14653 {
14654 if ((int *) 0)
14655   return 0;
14656 if (sizeof (int))
14657   return 0;
14658   ;
14659   return 0;
14660 }
14661 _ACEOF
14662 rm -f conftest.$ac_objext
14663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14664   (eval $ac_compile) 2>&5
14665   ac_status=$?
14666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667   (exit $ac_status); } &&
14668          { ac_try='test -s conftest.$ac_objext'
14669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670   (eval $ac_try) 2>&5
14671   ac_status=$?
14672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673   (exit $ac_status); }; }; then
14674   ac_cv_type_int=yes
14675 else
14676   echo "$as_me: failed program was:" >&5
14677 cat conftest.$ac_ext >&5
14678 ac_cv_type_int=no
14679 fi
14680 rm -f conftest.$ac_objext conftest.$ac_ext
14681 fi
14682 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14683 echo "${ECHO_T}$ac_cv_type_int" >&6
14684
14685 echo "$as_me:$LINENO: checking alignment of int" >&5
14686 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14687 if test "${pgac_cv_alignof_int+set}" = set; then
14688   echo $ECHO_N "(cached) $ECHO_C" >&6
14689 else
14690   if test "$ac_cv_type_int" = yes; then
14691   if test "$cross_compiling" = yes; then
14692   # Depending upon the size, compute the lo and hi bounds.
14693 cat >conftest.$ac_ext <<_ACEOF
14694 #line $LINENO "configure"
14695 #include "confdefs.h"
14696 $ac_includes_default
14697 struct { char filler; int field; } pgac_struct;
14698 #ifdef F77_DUMMY_MAIN
14699 #  ifdef __cplusplus
14700      extern "C"
14701 #  endif
14702    int F77_DUMMY_MAIN() { return 1; }
14703 #endif
14704 int
14705 main ()
14706 {
14707 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14708 test_array [0] = 0
14709
14710   ;
14711   return 0;
14712 }
14713 _ACEOF
14714 rm -f conftest.$ac_objext
14715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14716   (eval $ac_compile) 2>&5
14717   ac_status=$?
14718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719   (exit $ac_status); } &&
14720          { ac_try='test -s conftest.$ac_objext'
14721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722   (eval $ac_try) 2>&5
14723   ac_status=$?
14724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725   (exit $ac_status); }; }; then
14726   ac_lo=0 ac_mid=0
14727   while :; do
14728     cat >conftest.$ac_ext <<_ACEOF
14729 #line $LINENO "configure"
14730 #include "confdefs.h"
14731 $ac_includes_default
14732 struct { char filler; int field; } pgac_struct;
14733 #ifdef F77_DUMMY_MAIN
14734 #  ifdef __cplusplus
14735      extern "C"
14736 #  endif
14737    int F77_DUMMY_MAIN() { return 1; }
14738 #endif
14739 int
14740 main ()
14741 {
14742 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14743 test_array [0] = 0
14744
14745   ;
14746   return 0;
14747 }
14748 _ACEOF
14749 rm -f conftest.$ac_objext
14750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14751   (eval $ac_compile) 2>&5
14752   ac_status=$?
14753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754   (exit $ac_status); } &&
14755          { ac_try='test -s conftest.$ac_objext'
14756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14757   (eval $ac_try) 2>&5
14758   ac_status=$?
14759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760   (exit $ac_status); }; }; then
14761   ac_hi=$ac_mid; break
14762 else
14763   echo "$as_me: failed program was:" >&5
14764 cat conftest.$ac_ext >&5
14765 ac_lo=`expr $ac_mid + 1`
14766                     if test $ac_lo -le $ac_mid; then
14767                       ac_lo= ac_hi=
14768                       break
14769                     fi
14770                     ac_mid=`expr 2 '*' $ac_mid + 1`
14771 fi
14772 rm -f conftest.$ac_objext conftest.$ac_ext
14773   done
14774 else
14775   echo "$as_me: failed program was:" >&5
14776 cat conftest.$ac_ext >&5
14777 cat >conftest.$ac_ext <<_ACEOF
14778 #line $LINENO "configure"
14779 #include "confdefs.h"
14780 $ac_includes_default
14781 struct { char filler; int field; } pgac_struct;
14782 #ifdef F77_DUMMY_MAIN
14783 #  ifdef __cplusplus
14784      extern "C"
14785 #  endif
14786    int F77_DUMMY_MAIN() { return 1; }
14787 #endif
14788 int
14789 main ()
14790 {
14791 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14792 test_array [0] = 0
14793
14794   ;
14795   return 0;
14796 }
14797 _ACEOF
14798 rm -f conftest.$ac_objext
14799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14800   (eval $ac_compile) 2>&5
14801   ac_status=$?
14802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803   (exit $ac_status); } &&
14804          { ac_try='test -s conftest.$ac_objext'
14805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806   (eval $ac_try) 2>&5
14807   ac_status=$?
14808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809   (exit $ac_status); }; }; then
14810   ac_hi=-1 ac_mid=-1
14811   while :; do
14812     cat >conftest.$ac_ext <<_ACEOF
14813 #line $LINENO "configure"
14814 #include "confdefs.h"
14815 $ac_includes_default
14816 struct { char filler; int field; } pgac_struct;
14817 #ifdef F77_DUMMY_MAIN
14818 #  ifdef __cplusplus
14819      extern "C"
14820 #  endif
14821    int F77_DUMMY_MAIN() { return 1; }
14822 #endif
14823 int
14824 main ()
14825 {
14826 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14827 test_array [0] = 0
14828
14829   ;
14830   return 0;
14831 }
14832 _ACEOF
14833 rm -f conftest.$ac_objext
14834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14835   (eval $ac_compile) 2>&5
14836   ac_status=$?
14837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838   (exit $ac_status); } &&
14839          { ac_try='test -s conftest.$ac_objext'
14840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14841   (eval $ac_try) 2>&5
14842   ac_status=$?
14843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844   (exit $ac_status); }; }; then
14845   ac_lo=$ac_mid; break
14846 else
14847   echo "$as_me: failed program was:" >&5
14848 cat conftest.$ac_ext >&5
14849 ac_hi=`expr '(' $ac_mid ')' - 1`
14850                        if test $ac_mid -le $ac_hi; then
14851                          ac_lo= ac_hi=
14852                          break
14853                        fi
14854                        ac_mid=`expr 2 '*' $ac_mid`
14855 fi
14856 rm -f conftest.$ac_objext conftest.$ac_ext
14857   done
14858 else
14859   echo "$as_me: failed program was:" >&5
14860 cat conftest.$ac_ext >&5
14861 ac_lo= ac_hi=
14862 fi
14863 rm -f conftest.$ac_objext conftest.$ac_ext
14864 fi
14865 rm -f conftest.$ac_objext conftest.$ac_ext
14866 # Binary search between lo and hi bounds.
14867 while test "x$ac_lo" != "x$ac_hi"; do
14868   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14869   cat >conftest.$ac_ext <<_ACEOF
14870 #line $LINENO "configure"
14871 #include "confdefs.h"
14872 $ac_includes_default
14873 struct { char filler; int field; } pgac_struct;
14874 #ifdef F77_DUMMY_MAIN
14875 #  ifdef __cplusplus
14876      extern "C"
14877 #  endif
14878    int F77_DUMMY_MAIN() { return 1; }
14879 #endif
14880 int
14881 main ()
14882 {
14883 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14884 test_array [0] = 0
14885
14886   ;
14887   return 0;
14888 }
14889 _ACEOF
14890 rm -f conftest.$ac_objext
14891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14892   (eval $ac_compile) 2>&5
14893   ac_status=$?
14894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895   (exit $ac_status); } &&
14896          { ac_try='test -s conftest.$ac_objext'
14897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898   (eval $ac_try) 2>&5
14899   ac_status=$?
14900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901   (exit $ac_status); }; }; then
14902   ac_hi=$ac_mid
14903 else
14904   echo "$as_me: failed program was:" >&5
14905 cat conftest.$ac_ext >&5
14906 ac_lo=`expr '(' $ac_mid ')' + 1`
14907 fi
14908 rm -f conftest.$ac_objext conftest.$ac_ext
14909 done
14910 case $ac_lo in
14911 ?*) pgac_cv_alignof_int=$ac_lo;;
14912 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14913 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14914    { (exit 1); exit 1; }; } ;;
14915 esac
14916 else
14917   if test "$cross_compiling" = yes; then
14918   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14919 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14920    { (exit 1); exit 1; }; }
14921 else
14922   cat >conftest.$ac_ext <<_ACEOF
14923 #line $LINENO "configure"
14924 #include "confdefs.h"
14925 $ac_includes_default
14926 struct { char filler; int field; } pgac_struct;
14927 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14928 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14929 #include <stdio.h>
14930 #include <stdlib.h>
14931 #ifdef F77_DUMMY_MAIN
14932 #  ifdef __cplusplus
14933      extern "C"
14934 #  endif
14935    int F77_DUMMY_MAIN() { return 1; }
14936 #endif
14937 int
14938 main ()
14939 {
14940
14941   FILE *f = fopen ("conftest.val", "w");
14942   if (! f)
14943     exit (1);
14944   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14945     {
14946       long i = longval ();
14947       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14948         exit (1);
14949       fprintf (f, "%ld\n", i);
14950     }
14951   else
14952     {
14953       unsigned long i = ulongval ();
14954       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14955         exit (1);
14956       fprintf (f, "%lu\n", i);
14957     }
14958   exit (ferror (f) || fclose (f) != 0);
14959
14960   ;
14961   return 0;
14962 }
14963 _ACEOF
14964 rm -f conftest$ac_exeext
14965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14966   (eval $ac_link) 2>&5
14967   ac_status=$?
14968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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   pgac_cv_alignof_int=`cat conftest.val`
14976 else
14977   echo "$as_me: program exited with status $ac_status" >&5
14978 echo "$as_me: failed program was:" >&5
14979 cat conftest.$ac_ext >&5
14980 ( exit $ac_status )
14981 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14982 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14983    { (exit 1); exit 1; }; }
14984 fi
14985 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14986 fi
14987 fi
14988 rm -f conftest.val
14989 else
14990   pgac_cv_alignof_int=0
14991 fi
14992 fi
14993 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14994 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14995 cat >>confdefs.h <<_ACEOF
14996 #define ALIGNOF_INT $pgac_cv_alignof_int
14997 _ACEOF
14998
14999
15000 echo "$as_me:$LINENO: checking for long" >&5
15001 echo $ECHO_N "checking for long... $ECHO_C" >&6
15002 if test "${ac_cv_type_long+set}" = set; then
15003   echo $ECHO_N "(cached) $ECHO_C" >&6
15004 else
15005   cat >conftest.$ac_ext <<_ACEOF
15006 #line $LINENO "configure"
15007 #include "confdefs.h"
15008 $ac_includes_default
15009 #ifdef F77_DUMMY_MAIN
15010 #  ifdef __cplusplus
15011      extern "C"
15012 #  endif
15013    int F77_DUMMY_MAIN() { return 1; }
15014 #endif
15015 int
15016 main ()
15017 {
15018 if ((long *) 0)
15019   return 0;
15020 if (sizeof (long))
15021   return 0;
15022   ;
15023   return 0;
15024 }
15025 _ACEOF
15026 rm -f conftest.$ac_objext
15027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15028   (eval $ac_compile) 2>&5
15029   ac_status=$?
15030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031   (exit $ac_status); } &&
15032          { ac_try='test -s conftest.$ac_objext'
15033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034   (eval $ac_try) 2>&5
15035   ac_status=$?
15036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037   (exit $ac_status); }; }; then
15038   ac_cv_type_long=yes
15039 else
15040   echo "$as_me: failed program was:" >&5
15041 cat conftest.$ac_ext >&5
15042 ac_cv_type_long=no
15043 fi
15044 rm -f conftest.$ac_objext conftest.$ac_ext
15045 fi
15046 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15047 echo "${ECHO_T}$ac_cv_type_long" >&6
15048
15049 echo "$as_me:$LINENO: checking alignment of long" >&5
15050 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
15051 if test "${pgac_cv_alignof_long+set}" = set; then
15052   echo $ECHO_N "(cached) $ECHO_C" >&6
15053 else
15054   if test "$ac_cv_type_long" = yes; then
15055   if test "$cross_compiling" = yes; then
15056   # Depending upon the size, compute the lo and hi bounds.
15057 cat >conftest.$ac_ext <<_ACEOF
15058 #line $LINENO "configure"
15059 #include "confdefs.h"
15060 $ac_includes_default
15061 struct { char filler; long field; } pgac_struct;
15062 #ifdef F77_DUMMY_MAIN
15063 #  ifdef __cplusplus
15064      extern "C"
15065 #  endif
15066    int F77_DUMMY_MAIN() { return 1; }
15067 #endif
15068 int
15069 main ()
15070 {
15071 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15072 test_array [0] = 0
15073
15074   ;
15075   return 0;
15076 }
15077 _ACEOF
15078 rm -f conftest.$ac_objext
15079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15080   (eval $ac_compile) 2>&5
15081   ac_status=$?
15082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083   (exit $ac_status); } &&
15084          { ac_try='test -s conftest.$ac_objext'
15085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15086   (eval $ac_try) 2>&5
15087   ac_status=$?
15088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089   (exit $ac_status); }; }; then
15090   ac_lo=0 ac_mid=0
15091   while :; do
15092     cat >conftest.$ac_ext <<_ACEOF
15093 #line $LINENO "configure"
15094 #include "confdefs.h"
15095 $ac_includes_default
15096 struct { char filler; long field; } pgac_struct;
15097 #ifdef F77_DUMMY_MAIN
15098 #  ifdef __cplusplus
15099      extern "C"
15100 #  endif
15101    int F77_DUMMY_MAIN() { return 1; }
15102 #endif
15103 int
15104 main ()
15105 {
15106 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15107 test_array [0] = 0
15108
15109   ;
15110   return 0;
15111 }
15112 _ACEOF
15113 rm -f conftest.$ac_objext
15114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15115   (eval $ac_compile) 2>&5
15116   ac_status=$?
15117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118   (exit $ac_status); } &&
15119          { ac_try='test -s conftest.$ac_objext'
15120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121   (eval $ac_try) 2>&5
15122   ac_status=$?
15123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124   (exit $ac_status); }; }; then
15125   ac_hi=$ac_mid; break
15126 else
15127   echo "$as_me: failed program was:" >&5
15128 cat conftest.$ac_ext >&5
15129 ac_lo=`expr $ac_mid + 1`
15130                     if test $ac_lo -le $ac_mid; then
15131                       ac_lo= ac_hi=
15132                       break
15133                     fi
15134                     ac_mid=`expr 2 '*' $ac_mid + 1`
15135 fi
15136 rm -f conftest.$ac_objext conftest.$ac_ext
15137   done
15138 else
15139   echo "$as_me: failed program was:" >&5
15140 cat conftest.$ac_ext >&5
15141 cat >conftest.$ac_ext <<_ACEOF
15142 #line $LINENO "configure"
15143 #include "confdefs.h"
15144 $ac_includes_default
15145 struct { char filler; long field; } pgac_struct;
15146 #ifdef F77_DUMMY_MAIN
15147 #  ifdef __cplusplus
15148      extern "C"
15149 #  endif
15150    int F77_DUMMY_MAIN() { return 1; }
15151 #endif
15152 int
15153 main ()
15154 {
15155 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15156 test_array [0] = 0
15157
15158   ;
15159   return 0;
15160 }
15161 _ACEOF
15162 rm -f conftest.$ac_objext
15163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15164   (eval $ac_compile) 2>&5
15165   ac_status=$?
15166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167   (exit $ac_status); } &&
15168          { ac_try='test -s conftest.$ac_objext'
15169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170   (eval $ac_try) 2>&5
15171   ac_status=$?
15172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173   (exit $ac_status); }; }; then
15174   ac_hi=-1 ac_mid=-1
15175   while :; do
15176     cat >conftest.$ac_ext <<_ACEOF
15177 #line $LINENO "configure"
15178 #include "confdefs.h"
15179 $ac_includes_default
15180 struct { char filler; long field; } pgac_struct;
15181 #ifdef F77_DUMMY_MAIN
15182 #  ifdef __cplusplus
15183      extern "C"
15184 #  endif
15185    int F77_DUMMY_MAIN() { return 1; }
15186 #endif
15187 int
15188 main ()
15189 {
15190 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15191 test_array [0] = 0
15192
15193   ;
15194   return 0;
15195 }
15196 _ACEOF
15197 rm -f conftest.$ac_objext
15198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15199   (eval $ac_compile) 2>&5
15200   ac_status=$?
15201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202   (exit $ac_status); } &&
15203          { ac_try='test -s conftest.$ac_objext'
15204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15205   (eval $ac_try) 2>&5
15206   ac_status=$?
15207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208   (exit $ac_status); }; }; then
15209   ac_lo=$ac_mid; break
15210 else
15211   echo "$as_me: failed program was:" >&5
15212 cat conftest.$ac_ext >&5
15213 ac_hi=`expr '(' $ac_mid ')' - 1`
15214                        if test $ac_mid -le $ac_hi; then
15215                          ac_lo= ac_hi=
15216                          break
15217                        fi
15218                        ac_mid=`expr 2 '*' $ac_mid`
15219 fi
15220 rm -f conftest.$ac_objext conftest.$ac_ext
15221   done
15222 else
15223   echo "$as_me: failed program was:" >&5
15224 cat conftest.$ac_ext >&5
15225 ac_lo= ac_hi=
15226 fi
15227 rm -f conftest.$ac_objext conftest.$ac_ext
15228 fi
15229 rm -f conftest.$ac_objext conftest.$ac_ext
15230 # Binary search between lo and hi bounds.
15231 while test "x$ac_lo" != "x$ac_hi"; do
15232   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15233   cat >conftest.$ac_ext <<_ACEOF
15234 #line $LINENO "configure"
15235 #include "confdefs.h"
15236 $ac_includes_default
15237 struct { char filler; long field; } pgac_struct;
15238 #ifdef F77_DUMMY_MAIN
15239 #  ifdef __cplusplus
15240      extern "C"
15241 #  endif
15242    int F77_DUMMY_MAIN() { return 1; }
15243 #endif
15244 int
15245 main ()
15246 {
15247 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15248 test_array [0] = 0
15249
15250   ;
15251   return 0;
15252 }
15253 _ACEOF
15254 rm -f conftest.$ac_objext
15255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15256   (eval $ac_compile) 2>&5
15257   ac_status=$?
15258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259   (exit $ac_status); } &&
15260          { ac_try='test -s conftest.$ac_objext'
15261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262   (eval $ac_try) 2>&5
15263   ac_status=$?
15264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265   (exit $ac_status); }; }; then
15266   ac_hi=$ac_mid
15267 else
15268   echo "$as_me: failed program was:" >&5
15269 cat conftest.$ac_ext >&5
15270 ac_lo=`expr '(' $ac_mid ')' + 1`
15271 fi
15272 rm -f conftest.$ac_objext conftest.$ac_ext
15273 done
15274 case $ac_lo in
15275 ?*) pgac_cv_alignof_long=$ac_lo;;
15276 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15277 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15278    { (exit 1); exit 1; }; } ;;
15279 esac
15280 else
15281   if test "$cross_compiling" = yes; then
15282   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15283 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15284    { (exit 1); exit 1; }; }
15285 else
15286   cat >conftest.$ac_ext <<_ACEOF
15287 #line $LINENO "configure"
15288 #include "confdefs.h"
15289 $ac_includes_default
15290 struct { char filler; long field; } pgac_struct;
15291 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15292 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15293 #include <stdio.h>
15294 #include <stdlib.h>
15295 #ifdef F77_DUMMY_MAIN
15296 #  ifdef __cplusplus
15297      extern "C"
15298 #  endif
15299    int F77_DUMMY_MAIN() { return 1; }
15300 #endif
15301 int
15302 main ()
15303 {
15304
15305   FILE *f = fopen ("conftest.val", "w");
15306   if (! f)
15307     exit (1);
15308   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15309     {
15310       long i = longval ();
15311       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15312         exit (1);
15313       fprintf (f, "%ld\n", i);
15314     }
15315   else
15316     {
15317       unsigned long i = ulongval ();
15318       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15319         exit (1);
15320       fprintf (f, "%lu\n", i);
15321     }
15322   exit (ferror (f) || fclose (f) != 0);
15323
15324   ;
15325   return 0;
15326 }
15327 _ACEOF
15328 rm -f conftest$ac_exeext
15329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15330   (eval $ac_link) 2>&5
15331   ac_status=$?
15332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15335   (eval $ac_try) 2>&5
15336   ac_status=$?
15337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338   (exit $ac_status); }; }; then
15339   pgac_cv_alignof_long=`cat conftest.val`
15340 else
15341   echo "$as_me: program exited with status $ac_status" >&5
15342 echo "$as_me: failed program was:" >&5
15343 cat conftest.$ac_ext >&5
15344 ( exit $ac_status )
15345 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15346 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15347    { (exit 1); exit 1; }; }
15348 fi
15349 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15350 fi
15351 fi
15352 rm -f conftest.val
15353 else
15354   pgac_cv_alignof_long=0
15355 fi
15356 fi
15357 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
15358 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
15359 cat >>confdefs.h <<_ACEOF
15360 #define ALIGNOF_LONG $pgac_cv_alignof_long
15361 _ACEOF
15362
15363
15364 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
15365   echo "$as_me:$LINENO: checking for long long int" >&5
15366 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15367 if test "${ac_cv_type_long_long_int+set}" = set; then
15368   echo $ECHO_N "(cached) $ECHO_C" >&6
15369 else
15370   cat >conftest.$ac_ext <<_ACEOF
15371 #line $LINENO "configure"
15372 #include "confdefs.h"
15373 $ac_includes_default
15374 #ifdef F77_DUMMY_MAIN
15375 #  ifdef __cplusplus
15376      extern "C"
15377 #  endif
15378    int F77_DUMMY_MAIN() { return 1; }
15379 #endif
15380 int
15381 main ()
15382 {
15383 if ((long long int *) 0)
15384   return 0;
15385 if (sizeof (long long int))
15386   return 0;
15387   ;
15388   return 0;
15389 }
15390 _ACEOF
15391 rm -f conftest.$ac_objext
15392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15393   (eval $ac_compile) 2>&5
15394   ac_status=$?
15395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396   (exit $ac_status); } &&
15397          { ac_try='test -s conftest.$ac_objext'
15398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15399   (eval $ac_try) 2>&5
15400   ac_status=$?
15401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402   (exit $ac_status); }; }; then
15403   ac_cv_type_long_long_int=yes
15404 else
15405   echo "$as_me: failed program was:" >&5
15406 cat conftest.$ac_ext >&5
15407 ac_cv_type_long_long_int=no
15408 fi
15409 rm -f conftest.$ac_objext conftest.$ac_ext
15410 fi
15411 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15412 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15413
15414 echo "$as_me:$LINENO: checking alignment of long long int" >&5
15415 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
15416 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
15417   echo $ECHO_N "(cached) $ECHO_C" >&6
15418 else
15419   if test "$ac_cv_type_long_long_int" = yes; then
15420   if test "$cross_compiling" = yes; then
15421   # Depending upon the size, compute the lo and hi bounds.
15422 cat >conftest.$ac_ext <<_ACEOF
15423 #line $LINENO "configure"
15424 #include "confdefs.h"
15425 $ac_includes_default
15426 struct { char filler; long long int field; } pgac_struct;
15427 #ifdef F77_DUMMY_MAIN
15428 #  ifdef __cplusplus
15429      extern "C"
15430 #  endif
15431    int F77_DUMMY_MAIN() { return 1; }
15432 #endif
15433 int
15434 main ()
15435 {
15436 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15437 test_array [0] = 0
15438
15439   ;
15440   return 0;
15441 }
15442 _ACEOF
15443 rm -f conftest.$ac_objext
15444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15445   (eval $ac_compile) 2>&5
15446   ac_status=$?
15447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448   (exit $ac_status); } &&
15449          { ac_try='test -s conftest.$ac_objext'
15450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451   (eval $ac_try) 2>&5
15452   ac_status=$?
15453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454   (exit $ac_status); }; }; then
15455   ac_lo=0 ac_mid=0
15456   while :; do
15457     cat >conftest.$ac_ext <<_ACEOF
15458 #line $LINENO "configure"
15459 #include "confdefs.h"
15460 $ac_includes_default
15461 struct { char filler; long long int field; } pgac_struct;
15462 #ifdef F77_DUMMY_MAIN
15463 #  ifdef __cplusplus
15464      extern "C"
15465 #  endif
15466    int F77_DUMMY_MAIN() { return 1; }
15467 #endif
15468 int
15469 main ()
15470 {
15471 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15472 test_array [0] = 0
15473
15474   ;
15475   return 0;
15476 }
15477 _ACEOF
15478 rm -f conftest.$ac_objext
15479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15480   (eval $ac_compile) 2>&5
15481   ac_status=$?
15482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483   (exit $ac_status); } &&
15484          { ac_try='test -s conftest.$ac_objext'
15485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15486   (eval $ac_try) 2>&5
15487   ac_status=$?
15488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489   (exit $ac_status); }; }; then
15490   ac_hi=$ac_mid; break
15491 else
15492   echo "$as_me: failed program was:" >&5
15493 cat conftest.$ac_ext >&5
15494 ac_lo=`expr $ac_mid + 1`
15495                     if test $ac_lo -le $ac_mid; then
15496                       ac_lo= ac_hi=
15497                       break
15498                     fi
15499                     ac_mid=`expr 2 '*' $ac_mid + 1`
15500 fi
15501 rm -f conftest.$ac_objext conftest.$ac_ext
15502   done
15503 else
15504   echo "$as_me: failed program was:" >&5
15505 cat conftest.$ac_ext >&5
15506 cat >conftest.$ac_ext <<_ACEOF
15507 #line $LINENO "configure"
15508 #include "confdefs.h"
15509 $ac_includes_default
15510 struct { char filler; long long int field; } pgac_struct;
15511 #ifdef F77_DUMMY_MAIN
15512 #  ifdef __cplusplus
15513      extern "C"
15514 #  endif
15515    int F77_DUMMY_MAIN() { return 1; }
15516 #endif
15517 int
15518 main ()
15519 {
15520 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15521 test_array [0] = 0
15522
15523   ;
15524   return 0;
15525 }
15526 _ACEOF
15527 rm -f conftest.$ac_objext
15528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15529   (eval $ac_compile) 2>&5
15530   ac_status=$?
15531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532   (exit $ac_status); } &&
15533          { ac_try='test -s conftest.$ac_objext'
15534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15535   (eval $ac_try) 2>&5
15536   ac_status=$?
15537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538   (exit $ac_status); }; }; then
15539   ac_hi=-1 ac_mid=-1
15540   while :; do
15541     cat >conftest.$ac_ext <<_ACEOF
15542 #line $LINENO "configure"
15543 #include "confdefs.h"
15544 $ac_includes_default
15545 struct { char filler; long long int field; } pgac_struct;
15546 #ifdef F77_DUMMY_MAIN
15547 #  ifdef __cplusplus
15548      extern "C"
15549 #  endif
15550    int F77_DUMMY_MAIN() { return 1; }
15551 #endif
15552 int
15553 main ()
15554 {
15555 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15556 test_array [0] = 0
15557
15558   ;
15559   return 0;
15560 }
15561 _ACEOF
15562 rm -f conftest.$ac_objext
15563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15564   (eval $ac_compile) 2>&5
15565   ac_status=$?
15566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567   (exit $ac_status); } &&
15568          { ac_try='test -s conftest.$ac_objext'
15569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570   (eval $ac_try) 2>&5
15571   ac_status=$?
15572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573   (exit $ac_status); }; }; then
15574   ac_lo=$ac_mid; break
15575 else
15576   echo "$as_me: failed program was:" >&5
15577 cat conftest.$ac_ext >&5
15578 ac_hi=`expr '(' $ac_mid ')' - 1`
15579                        if test $ac_mid -le $ac_hi; then
15580                          ac_lo= ac_hi=
15581                          break
15582                        fi
15583                        ac_mid=`expr 2 '*' $ac_mid`
15584 fi
15585 rm -f conftest.$ac_objext conftest.$ac_ext
15586   done
15587 else
15588   echo "$as_me: failed program was:" >&5
15589 cat conftest.$ac_ext >&5
15590 ac_lo= ac_hi=
15591 fi
15592 rm -f conftest.$ac_objext conftest.$ac_ext
15593 fi
15594 rm -f conftest.$ac_objext conftest.$ac_ext
15595 # Binary search between lo and hi bounds.
15596 while test "x$ac_lo" != "x$ac_hi"; do
15597   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15598   cat >conftest.$ac_ext <<_ACEOF
15599 #line $LINENO "configure"
15600 #include "confdefs.h"
15601 $ac_includes_default
15602 struct { char filler; long long int field; } pgac_struct;
15603 #ifdef F77_DUMMY_MAIN
15604 #  ifdef __cplusplus
15605      extern "C"
15606 #  endif
15607    int F77_DUMMY_MAIN() { return 1; }
15608 #endif
15609 int
15610 main ()
15611 {
15612 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15613 test_array [0] = 0
15614
15615   ;
15616   return 0;
15617 }
15618 _ACEOF
15619 rm -f conftest.$ac_objext
15620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15621   (eval $ac_compile) 2>&5
15622   ac_status=$?
15623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624   (exit $ac_status); } &&
15625          { ac_try='test -s conftest.$ac_objext'
15626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627   (eval $ac_try) 2>&5
15628   ac_status=$?
15629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630   (exit $ac_status); }; }; then
15631   ac_hi=$ac_mid
15632 else
15633   echo "$as_me: failed program was:" >&5
15634 cat conftest.$ac_ext >&5
15635 ac_lo=`expr '(' $ac_mid ')' + 1`
15636 fi
15637 rm -f conftest.$ac_objext conftest.$ac_ext
15638 done
15639 case $ac_lo in
15640 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
15641 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15642 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15643    { (exit 1); exit 1; }; } ;;
15644 esac
15645 else
15646   if test "$cross_compiling" = yes; then
15647   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15648 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15649    { (exit 1); exit 1; }; }
15650 else
15651   cat >conftest.$ac_ext <<_ACEOF
15652 #line $LINENO "configure"
15653 #include "confdefs.h"
15654 $ac_includes_default
15655 struct { char filler; long long int field; } pgac_struct;
15656 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15657 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15658 #include <stdio.h>
15659 #include <stdlib.h>
15660 #ifdef F77_DUMMY_MAIN
15661 #  ifdef __cplusplus
15662      extern "C"
15663 #  endif
15664    int F77_DUMMY_MAIN() { return 1; }
15665 #endif
15666 int
15667 main ()
15668 {
15669
15670   FILE *f = fopen ("conftest.val", "w");
15671   if (! f)
15672     exit (1);
15673   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15674     {
15675       long i = longval ();
15676       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15677         exit (1);
15678       fprintf (f, "%ld\n", i);
15679     }
15680   else
15681     {
15682       unsigned long i = ulongval ();
15683       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15684         exit (1);
15685       fprintf (f, "%lu\n", i);
15686     }
15687   exit (ferror (f) || fclose (f) != 0);
15688
15689   ;
15690   return 0;
15691 }
15692 _ACEOF
15693 rm -f conftest$ac_exeext
15694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15695   (eval $ac_link) 2>&5
15696   ac_status=$?
15697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15700   (eval $ac_try) 2>&5
15701   ac_status=$?
15702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703   (exit $ac_status); }; }; then
15704   pgac_cv_alignof_long_long_int=`cat conftest.val`
15705 else
15706   echo "$as_me: program exited with status $ac_status" >&5
15707 echo "$as_me: failed program was:" >&5
15708 cat conftest.$ac_ext >&5
15709 ( exit $ac_status )
15710 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15711 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15712    { (exit 1); exit 1; }; }
15713 fi
15714 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15715 fi
15716 fi
15717 rm -f conftest.val
15718 else
15719   pgac_cv_alignof_long_long_int=0
15720 fi
15721 fi
15722 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
15723 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
15724 cat >>confdefs.h <<_ACEOF
15725 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
15726 _ACEOF
15727
15728
15729 fi
15730 echo "$as_me:$LINENO: checking for double" >&5
15731 echo $ECHO_N "checking for double... $ECHO_C" >&6
15732 if test "${ac_cv_type_double+set}" = set; then
15733   echo $ECHO_N "(cached) $ECHO_C" >&6
15734 else
15735   cat >conftest.$ac_ext <<_ACEOF
15736 #line $LINENO "configure"
15737 #include "confdefs.h"
15738 $ac_includes_default
15739 #ifdef F77_DUMMY_MAIN
15740 #  ifdef __cplusplus
15741      extern "C"
15742 #  endif
15743    int F77_DUMMY_MAIN() { return 1; }
15744 #endif
15745 int
15746 main ()
15747 {
15748 if ((double *) 0)
15749   return 0;
15750 if (sizeof (double))
15751   return 0;
15752   ;
15753   return 0;
15754 }
15755 _ACEOF
15756 rm -f conftest.$ac_objext
15757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15758   (eval $ac_compile) 2>&5
15759   ac_status=$?
15760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761   (exit $ac_status); } &&
15762          { ac_try='test -s conftest.$ac_objext'
15763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15764   (eval $ac_try) 2>&5
15765   ac_status=$?
15766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767   (exit $ac_status); }; }; then
15768   ac_cv_type_double=yes
15769 else
15770   echo "$as_me: failed program was:" >&5
15771 cat conftest.$ac_ext >&5
15772 ac_cv_type_double=no
15773 fi
15774 rm -f conftest.$ac_objext conftest.$ac_ext
15775 fi
15776 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15777 echo "${ECHO_T}$ac_cv_type_double" >&6
15778
15779 echo "$as_me:$LINENO: checking alignment of double" >&5
15780 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15781 if test "${pgac_cv_alignof_double+set}" = set; then
15782   echo $ECHO_N "(cached) $ECHO_C" >&6
15783 else
15784   if test "$ac_cv_type_double" = yes; then
15785   if test "$cross_compiling" = yes; then
15786   # Depending upon the size, compute the lo and hi bounds.
15787 cat >conftest.$ac_ext <<_ACEOF
15788 #line $LINENO "configure"
15789 #include "confdefs.h"
15790 $ac_includes_default
15791 struct { char filler; double field; } pgac_struct;
15792 #ifdef F77_DUMMY_MAIN
15793 #  ifdef __cplusplus
15794      extern "C"
15795 #  endif
15796    int F77_DUMMY_MAIN() { return 1; }
15797 #endif
15798 int
15799 main ()
15800 {
15801 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15802 test_array [0] = 0
15803
15804   ;
15805   return 0;
15806 }
15807 _ACEOF
15808 rm -f conftest.$ac_objext
15809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15810   (eval $ac_compile) 2>&5
15811   ac_status=$?
15812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813   (exit $ac_status); } &&
15814          { ac_try='test -s conftest.$ac_objext'
15815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15816   (eval $ac_try) 2>&5
15817   ac_status=$?
15818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819   (exit $ac_status); }; }; then
15820   ac_lo=0 ac_mid=0
15821   while :; do
15822     cat >conftest.$ac_ext <<_ACEOF
15823 #line $LINENO "configure"
15824 #include "confdefs.h"
15825 $ac_includes_default
15826 struct { char filler; double field; } pgac_struct;
15827 #ifdef F77_DUMMY_MAIN
15828 #  ifdef __cplusplus
15829      extern "C"
15830 #  endif
15831    int F77_DUMMY_MAIN() { return 1; }
15832 #endif
15833 int
15834 main ()
15835 {
15836 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15837 test_array [0] = 0
15838
15839   ;
15840   return 0;
15841 }
15842 _ACEOF
15843 rm -f conftest.$ac_objext
15844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15845   (eval $ac_compile) 2>&5
15846   ac_status=$?
15847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848   (exit $ac_status); } &&
15849          { ac_try='test -s conftest.$ac_objext'
15850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15851   (eval $ac_try) 2>&5
15852   ac_status=$?
15853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854   (exit $ac_status); }; }; then
15855   ac_hi=$ac_mid; break
15856 else
15857   echo "$as_me: failed program was:" >&5
15858 cat conftest.$ac_ext >&5
15859 ac_lo=`expr $ac_mid + 1`
15860                     if test $ac_lo -le $ac_mid; then
15861                       ac_lo= ac_hi=
15862                       break
15863                     fi
15864                     ac_mid=`expr 2 '*' $ac_mid + 1`
15865 fi
15866 rm -f conftest.$ac_objext conftest.$ac_ext
15867   done
15868 else
15869   echo "$as_me: failed program was:" >&5
15870 cat conftest.$ac_ext >&5
15871 cat >conftest.$ac_ext <<_ACEOF
15872 #line $LINENO "configure"
15873 #include "confdefs.h"
15874 $ac_includes_default
15875 struct { char filler; double field; } pgac_struct;
15876 #ifdef F77_DUMMY_MAIN
15877 #  ifdef __cplusplus
15878      extern "C"
15879 #  endif
15880    int F77_DUMMY_MAIN() { return 1; }
15881 #endif
15882 int
15883 main ()
15884 {
15885 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15886 test_array [0] = 0
15887
15888   ;
15889   return 0;
15890 }
15891 _ACEOF
15892 rm -f conftest.$ac_objext
15893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15894   (eval $ac_compile) 2>&5
15895   ac_status=$?
15896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897   (exit $ac_status); } &&
15898          { ac_try='test -s conftest.$ac_objext'
15899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15900   (eval $ac_try) 2>&5
15901   ac_status=$?
15902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903   (exit $ac_status); }; }; then
15904   ac_hi=-1 ac_mid=-1
15905   while :; do
15906     cat >conftest.$ac_ext <<_ACEOF
15907 #line $LINENO "configure"
15908 #include "confdefs.h"
15909 $ac_includes_default
15910 struct { char filler; double field; } pgac_struct;
15911 #ifdef F77_DUMMY_MAIN
15912 #  ifdef __cplusplus
15913      extern "C"
15914 #  endif
15915    int F77_DUMMY_MAIN() { return 1; }
15916 #endif
15917 int
15918 main ()
15919 {
15920 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15921 test_array [0] = 0
15922
15923   ;
15924   return 0;
15925 }
15926 _ACEOF
15927 rm -f conftest.$ac_objext
15928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15929   (eval $ac_compile) 2>&5
15930   ac_status=$?
15931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932   (exit $ac_status); } &&
15933          { ac_try='test -s conftest.$ac_objext'
15934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15935   (eval $ac_try) 2>&5
15936   ac_status=$?
15937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938   (exit $ac_status); }; }; then
15939   ac_lo=$ac_mid; break
15940 else
15941   echo "$as_me: failed program was:" >&5
15942 cat conftest.$ac_ext >&5
15943 ac_hi=`expr '(' $ac_mid ')' - 1`
15944                        if test $ac_mid -le $ac_hi; then
15945                          ac_lo= ac_hi=
15946                          break
15947                        fi
15948                        ac_mid=`expr 2 '*' $ac_mid`
15949 fi
15950 rm -f conftest.$ac_objext conftest.$ac_ext
15951   done
15952 else
15953   echo "$as_me: failed program was:" >&5
15954 cat conftest.$ac_ext >&5
15955 ac_lo= ac_hi=
15956 fi
15957 rm -f conftest.$ac_objext conftest.$ac_ext
15958 fi
15959 rm -f conftest.$ac_objext conftest.$ac_ext
15960 # Binary search between lo and hi bounds.
15961 while test "x$ac_lo" != "x$ac_hi"; do
15962   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15963   cat >conftest.$ac_ext <<_ACEOF
15964 #line $LINENO "configure"
15965 #include "confdefs.h"
15966 $ac_includes_default
15967 struct { char filler; double field; } pgac_struct;
15968 #ifdef F77_DUMMY_MAIN
15969 #  ifdef __cplusplus
15970      extern "C"
15971 #  endif
15972    int F77_DUMMY_MAIN() { return 1; }
15973 #endif
15974 int
15975 main ()
15976 {
15977 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15978 test_array [0] = 0
15979
15980   ;
15981   return 0;
15982 }
15983 _ACEOF
15984 rm -f conftest.$ac_objext
15985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15986   (eval $ac_compile) 2>&5
15987   ac_status=$?
15988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989   (exit $ac_status); } &&
15990          { ac_try='test -s conftest.$ac_objext'
15991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15992   (eval $ac_try) 2>&5
15993   ac_status=$?
15994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995   (exit $ac_status); }; }; then
15996   ac_hi=$ac_mid
15997 else
15998   echo "$as_me: failed program was:" >&5
15999 cat conftest.$ac_ext >&5
16000 ac_lo=`expr '(' $ac_mid ')' + 1`
16001 fi
16002 rm -f conftest.$ac_objext conftest.$ac_ext
16003 done
16004 case $ac_lo in
16005 ?*) pgac_cv_alignof_double=$ac_lo;;
16006 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16007 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16008    { (exit 1); exit 1; }; } ;;
16009 esac
16010 else
16011   if test "$cross_compiling" = yes; then
16012   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16013 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16014    { (exit 1); exit 1; }; }
16015 else
16016   cat >conftest.$ac_ext <<_ACEOF
16017 #line $LINENO "configure"
16018 #include "confdefs.h"
16019 $ac_includes_default
16020 struct { char filler; double field; } pgac_struct;
16021 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16022 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16023 #include <stdio.h>
16024 #include <stdlib.h>
16025 #ifdef F77_DUMMY_MAIN
16026 #  ifdef __cplusplus
16027      extern "C"
16028 #  endif
16029    int F77_DUMMY_MAIN() { return 1; }
16030 #endif
16031 int
16032 main ()
16033 {
16034
16035   FILE *f = fopen ("conftest.val", "w");
16036   if (! f)
16037     exit (1);
16038   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16039     {
16040       long i = longval ();
16041       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16042         exit (1);
16043       fprintf (f, "%ld\n", i);
16044     }
16045   else
16046     {
16047       unsigned long i = ulongval ();
16048       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16049         exit (1);
16050       fprintf (f, "%lu\n", i);
16051     }
16052   exit (ferror (f) || fclose (f) != 0);
16053
16054   ;
16055   return 0;
16056 }
16057 _ACEOF
16058 rm -f conftest$ac_exeext
16059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16060   (eval $ac_link) 2>&5
16061   ac_status=$?
16062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16065   (eval $ac_try) 2>&5
16066   ac_status=$?
16067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068   (exit $ac_status); }; }; then
16069   pgac_cv_alignof_double=`cat conftest.val`
16070 else
16071   echo "$as_me: program exited with status $ac_status" >&5
16072 echo "$as_me: failed program was:" >&5
16073 cat conftest.$ac_ext >&5
16074 ( exit $ac_status )
16075 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16076 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16077    { (exit 1); exit 1; }; }
16078 fi
16079 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16080 fi
16081 fi
16082 rm -f conftest.val
16083 else
16084   pgac_cv_alignof_double=0
16085 fi
16086 fi
16087 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
16088 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
16089 cat >>confdefs.h <<_ACEOF
16090 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
16091 _ACEOF
16092
16093
16094
16095 # Compute maximum alignment of any basic type.
16096 # We assume long's alignment is at least as strong as char, short, or int;
16097 # but we must check long long (if it exists) and double.
16098
16099 MAX_ALIGNOF=$pgac_cv_alignof_long
16100 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
16101   MAX_ALIGNOF=$pgac_cv_alignof_double
16102 fi
16103 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
16104   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
16105 fi
16106
16107 cat >>confdefs.h <<_ACEOF
16108 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16109 _ACEOF
16110
16111
16112
16113 # Some platforms predefine the types int8, int16, etc.  Only check
16114 # a (hopefully) representative subset.
16115 echo "$as_me:$LINENO: checking for int8" >&5
16116 echo $ECHO_N "checking for int8... $ECHO_C" >&6
16117 if test "${ac_cv_type_int8+set}" = set; then
16118   echo $ECHO_N "(cached) $ECHO_C" >&6
16119 else
16120   cat >conftest.$ac_ext <<_ACEOF
16121 #line $LINENO "configure"
16122 #include "confdefs.h"
16123 #include <stdio.h>
16124 #ifdef HAVE_SUPPORTDEFS_H
16125 #include <SupportDefs.h>
16126 #endif
16127
16128 #ifdef F77_DUMMY_MAIN
16129 #  ifdef __cplusplus
16130      extern "C"
16131 #  endif
16132    int F77_DUMMY_MAIN() { return 1; }
16133 #endif
16134 int
16135 main ()
16136 {
16137 if ((int8 *) 0)
16138   return 0;
16139 if (sizeof (int8))
16140   return 0;
16141   ;
16142   return 0;
16143 }
16144 _ACEOF
16145 rm -f conftest.$ac_objext
16146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16147   (eval $ac_compile) 2>&5
16148   ac_status=$?
16149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150   (exit $ac_status); } &&
16151          { ac_try='test -s conftest.$ac_objext'
16152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153   (eval $ac_try) 2>&5
16154   ac_status=$?
16155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156   (exit $ac_status); }; }; then
16157   ac_cv_type_int8=yes
16158 else
16159   echo "$as_me: failed program was:" >&5
16160 cat conftest.$ac_ext >&5
16161 ac_cv_type_int8=no
16162 fi
16163 rm -f conftest.$ac_objext conftest.$ac_ext
16164 fi
16165 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
16166 echo "${ECHO_T}$ac_cv_type_int8" >&6
16167 if test $ac_cv_type_int8 = yes; then
16168
16169 cat >>confdefs.h <<_ACEOF
16170 #define HAVE_INT8 1
16171 _ACEOF
16172
16173
16174 fi
16175 echo "$as_me:$LINENO: checking for uint8" >&5
16176 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
16177 if test "${ac_cv_type_uint8+set}" = set; then
16178   echo $ECHO_N "(cached) $ECHO_C" >&6
16179 else
16180   cat >conftest.$ac_ext <<_ACEOF
16181 #line $LINENO "configure"
16182 #include "confdefs.h"
16183 #include <stdio.h>
16184 #ifdef HAVE_SUPPORTDEFS_H
16185 #include <SupportDefs.h>
16186 #endif
16187
16188 #ifdef F77_DUMMY_MAIN
16189 #  ifdef __cplusplus
16190      extern "C"
16191 #  endif
16192    int F77_DUMMY_MAIN() { return 1; }
16193 #endif
16194 int
16195 main ()
16196 {
16197 if ((uint8 *) 0)
16198   return 0;
16199 if (sizeof (uint8))
16200   return 0;
16201   ;
16202   return 0;
16203 }
16204 _ACEOF
16205 rm -f conftest.$ac_objext
16206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16207   (eval $ac_compile) 2>&5
16208   ac_status=$?
16209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210   (exit $ac_status); } &&
16211          { ac_try='test -s conftest.$ac_objext'
16212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16213   (eval $ac_try) 2>&5
16214   ac_status=$?
16215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216   (exit $ac_status); }; }; then
16217   ac_cv_type_uint8=yes
16218 else
16219   echo "$as_me: failed program was:" >&5
16220 cat conftest.$ac_ext >&5
16221 ac_cv_type_uint8=no
16222 fi
16223 rm -f conftest.$ac_objext conftest.$ac_ext
16224 fi
16225 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
16226 echo "${ECHO_T}$ac_cv_type_uint8" >&6
16227 if test $ac_cv_type_uint8 = yes; then
16228
16229 cat >>confdefs.h <<_ACEOF
16230 #define HAVE_UINT8 1
16231 _ACEOF
16232
16233
16234 fi
16235 echo "$as_me:$LINENO: checking for int64" >&5
16236 echo $ECHO_N "checking for int64... $ECHO_C" >&6
16237 if test "${ac_cv_type_int64+set}" = set; then
16238   echo $ECHO_N "(cached) $ECHO_C" >&6
16239 else
16240   cat >conftest.$ac_ext <<_ACEOF
16241 #line $LINENO "configure"
16242 #include "confdefs.h"
16243 #include <stdio.h>
16244 #ifdef HAVE_SUPPORTDEFS_H
16245 #include <SupportDefs.h>
16246 #endif
16247
16248 #ifdef F77_DUMMY_MAIN
16249 #  ifdef __cplusplus
16250      extern "C"
16251 #  endif
16252    int F77_DUMMY_MAIN() { return 1; }
16253 #endif
16254 int
16255 main ()
16256 {
16257 if ((int64 *) 0)
16258   return 0;
16259 if (sizeof (int64))
16260   return 0;
16261   ;
16262   return 0;
16263 }
16264 _ACEOF
16265 rm -f conftest.$ac_objext
16266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16267   (eval $ac_compile) 2>&5
16268   ac_status=$?
16269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270   (exit $ac_status); } &&
16271          { ac_try='test -s conftest.$ac_objext'
16272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273   (eval $ac_try) 2>&5
16274   ac_status=$?
16275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276   (exit $ac_status); }; }; then
16277   ac_cv_type_int64=yes
16278 else
16279   echo "$as_me: failed program was:" >&5
16280 cat conftest.$ac_ext >&5
16281 ac_cv_type_int64=no
16282 fi
16283 rm -f conftest.$ac_objext conftest.$ac_ext
16284 fi
16285 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
16286 echo "${ECHO_T}$ac_cv_type_int64" >&6
16287 if test $ac_cv_type_int64 = yes; then
16288
16289 cat >>confdefs.h <<_ACEOF
16290 #define HAVE_INT64 1
16291 _ACEOF
16292
16293
16294 fi
16295 echo "$as_me:$LINENO: checking for uint64" >&5
16296 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
16297 if test "${ac_cv_type_uint64+set}" = set; then
16298   echo $ECHO_N "(cached) $ECHO_C" >&6
16299 else
16300   cat >conftest.$ac_ext <<_ACEOF
16301 #line $LINENO "configure"
16302 #include "confdefs.h"
16303 #include <stdio.h>
16304 #ifdef HAVE_SUPPORTDEFS_H
16305 #include <SupportDefs.h>
16306 #endif
16307
16308 #ifdef F77_DUMMY_MAIN
16309 #  ifdef __cplusplus
16310      extern "C"
16311 #  endif
16312    int F77_DUMMY_MAIN() { return 1; }
16313 #endif
16314 int
16315 main ()
16316 {
16317 if ((uint64 *) 0)
16318   return 0;
16319 if (sizeof (uint64))
16320   return 0;
16321   ;
16322   return 0;
16323 }
16324 _ACEOF
16325 rm -f conftest.$ac_objext
16326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16327   (eval $ac_compile) 2>&5
16328   ac_status=$?
16329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330   (exit $ac_status); } &&
16331          { ac_try='test -s conftest.$ac_objext'
16332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16333   (eval $ac_try) 2>&5
16334   ac_status=$?
16335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336   (exit $ac_status); }; }; then
16337   ac_cv_type_uint64=yes
16338 else
16339   echo "$as_me: failed program was:" >&5
16340 cat conftest.$ac_ext >&5
16341 ac_cv_type_uint64=no
16342 fi
16343 rm -f conftest.$ac_objext conftest.$ac_ext
16344 fi
16345 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
16346 echo "${ECHO_T}$ac_cv_type_uint64" >&6
16347 if test $ac_cv_type_uint64 = yes; then
16348
16349 cat >>confdefs.h <<_ACEOF
16350 #define HAVE_UINT64 1
16351 _ACEOF
16352
16353
16354 fi
16355
16356
16357 # We also check for sig_atomic_t, which *should* be defined per ANSI
16358 # C, but is missing on some old platforms.
16359 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
16360 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
16361 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
16362   echo $ECHO_N "(cached) $ECHO_C" >&6
16363 else
16364   cat >conftest.$ac_ext <<_ACEOF
16365 #line $LINENO "configure"
16366 #include "confdefs.h"
16367 #include <signal.h>
16368
16369 #ifdef F77_DUMMY_MAIN
16370 #  ifdef __cplusplus
16371      extern "C"
16372 #  endif
16373    int F77_DUMMY_MAIN() { return 1; }
16374 #endif
16375 int
16376 main ()
16377 {
16378 if ((sig_atomic_t *) 0)
16379   return 0;
16380 if (sizeof (sig_atomic_t))
16381   return 0;
16382   ;
16383   return 0;
16384 }
16385 _ACEOF
16386 rm -f conftest.$ac_objext
16387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16388   (eval $ac_compile) 2>&5
16389   ac_status=$?
16390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391   (exit $ac_status); } &&
16392          { ac_try='test -s conftest.$ac_objext'
16393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16394   (eval $ac_try) 2>&5
16395   ac_status=$?
16396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397   (exit $ac_status); }; }; then
16398   ac_cv_type_sig_atomic_t=yes
16399 else
16400   echo "$as_me: failed program was:" >&5
16401 cat conftest.$ac_ext >&5
16402 ac_cv_type_sig_atomic_t=no
16403 fi
16404 rm -f conftest.$ac_objext conftest.$ac_ext
16405 fi
16406 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
16407 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
16408 if test $ac_cv_type_sig_atomic_t = yes; then
16409
16410 cat >>confdefs.h <<_ACEOF
16411 #define HAVE_SIG_ATOMIC_T 1
16412 _ACEOF
16413
16414
16415 fi
16416
16417
16418
16419 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
16420 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
16421 if test "${pgac_cv_func_posix_signals+set}" = set; then
16422   echo $ECHO_N "(cached) $ECHO_C" >&6
16423 else
16424   cat >conftest.$ac_ext <<_ACEOF
16425 #line $LINENO "configure"
16426 #include "confdefs.h"
16427 #include <signal.h>
16428
16429 #ifdef F77_DUMMY_MAIN
16430 #  ifdef __cplusplus
16431      extern "C"
16432 #  endif
16433    int F77_DUMMY_MAIN() { return 1; }
16434 #endif
16435 int
16436 main ()
16437 {
16438 struct sigaction act, oact;
16439 sigemptyset(&act.sa_mask);
16440 act.sa_flags = SA_RESTART;
16441 sigaction(0, &act, &oact);
16442   ;
16443   return 0;
16444 }
16445 _ACEOF
16446 rm -f conftest.$ac_objext conftest$ac_exeext
16447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16448   (eval $ac_link) 2>&5
16449   ac_status=$?
16450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451   (exit $ac_status); } &&
16452          { ac_try='test -s conftest$ac_exeext'
16453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454   (eval $ac_try) 2>&5
16455   ac_status=$?
16456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457   (exit $ac_status); }; }; then
16458   pgac_cv_func_posix_signals=yes
16459 else
16460   echo "$as_me: failed program was:" >&5
16461 cat conftest.$ac_ext >&5
16462 pgac_cv_func_posix_signals=no
16463 fi
16464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16465 fi
16466 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
16467 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
16468 if test x"$pgac_cv_func_posix_signals" = xyes ; then
16469
16470 cat >>confdefs.h <<\_ACEOF
16471 #define HAVE_POSIX_SIGNALS
16472 _ACEOF
16473
16474 fi
16475 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
16476
16477 if test $ac_cv_func_fseeko = yes; then
16478 # Check whether --enable-largefile or --disable-largefile was given.
16479 if test "${enable_largefile+set}" = set; then
16480   enableval="$enable_largefile"
16481
16482 fi;
16483 if test "$enable_largefile" != no; then
16484
16485   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16486 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
16487 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16488   echo $ECHO_N "(cached) $ECHO_C" >&6
16489 else
16490   ac_cv_sys_largefile_CC=no
16491      if test "$GCC" != yes; then
16492        ac_save_CC=$CC
16493        while :; do
16494          # IRIX 6.2 and later do not support large files by default,
16495          # so use the C compiler's -n32 option if that helps.
16496          cat >conftest.$ac_ext <<_ACEOF
16497 #line $LINENO "configure"
16498 #include "confdefs.h"
16499 #include <sys/types.h>
16500  /* Check that off_t can represent 2**63 - 1 correctly.
16501     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16502     since some C++ compilers masquerading as C compilers
16503     incorrectly reject 9223372036854775807.  */
16504 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16505   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16506                        && LARGE_OFF_T % 2147483647 == 1)
16507                       ? 1 : -1];
16508 #ifdef F77_DUMMY_MAIN
16509 #  ifdef __cplusplus
16510      extern "C"
16511 #  endif
16512    int F77_DUMMY_MAIN() { return 1; }
16513 #endif
16514 int
16515 main ()
16516 {
16517
16518   ;
16519   return 0;
16520 }
16521 _ACEOF
16522          rm -f conftest.$ac_objext
16523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16524   (eval $ac_compile) 2>&5
16525   ac_status=$?
16526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527   (exit $ac_status); } &&
16528          { ac_try='test -s conftest.$ac_objext'
16529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16530   (eval $ac_try) 2>&5
16531   ac_status=$?
16532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533   (exit $ac_status); }; }; then
16534   break
16535 else
16536   echo "$as_me: failed program was:" >&5
16537 cat conftest.$ac_ext >&5
16538 fi
16539 rm -f conftest.$ac_objext
16540          CC="$CC -n32"
16541          rm -f conftest.$ac_objext
16542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16543   (eval $ac_compile) 2>&5
16544   ac_status=$?
16545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546   (exit $ac_status); } &&
16547          { ac_try='test -s conftest.$ac_objext'
16548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16549   (eval $ac_try) 2>&5
16550   ac_status=$?
16551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552   (exit $ac_status); }; }; then
16553   ac_cv_sys_largefile_CC=' -n32'; break
16554 else
16555   echo "$as_me: failed program was:" >&5
16556 cat conftest.$ac_ext >&5
16557 fi
16558 rm -f conftest.$ac_objext
16559          break
16560        done
16561        CC=$ac_save_CC
16562        rm -f conftest.$ac_ext
16563     fi
16564 fi
16565 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16566 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16567   if test "$ac_cv_sys_largefile_CC" != no; then
16568     CC=$CC$ac_cv_sys_largefile_CC
16569   fi
16570
16571   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16572 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16573 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16574   echo $ECHO_N "(cached) $ECHO_C" >&6
16575 else
16576   while :; do
16577   ac_cv_sys_file_offset_bits=no
16578   cat >conftest.$ac_ext <<_ACEOF
16579 #line $LINENO "configure"
16580 #include "confdefs.h"
16581 #include <sys/types.h>
16582  /* Check that off_t can represent 2**63 - 1 correctly.
16583     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16584     since some C++ compilers masquerading as C compilers
16585     incorrectly reject 9223372036854775807.  */
16586 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16587   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16588                        && LARGE_OFF_T % 2147483647 == 1)
16589                       ? 1 : -1];
16590 #ifdef F77_DUMMY_MAIN
16591 #  ifdef __cplusplus
16592      extern "C"
16593 #  endif
16594    int F77_DUMMY_MAIN() { return 1; }
16595 #endif
16596 int
16597 main ()
16598 {
16599
16600   ;
16601   return 0;
16602 }
16603 _ACEOF
16604 rm -f conftest.$ac_objext
16605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16606   (eval $ac_compile) 2>&5
16607   ac_status=$?
16608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609   (exit $ac_status); } &&
16610          { ac_try='test -s conftest.$ac_objext'
16611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16612   (eval $ac_try) 2>&5
16613   ac_status=$?
16614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615   (exit $ac_status); }; }; then
16616   break
16617 else
16618   echo "$as_me: failed program was:" >&5
16619 cat conftest.$ac_ext >&5
16620 fi
16621 rm -f conftest.$ac_objext conftest.$ac_ext
16622   cat >conftest.$ac_ext <<_ACEOF
16623 #line $LINENO "configure"
16624 #include "confdefs.h"
16625 #define _FILE_OFFSET_BITS 64
16626 #include <sys/types.h>
16627  /* Check that off_t can represent 2**63 - 1 correctly.
16628     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16629     since some C++ compilers masquerading as C compilers
16630     incorrectly reject 9223372036854775807.  */
16631 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16632   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16633                        && LARGE_OFF_T % 2147483647 == 1)
16634                       ? 1 : -1];
16635 #ifdef F77_DUMMY_MAIN
16636 #  ifdef __cplusplus
16637      extern "C"
16638 #  endif
16639    int F77_DUMMY_MAIN() { return 1; }
16640 #endif
16641 int
16642 main ()
16643 {
16644
16645   ;
16646   return 0;
16647 }
16648 _ACEOF
16649 rm -f conftest.$ac_objext
16650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16651   (eval $ac_compile) 2>&5
16652   ac_status=$?
16653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654   (exit $ac_status); } &&
16655          { ac_try='test -s conftest.$ac_objext'
16656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16657   (eval $ac_try) 2>&5
16658   ac_status=$?
16659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660   (exit $ac_status); }; }; then
16661   ac_cv_sys_file_offset_bits=64; break
16662 else
16663   echo "$as_me: failed program was:" >&5
16664 cat conftest.$ac_ext >&5
16665 fi
16666 rm -f conftest.$ac_objext conftest.$ac_ext
16667   break
16668 done
16669 fi
16670 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16671 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16672 if test "$ac_cv_sys_file_offset_bits" != no; then
16673
16674 cat >>confdefs.h <<_ACEOF
16675 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16676 _ACEOF
16677
16678 fi
16679 rm -f conftest*
16680   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16681 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16682 if test "${ac_cv_sys_large_files+set}" = set; then
16683   echo $ECHO_N "(cached) $ECHO_C" >&6
16684 else
16685   while :; do
16686   ac_cv_sys_large_files=no
16687   cat >conftest.$ac_ext <<_ACEOF
16688 #line $LINENO "configure"
16689 #include "confdefs.h"
16690 #include <sys/types.h>
16691  /* Check that off_t can represent 2**63 - 1 correctly.
16692     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16693     since some C++ compilers masquerading as C compilers
16694     incorrectly reject 9223372036854775807.  */
16695 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16696   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16697                        && LARGE_OFF_T % 2147483647 == 1)
16698                       ? 1 : -1];
16699 #ifdef F77_DUMMY_MAIN
16700 #  ifdef __cplusplus
16701      extern "C"
16702 #  endif
16703    int F77_DUMMY_MAIN() { return 1; }
16704 #endif
16705 int
16706 main ()
16707 {
16708
16709   ;
16710   return 0;
16711 }
16712 _ACEOF
16713 rm -f conftest.$ac_objext
16714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16715   (eval $ac_compile) 2>&5
16716   ac_status=$?
16717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718   (exit $ac_status); } &&
16719          { ac_try='test -s conftest.$ac_objext'
16720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16721   (eval $ac_try) 2>&5
16722   ac_status=$?
16723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724   (exit $ac_status); }; }; then
16725   break
16726 else
16727   echo "$as_me: failed program was:" >&5
16728 cat conftest.$ac_ext >&5
16729 fi
16730 rm -f conftest.$ac_objext conftest.$ac_ext
16731   cat >conftest.$ac_ext <<_ACEOF
16732 #line $LINENO "configure"
16733 #include "confdefs.h"
16734 #define _LARGE_FILES 1
16735 #include <sys/types.h>
16736  /* Check that off_t can represent 2**63 - 1 correctly.
16737     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16738     since some C++ compilers masquerading as C compilers
16739     incorrectly reject 9223372036854775807.  */
16740 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16741   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16742                        && LARGE_OFF_T % 2147483647 == 1)
16743                       ? 1 : -1];
16744 #ifdef F77_DUMMY_MAIN
16745 #  ifdef __cplusplus
16746      extern "C"
16747 #  endif
16748    int F77_DUMMY_MAIN() { return 1; }
16749 #endif
16750 int
16751 main ()
16752 {
16753
16754   ;
16755   return 0;
16756 }
16757 _ACEOF
16758 rm -f conftest.$ac_objext
16759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16760   (eval $ac_compile) 2>&5
16761   ac_status=$?
16762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763   (exit $ac_status); } &&
16764          { ac_try='test -s conftest.$ac_objext'
16765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16766   (eval $ac_try) 2>&5
16767   ac_status=$?
16768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769   (exit $ac_status); }; }; then
16770   ac_cv_sys_large_files=1; break
16771 else
16772   echo "$as_me: failed program was:" >&5
16773 cat conftest.$ac_ext >&5
16774 fi
16775 rm -f conftest.$ac_objext conftest.$ac_ext
16776   break
16777 done
16778 fi
16779 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16780 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16781 if test "$ac_cv_sys_large_files" != no; then
16782
16783 cat >>confdefs.h <<_ACEOF
16784 #define _LARGE_FILES $ac_cv_sys_large_files
16785 _ACEOF
16786
16787 fi
16788 rm -f conftest*
16789 fi
16790
16791 fi
16792
16793
16794 # Select semaphore implementation type.
16795 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
16796
16797 cat >>confdefs.h <<\_ACEOF
16798 #define USE_NAMED_POSIX_SEMAPHORES 1
16799 _ACEOF
16800
16801   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16802 else
16803   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
16804
16805 cat >>confdefs.h <<\_ACEOF
16806 #define USE_UNNAMED_POSIX_SEMAPHORES 1
16807 _ACEOF
16808
16809     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16810   else
16811
16812 cat >>confdefs.h <<\_ACEOF
16813 #define USE_SYSV_SEMAPHORES 1
16814 _ACEOF
16815
16816     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
16817   fi
16818 fi
16819
16820
16821 # Select shared-memory implementation type.
16822
16823 cat >>confdefs.h <<\_ACEOF
16824 #define USE_SYSV_SHARED_MEMORY 1
16825 _ACEOF
16826
16827 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
16828
16829
16830 if test "$enable_nls" = yes ; then
16831
16832   echo "$as_me:$LINENO: checking for library containing gettext" >&5
16833 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
16834 if test "${ac_cv_search_gettext+set}" = set; then
16835   echo $ECHO_N "(cached) $ECHO_C" >&6
16836 else
16837   ac_func_search_save_LIBS=$LIBS
16838 ac_cv_search_gettext=no
16839 cat >conftest.$ac_ext <<_ACEOF
16840 #line $LINENO "configure"
16841 #include "confdefs.h"
16842
16843 /* Override any gcc2 internal prototype to avoid an error.  */
16844 #ifdef __cplusplus
16845 extern "C"
16846 #endif
16847 /* We use char because int might match the return type of a gcc2
16848    builtin and then its argument prototype would still apply.  */
16849 char gettext ();
16850 #ifdef F77_DUMMY_MAIN
16851 #  ifdef __cplusplus
16852      extern "C"
16853 #  endif
16854    int F77_DUMMY_MAIN() { return 1; }
16855 #endif
16856 int
16857 main ()
16858 {
16859 gettext ();
16860   ;
16861   return 0;
16862 }
16863 _ACEOF
16864 rm -f conftest.$ac_objext conftest$ac_exeext
16865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16866   (eval $ac_link) 2>&5
16867   ac_status=$?
16868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869   (exit $ac_status); } &&
16870          { ac_try='test -s conftest$ac_exeext'
16871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16872   (eval $ac_try) 2>&5
16873   ac_status=$?
16874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875   (exit $ac_status); }; }; then
16876   ac_cv_search_gettext="none required"
16877 else
16878   echo "$as_me: failed program was:" >&5
16879 cat conftest.$ac_ext >&5
16880 fi
16881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16882 if test "$ac_cv_search_gettext" = no; then
16883   for ac_lib in intl; do
16884     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16885     cat >conftest.$ac_ext <<_ACEOF
16886 #line $LINENO "configure"
16887 #include "confdefs.h"
16888
16889 /* Override any gcc2 internal prototype to avoid an error.  */
16890 #ifdef __cplusplus
16891 extern "C"
16892 #endif
16893 /* We use char because int might match the return type of a gcc2
16894    builtin and then its argument prototype would still apply.  */
16895 char gettext ();
16896 #ifdef F77_DUMMY_MAIN
16897 #  ifdef __cplusplus
16898      extern "C"
16899 #  endif
16900    int F77_DUMMY_MAIN() { return 1; }
16901 #endif
16902 int
16903 main ()
16904 {
16905 gettext ();
16906   ;
16907   return 0;
16908 }
16909 _ACEOF
16910 rm -f conftest.$ac_objext conftest$ac_exeext
16911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16912   (eval $ac_link) 2>&5
16913   ac_status=$?
16914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915   (exit $ac_status); } &&
16916          { ac_try='test -s conftest$ac_exeext'
16917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918   (eval $ac_try) 2>&5
16919   ac_status=$?
16920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921   (exit $ac_status); }; }; then
16922   ac_cv_search_gettext="-l$ac_lib"
16923 break
16924 else
16925   echo "$as_me: failed program was:" >&5
16926 cat conftest.$ac_ext >&5
16927 fi
16928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16929   done
16930 fi
16931 LIBS=$ac_func_search_save_LIBS
16932 fi
16933 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
16934 echo "${ECHO_T}$ac_cv_search_gettext" >&6
16935 if test "$ac_cv_search_gettext" != no; then
16936   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
16937
16938 else
16939   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
16940 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
16941    { (exit 1); exit 1; }; }
16942 fi
16943
16944   if test "${ac_cv_header_libintl_h+set}" = set; then
16945   echo "$as_me:$LINENO: checking for libintl.h" >&5
16946 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16947 if test "${ac_cv_header_libintl_h+set}" = set; then
16948   echo $ECHO_N "(cached) $ECHO_C" >&6
16949 fi
16950 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16951 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16952 else
16953   # Is the header compilable?
16954 echo "$as_me:$LINENO: checking libintl.h usability" >&5
16955 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
16956 cat >conftest.$ac_ext <<_ACEOF
16957 #line $LINENO "configure"
16958 #include "confdefs.h"
16959 $ac_includes_default
16960 #include <libintl.h>
16961 _ACEOF
16962 rm -f conftest.$ac_objext
16963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16964   (eval $ac_compile) 2>&5
16965   ac_status=$?
16966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967   (exit $ac_status); } &&
16968          { ac_try='test -s conftest.$ac_objext'
16969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16970   (eval $ac_try) 2>&5
16971   ac_status=$?
16972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973   (exit $ac_status); }; }; then
16974   ac_header_compiler=yes
16975 else
16976   echo "$as_me: failed program was:" >&5
16977 cat conftest.$ac_ext >&5
16978 ac_header_compiler=no
16979 fi
16980 rm -f conftest.$ac_objext conftest.$ac_ext
16981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16982 echo "${ECHO_T}$ac_header_compiler" >&6
16983
16984 # Is the header present?
16985 echo "$as_me:$LINENO: checking libintl.h presence" >&5
16986 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
16987 cat >conftest.$ac_ext <<_ACEOF
16988 #line $LINENO "configure"
16989 #include "confdefs.h"
16990 #include <libintl.h>
16991 _ACEOF
16992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16993   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16994   ac_status=$?
16995   egrep -v '^ *\+' conftest.er1 >conftest.err
16996   rm -f conftest.er1
16997   cat conftest.err >&5
16998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999   (exit $ac_status); } >/dev/null; then
17000   if test -s conftest.err; then
17001     ac_cpp_err=$ac_c_preproc_warn_flag
17002   else
17003     ac_cpp_err=
17004   fi
17005 else
17006   ac_cpp_err=yes
17007 fi
17008 if test -z "$ac_cpp_err"; then
17009   ac_header_preproc=yes
17010 else
17011   echo "$as_me: failed program was:" >&5
17012   cat conftest.$ac_ext >&5
17013   ac_header_preproc=no
17014 fi
17015 rm -f conftest.err conftest.$ac_ext
17016 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17017 echo "${ECHO_T}$ac_header_preproc" >&6
17018
17019 # So?  What about this header?
17020 case $ac_header_compiler:$ac_header_preproc in
17021   yes:no )
17022     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17023 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17024     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17025 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17026   no:yes )
17027     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
17028 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
17029     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
17030 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
17031     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17032 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17033 esac
17034 echo "$as_me:$LINENO: checking for libintl.h" >&5
17035 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17036 if test "${ac_cv_header_libintl_h+set}" = set; then
17037   echo $ECHO_N "(cached) $ECHO_C" >&6
17038 else
17039   ac_cv_header_libintl_h=$ac_header_preproc
17040 fi
17041 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17042 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17043
17044 fi
17045 if test $ac_cv_header_libintl_h = yes; then
17046   :
17047 else
17048   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
17049 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
17050    { (exit 1); exit 1; }; }
17051 fi
17052
17053
17054   for ac_prog in msgfmt
17055 do
17056   # Extract the first word of "$ac_prog", so it can be a program name with args.
17057 set dummy $ac_prog; ac_word=$2
17058 echo "$as_me:$LINENO: checking for $ac_word" >&5
17059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17060 if test "${ac_cv_prog_MSGFMT+set}" = set; then
17061   echo $ECHO_N "(cached) $ECHO_C" >&6
17062 else
17063   if test -n "$MSGFMT"; then
17064   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
17065 else
17066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17067 for as_dir in $PATH
17068 do
17069   IFS=$as_save_IFS
17070   test -z "$as_dir" && as_dir=.
17071   for ac_exec_ext in '' $ac_executable_extensions; do
17072   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17073     ac_cv_prog_MSGFMT="$ac_prog"
17074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17075     break 2
17076   fi
17077 done
17078 done
17079
17080 fi
17081 fi
17082 MSGFMT=$ac_cv_prog_MSGFMT
17083 if test -n "$MSGFMT"; then
17084   echo "$as_me:$LINENO: result: $MSGFMT" >&5
17085 echo "${ECHO_T}$MSGFMT" >&6
17086 else
17087   echo "$as_me:$LINENO: result: no" >&5
17088 echo "${ECHO_T}no" >&6
17089 fi
17090
17091   test -n "$MSGFMT" && break
17092 done
17093
17094   if test -z "$MSGFMT"; then
17095     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
17096 echo "$as_me: error: msgfmt is required for NLS" >&2;}
17097    { (exit 1); exit 1; }; }
17098   fi
17099   for ac_prog in msgmerge
17100 do
17101   # Extract the first word of "$ac_prog", so it can be a program name with args.
17102 set dummy $ac_prog; ac_word=$2
17103 echo "$as_me:$LINENO: checking for $ac_word" >&5
17104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17105 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
17106   echo $ECHO_N "(cached) $ECHO_C" >&6
17107 else
17108   if test -n "$MSGMERGE"; then
17109   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
17110 else
17111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17112 for as_dir in $PATH
17113 do
17114   IFS=$as_save_IFS
17115   test -z "$as_dir" && as_dir=.
17116   for ac_exec_ext in '' $ac_executable_extensions; do
17117   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17118     ac_cv_prog_MSGMERGE="$ac_prog"
17119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17120     break 2
17121   fi
17122 done
17123 done
17124
17125 fi
17126 fi
17127 MSGMERGE=$ac_cv_prog_MSGMERGE
17128 if test -n "$MSGMERGE"; then
17129   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
17130 echo "${ECHO_T}$MSGMERGE" >&6
17131 else
17132   echo "$as_me:$LINENO: result: no" >&5
17133 echo "${ECHO_T}no" >&6
17134 fi
17135
17136   test -n "$MSGMERGE" && break
17137 done
17138
17139   for ac_prog in xgettext
17140 do
17141   # Extract the first word of "$ac_prog", so it can be a program name with args.
17142 set dummy $ac_prog; ac_word=$2
17143 echo "$as_me:$LINENO: checking for $ac_word" >&5
17144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17145 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
17146   echo $ECHO_N "(cached) $ECHO_C" >&6
17147 else
17148   if test -n "$XGETTEXT"; then
17149   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
17150 else
17151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17152 for as_dir in $PATH
17153 do
17154   IFS=$as_save_IFS
17155   test -z "$as_dir" && as_dir=.
17156   for ac_exec_ext in '' $ac_executable_extensions; do
17157   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17158     ac_cv_prog_XGETTEXT="$ac_prog"
17159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17160     break 2
17161   fi
17162 done
17163 done
17164
17165 fi
17166 fi
17167 XGETTEXT=$ac_cv_prog_XGETTEXT
17168 if test -n "$XGETTEXT"; then
17169   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17170 echo "${ECHO_T}$XGETTEXT" >&6
17171 else
17172   echo "$as_me:$LINENO: result: no" >&5
17173 echo "${ECHO_T}no" >&6
17174 fi
17175
17176   test -n "$XGETTEXT" && break
17177 done
17178
17179
17180   # Note: share/locale is always the default, independent of $datadir
17181   localedir='${prefix}/share/locale'
17182   if test x"$prefix" = x"NONE"; then
17183     exp_localedir="$ac_default_prefix/share/locale"
17184   else
17185     exp_localedir="$prefix/share/locale"
17186   fi
17187
17188
17189
17190 cat >>confdefs.h <<_ACEOF
17191 #define LOCALEDIR "$exp_localedir"
17192 _ACEOF
17193
17194
17195 fi
17196
17197 # Check for Tcl configuration script tclConfig.sh
17198 if test "$with_tcl" = yes; then
17199     for ac_prog in tclsh tcl
17200 do
17201   # Extract the first word of "$ac_prog", so it can be a program name with args.
17202 set dummy $ac_prog; ac_word=$2
17203 echo "$as_me:$LINENO: checking for $ac_word" >&5
17204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17205 if test "${ac_cv_path_TCLSH+set}" = set; then
17206   echo $ECHO_N "(cached) $ECHO_C" >&6
17207 else
17208   case $TCLSH in
17209   [\\/]* | ?:[\\/]*)
17210   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
17211   ;;
17212   *)
17213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17214 for as_dir in $PATH
17215 do
17216   IFS=$as_save_IFS
17217   test -z "$as_dir" && as_dir=.
17218   for ac_exec_ext in '' $ac_executable_extensions; do
17219   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17220     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
17221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17222     break 2
17223   fi
17224 done
17225 done
17226
17227   ;;
17228 esac
17229 fi
17230 TCLSH=$ac_cv_path_TCLSH
17231
17232 if test -n "$TCLSH"; then
17233   echo "$as_me:$LINENO: result: $TCLSH" >&5
17234 echo "${ECHO_T}$TCLSH" >&6
17235 else
17236   echo "$as_me:$LINENO: result: no" >&5
17237 echo "${ECHO_T}no" >&6
17238 fi
17239
17240   test -n "$TCLSH" && break
17241 done
17242
17243 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
17244 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
17245 # Let user override test
17246 if test -z "$TCL_CONFIG_SH"; then
17247     pgac_test_dirs="$with_tclconfig"
17248
17249     set X $pgac_test_dirs; shift
17250     if test $# -eq 0; then
17251         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
17252 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
17253    { (exit 1); exit 1; }; }
17254         set X `echo 'puts $auto_path' | $TCLSH`; shift
17255     fi
17256
17257     for pgac_dir do
17258         if test -r "$pgac_dir/tclConfig.sh"; then
17259             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
17260             break
17261         fi
17262     done
17263 fi
17264
17265 if test -z "$TCL_CONFIG_SH"; then
17266     echo "$as_me:$LINENO: result: no" >&5
17267 echo "${ECHO_T}no" >&6
17268     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
17269 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
17270    { (exit 1); exit 1; }; }
17271 else
17272     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
17273 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
17274 fi
17275
17276
17277
17278     . "$TCL_CONFIG_SH"
17279 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
17280 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
17281 eval TCL_LIBS=\"$TCL_LIBS\"
17282 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
17283 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
17284
17285     fi
17286
17287 # Check for Tk configuration script tkConfig.sh
17288 if test "$with_tk" = yes; then
17289     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
17290 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
17291 # Let user override test
17292 if test -z "$TK_CONFIG_SH"; then
17293     pgac_test_dirs="$with_tkconfig $with_tclconfig"
17294
17295     set X $pgac_test_dirs; shift
17296     if test $# -eq 0; then
17297         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
17298 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
17299    { (exit 1); exit 1; }; }
17300         set X `echo 'puts $auto_path' | $TCLSH`; shift
17301     fi
17302
17303     for pgac_dir do
17304         if test -r "$pgac_dir/tkConfig.sh"; then
17305             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
17306             break
17307         fi
17308     done
17309 fi
17310
17311 if test -z "$TK_CONFIG_SH"; then
17312     echo "$as_me:$LINENO: result: no" >&5
17313 echo "${ECHO_T}no" >&6
17314     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
17315 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
17316    { (exit 1); exit 1; }; }
17317 else
17318     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
17319 echo "${ECHO_T}$TK_CONFIG_SH" >&6
17320 fi
17321
17322
17323
17324     . "$TK_CONFIG_SH"
17325 eval TK_LIBS=\"$TK_LIBS\"
17326 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
17327 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
17328
17329 fi
17330
17331
17332 #
17333 # Check for DocBook and tools
17334 #
17335 for ac_prog in onsgmls nsgmls
17336 do
17337   # Extract the first word of "$ac_prog", so it can be a program name with args.
17338 set dummy $ac_prog; ac_word=$2
17339 echo "$as_me:$LINENO: checking for $ac_word" >&5
17340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17341 if test "${ac_cv_prog_NSGMLS+set}" = set; then
17342   echo $ECHO_N "(cached) $ECHO_C" >&6
17343 else
17344   if test -n "$NSGMLS"; then
17345   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
17346 else
17347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17348 for as_dir in $PATH
17349 do
17350   IFS=$as_save_IFS
17351   test -z "$as_dir" && as_dir=.
17352   for ac_exec_ext in '' $ac_executable_extensions; do
17353   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17354     ac_cv_prog_NSGMLS="$ac_prog"
17355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17356     break 2
17357   fi
17358 done
17359 done
17360
17361 fi
17362 fi
17363 NSGMLS=$ac_cv_prog_NSGMLS
17364 if test -n "$NSGMLS"; then
17365   echo "$as_me:$LINENO: result: $NSGMLS" >&5
17366 echo "${ECHO_T}$NSGMLS" >&6
17367 else
17368   echo "$as_me:$LINENO: result: no" >&5
17369 echo "${ECHO_T}no" >&6
17370 fi
17371
17372   test -n "$NSGMLS" && break
17373 done
17374
17375 for ac_prog in openjade jade
17376 do
17377   # Extract the first word of "$ac_prog", so it can be a program name with args.
17378 set dummy $ac_prog; ac_word=$2
17379 echo "$as_me:$LINENO: checking for $ac_word" >&5
17380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17381 if test "${ac_cv_prog_JADE+set}" = set; then
17382   echo $ECHO_N "(cached) $ECHO_C" >&6
17383 else
17384   if test -n "$JADE"; then
17385   ac_cv_prog_JADE="$JADE" # Let the user override the test.
17386 else
17387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17388 for as_dir in $PATH
17389 do
17390   IFS=$as_save_IFS
17391   test -z "$as_dir" && as_dir=.
17392   for ac_exec_ext in '' $ac_executable_extensions; do
17393   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17394     ac_cv_prog_JADE="$ac_prog"
17395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17396     break 2
17397   fi
17398 done
17399 done
17400
17401 fi
17402 fi
17403 JADE=$ac_cv_prog_JADE
17404 if test -n "$JADE"; then
17405   echo "$as_me:$LINENO: result: $JADE" >&5
17406 echo "${ECHO_T}$JADE" >&6
17407 else
17408   echo "$as_me:$LINENO: result: no" >&5
17409 echo "${ECHO_T}no" >&6
17410 fi
17411
17412   test -n "$JADE" && break
17413 done
17414
17415
17416 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
17417 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
17418 if test "${pgac_cv_check_docbook+set}" = set; then
17419   echo $ECHO_N "(cached) $ECHO_C" >&6
17420 else
17421   cat >conftest.sgml <<EOF
17422 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
17423 <book>
17424  <title>test</title>
17425  <chapter>
17426   <title>random</title>
17427    <sect1>
17428     <title>testsect</title>
17429     <para>text</para>
17430   </sect1>
17431  </chapter>
17432 </book>
17433 EOF
17434
17435 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
17436 if test $? -eq 0; then
17437   pgac_cv_check_docbook=yes
17438 else
17439   pgac_cv_check_docbook=no
17440 fi
17441 rm -f conftest.sgml
17442 fi
17443 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
17444 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
17445
17446 have_docbook=$pgac_cv_check_docbook
17447
17448
17449 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
17450 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
17451 if test "${pgac_cv_path_stylesheets+set}" = set; then
17452   echo $ECHO_N "(cached) $ECHO_C" >&6
17453 else
17454   if test -n "$DOCBOOKSTYLE"; then
17455   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
17456 else
17457   for pgac_prefix in /usr /usr/local /opt; do
17458     for pgac_infix in share lib; do
17459       for pgac_postfix in \
17460         sgml/stylesheets/nwalsh-modular \
17461         sgml/stylesheets/docbook \
17462         sgml/docbook/dsssl/modular \
17463         sgml/docbook/stylesheet/dsssl/modular \
17464         sgml/docbook/dsssl-stylesheets
17465       do
17466         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
17467         if test -r "$pgac_candidate/html/docbook.dsl" \
17468            && test -r "$pgac_candidate/print/docbook.dsl"
17469         then
17470           pgac_cv_path_stylesheets=$pgac_candidate
17471           break 3
17472         fi
17473       done
17474     done
17475   done
17476 fi
17477 fi
17478
17479 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
17480
17481 if test -n "$DOCBOOKSTYLE"; then
17482   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
17483 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
17484 else
17485   echo "$as_me:$LINENO: result: no" >&5
17486 echo "${ECHO_T}no" >&6
17487 fi
17488 if test -n "$DOCBOOKSTYLE"; then
17489   for ac_prog in collateindex.pl
17490 do
17491   # Extract the first word of "$ac_prog", so it can be a program name with args.
17492 set dummy $ac_prog; ac_word=$2
17493 echo "$as_me:$LINENO: checking for $ac_word" >&5
17494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17495 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17496   echo $ECHO_N "(cached) $ECHO_C" >&6
17497 else
17498   case $COLLATEINDEX in
17499   [\\/]* | ?:[\\/]*)
17500   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17501   ;;
17502   *)
17503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17504 for as_dir in $DOCBOOKSTYLE/bin $PATH
17505 do
17506   IFS=$as_save_IFS
17507   test -z "$as_dir" && as_dir=.
17508   for ac_exec_ext in '' $ac_executable_extensions; do
17509   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17510     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17512     break 2
17513   fi
17514 done
17515 done
17516
17517   ;;
17518 esac
17519 fi
17520 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17521
17522 if test -n "$COLLATEINDEX"; then
17523   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17524 echo "${ECHO_T}$COLLATEINDEX" >&6
17525 else
17526   echo "$as_me:$LINENO: result: no" >&5
17527 echo "${ECHO_T}no" >&6
17528 fi
17529
17530   test -n "$COLLATEINDEX" && break
17531 done
17532
17533 else
17534   for ac_prog in collateindex.pl
17535 do
17536   # Extract the first word of "$ac_prog", so it can be a program name with args.
17537 set dummy $ac_prog; ac_word=$2
17538 echo "$as_me:$LINENO: checking for $ac_word" >&5
17539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17540 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17541   echo $ECHO_N "(cached) $ECHO_C" >&6
17542 else
17543   case $COLLATEINDEX in
17544   [\\/]* | ?:[\\/]*)
17545   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17546   ;;
17547   *)
17548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17549 for as_dir in $PATH
17550 do
17551   IFS=$as_save_IFS
17552   test -z "$as_dir" && as_dir=.
17553   for ac_exec_ext in '' $ac_executable_extensions; do
17554   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17555     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17557     break 2
17558   fi
17559 done
17560 done
17561
17562   ;;
17563 esac
17564 fi
17565 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17566
17567 if test -n "$COLLATEINDEX"; then
17568   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17569 echo "${ECHO_T}$COLLATEINDEX" >&6
17570 else
17571   echo "$as_me:$LINENO: result: no" >&5
17572 echo "${ECHO_T}no" >&6
17573 fi
17574
17575   test -n "$COLLATEINDEX" && break
17576 done
17577
17578 fi
17579 for ac_prog in sgmlspl
17580 do
17581   # Extract the first word of "$ac_prog", so it can be a program name with args.
17582 set dummy $ac_prog; ac_word=$2
17583 echo "$as_me:$LINENO: checking for $ac_word" >&5
17584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17585 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17586   echo $ECHO_N "(cached) $ECHO_C" >&6
17587 else
17588   if test -n "$SGMLSPL"; then
17589   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17590 else
17591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17592 for as_dir in $PATH
17593 do
17594   IFS=$as_save_IFS
17595   test -z "$as_dir" && as_dir=.
17596   for ac_exec_ext in '' $ac_executable_extensions; do
17597   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17598     ac_cv_prog_SGMLSPL="$ac_prog"
17599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17600     break 2
17601   fi
17602 done
17603 done
17604
17605 fi
17606 fi
17607 SGMLSPL=$ac_cv_prog_SGMLSPL
17608 if test -n "$SGMLSPL"; then
17609   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17610 echo "${ECHO_T}$SGMLSPL" >&6
17611 else
17612   echo "$as_me:$LINENO: result: no" >&5
17613 echo "${ECHO_T}no" >&6
17614 fi
17615
17616   test -n "$SGMLSPL" && break
17617 done
17618
17619
17620
17621 # prepare build tree if outside source tree
17622 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
17623 # Note 2: /bin/pwd might be better than shell's built-in at getting
17624 #         a symlink-free name.
17625 if test "$no_create" != yes; then
17626   if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
17627     :
17628   else
17629     vpath_build=yes
17630
17631     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
17632     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
17633     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
17634       || { { echo "$as_me:$LINENO: error: failed" >&5
17635 echo "$as_me: error: failed" >&2;}
17636    { (exit 1); exit 1; }; }
17637     echo "$as_me:$LINENO: result: done" >&5
17638 echo "${ECHO_T}done" >&6
17639   fi
17640 fi
17641
17642
17643 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
17644
17645
17646 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}"
17647
17648
17649 ac_config_headers="$ac_config_headers src/include/pg_config.h"
17650
17651
17652 cat >confcache <<\_ACEOF
17653 # This file is a shell script that caches the results of configure
17654 # tests run on this system so they can be shared between configure
17655 # scripts and configure runs, see configure's option --config-cache.
17656 # It is not useful on other systems.  If it contains results you don't
17657 # want to keep, you may remove or edit it.
17658 #
17659 # config.status only pays attention to the cache file if you give it
17660 # the --recheck option to rerun configure.
17661 #
17662 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17663 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17664 # following values.
17665
17666 _ACEOF
17667
17668 # The following way of writing the cache mishandles newlines in values,
17669 # but we know of no workaround that is simple, portable, and efficient.
17670 # So, don't put newlines in cache variables' values.
17671 # Ultrix sh set writes to stderr and can't be redirected directly,
17672 # and sets the high bit in the cache file unless we assign to the vars.
17673 {
17674   (set) 2>&1 |
17675     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17676     *ac_space=\ *)
17677       # `set' does not quote correctly, so add quotes (double-quote
17678       # substitution turns \\\\ into \\, and sed turns \\ into \).
17679       sed -n \
17680         "s/'/'\\\\''/g;
17681           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17682       ;;
17683     *)
17684       # `set' quotes correctly as required by POSIX, so do not add quotes.
17685       sed -n \
17686         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17687       ;;
17688     esac;
17689 } |
17690   sed '
17691      t clear
17692      : clear
17693      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17694      t end
17695      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17696      : end' >>confcache
17697 if cmp -s $cache_file confcache; then :; else
17698   if test -w $cache_file; then
17699     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17700     cat confcache >$cache_file
17701   else
17702     echo "not updating unwritable cache $cache_file"
17703   fi
17704 fi
17705 rm -f confcache
17706
17707 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17708 # Let make expand exec_prefix.
17709 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17710
17711 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17712 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17713 # trailing colons and then remove the whole line if VPATH becomes empty
17714 # (actually we leave an empty line to preserve line numbers).
17715 if test "x$srcdir" = x.; then
17716   ac_vpsub='/^[         ]*VPATH[        ]*=/{
17717 s/:*\$(srcdir):*/:/;
17718 s/:*\${srcdir}:*/:/;
17719 s/:*@srcdir@:*/:/;
17720 s/^\([^=]*=[    ]*\):*/\1/;
17721 s/:*$//;
17722 s/^[^=]*=[      ]*$//;
17723 }'
17724 fi
17725
17726 DEFS=-DHAVE_CONFIG_H
17727
17728
17729 : ${CONFIG_STATUS=./config.status}
17730 ac_clean_files_save=$ac_clean_files
17731 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17732 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17733 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17734 cat >$CONFIG_STATUS <<_ACEOF
17735 #! $SHELL
17736 # Generated by $as_me.
17737 # Run this file to recreate the current configuration.
17738 # Compiler output produced by configure, useful for debugging
17739 # configure, is in config.log if it exists.
17740
17741 debug=false
17742 SHELL=\${CONFIG_SHELL-$SHELL}
17743 _ACEOF
17744
17745 cat >>$CONFIG_STATUS <<\_ACEOF
17746
17747 ## --------------------- ##
17748 ## M4sh Initialization.  ##
17749 ## --------------------- ##
17750
17751 # Be Bourne compatible
17752 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17753   emulate sh
17754   NULLCMD=:
17755 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17756   set -o posix
17757 fi
17758
17759 # NLS nuisances.
17760 # Support unset when possible.
17761 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17762   as_unset=unset
17763 else
17764   as_unset=false
17765 fi
17766
17767 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17768     { $as_unset LANG || test "${LANG+set}" != set; } ||
17769       { LANG=C; export LANG; }
17770 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17771     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17772       { LC_ALL=C; export LC_ALL; }
17773 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17774     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17775       { LC_TIME=C; export LC_TIME; }
17776 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17777     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17778       { LC_CTYPE=C; export LC_CTYPE; }
17779 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17780     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17781       { LANGUAGE=C; export LANGUAGE; }
17782 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17783     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17784       { LC_COLLATE=C; export LC_COLLATE; }
17785 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17786     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17787       { LC_NUMERIC=C; export LC_NUMERIC; }
17788 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17789     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17790       { LC_MESSAGES=C; export LC_MESSAGES; }
17791
17792
17793 # Name of the executable.
17794 as_me=`(basename "$0") 2>/dev/null ||
17795 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17796          X"$0" : 'X\(//\)$' \| \
17797          X"$0" : 'X\(/\)$' \| \
17798          .     : '\(.\)' 2>/dev/null ||
17799 echo X/"$0" |
17800     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17801           /^X\/\(\/\/\)$/{ s//\1/; q; }
17802           /^X\/\(\/\).*/{ s//\1/; q; }
17803           s/.*/./; q'`
17804
17805 # PATH needs CR, and LINENO needs CR and PATH.
17806 # Avoid depending upon Character Ranges.
17807 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17808 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17809 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17810 as_cr_digits='0123456789'
17811 as_cr_alnum=$as_cr_Letters$as_cr_digits
17812
17813 # The user is always right.
17814 if test "${PATH_SEPARATOR+set}" != set; then
17815   echo "#! /bin/sh" >conftest.sh
17816   echo  "exit 0"   >>conftest.sh
17817   chmod +x conftest.sh
17818   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17819     PATH_SEPARATOR=';'
17820   else
17821     PATH_SEPARATOR=:
17822   fi
17823   rm -f conftest.sh
17824 fi
17825
17826
17827   as_lineno_1=$LINENO
17828   as_lineno_2=$LINENO
17829   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17830   test "x$as_lineno_1" != "x$as_lineno_2" &&
17831   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17832   # Find who we are.  Look in the path if we contain no path at all
17833   # relative or not.
17834   case $0 in
17835     *[\\/]* ) as_myself=$0 ;;
17836     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17837 for as_dir in $PATH
17838 do
17839   IFS=$as_save_IFS
17840   test -z "$as_dir" && as_dir=.
17841   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17842 done
17843
17844        ;;
17845   esac
17846   # We did not find ourselves, most probably we were run as `sh COMMAND'
17847   # in which case we are not to be found in the path.
17848   if test "x$as_myself" = x; then
17849     as_myself=$0
17850   fi
17851   if test ! -f "$as_myself"; then
17852     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17853 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17854    { (exit 1); exit 1; }; }
17855   fi
17856   case $CONFIG_SHELL in
17857   '')
17858     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17859 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17860 do
17861   IFS=$as_save_IFS
17862   test -z "$as_dir" && as_dir=.
17863   for as_base in sh bash ksh sh5; do
17864          case $as_dir in
17865          /*)
17866            if ("$as_dir/$as_base" -c '
17867   as_lineno_1=$LINENO
17868   as_lineno_2=$LINENO
17869   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17870   test "x$as_lineno_1" != "x$as_lineno_2" &&
17871   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17872              CONFIG_SHELL=$as_dir/$as_base
17873              export CONFIG_SHELL
17874              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17875            fi;;
17876          esac
17877        done
17878 done
17879 ;;
17880   esac
17881
17882   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17883   # uniformly replaced by the line number.  The first 'sed' inserts a
17884   # line-number line before each line; the second 'sed' does the real
17885   # work.  The second script uses 'N' to pair each line-number line
17886   # with the numbered line, and appends trailing '-' during
17887   # substitution so that $LINENO is not a special case at line end.
17888   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17889   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17890   sed '=' <$as_myself |
17891     sed '
17892       N
17893       s,$,-,
17894       : loop
17895       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17896       t loop
17897       s,-$,,
17898       s,^['$as_cr_digits']*\n,,
17899     ' >$as_me.lineno &&
17900   chmod +x $as_me.lineno ||
17901     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17902 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17903    { (exit 1); exit 1; }; }
17904
17905   # Don't try to exec as it changes $[0], causing all sort of problems
17906   # (the dirname of $[0] is not the place where we might find the
17907   # original and so on.  Autoconf is especially sensible to this).
17908   . ./$as_me.lineno
17909   # Exit status is that of the last command.
17910   exit
17911 }
17912
17913
17914 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17915   *c*,-n*) ECHO_N= ECHO_C='
17916 ' ECHO_T='      ' ;;
17917   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17918   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17919 esac
17920
17921 if expr a : '\(a\)' >/dev/null 2>&1; then
17922   as_expr=expr
17923 else
17924   as_expr=false
17925 fi
17926
17927 rm -f conf$$ conf$$.exe conf$$.file
17928 echo >conf$$.file
17929 if ln -s conf$$.file conf$$ 2>/dev/null; then
17930   # We could just check for DJGPP; but this test a) works b) is more generic
17931   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17932   if test -f conf$$.exe; then
17933     # Don't use ln at all; we don't have any links
17934     as_ln_s='cp -p'
17935   else
17936     as_ln_s='ln -s'
17937   fi
17938 elif ln conf$$.file conf$$ 2>/dev/null; then
17939   as_ln_s=ln
17940 else
17941   as_ln_s='cp -p'
17942 fi
17943 rm -f conf$$ conf$$.exe conf$$.file
17944
17945 as_executable_p="test -f"
17946
17947 # Sed expression to map a string onto a valid CPP name.
17948 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17949
17950 # Sed expression to map a string onto a valid variable name.
17951 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17952
17953
17954 # IFS
17955 # We need space, tab and new line, in precisely that order.
17956 as_nl='
17957 '
17958 IFS="   $as_nl"
17959
17960 # CDPATH.
17961 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17962
17963 exec 6>&1
17964
17965 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17966 # report actual input values of CONFIG_FILES etc. instead of their
17967 # values after options handling.  Logging --version etc. is OK.
17968 exec 5>>config.log
17969 {
17970   echo
17971   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17972 ## Running $as_me. ##
17973 _ASBOX
17974 } >&5
17975 cat >&5 <<_CSEOF
17976
17977 This file was extended by PostgreSQL $as_me 7.4beta2, which was
17978 generated by GNU Autoconf 2.53.  Invocation command line was
17979
17980   CONFIG_FILES    = $CONFIG_FILES
17981   CONFIG_HEADERS  = $CONFIG_HEADERS
17982   CONFIG_LINKS    = $CONFIG_LINKS
17983   CONFIG_COMMANDS = $CONFIG_COMMANDS
17984   $ $0 $@
17985
17986 _CSEOF
17987 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17988 echo >&5
17989 _ACEOF
17990
17991 # Files that config.status was made for.
17992 if test -n "$ac_config_files"; then
17993   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17994 fi
17995
17996 if test -n "$ac_config_headers"; then
17997   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17998 fi
17999
18000 if test -n "$ac_config_links"; then
18001   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18002 fi
18003
18004 if test -n "$ac_config_commands"; then
18005   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18006 fi
18007
18008 cat >>$CONFIG_STATUS <<\_ACEOF
18009
18010 ac_cs_usage="\
18011 \`$as_me' instantiates files from templates according to the
18012 current configuration.
18013
18014 Usage: $0 [OPTIONS] [FILE]...
18015
18016   -h, --help       print this help, then exit
18017   -V, --version    print version number, then exit
18018   -d, --debug      don't remove temporary files
18019       --recheck    update $as_me by reconfiguring in the same conditions
18020   --file=FILE[:TEMPLATE]
18021                    instantiate the configuration file FILE
18022   --header=FILE[:TEMPLATE]
18023                    instantiate the configuration header FILE
18024
18025 Configuration files:
18026 $config_files
18027
18028 Configuration headers:
18029 $config_headers
18030
18031 Configuration links:
18032 $config_links
18033
18034 Report bugs to <bug-autoconf@gnu.org>."
18035 _ACEOF
18036
18037 cat >>$CONFIG_STATUS <<_ACEOF
18038 ac_cs_version="\\
18039 PostgreSQL config.status 7.4beta2
18040 configured by $0, generated by GNU Autoconf 2.53,
18041   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18042
18043 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18044 Free Software Foundation, Inc.
18045 This config.status script is free software; the Free Software Foundation
18046 gives unlimited permission to copy, distribute and modify it."
18047 srcdir=$srcdir
18048 _ACEOF
18049
18050 cat >>$CONFIG_STATUS <<\_ACEOF
18051 # If no file are specified by the user, then we need to provide default
18052 # value.  By we need to know if files were specified by the user.
18053 ac_need_defaults=:
18054 while test $# != 0
18055 do
18056   case $1 in
18057   --*=*)
18058     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18059     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18060     shift
18061     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18062     shift
18063     ;;
18064   -*);;
18065   *) # This is not an option, so the user has probably given explicit
18066      # arguments.
18067      ac_need_defaults=false;;
18068   esac
18069
18070   case $1 in
18071   # Handling of the options.
18072 _ACEOF
18073 cat >>$CONFIG_STATUS <<_ACEOF
18074   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18075     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18076     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18077 _ACEOF
18078 cat >>$CONFIG_STATUS <<\_ACEOF
18079   --version | --vers* | -V )
18080     echo "$ac_cs_version"; exit 0 ;;
18081   --he | --h)
18082     # Conflict between --help and --header
18083     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18084 Try \`$0 --help' for more information." >&5
18085 echo "$as_me: error: ambiguous option: $1
18086 Try \`$0 --help' for more information." >&2;}
18087    { (exit 1); exit 1; }; };;
18088   --help | --hel | -h )
18089     echo "$ac_cs_usage"; exit 0 ;;
18090   --debug | --d* | -d )
18091     debug=: ;;
18092   --file | --fil | --fi | --f )
18093     shift
18094     CONFIG_FILES="$CONFIG_FILES $1"
18095     ac_need_defaults=false;;
18096   --header | --heade | --head | --hea )
18097     shift
18098     CONFIG_HEADERS="$CONFIG_HEADERS $1"
18099     ac_need_defaults=false;;
18100
18101   # This is an error.
18102   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18103 Try \`$0 --help' for more information." >&5
18104 echo "$as_me: error: unrecognized option: $1
18105 Try \`$0 --help' for more information." >&2;}
18106    { (exit 1); exit 1; }; } ;;
18107
18108   *) ac_config_targets="$ac_config_targets $1" ;;
18109
18110   esac
18111   shift
18112 done
18113
18114 _ACEOF
18115
18116
18117
18118
18119
18120 cat >>$CONFIG_STATUS <<\_ACEOF
18121 for ac_config_target in $ac_config_targets
18122 do
18123   case "$ac_config_target" in
18124   # Handling of arguments.
18125   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
18126   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
18127   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
18128   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
18129   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
18130   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
18131   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
18132   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
18133   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
18134   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
18135   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18136 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18137    { (exit 1); exit 1; }; };;
18138   esac
18139 done
18140
18141 # If the user did not use the arguments to specify the items to instantiate,
18142 # then the envvar interface is used.  Set only those that are not.
18143 # We use the long form for the default assignment because of an extremely
18144 # bizarre bug on SunOS 4.1.3.
18145 if $ac_need_defaults; then
18146   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18147   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18148   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18149 fi
18150
18151 # Create a temporary directory, and hook for its removal unless debugging.
18152 $debug ||
18153 {
18154   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18155   trap '{ (exit 1); exit 1; }' 1 2 13 15
18156 }
18157
18158 # Create a (secure) tmp directory for tmp files.
18159 : ${TMPDIR=/tmp}
18160 {
18161   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18162   test -n "$tmp" && test -d "$tmp"
18163 }  ||
18164 {
18165   tmp=$TMPDIR/cs$$-$RANDOM
18166   (umask 077 && mkdir $tmp)
18167 } ||
18168 {
18169    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18170    { (exit 1); exit 1; }
18171 }
18172
18173 _ACEOF
18174
18175 cat >>$CONFIG_STATUS <<_ACEOF
18176
18177 #
18178 # CONFIG_FILES section.
18179 #
18180
18181 # No need to generate the scripts if there are no CONFIG_FILES.
18182 # This happens for instance when ./config.status config.h
18183 if test -n "\$CONFIG_FILES"; then
18184   # Protect against being on the right side of a sed subst in config.status.
18185   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18186    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18187 s,@SHELL@,$SHELL,;t t
18188 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18189 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18190 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18191 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18192 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18193 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18194 s,@exec_prefix@,$exec_prefix,;t t
18195 s,@prefix@,$prefix,;t t
18196 s,@program_transform_name@,$program_transform_name,;t t
18197 s,@bindir@,$bindir,;t t
18198 s,@sbindir@,$sbindir,;t t
18199 s,@libexecdir@,$libexecdir,;t t
18200 s,@datadir@,$datadir,;t t
18201 s,@sysconfdir@,$sysconfdir,;t t
18202 s,@sharedstatedir@,$sharedstatedir,;t t
18203 s,@localstatedir@,$localstatedir,;t t
18204 s,@libdir@,$libdir,;t t
18205 s,@includedir@,$includedir,;t t
18206 s,@oldincludedir@,$oldincludedir,;t t
18207 s,@infodir@,$infodir,;t t
18208 s,@mandir@,$mandir,;t t
18209 s,@build_alias@,$build_alias,;t t
18210 s,@host_alias@,$host_alias,;t t
18211 s,@target_alias@,$target_alias,;t t
18212 s,@DEFS@,$DEFS,;t t
18213 s,@ECHO_C@,$ECHO_C,;t t
18214 s,@ECHO_N@,$ECHO_N,;t t
18215 s,@ECHO_T@,$ECHO_T,;t t
18216 s,@LIBS@,$LIBS,;t t
18217 s,@docdir@,$docdir,;t t
18218 s,@configure_args@,$configure_args,;t t
18219 s,@build@,$build,;t t
18220 s,@build_cpu@,$build_cpu,;t t
18221 s,@build_vendor@,$build_vendor,;t t
18222 s,@build_os@,$build_os,;t t
18223 s,@host@,$host,;t t
18224 s,@host_cpu@,$host_cpu,;t t
18225 s,@host_vendor@,$host_vendor,;t t
18226 s,@host_os@,$host_os,;t t
18227 s,@PORTNAME@,$PORTNAME,;t t
18228 s,@TAS@,$TAS,;t t
18229 s,@enable_nls@,$enable_nls,;t t
18230 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
18231 s,@default_port@,$default_port,;t t
18232 s,@enable_shared@,$enable_shared,;t t
18233 s,@enable_rpath@,$enable_rpath,;t t
18234 s,@enable_debug@,$enable_debug,;t t
18235 s,@CC@,$CC,;t t
18236 s,@CFLAGS@,$CFLAGS,;t t
18237 s,@LDFLAGS@,$LDFLAGS,;t t
18238 s,@CPPFLAGS@,$CPPFLAGS,;t t
18239 s,@ac_ct_CC@,$ac_ct_CC,;t t
18240 s,@EXEEXT@,$EXEEXT,;t t
18241 s,@OBJEXT@,$OBJEXT,;t t
18242 s,@CPP@,$CPP,;t t
18243 s,@GCC@,$GCC,;t t
18244 s,@autodepend@,$autodepend,;t t
18245 s,@INCLUDES@,$INCLUDES,;t t
18246 s,@enable_thread_safety@,$enable_thread_safety,;t t
18247 s,@with_tcl@,$with_tcl,;t t
18248 s,@with_tk@,$with_tk,;t t
18249 s,@with_perl@,$with_perl,;t t
18250 s,@with_python@,$with_python,;t t
18251 s,@ANT@,$ANT,;t t
18252 s,@with_java@,$with_java,;t t
18253 s,@with_krb4@,$with_krb4,;t t
18254 s,@with_krb5@,$with_krb5,;t t
18255 s,@krb_srvtab@,$krb_srvtab,;t t
18256 s,@with_pam@,$with_pam,;t t
18257 s,@with_rendezvous@,$with_rendezvous,;t t
18258 s,@with_openssl@,$with_openssl,;t t
18259 s,@ELF_SYS@,$ELF_SYS,;t t
18260 s,@AWK@,$AWK,;t t
18261 s,@FLEX@,$FLEX,;t t
18262 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
18263 s,@LN_S@,$LN_S,;t t
18264 s,@LD@,$LD,;t t
18265 s,@with_gnu_ld@,$with_gnu_ld,;t t
18266 s,@ld_R_works@,$ld_R_works,;t t
18267 s,@RANLIB@,$RANLIB,;t t
18268 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18269 s,@LORDER@,$LORDER,;t t
18270 s,@TAR@,$TAR,;t t
18271 s,@STRIP@,$STRIP,;t t
18272 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18273 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
18274 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
18275 s,@YACC@,$YACC,;t t
18276 s,@YFLAGS@,$YFLAGS,;t t
18277 s,@PERL@,$PERL,;t t
18278 s,@perl_archlibexp@,$perl_archlibexp,;t t
18279 s,@perl_privlibexp@,$perl_privlibexp,;t t
18280 s,@perl_useshrplib@,$perl_useshrplib,;t t
18281 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
18282 s,@PYTHON@,$PYTHON,;t t
18283 s,@python_prefix@,$python_prefix,;t t
18284 s,@python_execprefix@,$python_execprefix,;t t
18285 s,@python_configdir@,$python_configdir,;t t
18286 s,@python_includespec@,$python_includespec,;t t
18287 s,@python_libspec@,$python_libspec,;t t
18288 s,@LIBOBJS@,$LIBOBJS,;t t
18289 s,@THREAD_CFLAGS@,$THREAD_CFLAGS,;t t
18290 s,@THREAD_LIBS@,$THREAD_LIBS,;t t
18291 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
18292 s,@MSGFMT@,$MSGFMT,;t t
18293 s,@MSGMERGE@,$MSGMERGE,;t t
18294 s,@XGETTEXT@,$XGETTEXT,;t t
18295 s,@localedir@,$localedir,;t t
18296 s,@TCLSH@,$TCLSH,;t t
18297 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
18298 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
18299 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
18300 s,@TCL_LIBS@,$TCL_LIBS,;t t
18301 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
18302 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
18303 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
18304 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
18305 s,@TK_LIBS@,$TK_LIBS,;t t
18306 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
18307 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
18308 s,@NSGMLS@,$NSGMLS,;t t
18309 s,@JADE@,$JADE,;t t
18310 s,@have_docbook@,$have_docbook,;t t
18311 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
18312 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
18313 s,@SGMLSPL@,$SGMLSPL,;t t
18314 s,@vpath_build@,$vpath_build,;t t
18315 CEOF
18316
18317 _ACEOF
18318
18319   cat >>$CONFIG_STATUS <<\_ACEOF
18320   # Split the substitutions into bite-sized pieces for seds with
18321   # small command number limits, like on Digital OSF/1 and HP-UX.
18322   ac_max_sed_lines=48
18323   ac_sed_frag=1 # Number of current file.
18324   ac_beg=1 # First line for current file.
18325   ac_end=$ac_max_sed_lines # Line after last line for current file.
18326   ac_more_lines=:
18327   ac_sed_cmds=
18328   while $ac_more_lines; do
18329     if test $ac_beg -gt 1; then
18330       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18331     else
18332       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18333     fi
18334     if test ! -s $tmp/subs.frag; then
18335       ac_more_lines=false
18336     else
18337       # The purpose of the label and of the branching condition is to
18338       # speed up the sed processing (if there are no `@' at all, there
18339       # is no need to browse any of the substitutions).
18340       # These are the two extra sed commands mentioned above.
18341       (echo ':t
18342   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18343       if test -z "$ac_sed_cmds"; then
18344         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18345       else
18346         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18347       fi
18348       ac_sed_frag=`expr $ac_sed_frag + 1`
18349       ac_beg=$ac_end
18350       ac_end=`expr $ac_end + $ac_max_sed_lines`
18351     fi
18352   done
18353   if test -z "$ac_sed_cmds"; then
18354     ac_sed_cmds=cat
18355   fi
18356 fi # test -n "$CONFIG_FILES"
18357
18358 _ACEOF
18359 cat >>$CONFIG_STATUS <<\_ACEOF
18360 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18361   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18362   case $ac_file in
18363   - | *:- | *:-:* ) # input from stdin
18364         cat >$tmp/stdin
18365         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18366         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18367   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18368         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18369   * )   ac_file_in=$ac_file.in ;;
18370   esac
18371
18372   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18373   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18374 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18375          X"$ac_file" : 'X\(//\)[^/]' \| \
18376          X"$ac_file" : 'X\(//\)$' \| \
18377          X"$ac_file" : 'X\(/\)' \| \
18378          .     : '\(.\)' 2>/dev/null ||
18379 echo X"$ac_file" |
18380     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18381           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18382           /^X\(\/\/\)$/{ s//\1/; q; }
18383           /^X\(\/\).*/{ s//\1/; q; }
18384           s/.*/./; q'`
18385   { case "$ac_dir" in
18386   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18387   *)                      as_incr_dir=.;;
18388 esac
18389 as_dummy="$ac_dir"
18390 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18391   case $as_mkdir_dir in
18392     # Skip DOS drivespec
18393     ?:) as_incr_dir=$as_mkdir_dir ;;
18394     *)
18395       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18396       test -d "$as_incr_dir" ||
18397         mkdir "$as_incr_dir" ||
18398         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18399 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18400    { (exit 1); exit 1; }; }
18401     ;;
18402   esac
18403 done; }
18404
18405   ac_builddir=.
18406
18407 if test "$ac_dir" != .; then
18408   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18409   # A "../" for each directory in $ac_dir_suffix.
18410   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18411 else
18412   ac_dir_suffix= ac_top_builddir=
18413 fi
18414
18415 case $srcdir in
18416   .)  # No --srcdir option.  We are building in place.
18417     ac_srcdir=.
18418     if test -z "$ac_top_builddir"; then
18419        ac_top_srcdir=.
18420     else
18421        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18422     fi ;;
18423   [\\/]* | ?:[\\/]* )  # Absolute path.
18424     ac_srcdir=$srcdir$ac_dir_suffix;
18425     ac_top_srcdir=$srcdir ;;
18426   *) # Relative path.
18427     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18428     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18429 esac
18430 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18431 # absolute.
18432 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18433 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18434 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18435 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18436
18437
18438
18439   if test x"$ac_file" != x-; then
18440     { echo "$as_me:$LINENO: creating $ac_file" >&5
18441 echo "$as_me: creating $ac_file" >&6;}
18442     rm -f "$ac_file"
18443   fi
18444   # Let's still pretend it is `configure' which instantiates (i.e., don't
18445   # use $as_me), people would be surprised to read:
18446   #    /* config.h.  Generated by config.status.  */
18447   if test x"$ac_file" = x-; then
18448     configure_input=
18449   else
18450     configure_input="$ac_file.  "
18451   fi
18452   configure_input=$configure_input"Generated from `echo $ac_file_in |
18453                                      sed 's,.*/,,'` by configure."
18454
18455   # First look for the input files in the build tree, otherwise in the
18456   # src tree.
18457   ac_file_inputs=`IFS=:
18458     for f in $ac_file_in; do
18459       case $f in
18460       -) echo $tmp/stdin ;;
18461       [\\/$]*)
18462          # Absolute (can't be DOS-style, as IFS=:)
18463          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18464 echo "$as_me: error: cannot find input file: $f" >&2;}
18465    { (exit 1); exit 1; }; }
18466          echo $f;;
18467       *) # Relative
18468          if test -f "$f"; then
18469            # Build tree
18470            echo $f
18471          elif test -f "$srcdir/$f"; then
18472            # Source tree
18473            echo $srcdir/$f
18474          else
18475            # /dev/null tree
18476            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18477 echo "$as_me: error: cannot find input file: $f" >&2;}
18478    { (exit 1); exit 1; }; }
18479          fi;;
18480       esac
18481     done` || { (exit 1); exit 1; }
18482 _ACEOF
18483 cat >>$CONFIG_STATUS <<_ACEOF
18484   sed "$ac_vpsub
18485 $extrasub
18486 _ACEOF
18487 cat >>$CONFIG_STATUS <<\_ACEOF
18488 :t
18489 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18490 s,@configure_input@,$configure_input,;t t
18491 s,@srcdir@,$ac_srcdir,;t t
18492 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18493 s,@top_srcdir@,$ac_top_srcdir,;t t
18494 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18495 s,@builddir@,$ac_builddir,;t t
18496 s,@abs_builddir@,$ac_abs_builddir,;t t
18497 s,@top_builddir@,$ac_top_builddir,;t t
18498 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18499 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18500   rm -f $tmp/stdin
18501   if test x"$ac_file" != x-; then
18502     mv $tmp/out $ac_file
18503   else
18504     cat $tmp/out
18505     rm -f $tmp/out
18506   fi
18507
18508 done
18509 _ACEOF
18510 cat >>$CONFIG_STATUS <<\_ACEOF
18511
18512 #
18513 # CONFIG_HEADER section.
18514 #
18515
18516 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18517 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18518 #
18519 # ac_d sets the value in "#define NAME VALUE" lines.
18520 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18521 ac_dB='[        ].*$,\1#\2'
18522 ac_dC=' '
18523 ac_dD=',;t'
18524 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18525 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18526 ac_uB='$,\1#\2define\3'
18527 ac_uC=' '
18528 ac_uD=',;t'
18529
18530 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18531   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18532   case $ac_file in
18533   - | *:- | *:-:* ) # input from stdin
18534         cat >$tmp/stdin
18535         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18536         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18537   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18538         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18539   * )   ac_file_in=$ac_file.in ;;
18540   esac
18541
18542   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18543 echo "$as_me: creating $ac_file" >&6;}
18544
18545   # First look for the input files in the build tree, otherwise in the
18546   # src tree.
18547   ac_file_inputs=`IFS=:
18548     for f in $ac_file_in; do
18549       case $f in
18550       -) echo $tmp/stdin ;;
18551       [\\/$]*)
18552          # Absolute (can't be DOS-style, as IFS=:)
18553          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18554 echo "$as_me: error: cannot find input file: $f" >&2;}
18555    { (exit 1); exit 1; }; }
18556          echo $f;;
18557       *) # Relative
18558          if test -f "$f"; then
18559            # Build tree
18560            echo $f
18561          elif test -f "$srcdir/$f"; then
18562            # Source tree
18563            echo $srcdir/$f
18564          else
18565            # /dev/null tree
18566            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18567 echo "$as_me: error: cannot find input file: $f" >&2;}
18568    { (exit 1); exit 1; }; }
18569          fi;;
18570       esac
18571     done` || { (exit 1); exit 1; }
18572   # Remove the trailing spaces.
18573   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
18574
18575 _ACEOF
18576
18577 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18578 # `conftest.undefs', that substitutes the proper values into
18579 # config.h.in to produce config.h.  The first handles `#define'
18580 # templates, and the second `#undef' templates.
18581 # And first: Protect against being on the right side of a sed subst in
18582 # config.status.  Protect against being in an unquoted here document
18583 # in config.status.
18584 rm -f conftest.defines conftest.undefs
18585 # Using a here document instead of a string reduces the quoting nightmare.
18586 # Putting comments in sed scripts is not portable.
18587 #
18588 # `end' is used to avoid that the second main sed command (meant for
18589 # 0-ary CPP macros) applies to n-ary macro definitions.
18590 # See the Autoconf documentation for `clear'.
18591 cat >confdef2sed.sed <<\_ACEOF
18592 s/[\\&,]/\\&/g
18593 s,[\\$`],\\&,g
18594 t clear
18595 : clear
18596 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18597 t end
18598 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18599 : end
18600 _ACEOF
18601 # If some macros were called several times there might be several times
18602 # the same #defines, which is useless.  Nevertheless, we may not want to
18603 # sort them, since we want the *last* AC-DEFINE to be honored.
18604 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18605 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18606 rm -f confdef2sed.sed
18607
18608 # This sed command replaces #undef with comments.  This is necessary, for
18609 # example, in the case of _POSIX_SOURCE, which is predefined and required
18610 # on some systems where configure will not decide to define it.
18611 cat >>conftest.undefs <<\_ACEOF
18612 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18613 _ACEOF
18614
18615 # Break up conftest.defines because some shells have a limit on the size
18616 # of here documents, and old seds have small limits too (100 cmds).
18617 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18618 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18619 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18620 echo '  :' >>$CONFIG_STATUS
18621 rm -f conftest.tail
18622 while grep . conftest.defines >/dev/null
18623 do
18624   # Write a limited-size here document to $tmp/defines.sed.
18625   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18626   # Speed up: don't consider the non `#define' lines.
18627   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
18628   # Work around the forget-to-reset-the-flag bug.
18629   echo 't clr' >>$CONFIG_STATUS
18630   echo ': clr' >>$CONFIG_STATUS
18631   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18632   echo 'CEOF
18633   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18634   rm -f $tmp/in
18635   mv $tmp/out $tmp/in
18636 ' >>$CONFIG_STATUS
18637   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18638   rm -f conftest.defines
18639   mv conftest.tail conftest.defines
18640 done
18641 rm -f conftest.defines
18642 echo '  fi # egrep' >>$CONFIG_STATUS
18643 echo >>$CONFIG_STATUS
18644
18645 # Break up conftest.undefs because some shells have a limit on the size
18646 # of here documents, and old seds have small limits too (100 cmds).
18647 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18648 rm -f conftest.tail
18649 while grep . conftest.undefs >/dev/null
18650 do
18651   # Write a limited-size here document to $tmp/undefs.sed.
18652   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18653   # Speed up: don't consider the non `#undef'
18654   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18655   # Work around the forget-to-reset-the-flag bug.
18656   echo 't clr' >>$CONFIG_STATUS
18657   echo ': clr' >>$CONFIG_STATUS
18658   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18659   echo 'CEOF
18660   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18661   rm -f $tmp/in
18662   mv $tmp/out $tmp/in
18663 ' >>$CONFIG_STATUS
18664   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18665   rm -f conftest.undefs
18666   mv conftest.tail conftest.undefs
18667 done
18668 rm -f conftest.undefs
18669
18670 cat >>$CONFIG_STATUS <<\_ACEOF
18671   # Let's still pretend it is `configure' which instantiates (i.e., don't
18672   # use $as_me), people would be surprised to read:
18673   #    /* config.h.  Generated by config.status.  */
18674   if test x"$ac_file" = x-; then
18675     echo "/* Generated by configure.  */" >$tmp/config.h
18676   else
18677     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18678   fi
18679   cat $tmp/in >>$tmp/config.h
18680   rm -f $tmp/in
18681   if test x"$ac_file" != x-; then
18682     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18683       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18684 echo "$as_me: $ac_file is unchanged" >&6;}
18685     else
18686       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18687 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18688          X"$ac_file" : 'X\(//\)[^/]' \| \
18689          X"$ac_file" : 'X\(//\)$' \| \
18690          X"$ac_file" : 'X\(/\)' \| \
18691          .     : '\(.\)' 2>/dev/null ||
18692 echo X"$ac_file" |
18693     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18694           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18695           /^X\(\/\/\)$/{ s//\1/; q; }
18696           /^X\(\/\).*/{ s//\1/; q; }
18697           s/.*/./; q'`
18698       { case "$ac_dir" in
18699   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18700   *)                      as_incr_dir=.;;
18701 esac
18702 as_dummy="$ac_dir"
18703 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18704   case $as_mkdir_dir in
18705     # Skip DOS drivespec
18706     ?:) as_incr_dir=$as_mkdir_dir ;;
18707     *)
18708       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18709       test -d "$as_incr_dir" ||
18710         mkdir "$as_incr_dir" ||
18711         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18712 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18713    { (exit 1); exit 1; }; }
18714     ;;
18715   esac
18716 done; }
18717
18718       rm -f $ac_file
18719       mv $tmp/config.h $ac_file
18720     fi
18721   else
18722     cat $tmp/config.h
18723     rm -f $tmp/config.h
18724   fi
18725   # Run the commands associated with the file.
18726   case $ac_file in
18727     src/include/pg_config.h )
18728 # Update timestamp for pg_config.h (see Makefile.global)
18729 echo >src/include/stamp-h
18730  ;;
18731   esac
18732 done
18733 _ACEOF
18734 cat >>$CONFIG_STATUS <<\_ACEOF
18735
18736 #
18737 # CONFIG_LINKS section.
18738 #
18739
18740 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18741   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18742   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18743
18744   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18745 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18746
18747   if test ! -r $srcdir/$ac_source; then
18748     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18749 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18750    { (exit 1); exit 1; }; }
18751   fi
18752   rm -f $ac_dest
18753
18754   # Make relative symlinks.
18755   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18756 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18757          X"$ac_dest" : 'X\(//\)[^/]' \| \
18758          X"$ac_dest" : 'X\(//\)$' \| \
18759          X"$ac_dest" : 'X\(/\)' \| \
18760          .     : '\(.\)' 2>/dev/null ||
18761 echo X"$ac_dest" |
18762     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18763           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18764           /^X\(\/\/\)$/{ s//\1/; q; }
18765           /^X\(\/\).*/{ s//\1/; q; }
18766           s/.*/./; q'`
18767   { case "$ac_dest_dir" in
18768   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18769   *)                      as_incr_dir=.;;
18770 esac
18771 as_dummy="$ac_dest_dir"
18772 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18773   case $as_mkdir_dir in
18774     # Skip DOS drivespec
18775     ?:) as_incr_dir=$as_mkdir_dir ;;
18776     *)
18777       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18778       test -d "$as_incr_dir" ||
18779         mkdir "$as_incr_dir" ||
18780         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18781 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18782    { (exit 1); exit 1; }; }
18783     ;;
18784   esac
18785 done; }
18786
18787   ac_builddir=.
18788
18789 if test "$ac_dest_dir" != .; then
18790   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18791   # A "../" for each directory in $ac_dir_suffix.
18792   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18793 else
18794   ac_dir_suffix= ac_top_builddir=
18795 fi
18796
18797 case $srcdir in
18798   .)  # No --srcdir option.  We are building in place.
18799     ac_srcdir=.
18800     if test -z "$ac_top_builddir"; then
18801        ac_top_srcdir=.
18802     else
18803        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18804     fi ;;
18805   [\\/]* | ?:[\\/]* )  # Absolute path.
18806     ac_srcdir=$srcdir$ac_dir_suffix;
18807     ac_top_srcdir=$srcdir ;;
18808   *) # Relative path.
18809     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18810     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18811 esac
18812 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18813 # absolute.
18814 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18815 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18816 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18817 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18818
18819
18820   case $srcdir in
18821   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18822       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18823   esac
18824
18825   # Make a symlink if possible; otherwise try a hard link.
18826   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18827     ln $srcdir/$ac_source $ac_dest ||
18828     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18829 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18830    { (exit 1); exit 1; }; }
18831 done
18832 _ACEOF
18833
18834 cat >>$CONFIG_STATUS <<\_ACEOF
18835
18836 { (exit 0); exit 0; }
18837 _ACEOF
18838 chmod +x $CONFIG_STATUS
18839 ac_clean_files=$ac_clean_files_save
18840
18841
18842 # configure is writing to config.log, and then calls config.status.
18843 # config.status does its own redirection, appending to config.log.
18844 # Unfortunately, on DOS this fails, as config.log is still kept open
18845 # by configure, so config.status won't be able to write to it; its
18846 # output is simply discarded.  So we exec the FD to /dev/null,
18847 # effectively closing config.log, so it can be properly (re)opened and
18848 # appended to by config.status.  When coming back to configure, we
18849 # need to make the FD available again.
18850 if test "$no_create" != yes; then
18851   ac_cs_success=:
18852   exec 5>/dev/null
18853   $SHELL $CONFIG_STATUS || ac_cs_success=false
18854   exec 5>>config.log
18855   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18856   # would make configure fail if this is the last instruction.
18857   $ac_cs_success || { (exit 1); exit 1; }
18858 fi
18859